@golstats/gsc-game-data 1.0.121 → 1.0.123
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-dc6b25de-CdawgDTp-7d0bc8a1.js → FilterConditions-dc6b25de-CdawgDTp-b327df6e.js} +1 -1
- package/dist/{FilterField-37ad154d-PFd8HpMJ-604f7535.js → FilterField-37ad154d-PFd8HpMJ-79454e02.js} +1 -1
- package/dist/{FilterSubcategories-a7b96423-Bs67-HFD-a9a91059.js → FilterSubcategories-a7b96423-Bs67-HFD-5b906403.js} +1 -1
- package/dist/gsc-game-data.js +1 -1
- package/dist/gsc-game-data.umd.cjs +2 -2
- package/dist/{index-ab3d877e.js → index-0f935bdc.js} +8 -8
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
<div class="__title">${m}:</div>
|
|
31
31
|
<div class="__totals">${n}: ${s}</div>
|
|
32
32
|
</div>
|
|
33
|
-
`}}}},getChartSeries(e,a){let r,d;return this.showPostMatchData?(r={name:`${this.homeTeam.acronym}`,data:[],dataTotal:[]},d={name:`${this.visitingTeam.acronym}`,data:[],dataTotal:[]},a.arraySubcategories=[],Object.values(e).forEach((m,n)=>{a.xaxis.categories.push(this.prepareLabels(m,n)),a.arraySubcategories.push(m);const s=m.homeTeam[this.homeTeamStatisticsType].totalPostGame+m.visitingTeam[this.visitingTeamStatisticsType].totalPostGame;r.data.push(Math.round(120*(s?m.homeTeam[this.homeTeamStatisticsType].totalPostGame/s:0))),r.dataTotal.push(m.homeTeam[this.homeTeamStatisticsType].totalPostGame),d.data.push(Math.round(120*(s?m.visitingTeam[this.visitingTeamStatisticsType].totalPostGame/s:0))),d.dataTotal.push(m.visitingTeam[this.visitingTeamStatisticsType].totalPostGame)})):(r={name:`${this.showLiveData?"Live":"Histórico"} ${this.homeTeam.acronym}`,data:[],dataTotal:[]},d={name:`${this.showLiveData?"Live":"Histórico"} ${this.visitingTeam.acronym}`,data:[],dataTotal:[]},a.arraySubcategories=[],Object.values(e).forEach((m,n)=>{a.xaxis.categories.push(this.prepareLabels(m,n)),a.arraySubcategories.push(m);let s,i,_,f;m.homeTeam[this.homeTeamStatisticsType].leader.points,m.visitingTeam[this.visitingTeamStatisticsType].leader.points;const o=m.homeTeam.accomplished.avgPostGame+m.visitingTeam.accomplished.avgPostGame;if(!this.showLiveData)this.gameForAnalysis.game_status!==1&&m.generalCategoriesIds.accomplished===3?(s=m.homeTeam.accomplished.avgPostGame/o,_=m.homeTeam.accomplished.totalPostGame):(s=o?m.homeTeam[this.homeTeamStatisticsType].avgPostGame/o:0,_=m.homeTeam[this.homeTeamStatisticsType].totalPostGame);else{const g=m.homeTeam[this.homeTeamStatisticsType].totalLive+m.visitingTeam[this.visitingTeamStatisticsType].totalLive;s=g?m.homeTeam[this.homeTeamStatisticsType].totalLive/g:0,_=m.homeTeam[this.homeTeamStatisticsType].totalLive}if(!this.showLiveData)this.gameForAnalysis.game_status!==1&&m.generalCategoriesIds.accomplished===3?(i=m.visitingTeam.accomplished.avgPostGame/o,f=m.visitingTeam.accomplished.totalPostGame):(i=o?m.visitingTeam[this.visitingTeamStatisticsType].avgPostGame/o:0,f=m.visitingTeam[this.visitingTeamStatisticsType].totalPostGame);else{const g=m.homeTeam[this.homeTeamStatisticsType].totalLive+m.visitingTeam[this.visitingTeamStatisticsType].totalLive;i=g?m.visitingTeam[this.visitingTeamStatisticsType].totalLive/g:0,f=m.visitingTeam[this.visitingTeamStatisticsType].totalLive}r.data.push(Math.round(120*s)),r.dataTotal.push(Math.round(_)),d.data.push(Math.round(120*i)),d.dataTotal.push(Math.round(f))})),[r,d]},onHomeTeamPlaysTypeChanged(e){this.homeTeamSelectedPlaysType=e},onVisitingTeamPlaysTypeChanged(e){this.visitingTeamSelectedPlaysType=e},getSubcategoryData(e,a="homeTeam"){return e.id==="3-0"&&(e[a].accomplished.totalLiveBothTeams=e.homeTeam.accomplished.totalLive+e.visitingTeam.accomplished.totalLive),e[a].accomplished||0},showModal(e,a,r){const d=r===0?"homeTeam":"visitingTeam",m=e.config.arraySubcategories[a]||{};this.tooltip.isLeagueAvgVisible=m.id!=="3-0",this.tooltip.data=this.getSubcategoryData(m,d),this.tooltip.local=r===0,this.tooltip.names=m.names,this.tooltip.keyName=this.subcategoryName,this.tooltip.leagueAvg=this.leagueAvg(m);const n=e.globals.clientX||0,s=e.globals.clientY||0;this.globals.x=n,this.globals.y=s,this.tooltip.x=n,this.tooltip.y=s>700?s-250:s;const i=m.generalCategoriesIds.accomplished===3;if(i){const _=m.homeTeam.accomplished.avgPostGame+m.visitingTeam.accomplished.avgPostGame;this.tooltip.numberValue=_?m[d].accomplished.avgPostGame/_*100:0}else this.tooltip.numberValue=null;return this.tooltip.booleanIsPercent=i,this.tooltip.show=!0,this.tooltip.data},updateTooltip(e){const r=Math.abs(e.clientX-this.globals.x),d=Math.abs(e.clientY-this.globals.y);(r>5||d>5)&&(this.tooltip.show=!1)},prepareLabels(e,a){let r=e.name||e.names[this.subcategoryName]||e.names["0-0"];if(a===0)return r;const d=13;if(r.length>d){let m=r.split(" ");r=[];let n="",s="",i=m.slice(-1)[0];m.forEach(_=>{n+=` ${_} `,n.length>d&&(r.push(s.trim()),n=_),s=n,i===_&&r.push(s.trim())})}return r},leagueAvg(e){return e.generalCategoriesIds.accomplished===3?(e.homeTeam.accomplished.arrayRankings.reduce((a,r)=>a+r.points,0)/e.homeTeam.accomplished.arrayRankings.length*100).toFixed(2):this.avg(e,this.accomplished)}}},nC=e=>(t.pushScopeId("data-v-383baec7"),e=e(),t.popScopeId(),e),wK={key:0,class:"distribution-leyend"},kK=nC(()=>t.createElementVNode("br",null,null,-1)),CK={class:"distribution"},EK={class:"distribution__container"},SK={class:"distribution__container__chart-type__title"},TK=nC(()=>t.createElementVNode("div",{class:"distribution__container__chart-type__controls"},null,-1)),AK={class:"distribution__container__chart-type__chart"};function NK(e,a,r,d,m,n){const s=t.resolveComponent("apexchart");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.gameForAnalysis.game_status==4?(t.openBlock(),t.createElementBlock("div",wK,[t.createTextVNode("Faltan "),t.createElementVNode("span",null,t.toDisplayString(n.timeLeft),1),t.createTextVNode(" para el inicio."),kK,t.createTextVNode("Las estadísticas corresponden a sus promedios por partido del torneo "),t.createElementVNode("span",null,t.toDisplayString(r.seasonSelected.name),1)])):t.createCommentVNode("",!0),t.createElementVNode("div",CK,[t.createElementVNode("div",EK,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.arrayDataForCharts,(i,_)=>(t.openBlock(),t.createElementBlock("div",{class:"distribution__container__chart-type",key:_},[t.createElementVNode("div",SK,t.toDisplayString(i.name),1),TK,t.createElementVNode("div",AK,[(t.openBlock(),t.createBlock(s,{type:"radar",height:m.height,options:m.arrayChartOptions[_],series:m.arrayFilledSeries[_],key:m.chartKeyCounter+m.updateCategory+_},null,8,["height","options","series"]))])]))),128))])])],64)}const BK=Si(xK,[["render",NK],["__scopeId","data-v-383baec7"]]),IK=(e,a)=>{const r=e.__vccOpts||e;for(const[d,m]of a)r[d]=m;return r},Qb={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(a){throw new Error(a)}}}},computed:{customStyle(){return{width:this.width,height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,backgroundColor:this.backgroundColor,circleColor:this.circleColorSwitch}},customText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}}},methods:{handleSwitchChange(e){e.target.checked?this.$emit("change",this.textOptionRight):this.$emit("change",this.textOptionLeft)}}},iC=()=>{t.useCssVars(e=>({"1b04779e":e.widthCircle,c974bf22:e.heightCircle}))},oC=Qb.setup;Qb.setup=oC?(e,a)=>(iC(),oC(e,a)):iC;const MK={key:0,class:"text-left"},OK=["width","src"],PK=["checked"],FK=["width","src"],RK={key:3,class:"text-right"};function VK(e,a,r,d,m,n){return t.openBlock(),t.createElementBlock("div",{class:"gsc-switch-radio",style:t.normalizeStyle(n.customText)},[r.textOptionLeft!=""&&!r.hiddenLabels?(t.openBlock(),t.createElementBlock("span",MK,t.toDisplayString(r.textOptionLeft),1)):t.createCommentVNode("",!0),r.iconA!=""?(t.openBlock(),t.createElementBlock("img",{key:1,width:r.widthIcons,src:r.iconA},null,8,OK)):t.createCommentVNode("",!0),t.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:a[0]||(a[0]=(...s)=>n.handleSwitchChange&&n.handleSwitchChange(...s)),checked:m.OptionDefault},null,40,PK),t.createElementVNode("label",{for:"toggle-btn",style:t.normalizeStyle([n.customStyle,{"--circle-color":r.circleColorSwitch}])},null,4),r.iconB!=""?(t.openBlock(),t.createElementBlock("img",{key:2,width:r.widthIcons,src:r.iconB},null,8,FK)):t.createCommentVNode("",!0),r.textOptionRight!=""&&!r.hiddenLabels?(t.openBlock(),t.createElementBlock("span",RK,t.toDisplayString(r.textOptionRight),1)):t.createCommentVNode("",!0)],4)}const zK=IK(Qb,[["render",VK],["__scopeId","data-v-e2a20444"]]),BBt="",IBt="",DK={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 LK(e,a,r,d,m,n){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["box-tooltip",n.showTooltip]),style:t.normalizeStyle(n.positionTooltip),onClick:a[0]||(a[0]=(...s)=>n.tooltipClick&&n.tooltipClick(...s))},[t.renderSlot(e.$slots,"default",{},void 0,!0)],6)}const sC=Si(DK,[["render",LK],["__scopeId","data-v-33a39744"]]),MBt="",$K={name:"SoccerChalkboard",components:{Tooltip:sC},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:{...qi("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,a)=>({id:a,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((d,m)=>[...d,m.categories],[]);return this.preparedPlays.filter(d=>this.findCategoryInPlay(e,d)).reduce((d,m)=>{let n=this.localCategories.find(s=>this.findCategoryInPlay(s.categories,m));if(n){let s={category:n.id,categoryName:n.name,arrowColor:n.negative?this.negativeColor:n.color,arrowMarkerColor:n.negative?"url(#arrow-negative)":`url(#arrow-${n.id})`,markerColor:n.color,jersey:m.jersey_number,matchlapse:m.matchLapse,playerName:m.player_name,photo:m.photo,rivalLogo:m.rival_id,x1:n.invert.includes(m.categoryId)?100-m[`x${n.points[0]}`]:m[`x${n.points[0]}`],y1:n.invert.includes(m.categoryId)?100-m[`y${n.points[0]}`]:m[`y${n.points[0]}`],x2:n.invert.includes(m.categoryId)?100-m[`x${n.points[1]}`]:m[`x${n.points[1]}`],y2:n.invert.includes(m.categoryId)?100-m[`y${n.points[1]}`]:m[`y${n.points[1]}`],x3:n.invert.includes(m.categoryId)?100-m[`x${n.points[2]}`]:m[`x${n.points[2]}`],y3:n.invert.includes(m.categoryId)?100-m[`y${n.points[2]}`]:m[`y${n.points[2]}`],momentOfPlay:m.moment_of_play,isOwnGoal:n.invert.includes(m.categoryId),xGi:m.xGi,xGf:m.xGf};d.push(s)}return d},[])}},methods:{findCategoryInPlay(e,a){return e.find(r=>typeof r=="number"?r===a.categoryId:r.includes(a.categoryId))},onMouseOver(e,a){this.dataPlay.playerName=a.playerName||"",this.dataPlay.photo=a.photo||"",this.dataPlay.minute=parseInt(a.momentOfPlay.split(":")[0])||"",this.dataPlay.rivalLogo=a.rivalLogo||"",this.dataPlay.categoryName=a.categoryName||"",this.dataPlay.rivalName=this.team=="Visiting"?this.homeTeam.colloquial_name:this.visitingTeam.colloquial_name,this.dataPlay.xGi=String(a.xGi),this.dataPlay.xGf=String(a.xGf),this.dataPlay.isOwnGoal=a.isOwnGoal,this.data.visible=!0},onMouseLeave(){this.data.visible=!1}}},Xm=e=>(t.pushScopeId("data-v-883eff7a"),e=e(),t.popScopeId(),e),jK={class:"soccer-chalkboard-xg"},UK={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 490 684","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"soccer-chalkboard"},HK={xmlns:"http://www.w3.org/2000/svg",viewBox:"30 0 452 684","xmlns:xlink":"http://www.w3.org/1999/xlink"},GK=Xm(()=>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)),WK=["id"],qK=["fill"],YK=Xm(()=>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)),ZK=["id"],XK=["x1","y1","x2","y2","stroke"],KK=["x1","y1","x2","y2","stroke","marker-end"],JK=["onMouseover"],QK=["x","y","fill"],eJ=["x","y"],tJ={class:"tooltip-data has-text-left"},aJ={class:"bold"},rJ={class:"tooltip-image"},nJ={class:"tooltip-image"},iJ=["src"],oJ={class:"tooltip-xg"},sJ={key:0},lJ=Xm(()=>t.createElementVNode("span",null,"xGi:",-1)),cJ=Xm(()=>t.createElementVNode("div",{class:"tooltip-xg-separator"},null,-1)),dJ={key:1},uJ=Xm(()=>t.createElementVNode("span",null,"xGf:",-1));function pJ(e,a,r,d,m,n){const s=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock("div",jK,[(t.openBlock(),t.createElementBlock("svg",UK,[(t.openBlock(),t.createElementBlock("svg",HK,[t.createElementVNode("defs",null,[GK,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.localCategories,i=>(t.openBlock(),t.createElementBlock("marker",{key:`arrow-color-${i.id}`,id:`arrow-${i.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:i.color},null,8,qK)],8,WK))),128)),YK]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.graphPlays,i=>(t.openBlock(),t.createElementBlock("g",{key:i.id,id:`play-${i.playId}`},[t.createElementVNode("line",{x1:`${i.x1}%`,y1:`${i.y1}%`,x2:`${i.x2}%`,y2:`${i.y2}%`,stroke:i.arrowColor,"stroke-width":"2"},null,8,XK),t.createElementVNode("line",{x1:`${i.x2}%`,y1:`${i.y2}%`,x2:`${i.x3}%`,y2:`${i.y3}%`,stroke:i.arrowColor,"stroke-width":"2","marker-end":i.arrowMarkerColor},null,8,KK),t.createElementVNode("g",{onMouseover:_=>n.onMouseOver(_,i),onMouseleave:a[0]||(a[0]=(..._)=>n.onMouseLeave&&n.onMouseLeave(..._)),class:"is-pointer"},[t.createElementVNode("rect",{x:`${i.x1}%`,y:`${i.y1}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":"2",fill:i.markerColor,stroke:"#999",rx:"14",ry:"14"},null,8,QK),t.createElementVNode("text",{"text-anchor":"middle","dominant-baseline":"middle",x:`${i.x1}%`,y:`${i.y1}%`,dy:"1","font-size":"15",fill:"#fff","font-family":"'Poppins-SemiBold', sans-serif"},t.toDisplayString(i.jersey),9,eJ)],40,JK)],8,ZK))),128))]))])),t.createVNode(s,{data:m.data},{default:t.withCtx(()=>[t.createElementVNode("div",tJ,[t.createElementVNode("div",null,[t.createElementVNode("span",aJ,t.toDisplayString(m.dataPlay.isOwnGoal?"Autogol":m.dataPlay.categoryName),1)]),t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(m.dataPlay.playerName)+" ",1),t.createElementVNode("div",rJ,[t.createElementVNode("div",{class:"tooltip-image-player",style:t.normalizeStyle("background: url("+m.dataPlay.photo+") top")},null,4)])]),t.createElementVNode("div",null,"Minuto: "+t.toDisplayString(m.dataPlay.minute)+"'",1),t.createElementVNode("div",null,[t.createTextVNode(" Rival: "),t.createElementVNode("div",nJ,[t.createElementVNode("img",{src:m.dataPlay.rivalLogo},null,8,iJ)])]),t.createElementVNode("div",oJ,[/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(m.dataPlay.xGi)&&m.dataPlay.xGi<=1&&!m.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",sJ,[lJ,t.createTextVNode(" "+t.toDisplayString(Number(m.dataPlay.xGi)),1)])):t.createCommentVNode("",!0),cJ,/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(m.dataPlay.xGf)&&m.dataPlay.xGf<=1&&!m.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",dJ,[uJ,t.createTextVNode(" "+t.toDisplayString(Number(m.dataPlay.xGf)),1)])):t.createCommentVNode("",!0)])])]),_:1},8,["data"])])}const lC=Si($K,[["render",pJ],["__scopeId","data-v-883eff7a"]]),dg=[{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]}],OBt="",hJ={name:"Xg",components:{SoccerChalkboard:lC},props:{},data(){return{categories:dg}},computed:{...Ol("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...Ol("general",["booleanIsStatisticModalOpen"]),...qi("xgGeneral",["playsLocal","goalsQtyLocal","shotsOnGoalQtyLocal","xGLocal"]),...qi("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData","game","getGameForAnalysis"]),...qi("loginGeneral",["getPremiumAccount","getIsGolstats"]),...qi("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:{...Nu("general",["setVideoSrc","setVideoModalVisibility"]),...Nu("xgGeneral",["setTeamSelected"]),...G1("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()}},cC=e=>(t.pushScopeId("data-v-6fa9fc78"),e=e(),t.popScopeId(),e),mJ={class:"xg-container"},fJ={class:"xg-container__info"},gJ=cC(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),yJ={class:"table"},_J={class:"table__row"},vJ={class:"table__row__title"},bJ={class:"table__row__value"},xJ=["src"],wJ={class:"table__row"},kJ={class:"table__row__title"},CJ={class:"table__row__value"},EJ={class:"table__row"},SJ={class:"table__row__title"},TJ={class:"table__row__value"},AJ=cC(()=>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)),NJ={class:"xg-container__field"};function BJ(e,a,r,d,m,n){const s=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",mJ,[t.createElementVNode("div",fJ,[gJ,t.createElementVNode("div",yJ,[t.createElementVNode("div",_J,[t.createElementVNode("div",vJ,t.toDisplayString(n.gxInfoItems[0].title),1),t.createElementVNode("div",bJ,[t.createTextVNode(t.toDisplayString(n.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:n.stringSelectedTeamLogo},null,8,xJ)])]),t.createElementVNode("div",wJ,[t.createElementVNode("div",kJ,t.toDisplayString(n.gxInfoItems[1].title),1),t.createElementVNode("div",CJ,t.toDisplayString(n.gxInfoItems[1].value),1)]),t.createElementVNode("div",EJ,[t.createElementVNode("div",SJ,t.toDisplayString(n.gxInfoItems[2].title),1),t.createElementVNode("div",TJ,t.toDisplayString(n.gxInfoItems[2].value),1)])]),AJ]),t.createElementVNode("div",NJ,[t.createVNode(s,{plays:e.playsLocal,categories:m.categories,team:e.team},null,8,["plays","categories","team"])])])}const IJ=Si(hJ,[["render",BJ],["__scopeId","data-v-6fa9fc78"]]),PBt="",MJ={name:"Xg",components:{SoccerChalkboard:lC},props:{team:{type:String,default:"Visiting"}},data(){return{categories:dg}},computed:{...Ol("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...Ol("general",["booleanIsStatisticModalOpen"]),...qi("xgGeneral",["playsAway","goalsQtyAway","shotsOnGoalQtyAway","xGAway"]),...qi("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData","game","getGameForAnalysis"]),...qi("loginGeneral",["getPremiumAccount","getIsGolstats"]),...qi("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:{...Nu("general",["setVideoSrc","setVideoModalVisibility"]),...Nu("xgGeneral",["setTeamSelected"]),...G1("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()}},dC=e=>(t.pushScopeId("data-v-03602455"),e=e(),t.popScopeId(),e),OJ={class:"xg-container"},PJ={class:"xg-container__info"},FJ=dC(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),RJ={class:"table"},VJ={class:"table__row"},zJ={class:"table__row__title"},DJ={class:"table__row__value"},LJ=["src"],$J={class:"table__row"},jJ={class:"table__row__title"},UJ={class:"table__row__value"},HJ={class:"table__row"},GJ={class:"table__row__title"},WJ={class:"table__row__value"},qJ=dC(()=>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)),YJ={class:"xg-container__field"};function ZJ(e,a,r,d,m,n){const s=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",OJ,[t.createElementVNode("div",PJ,[FJ,t.createElementVNode("div",RJ,[t.createElementVNode("div",VJ,[t.createElementVNode("div",zJ,t.toDisplayString(n.gxInfoItems[0].title),1),t.createElementVNode("div",DJ,[t.createTextVNode(t.toDisplayString(n.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:n.stringSelectedTeamLogo},null,8,LJ)])]),t.createElementVNode("div",$J,[t.createElementVNode("div",jJ,t.toDisplayString(n.gxInfoItems[1].title),1),t.createElementVNode("div",UJ,t.toDisplayString(n.gxInfoItems[1].value),1)]),t.createElementVNode("div",HJ,[t.createElementVNode("div",GJ,t.toDisplayString(n.gxInfoItems[2].title),1),t.createElementVNode("div",WJ,t.toDisplayString(n.gxInfoItems[2].value),1)])]),qJ]),t.createElementVNode("div",YJ,[t.createVNode(s,{plays:e.playsAway,categories:m.categories,team:r.team},null,8,["plays","categories","team"])])])])}const XJ=Si(MJ,[["render",ZJ],["__scopeId","data-v-03602455"]]),FBt="",KJ={name:"SoccerChalkboard",components:{Tooltip:sC},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:{...qi("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,a)=>({id:a,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((d,m)=>[...d,m.categories],[]);return this.preparedPlays.filter(d=>this.findCategoryInPlay(e,d)).reduce((d,m)=>{let n=this.localCategories.find(s=>this.findCategoryInPlay(s.categories,m));if(n){let s={category:n.id,categoryName:n.name,arrowColor:n.negative?this.negativeColor:n.color,arrowMarkerColor:n.negative?"url(#arrow-negative)":`url(#arrow-${n.id})`,markerColor:n.color,jersey:m.jersey_number,matchlapse:m.matchLapse,playerName:m.player_name,photo:m.photo,rivalLogo:m.rival_id,x1:n.invert.includes(m.categoryId)?100-m[`x${n.points[0]}`]:m[`x${n.points[0]}`],y1:n.invert.includes(m.categoryId)?100-m[`y${n.points[0]}`]:m[`y${n.points[0]}`],x2:n.invert.includes(m.categoryId)?100-m[`x${n.points[1]}`]:m[`x${n.points[1]}`],y2:n.invert.includes(m.categoryId)?100-m[`y${n.points[1]}`]:m[`y${n.points[1]}`],x3:n.invert.includes(m.categoryId)?100-m[`x${n.points[2]}`]:m[`x${n.points[2]}`],y3:n.invert.includes(m.categoryId)?100-m[`y${n.points[2]}`]:m[`y${n.points[2]}`],momentOfPlay:m.moment_of_play,isOwnGoal:n.invert.includes(m.categoryId),xGi:m.xGi,xGf:m.xGf};d.push(s)}return d},[])}},methods:{findCategoryInPlay(e,a){return e.find(r=>typeof r=="number"?r===a.categoryId:r.includes(a.categoryId))},onMouseOver(e,a){this.dataPlay.playerName=a.playerName||"",this.dataPlay.photo=a.photo||"",this.dataPlay.minute=parseInt(a.momentOfPlay.split(":")[0])||"",this.dataPlay.rivalLogo=a.rivalLogo||"",this.dataPlay.categoryName=a.categoryName||"",this.dataPlay.rivalName=this.team=="Visiting"?this.homeTeam.team_name:this.visitingTeam.team_name,this.dataPlay.xGi=String(a.xGi),this.dataPlay.xGf=String(a.xGf),this.dataPlay.isOwnGoal=a.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}}},Km=e=>(t.pushScopeId("data-v-f6c30694"),e=e(),t.popScopeId(),e),JJ={class:"soccer-chalkboard-xg"},QJ={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 490 684","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"soccer-chalkboard"},eQ={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 452 684","xmlns:xlink":"http://www.w3.org/1999/xlink"},tQ=Km(()=>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)),aQ=["id"],rQ=["fill"],nQ=Km(()=>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)),iQ=["id"],oQ=["x1","y1","x2","y2","stroke"],sQ=["x1","y1","x2","y2","stroke","marker-end"],lQ=["onMouseover"],cQ=["x","y","fill"],dQ=["x","y"],uQ={class:"tooltip-data has-text-left"},pQ={class:"bold"},hQ={class:"tooltip-image"},mQ={class:"tooltip-image"},fQ=["src"],gQ={class:"tooltip-xg"},yQ={key:0},_Q=Km(()=>t.createElementVNode("span",null,"xGi:",-1)),vQ=Km(()=>t.createElementVNode("div",{class:"tooltip-xg-separator"},null,-1)),bQ={key:1},xQ=Km(()=>t.createElementVNode("span",null,"xGf:",-1));function wQ(e,a,r,d,m,n){const s=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock("div",JJ,[(t.openBlock(),t.createElementBlock("svg",QJ,[(t.openBlock(),t.createElementBlock("svg",eQ,[t.createElementVNode("defs",null,[tQ,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.localCategories,i=>(t.openBlock(),t.createElementBlock("marker",{key:`arrow-color-${i.id}`,id:`arrow-${i.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:i.color},null,8,rQ)],8,aQ))),128)),nQ]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.graphPlays,i=>(t.openBlock(),t.createElementBlock("g",{key:i.id,id:`play-${i.playId}`},[t.createElementVNode("line",{x1:`${i.x1}%`,y1:`${i.y1}%`,x2:`${i.x2}%`,y2:`${i.y2}%`,stroke:i.arrowColor,"stroke-width":"2"},null,8,oQ),t.createElementVNode("line",{x1:`${i.x2}%`,y1:`${i.y2}%`,x2:`${i.x3}%`,y2:`${i.y3}%`,stroke:i.arrowColor,"stroke-width":"2","marker-end":i.arrowMarkerColor},null,8,sQ),t.createElementVNode("g",{onMouseover:_=>n.onMouseOver(_,i),onMouseleave:a[0]||(a[0]=(..._)=>n.onMouseLeave&&n.onMouseLeave(..._)),class:"is-pointer"},[t.createElementVNode("rect",{x:`${i.x1}%`,y:`${i.y1}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":"2",fill:i.markerColor,stroke:"#aaa",rx:"14",ry:"14"},null,8,cQ),t.createElementVNode("text",{"text-anchor":"middle","dominant-baseline":"middle",x:`${i.x1}%`,y:`${i.y1}%`,dy:"1","font-size":"15",stroke:"white","font-family":"Poppins, sans-serif"},t.toDisplayString(i.jersey),9,dQ)],40,lQ)],8,iQ))),128))]))])),t.createVNode(s,{data:m.data},{default:t.withCtx(()=>[t.createElementVNode("div",uQ,[t.createElementVNode("div",null,[t.createElementVNode("span",pQ,t.toDisplayString(m.dataPlay.isOwnGoal?"Autogol":m.dataPlay.categoryName),1)]),t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(m.dataPlay.playerName)+" ",1),t.createElementVNode("div",hQ,[t.createElementVNode("div",{class:"tooltip-image-player",style:t.normalizeStyle("background: url("+m.dataPlay.photo+") top")},null,4)])]),t.createElementVNode("div",null,"Minuto: "+t.toDisplayString(m.dataPlay.minute)+"'",1),t.createElementVNode("div",null,[t.createTextVNode(" Rival: "),t.createElementVNode("div",mQ,[t.createElementVNode("img",{src:m.dataPlay.rivalLogo},null,8,fQ)])]),t.createElementVNode("div",gQ,[/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(m.dataPlay.xGi)&&m.dataPlay.xGi<=1&&!m.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",yQ,[_Q,t.createTextVNode(" "+t.toDisplayString(Number(m.dataPlay.xGi)),1)])):t.createCommentVNode("",!0),vQ,/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(m.dataPlay.xGf)&&m.dataPlay.xGf<=1&&!m.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",bQ,[xQ,t.createTextVNode(" "+t.toDisplayString(Number(m.dataPlay.xGf)),1)])):t.createCommentVNode("",!0)])])]),_:1},8,["data"])])}const uC=Si(KJ,[["render",wQ],["__scopeId","data-v-f6c30694"]]),RBt="",kQ={name:"Xg",components:{SoccerChalkboard:uC},props:{},data(){return{categories:dg}},computed:{...Ol("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...Ol("general",["booleanIsStatisticModalOpen"]),...qi("xgGeneral",["playsLocal","goalsQtyLocal","shotsOnGoalQtyLocal","xGLocal"]),...qi("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...qi("loginGeneral",["getPremiumAccount","getIsGolstats"]),...qi("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,a){e!==a&&this.fillXgPlays()}}},methods:{...Nu("general",["setVideoSrc","setVideoModalVisibility"]),...Nu("xgGeneral",["setTeamSelected"]),...G1("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()}},pC=e=>(t.pushScopeId("data-v-fb5342de"),e=e(),t.popScopeId(),e),CQ={class:"xg-container"},EQ=pC(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),SQ={class:"xg-container__field"},TQ={class:"xg-container__info"},AQ={class:"table"},NQ={class:"table__row"},BQ={class:"table__row__title"},IQ={class:"table__row__value"},MQ=["src"],OQ={class:"table__row"},PQ={class:"table__row__title"},FQ={class:"table__row__value"},RQ={class:"table__row"},VQ={class:"table__row__title"},zQ={class:"table__row__value"},DQ=pC(()=>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 LQ(e,a,r,d,m,n){const s=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",CQ,[EQ,t.createElementVNode("div",SQ,[t.createVNode(s,{plays:e.playsLocal,categories:m.categories,team:e.team},null,8,["plays","categories","team"])]),t.createElementVNode("div",TQ,[t.createElementVNode("div",AQ,[t.createElementVNode("div",NQ,[t.createElementVNode("div",BQ,t.toDisplayString(n.gxInfoItems[0].title),1),t.createElementVNode("div",IQ,[t.createTextVNode(t.toDisplayString(n.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:n.stringSelectedTeamLogo},null,8,MQ)])]),t.createElementVNode("div",OQ,[t.createElementVNode("div",PQ,t.toDisplayString(n.gxInfoItems[1].title),1),t.createElementVNode("div",FQ,t.toDisplayString(n.gxInfoItems[1].value),1)]),t.createElementVNode("div",RQ,[t.createElementVNode("div",VQ,t.toDisplayString(n.gxInfoItems[2].title),1),t.createElementVNode("div",zQ,t.toDisplayString(n.gxInfoItems[2].value),1)])]),DQ])])}const $Q=Si(kQ,[["render",LQ],["__scopeId","data-v-fb5342de"]]),VBt="",jQ={name:"Xg",components:{SoccerChalkboard:uC},props:{},data(){return{categories:dg}},computed:{...Ol("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...Ol("general",["booleanIsStatisticModalOpen"]),...qi("xgGeneral",["playsAway","goalsQtyAway","shotsOnGoalQtyAway","xGAway"]),...qi("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...qi("loginGeneral",["getPremiumAccount","getIsGolstats"]),...qi("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,a){e!==a&&this.fillXgPlays()}}},methods:{...Nu("general",["setVideoSrc","setVideoModalVisibility"]),...Nu("xgGeneral",["setTeamSelected"]),...G1("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()}},hC=e=>(t.pushScopeId("data-v-38eed9b5"),e=e(),t.popScopeId(),e),UQ={class:"xg-container"},HQ=hC(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),GQ={class:"xg-container__field"},WQ={class:"xg-container__info"},qQ={class:"table"},YQ={class:"table__row"},ZQ={class:"table__row__title"},XQ={class:"table__row__value"},KQ=["src"],JQ={class:"table__row"},QQ={class:"table__row__title"},eee={class:"table__row__value"},tee={class:"table__row"},aee={class:"table__row__title"},ree={class:"table__row__value"},nee=hC(()=>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 iee(e,a,r,d,m,n){const s=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",UQ,[HQ,t.createElementVNode("div",GQ,[t.createVNode(s,{plays:e.playsAway,categories:m.categories,team:e.team},null,8,["plays","categories","team"])]),t.createElementVNode("div",WQ,[t.createElementVNode("div",qQ,[t.createElementVNode("div",YQ,[t.createElementVNode("div",ZQ,t.toDisplayString(n.gxInfoItems[0].title),1),t.createElementVNode("div",XQ,[t.createTextVNode(t.toDisplayString(n.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:n.stringSelectedTeamLogo},null,8,KQ)])]),t.createElementVNode("div",JQ,[t.createElementVNode("div",QQ,t.toDisplayString(n.gxInfoItems[1].title),1),t.createElementVNode("div",eee,t.toDisplayString(n.gxInfoItems[1].value),1)]),t.createElementVNode("div",tee,[t.createElementVNode("div",aee,t.toDisplayString(n.gxInfoItems[2].title),1),t.createElementVNode("div",ree,t.toDisplayString(n.gxInfoItems[2].value),1)])]),nee])])}const oee=Si(jQ,[["render",iee],["__scopeId","data-v-38eed9b5"]]),zBt="";let mC=null;const see={name:"XgMain",components:{GSCSwitchRadio:zK,SoccerChalkboardLocal:IJ,SoccerChalkboardAway:XJ,SoccerChalkboardLocalMobile:$Q,SoccerChalkboardAwayMobile:oee},props:{game:{type:Number,default:0}},data(){return{gamesContainerWidth:0,teamSelect:"local",teamDefault:""}},computed:{...qi("nextGeneral",["homeTeam","visitingTeam"])},watch:{},methods:{onChangeTeam(e){e instanceof Object||(this.teamSelect=e),this.teamDefault=e},setUpResizeObserver(){if(window.ResizeObserver)mC=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<680?this.movil=!0:this.movil=!1}),mC.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))}},lee={class:"xg",ref:"gamesContainer"},cee={key:0,class:"selector-team"};function dee(e,a,r,d,m,n){const s=t.resolveComponent("GSCSwitchRadio"),i=t.resolveComponent("SoccerChalkboardLocal"),_=t.resolveComponent("SoccerChalkboardAway"),f=t.resolveComponent("SoccerChalkboardLocalMobile"),o=t.resolveComponent("SoccerChalkboardAwayMobile");return t.openBlock(),t.createElementBlock("div",lee,[m.gamesContainerWidth<655?(t.openBlock(),t.createElementBlock("div",cee,[t.createVNode(s,{width:"42px",height:"20px",heightCircle:"16px",widthCircle:"16px","circle-color-switch":"#cbee6b",valueDefault:m.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:n.onChangeTeam},null,8,["valueDefault","text-option-left","text-option-right","icon-a","icon-b","onChange"])])):t.createCommentVNode("",!0),m.gamesContainerWidth>=655?(t.openBlock(),t.createBlock(i,{key:1,class:"local"})):t.createCommentVNode("",!0),m.gamesContainerWidth>=655?(t.openBlock(),t.createBlock(_,{key:2,class:"away"})):t.createCommentVNode("",!0),m.gamesContainerWidth<655&&m.teamSelect==e.homeTeam.colloquial_name?(t.openBlock(),t.createBlock(f,{key:3})):t.createCommentVNode("",!0),m.gamesContainerWidth<655&&m.teamSelect==e.visitingTeam.colloquial_name?(t.openBlock(),t.createBlock(o,{key:4})):t.createCommentVNode("",!0)],512)}const uee=Si(see,[["render",dee],["__scopeId","data-v-20bd873f"]]),DBt="",pee={class:"statistics-main"},hee={class:"statistics-main__header"},mee={class:"statistics-main__header__filter"},fee=t.defineComponent({name:"TemplateVideos",components:{TrendLive:EY,Comparative:bK,Distribution:BK,GSCSlider:Jb,XG:uee}}),gee=Si(Object.assign(fee,{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:a}){const r=e,d=j1(),m=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"}),n=t.ref({}),s=t.ref(null),i=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"}]);let _=t.ref(i.value[0]),f=t.ref(0);t.watch(()=>r.game,l=>{const u={...l};o(u),f.value++},{deep:!0,immediate:!0});async function o(l){try{n.value.gameId!==l.gameId&&(n.value=l,await d.dispatch("nextGeneral/cleanStats"),await d.dispatch("nextGeneral/checkState",{gameId:l.gameId,currentSeasonId:l.seasonId,isTeamsAnalysis:!0,defaultFilter:s.value,gameInfo:l}))}catch(u){throw new Error(u)}}function g(l){_.value=l}function x(){d.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 c(l){a("openmedia",l)}return t.onUnmounted(()=>{a("resetSubsection")}),t.onMounted(()=>{r.subsection==="Comparativa"&&(_.value.id="st1",_.value.name="Comparativa",_.value.componentName="Comparative")}),x(),(l,u)=>(t.openBlock(),t.createElementBlock("div",pee,[t.createElementVNode("div",hee,[t.createVNode(t.unref(Jb),{backgroundColor:"none",arrows:!1},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.value,p=>(t.openBlock(),t.createElementBlock("div",{key:p.id,class:"game-time-line__options__option"},[t.createVNode(c9,t.mergeProps(m.value,{text:p.name,"is-active":t.unref(_).id===p.id,onClick:h=>g(p)}),null,16,["text","is-active","onClick"])]))),128))]),_:1}),t.withDirectives(t.createElementVNode("div",mee,[t.createVNode(Mq)],512),[[t.vShow,!1]])]),(t.openBlock(),t.createElementBlock("div",{class:"statistics-main__body",key:t.unref(f)},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(t.unref(_).componentName),{seasonSelected:{...e.seasonSelected},game:{...e.game},"tournament-type":t.unref(d).getters["general/getTournamentType"],"can-play-videos":e.canPlayVideos,"play-videos-privileges":e.playVideosPrivileges,onOpenmedia:c},null,40,["seasonSelected","game","tournament-type","can-play-videos","play-videos-privileges"]))]))]))}}),[["__scopeId","data-v-3723b86c"]]);function fC(e,a){return function(){return e.apply(a,arguments)}}const{toString:yee}=Object.prototype,{getPrototypeOf:e3}=Object,ug=(e=>a=>{const r=yee.call(a);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),fd=e=>(e=e.toLowerCase(),a=>ug(a)===e),pg=e=>a=>typeof a===e,{isArray:uh}=Array,Jm=pg("undefined");function _ee(e){return e!==null&&!Jm(e)&&e.constructor!==null&&!Jm(e.constructor)&&ec(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const gC=fd("ArrayBuffer");function vee(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&gC(e.buffer),a}const bee=pg("string"),ec=pg("function"),yC=pg("number"),hg=e=>e!==null&&typeof e=="object",xee=e=>e===!0||e===!1,mg=e=>{if(ug(e)!=="object")return!1;const a=e3(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},wee=fd("Date"),kee=fd("File"),Cee=fd("Blob"),Eee=fd("FileList"),See=e=>hg(e)&&ec(e.pipe),Tee=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||ec(e.append)&&((a=ug(e))==="formdata"||a==="object"&&ec(e.toString)&&e.toString()==="[object FormData]"))},Aee=fd("URLSearchParams"),Nee=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Qm(e,a,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let d,m;if(typeof e!="object"&&(e=[e]),uh(e))for(d=0,m=e.length;d<m;d++)a.call(null,e[d],d,e);else{const n=r?Object.getOwnPropertyNames(e):Object.keys(e),s=n.length;let i;for(d=0;d<s;d++)i=n[d],a.call(null,e[i],i,e)}}function _C(e,a){a=a.toLowerCase();const r=Object.keys(e);let d=r.length,m;for(;d-- >0;)if(m=r[d],a===m.toLowerCase())return m;return null}const vC=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),bC=e=>!Jm(e)&&e!==vC;function t3(){const{caseless:e}=bC(this)&&this||{},a={},r=(d,m)=>{const n=e&&_C(a,m)||m;mg(a[n])&&mg(d)?a[n]=t3(a[n],d):mg(d)?a[n]=t3({},d):uh(d)?a[n]=d.slice():a[n]=d};for(let d=0,m=arguments.length;d<m;d++)arguments[d]&&Qm(arguments[d],r);return a}const Bee=(e,a,r,{allOwnKeys:d}={})=>(Qm(a,(m,n)=>{r&&ec(m)?e[n]=fC(m,r):e[n]=m},{allOwnKeys:d}),e),Iee=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Mee=(e,a,r,d)=>{e.prototype=Object.create(a.prototype,d),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),r&&Object.assign(e.prototype,r)},Oee=(e,a,r,d)=>{let m,n,s;const i={};if(a=a||{},e==null)return a;do{for(m=Object.getOwnPropertyNames(e),n=m.length;n-- >0;)s=m[n],(!d||d(s,e,a))&&!i[s]&&(a[s]=e[s],i[s]=!0);e=r!==!1&&e3(e)}while(e&&(!r||r(e,a))&&e!==Object.prototype);return a},Pee=(e,a,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=a.length;const d=e.indexOf(a,r);return d!==-1&&d===r},Fee=e=>{if(!e)return null;if(uh(e))return e;let a=e.length;if(!yC(a))return null;const r=new Array(a);for(;a-- >0;)r[a]=e[a];return r},Ree=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&e3(Uint8Array)),Vee=(e,a)=>{const r=(e&&e[Symbol.iterator]).call(e);let d;for(;(d=r.next())&&!d.done;){const m=d.value;a.call(e,m[0],m[1])}},zee=(e,a)=>{let r;const d=[];for(;(r=e.exec(a))!==null;)d.push(r);return d},Dee=fd("HTMLFormElement"),Lee=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,r,d){return r.toUpperCase()+d}),xC=(({hasOwnProperty:e})=>(a,r)=>e.call(a,r))(Object.prototype),$ee=fd("RegExp"),wC=(e,a)=>{const r=Object.getOwnPropertyDescriptors(e),d={};Qm(r,(m,n)=>{let s;(s=a(m,n,e))!==!1&&(d[n]=s||m)}),Object.defineProperties(e,d)},jee=e=>{wC(e,(a,r)=>{if(ec(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const d=e[r];if(ec(d)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Uee=(e,a)=>{const r={},d=m=>{m.forEach(n=>{r[n]=!0})};return uh(e)?d(e):d(String(e).split(a)),r},Hee=()=>{},Gee=(e,a)=>(e=+e,Number.isFinite(e)?e:a),a3="abcdefghijklmnopqrstuvwxyz",kC="0123456789",CC={DIGIT:kC,ALPHA:a3,ALPHA_DIGIT:a3+a3.toUpperCase()+kC},Wee=(e=16,a=CC.ALPHA_DIGIT)=>{let r="";const{length:d}=a;for(;e--;)r+=a[Math.random()*d|0];return r};function qee(e){return!!(e&&ec(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Yee=e=>{const a=new Array(10),r=(d,m)=>{if(hg(d)){if(a.indexOf(d)>=0)return;if(!("toJSON"in d)){a[m]=d;const n=uh(d)?[]:{};return Qm(d,(s,i)=>{const _=r(s,m+1);!Jm(_)&&(n[i]=_)}),a[m]=void 0,n}}return d};return r(e,0)},Zee=fd("AsyncFunction"),Xee=e=>e&&(hg(e)||ec(e))&&ec(e.then)&&ec(e.catch),_r={isArray:uh,isArrayBuffer:gC,isBuffer:_ee,isFormData:Tee,isArrayBufferView:vee,isString:bee,isNumber:yC,isBoolean:xee,isObject:hg,isPlainObject:mg,isUndefined:Jm,isDate:wee,isFile:kee,isBlob:Cee,isRegExp:$ee,isFunction:ec,isStream:See,isURLSearchParams:Aee,isTypedArray:Ree,isFileList:Eee,forEach:Qm,merge:t3,extend:Bee,trim:Nee,stripBOM:Iee,inherits:Mee,toFlatObject:Oee,kindOf:ug,kindOfTest:fd,endsWith:Pee,toArray:Fee,forEachEntry:Vee,matchAll:zee,isHTMLForm:Dee,hasOwnProperty:xC,hasOwnProp:xC,reduceDescriptors:wC,freezeMethods:jee,toObjectSet:Uee,toCamelCase:Lee,noop:Hee,toFiniteNumber:Gee,findKey:_C,global:vC,isContextDefined:bC,ALPHABET:CC,generateString:Wee,isSpecCompliantForm:qee,toJSONObject:Yee,isAsyncFn:Zee,isThenable:Xee};function zn(e,a,r,d,m){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),r&&(this.config=r),d&&(this.request=d),m&&(this.response=m)}_r.inherits(zn,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:_r.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const EC=zn.prototype,SC={};["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=>{SC[e]={value:e}}),Object.defineProperties(zn,SC),Object.defineProperty(EC,"isAxiosError",{value:!0}),zn.from=(e,a,r,d,m,n)=>{const s=Object.create(EC);return _r.toFlatObject(e,s,function(i){return i!==Error.prototype},i=>i!=="isAxiosError"),zn.call(s,e.message,a,r,d,m),s.cause=e,s.name=e.name,n&&Object.assign(s,n),s};const Kee=null;function r3(e){return _r.isPlainObject(e)||_r.isArray(e)}function TC(e){return _r.endsWith(e,"[]")?e.slice(0,-2):e}function AC(e,a,r){return e?e.concat(a).map(function(d,m){return d=TC(d),!r&&m?"["+d+"]":d}).join(r?".":""):a}function Jee(e){return _r.isArray(e)&&!e.some(r3)}const Qee=_r.toFlatObject(_r,{},null,function(e){return/^is[A-Z]/.test(e)});function fg(e,a,r){if(!_r.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,r=_r.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,l){return!_r.isUndefined(l[c])});const d=r.metaTokens,m=r.visitor||f,n=r.dots,s=r.indexes,i=(r.Blob||typeof Blob<"u"&&Blob)&&_r.isSpecCompliantForm(a);if(!_r.isFunction(m))throw new TypeError("visitor must be a function");function _(c){if(c===null)return"";if(_r.isDate(c))return c.toISOString();if(!i&&_r.isBlob(c))throw new zn("Blob is not supported. Use a Buffer instead.");return _r.isArrayBuffer(c)||_r.isTypedArray(c)?i&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function f(c,l,u){let p=c;if(c&&!u&&typeof c=="object"){if(_r.endsWith(l,"{}"))l=d?l:l.slice(0,-2),c=JSON.stringify(c);else if(_r.isArray(c)&&Jee(c)||(_r.isFileList(c)||_r.endsWith(l,"[]"))&&(p=_r.toArray(c)))return l=TC(l),p.forEach(function(h,y){!(_r.isUndefined(h)||h===null)&&a.append(s===!0?AC([l],y,n):s===null?l:l+"[]",_(h))}),!1}return r3(c)?!0:(a.append(AC(u,l,n),_(c)),!1)}const o=[],g=Object.assign(Qee,{defaultVisitor:f,convertValue:_,isVisitable:r3});function x(c,l){if(!_r.isUndefined(c)){if(o.indexOf(c)!==-1)throw Error("Circular reference detected in "+l.join("."));o.push(c),_r.forEach(c,function(u,p){(!(_r.isUndefined(u)||u===null)&&m.call(a,u,_r.isString(p)?p.trim():p,l,g))===!0&&x(u,l?l.concat(p):[p])}),o.pop()}}if(!_r.isObject(e))throw new TypeError("data must be an object");return x(e),a}function NC(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return a[r]})}function n3(e,a){this._pairs=[],e&&fg(e,this,a)}const BC=n3.prototype;BC.append=function(e,a){this._pairs.push([e,a])},BC.toString=function(e){const a=e?function(r){return e.call(this,r,NC)}:NC;return this._pairs.map(function(r){return a(r[0])+"="+a(r[1])},"").join("&")};function ete(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function IC(e,a,r){if(!a)return e;const d=r&&r.encode||ete,m=r&&r.serialize;let n;if(m?n=m(a,r):n=_r.isURLSearchParams(a)?a.toString():new n3(a,r).toString(d),n){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+n}return e}const MC=class{constructor(){this.handlers=[]}use(a,r,d){return this.handlers.push({fulfilled:a,rejected:r,synchronous:d?d.synchronous:!1,runWhen:d?d.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){_r.forEach(this.handlers,function(r){r!==null&&a(r)})}},OC={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},tte=typeof URLSearchParams<"u"?URLSearchParams:n3,ate=typeof FormData<"u"?FormData:null,rte=typeof Blob<"u"?Blob:null,nte={isBrowser:!0,classes:{URLSearchParams:tte,FormData:ate,Blob:rte},protocols:["http","https","file","blob","url","data"]},PC=typeof window<"u"&&typeof document<"u",ite=(e=>PC&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),ote=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),ste=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:PC,hasStandardBrowserEnv:ite,hasStandardBrowserWebWorkerEnv:ote},Symbol.toStringTag,{value:"Module"})),gd={...ste,...nte};function lte(e,a){return fg(e,new gd.classes.URLSearchParams,Object.assign({visitor:function(r,d,m,n){return gd.isNode&&_r.isBuffer(r)?(this.append(d,r.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},a))}function cte(e){return _r.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function dte(e){const a={},r=Object.keys(e);let d;const m=r.length;let n;for(d=0;d<m;d++)n=r[d],a[n]=e[n];return a}function FC(e){function a(r,d,m,n){let s=r[n++];if(s==="__proto__")return!0;const i=Number.isFinite(+s),_=n>=r.length;return s=!s&&_r.isArray(m)?m.length:s,_?(_r.hasOwnProp(m,s)?m[s]=[m[s],d]:m[s]=d,!i):((!m[s]||!_r.isObject(m[s]))&&(m[s]=[]),a(r,d,m[s],n)&&_r.isArray(m[s])&&(m[s]=dte(m[s])),!i)}if(_r.isFormData(e)&&_r.isFunction(e.entries)){const r={};return _r.forEachEntry(e,(d,m)=>{a(cte(d),m,r,0)}),r}return null}function ute(e,a,r){if(_r.isString(e))try{return(a||JSON.parse)(e),_r.trim(e)}catch(d){if(d.name!=="SyntaxError")throw d}return(r||JSON.stringify)(e)}const i3={transitional:OC,adapter:["xhr","http"],transformRequest:[function(e,a){const r=a.getContentType()||"",d=r.indexOf("application/json")>-1,m=_r.isObject(e);if(m&&_r.isHTMLForm(e)&&(e=new FormData(e)),_r.isFormData(e))return d?JSON.stringify(FC(e)):e;if(_r.isArrayBuffer(e)||_r.isBuffer(e)||_r.isStream(e)||_r.isFile(e)||_r.isBlob(e))return e;if(_r.isArrayBufferView(e))return e.buffer;if(_r.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let n;if(m){if(r.indexOf("application/x-www-form-urlencoded")>-1)return lte(e,this.formSerializer).toString();if((n=_r.isFileList(e))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return fg(n?{"files[]":e}:e,s&&new s,this.formSerializer)}}return m||d?(a.setContentType("application/json",!1),ute(e)):e}],transformResponse:[function(e){const a=this.transitional||i3.transitional,r=a&&a.forcedJSONParsing,d=this.responseType==="json";if(e&&_r.isString(e)&&(r&&!this.responseType||d)){const m=!(a&&a.silentJSONParsing)&&d;try{return JSON.parse(e)}catch(n){if(m)throw n.name==="SyntaxError"?zn.from(n,zn.ERR_BAD_RESPONSE,this,null,this.response):n}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:gd.classes.FormData,Blob:gd.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_r.forEach(["delete","get","head","post","put","patch"],e=>{i3.headers[e]={}});const o3=i3,pte=_r.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"]),hte=e=>{const a={};let r,d,m;return e&&e.split(`
|
|
33
|
+
`}}}},getChartSeries(e,a){let r,d;return this.showPostMatchData?(r={name:`${this.homeTeam.acronym}`,data:[],dataTotal:[]},d={name:`${this.visitingTeam.acronym}`,data:[],dataTotal:[]},a.arraySubcategories=[],Object.values(e).forEach((m,n)=>{a.xaxis.categories.push(this.prepareLabels(m,n)),a.arraySubcategories.push(m);const s=m.homeTeam[this.homeTeamStatisticsType].totalPostGame+m.visitingTeam[this.visitingTeamStatisticsType].totalPostGame;r.data.push(Math.round(120*(s?m.homeTeam[this.homeTeamStatisticsType].totalPostGame/s:0))),r.dataTotal.push(m.homeTeam[this.homeTeamStatisticsType].totalPostGame),d.data.push(Math.round(120*(s?m.visitingTeam[this.visitingTeamStatisticsType].totalPostGame/s:0))),d.dataTotal.push(m.visitingTeam[this.visitingTeamStatisticsType].totalPostGame)})):(r={name:`${this.showLiveData?"Live":"Histórico"} ${this.homeTeam.acronym}`,data:[],dataTotal:[]},d={name:`${this.showLiveData?"Live":"Histórico"} ${this.visitingTeam.acronym}`,data:[],dataTotal:[]},a.arraySubcategories=[],Object.values(e).forEach((m,n)=>{a.xaxis.categories.push(this.prepareLabels(m,n)),a.arraySubcategories.push(m);let s,i,_,f;m.homeTeam[this.homeTeamStatisticsType].leader.points,m.visitingTeam[this.visitingTeamStatisticsType].leader.points;const o=m.homeTeam.accomplished.avgPostGame+m.visitingTeam.accomplished.avgPostGame;if(!this.showLiveData)this.gameForAnalysis.game_status!==1&&m.generalCategoriesIds.accomplished===3?(s=m.homeTeam.accomplished.avgPostGame/o,_=m.homeTeam.accomplished.totalPostGame):(s=o?m.homeTeam[this.homeTeamStatisticsType].avgPostGame/o:0,_=m.homeTeam[this.homeTeamStatisticsType].totalPostGame);else{const g=m.homeTeam[this.homeTeamStatisticsType].totalLive+m.visitingTeam[this.visitingTeamStatisticsType].totalLive;s=g?m.homeTeam[this.homeTeamStatisticsType].totalLive/g:0,_=m.homeTeam[this.homeTeamStatisticsType].totalLive}if(!this.showLiveData)this.gameForAnalysis.game_status!==1&&m.generalCategoriesIds.accomplished===3?(i=m.visitingTeam.accomplished.avgPostGame/o,f=m.visitingTeam.accomplished.totalPostGame):(i=o?m.visitingTeam[this.visitingTeamStatisticsType].avgPostGame/o:0,f=m.visitingTeam[this.visitingTeamStatisticsType].totalPostGame);else{const g=m.homeTeam[this.homeTeamStatisticsType].totalLive+m.visitingTeam[this.visitingTeamStatisticsType].totalLive;i=g?m.visitingTeam[this.visitingTeamStatisticsType].totalLive/g:0,f=m.visitingTeam[this.visitingTeamStatisticsType].totalLive}r.data.push(Math.round(120*s)),r.dataTotal.push(Math.round(_)),d.data.push(Math.round(120*i)),d.dataTotal.push(Math.round(f))})),[r,d]},onHomeTeamPlaysTypeChanged(e){this.homeTeamSelectedPlaysType=e},onVisitingTeamPlaysTypeChanged(e){this.visitingTeamSelectedPlaysType=e},getSubcategoryData(e,a="homeTeam"){return e.id==="3-0"&&(e[a].accomplished.totalLiveBothTeams=e.homeTeam.accomplished.totalLive+e.visitingTeam.accomplished.totalLive),e[a].accomplished||0},showModal(e,a,r){const d=r===0?"homeTeam":"visitingTeam",m=e.config.arraySubcategories[a]||{};this.tooltip.isLeagueAvgVisible=m.id!=="3-0",this.tooltip.data=this.getSubcategoryData(m,d),this.tooltip.local=r===0,this.tooltip.names=m.names,this.tooltip.keyName=this.subcategoryName,this.tooltip.leagueAvg=this.leagueAvg(m);const n=e.globals.clientX||0,s=e.globals.clientY||0;this.globals.x=n,this.globals.y=s,this.tooltip.x=n,this.tooltip.y=s>700?s-250:s;const i=m.generalCategoriesIds.accomplished===3;if(i){const _=m.homeTeam.accomplished.avgPostGame+m.visitingTeam.accomplished.avgPostGame;this.tooltip.numberValue=_?m[d].accomplished.avgPostGame/_*100:0}else this.tooltip.numberValue=null;return this.tooltip.booleanIsPercent=i,this.tooltip.show=!0,this.tooltip.data},updateTooltip(e){const r=Math.abs(e.clientX-this.globals.x),d=Math.abs(e.clientY-this.globals.y);(r>5||d>5)&&(this.tooltip.show=!1)},prepareLabels(e,a){let r=e.name||e.names[this.subcategoryName]||e.names["0-0"];if(a===0)return r;const d=13;if(r.length>d){let m=r.split(" ");r=[];let n="",s="",i=m.slice(-1)[0];m.forEach(_=>{n+=` ${_} `,n.length>d&&(r.push(s.trim()),n=_),s=n,i===_&&r.push(s.trim())})}return r},leagueAvg(e){return e.generalCategoriesIds.accomplished===3?(e.homeTeam.accomplished.arrayRankings.reduce((a,r)=>a+r.points,0)/e.homeTeam.accomplished.arrayRankings.length*100).toFixed(2):this.avg(e,this.accomplished)}}},nC=e=>(t.pushScopeId("data-v-383baec7"),e=e(),t.popScopeId(),e),wK={key:0,class:"distribution-leyend"},kK=nC(()=>t.createElementVNode("br",null,null,-1)),CK={class:"distribution"},EK={class:"distribution__container"},SK={class:"distribution__container__chart-type__title"},TK=nC(()=>t.createElementVNode("div",{class:"distribution__container__chart-type__controls"},null,-1)),AK={class:"distribution__container__chart-type__chart"};function NK(e,a,r,d,m,n){const s=t.resolveComponent("apexchart");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.gameForAnalysis.game_status==4?(t.openBlock(),t.createElementBlock("div",wK,[t.createTextVNode("Faltan "),t.createElementVNode("span",null,t.toDisplayString(n.timeLeft),1),t.createTextVNode(" para el inicio."),kK,t.createTextVNode("Las estadísticas corresponden a sus promedios por partido del torneo "),t.createElementVNode("span",null,t.toDisplayString(r.seasonSelected.name),1)])):t.createCommentVNode("",!0),t.createElementVNode("div",CK,[t.createElementVNode("div",EK,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.arrayDataForCharts,(i,_)=>(t.openBlock(),t.createElementBlock("div",{class:"distribution__container__chart-type",key:_},[t.createElementVNode("div",SK,t.toDisplayString(i.name),1),TK,t.createElementVNode("div",AK,[(t.openBlock(),t.createBlock(s,{type:"radar",height:m.height,options:m.arrayChartOptions[_],series:m.arrayFilledSeries[_],key:m.chartKeyCounter+m.updateCategory+_},null,8,["height","options","series"]))])]))),128))])])],64)}const BK=Si(xK,[["render",NK],["__scopeId","data-v-383baec7"]]),IK=(e,a)=>{const r=e.__vccOpts||e;for(const[d,m]of a)r[d]=m;return r},Qb={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(a){throw new Error(a)}}}},computed:{customStyle(){return{width:this.width,height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,backgroundColor:this.backgroundColor,circleColor:this.circleColorSwitch}},customText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}}},methods:{handleSwitchChange(e){e.target.checked?this.$emit("change",this.textOptionRight):this.$emit("change",this.textOptionLeft)}}},iC=()=>{t.useCssVars(e=>({"1b04779e":e.widthCircle,c974bf22:e.heightCircle}))},oC=Qb.setup;Qb.setup=oC?(e,a)=>(iC(),oC(e,a)):iC;const MK={key:0,class:"text-left"},OK=["width","src"],PK=["checked"],FK=["width","src"],RK={key:3,class:"text-right"};function VK(e,a,r,d,m,n){return t.openBlock(),t.createElementBlock("div",{class:"gsc-switch-radio",style:t.normalizeStyle(n.customText)},[r.textOptionLeft!=""&&!r.hiddenLabels?(t.openBlock(),t.createElementBlock("span",MK,t.toDisplayString(r.textOptionLeft),1)):t.createCommentVNode("",!0),r.iconA!=""?(t.openBlock(),t.createElementBlock("img",{key:1,width:r.widthIcons,src:r.iconA},null,8,OK)):t.createCommentVNode("",!0),t.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:a[0]||(a[0]=(...s)=>n.handleSwitchChange&&n.handleSwitchChange(...s)),checked:m.OptionDefault},null,40,PK),t.createElementVNode("label",{for:"toggle-btn",style:t.normalizeStyle([n.customStyle,{"--circle-color":r.circleColorSwitch}])},null,4),r.iconB!=""?(t.openBlock(),t.createElementBlock("img",{key:2,width:r.widthIcons,src:r.iconB},null,8,FK)):t.createCommentVNode("",!0),r.textOptionRight!=""&&!r.hiddenLabels?(t.openBlock(),t.createElementBlock("span",RK,t.toDisplayString(r.textOptionRight),1)):t.createCommentVNode("",!0)],4)}const zK=IK(Qb,[["render",VK],["__scopeId","data-v-e2a20444"]]),BBt="",IBt="",DK={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 LK(e,a,r,d,m,n){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["box-tooltip",n.showTooltip]),style:t.normalizeStyle(n.positionTooltip),onClick:a[0]||(a[0]=(...s)=>n.tooltipClick&&n.tooltipClick(...s))},[t.renderSlot(e.$slots,"default",{},void 0,!0)],6)}const sC=Si(DK,[["render",LK],["__scopeId","data-v-33a39744"]]),MBt="",$K={name:"SoccerChalkboard",components:{Tooltip:sC},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:{...qi("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,a)=>({id:a,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((d,m)=>[...d,m.categories],[]);return this.preparedPlays.filter(d=>this.findCategoryInPlay(e,d)).reduce((d,m)=>{let n=this.localCategories.find(s=>this.findCategoryInPlay(s.categories,m));if(n){let s={category:n.id,categoryName:n.name,arrowColor:n.negative?this.negativeColor:n.color,arrowMarkerColor:n.negative?"url(#arrow-negative)":`url(#arrow-${n.id})`,markerColor:n.color,jersey:m.jersey_number,matchlapse:m.matchLapse,playerName:m.player_name,photo:m.photo,rivalLogo:m.rival_id,x1:n.invert.includes(m.categoryId)?100-m[`x${n.points[0]}`]:m[`x${n.points[0]}`],y1:n.invert.includes(m.categoryId)?100-m[`y${n.points[0]}`]:m[`y${n.points[0]}`],x2:n.invert.includes(m.categoryId)?100-m[`x${n.points[1]}`]:m[`x${n.points[1]}`],y2:n.invert.includes(m.categoryId)?100-m[`y${n.points[1]}`]:m[`y${n.points[1]}`],x3:n.invert.includes(m.categoryId)?100-m[`x${n.points[2]}`]:m[`x${n.points[2]}`],y3:n.invert.includes(m.categoryId)?100-m[`y${n.points[2]}`]:m[`y${n.points[2]}`],momentOfPlay:m.moment_of_play,isOwnGoal:n.invert.includes(m.categoryId),xGi:m.xGi,xGf:m.xGf};d.push(s)}return d},[])}},methods:{findCategoryInPlay(e,a){return e.find(r=>typeof r=="number"?r===a.categoryId:r.includes(a.categoryId))},onMouseOver(e,a){this.dataPlay.playerName=a.playerName||"",this.dataPlay.photo=a.photo||"",this.dataPlay.minute=parseInt(a.momentOfPlay.split(":")[0])||"",this.dataPlay.rivalLogo=a.rivalLogo||"",this.dataPlay.categoryName=a.categoryName||"",this.dataPlay.rivalName=this.team=="Visiting"?this.homeTeam.colloquial_name:this.visitingTeam.colloquial_name,this.dataPlay.xGi=String(a.xGi),this.dataPlay.xGf=String(a.xGf),this.dataPlay.isOwnGoal=a.isOwnGoal,this.data.visible=!0},onMouseLeave(){this.data.visible=!1}}},Xm=e=>(t.pushScopeId("data-v-883eff7a"),e=e(),t.popScopeId(),e),jK={class:"soccer-chalkboard-xg"},UK={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 490 684","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"soccer-chalkboard"},HK={xmlns:"http://www.w3.org/2000/svg",viewBox:"30 0 452 684","xmlns:xlink":"http://www.w3.org/1999/xlink"},GK=Xm(()=>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)),WK=["id"],qK=["fill"],YK=Xm(()=>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)),ZK=["id"],XK=["x1","y1","x2","y2","stroke"],KK=["x1","y1","x2","y2","stroke","marker-end"],JK=["onMouseover"],QK=["x","y","fill"],eJ=["x","y"],tJ={class:"tooltip-data has-text-left"},aJ={class:"bold"},rJ={class:"tooltip-image"},nJ={class:"tooltip-image"},iJ=["src"],oJ={class:"tooltip-xg"},sJ={key:0},lJ=Xm(()=>t.createElementVNode("span",null,"xGi:",-1)),cJ=Xm(()=>t.createElementVNode("div",{class:"tooltip-xg-separator"},null,-1)),dJ={key:1},uJ=Xm(()=>t.createElementVNode("span",null,"xGf:",-1));function pJ(e,a,r,d,m,n){const s=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock("div",jK,[(t.openBlock(),t.createElementBlock("svg",UK,[(t.openBlock(),t.createElementBlock("svg",HK,[t.createElementVNode("defs",null,[GK,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.localCategories,i=>(t.openBlock(),t.createElementBlock("marker",{key:`arrow-color-${i.id}`,id:`arrow-${i.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:i.color},null,8,qK)],8,WK))),128)),YK]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.graphPlays,i=>(t.openBlock(),t.createElementBlock("g",{key:i.id,id:`play-${i.playId}`},[t.createElementVNode("line",{x1:`${i.x1}%`,y1:`${i.y1}%`,x2:`${i.x2}%`,y2:`${i.y2}%`,stroke:i.arrowColor,"stroke-width":"2"},null,8,XK),t.createElementVNode("line",{x1:`${i.x2}%`,y1:`${i.y2}%`,x2:`${i.x3}%`,y2:`${i.y3}%`,stroke:i.arrowColor,"stroke-width":"2","marker-end":i.arrowMarkerColor},null,8,KK),t.createElementVNode("g",{onMouseover:_=>n.onMouseOver(_,i),onMouseleave:a[0]||(a[0]=(..._)=>n.onMouseLeave&&n.onMouseLeave(..._)),class:"is-pointer"},[t.createElementVNode("rect",{x:`${i.x1}%`,y:`${i.y1}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":"2",fill:i.markerColor,stroke:"#999",rx:"14",ry:"14"},null,8,QK),t.createElementVNode("text",{"text-anchor":"middle","dominant-baseline":"middle",x:`${i.x1}%`,y:`${i.y1}%`,dy:"1","font-size":"15",fill:"#fff","font-family":"'Poppins-SemiBold', sans-serif"},t.toDisplayString(i.jersey),9,eJ)],40,JK)],8,ZK))),128))]))])),t.createVNode(s,{data:m.data},{default:t.withCtx(()=>[t.createElementVNode("div",tJ,[t.createElementVNode("div",null,[t.createElementVNode("span",aJ,t.toDisplayString(m.dataPlay.isOwnGoal?"Autogol":m.dataPlay.categoryName),1)]),t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(m.dataPlay.playerName)+" ",1),t.createElementVNode("div",rJ,[t.createElementVNode("div",{class:"tooltip-image-player",style:t.normalizeStyle("background: url("+m.dataPlay.photo+") top")},null,4)])]),t.createElementVNode("div",null,"Minuto: "+t.toDisplayString(m.dataPlay.minute)+"'",1),t.createElementVNode("div",null,[t.createTextVNode(" Rival: "),t.createElementVNode("div",nJ,[t.createElementVNode("img",{src:m.dataPlay.rivalLogo},null,8,iJ)])]),t.createElementVNode("div",oJ,[/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(m.dataPlay.xGi)&&m.dataPlay.xGi<=1&&!m.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",sJ,[lJ,t.createTextVNode(" "+t.toDisplayString(Number(m.dataPlay.xGi)),1)])):t.createCommentVNode("",!0),cJ,/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(m.dataPlay.xGf)&&m.dataPlay.xGf<=1&&!m.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",dJ,[uJ,t.createTextVNode(" "+t.toDisplayString(Number(m.dataPlay.xGf)),1)])):t.createCommentVNode("",!0)])])]),_:1},8,["data"])])}const lC=Si($K,[["render",pJ],["__scopeId","data-v-883eff7a"]]),dg=[{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]}],OBt="",hJ={name:"Xg",components:{SoccerChalkboard:lC},props:{},data(){return{categories:dg}},computed:{...Ol("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...Ol("general",["booleanIsStatisticModalOpen"]),...qi("xgGeneral",["playsLocal","goalsQtyLocal","shotsOnGoalQtyLocal","xGLocal"]),...qi("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData","game","getGameForAnalysis"]),...qi("loginGeneral",["getPremiumAccount","getIsGolstats"]),...qi("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:{...Nu("general",["setVideoSrc","setVideoModalVisibility"]),...Nu("xgGeneral",["setTeamSelected"]),...G1("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()}},cC=e=>(t.pushScopeId("data-v-6fa9fc78"),e=e(),t.popScopeId(),e),mJ={class:"xg-container"},fJ={class:"xg-container__info"},gJ=cC(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),yJ={class:"table"},_J={class:"table__row"},vJ={class:"table__row__title"},bJ={class:"table__row__value"},xJ=["src"],wJ={class:"table__row"},kJ={class:"table__row__title"},CJ={class:"table__row__value"},EJ={class:"table__row"},SJ={class:"table__row__title"},TJ={class:"table__row__value"},AJ=cC(()=>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)),NJ={class:"xg-container__field"};function BJ(e,a,r,d,m,n){const s=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",mJ,[t.createElementVNode("div",fJ,[gJ,t.createElementVNode("div",yJ,[t.createElementVNode("div",_J,[t.createElementVNode("div",vJ,t.toDisplayString(n.gxInfoItems[0].title),1),t.createElementVNode("div",bJ,[t.createTextVNode(t.toDisplayString(n.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:n.stringSelectedTeamLogo},null,8,xJ)])]),t.createElementVNode("div",wJ,[t.createElementVNode("div",kJ,t.toDisplayString(n.gxInfoItems[1].title),1),t.createElementVNode("div",CJ,t.toDisplayString(n.gxInfoItems[1].value),1)]),t.createElementVNode("div",EJ,[t.createElementVNode("div",SJ,t.toDisplayString(n.gxInfoItems[2].title),1),t.createElementVNode("div",TJ,t.toDisplayString(n.gxInfoItems[2].value),1)])]),AJ]),t.createElementVNode("div",NJ,[t.createVNode(s,{plays:e.playsLocal,categories:m.categories,team:e.team},null,8,["plays","categories","team"])])])}const IJ=Si(hJ,[["render",BJ],["__scopeId","data-v-6fa9fc78"]]),PBt="",MJ={name:"Xg",components:{SoccerChalkboard:lC},props:{team:{type:String,default:"Visiting"}},data(){return{categories:dg}},computed:{...Ol("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...Ol("general",["booleanIsStatisticModalOpen"]),...qi("xgGeneral",["playsAway","goalsQtyAway","shotsOnGoalQtyAway","xGAway"]),...qi("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData","game","getGameForAnalysis"]),...qi("loginGeneral",["getPremiumAccount","getIsGolstats"]),...qi("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:{...Nu("general",["setVideoSrc","setVideoModalVisibility"]),...Nu("xgGeneral",["setTeamSelected"]),...G1("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()}},dC=e=>(t.pushScopeId("data-v-03602455"),e=e(),t.popScopeId(),e),OJ={class:"xg-container"},PJ={class:"xg-container__info"},FJ=dC(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),RJ={class:"table"},VJ={class:"table__row"},zJ={class:"table__row__title"},DJ={class:"table__row__value"},LJ=["src"],$J={class:"table__row"},jJ={class:"table__row__title"},UJ={class:"table__row__value"},HJ={class:"table__row"},GJ={class:"table__row__title"},WJ={class:"table__row__value"},qJ=dC(()=>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)),YJ={class:"xg-container__field"};function ZJ(e,a,r,d,m,n){const s=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",OJ,[t.createElementVNode("div",PJ,[FJ,t.createElementVNode("div",RJ,[t.createElementVNode("div",VJ,[t.createElementVNode("div",zJ,t.toDisplayString(n.gxInfoItems[0].title),1),t.createElementVNode("div",DJ,[t.createTextVNode(t.toDisplayString(n.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:n.stringSelectedTeamLogo},null,8,LJ)])]),t.createElementVNode("div",$J,[t.createElementVNode("div",jJ,t.toDisplayString(n.gxInfoItems[1].title),1),t.createElementVNode("div",UJ,t.toDisplayString(n.gxInfoItems[1].value),1)]),t.createElementVNode("div",HJ,[t.createElementVNode("div",GJ,t.toDisplayString(n.gxInfoItems[2].title),1),t.createElementVNode("div",WJ,t.toDisplayString(n.gxInfoItems[2].value),1)])]),qJ]),t.createElementVNode("div",YJ,[t.createVNode(s,{plays:e.playsAway,categories:m.categories,team:r.team},null,8,["plays","categories","team"])])])])}const XJ=Si(MJ,[["render",ZJ],["__scopeId","data-v-03602455"]]),FBt="",KJ={name:"SoccerChalkboard",components:{Tooltip:sC},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:{...qi("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,a)=>({id:a,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((d,m)=>[...d,m.categories],[]);return this.preparedPlays.filter(d=>this.findCategoryInPlay(e,d)).reduce((d,m)=>{let n=this.localCategories.find(s=>this.findCategoryInPlay(s.categories,m));if(n){let s={category:n.id,categoryName:n.name,arrowColor:n.negative?this.negativeColor:n.color,arrowMarkerColor:n.negative?"url(#arrow-negative)":`url(#arrow-${n.id})`,markerColor:n.color,jersey:m.jersey_number,matchlapse:m.matchLapse,playerName:m.player_name,photo:m.photo,rivalLogo:m.rival_id,x1:n.invert.includes(m.categoryId)?100-m[`x${n.points[0]}`]:m[`x${n.points[0]}`],y1:n.invert.includes(m.categoryId)?100-m[`y${n.points[0]}`]:m[`y${n.points[0]}`],x2:n.invert.includes(m.categoryId)?100-m[`x${n.points[1]}`]:m[`x${n.points[1]}`],y2:n.invert.includes(m.categoryId)?100-m[`y${n.points[1]}`]:m[`y${n.points[1]}`],x3:n.invert.includes(m.categoryId)?100-m[`x${n.points[2]}`]:m[`x${n.points[2]}`],y3:n.invert.includes(m.categoryId)?100-m[`y${n.points[2]}`]:m[`y${n.points[2]}`],momentOfPlay:m.moment_of_play,isOwnGoal:n.invert.includes(m.categoryId),xGi:m.xGi,xGf:m.xGf};d.push(s)}return d},[])}},methods:{findCategoryInPlay(e,a){return e.find(r=>typeof r=="number"?r===a.categoryId:r.includes(a.categoryId))},onMouseOver(e,a){this.dataPlay.playerName=a.playerName||"",this.dataPlay.photo=a.photo||"",this.dataPlay.minute=parseInt(a.momentOfPlay.split(":")[0])||"",this.dataPlay.rivalLogo=a.rivalLogo||"",this.dataPlay.categoryName=a.categoryName||"",this.dataPlay.rivalName=this.team=="Visiting"?this.homeTeam.team_name:this.visitingTeam.team_name,this.dataPlay.xGi=String(a.xGi),this.dataPlay.xGf=String(a.xGf),this.dataPlay.isOwnGoal=a.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}}},Km=e=>(t.pushScopeId("data-v-f6c30694"),e=e(),t.popScopeId(),e),JJ={class:"soccer-chalkboard-xg"},QJ={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 490 684","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"soccer-chalkboard"},eQ={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 452 684","xmlns:xlink":"http://www.w3.org/1999/xlink"},tQ=Km(()=>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)),aQ=["id"],rQ=["fill"],nQ=Km(()=>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)),iQ=["id"],oQ=["x1","y1","x2","y2","stroke"],sQ=["x1","y1","x2","y2","stroke","marker-end"],lQ=["onMouseover"],cQ=["x","y","fill"],dQ=["x","y"],uQ={class:"tooltip-data has-text-left"},pQ={class:"bold"},hQ={class:"tooltip-image"},mQ={class:"tooltip-image"},fQ=["src"],gQ={class:"tooltip-xg"},yQ={key:0},_Q=Km(()=>t.createElementVNode("span",null,"xGi:",-1)),vQ=Km(()=>t.createElementVNode("div",{class:"tooltip-xg-separator"},null,-1)),bQ={key:1},xQ=Km(()=>t.createElementVNode("span",null,"xGf:",-1));function wQ(e,a,r,d,m,n){const s=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock("div",JJ,[(t.openBlock(),t.createElementBlock("svg",QJ,[(t.openBlock(),t.createElementBlock("svg",eQ,[t.createElementVNode("defs",null,[tQ,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.localCategories,i=>(t.openBlock(),t.createElementBlock("marker",{key:`arrow-color-${i.id}`,id:`arrow-${i.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:i.color},null,8,rQ)],8,aQ))),128)),nQ]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.graphPlays,i=>(t.openBlock(),t.createElementBlock("g",{key:i.id,id:`play-${i.playId}`},[t.createElementVNode("line",{x1:`${i.x1}%`,y1:`${i.y1}%`,x2:`${i.x2}%`,y2:`${i.y2}%`,stroke:i.arrowColor,"stroke-width":"2"},null,8,oQ),t.createElementVNode("line",{x1:`${i.x2}%`,y1:`${i.y2}%`,x2:`${i.x3}%`,y2:`${i.y3}%`,stroke:i.arrowColor,"stroke-width":"2","marker-end":i.arrowMarkerColor},null,8,sQ),t.createElementVNode("g",{onMouseover:_=>n.onMouseOver(_,i),onMouseleave:a[0]||(a[0]=(..._)=>n.onMouseLeave&&n.onMouseLeave(..._)),class:"is-pointer"},[t.createElementVNode("rect",{x:`${i.x1}%`,y:`${i.y1}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":"2",fill:i.markerColor,stroke:"#aaa",rx:"14",ry:"14"},null,8,cQ),t.createElementVNode("text",{"text-anchor":"middle","dominant-baseline":"middle",x:`${i.x1}%`,y:`${i.y1}%`,dy:"1","font-size":"15",stroke:"white","font-family":"Poppins, sans-serif"},t.toDisplayString(i.jersey),9,dQ)],40,lQ)],8,iQ))),128))]))])),t.createVNode(s,{data:m.data},{default:t.withCtx(()=>[t.createElementVNode("div",uQ,[t.createElementVNode("div",null,[t.createElementVNode("span",pQ,t.toDisplayString(m.dataPlay.isOwnGoal?"Autogol":m.dataPlay.categoryName),1)]),t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(m.dataPlay.playerName)+" ",1),t.createElementVNode("div",hQ,[t.createElementVNode("div",{class:"tooltip-image-player",style:t.normalizeStyle("background: url("+m.dataPlay.photo+") top")},null,4)])]),t.createElementVNode("div",null,"Minuto: "+t.toDisplayString(m.dataPlay.minute)+"'",1),t.createElementVNode("div",null,[t.createTextVNode(" Rival: "),t.createElementVNode("div",mQ,[t.createElementVNode("img",{src:m.dataPlay.rivalLogo},null,8,fQ)])]),t.createElementVNode("div",gQ,[/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(m.dataPlay.xGi)&&m.dataPlay.xGi<=1&&!m.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",yQ,[_Q,t.createTextVNode(" "+t.toDisplayString(Number(m.dataPlay.xGi)),1)])):t.createCommentVNode("",!0),vQ,/^[+]?([0-1]+(?:[\.][0-9]*)?|\.[0-9]+)$/.test(m.dataPlay.xGf)&&m.dataPlay.xGf<=1&&!m.dataPlay.isOwnGoal?(t.openBlock(),t.createElementBlock("div",bQ,[xQ,t.createTextVNode(" "+t.toDisplayString(Number(m.dataPlay.xGf)),1)])):t.createCommentVNode("",!0)])])]),_:1},8,["data"])])}const uC=Si(KJ,[["render",wQ],["__scopeId","data-v-f6c30694"]]),RBt="",kQ={name:"Xg",components:{SoccerChalkboard:uC},props:{},data(){return{categories:dg}},computed:{...Ol("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...Ol("general",["booleanIsStatisticModalOpen"]),...qi("xgGeneral",["playsLocal","goalsQtyLocal","shotsOnGoalQtyLocal","xGLocal"]),...qi("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...qi("loginGeneral",["getPremiumAccount","getIsGolstats"]),...qi("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,a){e!==a&&this.fillXgPlays()}}},methods:{...Nu("general",["setVideoSrc","setVideoModalVisibility"]),...Nu("xgGeneral",["setTeamSelected"]),...G1("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()}},pC=e=>(t.pushScopeId("data-v-fb5342de"),e=e(),t.popScopeId(),e),CQ={class:"xg-container"},EQ=pC(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),SQ={class:"xg-container__field"},TQ={class:"xg-container__info"},AQ={class:"table"},NQ={class:"table__row"},BQ={class:"table__row__title"},IQ={class:"table__row__value"},MQ=["src"],OQ={class:"table__row"},PQ={class:"table__row__title"},FQ={class:"table__row__value"},RQ={class:"table__row"},VQ={class:"table__row__title"},zQ={class:"table__row__value"},DQ=pC(()=>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 LQ(e,a,r,d,m,n){const s=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",CQ,[EQ,t.createElementVNode("div",SQ,[t.createVNode(s,{plays:e.playsLocal,categories:m.categories,team:e.team},null,8,["plays","categories","team"])]),t.createElementVNode("div",TQ,[t.createElementVNode("div",AQ,[t.createElementVNode("div",NQ,[t.createElementVNode("div",BQ,t.toDisplayString(n.gxInfoItems[0].title),1),t.createElementVNode("div",IQ,[t.createTextVNode(t.toDisplayString(n.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:n.stringSelectedTeamLogo},null,8,MQ)])]),t.createElementVNode("div",OQ,[t.createElementVNode("div",PQ,t.toDisplayString(n.gxInfoItems[1].title),1),t.createElementVNode("div",FQ,t.toDisplayString(n.gxInfoItems[1].value),1)]),t.createElementVNode("div",RQ,[t.createElementVNode("div",VQ,t.toDisplayString(n.gxInfoItems[2].title),1),t.createElementVNode("div",zQ,t.toDisplayString(n.gxInfoItems[2].value),1)])]),DQ])])}const $Q=Si(kQ,[["render",LQ],["__scopeId","data-v-fb5342de"]]),VBt="",jQ={name:"Xg",components:{SoccerChalkboard:uC},props:{},data(){return{categories:dg}},computed:{...Ol("nextGeneral",["usePastSeasonId","pastSeasonId","gameId"]),...Ol("general",["booleanIsStatisticModalOpen"]),...qi("xgGeneral",["playsAway","goalsQtyAway","shotsOnGoalQtyAway","xGAway"]),...qi("nextGeneral",["getSeasonId","homeTeam","visitingTeam","showPostMatchData"]),...qi("loginGeneral",["getPremiumAccount","getIsGolstats"]),...qi("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,a){e!==a&&this.fillXgPlays()}}},methods:{...Nu("general",["setVideoSrc","setVideoModalVisibility"]),...Nu("xgGeneral",["setTeamSelected"]),...G1("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()}},hC=e=>(t.pushScopeId("data-v-38eed9b5"),e=e(),t.popScopeId(),e),UQ={class:"xg-container"},HQ=hC(()=>t.createElementVNode("div",{class:"title"},"Goles esperados (xG)",-1)),GQ={class:"xg-container__field"},WQ={class:"xg-container__info"},qQ={class:"table"},YQ={class:"table__row"},ZQ={class:"table__row__title"},XQ={class:"table__row__value"},KQ=["src"],JQ={class:"table__row"},QQ={class:"table__row__title"},eee={class:"table__row__value"},tee={class:"table__row"},aee={class:"table__row__title"},ree={class:"table__row__value"},nee=hC(()=>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 iee(e,a,r,d,m,n){const s=t.resolveComponent("SoccerChalkboard");return t.openBlock(),t.createElementBlock("div",UQ,[HQ,t.createElementVNode("div",GQ,[t.createVNode(s,{plays:e.playsAway,categories:m.categories,team:e.team},null,8,["plays","categories","team"])]),t.createElementVNode("div",WQ,[t.createElementVNode("div",qQ,[t.createElementVNode("div",YQ,[t.createElementVNode("div",ZQ,t.toDisplayString(n.gxInfoItems[0].title),1),t.createElementVNode("div",XQ,[t.createTextVNode(t.toDisplayString(n.gxInfoItems[0].value),1),t.createElementVNode("img",{class:"img-abs",src:n.stringSelectedTeamLogo},null,8,KQ)])]),t.createElementVNode("div",JQ,[t.createElementVNode("div",QQ,t.toDisplayString(n.gxInfoItems[1].title),1),t.createElementVNode("div",eee,t.toDisplayString(n.gxInfoItems[1].value),1)]),t.createElementVNode("div",tee,[t.createElementVNode("div",aee,t.toDisplayString(n.gxInfoItems[2].title),1),t.createElementVNode("div",ree,t.toDisplayString(n.gxInfoItems[2].value),1)])]),nee])])}const oee=Si(jQ,[["render",iee],["__scopeId","data-v-38eed9b5"]]),zBt="";let mC=null;const see={name:"XgMain",components:{GSCSwitchRadio:zK,SoccerChalkboardLocal:IJ,SoccerChalkboardAway:XJ,SoccerChalkboardLocalMobile:$Q,SoccerChalkboardAwayMobile:oee},props:{game:{type:Number,default:0}},data(){return{gamesContainerWidth:0,teamSelect:"local",teamDefault:""}},computed:{...qi("nextGeneral",["homeTeam","visitingTeam"])},watch:{},methods:{onChangeTeam(e){e instanceof Object||(this.teamSelect=e),this.teamDefault=e},setUpResizeObserver(){if(window.ResizeObserver)mC=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<680?this.movil=!0:this.movil=!1}),mC.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))}},lee={class:"xg",ref:"gamesContainer"},cee={key:0,class:"selector-team"};function dee(e,a,r,d,m,n){const s=t.resolveComponent("GSCSwitchRadio"),i=t.resolveComponent("SoccerChalkboardLocal"),_=t.resolveComponent("SoccerChalkboardAway"),f=t.resolveComponent("SoccerChalkboardLocalMobile"),o=t.resolveComponent("SoccerChalkboardAwayMobile");return t.openBlock(),t.createElementBlock("div",lee,[m.gamesContainerWidth<655?(t.openBlock(),t.createElementBlock("div",cee,[t.createVNode(s,{width:"42px",height:"20px",heightCircle:"16px",widthCircle:"16px","circle-color-switch":"#cbee6b",valueDefault:m.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:n.onChangeTeam},null,8,["valueDefault","text-option-left","text-option-right","icon-a","icon-b","onChange"])])):t.createCommentVNode("",!0),m.gamesContainerWidth>=655?(t.openBlock(),t.createBlock(i,{key:1,class:"local"})):t.createCommentVNode("",!0),m.gamesContainerWidth>=655?(t.openBlock(),t.createBlock(_,{key:2,class:"away"})):t.createCommentVNode("",!0),m.gamesContainerWidth<655&&m.teamSelect==e.homeTeam.colloquial_name?(t.openBlock(),t.createBlock(f,{key:3})):t.createCommentVNode("",!0),m.gamesContainerWidth<655&&m.teamSelect==e.visitingTeam.colloquial_name?(t.openBlock(),t.createBlock(o,{key:4})):t.createCommentVNode("",!0)],512)}const uee=Si(see,[["render",dee],["__scopeId","data-v-20bd873f"]]),DBt="",pee={class:"statistics-main"},hee={class:"statistics-main__header"},mee={class:"statistics-main__header__filter"},fee=t.defineComponent({name:"TemplateVideos",components:{TrendLive:EY,Comparative:bK,Distribution:BK,GSCSlider:Jb,XG:uee}}),gee=Si(Object.assign(fee,{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:a}){const r=e,d=j1(),m=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"}),n=t.ref({}),s=t.ref(null),i=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"}]);let _=t.ref(i.value[0]),f=t.ref(0);t.watch(()=>r.game,l=>{const u={...l};o(u),f.value++},{deep:!0,immediate:!0});async function o(l){try{n.value.gameId!==l.gameId&&(n.value=l,await d.dispatch("nextGeneral/cleanStats"),await d.dispatch("nextGeneral/checkState",{gameId:l.gameId,currentSeasonId:l.seasonId,isTeamsAnalysis:!0,defaultFilter:s.value,gameInfo:l}))}catch(u){throw new Error(u)}}function g(l){_.value=l}function x(){d.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 c(l){a("openmedia",l)}return t.onUnmounted(()=>{a("resetSubsection")}),t.onMounted(()=>{r.subsection==="Comparativa"&&(_.value.id="st1",_.value.name="Comparativa",_.value.componentName="Comparative")}),x(),(l,u)=>(t.openBlock(),t.createElementBlock("div",pee,[t.createElementVNode("div",hee,[t.createVNode(t.unref(Jb),{backgroundColor:"none",arrows:!1},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.value,p=>(t.openBlock(),t.createElementBlock("div",{key:p.id,class:"game-time-line__options__option"},[t.createVNode(c9,t.mergeProps(m.value,{text:p.name,"is-active":t.unref(_).id===p.id,onClick:h=>g(p)}),null,16,["text","is-active","onClick"])]))),128))]),_:1}),t.withDirectives(t.createElementVNode("div",mee,[t.createVNode(Mq)],512),[[t.vShow,!1]])]),(t.openBlock(),t.createElementBlock("div",{class:"statistics-main__body",key:t.unref(f)},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(t.unref(_).componentName),{seasonSelected:{...e.seasonSelected},game:{...e.game},"tournament-type":t.unref(d).getters["gameGlobal/getTournamentType"],"can-play-videos":e.canPlayVideos,"play-videos-privileges":e.playVideosPrivileges,onOpenmedia:c},null,40,["seasonSelected","game","tournament-type","can-play-videos","play-videos-privileges"]))]))]))}}),[["__scopeId","data-v-02c2f77c"]]);function fC(e,a){return function(){return e.apply(a,arguments)}}const{toString:yee}=Object.prototype,{getPrototypeOf:e3}=Object,ug=(e=>a=>{const r=yee.call(a);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),fd=e=>(e=e.toLowerCase(),a=>ug(a)===e),pg=e=>a=>typeof a===e,{isArray:uh}=Array,Jm=pg("undefined");function _ee(e){return e!==null&&!Jm(e)&&e.constructor!==null&&!Jm(e.constructor)&&ec(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const gC=fd("ArrayBuffer");function vee(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&gC(e.buffer),a}const bee=pg("string"),ec=pg("function"),yC=pg("number"),hg=e=>e!==null&&typeof e=="object",xee=e=>e===!0||e===!1,mg=e=>{if(ug(e)!=="object")return!1;const a=e3(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},wee=fd("Date"),kee=fd("File"),Cee=fd("Blob"),Eee=fd("FileList"),See=e=>hg(e)&&ec(e.pipe),Tee=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||ec(e.append)&&((a=ug(e))==="formdata"||a==="object"&&ec(e.toString)&&e.toString()==="[object FormData]"))},Aee=fd("URLSearchParams"),Nee=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Qm(e,a,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let d,m;if(typeof e!="object"&&(e=[e]),uh(e))for(d=0,m=e.length;d<m;d++)a.call(null,e[d],d,e);else{const n=r?Object.getOwnPropertyNames(e):Object.keys(e),s=n.length;let i;for(d=0;d<s;d++)i=n[d],a.call(null,e[i],i,e)}}function _C(e,a){a=a.toLowerCase();const r=Object.keys(e);let d=r.length,m;for(;d-- >0;)if(m=r[d],a===m.toLowerCase())return m;return null}const vC=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),bC=e=>!Jm(e)&&e!==vC;function t3(){const{caseless:e}=bC(this)&&this||{},a={},r=(d,m)=>{const n=e&&_C(a,m)||m;mg(a[n])&&mg(d)?a[n]=t3(a[n],d):mg(d)?a[n]=t3({},d):uh(d)?a[n]=d.slice():a[n]=d};for(let d=0,m=arguments.length;d<m;d++)arguments[d]&&Qm(arguments[d],r);return a}const Bee=(e,a,r,{allOwnKeys:d}={})=>(Qm(a,(m,n)=>{r&&ec(m)?e[n]=fC(m,r):e[n]=m},{allOwnKeys:d}),e),Iee=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Mee=(e,a,r,d)=>{e.prototype=Object.create(a.prototype,d),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),r&&Object.assign(e.prototype,r)},Oee=(e,a,r,d)=>{let m,n,s;const i={};if(a=a||{},e==null)return a;do{for(m=Object.getOwnPropertyNames(e),n=m.length;n-- >0;)s=m[n],(!d||d(s,e,a))&&!i[s]&&(a[s]=e[s],i[s]=!0);e=r!==!1&&e3(e)}while(e&&(!r||r(e,a))&&e!==Object.prototype);return a},Pee=(e,a,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=a.length;const d=e.indexOf(a,r);return d!==-1&&d===r},Fee=e=>{if(!e)return null;if(uh(e))return e;let a=e.length;if(!yC(a))return null;const r=new Array(a);for(;a-- >0;)r[a]=e[a];return r},Ree=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&e3(Uint8Array)),Vee=(e,a)=>{const r=(e&&e[Symbol.iterator]).call(e);let d;for(;(d=r.next())&&!d.done;){const m=d.value;a.call(e,m[0],m[1])}},zee=(e,a)=>{let r;const d=[];for(;(r=e.exec(a))!==null;)d.push(r);return d},Dee=fd("HTMLFormElement"),Lee=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,r,d){return r.toUpperCase()+d}),xC=(({hasOwnProperty:e})=>(a,r)=>e.call(a,r))(Object.prototype),$ee=fd("RegExp"),wC=(e,a)=>{const r=Object.getOwnPropertyDescriptors(e),d={};Qm(r,(m,n)=>{let s;(s=a(m,n,e))!==!1&&(d[n]=s||m)}),Object.defineProperties(e,d)},jee=e=>{wC(e,(a,r)=>{if(ec(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const d=e[r];if(ec(d)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Uee=(e,a)=>{const r={},d=m=>{m.forEach(n=>{r[n]=!0})};return uh(e)?d(e):d(String(e).split(a)),r},Hee=()=>{},Gee=(e,a)=>(e=+e,Number.isFinite(e)?e:a),a3="abcdefghijklmnopqrstuvwxyz",kC="0123456789",CC={DIGIT:kC,ALPHA:a3,ALPHA_DIGIT:a3+a3.toUpperCase()+kC},Wee=(e=16,a=CC.ALPHA_DIGIT)=>{let r="";const{length:d}=a;for(;e--;)r+=a[Math.random()*d|0];return r};function qee(e){return!!(e&&ec(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Yee=e=>{const a=new Array(10),r=(d,m)=>{if(hg(d)){if(a.indexOf(d)>=0)return;if(!("toJSON"in d)){a[m]=d;const n=uh(d)?[]:{};return Qm(d,(s,i)=>{const _=r(s,m+1);!Jm(_)&&(n[i]=_)}),a[m]=void 0,n}}return d};return r(e,0)},Zee=fd("AsyncFunction"),Xee=e=>e&&(hg(e)||ec(e))&&ec(e.then)&&ec(e.catch),_r={isArray:uh,isArrayBuffer:gC,isBuffer:_ee,isFormData:Tee,isArrayBufferView:vee,isString:bee,isNumber:yC,isBoolean:xee,isObject:hg,isPlainObject:mg,isUndefined:Jm,isDate:wee,isFile:kee,isBlob:Cee,isRegExp:$ee,isFunction:ec,isStream:See,isURLSearchParams:Aee,isTypedArray:Ree,isFileList:Eee,forEach:Qm,merge:t3,extend:Bee,trim:Nee,stripBOM:Iee,inherits:Mee,toFlatObject:Oee,kindOf:ug,kindOfTest:fd,endsWith:Pee,toArray:Fee,forEachEntry:Vee,matchAll:zee,isHTMLForm:Dee,hasOwnProperty:xC,hasOwnProp:xC,reduceDescriptors:wC,freezeMethods:jee,toObjectSet:Uee,toCamelCase:Lee,noop:Hee,toFiniteNumber:Gee,findKey:_C,global:vC,isContextDefined:bC,ALPHABET:CC,generateString:Wee,isSpecCompliantForm:qee,toJSONObject:Yee,isAsyncFn:Zee,isThenable:Xee};function zn(e,a,r,d,m){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),r&&(this.config=r),d&&(this.request=d),m&&(this.response=m)}_r.inherits(zn,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:_r.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const EC=zn.prototype,SC={};["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=>{SC[e]={value:e}}),Object.defineProperties(zn,SC),Object.defineProperty(EC,"isAxiosError",{value:!0}),zn.from=(e,a,r,d,m,n)=>{const s=Object.create(EC);return _r.toFlatObject(e,s,function(i){return i!==Error.prototype},i=>i!=="isAxiosError"),zn.call(s,e.message,a,r,d,m),s.cause=e,s.name=e.name,n&&Object.assign(s,n),s};const Kee=null;function r3(e){return _r.isPlainObject(e)||_r.isArray(e)}function TC(e){return _r.endsWith(e,"[]")?e.slice(0,-2):e}function AC(e,a,r){return e?e.concat(a).map(function(d,m){return d=TC(d),!r&&m?"["+d+"]":d}).join(r?".":""):a}function Jee(e){return _r.isArray(e)&&!e.some(r3)}const Qee=_r.toFlatObject(_r,{},null,function(e){return/^is[A-Z]/.test(e)});function fg(e,a,r){if(!_r.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,r=_r.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,l){return!_r.isUndefined(l[c])});const d=r.metaTokens,m=r.visitor||f,n=r.dots,s=r.indexes,i=(r.Blob||typeof Blob<"u"&&Blob)&&_r.isSpecCompliantForm(a);if(!_r.isFunction(m))throw new TypeError("visitor must be a function");function _(c){if(c===null)return"";if(_r.isDate(c))return c.toISOString();if(!i&&_r.isBlob(c))throw new zn("Blob is not supported. Use a Buffer instead.");return _r.isArrayBuffer(c)||_r.isTypedArray(c)?i&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function f(c,l,u){let p=c;if(c&&!u&&typeof c=="object"){if(_r.endsWith(l,"{}"))l=d?l:l.slice(0,-2),c=JSON.stringify(c);else if(_r.isArray(c)&&Jee(c)||(_r.isFileList(c)||_r.endsWith(l,"[]"))&&(p=_r.toArray(c)))return l=TC(l),p.forEach(function(h,y){!(_r.isUndefined(h)||h===null)&&a.append(s===!0?AC([l],y,n):s===null?l:l+"[]",_(h))}),!1}return r3(c)?!0:(a.append(AC(u,l,n),_(c)),!1)}const o=[],g=Object.assign(Qee,{defaultVisitor:f,convertValue:_,isVisitable:r3});function x(c,l){if(!_r.isUndefined(c)){if(o.indexOf(c)!==-1)throw Error("Circular reference detected in "+l.join("."));o.push(c),_r.forEach(c,function(u,p){(!(_r.isUndefined(u)||u===null)&&m.call(a,u,_r.isString(p)?p.trim():p,l,g))===!0&&x(u,l?l.concat(p):[p])}),o.pop()}}if(!_r.isObject(e))throw new TypeError("data must be an object");return x(e),a}function NC(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return a[r]})}function n3(e,a){this._pairs=[],e&&fg(e,this,a)}const BC=n3.prototype;BC.append=function(e,a){this._pairs.push([e,a])},BC.toString=function(e){const a=e?function(r){return e.call(this,r,NC)}:NC;return this._pairs.map(function(r){return a(r[0])+"="+a(r[1])},"").join("&")};function ete(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function IC(e,a,r){if(!a)return e;const d=r&&r.encode||ete,m=r&&r.serialize;let n;if(m?n=m(a,r):n=_r.isURLSearchParams(a)?a.toString():new n3(a,r).toString(d),n){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+n}return e}const MC=class{constructor(){this.handlers=[]}use(a,r,d){return this.handlers.push({fulfilled:a,rejected:r,synchronous:d?d.synchronous:!1,runWhen:d?d.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){_r.forEach(this.handlers,function(r){r!==null&&a(r)})}},OC={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},tte=typeof URLSearchParams<"u"?URLSearchParams:n3,ate=typeof FormData<"u"?FormData:null,rte=typeof Blob<"u"?Blob:null,nte={isBrowser:!0,classes:{URLSearchParams:tte,FormData:ate,Blob:rte},protocols:["http","https","file","blob","url","data"]},PC=typeof window<"u"&&typeof document<"u",ite=(e=>PC&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),ote=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),ste=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:PC,hasStandardBrowserEnv:ite,hasStandardBrowserWebWorkerEnv:ote},Symbol.toStringTag,{value:"Module"})),gd={...ste,...nte};function lte(e,a){return fg(e,new gd.classes.URLSearchParams,Object.assign({visitor:function(r,d,m,n){return gd.isNode&&_r.isBuffer(r)?(this.append(d,r.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},a))}function cte(e){return _r.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function dte(e){const a={},r=Object.keys(e);let d;const m=r.length;let n;for(d=0;d<m;d++)n=r[d],a[n]=e[n];return a}function FC(e){function a(r,d,m,n){let s=r[n++];if(s==="__proto__")return!0;const i=Number.isFinite(+s),_=n>=r.length;return s=!s&&_r.isArray(m)?m.length:s,_?(_r.hasOwnProp(m,s)?m[s]=[m[s],d]:m[s]=d,!i):((!m[s]||!_r.isObject(m[s]))&&(m[s]=[]),a(r,d,m[s],n)&&_r.isArray(m[s])&&(m[s]=dte(m[s])),!i)}if(_r.isFormData(e)&&_r.isFunction(e.entries)){const r={};return _r.forEachEntry(e,(d,m)=>{a(cte(d),m,r,0)}),r}return null}function ute(e,a,r){if(_r.isString(e))try{return(a||JSON.parse)(e),_r.trim(e)}catch(d){if(d.name!=="SyntaxError")throw d}return(r||JSON.stringify)(e)}const i3={transitional:OC,adapter:["xhr","http"],transformRequest:[function(e,a){const r=a.getContentType()||"",d=r.indexOf("application/json")>-1,m=_r.isObject(e);if(m&&_r.isHTMLForm(e)&&(e=new FormData(e)),_r.isFormData(e))return d?JSON.stringify(FC(e)):e;if(_r.isArrayBuffer(e)||_r.isBuffer(e)||_r.isStream(e)||_r.isFile(e)||_r.isBlob(e))return e;if(_r.isArrayBufferView(e))return e.buffer;if(_r.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let n;if(m){if(r.indexOf("application/x-www-form-urlencoded")>-1)return lte(e,this.formSerializer).toString();if((n=_r.isFileList(e))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return fg(n?{"files[]":e}:e,s&&new s,this.formSerializer)}}return m||d?(a.setContentType("application/json",!1),ute(e)):e}],transformResponse:[function(e){const a=this.transitional||i3.transitional,r=a&&a.forcedJSONParsing,d=this.responseType==="json";if(e&&_r.isString(e)&&(r&&!this.responseType||d)){const m=!(a&&a.silentJSONParsing)&&d;try{return JSON.parse(e)}catch(n){if(m)throw n.name==="SyntaxError"?zn.from(n,zn.ERR_BAD_RESPONSE,this,null,this.response):n}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:gd.classes.FormData,Blob:gd.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_r.forEach(["delete","get","head","post","put","patch"],e=>{i3.headers[e]={}});const o3=i3,pte=_r.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"]),hte=e=>{const a={};let r,d,m;return e&&e.split(`
|
|
34
34
|
`).forEach(function(n){m=n.indexOf(":"),r=n.substring(0,m).trim().toLowerCase(),d=n.substring(m+1).trim(),!(!r||a[r]&&pte[r])&&(r==="set-cookie"?a[r]?a[r].push(d):a[r]=[d]:a[r]=a[r]?a[r]+", "+d:d)}),a},RC=Symbol("internals");function ef(e){return e&&String(e).trim().toLowerCase()}function gg(e){return e===!1||e==null?e:_r.isArray(e)?e.map(gg):String(e)}function mte(e){const a=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let d;for(;d=r.exec(e);)a[d[1]]=d[2];return a}const fte=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function s3(e,a,r,d,m){if(_r.isFunction(d))return d.call(this,a,r);if(m&&(a=r),!!_r.isString(a)){if(_r.isString(d))return a.indexOf(d)!==-1;if(_r.isRegExp(d))return d.test(a)}}function gte(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,r,d)=>r.toUpperCase()+d)}function yte(e,a){const r=_r.toCamelCase(" "+a);["get","set","has"].forEach(d=>{Object.defineProperty(e,d+r,{value:function(m,n,s){return this[d].call(this,a,m,n,s)},configurable:!0})})}let yg=class{constructor(a){a&&this.set(a)}set(a,r,d){const m=this;function n(i,_,f){const o=ef(_);if(!o)throw new Error("header name must be a non-empty string");const g=_r.findKey(m,o);(!g||m[g]===void 0||f===!0||f===void 0&&m[g]!==!1)&&(m[g||_]=gg(i))}const s=(i,_)=>_r.forEach(i,(f,o)=>n(f,o,_));return _r.isPlainObject(a)||a instanceof this.constructor?s(a,r):_r.isString(a)&&(a=a.trim())&&!fte(a)?s(hte(a),r):a!=null&&n(r,a,d),this}get(a,r){if(a=ef(a),a){const d=_r.findKey(this,a);if(d){const m=this[d];if(!r)return m;if(r===!0)return mte(m);if(_r.isFunction(r))return r.call(this,m,d);if(_r.isRegExp(r))return r.exec(m);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,r){if(a=ef(a),a){const d=_r.findKey(this,a);return!!(d&&this[d]!==void 0&&(!r||s3(this,this[d],d,r)))}return!1}delete(a,r){const d=this;let m=!1;function n(s){if(s=ef(s),s){const i=_r.findKey(d,s);i&&(!r||s3(d,d[i],i,r))&&(delete d[i],m=!0)}}return _r.isArray(a)?a.forEach(n):n(a),m}clear(a){const r=Object.keys(this);let d=r.length,m=!1;for(;d--;){const n=r[d];(!a||s3(this,this[n],n,a,!0))&&(delete this[n],m=!0)}return m}normalize(a){const r=this,d={};return _r.forEach(this,(m,n)=>{const s=_r.findKey(d,n);if(s){r[s]=gg(m),delete r[n];return}const i=a?gte(n):String(n).trim();i!==n&&delete r[n],r[i]=gg(m),d[i]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const r=Object.create(null);return _r.forEach(this,(d,m)=>{d!=null&&d!==!1&&(r[m]=a&&_r.isArray(d)?d.join(", "):d)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,r])=>a+": "+r).join(`
|
|
35
35
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...r){const d=new this(a);return r.forEach(m=>d.set(m)),d}static accessor(a){const r=(this[RC]=this[RC]={accessors:{}}).accessors,d=this.prototype;function m(n){const s=ef(n);r[s]||(yte(d,n),r[s]=!0)}return _r.isArray(a)?a.forEach(m):m(a),this}};yg.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),_r.reduceDescriptors(yg.prototype,({value:e},a)=>{let r=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(d){this[r]=d}}}),_r.freezeMethods(yg);const nu=yg;function l3(e,a){const r=this||o3,d=a||r,m=nu.from(d.headers);let n=d.data;return _r.forEach(e,function(s){n=s.call(r,n,m.normalize(),a?a.status:void 0)}),m.normalize(),n}function VC(e){return!!(e&&e.__CANCEL__)}function tf(e,a,r){zn.call(this,e??"canceled",zn.ERR_CANCELED,a,r),this.name="CanceledError"}_r.inherits(tf,zn,{__CANCEL__:!0});function _te(e,a,r){const d=r.config.validateStatus;!r.status||!d||d(r.status)?e(r):a(new zn("Request failed with status code "+r.status,[zn.ERR_BAD_REQUEST,zn.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const vte=gd.hasStandardBrowserEnv?{write(e,a,r,d,m,n){const s=[e+"="+encodeURIComponent(a)];_r.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),_r.isString(d)&&s.push("path="+d),_r.isString(m)&&s.push("domain="+m),n===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const a=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function bte(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function xte(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function zC(e,a){return e&&!bte(a)?xte(e,a):a}const wte=gd.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");let r;function d(m){let n=m;return e&&(a.setAttribute("href",n),n=a.href),a.setAttribute("href",n),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:a.pathname.charAt(0)==="/"?a.pathname:"/"+a.pathname}}return r=d(window.location.href),function(m){const n=_r.isString(m)?d(m):m;return n.protocol===r.protocol&&n.host===r.host}}():function(){return function(){return!0}}();function kte(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function Cte(e,a){e=e||10;const r=new Array(e),d=new Array(e);let m=0,n=0,s;return a=a!==void 0?a:1e3,function(i){const _=Date.now(),f=d[n];s||(s=_),r[m]=i,d[m]=_;let o=n,g=0;for(;o!==m;)g+=r[o++],o=o%e;if(m=(m+1)%e,m===n&&(n=(n+1)%e),_-s<a)return;const x=f&&_-f;return x?Math.round(g*1e3/x):void 0}}function DC(e,a){let r=0;const d=Cte(50,250);return m=>{const n=m.loaded,s=m.lengthComputable?m.total:void 0,i=n-r,_=d(i),f=n<=s;r=n;const o={loaded:n,total:s,progress:s?n/s:void 0,bytes:i,rate:_||void 0,estimated:_&&s&&f?(s-n)/_:void 0,event:m};o[a?"download":"upload"]=!0,e(o)}}const Ete=typeof XMLHttpRequest<"u",Ste=Ete&&function(e){return new Promise(function(a,r){let d=e.data;const m=nu.from(e.headers).normalize();let{responseType:n,withXSRFToken:s}=e,i;function _(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}let f;if(_r.isFormData(d)){if(gd.hasStandardBrowserEnv||gd.hasStandardBrowserWebWorkerEnv)m.setContentType(!1);else if((f=m.getContentType())!==!1){const[l,...u]=f?f.split(";").map(p=>p.trim()).filter(Boolean):[];m.setContentType([l||"multipart/form-data",...u].join("; "))}}let o=new XMLHttpRequest;if(e.auth){const l=e.auth.username||"",u=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.set("Authorization","Basic "+btoa(l+":"+u))}const g=zC(e.baseURL,e.url);o.open(e.method.toUpperCase(),IC(g,e.params,e.paramsSerializer),!0),o.timeout=e.timeout;function x(){if(!o)return;const l=nu.from("getAllResponseHeaders"in o&&o.getAllResponseHeaders()),u={data:!n||n==="text"||n==="json"?o.responseText:o.response,status:o.status,statusText:o.statusText,headers:l,config:e,request:o};_te(function(p){a(p),_()},function(p){r(p),_()},u),o=null}if("onloadend"in o?o.onloadend=x:o.onreadystatechange=function(){!o||o.readyState!==4||o.status===0&&!(o.responseURL&&o.responseURL.indexOf("file:")===0)||setTimeout(x)},o.onabort=function(){o&&(r(new zn("Request aborted",zn.ECONNABORTED,e,o)),o=null)},o.onerror=function(){r(new zn("Network Error",zn.ERR_NETWORK,e,o)),o=null},o.ontimeout=function(){let l=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const u=e.transitional||OC;e.timeoutErrorMessage&&(l=e.timeoutErrorMessage),r(new zn(l,u.clarifyTimeoutError?zn.ETIMEDOUT:zn.ECONNABORTED,e,o)),o=null},gd.hasStandardBrowserEnv&&(s&&_r.isFunction(s)&&(s=s(e)),s||s!==!1&&wte(g))){const l=e.xsrfHeaderName&&e.xsrfCookieName&&vte.read(e.xsrfCookieName);l&&m.set(e.xsrfHeaderName,l)}d===void 0&&m.setContentType(null),"setRequestHeader"in o&&_r.forEach(m.toJSON(),function(l,u){o.setRequestHeader(u,l)}),_r.isUndefined(e.withCredentials)||(o.withCredentials=!!e.withCredentials),n&&n!=="json"&&(o.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&o.addEventListener("progress",DC(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&o.upload&&o.upload.addEventListener("progress",DC(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=l=>{o&&(r(!l||l.type?new tf(null,e,o):l),o.abort(),o=null)},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i)));const c=kte(g);if(c&&gd.protocols.indexOf(c)===-1){r(new zn("Unsupported protocol "+c+":",zn.ERR_BAD_REQUEST,e));return}o.send(d||null)})},c3={http:Kee,xhr:Ste};_r.forEach(c3,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const LC=e=>`- ${e}`,Tte=e=>_r.isFunction(e)||e===null||e===!1,$C={getAdapter:e=>{e=_r.isArray(e)?e:[e];const{length:a}=e;let r,d;const m={};for(let n=0;n<a;n++){r=e[n];let s;if(d=r,!Tte(r)&&(d=c3[(s=String(r)).toLowerCase()],d===void 0))throw new zn(`Unknown adapter '${s}'`);if(d)break;m[s||"#"+n]=d}if(!d){const n=Object.entries(m).map(([i,_])=>`adapter ${i} `+(_===!1?"is not supported by the environment":"is not available in the build"));let s=a?n.length>1?`since :
|
|
36
36
|
`+n.map(LC).join(`
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...r){const d=new this(a);return r.forEach(m=>d.set(m)),d}static accessor(a){const r=(this[zP]=this[zP]={accessors:{}}).accessors,d=this.prototype;function m(n){const s=w0(n);r[s]||(Jrt(d,n),r[s]=!0)}return Ar.isArray(a)?a.forEach(m):m(a),this}};r_.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ar.reduceDescriptors(r_.prototype,({value:e},a)=>{let r=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(d){this[r]=d}}}),Ar.freezeMethods(r_);const fu=r_;function Kw(e,a){const r=this||Zw,d=a||r,m=fu.from(d.headers);let n=d.data;return Ar.forEach(e,function(s){n=s.call(r,n,m.normalize(),a?a.status:void 0)}),m.normalize(),n}function DP(e){return!!(e&&e.__CANCEL__)}function k0(e,a,r){Yn.call(this,e??"canceled",Yn.ERR_CANCELED,a,r),this.name="CanceledError"}Ar.inherits(k0,Yn,{__CANCEL__:!0});function Qrt(e,a,r){const d=r.config.validateStatus;!r.status||!d||d(r.status)?e(r):a(new Yn("Request failed with status code "+r.status,[Yn.ERR_BAD_REQUEST,Yn.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const ent=zd.hasStandardBrowserEnv?{write(e,a,r,d,m,n){const s=[e+"="+encodeURIComponent(a)];Ar.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),Ar.isString(d)&&s.push("path="+d),Ar.isString(m)&&s.push("domain="+m),n===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const a=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function tnt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function ant(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function LP(e,a){return e&&!tnt(a)?ant(e,a):a}const rnt=zd.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");let r;function d(m){let n=m;return e&&(a.setAttribute("href",n),n=a.href),a.setAttribute("href",n),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:a.pathname.charAt(0)==="/"?a.pathname:"/"+a.pathname}}return r=d(window.location.href),function(m){const n=Ar.isString(m)?d(m):m;return n.protocol===r.protocol&&n.host===r.host}}():function(){return function(){return!0}}();function nnt(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function int(e,a){e=e||10;const r=new Array(e),d=new Array(e);let m=0,n=0,s;return a=a!==void 0?a:1e3,function(i){const _=Date.now(),f=d[n];s||(s=_),r[m]=i,d[m]=_;let o=n,g=0;for(;o!==m;)g+=r[o++],o=o%e;if(m=(m+1)%e,m===n&&(n=(n+1)%e),_-s<a)return;const x=f&&_-f;return x?Math.round(g*1e3/x):void 0}}function $P(e,a){let r=0;const d=int(50,250);return m=>{const n=m.loaded,s=m.lengthComputable?m.total:void 0,i=n-r,_=d(i),f=n<=s;r=n;const o={loaded:n,total:s,progress:s?n/s:void 0,bytes:i,rate:_||void 0,estimated:_&&s&&f?(s-n)/_:void 0,event:m};o[a?"download":"upload"]=!0,e(o)}}const ont=typeof XMLHttpRequest<"u",snt=ont&&function(e){return new Promise(function(a,r){let d=e.data;const m=fu.from(e.headers).normalize();let{responseType:n,withXSRFToken:s}=e,i;function _(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}let f;if(Ar.isFormData(d)){if(zd.hasStandardBrowserEnv||zd.hasStandardBrowserWebWorkerEnv)m.setContentType(!1);else if((f=m.getContentType())!==!1){const[l,...u]=f?f.split(";").map(p=>p.trim()).filter(Boolean):[];m.setContentType([l||"multipart/form-data",...u].join("; "))}}let o=new XMLHttpRequest;if(e.auth){const l=e.auth.username||"",u=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.set("Authorization","Basic "+btoa(l+":"+u))}const g=LP(e.baseURL,e.url);o.open(e.method.toUpperCase(),OP(g,e.params,e.paramsSerializer),!0),o.timeout=e.timeout;function x(){if(!o)return;const l=fu.from("getAllResponseHeaders"in o&&o.getAllResponseHeaders()),u={data:!n||n==="text"||n==="json"?o.responseText:o.response,status:o.status,statusText:o.statusText,headers:l,config:e,request:o};Qrt(function(p){a(p),_()},function(p){r(p),_()},u),o=null}if("onloadend"in o?o.onloadend=x:o.onreadystatechange=function(){!o||o.readyState!==4||o.status===0&&!(o.responseURL&&o.responseURL.indexOf("file:")===0)||setTimeout(x)},o.onabort=function(){o&&(r(new Yn("Request aborted",Yn.ECONNABORTED,e,o)),o=null)},o.onerror=function(){r(new Yn("Network Error",Yn.ERR_NETWORK,e,o)),o=null},o.ontimeout=function(){let l=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const u=e.transitional||FP;e.timeoutErrorMessage&&(l=e.timeoutErrorMessage),r(new Yn(l,u.clarifyTimeoutError?Yn.ETIMEDOUT:Yn.ECONNABORTED,e,o)),o=null},zd.hasStandardBrowserEnv&&(s&&Ar.isFunction(s)&&(s=s(e)),s||s!==!1&&rnt(g))){const l=e.xsrfHeaderName&&e.xsrfCookieName&&ent.read(e.xsrfCookieName);l&&m.set(e.xsrfHeaderName,l)}d===void 0&&m.setContentType(null),"setRequestHeader"in o&&Ar.forEach(m.toJSON(),function(l,u){o.setRequestHeader(u,l)}),Ar.isUndefined(e.withCredentials)||(o.withCredentials=!!e.withCredentials),n&&n!=="json"&&(o.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&o.addEventListener("progress",$P(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&o.upload&&o.upload.addEventListener("progress",$P(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=l=>{o&&(r(!l||l.type?new k0(null,e,o):l),o.abort(),o=null)},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i)));const c=nnt(g);if(c&&zd.protocols.indexOf(c)===-1){r(new Yn("Unsupported protocol "+c+":",Yn.ERR_BAD_REQUEST,e));return}o.send(d||null)})},Jw={http:Mrt,xhr:snt};Ar.forEach(Jw,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const jP=e=>`- ${e}`,lnt=e=>Ar.isFunction(e)||e===null||e===!1,UP={getAdapter:e=>{e=Ar.isArray(e)?e:[e];const{length:a}=e;let r,d;const m={};for(let n=0;n<a;n++){r=e[n];let s;if(d=r,!lnt(r)&&(d=Jw[(s=String(r)).toLowerCase()],d===void 0))throw new Yn(`Unknown adapter '${s}'`);if(d)break;m[s||"#"+n]=d}if(!d){const n=Object.entries(m).map(([i,_])=>`adapter ${i} `+(_===!1?"is not supported by the environment":"is not available in the build"));let s=a?n.length>1?`since :
|
|
112
112
|
`+n.map(jP).join(`
|
|
113
113
|
`):" "+jP(n[0]):"as no adapter specified";throw new Yn("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return d},adapters:Jw};function Qw(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new k0(null,e)}function HP(e){return Qw(e),e.headers=fu.from(e.headers),e.data=Kw.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),UP.getAdapter(e.adapter||Zw.adapter)(e).then(function(a){return Qw(e),a.data=Kw.call(e,e.transformResponse,a),a.headers=fu.from(a.headers),a},function(a){return DP(a)||(Qw(e),a&&a.response&&(a.response.data=Kw.call(e,e.transformResponse,a.response),a.response.headers=fu.from(a.response.headers))),Promise.reject(a)})}const GP=e=>e instanceof fu?{...e}:e;function Qh(e,a){a=a||{};const r={};function d(f,o,g){return Ar.isPlainObject(f)&&Ar.isPlainObject(o)?Ar.merge.call({caseless:g},f,o):Ar.isPlainObject(o)?Ar.merge({},o):Ar.isArray(o)?o.slice():o}function m(f,o,g){if(Ar.isUndefined(o)){if(!Ar.isUndefined(f))return d(void 0,f,g)}else return d(f,o,g)}function n(f,o){if(!Ar.isUndefined(o))return d(void 0,o)}function s(f,o){if(Ar.isUndefined(o)){if(!Ar.isUndefined(f))return d(void 0,f)}else return d(void 0,o)}function i(f,o,g){if(g in a)return d(f,o);if(g in e)return d(void 0,f)}const _={url:n,method:n,data:n,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:i,headers:(f,o)=>m(GP(f),GP(o),!0)};return Ar.forEach(Object.keys(Object.assign({},e,a)),function(f){const o=_[f]||m,g=o(e[f],a[f],f);Ar.isUndefined(g)&&o!==i||(r[f]=g)}),r}const WP="1.6.8",e6={};["object","boolean","number","function","string","symbol"].forEach((e,a)=>{e6[e]=function(r){return typeof r===e||"a"+(a<1?"n ":" ")+e}});const qP={};e6.transitional=function(e,a,r){function d(m,n){return"[Axios v"+WP+"] Transitional option '"+m+"'"+n+(r?". "+r:"")}return(m,n,s)=>{if(e===!1)throw new Yn(d(n," has been removed"+(a?" in "+a:"")),Yn.ERR_DEPRECATED);return a&&!qP[n]&&(qP[n]=!0,console.warn(d(n," has been deprecated since v"+a+" and will be removed in the near future"))),e?e(m,n,s):!0}};function cnt(e,a,r){if(typeof e!="object")throw new Yn("options must be an object",Yn.ERR_BAD_OPTION_VALUE);const d=Object.keys(e);let m=d.length;for(;m-- >0;){const n=d[m],s=a[n];if(s){const i=e[n],_=i===void 0||s(i,n,e);if(_!==!0)throw new Yn("option "+n+" must be "+_,Yn.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Yn("Unknown option "+n,Yn.ERR_BAD_OPTION)}}const t6={assertOptions:cnt,validators:e6},Xu=t6.validators;class n_{constructor(a){this.defaults=a,this.interceptors={request:new PP,response:new PP}}async request(a,r){try{return await this._request(a,r)}catch(d){if(d instanceof Error){let m;Error.captureStackTrace?Error.captureStackTrace(m={}):m=new Error;const n=m.stack?m.stack.replace(/^.+\n/,""):"";d.stack?n&&!String(d.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(d.stack+=`
|
|
114
|
-
`+n):d.stack=n}throw d}}_request(a,r){typeof a=="string"?(r=r||{},r.url=a):r=a||{},r=Qh(this.defaults,r);const{transitional:d,paramsSerializer:m,headers:n}=r;d!==void 0&&t6.assertOptions(d,{silentJSONParsing:Xu.transitional(Xu.boolean),forcedJSONParsing:Xu.transitional(Xu.boolean),clarifyTimeoutError:Xu.transitional(Xu.boolean)},!1),m!=null&&(Ar.isFunction(m)?r.paramsSerializer={serialize:m}:t6.assertOptions(m,{encode:Xu.function,serialize:Xu.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=n&&Ar.merge(n.common,n[r.method]);n&&Ar.forEach(["delete","get","head","post","put","patch","common"],l=>{delete n[l]}),r.headers=fu.concat(s,n);const i=[];let _=!0;this.interceptors.request.forEach(function(l){typeof l.runWhen=="function"&&l.runWhen(r)===!1||(_=_&&l.synchronous,i.unshift(l.fulfilled,l.rejected))});const f=[];this.interceptors.response.forEach(function(l){f.push(l.fulfilled,l.rejected)});let o,g=0,x;if(!_){const l=[HP.bind(this),void 0];for(l.unshift.apply(l,i),l.push.apply(l,f),x=l.length,o=Promise.resolve(r);g<x;)o=o.then(l[g++],l[g++]);return o}x=i.length;let c=r;for(g=0;g<x;){const l=i[g++],u=i[g++];try{c=l(c)}catch(p){u.call(this,p);break}}try{o=HP.call(this,c)}catch(l){return Promise.reject(l)}for(g=0,x=f.length;g<x;)o=o.then(f[g++],f[g++]);return o}getUri(a){a=Qh(this.defaults,a);const r=LP(a.baseURL,a.url);return OP(r,a.params,a.paramsSerializer)}}Ar.forEach(["delete","get","head","options"],function(e){n_.prototype[e]=function(a,r){return this.request(Qh(r||{},{method:e,url:a,data:(r||{}).data}))}}),Ar.forEach(["post","put","patch"],function(e){function a(r){return function(d,m,n){return this.request(Qh(n||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:d,data:m}))}}n_.prototype[e]=a(),n_.prototype[e+"Form"]=a(!0)});const i_=n_,dnt=class g${constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(m){r=m});const d=this;this.promise.then(m=>{if(!d._listeners)return;let n=d._listeners.length;for(;n-- >0;)d._listeners[n](m);d._listeners=null}),this.promise.then=m=>{let n;const s=new Promise(i=>{d.subscribe(i),n=i}).then(m);return s.cancel=function(){d.unsubscribe(n)},s},a(function(m,n,s){d.reason||(d.reason=new k0(m,n,s),r(d.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const r=this._listeners.indexOf(a);r!==-1&&this._listeners.splice(r,1)}static source(){let a;return{token:new g$(function(r){a=r}),cancel:a}}};function unt(e){return function(a){return e.apply(null,a)}}function pnt(e){return Ar.isObject(e)&&e.isAxiosError===!0}const a6={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(a6).forEach(([e,a])=>{a6[a]=e});const hnt=a6;function YP(e){const a=new i_(e),r=yP(i_.prototype.request,a);return Ar.extend(r,i_.prototype,a,{allOwnKeys:!0}),Ar.extend(r,a,null,{allOwnKeys:!0}),r.create=function(d){return YP(Qh(e,d))},r}const Mo=YP(Zw);Mo.Axios=i_,Mo.CanceledError=k0,Mo.CancelToken=dnt,Mo.isCancel=DP,Mo.VERSION=WP,Mo.toFormData=t_,Mo.AxiosError=Yn,Mo.Cancel=Mo.CanceledError,Mo.all=function(e){return Promise.all(e)},Mo.spread=unt,Mo.isAxiosError=pnt,Mo.mergeConfig=Qh,Mo.AxiosHeaders=fu,Mo.formToJSON=e=>VP(Ar.isHTMLForm(e)?new FormData(e):e),Mo.getAdapter=UP.getAdapter,Mo.HttpStatusCode=hnt,Mo.default=Mo;const ZP=Mo;let XP=null;const mnt={components:{GSCPlayerTeamGame:cet,GSCLineups:GXe,GSCData:aMe,GSCHighlights:CPe,GSCSlider:fAe,TableComparative:qet,GSCThumbnailHighlightGameHistoric:bet,GscLinearTeamStats:Kat},props:{config:{type:Object,default:()=>{}},type:{type:String,default:"Postmatch"},tournamentType:{type:Number,default:0},showLineups:{type:Boolean,default:!0},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])},playVideosPrivileges:{type:Object,default:null}},data(){return{update:0,item:{backgroundhome:"",backgroundaway:"",logohome:"",logoaway:"",background:"",match:"",seasonname:"",score:""},stats:{},statsLocal:{},statsAway:{},home:{},away:{},gameInfo:{},elementSize:{width:0,height:0},componentKey:0,homeXg:"",homeGoals:"",awayXg:"",awayGoals:"",url:"https://jfxv8fqkn3.execute-api.us-west-2.amazonaws.com/prod/generalTable/",gamesContainerWidth:0,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{canPlayVideosPostMatch(){return this.playVideosPrivileges?this.playVideosPrivileges.canPrivilegesTeamPlayVideos:!0},gridpartidosummaryClass(){return this.gamesContainerWidth<=820?"grid-partido-summary820":"grid-partido-summary"},videopartidopltegaplayersClass(){return this.gamesContainerWidth<=900?"video-partido-pltega-players620":"video-partido-pltega-players"}},watch:{elementSize:{handler:function(e,a){a&&(a.width===0||a.width>700)&&this.componentKey<1&&this.componentKey++},immediate:!0,deep:!0}},methods:{getCarouselWidth(){const e=this.$refs.refDataContainer;if(e){const a=e.getBoundingClientRect(),r=a.width/1,d=Math.max(200,r);this.elementSize.width=d,this.elementSize.height=a.height}},onclickPlayVideos(e){var a=[];e.type==2?e.data.position_id==1?e.data.category==0?a=[55,324,323,608,39,774,802,52,53,40,54]:a=e.data.category:e.data.category==0?a=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:a=e.data.category:e.type==3?e.data.category==0?a=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:a=e.data.category:e.data.category!=0?a=e.data.category:a=[607,608,12,55,54,35,14,52,15,53,466,477];const r=[1,2,3];let d={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:a,gameIds:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[e.data.matchResult]:r,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(d.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",d)},onViewMoreGs(){this.$emit("changeToTab","Datos Golstats")},changeToTab(){this.$emit("changeToTab","Estadísticas")},openmedia(e){this.$emit("openmedia",e)},setUpResizeObserver(){if(window.ResizeObserver)XP=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),XP.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},getXg(e){let a={};const r=e.local_team.reduce((s,i)=>(a[i[16]]||(s+=i[14],a[i[16]]=!0),s),0);a={};const d=e.local_team.reduce((s,i)=>(!a[i[16]]&&(i[0]==12||i[0]==55||i[0]==35||i[0]==54)&&(s+=i[6],a[i[16]]=!0),s),0);a={};const m=e.visiting_team.reduce((s,i)=>(a[i[16]]||(s+=i[14],a[i[16]]=!0),s),0);a={};const n=e.visiting_team.reduce((s,i)=>(!a[i[16]]&&(i[0]==12||i[0]==55||i[0]==35||i[0]==54)&&(s+=i[6],a[i[16]]=!0),s),0);this.homeXg=gP(r,2),this.homeGoals=d,this.awayXg=gP(m,2),this.awayGoals=n},async fillData(){const e=ZP.create({headers:{Authorization:`${this.token}`}}),a=await e.get("https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/"+this.config.season_id),r=a.data.games.findIndex(m=>m.game_id===this.config.game);if(this.gameInfo=a.data.games[r],this.type==="Postmatch"){const m=await e.get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+this.config.game);this.item.category=0,this.item.game_id=m.data.game_id,this.item.season_id=this.config.season_id,this.item.score=m.data.thumbnails[m.data.game_id].score[0]+" - "+m.data.thumbnails[m.data.game_id].score[1],this.item.backgroundhome=m.data.thumbnails[m.data.game_id].info_thumbnails.home_colors.background_color,this.item.backgroundaway=m.data.thumbnails[m.data.game_id].info_thumbnails.away_colors.background_color,this.item.logohome="https://az755631.vo.msecnd.net/teams-150/"+m.data.thumbnails[m.data.game_id].home_team+".png",this.item.logoaway="https://az755631.vo.msecnd.net/teams-150/"+m.data.thumbnails[m.data.game_id].visiting_team+".png",this.item.background="https://golstatsimages.blob.core.windows.net/images-library/"+m.data.thumbnails[m.data.game_id].info_thumbnails.images.background_default_games[0]}try{const m=await e.get("https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/seasons/"+this.config.season_id+"/teams/"+this.gameInfo.home_team+"/"+this.gameInfo.visiting_team);if(m.data.data_headers.length>0)this.getXg(m.data);else try{const n=await e.get("https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/seasons/"+this.config.parent_season+"/teams/"+this.gameInfo.home_team+"/"+this.gameInfo.visiting_team);this.getXg(n.data)}catch(n){console.log(n)}}catch(m){console.log(m)}this.stats[this.gameInfo.home_team]=[],this.stats[this.gameInfo.visiting_team]=[];var d=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40];for(let m=0;m<d.length;m++)this.stats[this.gameInfo.home_team][d[m]]=[],this.stats[this.gameInfo.home_team][d[m]]=0,this.stats[this.gameInfo.visiting_team][d[m]]=[],this.stats[this.gameInfo.visiting_team][d[m]]=0;if(this.type==="Postmatch"){const m=await e.get("https://nckawv8v3b.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsByGame/"+this.config.game);for(let n=0;n<m.data.data.length;n++)m.data.data[n][1]==this.gameInfo.home_team?this.stats[this.gameInfo.home_team][m.data.data[n][0]]?this.stats[this.gameInfo.home_team][m.data.data[n][0]]=this.stats[this.gameInfo.home_team][m.data.data[n][0]]+m.data.data[n][6]:(this.stats[this.gameInfo.home_team][m.data.data[n][0]]=[],this.stats[this.gameInfo.home_team][m.data.data[n][0]]=m.data.data[n][6]):this.stats[this.gameInfo.visiting_team][m.data.data[n][0]]?this.stats[this.gameInfo.visiting_team][m.data.data[n][0]]=this.stats[this.gameInfo.visiting_team][m.data.data[n][0]]+m.data.data[n][6]:(this.stats[this.gameInfo.visiting_team][m.data.data[n][0]]=[],this.stats[this.gameInfo.visiting_team][m.data.data[n][0]]=m.data.data[n][6])}else if(this.type==="Prematch"){try{const _=await e.get("https://a4dcb6avog.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsTeamBySeason/"+this.config.season_id+"/"+this.gameInfo.home_team);this.statsLocal=_}catch{try{const _=await e.get("https://a4dcb6avog.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsTeamBySeason/"+this.config.parent_season+"/"+this.gameInfo.home_team);this.statsLocal=_}catch{console.log("error regular local")}}try{const _=await e.get("https://a4dcb6avog.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsTeamBySeason/"+this.config.season_id+"/"+this.gameInfo.visiting_team);this.statsAway=_}catch{const _=await e.get("https://a4dcb6avog.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsTeamBySeason/"+this.config.parent_season+"/"+this.gameInfo.visiting_team);this.statsAway=_}const m=this.statsLocal.data.games.played?this.statsLocal.data.games.played:1,n=this.statsAway.data.games.played?this.statsAway.data.games.played:1;for(let _=0;_<this.statsLocal.data.data.length;_++){const[f,,,,,,o]=this.statsLocal.data.data[_],g=this.stats[this.gameInfo.home_team];g[f]=(g[f]||0)+o}for(let _=0;_<this.statsAway.data.data.length;_++){const[f,,,,,,o]=this.statsAway.data.data[_],g=this.stats[this.gameInfo.visiting_team];g[f]=(g[f]||0)+o}const s=this.stats[this.gameInfo.home_team];for(const _ in s)s[_]&&s[_]>0&&(s[_]/=m);const i=this.stats[this.gameInfo.visiting_team];for(const _ in i)i[_]&&i[_]>0&&(i[_]/=n)}},async getTableList(){try{const e=await ZP.create({headers:{Authorization:`${this.token}`}}).get(this.url+this.config.parent_season);let a=-1,r=-1;if(this.tournamentType!=1)a=e.data.data.findIndex(d=>d.team_id===this.gameInfo.home_team),r=e.data.data.findIndex(d=>d.team_id===this.gameInfo.visiting_team);else for(let d=0;d<e.data.groups.length;d++)a==-1&&(a=e.data.groups[d].data.findIndex(m=>m.team_id===this.gameInfo.home_team),a!=-1&&(this.home=e.data.groups[d].data[a])),r==-1&&(r=e.data.groups[d].data.findIndex(m=>m.team_id===this.gameInfo.visiting_team),r!=-1&&(this.away=e.data.groups[d].data[r]));this.tournamentType!=1&&(this.home=e.data.data[a],this.away=e.data.data[r]),this.update+=1}catch(e){console.error(e)}}},async mounted(){setTimeout(()=>{this.setUpResizeObserver(),this.getCarouselWidth(),window.addEventListener("resize",this.getCarouselWidth)},1e3),await this.fillData(),await this.getTableList()},beforeUnmount(){window.removeEventListener("resize",this.getCarouselWidth)}},Tp=e=>(t.pushScopeId("data-v-5975a120"),e=e(),t.popScopeId(),e),fnt={ref:"gamesContainer",class:"container",style:{}},gnt={class:"video-partido-container"},ynt={class:"video-partido-container__highlight"},_nt={key:0,class:"video-partido-container__ribbon"},vnt=Tp(()=>t.createElementVNode("h2",{class:"video-partido-container__title"},"HIGHLIGHTS DEL",-1)),bnt=Tp(()=>t.createElementVNode("h2",{class:"video-partido-container__title"},"PARTIDO",-1)),xnt={key:1,class:"video-partido-container__description"},wnt=Tp(()=>t.createElementVNode("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M2.30205 11.4277C2.21053 11.3756 2.13403 11.2978 2.0808 11.2027C2.02757 11.1075 1.99964 10.9986 2 10.8878V1.11068C2.00013 1.0002 2.02825 0.891808 2.08137 0.797044C2.13449 0.70228 2.21063 0.624681 2.3017 0.572496C2.39276 0.520311 2.49535 0.495491 2.59855 0.500673C2.70175 0.505856 2.80171 0.540848 2.8878 0.601929L9.74533 5.49105C9.82365 5.54675 9.88789 5.62229 9.93232 5.71095C9.97675 5.79961 10 5.89864 10 5.99923C10 6.09982 9.97675 6.19885 9.93232 6.28751C9.88789 6.37617 9.82365 6.45171 9.74533 6.50741L2.8878 11.3977C2.80184 11.4589 2.70196 11.494 2.5988 11.4993C2.49565 11.5046 2.39309 11.4798 2.30205 11.4277ZM2.57173 10.8889L9.42926 5.99981L2.57173 10.8889Z",fill:"#CBEE6B"})],-1)),knt={class:"video-partido-container__image"},Cnt=Tp(()=>t.createElementVNode("p",{class:"video-partido-container__description"}," Las jugadas mas importantes del partido ",-1)),Ent=Tp(()=>t.createElementVNode("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M2.30205 11.4277C2.21053 11.3756 2.13403 11.2978 2.0808 11.2027C2.02757 11.1075 1.99964 10.9986 2 10.8878V1.11068C2.00013 1.0002 2.02825 0.891808 2.08137 0.797044C2.13449 0.70228 2.21063 0.624681 2.3017 0.572496C2.39276 0.520311 2.49535 0.495491 2.59855 0.500673C2.70175 0.505856 2.80171 0.540848 2.8878 0.601929L9.74533 5.49105C9.82365 5.54675 9.88789 5.62229 9.93232 5.71095C9.97675 5.79961 10 5.89864 10 5.99923C10 6.09982 9.97675 6.19885 9.93232 6.28751C9.88789 6.37617 9.82365 6.45171 9.74533 6.50741L2.8878 11.3977C2.80184 11.4589 2.70196 11.494 2.5988 11.4993C2.49565 11.5046 2.39309 11.4798 2.30205 11.4277ZM2.57173 10.8889L9.42926 5.99981L2.57173 10.8889Z",fill:"#CBEE6B"})],-1)),Snt={key:1,style:{width:"100%"}},Tnt={class:"gsdatacontainer",ref:"refDataContainer"},Ant={class:"staticsMovilContainerSlider"},Nnt={class:"staticsMovilContainer"},Bnt={class:"staticsMovilContainerComparative"},Int={class:"staticscontainer__header"},Mnt=Tp(()=>t.createElementVNode("h2",{class:"staticscontainer__header__title"},"Estadísticas",-1)),Ont={class:"staticsMovilContainerStats"},Pnt={key:0,class:"gslineupscontainer"},Fnt={class:"staticscontainer__header"},Rnt=Tp(()=>t.createElementVNode("h2",{class:"staticscontainer__header__title"},"Estadísticas",-1)),Vnt={class:"comparativecontainer"},znt={class:"statslinercontainer"};function Dnt(e,a,r,d,m,n){const s=t.resolveComponent("GSCThumbnailHighlightGameHistoric"),i=t.resolveComponent("GSCHighlights"),_=t.resolveComponent("GSCPlayerTeamGame"),f=t.resolveComponent("GSCData"),o=t.resolveComponent("TableComparative"),g=t.resolveComponent("GscLinearTeamStats"),x=t.resolveComponent("GSCSlider"),c=t.resolveComponent("GSCLineups");return t.openBlock(),t.createElementBlock("div",fnt,[t.createElementVNode("div",gnt,[t.createElementVNode("div",ynt,[n.canPlayVideosPostMatch&&r.type=="Postmatch"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",{class:"video-partido-container__content",style:t.normalizeStyle(m.gamesContainerWidth<645?"margin-bottom: 30px":"")},[Object.keys(m.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",_nt,t.toDisplayString(m.gameInfo.matchday_name.replace("Matchday","Jornada").replace("de Final","").replace("Playoffs 1","Cuartos de Final Ida").replace("Playoffs 2","Cuartos de Final Vuelta").replace("Playoffs 3","Semifinal Ida").replace("Playoffs 4","Semifinal Vuelta").replace("Playoffs 5","Final Ida").replace("Playoffs 6","Final Vuelta")),1)):t.createCommentVNode("",!0),vnt,bnt,m.gamesContainerWidth>=645?(t.openBlock(),t.createElementBlock("p",xnt," Las jugadas mas importantes del partido ")):t.createCommentVNode("",!0),m.gamesContainerWidth>=645?(t.openBlock(),t.createElementBlock("button",{key:2,class:"video-partido-container__button",onClick:a[0]||(a[0]=l=>n.onclickPlayVideos({data:m.item,type:1}))},[wnt,t.createTextVNode(" Reproducir ahora ")])):t.createCommentVNode("",!0)],4),t.createElementVNode("div",knt,[m.item.background!=""?(t.openBlock(),t.createBlock(s,{key:0,"color-background-home":m.item.backgroundhome,"color-background-away":m.item.backgroundaway,"logo-home":m.item.logohome,"logo-away":m.item.logoaway,background:m.item.background,matchday:m.item.match,"season-name":m.item.seasonname,onOnclickPlayVideos:a[1]||(a[1]=l=>n.onclickPlayVideos({data:m.item,type:1})),score:m.item.score},null,8,["color-background-home","color-background-away","logo-home","logo-away","background","matchday","season-name","score"])):t.createCommentVNode("",!0)]),t.createElementVNode("div",{class:"video-partido-container__content2",style:t.normalizeStyle(m.gamesContainerWidth<645?"display:block; width: 100%":"display:none")},[Cnt,t.createElementVNode("button",{class:"video-partido-container__button",onClick:a[2]||(a[2]=l=>n.onclickPlayVideos({data:m.item,type:1}))},[Ent,t.createTextVNode(" Reproducir ahora ")])],4)],64)):r.type!=="Postmatch"?(t.openBlock(),t.createElementBlock("div",Snt,[t.createVNode(i,{data:{game:r.config.game,season:r.config.season_id,type:"historic"},"can-play-videos":"","privileges-team-id":r.playVideosPrivileges?r.playVideosPrivileges.seasonAndPrivileges.teamId:0,"video-privileges-playing-as":r.videoPrivilegesPlayingAs,onOpenmedia:n.openmedia},null,8,["data","privileges-team-id","video-privileges-playing-as","onOpenmedia"])])):t.createCommentVNode("",!0)]),!r.playVideosPrivileges||r.playVideosPrivileges.canPrivilegesTeamPlayVideos?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.videopartidopltegaplayersClass)},[t.createVNode(_,{"px-scroll":338,"scroll-color":"none","arrows-position":"absolute","arrows-scroll-hide":!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd",onOpenmedia:n.openmedia,"background-color":"#172531","background-footer":"#183143",style:{"margin-top":"10px"},type:3,title:"Jugadores (sus mejores jugadas):",data:{season:r.config.season_id,game:r.config.game,isPrematch:r.type==="Postmatch"?0:1},"video-privileges-playing-as":r.videoPrivilegesPlayingAs,"play-videos-privileges":r.playVideosPrivileges,onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard},null,8,["onOpenmedia","data","video-privileges-playing-as","play-videos-privileges","onOnClickVideos","onOnClickCard"])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(n.gridpartidosummaryClass)},[t.createElementVNode("div",{class:t.normalizeClass(n.gridpartidosummaryClass+"__row1")},[t.createElementVNode("div",Tnt,[(t.openBlock(),t.createElementBlock("div",{class:"gsWidthDataContainer",key:m.componentKey},[r.type=="Postmatch"?(t.openBlock(),t.createBlock(f,{key:0,onOpenmedia:n.openmedia,type:0,"customize-colors":!1,prematch:!1,"click-card":!1,"wrap-around":!1,data:{season:r.config.season_id,game:r.config.game,home_team_id:m.gameInfo.home_team,away_team_id:m.gameInfo.visiting_team,player:123,team_view:m.gameInfo.home_team},"play-videos-privileges":r.playVideosPrivileges,onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard,onOnClickCategory:e.onClickCategory,onOnViewMore:n.onViewMoreGs},null,8,["onOpenmedia","data","play-videos-privileges","onOnClickVideos","onOnClickCard","onOnClickCategory","onOnViewMore"])):(t.openBlock(),t.createBlock(f,{key:1,onOpenmedia:n.openmedia,type:0,"customize-colors":!1,prematch:!0,"click-card":!1,"wrap-around":!1,data:{season:r.config.season_id,game:r.config.game,home_team_id:m.gameInfo.home_team,away_team_id:m.gameInfo.visiting_team,player:123,team_view:m.gameInfo.home_team},"play-videos-privileges":r.playVideosPrivileges,onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard,onOnClickCategory:e.onClickCategory,onOnViewMore:n.onViewMoreGs},null,8,["onOpenmedia","data","play-videos-privileges","onOnClickVideos","onOnClickCard","onOnClickCategory","onOnViewMore"]))]))],512),t.createElementVNode("div",Ant,[t.createVNode(x,{pxScroll:420,scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsHideOnNoScroll:!0,arrowsBackground:"none",arrowsContainerBgL:"none",arrowsContainerBgR:"none",arrowsMargin:0,arrowsRadius:"0%",arrowsBorder:"none","background-color":"#172531"},{default:t.withCtx(()=>[t.createElementVNode("div",Nnt,[t.createElementVNode("div",Bnt,[t.createElementVNode("div",Int,[Mnt,t.createElementVNode("a",{class:"staticscontainer__header__button",onClick:a[3]||(a[3]=(...l)=>n.changeToTab&&n.changeToTab(...l))},"Ver más")]),t.createTextVNode(" "+t.toDisplayString(m.home)+" ",1),t.createVNode(o,{local:m.home,away:m.away,"home-xg":m.homeXg,"home-goals":m.homeGoals,"away-xg":m.awayXg,"away-goals":m.awayGoals,fontFamily:"Poppins-Regular"},null,8,["local","away","home-xg","home-goals","away-xg","away-goals"])]),t.createElementVNode("div",Ont,[t.createVNode(g,{"play-videos-privileges":r.playVideosPrivileges,stats:m.stats,"game-info":m.gameInfo,onOpenmedia:n.openmedia},null,8,["play-videos-privileges","stats","game-info","onOpenmedia"])])])]),_:1})]),r.showLineups?(t.openBlock(),t.createElementBlock("div",Pnt,[r.type=="Postmatch"?(t.openBlock(),t.createBlock(c,{key:0,type:"2D","selected-option":"Postmatch",game:{game_id:r.config.game,season_id:r.config.season_id,prematch:!1}},null,8,["game"])):(t.openBlock(),t.createBlock(c,{key:1,type:"2D","selected-option":"Historicos",game:{game_id:r.config.game,season_id:r.config.season_id,prematch:!1}},null,8,["game"]))])):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(n.gridpartidosummaryClass+"__row2")},[t.createElementVNode("div",Fnt,[Rnt,t.createElementVNode("a",{class:"staticscontainer__header__button",onClick:a[4]||(a[4]=(...l)=>n.changeToTab&&n.changeToTab(...l))},"Ver más")]),t.createElementVNode("div",Vnt,[t.createVNode(o,{local:m.home,away:m.away,"tournament-type":r.tournamentType,"home-xg":m.homeXg,"home-goals":m.homeGoals,"away-xg":m.awayXg,"away-goals":m.awayGoals,fontFamily:"Poppins-Regular"},null,8,["local","away","tournament-type","home-xg","home-goals","away-xg","away-goals"])]),t.createElementVNode("div",znt,[t.createVNode(g,{"play-videos-privileges":r.playVideosPrivileges,stats:m.stats,"game-info":m.gameInfo,onOpenmedia:n.openmedia},null,8,["play-videos-privileges","stats","game-info","onOpenmedia"])])],2)],2)])],512)}const KP=Kh(mnt,[["render",Dnt],["__scopeId","data-v-5975a120"]]),_It="",vIt="",Lnt={class:"datagame-container"},$nt=Si({__name:"GSCSummaryMain",props:{seasonSelected:{type:Object,default:()=>({id:1772,name:"Apertura 2023",related_seasons:Array(),type:0})},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"}})},showLineups:{type:Boolean,default:!0},canPlayVideos:{type:Boolean,default:!0},seasonAndPrivileges:{type:Object,default:null},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])},playVideosPrivileges:{type:Object,default:null}},emits:["openmedia","changeToTab"],setup(e,{emit:a}){const r=e,d=j1(),m=t.ref(0);t.watch(()=>r.game,i=>{m.value=i.gameId},{deep:!0,immediate:!0});function n(i){a("openmedia",i)}function s(i){a("changeToTab",i)}return(i,_)=>(t.openBlock(),t.createElementBlock("div",Lnt,[e.game.game_status==4?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(KP),{onOpenmedia:n,onChangeToTab:s,type:"Prematch",key:m.value,"tournament-type":t.unref(d).getters["general/getTournamentType"],config:{season_id:e.game.seasonId,game:e.game.gameId,parent_season:e.seasonSelected.id},"can-play-videos":e.canPlayVideos,"video-privileges-playing-as":e.videoPrivilegesPlayingAs,"play-videos-privileges":e.playVideosPrivileges,showLineups:e.showLineups},null,8,["tournament-type","config","can-play-videos","video-privileges-playing-as","play-videos-privileges","showLineups"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(KP),{onOpenmedia:n,onChangeToTab:s,type:"Postmatch","tournament-type":t.unref(d).getters["general/getTournamentType"],key:m.value,config:{season_id:e.game.seasonId,game:e.game.gameId,parent_season:e.seasonSelected.id},showLineups:e.showLineups,"can-play-videos":e.canPlayVideos,"video-privileges-playing-as":e.videoPrivilegesPlayingAs,"play-videos-privileges":e.playVideosPrivileges},null,8,["tournament-type","config","showLineups","can-play-videos","video-privileges-playing-as","play-videos-privileges"])):t.createCommentVNode("",!0)],64))]))}},[["__scopeId","data-v-a36659d9"]]);function JP(e,a){return function(){return e.apply(a,arguments)}}const{toString:jnt}=Object.prototype,{getPrototypeOf:r6}=Object,o_=(e=>a=>{const r=jnt.call(a);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Gc=e=>(e=e.toLowerCase(),a=>o_(a)===e),s_=e=>a=>typeof a===e,{isArray:em}=Array,C0=s_("undefined");function Unt(e){return e!==null&&!C0(e)&&e.constructor!==null&&!C0(e.constructor)&&gc(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const QP=Gc("ArrayBuffer");function Hnt(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&QP(e.buffer),a}const Gnt=s_("string"),gc=s_("function"),eF=s_("number"),l_=e=>e!==null&&typeof e=="object",Wnt=e=>e===!0||e===!1,c_=e=>{if(o_(e)!=="object")return!1;const a=r6(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},qnt=Gc("Date"),Ynt=Gc("File"),Znt=Gc("Blob"),Xnt=Gc("FileList"),Knt=e=>l_(e)&&gc(e.pipe),Jnt=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||gc(e.append)&&((a=o_(e))==="formdata"||a==="object"&&gc(e.toString)&&e.toString()==="[object FormData]"))},Qnt=Gc("URLSearchParams"),[eit,tit,ait,rit]=["ReadableStream","Request","Response","Headers"].map(Gc),nit=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function E0(e,a,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let d,m;if(typeof e!="object"&&(e=[e]),em(e))for(d=0,m=e.length;d<m;d++)a.call(null,e[d],d,e);else{const n=r?Object.getOwnPropertyNames(e):Object.keys(e),s=n.length;let i;for(d=0;d<s;d++)i=n[d],a.call(null,e[i],i,e)}}function tF(e,a){a=a.toLowerCase();const r=Object.keys(e);let d=r.length,m;for(;d-- >0;)if(m=r[d],a===m.toLowerCase())return m;return null}const aF=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,rF=e=>!C0(e)&&e!==aF;function n6(){const{caseless:e}=rF(this)&&this||{},a={},r=(d,m)=>{const n=e&&tF(a,m)||m;c_(a[n])&&c_(d)?a[n]=n6(a[n],d):c_(d)?a[n]=n6({},d):em(d)?a[n]=d.slice():a[n]=d};for(let d=0,m=arguments.length;d<m;d++)arguments[d]&&E0(arguments[d],r);return a}const iit=(e,a,r,{allOwnKeys:d}={})=>(E0(a,(m,n)=>{r&&gc(m)?e[n]=JP(m,r):e[n]=m},{allOwnKeys:d}),e),oit=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),sit=(e,a,r,d)=>{e.prototype=Object.create(a.prototype,d),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),r&&Object.assign(e.prototype,r)},lit=(e,a,r,d)=>{let m,n,s;const i={};if(a=a||{},e==null)return a;do{for(m=Object.getOwnPropertyNames(e),n=m.length;n-- >0;)s=m[n],(!d||d(s,e,a))&&!i[s]&&(a[s]=e[s],i[s]=!0);e=r!==!1&&r6(e)}while(e&&(!r||r(e,a))&&e!==Object.prototype);return a},cit=(e,a,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=a.length;const d=e.indexOf(a,r);return d!==-1&&d===r},dit=e=>{if(!e)return null;if(em(e))return e;let a=e.length;if(!eF(a))return null;const r=new Array(a);for(;a-- >0;)r[a]=e[a];return r},uit=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&r6(Uint8Array)),pit=(e,a)=>{const r=(e&&e[Symbol.iterator]).call(e);let d;for(;(d=r.next())&&!d.done;){const m=d.value;a.call(e,m[0],m[1])}},hit=(e,a)=>{let r;const d=[];for(;(r=e.exec(a))!==null;)d.push(r);return d},mit=Gc("HTMLFormElement"),fit=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,r,d){return r.toUpperCase()+d}),nF=(({hasOwnProperty:e})=>(a,r)=>e.call(a,r))(Object.prototype),git=Gc("RegExp"),iF=(e,a)=>{const r=Object.getOwnPropertyDescriptors(e),d={};E0(r,(m,n)=>{let s;(s=a(m,n,e))!==!1&&(d[n]=s||m)}),Object.defineProperties(e,d)},yit=e=>{iF(e,(a,r)=>{if(gc(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const d=e[r];if(gc(d)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},_it=(e,a)=>{const r={},d=m=>{m.forEach(n=>{r[n]=!0})};return em(e)?d(e):d(String(e).split(a)),r},vit=()=>{},bit=(e,a)=>e!=null&&Number.isFinite(e=+e)?e:a,i6="abcdefghijklmnopqrstuvwxyz",oF="0123456789",sF={DIGIT:oF,ALPHA:i6,ALPHA_DIGIT:i6+i6.toUpperCase()+oF},xit=(e=16,a=sF.ALPHA_DIGIT)=>{let r="";const{length:d}=a;for(;e--;)r+=a[Math.random()*d|0];return r};function wit(e){return!!(e&&gc(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const kit=e=>{const a=new Array(10),r=(d,m)=>{if(l_(d)){if(a.indexOf(d)>=0)return;if(!("toJSON"in d)){a[m]=d;const n=em(d)?[]:{};return E0(d,(s,i)=>{const _=r(s,m+1);!C0(_)&&(n[i]=_)}),a[m]=void 0,n}}return d};return r(e,0)},Cit=Gc("AsyncFunction"),Eit=e=>e&&(l_(e)||gc(e))&&gc(e.then)&&gc(e.catch),ur={isArray:em,isArrayBuffer:QP,isBuffer:Unt,isFormData:Jnt,isArrayBufferView:Hnt,isString:Gnt,isNumber:eF,isBoolean:Wnt,isObject:l_,isPlainObject:c_,isReadableStream:eit,isRequest:tit,isResponse:ait,isHeaders:rit,isUndefined:C0,isDate:qnt,isFile:Ynt,isBlob:Znt,isRegExp:git,isFunction:gc,isStream:Knt,isURLSearchParams:Qnt,isTypedArray:uit,isFileList:Xnt,forEach:E0,merge:n6,extend:iit,trim:nit,stripBOM:oit,inherits:sit,toFlatObject:lit,kindOf:o_,kindOfTest:Gc,endsWith:cit,toArray:dit,forEachEntry:pit,matchAll:hit,isHTMLForm:mit,hasOwnProperty:nF,hasOwnProp:nF,reduceDescriptors:iF,freezeMethods:yit,toObjectSet:_it,toCamelCase:fit,noop:vit,toFiniteNumber:bit,findKey:tF,global:aF,isContextDefined:rF,ALPHABET:sF,generateString:xit,isSpecCompliantForm:wit,toJSONObject:kit,isAsyncFn:Cit,isThenable:Eit};function mn(e,a,r,d,m){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),r&&(this.config=r),d&&(this.request=d),m&&(this.response=m)}ur.inherits(mn,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:ur.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const lF=mn.prototype,cF={};["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=>{cF[e]={value:e}}),Object.defineProperties(mn,cF),Object.defineProperty(lF,"isAxiosError",{value:!0}),mn.from=(e,a,r,d,m,n)=>{const s=Object.create(lF);return ur.toFlatObject(e,s,function(i){return i!==Error.prototype},i=>i!=="isAxiosError"),mn.call(s,e.message,a,r,d,m),s.cause=e,s.name=e.name,n&&Object.assign(s,n),s};const Sit=null;function o6(e){return ur.isPlainObject(e)||ur.isArray(e)}function dF(e){return ur.endsWith(e,"[]")?e.slice(0,-2):e}function uF(e,a,r){return e?e.concat(a).map(function(d,m){return d=dF(d),!r&&m?"["+d+"]":d}).join(r?".":""):a}function Tit(e){return ur.isArray(e)&&!e.some(o6)}const Ait=ur.toFlatObject(ur,{},null,function(e){return/^is[A-Z]/.test(e)});function d_(e,a,r){if(!ur.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,r=ur.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,l){return!ur.isUndefined(l[c])});const d=r.metaTokens,m=r.visitor||f,n=r.dots,s=r.indexes,i=(r.Blob||typeof Blob<"u"&&Blob)&&ur.isSpecCompliantForm(a);if(!ur.isFunction(m))throw new TypeError("visitor must be a function");function _(c){if(c===null)return"";if(ur.isDate(c))return c.toISOString();if(!i&&ur.isBlob(c))throw new mn("Blob is not supported. Use a Buffer instead.");return ur.isArrayBuffer(c)||ur.isTypedArray(c)?i&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function f(c,l,u){let p=c;if(c&&!u&&typeof c=="object"){if(ur.endsWith(l,"{}"))l=d?l:l.slice(0,-2),c=JSON.stringify(c);else if(ur.isArray(c)&&Tit(c)||(ur.isFileList(c)||ur.endsWith(l,"[]"))&&(p=ur.toArray(c)))return l=dF(l),p.forEach(function(h,y){!(ur.isUndefined(h)||h===null)&&a.append(s===!0?uF([l],y,n):s===null?l:l+"[]",_(h))}),!1}return o6(c)?!0:(a.append(uF(u,l,n),_(c)),!1)}const o=[],g=Object.assign(Ait,{defaultVisitor:f,convertValue:_,isVisitable:o6});function x(c,l){if(!ur.isUndefined(c)){if(o.indexOf(c)!==-1)throw Error("Circular reference detected in "+l.join("."));o.push(c),ur.forEach(c,function(u,p){(!(ur.isUndefined(u)||u===null)&&m.call(a,u,ur.isString(p)?p.trim():p,l,g))===!0&&x(u,l?l.concat(p):[p])}),o.pop()}}if(!ur.isObject(e))throw new TypeError("data must be an object");return x(e),a}function pF(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return a[r]})}function s6(e,a){this._pairs=[],e&&d_(e,this,a)}const hF=s6.prototype;hF.append=function(e,a){this._pairs.push([e,a])},hF.toString=function(e){const a=e?function(r){return e.call(this,r,pF)}:pF;return this._pairs.map(function(r){return a(r[0])+"="+a(r[1])},"").join("&")};function Nit(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function mF(e,a,r){if(!a)return e;const d=r&&r.encode||Nit,m=r&&r.serialize;let n;if(m?n=m(a,r):n=ur.isURLSearchParams(a)?a.toString():new s6(a,r).toString(d),n){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+n}return e}class fF{constructor(){this.handlers=[]}use(a,r,d){return this.handlers.push({fulfilled:a,rejected:r,synchronous:d?d.synchronous:!1,runWhen:d?d.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){ur.forEach(this.handlers,function(r){r!==null&&a(r)})}}const gF={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Bit=typeof URLSearchParams<"u"?URLSearchParams:s6,Iit=typeof FormData<"u"?FormData:null,Mit=typeof Blob<"u"?Blob:null,Oit={isBrowser:!0,classes:{URLSearchParams:Bit,FormData:Iit,Blob:Mit},protocols:["http","https","file","blob","url","data"]},l6=typeof window<"u"&&typeof document<"u",Pit=(e=>l6&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Fit=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Rit=l6&&window.location.href||"http://localhost",Vit=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:l6,hasStandardBrowserEnv:Pit,hasStandardBrowserWebWorkerEnv:Fit,origin:Rit},Symbol.toStringTag,{value:"Module"})),Wc={...Vit,...Oit};function zit(e,a){return d_(e,new Wc.classes.URLSearchParams,Object.assign({visitor:function(r,d,m,n){return Wc.isNode&&ur.isBuffer(r)?(this.append(d,r.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},a))}function Dit(e){return ur.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function Lit(e){const a={},r=Object.keys(e);let d;const m=r.length;let n;for(d=0;d<m;d++)n=r[d],a[n]=e[n];return a}function yF(e){function a(r,d,m,n){let s=r[n++];if(s==="__proto__")return!0;const i=Number.isFinite(+s),_=n>=r.length;return s=!s&&ur.isArray(m)?m.length:s,_?(ur.hasOwnProp(m,s)?m[s]=[m[s],d]:m[s]=d,!i):((!m[s]||!ur.isObject(m[s]))&&(m[s]=[]),a(r,d,m[s],n)&&ur.isArray(m[s])&&(m[s]=Lit(m[s])),!i)}if(ur.isFormData(e)&&ur.isFunction(e.entries)){const r={};return ur.forEachEntry(e,(d,m)=>{a(Dit(d),m,r,0)}),r}return null}function $it(e,a,r){if(ur.isString(e))try{return(a||JSON.parse)(e),ur.trim(e)}catch(d){if(d.name!=="SyntaxError")throw d}return(r||JSON.stringify)(e)}const S0={transitional:gF,adapter:["xhr","http","fetch"],transformRequest:[function(e,a){const r=a.getContentType()||"",d=r.indexOf("application/json")>-1,m=ur.isObject(e);if(m&&ur.isHTMLForm(e)&&(e=new FormData(e)),ur.isFormData(e))return d?JSON.stringify(yF(e)):e;if(ur.isArrayBuffer(e)||ur.isBuffer(e)||ur.isStream(e)||ur.isFile(e)||ur.isBlob(e)||ur.isReadableStream(e))return e;if(ur.isArrayBufferView(e))return e.buffer;if(ur.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let n;if(m){if(r.indexOf("application/x-www-form-urlencoded")>-1)return zit(e,this.formSerializer).toString();if((n=ur.isFileList(e))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return d_(n?{"files[]":e}:e,s&&new s,this.formSerializer)}}return m||d?(a.setContentType("application/json",!1),$it(e)):e}],transformResponse:[function(e){const a=this.transitional||S0.transitional,r=a&&a.forcedJSONParsing,d=this.responseType==="json";if(ur.isResponse(e)||ur.isReadableStream(e))return e;if(e&&ur.isString(e)&&(r&&!this.responseType||d)){const m=!(a&&a.silentJSONParsing)&&d;try{return JSON.parse(e)}catch(n){if(m)throw n.name==="SyntaxError"?mn.from(n,mn.ERR_BAD_RESPONSE,this,null,this.response):n}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Wc.classes.FormData,Blob:Wc.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ur.forEach(["delete","get","head","post","put","patch"],e=>{S0.headers[e]={}});const jit=ur.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"]),Uit=e=>{const a={};let r,d,m;return e&&e.split(`
|
|
114
|
+
`+n):d.stack=n}throw d}}_request(a,r){typeof a=="string"?(r=r||{},r.url=a):r=a||{},r=Qh(this.defaults,r);const{transitional:d,paramsSerializer:m,headers:n}=r;d!==void 0&&t6.assertOptions(d,{silentJSONParsing:Xu.transitional(Xu.boolean),forcedJSONParsing:Xu.transitional(Xu.boolean),clarifyTimeoutError:Xu.transitional(Xu.boolean)},!1),m!=null&&(Ar.isFunction(m)?r.paramsSerializer={serialize:m}:t6.assertOptions(m,{encode:Xu.function,serialize:Xu.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=n&&Ar.merge(n.common,n[r.method]);n&&Ar.forEach(["delete","get","head","post","put","patch","common"],l=>{delete n[l]}),r.headers=fu.concat(s,n);const i=[];let _=!0;this.interceptors.request.forEach(function(l){typeof l.runWhen=="function"&&l.runWhen(r)===!1||(_=_&&l.synchronous,i.unshift(l.fulfilled,l.rejected))});const f=[];this.interceptors.response.forEach(function(l){f.push(l.fulfilled,l.rejected)});let o,g=0,x;if(!_){const l=[HP.bind(this),void 0];for(l.unshift.apply(l,i),l.push.apply(l,f),x=l.length,o=Promise.resolve(r);g<x;)o=o.then(l[g++],l[g++]);return o}x=i.length;let c=r;for(g=0;g<x;){const l=i[g++],u=i[g++];try{c=l(c)}catch(p){u.call(this,p);break}}try{o=HP.call(this,c)}catch(l){return Promise.reject(l)}for(g=0,x=f.length;g<x;)o=o.then(f[g++],f[g++]);return o}getUri(a){a=Qh(this.defaults,a);const r=LP(a.baseURL,a.url);return OP(r,a.params,a.paramsSerializer)}}Ar.forEach(["delete","get","head","options"],function(e){n_.prototype[e]=function(a,r){return this.request(Qh(r||{},{method:e,url:a,data:(r||{}).data}))}}),Ar.forEach(["post","put","patch"],function(e){function a(r){return function(d,m,n){return this.request(Qh(n||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:d,data:m}))}}n_.prototype[e]=a(),n_.prototype[e+"Form"]=a(!0)});const i_=n_,dnt=class g${constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(m){r=m});const d=this;this.promise.then(m=>{if(!d._listeners)return;let n=d._listeners.length;for(;n-- >0;)d._listeners[n](m);d._listeners=null}),this.promise.then=m=>{let n;const s=new Promise(i=>{d.subscribe(i),n=i}).then(m);return s.cancel=function(){d.unsubscribe(n)},s},a(function(m,n,s){d.reason||(d.reason=new k0(m,n,s),r(d.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const r=this._listeners.indexOf(a);r!==-1&&this._listeners.splice(r,1)}static source(){let a;return{token:new g$(function(r){a=r}),cancel:a}}};function unt(e){return function(a){return e.apply(null,a)}}function pnt(e){return Ar.isObject(e)&&e.isAxiosError===!0}const a6={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(a6).forEach(([e,a])=>{a6[a]=e});const hnt=a6;function YP(e){const a=new i_(e),r=yP(i_.prototype.request,a);return Ar.extend(r,i_.prototype,a,{allOwnKeys:!0}),Ar.extend(r,a,null,{allOwnKeys:!0}),r.create=function(d){return YP(Qh(e,d))},r}const Mo=YP(Zw);Mo.Axios=i_,Mo.CanceledError=k0,Mo.CancelToken=dnt,Mo.isCancel=DP,Mo.VERSION=WP,Mo.toFormData=t_,Mo.AxiosError=Yn,Mo.Cancel=Mo.CanceledError,Mo.all=function(e){return Promise.all(e)},Mo.spread=unt,Mo.isAxiosError=pnt,Mo.mergeConfig=Qh,Mo.AxiosHeaders=fu,Mo.formToJSON=e=>VP(Ar.isHTMLForm(e)?new FormData(e):e),Mo.getAdapter=UP.getAdapter,Mo.HttpStatusCode=hnt,Mo.default=Mo;const ZP=Mo;let XP=null;const mnt={components:{GSCPlayerTeamGame:cet,GSCLineups:GXe,GSCData:aMe,GSCHighlights:CPe,GSCSlider:fAe,TableComparative:qet,GSCThumbnailHighlightGameHistoric:bet,GscLinearTeamStats:Kat},props:{config:{type:Object,default:()=>{}},type:{type:String,default:"Postmatch"},tournamentType:{type:Number,default:0},showLineups:{type:Boolean,default:!0},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])},playVideosPrivileges:{type:Object,default:null}},data(){return{update:0,item:{backgroundhome:"",backgroundaway:"",logohome:"",logoaway:"",background:"",match:"",seasonname:"",score:""},stats:{},statsLocal:{},statsAway:{},home:{},away:{},gameInfo:{},elementSize:{width:0,height:0},componentKey:0,homeXg:"",homeGoals:"",awayXg:"",awayGoals:"",url:"https://jfxv8fqkn3.execute-api.us-west-2.amazonaws.com/prod/generalTable/",gamesContainerWidth:0,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{canPlayVideosPostMatch(){return this.playVideosPrivileges?this.playVideosPrivileges.canPrivilegesTeamPlayVideos:!0},gridpartidosummaryClass(){return this.gamesContainerWidth<=820?"grid-partido-summary820":"grid-partido-summary"},videopartidopltegaplayersClass(){return this.gamesContainerWidth<=900?"video-partido-pltega-players620":"video-partido-pltega-players"}},watch:{elementSize:{handler:function(e,a){a&&(a.width===0||a.width>700)&&this.componentKey<1&&this.componentKey++},immediate:!0,deep:!0}},methods:{getCarouselWidth(){const e=this.$refs.refDataContainer;if(e){const a=e.getBoundingClientRect(),r=a.width/1,d=Math.max(200,r);this.elementSize.width=d,this.elementSize.height=a.height}},onclickPlayVideos(e){var a=[];e.type==2?e.data.position_id==1?e.data.category==0?a=[55,324,323,608,39,774,802,52,53,40,54]:a=e.data.category:e.data.category==0?a=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:a=e.data.category:e.type==3?e.data.category==0?a=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:a=e.data.category:e.data.category!=0?a=e.data.category:a=[607,608,12,55,54,35,14,52,15,53,466,477];const r=[1,2,3];let d={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:a,gameIds:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[e.data.matchResult]:r,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(d.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",d)},onViewMoreGs(){this.$emit("changeToTab","Datos Golstats")},changeToTab(){this.$emit("changeToTab","Estadísticas")},openmedia(e){this.$emit("openmedia",e)},setUpResizeObserver(){if(window.ResizeObserver)XP=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),XP.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},getXg(e){let a={};const r=e.local_team.reduce((s,i)=>(a[i[16]]||(s+=i[14],a[i[16]]=!0),s),0);a={};const d=e.local_team.reduce((s,i)=>(!a[i[16]]&&(i[0]==12||i[0]==55||i[0]==35||i[0]==54)&&(s+=i[6],a[i[16]]=!0),s),0);a={};const m=e.visiting_team.reduce((s,i)=>(a[i[16]]||(s+=i[14],a[i[16]]=!0),s),0);a={};const n=e.visiting_team.reduce((s,i)=>(!a[i[16]]&&(i[0]==12||i[0]==55||i[0]==35||i[0]==54)&&(s+=i[6],a[i[16]]=!0),s),0);this.homeXg=gP(r,2),this.homeGoals=d,this.awayXg=gP(m,2),this.awayGoals=n},async fillData(){const e=ZP.create({headers:{Authorization:`${this.token}`}}),a=await e.get("https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/"+this.config.season_id),r=a.data.games.findIndex(m=>m.game_id===this.config.game);if(this.gameInfo=a.data.games[r],this.type==="Postmatch"){const m=await e.get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+this.config.game);this.item.category=0,this.item.game_id=m.data.game_id,this.item.season_id=this.config.season_id,this.item.score=m.data.thumbnails[m.data.game_id].score[0]+" - "+m.data.thumbnails[m.data.game_id].score[1],this.item.backgroundhome=m.data.thumbnails[m.data.game_id].info_thumbnails.home_colors.background_color,this.item.backgroundaway=m.data.thumbnails[m.data.game_id].info_thumbnails.away_colors.background_color,this.item.logohome="https://az755631.vo.msecnd.net/teams-150/"+m.data.thumbnails[m.data.game_id].home_team+".png",this.item.logoaway="https://az755631.vo.msecnd.net/teams-150/"+m.data.thumbnails[m.data.game_id].visiting_team+".png",this.item.background="https://golstatsimages.blob.core.windows.net/images-library/"+m.data.thumbnails[m.data.game_id].info_thumbnails.images.background_default_games[0]}try{const m=await e.get("https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/seasons/"+this.config.season_id+"/teams/"+this.gameInfo.home_team+"/"+this.gameInfo.visiting_team);if(m.data.data_headers.length>0)this.getXg(m.data);else try{const n=await e.get("https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/seasons/"+this.config.parent_season+"/teams/"+this.gameInfo.home_team+"/"+this.gameInfo.visiting_team);this.getXg(n.data)}catch(n){console.log(n)}}catch(m){console.log(m)}this.stats[this.gameInfo.home_team]=[],this.stats[this.gameInfo.visiting_team]=[];var d=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40];for(let m=0;m<d.length;m++)this.stats[this.gameInfo.home_team][d[m]]=[],this.stats[this.gameInfo.home_team][d[m]]=0,this.stats[this.gameInfo.visiting_team][d[m]]=[],this.stats[this.gameInfo.visiting_team][d[m]]=0;if(this.type==="Postmatch"){const m=await e.get("https://nckawv8v3b.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsByGame/"+this.config.game);for(let n=0;n<m.data.data.length;n++)m.data.data[n][1]==this.gameInfo.home_team?this.stats[this.gameInfo.home_team][m.data.data[n][0]]?this.stats[this.gameInfo.home_team][m.data.data[n][0]]=this.stats[this.gameInfo.home_team][m.data.data[n][0]]+m.data.data[n][6]:(this.stats[this.gameInfo.home_team][m.data.data[n][0]]=[],this.stats[this.gameInfo.home_team][m.data.data[n][0]]=m.data.data[n][6]):this.stats[this.gameInfo.visiting_team][m.data.data[n][0]]?this.stats[this.gameInfo.visiting_team][m.data.data[n][0]]=this.stats[this.gameInfo.visiting_team][m.data.data[n][0]]+m.data.data[n][6]:(this.stats[this.gameInfo.visiting_team][m.data.data[n][0]]=[],this.stats[this.gameInfo.visiting_team][m.data.data[n][0]]=m.data.data[n][6])}else if(this.type==="Prematch"){try{const _=await e.get("https://a4dcb6avog.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsTeamBySeason/"+this.config.season_id+"/"+this.gameInfo.home_team);this.statsLocal=_}catch{try{const _=await e.get("https://a4dcb6avog.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsTeamBySeason/"+this.config.parent_season+"/"+this.gameInfo.home_team);this.statsLocal=_}catch{console.log("error regular local")}}try{const _=await e.get("https://a4dcb6avog.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsTeamBySeason/"+this.config.season_id+"/"+this.gameInfo.visiting_team);this.statsAway=_}catch{const _=await e.get("https://a4dcb6avog.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsTeamBySeason/"+this.config.parent_season+"/"+this.gameInfo.visiting_team);this.statsAway=_}const m=this.statsLocal.data.games.played?this.statsLocal.data.games.played:1,n=this.statsAway.data.games.played?this.statsAway.data.games.played:1;for(let _=0;_<this.statsLocal.data.data.length;_++){const[f,,,,,,o]=this.statsLocal.data.data[_],g=this.stats[this.gameInfo.home_team];g[f]=(g[f]||0)+o}for(let _=0;_<this.statsAway.data.data.length;_++){const[f,,,,,,o]=this.statsAway.data.data[_],g=this.stats[this.gameInfo.visiting_team];g[f]=(g[f]||0)+o}const s=this.stats[this.gameInfo.home_team];for(const _ in s)s[_]&&s[_]>0&&(s[_]/=m);const i=this.stats[this.gameInfo.visiting_team];for(const _ in i)i[_]&&i[_]>0&&(i[_]/=n)}},async getTableList(){try{const e=await ZP.create({headers:{Authorization:`${this.token}`}}).get(this.url+this.config.parent_season);let a=-1,r=-1;if(this.tournamentType!=1)a=e.data.data.findIndex(d=>d.team_id===this.gameInfo.home_team),r=e.data.data.findIndex(d=>d.team_id===this.gameInfo.visiting_team);else for(let d=0;d<e.data.groups.length;d++)a==-1&&(a=e.data.groups[d].data.findIndex(m=>m.team_id===this.gameInfo.home_team),a!=-1&&(this.home=e.data.groups[d].data[a])),r==-1&&(r=e.data.groups[d].data.findIndex(m=>m.team_id===this.gameInfo.visiting_team),r!=-1&&(this.away=e.data.groups[d].data[r]));this.tournamentType!=1&&(this.home=e.data.data[a],this.away=e.data.data[r]),this.update+=1}catch(e){console.error(e)}}},async mounted(){setTimeout(()=>{this.setUpResizeObserver(),this.getCarouselWidth(),window.addEventListener("resize",this.getCarouselWidth)},1e3),await this.fillData(),await this.getTableList()},beforeUnmount(){window.removeEventListener("resize",this.getCarouselWidth)}},Tp=e=>(t.pushScopeId("data-v-5975a120"),e=e(),t.popScopeId(),e),fnt={ref:"gamesContainer",class:"container",style:{}},gnt={class:"video-partido-container"},ynt={class:"video-partido-container__highlight"},_nt={key:0,class:"video-partido-container__ribbon"},vnt=Tp(()=>t.createElementVNode("h2",{class:"video-partido-container__title"},"HIGHLIGHTS DEL",-1)),bnt=Tp(()=>t.createElementVNode("h2",{class:"video-partido-container__title"},"PARTIDO",-1)),xnt={key:1,class:"video-partido-container__description"},wnt=Tp(()=>t.createElementVNode("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M2.30205 11.4277C2.21053 11.3756 2.13403 11.2978 2.0808 11.2027C2.02757 11.1075 1.99964 10.9986 2 10.8878V1.11068C2.00013 1.0002 2.02825 0.891808 2.08137 0.797044C2.13449 0.70228 2.21063 0.624681 2.3017 0.572496C2.39276 0.520311 2.49535 0.495491 2.59855 0.500673C2.70175 0.505856 2.80171 0.540848 2.8878 0.601929L9.74533 5.49105C9.82365 5.54675 9.88789 5.62229 9.93232 5.71095C9.97675 5.79961 10 5.89864 10 5.99923C10 6.09982 9.97675 6.19885 9.93232 6.28751C9.88789 6.37617 9.82365 6.45171 9.74533 6.50741L2.8878 11.3977C2.80184 11.4589 2.70196 11.494 2.5988 11.4993C2.49565 11.5046 2.39309 11.4798 2.30205 11.4277ZM2.57173 10.8889L9.42926 5.99981L2.57173 10.8889Z",fill:"#CBEE6B"})],-1)),knt={class:"video-partido-container__image"},Cnt=Tp(()=>t.createElementVNode("p",{class:"video-partido-container__description"}," Las jugadas mas importantes del partido ",-1)),Ent=Tp(()=>t.createElementVNode("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M2.30205 11.4277C2.21053 11.3756 2.13403 11.2978 2.0808 11.2027C2.02757 11.1075 1.99964 10.9986 2 10.8878V1.11068C2.00013 1.0002 2.02825 0.891808 2.08137 0.797044C2.13449 0.70228 2.21063 0.624681 2.3017 0.572496C2.39276 0.520311 2.49535 0.495491 2.59855 0.500673C2.70175 0.505856 2.80171 0.540848 2.8878 0.601929L9.74533 5.49105C9.82365 5.54675 9.88789 5.62229 9.93232 5.71095C9.97675 5.79961 10 5.89864 10 5.99923C10 6.09982 9.97675 6.19885 9.93232 6.28751C9.88789 6.37617 9.82365 6.45171 9.74533 6.50741L2.8878 11.3977C2.80184 11.4589 2.70196 11.494 2.5988 11.4993C2.49565 11.5046 2.39309 11.4798 2.30205 11.4277ZM2.57173 10.8889L9.42926 5.99981L2.57173 10.8889Z",fill:"#CBEE6B"})],-1)),Snt={key:1,style:{width:"100%"}},Tnt={class:"gsdatacontainer",ref:"refDataContainer"},Ant={class:"staticsMovilContainerSlider"},Nnt={class:"staticsMovilContainer"},Bnt={class:"staticsMovilContainerComparative"},Int={class:"staticscontainer__header"},Mnt=Tp(()=>t.createElementVNode("h2",{class:"staticscontainer__header__title"},"Estadísticas",-1)),Ont={class:"staticsMovilContainerStats"},Pnt={key:0,class:"gslineupscontainer"},Fnt={class:"staticscontainer__header"},Rnt=Tp(()=>t.createElementVNode("h2",{class:"staticscontainer__header__title"},"Estadísticas",-1)),Vnt={class:"comparativecontainer"},znt={class:"statslinercontainer"};function Dnt(e,a,r,d,m,n){const s=t.resolveComponent("GSCThumbnailHighlightGameHistoric"),i=t.resolveComponent("GSCHighlights"),_=t.resolveComponent("GSCPlayerTeamGame"),f=t.resolveComponent("GSCData"),o=t.resolveComponent("TableComparative"),g=t.resolveComponent("GscLinearTeamStats"),x=t.resolveComponent("GSCSlider"),c=t.resolveComponent("GSCLineups");return t.openBlock(),t.createElementBlock("div",fnt,[t.createElementVNode("div",gnt,[t.createElementVNode("div",ynt,[n.canPlayVideosPostMatch&&r.type=="Postmatch"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",{class:"video-partido-container__content",style:t.normalizeStyle(m.gamesContainerWidth<645?"margin-bottom: 30px":"")},[Object.keys(m.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",_nt,t.toDisplayString(m.gameInfo.matchday_name.replace("Matchday","Jornada").replace("de Final","").replace("Playoffs 1","Cuartos de Final Ida").replace("Playoffs 2","Cuartos de Final Vuelta").replace("Playoffs 3","Semifinal Ida").replace("Playoffs 4","Semifinal Vuelta").replace("Playoffs 5","Final Ida").replace("Playoffs 6","Final Vuelta")),1)):t.createCommentVNode("",!0),vnt,bnt,m.gamesContainerWidth>=645?(t.openBlock(),t.createElementBlock("p",xnt," Las jugadas mas importantes del partido ")):t.createCommentVNode("",!0),m.gamesContainerWidth>=645?(t.openBlock(),t.createElementBlock("button",{key:2,class:"video-partido-container__button",onClick:a[0]||(a[0]=l=>n.onclickPlayVideos({data:m.item,type:1}))},[wnt,t.createTextVNode(" Reproducir ahora ")])):t.createCommentVNode("",!0)],4),t.createElementVNode("div",knt,[m.item.background!=""?(t.openBlock(),t.createBlock(s,{key:0,"color-background-home":m.item.backgroundhome,"color-background-away":m.item.backgroundaway,"logo-home":m.item.logohome,"logo-away":m.item.logoaway,background:m.item.background,matchday:m.item.match,"season-name":m.item.seasonname,onOnclickPlayVideos:a[1]||(a[1]=l=>n.onclickPlayVideos({data:m.item,type:1})),score:m.item.score},null,8,["color-background-home","color-background-away","logo-home","logo-away","background","matchday","season-name","score"])):t.createCommentVNode("",!0)]),t.createElementVNode("div",{class:"video-partido-container__content2",style:t.normalizeStyle(m.gamesContainerWidth<645?"display:block; width: 100%":"display:none")},[Cnt,t.createElementVNode("button",{class:"video-partido-container__button",onClick:a[2]||(a[2]=l=>n.onclickPlayVideos({data:m.item,type:1}))},[Ent,t.createTextVNode(" Reproducir ahora ")])],4)],64)):r.type!=="Postmatch"?(t.openBlock(),t.createElementBlock("div",Snt,[t.createVNode(i,{data:{game:r.config.game,season:r.config.season_id,type:"historic"},"can-play-videos":"","privileges-team-id":r.playVideosPrivileges?r.playVideosPrivileges.seasonAndPrivileges.teamId:0,"video-privileges-playing-as":r.videoPrivilegesPlayingAs,onOpenmedia:n.openmedia},null,8,["data","privileges-team-id","video-privileges-playing-as","onOpenmedia"])])):t.createCommentVNode("",!0)]),!r.playVideosPrivileges||r.playVideosPrivileges.canPrivilegesTeamPlayVideos?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.videopartidopltegaplayersClass)},[t.createVNode(_,{"px-scroll":338,"scroll-color":"none","arrows-position":"absolute","arrows-scroll-hide":!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd",onOpenmedia:n.openmedia,"background-color":"#172531","background-footer":"#183143",style:{"margin-top":"10px"},type:3,title:"Jugadores (sus mejores jugadas):",data:{season:r.config.season_id,game:r.config.game,isPrematch:r.type==="Postmatch"?0:1},"video-privileges-playing-as":r.videoPrivilegesPlayingAs,"play-videos-privileges":r.playVideosPrivileges,onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard},null,8,["onOpenmedia","data","video-privileges-playing-as","play-videos-privileges","onOnClickVideos","onOnClickCard"])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(n.gridpartidosummaryClass)},[t.createElementVNode("div",{class:t.normalizeClass(n.gridpartidosummaryClass+"__row1")},[t.createElementVNode("div",Tnt,[(t.openBlock(),t.createElementBlock("div",{class:"gsWidthDataContainer",key:m.componentKey},[r.type=="Postmatch"?(t.openBlock(),t.createBlock(f,{key:0,onOpenmedia:n.openmedia,type:0,"customize-colors":!1,prematch:!1,"click-card":!1,"wrap-around":!1,data:{season:r.config.season_id,game:r.config.game,home_team_id:m.gameInfo.home_team,away_team_id:m.gameInfo.visiting_team,player:123,team_view:m.gameInfo.home_team},"play-videos-privileges":r.playVideosPrivileges,onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard,onOnClickCategory:e.onClickCategory,onOnViewMore:n.onViewMoreGs},null,8,["onOpenmedia","data","play-videos-privileges","onOnClickVideos","onOnClickCard","onOnClickCategory","onOnViewMore"])):(t.openBlock(),t.createBlock(f,{key:1,onOpenmedia:n.openmedia,type:0,"customize-colors":!1,prematch:!0,"click-card":!1,"wrap-around":!1,data:{season:r.config.season_id,game:r.config.game,home_team_id:m.gameInfo.home_team,away_team_id:m.gameInfo.visiting_team,player:123,team_view:m.gameInfo.home_team},"play-videos-privileges":r.playVideosPrivileges,onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard,onOnClickCategory:e.onClickCategory,onOnViewMore:n.onViewMoreGs},null,8,["onOpenmedia","data","play-videos-privileges","onOnClickVideos","onOnClickCard","onOnClickCategory","onOnViewMore"]))]))],512),t.createElementVNode("div",Ant,[t.createVNode(x,{pxScroll:420,scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsHideOnNoScroll:!0,arrowsBackground:"none",arrowsContainerBgL:"none",arrowsContainerBgR:"none",arrowsMargin:0,arrowsRadius:"0%",arrowsBorder:"none","background-color":"#172531"},{default:t.withCtx(()=>[t.createElementVNode("div",Nnt,[t.createElementVNode("div",Bnt,[t.createElementVNode("div",Int,[Mnt,t.createElementVNode("a",{class:"staticscontainer__header__button",onClick:a[3]||(a[3]=(...l)=>n.changeToTab&&n.changeToTab(...l))},"Ver más")]),t.createTextVNode(" "+t.toDisplayString(m.home)+" ",1),t.createVNode(o,{local:m.home,away:m.away,"home-xg":m.homeXg,"home-goals":m.homeGoals,"away-xg":m.awayXg,"away-goals":m.awayGoals,fontFamily:"Poppins-Regular"},null,8,["local","away","home-xg","home-goals","away-xg","away-goals"])]),t.createElementVNode("div",Ont,[t.createVNode(g,{"play-videos-privileges":r.playVideosPrivileges,stats:m.stats,"game-info":m.gameInfo,onOpenmedia:n.openmedia},null,8,["play-videos-privileges","stats","game-info","onOpenmedia"])])])]),_:1})]),r.showLineups?(t.openBlock(),t.createElementBlock("div",Pnt,[r.type=="Postmatch"?(t.openBlock(),t.createBlock(c,{key:0,type:"2D","selected-option":"Postmatch",game:{game_id:r.config.game,season_id:r.config.season_id,prematch:!1}},null,8,["game"])):(t.openBlock(),t.createBlock(c,{key:1,type:"2D","selected-option":"Historicos",game:{game_id:r.config.game,season_id:r.config.season_id,prematch:!1}},null,8,["game"]))])):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(n.gridpartidosummaryClass+"__row2")},[t.createElementVNode("div",Fnt,[Rnt,t.createElementVNode("a",{class:"staticscontainer__header__button",onClick:a[4]||(a[4]=(...l)=>n.changeToTab&&n.changeToTab(...l))},"Ver más")]),t.createElementVNode("div",Vnt,[t.createVNode(o,{local:m.home,away:m.away,"tournament-type":r.tournamentType,"home-xg":m.homeXg,"home-goals":m.homeGoals,"away-xg":m.awayXg,"away-goals":m.awayGoals,fontFamily:"Poppins-Regular"},null,8,["local","away","tournament-type","home-xg","home-goals","away-xg","away-goals"])]),t.createElementVNode("div",znt,[t.createVNode(g,{"play-videos-privileges":r.playVideosPrivileges,stats:m.stats,"game-info":m.gameInfo,onOpenmedia:n.openmedia},null,8,["play-videos-privileges","stats","game-info","onOpenmedia"])])],2)],2)])],512)}const KP=Kh(mnt,[["render",Dnt],["__scopeId","data-v-5975a120"]]),_It="",vIt="",Lnt={class:"datagame-container"},$nt=Si({__name:"GSCSummaryMain",props:{seasonSelected:{type:Object,default:()=>({id:1772,name:"Apertura 2023",related_seasons:Array(),type:0})},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"}})},showLineups:{type:Boolean,default:!0},canPlayVideos:{type:Boolean,default:!0},seasonAndPrivileges:{type:Object,default:null},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])},playVideosPrivileges:{type:Object,default:null}},emits:["openmedia","changeToTab"],setup(e,{emit:a}){const r=e,d=j1(),m=t.ref(0);t.watch(()=>r.game,i=>{m.value=i.gameId},{deep:!0,immediate:!0});function n(i){a("openmedia",i)}function s(i){a("changeToTab",i)}return(i,_)=>(t.openBlock(),t.createElementBlock("div",Lnt,[e.game.game_status==4?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(KP),{onOpenmedia:n,onChangeToTab:s,type:"Prematch",key:m.value,"tournament-type":t.unref(d).getters["gameGlobal/getTournamentType"],config:{season_id:e.game.seasonId,game:e.game.gameId,parent_season:e.seasonSelected.id},"can-play-videos":e.canPlayVideos,"video-privileges-playing-as":e.videoPrivilegesPlayingAs,"play-videos-privileges":e.playVideosPrivileges,showLineups:e.showLineups},null,8,["tournament-type","config","can-play-videos","video-privileges-playing-as","play-videos-privileges","showLineups"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(KP),{onOpenmedia:n,onChangeToTab:s,type:"Postmatch","tournament-type":t.unref(d).getters["gameGlobal/getTournamentType"],key:m.value,config:{season_id:e.game.seasonId,game:e.game.gameId,parent_season:e.seasonSelected.id},showLineups:e.showLineups,"can-play-videos":e.canPlayVideos,"video-privileges-playing-as":e.videoPrivilegesPlayingAs,"play-videos-privileges":e.playVideosPrivileges},null,8,["tournament-type","config","showLineups","can-play-videos","video-privileges-playing-as","play-videos-privileges"])):t.createCommentVNode("",!0)],64))]))}},[["__scopeId","data-v-60daf71a"]]);function JP(e,a){return function(){return e.apply(a,arguments)}}const{toString:jnt}=Object.prototype,{getPrototypeOf:r6}=Object,o_=(e=>a=>{const r=jnt.call(a);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Gc=e=>(e=e.toLowerCase(),a=>o_(a)===e),s_=e=>a=>typeof a===e,{isArray:em}=Array,C0=s_("undefined");function Unt(e){return e!==null&&!C0(e)&&e.constructor!==null&&!C0(e.constructor)&&gc(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const QP=Gc("ArrayBuffer");function Hnt(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&QP(e.buffer),a}const Gnt=s_("string"),gc=s_("function"),eF=s_("number"),l_=e=>e!==null&&typeof e=="object",Wnt=e=>e===!0||e===!1,c_=e=>{if(o_(e)!=="object")return!1;const a=r6(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},qnt=Gc("Date"),Ynt=Gc("File"),Znt=Gc("Blob"),Xnt=Gc("FileList"),Knt=e=>l_(e)&&gc(e.pipe),Jnt=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||gc(e.append)&&((a=o_(e))==="formdata"||a==="object"&&gc(e.toString)&&e.toString()==="[object FormData]"))},Qnt=Gc("URLSearchParams"),[eit,tit,ait,rit]=["ReadableStream","Request","Response","Headers"].map(Gc),nit=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function E0(e,a,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let d,m;if(typeof e!="object"&&(e=[e]),em(e))for(d=0,m=e.length;d<m;d++)a.call(null,e[d],d,e);else{const n=r?Object.getOwnPropertyNames(e):Object.keys(e),s=n.length;let i;for(d=0;d<s;d++)i=n[d],a.call(null,e[i],i,e)}}function tF(e,a){a=a.toLowerCase();const r=Object.keys(e);let d=r.length,m;for(;d-- >0;)if(m=r[d],a===m.toLowerCase())return m;return null}const aF=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,rF=e=>!C0(e)&&e!==aF;function n6(){const{caseless:e}=rF(this)&&this||{},a={},r=(d,m)=>{const n=e&&tF(a,m)||m;c_(a[n])&&c_(d)?a[n]=n6(a[n],d):c_(d)?a[n]=n6({},d):em(d)?a[n]=d.slice():a[n]=d};for(let d=0,m=arguments.length;d<m;d++)arguments[d]&&E0(arguments[d],r);return a}const iit=(e,a,r,{allOwnKeys:d}={})=>(E0(a,(m,n)=>{r&&gc(m)?e[n]=JP(m,r):e[n]=m},{allOwnKeys:d}),e),oit=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),sit=(e,a,r,d)=>{e.prototype=Object.create(a.prototype,d),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),r&&Object.assign(e.prototype,r)},lit=(e,a,r,d)=>{let m,n,s;const i={};if(a=a||{},e==null)return a;do{for(m=Object.getOwnPropertyNames(e),n=m.length;n-- >0;)s=m[n],(!d||d(s,e,a))&&!i[s]&&(a[s]=e[s],i[s]=!0);e=r!==!1&&r6(e)}while(e&&(!r||r(e,a))&&e!==Object.prototype);return a},cit=(e,a,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=a.length;const d=e.indexOf(a,r);return d!==-1&&d===r},dit=e=>{if(!e)return null;if(em(e))return e;let a=e.length;if(!eF(a))return null;const r=new Array(a);for(;a-- >0;)r[a]=e[a];return r},uit=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&r6(Uint8Array)),pit=(e,a)=>{const r=(e&&e[Symbol.iterator]).call(e);let d;for(;(d=r.next())&&!d.done;){const m=d.value;a.call(e,m[0],m[1])}},hit=(e,a)=>{let r;const d=[];for(;(r=e.exec(a))!==null;)d.push(r);return d},mit=Gc("HTMLFormElement"),fit=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,r,d){return r.toUpperCase()+d}),nF=(({hasOwnProperty:e})=>(a,r)=>e.call(a,r))(Object.prototype),git=Gc("RegExp"),iF=(e,a)=>{const r=Object.getOwnPropertyDescriptors(e),d={};E0(r,(m,n)=>{let s;(s=a(m,n,e))!==!1&&(d[n]=s||m)}),Object.defineProperties(e,d)},yit=e=>{iF(e,(a,r)=>{if(gc(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const d=e[r];if(gc(d)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},_it=(e,a)=>{const r={},d=m=>{m.forEach(n=>{r[n]=!0})};return em(e)?d(e):d(String(e).split(a)),r},vit=()=>{},bit=(e,a)=>e!=null&&Number.isFinite(e=+e)?e:a,i6="abcdefghijklmnopqrstuvwxyz",oF="0123456789",sF={DIGIT:oF,ALPHA:i6,ALPHA_DIGIT:i6+i6.toUpperCase()+oF},xit=(e=16,a=sF.ALPHA_DIGIT)=>{let r="";const{length:d}=a;for(;e--;)r+=a[Math.random()*d|0];return r};function wit(e){return!!(e&&gc(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const kit=e=>{const a=new Array(10),r=(d,m)=>{if(l_(d)){if(a.indexOf(d)>=0)return;if(!("toJSON"in d)){a[m]=d;const n=em(d)?[]:{};return E0(d,(s,i)=>{const _=r(s,m+1);!C0(_)&&(n[i]=_)}),a[m]=void 0,n}}return d};return r(e,0)},Cit=Gc("AsyncFunction"),Eit=e=>e&&(l_(e)||gc(e))&&gc(e.then)&&gc(e.catch),ur={isArray:em,isArrayBuffer:QP,isBuffer:Unt,isFormData:Jnt,isArrayBufferView:Hnt,isString:Gnt,isNumber:eF,isBoolean:Wnt,isObject:l_,isPlainObject:c_,isReadableStream:eit,isRequest:tit,isResponse:ait,isHeaders:rit,isUndefined:C0,isDate:qnt,isFile:Ynt,isBlob:Znt,isRegExp:git,isFunction:gc,isStream:Knt,isURLSearchParams:Qnt,isTypedArray:uit,isFileList:Xnt,forEach:E0,merge:n6,extend:iit,trim:nit,stripBOM:oit,inherits:sit,toFlatObject:lit,kindOf:o_,kindOfTest:Gc,endsWith:cit,toArray:dit,forEachEntry:pit,matchAll:hit,isHTMLForm:mit,hasOwnProperty:nF,hasOwnProp:nF,reduceDescriptors:iF,freezeMethods:yit,toObjectSet:_it,toCamelCase:fit,noop:vit,toFiniteNumber:bit,findKey:tF,global:aF,isContextDefined:rF,ALPHABET:sF,generateString:xit,isSpecCompliantForm:wit,toJSONObject:kit,isAsyncFn:Cit,isThenable:Eit};function mn(e,a,r,d,m){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),r&&(this.config=r),d&&(this.request=d),m&&(this.response=m)}ur.inherits(mn,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:ur.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const lF=mn.prototype,cF={};["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=>{cF[e]={value:e}}),Object.defineProperties(mn,cF),Object.defineProperty(lF,"isAxiosError",{value:!0}),mn.from=(e,a,r,d,m,n)=>{const s=Object.create(lF);return ur.toFlatObject(e,s,function(i){return i!==Error.prototype},i=>i!=="isAxiosError"),mn.call(s,e.message,a,r,d,m),s.cause=e,s.name=e.name,n&&Object.assign(s,n),s};const Sit=null;function o6(e){return ur.isPlainObject(e)||ur.isArray(e)}function dF(e){return ur.endsWith(e,"[]")?e.slice(0,-2):e}function uF(e,a,r){return e?e.concat(a).map(function(d,m){return d=dF(d),!r&&m?"["+d+"]":d}).join(r?".":""):a}function Tit(e){return ur.isArray(e)&&!e.some(o6)}const Ait=ur.toFlatObject(ur,{},null,function(e){return/^is[A-Z]/.test(e)});function d_(e,a,r){if(!ur.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,r=ur.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,l){return!ur.isUndefined(l[c])});const d=r.metaTokens,m=r.visitor||f,n=r.dots,s=r.indexes,i=(r.Blob||typeof Blob<"u"&&Blob)&&ur.isSpecCompliantForm(a);if(!ur.isFunction(m))throw new TypeError("visitor must be a function");function _(c){if(c===null)return"";if(ur.isDate(c))return c.toISOString();if(!i&&ur.isBlob(c))throw new mn("Blob is not supported. Use a Buffer instead.");return ur.isArrayBuffer(c)||ur.isTypedArray(c)?i&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function f(c,l,u){let p=c;if(c&&!u&&typeof c=="object"){if(ur.endsWith(l,"{}"))l=d?l:l.slice(0,-2),c=JSON.stringify(c);else if(ur.isArray(c)&&Tit(c)||(ur.isFileList(c)||ur.endsWith(l,"[]"))&&(p=ur.toArray(c)))return l=dF(l),p.forEach(function(h,y){!(ur.isUndefined(h)||h===null)&&a.append(s===!0?uF([l],y,n):s===null?l:l+"[]",_(h))}),!1}return o6(c)?!0:(a.append(uF(u,l,n),_(c)),!1)}const o=[],g=Object.assign(Ait,{defaultVisitor:f,convertValue:_,isVisitable:o6});function x(c,l){if(!ur.isUndefined(c)){if(o.indexOf(c)!==-1)throw Error("Circular reference detected in "+l.join("."));o.push(c),ur.forEach(c,function(u,p){(!(ur.isUndefined(u)||u===null)&&m.call(a,u,ur.isString(p)?p.trim():p,l,g))===!0&&x(u,l?l.concat(p):[p])}),o.pop()}}if(!ur.isObject(e))throw new TypeError("data must be an object");return x(e),a}function pF(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return a[r]})}function s6(e,a){this._pairs=[],e&&d_(e,this,a)}const hF=s6.prototype;hF.append=function(e,a){this._pairs.push([e,a])},hF.toString=function(e){const a=e?function(r){return e.call(this,r,pF)}:pF;return this._pairs.map(function(r){return a(r[0])+"="+a(r[1])},"").join("&")};function Nit(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function mF(e,a,r){if(!a)return e;const d=r&&r.encode||Nit,m=r&&r.serialize;let n;if(m?n=m(a,r):n=ur.isURLSearchParams(a)?a.toString():new s6(a,r).toString(d),n){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+n}return e}class fF{constructor(){this.handlers=[]}use(a,r,d){return this.handlers.push({fulfilled:a,rejected:r,synchronous:d?d.synchronous:!1,runWhen:d?d.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){ur.forEach(this.handlers,function(r){r!==null&&a(r)})}}const gF={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Bit=typeof URLSearchParams<"u"?URLSearchParams:s6,Iit=typeof FormData<"u"?FormData:null,Mit=typeof Blob<"u"?Blob:null,Oit={isBrowser:!0,classes:{URLSearchParams:Bit,FormData:Iit,Blob:Mit},protocols:["http","https","file","blob","url","data"]},l6=typeof window<"u"&&typeof document<"u",Pit=(e=>l6&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Fit=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Rit=l6&&window.location.href||"http://localhost",Vit=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:l6,hasStandardBrowserEnv:Pit,hasStandardBrowserWebWorkerEnv:Fit,origin:Rit},Symbol.toStringTag,{value:"Module"})),Wc={...Vit,...Oit};function zit(e,a){return d_(e,new Wc.classes.URLSearchParams,Object.assign({visitor:function(r,d,m,n){return Wc.isNode&&ur.isBuffer(r)?(this.append(d,r.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},a))}function Dit(e){return ur.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function Lit(e){const a={},r=Object.keys(e);let d;const m=r.length;let n;for(d=0;d<m;d++)n=r[d],a[n]=e[n];return a}function yF(e){function a(r,d,m,n){let s=r[n++];if(s==="__proto__")return!0;const i=Number.isFinite(+s),_=n>=r.length;return s=!s&&ur.isArray(m)?m.length:s,_?(ur.hasOwnProp(m,s)?m[s]=[m[s],d]:m[s]=d,!i):((!m[s]||!ur.isObject(m[s]))&&(m[s]=[]),a(r,d,m[s],n)&&ur.isArray(m[s])&&(m[s]=Lit(m[s])),!i)}if(ur.isFormData(e)&&ur.isFunction(e.entries)){const r={};return ur.forEachEntry(e,(d,m)=>{a(Dit(d),m,r,0)}),r}return null}function $it(e,a,r){if(ur.isString(e))try{return(a||JSON.parse)(e),ur.trim(e)}catch(d){if(d.name!=="SyntaxError")throw d}return(r||JSON.stringify)(e)}const S0={transitional:gF,adapter:["xhr","http","fetch"],transformRequest:[function(e,a){const r=a.getContentType()||"",d=r.indexOf("application/json")>-1,m=ur.isObject(e);if(m&&ur.isHTMLForm(e)&&(e=new FormData(e)),ur.isFormData(e))return d?JSON.stringify(yF(e)):e;if(ur.isArrayBuffer(e)||ur.isBuffer(e)||ur.isStream(e)||ur.isFile(e)||ur.isBlob(e)||ur.isReadableStream(e))return e;if(ur.isArrayBufferView(e))return e.buffer;if(ur.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let n;if(m){if(r.indexOf("application/x-www-form-urlencoded")>-1)return zit(e,this.formSerializer).toString();if((n=ur.isFileList(e))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return d_(n?{"files[]":e}:e,s&&new s,this.formSerializer)}}return m||d?(a.setContentType("application/json",!1),$it(e)):e}],transformResponse:[function(e){const a=this.transitional||S0.transitional,r=a&&a.forcedJSONParsing,d=this.responseType==="json";if(ur.isResponse(e)||ur.isReadableStream(e))return e;if(e&&ur.isString(e)&&(r&&!this.responseType||d)){const m=!(a&&a.silentJSONParsing)&&d;try{return JSON.parse(e)}catch(n){if(m)throw n.name==="SyntaxError"?mn.from(n,mn.ERR_BAD_RESPONSE,this,null,this.response):n}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Wc.classes.FormData,Blob:Wc.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ur.forEach(["delete","get","head","post","put","patch"],e=>{S0.headers[e]={}});const jit=ur.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"]),Uit=e=>{const a={};let r,d,m;return e&&e.split(`
|
|
115
115
|
`).forEach(function(n){m=n.indexOf(":"),r=n.substring(0,m).trim().toLowerCase(),d=n.substring(m+1).trim(),!(!r||a[r]&&jit[r])&&(r==="set-cookie"?a[r]?a[r].push(d):a[r]=[d]:a[r]=a[r]?a[r]+", "+d:d)}),a},_F=Symbol("internals");function T0(e){return e&&String(e).trim().toLowerCase()}function u_(e){return e===!1||e==null?e:ur.isArray(e)?e.map(u_):String(e)}function Hit(e){const a=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let d;for(;d=r.exec(e);)a[d[1]]=d[2];return a}const Git=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function c6(e,a,r,d,m){if(ur.isFunction(d))return d.call(this,a,r);if(m&&(a=r),!!ur.isString(a)){if(ur.isString(d))return a.indexOf(d)!==-1;if(ur.isRegExp(d))return d.test(a)}}function Wit(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,r,d)=>r.toUpperCase()+d)}function qit(e,a){const r=ur.toCamelCase(" "+a);["get","set","has"].forEach(d=>{Object.defineProperty(e,d+r,{value:function(m,n,s){return this[d].call(this,a,m,n,s)},configurable:!0})})}class cl{constructor(a){a&&this.set(a)}set(a,r,d){const m=this;function n(i,_,f){const o=T0(_);if(!o)throw new Error("header name must be a non-empty string");const g=ur.findKey(m,o);(!g||m[g]===void 0||f===!0||f===void 0&&m[g]!==!1)&&(m[g||_]=u_(i))}const s=(i,_)=>ur.forEach(i,(f,o)=>n(f,o,_));if(ur.isPlainObject(a)||a instanceof this.constructor)s(a,r);else if(ur.isString(a)&&(a=a.trim())&&!Git(a))s(Uit(a),r);else if(ur.isHeaders(a))for(const[i,_]of a.entries())n(_,i,d);else a!=null&&n(r,a,d);return this}get(a,r){if(a=T0(a),a){const d=ur.findKey(this,a);if(d){const m=this[d];if(!r)return m;if(r===!0)return Hit(m);if(ur.isFunction(r))return r.call(this,m,d);if(ur.isRegExp(r))return r.exec(m);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,r){if(a=T0(a),a){const d=ur.findKey(this,a);return!!(d&&this[d]!==void 0&&(!r||c6(this,this[d],d,r)))}return!1}delete(a,r){const d=this;let m=!1;function n(s){if(s=T0(s),s){const i=ur.findKey(d,s);i&&(!r||c6(d,d[i],i,r))&&(delete d[i],m=!0)}}return ur.isArray(a)?a.forEach(n):n(a),m}clear(a){const r=Object.keys(this);let d=r.length,m=!1;for(;d--;){const n=r[d];(!a||c6(this,this[n],n,a,!0))&&(delete this[n],m=!0)}return m}normalize(a){const r=this,d={};return ur.forEach(this,(m,n)=>{const s=ur.findKey(d,n);if(s){r[s]=u_(m),delete r[n];return}const i=a?Wit(n):String(n).trim();i!==n&&delete r[n],r[i]=u_(m),d[i]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const r=Object.create(null);return ur.forEach(this,(d,m)=>{d!=null&&d!==!1&&(r[m]=a&&ur.isArray(d)?d.join(", "):d)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,r])=>a+": "+r).join(`
|
|
116
116
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...r){const d=new this(a);return r.forEach(m=>d.set(m)),d}static accessor(a){const r=(this[_F]=this[_F]={accessors:{}}).accessors,d=this.prototype;function m(n){const s=T0(n);r[s]||(qit(d,n),r[s]=!0)}return ur.isArray(a)?a.forEach(m):m(a),this}}cl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ur.reduceDescriptors(cl.prototype,({value:e},a)=>{let r=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(d){this[r]=d}}}),ur.freezeMethods(cl);function d6(e,a){const r=this||S0,d=a||r,m=cl.from(d.headers);let n=d.data;return ur.forEach(e,function(s){n=s.call(r,n,m.normalize(),a?a.status:void 0)}),m.normalize(),n}function vF(e){return!!(e&&e.__CANCEL__)}function tm(e,a,r){mn.call(this,e??"canceled",mn.ERR_CANCELED,a,r),this.name="CanceledError"}ur.inherits(tm,mn,{__CANCEL__:!0});function bF(e,a,r){const d=r.config.validateStatus;!r.status||!d||d(r.status)?e(r):a(new mn("Request failed with status code "+r.status,[mn.ERR_BAD_REQUEST,mn.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Yit(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function Zit(e,a){e=e||10;const r=new Array(e),d=new Array(e);let m=0,n=0,s;return a=a!==void 0?a:1e3,function(i){const _=Date.now(),f=d[n];s||(s=_),r[m]=i,d[m]=_;let o=n,g=0;for(;o!==m;)g+=r[o++],o=o%e;if(m=(m+1)%e,m===n&&(n=(n+1)%e),_-s<a)return;const x=f&&_-f;return x?Math.round(g*1e3/x):void 0}}function Xit(e,a){let r=0;const d=1e3/a;let m=null;return function(){const n=this===!0,s=Date.now();if(n||s-r>d)return m&&(clearTimeout(m),m=null),r=s,e.apply(null,arguments);m||(m=setTimeout(()=>(m=null,r=Date.now(),e.apply(null,arguments)),d-(s-r)))}}const p_=(e,a,r=3)=>{let d=0;const m=Zit(50,250);return Xit(n=>{const s=n.loaded,i=n.lengthComputable?n.total:void 0,_=s-d,f=m(_),o=s<=i;d=s;const g={loaded:s,total:i,progress:i?s/i:void 0,bytes:_,rate:f||void 0,estimated:f&&i&&o?(i-s)/f:void 0,event:n,lengthComputable:i!=null};g[a?"download":"upload"]=!0,e(g)},r)},Kit=Wc.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");let r;function d(m){let n=m;return e&&(a.setAttribute("href",n),n=a.href),a.setAttribute("href",n),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:a.pathname.charAt(0)==="/"?a.pathname:"/"+a.pathname}}return r=d(window.location.href),function(m){const n=ur.isString(m)?d(m):m;return n.protocol===r.protocol&&n.host===r.host}}():function(){return function(){return!0}}(),Jit=Wc.hasStandardBrowserEnv?{write(e,a,r,d,m,n){const s=[e+"="+encodeURIComponent(a)];ur.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),ur.isString(d)&&s.push("path="+d),ur.isString(m)&&s.push("domain="+m),n===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const a=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Qit(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function eot(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function xF(e,a){return e&&!Qit(a)?eot(e,a):a}const wF=e=>e instanceof cl?{...e}:e;function Ap(e,a){a=a||{};const r={};function d(f,o,g){return ur.isPlainObject(f)&&ur.isPlainObject(o)?ur.merge.call({caseless:g},f,o):ur.isPlainObject(o)?ur.merge({},o):ur.isArray(o)?o.slice():o}function m(f,o,g){if(ur.isUndefined(o)){if(!ur.isUndefined(f))return d(void 0,f,g)}else return d(f,o,g)}function n(f,o){if(!ur.isUndefined(o))return d(void 0,o)}function s(f,o){if(ur.isUndefined(o)){if(!ur.isUndefined(f))return d(void 0,f)}else return d(void 0,o)}function i(f,o,g){if(g in a)return d(f,o);if(g in e)return d(void 0,f)}const _={url:n,method:n,data:n,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:i,headers:(f,o)=>m(wF(f),wF(o),!0)};return ur.forEach(Object.keys(Object.assign({},e,a)),function(f){const o=_[f]||m,g=o(e[f],a[f],f);ur.isUndefined(g)&&o!==i||(r[f]=g)}),r}const kF=e=>{const a=Ap({},e);let{data:r,withXSRFToken:d,xsrfHeaderName:m,xsrfCookieName:n,headers:s,auth:i}=a;a.headers=s=cl.from(s),a.url=mF(xF(a.baseURL,a.url),e.params,e.paramsSerializer),i&&s.set("Authorization","Basic "+btoa((i.username||"")+":"+(i.password?unescape(encodeURIComponent(i.password)):"")));let _;if(ur.isFormData(r)){if(Wc.hasStandardBrowserEnv||Wc.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((_=s.getContentType())!==!1){const[f,...o]=_?_.split(";").map(g=>g.trim()).filter(Boolean):[];s.setContentType([f||"multipart/form-data",...o].join("; "))}}if(Wc.hasStandardBrowserEnv&&(d&&ur.isFunction(d)&&(d=d(a)),d||d!==!1&&Kit(a.url))){const f=m&&n&&Jit.read(n);f&&s.set(m,f)}return a},tot=typeof XMLHttpRequest<"u",aot=tot&&function(e){return new Promise(function(a,r){const d=kF(e);let m=d.data;const n=cl.from(d.headers).normalize();let{responseType:s}=d,i;function _(){d.cancelToken&&d.cancelToken.unsubscribe(i),d.signal&&d.signal.removeEventListener("abort",i)}let f=new XMLHttpRequest;f.open(d.method.toUpperCase(),d.url,!0),f.timeout=d.timeout;function o(){if(!f)return;const x=cl.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),c={data:!s||s==="text"||s==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:x,config:e,request:f};bF(function(l){a(l),_()},function(l){r(l),_()},c),f=null}"onloadend"in f?f.onloadend=o:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(o)},f.onabort=function(){f&&(r(new mn("Request aborted",mn.ECONNABORTED,d,f)),f=null)},f.onerror=function(){r(new mn("Network Error",mn.ERR_NETWORK,d,f)),f=null},f.ontimeout=function(){let x=d.timeout?"timeout of "+d.timeout+"ms exceeded":"timeout exceeded";const c=d.transitional||gF;d.timeoutErrorMessage&&(x=d.timeoutErrorMessage),r(new mn(x,c.clarifyTimeoutError?mn.ETIMEDOUT:mn.ECONNABORTED,d,f)),f=null},m===void 0&&n.setContentType(null),"setRequestHeader"in f&&ur.forEach(n.toJSON(),function(x,c){f.setRequestHeader(c,x)}),ur.isUndefined(d.withCredentials)||(f.withCredentials=!!d.withCredentials),s&&s!=="json"&&(f.responseType=d.responseType),typeof d.onDownloadProgress=="function"&&f.addEventListener("progress",p_(d.onDownloadProgress,!0)),typeof d.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",p_(d.onUploadProgress)),(d.cancelToken||d.signal)&&(i=x=>{f&&(r(!x||x.type?new tm(null,e,f):x),f.abort(),f=null)},d.cancelToken&&d.cancelToken.subscribe(i),d.signal&&(d.signal.aborted?i():d.signal.addEventListener("abort",i)));const g=Yit(d.url);if(g&&Wc.protocols.indexOf(g)===-1){r(new mn("Unsupported protocol "+g+":",mn.ERR_BAD_REQUEST,e));return}f.send(m||null)})},rot=(e,a)=>{let r=new AbortController,d;const m=function(_){if(!d){d=!0,s();const f=_ instanceof Error?_:this.reason;r.abort(f instanceof mn?f:new tm(f instanceof Error?f.message:f))}};let n=a&&setTimeout(()=>{m(new mn(`timeout ${a} of ms exceeded`,mn.ETIMEDOUT))},a);const s=()=>{e&&(n&&clearTimeout(n),n=null,e.forEach(_=>{_&&(_.removeEventListener?_.removeEventListener("abort",m):_.unsubscribe(m))}),e=null)};e.forEach(_=>_&&_.addEventListener&&_.addEventListener("abort",m));const{signal:i}=r;return i.unsubscribe=s,[i,()=>{n&&clearTimeout(n),n=null}]},not=function*(e,a){let r=e.byteLength;if(!a||r<a){yield e;return}let d=0,m;for(;d<r;)m=d+a,yield e.slice(d,m),d=m},iot=async function*(e,a,r){for await(const d of e)yield*not(ArrayBuffer.isView(d)?d:await r(String(d)),a)},CF=(e,a,r,d,m)=>{const n=iot(e,a,m);let s=0;return new ReadableStream({type:"bytes",async pull(i){const{done:_,value:f}=await n.next();if(_){i.close(),d();return}let o=f.byteLength;r&&r(s+=o),i.enqueue(new Uint8Array(f))},cancel(i){return d(i),n.return()}},{highWaterMark:2})},EF=(e,a)=>{const r=e!=null;return d=>setTimeout(()=>a({lengthComputable:r,total:e,loaded:d}))},h_=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",SF=h_&&typeof ReadableStream=="function",u6=h_&&(typeof TextEncoder=="function"?(e=>a=>e.encode(a))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),oot=SF&&(()=>{let e=!1;const a=new Request(Wc.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!a})(),TF=64*1024,p6=SF&&!!(()=>{try{return ur.isReadableStream(new Response("").body)}catch{}})(),m_={stream:p6&&(e=>e.body)};h_&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(a=>{!m_[a]&&(m_[a]=ur.isFunction(e[a])?r=>r[a]():(r,d)=>{throw new mn(`Response type '${a}' is not supported`,mn.ERR_NOT_SUPPORT,d)})})})(new Response);const sot=async e=>{if(e==null)return 0;if(ur.isBlob(e))return e.size;if(ur.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(ur.isArrayBufferView(e))return e.byteLength;if(ur.isURLSearchParams(e)&&(e=e+""),ur.isString(e))return(await u6(e)).byteLength},lot=async(e,a)=>ur.toFiniteNumber(e.getContentLength())??sot(a),cot=h_&&(async e=>{let{url:a,method:r,data:d,signal:m,cancelToken:n,timeout:s,onDownloadProgress:i,onUploadProgress:_,responseType:f,headers:o,withCredentials:g="same-origin",fetchOptions:x}=kF(e);f=f?(f+"").toLowerCase():"text";let[c,l]=m||n||s?rot([m,n],s):[],u,p;const h=()=>{!u&&setTimeout(()=>{c&&c.unsubscribe()}),u=!0};let y;try{if(_&&oot&&r!=="get"&&r!=="head"&&(y=await lot(o,d))!==0){let C=new Request(a,{method:"POST",body:d,duplex:"half"}),k;ur.isFormData(d)&&(k=C.headers.get("content-type"))&&o.setContentType(k),C.body&&(d=CF(C.body,TF,EF(y,p_(_)),null,u6))}ur.isString(g)||(g=g?"cors":"omit"),p=new Request(a,{...x,signal:c,method:r.toUpperCase(),headers:o.normalize().toJSON(),body:d,duplex:"half",withCredentials:g});let b=await fetch(p);const v=p6&&(f==="stream"||f==="response");if(p6&&(i||v)){const C={};["status","statusText","headers"].forEach(N=>{C[N]=b[N]});const k=ur.toFiniteNumber(b.headers.get("content-length"));b=new Response(CF(b.body,TF,i&&EF(k,p_(i,!0)),v&&h,u6),C)}f=f||"text";let w=await m_[ur.findKey(m_,f)||"text"](b,e);return!v&&h(),l&&l(),await new Promise((C,k)=>{bF(C,k,{data:w,headers:cl.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:p})})}catch(b){throw h(),b&&b.name==="TypeError"&&/fetch/i.test(b.message)?Object.assign(new mn("Network Error",mn.ERR_NETWORK,e,p),{cause:b.cause||b}):mn.from(b,b&&b.code,e,p)}}),h6={http:Sit,xhr:aot,fetch:cot};ur.forEach(h6,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const AF=e=>`- ${e}`,dot=e=>ur.isFunction(e)||e===null||e===!1,NF={getAdapter:e=>{e=ur.isArray(e)?e:[e];const{length:a}=e;let r,d;const m={};for(let n=0;n<a;n++){r=e[n];let s;if(d=r,!dot(r)&&(d=h6[(s=String(r)).toLowerCase()],d===void 0))throw new mn(`Unknown adapter '${s}'`);if(d)break;m[s||"#"+n]=d}if(!d){const n=Object.entries(m).map(([i,_])=>`adapter ${i} `+(_===!1?"is not supported by the environment":"is not available in the build"));let s=a?n.length>1?`since :
|
|
117
117
|
`+n.map(AF).join(`
|