@golstats/gsc-game-data 1.0.105 → 1.0.106
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-DKOJuZe7-6851c7a1.js → FilterConditions-dc6b25de-ChXTaFPk-b0632e15.js} +1 -1
- package/dist/{FilterField-37ad154d-SLaLNzeA-3bcbdbfd.js → FilterField-37ad154d-DZ6sLq-g-1b934188.js} +1 -1
- package/dist/{FilterSubcategories-a7b96423-CxJbDrmL-f601c1dc.js → FilterSubcategories-a7b96423-BgV86APx-c4bde93e.js} +1 -1
- package/dist/gsc-game-data.js +1 -1
- package/dist/gsc-game-data.umd.cjs +6 -6
- package/dist/{index-89845abd.js → index-898ce015.js} +65 -34
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -11,15 +11,15 @@
|
|
|
11
11
|
* Vue 3 Carousel 0.3.1
|
|
12
12
|
* (c) 2023
|
|
13
13
|
* @license MIT
|
|
14
|
-
*/const $o={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},Lk={itemsToShow:{default:$o.itemsToShow,type:Number},itemsToScroll:{default:$o.itemsToScroll,type:Number},wrapAround:{default:$o.wrapAround,type:Boolean},throttle:{default:$o.throttle,type:Number},snapAlign:{default:$o.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:$o.transition,type:Number},breakpoints:{default:$o.breakpoints,type:Object},autoplay:{default:$o.autoplay,type:Number},pauseAutoplayOnHover:{default:$o.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:$o.mouseDrag,type:Boolean},touchDrag:{default:$o.touchDrag,type:Boolean},dir:{default:$o.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:$o.i18n,type:Object},settings:{default(){return{}},type:Object}};function rH({config:e,slidesCount:a}){const{snapAlign:r,wrapAround:d,itemsToShow:g=1}=e;if(d)return Math.max(a-1,0);let i;switch(r){case"start":i=a-g;break;case"end":i=a-1;break;case"center":case"center-odd":i=a-Math.ceil((g-.5)/2);break;case"center-even":i=a-Math.ceil(g/2);break;default:i=0;break}return Math.max(i,0)}function nH({config:e,slidesCount:a}){const{wrapAround:r,snapAlign:d,itemsToShow:g=1}=e;let i=0;if(r||g>a)return i;switch(d){case"start":i=0;break;case"end":i=g-1;break;case"center":case"center-odd":i=Math.floor((g-1)/2);break;case"center-even":i=Math.floor((g-2)/2);break;default:i=0;break}return i}function bb({val:e,max:a,min:r}){return a<r?e:Math.min(Math.max(e,r),a)}function iH({config:e,currentSlide:a,slidesCount:r}){const{snapAlign:d,wrapAround:g,itemsToShow:i=1}=e;let s=a;switch(d){case"center":case"center-odd":s-=(i-1)/2;break;case"center-even":s-=(i-2)/2;break;case"end":s-=i-1;break}return g?s:bb({val:s,max:r-i,min:0})}function Dk(e){return e?e.reduce((a,r)=>{var d;return r.type===t.Fragment?[...a,...Dk(r.children)]:((d=r.type)===null||d===void 0?void 0:d.name)==="CarouselSlide"?[...a,r]:a},[]):[]}function xb({val:e,max:a,min:r=0}){return e>a?xb({val:e-(a+1),max:a,min:r}):e<r?xb({val:e+(a+1),max:a,min:r}):e}function oH(e,a){let r;return a?function(...d){const g=this;r||(e.apply(g,d),r=!0,setTimeout(()=>r=!1,a))}:e}function sH(e,a){let r;return function(...d){r&&clearTimeout(r),r=setTimeout(()=>{e(...d),r=null},a)}}function lH(e="",a={}){return Object.entries(a).reduce((r,[d,g])=>r.replace(`{${d}}`,String(g)),e)}var cH=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},$o))),a=t.inject("currentSlide",t.ref(0)),r=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},lH(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:r.value}))}}),dH=t.defineComponent({name:"Carousel",props:Lk,setup(e,{slots:a,emit:r,expose:d}){var g;const i=t.ref(null),s=t.ref([]),n=t.ref(0),_=t.ref(0),f=t.reactive(Object.assign({},$o));let o=Object.assign({},$o),m;const x=t.ref((g=e.modelValue)!==null&&g!==void 0?g:0),c=t.ref(0),l=t.ref(0),u=t.ref(0),p=t.ref(0);let h,y;t.provide("config",f),t.provide("slidesCount",_),t.provide("currentSlide",x),t.provide("maxSlide",u),t.provide("minSlide",p),t.provide("slideWidth",n);function b(){m=Object.assign({},e.breakpoints),o=Object.assign(Object.assign(Object.assign({},o),e),{i18n:Object.assign(Object.assign({},o.i18n),e.i18n),breakpoints:void 0}),w(o)}function v(){if(!m||!Object.keys(m).length)return;const Q=Object.keys(m).map(se=>Number(se)).sort((se,de)=>+de-+se);let ee=Object.assign({},o);Q.some(se=>{const de=window.matchMedia(`(min-width: ${se}px)`).matches;return de&&(ee=Object.assign(Object.assign({},ee),m[se])),de}),w(ee)}function w(Q){Object.entries(Q).forEach(([ee,se])=>f[ee]=se)}const C=sH(()=>{v(),k()},16);function k(){if(!i.value)return;const Q=i.value.getBoundingClientRect();n.value=Q.width/f.itemsToShow}function N(){_.value<=0||(l.value=Math.ceil((_.value-1)/2),u.value=rH({config:f,slidesCount:_.value}),p.value=nH({config:f,slidesCount:_.value}),f.wrapAround||(x.value=bb({val:x.value,max:u.value,min:p.value})))}t.onMounted(()=>{t.nextTick(()=>k()),setTimeout(()=>k(),1e3),v(),D(),window.addEventListener("resize",C,{passive:!0}),r("init")}),t.onUnmounted(()=>{y&&clearTimeout(y),h&&clearInterval(h),window.removeEventListener("resize",C,{passive:!0})});let E=!1;const S={x:0,y:0},A={x:0,y:0},B=t.reactive({x:0,y:0}),I=t.ref(!1),O=t.ref(!1),T=()=>{I.value=!0},R=()=>{I.value=!1};function M(Q){["INPUT","TEXTAREA","SELECT"].includes(Q.target.tagName)||(E=Q.type==="touchstart",E||Q.preventDefault(),!(!E&&Q.button!==0||j.value)&&(S.x=E?Q.touches[0].clientX:Q.clientX,S.y=E?Q.touches[0].clientY:Q.clientY,document.addEventListener(E?"touchmove":"mousemove",P,!0),document.addEventListener(E?"touchend":"mouseup",V,!0)))}const P=oH(Q=>{O.value=!0,A.x=E?Q.touches[0].clientX:Q.clientX,A.y=E?Q.touches[0].clientY:Q.clientY;const ee=A.x-S.x,se=A.y-S.y;B.y=se,B.x=ee},f.throttle);function V(){const Q=f.dir==="rtl"?-1:1,ee=Math.sign(B.x)*.4,se=Math.round(B.x/n.value+ee)*Q;if(se&&!E){const de=ue=>{ue.stopPropagation(),window.removeEventListener("click",de,!0)};window.addEventListener("click",de,!0)}W(x.value-se),B.x=0,B.y=0,O.value=!1,document.removeEventListener(E?"touchmove":"mousemove",P,!0),document.removeEventListener(E?"touchend":"mouseup",V,!0)}function D(){!f.autoplay||f.autoplay<=0||(h=setInterval(()=>{f.pauseAutoplayOnHover&&I.value||$()},f.autoplay))}function L(){h&&(clearInterval(h),h=null),D()}const j=t.ref(!1);function W(Q){const ee=f.wrapAround?Q:bb({val:Q,max:u.value,min:p.value});x.value===ee||j.value||(r("slide-start",{slidingToIndex:Q,currentSlideIndex:x.value,prevSlideIndex:c.value,slidesCount:_.value}),j.value=!0,c.value=x.value,x.value=ee,y=setTimeout(()=>{if(f.wrapAround){const se=xb({val:ee,max:u.value,min:0});se!==x.value&&(x.value=se,r("loop",{currentSlideIndex:x.value,slidingToIndex:Q}))}r("update:modelValue",x.value),r("slide-end",{currentSlideIndex:x.value,prevSlideIndex:c.value,slidesCount:_.value}),j.value=!1,L()},f.transition))}function $(){W(x.value+f.itemsToScroll)}function G(){W(x.value-f.itemsToScroll)}const X={slideTo:W,next:$,prev:G};t.provide("nav",X),t.provide("isSliding",j);const H=t.computed(()=>iH({config:f,currentSlide:x.value,slidesCount:_.value}));t.provide("slidesToScroll",H);const Y=t.computed(()=>{const Q=f.dir==="rtl"?-1:1,ee=H.value*n.value*Q;return{transform:`translateX(${B.x-ee}px)`,transition:`${j.value?f.transition:0}ms`,margin:f.wrapAround?`0 -${_.value*n.value}px`:"",width:"100%"}});function Z(){b(),v(),N(),k(),L()}Object.keys(Lk).forEach(Q=>{["modelValue"].includes(Q)||t.watch(()=>e[Q],Z)}),t.watch(()=>e.modelValue,Q=>{Q!==x.value&&W(Number(Q))}),t.watch(_,N),r("before-init"),b();const le={config:f,slidesCount:_,slideWidth:n,next:$,prev:G,slideTo:W,currentSlide:x,maxSlide:u,minSlide:p,middleSlide:l};d({updateBreakpointsConfigs:v,updateSlidesData:N,updateSlideWidth:k,initDefaultConfigs:b,restartCarousel:Z,slideTo:W,next:$,prev:G,nav:X,data:le});const ie=a.default||a.slides,ne=a.addons,re=t.reactive(le);return()=>{const Q=Dk(ie==null?void 0:ie(re)),ee=(ne==null?void 0:ne(re))||[];Q.forEach((fe,ge)=>fe.props.index=ge);let se=Q;if(f.wrapAround){const fe=Q.map((ve,we)=>t.cloneVNode(ve,{index:-Q.length+we,isClone:!0,key:`clone-before-${we}`})),ge=Q.map((ve,we)=>t.cloneVNode(ve,{index:Q.length+we,isClone:!0,key:`clone-after-${we}`}));se=[...fe,...Q,...ge]}s.value=Q,_.value=Math.max(Q.length,1);const de=t.h("ol",{class:"carousel__track",style:Y.value,onMousedownCapture:f.mouseDrag?M:null,onTouchstartPassiveCapture:f.touchDrag?M:null},se),ue=t.h("div",{class:"carousel__viewport"},de);return t.h("section",{ref:i,class:{carousel:!0,"is-sliding":j.value,"is-dragging":O.value,"is-hover":I.value,"carousel--rtl":f.dir==="rtl"},dir:f.dir,"aria-label":f.i18n.ariaGallery,tabindex:"0",onMouseenter:T,onMouseleave:R},[ue,ee,t.h(cH)])}}}),wb;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(wb||(wb={}));const uH={arrowUp:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z",arrowDown:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",arrowRight:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",arrowLeft:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"};function pH(e){return e in wb}const kb=e=>{const a=t.inject("config",t.reactive(Object.assign({},$o))),r=String(e.name),d=`icon${r.charAt(0).toUpperCase()+r.slice(1)}`;if(!r||typeof r!="string"||!pH(r))return;const g=uH[r],i=t.h("path",{d:g}),s=a.i18n[d]||e.title||r,n=t.h("title",s);return t.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":s},[n,i])};kb.props={name:String,title:String};const hH=(e,{slots:a,attrs:r})=>{const{next:d,prev:g}=a||{},i=t.inject("config",t.reactive(Object.assign({},$o))),s=t.inject("maxSlide",t.ref(1)),n=t.inject("minSlide",t.ref(1)),_=t.inject("currentSlide",t.ref(1)),f=t.inject("nav",{}),{dir:o,wrapAround:m,i18n:x}=i,c=o==="rtl",l=t.h("button",{type:"button",class:["carousel__prev",!m&&_.value<=n.value&&"carousel__prev--disabled",r==null?void 0:r.class],"aria-label":x.ariaPreviousSlide,onClick:f.prev},(g==null?void 0:g())||t.h(kb,{name:c?"arrowRight":"arrowLeft"})),u=t.h("button",{type:"button",class:["carousel__next",!m&&_.value>=s.value&&"carousel__next--disabled",r==null?void 0:r.class],"aria-label":x.ariaNextSlide,onClick:f.next},(d==null?void 0:d())||t.h(kb,{name:c?"arrowLeft":"arrowRight"}));return[l,u]};var fH=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const r=t.inject("config",t.reactive(Object.assign({},$o))),d=t.inject("currentSlide",t.ref(0)),g=t.inject("slidesToScroll",t.ref(0)),i=t.inject("isSliding",t.ref(!1)),s=()=>e.index===d.value,n=()=>e.index===d.value-1,_=()=>e.index===d.value+1,f=()=>{const o=Math.floor(g.value),m=Math.ceil(g.value+r.itemsToShow-1);return e.index>=o&&e.index<=m};return()=>{var o;return t.h("li",{style:{width:`${100/r.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":f(),"carousel__slide--active":s(),"carousel__slide--prev":n(),"carousel__slide--next":_(),"carousel__slide--sliding":i.value},"aria-hidden":!f()},(o=a.default)===null||o===void 0?void 0:o.call(a))}}});const Rc=(e,a)=>{const r=e.__vccOpts||e;for(const[d,g]of a)r[d]=g;return r},mH={__name:"MatchDay",props:{isLandingMode:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#183143"},numberColor:{type:String,default:"white"},numberFontFamily:{type:String,default:"sans-serif"},numberFontSize:{type:String,default:"14px"},textColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},textFontFamily:{type:String,default:"'Poppins-Regular', sans-serif"},textFontSize:{type:String,default:"8px"},bottomLineColor:{type:String,default:"#cbee6b"},selectedMatchDayBackgroundColor:{type:String,default:"#243b4c"},height:{type:String,default:"fit-content"},matchDay:{type:Object,default:()=>{}},matchDaySelected:{type:Object,default:()=>{}},componentWidth:{type:Number,default:0}},emits:["change-match-day"],setup(e,{emit:a}){const r=e,d=t.computed(()=>{const n={"background-color":r.backgroundColor,height:r.height};return r.matchDay.key===r.matchDaySelected.key&&(n["border-bottom"]=`solid 1px ${r.bottomLineColor}`,n["background-color"]=r.selectedMatchDayBackgroundColor),r.isLandingMode||(n["border-right"]="solid 1px rgba(255, 255, 255, 0.1)"),n}),g=t.computed(()=>({color:r.numberColor,"font-family":r.numberFontFamily,"font-size":r.numberFontSize})),i=t.computed(()=>({color:r.textColor,"font-family":r.textFontFamily,"font-size":r.textFontSize}));function s(n){a("click-match-day",n)}return(n,_)=>(t.openBlock(),t.createElementBlock("div",{class:"match-day",style:t.normalizeStyle({...d.value}),onClick:_[0]||(_[0]=f=>s(e.matchDay))},[t.createElementVNode("div",{class:"match-day__value",style:t.normalizeStyle(g.value)},t.toDisplayString(e.matchDay.valueText),5),Number.isNaN(e.matchDay.value)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:"match-day__text",style:t.normalizeStyle([e.isLandingMode?"margin-top:3px":"margin-top:4px",i.value])},t.toDisplayString(e.isLandingMode||e.componentWidth<=425?"JOR":"JORNADA"),5))],4))}},gH=Rc(mH,[["__scopeId","data-v-687d929a"]]),yH={__name:"MatchDayPicker",props:{matchDays:{type:Array,default:()=>[]},isLandingMode:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#183143"},numberColor:{type:String,default:"white"},numberFontFamily:{type:String,default:"sans-serif"},numberFontSize:{type:String,default:"14px"},textColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"8px"},bottomLineColor:{type:String,default:"#cbee6b"},selectedMatchDayBackgroundColor:{type:String,default:"#243b4c"},height:{type:String,default:"fit-content"},itemsToShow:{type:Number,default:9},itemsToScroll:{type:Number,default:9},defaultMatchDayKey:{type:[String,null],default:""},componentWidth:{type:Number,default:0},closestMatchDay:{type:[Number,String],default:0}},emits:["change-match-day"],setup(e,{emit:a}){const r=e;t.useCssVars(f=>({"395ea484":i.value,"395d8d44":s.value}));const d=t.ref(null),g=t.computed(()=>({itemsToShow:r.itemsToShow,itemsToScroll:r.itemsToScroll,snapAlign:"start"})),i=t.computed(()=>d.value.data.currentSlide.value==0?"none":"inline"),s=t.computed(()=>d.value.data.currentSlide.value==d.value.data.maxSlide.value?"none":"inline"),n=t.ref({});t.watch(()=>r.closestMatchDay,f=>{if(f){const o=r.matchDays.find(m=>m.key===f);_(o||r.matchDays[0],!0)}}),t.watch(()=>r.matchDays,f=>{if(!r.closestMatchDay&&f&&f.length){const o=f.find(m=>m.key===r.defaultMatchDayKey);n.value=o||f[0],a("change-match-day",n.value)}},{immediate:!0});function _(f,o=!1){o&&d.value.slideTo(f.index),n.value=f,a("change-match-day",n.value)}return(f,o)=>(t.openBlock(),t.createElementBlock("div",{class:"match-day-picker",style:t.normalizeStyle(e.isLandingMode?"border-top-left-radius: 9px; border-top-right-radius: 9px;":"margin-bottom:12px")},[t.createVNode(t.unref(dH),t.mergeProps(g.value,{ref_key:"matchDayPickerCarousel",ref:d}),{addons:t.withCtx(()=>[t.createVNode(t.unref(hH))]),default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.matchDays,m=>(t.openBlock(),t.createBlock(t.unref(fH),{key:m.key},{default:t.withCtx(()=>[t.createVNode(gH,t.mergeProps(r,{"match-day":m,"match-day-selected":n.value,"is-landing-mode":e.isLandingMode,"component-width":e.componentWidth,onClickMatchDay:_}),null,16,["match-day","match-day-selected","is-landing-mode","component-width"])]),_:2},1024))),128))]),_:1},16)],4))}},_H=Rc(yH,[["__scopeId","data-v-1ad19205"]]);function ih(e,a=80){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-"}${a}/${e}.png`}function $k(e){if(typeof e=="string"){let a=e.replace("M","J ");return a=a.replace("PO1","CFI"),a=a.replace("PO2","CFV"),a=a.replace("PO3","SFI"),a=a.replace("PO4","SFV"),a=a.replace("PO5","FI"),a=a.replace("PO6","FV"),a}}function vH(e){let a="";return e.game_status!=4&&(a+="Finalizado"),(e.penalties_score_home_team!=0||e.penalties_score_visiting_team!=0)&&(a+=" - Penales "+e.penalties_score_home_team+" - "+e.penalties_score_visiting_team),a}const bH={class:"game-info__teams"},xH={class:"game-info__teams__team__logo"},wH=["src"],kH={class:"game-info__teams__detail"},CH={key:0,class:"game-info__teams__detail__pre-game"},EH={class:"game-info__teams__team__logo away"},TH=["src"],SH={key:0},AH={key:0},NH={key:1},BH={__name:"GameInfo",props:{isLandingMode:{type:Boolean,default:!1},isAcronymVisible:{type:Boolean,default:!1},isTelevisionVisible:{type:Boolean,default:!0},game:{type:Object,required:!0},colorPrimary:{type:String,default:"white"},colorSecondary:{type:String,default:"grey"},namesFontSize:{type:String,default:"12px"},timeFontSize:{type:String,default:"12px"},timeZoneFontSize:{type:String,default:"8px"},scoreFontSize:{type:String,default:"13px"},namesFontFamily:{type:String,default:"sans-serif"},scoreFontFamily:{type:String,default:"sans-serif"},additionalInfoFontFamily:{type:String,default:"sans-serif"},additionalInfoFontSize:{type:String,default:"9px"}},setup(e){const a=e,r=t.computed(()=>{let f=a.game.schedule.split(":");return f.pop(),f=f.join(":"),f}),d=t.computed(()=>{let f="120px";return(a.isLandingMode||a.isAcronymVisible)&&(f="70px"),{"min-width":f}}),g=t.computed(()=>({"font-size":a.namesFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary})),i=t.computed(()=>({"font-size":a.additionalInfoFontSize,"font-family":a.additionalInfoFontFamily,color:a.colorSecondary})),s=t.computed(()=>({"font-size":a.scoreFontSize,"font-family":a.scoreFontFamily,color:a.colorPrimary})),n=t.computed(()=>({"font-size":a.timeZoneFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary})),_=t.computed(()=>({"font-size":a.timeFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary}));return(f,o)=>(t.openBlock(),t.createElementBlock("div",{class:"game-info",style:t.normalizeStyle(e.isLandingMode?"gap:5px":"")},[t.createElementVNode("div",bH,[t.createElementVNode("div",{class:"game-info__teams__team",style:t.normalizeStyle(d.value)},[t.createElementVNode("div",{class:"game-info__teams__team__name",style:t.normalizeStyle(g.value)},t.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.home_team.acronym:e.game.home_team.colloquial_name),5),t.createElementVNode("div",xH,[t.createElementVNode("img",{src:t.unref(ih)(e.game.home_team.team_id),alt:""},null,8,wH)])],4),t.createElementVNode("div",kH,[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock("div",CH,[t.createElementVNode("div",null,[t.createElementVNode("span",{style:t.normalizeStyle(_.value)},t.toDisplayString(r.value),5),t.createTextVNode(),t.createElementVNode("span",{style:t.normalizeStyle(n.value)},"CST",4)])])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"game-info__teams__detail__score",style:t.normalizeStyle(s.value)},[t.createElementVNode("span",null,t.toDisplayString(e.game.score[0])+" - "+t.toDisplayString(e.game.score[1]),1)],4))]),t.createElementVNode("div",{class:"game-info__teams__team away",style:t.normalizeStyle(d.value)},[t.createElementVNode("div",EH,[t.createElementVNode("img",{src:t.unref(ih)(e.game.visiting_team.team_id),alt:""},null,8,TH)]),t.createElementVNode("div",{class:"game-info__teams__team__name",style:t.normalizeStyle(g.value)},t.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.visiting_team.acronym:e.game.visiting_team.colloquial_name),5)],4)]),t.createElementVNode("div",{class:"game-info__status",style:t.normalizeStyle([i.value,e.isLandingMode?"line-height: normal":""])},[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock("span",SH,[e.isTelevisionVisible?(t.openBlock(),t.createElementBlock("span",AH,t.toDisplayString(e.game.tv_stations.join(", ")),1)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",NH,t.toDisplayString(t.unref(vH)(e.game)),1))],4)],4))}},jk=Rc(BH,[["__scopeId","data-v-a6b3fc44"]]),Uk=e=>(t.pushScopeId("data-v-e2fc9ed0"),e=e(),t.popScopeId(),e),IH={class:"game-status"},MH={key:0,class:"game-status__day__live"},OH=Uk(()=>t.createElementVNode("span",null,"LIVE",-1)),PH=Uk(()=>t.createElementVNode("span",{class:"dot"},null,-1)),FH=[OH,PH],RH={key:0,class:"game-status__round"},zH={__name:"GameStatus",props:{isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},status:{type:Number,default:4},isLive:{type:Boolean,default:!1},dateTimeMillis:{type:Number,default:0},roundAbbreviation:{type:String,default:""},fontSize:{type:String,default:"10px"}},setup(e){const a=e,r=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],d=t.computed(()=>{let s="";if(a.dateTimeMillis){const n=new Date(a.dateTimeMillis);s=`${n.getDate()} ${r[n.getMonth()]}`}return s}),g=t.computed(()=>({"font-size":a.fontSize})),i=t.computed(()=>{let s=[];return a.isLive?s.push("live"):a.status!==1&&s.push("pre-match"),s});return(s,n)=>(t.openBlock(),t.createElementBlock("div",IH,[t.createElementVNode("div",{class:t.normalizeClass(["game-status__day",i.value]),style:t.normalizeStyle(g.value)},[e.isLive?(t.openBlock(),t.createElementBlock("div",MH,FH)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(d.value),1)],64))],6),e.isRoundMode?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",RH,t.toDisplayString(e.roundAbbreviation),1))]))}},Hk=Rc(zH,[["__scopeId","data-v-e2fc9ed0"]]),zc={SHOW_GAME_EVENTS:"SHOW_GAME_EVENTS",PLAY_GOALS:"PLAY_GOALS",PLAY_RESUME:"PLAY_RESUME",NOTIFICATION:"NOTIFICATION",STATISTICS:"STATISTICS"},VH=e=>(t.pushScopeId("data-v-5711c5a6"),e=e(),t.popScopeId(),e),LH={class:"actions"},DH={class:"actions__row"},$H=VH(()=>t.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.87471 3.35132C9.31653 3.35132 9.67471 3.70949 9.67471 4.15132V10.4531C9.67471 10.8949 9.31653 11.2531 8.87471 11.2531C8.43288 11.2531 8.07471 10.8949 8.07471 10.4531V4.15132C8.07471 3.70949 8.43288 3.35132 8.87471 3.35132Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.67549 0.199951C5.11732 0.199951 5.47549 0.558123 5.47549 0.999951V10.4526C5.47549 10.8944 5.11732 11.2526 4.67549 11.2526C4.23366 11.2526 3.87549 10.8944 3.87549 10.4526V0.999951C3.87549 0.558123 4.23366 0.199951 4.67549 0.199951Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.0002 5.45154C1.44202 5.45154 1.8002 5.80971 1.8002 6.25154V10.4527C1.8002 10.8945 1.44202 11.2527 1.0002 11.2527C0.558368 11.2527 0.200195 10.8945 0.200195 10.4527V6.25154C0.200195 5.80971 0.558368 5.45154 1.0002 5.45154Z",fill:"#EEEC6B"})],-1)),jH=[$H],UH={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},HH=["fill"],GH={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},WH=["fill"],qH={__name:"GameActionsLanding",props:{gameStatus:{type:Number,default:4},isLive:{type:Boolean,default:!1},hasVideo:{type:Boolean,default:!1},iconColor:{type:String,default:"#CBEE6B"},iconBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},iconBorderColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},showPlayButton:{type:Boolean,default:!1}},emits:["action"],setup(e,{emit:a}){const r=e,d=t.computed(()=>({backgroundColor:r.iconBackgroundColor,borderColor:r.iconBorderColor}));function g(i){a("action",i)}return(i,s)=>(t.openBlock(),t.createElementBlock("div",LH,[t.createElementVNode("div",DH,[t.createElementVNode("div",{class:"actions__button rounded",style:t.normalizeStyle(d.value),onClick:s[0]||(s[0]=n=>g(t.unref(zc).STATISTICS))},jH,4),e.showPlayButton&&e.hasVideo?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button rounded",style:t.normalizeStyle(d.value),onClick:s[1]||(s[1]=n=>g(t.unref(zc).PLAY_RESUME))},[(t.openBlock(),t.createElementBlock("svg",UH,[t.createElementVNode("path",{d:"M0.442694 7.9474C0.385489 7.90953 0.337676 7.85295 0.304408 7.78375C0.27114 7.71456 0.25368 7.63538 0.253908 7.55475V0.444134C0.253987 0.363779 0.271562 0.284951 0.304765 0.216032C0.337968 0.147113 0.385557 0.090677 0.442475 0.0527243C0.499393 0.0147716 0.563511 -0.00327964 0.628014 0.000489552C0.692517 0.00425874 0.754994 0.0297075 0.808803 0.0741304L5.09491 3.62986C5.14387 3.67036 5.18401 3.7253 5.21178 3.78978C5.23955 3.85426 5.25409 3.92628 5.25409 3.99944C5.25409 4.0726 5.23955 4.14462 5.21178 4.2091C5.18401 4.27358 5.14387 4.32852 5.09491 4.36902L0.808803 7.92559C0.755077 7.97011 0.692648 7.99565 0.628173 7.99949C0.563698 8.00333 0.499593 7.98533 0.442694 7.9474Z",fill:r.iconColor},null,8,HH)]))],4)):t.createCommentVNode("",!0),e.gameStatus===4444&&!e.isLive?(t.openBlock(),t.createElementBlock("div",{key:1,class:"actions__button",onClick:s[2]||(s[2]=n=>g(t.unref(zc).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",GH,[t.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:r.iconColor},null,8,WH)]))])):t.createCommentVNode("",!0)])]))}},YH=Rc(qH,[["__scopeId","data-v-5711c5a6"]]),Cb=e=>(t.pushScopeId("data-v-d64f8667"),e=e(),t.popScopeId(),e),ZH={class:"actions"},XH={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},KH=["fill"],JH={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},QH=["fill"],eG=Cb(()=>t.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.87471 3.35132C9.31653 3.35132 9.67471 3.70949 9.67471 4.15132V10.4531C9.67471 10.8949 9.31653 11.2531 8.87471 11.2531C8.43288 11.2531 8.07471 10.8949 8.07471 10.4531V4.15132C8.07471 3.70949 8.43288 3.35132 8.87471 3.35132Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.67549 0.199951C5.11732 0.199951 5.47549 0.558123 5.47549 0.999951V10.4526C5.47549 10.8944 5.11732 11.2526 4.67549 11.2526C4.23366 11.2526 3.87549 10.8944 3.87549 10.4526V0.999951C3.87549 0.558123 4.23366 0.199951 4.67549 0.199951Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.0002 5.45154C1.44202 5.45154 1.8002 5.80971 1.8002 6.25154V10.4527C1.8002 10.8945 1.44202 11.2527 1.0002 11.2527C0.558368 11.2527 0.200195 10.8945 0.200195 10.4527V6.25154C0.200195 5.80971 0.558368 5.45154 1.0002 5.45154Z",fill:"#EEEC6B"})],-1)),tG=[eG],aG={key:0,class:"actions__videos"},rG={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},nG=["fill"],iG={key:1,class:"actions__videos__thumbnails"},oG=Cb(()=>t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__goals"},null,-1)),sG=Cb(()=>t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__summary"},null,-1)),lG={height:24,width:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},cG=["stroke"],dG={__name:"GameActionsFull",props:{gameStatus:{type:Number,default:4},isLive:{type:Boolean,default:!1},hasVideo:{type:Boolean,default:!1},hasActions:{type:Boolean,default:!0},hasGoals:{type:Boolean,default:!0},areEventsVisible:{type:Boolean,default:!1},iconColor:{type:String,default:"#CBEE6B"},iconBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},iconBorderColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},showPlayButton:{type:Boolean,default:!1},arrowColor:{type:String,default:"white"},thumbnailFontFamily:{type:String,default:"sans-serif"},thumbnailFontSize:{type:String,default:"8px"},thumbnailColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:a}){const r=e,d=t.computed(()=>({backgroundColor:r.iconBackgroundColor,borderColor:r.iconBorderColor})),g=t.computed(()=>{const _=[];return r.componentWidth<540&&_.push("mobile"),_}),i=t.computed(()=>r.componentWidth>730),s=t.computed(()=>({color:r.thumbnailColor,fontFamily:r.thumbnailFontFamily,fontSize:r.thumbnailFontSize}));function n(_){a("action",_)}return(_,f)=>(t.openBlock(),t.createElementBlock("div",ZH,[t.createElementVNode("div",{class:t.normalizeClass(["actions__buttons",g.value])},[e.gameStatus===4444&&!e.isLive&&!i.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button",onClick:f[0]||(f[0]=o=>n(t.unref(zc).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",XH,[t.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:r.iconColor},null,8,KH)]))])):t.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo&&!i.value?(t.openBlock(),t.createElementBlock("div",{key:1,class:"actions__button rounded",style:t.normalizeStyle(d.value),onClick:f[1]||(f[1]=o=>n(t.unref(zc).PLAY_RESUME))},[(t.openBlock(),t.createElementBlock("svg",JH,[t.createElementVNode("path",{d:"M0.442694 7.9474C0.385489 7.90953 0.337676 7.85295 0.304408 7.78375C0.27114 7.71456 0.25368 7.63538 0.253908 7.55475V0.444134C0.253987 0.363779 0.271562 0.284951 0.304765 0.216032C0.337968 0.147113 0.385557 0.090677 0.442475 0.0527243C0.499393 0.0147716 0.563511 -0.00327964 0.628014 0.000489552C0.692517 0.00425874 0.754994 0.0297075 0.808803 0.0741304L5.09491 3.62986C5.14387 3.67036 5.18401 3.7253 5.21178 3.78978C5.23955 3.85426 5.25409 3.92628 5.25409 3.99944C5.25409 4.0726 5.23955 4.14462 5.21178 4.2091C5.18401 4.27358 5.14387 4.32852 5.09491 4.36902L0.808803 7.92559C0.755077 7.97011 0.692648 7.99565 0.628173 7.99949C0.563698 8.00333 0.499593 7.98533 0.442694 7.9474Z",fill:r.iconColor},null,8,QH)]))],4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"actions__button rounded",style:t.normalizeStyle(d.value),onClick:f[2]||(f[2]=o=>n(t.unref(zc).STATISTICS))},tG,4)],2),i.value?(t.openBlock(),t.createElementBlock("div",aG,[e.gameStatus===4444&&!e.isLive?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button",onClick:f[3]||(f[3]=o=>n(t.unref(zc).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",rG,[t.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:r.iconColor},null,8,nG)]))])):t.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo?(t.openBlock(),t.createElementBlock("div",iG,[e.hasGoals?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__videos__thumbnails__thumbnail",onClick:f[4]||(f[4]=o=>n(t.unref(zc).PLAY_GOALS))},[oG,t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:t.normalizeStyle(s.value)}," Goles ",4)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:f[5]||(f[5]=o=>n(t.unref(zc).PLAY_RESUME))},[sG,t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:t.normalizeStyle(s.value)}," Resumen ",4)])])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),(e.gameStatus!==4||e.isLive)&&e.hasActions?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["actions__button expand",{"rotated-180":e.areEventsVisible,mobile:e.componentWidth<540}]),onClick:f[6]||(f[6]=o=>n(t.unref(zc).SHOW_GAME_EVENTS))},[(t.openBlock(),t.createElementBlock("svg",lG,[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,cG)]))],2)):(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(["actions__button expand",{"rotated-180":!1,mobile:e.componentWidth<540}])},null,2))]))}},uG=Rc(dG,[["__scopeId","data-v-d64f8667"]]),$1=e=>(t.pushScopeId("data-v-e31f880d"),e=e(),t.popScopeId(),e),pG={class:"row-landing__game-status"},hG={class:"row-landing__game-actions"},fG={class:"row-full__game-status"},mG={class:"row-full__game-info"},gG={key:0},yG={class:"row-full__game-actions"},_G={class:"game-events-container"},vG=$1(()=>t.createElementVNode("div",{class:"separator"},null,-1)),bG=$1(()=>t.createElementVNode("div",null,null,-1)),xG={class:"game-events__data"},wG={class:"game-events__data__team"},kG=["src"],CG={class:"game-events__data__team__event__text"},EG={class:"game-events__data__team away"},TG={class:"game-events__data__team__event__text"},SG=["src"],AG=$1(()=>t.createElementVNode("div",null,null,-1)),NG=$1(()=>t.createElementVNode("div",null,null,-1)),BG={__name:"CalendarRow",props:{isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},game:{type:Object,required:!0},height:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#172531"},showPlayButton:{type:Boolean,default:!1},componentWidth:{type:Number,default:400,validator(e){return e>0}},televisionFontSize:{type:String,default:"12px"},televisionFontFamily:{type:String,default:"sans-serif"},televisionColor:{type:String,default:"rgba(255, 255, 255, 0.5)"}},emits:["action"],setup(e,{emit:a}){const r=e,d={GOAL:{}.GAME_EVENTS_ICONS_GOAL||"/icn-gol.svg",RED_CARD:{}.GAME_EVENTS_ICONS_RED_CARD||"/icn-expulsion.svg",YELLOW_CARD:{}.GAME_EVENTS_ICONS_YELLOW_CARD||"/icn-amarilla.svg"},g=t.ref(!1),i=t.ref(!1),s=t.computed(()=>{const p={homeTeam:[],awayTeam:[]};return r.game&&r.game.game_status!==4&&!r.game.is_live&&r.game.minutes&&(p.homeTeam.push(...l(r.game.minutes.home_goals_minutes,d.GOAL)),p.homeTeam.push(...l(r.game.minutes.home_red_cards_minutes,d.RED_CARD)),p.homeTeam.push(...l(r.game.minutes.home_yellow_cards_minutes,d.YELLOW_CARD)),p.awayTeam.push(...l(r.game.minutes.visiting_goals_minutes,d.GOAL)),p.awayTeam.push(...l(r.game.minutes.away_red_cards_minutes,d.RED_CARD)),p.awayTeam.push(...l(r.game.minutes.away_yellow_cards_minutes,d.YELLOW_CARD))),p}),n=t.computed(()=>{const p=s.value.homeTeam.length,h=s.value.awayTeam.length;return p+h>0}),_=t.computed(()=>{const p=r.game.score[0],h=r.game.score[1];return p>0||h>0}),f=t.computed(()=>({"background-color":r.backgroundColor})),o=t.computed(()=>({height:r.height})),m=t.computed(()=>{const p={game:[],events:[]};return r.componentWidth<500?(p.events.push("break-point-3"),p.game.push("break-point-2")):r.componentWidth<730?(p.game.push("break-point-2"),p.events.push("break-point-2")):r.componentWidth<910&&(p.game.push("break-point-1"),p.events.push("break-point-1")),p}),x=t.computed(()=>({isLandingMode:r.isLandingMode,game:r.game,colorPrimary:"#fff",colorSecondary:"#fff",namesFontSize:"12px",timeFontSize:"12px",timeZoneFontSize:"8px",scoreFontSize:"13px",namesFontFamily:"sans-serif",scoreFontFamily:"sans-serif",additionalInfoFontFamily:"sans-serif",additionalInfoFontSize:"9px"})),c=t.computed(()=>({"font-size":r.televisionFontSize,"font-family":r.televisionFontFamily,color:r.televisionColor}));t.watch(()=>r.componentWidth,p=>{i.value=p<910});function l(p,h){return p.map(y=>({iconUrl:h,text:y}))}function u(p){p===zc.SHOW_GAME_EVENTS?g.value=!g.value:a("action",{action:p,game:r.game})}return(p,h)=>e.isLandingMode?(t.openBlock(),t.createElementBlock("div",{key:0,class:"row-landing",style:t.normalizeStyle(f.value)},[t.createVNode(jk,{game:e.game,"is-landing-mode":e.isLandingMode},null,8,["game","is-landing-mode"]),t.createElementVNode("div",pG,[t.createVNode(Hk,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":t.unref($k)(e.game.matchday_abbreviation),"is-landing-mode":e.isLandingMode,"is-round-mode":e.isRoundMode,"font-size":"10px"},null,8,["status","is-live","date-time-millis","round-abbreviation","is-landing-mode","is-round-mode"])]),t.createElementVNode("div",hG,[t.createVNode(YH,{"is-live":!!e.game.is_live,"has-video":!!e.game.has_video,"game-status":e.game.game_status,"show-play-button":!0,onAction:u},null,8,["is-live","has-video","game-status"])])],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"row-full-container",style:t.normalizeStyle(f.value)},[t.createElementVNode("div",{class:t.normalizeClass(["row-full",m.value.game]),style:t.normalizeStyle(o.value)},[t.createElementVNode("div",fG,[t.createVNode(Hk,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":t.unref($k)(e.game.matchday_abbreviation),"is-landing-mode":e.isLandingMode,"is-round-mode":e.isRoundMode,"font-size":"10px"},null,8,["status","is-live","date-time-millis","round-abbreviation","is-landing-mode","is-round-mode"])]),t.createElementVNode("div",mG,[t.createVNode(jk,t.mergeProps(x.value,{"is-television-visible":i.value,game:e.game,"is-landing-mode":e.isLandingMode,"is-acronym-visible":e.componentWidth<540}),null,16,["is-television-visible","game","is-landing-mode","is-acronym-visible"])]),e.componentWidth>=910?(t.openBlock(),t.createElementBlock("div",{key:0,class:"row-full__television",style:t.normalizeStyle(c.value)},[!i.value&&(e.game.game_status===4||e.game.is_live)?(t.openBlock(),t.createElementBlock("span",gG,t.toDisplayString(e.game.tv_stations.join(", ")),1)):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",yG,[t.createVNode(uG,{"is-live":!!e.game.is_live,"has-video":!!e.game.has_video,"has-actions":n.value,"has-goals":_.value,"game-status":e.game.game_status,"show-play-button":!0,"are-events-visible":g.value,"component-width":e.componentWidth,onAction:u},null,8,["is-live","has-video","has-actions","has-goals","game-status","are-events-visible","component-width"])])],6),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",_G,[vG,t.createElementVNode("div",{class:t.normalizeClass(["game-events",m.value.events])},[bG,t.createElementVNode("div",xG,[t.createElementVNode("div",wG,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value.homeTeam,(y,b)=>(t.openBlock(),t.createElementBlock("div",{key:`h${b}`,class:"game-events__data__team__event"},[t.createElementVNode("img",{src:y.iconUrl},null,8,kG),t.createElementVNode("div",CG,t.toDisplayString(y.text),1)]))),128))]),t.createElementVNode("div",EG,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value.awayTeam,(y,b)=>(t.openBlock(),t.createElementBlock("div",{key:`a${b}`,class:"game-events__data__team__event"},[t.createElementVNode("div",TG,t.toDisplayString(y.text),1),t.createElementVNode("img",{src:y.iconUrl},null,8,SG)]))),128))])]),AG,NG],2)],512),[[t.vShow,g.value]])]),_:1})],4))}},Gk=Rc(BG,[["__scopeId","data-v-e31f880d"]]),IG={class:"calendar-table"},MG={__name:"CalendarTable",props:{isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},gamesPerPage:{type:Array,default:()=>[]},rowHeight:{type:String,default:"fit-content"},oddRowColor:{type:String,default:"#172531"},evenRowColor:{type:String,default:"#0D1D29"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:a}){const r=e;function d(i){return i%2===0?r.evenRowColor:r.oddRowColor}function g(i){a("action",i)}return(i,s)=>(t.openBlock(),t.createElementBlock("div",IG,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gamesPerPage,(n,_)=>(t.openBlock(),t.createBlock(Gk,{key:n.game_id,game:n,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":d(_),"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:g},null,8,["game","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))}},OG=Rc(MG,[["__scopeId","data-v-c8583c72"]]),PG={class:"calendar-by-team"},FG={class:"playing-as-picker"},RG={class:"calendar-by-team__page"},zG={__name:"CalendarTableByTeam",props:{teamId:{type:Number,default:0},isPaginationVisible:{type:Boolean,default:!0},gamesPages:{type:Map,default:()=>new Map},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},rowHeight:{type:String,default:"fit-content"},nameRowColor:{type:String,default:"#172531"},gameRowColor:{type:String,default:"#0D1D29"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:a}){const r=e,d=t.ref(0),g=t.computed(()=>{let _=[];if(r.gamesPages.size>0){const f=Array.from(r.gamesPages.entries()).reduce((o,[m,x])=>{const c=Number(m),l=Number.isNaN(c)?m:`Jornada ${c<10?"0":""}${c}`,u=x.reduce((p,h)=>(p.push(...h),p),[]).filter(p=>d.value===0||d.value===1&&p.visiting_team.team_id===r.teamId?!0:d.value===2&&p.home_team.team_id===r.teamId);return u.length>0&&o.push({roundName:l,games:u}),o},[]);_.push(f)}return _});function i(_){a("action",_)}function s(_){document.querySelector("#opc0").classList.remove("selected"),document.querySelector("#opc1").classList.remove("selected"),document.querySelector("#opc2").classList.remove("selected"),d.value=_,document.querySelector("#opc"+_).classList.add("selected")}function n(_){let f=_;switch(_){case"PI1":f="Play In 1";break;case"PI2":f="Play In 2";break;case"R1":f="Repechaje";break;case"CFI":f="Cuartos de final - Ida";break;case"CFV":f="Cuartos de final - Vuelta";break;case"SFI":f="Semifinal - Ida";break;case"SFV":f="Semifinal - Vuelta";break;case"FI":f="Final - Ida";break;case"FV":f="Final - Vuelta";break}return f}return(_,f)=>(t.openBlock(),t.createElementBlock("div",PG,[t.createElementVNode("div",FG,[t.createElementVNode("div",{class:"playing-as-picker__type selected",id:"opc0",onClick:f[0]||(f[0]=o=>s(0))}," Todas "),t.createElementVNode("div",{class:"playing-as-picker__type",id:"opc1",onClick:f[1]||(f[1]=o=>s(1))},"Visitante"),t.createElementVNode("div",{class:"playing-as-picker__type",id:"opc2",onClick:f[2]||(f[2]=o=>s(2))},"Local")]),t.createVNode(t.unref(Vk),{"is-pagination-visible":e.isPaginationVisible,items:g.value},{default:t.withCtx(({item:o})=>[t.createElementVNode("div",RG,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o,(m,x)=>(t.openBlock(),t.createElementBlock("div",{key:x,class:"calendar-by-team__page__round"},[t.createElementVNode("div",{class:"calendar-by-team__page__round__round-name",style:t.normalizeStyle([{color:"white"},e.componentWidth<=425?"padding: 5px 10px":""])},t.toDisplayString(n(m.roundName)),5),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.games,c=>(t.openBlock(),t.createBlock(Gk,{key:c.game_id,game:c,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":e.gameRowColor,"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:i},null,8,["game","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))),128))])]),_:1},8,["is-pagination-visible","items"])]))}},VG=Rc(zG,[["__scopeId","data-v-7776a54a"]]),LG="_image62Icon_1ybd3_2",DG="_imgChivasIcon_1ybd3_11",$G="_nameDesktop_1ybd3_18",jG="_nameMobile_1ybd3_31",UG="_homeTeam_1ybd3_43",HG="_sbado16De_1ybd3_54",GG="_gameDate_1ybd3_63",WG="_sab16092023_1ybd3_67",qG="_div_1ybd3_80",YG="_divscore_1ybd3_89",ZG="_cst_1ybd3_99",XG="_hour_1ybd3_108",KG="_score_1ybd3_109",JG="_chivasTvCanal_1ybd3_120",QG="_gameStatus_1ybd3_132",eW="_matchInfo_1ybd3_143",tW="_image62Icon1_1ybd3_156",aW="_name_1ybd3_18",rW="_imgAtlasIcon_1ybd3_178",nW="_name1_1ybd3_185",iW="_awayTeam_1ybd3_197",oW="_matchCard_1ybd3_208",sW={image62Icon:LG,imgChivasIcon:DG,nameDesktop:$G,nameMobile:jG,homeTeam:UG,sbado16De:HG,gameDate:GG,sab16092023:WG,div:qG,divscore:YG,cst:ZG,hour:XG,score:KG,chivasTvCanal:JG,gameStatus:QG,matchInfo:eW,image62Icon1:tW,name:aW,imgAtlasIcon:rW,name1:nW,awayTeam:iW,matchCard:oW},lW=["src"],cW=["src"],dW={key:0},uW=["src"],pW=["src"],hW={__name:"CardPreMatch",props:{game:{type:Object,default:()=>{}}},setup(e){const a=e,r=t.computed(()=>{const g={...a.game};return g.gameSchedule=a.game.schedule.split(":"),g.gameSchedule.pop(),g.gameSchedule=g.gameSchedule.join(":"),g});function d(g,i){const s=new Date(g);if(i==1){const n=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],_=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"];return`${n[s.getDay()]} ${s.getDate()} de ${_[s.getMonth()]}`}else return`${s.getDate()}-${s.getMonth()+1}-${s.getFullYear()}`}return(g,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(g.$style.matchCard)},[t.createElementVNode("div",{class:t.normalizeClass(g.$style.homeTeam),id:"container-home-team"},[t.createElementVNode("img",{class:t.normalizeClass(g.$style.image62Icon),alt:"",src:t.unref(ih)(r.value.home_team.team_id,150)},null,10,lW),t.createElementVNode("img",{class:t.normalizeClass(g.$style.imgChivasIcon),alt:"",src:t.unref(ih)(r.value.home_team.team_id)},null,10,cW),t.createElementVNode("h3",{class:t.normalizeClass(g.$style.nameDesktop),id:"team-name"},t.toDisplayString(r.value.home_team.colloquial_name),3),t.createElementVNode("h3",{class:t.normalizeClass(g.$style.nameMobile),id:"team-name"},t.toDisplayString(r.value.home_team.acronym),3)],2),r.value.game_status==4?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(g.$style.matchInfo),id:"container-match-info"},[t.createElementVNode("div",{class:t.normalizeClass(g.$style.sbado16De)},t.toDisplayString(d(r.value.date_time_utc,1)),3),t.createElementVNode("div",{class:t.normalizeClass(g.$style.sab16092023)},t.toDisplayString(d(r.value.date_time_utc,0)),3),t.createElementVNode("div",{class:t.normalizeClass(g.$style.hour)},[t.createElementVNode("div",{class:t.normalizeClass(g.$style.div)},t.toDisplayString(r.value.gameSchedule),3),t.createElementVNode("div",{class:t.normalizeClass(g.$style.cst)},"CST",2)],2),t.createElementVNode("div",{class:t.normalizeClass(g.$style.chivasTvCanal)},t.toDisplayString(r.value.tv_stations.join(", ")),3)],2)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(g.$style.matchInfo),id:"container-match-info"},[t.createElementVNode("div",{class:t.normalizeClass([g.$style.sbado16De,g.$style.gameDate])},t.toDisplayString(d(r.value.date_time_utc,1)),3),t.createElementVNode("div",{class:t.normalizeClass([g.$style.sab16092023,g.$style.gameDate])},t.toDisplayString(d(r.value.date_time_utc,0)),3),t.createElementVNode("div",{class:t.normalizeClass(g.$style.score)},[t.createElementVNode("div",{class:t.normalizeClass(g.$style.divscore)},t.toDisplayString(r.value.score.join(" - ")),3)],2),t.createElementVNode("div",{class:t.normalizeClass(g.$style.gameStatus)},[t.createTextVNode(" Finalizado "),r.value.penalties_score_home_team!=0||r.value.penalties_score_visiting_team!=0?(t.openBlock(),t.createElementBlock("span",dW," - Penales "+t.toDisplayString(r.value.penalties_score_home_team)+" - "+t.toDisplayString(r.value.penalties_score_visiting_team),1)):t.createCommentVNode("",!0)],2)],2)),t.createElementVNode("div",{class:t.normalizeClass(g.$style.awayTeam),id:"container-away-team"},[t.createElementVNode("img",{class:t.normalizeClass(g.$style.image62Icon1),alt:"",src:t.unref(ih)(r.value.visiting_team.team_id,150)},null,10,uW),t.createElementVNode("h3",{class:t.normalizeClass(g.$style.name),id:"team-name"},t.toDisplayString(r.value.visiting_team.colloquial_name),3),t.createElementVNode("img",{class:t.normalizeClass(g.$style.imgAtlasIcon),alt:"",src:t.unref(ih)(r.value.visiting_team.team_id)},null,10,pW),t.createElementVNode("h3",{class:t.normalizeClass(g.$style.name1),id:"team-name"},t.toDisplayString(r.value.visiting_team.acronym),3)],2)],2))}},fW={$style:sW},mW=Rc(hW,[["__cssModules",fW]]),gW={class:"calendar-by-game__carousel"},yW={__name:"GSC-CalendarByGame",props:{height:{type:String,default:"fit-content"},width:{type:String,default:"100%"},rowHeight:{type:String,default:"fit-content"},oddRowColor:{type:String,default:"#172531"},evenRowColor:{type:String,default:"#0D1D29"},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},isRoundPickerVisible:{type:Boolean,default:!0},isPaginationVisible:{type:Boolean,default:!0},awaitForSeasons:{type:Boolean,default:!1},seasons:{type:Array,default:()=>[]},isCup:{type:Boolean,default:!1},isCupLegacy:{type:Boolean,default:!1},token:{type:String,default:""},pagesWithGames:{type:Array,default:()=>[]},maxGamesToShow:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},areRoundsVisible:{type:Boolean,default:!0},gamesPerMatchDay:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},itemsToShow:{type:Number,default:9},itemsToScroll:{type:Number,default:9},games:{type:Array,default:()=>null},teamId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},avoidTeamIdFilter:{type:Boolean,default:!1},areGamesCarouselType:{type:Boolean,default:!1},defaultGameId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},userTeamId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},sortCalendar:{type:Boolean,default:!0}},emits:["tournament-selected","change-teams","change-round","change-game-carousel","action"],setup(e,{emit:a}){const r=e;let d=null;const g=t.ref([]),i=t.ref({}),s=t.ref(0),n=t.ref(null),_=t.ref({}),f=t.ref(new Map),o=t.ref(!1),m=t.ref(null),x=t.ref(null),c=t.ref(null),l=t.computed(()=>r.isCup),u=t.computed(()=>r.isCupLegacy),p=t.computed(()=>({height:r.height,width:r.width})),h=t.computed(()=>r.games?I(r.games):f.value.get(_.value.key)||[]),y=t.ref(0),b=t.ref("1"),v=t.ref([]),w=t.ref([]),C=t.computed(()=>w.value&&w.value.length?N(i.value):k(i.value));t.watch(()=>C.value,L=>{y.value=v.value.findIndex(j=>j===L),b.value=L}),t.watch(()=>r.seasons,L=>{L&&L.length&&(o.value=!0,g.value=L.map(j=>j.id),A(L,!0))},{immediate:!0,deep:!0});function k(L){const j=Object.entries(Object.entries(L).reduce((G,[X,H])=>(G[X]=[],H.forEach(Y=>{Y.games.forEach(Z=>{const le=new Date(Z.date_time_utc).getTime()+66e5;G[X].push(le)})}),G),{}));if(!j.length)return"1";const W=new Date().getTime(),$=j.reduce((G,[X,H])=>{let Y=null;return H.forEach(Z=>{const le=Z-W;le>=0&&(Y===null||le<Y)&&(Y=le)}),Y&&(G.shortestTime===null||Y<G.shortestTime)&&(G.round=X,G.shortestTime=Y),G},{round:"",shortestTime:null});return $.shortestTime!==null?$.round:j[j.length-1][0]}function N(L){let j=1;if(w.value.length){const W=w.value[0];for(const[$,G]of Object.entries(L))for(const X of G)if(X.games.find(H=>H.game_id===W.game_id))return $}return j}t.watch(()=>r.teamId,()=>{B()},{immediate:!0});async function E(L,j,W=""){let $=W;try{const G={};r.token&&(G.Authorization=r.token),$||($="https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",L.forEach((Y,Z)=>{$+=`${Z===0?"":"&"}seasons=${Y}`}));const{data:{data:X,teams:H}}=await Pk.get($,{headers:G});return{seasonsAndGames:X,seasonsAndTeams:H}}catch(G){if(j>0)return E(L,j-1,$);throw new Error(G)}}function S(L){for(const j of L)if(!g.value.includes(j.season_id))return!0;return!1}async function A(L,j){try{i.value={};let W=0;const{seasonsAndGames:$,seasonsAndTeams:G}=await E(L.map(H=>H.id),3);if(j&&S($))return;$.forEach(H=>{const{type:Y}=L.find(Z=>Z.id===H.season_id);H.type=Y,H.games.forEach(Z=>{Z.season_id=H.season_id}),Y===0&&(W=H.season_id)}),m.value={seasonsGames:$};const{teams:X}=G.find(H=>H.season_id===W);x.value=X,a("change-teams",X),B()}catch(W){throw new Error(W)}}function B(){if(!x.value)return;w.value=[];const L=m.value&&m.value.seasonsGames?m.value.seasonsGames.map(j=>{const W=j.games.reduce(($,G)=>{const X={...G};return X.dateTimeMillis=new Date(X.date_time_utc).valueOf(),X.home_team=x.value.find(H=>H.team_id===G.home_team),X.visiting_team=x.value.find(H=>H.team_id===G.visiting_team),r.teamId&&X.home_team.team_id!==r.teamId&&X.visiting_team.team_id!==r.teamId||($[G.matchday_abbreviation]?$[G.matchday_abbreviation][G.game_status===3?"canceled":G.date]?$[G.matchday_abbreviation][G.game_status===3?"canceled":G.date].push(X):$[G.matchday_abbreviation][G.game_status===3?"canceled":G.date]=[X]:$[G.matchday_abbreviation]={[G.game_status===3?"canceled":G.date]:[X]},r.userTeamId&&X.game_status===4&&(X.home_team.team_id===r.userTeamId||X.visiting_team.team_id===r.userTeamId)&&w.value.push(X)),$},{});for(let[$,G]of Object.entries(W))W[$]=Object.entries(G).map(([X,H])=>({date:X,games:H.sort((Y,Z)=>Y.dateTimeMillis-Z.dateTimeMillis)})),W[$].sort((X,H)=>X.date<H.date?-1:X.date>H.date?1:0);return{type:j.type,weight:j.type===0?0:j.type===2?1:2,schedule:W}}):[];L.sort((j,W)=>j.weight-W.weight),i.value=L.reduce((j,W)=>{for(const[$,G]of Object.entries(W.schedule))if(W.type===0)if(l.value){const X=$.replace("M",""),H=X;u.value?j[aH[X]||H]=G:j[tH[$]||H]=G}else j[Number($.replace("M","")).toString()]=G;else W.type===2?$.charAt(1)=="I"?j[`PI${Number($.replace("PI",""))}`]=G:j[`R${Number($.replace("PO",""))}`]=G:W.type===1&&(j[eH[$]]=G);return j},{}),f.value=new Map,v.value=Array.from(Object.entries(i.value).reduce((j,[W,$],G)=>{const X=Number(W);let H="";Number.isNaN(X)?H=W:H=X<10?`0${X}`:W,j.set(W,{key:W,value:X,valueText:H,index:G});const Y=$.reduce((le,ie)=>(ie.games.forEach(ne=>{ne.game_id===r.defaultGameId&&(c.value=W),ne.roundAbbreviation=Number.isNaN(X)?X:`J ${X}`}),le=le.concat(ie.games),le),[]),Z=I(Y);return f.value.set(W,Z),j},new Map).values())}function I(L){const j=[];if(r.gamesPerMatchDay>0){let W=[];L.forEach(($,G)=>{W.push($),(G+1)%r.gamesPerMatchDay===0&&(j.push([...W]),W=[])}),W.length&&j.push([...W])}else j.push(L);return j}async function O(L){try{const{data:j}=await Pk.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments");return j}catch(j){if(L>0)return O(L-1);throw new Error(j)}}function T(){if(window.ResizeObserver)d=new ResizeObserver(()=>{s.value=n.value.clientWidth}),d.observe(n.value);else throw new Error("Resize observer not supported!")}function R(L){_.value=L,a("change-round",L)}function M(L){r.areGamesCarouselType&&a("change-game-carousel",L.selectedItem)}function P(L){a("action",L),V(L)}function V(L){const j="PLAY_RESUME",W="PLAY_GOALS",$=[607,608,12,55,54,35,14,52,15,53,466,477],G=[12,55,"35_r","54_r"],{game_id:X,season_id:H}=L.game;let Y={seasonId:H,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:1,gameIds:[X],playerIds:[],goalkeeperIds:[],categoryIds:[],teamId:0,matchResult:[],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:""},objectPlaySync:null};L.action===j?(Y.categoryIds=$,Y.advancedFilter.playListTitle="Resumen",a("openmedia",Y)):L.action===W&&(Y.categoryIds=G,Y.advancedFilter.playListTitle="Goles",a("openmedia",Y))}async function D(){try{if(!r.awaitForSeasons&&!r.games){const L=(await O(3)).find($=>$._id===1),j=L.seasons[0],W=[{id:j.id,type:j.type}];L&&L.tournament&&a("tournament-selected",L.tournament),j.related_seasons&&j.related_seasons.length&&W.push(...j.related_seasons.map($=>({id:$.id,type:$.type}))),await A(W,!1)}}catch(L){throw new Error(L)}}return t.onMounted(()=>{T()}),D(),(L,j)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"calendarByGame",ref:n,class:"calendar-by-game",style:t.normalizeStyle(p.value)},[e.teamId&&!e.avoidTeamIdFilter?(t.openBlock(),t.createBlock(VG,{key:0,"full-tournament-schedule":i.value,"team-id":e.teamId,"is-landing-mode":!1,"row-height":e.rowHeight,"component-width":s.value,"games-pages":f.value,"is-pagination-visible":e.isPaginationVisible,"is-round-mode":e.isRoundMode,onAction:P},null,8,["full-tournament-schedule","team-id","row-height","component-width","games-pages","is-pagination-visible","is-round-mode"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.areRoundsVisible&&v.value?(t.openBlock(),t.createBlock(_H,{key:0,"match-days":v.value,"is-landing-mode":e.isLandingMode,height:"48px","items-to-show":e.itemsToShow,"items-to-scroll":e.itemsToScroll,"component-width":s.value,"default-match-day-key":c.value,"closest-match-day":e.sortCalendar?C.value:"",onChangeMatchDay:R},null,8,["match-days","is-landing-mode","items-to-show","items-to-scroll","component-width","default-match-day-key","closest-match-day"])):t.createCommentVNode("",!0),t.createElementVNode("div",gW,[h.value?(t.openBlock(),t.createBlock(t.unref(Vk),{key:0,"is-pagination-visible":e.isPaginationVisible&&!e.areGamesCarouselType,items:e.areGamesCarouselType?h.value[0]:h.value,"are-navigation-arrows-visible":e.areGamesCarouselType?!e.areGamesCarouselType:e.isPaginationVisible,"wrap-around":e.areGamesCarouselType,"items-to-show":e.areGamesCarouselType?1.2:1,"is-main-slide-priority":e.areGamesCarouselType,"are-slides-arrows-visible":e.areGamesCarouselType,"slides-arrows-left-and-right":e.areGamesCarouselType?"30px":"0px","default-item-by-prop":e.areGamesCarouselType?{propName:"game_id",value:e.defaultGameId}:{},onInput:M},{default:t.withCtx(({item:W})=>[e.areGamesCarouselType?(t.openBlock(),t.createBlock(mW,{key:0,game:W},null,8,["game"])):(t.openBlock(),t.createBlock(OG,{key:1,"games-per-page":W,"is-landing-mode":e.isLandingMode,"row-height":e.rowHeight,"component-width":s.value,"is-round-mode":e.isRoundMode,onAction:P},null,8,["games-per-page","is-landing-mode","row-height","component-width","is-round-mode"]))]),_:1},8,["is-pagination-visible","items","are-navigation-arrows-visible","wrap-around","items-to-show","is-main-slide-priority","are-slides-arrows-visible","slides-arrows-left-and-right","default-item-by-prop"])):t.createCommentVNode("",!0)])],64))],4))}},_W=Rc(yW,[["__scopeId","data-v-dd648f83"]]);function vW(){return Wk().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Wk(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const bW=typeof Proxy=="function",xW="devtools-plugin:setup",wW="plugin:settings:set";let oh,Eb;function kW(){var e;return oh!==void 0||(typeof window<"u"&&window.performance?(oh=!0,Eb=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(oh=!0,Eb=globalThis.perf_hooks.performance):oh=!1),oh}function CW(){return kW()?Eb.now():Date.now()}class EW{constructor(a,r){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=a,this.hook=r;const d={};if(a.settings)for(const s in a.settings){const n=a.settings[s];d[s]=n.defaultValue}const g=`__vue-devtools-plugin-settings__${a.id}`;let i=Object.assign({},d);try{const s=localStorage.getItem(g),n=JSON.parse(s);Object.assign(i,n)}catch{}this.fallbacks={getSettings(){return i},setSettings(s){try{localStorage.setItem(g,JSON.stringify(s))}catch{}i=s},now(){return CW()}},r&&r.on(wW,(s,n)=>{s===this.plugin.id&&this.fallbacks.setSettings(n)}),this.proxiedOn=new Proxy({},{get:(s,n)=>this.target?this.target.on[n]:(..._)=>{this.onQueue.push({method:n,args:_})}}),this.proxiedTarget=new Proxy({},{get:(s,n)=>this.target?this.target[n]:n==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(n)?(..._)=>(this.targetQueue.push({method:n,args:_,resolve:()=>{}}),this.fallbacks[n](..._)):(..._)=>new Promise(f=>{this.targetQueue.push({method:n,args:_,resolve:f})})})}async setRealTarget(a){this.target=a;for(const r of this.onQueue)this.target.on[r.method](...r.args);for(const r of this.targetQueue)r.resolve(await this.target[r.method](...r.args))}}function TW(e,a){const r=e,d=Wk(),g=vW(),i=bW&&r.enableEarlyProxy;if(g&&(d.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!i))g.emit(xW,e,a);else{const s=i?new EW(r,g):null;(d.__VUE_DEVTOOLS_PLUGINS__=d.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:r,setupFn:a,proxy:s}),s&&a(s.proxiedTarget)}}/*!
|
|
14
|
+
*/const $o={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},Lk={itemsToShow:{default:$o.itemsToShow,type:Number},itemsToScroll:{default:$o.itemsToScroll,type:Number},wrapAround:{default:$o.wrapAround,type:Boolean},throttle:{default:$o.throttle,type:Number},snapAlign:{default:$o.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:$o.transition,type:Number},breakpoints:{default:$o.breakpoints,type:Object},autoplay:{default:$o.autoplay,type:Number},pauseAutoplayOnHover:{default:$o.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:$o.mouseDrag,type:Boolean},touchDrag:{default:$o.touchDrag,type:Boolean},dir:{default:$o.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:$o.i18n,type:Object},settings:{default(){return{}},type:Object}};function rH({config:e,slidesCount:a}){const{snapAlign:r,wrapAround:d,itemsToShow:g=1}=e;if(d)return Math.max(a-1,0);let i;switch(r){case"start":i=a-g;break;case"end":i=a-1;break;case"center":case"center-odd":i=a-Math.ceil((g-.5)/2);break;case"center-even":i=a-Math.ceil(g/2);break;default:i=0;break}return Math.max(i,0)}function nH({config:e,slidesCount:a}){const{wrapAround:r,snapAlign:d,itemsToShow:g=1}=e;let i=0;if(r||g>a)return i;switch(d){case"start":i=0;break;case"end":i=g-1;break;case"center":case"center-odd":i=Math.floor((g-1)/2);break;case"center-even":i=Math.floor((g-2)/2);break;default:i=0;break}return i}function bb({val:e,max:a,min:r}){return a<r?e:Math.min(Math.max(e,r),a)}function iH({config:e,currentSlide:a,slidesCount:r}){const{snapAlign:d,wrapAround:g,itemsToShow:i=1}=e;let s=a;switch(d){case"center":case"center-odd":s-=(i-1)/2;break;case"center-even":s-=(i-2)/2;break;case"end":s-=i-1;break}return g?s:bb({val:s,max:r-i,min:0})}function Dk(e){return e?e.reduce((a,r)=>{var d;return r.type===t.Fragment?[...a,...Dk(r.children)]:((d=r.type)===null||d===void 0?void 0:d.name)==="CarouselSlide"?[...a,r]:a},[]):[]}function xb({val:e,max:a,min:r=0}){return e>a?xb({val:e-(a+1),max:a,min:r}):e<r?xb({val:e+(a+1),max:a,min:r}):e}function oH(e,a){let r;return a?function(...d){const g=this;r||(e.apply(g,d),r=!0,setTimeout(()=>r=!1,a))}:e}function sH(e,a){let r;return function(...d){r&&clearTimeout(r),r=setTimeout(()=>{e(...d),r=null},a)}}function lH(e="",a={}){return Object.entries(a).reduce((r,[d,g])=>r.replace(`{${d}}`,String(g)),e)}var cH=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},$o))),a=t.inject("currentSlide",t.ref(0)),r=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},lH(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:r.value}))}}),dH=t.defineComponent({name:"Carousel",props:Lk,setup(e,{slots:a,emit:r,expose:d}){var g;const i=t.ref(null),s=t.ref([]),n=t.ref(0),_=t.ref(0),f=t.reactive(Object.assign({},$o));let o=Object.assign({},$o),m;const x=t.ref((g=e.modelValue)!==null&&g!==void 0?g:0),c=t.ref(0),l=t.ref(0),u=t.ref(0),p=t.ref(0);let h,y;t.provide("config",f),t.provide("slidesCount",_),t.provide("currentSlide",x),t.provide("maxSlide",u),t.provide("minSlide",p),t.provide("slideWidth",n);function b(){m=Object.assign({},e.breakpoints),o=Object.assign(Object.assign(Object.assign({},o),e),{i18n:Object.assign(Object.assign({},o.i18n),e.i18n),breakpoints:void 0}),w(o)}function v(){if(!m||!Object.keys(m).length)return;const Q=Object.keys(m).map(se=>Number(se)).sort((se,de)=>+de-+se);let ee=Object.assign({},o);Q.some(se=>{const de=window.matchMedia(`(min-width: ${se}px)`).matches;return de&&(ee=Object.assign(Object.assign({},ee),m[se])),de}),w(ee)}function w(Q){Object.entries(Q).forEach(([ee,se])=>f[ee]=se)}const C=sH(()=>{v(),k()},16);function k(){if(!i.value)return;const Q=i.value.getBoundingClientRect();n.value=Q.width/f.itemsToShow}function N(){_.value<=0||(l.value=Math.ceil((_.value-1)/2),u.value=rH({config:f,slidesCount:_.value}),p.value=nH({config:f,slidesCount:_.value}),f.wrapAround||(x.value=bb({val:x.value,max:u.value,min:p.value})))}t.onMounted(()=>{t.nextTick(()=>k()),setTimeout(()=>k(),1e3),v(),D(),window.addEventListener("resize",C,{passive:!0}),r("init")}),t.onUnmounted(()=>{y&&clearTimeout(y),h&&clearInterval(h),window.removeEventListener("resize",C,{passive:!0})});let E=!1;const S={x:0,y:0},A={x:0,y:0},B=t.reactive({x:0,y:0}),I=t.ref(!1),O=t.ref(!1),T=()=>{I.value=!0},R=()=>{I.value=!1};function M(Q){["INPUT","TEXTAREA","SELECT"].includes(Q.target.tagName)||(E=Q.type==="touchstart",E||Q.preventDefault(),!(!E&&Q.button!==0||j.value)&&(S.x=E?Q.touches[0].clientX:Q.clientX,S.y=E?Q.touches[0].clientY:Q.clientY,document.addEventListener(E?"touchmove":"mousemove",P,!0),document.addEventListener(E?"touchend":"mouseup",V,!0)))}const P=oH(Q=>{O.value=!0,A.x=E?Q.touches[0].clientX:Q.clientX,A.y=E?Q.touches[0].clientY:Q.clientY;const ee=A.x-S.x,se=A.y-S.y;B.y=se,B.x=ee},f.throttle);function V(){const Q=f.dir==="rtl"?-1:1,ee=Math.sign(B.x)*.4,se=Math.round(B.x/n.value+ee)*Q;if(se&&!E){const de=ue=>{ue.stopPropagation(),window.removeEventListener("click",de,!0)};window.addEventListener("click",de,!0)}W(x.value-se),B.x=0,B.y=0,O.value=!1,document.removeEventListener(E?"touchmove":"mousemove",P,!0),document.removeEventListener(E?"touchend":"mouseup",V,!0)}function D(){!f.autoplay||f.autoplay<=0||(h=setInterval(()=>{f.pauseAutoplayOnHover&&I.value||$()},f.autoplay))}function L(){h&&(clearInterval(h),h=null),D()}const j=t.ref(!1);function W(Q){const ee=f.wrapAround?Q:bb({val:Q,max:u.value,min:p.value});x.value===ee||j.value||(r("slide-start",{slidingToIndex:Q,currentSlideIndex:x.value,prevSlideIndex:c.value,slidesCount:_.value}),j.value=!0,c.value=x.value,x.value=ee,y=setTimeout(()=>{if(f.wrapAround){const se=xb({val:ee,max:u.value,min:0});se!==x.value&&(x.value=se,r("loop",{currentSlideIndex:x.value,slidingToIndex:Q}))}r("update:modelValue",x.value),r("slide-end",{currentSlideIndex:x.value,prevSlideIndex:c.value,slidesCount:_.value}),j.value=!1,L()},f.transition))}function $(){W(x.value+f.itemsToScroll)}function G(){W(x.value-f.itemsToScroll)}const X={slideTo:W,next:$,prev:G};t.provide("nav",X),t.provide("isSliding",j);const H=t.computed(()=>iH({config:f,currentSlide:x.value,slidesCount:_.value}));t.provide("slidesToScroll",H);const Y=t.computed(()=>{const Q=f.dir==="rtl"?-1:1,ee=H.value*n.value*Q;return{transform:`translateX(${B.x-ee}px)`,transition:`${j.value?f.transition:0}ms`,margin:f.wrapAround?`0 -${_.value*n.value}px`:"",width:"100%"}});function Z(){b(),v(),N(),k(),L()}Object.keys(Lk).forEach(Q=>{["modelValue"].includes(Q)||t.watch(()=>e[Q],Z)}),t.watch(()=>e.modelValue,Q=>{Q!==x.value&&W(Number(Q))}),t.watch(_,N),r("before-init"),b();const le={config:f,slidesCount:_,slideWidth:n,next:$,prev:G,slideTo:W,currentSlide:x,maxSlide:u,minSlide:p,middleSlide:l};d({updateBreakpointsConfigs:v,updateSlidesData:N,updateSlideWidth:k,initDefaultConfigs:b,restartCarousel:Z,slideTo:W,next:$,prev:G,nav:X,data:le});const ie=a.default||a.slides,ne=a.addons,re=t.reactive(le);return()=>{const Q=Dk(ie==null?void 0:ie(re)),ee=(ne==null?void 0:ne(re))||[];Q.forEach((fe,ge)=>fe.props.index=ge);let se=Q;if(f.wrapAround){const fe=Q.map((ve,we)=>t.cloneVNode(ve,{index:-Q.length+we,isClone:!0,key:`clone-before-${we}`})),ge=Q.map((ve,we)=>t.cloneVNode(ve,{index:Q.length+we,isClone:!0,key:`clone-after-${we}`}));se=[...fe,...Q,...ge]}s.value=Q,_.value=Math.max(Q.length,1);const de=t.h("ol",{class:"carousel__track",style:Y.value,onMousedownCapture:f.mouseDrag?M:null,onTouchstartPassiveCapture:f.touchDrag?M:null},se),ue=t.h("div",{class:"carousel__viewport"},de);return t.h("section",{ref:i,class:{carousel:!0,"is-sliding":j.value,"is-dragging":O.value,"is-hover":I.value,"carousel--rtl":f.dir==="rtl"},dir:f.dir,"aria-label":f.i18n.ariaGallery,tabindex:"0",onMouseenter:T,onMouseleave:R},[ue,ee,t.h(cH)])}}}),wb;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(wb||(wb={}));const uH={arrowUp:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z",arrowDown:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",arrowRight:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",arrowLeft:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"};function pH(e){return e in wb}const kb=e=>{const a=t.inject("config",t.reactive(Object.assign({},$o))),r=String(e.name),d=`icon${r.charAt(0).toUpperCase()+r.slice(1)}`;if(!r||typeof r!="string"||!pH(r))return;const g=uH[r],i=t.h("path",{d:g}),s=a.i18n[d]||e.title||r,n=t.h("title",s);return t.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":s},[n,i])};kb.props={name:String,title:String};const hH=(e,{slots:a,attrs:r})=>{const{next:d,prev:g}=a||{},i=t.inject("config",t.reactive(Object.assign({},$o))),s=t.inject("maxSlide",t.ref(1)),n=t.inject("minSlide",t.ref(1)),_=t.inject("currentSlide",t.ref(1)),f=t.inject("nav",{}),{dir:o,wrapAround:m,i18n:x}=i,c=o==="rtl",l=t.h("button",{type:"button",class:["carousel__prev",!m&&_.value<=n.value&&"carousel__prev--disabled",r==null?void 0:r.class],"aria-label":x.ariaPreviousSlide,onClick:f.prev},(g==null?void 0:g())||t.h(kb,{name:c?"arrowRight":"arrowLeft"})),u=t.h("button",{type:"button",class:["carousel__next",!m&&_.value>=s.value&&"carousel__next--disabled",r==null?void 0:r.class],"aria-label":x.ariaNextSlide,onClick:f.next},(d==null?void 0:d())||t.h(kb,{name:c?"arrowLeft":"arrowRight"}));return[l,u]};var fH=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const r=t.inject("config",t.reactive(Object.assign({},$o))),d=t.inject("currentSlide",t.ref(0)),g=t.inject("slidesToScroll",t.ref(0)),i=t.inject("isSliding",t.ref(!1)),s=()=>e.index===d.value,n=()=>e.index===d.value-1,_=()=>e.index===d.value+1,f=()=>{const o=Math.floor(g.value),m=Math.ceil(g.value+r.itemsToShow-1);return e.index>=o&&e.index<=m};return()=>{var o;return t.h("li",{style:{width:`${100/r.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":f(),"carousel__slide--active":s(),"carousel__slide--prev":n(),"carousel__slide--next":_(),"carousel__slide--sliding":i.value},"aria-hidden":!f()},(o=a.default)===null||o===void 0?void 0:o.call(a))}}});const Rc=(e,a)=>{const r=e.__vccOpts||e;for(const[d,g]of a)r[d]=g;return r},mH={__name:"MatchDay",props:{isLandingMode:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#183143"},numberColor:{type:String,default:"white"},numberFontFamily:{type:String,default:"sans-serif"},numberFontSize:{type:String,default:"14px"},textColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},textFontFamily:{type:String,default:"'Poppins-Regular', sans-serif"},textFontSize:{type:String,default:"8px"},bottomLineColor:{type:String,default:"#cbee6b"},selectedMatchDayBackgroundColor:{type:String,default:"#243b4c"},height:{type:String,default:"fit-content"},matchDay:{type:Object,default:()=>{}},matchDaySelected:{type:Object,default:()=>{}},componentWidth:{type:Number,default:0}},emits:["change-match-day"],setup(e,{emit:a}){const r=e,d=t.computed(()=>{const n={"background-color":r.backgroundColor,height:r.height};return r.matchDay.key===r.matchDaySelected.key&&(n["border-bottom"]=`solid 1px ${r.bottomLineColor}`,n["background-color"]=r.selectedMatchDayBackgroundColor),r.isLandingMode||(n["border-right"]="solid 1px rgba(255, 255, 255, 0.1)"),n}),g=t.computed(()=>({color:r.numberColor,"font-family":r.numberFontFamily,"font-size":r.numberFontSize})),i=t.computed(()=>({color:r.textColor,"font-family":r.textFontFamily,"font-size":r.textFontSize}));function s(n){a("click-match-day",n)}return(n,_)=>(t.openBlock(),t.createElementBlock("div",{class:"match-day",style:t.normalizeStyle({...d.value}),onClick:_[0]||(_[0]=f=>s(e.matchDay))},[t.createElementVNode("div",{class:"match-day__value",style:t.normalizeStyle(g.value)},t.toDisplayString(e.matchDay.valueText),5),Number.isNaN(e.matchDay.value)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:"match-day__text",style:t.normalizeStyle([e.isLandingMode?"margin-top:3px":"margin-top:4px",i.value])},t.toDisplayString(e.isLandingMode||e.componentWidth<=425?"JOR":"JORNADA"),5))],4))}},gH=Rc(mH,[["__scopeId","data-v-89459353"]]),yH={__name:"MatchDayPicker",props:{matchDays:{type:Array,default:()=>[]},isLandingMode:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#183143"},numberColor:{type:String,default:"white"},numberFontFamily:{type:String,default:"sans-serif"},numberFontSize:{type:String,default:"14px"},textColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"8px"},bottomLineColor:{type:String,default:"#cbee6b"},selectedMatchDayBackgroundColor:{type:String,default:"#243b4c"},height:{type:String,default:"fit-content"},itemsToShow:{type:Number,default:9},itemsToScroll:{type:Number,default:9},defaultMatchDayKey:{type:[String,null],default:""},componentWidth:{type:Number,default:0},closestMatchDay:{type:[Number,String],default:0}},emits:["change-match-day"],setup(e,{emit:a}){const r=e;t.useCssVars(f=>({"469bccd0":i.value,"469dfb50":s.value}));const d=t.ref(null),g=t.computed(()=>({itemsToShow:r.itemsToShow,itemsToScroll:r.itemsToScroll,snapAlign:"start"})),i=t.computed(()=>d.value.data.currentSlide.value==0?"none":"inline"),s=t.computed(()=>d.value.data.currentSlide.value==d.value.data.maxSlide.value?"none":"inline"),n=t.ref({});t.watch(()=>r.closestMatchDay,f=>{if(f){const o=r.matchDays.find(m=>m.key===f);_(o||r.matchDays[0],!0)}}),t.watch(()=>r.matchDays,f=>{if(!r.closestMatchDay&&f&&f.length){const o=f.find(m=>m.key===r.defaultMatchDayKey);n.value=o||f[0],a("change-match-day",n.value)}},{immediate:!0});function _(f,o=!1){o&&d.value.slideTo(f.index),n.value=f,a("change-match-day",n.value)}return(f,o)=>(t.openBlock(),t.createElementBlock("div",{class:"match-day-picker",style:t.normalizeStyle(e.isLandingMode?"border-top-left-radius: 9px; border-top-right-radius: 9px;":"margin-bottom:12px")},[t.createVNode(t.unref(dH),t.mergeProps(g.value,{ref_key:"matchDayPickerCarousel",ref:d}),{addons:t.withCtx(()=>[t.createVNode(t.unref(hH))]),default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.matchDays,m=>(t.openBlock(),t.createBlock(t.unref(fH),{key:m.key},{default:t.withCtx(()=>[t.createVNode(gH,t.mergeProps(r,{"match-day":m,"match-day-selected":n.value,"is-landing-mode":e.isLandingMode,"component-width":e.componentWidth,onClickMatchDay:_}),null,16,["match-day","match-day-selected","is-landing-mode","component-width"])]),_:2},1024))),128))]),_:1},16)],4))}},_H=Rc(yH,[["__scopeId","data-v-930cd509"]]);function ih(e,a=80){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-"}${a}/${e}.png`}function $k(e){if(typeof e=="string"){let a=e.replace("M","J ");return a=a.replace("PO1","CFI"),a=a.replace("PO2","CFV"),a=a.replace("PO3","SFI"),a=a.replace("PO4","SFV"),a=a.replace("PO5","FI"),a=a.replace("PO6","FV"),a}}function vH(e){let a="";return e.game_status!=4&&(a+="Finalizado"),(e.penalties_score_home_team!=0||e.penalties_score_visiting_team!=0)&&(a+=" - Penales "+e.penalties_score_home_team+" - "+e.penalties_score_visiting_team),a}const bH={class:"game-info__teams"},xH={class:"game-info__teams__team__logo"},wH=["src"],kH={class:"game-info__teams__detail"},CH={key:0,class:"game-info__teams__detail__pre-game"},EH={class:"game-info__teams__team__logo away"},TH=["src"],SH={key:0},AH={key:0},NH={key:1},BH={__name:"GameInfo",props:{isLandingMode:{type:Boolean,default:!1},isAcronymVisible:{type:Boolean,default:!1},isTelevisionVisible:{type:Boolean,default:!0},game:{type:Object,required:!0},colorPrimary:{type:String,default:"white"},colorSecondary:{type:String,default:"grey"},namesFontSize:{type:String,default:"12px"},timeFontSize:{type:String,default:"12px"},timeZoneFontSize:{type:String,default:"8px"},scoreFontSize:{type:String,default:"13px"},namesFontFamily:{type:String,default:"sans-serif"},scoreFontFamily:{type:String,default:"sans-serif"},additionalInfoFontFamily:{type:String,default:"sans-serif"},additionalInfoFontSize:{type:String,default:"9px"}},setup(e){const a=e,r=t.computed(()=>{let f=a.game.schedule.split(":");return f.pop(),f=f.join(":"),f}),d=t.computed(()=>{let f="120px";return(a.isLandingMode||a.isAcronymVisible)&&(f="70px"),{"min-width":f}}),g=t.computed(()=>({"font-size":a.namesFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary})),i=t.computed(()=>({"font-size":a.additionalInfoFontSize,"font-family":a.additionalInfoFontFamily,color:a.colorSecondary})),s=t.computed(()=>({"font-size":a.scoreFontSize,"font-family":a.scoreFontFamily,color:a.colorPrimary})),n=t.computed(()=>({"font-size":a.timeZoneFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary})),_=t.computed(()=>({"font-size":a.timeFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary}));return(f,o)=>(t.openBlock(),t.createElementBlock("div",{class:"game-info",style:t.normalizeStyle(e.isLandingMode?"gap:5px":"")},[t.createElementVNode("div",bH,[t.createElementVNode("div",{class:"game-info__teams__team",style:t.normalizeStyle(d.value)},[t.createElementVNode("div",{class:"game-info__teams__team__name",style:t.normalizeStyle(g.value)},t.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.home_team.acronym:e.game.home_team.colloquial_name),5),t.createElementVNode("div",xH,[t.createElementVNode("img",{src:t.unref(ih)(e.game.home_team.team_id),alt:""},null,8,wH)])],4),t.createElementVNode("div",kH,[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock("div",CH,[t.createElementVNode("div",null,[t.createElementVNode("span",{style:t.normalizeStyle(_.value)},t.toDisplayString(r.value),5),t.createTextVNode(),t.createElementVNode("span",{style:t.normalizeStyle(n.value)},"CST",4)])])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"game-info__teams__detail__score",style:t.normalizeStyle(s.value)},[t.createElementVNode("span",null,t.toDisplayString(e.game.score[0])+" - "+t.toDisplayString(e.game.score[1]),1)],4))]),t.createElementVNode("div",{class:"game-info__teams__team away",style:t.normalizeStyle(d.value)},[t.createElementVNode("div",EH,[t.createElementVNode("img",{src:t.unref(ih)(e.game.visiting_team.team_id),alt:""},null,8,TH)]),t.createElementVNode("div",{class:"game-info__teams__team__name",style:t.normalizeStyle(g.value)},t.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.visiting_team.acronym:e.game.visiting_team.colloquial_name),5)],4)]),t.createElementVNode("div",{class:"game-info__status",style:t.normalizeStyle([i.value,e.isLandingMode?"line-height: normal":""])},[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock("span",SH,[e.isTelevisionVisible?(t.openBlock(),t.createElementBlock("span",AH,t.toDisplayString(e.game.tv_stations.join(", ")),1)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",NH,t.toDisplayString(t.unref(vH)(e.game)),1))],4)],4))}},jk=Rc(BH,[["__scopeId","data-v-64bda814"]]),Uk=e=>(t.pushScopeId("data-v-8839c56d"),e=e(),t.popScopeId(),e),IH={class:"game-status"},MH={key:0,class:"game-status__day__live"},OH=Uk(()=>t.createElementVNode("span",null,"LIVE",-1)),PH=Uk(()=>t.createElementVNode("span",{class:"dot"},null,-1)),FH=[OH,PH],RH={key:0,class:"game-status__round"},zH={__name:"GameStatus",props:{isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},status:{type:Number,default:4},isLive:{type:Boolean,default:!1},dateTimeMillis:{type:Number,default:0},roundAbbreviation:{type:String,default:""},fontSize:{type:String,default:"10px"}},setup(e){const a=e,r=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],d=t.computed(()=>{let s="";if(a.dateTimeMillis){const n=new Date(a.dateTimeMillis);s=`${n.getDate()} ${r[n.getMonth()]}`}return s}),g=t.computed(()=>({"font-size":a.fontSize})),i=t.computed(()=>{let s=[];return a.isLive?s.push("live"):a.status!==1&&s.push("pre-match"),s});return(s,n)=>(t.openBlock(),t.createElementBlock("div",IH,[t.createElementVNode("div",{class:t.normalizeClass(["game-status__day",i.value]),style:t.normalizeStyle(g.value)},[e.isLive?(t.openBlock(),t.createElementBlock("div",MH,FH)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(d.value),1)],64))],6),e.isRoundMode?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",RH,t.toDisplayString(e.roundAbbreviation),1))]))}},Hk=Rc(zH,[["__scopeId","data-v-8839c56d"]]),zc={SHOW_GAME_EVENTS:"SHOW_GAME_EVENTS",PLAY_GOALS:"PLAY_GOALS",PLAY_RESUME:"PLAY_RESUME",NOTIFICATION:"NOTIFICATION",STATISTICS:"STATISTICS"},VH=e=>(t.pushScopeId("data-v-0d97b1a8"),e=e(),t.popScopeId(),e),LH={class:"actions"},DH={class:"actions__row"},$H=VH(()=>t.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.87471 3.35132C9.31653 3.35132 9.67471 3.70949 9.67471 4.15132V10.4531C9.67471 10.8949 9.31653 11.2531 8.87471 11.2531C8.43288 11.2531 8.07471 10.8949 8.07471 10.4531V4.15132C8.07471 3.70949 8.43288 3.35132 8.87471 3.35132Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.67549 0.199951C5.11732 0.199951 5.47549 0.558123 5.47549 0.999951V10.4526C5.47549 10.8944 5.11732 11.2526 4.67549 11.2526C4.23366 11.2526 3.87549 10.8944 3.87549 10.4526V0.999951C3.87549 0.558123 4.23366 0.199951 4.67549 0.199951Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.0002 5.45154C1.44202 5.45154 1.8002 5.80971 1.8002 6.25154V10.4527C1.8002 10.8945 1.44202 11.2527 1.0002 11.2527C0.558368 11.2527 0.200195 10.8945 0.200195 10.4527V6.25154C0.200195 5.80971 0.558368 5.45154 1.0002 5.45154Z",fill:"#EEEC6B"})],-1)),jH=[$H],UH={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},HH=["fill"],GH={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},WH=["fill"],qH={__name:"GameActionsLanding",props:{gameStatus:{type:Number,default:4},isLive:{type:Boolean,default:!1},hasVideo:{type:Boolean,default:!1},iconColor:{type:String,default:"#CBEE6B"},iconBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},iconBorderColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},showPlayButton:{type:Boolean,default:!1}},emits:["action"],setup(e,{emit:a}){const r=e,d=t.computed(()=>({backgroundColor:r.iconBackgroundColor,borderColor:r.iconBorderColor}));function g(i){a("action",i)}return(i,s)=>(t.openBlock(),t.createElementBlock("div",LH,[t.createElementVNode("div",DH,[t.createElementVNode("div",{class:"actions__button rounded",style:t.normalizeStyle(d.value),onClick:s[0]||(s[0]=n=>g(t.unref(zc).STATISTICS))},jH,4),e.showPlayButton&&e.hasVideo?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button rounded",style:t.normalizeStyle(d.value),onClick:s[1]||(s[1]=n=>g(t.unref(zc).PLAY_RESUME))},[(t.openBlock(),t.createElementBlock("svg",UH,[t.createElementVNode("path",{d:"M0.442694 7.9474C0.385489 7.90953 0.337676 7.85295 0.304408 7.78375C0.27114 7.71456 0.25368 7.63538 0.253908 7.55475V0.444134C0.253987 0.363779 0.271562 0.284951 0.304765 0.216032C0.337968 0.147113 0.385557 0.090677 0.442475 0.0527243C0.499393 0.0147716 0.563511 -0.00327964 0.628014 0.000489552C0.692517 0.00425874 0.754994 0.0297075 0.808803 0.0741304L5.09491 3.62986C5.14387 3.67036 5.18401 3.7253 5.21178 3.78978C5.23955 3.85426 5.25409 3.92628 5.25409 3.99944C5.25409 4.0726 5.23955 4.14462 5.21178 4.2091C5.18401 4.27358 5.14387 4.32852 5.09491 4.36902L0.808803 7.92559C0.755077 7.97011 0.692648 7.99565 0.628173 7.99949C0.563698 8.00333 0.499593 7.98533 0.442694 7.9474Z",fill:r.iconColor},null,8,HH)]))],4)):t.createCommentVNode("",!0),e.gameStatus===4444&&!e.isLive?(t.openBlock(),t.createElementBlock("div",{key:1,class:"actions__button",onClick:s[2]||(s[2]=n=>g(t.unref(zc).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",GH,[t.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:r.iconColor},null,8,WH)]))])):t.createCommentVNode("",!0)])]))}},YH=Rc(qH,[["__scopeId","data-v-0d97b1a8"]]),Cb=e=>(t.pushScopeId("data-v-7ec0f118"),e=e(),t.popScopeId(),e),ZH={class:"actions"},XH={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},KH=["fill"],JH={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},QH=["fill"],eG=Cb(()=>t.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.87471 3.35132C9.31653 3.35132 9.67471 3.70949 9.67471 4.15132V10.4531C9.67471 10.8949 9.31653 11.2531 8.87471 11.2531C8.43288 11.2531 8.07471 10.8949 8.07471 10.4531V4.15132C8.07471 3.70949 8.43288 3.35132 8.87471 3.35132Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.67549 0.199951C5.11732 0.199951 5.47549 0.558123 5.47549 0.999951V10.4526C5.47549 10.8944 5.11732 11.2526 4.67549 11.2526C4.23366 11.2526 3.87549 10.8944 3.87549 10.4526V0.999951C3.87549 0.558123 4.23366 0.199951 4.67549 0.199951Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.0002 5.45154C1.44202 5.45154 1.8002 5.80971 1.8002 6.25154V10.4527C1.8002 10.8945 1.44202 11.2527 1.0002 11.2527C0.558368 11.2527 0.200195 10.8945 0.200195 10.4527V6.25154C0.200195 5.80971 0.558368 5.45154 1.0002 5.45154Z",fill:"#EEEC6B"})],-1)),tG=[eG],aG={key:0,class:"actions__videos"},rG={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},nG=["fill"],iG={key:1,class:"actions__videos__thumbnails"},oG=Cb(()=>t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__goals"},null,-1)),sG=Cb(()=>t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__summary"},null,-1)),lG={height:24,width:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},cG=["stroke"],dG={__name:"GameActionsFull",props:{gameStatus:{type:Number,default:4},isLive:{type:Boolean,default:!1},hasVideo:{type:Boolean,default:!1},hasActions:{type:Boolean,default:!0},hasGoals:{type:Boolean,default:!0},areEventsVisible:{type:Boolean,default:!1},iconColor:{type:String,default:"#CBEE6B"},iconBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},iconBorderColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},showPlayButton:{type:Boolean,default:!1},arrowColor:{type:String,default:"white"},thumbnailFontFamily:{type:String,default:"sans-serif"},thumbnailFontSize:{type:String,default:"8px"},thumbnailColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:a}){const r=e,d=t.computed(()=>({backgroundColor:r.iconBackgroundColor,borderColor:r.iconBorderColor})),g=t.computed(()=>{const _=[];return r.componentWidth<540&&_.push("mobile"),_}),i=t.computed(()=>r.componentWidth>730),s=t.computed(()=>({color:r.thumbnailColor,fontFamily:r.thumbnailFontFamily,fontSize:r.thumbnailFontSize}));function n(_){a("action",_)}return(_,f)=>(t.openBlock(),t.createElementBlock("div",ZH,[t.createElementVNode("div",{class:t.normalizeClass(["actions__buttons",g.value])},[e.gameStatus===4444&&!e.isLive&&!i.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button",onClick:f[0]||(f[0]=o=>n(t.unref(zc).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",XH,[t.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:r.iconColor},null,8,KH)]))])):t.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo&&!i.value?(t.openBlock(),t.createElementBlock("div",{key:1,class:"actions__button rounded",style:t.normalizeStyle(d.value),onClick:f[1]||(f[1]=o=>n(t.unref(zc).PLAY_RESUME))},[(t.openBlock(),t.createElementBlock("svg",JH,[t.createElementVNode("path",{d:"M0.442694 7.9474C0.385489 7.90953 0.337676 7.85295 0.304408 7.78375C0.27114 7.71456 0.25368 7.63538 0.253908 7.55475V0.444134C0.253987 0.363779 0.271562 0.284951 0.304765 0.216032C0.337968 0.147113 0.385557 0.090677 0.442475 0.0527243C0.499393 0.0147716 0.563511 -0.00327964 0.628014 0.000489552C0.692517 0.00425874 0.754994 0.0297075 0.808803 0.0741304L5.09491 3.62986C5.14387 3.67036 5.18401 3.7253 5.21178 3.78978C5.23955 3.85426 5.25409 3.92628 5.25409 3.99944C5.25409 4.0726 5.23955 4.14462 5.21178 4.2091C5.18401 4.27358 5.14387 4.32852 5.09491 4.36902L0.808803 7.92559C0.755077 7.97011 0.692648 7.99565 0.628173 7.99949C0.563698 8.00333 0.499593 7.98533 0.442694 7.9474Z",fill:r.iconColor},null,8,QH)]))],4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"actions__button rounded",style:t.normalizeStyle(d.value),onClick:f[2]||(f[2]=o=>n(t.unref(zc).STATISTICS))},tG,4)],2),i.value?(t.openBlock(),t.createElementBlock("div",aG,[e.gameStatus===4444&&!e.isLive?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button",onClick:f[3]||(f[3]=o=>n(t.unref(zc).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",rG,[t.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:r.iconColor},null,8,nG)]))])):t.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo?(t.openBlock(),t.createElementBlock("div",iG,[e.hasGoals?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__videos__thumbnails__thumbnail",onClick:f[4]||(f[4]=o=>n(t.unref(zc).PLAY_GOALS))},[oG,t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:t.normalizeStyle(s.value)}," Goles ",4)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:f[5]||(f[5]=o=>n(t.unref(zc).PLAY_RESUME))},[sG,t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:t.normalizeStyle(s.value)}," Resumen ",4)])])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),(e.gameStatus!==4||e.isLive)&&e.hasActions?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["actions__button expand",{"rotated-180":e.areEventsVisible,mobile:e.componentWidth<540}]),onClick:f[6]||(f[6]=o=>n(t.unref(zc).SHOW_GAME_EVENTS))},[(t.openBlock(),t.createElementBlock("svg",lG,[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,cG)]))],2)):(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(["actions__button expand",{"rotated-180":!1,mobile:e.componentWidth<540}])},null,2))]))}},uG=Rc(dG,[["__scopeId","data-v-7ec0f118"]]),$1=e=>(t.pushScopeId("data-v-2a9aee8c"),e=e(),t.popScopeId(),e),pG={class:"row-landing__game-status"},hG={class:"row-landing__game-actions"},fG={class:"row-full__game-status"},mG={class:"row-full__game-info"},gG={key:0},yG={class:"row-full__game-actions"},_G={class:"game-events-container"},vG=$1(()=>t.createElementVNode("div",{class:"separator"},null,-1)),bG=$1(()=>t.createElementVNode("div",null,null,-1)),xG={class:"game-events__data"},wG={class:"game-events__data__team"},kG=["src"],CG={class:"game-events__data__team__event__text"},EG={class:"game-events__data__team away"},TG={class:"game-events__data__team__event__text"},SG=["src"],AG=$1(()=>t.createElementVNode("div",null,null,-1)),NG=$1(()=>t.createElementVNode("div",null,null,-1)),BG={__name:"CalendarRow",props:{teamId:{type:Number,default:0},showVideos:{type:Number,default:0},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},game:{type:Object,required:!0},height:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#172531"},showPlayButton:{type:Boolean,default:!1},componentWidth:{type:Number,default:400,validator(e){return e>0}},televisionFontSize:{type:String,default:"12px"},televisionFontFamily:{type:String,default:"sans-serif"},televisionColor:{type:String,default:"rgba(255, 255, 255, 0.5)"}},emits:["action"],setup(e,{emit:a}){const r=e,d={GOAL:{}.GAME_EVENTS_ICONS_GOAL||"/icn-gol.svg",RED_CARD:{}.GAME_EVENTS_ICONS_RED_CARD||"/icn-expulsion.svg",YELLOW_CARD:{}.GAME_EVENTS_ICONS_YELLOW_CARD||"/icn-amarilla.svg"},g=t.ref(!1),i=t.ref(!1),s=t.computed(()=>{const p={homeTeam:[],awayTeam:[]};return r.game&&r.game.game_status!==4&&!r.game.is_live&&r.game.minutes&&(p.homeTeam.push(...l(r.game.minutes.home_goals_minutes,d.GOAL)),p.homeTeam.push(...l(r.game.minutes.home_red_cards_minutes,d.RED_CARD)),p.homeTeam.push(...l(r.game.minutes.home_yellow_cards_minutes,d.YELLOW_CARD)),p.awayTeam.push(...l(r.game.minutes.visiting_goals_minutes,d.GOAL)),p.awayTeam.push(...l(r.game.minutes.away_red_cards_minutes,d.RED_CARD)),p.awayTeam.push(...l(r.game.minutes.away_yellow_cards_minutes,d.YELLOW_CARD))),p}),n=t.computed(()=>{const p=s.value.homeTeam.length,h=s.value.awayTeam.length;return p+h>0}),_=t.computed(()=>{const p=r.game.score[0],h=r.game.score[1];return p>0||h>0}),f=t.computed(()=>({"background-color":r.backgroundColor})),o=t.computed(()=>({height:r.height})),m=t.computed(()=>{const p={game:[],events:[]};return r.componentWidth<500?(p.events.push("break-point-3"),p.game.push("break-point-2")):r.componentWidth<730?(p.game.push("break-point-2"),p.events.push("break-point-2")):r.componentWidth<910&&(p.game.push("break-point-1"),p.events.push("break-point-1")),p}),x=t.computed(()=>({isLandingMode:r.isLandingMode,game:r.game,colorPrimary:"#fff",colorSecondary:"#fff",namesFontSize:"12px",timeFontSize:"12px",timeZoneFontSize:"8px",scoreFontSize:"13px",namesFontFamily:"sans-serif",scoreFontFamily:"sans-serif",additionalInfoFontFamily:"sans-serif",additionalInfoFontSize:"9px"})),c=t.computed(()=>({"font-size":r.televisionFontSize,"font-family":r.televisionFontFamily,color:r.televisionColor}));t.watch(()=>r.componentWidth,p=>{i.value=p<910});function l(p,h){return p.map(y=>({iconUrl:h,text:y}))}function u(p){p===zc.SHOW_GAME_EVENTS?g.value=!g.value:a("action",{action:p,game:r.game})}return(p,h)=>e.isLandingMode?(t.openBlock(),t.createElementBlock("div",{key:0,class:"row-landing",style:t.normalizeStyle(f.value)},[t.createVNode(jk,{game:e.game,"is-landing-mode":e.isLandingMode},null,8,["game","is-landing-mode"]),t.createElementVNode("div",pG,[t.createVNode(Hk,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":t.unref($k)(e.game.matchday_abbreviation),"is-landing-mode":e.isLandingMode,"is-round-mode":e.isRoundMode,"font-size":"10px"},null,8,["status","is-live","date-time-millis","round-abbreviation","is-landing-mode","is-round-mode"])]),t.createElementVNode("div",hG,[t.createVNode(YH,{"is-live":!!e.game.is_live,"has-video":e.showVideos==0||e.showVideos==1&&e.teamId==e.game.home_team.team_id?!!e.game.has_video:!1,"game-status":e.game.game_status,"show-play-button":!0,onAction:u},null,8,["is-live","has-video","game-status"])])],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"row-full-container",style:t.normalizeStyle(f.value)},[t.createElementVNode("div",{class:t.normalizeClass(["row-full",m.value.game]),style:t.normalizeStyle(o.value)},[t.createElementVNode("div",fG,[t.createVNode(Hk,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":t.unref($k)(e.game.matchday_abbreviation),"is-landing-mode":e.isLandingMode,"is-round-mode":e.isRoundMode,"font-size":"10px"},null,8,["status","is-live","date-time-millis","round-abbreviation","is-landing-mode","is-round-mode"])]),t.createElementVNode("div",mG,[t.createVNode(jk,t.mergeProps(x.value,{"is-television-visible":i.value,game:e.game,"is-landing-mode":e.isLandingMode,"is-acronym-visible":e.componentWidth<540}),null,16,["is-television-visible","game","is-landing-mode","is-acronym-visible"])]),e.componentWidth>=910?(t.openBlock(),t.createElementBlock("div",{key:0,class:"row-full__television",style:t.normalizeStyle(c.value)},[!i.value&&(e.game.game_status===4||e.game.is_live)?(t.openBlock(),t.createElementBlock("span",gG,t.toDisplayString(e.game.tv_stations.join(", ")),1)):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",yG,[t.createVNode(uG,{"is-live":!!e.game.is_live,"has-video":!!e.game.has_video,"has-actions":n.value,"has-goals":_.value,"game-status":e.game.game_status,"show-play-button":!0,"are-events-visible":g.value,"component-width":e.componentWidth,onAction:u},null,8,["is-live","has-video","has-actions","has-goals","game-status","are-events-visible","component-width"])])],6),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",_G,[vG,t.createElementVNode("div",{class:t.normalizeClass(["game-events",m.value.events])},[bG,t.createElementVNode("div",xG,[t.createElementVNode("div",wG,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value.homeTeam,(y,b)=>(t.openBlock(),t.createElementBlock("div",{key:`h${b}`,class:"game-events__data__team__event"},[t.createElementVNode("img",{src:y.iconUrl},null,8,kG),t.createElementVNode("div",CG,t.toDisplayString(y.text),1)]))),128))]),t.createElementVNode("div",EG,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value.awayTeam,(y,b)=>(t.openBlock(),t.createElementBlock("div",{key:`a${b}`,class:"game-events__data__team__event"},[t.createElementVNode("div",TG,t.toDisplayString(y.text),1),t.createElementVNode("img",{src:y.iconUrl},null,8,SG)]))),128))])]),AG,NG],2)],512),[[t.vShow,g.value]])]),_:1})],4))}},Gk=Rc(BG,[["__scopeId","data-v-2a9aee8c"]]),IG={class:"calendar-table"},MG={__name:"CalendarTable",props:{teamId:{type:Number,default:0},showVideos:{type:Number,default:0},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},gamesPerPage:{type:Array,default:()=>[]},rowHeight:{type:String,default:"fit-content"},oddRowColor:{type:String,default:"#172531"},evenRowColor:{type:String,default:"#0D1D29"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:a}){const r=e;function d(i){return i%2===0?r.evenRowColor:r.oddRowColor}function g(i){a("action",i)}return(i,s)=>(t.openBlock(),t.createElementBlock("div",IG,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gamesPerPage,(n,_)=>(t.openBlock(),t.createBlock(Gk,{key:n.game_id,game:n,"team-id":e.teamId,"show-videos":e.showVideos,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":d(_),"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:g},null,8,["game","team-id","show-videos","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))}},OG=Rc(MG,[["__scopeId","data-v-ebabdc0c"]]),PG={class:"calendar-by-team"},FG={class:"playing-as-picker"},RG={class:"calendar-by-team__page"},zG={__name:"CalendarTableByTeam",props:{showVideos:{type:Number,default:0},teamId:{type:Number,default:0},isPaginationVisible:{type:Boolean,default:!0},gamesPages:{type:Map,default:()=>new Map},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},rowHeight:{type:String,default:"fit-content"},nameRowColor:{type:String,default:"#172531"},gameRowColor:{type:String,default:"#0D1D29"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:a}){const r=e,d=t.ref(0),g=t.computed(()=>{let _=[];if(r.gamesPages.size>0){const f=Array.from(r.gamesPages.entries()).reduce((o,[m,x])=>{const c=Number(m),l=Number.isNaN(c)?m:`Jornada ${c<10?"0":""}${c}`,u=x.reduce((p,h)=>(p.push(...h),p),[]).filter(p=>d.value===0||d.value===1&&p.visiting_team.team_id===r.teamId?!0:d.value===2&&p.home_team.team_id===r.teamId);return u.length>0&&o.push({roundName:l,games:u}),o},[]);_.push(f)}return _});function i(_){a("action",_)}function s(_){document.querySelector("#opc0").classList.remove("selected"),document.querySelector("#opc1").classList.remove("selected"),document.querySelector("#opc2").classList.remove("selected"),d.value=_,document.querySelector("#opc"+_).classList.add("selected")}function n(_){let f=_;switch(_){case"PI1":f="Play In 1";break;case"PI2":f="Play In 2";break;case"R1":f="Repechaje";break;case"CFI":f="Cuartos de final - Ida";break;case"CFV":f="Cuartos de final - Vuelta";break;case"SFI":f="Semifinal - Ida";break;case"SFV":f="Semifinal - Vuelta";break;case"FI":f="Final - Ida";break;case"FV":f="Final - Vuelta";break}return f}return(_,f)=>(t.openBlock(),t.createElementBlock("div",PG,[t.createElementVNode("div",FG,[t.createElementVNode("div",{class:"playing-as-picker__type selected",id:"opc0",onClick:f[0]||(f[0]=o=>s(0))}," Todas "),t.createElementVNode("div",{class:"playing-as-picker__type",id:"opc1",onClick:f[1]||(f[1]=o=>s(1))},"Visitante"),t.createElementVNode("div",{class:"playing-as-picker__type",id:"opc2",onClick:f[2]||(f[2]=o=>s(2))},"Local")]),t.createVNode(t.unref(Vk),{"is-pagination-visible":e.isPaginationVisible,items:g.value},{default:t.withCtx(({item:o})=>[t.createElementVNode("div",RG,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o,(m,x)=>(t.openBlock(),t.createElementBlock("div",{key:x,class:"calendar-by-team__page__round"},[t.createElementVNode("div",{class:"calendar-by-team__page__round__round-name",style:t.normalizeStyle([{color:"white"},e.componentWidth<=425?"padding: 5px 10px":""])},t.toDisplayString(n(m.roundName)),5),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.games,c=>(t.openBlock(),t.createBlock(Gk,{key:c.game_id,game:c,"team-id":e.teamId,"show-videos":e.showVideos,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":e.gameRowColor,"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:i},null,8,["game","team-id","show-videos","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))),128))])]),_:1},8,["is-pagination-visible","items"])]))}},VG=Rc(zG,[["__scopeId","data-v-d93dcb09"]]),LG="_image62Icon_1lvdf_3",DG="_imgChivasIcon_1lvdf_21",$G="_nameDesktop_1lvdf_35",jG="_nameMobile_1lvdf_61",UG="_homeTeam_1lvdf_85",HG="_sbado16De_1lvdf_107",GG="_gameDate_1lvdf_125",WG="_sab16092023_1lvdf_133",qG="_div_1lvdf_159",YG="_divscore_1lvdf_177",ZG="_cst_1lvdf_197",XG="_hour_1lvdf_215",KG="_score_1lvdf_217",JG="_chivasTvCanal_1lvdf_239",QG="_gameStatus_1lvdf_263",eW="_matchInfo_1lvdf_285",tW="_image62Icon1_1lvdf_311",aW="_name_1lvdf_35",rW="_imgAtlasIcon_1lvdf_355",nW="_name1_1lvdf_369",iW="_awayTeam_1lvdf_393",oW="_matchCard_1lvdf_415",sW={image62Icon:LG,imgChivasIcon:DG,nameDesktop:$G,nameMobile:jG,homeTeam:UG,sbado16De:HG,gameDate:GG,sab16092023:WG,div:qG,divscore:YG,cst:ZG,hour:XG,score:KG,chivasTvCanal:JG,gameStatus:QG,matchInfo:eW,image62Icon1:tW,name:aW,imgAtlasIcon:rW,name1:nW,awayTeam:iW,matchCard:oW},lW=["src"],cW=["src"],dW={key:0},uW=["src"],pW=["src"],hW={__name:"CardPreMatch",props:{game:{type:Object,default:()=>{}}},setup(e){const a=e,r=t.computed(()=>{const g={...a.game};return g.gameSchedule=a.game.schedule.split(":"),g.gameSchedule.pop(),g.gameSchedule=g.gameSchedule.join(":"),g});function d(g,i){const s=new Date(g);if(i==1){const n=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],_=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"];return`${n[s.getDay()]} ${s.getDate()} de ${_[s.getMonth()]}`}else return`${s.getDate()}-${s.getMonth()+1}-${s.getFullYear()}`}return(g,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(g.$style.matchCard)},[t.createElementVNode("div",{class:t.normalizeClass(g.$style.homeTeam),id:"container-home-team"},[t.createElementVNode("img",{class:t.normalizeClass(g.$style.image62Icon),alt:"",src:t.unref(ih)(r.value.home_team.team_id,150)},null,10,lW),t.createElementVNode("img",{class:t.normalizeClass(g.$style.imgChivasIcon),alt:"",src:t.unref(ih)(r.value.home_team.team_id)},null,10,cW),t.createElementVNode("h3",{class:t.normalizeClass(g.$style.nameDesktop),id:"team-name"},t.toDisplayString(r.value.home_team.colloquial_name),3),t.createElementVNode("h3",{class:t.normalizeClass(g.$style.nameMobile),id:"team-name"},t.toDisplayString(r.value.home_team.acronym),3)],2),r.value.game_status==4?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(g.$style.matchInfo),id:"container-match-info"},[t.createElementVNode("div",{class:t.normalizeClass(g.$style.sbado16De)},t.toDisplayString(d(r.value.date_time_utc,1)),3),t.createElementVNode("div",{class:t.normalizeClass(g.$style.sab16092023)},t.toDisplayString(d(r.value.date_time_utc,0)),3),t.createElementVNode("div",{class:t.normalizeClass(g.$style.hour)},[t.createElementVNode("div",{class:t.normalizeClass(g.$style.div)},t.toDisplayString(r.value.gameSchedule),3),t.createElementVNode("div",{class:t.normalizeClass(g.$style.cst)},"CST",2)],2),t.createElementVNode("div",{class:t.normalizeClass(g.$style.chivasTvCanal)},t.toDisplayString(r.value.tv_stations.join(", ")),3)],2)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(g.$style.matchInfo),id:"container-match-info"},[t.createElementVNode("div",{class:t.normalizeClass([g.$style.sbado16De,g.$style.gameDate])},t.toDisplayString(d(r.value.date_time_utc,1)),3),t.createElementVNode("div",{class:t.normalizeClass([g.$style.sab16092023,g.$style.gameDate])},t.toDisplayString(d(r.value.date_time_utc,0)),3),t.createElementVNode("div",{class:t.normalizeClass(g.$style.score)},[t.createElementVNode("div",{class:t.normalizeClass(g.$style.divscore)},t.toDisplayString(r.value.score.join(" - ")),3)],2),t.createElementVNode("div",{class:t.normalizeClass(g.$style.gameStatus)},[t.createTextVNode(" Finalizado "),r.value.penalties_score_home_team!=0||r.value.penalties_score_visiting_team!=0?(t.openBlock(),t.createElementBlock("span",dW," - Penales "+t.toDisplayString(r.value.penalties_score_home_team)+" - "+t.toDisplayString(r.value.penalties_score_visiting_team),1)):t.createCommentVNode("",!0)],2)],2)),t.createElementVNode("div",{class:t.normalizeClass(g.$style.awayTeam),id:"container-away-team"},[t.createElementVNode("img",{class:t.normalizeClass(g.$style.image62Icon1),alt:"",src:t.unref(ih)(r.value.visiting_team.team_id,150)},null,10,uW),t.createElementVNode("h3",{class:t.normalizeClass(g.$style.name),id:"team-name"},t.toDisplayString(r.value.visiting_team.colloquial_name),3),t.createElementVNode("img",{class:t.normalizeClass(g.$style.imgAtlasIcon),alt:"",src:t.unref(ih)(r.value.visiting_team.team_id)},null,10,pW),t.createElementVNode("h3",{class:t.normalizeClass(g.$style.name1),id:"team-name"},t.toDisplayString(r.value.visiting_team.acronym),3)],2)],2))}},fW={$style:sW},mW=Rc(hW,[["__cssModules",fW]]),gW={class:"calendar-by-game__carousel"},yW={__name:"GSC-CalendarByGame",props:{showVideos:{type:Number,default:0},height:{type:String,default:"fit-content"},width:{type:String,default:"100%"},rowHeight:{type:String,default:"fit-content"},oddRowColor:{type:String,default:"#172531"},evenRowColor:{type:String,default:"#0D1D29"},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},isRoundPickerVisible:{type:Boolean,default:!0},isPaginationVisible:{type:Boolean,default:!0},awaitForSeasons:{type:Boolean,default:!1},seasons:{type:Array,default:()=>[]},isCup:{type:Boolean,default:!1},isCupLegacy:{type:Boolean,default:!1},token:{type:String,default:""},pagesWithGames:{type:Array,default:()=>[]},maxGamesToShow:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},areRoundsVisible:{type:Boolean,default:!0},gamesPerMatchDay:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},itemsToShow:{type:Number,default:9},itemsToScroll:{type:Number,default:9},games:{type:Array,default:()=>null},teamId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},avoidTeamIdFilter:{type:Boolean,default:!1},areGamesCarouselType:{type:Boolean,default:!1},defaultGameId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},userTeamId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},sortCalendar:{type:Boolean,default:!0}},emits:["tournament-selected","change-teams","change-round","change-game-carousel","action"],setup(e,{emit:a}){const r=e;let d=null;const g=t.ref([]),i=t.ref({}),s=t.ref(0),n=t.ref(null),_=t.ref({}),f=t.ref(new Map),o=t.ref(!1),m=t.ref(null),x=t.ref(null),c=t.ref(null),l=t.computed(()=>r.isCup),u=t.computed(()=>r.isCupLegacy),p=t.computed(()=>({height:r.height,width:r.width})),h=t.computed(()=>r.games?I(r.games):f.value.get(_.value.key)||[]),y=t.ref(0),b=t.ref("1"),v=t.ref([]),w=t.ref([]),C=t.computed(()=>w.value&&w.value.length?N(i.value):k(i.value));t.watch(()=>C.value,L=>{y.value=v.value.findIndex(j=>j===L),b.value=L}),t.watch(()=>r.seasons,L=>{L&&L.length&&(o.value=!0,g.value=L.map(j=>j.id),A(L,!0))},{immediate:!0,deep:!0});function k(L){const j=Object.entries(Object.entries(L).reduce((G,[X,H])=>(G[X]=[],H.forEach(Y=>{Y.games.forEach(Z=>{const le=new Date(Z.date_time_utc).getTime()+66e5;G[X].push(le)})}),G),{}));if(!j.length)return"1";const W=new Date().getTime(),$=j.reduce((G,[X,H])=>{let Y=null;return H.forEach(Z=>{const le=Z-W;le>=0&&(Y===null||le<Y)&&(Y=le)}),Y&&(G.shortestTime===null||Y<G.shortestTime)&&(G.round=X,G.shortestTime=Y),G},{round:"",shortestTime:null});return $.shortestTime!==null?$.round:j[j.length-1][0]}function N(L){let j=1;if(w.value.length){const W=w.value[0];for(const[$,G]of Object.entries(L))for(const X of G)if(X.games.find(H=>H.game_id===W.game_id))return $}return j}t.watch(()=>r.teamId,()=>{B()},{immediate:!0});async function E(L,j,W=""){let $=W;try{const G={};r.token&&(G.Authorization=r.token),$||($="https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",L.forEach((Y,Z)=>{$+=`${Z===0?"":"&"}seasons=${Y}`}));const{data:{data:X,teams:H}}=await Pk.get($,{headers:G});return{seasonsAndGames:X,seasonsAndTeams:H}}catch(G){if(j>0)return E(L,j-1,$);throw new Error(G)}}function S(L){for(const j of L)if(!g.value.includes(j.season_id))return!0;return!1}async function A(L,j){try{i.value={};let W=0;const{seasonsAndGames:$,seasonsAndTeams:G}=await E(L.map(H=>H.id),3);if(j&&S($))return;$.forEach(H=>{const{type:Y}=L.find(Z=>Z.id===H.season_id);H.type=Y,H.games.forEach(Z=>{Z.season_id=H.season_id}),Y===0&&(W=H.season_id)}),m.value={seasonsGames:$};const{teams:X}=G.find(H=>H.season_id===W);x.value=X,a("change-teams",X),B()}catch(W){throw new Error(W)}}function B(){if(!x.value)return;w.value=[];const L=m.value&&m.value.seasonsGames?m.value.seasonsGames.map(j=>{const W=j.games.reduce(($,G)=>{const X={...G};return X.dateTimeMillis=new Date(X.date_time_utc).valueOf(),X.home_team=x.value.find(H=>H.team_id===G.home_team),X.visiting_team=x.value.find(H=>H.team_id===G.visiting_team),r.teamId&&X.home_team.team_id!==r.teamId&&X.visiting_team.team_id!==r.teamId||($[G.matchday_abbreviation]?$[G.matchday_abbreviation][G.game_status===3?"canceled":G.date]?$[G.matchday_abbreviation][G.game_status===3?"canceled":G.date].push(X):$[G.matchday_abbreviation][G.game_status===3?"canceled":G.date]=[X]:$[G.matchday_abbreviation]={[G.game_status===3?"canceled":G.date]:[X]},r.userTeamId&&X.game_status===4&&(X.home_team.team_id===r.userTeamId||X.visiting_team.team_id===r.userTeamId)&&w.value.push(X)),$},{});for(let[$,G]of Object.entries(W))W[$]=Object.entries(G).map(([X,H])=>({date:X,games:H.sort((Y,Z)=>Y.dateTimeMillis-Z.dateTimeMillis)})),W[$].sort((X,H)=>X.date<H.date?-1:X.date>H.date?1:0);return{type:j.type,weight:j.type===0?0:j.type===2?1:2,schedule:W}}):[];L.sort((j,W)=>j.weight-W.weight),i.value=L.reduce((j,W)=>{for(const[$,G]of Object.entries(W.schedule))if(W.type===0)if(l.value){const X=$.replace("M",""),H=X;u.value?j[aH[X]||H]=G:j[tH[$]||H]=G}else j[Number($.replace("M","")).toString()]=G;else W.type===2?$.charAt(1)=="I"?j[`PI${Number($.replace("PI",""))}`]=G:j[`R${Number($.replace("PO",""))}`]=G:W.type===1&&(j[eH[$]]=G);return j},{}),f.value=new Map,v.value=Array.from(Object.entries(i.value).reduce((j,[W,$],G)=>{const X=Number(W);let H="";Number.isNaN(X)?H=W:H=X<10?`0${X}`:W,j.set(W,{key:W,value:X,valueText:H,index:G});const Y=$.reduce((le,ie)=>(ie.games.forEach(ne=>{ne.game_id===r.defaultGameId&&(c.value=W),ne.roundAbbreviation=Number.isNaN(X)?X:`J ${X}`}),le=le.concat(ie.games),le),[]),Z=I(Y);return f.value.set(W,Z),j},new Map).values())}function I(L){const j=[];if(r.gamesPerMatchDay>0){let W=[];L.forEach(($,G)=>{W.push($),(G+1)%r.gamesPerMatchDay===0&&(j.push([...W]),W=[])}),W.length&&j.push([...W])}else j.push(L);return j}async function O(L){try{const{data:j}=await Pk.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments");return j}catch(j){if(L>0)return O(L-1);throw new Error(j)}}function T(){if(window.ResizeObserver)d=new ResizeObserver(()=>{s.value=n.value.clientWidth}),d.observe(n.value);else throw new Error("Resize observer not supported!")}function R(L){_.value=L,a("change-round",L)}function M(L){r.areGamesCarouselType&&a("change-game-carousel",L.selectedItem)}function P(L){a("action",L),V(L)}function V(L){const j="PLAY_RESUME",W="PLAY_GOALS",$=[607,608,12,55,54,35,14,52,15,53,466,477],G=[12,55,"35_r","54_r"],{game_id:X,season_id:H}=L.game;let Y={seasonId:H,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:1,gameIds:[X],playerIds:[],goalkeeperIds:[],categoryIds:[],teamId:0,matchResult:[],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:""},objectPlaySync:null};L.action===j?(Y.categoryIds=$,Y.advancedFilter.playListTitle="Resumen",a("openmedia",Y)):L.action===W&&(Y.categoryIds=G,Y.advancedFilter.playListTitle="Goles",a("openmedia",Y))}async function D(){try{if(!r.awaitForSeasons&&!r.games){const L=(await O(3)).find($=>$._id===1),j=L.seasons[0],W=[{id:j.id,type:j.type}];L&&L.tournament&&a("tournament-selected",L.tournament),j.related_seasons&&j.related_seasons.length&&W.push(...j.related_seasons.map($=>({id:$.id,type:$.type}))),await A(W,!1)}}catch(L){throw new Error(L)}}return t.onMounted(()=>{T()}),D(),(L,j)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"calendarByGame",ref:n,class:"calendar-by-game",style:t.normalizeStyle(p.value)},[e.teamId&&!e.avoidTeamIdFilter?(t.openBlock(),t.createBlock(VG,{key:0,"full-tournament-schedule":i.value,"team-id":e.teamId,"show-videos":e.showVideos,"is-landing-mode":!1,"row-height":e.rowHeight,"component-width":s.value,"games-pages":f.value,"is-pagination-visible":e.isPaginationVisible,"is-round-mode":e.isRoundMode,onAction:P},null,8,["full-tournament-schedule","team-id","show-videos","row-height","component-width","games-pages","is-pagination-visible","is-round-mode"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.areRoundsVisible&&v.value?(t.openBlock(),t.createBlock(_H,{key:0,"match-days":v.value,"is-landing-mode":e.isLandingMode,height:"48px","items-to-show":e.itemsToShow,"items-to-scroll":e.itemsToScroll,"component-width":s.value,"default-match-day-key":c.value,"closest-match-day":e.sortCalendar?C.value:"",onChangeMatchDay:R},null,8,["match-days","is-landing-mode","items-to-show","items-to-scroll","component-width","default-match-day-key","closest-match-day"])):t.createCommentVNode("",!0),t.createElementVNode("div",gW,[h.value?(t.openBlock(),t.createBlock(t.unref(Vk),{key:0,"is-pagination-visible":e.isPaginationVisible&&!e.areGamesCarouselType,items:e.areGamesCarouselType?h.value[0]:h.value,"are-navigation-arrows-visible":e.areGamesCarouselType?!e.areGamesCarouselType:e.isPaginationVisible,"wrap-around":e.areGamesCarouselType,"items-to-show":e.areGamesCarouselType?1.2:1,"is-main-slide-priority":e.areGamesCarouselType,"are-slides-arrows-visible":e.areGamesCarouselType,"slides-arrows-left-and-right":e.areGamesCarouselType?"30px":"0px","default-item-by-prop":e.areGamesCarouselType?{propName:"game_id",value:e.defaultGameId}:{},onInput:M},{default:t.withCtx(({item:W})=>[e.areGamesCarouselType?(t.openBlock(),t.createBlock(mW,{key:0,game:W},null,8,["game"])):(t.openBlock(),t.createBlock(OG,{key:1,"team-id":e.teamId,"show-videos":e.showVideos,"games-per-page":W,"is-landing-mode":e.isLandingMode,"row-height":e.rowHeight,"component-width":s.value,"is-round-mode":e.isRoundMode,onAction:P},null,8,["team-id","show-videos","games-per-page","is-landing-mode","row-height","component-width","is-round-mode"]))]),_:1},8,["is-pagination-visible","items","are-navigation-arrows-visible","wrap-around","items-to-show","is-main-slide-priority","are-slides-arrows-visible","slides-arrows-left-and-right","default-item-by-prop"])):t.createCommentVNode("",!0)])],64))],4))}},_W=Rc(yW,[["__scopeId","data-v-b1a7d457"]]);function vW(){return Wk().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Wk(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const bW=typeof Proxy=="function",xW="devtools-plugin:setup",wW="plugin:settings:set";let oh,Eb;function kW(){var e;return oh!==void 0||(typeof window<"u"&&window.performance?(oh=!0,Eb=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(oh=!0,Eb=globalThis.perf_hooks.performance):oh=!1),oh}function CW(){return kW()?Eb.now():Date.now()}class EW{constructor(a,r){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=a,this.hook=r;const d={};if(a.settings)for(const s in a.settings){const n=a.settings[s];d[s]=n.defaultValue}const g=`__vue-devtools-plugin-settings__${a.id}`;let i=Object.assign({},d);try{const s=localStorage.getItem(g),n=JSON.parse(s);Object.assign(i,n)}catch{}this.fallbacks={getSettings(){return i},setSettings(s){try{localStorage.setItem(g,JSON.stringify(s))}catch{}i=s},now(){return CW()}},r&&r.on(wW,(s,n)=>{s===this.plugin.id&&this.fallbacks.setSettings(n)}),this.proxiedOn=new Proxy({},{get:(s,n)=>this.target?this.target.on[n]:(..._)=>{this.onQueue.push({method:n,args:_})}}),this.proxiedTarget=new Proxy({},{get:(s,n)=>this.target?this.target[n]:n==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(n)?(..._)=>(this.targetQueue.push({method:n,args:_,resolve:()=>{}}),this.fallbacks[n](..._)):(..._)=>new Promise(f=>{this.targetQueue.push({method:n,args:_,resolve:f})})})}async setRealTarget(a){this.target=a;for(const r of this.onQueue)this.target.on[r.method](...r.args);for(const r of this.targetQueue)r.resolve(await this.target[r.method](...r.args))}}function TW(e,a){const r=e,d=Wk(),g=vW(),i=bW&&r.enableEarlyProxy;if(g&&(d.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!i))g.emit(xW,e,a);else{const s=i?new EW(r,g):null;(d.__VUE_DEVTOOLS_PLUGINS__=d.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:r,setupFn:a,proxy:s}),s&&a(s.proxiedTarget)}}/*!
|
|
15
15
|
* vuex v4.0.2
|
|
16
16
|
* (c) 2021 Evan You
|
|
17
17
|
* @license MIT
|
|
18
18
|
*/var qk="store";function Tb(e){return e===void 0&&(e=null),t.inject(e!==null?e:qk)}function bp(e,a){Object.keys(e).forEach(function(r){return a(e[r],r)})}function Yk(e){return e!==null&&typeof e=="object"}function SW(e){return e&&typeof e.then=="function"}function Vc(e,a){if(!e)throw new Error("[vuex] "+a)}function AW(e,a){return function(){return e(a)}}function Zk(e,a,r){return a.indexOf(e)<0&&(r&&r.prepend?a.unshift(e):a.push(e)),function(){var d=a.indexOf(e);d>-1&&a.splice(d,1)}}function Xk(e,a){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var r=e.state;j1(e,r,[],e._modules.root,!0),Sb(e,r,a)}function Sb(e,a,r){var d=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var g=e._wrappedGetters,i={};bp(g,function(s,n){i[n]=AW(s,e),Object.defineProperty(e.getters,n,{get:function(){return i[n]()},enumerable:!0})}),e._state=t.reactive({data:a}),e.strict&&OW(e),d&&r&&e._withCommit(function(){d.data=null})}function j1(e,a,r,d,g){var i=!r.length,s=e._modules.getNamespace(r);if(d.namespaced&&(e._modulesNamespaceMap[s]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+s+" for the namespaced module "+r.join("/")),e._modulesNamespaceMap[s]=d),!i&&!g){var n=Ab(a,r.slice(0,-1)),_=r[r.length-1];e._withCommit(function(){process.env.NODE_ENV!=="production"&&_ in n&&console.warn('[vuex] state field "'+_+'" was overridden by a module with the same name at "'+r.join(".")+'"'),n[_]=d.state})}var f=d.context=NW(e,s,r);d.forEachMutation(function(o,m){var x=s+m;BW(e,x,o,f)}),d.forEachAction(function(o,m){var x=o.root?m:s+m,c=o.handler||o;IW(e,x,c,f)}),d.forEachGetter(function(o,m){var x=s+m;MW(e,x,o,f)}),d.forEachChild(function(o,m){j1(e,a,r.concat(m),o,g)})}function NW(e,a,r){var d=a==="",g={dispatch:d?e.dispatch:function(i,s,n){var _=U1(i,s,n),f=_.payload,o=_.options,m=_.type;if((!o||!o.root)&&(m=a+m,process.env.NODE_ENV!=="production"&&!e._actions[m])){console.error("[vuex] unknown local action type: "+_.type+", global type: "+m);return}return e.dispatch(m,f)},commit:d?e.commit:function(i,s,n){var _=U1(i,s,n),f=_.payload,o=_.options,m=_.type;if((!o||!o.root)&&(m=a+m,process.env.NODE_ENV!=="production"&&!e._mutations[m])){console.error("[vuex] unknown local mutation type: "+_.type+", global type: "+m);return}e.commit(m,f,o)}};return Object.defineProperties(g,{getters:{get:d?function(){return e.getters}:function(){return Kk(e,a)}},state:{get:function(){return Ab(e.state,r)}}}),g}function Kk(e,a){if(!e._makeLocalGettersCache[a]){var r={},d=a.length;Object.keys(e.getters).forEach(function(g){if(g.slice(0,d)===a){var i=g.slice(d);Object.defineProperty(r,i,{get:function(){return e.getters[g]},enumerable:!0})}}),e._makeLocalGettersCache[a]=r}return e._makeLocalGettersCache[a]}function BW(e,a,r,d){var g=e._mutations[a]||(e._mutations[a]=[]);g.push(function(s){r.call(e,d.state,s)})}function IW(e,a,r,d){var g=e._actions[a]||(e._actions[a]=[]);g.push(function(s){var n=r.call(e,{dispatch:d.dispatch,commit:d.commit,getters:d.getters,state:d.state,rootGetters:e.getters,rootState:e.state},s);return SW(n)||(n=Promise.resolve(n)),e._devtoolHook?n.catch(function(_){throw e._devtoolHook.emit("vuex:error",_),_}):n})}function MW(e,a,r,d){if(e._wrappedGetters[a]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+a);return}e._wrappedGetters[a]=function(i){return r(d.state,d.getters,i.state,i.getters)}}function OW(e){t.watch(function(){return e._state.data},function(){process.env.NODE_ENV!=="production"&&Vc(e._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function Ab(e,a){return a.reduce(function(r,d){return r[d]},e)}function U1(e,a,r){return Yk(e)&&e.type&&(r=a,a=e,e=e.type),process.env.NODE_ENV!=="production"&&Vc(typeof e=="string","expects string as the type, but found "+typeof e+"."),{type:e,payload:a,options:r}}var PW="vuex bindings",Jk="vuex:mutations",Nb="vuex:actions",sh="vuex",FW=0;function RW(e,a){TW({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[PW]},function(r){r.addTimelineLayer({id:Jk,label:"Vuex Mutations",color:Qk}),r.addTimelineLayer({id:Nb,label:"Vuex Actions",color:Qk}),r.addInspector({id:sh,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),r.on.getInspectorTree(function(d){if(d.app===e&&d.inspectorId===sh)if(d.filter){var g=[];r9(g,a._modules.root,d.filter,""),d.rootNodes=g}else d.rootNodes=[a9(a._modules.root,"")]}),r.on.getInspectorState(function(d){if(d.app===e&&d.inspectorId===sh){var g=d.nodeId;Kk(a,g),d.state=LW($W(a._modules,g),g==="root"?a.getters:a._makeLocalGettersCache,g)}}),r.on.editInspectorState(function(d){if(d.app===e&&d.inspectorId===sh){var g=d.nodeId,i=d.path;g!=="root"&&(i=g.split("/").filter(Boolean).concat(i)),a._withCommit(function(){d.set(a._state.data,i,d.state.value)})}}),a.subscribe(function(d,g){var i={};d.payload&&(i.payload=d.payload),i.state=g,r.notifyComponentUpdate(),r.sendInspectorTree(sh),r.sendInspectorState(sh),r.addTimelineEvent({layerId:Jk,event:{time:Date.now(),title:d.type,data:i}})}),a.subscribeAction({before:function(d,g){var i={};d.payload&&(i.payload=d.payload),d._id=FW++,d._time=Date.now(),i.state=g,r.addTimelineEvent({layerId:Nb,event:{time:d._time,title:d.type,groupId:d._id,subtitle:"start",data:i}})},after:function(d,g){var i={},s=Date.now()-d._time;i.duration={_custom:{type:"duration",display:s+"ms",tooltip:"Action duration",value:s}},d.payload&&(i.payload=d.payload),i.state=g,r.addTimelineEvent({layerId:Nb,event:{time:Date.now(),title:d.type,groupId:d._id,subtitle:"end",data:i}})}})})}var Qk=8702998,zW=6710886,VW=16777215,e9={label:"namespaced",textColor:VW,backgroundColor:zW};function t9(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function a9(e,a){return{id:a||"root",label:t9(a),tags:e.namespaced?[e9]:[],children:Object.keys(e._children).map(function(r){return a9(e._children[r],a+r+"/")})}}function r9(e,a,r,d){d.includes(r)&&e.push({id:d||"root",label:d.endsWith("/")?d.slice(0,d.length-1):d||"Root",tags:a.namespaced?[e9]:[]}),Object.keys(a._children).forEach(function(g){r9(e,a._children[g],r,d+g+"/")})}function LW(e,a,r){a=r==="root"?a:a[r];var d=Object.keys(a),g={state:Object.keys(e.state).map(function(s){return{key:s,editable:!0,value:e.state[s]}})};if(d.length){var i=DW(a);g.getters=Object.keys(i).map(function(s){return{key:s.endsWith("/")?t9(s):s,editable:!1,value:Bb(function(){return i[s]})}})}return g}function DW(e){var a={};return Object.keys(e).forEach(function(r){var d=r.split("/");if(d.length>1){var g=a,i=d.pop();d.forEach(function(s){g[s]||(g[s]={_custom:{value:{},display:s,tooltip:"Module",abstract:!0}}),g=g[s]._custom.value}),g[i]=Bb(function(){return e[r]})}else a[r]=Bb(function(){return e[r]})}),a}function $W(e,a){var r=a.split("/").filter(function(d){return d});return r.reduce(function(d,g,i){var s=d[g];if(!s)throw new Error('Missing module "'+g+'" for path "'+a+'".');return i===r.length-1?s:s._children},a==="root"?e:e.root._children)}function Bb(e){try{return e()}catch(a){return a}}var Lc=function(a,r){this.runtime=r,this._children=Object.create(null),this._rawModule=a;var d=a.state;this.state=(typeof d=="function"?d():d)||{}},n9={namespaced:{configurable:!0}};n9.namespaced.get=function(){return!!this._rawModule.namespaced},Lc.prototype.addChild=function(a,r){this._children[a]=r},Lc.prototype.removeChild=function(a){delete this._children[a]},Lc.prototype.getChild=function(a){return this._children[a]},Lc.prototype.hasChild=function(a){return a in this._children},Lc.prototype.update=function(a){this._rawModule.namespaced=a.namespaced,a.actions&&(this._rawModule.actions=a.actions),a.mutations&&(this._rawModule.mutations=a.mutations),a.getters&&(this._rawModule.getters=a.getters)},Lc.prototype.forEachChild=function(a){bp(this._children,a)},Lc.prototype.forEachGetter=function(a){this._rawModule.getters&&bp(this._rawModule.getters,a)},Lc.prototype.forEachAction=function(a){this._rawModule.actions&&bp(this._rawModule.actions,a)},Lc.prototype.forEachMutation=function(a){this._rawModule.mutations&&bp(this._rawModule.mutations,a)},Object.defineProperties(Lc.prototype,n9);var xp=function(a){this.register([],a,!1)};xp.prototype.get=function(a){return a.reduce(function(r,d){return r.getChild(d)},this.root)},xp.prototype.getNamespace=function(a){var r=this.root;return a.reduce(function(d,g){return r=r.getChild(g),d+(r.namespaced?g+"/":"")},"")},xp.prototype.update=function(a){i9([],this.root,a)},xp.prototype.register=function(a,r,d){var g=this;d===void 0&&(d=!0),process.env.NODE_ENV!=="production"&&l9(a,r);var i=new Lc(r,d);if(a.length===0)this.root=i;else{var s=this.get(a.slice(0,-1));s.addChild(a[a.length-1],i)}r.modules&&bp(r.modules,function(n,_){g.register(a.concat(_),n,d)})},xp.prototype.unregister=function(a){var r=this.get(a.slice(0,-1)),d=a[a.length-1],g=r.getChild(d);if(!g){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+d+"', which is not registered");return}g.runtime&&r.removeChild(d)},xp.prototype.isRegistered=function(a){var r=this.get(a.slice(0,-1)),d=a[a.length-1];return r?r.hasChild(d):!1};function i9(e,a,r){if(process.env.NODE_ENV!=="production"&&l9(e,r),a.update(r),r.modules)for(var d in r.modules){if(!a.getChild(d)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+d+"' on hot reloading, manual reload is needed");return}i9(e.concat(d),a.getChild(d),r.modules[d])}}var o9={assert:function(e){return typeof e=="function"},expected:"function"},jW={assert:function(e){return typeof e=="function"||typeof e=="object"&&typeof e.handler=="function"},expected:'function or object with "handler" function'},s9={getters:o9,mutations:o9,actions:jW};function l9(e,a){Object.keys(s9).forEach(function(r){if(a[r]){var d=s9[r];bp(a[r],function(g,i){Vc(d.assert(g),UW(e,r,i,g,d.expected))})}})}function UW(e,a,r,d,g){var i=a+" should be "+g+' but "'+a+"."+r+'"';return e.length>0&&(i+=' in module "'+e.join(".")+'"'),i+=" is "+JSON.stringify(d)+".",i}var Ml=function e(a){var r=this;a===void 0&&(a={}),process.env.NODE_ENV!=="production"&&(Vc(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),Vc(this instanceof e,"store must be called with the new operator."));var d=a.plugins;d===void 0&&(d=[]);var g=a.strict;g===void 0&&(g=!1);var i=a.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new xp(a),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=i;var s=this,n=this,_=n.dispatch,f=n.commit;this.dispatch=function(x,c){return _.call(s,x,c)},this.commit=function(x,c,l){return f.call(s,x,c,l)},this.strict=g;var o=this._modules.root.state;j1(this,o,[],this._modules.root),Sb(this,o),d.forEach(function(m){return m(r)})},Ib={state:{configurable:!0}};Ml.prototype.install=function(a,r){a.provide(r||qk,this),a.config.globalProperties.$store=this;var d=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;d&&RW(a,this)},Ib.state.get=function(){return this._state.data},Ib.state.set=function(e){process.env.NODE_ENV!=="production"&&Vc(!1,"use store.replaceState() to explicit replace store state.")},Ml.prototype.commit=function(a,r,d){var g=this,i=U1(a,r,d),s=i.type,n=i.payload,_=i.options,f={type:s,payload:n},o=this._mutations[s];if(!o){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+s);return}this._withCommit(function(){o.forEach(function(x){x(n)})}),this._subscribers.slice().forEach(function(m){return m(f,g.state)}),process.env.NODE_ENV!=="production"&&_&&_.silent&&console.warn("[vuex] mutation type: "+s+". Silent option has been removed. Use the filter functionality in the vue-devtools")},Ml.prototype.dispatch=function(a,r){var d=this,g=U1(a,r),i=g.type,s=g.payload,n={type:i,payload:s},_=this._actions[i];if(!_){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+i);return}try{this._actionSubscribers.slice().filter(function(o){return o.before}).forEach(function(o){return o.before(n,d.state)})}catch(o){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(o))}var f=_.length>1?Promise.all(_.map(function(o){return o(s)})):_[0](s);return new Promise(function(o,m){f.then(function(x){try{d._actionSubscribers.filter(function(c){return c.after}).forEach(function(c){return c.after(n,d.state)})}catch(c){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(c))}o(x)},function(x){try{d._actionSubscribers.filter(function(c){return c.error}).forEach(function(c){return c.error(n,d.state,x)})}catch(c){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(c))}m(x)})})},Ml.prototype.subscribe=function(a,r){return Zk(a,this._subscribers,r)},Ml.prototype.subscribeAction=function(a,r){var d=typeof a=="function"?{before:a}:a;return Zk(d,this._actionSubscribers,r)},Ml.prototype.watch=function(a,r,d){var g=this;return process.env.NODE_ENV!=="production"&&Vc(typeof a=="function","store.watch only accepts a function."),t.watch(function(){return a(g.state,g.getters)},r,Object.assign({},d))},Ml.prototype.replaceState=function(a){var r=this;this._withCommit(function(){r._state.data=a})},Ml.prototype.registerModule=function(a,r,d){d===void 0&&(d={}),typeof a=="string"&&(a=[a]),process.env.NODE_ENV!=="production"&&(Vc(Array.isArray(a),"module path must be a string or an Array."),Vc(a.length>0,"cannot register the root module by using registerModule.")),this._modules.register(a,r),j1(this,this.state,a,this._modules.get(a),d.preserveState),Sb(this,this.state)},Ml.prototype.unregisterModule=function(a){var r=this;typeof a=="string"&&(a=[a]),process.env.NODE_ENV!=="production"&&Vc(Array.isArray(a),"module path must be a string or an Array."),this._modules.unregister(a),this._withCommit(function(){var d=Ab(r.state,a.slice(0,-1));delete d[a[a.length-1]]}),Xk(this)},Ml.prototype.hasModule=function(a){return typeof a=="string"&&(a=[a]),process.env.NODE_ENV!=="production"&&Vc(Array.isArray(a),"module path must be a string or an Array."),this._modules.isRegistered(a)},Ml.prototype.hotUpdate=function(a){this._modules.update(a),Xk(this,!0)},Ml.prototype._withCommit=function(a){var r=this._committing;this._committing=!0,a(),this._committing=r},Object.defineProperties(Ml.prototype,Ib);var Ol=W1(function(e,a){var r={};return process.env.NODE_ENV!=="production"&&!qf(a)&&console.error("[vuex] mapState: mapper parameter must be either an Array or an Object"),G1(a).forEach(function(d){var g=d.key,i=d.val;r[g]=function(){var n=this.$store.state,_=this.$store.getters;if(e){var f=q1(this.$store,"mapState",e);if(!f)return;n=f.context.state,_=f.context.getters}return typeof i=="function"?i.call(this,n,_):n[i]},r[g].vuex=!0}),r}),Bu=W1(function(e,a){var r={};return process.env.NODE_ENV!=="production"&&!qf(a)&&console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),G1(a).forEach(function(d){var g=d.key,i=d.val;r[g]=function(){for(var n=[],_=arguments.length;_--;)n[_]=arguments[_];var f=this.$store.commit;if(e){var o=q1(this.$store,"mapMutations",e);if(!o)return;f=o.context.commit}return typeof i=="function"?i.apply(this,[f].concat(n)):f.apply(this.$store,[i].concat(n))}}),r}),qi=W1(function(e,a){var r={};return process.env.NODE_ENV!=="production"&&!qf(a)&&console.error("[vuex] mapGetters: mapper parameter must be either an Array or an Object"),G1(a).forEach(function(d){var g=d.key,i=d.val;i=e+i,r[g]=function(){if(!(e&&!q1(this.$store,"mapGetters",e))){if(process.env.NODE_ENV!=="production"&&!(i in this.$store.getters)){console.error("[vuex] unknown getter: "+i);return}return this.$store.getters[i]}},r[g].vuex=!0}),r}),H1=W1(function(e,a){var r={};return process.env.NODE_ENV!=="production"&&!qf(a)&&console.error("[vuex] mapActions: mapper parameter must be either an Array or an Object"),G1(a).forEach(function(d){var g=d.key,i=d.val;r[g]=function(){for(var n=[],_=arguments.length;_--;)n[_]=arguments[_];var f=this.$store.dispatch;if(e){var o=q1(this.$store,"mapActions",e);if(!o)return;f=o.context.dispatch}return typeof i=="function"?i.apply(this,[f].concat(n)):f.apply(this.$store,[i].concat(n))}}),r});function G1(e){return qf(e)?Array.isArray(e)?e.map(function(a){return{key:a,val:a}}):Object.keys(e).map(function(a){return{key:a,val:e[a]}}):[]}function qf(e){return Array.isArray(e)||Yk(e)}function W1(e){return function(a,r){return typeof a!="string"?(r=a,a=""):a.charAt(a.length-1)!=="/"&&(a+="/"),e(a,r)}}function q1(e,a,r){var d=e._modulesNamespaceMap[r];return process.env.NODE_ENV!=="production"&&!d&&console.error("[vuex] module namespace not found in "+a+"(): "+r),d}const UNt="",Ti=(e,a)=>{const r=e.__vccOpts||e;for(const[d,g]of a)r[d]=g;return r},c9=Ti({__name:"ButtonCustom",props:{text:{type:String,default:""},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},padding:{type:String,default:"0px"},borderRadius:{type:String,default:"0px"},borderWidth:{type:String,default:"1px"},borderColor:{type:String,default:"#d9d9d9"},backgroundColor:{type:String,default:"#FFFFFF"},activeBackgroundColor:{type:String,default:""},activeBorderColor:{type:String,default:""},activeBorderWidth:{type:String,default:"1px"},activeFontColor:{type:String,default:""},fontColor:{type:String,default:"#000000"},fontSize:{type:String,default:"16px"},fontFamily:{type:String,default:"Poppins-Regular, sans-serif"},whiteSpace:{type:String,default:"nowrap"},isActive:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:a}){const r=e,d=t.computed(()=>({"--height":r.height,"--width":r.width,"--padding":r.padding,"--border-radius":r.borderRadius,"--border":`solid ${r.borderWidth} ${r.borderColor}`,"--background-color":r.backgroundColor,"--white-space":r.whiteSpace,"--font-color":r.fontColor,"--font-size":r.fontSize,"--font-family":r.fontFamily,"--active-background-color":r.activeBackgroundColor||r.backgroundColor,"--active-border-color":r.activeBorderColor||r.borderColor,"--active-font-color":r.activeFontColor||r.fontColor}));function g(){a("click")}return(i,s)=>(t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass(["button",{active:e.isActive}]),style:t.normalizeStyle(d.value),onClick:g},t.toDisplayString(e.text),7))}},[["__scopeId","data-v-bb7f8e4d"]]),HW=(e,a)=>{const r=e.__vccOpts||e;for(const[d,g]of a)r[d]=g;return r},GW={__name:"GSC-Menu",props:{menuMarginTop:{type:Number,default:0,validator(e){return!Number.isNaN(e)}},modelValue:{type:Boolean,default:!1},width:{type:String,default:"fit-content"},menuWidth:{type:String,default:"fit-content"},zIndexOpen:{type:Number,default:3}},emits:["update:modelValue"],setup(e,{emit:a}){const r=e;t.useCssVars(c=>({"321b6381":e.width,"14b0f61d":_.value,"62e0e83c":e.menuWidth}));const d=t.ref(null),g=t.ref(!1),i=t.ref(null),s=t.ref({}),n=t.computed(()=>{const c={top:"0px"};if(d.value){const l=d.value.getBoundingClientRect();c.top=`${l.height+r.menuMarginTop}px`}return c}),_=t.computed(()=>g.value?r.zIndexOpen:1);t.watch(()=>r.modelValue,c=>{c!==g.value&&(g.value=c)},{immediate:!0}),t.watch(g,c=>{c||setTimeout(()=>{s.value["--translate-x"]="0px"},500)});function f(c){const l=window.innerWidth,u=c.boundingClientRect.x,p=c.boundingClientRect.x+c.boundingClientRect.width,h=u<=0?Math.abs(u)+4:p>=l?l-(p+10):0;s.value["--translate-x"]=`${h}px`}function o(){new IntersectionObserver(c=>{c[0].intersectionRatio>0&&f(c[0])}).observe(i.value)}function m(){g.value=!g.value,a("update:modelValue",g.value)}function x(){g.value=!1,a("update:modelValue",g.value)}return t.onMounted(()=>{t.nextTick(()=>{o()})}),(c,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[g.value?(t.openBlock(),t.createElementBlock("div",{key:0,id:"menu-overlay",onClick:x})):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"menu-container",style:t.normalizeStyle(s.value)},[t.createElementVNode("div",{ref_key:"trigger",ref:d,class:"menu-container__trigger",onClick:m},[t.renderSlot(c.$slots,"trigger",{},void 0,!0)],512),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",{ref_key:"menu",ref:i,class:"menu-container__menu",style:t.normalizeStyle(n.value)},[t.renderSlot(c.$slots,"menu",{},void 0,!0)],4),[[t.vShow,g.value]])]),_:3})],4)],64))}},WW=HW(GW,[["__scopeId","data-v-2f344053"]]),GNt="",qW=(e=>(t.pushScopeId("data-v-2a796a00"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("div",{class:"button__icon"},null,-1)),YW={class:"button__text"},ZW={key:0},XW={width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},KW=["fill"],JW=Ti({__name:"ButtonFilter",props:{isActive:{type:Boolean,default:!1},text:{type:String,default:""},infoValue:{type:[String,Number],default:""},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"14px"},fontColor:{type:String,default:"white"},infoBackgroundColor:{type:String,default:"#424D58"},infoFontColor:{type:String,default:"#CBEE6B"},infoFontFamily:{type:String,default:"sans-serif"},infoFontSize:{type:String,default:"10px"},infoBorderColor:{type:String,default:"#0D1D29"},infoBorderRadius:{type:String,default:"4px"},infoHeight:{type:String,default:"20px"},infoWidth:{type:String,default:"20px"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#0D1D29"},borderRadius:{type:String,default:"8px"},borderColor:{type:String,default:"#172531"},borderColorActive:{type:String,default:"white"},borderWidth:{type:String,default:"1px"},padding:{type:String,default:"12px"},arrowColor:{type:String,default:"#92929D"},iconColor:{type:String,default:"#92929D"},iconType:{type:String,default:"productivity"}},setup(e){const a=e,r=t.computed(()=>({"--height":a.height,"--width":a.width,"--text-font-family":a.textFontFamily,"--text-font-size":a.textFontSize,"--background-color":a.backgroundColor,"--border-radius":a.borderRadius,"--border-color":a.isActive?a.borderColorActive:a.borderColor,"--border-width":a.borderWidth,"--padding":a.padding,"--font-color":a.fontColor})),d=t.computed(()=>({"--info-background-color":a.infoBackgroundColor,"--info-border-color":a.infoBorderColor,"--info-border-radius":a.infoBorderRadius,"--info-font-family":a.infoFontFamily,"--info-font-size":a.infoFontSize,"--info-font-color":a.infoFontColor,"--info-height":a.infoHeight,"--info-width":a.infoWidth}));return(g,i)=>(t.openBlock(),t.createElementBlock("div",{class:"button",style:t.normalizeStyle(r.value)},[qW,t.createElementVNode("div",YW,t.toDisplayString(e.text),1),t.createElementVNode("div",{class:"button__info",style:t.normalizeStyle(d.value)},[e.infoValue?(t.openBlock(),t.createElementBlock("span",ZW,t.toDisplayString(e.infoValue),1)):t.createCommentVNode("",!0)],4),t.createElementVNode("div",{class:t.normalizeClass(["button__arrow",{"rotated-180":e.isActive}])},[(t.openBlock(),t.createElementBlock("svg",XW,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 2.62045L6.86193 0.167368C7.12228 -0.0557892 7.54439 -0.0557892 7.80474 0.167368C8.06509 0.390524 8.06509 0.752333 7.80474 0.97549L4.4714 3.83263C4.21105 4.05579 3.78895 4.05579 3.5286 3.83263L0.195262 0.97549C-0.0650874 0.752333 -0.0650874 0.390524 0.195262 0.167368C0.455612 -0.0557892 0.877722 -0.0557892 1.13807 0.167368L4 2.62045Z",fill:e.arrowColor},null,8,KW)]))],2)],4))}},[["__scopeId","data-v-2a796a00"]]),QW=(e,a)=>{const r=e.__vccOpts||e;for(const[d,g]of a)r[d]=g;return r},eq={key:1},tq={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},aq=["fill"],rq={key:0,class:"checkbox__teams"},nq={class:"checkbox__teams__logo"},iq=["src"],oq={class:"checkbox__teams__logo"},sq=["src"],lq={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelWhiteSpace:{type:String,default:"normal"},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(e){return["left","right","top","bottom"].includes(e)}},boxMarginTop:{type:String,default:"0.2em"},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1},avoidToCheck:{type:Boolean,default:!1},isBoxOnly:{type:Boolean,default:!1},teamsIds:{type:Array,default:()=>null}},emits:["update:modelValue"],setup(e,{emit:a}){const r=e;t.useCssVars(f=>({"6582e90e":e.width,"310b3edf":e.height}));const d=t.ref(!1),g=t.computed(()=>{const f={color:r.boxValueColor,"font-family":r.fontFamily,height:r.boxWidthAndHeight,width:r.boxWidthAndHeight,minWidth:r.boxWidthAndHeight,"border-radius":r.boxBorderRadius,"margin-top":r.boxMarginTop};return d.value?(f["background-color"]=r.boxBackgroundColor,f.border=`solid ${r.boxBorderWidth} ${r.boxBackgroundColor}`):f.border=`solid ${r.boxBorderWidth} ${r.boxBorderColor}`,f}),i=t.computed(()=>({"font-family":r.boxValueFontFamily,"font-size":r.boxValueFontSize,color:r.boxValueColor,"line-height":1})),s=t.computed(()=>{const f={color:r.labelColor,"font-family":r.fontFamily,"font-size":r.labelFontSize,"white-space":r.labelWhiteSpace,"text-align":r.boxPosition==="top"||r.boxPosition==="bottom"?"center":r.boxPosition};return(r.boxPosition==="left"||r.boxPosition==="right")&&(f[`margin-${r.boxPosition}`]=r.isBoxOnly?"0":r.teamsIds?"8px":"10px"),f});t.watch(()=>r.modelValue,f=>{f!==d.value&&(d.value=f)},{immediate:!0});function n(){r.avoidInteraction||!d.value&&r.avoidToCheck||(d.value=!d.value,a("update:modelValue",d.value))}function _(f){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-80/"}${f}.png`}return(f,o)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:n},[t.createElementVNode("div",{class:"checkbox__box",style:t.normalizeStyle(g.value)},[d.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[r.boxValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"checkbox__box__value",style:t.normalizeStyle(i.value)},t.toDisplayString(e.boxValue),5)):(t.openBlock(),t.createElementBlock("div",eq,[(t.openBlock(),t.createElementBlock("svg",tq,[t.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:e.boxValueColor},null,8,aq)]))]))],64)):t.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(t.openBlock(),t.createElementBlock("div",rq,[t.createElementVNode("div",nq,[t.createElementVNode("img",{src:_(e.teamsIds[0]),alt:""},null,8,iq)]),t.createElementVNode("div",oq,[t.createElementVNode("img",{src:_(e.teamsIds[1]),alt:""},null,8,sq)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"checkbox__label",style:t.normalizeStyle(s.value)},t.toDisplayString(e.label),5)],2))}},d9=QW(lq,[["__scopeId","data-v-bcf3bcc6"]]),YNt="",Y1=e=>(t.pushScopeId("data-v-ce334c17"),e=e(),t.popScopeId(),e),cq={class:"details__header"},dq=Y1(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),uq={class:"details__header__checkbox"},pq={class:"details__body"},hq={class:"details__body__playing-as"},fq=["onClick"],mq={class:"details__header"},gq=Y1(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),yq={class:"details__header__checkbox"},_q={class:"details__body"},vq=Y1(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),bq={class:"details__body__game-section"},xq=["onClick"],wq={class:"details__body"},kq=Y1(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),Cq={class:"details__body__game-section"},Eq=["onClick"],Tq=Ti({__name:"StatisticsFilterTemplate",props:{playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},results:{type:Array,default:()=>[1,2,3]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(e){const a=e;t.useCssVars(o=>({"2321d9a1":e.buttonsBackgroundColor,ccabcbfc:e.buttonsTextColor,"05a0a474":e.buttonsBorderWidth,"07cea13a":e.buttonsBorderColor,"67fac807":e.buttonsBackgroundColorActive,"728f7ba8":e.buttonsTextColorActive,"12a02c6c":e.buttonsBorderWidthActive,"5392776e":e.buttonsBorderColorActive}));const r=t.computed(()=>a.playingAs.every(o=>o.isSelected)),d=t.computed(()=>a.gameSections.every(o=>o.isSelected)),g=t.computed(()=>a.gameSections.reduce((o,m)=>(m.value<=3?o.firstHalf.push(m):o.secondHalf.push(m),o),{firstHalf:[],secondHalf:[]})),i=t.computed(()=>({"--border-radius-first-button":`${a.buttonsBorderRadius} 0 0 ${a.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${a.buttonsBorderRadius} ${a.buttonsBorderRadius} 0`}));function s(o){o?a.playingAs.forEach(m=>{m.isSelected=!0}):a.playingAs.forEach((m,x)=>{m.isSelected=x===0})}function n(o){a.playingAs.filter(m=>m.isSelected).length===1&&o.isSelected||(o.isSelected=!o.isSelected)}function _(o){a.gameSections.filter(m=>m.isSelected).length===1&&o.isSelected||(o.isSelected=!o.isSelected)}function f(o){o?a.gameSections.forEach(m=>{m.isSelected=!0}):a.gameSections.forEach((m,x)=>{m.isSelected=x===0})}return(o,m)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(i.value)},[t.createElementVNode("div",cq,[dq,t.createElementVNode("div",uq,[t.createVNode(t.unref(d9),{label:"Todos","model-value":r.value,"onUpdate:modelValue":s},null,8,["model-value"])])]),t.createElementVNode("div",pq,[t.createElementVNode("div",hq,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.playingAs,(x,c)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${c}`,class:t.normalizeClass(["details__body__button",{active:x.isSelected}]),onClick:l=>n(x)},t.toDisplayString(x.name),11,fq))),128))])]),t.createElementVNode("div",mq,[gq,t.createElementVNode("div",yq,[t.createVNode(t.unref(d9),{label:"Todos","model-value":d.value,"onUpdate:modelValue":f},null,8,["model-value"])])]),t.createElementVNode("div",_q,[vq,t.createElementVNode("div",bq,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.value.firstHalf,(x,c)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${c}`,class:t.normalizeClass(["details__body__button",{active:x.isSelected}]),onClick:l=>_(x)},t.toDisplayString(x.text),11,xq))),128))])]),t.createElementVNode("div",wq,[kq,t.createElementVNode("div",Cq,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.value.secondHalf,(x,c)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${c}`,class:t.normalizeClass(["details__body__button",{active:x.isSelected}]),onClick:l=>_(x)},t.toDisplayString(x.text),11,Eq))),128))])])],4))}},[["__scopeId","data-v-ce334c17"]]),Sq={class:"statistics-filter-button"},Aq={__name:"StatisticsFilterButton",setup(e){const a=t.ref(!1);return(r,d)=>(t.openBlock(),t.createElementBlock("div",Sq,[t.createVNode(t.unref(WW),{modelValue:a.value,"onUpdate:modelValue":d[0]||(d[0]=g=>a.value=g),"menu-margin-top":18},{trigger:t.withCtx(()=>[t.createVNode(JW,{text:"Filtros","is-active":a.value,"background-color":"rgba(255, 255, 255, 0.05)","border-color":"rgba(255, 255, 255, 0.20)","info-width":"0",padding:"6px 12px"},null,8,["is-active"])]),menu:t.withCtx(()=>[t.createVNode(Tq)]),_:1},8,["modelValue"])]))}},Nq=(e,a)=>{const r=e.__vccOpts||e;for(const[d,g]of a)r[d]=g;return r},Bq=["name","value","checked"],Iq={class:"radio-button__radio"},Mq={class:"radio-button__radio__circle"},Oq={class:"radio-button__label-logo"},Pq={class:"radio-button__label-logo__label"},Fq={key:0,class:"radio-button__label-logo__logo"},Rq=["src"],zq={__name:"GSC-RadioButton",props:{label:{type:String,default:"Label"},labelColor:{type:String,default:"white"},labelFontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},name:{type:String,default:"name"},value:{type:[String,Number],required:!0},modelValue:{type:[String,Number],default:""},logoUrl:{type:String,default:""},radioPosition:{type:String,default:"left",validator:e=>["left","right","top","bottom"].includes(e)},radioHeightAndWidth:{type:String,default:"16px"},radioBorderWidth:{type:String,default:"1px"},radioBorderColor:{type:String,default:"#FFFFFF"},radioCircleColor:{type:String,default:"#CBEE6B"},radioCircleHeightAndWidth:{type:String,default:"8px"},logoHeightAndWidth:{type:String,default:"24px"}},emits:["update:modelValue"],setup(e,{emit:a}){const r=e;t.useCssVars(s=>({"09b3bbfe":e.radioHeightAndWidth,b2c41162:e.radioBorderWidth,b4f20e28:e.radioBorderColor,"999f2a9e":e.radioCircleHeightAndWidth,"74ee76c8":e.radioCircleColor,eb045952:e.labelFontFamily,"61eeb8b4":e.labelFontSize,"39a863c2":e.labelColor,"0b5aff5e":e.logoHeightAndWidth}));const d=t.ref(!1);t.watch(()=>r.modelValue,()=>{d.value=r.modelValue===r.value},{immediate:!0});function g(){a("update:modelValue",r.value)}function i(){a("update:modelValue",r.value)}return(s,n)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["radio-button",e.radioPosition]),onClick:i},[t.createElementVNode("input",{type:"radio",name:e.name,value:e.value,checked:d.value,onInput:g},null,40,Bq),t.createElementVNode("div",Iq,[t.withDirectives(t.createElementVNode("div",Mq,null,512),[[t.vShow,d.value]])]),t.createElementVNode("div",Oq,[t.createElementVNode("div",Pq,t.toDisplayString(e.label),1),e.logoUrl?(t.openBlock(),t.createElementBlock("div",Fq,[t.createElementVNode("img",{src:e.logoUrl,alt:""},null,8,Rq)])):t.createCommentVNode("",!0)])],2))}},Vq=Nq(zq,[["__scopeId","data-v-10f54cda"]]),XNt="",Lq=Ti({__name:"SwitchCustom",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:a}){const r=e,d=t.ref(null);t.watch(()=>r.modelValue,()=>{g()},{immediate:!0});function g(){d.value&&(d.value.checked=r.modelValue)}function i(s){a("update:modelValue",s.target.checked)}return t.onMounted(()=>{g()}),(s,n)=>(t.openBlock(),t.createElementBlock("input",{ref_key:"switchCustom",ref:d,id:"toggle",class:"toggle",type:"checkbox",role:"switch",name:"toggle",onInput:i},null,544))}},[["__scopeId","data-v-e3a6ae4e"]]);function Dq(e,a){let r=Array.isArray(e)&&Array.isArray(a)?e.length===a.length:!1;if(r){for(let d of e)if(!a.includes(d)){r=!1;break}}return r}function Z1(e){return e.reduce((a,r,d)=>(a[r]=d,a),{})}function u9(e,a,r){const d={statistics:a.statistics.value||0,playingAs:[...a.playingAs],matchResult:[...a.matchResult],sections:a.firstHalf.concat(a.secondHalf),requiresPlaysFiltering:a.requiresPlaysFiltering||!0};return d.teamId=r,d}function lh(e){return typeof e=="number"?e.toFixed(2).replace(/\.0+$|0$/g,""):e}function p9(e){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-80/"}${e}.png`}const JNt="",$q={name:"ChartTrendLive",props:{teamTypeSelected:{type:String,default:"homeTeam"},subcategorySelected:{type:Object,required:!0},typeId:{type:Number,required:!0},teamIds:{type:Array,required:!0},teamAcronyms:{type:Array,required:!0},types:{type:Array,required:!0},containerWidth:{type:Number,default:0}},data(){return{height:0,updateGraph:0}},mounted(){setTimeout(()=>{this.setDimensions()},500)},computed:{...Ol("nextGeneral",["idAssetSelected","menuOptionActive","showLiveData","homeTeamPlays","visitingTeamPlays","totalHomeTeamFinishedGames","totalVisitingTeamFinishedGames","gameForAnalysis"]),...qi("nextGeneral",["homeTeam","homeTeamStatisticsType","visitingTeamStatisticsType","showPostMatchData"]),chartOptions(){const e=this.teamTypeSelected==="both"?["#cbee6b","#0033C5"]:this.teamTypeSelected==="homeTeam"?["#cbee6b"]:["#0033C5"];return{chart:{type:"line",zoom:{enabled:!1},foreColor:"#2f3b45",height:"400px",width:"400px",fontFamily:"Poppins-Light"},colors:e,dataLabels:{style:{colors:["rgba(255, 255, 255, 0.08)"],borderColor:"rgba(255, 255, 255, 0.16)"},enabled:this.isAccumulatedType,enabledOnSeries:[0,1],background:{borderRadius:12,foreColor:"#ffffff",fontFamily:"Poppins-Light",borderColor:"#505a63",padding:10,opacity:.8,color:"#000"}},stroke:{width:1,curve:"straight",dashArray:[0,8,5],colors:e},legend:{show:!0,markers:{fillColors:e},labels:{colors:"rgba(255, 255, 255, 0.7)"},tooltipHoverFormatter:(a,r)=>a+" - <strong>"+r.w.globals.series[r.seriesIndex][r.dataPointIndex]+"</strong>"},markers:{colors:e,size:1,hover:{sizeOffset:6}},xaxis:{categories:this.xaxisCategories,labels:{style:{colors:"rgba(255,255,255,0.7)"}}},fill:{colors:e,type:"solid",opacity:.2},yaxis:[{axisBorder:{show:!0,color:"#1C2A36"},labels:{style:{colors:"rgba(255,255,255,0.7)"}}}],tooltip:{theme:"dark",marker:{show:!0},y:[{title:{formatter:a=>this.showPostMatchData?`${a} :`:`${a} (promedio)`},formatter:a=>this.showPostMatchData?Number(a):a},{title:{formatter:a=>this.showPostMatchData?`${a} :`:`${a} (promedio)`},formatter:a=>this.showPostMatchData?Number(a):a},{title:{formatter:a=>a}}]},grid:{show:!0,borderColor:"#414c55",padding:{right:22},xaxis:{lines:{show:!0}},yaxis:{lines:{show:!0}}}}},series(){const e=this.dataStats.map((a,r)=>({name:this.teamAcronyms[r],data:a}));return this.showLiveData&&e.push({name:"LIVE",data:this.getDataLive()}),e},typeName(){return this.types.find(e=>e.id===this.typeId).name},dataStats(){return this.isAccumulatedType?this.teamTypeSelected==="both"?[[0,...this.subcategorySelected.homeTeam[this.homeTeamStatisticsType].avgPostGameTrendLive.accumulated.map(e=>lh(e))],[0,...this.subcategorySelected.visitingTeam[this.visitingTeamStatisticsType].avgPostGameTrendLive.accumulated.map(e=>lh(e))]]:[[0,...this.subcategorySelected[this.teamTypeSelected][this[`${this.teamTypeSelected}StatisticsType`]].avgPostGameTrendLive.accumulated.map(e=>lh(e))]]:this.teamTypeSelected==="both"?[this.subcategorySelected.homeTeam[this.homeTeamStatisticsType].avgPostGameTrendLive.sections.reduce((e,a)=>(e.push(lh(a)),e),[0]),this.subcategorySelected.visitingTeam[this.visitingTeamStatisticsType].avgPostGameTrendLive.sections.reduce((e,a)=>(e.push(lh(a)),e),[0])]:[this.subcategorySelected[this.teamTypeSelected][this[`${this.teamTypeSelected}StatisticsType`]].avgPostGameTrendLive.sections.reduce((e,a)=>(e.push(lh(a)),e),[0])]},dataLive(){return this.isAccumulatedType?[0,...this.subcategorySelected[this.teamTypeSelected][this[`${this.teamTypeSelected}StatisticsType`]].totalsLiveTrendLive.accumulated.slice(0,this.subcategorySelected[this.teamTypeSelected].maximumLiveSection)]:this.subcategorySelected[this.teamTypeSelected][this[`${this.teamTypeSelected}StatisticsType`]].totalsLiveTrendLive.sections.slice(0,this.subcategorySelected[this.teamTypeSelected].maximumLiveSection).reduce((e,a)=>(e.push(a),e),[0])},xaxisCategories(){return this.isAccumulatedType?["0'","15'","30'","45'","60'","75'","90'"]:["0'","15'","30'","45'","60'","75'","90'"]},isAccumulatedType(){return this.typeId===1},factorHeight(){return this.containerWidth-this.containerWidth%50},key(){return this.showLiveData?1:2}},watch:{menuOptionActive(){setTimeout(()=>{this.setDimensions()},500),this.increaseUpdateGraph()},idAssetSelected(){this.idAssetSelected===7&&this.increaseUpdateGraph()},containerWidth(){this.setDimensions()},series(e,a){JSON.stringify(e)!==JSON.stringify(a)&&this.setDimensions()}},methods:{increaseUpdateGraph(){this.updateGraph+=1},getDataLive(){return this.isAccumulatedType?[0,...this.subcategorySelected[this.teamTypeSelected][this[`${this.teamTypeSelected}StatisticsType`]].totalsLiveTrendLive.accumulated.slice(0,this.subcategorySelected[this.teamTypeSelected].maximumLiveSection)]:this.subcategorySelected[this.teamTypeSelected][this[`${this.teamTypeSelected}StatisticsType`]].totalsLiveTrendLive.sections.slice(0,this.subcategorySelected[this.teamTypeSelected].maximumLiveSection).reduce((e,a)=>(e.push(a),e),[0])},setDimensions(){this.containerWidth<280?(this.$refs.containerChart.style.width="auto",this.height=this.factorHeight*.8):this.containerWidth>=280&&this.containerWidth<399?(this.$refs.containerChart.style.width="auto",this.height=this.factorHeight*.7):this.containerWidth>=400&&this.containerWidth<591?(this.$refs.containerChart.style.width="auto",this.height=this.factorHeight*.6):this.containerWidth>=591&&this.containerWidth<900?(this.$refs.containerChart.style.width="auto",this.height=this.factorHeight*.5):this.containerWidth>=900&&(this.$refs.containerChart.style.width="600px",this.height=400),this.idAssetSelected===7&&setTimeout(()=>{document.getElementsByClassName("apexcharts-svg").length>0&&(document.getElementsByClassName("apexcharts-svg")[0].style.width=parseInt(this.$refs.containerChart.style.width)+50+"px")},800),this.increaseUpdateGraph()}}},jq={class:"chart-trend-live container",ref:"containerChart"};function Uq(e,a,r,d,g,i){const s=t.resolveComponent("apexchart");return t.openBlock(),t.createElementBlock("div",jq,[(t.openBlock(),t.createBlock(s,{type:"area",options:i.chartOptions,series:i.series,key:i.key+g.updateGraph,style:{"z-index":"0"}},null,8,["options","series"]))],512)}const Hq=Ti($q,[["render",Uq],["__scopeId","data-v-687ee65e"]]),Gq=(e,a)=>{const r=e.__vccOpts||e;for(const[d,g]of a)r[d]=g;return r},Mb={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},h9=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},f9=Mb.setup;Mb.setup=f9?(e,a)=>(h9(),f9(e,a)):h9;const Wq=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),qq=["src"],Yq={key:1,class:"text"},Zq=["src"],Xq={class:"stats"},Kq=Wq(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),Jq={class:"numstats"},Qq={class:"leyend"};function eY(e,a,r,d,g,i){return t.openBlock(),t.createElementBlock("div",null,[r.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",g.status&&r.typeOnOff&&"button-active"]),style:t.normalizeStyle([i.customStyle,g.status&&r.typeOnOff&&i.customActive]),onClick:a[0]||(a[0]=(...s)=>i.btnClick&&i.btnClick(...s))},[r.icon&&r.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:r.iconSize}),src:r.icon},null,12,qq)):t.createCommentVNode("",!0),r.textValue?(t.openBlock(),t.createElementBlock("div",Yq,t.toDisplayString(r.textValue),1)):t.createCommentVNode("",!0),r.icon&&r.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:r.iconSize}),src:r.icon},null,12,Zq)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),r.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...s)=>i.btnClick&&i.btnClick(...s))},[t.createElementVNode("div",Xq,[Kq,t.createElementVNode("div",Jq,t.toDisplayString(r.textStat),1)]),t.createElementVNode("div",Qq,t.toDisplayString(r.textCategory),1)])):t.createCommentVNode("",!0)])}const tY=Gq(Mb,[["render",eY],["__scopeId","data-v-fb269a1e"]]),aY={class:"gsc-dropdown__main-container__item-selected"},rY=["height","width"],nY=["stroke"],iY={class:"gsc-dropdown__items-container"},oY=["onClick"],sY={key:0,class:"gsc-dropdown__items-footer"},lY={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:a}){const r=e,d=t.ref({}),g=t.ref(null),i=t.ref(r.isMultipleOption?-1:0),s=t.ref(!1);t.watch(()=>r.items,(c,l)=>{if(!r.modelValue&&(!r.onlyFirstTime||!l||!l.length)&&c&&c.length){if(r.defaultItemByProp){const u=r.items.findIndex(p=>p[r.defaultItemByProp.propName]===r.defaultItemByProp.value);u!==-1?(i.value=u,d.value=c[u]):(i.value=0,d.value=c[0])}else d.value=c[r.defaultItemByIndex];a("input",d.value)}},{immediate:!0}),t.watch(()=>r.modelValue,c=>{if(c){const l=r.items.findIndex(u=>typeof c=="object"?JSON.stringify(u)===JSON.stringify(c):u===c);l!==-1&&(i.value=l,d.value=r.items[l],a("update:modelValue",d.value))}},{immediate:!0});const n=t.computed(()=>({height:r.height,width:r.width,backgroundColor:r.backgroundColor,borderRadius:`${r.borderRadius}px`,border:`${r.borderType} ${r.borderWidth}px ${r.borderColor}`,color:r.color,"--hover-background-color":r.hoverBackgroundColor,"--list-item-padding":r.listItemPadding,"--list-background-color":r.listBackgroundColor,"--list-height":r.listHeight,"--list-item-selected-color":r.listItemSelectedColor,"--list-item-selected-background-color":r.listItemSelectedBackgroundColor,"--list-item-color":r.listItemColor,"--list-border-radius":`${r.listBorderRadius}`,"--list-border-color":r.listBorderColor,"--list-width":r.isListSameWidth?r.width:"fit-content","--list-border-width":`${r.listBorderWidth}px`,"--footer-border":`${r.footerBorderWidth}px solid ${r.footerBorderColor}`,"--dropdown-opacity":r.isDisabled?"0.5":"1","--dropdown-cursor":r.isDisabled?"not-allowed":"pointer","--dropdown-font-size":r.fontSize?r.fontSize:"14px"})),_=t.computed(()=>({height:`${r.arrowHeight}px`,width:`${r.arrowWidth}px`}));function f(){r.isDisabled||(s.value=!s.value)}function o(c){g.value&&!g.value.contains(c.target)&&(s.value=!1)}function m(c,l){r.isMultipleOption?i.value=-1:(i.value=l,s.value=!1),d.value=c,a("input",d.value),a("update:modelValue",d.value)}function x(){s.value=!1,a("click-ready")}return t.onMounted(()=>{document.addEventListener("click",o)}),t.onBeforeMount(()=>{document.removeEventListener("click",o)}),(c,l)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:g,class:"gsc-dropdown",style:t.normalizeStyle(n.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:f},[t.createElementVNode("div",aY,[t.renderSlot(c.$slots,"default",{selectedItem:d.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":s.value}]),style:t.normalizeStyle(_.value)},[(t.openBlock(),t.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,nY)],8,rY))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",iY,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${r.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,p)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:p===i.value}]),key:p,onClick:h=>m(u,p)},[t.renderSlot(c.$slots,"availableItem",{item:u})],10,oY))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",sY,[t.createVNode(t.unref(tY),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:x})])):t.createCommentVNode("",!0)])],512),[[t.vShow,s.value]])]),_:3})],4))}},QNt="",cY={class:"card-trend-live__dropdown-category"},dY={class:"selected-item"},uY={class:"card-trend-live__body__categories"},pY={class:"card-trend-live__body__chart"},hY=Ti({__name:"CardTrendLive",props:{data:{type:Object,required:!0},teamTypeSelected:{type:String,default:"homeTeam"},trendTypeId:{type:Number,required:!0},teamIds:{type:Array,required:!0},teamAcronyms:{type:Array,required:!0},trendTypes:{type:Array,required:!0}},emits:["@update:subcategory-selected"],setup(e,{emit:a}){const r=e;let d=null;const g={width:"100%",borderRadius:"8px",height:"36px",borderColor:"#4f5861",activeBorderColor:"#cbee6b",backgroundColor:"#1C2A36",fontColor:"#bcc0c3",activeFontColor:"#FFFFFF",borderWidth:"1px",fontSize:"12px"},i={borderType:"solid",listBackgroundColor:"#2E3B46",listBorderColor:"rgba(255, 255, 255, 0.2)",listBorderRadius:"5px",height:"38px",borderWidth:.8,borderColor:"#58626b",backgroundColor:"#2E3B46",color:"#c0c4c7",listItemColor:"white",listItemSelectedBackgroundColor:"#2E3B46",arrowColor:"#fff",width:"290px",isListSameWidth:!0,isFooterVisible:!1,hoverBackgroundColor:"#2E3B46"},s=t.ref({}),n=t.ref(null),_=t.ref(0);t.watch(()=>r.data,m=>{m&&m.subcategories&&m.subcategories.length&&(s.value=m.subcategories[0])},{immediate:!0});function f(m){s.value=m,a("update:subcategory-selected",{data:r.data,subcategorySelected:m})}function o(){if(window.ResizeObserver)d=new ResizeObserver(()=>{_.value=n.value.clientWidth}),d.observe(n.value);else throw new Error("Resize observer not supported!")}return t.onMounted(()=>{o()}),t.onUnmounted(()=>{}),(m,x)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"cardTrendLive",ref:n,class:"card-trend-live"},[t.createElementVNode("div",{class:t.normalizeClass(["card-trend-live__title",{"is-mobile":_.value<=760}])},t.toDisplayString(e.data.name),3),t.withDirectives(t.createElementVNode("div",cY,[t.createVNode(t.unref(lY),t.mergeProps(i,{items:e.data.subcategories,"selected-item":s.value,"default-item-by-prop":{propName:"id",value:s.value.id},onInput:f}),{default:t.withCtx(({selectedItem:c})=>[t.createElementVNode("div",dY,t.toDisplayString(c.name),1)]),availableItem:t.withCtx(({item:c})=>[t.createElementVNode("div",null,t.toDisplayString(c.name),1)]),_:1},16,["items","selected-item","default-item-by-prop"])],512),[[t.vShow,_.value<=760]]),t.createElementVNode("div",{class:t.normalizeClass(["card-trend-live__body",{"is-mobile":_.value<=760}])},[t.createElementVNode("div",uY,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.data.subcategories,(c,l)=>(t.openBlock(),t.createElementBlock("div",{key:l},[t.createVNode(c9,t.mergeProps(g,{text:c.name,"is-active":s.value.id===c.id,onClick:u=>f(c)}),null,16,["text","is-active","onClick"])]))),128))]),t.createElementVNode("div",pY,[(t.openBlock(),t.createBlock(Hq,{typeId:e.trendTypeId,teamTypeSelected:e.teamTypeSelected,subcategorySelected:e.data.objectGraphProps.objectSubcategorySelected,teamIds:e.teamIds,"team-acronyms":e.teamAcronyms,types:e.trendTypes,containerWidth:_.value,key:e.trendTypeId},null,8,["typeId","teamTypeSelected","subcategorySelected","teamIds","team-acronyms","types","containerWidth"]))])],2)],512))}},[["__scopeId","data-v-d72387aa"]]),tBt="",m9=e=>(t.pushScopeId("data-v-02b04cad"),e=e(),t.popScopeId(),e),fY={class:"trending-live__header__radios"},mY={class:"trending-live__header__radios__group"},gY={class:"trending-live__header__switch"},yY={class:"trending-live__header__switch__control"},_Y=m9(()=>t.createElementVNode("span",null,"Acumulado",-1)),vY=m9(()=>t.createElementVNode("span",null,"Por periodo",-1)),bY={class:"trending-live__body"},xY=Ti({__name:"TrendLive",props:{game:{type:Object,default:()=>({gameId:79623,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:10,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})}},setup(e){const a=e,r=Tb();let d=null;const g=t.ref(!1),i=t.ref("both"),s=t.ref([]),n=t.ref(null),_=t.ref(0),f=t.computed(()=>[{label:"Ambos",name:"name",value:"both",isChecked:!1,radioPosition:"left"},{label:a.game.homeTeam?`${a.game.homeTeam.acronym}`:"Local",name:"name",value:"home",isChecked:!1,radioPosition:"left",logoUrl:a.game.homeTeam?p9(a.game.homeTeam.team_id):""},{label:a.game.awayTeam?`${a.game.awayTeam.acronym}`:"Visitante",name:"name",value:"away",isChecked:!1,radioPosition:"left",logoUrl:a.game.awayTeam?p9(a.game.awayTeam.team_id):""}]),o=t.computed(()=>i.value==="both"?"both":`${i.value==="home"?"home":"visiting"}Team`),m=t.computed(()=>g.value?2:1),x=t.computed(()=>a.game.homeTeam?i.value==="both"?[a.game.homeTeam.team_id,a.game.awayTeam.team_id]:[a.game[`${i.value}Team`].team_id]:[0,0]),c=t.computed(()=>a.game.homeTeam?i.value==="both"?[a.game.homeTeam.acronym,a.game.awayTeam.acronym]:[a.game[`${i.value}Team`].acronym]:[0,0]),l=t.computed(()=>[{id:1,name:"Acumulado"},{id:2,name:"Por periodo"}]);t.watch(()=>r.getters["nextGeneral/arrayFilledDataSortedByPriority"],h=>{s.value.length===0&&(h&&h.length?s.value=h.map(y=>{const b=Object.values(y.subcategories);return{...y,subcategories:b,objectGraphProps:{objectSubcategorySelected:b[0],numberCategoryId:b[0].id}}}):s.value=[])},{immediate:!0});function u({data:h,subcategorySelected:y}){h.objectGraphProps.numberCategoryId=y,h.objectGraphProps.objectSubcategorySelected=y}function p(){if(window.ResizeObserver)d=new ResizeObserver(()=>{_.value=n.value.clientWidth}),d.observe(n.value);else throw new Error("Resize observer not supported!")}return t.onMounted(()=>{p()}),(h,y)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"trendLive",ref:n,class:"trending-live"},[t.createElementVNode("div",{class:t.normalizeClass(["trending-live__header",{"is-mobile":_.value<580}])},[t.createElementVNode("div",fY,[t.createElementVNode("div",mY,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(f.value,(b,v)=>(t.openBlock(),t.createElementBlock("div",{key:v},[t.createVNode(t.unref(Vq),t.mergeProps({modelValue:i.value,"onUpdate:modelValue":y[0]||(y[0]=w=>i.value=w)},b),null,16,["modelValue"])]))),128))])]),t.createElementVNode("div",gY,[t.createElementVNode("div",yY,[_Y,t.createVNode(Lq,{modelValue:g.value,"onUpdate:modelValue":y[1]||(y[1]=b=>g.value=b)},null,8,["modelValue"]),vY])])],2),t.createElementVNode("div",bY,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value,(b,v)=>(t.openBlock(),t.createElementBlock("div",{class:"trending-live__body__card",key:v},[t.createVNode(hY,{data:b,"trend-type-id":m.value,"team-type-selected":o.value,"team-ids":x.value,"team-acronyms":c.value,"trend-types":l.value,"onUpdate:subcategorySelected":u},null,8,["data","trend-type-id","team-type-selected","team-ids","team-acronyms","trend-types"])]))),128))])],512))}},[["__scopeId","data-v-02b04cad"]]),rBt="",wY={name:"BarraLeft",props:{colors:{type:Array,required:!1,default:function(){return["#0033C5","#3bd8f1"]}},postmatch:{type:Number,required:!1,default:0},live:{type:Number,required:!1,default:0},showLiveData:{type:Boolean,required:!1,default:!0}},computed:{p(){return 350*this.postmatch+6},l(){return 350*this.live+10}}},kY=e=>(t.pushScopeId("data-v-49b2380c"),e=e(),t.popScopeId(),e),CY={class:"custom-progress-bar"},EY={xmlns:"http://www.w3.org/2000/svg",viewBox:"15 5 350 15","xmlns:xlink":"http://www.w3.org/1999/xlink",style:{width:"98%",transform:"rotate(180deg)"}},TY=kY(()=>t.createElementVNode("path",{d:" M10,10 L350,10 A1,1 0 1 1 350,15 L10,15 A1,1 0 1 1 10,10 z",fill:"#48525B"},null,-1)),SY=["d","fill"];function AY(e,a,r,d,g,i){return t.openBlock(),t.createElementBlock("div",CY,[(t.openBlock(),t.createElementBlock("svg",EY,[TY,t.createElementVNode("path",{d:`M10,10 L${i.p},10 A1,1 0 1 1 ${i.p},15 L10,15 A1,1 0 1 1 10,10 z`,fill:r.colors[0]},null,8,SY)]))])}const NY=Ti(wY,[["render",AY],["__scopeId","data-v-49b2380c"]]),nBt="",BY={name:"BarraRight",props:{colors:{type:Array,required:!1,default:function(){return["#CBEE6B","#3bd8f1"]}},postmatch:{type:Number,required:!1,default:0},live:{type:Number,required:!1,default:0}},computed:{...Ol("nextGeneral",["showLiveData"]),p(){return 350*this.postmatch+6},l(){return 350*this.live+10}}},IY=e=>(t.pushScopeId("data-v-054b26d4"),e=e(),t.popScopeId(),e),MY={class:"custom-progress-bar"},OY={xmlns:"http://www.w3.org/2000/svg",viewBox:"4 5 350 15","xmlns:xlink":"http://www.w3.org/1999/xlink",style:{width:"98%"}},PY=IY(()=>t.createElementVNode("path",{d:" M10,10 L350,10 A1,1 0 1 1 350,15 L10,15 A1,1 0 6 1 10,10 z",fill:"#48525B"},null,-1)),FY=["d","fill"];function RY(e,a,r,d,g,i){return t.openBlock(),t.createElementBlock("div",MY,[(t.openBlock(),t.createElementBlock("svg",OY,[PY,t.createElementVNode("path",{d:`M10,10 L${i.p},10 A1,1 0 1 1 ${i.p},15 L10,15 A1,1 0 1 1 10,10 z`,fill:r.colors[0]},null,8,FY)]))])}const zY=Ti(BY,[["render",RY],["__scopeId","data-v-054b26d4"]]);function g9(e,a){return function(){return e.apply(a,arguments)}}const{toString:VY}=Object.prototype,{getPrototypeOf:Ob}=Object,X1=(e=>a=>{const r=VY.call(a);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Dc=e=>(e=e.toLowerCase(),a=>X1(a)===e),K1=e=>a=>typeof a===e,{isArray:ch}=Array,Yf=K1("undefined");function LY(e){return e!==null&&!Yf(e)&&e.constructor!==null&&!Yf(e.constructor)&&Ql(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const y9=Dc("ArrayBuffer");function DY(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&y9(e.buffer),a}const $Y=K1("string"),Ql=K1("function"),_9=K1("number"),J1=e=>e!==null&&typeof e=="object",jY=e=>e===!0||e===!1,Q1=e=>{if(X1(e)!=="object")return!1;const a=Ob(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},UY=Dc("Date"),HY=Dc("File"),GY=Dc("Blob"),WY=Dc("FileList"),qY=e=>J1(e)&&Ql(e.pipe),YY=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||Ql(e.append)&&((a=X1(e))==="formdata"||a==="object"&&Ql(e.toString)&&e.toString()==="[object FormData]"))},ZY=Dc("URLSearchParams"),[XY,KY,JY,QY]=["ReadableStream","Request","Response","Headers"].map(Dc),eZ=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Zf(e,a,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let d,g;if(typeof e!="object"&&(e=[e]),ch(e))for(d=0,g=e.length;d<g;d++)a.call(null,e[d],d,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let n;for(d=0;d<s;d++)n=i[d],a.call(null,e[n],n,e)}}function v9(e,a){a=a.toLowerCase();const r=Object.keys(e);let d=r.length,g;for(;d-- >0;)if(g=r[d],a===g.toLowerCase())return g;return null}const b9=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),x9=e=>!Yf(e)&&e!==b9;function Pb(){const{caseless:e}=x9(this)&&this||{},a={},r=(d,g)=>{const i=e&&v9(a,g)||g;Q1(a[i])&&Q1(d)?a[i]=Pb(a[i],d):Q1(d)?a[i]=Pb({},d):ch(d)?a[i]=d.slice():a[i]=d};for(let d=0,g=arguments.length;d<g;d++)arguments[d]&&Zf(arguments[d],r);return a}const tZ=(e,a,r,{allOwnKeys:d}={})=>(Zf(a,(g,i)=>{r&&Ql(g)?e[i]=g9(g,r):e[i]=g},{allOwnKeys:d}),e),aZ=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),rZ=(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)},nZ=(e,a,r,d)=>{let g,i,s;const n={};if(a=a||{},e==null)return a;do{for(g=Object.getOwnPropertyNames(e),i=g.length;i-- >0;)s=g[i],(!d||d(s,e,a))&&!n[s]&&(a[s]=e[s],n[s]=!0);e=r!==!1&&Ob(e)}while(e&&(!r||r(e,a))&&e!==Object.prototype);return a},iZ=(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},oZ=e=>{if(!e)return null;if(ch(e))return e;let a=e.length;if(!_9(a))return null;const r=new Array(a);for(;a-- >0;)r[a]=e[a];return r},sZ=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&Ob(Uint8Array)),lZ=(e,a)=>{const d=(e&&e[Symbol.iterator]).call(e);let g;for(;(g=d.next())&&!g.done;){const i=g.value;a.call(e,i[0],i[1])}},cZ=(e,a)=>{let r;const d=[];for(;(r=e.exec(a))!==null;)d.push(r);return d},dZ=Dc("HTMLFormElement"),uZ=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,d,g){return d.toUpperCase()+g}),w9=(({hasOwnProperty:e})=>(a,r)=>e.call(a,r))(Object.prototype),pZ=Dc("RegExp"),k9=(e,a)=>{const r=Object.getOwnPropertyDescriptors(e),d={};Zf(r,(g,i)=>{let s;(s=a(g,i,e))!==!1&&(d[i]=s||g)}),Object.defineProperties(e,d)},hZ=e=>{k9(e,(a,r)=>{if(Ql(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const d=e[r];if(Ql(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+"'")})}})},fZ=(e,a)=>{const r={},d=g=>{g.forEach(i=>{r[i]=!0})};return ch(e)?d(e):d(String(e).split(a)),r},mZ=()=>{},gZ=(e,a)=>e!=null&&Number.isFinite(e=+e)?e:a,Fb="abcdefghijklmnopqrstuvwxyz",C9="0123456789",E9={DIGIT:C9,ALPHA:Fb,ALPHA_DIGIT:Fb+Fb.toUpperCase()+C9},yZ=(e=16,a=E9.ALPHA_DIGIT)=>{let r="";const{length:d}=a;for(;e--;)r+=a[Math.random()*d|0];return r};function _Z(e){return!!(e&&Ql(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const vZ=e=>{const a=new Array(10),r=(d,g)=>{if(J1(d)){if(a.indexOf(d)>=0)return;if(!("toJSON"in d)){a[g]=d;const i=ch(d)?[]:{};return Zf(d,(s,n)=>{const _=r(s,g+1);!Yf(_)&&(i[n]=_)}),a[g]=void 0,i}}return d};return r(e,0)},bZ=Dc("AsyncFunction"),dr={isArray:ch,isArrayBuffer:y9,isBuffer:LY,isFormData:YY,isArrayBufferView:DY,isString:$Y,isNumber:_9,isBoolean:jY,isObject:J1,isPlainObject:Q1,isReadableStream:XY,isRequest:KY,isResponse:JY,isHeaders:QY,isUndefined:Yf,isDate:UY,isFile:HY,isBlob:GY,isRegExp:pZ,isFunction:Ql,isStream:qY,isURLSearchParams:ZY,isTypedArray:sZ,isFileList:WY,forEach:Zf,merge:Pb,extend:tZ,trim:eZ,stripBOM:aZ,inherits:rZ,toFlatObject:nZ,kindOf:X1,kindOfTest:Dc,endsWith:iZ,toArray:oZ,forEachEntry:lZ,matchAll:cZ,isHTMLForm:dZ,hasOwnProperty:w9,hasOwnProp:w9,reduceDescriptors:k9,freezeMethods:hZ,toObjectSet:fZ,toCamelCase:uZ,noop:mZ,toFiniteNumber:gZ,findKey:v9,global:b9,isContextDefined:x9,ALPHABET:E9,generateString:yZ,isSpecCompliantForm:_Z,toJSONObject:vZ,isAsyncFn:bZ,isThenable:e=>e&&(J1(e)||Ql(e))&&Ql(e.then)&&Ql(e.catch)};function hn(e,a,r,d,g){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),g&&(this.response=g)}dr.inherits(hn,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:dr.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const T9=hn.prototype,S9={};["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=>{S9[e]={value:e}}),Object.defineProperties(hn,S9),Object.defineProperty(T9,"isAxiosError",{value:!0}),hn.from=(e,a,r,d,g,i)=>{const s=Object.create(T9);return dr.toFlatObject(e,s,function(_){return _!==Error.prototype},n=>n!=="isAxiosError"),hn.call(s,e.message,a,r,d,g),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const xZ=null;function Rb(e){return dr.isPlainObject(e)||dr.isArray(e)}function A9(e){return dr.endsWith(e,"[]")?e.slice(0,-2):e}function N9(e,a,r){return e?e.concat(a).map(function(g,i){return g=A9(g),!r&&i?"["+g+"]":g}).join(r?".":""):a}function wZ(e){return dr.isArray(e)&&!e.some(Rb)}const kZ=dr.toFlatObject(dr,{},null,function(a){return/^is[A-Z]/.test(a)});function eg(e,a,r){if(!dr.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,r=dr.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(u,p){return!dr.isUndefined(p[u])});const d=r.metaTokens,g=r.visitor||o,i=r.dots,s=r.indexes,_=(r.Blob||typeof Blob<"u"&&Blob)&&dr.isSpecCompliantForm(a);if(!dr.isFunction(g))throw new TypeError("visitor must be a function");function f(l){if(l===null)return"";if(dr.isDate(l))return l.toISOString();if(!_&&dr.isBlob(l))throw new hn("Blob is not supported. Use a Buffer instead.");return dr.isArrayBuffer(l)||dr.isTypedArray(l)?_&&typeof Blob=="function"?new Blob([l]):Buffer.from(l):l}function o(l,u,p){let h=l;if(l&&!p&&typeof l=="object"){if(dr.endsWith(u,"{}"))u=d?u:u.slice(0,-2),l=JSON.stringify(l);else if(dr.isArray(l)&&wZ(l)||(dr.isFileList(l)||dr.endsWith(u,"[]"))&&(h=dr.toArray(l)))return u=A9(u),h.forEach(function(b,v){!(dr.isUndefined(b)||b===null)&&a.append(s===!0?N9([u],v,i):s===null?u:u+"[]",f(b))}),!1}return Rb(l)?!0:(a.append(N9(p,u,i),f(l)),!1)}const m=[],x=Object.assign(kZ,{defaultVisitor:o,convertValue:f,isVisitable:Rb});function c(l,u){if(!dr.isUndefined(l)){if(m.indexOf(l)!==-1)throw Error("Circular reference detected in "+u.join("."));m.push(l),dr.forEach(l,function(h,y){(!(dr.isUndefined(h)||h===null)&&g.call(a,h,dr.isString(y)?y.trim():y,u,x))===!0&&c(h,u?u.concat(y):[y])}),m.pop()}}if(!dr.isObject(e))throw new TypeError("data must be an object");return c(e),a}function B9(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(d){return a[d]})}function zb(e,a){this._pairs=[],e&&eg(e,this,a)}const I9=zb.prototype;I9.append=function(a,r){this._pairs.push([a,r])},I9.toString=function(a){const r=a?function(d){return a.call(this,d,B9)}:B9;return this._pairs.map(function(g){return r(g[0])+"="+r(g[1])},"").join("&")};function CZ(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function M9(e,a,r){if(!a)return e;const d=r&&r.encode||CZ,g=r&&r.serialize;let i;if(g?i=g(a,r):i=dr.isURLSearchParams(a)?a.toString():new zb(a,r).toString(d),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class EZ{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){dr.forEach(this.handlers,function(d){d!==null&&a(d)})}}const O9=EZ,P9={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},TZ={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:zb,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Vb=typeof window<"u"&&typeof document<"u",SZ=(e=>Vb&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),AZ=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),NZ=Vb&&window.location.href||"http://localhost",$c={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Vb,hasStandardBrowserEnv:SZ,hasStandardBrowserWebWorkerEnv:AZ,origin:NZ},Symbol.toStringTag,{value:"Module"})),...TZ};function BZ(e,a){return eg(e,new $c.classes.URLSearchParams,Object.assign({visitor:function(r,d,g,i){return $c.isNode&&dr.isBuffer(r)?(this.append(d,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},a))}function IZ(e){return dr.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function MZ(e){const a={},r=Object.keys(e);let d;const g=r.length;let i;for(d=0;d<g;d++)i=r[d],a[i]=e[i];return a}function F9(e){function a(r,d,g,i){let s=r[i++];if(s==="__proto__")return!0;const n=Number.isFinite(+s),_=i>=r.length;return s=!s&&dr.isArray(g)?g.length:s,_?(dr.hasOwnProp(g,s)?g[s]=[g[s],d]:g[s]=d,!n):((!g[s]||!dr.isObject(g[s]))&&(g[s]=[]),a(r,d,g[s],i)&&dr.isArray(g[s])&&(g[s]=MZ(g[s])),!n)}if(dr.isFormData(e)&&dr.isFunction(e.entries)){const r={};return dr.forEachEntry(e,(d,g)=>{a(IZ(d),g,r,0)}),r}return null}function OZ(e,a,r){if(dr.isString(e))try{return(a||JSON.parse)(e),dr.trim(e)}catch(d){if(d.name!=="SyntaxError")throw d}return(r||JSON.stringify)(e)}const Lb={transitional:P9,adapter:["xhr","http","fetch"],transformRequest:[function(a,r){const d=r.getContentType()||"",g=d.indexOf("application/json")>-1,i=dr.isObject(a);if(i&&dr.isHTMLForm(a)&&(a=new FormData(a)),dr.isFormData(a))return g?JSON.stringify(F9(a)):a;if(dr.isArrayBuffer(a)||dr.isBuffer(a)||dr.isStream(a)||dr.isFile(a)||dr.isBlob(a)||dr.isReadableStream(a))return a;if(dr.isArrayBufferView(a))return a.buffer;if(dr.isURLSearchParams(a))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),a.toString();let n;if(i){if(d.indexOf("application/x-www-form-urlencoded")>-1)return BZ(a,this.formSerializer).toString();if((n=dr.isFileList(a))||d.indexOf("multipart/form-data")>-1){const _=this.env&&this.env.FormData;return eg(n?{"files[]":a}:a,_&&new _,this.formSerializer)}}return i||g?(r.setContentType("application/json",!1),OZ(a)):a}],transformResponse:[function(a){const r=this.transitional||Lb.transitional,d=r&&r.forcedJSONParsing,g=this.responseType==="json";if(dr.isResponse(a)||dr.isReadableStream(a))return a;if(a&&dr.isString(a)&&(d&&!this.responseType||g)){const s=!(r&&r.silentJSONParsing)&&g;try{return JSON.parse(a)}catch(n){if(s)throw n.name==="SyntaxError"?hn.from(n,hn.ERR_BAD_RESPONSE,this,null,this.response):n}}return a}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:$c.classes.FormData,Blob:$c.classes.Blob},validateStatus:function(a){return a>=200&&a<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};dr.forEach(["delete","get","head","post","put","patch"],e=>{Lb.headers[e]={}});const Db=Lb,PZ=dr.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"]),FZ=e=>{const a={};let r,d,g;return e&&e.split(`
|
|
19
19
|
`).forEach(function(s){g=s.indexOf(":"),r=s.substring(0,g).trim().toLowerCase(),d=s.substring(g+1).trim(),!(!r||a[r]&&PZ[r])&&(r==="set-cookie"?a[r]?a[r].push(d):a[r]=[d]:a[r]=a[r]?a[r]+", "+d:d)}),a},R9=Symbol("internals");function Xf(e){return e&&String(e).trim().toLowerCase()}function tg(e){return e===!1||e==null?e:dr.isArray(e)?e.map(tg):String(e)}function RZ(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 zZ=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function $b(e,a,r,d,g){if(dr.isFunction(d))return d.call(this,a,r);if(g&&(a=r),!!dr.isString(a)){if(dr.isString(d))return a.indexOf(d)!==-1;if(dr.isRegExp(d))return d.test(a)}}function VZ(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,r,d)=>r.toUpperCase()+d)}function LZ(e,a){const r=dr.toCamelCase(" "+a);["get","set","has"].forEach(d=>{Object.defineProperty(e,d+r,{value:function(g,i,s){return this[d].call(this,a,g,i,s)},configurable:!0})})}class ag{constructor(a){a&&this.set(a)}set(a,r,d){const g=this;function i(n,_,f){const o=Xf(_);if(!o)throw new Error("header name must be a non-empty string");const m=dr.findKey(g,o);(!m||g[m]===void 0||f===!0||f===void 0&&g[m]!==!1)&&(g[m||_]=tg(n))}const s=(n,_)=>dr.forEach(n,(f,o)=>i(f,o,_));if(dr.isPlainObject(a)||a instanceof this.constructor)s(a,r);else if(dr.isString(a)&&(a=a.trim())&&!zZ(a))s(FZ(a),r);else if(dr.isHeaders(a))for(const[n,_]of a.entries())i(_,n,d);else a!=null&&i(r,a,d);return this}get(a,r){if(a=Xf(a),a){const d=dr.findKey(this,a);if(d){const g=this[d];if(!r)return g;if(r===!0)return RZ(g);if(dr.isFunction(r))return r.call(this,g,d);if(dr.isRegExp(r))return r.exec(g);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,r){if(a=Xf(a),a){const d=dr.findKey(this,a);return!!(d&&this[d]!==void 0&&(!r||$b(this,this[d],d,r)))}return!1}delete(a,r){const d=this;let g=!1;function i(s){if(s=Xf(s),s){const n=dr.findKey(d,s);n&&(!r||$b(d,d[n],n,r))&&(delete d[n],g=!0)}}return dr.isArray(a)?a.forEach(i):i(a),g}clear(a){const r=Object.keys(this);let d=r.length,g=!1;for(;d--;){const i=r[d];(!a||$b(this,this[i],i,a,!0))&&(delete this[i],g=!0)}return g}normalize(a){const r=this,d={};return dr.forEach(this,(g,i)=>{const s=dr.findKey(d,i);if(s){r[s]=tg(g),delete r[i];return}const n=a?VZ(i):String(i).trim();n!==i&&delete r[i],r[n]=tg(g),d[n]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const r=Object.create(null);return dr.forEach(this,(d,g)=>{d!=null&&d!==!1&&(r[g]=a&&dr.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(`
|
|
20
|
-
`)}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(g=>d.set(g)),d}static accessor(a){const d=(this[R9]=this[R9]={accessors:{}}).accessors,g=this.prototype;function i(s){const n=Xf(s);d[n]||(LZ(g,s),d[n]=!0)}return dr.isArray(a)?a.forEach(i):i(a),this}}ag.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),dr.reduceDescriptors(ag.prototype,({value:e},a)=>{let r=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(d){this[r]=d}}}),dr.freezeMethods(ag);const jc=ag;function jb(e,a){const r=this||Db,d=a||r,g=jc.from(d.headers);let i=d.data;return dr.forEach(e,function(n){i=n.call(r,i,g.normalize(),a?a.status:void 0)}),g.normalize(),i}function z9(e){return!!(e&&e.__CANCEL__)}function dh(e,a,r){hn.call(this,e??"canceled",hn.ERR_CANCELED,a,r),this.name="CanceledError"}dr.inherits(dh,hn,{__CANCEL__:!0});function V9(e,a,r){const d=r.config.validateStatus;!r.status||!d||d(r.status)?e(r):a(new hn("Request failed with status code "+r.status,[hn.ERR_BAD_REQUEST,hn.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function DZ(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function $Z(e,a){e=e||10;const r=new Array(e),d=new Array(e);let g=0,i=0,s;return a=a!==void 0?a:1e3,function(_){const f=Date.now(),o=d[i];s||(s=f),r[g]=_,d[g]=f;let m=i,x=0;for(;m!==g;)x+=r[m++],m=m%e;if(g=(g+1)%e,g===i&&(i=(i+1)%e),f-s<a)return;const c=o&&f-o;return c?Math.round(x*1e3/c):void 0}}function jZ(e,a){let r=0;const d=1e3/a;let g=null;return function(){const s=this===!0,n=Date.now();if(s||n-r>d)return g&&(clearTimeout(g),g=null),r=n,e.apply(null,arguments);g||(g=setTimeout(()=>(g=null,r=Date.now(),e.apply(null,arguments)),d-(n-r)))}}const rg=(e,a,r=3)=>{let d=0;const g=$Z(50,250);return jZ(i=>{const s=i.loaded,n=i.lengthComputable?i.total:void 0,_=s-d,f=g(_),o=s<=n;d=s;const m={loaded:s,total:n,progress:n?s/n:void 0,bytes:_,rate:f||void 0,estimated:f&&n&&o?(n-s)/f:void 0,event:i,lengthComputable:n!=null};m[a?"download":"upload"]=!0,e(m)},r)},UZ=$c.hasStandardBrowserEnv?function(){const a=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let d;function g(i){let s=i;return a&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return d=g(window.location.href),function(s){const n=dr.isString(s)?g(s):s;return n.protocol===d.protocol&&n.host===d.host}}():function(){return function(){return!0}}(),HZ=$c.hasStandardBrowserEnv?{write(e,a,r,d,g,i){const s=[e+"="+encodeURIComponent(a)];dr.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),dr.isString(d)&&s.push("path="+d),dr.isString(g)&&s.push("domain="+g),i===!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 GZ(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function WZ(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function L9(e,a){return e&&!GZ(a)?WZ(e,a):a}const D9=e=>e instanceof jc?{...e}:e;function wp(e,a){a=a||{};const r={};function d(f,o,m){return dr.isPlainObject(f)&&dr.isPlainObject(o)?dr.merge.call({caseless:m},f,o):dr.isPlainObject(o)?dr.merge({},o):dr.isArray(o)?o.slice():o}function g(f,o,m){if(dr.isUndefined(o)){if(!dr.isUndefined(f))return d(void 0,f,m)}else return d(f,o,m)}function i(f,o){if(!dr.isUndefined(o))return d(void 0,o)}function s(f,o){if(dr.isUndefined(o)){if(!dr.isUndefined(f))return d(void 0,f)}else return d(void 0,o)}function n(f,o,m){if(m in a)return d(f,o);if(m in e)return d(void 0,f)}const _={url:i,method:i,data:i,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:n,headers:(f,o)=>g(D9(f),D9(o),!0)};return dr.forEach(Object.keys(Object.assign({},e,a)),function(o){const m=_[o]||g,x=m(e[o],a[o],o);dr.isUndefined(x)&&m!==n||(r[o]=x)}),r}const $9=e=>{const a=wp({},e);let{data:r,withXSRFToken:d,xsrfHeaderName:g,xsrfCookieName:i,headers:s,auth:n}=a;a.headers=s=jc.from(s),a.url=M9(L9(a.baseURL,a.url),e.params,e.paramsSerializer),n&&s.set("Authorization","Basic "+btoa((n.username||"")+":"+(n.password?unescape(encodeURIComponent(n.password)):"")));let _;if(dr.isFormData(r)){if($c.hasStandardBrowserEnv||$c.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((_=s.getContentType())!==!1){const[f,...o]=_?_.split(";").map(m=>m.trim()).filter(Boolean):[];s.setContentType([f||"multipart/form-data",...o].join("; "))}}if($c.hasStandardBrowserEnv&&(d&&dr.isFunction(d)&&(d=d(a)),d||d!==!1&&UZ(a.url))){const f=g&&i&&HZ.read(i);f&&s.set(g,f)}return a},qZ=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,d){const g=$9(e);let i=g.data;const s=jc.from(g.headers).normalize();let{responseType:n}=g,_;function f(){g.cancelToken&&g.cancelToken.unsubscribe(_),g.signal&&g.signal.removeEventListener("abort",_)}let o=new XMLHttpRequest;o.open(g.method.toUpperCase(),g.url,!0),o.timeout=g.timeout;function m(){if(!o)return;const c=jc.from("getAllResponseHeaders"in o&&o.getAllResponseHeaders()),u={data:!n||n==="text"||n==="json"?o.responseText:o.response,status:o.status,statusText:o.statusText,headers:c,config:e,request:o};V9(function(h){r(h),f()},function(h){d(h),f()},u),o=null}"onloadend"in o?o.onloadend=m:o.onreadystatechange=function(){!o||o.readyState!==4||o.status===0&&!(o.responseURL&&o.responseURL.indexOf("file:")===0)||setTimeout(m)},o.onabort=function(){o&&(d(new hn("Request aborted",hn.ECONNABORTED,g,o)),o=null)},o.onerror=function(){d(new hn("Network Error",hn.ERR_NETWORK,g,o)),o=null},o.ontimeout=function(){let l=g.timeout?"timeout of "+g.timeout+"ms exceeded":"timeout exceeded";const u=g.transitional||P9;g.timeoutErrorMessage&&(l=g.timeoutErrorMessage),d(new hn(l,u.clarifyTimeoutError?hn.ETIMEDOUT:hn.ECONNABORTED,g,o)),o=null},i===void 0&&s.setContentType(null),"setRequestHeader"in o&&dr.forEach(s.toJSON(),function(l,u){o.setRequestHeader(u,l)}),dr.isUndefined(g.withCredentials)||(o.withCredentials=!!g.withCredentials),n&&n!=="json"&&(o.responseType=g.responseType),typeof g.onDownloadProgress=="function"&&o.addEventListener("progress",rg(g.onDownloadProgress,!0)),typeof g.onUploadProgress=="function"&&o.upload&&o.upload.addEventListener("progress",rg(g.onUploadProgress)),(g.cancelToken||g.signal)&&(_=c=>{o&&(d(!c||c.type?new dh(null,e,o):c),o.abort(),o=null)},g.cancelToken&&g.cancelToken.subscribe(_),g.signal&&(g.signal.aborted?_():g.signal.addEventListener("abort",_)));const x=DZ(g.url);if(x&&$c.protocols.indexOf(x)===-1){d(new hn("Unsupported protocol "+x+":",hn.ERR_BAD_REQUEST,e));return}o.send(i||null)})},YZ=(e,a)=>{let r=new AbortController,d;const g=function(_){if(!d){d=!0,s();const f=_ instanceof Error?_:this.reason;r.abort(f instanceof hn?f:new dh(f instanceof Error?f.message:f))}};let i=a&&setTimeout(()=>{g(new hn(`timeout ${a} of ms exceeded`,hn.ETIMEDOUT))},a);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(_=>{_&&(_.removeEventListener?_.removeEventListener("abort",g):_.unsubscribe(g))}),e=null)};e.forEach(_=>_&&_.addEventListener&&_.addEventListener("abort",g));const{signal:n}=r;return n.unsubscribe=s,[n,()=>{i&&clearTimeout(i),i=null}]},ZZ=function*(e,a){let r=e.byteLength;if(!a||r<a){yield e;return}let d=0,g;for(;d<r;)g=d+a,yield e.slice(d,g),d=g},XZ=async function*(e,a,r){for await(const d of e)yield*ZZ(ArrayBuffer.isView(d)?d:await r(String(d)),a)},j9=(e,a,r,d,g)=>{const i=XZ(e,a,g);let s=0;return new ReadableStream({type:"bytes",async pull(n){const{done:_,value:f}=await i.next();if(_){n.close(),d();return}let o=f.byteLength;r&&r(s+=o),n.enqueue(new Uint8Array(f))},cancel(n){return d(n),i.return()}},{highWaterMark:2})},U9=(e,a)=>{const r=e!=null;return d=>setTimeout(()=>a({lengthComputable:r,total:e,loaded:d}))},ng=typeof fetch<"u",H9=ng&&typeof ReadableStream<"u",Ub=ng&&(typeof TextEncoder<"u"?(e=>a=>e.encode(a))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),KZ=H9&&(()=>{let e=!1;const a=new Request($c.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!a})(),G9=64*1024,Hb=H9&&!!(()=>{try{return dr.isReadableStream(new Response("").body)}catch{}})(),ig={stream:Hb&&(e=>e.body)};ng&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(a=>{!ig[a]&&(ig[a]=dr.isFunction(e[a])?r=>r[a]():(r,d)=>{throw new hn(`Response type '${a}' is not supported`,hn.ERR_NOT_SUPPORT,d)})})})(new Response);const JZ=async e=>{if(e==null)return 0;if(dr.isBlob(e))return e.size;if(dr.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(dr.isArrayBufferView(e))return e.byteLength;if(dr.isURLSearchParams(e)&&(e=e+""),dr.isString(e))return(await Ub(e)).byteLength},QZ=async(e,a)=>{const r=dr.toFiniteNumber(e.getContentLength());return r??JZ(a)},Gb={http:xZ,xhr:qZ,fetch:ng&&(async e=>{let{url:a,method:r,data:d,signal:g,cancelToken:i,timeout:s,onDownloadProgress:n,onUploadProgress:_,responseType:f,headers:o,withCredentials:m="same-origin",fetchOptions:x}=$9(e);f=f?(f+"").toLowerCase():"text";let[c,l]=g||i||s?YZ([g,i],s):[],u,p;const h=()=>{!u&&setTimeout(()=>{c&&c.unsubscribe()}),u=!0};let y;try{if(_&&KZ&&r!=="get"&&r!=="head"&&(y=await QZ(o,d))!==0){let C=new Request(a,{method:"POST",body:d,duplex:"half"}),k;dr.isFormData(d)&&(k=C.headers.get("content-type"))&&o.setContentType(k),C.body&&(d=j9(C.body,G9,U9(y,rg(_)),null,Ub))}dr.isString(m)||(m=m?"cors":"omit"),p=new Request(a,{...x,signal:c,method:r.toUpperCase(),headers:o.normalize().toJSON(),body:d,duplex:"half",withCredentials:m});let b=await fetch(p);const v=Hb&&(f==="stream"||f==="response");if(Hb&&(n||v)){const C={};["status","statusText","headers"].forEach(N=>{C[N]=b[N]});const k=dr.toFiniteNumber(b.headers.get("content-length"));b=new Response(j9(b.body,G9,n&&U9(k,rg(n,!0)),v&&h,Ub),C)}f=f||"text";let w=await ig[dr.findKey(ig,f)||"text"](b,e);return!v&&h(),l&&l(),await new Promise((C,k)=>{V9(C,k,{data:w,headers:jc.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 hn("Network Error",hn.ERR_NETWORK,e,p),{cause:b.cause||b}):hn.from(b,b&&b.code,e,p)}})};dr.forEach(Gb,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const W9=e=>`- ${e}`,eX=e=>dr.isFunction(e)||e===null||e===!1,q9={getAdapter:e=>{e=dr.isArray(e)?e:[e];const{length:a}=e;let r,d;const g={};for(let i=0;i<a;i++){r=e[i];let s;if(d=r,!eX(r)&&(d=Gb[(s=String(r)).toLowerCase()],d===void 0))throw new hn(`Unknown adapter '${s}'`);if(d)break;g[s||"#"+i]=d}if(!d){const i=Object.entries(g).map(([n,_])=>`adapter ${n} `+(_===!1?"is not supported by the environment":"is not available in the build"));let s=a?i.length>1?`since :
|
|
20
|
+
`)}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(g=>d.set(g)),d}static accessor(a){const d=(this[R9]=this[R9]={accessors:{}}).accessors,g=this.prototype;function i(s){const n=Xf(s);d[n]||(LZ(g,s),d[n]=!0)}return dr.isArray(a)?a.forEach(i):i(a),this}}ag.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),dr.reduceDescriptors(ag.prototype,({value:e},a)=>{let r=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(d){this[r]=d}}}),dr.freezeMethods(ag);const jc=ag;function jb(e,a){const r=this||Db,d=a||r,g=jc.from(d.headers);let i=d.data;return dr.forEach(e,function(n){i=n.call(r,i,g.normalize(),a?a.status:void 0)}),g.normalize(),i}function z9(e){return!!(e&&e.__CANCEL__)}function dh(e,a,r){hn.call(this,e??"canceled",hn.ERR_CANCELED,a,r),this.name="CanceledError"}dr.inherits(dh,hn,{__CANCEL__:!0});function V9(e,a,r){const d=r.config.validateStatus;!r.status||!d||d(r.status)?e(r):a(new hn("Request failed with status code "+r.status,[hn.ERR_BAD_REQUEST,hn.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function DZ(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function $Z(e,a){e=e||10;const r=new Array(e),d=new Array(e);let g=0,i=0,s;return a=a!==void 0?a:1e3,function(_){const f=Date.now(),o=d[i];s||(s=f),r[g]=_,d[g]=f;let m=i,x=0;for(;m!==g;)x+=r[m++],m=m%e;if(g=(g+1)%e,g===i&&(i=(i+1)%e),f-s<a)return;const c=o&&f-o;return c?Math.round(x*1e3/c):void 0}}function jZ(e,a){let r=0;const d=1e3/a;let g=null;return function(){const s=this===!0,n=Date.now();if(s||n-r>d)return g&&(clearTimeout(g),g=null),r=n,e.apply(null,arguments);g||(g=setTimeout(()=>(g=null,r=Date.now(),e.apply(null,arguments)),d-(n-r)))}}const rg=(e,a,r=3)=>{let d=0;const g=$Z(50,250);return jZ(i=>{const s=i.loaded,n=i.lengthComputable?i.total:void 0,_=s-d,f=g(_),o=s<=n;d=s;const m={loaded:s,total:n,progress:n?s/n:void 0,bytes:_,rate:f||void 0,estimated:f&&n&&o?(n-s)/f:void 0,event:i,lengthComputable:n!=null};m[a?"download":"upload"]=!0,e(m)},r)},UZ=$c.hasStandardBrowserEnv?function(){const a=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let d;function g(i){let s=i;return a&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return d=g(window.location.href),function(s){const n=dr.isString(s)?g(s):s;return n.protocol===d.protocol&&n.host===d.host}}():function(){return function(){return!0}}(),HZ=$c.hasStandardBrowserEnv?{write(e,a,r,d,g,i){const s=[e+"="+encodeURIComponent(a)];dr.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),dr.isString(d)&&s.push("path="+d),dr.isString(g)&&s.push("domain="+g),i===!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 GZ(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function WZ(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function L9(e,a){return e&&!GZ(a)?WZ(e,a):a}const D9=e=>e instanceof jc?{...e}:e;function wp(e,a){a=a||{};const r={};function d(f,o,m){return dr.isPlainObject(f)&&dr.isPlainObject(o)?dr.merge.call({caseless:m},f,o):dr.isPlainObject(o)?dr.merge({},o):dr.isArray(o)?o.slice():o}function g(f,o,m){if(dr.isUndefined(o)){if(!dr.isUndefined(f))return d(void 0,f,m)}else return d(f,o,m)}function i(f,o){if(!dr.isUndefined(o))return d(void 0,o)}function s(f,o){if(dr.isUndefined(o)){if(!dr.isUndefined(f))return d(void 0,f)}else return d(void 0,o)}function n(f,o,m){if(m in a)return d(f,o);if(m in e)return d(void 0,f)}const _={url:i,method:i,data:i,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:n,headers:(f,o)=>g(D9(f),D9(o),!0)};return dr.forEach(Object.keys(Object.assign({},e,a)),function(o){const m=_[o]||g,x=m(e[o],a[o],o);dr.isUndefined(x)&&m!==n||(r[o]=x)}),r}const $9=e=>{const a=wp({},e);let{data:r,withXSRFToken:d,xsrfHeaderName:g,xsrfCookieName:i,headers:s,auth:n}=a;a.headers=s=jc.from(s),a.url=M9(L9(a.baseURL,a.url),e.params,e.paramsSerializer),n&&s.set("Authorization","Basic "+btoa((n.username||"")+":"+(n.password?unescape(encodeURIComponent(n.password)):"")));let _;if(dr.isFormData(r)){if($c.hasStandardBrowserEnv||$c.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((_=s.getContentType())!==!1){const[f,...o]=_?_.split(";").map(m=>m.trim()).filter(Boolean):[];s.setContentType([f||"multipart/form-data",...o].join("; "))}}if($c.hasStandardBrowserEnv&&(d&&dr.isFunction(d)&&(d=d(a)),d||d!==!1&&UZ(a.url))){const f=g&&i&&HZ.read(i);f&&s.set(g,f)}return a},qZ=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,d){const g=$9(e);let i=g.data;const s=jc.from(g.headers).normalize();let{responseType:n}=g,_;function f(){g.cancelToken&&g.cancelToken.unsubscribe(_),g.signal&&g.signal.removeEventListener("abort",_)}let o=new XMLHttpRequest;o.open(g.method.toUpperCase(),g.url,!0),o.timeout=g.timeout;function m(){if(!o)return;const c=jc.from("getAllResponseHeaders"in o&&o.getAllResponseHeaders()),u={data:!n||n==="text"||n==="json"?o.responseText:o.response,status:o.status,statusText:o.statusText,headers:c,config:e,request:o};V9(function(h){r(h),f()},function(h){d(h),f()},u),o=null}"onloadend"in o?o.onloadend=m:o.onreadystatechange=function(){!o||o.readyState!==4||o.status===0&&!(o.responseURL&&o.responseURL.indexOf("file:")===0)||setTimeout(m)},o.onabort=function(){o&&(d(new hn("Request aborted",hn.ECONNABORTED,g,o)),o=null)},o.onerror=function(){d(new hn("Network Error",hn.ERR_NETWORK,g,o)),o=null},o.ontimeout=function(){let l=g.timeout?"timeout of "+g.timeout+"ms exceeded":"timeout exceeded";const u=g.transitional||P9;g.timeoutErrorMessage&&(l=g.timeoutErrorMessage),d(new hn(l,u.clarifyTimeoutError?hn.ETIMEDOUT:hn.ECONNABORTED,g,o)),o=null},i===void 0&&s.setContentType(null),"setRequestHeader"in o&&dr.forEach(s.toJSON(),function(l,u){o.setRequestHeader(u,l)}),dr.isUndefined(g.withCredentials)||(o.withCredentials=!!g.withCredentials),n&&n!=="json"&&(o.responseType=g.responseType),typeof g.onDownloadProgress=="function"&&o.addEventListener("progress",rg(g.onDownloadProgress,!0)),typeof g.onUploadProgress=="function"&&o.upload&&o.upload.addEventListener("progress",rg(g.onUploadProgress)),(g.cancelToken||g.signal)&&(_=c=>{o&&(d(!c||c.type?new dh(null,e,o):c),o.abort(),o=null)},g.cancelToken&&g.cancelToken.subscribe(_),g.signal&&(g.signal.aborted?_():g.signal.addEventListener("abort",_)));const x=DZ(g.url);if(x&&$c.protocols.indexOf(x)===-1){d(new hn("Unsupported protocol "+x+":",hn.ERR_BAD_REQUEST,e));return}o.send(i||null)})},YZ=(e,a)=>{let r=new AbortController,d;const g=function(_){if(!d){d=!0,s();const f=_ instanceof Error?_:this.reason;r.abort(f instanceof hn?f:new dh(f instanceof Error?f.message:f))}};let i=a&&setTimeout(()=>{g(new hn(`timeout ${a} of ms exceeded`,hn.ETIMEDOUT))},a);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(_=>{_&&(_.removeEventListener?_.removeEventListener("abort",g):_.unsubscribe(g))}),e=null)};e.forEach(_=>_&&_.addEventListener&&_.addEventListener("abort",g));const{signal:n}=r;return n.unsubscribe=s,[n,()=>{i&&clearTimeout(i),i=null}]},ZZ=function*(e,a){let r=e.byteLength;if(!a||r<a){yield e;return}let d=0,g;for(;d<r;)g=d+a,yield e.slice(d,g),d=g},XZ=async function*(e,a,r){for await(const d of e)yield*ZZ(ArrayBuffer.isView(d)?d:await r(String(d)),a)},j9=(e,a,r,d,g)=>{const i=XZ(e,a,g);let s=0;return new ReadableStream({type:"bytes",async pull(n){const{done:_,value:f}=await i.next();if(_){n.close(),d();return}let o=f.byteLength;r&&r(s+=o),n.enqueue(new Uint8Array(f))},cancel(n){return d(n),i.return()}},{highWaterMark:2})},U9=(e,a)=>{const r=e!=null;return d=>setTimeout(()=>a({lengthComputable:r,total:e,loaded:d}))},ng=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",H9=ng&&typeof ReadableStream=="function",Ub=ng&&(typeof TextEncoder=="function"?(e=>a=>e.encode(a))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),KZ=H9&&(()=>{let e=!1;const a=new Request($c.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!a})(),G9=64*1024,Hb=H9&&!!(()=>{try{return dr.isReadableStream(new Response("").body)}catch{}})(),ig={stream:Hb&&(e=>e.body)};ng&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(a=>{!ig[a]&&(ig[a]=dr.isFunction(e[a])?r=>r[a]():(r,d)=>{throw new hn(`Response type '${a}' is not supported`,hn.ERR_NOT_SUPPORT,d)})})})(new Response);const JZ=async e=>{if(e==null)return 0;if(dr.isBlob(e))return e.size;if(dr.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(dr.isArrayBufferView(e))return e.byteLength;if(dr.isURLSearchParams(e)&&(e=e+""),dr.isString(e))return(await Ub(e)).byteLength},QZ=async(e,a)=>{const r=dr.toFiniteNumber(e.getContentLength());return r??JZ(a)},Gb={http:xZ,xhr:qZ,fetch:ng&&(async e=>{let{url:a,method:r,data:d,signal:g,cancelToken:i,timeout:s,onDownloadProgress:n,onUploadProgress:_,responseType:f,headers:o,withCredentials:m="same-origin",fetchOptions:x}=$9(e);f=f?(f+"").toLowerCase():"text";let[c,l]=g||i||s?YZ([g,i],s):[],u,p;const h=()=>{!u&&setTimeout(()=>{c&&c.unsubscribe()}),u=!0};let y;try{if(_&&KZ&&r!=="get"&&r!=="head"&&(y=await QZ(o,d))!==0){let C=new Request(a,{method:"POST",body:d,duplex:"half"}),k;dr.isFormData(d)&&(k=C.headers.get("content-type"))&&o.setContentType(k),C.body&&(d=j9(C.body,G9,U9(y,rg(_)),null,Ub))}dr.isString(m)||(m=m?"cors":"omit"),p=new Request(a,{...x,signal:c,method:r.toUpperCase(),headers:o.normalize().toJSON(),body:d,duplex:"half",withCredentials:m});let b=await fetch(p);const v=Hb&&(f==="stream"||f==="response");if(Hb&&(n||v)){const C={};["status","statusText","headers"].forEach(N=>{C[N]=b[N]});const k=dr.toFiniteNumber(b.headers.get("content-length"));b=new Response(j9(b.body,G9,n&&U9(k,rg(n,!0)),v&&h,Ub),C)}f=f||"text";let w=await ig[dr.findKey(ig,f)||"text"](b,e);return!v&&h(),l&&l(),await new Promise((C,k)=>{V9(C,k,{data:w,headers:jc.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 hn("Network Error",hn.ERR_NETWORK,e,p),{cause:b.cause||b}):hn.from(b,b&&b.code,e,p)}})};dr.forEach(Gb,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const W9=e=>`- ${e}`,eX=e=>dr.isFunction(e)||e===null||e===!1,q9={getAdapter:e=>{e=dr.isArray(e)?e:[e];const{length:a}=e;let r,d;const g={};for(let i=0;i<a;i++){r=e[i];let s;if(d=r,!eX(r)&&(d=Gb[(s=String(r)).toLowerCase()],d===void 0))throw new hn(`Unknown adapter '${s}'`);if(d)break;g[s||"#"+i]=d}if(!d){const i=Object.entries(g).map(([n,_])=>`adapter ${n} `+(_===!1?"is not supported by the environment":"is not available in the build"));let s=a?i.length>1?`since :
|
|
21
21
|
`+i.map(W9).join(`
|
|
22
|
-
`):" "+W9(i[0]):"as no adapter specified";throw new hn("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return d},adapters:Gb};function Wb(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new dh(null,e)}function Y9(e){return Wb(e),e.headers=jc.from(e.headers),e.data=jb.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),q9.getAdapter(e.adapter||Db.adapter)(e).then(function(d){return Wb(e),d.data=jb.call(e,e.transformResponse,d),d.headers=jc.from(d.headers),d},function(d){return z9(d)||(Wb(e),d&&d.response&&(d.response.data=jb.call(e,e.transformResponse,d.response),d.response.headers=jc.from(d.response.headers))),Promise.reject(d)})}const Z9="1.7.
|
|
22
|
+
`):" "+W9(i[0]):"as no adapter specified";throw new hn("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return d},adapters:Gb};function Wb(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new dh(null,e)}function Y9(e){return Wb(e),e.headers=jc.from(e.headers),e.data=jb.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),q9.getAdapter(e.adapter||Db.adapter)(e).then(function(d){return Wb(e),d.data=jb.call(e,e.transformResponse,d),d.headers=jc.from(d.headers),d},function(d){return z9(d)||(Wb(e),d&&d.response&&(d.response.data=jb.call(e,e.transformResponse,d.response),d.response.headers=jc.from(d.response.headers))),Promise.reject(d)})}const Z9="1.7.2",qb={};["object","boolean","number","function","string","symbol"].forEach((e,a)=>{qb[e]=function(d){return typeof d===e||"a"+(a<1?"n ":" ")+e}});const X9={};qb.transitional=function(a,r,d){function g(i,s){return"[Axios v"+Z9+"] Transitional option '"+i+"'"+s+(d?". "+d:"")}return(i,s,n)=>{if(a===!1)throw new hn(g(s," has been removed"+(r?" in "+r:"")),hn.ERR_DEPRECATED);return r&&!X9[s]&&(X9[s]=!0,console.warn(g(s," has been deprecated since v"+r+" and will be removed in the near future"))),a?a(i,s,n):!0}};function tX(e,a,r){if(typeof e!="object")throw new hn("options must be an object",hn.ERR_BAD_OPTION_VALUE);const d=Object.keys(e);let g=d.length;for(;g-- >0;){const i=d[g],s=a[i];if(s){const n=e[i],_=n===void 0||s(n,i,e);if(_!==!0)throw new hn("option "+i+" must be "+_,hn.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new hn("Unknown option "+i,hn.ERR_BAD_OPTION)}}const Yb={assertOptions:tX,validators:qb},Iu=Yb.validators;class og{constructor(a){this.defaults=a,this.interceptors={request:new O9,response:new O9}}async request(a,r){try{return await this._request(a,r)}catch(d){if(d instanceof Error){let g;Error.captureStackTrace?Error.captureStackTrace(g={}):g=new Error;const i=g.stack?g.stack.replace(/^.+\n/,""):"";try{d.stack?i&&!String(d.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(d.stack+=`
|
|
23
23
|
`+i):d.stack=i}catch{}}throw d}}_request(a,r){typeof a=="string"?(r=r||{},r.url=a):r=a||{},r=wp(this.defaults,r);const{transitional:d,paramsSerializer:g,headers:i}=r;d!==void 0&&Yb.assertOptions(d,{silentJSONParsing:Iu.transitional(Iu.boolean),forcedJSONParsing:Iu.transitional(Iu.boolean),clarifyTimeoutError:Iu.transitional(Iu.boolean)},!1),g!=null&&(dr.isFunction(g)?r.paramsSerializer={serialize:g}:Yb.assertOptions(g,{encode:Iu.function,serialize:Iu.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=i&&dr.merge(i.common,i[r.method]);i&&dr.forEach(["delete","get","head","post","put","patch","common"],l=>{delete i[l]}),r.headers=jc.concat(s,i);const n=[];let _=!0;this.interceptors.request.forEach(function(u){typeof u.runWhen=="function"&&u.runWhen(r)===!1||(_=_&&u.synchronous,n.unshift(u.fulfilled,u.rejected))});const f=[];this.interceptors.response.forEach(function(u){f.push(u.fulfilled,u.rejected)});let o,m=0,x;if(!_){const l=[Y9.bind(this),void 0];for(l.unshift.apply(l,n),l.push.apply(l,f),x=l.length,o=Promise.resolve(r);m<x;)o=o.then(l[m++],l[m++]);return o}x=n.length;let c=r;for(m=0;m<x;){const l=n[m++],u=n[m++];try{c=l(c)}catch(p){u.call(this,p);break}}try{o=Y9.call(this,c)}catch(l){return Promise.reject(l)}for(m=0,x=f.length;m<x;)o=o.then(f[m++],f[m++]);return o}getUri(a){a=wp(this.defaults,a);const r=L9(a.baseURL,a.url);return M9(r,a.params,a.paramsSerializer)}}dr.forEach(["delete","get","head","options"],function(a){og.prototype[a]=function(r,d){return this.request(wp(d||{},{method:a,url:r,data:(d||{}).data}))}}),dr.forEach(["post","put","patch"],function(a){function r(d){return function(i,s,n){return this.request(wp(n||{},{method:a,headers:d?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}og.prototype[a]=r(),og.prototype[a+"Form"]=r(!0)});const sg=og;class Zb{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const d=this;this.promise.then(g=>{if(!d._listeners)return;let i=d._listeners.length;for(;i-- >0;)d._listeners[i](g);d._listeners=null}),this.promise.then=g=>{let i;const s=new Promise(n=>{d.subscribe(n),i=n}).then(g);return s.cancel=function(){d.unsubscribe(i)},s},a(function(i,s,n){d.reason||(d.reason=new dh(i,s,n),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 Zb(function(g){a=g}),cancel:a}}}const aX=Zb;function rX(e){return function(r){return e.apply(null,r)}}function nX(e){return dr.isObject(e)&&e.isAxiosError===!0}const Xb={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(Xb).forEach(([e,a])=>{Xb[a]=e});const iX=Xb;function K9(e){const a=new sg(e),r=g9(sg.prototype.request,a);return dr.extend(r,sg.prototype,a,{allOwnKeys:!0}),dr.extend(r,a,null,{allOwnKeys:!0}),r.create=function(g){return K9(wp(e,g))},r}const vo=K9(Db);vo.Axios=sg,vo.CanceledError=dh,vo.CancelToken=aX,vo.isCancel=z9,vo.VERSION=Z9,vo.toFormData=eg,vo.AxiosError=hn,vo.Cancel=vo.CanceledError,vo.all=function(a){return Promise.all(a)},vo.spread=rX,vo.isAxiosError=nX,vo.mergeConfig=wp,vo.AxiosHeaders=jc,vo.formToJSON=e=>F9(dr.isHTMLForm(e)?new FormData(e):e),vo.getAdapter=q9.getAdapter,vo.HttpStatusCode=iX,vo.default=vo;const lg=vo,J9="/icn-play.svg",hBt="",oX={components:{BarraLeft:NY,BarraRight:zY},props:{data:{type:Object,required:!1},showPlayButton:{type:Boolean,value:!0}},data(){return{gamesBySeason:{}}},computed:{...Ol("nextGeneral",["gameForAnalysis","seasonId"]),...qi("nextGeneral",["homeTeam","visitingTeam"])},methods:{onclickPlayVideos(e){var a=[];e.type==2?e.position_id==1?e.category==0?a=[55,324,323,608,39,774,802,52,53,40,54]:a=e.category:e.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.category:e.type==3?e.category==0?a=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:a=e.category:e.category!=0?a=e.category:a=[607,608,12,55,54,35,14,52,15,53,466,477];const r=[1,2,3];let d={seasonId:e.season_id,mainSectionType:1,playListType:e.type,categoryIds:a,gameIds:this.gameForAnalysis.game_status!==4?[this.gameForAnalysis.game_id]:null,playerIds:e.position_id!=1?e.player_id?[e.player_id]:[]:[],goalkeeperIds:e.position_id==1?e.player_id?[e.player_id]:[]:[],teamId:e.team_id?e.team_id:0,matchResult:e.matchResult?[e.matchResult]:r,playData:{},advancedFilter:{playListTitle:""}};e.category!==0&&(d.advancedFilter.mainCategoryId=e.category),this.$emit("openmedia",d)},hVal(e){return this.getTeamValue(e,this.gameForAnalysis,"homeTeam")},aVal(e){return this.getTeamValue(e,this.gameForAnalysis,"visitingTeam")},deleteDecimalZero(e){const a=typeof e=="string"?parseFloat(e):e;return typeof a=="number"&&!isNaN(a)?a%1===0?a:a%1===0?Math.floor(a):a:e},formatNumbers(e){return e%1!==0?e.toFixed(1):e},getTeamValue(e,a,r){if(!a.game_id)return this.objectZeroValues;const d=e.generalCategoriesIds.accomplished===3;if(a.is_live){const g=e.homeTeam.accomplished.totalLive+e.visitingTeam.accomplished.totalLive;return g?{numberValue:d?e[r].accomplished.totalLive/g*100:e[r].accomplished.totalLive,numberBarPercent:e[r].accomplished.totalLive/g}:this.objectZeroValues}else if(a.is_live||a.game_status===1){const g=e.homeTeam.accomplished.totalPostGame+e.visitingTeam.accomplished.totalPostGame;return g?{numberValue:d?e[r].accomplished.totalPostGame/g*100:e[r].accomplished.totalPostGame,numberBarPercent:e[r].accomplished.totalPostGame/g}:this.objectZeroValues}if(d){const g=e.homeTeam.accomplished.avgPostGame+e.visitingTeam.accomplished.avgPostGame,i=e[r].accomplished.avgPostGame/g;return e[r].accomplished.avgPostGame?{numberValue:i<1?i*100:i,numberBarPercent:e[r].accomplished.avgPostGame/g}:this.objectZeroValues}else{const g=e.homeTeam.accomplished.avgPostGame+e.visitingTeam.accomplished.avgPostGame;return e[r].accomplished.avgPostGame?{numberValue:e[r].accomplished.avgPostGame,numberBarPercent:e[r].accomplished.avgPostGame/g}:this.objectZeroValues}},async getGamesBySeasonV2(){try{const e={Authorization:this.token},r=`${this.apiUrl}${this.seasonId}/games/${this.gameId}`;return(await lg.get(r,{headers:e})).data}catch(e){return Promise.reject(e)}}},async mounted(){}},Q9=e=>(t.pushScopeId("data-v-9ca70fd7"),e=e(),t.popScopeId(),e),sX={class:"card"},lX={class:"card__header"},cX={class:"card__stats"},dX=["onClick"],uX=[Q9(()=>t.createElementVNode("img",{src:J9},null,-1))],pX={key:1,class:"card__stats__stat__button_empty"},hX={class:"card__stats__title"},fX={class:"card__stats__scores"},mX={key:0},gX={key:1},yX={key:2},_X={key:3},vX={class:"card__stats__bars"},bX=["onClick"],xX=[Q9(()=>t.createElementVNode("img",{src:J9},null,-1))],wX={key:1,class:"card__stats__stat__button_empty"};function kX(e,a,r,d,g,i){const s=t.resolveComponent("BarraLeft"),n=t.resolveComponent("BarraRight");return t.openBlock(),t.createElementBlock("div",sX,[t.createElementVNode("span",lX,t.toDisplayString(r.data.name),1),t.createElementVNode("div",cX,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.data.subcategories,(_,f)=>(t.openBlock(),t.createElementBlock("div",{key:f,class:"card__stats__stat"},[t.createElementVNode("div",null,[i.hVal(_)&&i.hVal(_).numberValue!="0"?(t.openBlock(),t.createElementBlock("div",{key:0,onClick:o=>i.onclickPlayVideos({category:_.accomplishedCategoryIds,type:3,season_id:e.seasonId,team_id:e.homeTeam.team_id}),class:"card__stats__stat__button card__stats__stat__button_left"},uX,8,dX)):(t.openBlock(),t.createElementBlock("div",pX))]),t.createElementVNode("div",null,[t.createElementVNode("div",hX,t.toDisplayString(_.name),1),t.createElementVNode("div",fX,[i.hVal(_)?(t.openBlock(),t.createElementBlock("span",mX,[t.createTextVNode(t.toDisplayString(i.deleteDecimalZero(i.formatNumbers(i.hVal(_).numberValue))),1),_.name=="Posesión"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("%")],64)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",gX,"0")),i.aVal(_)?(t.openBlock(),t.createElementBlock("span",yX,[t.createTextVNode(t.toDisplayString(i.deleteDecimalZero(i.formatNumbers(i.aVal(_).numberValue))),1),_.name=="Posesión"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("%")],64)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",_X,"0"))]),t.createElementVNode("div",vX,[t.createElementVNode("div",null,[i.hVal(_)?(t.openBlock(),t.createBlock(s,{key:0,postmatch:i.hVal(_).numberBarPercent},null,8,["postmatch"])):(t.openBlock(),t.createBlock(s,{key:1,postmatch:0}))]),t.createElementVNode("div",null,[i.aVal(_)?(t.openBlock(),t.createBlock(n,{key:0,postmatch:i.aVal(_).numberBarPercent},null,8,["postmatch"])):(t.openBlock(),t.createBlock(n,{key:1,postmatch:0}))])])]),t.createElementVNode("div",null,[i.aVal(_)&&i.aVal(_).numberValue!="0"?(t.openBlock(),t.createElementBlock("div",{key:0,onClick:o=>i.onclickPlayVideos({category:_.accomplishedCategoryIds,type:3,season_id:e.seasonId,team_id:e.visitingTeam.team_id}),class:"card__stats__stat__button card__stats__stat__button_right"},xX,8,bX)):(t.openBlock(),t.createElementBlock("div",wX))])]))),128))])])}const CX=Ti(oX,[["render",kX],["__scopeId","data-v-9ca70fd7"]]),gBt="",EX={name:"GscComparative",props:{local:{type:Object,default:()=>{}},away:{type:Object,default:()=>{}},fontFamily:{type:String,default:"inherit"}},data(){return{}},computed:{customStyle(){const e={};return this.fontFamily&&(e["font-family"]=`${this.fontFamily}`),e}},methods:{}},iu=e=>(t.pushScopeId("data-v-1222217b"),e=e(),t.popScopeId(),e),TX={class:"comparative-card"},SX=iu(()=>t.createElementVNode("div",{class:"header-title"},[t.createElementVNode("span",null,"Comparativa")],-1)),AX={class:"versus"},NX={class:"team-badge"},BX=["src","alt"],IX=iu(()=>t.createElementVNode("div",null,[t.createElementVNode("div",null,[t.createElementVNode("div"),t.createElementVNode("div")]),t.createElementVNode("div",null,[t.createElementVNode("div"),t.createElementVNode("div")])],-1)),MX=iu(()=>t.createElementVNode("span",{class:"vs-text"},"VS",-1)),OX={class:"team-badge"},PX=["src","alt"],FX={class:"details"},RX={key:0},zX=iu(()=>t.createElementVNode("td",null,"Posición en la tabla",-1)),VX=iu(()=>t.createElementVNode("td",null,"Puntos",-1)),LX=iu(()=>t.createElementVNode("td",null,"Partidos jugados",-1)),DX=iu(()=>t.createElementVNode("td",null,"Partidos ganados",-1)),$X=iu(()=>t.createElementVNode("td",null,"Partidos perdidos",-1)),jX=iu(()=>t.createElementVNode("td",null,"Partidos empatados",-1));function UX(e,a,r,d,g,i){return t.openBlock(),t.createElementBlock("div",{class:"comparative-main",style:t.normalizeStyle(i.customStyle)},[t.createElementVNode("div",TX,[SX,t.createElementVNode("div",AX,[t.createElementVNode("div",NX,[r.local?(t.openBlock(),t.createElementBlock("img",{key:0,class:"team-badge__image",src:r.local.team_logo,alt:r.local.team_name},null,8,BX)):t.createCommentVNode("",!0),IX]),MX,t.createElementVNode("div",OX,[r.away?(t.openBlock(),t.createElementBlock("img",{key:0,class:"team-badge__image",src:r.away.team_logo,alt:r.away.team_name},null,8,PX)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",FX,[r.away&&r.local?(t.openBlock(),t.createElementBlock("table",RX,[t.createElementVNode("tbody",null,[t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(r.local.table_position),1),zX,t.createElementVNode("td",null,t.toDisplayString(r.away.table_position),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(r.local.points),1),VX,t.createElementVNode("td",null,t.toDisplayString(r.away.points),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(r.local.games_played),1),LX,t.createElementVNode("td",null,t.toDisplayString(r.away.games_played),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(r.local.games_won),1),DX,t.createElementVNode("td",null,t.toDisplayString(r.away.games_won),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(r.local.games_lost),1),$X,t.createElementVNode("td",null,t.toDisplayString(r.away.games_lost),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(r.local.games_tied),1),jX,t.createElementVNode("td",null,t.toDisplayString(r.away.games_tied),1)])])])):t.createCommentVNode("",!0)])])],4)}const HX=Ti(EX,[["render",UX],["__scopeId","data-v-1222217b"]]),yBt="",GX=(e,a)=>{const r=e.__vccOpts||e;for(const[d,g]of a)r[d]=g;return r},Kb={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,a=this.$refs.content.scrollWidth;a>0&&e>0&&(a>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},eC=()=>{t.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},tC=Kb.setup;Kb.setup=tC?(e,a)=>(eC(),tC(e,a)):eC;const WX={ref:"gscScrollableContainer",class:"scrollable-container"},qX={class:"scrollable-arrows"},YX=["width","height","viewBox"],ZX=["stroke"],XX={class:"scrollable-wrapper"},KX={class:"scrollable-arrows"},JX=["width","height","viewBox"],QX=["stroke"];function eK(e,a,r,d,g,i){return t.openBlock(),t.createElementBlock("div",WX,[r.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",i.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...s)=>i.scrollLeft&&i.scrollLeft(...s))},[t.createElementVNode("div",qX,[(t.openBlock(),t.createElementBlock("svg",{width:r.arrowsWidth,height:r.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:r.arrowsColor},null,8,ZX)],8,YX))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:a[1]||(a[1]=(...s)=>i.getScroll&&i.getScroll(...s))},[t.createElementVNode("div",XX,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),r.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",i.hideShowRightArrow]),onClick:a[2]||(a[2]=(...s)=>i.scrollRight&&i.scrollRight(...s))},[t.createElementVNode("div",KX,[(t.openBlock(),t.createElementBlock("svg",{width:r.arrowsWidth,height:r.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:r.arrowsColor},null,8,QX)],8,JX))])],2)):t.createCommentVNode("",!0)],512)}const Jb=GX(Kb,[["render",eK],["__scopeId","data-v-b548a08d"]]),_Bt="";let aC=null;const tK={name:"App",components:{GscLinearTeamStats:CX,TableComparative:HX,GSCSlider:Jb},props:{seasonSelected:{type:Object,default:()=>({})}},computed:{...Ol("nextGeneral",["gameForAnalysis","seasonId"]),...qi("nextGeneral",["arrayFilledDataSortedByPriority"])},watch:{gameForAnalysis:{handler:function(){this.getTableList()},immediate:!0}},data(){return{gamesContainerWidth:0,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",url:"https://jfxv8fqkn3.execute-api.us-west-2.amazonaws.com/prod/generalTable/",gameId:79623,movil:!1,home:null,away:null}},methods:{openmedia(e){this.$emit("openmedia",e)},setUpResizeObserver(){if(window.ResizeObserver)aC=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.movil=this.gamesContainerWidth<680}),aC.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async getTableList(){try{const a=await lg.create({headers:{Authorization:`${this.token}`}}).get(this.url+this.seasonSelected.id),r=a.data.data.findIndex(g=>g.team_id===this.gameForAnalysis.home_team),d=a.data.data.findIndex(g=>g.team_id===this.gameForAnalysis.visiting_team);this.home=a.data.data[r],this.away=a.data.data[d]}catch(e){console.error(e)}}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},aK={class:"container",ref:"gamesContainer"},rK={key:0,class:"grid-container"},nK={key:0,class:"item"},iK={class:"item"},oK={class:"item"},sK={class:"item"},lK={class:"item"},cK={class:"item"},dK={class:"item"},uK={class:"grid-container"},pK={key:0,class:"item-comparative"},hK={class:"table-movil-container"};function fK(e,a,r,d,g,i){const s=t.resolveComponent("TableComparative"),n=t.resolveComponent("GscLinearTeamStats"),_=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",aK,[g.movil?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",uK,[g.home&&g.away?(t.openBlock(),t.createElementBlock("div",pK,[t.createVNode(s,{local:g.home,away:g.away,fontFamily:"Poppins-Light"},null,8,["local","away"])])):t.createCommentVNode("",!0)]),t.createVNode(_,{backgroundColor:"none",pxScroll:300,scrollColor:"none",arrowsPosition:"relative",arrowsScrollHide:!1,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"none",arrowsContainerBgR:"none",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[t.createElementVNode("div",hK,[t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(g.gamesContainerWidth<510&&g.gamesContainerWidth>450?"width: 400px":g.gamesContainerWidth<=450?"width: 360px":"")},[t.createVNode(n,{onOpenmedia:i.openmedia,data:e.arrayFilledDataSortedByPriority[0]},null,8,["onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(g.gamesContainerWidth<510?"width: 400px":g.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(n,{onOpenmedia:i.openmedia,data:e.arrayFilledDataSortedByPriority[1]},null,8,["onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(g.gamesContainerWidth<510?"width: 400px":g.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(n,{onOpenmedia:i.openmedia,data:e.arrayFilledDataSortedByPriority[2]},null,8,["onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(g.gamesContainerWidth<510?"width: 400px":g.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(n,{onOpenmedia:i.openmedia,data:e.arrayFilledDataSortedByPriority[3]},null,8,["onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(g.gamesContainerWidth<510?"width: 400px":g.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(n,{onOpenmedia:i.openmedia,data:e.arrayFilledDataSortedByPriority[4]},null,8,["onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(g.gamesContainerWidth<510?"width: 400px":g.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(n,{onOpenmedia:i.openmedia,data:e.arrayFilledDataSortedByPriority[5]},null,8,["onOpenmedia","data"])],4)])]),_:1})],64)):(t.openBlock(),t.createElementBlock("div",rK,[g.home&&g.away?(t.openBlock(),t.createElementBlock("div",nK,[t.createVNode(s,{local:g.home,away:g.away,fontFamily:"Poppins-Light"},null,8,["local","away"])])):t.createCommentVNode("",!0),t.createElementVNode("div",iK,[t.createVNode(n,{data:e.arrayFilledDataSortedByPriority[0],onOpenmedia:i.openmedia},null,8,["data","onOpenmedia"])]),t.createElementVNode("div",oK,[t.createVNode(n,{data:e.arrayFilledDataSortedByPriority[1],onOpenmedia:i.openmedia},null,8,["data","onOpenmedia"])]),t.createElementVNode("div",sK,[t.createVNode(n,{data:e.arrayFilledDataSortedByPriority[2],onOpenmedia:i.openmedia},null,8,["data","onOpenmedia"])]),t.createElementVNode("div",lK,[t.createVNode(n,{data:e.arrayFilledDataSortedByPriority[3],onOpenmedia:i.openmedia},null,8,["data","onOpenmedia"])]),t.createElementVNode("div",cK,[t.createVNode(n,{data:e.arrayFilledDataSortedByPriority[4],onOpenmedia:i.openmedia},null,8,["data","onOpenmedia"])]),t.createElementVNode("div",dK,[t.createVNode(n,{data:e.arrayFilledDataSortedByPriority[5],onOpenmedia:i.openmedia},null,8,["data","onOpenmedia"])])]))],512)}const mK=Ti(tK,[["render",fK]]),vBt="",bBt="",rC=["#cbee6b","#0033C5"],gK={name:"distributionchart",components:{},props:{seasonSelected:{type:Object,default:()=>({})}},data(){return{arrayChartTypes:["General","Ofensivo","Defensivo","Posesión","Balón parado","Infracciones"],height:409,updateCategory:0,homeTeamSelectedPlaysType:0,visitingTeamSelectedPlaysType:0,chartKeyCounter:0,homeTeamPlaysTypes:{history:0,live:1},visitingTeamPlaysTypes:{history:0,live:1},tooltip:{show:!1,data:{},names:{},keyName:"",leagueAvg:"",showLiveData:!1,local:!1,x:0,y:0},globals:{x:0,y:0},arrayDataForCharts:[],arrayChartOptions:[],arrayFilledSeries:[]}},watch:{menuOptionActive(){this.idAssetSelected==3},idAssetSelected(){this.idAssetSelected===3&&this.chartKeyCounter++},isMobile(e){this.chartOptions.legend.horizontalAlign=e?"center":"left",this.chartKeyCounter++},arrayFilledDataSortedByPriority:{immediate:!0,deep:!0,handler(){this.fillData(),this.updateCategory++}},showLiveData(){this.fillData()}},computed:{...Ol("nextGeneral",["showLiveData","gameForAnalysis"]),...qi("nextGeneral",["idAssetSelected","menuOptionActive","homeTeamStatisticsType","showPostMatchData","visitingTeamStatisticsType","homeTeam","visitingTeam","subcategoryName","accomplished","arrayFilledDataSortedByPriority","filledDataStructure","showPostMatchData"]),isMobile(){return this.$mq==="mobile"},timeLeft(){const e=new Date().getTime(),r=new Date(this.gameForAnalysis.date_time_utc).getTime()-e,d=Math.floor(r/(1e3*60*60*24)),g=Math.floor(r%(1e3*60*60*24)/(1e3*60*60)),i=Math.floor(r%(1e3*60*60)/(1e3*60)),s=Math.floor(r%(1e3*60)/1e3);let n="";return s>0&&(n=s==1?s+" segundo":s+" segundos"),i>0&&(n=i==1?i+" minuto":i+" minutos"),g>0&&(n=g==1?g+" hora":g+" horas"),d>0&&(n=d==1?d+" día":d+" días"),n}},methods:{avg(e,a){return a?e.leagueAccomplishedAvg:e.leagueReceivedAvg},fillData(){this.arrayChartOptions=[],this.arrayFilledDataSortedByPriority&&this.arrayFilledDataSortedByPriority.length&&typeof this.arrayFilledDataSortedByPriority[0].subcategories=="object"?(this.arrayChartOptions=[],this.arrayFilledSeries=[],this.arrayDataForCharts=this.arrayFilledDataSortedByPriority.map(e=>{const a=this.getChartOptions();return this.arrayFilledSeries.push(this.getChartSeries(e.subcategories,a)),this.arrayChartOptions.push(a),e})):this.arrayDataForCharts=[]},getChartOptions(){return{plotOptions:{radar:{size:132,polygons:{strokeColors:"#606971"}}},chart:{type:"radar",height:509,toolbar:{show:!1}},colors:rC,fill:{colors:rC,opacity:.4},legend:{show:!0,position:"bottom",horizontalAlign:"left",fontSize:"11px",fontFamily:"Poppins-Regular",labels:{colors:"#d9d9d9",useSeriesColors:!1}},xaxis:{categories:[],labels:{show:!0,style:{fontSize:"11px",fontFamily:"Poppins-Regular"}}},yaxis:{show:!1},responsive:[{breakpoint:770,options:{chart:{height:300},plotOptions:{radar:{size:100,offsetY:10,polygons:{strokeColors:"#606971"}},bar:{horizontal:!1}},legend:{position:"top",horizontalAlign:"center"},xaxis:{labels:{show:!0,style:{fontSize:"11px"}}}}},{breakpoint:450,options:{plotOptions:{radar:{size:70,offsetY:-20,polygons:{strokeColors:"#dcdcdc"}},bar:{horizontal:!1}},legend:{position:"top",horizontalAlign:"center"},xaxis:{labels:{show:!0,style:{fontSize:"10px"}}}}}],tooltip:{intersect:!0,followCursor:!0,shared:!1,theme:"dark",style:{fontSize:"12px"},custom:function({series:e,seriesIndex:a,dataPointIndex:r,w:d}){const g=d.config.arraySubcategories[r].name,i=d.config.series[a].name,s=d.config.series[a].dataTotal[r],n=e[a][r];return d.config.arraySubcategories[r].id==="3-0"?`
|
|
24
24
|
<div class="custom-tooltip-apexchart" style="display: none !important;">
|
|
25
25
|
<div class="__title">${g}:</div>
|
|
@@ -111,9 +111,9 @@
|
|
|
111
111
|
`):" "+$P(i[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 UP(e){return Qw(e),e.headers=gu.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),jP.getAdapter(e.adapter||Zw.adapter)(e).then(function(a){return Qw(e),a.data=Kw.call(e,e.transformResponse,a),a.headers=gu.from(a.headers),a},function(a){return VP(a)||(Qw(e),a&&a.response&&(a.response.data=Kw.call(e,e.transformResponse,a.response),a.response.headers=gu.from(a.response.headers))),Promise.reject(a)})}const HP=e=>e instanceof gu?{...e}:e;function Qh(e,a){a=a||{};const r={};function d(f,o,m){return Ar.isPlainObject(f)&&Ar.isPlainObject(o)?Ar.merge.call({caseless:m},f,o):Ar.isPlainObject(o)?Ar.merge({},o):Ar.isArray(o)?o.slice():o}function g(f,o,m){if(Ar.isUndefined(o)){if(!Ar.isUndefined(f))return d(void 0,f,m)}else return d(f,o,m)}function i(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 n(f,o,m){if(m in a)return d(f,o);if(m in e)return d(void 0,f)}const _={url:i,method:i,data:i,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:n,headers:(f,o)=>g(HP(f),HP(o),!0)};return Ar.forEach(Object.keys(Object.assign({},e,a)),function(f){const o=_[f]||g,m=o(e[f],a[f],f);Ar.isUndefined(m)&&o!==n||(r[f]=m)}),r}const GP="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 WP={};e6.transitional=function(e,a,r){function d(g,i){return"[Axios v"+GP+"] Transitional option '"+g+"'"+i+(r?". "+r:"")}return(g,i,s)=>{if(e===!1)throw new Yn(d(i," has been removed"+(a?" in "+a:"")),Yn.ERR_DEPRECATED);return a&&!WP[i]&&(WP[i]=!0,console.warn(d(i," has been deprecated since v"+a+" and will be removed in the near future"))),e?e(g,i,s):!0}};function Qrt(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 g=d.length;for(;g-- >0;){const i=d[g],s=a[i];if(s){const n=e[i],_=n===void 0||s(n,i,e);if(_!==!0)throw new Yn("option "+i+" must be "+_,Yn.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Yn("Unknown option "+i,Yn.ERR_BAD_OPTION)}}const t6={assertOptions:Qrt,validators:e6},Xu=t6.validators;let r_=class{constructor(a){this.defaults=a,this.interceptors={request:new OP,response:new OP}}async request(a,r){try{return await this._request(a,r)}catch(d){if(d instanceof Error){let g;Error.captureStackTrace?Error.captureStackTrace(g={}):g=new Error;const i=g.stack?g.stack.replace(/^.+\n/,""):"";d.stack?i&&!String(d.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(d.stack+=`
|
|
112
112
|
`+i):d.stack=i}throw d}}_request(a,r){typeof a=="string"?(r=r||{},r.url=a):r=a||{},r=Qh(this.defaults,r);const{transitional:d,paramsSerializer:g,headers:i}=r;d!==void 0&&t6.assertOptions(d,{silentJSONParsing:Xu.transitional(Xu.boolean),forcedJSONParsing:Xu.transitional(Xu.boolean),clarifyTimeoutError:Xu.transitional(Xu.boolean)},!1),g!=null&&(Ar.isFunction(g)?r.paramsSerializer={serialize:g}:t6.assertOptions(g,{encode:Xu.function,serialize:Xu.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=i&&Ar.merge(i.common,i[r.method]);i&&Ar.forEach(["delete","get","head","post","put","patch","common"],l=>{delete i[l]}),r.headers=gu.concat(s,i);const n=[];let _=!0;this.interceptors.request.forEach(function(l){typeof l.runWhen=="function"&&l.runWhen(r)===!1||(_=_&&l.synchronous,n.unshift(l.fulfilled,l.rejected))});const f=[];this.interceptors.response.forEach(function(l){f.push(l.fulfilled,l.rejected)});let o,m=0,x;if(!_){const l=[UP.bind(this),void 0];for(l.unshift.apply(l,n),l.push.apply(l,f),x=l.length,o=Promise.resolve(r);m<x;)o=o.then(l[m++],l[m++]);return o}x=n.length;let c=r;for(m=0;m<x;){const l=n[m++],u=n[m++];try{c=l(c)}catch(p){u.call(this,p);break}}try{o=UP.call(this,c)}catch(l){return Promise.reject(l)}for(m=0,x=f.length;m<x;)o=o.then(f[m++],f[m++]);return o}getUri(a){a=Qh(this.defaults,a);const r=LP(a.baseURL,a.url);return MP(r,a.params,a.paramsSerializer)}};Ar.forEach(["delete","get","head","options"],function(e){r_.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,g,i){return this.request(Qh(i||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:d,data:g}))}}r_.prototype[e]=a(),r_.prototype[e+"Form"]=a(!0)});const n_=r_,ent=class m${constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(g){r=g});const d=this;this.promise.then(g=>{if(!d._listeners)return;let i=d._listeners.length;for(;i-- >0;)d._listeners[i](g);d._listeners=null}),this.promise.then=g=>{let i;const s=new Promise(n=>{d.subscribe(n),i=n}).then(g);return s.cancel=function(){d.unsubscribe(i)},s},a(function(g,i,s){d.reason||(d.reason=new k0(g,i,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 m$(function(r){a=r}),cancel:a}}};function tnt(e){return function(a){return e.apply(null,a)}}function ant(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 rnt=a6;function qP(e){const a=new n_(e),r=gP(n_.prototype.request,a);return Ar.extend(r,n_.prototype,a,{allOwnKeys:!0}),Ar.extend(r,a,null,{allOwnKeys:!0}),r.create=function(d){return qP(Qh(e,d))},r}const Mo=qP(Zw);Mo.Axios=n_,Mo.CanceledError=k0,Mo.CancelToken=ent,Mo.isCancel=VP,Mo.VERSION=GP,Mo.toFormData=e_,Mo.AxiosError=Yn,Mo.Cancel=Mo.CanceledError,Mo.all=function(e){return Promise.all(e)},Mo.spread=tnt,Mo.isAxiosError=ant,Mo.mergeConfig=Qh,Mo.AxiosHeaders=gu,Mo.formToJSON=e=>RP(Ar.isHTMLForm(e)?new FormData(e):e),Mo.getAdapter=jP.getAdapter,Mo.HttpStatusCode=rnt,Mo.default=Mo;const YP=Mo;let ZP=null;const nnt={components:{GSCPlayerTeamGame:eet,GSCLineups:zXe,GSCData:YIe,GSCHighlights:gPe,GSCSlider:sAe,TableComparative:zet,GSCThumbnailHighlightGameHistoric:pet,GscLinearTeamStats:$at},props:{config:{type:Object,default:()=>{}},type:{type:String,default:"Postmatch"},showLineups:{type:Boolean,default:!0}},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:{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)ZP=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),ZP.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},getXg(e){let a={};const r=e.local_team.reduce((s,n)=>(a[n[16]]||(s+=n[14],a[n[16]]=!0),s),0);a={};const d=e.local_team.reduce((s,n)=>(!a[n[16]]&&(n[0]==12||n[0]==55||n[0]==35||n[0]==54)&&(s+=n[6],a[n[16]]=!0),s),0);a={};const g=e.visiting_team.reduce((s,n)=>(a[n[16]]||(s+=n[14],a[n[16]]=!0),s),0);a={};const i=e.visiting_team.reduce((s,n)=>(!a[n[16]]&&(n[0]==12||n[0]==55||n[0]==35||n[0]==54)&&(s+=n[6],a[n[16]]=!0),s),0);this.homeXg=mP(r,2),this.homeGoals=d,this.awayXg=mP(g,2),this.awayGoals=i},async fillData(){const e=YP.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(g=>g.game_id===this.config.game);if(this.gameInfo=a.data.games[r],this.type==="Postmatch"){const g=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=g.data.game_id,this.item.season_id=this.config.season_id,this.item.score=g.data.thumbnails[g.data.game_id].score[0]+" - "+g.data.thumbnails[g.data.game_id].score[1],this.item.backgroundhome=g.data.thumbnails[g.data.game_id].info_thumbnails.home_colors.background_color,this.item.backgroundaway=g.data.thumbnails[g.data.game_id].info_thumbnails.away_colors.background_color,this.item.logohome="https://az755631.vo.msecnd.net/teams-150/"+g.data.thumbnails[g.data.game_id].home_team+".png",this.item.logoaway="https://az755631.vo.msecnd.net/teams-150/"+g.data.thumbnails[g.data.game_id].visiting_team+".png",this.item.background="https://golstatsimages.blob.core.windows.net/images-library/"+g.data.thumbnails[g.data.game_id].info_thumbnails.images.background_default_games[0]}try{const g=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(g.data.data_headers.length>0)this.getXg(g.data);else try{const i=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(i.data)}catch(i){console.log(i)}}catch(g){console.log(g)}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 g=0;g<d.length;g++)this.stats[this.gameInfo.home_team][d[g]]=[],this.stats[this.gameInfo.home_team][d[g]]=0,this.stats[this.gameInfo.visiting_team][d[g]]=[],this.stats[this.gameInfo.visiting_team][d[g]]=0;if(this.type==="Postmatch"){const g=await e.get("https://nckawv8v3b.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsByGame/"+this.config.game);for(let i=0;i<g.data.data.length;i++)g.data.data[i][1]==this.gameInfo.home_team?this.stats[this.gameInfo.home_team][g.data.data[i][0]]?this.stats[this.gameInfo.home_team][g.data.data[i][0]]=this.stats[this.gameInfo.home_team][g.data.data[i][0]]+g.data.data[i][6]:(this.stats[this.gameInfo.home_team][g.data.data[i][0]]=[],this.stats[this.gameInfo.home_team][g.data.data[i][0]]=g.data.data[i][6]):this.stats[this.gameInfo.visiting_team][g.data.data[i][0]]?this.stats[this.gameInfo.visiting_team][g.data.data[i][0]]=this.stats[this.gameInfo.visiting_team][g.data.data[i][0]]+g.data.data[i][6]:(this.stats[this.gameInfo.visiting_team][g.data.data[i][0]]=[],this.stats[this.gameInfo.visiting_team][g.data.data[i][0]]=g.data.data[i][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 g=this.statsLocal.data.games.played?this.statsLocal.data.games.played:1,i=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[_],m=this.stats[this.gameInfo.home_team];m[f]=(m[f]||0)+o}for(let _=0;_<this.statsAway.data.data.length;_++){const[f,,,,,,o]=this.statsAway.data.data[_],m=this.stats[this.gameInfo.visiting_team];m[f]=(m[f]||0)+o}const s=this.stats[this.gameInfo.home_team];for(const _ in s)s[_]&&s[_]>0&&(s[_]/=g);const n=this.stats[this.gameInfo.visiting_team];for(const _ in n)n[_]&&n[_]>0&&(n[_]/=i)}},async getTableList(){try{const e=await YP.create({headers:{Authorization:`${this.token}`}}).get(this.url+this.config.parent_season),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);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)}},Sp=e=>(t.pushScopeId("data-v-fbec41cd"),e=e(),t.popScopeId(),e),int={ref:"gamesContainer",class:"container",style:{}},ont={class:"video-partido-container"},snt={class:"video-partido-container__highlight"},lnt={key:0,class:"video-partido-container__ribbon"},cnt=Sp(()=>t.createElementVNode("h2",{class:"video-partido-container__title"},"HIGHLIGHTS DEL",-1)),dnt=Sp(()=>t.createElementVNode("h2",{class:"video-partido-container__title"},"PARTIDO",-1)),unt={key:1,class:"video-partido-container__description"},pnt=Sp(()=>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)),hnt={class:"video-partido-container__image"},fnt=Sp(()=>t.createElementVNode("p",{class:"video-partido-container__description"},"Las jugadas mas importantes del partido",-1)),mnt=Sp(()=>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)),gnt={key:1,style:{width:"100%"}},ynt={class:"gsdatacontainer",ref:"refDataContainer"},_nt={class:"staticsMovilContainerSlider"},vnt={class:"staticsMovilContainer"},bnt={class:"staticsMovilContainerComparative"},xnt={class:"staticscontainer__header"},wnt=Sp(()=>t.createElementVNode("h2",{class:"staticscontainer__header__title"},"Estadísticas",-1)),knt={class:"staticsMovilContainerStats"},Cnt={key:0,class:"gslineupscontainer"},Ent={class:"staticscontainer__header"},Tnt=Sp(()=>t.createElementVNode("h2",{class:"staticscontainer__header__title"},"Estadísticas",-1)),Snt={class:"comparativecontainer"},Ant={class:"statslinercontainer"};function Nnt(e,a,r,d,g,i){const s=t.resolveComponent("GSCThumbnailHighlightGameHistoric"),n=t.resolveComponent("GSCHighlights"),_=t.resolveComponent("GSCPlayerTeamGame"),f=t.resolveComponent("GSCData"),o=t.resolveComponent("TableComparative"),m=t.resolveComponent("GscLinearTeamStats"),x=t.resolveComponent("GSCSlider"),c=t.resolveComponent("GSCLineups");return t.openBlock(),t.createElementBlock("div",int,[t.createElementVNode("div",ont,[t.createElementVNode("div",snt,[r.type=="Postmatch"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",{class:"video-partido-container__content",style:t.normalizeStyle(g.gamesContainerWidth<645?"margin-bottom: 30px":"")},[Object.keys(g.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",lnt,t.toDisplayString(g.gameInfo.matchday_name.replace("Matchday","Jornada")),1)):t.createCommentVNode("",!0),cnt,dnt,g.gamesContainerWidth>=645?(t.openBlock(),t.createElementBlock("p",unt,"Las jugadas mas importantes del partido")):t.createCommentVNode("",!0),g.gamesContainerWidth>=645?(t.openBlock(),t.createElementBlock("button",{key:2,class:"video-partido-container__button",onClick:a[0]||(a[0]=l=>i.onclickPlayVideos({data:g.item,type:1}))},[pnt,t.createTextVNode(" Reproducir ahora ")])):t.createCommentVNode("",!0)],4),t.createElementVNode("div",hnt,[g.item.background!=""?(t.openBlock(),t.createBlock(s,{key:0,"color-background-home":g.item.backgroundhome,"color-background-away":g.item.backgroundaway,"logo-home":g.item.logohome,"logo-away":g.item.logoaway,background:g.item.background,matchday:g.item.match,"season-name":g.item.seasonname,onOnclickPlayVideos:a[1]||(a[1]=l=>i.onclickPlayVideos({data:g.item,type:1})),score:g.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(g.gamesContainerWidth<645?"display:block; width: 100%":"display:none")},[fnt,t.createElementVNode("button",{class:"video-partido-container__button",onClick:a[2]||(a[2]=l=>i.onclickPlayVideos({data:g.item,type:1}))},[mnt,t.createTextVNode(" Reproducir ahora ")])],4)],64)):(t.openBlock(),t.createElementBlock("div",gnt,[t.createVNode(n,{onOpenmedia:i.openmedia,data:{game:r.config.game,season:r.config.season_id,type:"historic"}},null,8,["onOpenmedia","data"])]))]),t.createElementVNode("div",{class:t.normalizeClass(i.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:i.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},onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard},null,8,["onOpenmedia","data","onOnClickVideos","onOnClickCard"])],2),t.createElementVNode("div",{class:t.normalizeClass(i.gridpartidosummaryClass)},[t.createElementVNode("div",{class:t.normalizeClass(i.gridpartidosummaryClass+"__row1")},[t.createElementVNode("div",ynt,[(t.openBlock(),t.createElementBlock("div",{class:"gsWidthDataContainer",key:g.componentKey},[r.type=="Postmatch"?(t.openBlock(),t.createBlock(f,{key:0,onOpenmedia:i.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:g.gameInfo.home_team,away_team_id:g.gameInfo.visiting_team,player:123,team_view:g.gameInfo.home_team},onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard,onOnClickCategory:e.onClickCategory,onOnViewMore:i.onViewMoreGs},null,8,["onOpenmedia","data","onOnClickVideos","onOnClickCard","onOnClickCategory","onOnViewMore"])):(t.openBlock(),t.createBlock(f,{key:1,onOpenmedia:i.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:g.gameInfo.home_team,away_team_id:g.gameInfo.visiting_team,player:123,team_view:g.gameInfo.home_team},onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard,onOnClickCategory:e.onClickCategory,onOnViewMore:i.onViewMoreGs},null,8,["onOpenmedia","data","onOnClickVideos","onOnClickCard","onOnClickCategory","onOnViewMore"]))]))],512),t.createElementVNode("div",_nt,[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",vnt,[t.createElementVNode("div",bnt,[t.createElementVNode("div",xnt,[wnt,t.createElementVNode("a",{class:"staticscontainer__header__button",onClick:a[3]||(a[3]=(...l)=>i.changeToTab&&i.changeToTab(...l))},"Ver más")]),t.createVNode(o,{local:g.home,away:g.away,"home-xg":g.homeXg,"home-goals":g.homeGoals,"away-xg":g.awayXg,"away-goals":g.awayGoals,fontFamily:"Poppins-Regular"},null,8,["local","away","home-xg","home-goals","away-xg","away-goals"])]),t.createElementVNode("div",knt,[t.createVNode(m,{onOpenmedia:i.openmedia,stats:g.stats,"game-info":g.gameInfo},null,8,["onOpenmedia","stats","game-info"])])])]),_:1})]),r.showLineups?(t.openBlock(),t.createElementBlock("div",Cnt,[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(i.gridpartidosummaryClass+"__row2")},[t.createElementVNode("div",Ent,[Tnt,t.createElementVNode("a",{class:"staticscontainer__header__button",onClick:a[4]||(a[4]=(...l)=>i.changeToTab&&i.changeToTab(...l))},"Ver más")]),t.createElementVNode("div",Snt,[t.createVNode(o,{local:g.home,away:g.away,"home-xg":g.homeXg,"home-goals":g.homeGoals,"away-xg":g.awayXg,"away-goals":g.awayGoals,fontFamily:"Poppins-Regular"},null,8,["local","away","home-xg","home-goals","away-xg","away-goals"])]),t.createElementVNode("div",Ant,[t.createVNode(m,{onOpenmedia:i.openmedia,stats:g.stats,"game-info":g.gameInfo},null,8,["onOpenmedia","stats","game-info"])])],2)],2)])],512)}const XP=Kh(nnt,[["render",Nnt],["__scopeId","data-v-fbec41cd"]]),cIt="",dIt="",Bnt={class:"datagame-container"},Int=Ti({__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}},emits:["openmedia","changeToTab"],setup(e,{emit:a}){const r=e,d=t.ref(0);t.watch(()=>r.game,s=>{d.value=s.gameId},{deep:!0,immediate:!0});function g(s){a("openmedia",s)}function i(s){a("changeToTab",s)}return(s,n)=>(t.openBlock(),t.createElementBlock("div",Bnt,[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(XP),{onOpenmedia:g,onChangeToTab:i,type:"Prematch",key:d.value,config:{season_id:e.game.seasonId,game:e.game.gameId,parent_season:e.seasonSelected.id},showLineups:e.showLineups},null,8,["config","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(XP),{onOpenmedia:g,onChangeToTab:i,type:"Postmatch",key:d.value,config:{season_id:e.game.seasonId,game:e.game.gameId,parent_season:e.seasonSelected.id},showLineups:e.showLineups},null,8,["config","showLineups"])):t.createCommentVNode("",!0)],64))]))}},[["__scopeId","data-v-9a58da2c"]]);function KP(e,a){return function(){return e.apply(a,arguments)}}const{toString:Mnt}=Object.prototype,{getPrototypeOf:r6}=Object,i_=(e=>a=>{const r=Mnt.call(a);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Gc=e=>(e=e.toLowerCase(),a=>i_(a)===e),o_=e=>a=>typeof a===e,{isArray:ef}=Array,C0=o_("undefined");function Ont(e){return e!==null&&!C0(e)&&e.constructor!==null&&!C0(e.constructor)&&gc(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const JP=Gc("ArrayBuffer");function Pnt(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&JP(e.buffer),a}const Fnt=o_("string"),gc=o_("function"),QP=o_("number"),s_=e=>e!==null&&typeof e=="object",Rnt=e=>e===!0||e===!1,l_=e=>{if(i_(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)},znt=Gc("Date"),Vnt=Gc("File"),Lnt=Gc("Blob"),Dnt=Gc("FileList"),$nt=e=>s_(e)&&gc(e.pipe),jnt=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||gc(e.append)&&((a=i_(e))==="formdata"||a==="object"&&gc(e.toString)&&e.toString()==="[object FormData]"))},Unt=Gc("URLSearchParams"),[Hnt,Gnt,Wnt,qnt]=["ReadableStream","Request","Response","Headers"].map(Gc),Ynt=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,g;if(typeof e!="object"&&(e=[e]),ef(e))for(d=0,g=e.length;d<g;d++)a.call(null,e[d],d,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let n;for(d=0;d<s;d++)n=i[d],a.call(null,e[n],n,e)}}function eF(e,a){a=a.toLowerCase();const r=Object.keys(e);let d=r.length,g;for(;d-- >0;)if(g=r[d],a===g.toLowerCase())return g;return null}const tF=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,aF=e=>!C0(e)&&e!==tF;function n6(){const{caseless:e}=aF(this)&&this||{},a={},r=(d,g)=>{const i=e&&eF(a,g)||g;l_(a[i])&&l_(d)?a[i]=n6(a[i],d):l_(d)?a[i]=n6({},d):ef(d)?a[i]=d.slice():a[i]=d};for(let d=0,g=arguments.length;d<g;d++)arguments[d]&&E0(arguments[d],r);return a}const Znt=(e,a,r,{allOwnKeys:d}={})=>(E0(a,(g,i)=>{r&&gc(g)?e[i]=KP(g,r):e[i]=g},{allOwnKeys:d}),e),Xnt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Knt=(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)},Jnt=(e,a,r,d)=>{let g,i,s;const n={};if(a=a||{},e==null)return a;do{for(g=Object.getOwnPropertyNames(e),i=g.length;i-- >0;)s=g[i],(!d||d(s,e,a))&&!n[s]&&(a[s]=e[s],n[s]=!0);e=r!==!1&&r6(e)}while(e&&(!r||r(e,a))&&e!==Object.prototype);return a},Qnt=(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},eit=e=>{if(!e)return null;if(ef(e))return e;let a=e.length;if(!QP(a))return null;const r=new Array(a);for(;a-- >0;)r[a]=e[a];return r},tit=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&r6(Uint8Array)),ait=(e,a)=>{const r=(e&&e[Symbol.iterator]).call(e);let d;for(;(d=r.next())&&!d.done;){const g=d.value;a.call(e,g[0],g[1])}},rit=(e,a)=>{let r;const d=[];for(;(r=e.exec(a))!==null;)d.push(r);return d},nit=Gc("HTMLFormElement"),iit=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,r,d){return r.toUpperCase()+d}),rF=(({hasOwnProperty:e})=>(a,r)=>e.call(a,r))(Object.prototype),oit=Gc("RegExp"),nF=(e,a)=>{const r=Object.getOwnPropertyDescriptors(e),d={};E0(r,(g,i)=>{let s;(s=a(g,i,e))!==!1&&(d[i]=s||g)}),Object.defineProperties(e,d)},sit=e=>{nF(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+"'")})}})},lit=(e,a)=>{const r={},d=g=>{g.forEach(i=>{r[i]=!0})};return ef(e)?d(e):d(String(e).split(a)),r},cit=()=>{},dit=(e,a)=>e!=null&&Number.isFinite(e=+e)?e:a,i6="abcdefghijklmnopqrstuvwxyz",iF="0123456789",oF={DIGIT:iF,ALPHA:i6,ALPHA_DIGIT:i6+i6.toUpperCase()+iF},uit=(e=16,a=oF.ALPHA_DIGIT)=>{let r="";const{length:d}=a;for(;e--;)r+=a[Math.random()*d|0];return r};function pit(e){return!!(e&&gc(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const hit=e=>{const a=new Array(10),r=(d,g)=>{if(s_(d)){if(a.indexOf(d)>=0)return;if(!("toJSON"in d)){a[g]=d;const i=ef(d)?[]:{};return E0(d,(s,n)=>{const _=r(s,g+1);!C0(_)&&(i[n]=_)}),a[g]=void 0,i}}return d};return r(e,0)},fit=Gc("AsyncFunction"),mit=e=>e&&(s_(e)||gc(e))&&gc(e.then)&&gc(e.catch),ur={isArray:ef,isArrayBuffer:JP,isBuffer:Ont,isFormData:jnt,isArrayBufferView:Pnt,isString:Fnt,isNumber:QP,isBoolean:Rnt,isObject:s_,isPlainObject:l_,isReadableStream:Hnt,isRequest:Gnt,isResponse:Wnt,isHeaders:qnt,isUndefined:C0,isDate:znt,isFile:Vnt,isBlob:Lnt,isRegExp:oit,isFunction:gc,isStream:$nt,isURLSearchParams:Unt,isTypedArray:tit,isFileList:Dnt,forEach:E0,merge:n6,extend:Znt,trim:Ynt,stripBOM:Xnt,inherits:Knt,toFlatObject:Jnt,kindOf:i_,kindOfTest:Gc,endsWith:Qnt,toArray:eit,forEachEntry:ait,matchAll:rit,isHTMLForm:nit,hasOwnProperty:rF,hasOwnProp:rF,reduceDescriptors:nF,freezeMethods:sit,toObjectSet:lit,toCamelCase:iit,noop:cit,toFiniteNumber:dit,findKey:eF,global:tF,isContextDefined:aF,ALPHABET:oF,generateString:uit,isSpecCompliantForm:pit,toJSONObject:hit,isAsyncFn:fit,isThenable:mit};function fn(e,a,r,d,g){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),g&&(this.response=g)}ur.inherits(fn,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 sF=fn.prototype,lF={};["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=>{lF[e]={value:e}}),Object.defineProperties(fn,lF),Object.defineProperty(sF,"isAxiosError",{value:!0}),fn.from=(e,a,r,d,g,i)=>{const s=Object.create(sF);return ur.toFlatObject(e,s,function(n){return n!==Error.prototype},n=>n!=="isAxiosError"),fn.call(s,e.message,a,r,d,g),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const git=null;function o6(e){return ur.isPlainObject(e)||ur.isArray(e)}function cF(e){return ur.endsWith(e,"[]")?e.slice(0,-2):e}function dF(e,a,r){return e?e.concat(a).map(function(d,g){return d=cF(d),!r&&g?"["+d+"]":d}).join(r?".":""):a}function yit(e){return ur.isArray(e)&&!e.some(o6)}const _it=ur.toFlatObject(ur,{},null,function(e){return/^is[A-Z]/.test(e)});function c_(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,g=r.visitor||f,i=r.dots,s=r.indexes,n=(r.Blob||typeof Blob<"u"&&Blob)&&ur.isSpecCompliantForm(a);if(!ur.isFunction(g))throw new TypeError("visitor must be a function");function _(c){if(c===null)return"";if(ur.isDate(c))return c.toISOString();if(!n&&ur.isBlob(c))throw new fn("Blob is not supported. Use a Buffer instead.");return ur.isArrayBuffer(c)||ur.isTypedArray(c)?n&&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)&&yit(c)||(ur.isFileList(c)||ur.endsWith(l,"[]"))&&(p=ur.toArray(c)))return l=cF(l),p.forEach(function(h,y){!(ur.isUndefined(h)||h===null)&&a.append(s===!0?dF([l],y,i):s===null?l:l+"[]",_(h))}),!1}return o6(c)?!0:(a.append(dF(u,l,i),_(c)),!1)}const o=[],m=Object.assign(_it,{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)&&g.call(a,u,ur.isString(p)?p.trim():p,l,m))===!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 uF(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&&c_(e,this,a)}const pF=s6.prototype;pF.append=function(e,a){this._pairs.push([e,a])},pF.toString=function(e){const a=e?function(r){return e.call(this,r,uF)}:uF;return this._pairs.map(function(r){return a(r[0])+"="+a(r[1])},"").join("&")};function vit(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function hF(e,a,r){if(!a)return e;const d=r&&r.encode||vit,g=r&&r.serialize;let i;if(g?i=g(a,r):i=ur.isURLSearchParams(a)?a.toString():new s6(a,r).toString(d),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}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 mF={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},bit=typeof URLSearchParams<"u"?URLSearchParams:s6,xit=typeof FormData<"u"?FormData:null,wit=typeof Blob<"u"?Blob:null,kit={isBrowser:!0,classes:{URLSearchParams:bit,FormData:xit,Blob:wit},protocols:["http","https","file","blob","url","data"]},l6=typeof window<"u"&&typeof document<"u",Cit=(e=>l6&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Eit=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Tit=l6&&window.location.href||"http://localhost",Sit=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:l6,hasStandardBrowserEnv:Cit,hasStandardBrowserWebWorkerEnv:Eit,origin:Tit},Symbol.toStringTag,{value:"Module"})),Wc={...Sit,...kit};function Ait(e,a){return c_(e,new Wc.classes.URLSearchParams,Object.assign({visitor:function(r,d,g,i){return Wc.isNode&&ur.isBuffer(r)?(this.append(d,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},a))}function Nit(e){return ur.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function Bit(e){const a={},r=Object.keys(e);let d;const g=r.length;let i;for(d=0;d<g;d++)i=r[d],a[i]=e[i];return a}function gF(e){function a(r,d,g,i){let s=r[i++];if(s==="__proto__")return!0;const n=Number.isFinite(+s),_=i>=r.length;return s=!s&&ur.isArray(g)?g.length:s,_?(ur.hasOwnProp(g,s)?g[s]=[g[s],d]:g[s]=d,!n):((!g[s]||!ur.isObject(g[s]))&&(g[s]=[]),a(r,d,g[s],i)&&ur.isArray(g[s])&&(g[s]=Bit(g[s])),!n)}if(ur.isFormData(e)&&ur.isFunction(e.entries)){const r={};return ur.forEachEntry(e,(d,g)=>{a(Nit(d),g,r,0)}),r}return null}function Iit(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 T0={transitional:mF,adapter:["xhr","http","fetch"],transformRequest:[function(e,a){const r=a.getContentType()||"",d=r.indexOf("application/json")>-1,g=ur.isObject(e);if(g&&ur.isHTMLForm(e)&&(e=new FormData(e)),ur.isFormData(e))return d?JSON.stringify(gF(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 i;if(g){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Ait(e,this.formSerializer).toString();if((i=ur.isFileList(e))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return c_(i?{"files[]":e}:e,s&&new s,this.formSerializer)}}return g||d?(a.setContentType("application/json",!1),Iit(e)):e}],transformResponse:[function(e){const a=this.transitional||T0.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 g=!(a&&a.silentJSONParsing)&&d;try{return JSON.parse(e)}catch(i){if(g)throw i.name==="SyntaxError"?fn.from(i,fn.ERR_BAD_RESPONSE,this,null,this.response):i}}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=>{T0.headers[e]={}});const Mit=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"]),Oit=e=>{const a={};let r,d,g;return e&&e.split(`
|
|
113
113
|
`).forEach(function(i){g=i.indexOf(":"),r=i.substring(0,g).trim().toLowerCase(),d=i.substring(g+1).trim(),!(!r||a[r]&&Mit[r])&&(r==="set-cookie"?a[r]?a[r].push(d):a[r]=[d]:a[r]=a[r]?a[r]+", "+d:d)}),a},yF=Symbol("internals");function S0(e){return e&&String(e).trim().toLowerCase()}function d_(e){return e===!1||e==null?e:ur.isArray(e)?e.map(d_):String(e)}function Pit(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 Fit=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function c6(e,a,r,d,g){if(ur.isFunction(d))return d.call(this,a,r);if(g&&(a=r),!!ur.isString(a)){if(ur.isString(d))return a.indexOf(d)!==-1;if(ur.isRegExp(d))return d.test(a)}}function Rit(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,r,d)=>r.toUpperCase()+d)}function zit(e,a){const r=ur.toCamelCase(" "+a);["get","set","has"].forEach(d=>{Object.defineProperty(e,d+r,{value:function(g,i,s){return this[d].call(this,a,g,i,s)},configurable:!0})})}class cl{constructor(a){a&&this.set(a)}set(a,r,d){const g=this;function i(n,_,f){const o=S0(_);if(!o)throw new Error("header name must be a non-empty string");const m=ur.findKey(g,o);(!m||g[m]===void 0||f===!0||f===void 0&&g[m]!==!1)&&(g[m||_]=d_(n))}const s=(n,_)=>ur.forEach(n,(f,o)=>i(f,o,_));if(ur.isPlainObject(a)||a instanceof this.constructor)s(a,r);else if(ur.isString(a)&&(a=a.trim())&&!Fit(a))s(Oit(a),r);else if(ur.isHeaders(a))for(const[n,_]of a.entries())i(_,n,d);else a!=null&&i(r,a,d);return this}get(a,r){if(a=S0(a),a){const d=ur.findKey(this,a);if(d){const g=this[d];if(!r)return g;if(r===!0)return Pit(g);if(ur.isFunction(r))return r.call(this,g,d);if(ur.isRegExp(r))return r.exec(g);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,r){if(a=S0(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 g=!1;function i(s){if(s=S0(s),s){const n=ur.findKey(d,s);n&&(!r||c6(d,d[n],n,r))&&(delete d[n],g=!0)}}return ur.isArray(a)?a.forEach(i):i(a),g}clear(a){const r=Object.keys(this);let d=r.length,g=!1;for(;d--;){const i=r[d];(!a||c6(this,this[i],i,a,!0))&&(delete this[i],g=!0)}return g}normalize(a){const r=this,d={};return ur.forEach(this,(g,i)=>{const s=ur.findKey(d,i);if(s){r[s]=d_(g),delete r[i];return}const n=a?Rit(i):String(i).trim();n!==i&&delete r[i],r[n]=d_(g),d[n]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const r=Object.create(null);return ur.forEach(this,(d,g)=>{d!=null&&d!==!1&&(r[g]=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(`
|
|
114
|
-
`)}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(g=>d.set(g)),d}static accessor(a){const r=(this[yF]=this[yF]={accessors:{}}).accessors,d=this.prototype;function g(i){const s=S0(i);r[s]||(zit(d,i),r[s]=!0)}return ur.isArray(a)?a.forEach(g):g(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||T0,d=a||r,g=cl.from(d.headers);let i=d.data;return ur.forEach(e,function(s){i=s.call(r,i,g.normalize(),a?a.status:void 0)}),g.normalize(),i}function _F(e){return!!(e&&e.__CANCEL__)}function tf(e,a,r){fn.call(this,e??"canceled",fn.ERR_CANCELED,a,r),this.name="CanceledError"}ur.inherits(tf,fn,{__CANCEL__:!0});function vF(e,a,r){const d=r.config.validateStatus;!r.status||!d||d(r.status)?e(r):a(new fn("Request failed with status code "+r.status,[fn.ERR_BAD_REQUEST,fn.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Vit(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function Lit(e,a){e=e||10;const r=new Array(e),d=new Array(e);let g=0,i=0,s;return a=a!==void 0?a:1e3,function(n){const _=Date.now(),f=d[i];s||(s=_),r[g]=n,d[g]=_;let o=i,m=0;for(;o!==g;)m+=r[o++],o=o%e;if(g=(g+1)%e,g===i&&(i=(i+1)%e),_-s<a)return;const x=f&&_-f;return x?Math.round(m*1e3/x):void 0}}function Dit(e,a){let r=0;const d=1e3/a;let g=null;return function(){const i=this===!0,s=Date.now();if(i||s-r>d)return g&&(clearTimeout(g),g=null),r=s,e.apply(null,arguments);g||(g=setTimeout(()=>(g=null,r=Date.now(),e.apply(null,arguments)),d-(s-r)))}}const u_=(e,a,r=3)=>{let d=0;const g=Lit(50,250);return Dit(i=>{const s=i.loaded,n=i.lengthComputable?i.total:void 0,_=s-d,f=g(_),o=s<=n;d=s;const m={loaded:s,total:n,progress:n?s/n:void 0,bytes:_,rate:f||void 0,estimated:f&&n&&o?(n-s)/f:void 0,event:i,lengthComputable:n!=null};m[a?"download":"upload"]=!0,e(m)},r)},$it=Wc.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");let r;function d(g){let i=g;return e&&(a.setAttribute("href",i),i=a.href),a.setAttribute("href",i),{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(g){const i=ur.isString(g)?d(g):g;return i.protocol===r.protocol&&i.host===r.host}}():function(){return function(){return!0}}(),jit=Wc.hasStandardBrowserEnv?{write(e,a,r,d,g,i){const s=[e+"="+encodeURIComponent(a)];ur.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),ur.isString(d)&&s.push("path="+d),ur.isString(g)&&s.push("domain="+g),i===!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 Uit(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Hit(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function bF(e,a){return e&&!Uit(a)?Hit(e,a):a}const xF=e=>e instanceof cl?{...e}:e;function Ap(e,a){a=a||{};const r={};function d(f,o,m){return ur.isPlainObject(f)&&ur.isPlainObject(o)?ur.merge.call({caseless:m},f,o):ur.isPlainObject(o)?ur.merge({},o):ur.isArray(o)?o.slice():o}function g(f,o,m){if(ur.isUndefined(o)){if(!ur.isUndefined(f))return d(void 0,f,m)}else return d(f,o,m)}function i(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 n(f,o,m){if(m in a)return d(f,o);if(m in e)return d(void 0,f)}const _={url:i,method:i,data:i,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:n,headers:(f,o)=>g(xF(f),xF(o),!0)};return ur.forEach(Object.keys(Object.assign({},e,a)),function(f){const o=_[f]||g,m=o(e[f],a[f],f);ur.isUndefined(m)&&o!==n||(r[f]=m)}),r}const wF=e=>{const a=Ap({},e);let{data:r,withXSRFToken:d,xsrfHeaderName:g,xsrfCookieName:i,headers:s,auth:n}=a;a.headers=s=cl.from(s),a.url=hF(bF(a.baseURL,a.url),e.params,e.paramsSerializer),n&&s.set("Authorization","Basic "+btoa((n.username||"")+":"+(n.password?unescape(encodeURIComponent(n.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(m=>m.trim()).filter(Boolean):[];s.setContentType([f||"multipart/form-data",...o].join("; "))}}if(Wc.hasStandardBrowserEnv&&(d&&ur.isFunction(d)&&(d=d(a)),d||d!==!1&&$it(a.url))){const f=g&&i&&jit.read(i);f&&s.set(g,f)}return a},Git=typeof XMLHttpRequest<"u",Wit=Git&&function(e){return new Promise(function(a,r){const d=wF(e);let g=d.data;const i=cl.from(d.headers).normalize();let{responseType:s}=d,n;function _(){d.cancelToken&&d.cancelToken.unsubscribe(n),d.signal&&d.signal.removeEventListener("abort",n)}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};vF(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 fn("Request aborted",fn.ECONNABORTED,d,f)),f=null)},f.onerror=function(){r(new fn("Network Error",fn.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||mF;d.timeoutErrorMessage&&(x=d.timeoutErrorMessage),r(new fn(x,c.clarifyTimeoutError?fn.ETIMEDOUT:fn.ECONNABORTED,d,f)),f=null},g===void 0&&i.setContentType(null),"setRequestHeader"in f&&ur.forEach(i.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",u_(d.onDownloadProgress,!0)),typeof d.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",u_(d.onUploadProgress)),(d.cancelToken||d.signal)&&(n=x=>{f&&(r(!x||x.type?new tf(null,e,f):x),f.abort(),f=null)},d.cancelToken&&d.cancelToken.subscribe(n),d.signal&&(d.signal.aborted?n():d.signal.addEventListener("abort",n)));const m=Vit(d.url);if(m&&Wc.protocols.indexOf(m)===-1){r(new fn("Unsupported protocol "+m+":",fn.ERR_BAD_REQUEST,e));return}f.send(g||null)})},qit=(e,a)=>{let r=new AbortController,d;const g=function(_){if(!d){d=!0,s();const f=_ instanceof Error?_:this.reason;r.abort(f instanceof fn?f:new tf(f instanceof Error?f.message:f))}};let i=a&&setTimeout(()=>{g(new fn(`timeout ${a} of ms exceeded`,fn.ETIMEDOUT))},a);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(_=>{_&&(_.removeEventListener?_.removeEventListener("abort",g):_.unsubscribe(g))}),e=null)};e.forEach(_=>_&&_.addEventListener&&_.addEventListener("abort",g));const{signal:n}=r;return n.unsubscribe=s,[n,()=>{i&&clearTimeout(i),i=null}]},Yit=function*(e,a){let r=e.byteLength;if(!a||r<a){yield e;return}let d=0,g;for(;d<r;)g=d+a,yield e.slice(d,g),d=g},Zit=async function*(e,a,r){for await(const d of e)yield*Yit(ArrayBuffer.isView(d)?d:await r(String(d)),a)},kF=(e,a,r,d,g)=>{const i=Zit(e,a,g);let s=0;return new ReadableStream({type:"bytes",async pull(n){const{done:_,value:f}=await i.next();if(_){n.close(),d();return}let o=f.byteLength;r&&r(s+=o),n.enqueue(new Uint8Array(f))},cancel(n){return d(n),i.return()}},{highWaterMark:2})},CF=(e,a)=>{const r=e!=null;return d=>setTimeout(()=>a({lengthComputable:r,total:e,loaded:d}))},p_=typeof fetch<"u",EF=p_&&typeof ReadableStream<"u",u6=p_&&(typeof TextEncoder<"u"?(e=>a=>e.encode(a))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Xit=EF&&(()=>{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=EF&&!!(()=>{try{return ur.isReadableStream(new Response("").body)}catch{}})(),h_={stream:p6&&(e=>e.body)};p_&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(a=>{!h_[a]&&(h_[a]=ur.isFunction(e[a])?r=>r[a]():(r,d)=>{throw new fn(`Response type '${a}' is not supported`,fn.ERR_NOT_SUPPORT,d)})})})(new Response);const Kit=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},Jit=async(e,a)=>ur.toFiniteNumber(e.getContentLength())??Kit(a),Qit=p_&&(async e=>{let{url:a,method:r,data:d,signal:g,cancelToken:i,timeout:s,onDownloadProgress:n,onUploadProgress:_,responseType:f,headers:o,withCredentials:m="same-origin",fetchOptions:x}=wF(e);f=f?(f+"").toLowerCase():"text";let[c,l]=g||i||s?qit([g,i],s):[],u,p;const h=()=>{!u&&setTimeout(()=>{c&&c.unsubscribe()}),u=!0};let y;try{if(_&&Xit&&r!=="get"&&r!=="head"&&(y=await Jit(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=kF(C.body,TF,CF(y,u_(_)),null,u6))}ur.isString(m)||(m=m?"cors":"omit"),p=new Request(a,{...x,signal:c,method:r.toUpperCase(),headers:o.normalize().toJSON(),body:d,duplex:"half",withCredentials:m});let b=await fetch(p);const v=p6&&(f==="stream"||f==="response");if(p6&&(n||v)){const C={};["status","statusText","headers"].forEach(N=>{C[N]=b[N]});const k=ur.toFiniteNumber(b.headers.get("content-length"));b=new Response(kF(b.body,TF,n&&CF(k,u_(n,!0)),v&&h,u6),C)}f=f||"text";let w=await h_[ur.findKey(h_,f)||"text"](b,e);return!v&&h(),l&&l(),await new Promise((C,k)=>{vF(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 fn("Network Error",fn.ERR_NETWORK,e,p),{cause:b.cause||b}):fn.from(b,b&&b.code,e,p)}}),h6={http:git,xhr:Wit,fetch:Qit};ur.forEach(h6,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const SF=e=>`- ${e}`,eot=e=>ur.isFunction(e)||e===null||e===!1,AF={getAdapter:e=>{e=ur.isArray(e)?e:[e];const{length:a}=e;let r,d;const g={};for(let i=0;i<a;i++){r=e[i];let s;if(d=r,!eot(r)&&(d=h6[(s=String(r)).toLowerCase()],d===void 0))throw new fn(`Unknown adapter '${s}'`);if(d)break;g[s||"#"+i]=d}if(!d){const i=Object.entries(g).map(([n,_])=>`adapter ${n} `+(_===!1?"is not supported by the environment":"is not available in the build"));let s=a?i.length>1?`since :
|
|
114
|
+
`)}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(g=>d.set(g)),d}static accessor(a){const r=(this[yF]=this[yF]={accessors:{}}).accessors,d=this.prototype;function g(i){const s=S0(i);r[s]||(zit(d,i),r[s]=!0)}return ur.isArray(a)?a.forEach(g):g(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||T0,d=a||r,g=cl.from(d.headers);let i=d.data;return ur.forEach(e,function(s){i=s.call(r,i,g.normalize(),a?a.status:void 0)}),g.normalize(),i}function _F(e){return!!(e&&e.__CANCEL__)}function tf(e,a,r){fn.call(this,e??"canceled",fn.ERR_CANCELED,a,r),this.name="CanceledError"}ur.inherits(tf,fn,{__CANCEL__:!0});function vF(e,a,r){const d=r.config.validateStatus;!r.status||!d||d(r.status)?e(r):a(new fn("Request failed with status code "+r.status,[fn.ERR_BAD_REQUEST,fn.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Vit(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function Lit(e,a){e=e||10;const r=new Array(e),d=new Array(e);let g=0,i=0,s;return a=a!==void 0?a:1e3,function(n){const _=Date.now(),f=d[i];s||(s=_),r[g]=n,d[g]=_;let o=i,m=0;for(;o!==g;)m+=r[o++],o=o%e;if(g=(g+1)%e,g===i&&(i=(i+1)%e),_-s<a)return;const x=f&&_-f;return x?Math.round(m*1e3/x):void 0}}function Dit(e,a){let r=0;const d=1e3/a;let g=null;return function(){const i=this===!0,s=Date.now();if(i||s-r>d)return g&&(clearTimeout(g),g=null),r=s,e.apply(null,arguments);g||(g=setTimeout(()=>(g=null,r=Date.now(),e.apply(null,arguments)),d-(s-r)))}}const u_=(e,a,r=3)=>{let d=0;const g=Lit(50,250);return Dit(i=>{const s=i.loaded,n=i.lengthComputable?i.total:void 0,_=s-d,f=g(_),o=s<=n;d=s;const m={loaded:s,total:n,progress:n?s/n:void 0,bytes:_,rate:f||void 0,estimated:f&&n&&o?(n-s)/f:void 0,event:i,lengthComputable:n!=null};m[a?"download":"upload"]=!0,e(m)},r)},$it=Wc.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");let r;function d(g){let i=g;return e&&(a.setAttribute("href",i),i=a.href),a.setAttribute("href",i),{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(g){const i=ur.isString(g)?d(g):g;return i.protocol===r.protocol&&i.host===r.host}}():function(){return function(){return!0}}(),jit=Wc.hasStandardBrowserEnv?{write(e,a,r,d,g,i){const s=[e+"="+encodeURIComponent(a)];ur.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),ur.isString(d)&&s.push("path="+d),ur.isString(g)&&s.push("domain="+g),i===!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 Uit(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Hit(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function bF(e,a){return e&&!Uit(a)?Hit(e,a):a}const xF=e=>e instanceof cl?{...e}:e;function Ap(e,a){a=a||{};const r={};function d(f,o,m){return ur.isPlainObject(f)&&ur.isPlainObject(o)?ur.merge.call({caseless:m},f,o):ur.isPlainObject(o)?ur.merge({},o):ur.isArray(o)?o.slice():o}function g(f,o,m){if(ur.isUndefined(o)){if(!ur.isUndefined(f))return d(void 0,f,m)}else return d(f,o,m)}function i(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 n(f,o,m){if(m in a)return d(f,o);if(m in e)return d(void 0,f)}const _={url:i,method:i,data:i,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:n,headers:(f,o)=>g(xF(f),xF(o),!0)};return ur.forEach(Object.keys(Object.assign({},e,a)),function(f){const o=_[f]||g,m=o(e[f],a[f],f);ur.isUndefined(m)&&o!==n||(r[f]=m)}),r}const wF=e=>{const a=Ap({},e);let{data:r,withXSRFToken:d,xsrfHeaderName:g,xsrfCookieName:i,headers:s,auth:n}=a;a.headers=s=cl.from(s),a.url=hF(bF(a.baseURL,a.url),e.params,e.paramsSerializer),n&&s.set("Authorization","Basic "+btoa((n.username||"")+":"+(n.password?unescape(encodeURIComponent(n.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(m=>m.trim()).filter(Boolean):[];s.setContentType([f||"multipart/form-data",...o].join("; "))}}if(Wc.hasStandardBrowserEnv&&(d&&ur.isFunction(d)&&(d=d(a)),d||d!==!1&&$it(a.url))){const f=g&&i&&jit.read(i);f&&s.set(g,f)}return a},Git=typeof XMLHttpRequest<"u",Wit=Git&&function(e){return new Promise(function(a,r){const d=wF(e);let g=d.data;const i=cl.from(d.headers).normalize();let{responseType:s}=d,n;function _(){d.cancelToken&&d.cancelToken.unsubscribe(n),d.signal&&d.signal.removeEventListener("abort",n)}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};vF(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 fn("Request aborted",fn.ECONNABORTED,d,f)),f=null)},f.onerror=function(){r(new fn("Network Error",fn.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||mF;d.timeoutErrorMessage&&(x=d.timeoutErrorMessage),r(new fn(x,c.clarifyTimeoutError?fn.ETIMEDOUT:fn.ECONNABORTED,d,f)),f=null},g===void 0&&i.setContentType(null),"setRequestHeader"in f&&ur.forEach(i.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",u_(d.onDownloadProgress,!0)),typeof d.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",u_(d.onUploadProgress)),(d.cancelToken||d.signal)&&(n=x=>{f&&(r(!x||x.type?new tf(null,e,f):x),f.abort(),f=null)},d.cancelToken&&d.cancelToken.subscribe(n),d.signal&&(d.signal.aborted?n():d.signal.addEventListener("abort",n)));const m=Vit(d.url);if(m&&Wc.protocols.indexOf(m)===-1){r(new fn("Unsupported protocol "+m+":",fn.ERR_BAD_REQUEST,e));return}f.send(g||null)})},qit=(e,a)=>{let r=new AbortController,d;const g=function(_){if(!d){d=!0,s();const f=_ instanceof Error?_:this.reason;r.abort(f instanceof fn?f:new tf(f instanceof Error?f.message:f))}};let i=a&&setTimeout(()=>{g(new fn(`timeout ${a} of ms exceeded`,fn.ETIMEDOUT))},a);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(_=>{_&&(_.removeEventListener?_.removeEventListener("abort",g):_.unsubscribe(g))}),e=null)};e.forEach(_=>_&&_.addEventListener&&_.addEventListener("abort",g));const{signal:n}=r;return n.unsubscribe=s,[n,()=>{i&&clearTimeout(i),i=null}]},Yit=function*(e,a){let r=e.byteLength;if(!a||r<a){yield e;return}let d=0,g;for(;d<r;)g=d+a,yield e.slice(d,g),d=g},Zit=async function*(e,a,r){for await(const d of e)yield*Yit(ArrayBuffer.isView(d)?d:await r(String(d)),a)},kF=(e,a,r,d,g)=>{const i=Zit(e,a,g);let s=0;return new ReadableStream({type:"bytes",async pull(n){const{done:_,value:f}=await i.next();if(_){n.close(),d();return}let o=f.byteLength;r&&r(s+=o),n.enqueue(new Uint8Array(f))},cancel(n){return d(n),i.return()}},{highWaterMark:2})},CF=(e,a)=>{const r=e!=null;return d=>setTimeout(()=>a({lengthComputable:r,total:e,loaded:d}))},p_=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",EF=p_&&typeof ReadableStream=="function",u6=p_&&(typeof TextEncoder=="function"?(e=>a=>e.encode(a))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Xit=EF&&(()=>{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=EF&&!!(()=>{try{return ur.isReadableStream(new Response("").body)}catch{}})(),h_={stream:p6&&(e=>e.body)};p_&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(a=>{!h_[a]&&(h_[a]=ur.isFunction(e[a])?r=>r[a]():(r,d)=>{throw new fn(`Response type '${a}' is not supported`,fn.ERR_NOT_SUPPORT,d)})})})(new Response);const Kit=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},Jit=async(e,a)=>ur.toFiniteNumber(e.getContentLength())??Kit(a),Qit=p_&&(async e=>{let{url:a,method:r,data:d,signal:g,cancelToken:i,timeout:s,onDownloadProgress:n,onUploadProgress:_,responseType:f,headers:o,withCredentials:m="same-origin",fetchOptions:x}=wF(e);f=f?(f+"").toLowerCase():"text";let[c,l]=g||i||s?qit([g,i],s):[],u,p;const h=()=>{!u&&setTimeout(()=>{c&&c.unsubscribe()}),u=!0};let y;try{if(_&&Xit&&r!=="get"&&r!=="head"&&(y=await Jit(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=kF(C.body,TF,CF(y,u_(_)),null,u6))}ur.isString(m)||(m=m?"cors":"omit"),p=new Request(a,{...x,signal:c,method:r.toUpperCase(),headers:o.normalize().toJSON(),body:d,duplex:"half",withCredentials:m});let b=await fetch(p);const v=p6&&(f==="stream"||f==="response");if(p6&&(n||v)){const C={};["status","statusText","headers"].forEach(N=>{C[N]=b[N]});const k=ur.toFiniteNumber(b.headers.get("content-length"));b=new Response(kF(b.body,TF,n&&CF(k,u_(n,!0)),v&&h,u6),C)}f=f||"text";let w=await h_[ur.findKey(h_,f)||"text"](b,e);return!v&&h(),l&&l(),await new Promise((C,k)=>{vF(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 fn("Network Error",fn.ERR_NETWORK,e,p),{cause:b.cause||b}):fn.from(b,b&&b.code,e,p)}}),h6={http:git,xhr:Wit,fetch:Qit};ur.forEach(h6,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const SF=e=>`- ${e}`,eot=e=>ur.isFunction(e)||e===null||e===!1,AF={getAdapter:e=>{e=ur.isArray(e)?e:[e];const{length:a}=e;let r,d;const g={};for(let i=0;i<a;i++){r=e[i];let s;if(d=r,!eot(r)&&(d=h6[(s=String(r)).toLowerCase()],d===void 0))throw new fn(`Unknown adapter '${s}'`);if(d)break;g[s||"#"+i]=d}if(!d){const i=Object.entries(g).map(([n,_])=>`adapter ${n} `+(_===!1?"is not supported by the environment":"is not available in the build"));let s=a?i.length>1?`since :
|
|
115
115
|
`+i.map(SF).join(`
|
|
116
|
-
`):" "+SF(i[0]):"as no adapter specified";throw new fn("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return d},adapters:h6};function f6(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new tf(null,e)}function NF(e){return f6(e),e.headers=cl.from(e.headers),e.data=d6.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),AF.getAdapter(e.adapter||T0.adapter)(e).then(function(a){return f6(e),a.data=d6.call(e,e.transformResponse,a),a.headers=cl.from(a.headers),a},function(a){return _F(a)||(f6(e),a&&a.response&&(a.response.data=d6.call(e,e.transformResponse,a.response),a.response.headers=cl.from(a.response.headers))),Promise.reject(a)})}const BF="1.7.
|
|
116
|
+
`):" "+SF(i[0]):"as no adapter specified";throw new fn("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return d},adapters:h6};function f6(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new tf(null,e)}function NF(e){return f6(e),e.headers=cl.from(e.headers),e.data=d6.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),AF.getAdapter(e.adapter||T0.adapter)(e).then(function(a){return f6(e),a.data=d6.call(e,e.transformResponse,a),a.headers=cl.from(a.headers),a},function(a){return _F(a)||(f6(e),a&&a.response&&(a.response.data=d6.call(e,e.transformResponse,a.response),a.response.headers=cl.from(a.response.headers))),Promise.reject(a)})}const BF="1.7.2",m6={};["object","boolean","number","function","string","symbol"].forEach((e,a)=>{m6[e]=function(r){return typeof r===e||"a"+(a<1?"n ":" ")+e}});const IF={};m6.transitional=function(e,a,r){function d(g,i){return"[Axios v"+BF+"] Transitional option '"+g+"'"+i+(r?". "+r:"")}return(g,i,s)=>{if(e===!1)throw new fn(d(i," has been removed"+(a?" in "+a:"")),fn.ERR_DEPRECATED);return a&&!IF[i]&&(IF[i]=!0,console.warn(d(i," has been deprecated since v"+a+" and will be removed in the near future"))),e?e(g,i,s):!0}};function tot(e,a,r){if(typeof e!="object")throw new fn("options must be an object",fn.ERR_BAD_OPTION_VALUE);const d=Object.keys(e);let g=d.length;for(;g-- >0;){const i=d[g],s=a[i];if(s){const n=e[i],_=n===void 0||s(n,i,e);if(_!==!0)throw new fn("option "+i+" must be "+_,fn.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new fn("Unknown option "+i,fn.ERR_BAD_OPTION)}}const g6={assertOptions:tot,validators:m6},Ku=g6.validators;class Np{constructor(a){this.defaults=a,this.interceptors={request:new fF,response:new fF}}async request(a,r){try{return await this._request(a,r)}catch(d){if(d instanceof Error){let g;Error.captureStackTrace?Error.captureStackTrace(g={}):g=new Error;const i=g.stack?g.stack.replace(/^.+\n/,""):"";try{d.stack?i&&!String(d.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(d.stack+=`
|
|
117
117
|
`+i):d.stack=i}catch{}}throw d}}_request(a,r){typeof a=="string"?(r=r||{},r.url=a):r=a||{},r=Ap(this.defaults,r);const{transitional:d,paramsSerializer:g,headers:i}=r;d!==void 0&&g6.assertOptions(d,{silentJSONParsing:Ku.transitional(Ku.boolean),forcedJSONParsing:Ku.transitional(Ku.boolean),clarifyTimeoutError:Ku.transitional(Ku.boolean)},!1),g!=null&&(ur.isFunction(g)?r.paramsSerializer={serialize:g}:g6.assertOptions(g,{encode:Ku.function,serialize:Ku.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=i&&ur.merge(i.common,i[r.method]);i&&ur.forEach(["delete","get","head","post","put","patch","common"],l=>{delete i[l]}),r.headers=cl.concat(s,i);const n=[];let _=!0;this.interceptors.request.forEach(function(l){typeof l.runWhen=="function"&&l.runWhen(r)===!1||(_=_&&l.synchronous,n.unshift(l.fulfilled,l.rejected))});const f=[];this.interceptors.response.forEach(function(l){f.push(l.fulfilled,l.rejected)});let o,m=0,x;if(!_){const l=[NF.bind(this),void 0];for(l.unshift.apply(l,n),l.push.apply(l,f),x=l.length,o=Promise.resolve(r);m<x;)o=o.then(l[m++],l[m++]);return o}x=n.length;let c=r;for(m=0;m<x;){const l=n[m++],u=n[m++];try{c=l(c)}catch(p){u.call(this,p);break}}try{o=NF.call(this,c)}catch(l){return Promise.reject(l)}for(m=0,x=f.length;m<x;)o=o.then(f[m++],f[m++]);return o}getUri(a){a=Ap(this.defaults,a);const r=bF(a.baseURL,a.url);return hF(r,a.params,a.paramsSerializer)}}ur.forEach(["delete","get","head","options"],function(e){Np.prototype[e]=function(a,r){return this.request(Ap(r||{},{method:e,url:a,data:(r||{}).data}))}}),ur.forEach(["post","put","patch"],function(e){function a(r){return function(d,g,i){return this.request(Ap(i||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:d,data:g}))}}Np.prototype[e]=a(),Np.prototype[e+"Form"]=a(!0)});class y6{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(g){r=g});const d=this;this.promise.then(g=>{if(!d._listeners)return;let i=d._listeners.length;for(;i-- >0;)d._listeners[i](g);d._listeners=null}),this.promise.then=g=>{let i;const s=new Promise(n=>{d.subscribe(n),i=n}).then(g);return s.cancel=function(){d.unsubscribe(i)},s},a(function(g,i,s){d.reason||(d.reason=new tf(g,i,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 y6(function(r){a=r}),cancel:a}}}function aot(e){return function(a){return e.apply(null,a)}}function rot(e){return ur.isObject(e)&&e.isAxiosError===!0}const _6={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(_6).forEach(([e,a])=>{_6[a]=e});function MF(e){const a=new Np(e),r=KP(Np.prototype.request,a);return ur.extend(r,Np.prototype,a,{allOwnKeys:!0}),ur.extend(r,a,null,{allOwnKeys:!0}),r.create=function(d){return MF(Ap(e,d))},r}const Ii=MF(T0);Ii.Axios=Np,Ii.CanceledError=tf,Ii.CancelToken=y6,Ii.isCancel=_F,Ii.VERSION=BF,Ii.toFormData=c_,Ii.AxiosError=fn,Ii.Cancel=Ii.CanceledError,Ii.all=function(e){return Promise.all(e)},Ii.spread=aot,Ii.isAxiosError=rot,Ii.mergeConfig=Ap,Ii.AxiosHeaders=cl,Ii.formToJSON=e=>gF(ur.isHTMLForm(e)?new FormData(e):e),Ii.getAdapter=AF.getAdapter,Ii.HttpStatusCode=_6,Ii.default=Ii;const Si=(e,a)=>{const r=e.__vccOpts||e;for(const[d,g]of a)r[d]=g;return r},not={components:{},props:{widthContainer:{type:Number,default:1280},isMovil:{type:Boolean,default:!1}},data(){return{player_img:"https://golstatsimages.blob.core.windows.net/images-library/14792_2_1772_DGS.png"}},watch:{},computed:{gsccollectorsselectcontcountry(){const e=this.widthContainer;return e<=380?"gsc-collectors-select-cont-country380":e<=768?"gsc-collectors-select-cont-country768":"gsc-collectors-select-cont-country"},gsccollectorsselectnamemovil(){const e=this.widthContainer;return e<=380?"gsc-collectors-select-name-movil380":e<=500?"gsc-collectors-select-name-movil500":"gsc-collectors-select-name-movil"},gsccollectorsselecttitlemovil(){const e=this.widthContainer;return e<=380?"gsc-collectors-select-title-movil380":e<=500?"gsc-collectors-select-title-movil500":"gsc-collectors-select-title-movil"},gsccollectorsselectvaluemovil(){const e=this.widthContainer;return e<=380?"gsc-collectors-select-value-movil380":e<=500?"gsc-collectors-select-value-movil500":"gsc-collectors-select-value-movil"},gsccollectorsselectinfocontainermovil(){const e=this.widthContainer;return e<=380?"gsc-collectors-select-info-container-movil380":e<=500?"gsc-collectors-select-info-container-movil500":e<=600?"gsc-collectors-select-info-container-movil600":"gsc-collectors-select-info-container-movil"},gsccollectorsselectimgcontainermovil(){const e=this.widthContainer;return e<=380?"gsc-collectors-select-img-container-movil380":e<=500?"gsc-collectors-select-img-container-movil500":e<=600?"gsc-collectors-select-img-container-movil600":"gsc-collectors-select-img-container-movil"}},methods:{},mounted(){}},A0=e=>(t.pushScopeId("data-v-63c4bc46"),e=e(),t.popScopeId(),e),iot=A0(()=>t.createElementVNode("br",null,null,-1)),oot=A0(()=>t.createElementVNode("div",{class:"gsc-collectors-select-country"},[t.createElementVNode("img",{class:"gsc-collectors-select-imgcountry",width:"20",src:"https://az755631.vo.msecnd.net/flags/138.jpg"})],-1)),sot=A0(()=>t.createElementVNode("div",{class:"gsc-collectors-select-position"},"Medio",-1)),lot=[oot,sot],cot={key:0,class:"gsc-collectors-select-cont-country"},dot=A0(()=>t.createElementVNode("div",{class:"gsc-collectors-select-country"},[t.createElementVNode("img",{class:"gsc-collectors-select-imgcountry",width:"20",src:"https://az755631.vo.msecnd.net/flags/138.jpg"})],-1)),uot=A0(()=>t.createElementVNode("div",{class:"gsc-collectors-select-position"},"Medio",-1)),pot=[dot,uot],hot={class:"gsc-collectors-select-info-row-2"};function fot(e,a,r,d,g,i){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(r.isMovil?"gsc-collectors-select-player-movil":"gsc-collectors-select-player")},[t.createElementVNode("div",{class:t.normalizeClass(r.isMovil?i.gsccollectorsselectimgcontainermovil:"gsc-collectors-select-img-container"),style:t.normalizeStyle({backgroundImage:"url("+g.player_img+")"})},null,6),t.createElementVNode("div",{class:t.normalizeClass(r.isMovil?i.gsccollectorsselectinfocontainermovil:"gsc-collectors-select-info-container")},[t.createElementVNode("div",{class:t.normalizeClass(r.isMovil?"gsc-collectors-select-info-row-1-movil":"gsc-collectors-select-info-row-1")},[t.createElementVNode("div",{class:t.normalizeClass(r.isMovil?"gsc-collectors-select-num-movil":"gsc-collectors-select-num")}," 7 ",2),t.createElementVNode("div",{class:t.normalizeClass(r.isMovil?i.gsccollectorsselectnamemovil:"gsc-collectors-select-name")},[t.createTextVNode(" Romo, Luis"),iot,r.isMovil?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.isMovil?i.gsccollectorsselectcontcountry:"gsc-collectors-select-cont-country")},lot,2)):t.createCommentVNode("",!0)],2),r.isMovil?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",cot,pot))],2),t.createElementVNode("div",hot,[t.createElementVNode("div",{class:t.normalizeClass(r.isMovil?i.gsccollectorsselecttitlemovil:"gsc-collectors-select-title")}," Tiros de esquina cobrados: ",2),t.createElementVNode("div",{class:t.normalizeClass(r.isMovil?i.gsccollectorsselectvaluemovil:"gsc-collectors-select-value")}," 4/21 ",2)])],2)],2)}const mot=Si(not,[["render",fot],["__scopeId","data-v-63c4bc46"]]),got={components:{},props:{widthContainer:{type:Number,default:1280},isMovil:{type:Boolean,default:!1},playerId:{type:Number,default:0},data:{type:Object,default:()=>({})},forGame:{type:Boolean,required:!1},inFavor:{type:Boolean,required:!0}},data(){return{itemselected:0,flagaux:!0,type:0}},watch:{inFavor:{handler(){this.type=0,this.flagaux=!0},deep:!0},data:{handler(e){setTimeout(()=>{this.data&&Object.keys(this.data.team).length>0&&(this.type==0?this.flagaux?(this.itemselected=this.data.team[Object.keys(this.data.team)[0]].data.id,this.$emit("selectteam",this.data.team[Object.keys(this.data.team)[0]].data.id)):this.data.team.find(a=>a.data.id===this.itemselected)?this.$emit("selectteam",this.itemselected):(this.itemselected=this.data.team[Object.keys(this.data.team)[0]].data.id,this.$emit("selectteam",this.data.team[Object.keys(this.data.team)[0]].data.id)):this.data.players.find(a=>a.data.player_id===this.itemselected)||(this.itemselected=this.data.players[Object.keys(this.data.players)[0]].data.player_id,this.$emit("selectplayer",this.data.players[Object.keys(this.data.players)[0]].data.player_id)))},100)},deep:!0}},computed:{},methods:{selectPlayer(e){this.type=1,this.itemselected=e,this.$emit("selectplayer",e)},selectTeam(e){this.itemselected=e,this.type=0,this.flagaux=!1,this.$emit("selectteam",e)}},mounted(){this.data&&Object.keys(this.data.team).length>0&&(this.itemselected=this.data.team[[0]].data.id,this.$emit("selectteam",this.data.team[Object.keys(this.data.team)[0]].data.id))}},OF=e=>(t.pushScopeId("data-v-d43de6a2"),e=e(),t.popScopeId(),e),yot=["onClick"],_ot={class:"gsc-collectors-select-team-item-team"},vot={class:"gsc-collectors-select-team-item-num"},bot=["onClick"],xot={class:"gsc-collectors-select-team-item-team"},wot={class:"gsc-collectors-select-team-item-num"},kot=OF(()=>t.createElementVNode("br",null,null,-1)),Cot={key:0,class:"gsc-collectors-select-team-item-scroll"},Eot=OF(()=>t.createElementVNode("svg",{"data-v-b548a08d":"",width:"20",height:"20",viewBox:"-2 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{"data-v-b548a08d":"",d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:"#CBEE6B",transform:"rotate(270 5.36523 6.26377)"})],-1)),Tot=[Eot];function Sot(e,a,r,d,g,i){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(r.isMovil?"gsc-collectors-select-team-movil":"gsc-collectors-select-team")},[t.createElementVNode("div",{class:t.normalizeClass(r.isMovil?"gsc-collectors-select-team-title-movil":"gsc-collectors-select-team-title")}," Elige un cobrador: ",2),t.createElementVNode("div",{class:t.normalizeClass(r.isMovil?"gsc-collectors-select-team-container-movil":"gsc-collectors-select-team-container")},[r.data.team.length>0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(r.data.team,(s,n)=>(t.openBlock(),t.createElementBlock("div",{key:n,style:t.normalizeStyle(s.data.id==g.itemselected&&g.type==0?"border: 1px solid rgb(155, 155, 109);":""),onClick:_=>i.selectTeam(s.data.id),class:t.normalizeClass(r.isMovil?"gsc-collectors-select-team-item-movil":"gsc-collectors-select-team-item")},[r.data.team&&r.data?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.isMovil?"gsc-collectors-select-team-item-shield-movil":"gsc-collectors-select-team-item-shield"),style:t.normalizeStyle({backgroundImage:"url("+s.data.img+")"})},null,6)):t.createCommentVNode("",!0),t.createElementVNode("div",_ot,t.toDisplayString(s.data.name),1),t.createElementVNode("div",vot,t.toDisplayString(s.total),1)],14,yot))),128)):t.createCommentVNode("",!0),r.data.players.length>0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(r.data.players,(s,n)=>(t.openBlock(),t.createElementBlock("div",{key:n,style:t.normalizeStyle(s.data.id==g.itemselected&&g.type==1?"border: 1px solid rgb(155, 155, 109);":""),onClick:_=>i.selectPlayer(s.data.id),class:t.normalizeClass(r.isMovil?"gsc-collectors-select-team-item-movil":"gsc-collectors-select-team-item")},[t.createElementVNode("div",{class:t.normalizeClass(r.isMovil?"gsc-collectors-select-team-item-shield-movil":"gsc-collectors-select-team-item-shield"),style:t.normalizeStyle({backgroundImage:"url("+s.data.img+")"})},null,6),t.createElementVNode("div",xot,t.toDisplayString(s.data.name),1),t.createElementVNode("div",wot,t.toDisplayString(s.total),1)],14,bot))),128)):t.createCommentVNode("",!0),r.data.team.length==0&&r.data.players.length==0?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(r.isMovil?"class-not-result-movil":"class-not-result")},[t.createTextVNode(" No se muestran resultados debido"),kot,t.createTextVNode(" a los filtros aplicados. ")],2)):t.createCommentVNode("",!0)],2),!r.isMovil&&(r.data.team.length>0||r.data.players.length>0)?(t.openBlock(),t.createElementBlock("div",Cot,Tot)):t.createCommentVNode("",!0)],2)}const Aot=Si(got,[["render",Sot],["__scopeId","data-v-d43de6a2"]]),Not={components:{GSCCollectorsSelectPlayer:mot,GSCCollectorsSelectTeam:Aot},props:{widthContainer:{type:Number,default:1280},isTeam:{type:Boolean,default:!1},playerId:{type:Number,default:0},isMovil:{type:Boolean,default:!1},data:{type:Object,default:()=>({})},forGame:{type:Boolean,required:!1},inFavor:{type:Boolean,required:!0}},data(){return{}},watch:{},computed:{},methods:{selectPlayer(e){this.$emit("selectplayer",e)},selectTeam(e){this.$emit("selectteam",e)}},mounted(){const e=()=>{const a=document.querySelector(".gsc-collectors-select");a?this.containerWidth=a.clientWidth:setTimeout(()=>{},400)};window.addEventListener("resize",e),this.$nextTick(e)}},Bot={class:"gsc-collectors-select"};function Iot(e,a,r,d,g,i){const s=t.resolveComponent("GSCCollectorsSelectTeam"),n=t.resolveComponent("GSCCollectorsSelectPlayer");return t.openBlock(),t.createElementBlock("div",Bot,[r.isTeam?(t.openBlock(),t.createBlock(s,{key:0,"is-movil":r.isMovil,"width-container":r.widthContainer,"player-id":r.playerId,data:r.data,"for-game":r.forGame,"in-favor":r.inFavor,onSelectplayer:i.selectPlayer,onSelectteam:i.selectTeam},null,8,["is-movil","width-container","player-id","data","for-game","in-favor","onSelectplayer","onSelectteam"])):(t.openBlock(),t.createBlock(n,{key:1,"is-movil":r.isMovil,"width-container":r.widthContainer},null,8,["is-movil","width-container"]))])}const Mot=Si(Not,[["render",Iot],["__scopeId","data-v-11588c5d"]]),Oot={components:{},props:{widthContainer:{type:Number,default:1280},isMovil:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},data(){return{rivalimg:"/img-rival@2x.png"}},watch:{},computed:{},methods:{},mounted(){}},Pot={class:"gsc-breakdown-by-corner-kick"},Fot={class:"gsc-breakdown-by-corner-kick-title"},Rot={class:"gsc-breakdown-by-corner-kick-title-minutes"},zot={class:"gsc-breakdown-by-corner-kick-title-category"},Vot={class:"gsc-breakdown-by-corner-kick-title-match"},Lot={class:"gsc-breakdown-by-corner-kick-title-tournament"},Dot={class:"gsc-breakdown-by-corner-kick-container-items-touchs"},$ot={class:"gsc-breakdown-by-corner-kick-player"},jot={class:"gsc-breakdown-by-corner-kick-player-name"},Uot={key:0,class:"gsc-breakdown-by-corner-kick-arrow"};function Hot(e,a,r,d,g,i){return t.openBlock(),t.createElementBlock("div",Pot,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.data.players,(s,n)=>(t.openBlock(),t.createElementBlock("div",{key:n,class:"gsc-breakdown-by-corner-kick-cointainer"},[t.createElementVNode("div",Fot,[t.createElementVNode("div",Rot,t.toDisplayString(s[3]),1),t.createElementVNode("div",zot," Tiro de esquina vs "+t.toDisplayString(s[6]),1),t.createElementVNode("div",Vot,t.toDisplayString(s[5]),1),t.createElementVNode("div",Lot,t.toDisplayString(s[4]),1)]),t.createElementVNode("div",{class:t.normalizeClass(r.isMovil?"gsc-container-scroll-movil":"gsc-container-scroll")},[t.createElementVNode("div",Dot,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s,(_,f)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:f},[f>7?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",$ot,[t.createElementVNode("div",{class:"gsc-breakdown-by-corner-kick-player-img",style:t.normalizeStyle({backgroundImage:"url("+_.data.img+")"})},[t.createElementVNode("div",{class:"gsc-breakdown-by-corner-kick-player-num",style:t.normalizeStyle(_.rival?"border-color: #efa331 !important;":"border-color: #cbee6b !important;")},t.toDisplayString(_.touch),5)],4),t.createElementVNode("div",jot,t.toDisplayString(_.data.name),1)]),f<Object.keys(s).length-1?(t.openBlock(),t.createElementBlock("div",Uot)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64))),128))])],2)]))),128))])}const Got=Si(Oot,[["render",Hot],["__scopeId","data-v-2be175d3"]]),Wot={components:{},props:{widthContainer:{type:Number,default:1280},isMovil:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},data(){return{rivalimg:"/img-rival@2x.png",titles:["Primer toque:","Segundo Toque:","Tercer Toque:","Cuarto Toque:","Quinto Toque:","Sexto Toque:","Septimo Toque:","Octavo Toque:","Noveno Toque:","Decimo Toque:","Decimo Primer Toque:","Decimo Segundo Toque:"]}},watch:{},computed:{},methods:{},mounted(){}},qot={class:"gsc-breakdown-by-touch"},Yot={class:"gsc-breakdown-by-touch-title"},Zot={class:"gsc-breakdown-by-touch-container-items-touchs"},Xot={key:0,class:"gsc-breakdown-by-touch-player"},Kot={class:"gsc-breakdown-by-touch-player-name"};function Jot(e,a,r,d,g,i){return t.openBlock(),t.createElementBlock("div",qot,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.data,(s,n)=>(t.openBlock(),t.createElementBlock("div",{key:n,class:"gsc-breakdown-by-touch-cointainer"},[t.createElementVNode("div",Yot,t.toDisplayString(g.titles[n]),1),t.createElementVNode("div",{class:t.normalizeClass(r.isMovil?"gsc-container-scroll-movil":"gsc-container-scroll")},[t.createElementVNode("div",Zot,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s,(_,f)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:f},[f!=0?(t.openBlock(),t.createElementBlock("div",Xot,[_.playerFlag!="rival"&&_.playerFlag!="rivalportero"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-breakdown-by-touch-player-img",style:t.normalizeStyle({backgroundImage:"url("+_.data.img+")"})},[t.createElementVNode("div",{class:"gsc-breakdown-by-touch-player-num",style:t.normalizeStyle(_.playerFlag=="rival"||_.playerFlag=="rivalportero"?"border-color: #bb2b49 !important;":"border-color: #cbee6b !important;")},t.toDisplayString(_.total),5)],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-breakdown-by-touch-player-img",style:t.normalizeStyle([{backgroundImage:"url("+g.rivalimg+")"},{"background-size":"70%","background-position":"center 20px"}])},[t.createElementVNode("div",{class:"gsc-breakdown-by-touch-player-num",style:t.normalizeStyle(_.playerFlag=="rival"||_.playerFlag=="rivalportero"?"border-color: #bb2b49 !important;":"border-color: #cbee6b !important;")},t.toDisplayString(_.total),5)],4)),t.createElementVNode("div",Kot,t.toDisplayString(_.playerFlag=="rival"?"Rival":_.playerFlag=="rivalportero"?"Portero Rival":_.data.name),1)])):t.createCommentVNode("",!0)],64))),128))])],2)]))),128))])}const Qot=Si(Wot,[["render",Jot],["__scopeId","data-v-3b16e984"]]),est={components:{GSCBreakdownByTouches:Qot,GSCBreakdownByCornerKick:Got},props:{widthContainer:{type:Number,default:1280},type:{type:String,default:"touch"},isMovil:{type:Boolean,default:!1},data:{type:Object,default:()=>({})}},data(){return{datar:[{title:"Primer toque:",players:[{name:"S.Gimenez",img:"https://golstatsimages.blob.core.windows.net/images-library/34605_2_1836_DGS.png",num:7,rival:!1},{name:"U.Antuna",img:"https://golstatsimages.blob.core.windows.net/images-library/34605_2_1836_DGS.png",num:4,rival:!1},{name:"Conexiones Rival",img:"https://golstatsimages.blob.core.windows.net/images-library/34605_2_1836_DGS.png",num:5,rival:!0},{name:"S.Gimenez",img:"https://golstatsimages.blob.core.windows.net/images-library/34605_2_1836_DGS.png",num:7,rival:!1},{name:"S.Gimenez",img:"https://golstatsimages.blob.core.windows.net/images-library/34605_2_1836_DGS.png",num:7,rival:!1}]},{title:"Segundo toque:",players:[{name:"S.Gimenez",img:"https://golstatsimages.blob.core.windows.net/images-library/34605_2_1836_DGS.png",num:7,rival:!1},{name:"Conexiones Rival",img:"https://golstatsimages.blob.core.windows.net/images-library/34605_2_1836_DGS.png",num:5,rival:!0}]},{title:"Cuarto toque:",players:[{name:"S.Gimenez",img:"https://golstatsimages.blob.core.windows.net/images-library/34605_2_1836_DGS.png",num:7,rival:!1}]},{title:"Tercer toque:",players:[{name:"S.Gimenez",img:"https://golstatsimages.blob.core.windows.net/images-library/34605_2_1836_DGS.png",num:7,rival:!1}]},{title:"Primer toque:",players:[{name:"S.Gimenez",img:"https://golstatsimages.blob.core.windows.net/images-library/34605_2_1836_DGS.png",num:7,rival:!1},{name:"U.Antuna",img:"https://golstatsimages.blob.core.windows.net/images-library/34605_2_1836_DGS.png",num:4,rival:!1},{name:"Conexiones Rival",img:"https://golstatsimages.blob.core.windows.net/images-library/34605_2_1836_DGS.png",num:5,rival:!0},{name:"S.Gimenez",img:"https://golstatsimages.blob.core.windows.net/images-library/34605_2_1836_DGS.png",num:7,rival:!1},{name:"U.Antuna",img:"https://golstatsimages.blob.core.windows.net/images-library/34605_2_1836_DGS.png",num:4,rival:!1}]},{title:"Primer toque:",players:[{name:"S.Gimenez",img:"https://golstatsimages.blob.core.windows.net/images-library/34605_2_1836_DGS.png",num:7,rival:!1},{name:"U.Antuna",img:"https://golstatsimages.blob.core.windows.net/images-library/34605_2_1836_DGS.png",num:4,rival:!1},{name:"Conexiones Rival",img:"https://golstatsimages.blob.core.windows.net/images-library/34605_2_1836_DGS.png",num:5,rival:!0},{name:"S.Gimenez",img:"https://golstatsimages.blob.core.windows.net/images-library/34605_2_1836_DGS.png",num:7,rival:!1},{name:"U.Antuna",img:"https://golstatsimages.blob.core.windows.net/images-library/34605_2_1836_DGS.png",num:4,rival:!1}]},{title:"Primer toque:",players:[{name:"S.Gimenez",img:"https://golstatsimages.blob.core.windows.net/images-library/34605_2_1836_DGS.png",num:7,rival:!1},{name:"U.Antuna",img:"https://golstatsimages.blob.core.windows.net/images-library/34605_2_1836_DGS.png",num:4,rival:!1},{name:"Conexiones Rival",img:"https://golstatsimages.blob.core.windows.net/images-library/34605_2_1836_DGS.png",num:5,rival:!0},{name:"S.Gimenez",img:"https://golstatsimages.blob.core.windows.net/images-library/34605_2_1836_DGS.png",num:7,rival:!1},{name:"U.Antuna",img:"https://golstatsimages.blob.core.windows.net/images-library/34605_2_1836_DGS.png",num:4,rival:!1}]}]}},watch:{},computed:{},methods:{},mounted(){}},tst=e=>(t.pushScopeId("data-v-5db2d368"),e=e(),t.popScopeId(),e),ast={class:"gsc-breakdown"},rst=tst(()=>t.createElementVNode("div",{class:"gsc-breakdown-scrollbluer"},null,-1));function nst(e,a,r,d,g,i){const s=t.resolveComponent("GSCBreakdownByCornerKick"),n=t.resolveComponent("GSCBreakdownByTouches");return t.openBlock(),t.createElementBlock("div",ast,[r.data.length==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.isMovil?"class-not-result-movil":"class-not-result")}," No se muestran resultados debido a los filtros aplicados. ",2)):t.createCommentVNode("",!0),r.type==="corners"?(t.openBlock(),t.createBlock(s,{key:1,"is-movil":r.isMovil,"width-container":r.widthContainer,data:r.data},null,8,["is-movil","width-container","data"])):(t.openBlock(),t.createBlock(n,{key:2,"is-movil":r.isMovil,"width-container":r.widthContainer,data:r.data},null,8,["is-movil","width-container","data"])),rst])}const ist=Si(est,[["render",nst],["__scopeId","data-v-5db2d368"]]);function ost(e){const a=t.ref({width:0,height:0});function r(){const d=e.value.getBoundingClientRect();a.value.width=d.width,a.value.height=d.height}return t.onMounted(()=>{r(),window.addEventListener("resize",r)}),t.onUnmounted(()=>{window.removeEventListener("resize",r)}),{elementSize:a}}const sst=(e,a)=>{const r=e.__vccOpts||e;for(const[d,g]of a)r[d]=g;return r},v6={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,a=this.$refs.content.scrollWidth;a>0&&e>0&&(a>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},PF=()=>{t.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},FF=v6.setup;v6.setup=FF?(e,a)=>(PF(),FF(e,a)):PF;const lst={ref:"gscScrollableContainer",class:"scrollable-container"},cst={class:"scrollable-arrows"},dst=["width","height","viewBox"],ust=["stroke"],pst={class:"scrollable-wrapper"},hst={class:"scrollable-arrows"},fst=["width","height","viewBox"],mst=["stroke"];function gst(e,a,r,d,g,i){return t.openBlock(),t.createElementBlock("div",lst,[r.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",i.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...s)=>i.scrollLeft&&i.scrollLeft(...s))},[t.createElementVNode("div",cst,[(t.openBlock(),t.createElementBlock("svg",{width:r.arrowsWidth,height:r.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:r.arrowsColor},null,8,ust)],8,dst))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:a[1]||(a[1]=(...s)=>i.getScroll&&i.getScroll(...s))},[t.createElementVNode("div",pst,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),r.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",i.hideShowRightArrow]),onClick:a[2]||(a[2]=(...s)=>i.scrollRight&&i.scrollRight(...s))},[t.createElementVNode("div",hst,[(t.openBlock(),t.createElementBlock("svg",{width:r.arrowsWidth,height:r.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:r.arrowsColor},null,8,mst)],8,fst))])],2)):t.createCommentVNode("",!0)],512)}const yst=sst(v6,[["render",gst],["__scopeId","data-v-b548a08d"]]),_st=(e,a)=>{const r=e.__vccOpts||e;for(const[d,g]of a)r[d]=g;return r},b6={components:{GSCSlider:yst},props:{arrow:{type:Boolean,required:!0},buttons:{type:Array,required:!0},width:{type:String,default:"300px"},height:{type:String,default:"80px"},fontSize:{type:String,default:"16px"},colorFont:{type:String,default:"#ffffff"},backgroundOptionActive:{type:String,default:"#0d1d29"},colorOptionActive:{type:String,default:"#cbee6b"},colorOptionDisable:{type:String,default:"gray"},backgroundOptionDisable:{type:String,default:"#0d1d29"},fontFamily:{type:String,default:"Poppins-Semibold"},borderWidth:{type:String,default:"3px"},borderRadius:{type:String,default:"0px"},selectedOption:{type:String,default:""},type:{type:Number,default:0},borderWidthContainer:{type:String,default:"1px"},background:{type:String,default:"#0d1d29"},borderColorContainer:{type:String,default:"#505355"},pxScroll:{type:Number,default:100},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},arrowsScrollHide:{type:Boolean,default:!1},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"}},setup(){const e=t.ref("myDivRef"),{elementSize:a}=ost(e);return{myDivRef:e,elementSize:a}},methods:{clickEmitEvent(e){this.$emit("input",e)},customGrid(e){var a={};return e.width>768?a={fontSize:"16px"}:e.width>480?a={fontSize:"14px"}:a={fontSize:"12px"},a}}},RF=()=>{t.useCssVars(e=>({cff4a118:e.fontSize,"42aab7f6":e.borderWidth,d29bcbd2:e.fontFamily,df6c5a9c:e.background,"09b32862":e.borderRadius,"8c0d6daa":e.borderWidthContainer,e8a86fa4:e.borderColorContainer,"179494da":e.colorOptionActive,cea5647c:e.width}))},zF=b6.setup;b6.setup=zF?(e,a)=>(RF(),zF(e,a)):RF;const vst={ref:"myDivRef"},bst={key:0,class:"gs-switch-container"},xst=["onClick"],wst={key:1,class:"gs-switch-container-type"},kst=["onClick"],Cst={key:2,class:"gs-switch-container-carousel"},Est=["onClick"];function Tst(e,a,r,d,g,i){const s=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",vst,[r.type==0?(t.openBlock(),t.createElementBlock("div",bst,[t.createElementVNode("div",{class:"gs-switch-container__control",style:t.normalizeStyle([i.customGrid(d.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.buttons,(n,_)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container__control__button-option",style:t.normalizeStyle([{height:r.height},r.selectedOption==n?{borderColor:r.colorOptionActive,color:r.colorFont+"!important",background:r.backgroundOptionActive}:{borderColor:r.colorOptionDisable,color:"grey !important"}]),key:_,onClick:f=>(r.selectedOption=n,i.clickEmitEvent(n))},t.toDisplayString(n),13,xst))),128))],4),t.renderSlot(e.$slots,r.selectedOption,{},void 0,!0)])):t.createCommentVNode("",!0),r.type==1?(t.openBlock(),t.createElementBlock("div",wst,[t.createElementVNode("div",{class:"gs-switch-container-type__control",style:t.normalizeStyle([i.customGrid(d.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.buttons,(n,_)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container-type__control__button-option-type",style:t.normalizeStyle([{height:r.height},r.selectedOption==n?{borderColor:r.colorOptionActive,color:r.colorFont+"!important",background:r.backgroundOptionActive}:{borderColor:r.colorOptionDisable,borderWidth:"0px",borderWidth:"0px !important",color:"grey !important",background:r.backgroundOptionDisable}]),key:_,onClick:f=>(r.selectedOption=n,i.clickEmitEvent(n))},t.toDisplayString(n),13,kst))),128))],4)])):t.createCommentVNode("",!0),r.type==2?(t.openBlock(),t.createElementBlock("div",Cst,[t.createVNode(s,{arrows:r.arrow,"background-color":r.background,"px-scroll":r.pxScroll,"scroll-color":r.scrollColor,"arrows-position":r.arrowsPosition,arrowsScrollHide:r.arrowsScrollHide,"arrows-background":r.arrowsBackground,"arrows-container-bg-l":r.arrowsContainerBgL,"arrows-container-bg-r":r.arrowsContainerBgR,"arrows-margin":r.arrowsMargin,"arrows-radius":r.arrowsRadius,"arrows-border":r.arrowsBorder},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.buttons,(n,_)=>(t.openBlock(),t.createElementBlock("div",{class:"button-option-multi",style:t.normalizeStyle([{height:r.height},r.selectedOption==n?{borderColor:r.colorOptionActive,color:r.colorFont+"!important",background:r.backgroundOptionActive}:{borderColor:r.colorOptionDisable,color:"grey !important"}]),key:_,onClick:f=>(r.selectedOption=n,i.clickEmitEvent(n))},t.toDisplayString(n),13,Est))),128))]),_:1},8,["arrows","background-color","px-scroll","scroll-color","arrows-position","arrowsScrollHide","arrows-background","arrows-container-bg-l","arrows-container-bg-r","arrows-margin","arrows-radius","arrows-border"])])):t.createCommentVNode("",!0)],512)}const VF=_st(b6,[["render",Tst],["__scopeId","data-v-8a86dfaf"]]),Sst={components:{GscSwitchComponent:VF,GSCCollectorsSelect:Mot,GSCBreakdown:ist},props:{widthContainer:{type:Number,default:1280},playersData:{type:Object,default:()=>{}},teamsData:{type:Object,default:()=>{}},touchAllData:{type:Array,default:()=>[]},teamId:{type:Number,required:!0},inFavor:{type:Boolean,required:!1},forGame:{type:Boolean,required:!1},seasonsByGame:{type:Object,default:()=>{}},matchesByGame:{type:Object,default:()=>{}},rivalsByGame:{type:Object,default:()=>{}}},data(){return{rival:3014,season:1325,game:62214,playersSelect:[],teamSelect:[],touchFilter:[],cornersByTouch:{},cornersByPlay:{},leyend:!1,typeView:"General",updateSelector:0,typeSelected:0,itemSelected:0,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},watch:{touchAllData:{immediate:!0,handler(e){e.length>0?this.getDataSelectPlayersAndTeams(e):this.getDataSelectPlayersAndTeamsReset(e)}}},computed:{calculateTouch(){let e={};return this.typeView==="General"?this.touchFilter.length>0&&(this.playersSelect.length>0||this.teamSelect.length>0?e=this.getCornersByTouch(this.touchFilter):(this.playersSelect.length>0||this.teamSelect.length>0)&&(e=this.getCornersByTouchReset())):this.touchFilter.length>0&&(this.playersSelect.length>0||this.teamSelect.length>0?e=this.getCornersByPlay(this.touchFilter):(this.playersSelect.length>0||this.teamSelect.length>0)&&(e=this.getCornersByPlayReset())),e},titlePCClass(){return this.widthContainer<=768?"title-pc768":"title-pc"},contDataClass(){return this.widthContainer<=768?"cont-data768":"cont-data"},contCollectorsClass(){const e=this.widthContainer;return e<=768?"cont-collectors768":e<=900?"cont-collectors900":"cont-collectors"},contWhoCnnectedClass(){const e=this.widthContainer;return e<=768?"cont-who-connected768":e<=900?"cont-who-connected900":"cont-who-connected"},contWhoConnectedHeaderTabsClass(){return this.widthContainer<=390?"cont-who-connected-header-tabs390":"cont-who-connected-header-tabs"}},methods:{areDifferent(e,a){if(e.length!==a.length)return!0;for(let r of e)if(!a.some(d=>r[0]===d[0]))return!0;return!1},getFilterDataByPlayer(e){this.touchAllData;let a=this.touchAllData.slice(),r={};const d=a.filter(g=>g[1]===e&&g[19]===0).map(g=>g[18]);return this.typeView=="General"?r=a.filter(g=>d.includes(g[18])&&g[19]>0):r=a.filter(g=>d.includes(g[18])),r.map(g=>Object.values(g))},isObjectNotEmpty(e){return Object.keys(e).length>0},selectTeam(e){this.typeSelected=0,this.itemSelected=e,this.touchFilter=this.touchAllData.slice()},selectPlayer(e){this.typeSelected=1,this.itemSelected=e,this.touchFilter=this.getFilterDataByPlayer(this.itemSelected)},changeTypeView(e){this.typeView=e,this.updateSelector+=1},getDataSelectPlayersAndTeamsReset(){this.playersSelect=[],this.teamSelect=[],this.leyend=!0},getDataSelectPlayersAndTeams(e){if(this.leyend=!1,this.playersSelect=[],this.teamSelect=[],this.inFavor||this.forGame){let a=0;for(let r=0;r<e.length;r++){const d=e[r];if(d[19]===0&&d[2]===this.teamId){const g=d[1],i=this.playersData[g];i.team_id,g in this.playersSelect||(this.playersSelect[g]={total:0,data:i}),this.playersSelect[g].total++,a++}}this.playersSelect=this.playersSelect.filter(r=>r!==null),this.playersSelect=this.playersSelect.sort((r,d)=>d.total-r.total),this.teamSelect[this.teamId]={total:a,data:this.teamsData[this.teamId]},this.teamSelect=this.teamSelect.filter(r=>r!==null),this.teamSelect=this.teamSelect.sort((r,d)=>d.total-r.total)}else{this.playersSelect=[],this.teamSelect=[];for(let a=0;a<e.length;a++){const r=e[a];if(r[19]===0){const d=r[2];this.teamSelect.hasOwnProperty(d)||(this.teamSelect[d]={total:0,data:this.teamsData[d]}),this.teamSelect[d].total++}}this.teamSelect=this.teamSelect.filter(a=>a!==null),this.teamSelect=this.teamSelect.sort((a,r)=>r.total-a.total)}},parseTimeToMilliseconds(e){const[a,r]=e.split(":"),[d,g]=r.split(".");return parseInt(a,10)*6e4+parseInt(d,10)*1e3+parseInt(g,10)},compareByTime(e,a){const r=this.parseTimeToMilliseconds(e[13]);return this.parseTimeToMilliseconds(a[13])-r},sortByTimePosition(e){return e.sort(this.compareByTime)},quitarCerosYDecimal(e){var a=e.split(":");return a[0]=parseInt(a[0]).toString(),a[1]=a[1].split(".")[0],a.join(":")},tiempoASegundosEnteros(e){let a=e.split(":"),r=parseInt(a[0],10),d=parseFloat(a[1]);return r*60+Math.floor(d)},getCornersByPlayReset(){return this.playersSelect=[],this.teamSelect=[],[]},getCornersByPlay(e){let a=[],r=[],d=[];this.inFavor||this.forGame?d=e.filter(s=>s[19]===0):d=e.filter(s=>s[19]===0&&s[2]===this.itemSelected);const g=this.sortByTimePosition(d).map(s=>s[18]),i=e.filter(s=>g.includes(s[18]));for(let s=0;s<i.length;s++){const n=a.findIndex(_=>_[0]===i[s][18]);n!==-1?a[n].push({game_id:i[s][3],rival:i[s][2]!=this.teamId,touch:i[s][19],data:this.playersData[i[s][1]]}):a.push([i[s][18],i[s][3],this.tiempoASegundosEnteros(this.quitarCerosYDecimal(i[s][13])),i[s][19]==0?this.quitarCerosYDecimal(i[s][13]):0,this.seasonsByGame[i[s][3]],this.matchesByGame[i[s][3]],this.rivalsByGame[this.inFavor?"InFavor":"Against"][this.teamId]?this.rivalsByGame[this.inFavor?"InFavor":"Against"][this.teamId][i[s][3]]:"Rival",{game_id:i[s][3],rival:i[s][2]!=this.teamId,touch:i[s][19],data:this.playersData[i[s][1]]}]),r[i[s][18]]={time:this.quitarCerosYDecimal(i[s][13]),season:this.seasonsByGame[i[s][3]],match:this.matchesByGame[i[s][3]],rival:this.rivalsByGame[this.inFavor?"InFavor":"Against"][this.teamId]?this.rivalsByGame[this.inFavor?"InFavor":"Against"][this.teamId][i[s][3]]:"Rival"}}return a=a.sort((s,n)=>{const _=n[1]-s[1];return _!==0?_:s[2]-n[2]}),{players:a,infoByPlay:r}},getCornersByTouchReset(){return this.playersSelect=[],this.teamSelect=[],[]},getCornersByTouch(e){let a=[],r=[],d=0;if(this.inFavor||this.forGame)r=e,d=this.teamId;else{const g=e.filter(i=>i[2]===this.itemSelected).map(i=>i[18]);r=e.filter(i=>g.includes(i[18])&&i[19]>0),d=this.teamId}for(let g=0;g<r.length;g++)if(r[g][19]>0){let i=!1;for(let s=0;s<a.length;s++)if(a[s][0]===r[g][19]){i=!0;const n=r[g][2]==d?r[g][1]:this.playersData[r[g][1]].position==1?"rivalportero":"rival";let _=!1;for(let f=1;f<a[s].length;f++)if(a[s][f].playerFlag===n){a[s][f].total++,_=!0;break}_||a[s].push({playerFlag:n,total:1,team:r[g][2],data:n!="rivalportero"&&n!="rival"?this.playersData[r[g][1]]:{}});break}i||a.push([r[g][19],{playerFlag:r[g][2]==d?r[g][1]:this.playersData[r[g][1]].position==1?"rivalportero":"rival",total:1,team:r[g][2],data:r[g][2]==d?this.playersData[r[g][1]]:this.playersData[r[g][1]].position!=1?{}:null}])}a=a.filter(g=>g!=="");for(let g=0;g<a.length;g++)a[g]=a[g].filter(i=>i!==""),a[g]=a[g].sort((i,s)=>s.total-i.total);return a}}},LF=e=>(t.pushScopeId("data-v-d65589ff"),e=e(),t.popScopeId(),e),Ast={key:0,class:"gsc-connections-set-piece-container-header-movil"},Nst={class:"gsc-connections-set-piece"},Bst=LF(()=>t.createElementVNode("div",{class:"title-pc-title"},"Conexiones",-1)),Ist=[Bst],Mst={class:"cont-who-connected-header"},Ost=LF(()=>t.createElementVNode("div",{class:"cont-who-connected-header-subtitle"},"Con quién conecta:",-1));function Pst(e,a,r,d,g,i){const s=t.resolveComponent("GSCCollectorsSelect"),n=t.resolveComponent("GscSwitchComponent"),_=t.resolveComponent("GSCBreakdown");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(r.widthContainer<=768?"gsc-connections-set-piece-container-movil":"gsc-connections-set-piece-container")},[r.widthContainer<=768?(t.openBlock(),t.createElementBlock("div",Ast)):t.createCommentVNode("",!0),t.createElementVNode("div",Nst,[t.createElementVNode("div",{class:t.normalizeClass(i.titlePCClass)},Ist,2),t.createElementVNode("div",{class:t.normalizeClass(i.contDataClass)},[t.createElementVNode("div",{class:t.normalizeClass(i.contCollectorsClass)},[(t.openBlock(),t.createBlock(s,{"is-team":!0,"player-id":1,"is-movil":r.widthContainer<=768,"width-container":r.widthContainer,data:{players:[...g.playersSelect],team:[...g.teamSelect]},onSelectplayer:i.selectPlayer,onSelectteam:i.selectTeam,key:g.updateSelector,"for-game":r.forGame,"in-favor":r.inFavor},null,8,["is-movil","width-container","data","onSelectplayer","onSelectteam","for-game","in-favor"]))],2),t.createElementVNode("div",{class:t.normalizeClass(i.contWhoCnnectedClass)},[t.createElementVNode("div",Mst,[Ost,t.createElementVNode("div",{class:t.normalizeClass(i.contWhoConnectedHeaderTabsClass)},[g.playersSelect.length>0||g.teamSelect.length>0?(t.openBlock(),t.createBlock(n,{key:0,type:1,arrow:!1,buttons:["General","Por jugada"],"selected-option":g.typeView,"border-radius":"32px",height:"20px","border-width":"1px","border-width-container":"0.5px","background-option-active":"#1e2b36","color-option-active":"#cbee6b","font-size":"10px",width:"270px",fontFamily:"Poppins-SemiBold",arrowsScrollHide:!1,arrowsPosition:"absolute",onInput:i.changeTypeView},null,8,["selected-option","onInput"])):t.createCommentVNode("",!0)],2)]),t.createElementVNode("div",{class:t.normalizeClass(r.widthContainer<=768?"cont-who-connected-data-movil":"cont-who-connected-data")},[t.createVNode(_,{type:g.typeView=="General"?"touch":"corners","is-movil":r.widthContainer<=768,data:i.calculateTouch,"width-container":r.widthContainer},null,8,["type","is-movil","data","width-container"])],2)],2)],2)])],2)}const Fst=Si(Sst,[["render",Pst],["__scopeId","data-v-d65589ff"]]),Bp={All:1,YEAR:2,AGE_RANGE:3,NATIONALITY:4,POSITION:5,ELIGIBILITY:6},Rst=(e,a)=>{const r=e.__vccOpts||e;for(const[d,g]of a)r[d]=g;return r},zst={key:1},Vst={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Lst=["fill"],Dst={key:0,class:"checkbox__teams"},$st={class:"checkbox__teams__logo"},jst=["src"],Ust={class:"checkbox__teams__logo"},Hst=["src"],Gst={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelWhiteSpace:{type:String,default:"normal"},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(e){return["left","right","top","bottom"].includes(e)}},boxMarginTop:{type:String,default:"0.2em"},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1},avoidToCheck:{type:Boolean,default:!1},isBoxOnly:{type:Boolean,default:!1},teamsIds:{type:Array,default:()=>null}},emits:["update:modelValue"],setup(e,{emit:a}){const r=e;t.useCssVars(f=>({"6582e90e":e.width,"310b3edf":e.height}));const d=t.ref(!1),g=t.computed(()=>{const f={color:r.boxValueColor,"font-family":r.fontFamily,height:r.boxWidthAndHeight,width:r.boxWidthAndHeight,minWidth:r.boxWidthAndHeight,"border-radius":r.boxBorderRadius,"margin-top":r.boxMarginTop};return d.value?(f["background-color"]=r.boxBackgroundColor,f.border=`solid ${r.boxBorderWidth} ${r.boxBackgroundColor}`):f.border=`solid ${r.boxBorderWidth} ${r.boxBorderColor}`,f}),i=t.computed(()=>({"font-family":r.boxValueFontFamily,"font-size":r.boxValueFontSize,color:r.boxValueColor,"line-height":1})),s=t.computed(()=>{const f={color:r.labelColor,"font-family":r.fontFamily,"font-size":r.labelFontSize,"white-space":r.labelWhiteSpace,"text-align":r.boxPosition==="top"||r.boxPosition==="bottom"?"center":r.boxPosition};return(r.boxPosition==="left"||r.boxPosition==="right")&&(f[`margin-${r.boxPosition}`]=r.isBoxOnly?"0":r.teamsIds?"8px":"10px"),f});t.watch(()=>r.modelValue,f=>{f!==d.value&&(d.value=f)},{immediate:!0});function n(){r.avoidInteraction||!d.value&&r.avoidToCheck||(d.value=!d.value,a("update:modelValue",d.value))}function _(f){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-80/"}${f}.png`}return(f,o)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:n},[t.createElementVNode("div",{class:"checkbox__box",style:t.normalizeStyle(g.value)},[d.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[r.boxValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"checkbox__box__value",style:t.normalizeStyle(i.value)},t.toDisplayString(e.boxValue),5)):(t.openBlock(),t.createElementBlock("div",zst,[(t.openBlock(),t.createElementBlock("svg",Vst,[t.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:e.boxValueColor},null,8,Lst)]))]))],64)):t.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(t.openBlock(),t.createElementBlock("div",Dst,[t.createElementVNode("div",$st,[t.createElementVNode("img",{src:_(e.teamsIds[0]),alt:""},null,8,jst)]),t.createElementVNode("div",Ust,[t.createElementVNode("img",{src:_(e.teamsIds[1]),alt:""},null,8,Hst)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"checkbox__label",style:t.normalizeStyle(s.value)},t.toDisplayString(e.label),5)],2))}},wn=Rst(Gst,[["__scopeId","data-v-bcf3bcc6"]]),On=(e,a)=>{const r=e.__vccOpts||e;for(const[d,g]of a)r[d]=g;return r},Wst={class:"container"},qst={key:0,width:"11",height:"2",viewBox:"0 0 11 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Yst=["fill"],Zst={key:1,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Xst=["fill"],Kst={__name:"IconExpand",props:{height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},isExpanded:{type:Boolean,default:!1},expandIconColor:{type:String,default:"white"},collapseIconColor:{type:String,default:"#D9D9D9"}},setup(e){return t.useCssVars(a=>({"563e5242":e.width,a529e9a4:e.height})),(a,r)=>(t.openBlock(),t.createElementBlock("div",Wst,[e.isExpanded?(t.openBlock(),t.createElementBlock("svg",qst,[t.createElementVNode("rect",{width:"11",height:"1.7",fill:e.collapseIconColor},null,8,Yst)])):(t.openBlock(),t.createElementBlock("svg",Zst,[t.createElementVNode("path",{d:"M11 6.28571H6.28571V11H4.71429V6.28571H0V4.71429H4.71429V0H6.28571V4.71429H11V6.28571Z",fill:e.expandIconColor},null,8,Xst)]))]))}},Ip=On(Kst,[["__scopeId","data-v-166b6226"]]),N0=e=>(t.pushScopeId("data-v-4df743e3"),e=e(),t.popScopeId(),e),Jst={class:"productivity"},Qst={class:"productivity__body__offensive"},elt={class:"productivity__body__title"},tlt={class:"productivity__body__title__info"},alt={class:"number-of-categories"},rlt={class:"productivity__body__categories"},nlt={class:"productivity__body__defensive-possession"},ilt={class:"productivity__body__title"},olt={class:"productivity__body__title__info"},slt={class:"number-of-categories"},llt={class:"productivity__body__categories"},clt={class:"productivity__body__title"},dlt={class:"productivity__body__title__info"},ult={class:"number-of-categories"},plt={class:"productivity__body__categories"},hlt={class:"productivity__footer"},flt={class:"productivity__footer__offenses"},mlt=N0(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__title"}," ¿Debemos quitarle puntos a jugadores que hayan cometido las siguientes infracciones? ",-1)),glt={class:"productivity__footer__offenses__table"},ylt=N0(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row"},[t.createElementVNode("div"),t.createElementVNode("div",null,"Si"),t.createElementVNode("div",null,"No")],-1)),_lt={class:"productivity__footer__offenses__table__row has-bottom-border has-padding"},vlt=N0(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Faltas cometidas",-1)),blt={class:"productivity__footer__offenses__table__row has-bottom-border has-padding"},xlt=N0(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Tarjetas amarillas",-1)),wlt={class:"productivity__footer__offenses__table__row has-padding"},klt=N0(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Tarjetas rojas",-1)),Clt={__name:"TemplateProductivity",props:{componentWidth:{type:Number,default:0},productivityCategories:{type:Object,required:!0},numberOfCategoriesSelected:{type:Number,default:0},areMaxCategoriesReached:{type:Boolean,default:!1},isExpansionMode:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["update:offensesConditions"],setup(e,{emit:a}){const r=e,d=t.ref(!1),g=t.ref(!1),i=t.ref(!1),s=t.ref({areYellowCardsSelected:!1,areRedCardsSelected:!1,areFoulsCommittedSelected:!1}),n=t.computed(()=>({"--template-columns":r.isExpansionMode?"1fr":"1fr 1fr"})),_=t.computed(()=>r.productivityCategories.offensive.categories.reduce((c,l)=>(l.isSelected&&c++,c),0)),f=t.computed(()=>r.productivityCategories.defensive.categories.reduce((c,l)=>(l.isSelected&&c++,c),0)),o=t.computed(()=>r.productivityCategories.possession.categories.reduce((c,l)=>(l.isSelected&&c++,c),0));t.watch(()=>r.productivityCategories,c=>{s.value.areYellowCardsSelected=c.offensesConditions.areYellowCardsSelected,s.value.areRedCardsSelected=c.offensesConditions.areRedCardsSelected,s.value.areFoulsCommittedSelected=c.offensesConditions.areFoulsCommittedSelected},{deep:!0,immediate:!0}),t.watch(s,c=>{a("update:offensesConditions",c)},{deep:!0,immediate:!0});function m(c,l){l.isSelected=c,setTimeout(()=>{l.priority=r.numberOfCategoriesSelected},10)}function x(c){c==="offensive"?d.value=!d.value:c==="defensive"?g.value=!g.value:c==="possession"&&(i.value=!i.value)}return(c,l)=>(t.openBlock(),t.createElementBlock("div",Jst,[t.createElementVNode("div",{class:"productivity__body",style:t.normalizeStyle(n.value)},[t.createElementVNode("div",Qst,[t.createElementVNode("div",elt,[t.createElementVNode("div",tlt,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.offensive.title),1),t.createElementVNode("span",alt,"("+t.toDisplayString(_.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:l[0]||(l[0]=u=>x("offensive"))},[t.withDirectives(t.createVNode(Ip,{"is-expanded":d.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",rlt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.offensive.categories,u=>(t.openBlock(),t.createElementBlock("div",{key:u.id,class:"productivity__checkbox"},[t.createVNode(t.unref(wn),{label:u.name,fontFamily:e.fontFamily,"model-value":u.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"box-value":u.priority||0,"onUpdate:modelValue":p=>m(p,u)},null,8,["label","fontFamily","model-value","avoid-to-check","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||d.value]])]),t.createElementVNode("div",nlt,[t.createElementVNode("div",ilt,[t.createElementVNode("div",olt,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.defensive.title),1),t.createElementVNode("span",slt,"("+t.toDisplayString(f.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:l[1]||(l[1]=u=>x("defensive"))},[t.withDirectives(t.createVNode(Ip,{"is-expanded":g.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",llt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.defensive.categories,u=>(t.openBlock(),t.createElementBlock("div",{key:u.id,class:"productivity__checkbox"},[t.createVNode(t.unref(wn),{label:u.name,fontFamily:e.fontFamily,"model-value":u.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"box-value":u.priority||0,"onUpdate:modelValue":p=>m(p,u)},null,8,["label","fontFamily","model-value","avoid-to-check","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||g.value]]),t.createElementVNode("div",clt,[t.createElementVNode("div",dlt,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.possession.title),1),t.createElementVNode("span",ult,"("+t.toDisplayString(o.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:l[2]||(l[2]=u=>x("possession"))},[t.withDirectives(t.createVNode(Ip,{"is-expanded":i.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",plt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.possession.categories,u=>(t.openBlock(),t.createElementBlock("div",{key:u.id,class:"productivity__checkbox"},[t.createVNode(t.unref(wn),{label:u.name,fontFamily:e.fontFamily,"model-value":u.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"box-value":u.priority||0,"onUpdate:modelValue":p=>m(p,u)},null,8,["label","fontFamily","model-value","avoid-to-check","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||i.value]])])],4),t.createElementVNode("div",hlt,[t.createElementVNode("div",flt,[mlt,t.createElementVNode("div",glt,[ylt,t.createElementVNode("div",_lt,[vlt,t.createElementVNode("div",null,[t.createVNode(t.unref(wn),{"model-value":s.value.areFoulsCommittedSelected,"avoid-interaction":s.value.areFoulsCommittedSelected,"is-box-only":"","onUpdate:modelValue":l[3]||(l[3]=u=>s.value.areFoulsCommittedSelected=u)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(wn),{"model-value":!s.value.areFoulsCommittedSelected,"avoid-interaction":!s.value.areFoulsCommittedSelected,"is-box-only":"","onUpdate:modelValue":l[4]||(l[4]=u=>s.value.areFoulsCommittedSelected=!u)},null,8,["model-value","avoid-interaction"])])]),t.createElementVNode("div",blt,[xlt,t.createElementVNode("div",null,[t.createVNode(t.unref(wn),{"model-value":s.value.areYellowCardsSelected,"avoid-interaction":s.value.areYellowCardsSelected,"is-box-only":"","onUpdate:modelValue":l[5]||(l[5]=u=>s.value.areYellowCardsSelected=u)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(wn),{"model-value":!s.value.areYellowCardsSelected,"avoid-interaction":!s.value.areYellowCardsSelected,"is-box-only":"","onUpdate:modelValue":l[6]||(l[6]=u=>s.value.areYellowCardsSelected=!u)},null,8,["model-value","avoid-interaction"])])]),t.createElementVNode("div",wlt,[klt,t.createElementVNode("div",null,[t.createVNode(t.unref(wn),{"model-value":s.value.areRedCardsSelected,"avoid-interaction":s.value.areRedCardsSelected,"is-box-only":"","onUpdate:modelValue":l[7]||(l[7]=u=>s.value.areRedCardsSelected=u)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(wn),{"model-value":!s.value.areRedCardsSelected,"avoid-interaction":!s.value.areRedCardsSelected,"is-box-only":"","onUpdate:modelValue":l[8]||(l[8]=u=>s.value.areRedCardsSelected=!u)},null,8,["model-value","avoid-interaction"])])])])])])]))}},Elt=On(Clt,[["__scopeId","data-v-4df743e3"]]),f_=e=>(t.pushScopeId("data-v-9a3af80d"),e=e(),t.popScopeId(),e),Tlt={class:"details__header"},Slt=f_(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),Alt={class:"details__header__checkbox"},Nlt={class:"details__body"},Blt={class:"details__body__playing-as"},Ilt=["onClick"],Mlt={class:"details__header"},Olt=f_(()=>t.createElementVNode("div",{class:"details__header__title"},[t.createTextVNode(" En: "),t.createElementVNode("span",{class:"details__header__title-sm"},"(Elige el lapso de tiempo)")],-1)),Plt={class:"details__header__checkbox"},Flt={class:"details__body"},Rlt=f_(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),zlt={class:"details__body__game-section"},Vlt=["onClick"],Llt={class:"details__body"},Dlt=f_(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),$lt={class:"details__body__game-section"},jlt=["onClick"],Ult={__name:"TemplateDetails",props:{isPlayingAsHidden:{type:Boolean,default:!1},playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},fontFamily:{type:String,default:"'Poppins-Regular'"},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(e){const a=e;t.useCssVars(o=>({"35aa5eb4":e.buttonsBackgroundColor,"7765f8c7":e.buttonsTextColor,"5b6eef4b":e.buttonsBorderWidth,"5a57f0e8":e.buttonsBorderColor,a0a4b168:e.buttonsBackgroundColorActive,"349872ad":e.buttonsTextColorActive,76477631:e.buttonsBorderWidthActive,"39de0e0e":e.buttonsBorderColorActive}));const r=t.computed(()=>a.playingAs.every(o=>o.isSelected)),d=t.computed(()=>a.gameSections.every(o=>o.isSelected)),g=t.computed(()=>a.gameSections.reduce((o,m)=>(m.value<=3?o.firstHalf.push(m):o.secondHalf.push(m),o),{firstHalf:[],secondHalf:[]})),i=t.computed(()=>({"--border-radius-first-button":`${a.buttonsBorderRadius} 0 0 ${a.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${a.buttonsBorderRadius} ${a.buttonsBorderRadius} 0`}));function s(o){o?a.playingAs.forEach(m=>{m.isSelected=!0}):a.playingAs.forEach((m,x)=>{m.isSelected=x===0})}function n(o){a.playingAs.filter(m=>m.isSelected).length===1&&o.isSelected||(o.isSelected=!o.isSelected)}function _(o){a.gameSections.filter(m=>m.isSelected).length===1&&o.isSelected||(o.isSelected=!o.isSelected)}function f(o){o?a.gameSections.forEach(m=>{m.isSelected=!0}):a.gameSections.forEach((m,x)=>{m.isSelected=x===0})}return(o,m)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(i.value)},[t.withDirectives(t.createElementVNode("div",Tlt,[Slt,t.createElementVNode("div",Alt,[t.createVNode(t.unref(wn),{label:"Todos",fontFamily:e.fontFamily,"model-value":r.value,"onUpdate:modelValue":s},null,8,["fontFamily","model-value"])])],512),[[t.vShow,!e.isPlayingAsHidden]]),t.withDirectives(t.createElementVNode("div",Nlt,[t.createElementVNode("div",Blt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.playingAs,(x,c)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${c}`,class:t.normalizeClass(["details__body__button",{active:x.isSelected}]),onClick:l=>n(x)},t.toDisplayString(x.name),11,Ilt))),128))])],512),[[t.vShow,!e.isPlayingAsHidden]]),t.createElementVNode("div",Mlt,[Olt,t.createElementVNode("div",Plt,[t.createVNode(t.unref(wn),{label:"Todos",fontFamily:e.fontFamily,"model-value":d.value,"onUpdate:modelValue":f},null,8,["fontFamily","model-value"])])]),t.createElementVNode("div",Flt,[Rlt,t.createElementVNode("div",zlt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.value.firstHalf,(x,c)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${c}`,class:t.normalizeClass(["details__body__button",{active:x.isSelected}]),onClick:l=>_(x)},t.toDisplayString(x.text),11,Vlt))),128))])]),t.createElementVNode("div",Llt,[Dlt,t.createElementVNode("div",$lt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.value.secondHalf,(x,c)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${c}`,class:t.normalizeClass(["details__body__button",{active:x.isSelected}]),onClick:l=>_(x)},t.toDisplayString(x.text),11,jlt))),128))])])],4))}},Hlt=On(Ult,[["__scopeId","data-v-9a3af80d"]]),Glt={class:"scroll-container"},Wlt={__name:"ScrollContainer",props:{width:{type:String,default:"100%"},height:{type:String,default:"100%"}},setup(e){return t.useCssVars(a=>({"6aab424d":e.height,39848040:e.width})),(a,r)=>(t.openBlock(),t.createElementBlock("div",Glt,[t.renderSlot(a.$slots,"default",{},void 0,!0)]))}},DF=On(Wlt,[["__scopeId","data-v-218f5976"]]),qlt={class:"tournaments"},Ylt={class:"tournaments__tournament"},Zlt={__name:"TemplateTournaments",props:{tournaments:{type:Array,default:()=>[]},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["change-filters-selected","update:filters"],setup(e,{emit:a}){const r=e,d=t.ref(!1),g=t.computed(()=>r.tournaments.filter(s=>s.isSelected).length);t.watch(()=>r.tournaments,s=>{const n=s.filter(_=>_.isSelected);d.value=n.length===s.length,a("change-filters-selected",n.length),a("update:filters",r.tournaments)},{immediate:!0,deep:!0});function i(s){r.tournaments.forEach((n,_)=>{n.isSelected=s||(_!==0?s:!0)})}return(s,n)=>(t.openBlock(),t.createElementBlock("div",qlt,[t.createVNode(DF,{height:"200px"},{default:t.withCtx(()=>[t.createElementVNode("div",Ylt,[t.createVNode(t.unref(wn),{"model-value":d.value,label:"Todas las ligas",fontFamily:e.fontFamily,width:"100%","onUpdate:modelValue":i},null,8,["model-value","fontFamily"])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.tournaments,_=>(t.openBlock(),t.createElementBlock("div",{key:_.id||_._id,class:"tournaments__tournament"},[t.createVNode(t.unref(wn),{modelValue:_.isSelected,"onUpdate:modelValue":f=>_.isSelected=f,label:_.name,fontFamily:e.fontFamily,width:"100%","avoid-interaction":g.value===1&&_.isSelected},null,8,["modelValue","onUpdate:modelValue","label","fontFamily","avoid-interaction"])]))),128))]),_:1})]))}},Xlt=On(Zlt,[["__scopeId","data-v-590d8ab3"]]),Wa={PLAYS:"plays",PRODUCTIVITY:"productivity",FIELD:"field",UNIVERSE:"universe",DETAILS:"details",TOURNAMENTS:"tournaments",PERSONAL_DATA:"personalData",PLAYS_TYPES:"playsTypes",GOLSTATS:"golstats",DISTANCE:"distance",RESULTS:"results",RESULTS_BY_TIME:"resultsByTime",VIDEOS:"videos",GAMES:"games",TAKEN_CORNERS:"takenCorners",HOW_WAS_CORNER:"howWasCorner",ZONE:"zone",WHAT_HAPPENED:"whatHappened"},Klt={key:0,class:"plays-golstats__placeholder"},Jlt=["onClick"],Qlt={key:0,class:"plays-golstats__item__value"},ect={class:"plays-golstats__item__text"},tct={class:"plays-golstats__item__svg"},act={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},rct=["fill"],nct={__name:"TemplatePlaysTypeAndGolstats",props:{height:{type:String,default:"fit-content"},type:{type:String,default:""},categories:{type:Array,default:()=>[]},svgColor:{type:String,default:"#CBEE6B"},svgWidth:{type:Number,default:10},svgHeight:{type:Number,default:8}},emits:["change-filters-selected","update:filters"],setup(e,{emit:a}){const r=e,d=t.computed(()=>({"--grid-template-columns":r.type===Wa.PLAYS_TYPES?"1fr min-content":"min-content 1fr min-content","--svg-width":`${r.svgWidth}px`,"--svg-height":`${r.svgHeight}px`}));t.watch(()=>r.categories,i=>{const s=i.filter(n=>n.isSelected);a("update:filters",s)},{immediate:!0,deep:!0});function g(i){i.isSelected||(r.categories.forEach(s=>{s.isSelected=!1}),i.isSelected=!0,r.type===Wa.GOLSTATS&&a("change-filters-selected",i.value))}return(i,s)=>(t.openBlock(),t.createElementBlock("div",{class:"plays-golstats",style:t.normalizeStyle(d.value)},[t.createVNode(DF,{height:e.height},{default:t.withCtx(()=>[e.type===t.unref(Wa).PLAYS_TYPES?(t.openBlock(),t.createElementBlock("div",Klt," Elige un tipo de jugada para filtrar: ")):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categories,(n,_)=>(t.openBlock(),t.createElementBlock("div",{key:`k${_}`,class:"plays-golstats__item",onClick:f=>g(n)},[e.type===t.unref(Wa).GOLSTATS?(t.openBlock(),t.createElementBlock("div",Qlt,t.toDisplayString(n.value),1)):t.createCommentVNode("",!0),t.createElementVNode("div",ect,t.toDisplayString(n.name),1),t.createElementVNode("div",tct,[t.withDirectives((t.openBlock(),t.createElementBlock("svg",act,[t.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:e.svgColor},null,8,rct)],512)),[[t.vShow,n.isSelected]])])],8,Jlt))),128))]),_:1},8,["height"])],4))}},$F=On(nct,[["__scopeId","data-v-af3c1673"]]),ict=(e,a)=>{const r=e.__vccOpts||e;for(const[d,g]of a)r[d]=g;return r},x6={props:{textRight:{type:String,default:""},textRightColor:{type:String,default:"#FFFFFF"},textRightFontFamily:{type:String,default:"Poppins-Regular"},textRightFontSize:{type:String,default:"13px"},placeholder:{type:String,default:"Ingresar valor"},value:String,inputType:{type:String,default:"text"},width:{type:String,default:"100%"},height:{type:String,default:"30px"},backgroundColor:{type:String,default:"#2e3b46"},borderRadius:{type:String,default:"10px"},border:{type:String,default:"1px solid #bdc1c4"},color:{type:String,default:"#FFFFFF"},placeholderColor:{type:String,default:"#bdc1c4"},font:{type:String,default:"Poppins-Regular"},fontSize:{type:String,default:"13px"},padding:{type:String,default:"11px"},isNumbersOnly:{type:Boolean,default:!1}},computed:{inputStyle(){return{width:this.width,height:this.height,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:this.border,color:this.color,fontFamily:this.font,fontSize:this.fontSize,placeholderColor:this.placeholderColor,paddingLeft:this.padding}}},methods:{updateInputValue(e){this.$emit("inputval",e.target.value)},onKeyDown(e){if(this.isNumbersOnly){const a=e.which?e.which:e.keyCode();a>31&&(a<48||a>57)&&e.preventDefault()}}}},jF=()=>{t.useCssVars(e=>({"53e1855a":e.textRightColor,da8ee600:e.textRightFontSize,"9fb876ba":e.textRightFontFamily}))},UF=x6.setup;x6.setup=UF?(e,a)=>(jF(),UF(e,a)):jF;const oct={class:"input-container"},sct=["type","placeholder","value"],lct={class:"right-text"};function cct(e,a,r,d,g,i){return t.openBlock(),t.createElementBlock("div",oct,[t.createElementVNode("input",{type:r.inputType,placeholder:r.placeholder,value:r.value,style:t.normalizeStyle(i.inputStyle),onKeydown:a[0]||(a[0]=(...s)=>i.onKeyDown&&i.onKeyDown(...s)),onInput:a[1]||(a[1]=(...s)=>i.updateInputValue&&i.updateInputValue(...s))},null,44,sct),t.createElementVNode("div",lct,t.toDisplayString(r.textRight),1)])}const HF=ict(x6,[["render",cct],["__scopeId","data-v-b73049e7"]]),dct=(e,a)=>{const r=e.__vccOpts||e;for(const[d,g]of a)r[d]=g;return r},w6={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},GF=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},WF=w6.setup;w6.setup=WF?(e,a)=>(GF(),WF(e,a)):GF;const uct=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),pct=["src"],hct={key:1,class:"text"},fct=["src"],mct={class:"stats"},gct=uct(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),yct={class:"numstats"},_ct={class:"leyend"};function vct(e,a,r,d,g,i){return t.openBlock(),t.createElementBlock("div",null,[r.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",g.status&&r.typeOnOff&&"button-active"]),style:t.normalizeStyle([i.customStyle,g.status&&r.typeOnOff&&i.customActive]),onClick:a[0]||(a[0]=(...s)=>i.btnClick&&i.btnClick(...s))},[r.icon&&r.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:r.iconSize}),src:r.icon},null,12,pct)):t.createCommentVNode("",!0),r.textValue?(t.openBlock(),t.createElementBlock("div",hct,t.toDisplayString(r.textValue),1)):t.createCommentVNode("",!0),r.icon&&r.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:r.iconSize}),src:r.icon},null,12,fct)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),r.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...s)=>i.btnClick&&i.btnClick(...s))},[t.createElementVNode("div",mct,[gct,t.createElementVNode("div",yct,t.toDisplayString(r.textStat),1)]),t.createElementVNode("div",_ct,t.toDisplayString(r.textCategory),1)])):t.createCommentVNode("",!0)])}const bct=dct(w6,[["render",vct],["__scopeId","data-v-fb269a1e"]]),xct={class:"gsc-dropdown__main-container__item-selected"},wct=["height","width"],kct=["stroke"],Cct={class:"gsc-dropdown__items-container"},Ect=["onClick"],Tct={key:0,class:"gsc-dropdown__items-footer"},Ju={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:a}){const r=e,d=t.ref({}),g=t.ref(null),i=t.ref(r.isMultipleOption?-1:0),s=t.ref(!1);t.watch(()=>r.items,(c,l)=>{if(!r.modelValue&&(!r.onlyFirstTime||!l||!l.length)&&c&&c.length){if(r.defaultItemByProp){const u=r.items.findIndex(p=>p[r.defaultItemByProp.propName]===r.defaultItemByProp.value);u!==-1?(i.value=u,d.value=c[u]):(i.value=0,d.value=c[0])}else d.value=c[r.defaultItemByIndex];a("input",d.value)}},{immediate:!0}),t.watch(()=>r.modelValue,c=>{if(c){const l=r.items.findIndex(u=>typeof c=="object"?JSON.stringify(u)===JSON.stringify(c):u===c);l!==-1&&(i.value=l,d.value=r.items[l],a("update:modelValue",d.value))}},{immediate:!0});const n=t.computed(()=>({height:r.height,width:r.width,backgroundColor:r.backgroundColor,borderRadius:`${r.borderRadius}px`,border:`${r.borderType} ${r.borderWidth}px ${r.borderColor}`,color:r.color,"--hover-background-color":r.hoverBackgroundColor,"--list-item-padding":r.listItemPadding,"--list-background-color":r.listBackgroundColor,"--list-height":r.listHeight,"--list-item-selected-color":r.listItemSelectedColor,"--list-item-selected-background-color":r.listItemSelectedBackgroundColor,"--list-item-color":r.listItemColor,"--list-border-radius":`${r.listBorderRadius}`,"--list-border-color":r.listBorderColor,"--list-width":r.isListSameWidth?r.width:"fit-content","--list-border-width":`${r.listBorderWidth}px`,"--footer-border":`${r.footerBorderWidth}px solid ${r.footerBorderColor}`,"--dropdown-opacity":r.isDisabled?"0.5":"1","--dropdown-cursor":r.isDisabled?"not-allowed":"pointer","--dropdown-font-size":r.fontSize?r.fontSize:"14px"})),_=t.computed(()=>({height:`${r.arrowHeight}px`,width:`${r.arrowWidth}px`}));function f(){r.isDisabled||(s.value=!s.value)}function o(c){g.value&&!g.value.contains(c.target)&&(s.value=!1)}function m(c,l){r.isMultipleOption?i.value=-1:(i.value=l,s.value=!1),d.value=c,a("input",d.value),a("update:modelValue",d.value)}function x(){s.value=!1,a("click-ready")}return t.onMounted(()=>{document.addEventListener("click",o)}),t.onBeforeMount(()=>{document.removeEventListener("click",o)}),(c,l)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:g,class:"gsc-dropdown",style:t.normalizeStyle(n.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:f},[t.createElementVNode("div",xct,[t.renderSlot(c.$slots,"default",{selectedItem:d.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":s.value}]),style:t.normalizeStyle(_.value)},[(t.openBlock(),t.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,kct)],8,wct))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",Cct,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${r.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,p)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:p===i.value}]),key:p,onClick:h=>m(u,p)},[t.renderSlot(c.$slots,"availableItem",{item:u})],10,Ect))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",Tct,[t.createVNode(t.unref(bct),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:x})])):t.createCommentVNode("",!0)])],512),[[t.vShow,s.value]])]),_:3})],4))}},B0={borderType:"solid",listBackgroundColor:"#2E3B46",listBorderColor:"rgba(255, 255, 255, 0.2)",listBorderRadius:"5px",height:"38px",borderWidth:.8,borderColor:"white",backgroundColor:"#2E3B46",color:"white",listItemColor:"white",listItemSelectedBackgroundColor:"#2E3B46",arrowColor:"#fff",width:"100%",listHeight:"200px",isListSameWidth:!0,isFooterVisible:!0,hoverBackgroundColor:"#2E3B46"},af=e=>(t.pushScopeId("data-v-b1fc2fa6"),e=e(),t.popScopeId(),e),Sct={class:"universe"},Act=af(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Escribe los minutos jugados",-1)),Nct=af(()=>t.createElementVNode("div",{class:"universe__label"},"Igual o mayor que:",-1)),Bct={class:"universe__inputs"},Ict={class:"universe__inputs__input"},Mct={class:"universe__inputs__checkbox"},Oct=af(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Escribe el % de minutos jugados contra el total posible",-1)),Pct=af(()=>t.createElementVNode("div",{class:"universe__label"},"Mayor que:",-1)),Fct={class:"universe__inputs"},Rct={class:"universe__inputs__input"},zct={class:"universe__inputs__checkbox"},Vct=af(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Selecciona el lapso de tiempo",-1)),Lct=af(()=>t.createElementVNode("div",{class:"universe__label"},"Considerando los últimos:",-1)),Dct={class:"universe__dropdown"},$ct={class:"selected-item"},qF=11,jct={__name:"TemplateUniverse",props:{universeFilters:{type:Object,default:()=>({minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(e,a)=>a+1),statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}})},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["update:universeFilters"],setup(e,{expose:a,emit:r}){const d=e,g=t.ref(!1),i=t.ref(!1),s=t.ref(!1),n=t.ref({statistics:{}});t.watch(()=>d.universeFilters,c=>{n.value={...c,lastMonths:c.selectedMonth?c.selectedMonth:c.lastMonths[qF],statistics:{...c.statistics}}},{deep:!0,immediate:!0}),t.watch(()=>n,c=>{g.value=!c.value.minutesPlayed||Number(c.value.minutesPlayed)===0,i.value=!c.value.percentMinutesPlayed||Number(c.value.percentMinutesPlayed)===0,s.value=!c.value.lastMonths||Number(c.value.lastMonths)===0,r("update:universeFilters",c)},{deep:!0,immediate:!0});function _(c){n.value.minutesPlayed=c}function f(c){n.value.percentMinutesPlayed=c}function o(c,l){switch(l){case"minutes":g.value=c,c&&(n.value.minutesPlayed=0);break;case"percent":i.value=c,c&&(n.value.percentMinutesPlayed=0);break;case"months":s.value=c,c&&(n.value.lastMonths=0);break}}function m(){n.value={...d.universeFilters,lastMonths:d.universeFilters.lastMonths[qF],statistics:{...d.universeFilters.statistics}}}function x(c){n.value.lastMonths=c}return a({resetFilters:m}),(c,l)=>(t.openBlock(),t.createElementBlock("div",Sct,[Act,Nct,t.createElementVNode("div",Bct,[t.createElementVNode("div",Ict,[t.createVNode(t.unref(HF),{value:n.value.minutesPlayed,type:"text",inputmode:"numeric","border-radius":"4px",border:"solid 0.8px #8ea2ab","text-right":"Min","is-numbers-only":"",onInputval:_},null,8,["value"])]),t.createElementVNode("div",Mct,[t.createVNode(t.unref(wn),{modelValue:g.value,label:"Indistinto",fontFamily:e.fontFamily,"box-position":"right","onUpdate:modelValue":l[0]||(l[0]=u=>o(u,"minutes"))},null,8,["modelValue","fontFamily"])])]),Oct,Pct,t.createElementVNode("div",Fct,[t.createElementVNode("div",Rct,[t.createVNode(t.unref(HF),{value:n.value.percentMinutesPlayed,"input-type":"number","border-radius":"4px",border:"solid 0.8px #8ea2ab","text-right":"%","is-numbers-only":"",onInputval:f},null,8,["value"])]),t.createElementVNode("div",zct,[t.createVNode(t.unref(wn),{modelValue:i.value,label:"Indistinto",fontFamily:e.fontFamily,"box-position":"right","onUpdate:modelValue":l[1]||(l[1]=u=>o(u,"percent"))},null,8,["modelValue","fontFamily"])])]),Vct,Lct,t.createElementVNode("div",Dct,[t.createVNode(t.unref(Ju),t.mergeProps(t.unref(B0),{items:e.universeFilters.lastMonths,"model-value":n.value.lastMonths,onInput:x}),{default:t.withCtx(({selectedItem:u})=>[t.createElementVNode("div",$ct,t.toDisplayString(u)+" "+t.toDisplayString(u===1?"mes":"meses"),1)]),availableItem:t.withCtx(({item:u})=>[t.createElementVNode("div",null,t.toDisplayString(u)+" "+t.toDisplayString(u===1?"mes":"meses"),1)]),_:1},16,["items","model-value"])]),t.createCommentVNode("",!0),t.createCommentVNode("",!0)]))}},Uct=On(jct,[["__scopeId","data-v-b1fc2fa6"]]),YF=(e,a)=>{const r=e.__vccOpts||e;for(const[d,g]of a)r[d]=g;return r},Hct={name:"MultiRangeSlider",props:{baseClassName:{type:String,default:"multi-range-slider"},min:{type:Number},max:{type:Number},minValue:{type:Number},maxValue:{type:Number},step:{type:Number,default:1},preventWheel:{type:Boolean,default:!1},ruler:{type:Boolean,default:!0},label:{type:Boolean,default:!0},labels:{type:Array},minCaption:{type:String},maxCaption:{type:String},rangeMargin:{type:Number}},data(){let e=this.labels||[],a=this.min===void 0?0:this.min,r=e.length?e.length-1:100,d=this.max===void 0?r:this.max,g=this.minValue===void 0?25:this.minValue;e.length&&this.minValue===void 0&&(g=1);let i=this.maxValue||75;if(e.length&&this.maxValue===void 0&&(i=e.length-2),d<=a)throw new Error("Invalid props min or max");if(g>i)throw new Error("Invalid props minValue or maxValue");let s=this.rangeMargin===void 0?this.step:this.rangeMargin,n=s%this.step;return n&&(s=s+this.step-n),{valueMin:g<a?a:g,valueMax:i>d?d:i,interVal:null,startX:null,mouseMoveCounter:null,barBox:null,barValue:0,rangeMarginValue:s}},methods:{onBarLeftClick(){this.valueMin-this.step>=this.minimum?this.valueMin-=this.step:this.valueMin=this.minimum},onInnerBarLeftClick(){this.valueMin+this.rangeMarginValue<this.valueMax&&(this.valueMin+=this.step)},onBarRightClick(){this.valueMax+this.step<=this.maximum?this.valueMax+=this.step:this.valueMax=this.maximum},onInnerBarRightClick(){this.valueMax-this.rangeMarginValue>this.valueMin&&(this.valueMax-=this.step)},onInputMinChange(e){let a=parseFloat(e.target.value);a<=this.valueMax-this.rangeMarginValue&&a>=this.minimum?this.valueMin=a:e.target.value=this.valueMin},onInputMaxChange(e){let a=parseFloat(e.target.value);a>=this.valueMin+this.rangeMarginValue&&a<=this.maximum?this.valueMax=a:e.target.value=this.valueMax},onLeftThumbMousedown(e){if(e.preventDefault(),this.startX=e.clientX,e.type==="touchstart")if(e.touches.length===1)this.startX=e.touches[0].clientX;else return;this.mouseMoveCounter=0,this.barValue=this.valueMin,this.barBox=e.target.parentNode.getBoundingClientRect(),document.addEventListener("mousemove",this.onLeftThumbMousemove),document.addEventListener("mouseup",this.onLeftThumbMouseup),document.addEventListener("touchmove",this.onLeftThumbMousemove),document.addEventListener("touchend",this.onLeftThumbMouseup)},onLeftThumbMousemove(e){this.mouseMoveCounter++;let a=e.clientX;e.type==="touchmove"&&(a=e.touches[0].clientX);let r=(a-this.startX)/this.barBox.width,d=this.barValue+(this.maximum-this.minimum)*r,g=d%this.step;d-=g,d<this.minimum?d=this.minimum:d>this.valueMax-this.rangeMarginValue&&(d=this.valueMax-this.rangeMarginValue),this.valueMin=d},onLeftThumbMouseup(){document.removeEventListener("mousemove",this.onLeftThumbMousemove),document.removeEventListener("mouseup",this.onLeftThumbMouseup),document.removeEventListener("touchmove",this.onLeftThumbMousemove),document.removeEventListener("touchend",this.onLeftThumbMouseup)},onRightThumbMousedown(e){if(e.preventDefault(),this.startX=e.clientX,e.type==="touchstart")if(e.touches.length===1)this.startX=e.touches[0].clientX;else return;this.mouseMoveCounter=0,this.barValue=this.valueMax,this.barBox=e.target.parentNode.getBoundingClientRect(),document.addEventListener("mousemove",this.onRightThumbMousemove),document.addEventListener("mouseup",this.onRightThumbMouseup),document.addEventListener("touchmove",this.onRightThumbMousemove),document.addEventListener("touchend",this.onRightThumbMouseup)},onRightThumbMousemove(e){this.mouseMoveCounter++;let a=e.clientX;e.type==="touchmove"&&(a=e.touches[0].clientX);let r=(a-this.startX)/this.barBox.width,d=this.barValue+(this.maximum-this.minimum)*r,g=d%this.step;d-=g,d<this.valueMin+this.rangeMarginValue?d=this.valueMin+this.rangeMarginValue:d>this.maximum&&(d=this.maximum),this.valueMax=d},onRightThumbMouseup(){document.removeEventListener("mousemove",this.onRightThumbMousemove),document.removeEventListener("mouseup",this.onRightThumbMouseup),document.removeEventListener("touchmove",this.onRightThumbMousemove),document.removeEventListener("touchend",this.onRightThumbMouseup)},onMouseWheel(e){if(this.preventWheel===!0||!e.shiftKey&&!e.ctrlKey)return;let a=this.step;e.deltaY<0&&(a=-a),e.shiftKey&&e.ctrlKey?this.valueMin+a>=this.minimum&&this.valueMax+a<=this.maximum&&(this.valueMin=this.valueMin+a,this.valueMax=this.valueMax+a):e.ctrlKey?(a=this.valueMax+a,a<this.valueMin+this.rangeMarginValue?a=this.valueMin+this.rangeMarginValue:a>this.maximum&&(a=this.maximum),this.valueMax=a):e.shiftKey&&(a=this.valueMin+a,a<this.minimum?a=this.minimum:a>this.valueMax-this.rangeMarginValue&&(a=this.valueMax-this.rangeMarginValue),this.valueMin=a)},triggerInput(){let e=0;this.step.toString().includes(".")&&(e=2);let a={min:this.minimum,max:this.maximum,minValue:parseFloat(this.valueMin.toFixed(e)),maxValue:parseFloat(this.valueMax.toFixed(e))};this.$emit("input",a)}},computed:{minimum(){return this.min===void 0?0:this.min},maximum(){let e=this.labels||[],a=e.length?e.length-1:100;return this.max===void 0?a:this.max},stepCount(){let e=this.labels||[];return e.length?e.length-1:Math.floor((this.maximum-this.minimum)/this.step)},subStepCount(){return(this.labels||[]).length&&this.step>1?(this.maximum-this.minimum)/this.step:0},barMin(){return(this.valueMin-this.minimum)/(this.maximum-this.minimum)*100},barMax(){return 100-(this.valueMax-this.minimum)/(this.maximum-this.minimum)*100},barMinVal(){let e=0;return this.step.toString().includes(".")&&(e=2),(this.valueMin||0).toFixed(e)},barMaxVal(){let e=0;return this.step.toString().includes(".")&&(e=2),(this.valueMax||100).toFixed(e)},scaleLabels(){let e=this.labels||[];return e.length===0&&(e=[],e.push(this.minimum),e.push(this.maximum)),e}},watch:{valueMin(){this.triggerInput()},valueMax(){this.triggerInput()},minValue(e){this.valueMin=e<this.minimum?this.minimum:e},maxValue(e){this.valueMax=e>this.maximum?this.maximum:e}},mounted(){}},Gct={class:"bar"},Wct=["min","max","step","value"],qct={class:"caption"},Yct={class:"min-caption"},Zct={class:"bar-inner"},Xct=["min","max","step","value"],Kct={class:"caption"},Jct={class:"max-caption"},Qct={key:0,class:"ruler"},edt={key:1,class:"sub-ruler"},tdt={key:2,class:"labels"};function adt(e,a,r,d,g,i){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([r.baseClassName,g.rangeMarginValue===0?"zero-ranage-margin":""]),onMousewheel:a[10]||(a[10]=t.withModifiers((...s)=>i.onMouseWheel&&i.onMouseWheel(...s),["prevent","stop"]))},[t.createElementVNode("div",Gct,[t.createElementVNode("div",{class:"bar-left",style:t.normalizeStyle({width:i.barMin+"%"}),onClick:a[0]||(a[0]=(...s)=>i.onBarLeftClick&&i.onBarLeftClick(...s))},null,4),t.createElementVNode("input",{class:"input-type-range input-type-range-min",type:"range",min:i.minimum,max:i.maximum,step:r.step,value:g.valueMin,onInput:a[1]||(a[1]=t.withModifiers((...s)=>i.onInputMinChange&&i.onInputMinChange(...s),["stop","prevent"]))},null,40,Wct),t.createElementVNode("div",{class:"thumb thumb-left",onMousedown:a[2]||(a[2]=(...s)=>i.onLeftThumbMousedown&&i.onLeftThumbMousedown(...s)),onTouchstart:a[3]||(a[3]=(...s)=>i.onLeftThumbMousedown&&i.onLeftThumbMousedown(...s))},[t.createElementVNode("div",qct,[t.createElementVNode("span",Yct,t.toDisplayString(r.minCaption||i.barMinVal),1)])],32),t.createElementVNode("div",Zct,[t.createElementVNode("div",{class:"bar-inner-left",onClick:a[4]||(a[4]=(...s)=>i.onInnerBarLeftClick&&i.onInnerBarLeftClick(...s))}),t.createElementVNode("div",{class:"bar-inner-right",onClick:a[5]||(a[5]=(...s)=>i.onInnerBarRightClick&&i.onInnerBarRightClick(...s))})]),t.createElementVNode("input",{class:"input-type-range input-type-range-max",type:"range",min:i.minimum,max:i.maximum,step:r.step,value:g.valueMax,onInput:a[6]||(a[6]=t.withModifiers((...s)=>i.onInputMaxChange&&i.onInputMaxChange(...s),["stop","prevent"]))},null,40,Xct),t.createElementVNode("div",{class:"thumb thumb-right",onMousedown:a[7]||(a[7]=(...s)=>i.onRightThumbMousedown&&i.onRightThumbMousedown(...s)),onTouchstart:a[8]||(a[8]=(...s)=>i.onRightThumbMousedown&&i.onRightThumbMousedown(...s))},[t.createElementVNode("div",Kct,[t.createElementVNode("span",Jct,t.toDisplayString(r.maxCaption||i.barMaxVal),1)])],32),t.createElementVNode("div",{class:"bar-right",style:t.normalizeStyle({width:i.barMax+"%"}),onClick:a[9]||(a[9]=(...s)=>i.onBarRightClick&&i.onBarRightClick(...s))},null,4)]),r.ruler?(t.openBlock(),t.createElementBlock("div",Qct,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.stepCount,s=>(t.openBlock(),t.createElementBlock("div",{key:s,class:"ruler-rule"}))),128))])):t.createCommentVNode("",!0),i.subStepCount?(t.openBlock(),t.createElementBlock("div",edt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.subStepCount,s=>(t.openBlock(),t.createElementBlock("div",{key:s,class:"ruler-sub-rule"}))),128))])):t.createCommentVNode("",!0),r.label?(t.openBlock(),t.createElementBlock("div",tdt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.scaleLabels,s=>(t.openBlock(),t.createElementBlock("div",{class:"label",key:s},t.toDisplayString(s),1))),128))])):t.createCommentVNode("",!0)],34)}const rdt=YF(Hct,[["render",adt]]),k6={components:{MultiRangeSlider:rdt},props:{minLimit:{type:Number,default:10},maxLimit:{type:Number,default:100},minValue:{type:Number,default:10},maxValue:{type:Number,default:100},height:{type:String,default:"150px"},borderRadius:{type:String,default:"6px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:2},borderColor:{type:String,default:"#d9d9d9"},fontColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"16px"},fontFamily:{type:String,default:"Poppins-Regular"},fontFamilyValue:{type:String,default:"Poppins-Medium"},fontColorValue:{type:String,default:"#FFFFFF"},fontSizeValue:{type:String,default:"20px"},backgroundIndicador:{type:String,default:"rgb(22, 233, 40)"},heightIndicador:{type:String,default:"15px"},widthIndicador:{type:String,default:"15px"},marginTopIndicador:{type:String,default:"-8px"},borderColorIndicador:{type:String,default:"#FFFFFF"},borderWidthIndicador:{type:String,default:"3px"},lineInRangeColor:{type:String,default:"rgb(22, 233, 40)"},lineOutRangeColor:{type:String,default:"#c7c7c7"},minSuffix:{type:String,default:""},maxSuffix:{type:String,default:""}},data(){return{minValueLocal:0,maxValueLocal:0}},computed:{customStyle(){return{height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`}},customStyleText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}},customStyleValue(){return{color:this.fontColorValue,fontSize:this.fontSizeValue,fontFamily:`${this.fontFamilyValue} !important`}}},watch:{minValue:{handler(e){this.minValueLocal=e},immediate:!0},maxValue:{handler(e){this.maxValueLocal=e},immediate:!0}},methods:{onInput(e){this.minValueLocal=e.minValue,this.maxValueLocal=e.maxValue,this.$emit("input",e)}}},ZF=()=>{t.useCssVars(e=>({"318dc560":e.lineOutRangeColor,fcb35722:e.lineInRangeColor,"3edd517e":e.backgroundIndicador,"19ee7a09":e.widthIndicador,"482e6b68":e.heightIndicador,"48824d56":e.borderWidthIndicador,a51d4f50:e.borderColorIndicador,deb3b7b0:e.marginTopIndicador}))},XF=k6.setup;k6.setup=XF?(e,a)=>(ZF(),XF(e,a)):ZF;const ndt={class:"center"},idt={class:"bar-ref"},odt={class:"bar-ref-element-left"},sdt={class:"bar-ref-element-right"};function ldt(e,a,r,d,g,i){const s=t.resolveComponent("MultiRangeSlider");return t.openBlock(),t.createElementBlock("div",{class:"custom-range-slider",style:t.normalizeStyle(i.customStyle)},[t.createElementVNode("div",ndt,[t.createElementVNode("div",idt,[t.createElementVNode("div",odt,[t.createElementVNode("div",{class:"text",style:t.normalizeStyle(i.customStyleText)},"De:",4),t.createElementVNode("div",{class:"value",style:t.normalizeStyle(i.customStyleValue)},t.toDisplayString(g.minValueLocal)+t.toDisplayString(r.minSuffix),5)]),t.createElementVNode("div",sdt,[t.createElementVNode("div",{class:"text",style:t.normalizeStyle(i.customStyleText)},"A:",4),t.createElementVNode("div",{class:"value",style:t.normalizeStyle(i.customStyleValue)},t.toDisplayString(g.maxValueLocal)+t.toDisplayString(r.maxSuffix),5)])]),t.createVNode(s,{baseClassName:"multi-range-slider",min:r.minLimit,max:r.maxLimit,step:1,ruler:!1,label:!1,"min-value":g.minValueLocal,"max-value":g.maxValueLocal,"range-margin":0,onInput:i.onInput},null,8,["min","max","min-value","max-value","onInput"])])],4)}const KF=YF(k6,[["render",ldt]]),cdt={class:"template-distance"},ddt={__name:"TemplateDistance",props:{distance:{type:Object,default:()=>({minLimit:5,maxLimit:30,minValue:5,maxValue:30})}},emits:["update:distanceFilters"],setup(e,{emit:a}){const r=e,d=t.ref({minValue:0,maxValue:0,minLimit:0,maxLimit:0});t.watch(()=>d.value,i=>{a("update:distanceFilters",i)},{deep:!0}),t.watch(()=>r.distance,i=>{d.value.minValue=i.minValue,d.value.maxValue=i.maxValue,d.value.minLimit=i.minLimit,d.value.maxLimit=i.maxLimit},{immediate:!0,deep:!0});function g(i){d.value.minValue=i.minValue,d.value.maxValue=i.maxValue}return(i,s)=>(t.openBlock(),t.createElementBlock("div",cdt,[t.createVNode(t.unref(KF),{"border-width":"0","background-color":"#0D1D29",height:"30px","font-size-value":"12px","font-size":"12px","line-in-range-color":"white","background-indicador":"#CBEE6B","min-limit":d.value.minLimit,"max-limit":d.value.maxLimit,"min-value":d.value.minValue,"max-value":d.value.maxValue,"min-suffix":"m","max-suffix":"+",onInput:g},null,8,["min-limit","max-limit","min-value","max-value"])]))}},udt=e=>(t.pushScopeId("data-v-f251f3f1"),e=e(),t.popScopeId(),e),pdt={class:"template-games"},hdt={class:"template-games__header"},fdt=udt(()=>t.createElementVNode("div",{class:"template-games__header__title"},"Partidos jugados:",-1)),mdt={class:"template-games__header__all-games"},gdt={__name:"TemplateGames",props:{gamesFilters:{type:Array,default:()=>[]}},emits:["update:gamesFilters"],setup(e,{emit:a}){const r=e,d=t.ref(!1),g=t.computed(()=>r.gamesFilters.filter(s=>s.isSelected).length);t.watch(g,s=>{d.value=s===r.gamesFilters.length,a("update:gamesFilters",r.gamesFilters)},{immediate:!0});const i=s=>{s?r.gamesFilters.forEach(n=>{n.isSelected=s}):r.gamesFilters.forEach((n,_)=>{n.isSelected=_===0}),d.value=s};return(s,n)=>(t.openBlock(),t.createElementBlock("div",pdt,[t.createElementVNode("div",hdt,[fdt,t.createElementVNode("div",mdt,[t.createVNode(t.unref(wn),{modelValue:d.value,label:"Todos","box-position":"right","font-family":"Roboto-Regular, sans-serif","label-font-size":"12px","onUpdate:modelValue":i},null,8,["modelValue"])])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gamesFilters,(_,f)=>(t.openBlock(),t.createElementBlock("div",{key:f,class:"template-games__game"},[t.createVNode(t.unref(wn),{modelValue:_.isSelected,"onUpdate:modelValue":o=>_.isSelected=o,label:_.label,"teams-ids":_.teamsIds,"avoid-interaction":g.value===1&&_.isSelected},null,8,["modelValue","onUpdate:modelValue","label","teams-ids","avoid-interaction"])]))),128))]))}},ydt=On(gdt,[["__scopeId","data-v-f251f3f1"]]),_dt=(e,a)=>{const r=e.__vccOpts||e;for(const[d,g]of a)r[d]=g;return r},C6={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},JF=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},QF=C6.setup;C6.setup=QF?(e,a)=>(JF(),QF(e,a)):JF;const vdt=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),bdt=["src"],xdt={key:1,class:"text"},wdt=["src"],kdt={class:"stats"},Cdt=vdt(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),Edt={class:"numstats"},Tdt={class:"leyend"};function Sdt(e,a,r,d,g,i){return t.openBlock(),t.createElementBlock("div",null,[r.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",g.status&&r.typeOnOff&&"button-active"]),style:t.normalizeStyle([i.customStyle,g.status&&r.typeOnOff&&i.customActive]),onClick:a[0]||(a[0]=(...s)=>i.btnClick&&i.btnClick(...s))},[r.icon&&r.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:r.iconSize}),src:r.icon},null,12,bdt)):t.createCommentVNode("",!0),r.textValue?(t.openBlock(),t.createElementBlock("div",xdt,t.toDisplayString(r.textValue),1)):t.createCommentVNode("",!0),r.icon&&r.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:r.iconSize}),src:r.icon},null,12,wdt)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),r.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...s)=>i.btnClick&&i.btnClick(...s))},[t.createElementVNode("div",kdt,[Cdt,t.createElementVNode("div",Edt,t.toDisplayString(r.textStat),1)]),t.createElementVNode("div",Tdt,t.toDisplayString(r.textCategory),1)])):t.createCommentVNode("",!0)])}const E6=_dt(C6,[["render",Sdt],["__scopeId","data-v-fb269a1e"]]),Adt=(e,a)=>{const r=e.__vccOpts||e;for(const[d,g]of a)r[d]=g;return r},T6={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},eR=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},tR=T6.setup;T6.setup=tR?(e,a)=>(eR(),tR(e,a)):eR;const Ndt=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),Bdt=["src"],Idt={key:1,class:"text"},Mdt=["src"],Odt={class:"stats"},Pdt=Ndt(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),Fdt={class:"numstats"},Rdt={class:"leyend"};function zdt(e,a,r,d,g,i){return t.openBlock(),t.createElementBlock("div",null,[r.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",g.status&&r.typeOnOff&&"button-active"]),style:t.normalizeStyle([i.customStyle,g.status&&r.typeOnOff&&i.customActive]),onClick:a[0]||(a[0]=(...s)=>i.btnClick&&i.btnClick(...s))},[r.icon&&r.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:r.iconSize}),src:r.icon},null,12,Bdt)):t.createCommentVNode("",!0),r.textValue?(t.openBlock(),t.createElementBlock("div",Idt,t.toDisplayString(r.textValue),1)):t.createCommentVNode("",!0),r.icon&&r.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:r.iconSize}),src:r.icon},null,12,Mdt)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),r.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...s)=>i.btnClick&&i.btnClick(...s))},[t.createElementVNode("div",Odt,[Pdt,t.createElementVNode("div",Fdt,t.toDisplayString(r.textStat),1)]),t.createElementVNode("div",Rdt,t.toDisplayString(r.textCategory),1)])):t.createCommentVNode("",!0)])}const Vdt=Adt(T6,[["render",zdt],["__scopeId","data-v-fb269a1e"]]),Ldt=(e,a)=>{const r=e.__vccOpts||e;for(const[d,g]of a)r[d]=g;return r},Ddt={key:1},$dt={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},jdt=["fill"],Udt={key:0,class:"checkbox__teams"},Hdt={class:"checkbox__teams__logo"},Gdt=["src"],Wdt={class:"checkbox__teams__logo"},qdt=["src"],Ydt={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelWhiteSpace:{type:String,default:"normal"},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(e){return["left","right","top","bottom"].includes(e)}},boxMarginTop:{type:String,default:"0.2em"},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1},avoidToCheck:{type:Boolean,default:!1},isBoxOnly:{type:Boolean,default:!1},teamsIds:{type:Array,default:()=>null}},emits:["update:modelValue"],setup(e,{emit:a}){const r=e;t.useCssVars(f=>({"6582e90e":e.width,"310b3edf":e.height}));const d=t.ref(!1),g=t.computed(()=>{const f={color:r.boxValueColor,"font-family":r.fontFamily,height:r.boxWidthAndHeight,width:r.boxWidthAndHeight,minWidth:r.boxWidthAndHeight,"border-radius":r.boxBorderRadius,"margin-top":r.boxMarginTop};return d.value?(f["background-color"]=r.boxBackgroundColor,f.border=`solid ${r.boxBorderWidth} ${r.boxBackgroundColor}`):f.border=`solid ${r.boxBorderWidth} ${r.boxBorderColor}`,f}),i=t.computed(()=>({"font-family":r.boxValueFontFamily,"font-size":r.boxValueFontSize,color:r.boxValueColor,"line-height":1})),s=t.computed(()=>{const f={color:r.labelColor,"font-family":r.fontFamily,"font-size":r.labelFontSize,"white-space":r.labelWhiteSpace,"text-align":r.boxPosition==="top"||r.boxPosition==="bottom"?"center":r.boxPosition};return(r.boxPosition==="left"||r.boxPosition==="right")&&(f[`margin-${r.boxPosition}`]=r.isBoxOnly?"0":r.teamsIds?"8px":"10px"),f});t.watch(()=>r.modelValue,f=>{f!==d.value&&(d.value=f)},{immediate:!0});function n(){r.avoidInteraction||!d.value&&r.avoidToCheck||(d.value=!d.value,a("update:modelValue",d.value))}function _(f){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-80/"}${f}.png`}return(f,o)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:n},[t.createElementVNode("div",{class:"checkbox__box",style:t.normalizeStyle(g.value)},[d.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[r.boxValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"checkbox__box__value",style:t.normalizeStyle(i.value)},t.toDisplayString(e.boxValue),5)):(t.openBlock(),t.createElementBlock("div",Ddt,[(t.openBlock(),t.createElementBlock("svg",$dt,[t.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:e.boxValueColor},null,8,jdt)]))]))],64)):t.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(t.openBlock(),t.createElementBlock("div",Udt,[t.createElementVNode("div",Hdt,[t.createElementVNode("img",{src:_(e.teamsIds[0]),alt:""},null,8,Gdt)]),t.createElementVNode("div",Wdt,[t.createElementVNode("img",{src:_(e.teamsIds[1]),alt:""},null,8,qdt)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"checkbox__label",style:t.normalizeStyle(s.value)},t.toDisplayString(e.label),5)],2))}},Zdt=Ldt(Ydt,[["__scopeId","data-v-bcf3bcc6"]]),Xdt=(e,a)=>{const r=e.__vccOpts||e;for(const[d,g]of a)r[d]=g;return r},S6={components:{GSCButton:Vdt,GSCCheckbox:Zdt},data(){return{update:0,all:!1,refreshBtn14:0,refreshBtn24:0,refreshBtn34:0,refreshBtn44:0,sectors:Array.from({length:16},(e,a)=>({sector:a+1,active:!1})),lastUpdatedValue:[]}},props:{backgroundColor:{type:String,default:"#2e3b46"},heightContainer:{type:String,default:"340px"},widthContainer:{type:String,default:"455px"},heightField:{type:Number,default:230},widthField:{type:Number,default:350},heightFieldGrid:{type:String,default:"230px"},widthFieldGrid:{type:String,default:"350px"},backgroundSectorActive:{type:String,default:"#cbee6b"},backgroundSectorDisabled:{type:String,default:"#2e3b46"},borderWidth:{type:Number,default:1},opacitySector:{type:Number,default:.5},borderColor:{type:String,default:"#FFFFFF"},colorLineField:{type:String,default:"#bfc2c5"},borderWidthLineField:{type:Number,default:2},value:{type:Array,default:()=>[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]},title:{type:String,default:"Pase(s) desde la(s) zona(s):"},titleFontSize:{type:String,default:"14px"}},watch:{value:{deep:!0,immediate:!0,handler(e){const a=e.sort();JSON.stringify(a)!==JSON.stringify(this.lastUpdatedValue)&&(this.lastUpdatedValue=a,this.sectors.forEach((r,d)=>{r.active=e.includes(d+1),this.validateField(d)}),this.$emit("update:modelValue",e))}},sectors:{handler(e){var a=[];for(let r=0;r<e.length;r++)e[r].active&&a.push(r+1);this.$emit("update:modelValue",a)},deep:!0}},computed:{translx(){var e=0;return this.widthField>305?e=this.widthField-305:this.widthField==268&&(e=-36),e},transly(){var e=0;return this.heightField>195?(e=this.heightField-195,e=e/2):this.heightField==180&&(e=-7),e},translxcircle(){var e=0;return this.widthField>305?(e=this.widthField-305,e=e/2):this.widthField==268&&(e=-18),e}},methods:{clickAll(e){if(e){for(let a=0;a<this.sectors.length;a++)this.sectors[a].active=!0,this.validateField(a);this.status14=!0,this.status24=!0,this.status34=!0,this.status44=!0,this.refreshBtn14+=1,this.refreshBtn24+=1,this.refreshBtn34+=1,this.refreshBtn44+=1}else for(let a=0;a<this.sectors.length;a++)this.sectors[a].active=!1,this.validateField(a),this.status14=!1,this.status24=!1,this.status34=!1,this.status44=!1,this.refreshBtn14=0,this.refreshBtn24=0,this.refreshBtn34=0,this.refreshBtn44=0},selectSector(e){var a=0;this.sectors[e].active=!this.sectors[e].active;for(let r=0;r<this.sectors.length;r++)this.sectors[r].active&&(a+=1);a==0&&(this.sectors[e].active=!0),this.validateField(e)},btn14(e){this.sectors[0].active=e?this.sectors[0].active=!0:this.sectors[0].active=!1,this.sectors[1].active=e?this.sectors[1].active=!0:this.sectors[1].active=!1,this.sectors[2].active=e?this.sectors[2].active=!0:this.sectors[2].active=!1,this.sectors[3].active=e?this.sectors[3].active=!0:this.sectors[3].active=!1;var a=0;for(let r=0;r<this.sectors.length;r++)this.sectors[r].active&&(a+=1);a==0?(this.sectors[0].active=!0,this.sectors[1].active=!0,this.sectors[2].active=!0,this.sectors[3].active=!0,this.status14=!0,this.refreshBtn14+=1):this.status14=!1,a==16&&(this.all=!0,this.update+=1)},btn24(e){this.sectors[4].active=e?this.sectors[4].active=!0:this.sectors[4].active=!1,this.sectors[5].active=e?this.sectors[5].active=!0:this.sectors[5].active=!1,this.sectors[6].active=e?this.sectors[6].active=!0:this.sectors[6].active=!1,this.sectors[7].active=e?this.sectors[7].active=!0:this.sectors[7].active=!1;var a=0;for(let r=0;r<this.sectors.length;r++)this.sectors[r].active&&(a+=1);a==0?(this.sectors[4].active=!0,this.sectors[5].active=!0,this.sectors[6].active=!0,this.sectors[7].active=!0,this.status24=!0,this.refreshBtn24+=1):this.status24=!1,a==16&&(this.all=!0,this.update+=1)},btn34(e){this.sectors[8].active=e?this.sectors[8].active=!0:this.sectors[8].active=!1,this.sectors[9].active=e?this.sectors[9].active=!0:this.sectors[9].active=!1,this.sectors[10].active=e?this.sectors[10].active=!0:this.sectors[10].active=!1,this.sectors[11].active=e?this.sectors[11].active=!0:this.sectors[11].active=!1;var a=0;for(let r=0;r<this.sectors.length;r++)this.sectors[r].active&&(a+=1);a==0?(this.sectors[8].active=!0,this.sectors[9].active=!0,this.sectors[10].active=!0,this.sectors[11].active=!0,this.status34=!0,this.refreshBtn34+=1):this.status34=!1,a==16&&(this.all=!0,this.update+=1)},btn44(e){this.sectors[12].active=e?this.sectors[12].active=!0:this.sectors[12].active=!1,this.sectors[13].active=e?this.sectors[13].active=!0:this.sectors[13].active=!1,this.sectors[14].active=e?this.sectors[14].active=!0:this.sectors[14].active=!1,this.sectors[15].active=e?this.sectors[15].active=!0:this.sectors[15].active=!1;var a=0;for(let r=0;r<this.sectors.length;r++)this.sectors[r].active&&(a+=1);a==0?(this.sectors[12].active=!0,this.sectors[13].active=!0,this.sectors[14].active=!0,this.sectors[15].active=!0,this.status44=!0,this.refreshBtn44+=1):this.status44=!1,a==16&&(this.all=!0,this.update+=1)},validateField(e){(e===0||e===1||e===2||e===3)&&(this.status14=!!(this.sectors[0].active&&this.sectors[1].active&&this.sectors[2].active&&this.sectors[3].active)),(e===4||e===5||e===6||e===7)&&(this.status24=!!(this.sectors[4].active&&this.sectors[5].active&&this.sectors[6].active&&this.sectors[7].active)),(e===8||e===9||e===10||e===11)&&(this.status34=!!(this.sectors[8].active&&this.sectors[9].active&&this.sectors[10].active&&this.sectors[11].active)),(e===12||e===13||e===14||e===15)&&(this.status44=!!(this.sectors[12].active&&this.sectors[13].active&&this.sectors[14].active&&this.sectors[15].active)),this.all=!!(this.status14&&this.status34&&this.status24&&this.status44),this.update+=1,this.status14&&(this.refreshBtn14+=1),this.status24&&(this.refreshBtn24+=1),this.status34&&(this.refreshBtn34+=1),this.status44&&(this.refreshBtn44+=1)}}},aR=()=>{t.useCssVars(e=>({"4fe806fe":e.widthContainer,"91de7c52":e.heightContainer,"266afcdc":e.backgroundColor,"2b853536":e.titleFontSize,"986b6446":e.widthFieldGrid,"1af308b6":e.heightFieldGrid}))},rR=S6.setup;S6.setup=rR?(e,a)=>(aR(),rR(e,a)):aR;const Kdt={class:"gsc-field"},Jdt={class:"gsc-field__title-checked"},Qdt={class:"gsc-field__title-checked__title"},eut={class:"gsc-field__container-field"},tut={class:"gsc-field__container-field__field"},aut={width:"100%",height:"100%",fill:"#2e3b46",xmlns:"http://www.w3.org/2000/svg"},rut=["stroke"],nut=["stroke","stroke-width"],iut=["stroke","stroke-width"],out=["stroke-width","stroke"],sut=["fill","fill-opacity","stroke","stroke-width"],lut=["fill","fill-opacity","stroke","stroke-width"],cut=["fill","fill-opacity","stroke","stroke-width"],dut=["fill","fill-opacity","stroke","stroke-width"],uut=["fill","fill-opacity","stroke","stroke-width"],put=["fill","fill-opacity","stroke","stroke-width"],hut=["fill","fill-opacity","stroke","stroke-width"],fut=["fill","fill-opacity","stroke","stroke-width"],mut=["fill","fill-opacity","stroke","stroke-width"],gut=["fill","fill-opacity","stroke","stroke-width"],yut=["fill","fill-opacity","stroke","stroke-width"],_ut=["fill","fill-opacity","stroke","stroke-width"],vut=["fill","fill-opacity","stroke","stroke-width"],but=["fill","fill-opacity","stroke","stroke-width"],xut=["fill","fill-opacity","stroke","stroke-width"],wut=["fill","fill-opacity","stroke","stroke-width"],kut={class:"gsc-field__container-field__bar-buttons"};function Cut(e,a,r,d,g,i){const s=t.resolveComponent("GSCCheckbox"),n=t.resolveComponent("GSCButton");return t.openBlock(),t.createElementBlock("div",Kdt,[t.createElementVNode("div",Jdt,[t.createElementVNode("div",Qdt,t.toDisplayString(r.title),1),t.createElementVNode("div",{class:"gsc-field__title-checked__check-cont",style:t.normalizeStyle(r.widthField>=350?"min-width: 123px":"")},[(t.openBlock(),t.createBlock(s,{label:r.widthField<350?"Todas":"Todas las zonas","font-family":"Poppins-Regular","box-value-font-family":"Poppins-Regular","box-position":"right","label-font-size":r.titleFontSize,"label-white-space":"nowrap","box-margin-top":"0.4em",value:g.all,key:g.update,"model-value":g.all,"onUpdate:modelValue":i.clickAll},null,8,["label","label-font-size","value","model-value","onUpdate:modelValue"]))],4)]),t.createElementVNode("div",eut,[t.createElementVNode("div",tut,[(t.openBlock(),t.createElementBlock("svg",aut,[t.createElementVNode("rect",{x:"1.5",y:"0.5",width:"100%",height:"100%",rx:"1.5",stroke:r.colorLineField},null,8,rut),t.createElementVNode("path",{style:t.normalizeStyle("transform: translate("+i.translx+"px, "+i.transly+"px);"),d:"M303.597 39.9799H263.371C262.817 39.9799 262.369 40.4301 262.371 40.984L262.842 155.176C262.845 155.726 263.292 156.172 263.842 156.172H302.884",stroke:r.colorLineField,"stroke-width":r.borderWidthLineField,"stroke-linecap":"square"},null,12,nut),t.createElementVNode("path",{style:t.normalizeStyle("transform: translateY("+i.transly+"px);"),class:"porteria1",d:"M1.09097 156.172L41.3162 156.172C41.8701 156.172 42.3185 155.722 42.3162 155.168L41.845 40.9758C41.8427 40.4252 41.3957 39.98 40.845 39.98L1.80338 39.98",stroke:r.colorLineField,"stroke-width":r.borderWidthLineField,"stroke-linecap":"square"},null,12,iut),t.createElementVNode("path",{style:t.normalizeStyle("transform: translate("+i.translxcircle+"px, "+i.transly+"px);"),class:"circle",d:"M182.911 97.4512C182.911 113.726 169.44 126.936 152.801 126.936C136.162 126.936 122.691 113.726 122.691 97.4512C122.691 81.1767 136.162 67.9662 152.801 67.9662C169.44 67.9662 182.911 81.1767 182.911 97.4512Z","stroke-width":r.borderWidthLineField,stroke:r.colorLineField},null,12,out),t.createElementVNode("rect",{x:"0%",y:"0%",width:"25%",height:"25%",fill:g.sectors[0].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:a[0]||(a[0]=_=>i.selectSector(0))},null,8,sut),t.createElementVNode("rect",{x:"0%",y:"25%",width:"25%",height:"25%",fill:g.sectors[1].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:a[1]||(a[1]=_=>i.selectSector(1))},null,8,lut),t.createElementVNode("rect",{x:"0%",y:"50%",width:"25%",height:"25%",fill:g.sectors[2].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:a[2]||(a[2]=_=>i.selectSector(2))},null,8,cut),t.createElementVNode("rect",{x:"0%",y:"75%",width:"25%",height:"25%",fill:g.sectors[3].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:a[3]||(a[3]=_=>i.selectSector(3))},null,8,dut),t.createElementVNode("rect",{x:"25%",y:"0%",width:"25%",height:"25%",fill:g.sectors[4].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:a[4]||(a[4]=_=>i.selectSector(4))},null,8,uut),t.createElementVNode("rect",{x:"25%",y:"25%",width:"25%",height:"25%",fill:g.sectors[5].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:a[5]||(a[5]=_=>i.selectSector(5))},null,8,put),t.createElementVNode("rect",{x:"25%",y:"50%",width:"25%",height:"25%",fill:g.sectors[6].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:a[6]||(a[6]=_=>i.selectSector(6))},null,8,hut),t.createElementVNode("rect",{x:"25%",y:"75%",width:"25%",height:"25%",fill:g.sectors[7].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:a[7]||(a[7]=_=>i.selectSector(7))},null,8,fut),t.createElementVNode("rect",{x:"50%",y:"0%",width:"25%",height:"25%",fill:g.sectors[8].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:a[8]||(a[8]=_=>i.selectSector(8))},null,8,mut),t.createElementVNode("rect",{x:"50%",y:"25%",width:"25%",height:"25%",fill:g.sectors[9].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:a[9]||(a[9]=_=>i.selectSector(9))},null,8,gut),t.createElementVNode("rect",{x:"50%",y:"50%",width:"25%",height:"25%",fill:g.sectors[10].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:a[10]||(a[10]=_=>i.selectSector(10))},null,8,yut),t.createElementVNode("rect",{x:"50%",y:"75%",width:"25%",height:"25%",fill:g.sectors[11].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:a[11]||(a[11]=_=>i.selectSector(11))},null,8,_ut),t.createElementVNode("rect",{x:"75%",y:"0%",width:"25%",height:"25%",fill:g.sectors[12].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:a[12]||(a[12]=_=>i.selectSector(12))},null,8,vut),t.createElementVNode("rect",{x:"75%",y:"25%",width:"25%",height:"25%",fill:g.sectors[13].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:a[13]||(a[13]=_=>i.selectSector(13))},null,8,but),t.createElementVNode("rect",{x:"75%",y:"50%",width:"25%",height:"25%",fill:g.sectors[14].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:a[14]||(a[14]=_=>i.selectSector(14))},null,8,xut),t.createElementVNode("rect",{x:"75%",y:"75%",width:"25%",height:"25%",fill:g.sectors[15].active?r.backgroundSectorActive:r.backgroundSectorDisabled,"fill-opacity":r.opacitySector,stroke:r.borderColor,"stroke-width":r.borderWidth,onClick:a[15]||(a[15]=_=>i.selectSector(15))},null,8,wut)]))]),t.createElementVNode("div",kut,[(t.openBlock(),t.createBlock(n,{"text-value":"1/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn14",onStatus:i.btn14,key:g.refreshBtn14,value:e.status14},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(n,{"text-value":"2/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn24",onStatus:i.btn24,key:g.refreshBtn24,value:e.status24},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(n,{"text-value":"3/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn34",onStatus:i.btn34,key:g.refreshBtn34,value:e.status34},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(n,{"text-value":"4/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn44",onStatus:i.btn44,key:g.refreshBtn44,value:e.status44},null,8,["onStatus","value"]))])])])}const nR=Xdt(S6,[["render",Cut],["__scopeId","data-v-b85699b8"]]),Eut={class:"toggle-buttons__background"},Tut=["onClick"],Sut={__name:"ToggleButtons",props:{buttons:{type:Array,required:!0},selectedButtonIndex:{type:Number,default:0},height:{type:String,default:"29px"},width:{type:String,default:"100%"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Medium"},borderRadius:{type:String,default:"8px"},mainBackgroundColor:{type:String,default:"#364448"},mainBorderColor:{type:String,default:"#9AA1A3"},mainBorderWidth:{type:String,default:"0.5px"},activeBorderColor:{type:String,default:"#cbee6b"},activeBorderWidth:{type:String,default:"1px"},activeBackgroundColor:{type:String,default:"#2e3b46"}},emits:["change"],setup(e,{emit:a}){const r=e;t.useCssVars(s=>({"0d588b39":e.height,"2a8da974":e.width,"6d34d30a":e.mainBackgroundColor,"3d50bf20":e.borderRadius,e8fc78a2:e.mainBorderWidth,eb2a7568:e.mainBorderColor,acdd84b6:e.fontFamily,"63d45e82":e.fontSize,b28ed67c:e.activeBorderWidth,b4bcd342:e.activeBorderColor,"7fa6e29d":e.activeBackgroundColor}));const d=t.ref(r.selectedButtonIndex),g=t.computed(()=>({"--grid-template-columns":`repeat(${r.buttons.length}, 1fr)`}));t.watch(()=>r.selectedButtonIndex,s=>{d.value=s}),t.watch(d,(s,n)=>{s!==n&&a("change",{index:s,button:r.buttons[s]})});function i(s){d.value=s}return(s,n)=>(t.openBlock(),t.createElementBlock("div",Eut,[t.createElementVNode("div",{class:"toggle-buttons",style:t.normalizeStyle(g.value)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.buttons,(_,f)=>(t.openBlock(),t.createElementBlock("div",{key:`b${f}`,class:t.normalizeClass(["toggle-buttons__button",{active:d.value===f}]),onClick:o=>i(f)},t.toDisplayString(_.text||_),11,Tut))),128))],4)]))}},Aut=On(Sut,[["__scopeId","data-v-ac2af001"]]);function iR(e,a){return function(){return e.apply(a,arguments)}}const{toString:Nut}=Object.prototype,{getPrototypeOf:A6}=Object,m_=(e=>a=>{const r=Nut.call(a);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Dd=e=>(e=e.toLowerCase(),a=>m_(a)===e),g_=e=>a=>typeof a===e,{isArray:rf}=Array,I0=g_("undefined");function But(e){return e!==null&&!I0(e)&&e.constructor!==null&&!I0(e.constructor)&&yc(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const oR=Dd("ArrayBuffer");function Iut(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&oR(e.buffer),a}const Mut=g_("string"),yc=g_("function"),sR=g_("number"),y_=e=>e!==null&&typeof e=="object",Out=e=>e===!0||e===!1,__=e=>{if(m_(e)!=="object")return!1;const a=A6(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Put=Dd("Date"),Fut=Dd("File"),Rut=Dd("Blob"),zut=Dd("FileList"),Vut=e=>y_(e)&&yc(e.pipe),Lut=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||yc(e.append)&&((a=m_(e))==="formdata"||a==="object"&&yc(e.toString)&&e.toString()==="[object FormData]"))},Dut=Dd("URLSearchParams"),$ut=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function M0(e,a,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let d,g;if(typeof e!="object"&&(e=[e]),rf(e))for(d=0,g=e.length;d<g;d++)a.call(null,e[d],d,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let n;for(d=0;d<s;d++)n=i[d],a.call(null,e[n],n,e)}}function lR(e,a){a=a.toLowerCase();const r=Object.keys(e);let d=r.length,g;for(;d-- >0;)if(g=r[d],a===g.toLowerCase())return g;return null}const cR=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,dR=e=>!I0(e)&&e!==cR;function N6(){const{caseless:e}=dR(this)&&this||{},a={},r=(d,g)=>{const i=e&&lR(a,g)||g;__(a[i])&&__(d)?a[i]=N6(a[i],d):__(d)?a[i]=N6({},d):rf(d)?a[i]=d.slice():a[i]=d};for(let d=0,g=arguments.length;d<g;d++)arguments[d]&&M0(arguments[d],r);return a}const jut=(e,a,r,{allOwnKeys:d}={})=>(M0(a,(g,i)=>{r&&yc(g)?e[i]=iR(g,r):e[i]=g},{allOwnKeys:d}),e),Uut=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Hut=(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)},Gut=(e,a,r,d)=>{let g,i,s;const n={};if(a=a||{},e==null)return a;do{for(g=Object.getOwnPropertyNames(e),i=g.length;i-- >0;)s=g[i],(!d||d(s,e,a))&&!n[s]&&(a[s]=e[s],n[s]=!0);e=r!==!1&&A6(e)}while(e&&(!r||r(e,a))&&e!==Object.prototype);return a},Wut=(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},qut=e=>{if(!e)return null;if(rf(e))return e;let a=e.length;if(!sR(a))return null;const r=new Array(a);for(;a-- >0;)r[a]=e[a];return r},Yut=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&A6(Uint8Array)),Zut=(e,a)=>{const r=(e&&e[Symbol.iterator]).call(e);let d;for(;(d=r.next())&&!d.done;){const g=d.value;a.call(e,g[0],g[1])}},Xut=(e,a)=>{let r;const d=[];for(;(r=e.exec(a))!==null;)d.push(r);return d},Kut=Dd("HTMLFormElement"),Jut=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,r,d){return r.toUpperCase()+d}),uR=(({hasOwnProperty:e})=>(a,r)=>e.call(a,r))(Object.prototype),Qut=Dd("RegExp"),pR=(e,a)=>{const r=Object.getOwnPropertyDescriptors(e),d={};M0(r,(g,i)=>{let s;(s=a(g,i,e))!==!1&&(d[i]=s||g)}),Object.defineProperties(e,d)},ept=e=>{pR(e,(a,r)=>{if(yc(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const d=e[r];if(yc(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+"'")})}})},tpt=(e,a)=>{const r={},d=g=>{g.forEach(i=>{r[i]=!0})};return rf(e)?d(e):d(String(e).split(a)),r},apt=()=>{},rpt=(e,a)=>(e=+e,Number.isFinite(e)?e:a),B6="abcdefghijklmnopqrstuvwxyz",hR="0123456789",fR={DIGIT:hR,ALPHA:B6,ALPHA_DIGIT:B6+B6.toUpperCase()+hR},npt=(e=16,a=fR.ALPHA_DIGIT)=>{let r="";const{length:d}=a;for(;e--;)r+=a[Math.random()*d|0];return r};function ipt(e){return!!(e&&yc(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const opt=e=>{const a=new Array(10),r=(d,g)=>{if(y_(d)){if(a.indexOf(d)>=0)return;if(!("toJSON"in d)){a[g]=d;const i=rf(d)?[]:{};return M0(d,(s,n)=>{const _=r(s,g+1);!I0(_)&&(i[n]=_)}),a[g]=void 0,i}}return d};return r(e,0)},spt=Dd("AsyncFunction"),lpt=e=>e&&(y_(e)||yc(e))&&yc(e.then)&&yc(e.catch),Nr={isArray:rf,isArrayBuffer:oR,isBuffer:But,isFormData:Lut,isArrayBufferView:Iut,isString:Mut,isNumber:sR,isBoolean:Out,isObject:y_,isPlainObject:__,isUndefined:I0,isDate:Put,isFile:Fut,isBlob:Rut,isRegExp:Qut,isFunction:yc,isStream:Vut,isURLSearchParams:Dut,isTypedArray:Yut,isFileList:zut,forEach:M0,merge:N6,extend:jut,trim:$ut,stripBOM:Uut,inherits:Hut,toFlatObject:Gut,kindOf:m_,kindOfTest:Dd,endsWith:Wut,toArray:qut,forEachEntry:Zut,matchAll:Xut,isHTMLForm:Kut,hasOwnProperty:uR,hasOwnProp:uR,reduceDescriptors:pR,freezeMethods:ept,toObjectSet:tpt,toCamelCase:Jut,noop:apt,toFiniteNumber:rpt,findKey:lR,global:cR,isContextDefined:dR,ALPHABET:fR,generateString:npt,isSpecCompliantForm:ipt,toJSONObject:opt,isAsyncFn:spt,isThenable:lpt};function Zn(e,a,r,d,g){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),g&&(this.response=g)}Nr.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:Nr.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const mR=Zn.prototype,gR={};["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=>{gR[e]={value:e}}),Object.defineProperties(Zn,gR),Object.defineProperty(mR,"isAxiosError",{value:!0}),Zn.from=(e,a,r,d,g,i)=>{const s=Object.create(mR);return Nr.toFlatObject(e,s,function(n){return n!==Error.prototype},n=>n!=="isAxiosError"),Zn.call(s,e.message,a,r,d,g),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const cpt=null;function I6(e){return Nr.isPlainObject(e)||Nr.isArray(e)}function yR(e){return Nr.endsWith(e,"[]")?e.slice(0,-2):e}function _R(e,a,r){return e?e.concat(a).map(function(d,g){return d=yR(d),!r&&g?"["+d+"]":d}).join(r?".":""):a}function dpt(e){return Nr.isArray(e)&&!e.some(I6)}const upt=Nr.toFlatObject(Nr,{},null,function(e){return/^is[A-Z]/.test(e)});function v_(e,a,r){if(!Nr.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,r=Nr.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,l){return!Nr.isUndefined(l[c])});const d=r.metaTokens,g=r.visitor||f,i=r.dots,s=r.indexes,n=(r.Blob||typeof Blob<"u"&&Blob)&&Nr.isSpecCompliantForm(a);if(!Nr.isFunction(g))throw new TypeError("visitor must be a function");function _(c){if(c===null)return"";if(Nr.isDate(c))return c.toISOString();if(!n&&Nr.isBlob(c))throw new Zn("Blob is not supported. Use a Buffer instead.");return Nr.isArrayBuffer(c)||Nr.isTypedArray(c)?n&&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(Nr.endsWith(l,"{}"))l=d?l:l.slice(0,-2),c=JSON.stringify(c);else if(Nr.isArray(c)&&dpt(c)||(Nr.isFileList(c)||Nr.endsWith(l,"[]"))&&(p=Nr.toArray(c)))return l=yR(l),p.forEach(function(h,y){!(Nr.isUndefined(h)||h===null)&&a.append(s===!0?_R([l],y,i):s===null?l:l+"[]",_(h))}),!1}return I6(c)?!0:(a.append(_R(u,l,i),_(c)),!1)}const o=[],m=Object.assign(upt,{defaultVisitor:f,convertValue:_,isVisitable:I6});function x(c,l){if(!Nr.isUndefined(c)){if(o.indexOf(c)!==-1)throw Error("Circular reference detected in "+l.join("."));o.push(c),Nr.forEach(c,function(u,p){(!(Nr.isUndefined(u)||u===null)&&g.call(a,u,Nr.isString(p)?p.trim():p,l,m))===!0&&x(u,l?l.concat(p):[p])}),o.pop()}}if(!Nr.isObject(e))throw new TypeError("data must be an object");return x(e),a}function vR(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return a[r]})}function M6(e,a){this._pairs=[],e&&v_(e,this,a)}const bR=M6.prototype;bR.append=function(e,a){this._pairs.push([e,a])},bR.toString=function(e){const a=e?function(r){return e.call(this,r,vR)}:vR;return this._pairs.map(function(r){return a(r[0])+"="+a(r[1])},"").join("&")};function ppt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function xR(e,a,r){if(!a)return e;const d=r&&r.encode||ppt,g=r&&r.serialize;let i;if(g?i=g(a,r):i=Nr.isURLSearchParams(a)?a.toString():new M6(a,r).toString(d),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class hpt{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){Nr.forEach(this.handlers,function(r){r!==null&&a(r)})}}const wR=hpt,kR={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},fpt=typeof URLSearchParams<"u"?URLSearchParams:M6,mpt=typeof FormData<"u"?FormData:null,gpt=typeof Blob<"u"?Blob:null,ypt={isBrowser:!0,classes:{URLSearchParams:fpt,FormData:mpt,Blob:gpt},protocols:["http","https","file","blob","url","data"]},CR=typeof window<"u"&&typeof document<"u",_pt=(e=>CR&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),vpt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",bpt=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:CR,hasStandardBrowserEnv:_pt,hasStandardBrowserWebWorkerEnv:vpt},Symbol.toStringTag,{value:"Module"})),$d={...bpt,...ypt};function xpt(e,a){return v_(e,new $d.classes.URLSearchParams,Object.assign({visitor:function(r,d,g,i){return $d.isNode&&Nr.isBuffer(r)?(this.append(d,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},a))}function wpt(e){return Nr.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function kpt(e){const a={},r=Object.keys(e);let d;const g=r.length;let i;for(d=0;d<g;d++)i=r[d],a[i]=e[i];return a}function ER(e){function a(r,d,g,i){let s=r[i++];if(s==="__proto__")return!0;const n=Number.isFinite(+s),_=i>=r.length;return s=!s&&Nr.isArray(g)?g.length:s,_?(Nr.hasOwnProp(g,s)?g[s]=[g[s],d]:g[s]=d,!n):((!g[s]||!Nr.isObject(g[s]))&&(g[s]=[]),a(r,d,g[s],i)&&Nr.isArray(g[s])&&(g[s]=kpt(g[s])),!n)}if(Nr.isFormData(e)&&Nr.isFunction(e.entries)){const r={};return Nr.forEachEntry(e,(d,g)=>{a(wpt(d),g,r,0)}),r}return null}function Cpt(e,a,r){if(Nr.isString(e))try{return(a||JSON.parse)(e),Nr.trim(e)}catch(d){if(d.name!=="SyntaxError")throw d}return(0,JSON.stringify)(e)}const O6={transitional:kR,adapter:["xhr","http"],transformRequest:[function(e,a){const r=a.getContentType()||"",d=r.indexOf("application/json")>-1,g=Nr.isObject(e);if(g&&Nr.isHTMLForm(e)&&(e=new FormData(e)),Nr.isFormData(e))return d?JSON.stringify(ER(e)):e;if(Nr.isArrayBuffer(e)||Nr.isBuffer(e)||Nr.isStream(e)||Nr.isFile(e)||Nr.isBlob(e))return e;if(Nr.isArrayBufferView(e))return e.buffer;if(Nr.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(g){if(r.indexOf("application/x-www-form-urlencoded")>-1)return xpt(e,this.formSerializer).toString();if((i=Nr.isFileList(e))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return v_(i?{"files[]":e}:e,s&&new s,this.formSerializer)}}return g||d?(a.setContentType("application/json",!1),Cpt(e)):e}],transformResponse:[function(e){const a=this.transitional||O6.transitional,r=a&&a.forcedJSONParsing,d=this.responseType==="json";if(e&&Nr.isString(e)&&(r&&!this.responseType||d)){const g=!(a&&a.silentJSONParsing)&&d;try{return JSON.parse(e)}catch(i){if(g)throw i.name==="SyntaxError"?Zn.from(i,Zn.ERR_BAD_RESPONSE,this,null,this.response):i}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:$d.classes.FormData,Blob:$d.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Nr.forEach(["delete","get","head","post","put","patch"],e=>{O6.headers[e]={}});const P6=O6,Ept=Nr.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"]),Tpt=e=>{const a={};let r,d,g;return e&&e.split(`
|
|
118
118
|
`).forEach(function(i){g=i.indexOf(":"),r=i.substring(0,g).trim().toLowerCase(),d=i.substring(g+1).trim(),!(!r||a[r]&&Ept[r])&&(r==="set-cookie"?a[r]?a[r].push(d):a[r]=[d]:a[r]=a[r]?a[r]+", "+d:d)}),a},TR=Symbol("internals");function O0(e){return e&&String(e).trim().toLowerCase()}function b_(e){return e===!1||e==null?e:Nr.isArray(e)?e.map(b_):String(e)}function Spt(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 Apt=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function F6(e,a,r,d,g){if(Nr.isFunction(d))return d.call(this,a,r);if(g&&(a=r),!!Nr.isString(a)){if(Nr.isString(d))return a.indexOf(d)!==-1;if(Nr.isRegExp(d))return d.test(a)}}function Npt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,r,d)=>r.toUpperCase()+d)}function Bpt(e,a){const r=Nr.toCamelCase(" "+a);["get","set","has"].forEach(d=>{Object.defineProperty(e,d+r,{value:function(g,i,s){return this[d].call(this,a,g,i,s)},configurable:!0})})}class x_{constructor(a){a&&this.set(a)}set(a,r,d){const g=this;function i(n,_,f){const o=O0(_);if(!o)throw new Error("header name must be a non-empty string");const m=Nr.findKey(g,o);(!m||g[m]===void 0||f===!0||f===void 0&&g[m]!==!1)&&(g[m||_]=b_(n))}const s=(n,_)=>Nr.forEach(n,(f,o)=>i(f,o,_));return Nr.isPlainObject(a)||a instanceof this.constructor?s(a,r):Nr.isString(a)&&(a=a.trim())&&!Apt(a)?s(Tpt(a),r):a!=null&&i(r,a,d),this}get(a,r){if(a=O0(a),a){const d=Nr.findKey(this,a);if(d){const g=this[d];if(!r)return g;if(r===!0)return Spt(g);if(Nr.isFunction(r))return r.call(this,g,d);if(Nr.isRegExp(r))return r.exec(g);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,r){if(a=O0(a),a){const d=Nr.findKey(this,a);return!!(d&&this[d]!==void 0&&(!r||F6(this,this[d],d,r)))}return!1}delete(a,r){const d=this;let g=!1;function i(s){if(s=O0(s),s){const n=Nr.findKey(d,s);n&&(!r||F6(d,d[n],n,r))&&(delete d[n],g=!0)}}return Nr.isArray(a)?a.forEach(i):i(a),g}clear(a){const r=Object.keys(this);let d=r.length,g=!1;for(;d--;){const i=r[d];(!a||F6(this,this[i],i,a,!0))&&(delete this[i],g=!0)}return g}normalize(a){const r=this,d={};return Nr.forEach(this,(g,i)=>{const s=Nr.findKey(d,i);if(s){r[s]=b_(g),delete r[i];return}const n=a?Npt(i):String(i).trim();n!==i&&delete r[i],r[n]=b_(g),d[n]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const r=Object.create(null);return Nr.forEach(this,(d,g)=>{d!=null&&d!==!1&&(r[g]=a&&Nr.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(`
|
|
119
119
|
`)}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(g=>d.set(g)),d}static accessor(a){const r=(this[TR]=this[TR]={accessors:{}}).accessors,d=this.prototype;function g(i){const s=O0(i);r[s]||(Bpt(d,i),r[s]=!0)}return Nr.isArray(a)?a.forEach(g):g(a),this}}x_.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Nr.reduceDescriptors(x_.prototype,({value:e},a)=>{let r=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(d){this[r]=d}}}),Nr.freezeMethods(x_);const yu=x_;function R6(e,a){const r=this||P6,d=a||r,g=yu.from(d.headers);let i=d.data;return Nr.forEach(e,function(s){i=s.call(r,i,g.normalize(),a?a.status:void 0)}),g.normalize(),i}function SR(e){return!!(e&&e.__CANCEL__)}function P0(e,a,r){Zn.call(this,e??"canceled",Zn.ERR_CANCELED,a,r),this.name="CanceledError"}Nr.inherits(P0,Zn,{__CANCEL__:!0});function Ipt(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 Mpt=$d.hasStandardBrowserEnv?{write(e,a,r,d,g,i){const s=[e+"="+encodeURIComponent(a)];Nr.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),Nr.isString(d)&&s.push("path="+d),Nr.isString(g)&&s.push("domain="+g),i===!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 Opt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Ppt(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function AR(e,a){return e&&!Opt(a)?Ppt(e,a):a}const Fpt=$d.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");let r;function d(g){let i=g;return e&&(a.setAttribute("href",i),i=a.href),a.setAttribute("href",i),{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(g){const i=Nr.isString(g)?d(g):g;return i.protocol===r.protocol&&i.host===r.host}}():function(){return function(){return!0}}();function Rpt(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function zpt(e,a){e=e||10;const r=new Array(e),d=new Array(e);let g=0,i=0,s;return a=a!==void 0?a:1e3,function(n){const _=Date.now(),f=d[i];s||(s=_),r[g]=n,d[g]=_;let o=i,m=0;for(;o!==g;)m+=r[o++],o=o%e;if(g=(g+1)%e,g===i&&(i=(i+1)%e),_-s<a)return;const x=f&&_-f;return x?Math.round(m*1e3/x):void 0}}function NR(e,a){let r=0;const d=zpt(50,250);return g=>{const i=g.loaded,s=g.lengthComputable?g.total:void 0,n=i-r,_=d(n),f=i<=s;r=i;const o={loaded:i,total:s,progress:s?i/s:void 0,bytes:n,rate:_||void 0,estimated:_&&s&&f?(s-i)/_:void 0,event:g};o[a?"download":"upload"]=!0,e(o)}}const Vpt=typeof XMLHttpRequest<"u",Lpt=Vpt&&function(e){return new Promise(function(a,r){let d=e.data;const g=yu.from(e.headers).normalize();let{responseType:i,withXSRFToken:s}=e,n;function _(){e.cancelToken&&e.cancelToken.unsubscribe(n),e.signal&&e.signal.removeEventListener("abort",n)}let f;if(Nr.isFormData(d)){if($d.hasStandardBrowserEnv||$d.hasStandardBrowserWebWorkerEnv)g.setContentType(!1);else if((f=g.getContentType())!==!1){const[l,...u]=f?f.split(";").map(p=>p.trim()).filter(Boolean):[];g.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)):"";g.set("Authorization","Basic "+btoa(l+":"+u))}const m=AR(e.baseURL,e.url);o.open(e.method.toUpperCase(),xR(m,e.params,e.paramsSerializer),!0),o.timeout=e.timeout;function x(){if(!o)return;const l=yu.from("getAllResponseHeaders"in o&&o.getAllResponseHeaders()),u={data:!i||i==="text"||i==="json"?o.responseText:o.response,status:o.status,statusText:o.statusText,headers:l,config:e,request:o};Ipt(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||kR;e.timeoutErrorMessage&&(l=e.timeoutErrorMessage),r(new Zn(l,u.clarifyTimeoutError?Zn.ETIMEDOUT:Zn.ECONNABORTED,e,o)),o=null},$d.hasStandardBrowserEnv&&(s&&Nr.isFunction(s)&&(s=s(e)),s||s!==!1&&Fpt(m))){const l=e.xsrfHeaderName&&e.xsrfCookieName&&Mpt.read(e.xsrfCookieName);l&&g.set(e.xsrfHeaderName,l)}d===void 0&&g.setContentType(null),"setRequestHeader"in o&&Nr.forEach(g.toJSON(),function(l,u){o.setRequestHeader(u,l)}),Nr.isUndefined(e.withCredentials)||(o.withCredentials=!!e.withCredentials),i&&i!=="json"&&(o.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&o.addEventListener("progress",NR(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&o.upload&&o.upload.addEventListener("progress",NR(e.onUploadProgress)),(e.cancelToken||e.signal)&&(n=l=>{o&&(r(!l||l.type?new P0(null,e,o):l),o.abort(),o=null)},e.cancelToken&&e.cancelToken.subscribe(n),e.signal&&(e.signal.aborted?n():e.signal.addEventListener("abort",n)));const c=Rpt(m);if(c&&$d.protocols.indexOf(c)===-1){r(new Zn("Unsupported protocol "+c+":",Zn.ERR_BAD_REQUEST,e));return}o.send(d||null)})},z6={http:cpt,xhr:Lpt};Nr.forEach(z6,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const BR=e=>`- ${e}`,Dpt=e=>Nr.isFunction(e)||e===null||e===!1,IR={getAdapter:e=>{e=Nr.isArray(e)?e:[e];const{length:a}=e;let r,d;const g={};for(let i=0;i<a;i++){r=e[i];let s;if(d=r,!Dpt(r)&&(d=z6[(s=String(r)).toLowerCase()],d===void 0))throw new Zn(`Unknown adapter '${s}'`);if(d)break;g[s||"#"+i]=d}if(!d){const i=Object.entries(g).map(([n,_])=>`adapter ${n} `+(_===!1?"is not supported by the environment":"is not available in the build"));let s=a?i.length>1?`since :
|
|
@@ -3561,7 +3561,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3561
3561
|
`).slice(2):`
|
|
3562
3562
|
`+Y.split(`
|
|
3563
3563
|
`).map(function(le){return" "+le}).join(`
|
|
3564
|
-
`)):Y=L.stylize("[Circular]","special")),E(H)){if(X&&G.match(/^\d+$/))return Y;(H=JSON.stringify(""+G)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(H=H.slice(1,-1),H=L.stylize(H,"name")):(H=H.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),H=L.stylize(H,"string"))}return H+": "+Y}function v(L){return Array.isArray(L)}function w(L){return typeof L=="boolean"}function C(L){return L===null}function k(L){return typeof L=="number"}function N(L){return typeof L=="string"}function E(L){return L===void 0}function S(L){return A(L)&&T(L)==="[object RegExp]"}function A(L){return typeof L=="object"&&L!==null}function B(L){return A(L)&&T(L)==="[object Date]"}function I(L){return A(L)&&(T(L)==="[object Error]"||L instanceof Error)}function O(L){return typeof L=="function"}function T(L){return Object.prototype.toString.call(L)}function R(L){return L<10?"0"+L.toString(10):L.toString(10)}s.debuglog=function(L){if(L=L.toUpperCase(),!m[L])if(x.test(L)){var j=_.pid;m[L]=function(){var W=s.format.apply(s,arguments);console.error("%s %d: %s",L,j,W)}}else m[L]=function(){};return m[L]},s.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},s.types=n(41088),s.isArray=v,s.isBoolean=w,s.isNull=C,s.isNullOrUndefined=function(L){return L==null},s.isNumber=k,s.isString=N,s.isSymbol=function(L){return typeof L=="symbol"},s.isUndefined=E,s.isRegExp=S,s.types.isRegExp=S,s.isObject=A,s.isDate=B,s.types.isDate=B,s.isError=I,s.types.isNativeError=I,s.isFunction=O,s.isPrimitive=function(L){return L===null||typeof L=="boolean"||typeof L=="number"||typeof L=="string"||typeof L=="symbol"||L===void 0},s.isBuffer=n(75272);var M=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P(L,j){return Object.prototype.hasOwnProperty.call(L,j)}s.log=function(){var L,j;console.log("%s - %s",(j=[R((L=new Date).getHours()),R(L.getMinutes()),R(L.getSeconds())].join(":"),[L.getDate(),M[L.getMonth()],j].join(" ")),s.format.apply(s,arguments))},s.inherits=n(6768),s._extend=function(L,j){if(!j||!A(j))return L;for(var W=Object.keys(j),$=W.length;$--;)L[W[$]]=j[W[$]];return L};var V=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function D(L,j){if(!L){var W=new Error("Promise was rejected with a falsy value");W.reason=L,L=W}return j(L)}s.promisify=function(L){if(typeof L!="function")throw new TypeError('The "original" argument must be of type Function');if(V&&L[V]){var j;if(typeof(j=L[V])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(j,V,{value:j,enumerable:!1,writable:!1,configurable:!0}),j}function j(){for(var W,$,G=new Promise(function(Y,Z){W=Y,$=Z}),X=[],H=0;H<arguments.length;H++)X.push(arguments[H]);X.push(function(Y,Z){Y?$(Y):W(Z)});try{L.apply(this,X)}catch(Y){$(Y)}return G}return Object.setPrototypeOf(j,Object.getPrototypeOf(L)),V&&Object.defineProperty(j,V,{value:j,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(j,f(L))},s.promisify.custom=V,s.callbackify=function(L){if(typeof L!="function")throw new TypeError('The "original" argument must be of type Function');function j(){for(var W=[],$=0;$<arguments.length;$++)W.push(arguments[$]);var G=W.pop();if(typeof G!="function")throw new TypeError("The last argument must be of type Function");var X=this,H=function(){return G.apply(X,arguments)};L.apply(this,W).then(function(Y){_.nextTick(H.bind(null,null,Y))},function(Y){_.nextTick(D.bind(null,Y,H))})}return Object.setPrototypeOf(j,Object.getPrototypeOf(L)),Object.defineProperties(j,f(L)),j}},5408:function(i,s,n){var _=n(13380);i.exports=function(f){return _("webgl",f)}},96632:function(i,s,n){var _=n(46492),f=n(63436),o=n(57916),m=n(99676),x=n(2304),c=m("Object.prototype.toString"),l=n(46672)(),u=typeof globalThis>"u"?n.g:globalThis,p=f(),h=m("String.prototype.slice"),y=Object.getPrototypeOf,b=m("Array.prototype.indexOf",!0)||function(w,C){for(var k=0;k<w.length;k+=1)if(w[k]===C)return k;return-1},v={__proto__:null};_(p,l&&x&&y?function(w){var C=new u[w];if(Symbol.toStringTag in C){var k=y(C),N=x(k,Symbol.toStringTag);if(!N){var E=y(k);N=x(E,Symbol.toStringTag)}v["$"+w]=o(N.get)}}:function(w){var C=new u[w],k=C.slice||C.set;k&&(v["$"+w]=o(k))}),i.exports=function(w){if(!w||typeof w!="object")return!1;if(!l){var C=h(c(w),8,-1);return b(p,C)>-1?C:C==="Object"&&function(k){var N=!1;return _(v,function(E,S){if(!N)try{E(k),N=h(S,1)}catch{}}),N}(w)}return x?function(k){var N=!1;return _(v,function(E,S){if(!N)try{"$"+E(k)===S&&(N=h(S,1))}catch{}}),N}(w):null}},67020:function(i,s,n){var _=n(38700),f=n(50896),o=_.instance();function m(y){this.local=this.regionalOptions[y||""]||this.regionalOptions[""]}m.prototype=new _.baseCalendar,f(m.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(y,b){if(typeof y=="string"){var v=y.match(c);return v?v[0]:""}var w=this._validateYear(y),C=y.month(),k=""+this.toChineseMonth(w,C);return b&&k.length<2&&(k="0"+k),this.isIntercalaryMonth(w,C)&&(k+="i"),k},monthNames:function(y){if(typeof y=="string"){var b=y.match(l);return b?b[0]:""}var v=this._validateYear(y),w=y.month(),C=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][this.toChineseMonth(v,w)-1];return this.isIntercalaryMonth(v,w)&&(C="闰"+C),C},monthNamesShort:function(y){if(typeof y=="string"){var b=y.match(u);return b?b[0]:""}var v=this._validateYear(y),w=y.month(),C=["一","二","三","四","五","六","七","八","九","十","十一","十二"][this.toChineseMonth(v,w)-1];return this.isIntercalaryMonth(v,w)&&(C="闰"+C),C},parseMonth:function(y,b){y=this._validateYear(y);var v,w=parseInt(b);if(isNaN(w))b[0]==="闰"&&(v=!0,b=b.substring(1)),b[b.length-1]==="月"&&(b=b.substring(0,b.length-1)),w=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(b);else{var C=b[b.length-1];v=C==="i"||C==="I"}return this.toMonthIndex(y,w,v)},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(y,b){if(y.year&&(y=y.year()),typeof y!="number"||y<1888||y>2111)throw b.replace(/\{0\}/,this.local.name);return y},toMonthIndex:function(y,b,v){var w=this.intercalaryMonth(y);if(v&&b!==w||b<1||b>12)throw _.local.invalidMonth.replace(/\{0\}/,this.local.name);return w?!v&&b<=w?b-1:b:b-1},toChineseMonth:function(y,b){y.year&&(b=(y=y.year()).month());var v=this.intercalaryMonth(y);if(b<0||b>(v?12:11))throw _.local.invalidMonth.replace(/\{0\}/,this.local.name);return v?b<v?b+1:b:b+1},intercalaryMonth:function(y){return y=this._validateYear(y),p[y-p[0]]>>13},isIntercalaryMonth:function(y,b){y.year&&(b=(y=y.year()).month());var v=this.intercalaryMonth(y);return!!v&&v===b},leapYear:function(y){return this.intercalaryMonth(y)!==0},weekOfYear:function(y,b,v){var w,C=this._validateYear(y,_.local.invalidyear),k=h[C-h[0]],N=k>>9&4095,E=k>>5&15,S=31&k;(w=o.newDate(N,E,S)).add(4-(w.dayOfWeek()||7),"d");var A=this.toJD(y,b,v)-w.toJD();return 1+Math.floor(A/7)},monthsInYear:function(y){return this.leapYear(y)?13:12},daysInMonth:function(y,b){y.year&&(b=y.month(),y=y.year()),y=this._validateYear(y);var v=p[y-p[0]];if(b>(v>>13?12:11))throw _.local.invalidMonth.replace(/\{0\}/,this.local.name);return v&1<<12-b?30:29},weekDay:function(y,b,v){return(this.dayOfWeek(y,b,v)||7)<6},toJD:function(y,b,v){var w=this._validate(y,k,v,_.local.invalidDate);y=this._validateYear(w.year()),b=w.month(),v=w.day();var C=this.isIntercalaryMonth(y,b),k=this.toChineseMonth(y,b),N=function(E,S,A,B,I){var O,T,R;if(typeof E=="object")T=E,O=S||{};else{var M;if(!(typeof E=="number"&&E>=1888&&E<=2111))throw new Error("Lunar year outside range 1888-2111");if(!(typeof S=="number"&&S>=1&&S<=12))throw new Error("Lunar month outside range 1 - 12");if(!(typeof A=="number"&&A>=1&&A<=30))throw new Error("Lunar day outside range 1 - 30");typeof B=="object"?(M=!1,O=B):(M=!!B,O={}),T={year:E,month:S,day:A,isIntercalary:M}}R=T.day-1;var P,V=p[T.year-p[0]],D=V>>13;P=D&&(T.month>D||T.isIntercalary)?T.month:T.month-1;for(var L=0;L<P;L++)R+=V&1<<12-L?30:29;var j=h[T.year-h[0]],W=new Date(j>>9&4095,(j>>5&15)-1,(31&j)+R);return O.year=W.getFullYear(),O.month=1+W.getMonth(),O.day=W.getDate(),O}(y,k,v,C);return o.toJD(N.year,N.month,N.day)},fromJD:function(y){var b=o.fromJD(y),v=function(C,k,N,E){var S,A;if(typeof C=="object")S=C,A=k||{};else{if(!(typeof C=="number"&&C>=1888&&C<=2111))throw new Error("Solar year outside range 1888-2111");if(!(typeof k=="number"&&k>=1&&k<=12))throw new Error("Solar month outside range 1 - 12");if(!(typeof N=="number"&&N>=1&&N<=31))throw new Error("Solar day outside range 1 - 31");S={year:C,month:k,day:N},A={}}var B=h[S.year-h[0]],I=S.year<<9|S.month<<5|S.day;A.year=I>=B?S.year:S.year-1,B=h[A.year-h[0]];var O,T=new Date(B>>9&4095,(B>>5&15)-1,31&B),R=new Date(S.year,S.month-1,S.day);O=Math.round((R-T)/864e5);var M,P=p[A.year-p[0]];for(M=0;M<13;M++){var V=P&1<<12-M?30:29;if(O<V)break;O-=V}var D=P>>13;return!D||M<D?(A.isIntercalary=!1,A.month=1+M):M===D?(A.isIntercalary=!0,A.month=M):(A.isIntercalary=!1,A.month=M),A.day=1+O,A}(b.year(),b.month(),b.day()),w=this.toMonthIndex(v.year,v.month,v.isIntercalary);return this.newDate(v.year,w,v.day)},fromString:function(y){var b=y.match(x),v=this._validateYear(+b[1]),w=+b[2],C=!!b[3],k=this.toMonthIndex(v,w,C),N=+b[4];return this.newDate(v,k,N)},add:function(y,b,v){var w=y.year(),C=y.month(),k=this.isIntercalaryMonth(w,C),N=this.toChineseMonth(w,C),E=Object.getPrototypeOf(m.prototype).add.call(this,y,b,v);if(v==="y"){var S=E.year(),A=E.month(),B=this.isIntercalaryMonth(S,N),I=k&&B?this.toMonthIndex(S,N,!0):this.toMonthIndex(S,N,!1);I!==A&&E.month(I)}return E}});var x=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,c=/^\d?\d[iI]?/m,l=/^闰?十?[一二三四五六七八九]?月/m,u=/^闰?十?[一二三四五六七八九]?/m;_.calendars.chinese=m;var p=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],h=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904]},89792:function(i,s,n){var _=n(38700),f=n(50896);function o(m){this.local=this.regionalOptions[m||""]||this.regionalOptions[""]}o.prototype=new _.baseCalendar,f(o.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(m){var x=this._validate(m,this.minMonth,this.minDay,_.local.invalidYear);return(m=x.year()+(x.year()<0?1:0))%4==3||m%4==-1},monthsInYear:function(m){return this._validate(m,this.minMonth,this.minDay,_.local.invalidYear||_.regionalOptions[""].invalidYear),13},weekOfYear:function(m,x,c){var l=this.newDate(m,x,c);return l.add(-l.dayOfWeek(),"d"),Math.floor((l.dayOfYear()-1)/7)+1},daysInMonth:function(m,x){var c=this._validate(m,x,this.minDay,_.local.invalidMonth);return this.daysPerMonth[c.month()-1]+(c.month()===13&&this.leapYear(c.year())?1:0)},weekDay:function(m,x,c){return(this.dayOfWeek(m,x,c)||7)<6},toJD:function(m,x,c){var l=this._validate(m,x,c,_.local.invalidDate);return(m=l.year())<0&&m++,l.day()+30*(l.month()-1)+365*(m-1)+Math.floor(m/4)+this.jdEpoch-1},fromJD:function(m){var x=Math.floor(m)+.5-this.jdEpoch,c=Math.floor((x-Math.floor((x+366)/1461))/365)+1;c<=0&&c--,x=Math.floor(m)+.5-this.newDate(c,1,1).toJD();var l=Math.floor(x/30)+1,u=x-30*(l-1)+1;return this.newDate(c,l,u)}}),_.calendars.coptic=o},55668:function(i,s,n){var _=n(38700),f=n(50896);function o(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}o.prototype=new _.baseCalendar,f(o.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(x){return this._validate(x,this.minMonth,this.minDay,_.local.invalidYear),!1},monthsInYear:function(x){return this._validate(x,this.minMonth,this.minDay,_.local.invalidYear),13},daysInYear:function(x){return this._validate(x,this.minMonth,this.minDay,_.local.invalidYear),400},weekOfYear:function(x,c,l){var u=this.newDate(x,c,l);return u.add(-u.dayOfWeek(),"d"),Math.floor((u.dayOfYear()-1)/8)+1},daysInMonth:function(x,c){var l=this._validate(x,c,this.minDay,_.local.invalidMonth);return this.daysPerMonth[l.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(x,c,l){return(this._validate(x,c,l,_.local.invalidDate).day()+1)%8},weekDay:function(x,c,l){var u=this.dayOfWeek(x,c,l);return u>=2&&u<=6},extraInfo:function(x,c,l){var u=this._validate(x,c,l,_.local.invalidDate);return{century:m[Math.floor((u.year()-1)/100)+1]||""}},toJD:function(x,c,l){var u=this._validate(x,c,l,_.local.invalidDate);return x=u.year()+(u.year()<0?1:0),c=u.month(),(l=u.day())+(c>1?16:0)+(c>2?32*(c-2):0)+400*(x-1)+this.jdEpoch-1},fromJD:function(x){x=Math.floor(x+.5)-Math.floor(this.jdEpoch)-1;var c=Math.floor(x/400)+1;x-=400*(c-1),x+=x>15?16:0;var l=Math.floor(x/32)+1,u=x-32*(l-1)+1;return this.newDate(c<=0?c-1:c,l,u)}});var m={20:"Fruitbat",21:"Anchovy"};_.calendars.discworld=o},65168:function(i,s,n){var _=n(38700),f=n(50896);function o(m){this.local=this.regionalOptions[m||""]||this.regionalOptions[""]}o.prototype=new _.baseCalendar,f(o.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(m){var x=this._validate(m,this.minMonth,this.minDay,_.local.invalidYear);return(m=x.year()+(x.year()<0?1:0))%4==3||m%4==-1},monthsInYear:function(m){return this._validate(m,this.minMonth,this.minDay,_.local.invalidYear||_.regionalOptions[""].invalidYear),13},weekOfYear:function(m,x,c){var l=this.newDate(m,x,c);return l.add(-l.dayOfWeek(),"d"),Math.floor((l.dayOfYear()-1)/7)+1},daysInMonth:function(m,x){var c=this._validate(m,x,this.minDay,_.local.invalidMonth);return this.daysPerMonth[c.month()-1]+(c.month()===13&&this.leapYear(c.year())?1:0)},weekDay:function(m,x,c){return(this.dayOfWeek(m,x,c)||7)<6},toJD:function(m,x,c){var l=this._validate(m,x,c,_.local.invalidDate);return(m=l.year())<0&&m++,l.day()+30*(l.month()-1)+365*(m-1)+Math.floor(m/4)+this.jdEpoch-1},fromJD:function(m){var x=Math.floor(m)+.5-this.jdEpoch,c=Math.floor((x-Math.floor((x+366)/1461))/365)+1;c<=0&&c--,x=Math.floor(m)+.5-this.newDate(c,1,1).toJD();var l=Math.floor(x/30)+1,u=x-30*(l-1)+1;return this.newDate(c,l,u)}}),_.calendars.ethiopian=o},2084:function(i,s,n){var _=n(38700),f=n(50896);function o(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}function m(x,c){return x-c*Math.floor(x/c)}o.prototype=new _.baseCalendar,f(o.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(x){var c=this._validate(x,this.minMonth,this.minDay,_.local.invalidYear);return this._leapYear(c.year())},_leapYear:function(x){return m(7*(x=x<0?x+1:x)+1,19)<7},monthsInYear:function(x){return this._validate(x,this.minMonth,this.minDay,_.local.invalidYear),this._leapYear(x.year?x.year():x)?13:12},weekOfYear:function(x,c,l){var u=this.newDate(x,c,l);return u.add(-u.dayOfWeek(),"d"),Math.floor((u.dayOfYear()-1)/7)+1},daysInYear:function(x){return x=this._validate(x,this.minMonth,this.minDay,_.local.invalidYear).year(),this.toJD(x===-1?1:x+1,7,1)-this.toJD(x,7,1)},daysInMonth:function(x,c){return x.year&&(c=x.month(),x=x.year()),this._validate(x,c,this.minDay,_.local.invalidMonth),c===12&&this.leapYear(x)||c===8&&m(this.daysInYear(x),10)===5?30:c===9&&m(this.daysInYear(x),10)===3?29:this.daysPerMonth[c-1]},weekDay:function(x,c,l){return this.dayOfWeek(x,c,l)!==6},extraInfo:function(x,c,l){var u=this._validate(x,c,l,_.local.invalidDate);return{yearType:(this.leapYear(u)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(u)%10-3]}},toJD:function(x,c,l){var u=this._validate(x,c,l,_.local.invalidDate);x=u.year(),c=u.month(),l=u.day();var p=x<=0?x+1:x,h=this.jdEpoch+this._delay1(p)+this._delay2(p)+l+1;if(c<7){for(var y=7;y<=this.monthsInYear(x);y++)h+=this.daysInMonth(x,y);for(y=1;y<c;y++)h+=this.daysInMonth(x,y)}else for(y=7;y<c;y++)h+=this.daysInMonth(x,y);return h},_delay1:function(x){var c=Math.floor((235*x-234)/19),l=12084+13753*c,u=29*c+Math.floor(l/25920);return m(3*(u+1),7)<3&&u++,u},_delay2:function(x){var c=this._delay1(x-1),l=this._delay1(x);return this._delay1(x+1)-l==356?2:l-c==382?1:0},fromJD:function(x){x=Math.floor(x)+.5;for(var c=Math.floor(98496*(x-this.jdEpoch)/35975351)-1;x>=this.toJD(c===-1?1:c+1,7,1);)c++;for(var l=x<this.toJD(c,1,1)?7:1;x>this.toJD(c,l,this.daysInMonth(c,l));)l++;var u=x-this.toJD(c,l,1)+1;return this.newDate(c,l,u)}}),_.calendars.hebrew=o},26368:function(i,s,n){var _=n(38700),f=n(50896);function o(m){this.local=this.regionalOptions[m||""]||this.regionalOptions[""]}o.prototype=new _.baseCalendar,f(o.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(m){return(11*this._validate(m,this.minMonth,this.minDay,_.local.invalidYear).year()+14)%30<11},weekOfYear:function(m,x,c){var l=this.newDate(m,x,c);return l.add(-l.dayOfWeek(),"d"),Math.floor((l.dayOfYear()-1)/7)+1},daysInYear:function(m){return this.leapYear(m)?355:354},daysInMonth:function(m,x){var c=this._validate(m,x,this.minDay,_.local.invalidMonth);return this.daysPerMonth[c.month()-1]+(c.month()===12&&this.leapYear(c.year())?1:0)},weekDay:function(m,x,c){return this.dayOfWeek(m,x,c)!==5},toJD:function(m,x,c){var l=this._validate(m,x,c,_.local.invalidDate);return m=l.year(),x=l.month(),m=m<=0?m+1:m,(c=l.day())+Math.ceil(29.5*(x-1))+354*(m-1)+Math.floor((3+11*m)/30)+this.jdEpoch-1},fromJD:function(m){m=Math.floor(m)+.5;var x=Math.floor((30*(m-this.jdEpoch)+10646)/10631);x=x<=0?x-1:x;var c=Math.min(12,Math.ceil((m-29-this.toJD(x,1,1))/29.5)+1),l=m-this.toJD(x,c,1)+1;return this.newDate(x,c,l)}}),_.calendars.islamic=o},24747:function(i,s,n){var _=n(38700),f=n(50896);function o(m){this.local=this.regionalOptions[m||""]||this.regionalOptions[""]}o.prototype=new _.baseCalendar,f(o.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(m){var x=this._validate(m,this.minMonth,this.minDay,_.local.invalidYear);return(m=x.year()<0?x.year()+1:x.year())%4==0},weekOfYear:function(m,x,c){var l=this.newDate(m,x,c);return l.add(4-(l.dayOfWeek()||7),"d"),Math.floor((l.dayOfYear()-1)/7)+1},daysInMonth:function(m,x){var c=this._validate(m,x,this.minDay,_.local.invalidMonth);return this.daysPerMonth[c.month()-1]+(c.month()===2&&this.leapYear(c.year())?1:0)},weekDay:function(m,x,c){return(this.dayOfWeek(m,x,c)||7)<6},toJD:function(m,x,c){var l=this._validate(m,x,c,_.local.invalidDate);return m=l.year(),x=l.month(),c=l.day(),m<0&&m++,x<=2&&(m--,x+=12),Math.floor(365.25*(m+4716))+Math.floor(30.6001*(x+1))+c-1524.5},fromJD:function(m){var x=Math.floor(m+.5)+1524,c=Math.floor((x-122.1)/365.25),l=Math.floor(365.25*c),u=Math.floor((x-l)/30.6001),p=u-Math.floor(u<14?1:13),h=c-Math.floor(p>2?4716:4715),y=x-l-Math.floor(30.6001*u);return h<=0&&h--,this.newDate(h,p,y)}}),_.calendars.julian=o},65616:function(i,s,n){var _=n(38700),f=n(50896);function o(c){this.local=this.regionalOptions[c||""]||this.regionalOptions[""]}function m(c,l){return c-l*Math.floor(c/l)}function x(c,l){return m(c-1,l)+1}o.prototype=new _.baseCalendar,f(o.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(c){return this._validate(c,this.minMonth,this.minDay,_.local.invalidYear),!1},formatYear:function(c){c=this._validate(c,this.minMonth,this.minDay,_.local.invalidYear).year();var l=Math.floor(c/400);return c%=400,c+=c<0?400:0,l+"."+Math.floor(c/20)+"."+c%20},forYear:function(c){if((c=c.split(".")).length<3)throw"Invalid Mayan year";for(var l=0,u=0;u<c.length;u++){var p=parseInt(c[u],10);if(Math.abs(p)>19||u>0&&p<0)throw"Invalid Mayan year";l=20*l+p}return l},monthsInYear:function(c){return this._validate(c,this.minMonth,this.minDay,_.local.invalidYear),18},weekOfYear:function(c,l,u){return this._validate(c,l,u,_.local.invalidDate),0},daysInYear:function(c){return this._validate(c,this.minMonth,this.minDay,_.local.invalidYear),360},daysInMonth:function(c,l){return this._validate(c,l,this.minDay,_.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(c,l,u){return this._validate(c,l,u,_.local.invalidDate).day()},weekDay:function(c,l,u){return this._validate(c,l,u,_.local.invalidDate),!0},extraInfo:function(c,l,u){var p=this._validate(c,l,u,_.local.invalidDate).toJD(),h=this._toHaab(p),y=this._toTzolkin(p);return{haabMonthName:this.local.haabMonths[h[0]-1],haabMonth:h[0],haabDay:h[1],tzolkinDayName:this.local.tzolkinMonths[y[0]-1],tzolkinDay:y[0],tzolkinTrecena:y[1]}},_toHaab:function(c){var l=m(8+(c-=this.jdEpoch)+340,365);return[Math.floor(l/20)+1,m(l,20)]},_toTzolkin:function(c){return[x(20+(c-=this.jdEpoch),20),x(c+4,13)]},toJD:function(c,l,u){var p=this._validate(c,l,u,_.local.invalidDate);return p.day()+20*p.month()+360*p.year()+this.jdEpoch},fromJD:function(c){c=Math.floor(c)+.5-this.jdEpoch;var l=Math.floor(c/360);c%=360,c+=c<0?360:0;var u=Math.floor(c/20),p=c%20;return this.newDate(l,u,p)}}),_.calendars.mayan=o},30632:function(i,s,n){var _=n(38700),f=n(50896);function o(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}o.prototype=new _.baseCalendar;var m=_.instance("gregorian");f(o.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(x){var c=this._validate(x,this.minMonth,this.minDay,_.local.invalidYear||_.regionalOptions[""].invalidYear);return m.leapYear(c.year()+(c.year()<1?1:0)+1469)},weekOfYear:function(x,c,l){var u=this.newDate(x,c,l);return u.add(1-(u.dayOfWeek()||7),"d"),Math.floor((u.dayOfYear()-1)/7)+1},daysInMonth:function(x,c){var l=this._validate(x,c,this.minDay,_.local.invalidMonth);return this.daysPerMonth[l.month()-1]+(l.month()===12&&this.leapYear(l.year())?1:0)},weekDay:function(x,c,l){return(this.dayOfWeek(x,c,l)||7)<6},toJD:function(x,c,l){var u=this._validate(x,c,l,_.local.invalidMonth);(x=u.year())<0&&x++;for(var p=u.day(),h=1;h<u.month();h++)p+=this.daysPerMonth[h-1];return p+m.toJD(x+1468,3,13)},fromJD:function(x){x=Math.floor(x+.5);for(var c=Math.floor((x-(this.jdEpoch-1))/366);x>=this.toJD(c+1,1,1);)c++;for(var l=x-Math.floor(this.toJD(c,1,1)+.5)+1,u=1;l>this.daysInMonth(c,u);)l-=this.daysInMonth(c,u),u++;return this.newDate(c,u,l)}}),_.calendars.nanakshahi=o},73040:function(i,s,n){var _=n(38700),f=n(50896);function o(m){this.local=this.regionalOptions[m||""]||this.regionalOptions[""]}o.prototype=new _.baseCalendar,f(o.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(m){return this.daysInYear(m)!==this.daysPerYear},weekOfYear:function(m,x,c){var l=this.newDate(m,x,c);return l.add(-l.dayOfWeek(),"d"),Math.floor((l.dayOfYear()-1)/7)+1},daysInYear:function(m){if(m=this._validate(m,this.minMonth,this.minDay,_.local.invalidYear).year(),this.NEPALI_CALENDAR_DATA[m]===void 0)return this.daysPerYear;for(var x=0,c=this.minMonth;c<=12;c++)x+=this.NEPALI_CALENDAR_DATA[m][c];return x},daysInMonth:function(m,x){return m.year&&(x=m.month(),m=m.year()),this._validate(m,x,this.minDay,_.local.invalidMonth),this.NEPALI_CALENDAR_DATA[m]===void 0?this.daysPerMonth[x-1]:this.NEPALI_CALENDAR_DATA[m][x]},weekDay:function(m,x,c){return this.dayOfWeek(m,x,c)!==6},toJD:function(m,x,c){var l=this._validate(m,x,c,_.local.invalidDate);m=l.year(),x=l.month(),c=l.day();var u=_.instance(),p=0,h=x,y=m;this._createMissingCalendarData(m);var b=m-(h>9||h===9&&c>=this.NEPALI_CALENDAR_DATA[y][0]?56:57);for(x!==9&&(p=c,h--);h!==9;)h<=0&&(h=12,y--),p+=this.NEPALI_CALENDAR_DATA[y][h],h--;return x===9?(p+=c-this.NEPALI_CALENDAR_DATA[y][0])<0&&(p+=u.daysInYear(b)):p+=this.NEPALI_CALENDAR_DATA[y][9]-this.NEPALI_CALENDAR_DATA[y][0],u.newDate(b,1,1).add(p,"d").toJD()},fromJD:function(m){var x=_.instance().fromJD(m),c=x.year(),l=x.dayOfYear(),u=c+56;this._createMissingCalendarData(u);for(var p=9,h=this.NEPALI_CALENDAR_DATA[u][0],y=this.NEPALI_CALENDAR_DATA[u][p]-h+1;l>y;)++p>12&&(p=1,u++),y+=this.NEPALI_CALENDAR_DATA[u][p];var b=this.NEPALI_CALENDAR_DATA[u][p]-(y-l);return this.newDate(u,p,b)},_createMissingCalendarData:function(m){var x=this.daysPerMonth.slice(0);x.unshift(17);for(var c=m-1;c<m+2;c++)this.NEPALI_CALENDAR_DATA[c]===void 0&&(this.NEPALI_CALENDAR_DATA[c]=x)},NEPALI_CALENDAR_DATA:{1970:[18,31,31,32,31,31,31,30,29,30,29,30,30],1971:[18,31,31,32,31,32,30,30,29,30,29,30,30],1972:[17,31,32,31,32,31,30,30,30,29,29,30,30],1973:[19,30,32,31,32,31,30,30,30,29,30,29,31],1974:[19,31,31,32,30,31,31,30,29,30,29,30,30],1975:[18,31,31,32,32,30,31,30,29,30,29,30,30],1976:[17,31,32,31,32,31,30,30,30,29,29,30,31],1977:[18,31,32,31,32,31,31,29,30,29,30,29,31],1978:[18,31,31,32,31,31,31,30,29,30,29,30,30],1979:[18,31,31,32,32,31,30,30,29,30,29,30,30],1980:[17,31,32,31,32,31,30,30,30,29,29,30,31],1981:[18,31,31,31,32,31,31,29,30,30,29,30,30],1982:[18,31,31,32,31,31,31,30,29,30,29,30,30],1983:[18,31,31,32,32,31,30,30,29,30,29,30,30],1984:[17,31,32,31,32,31,30,30,30,29,29,30,31],1985:[18,31,31,31,32,31,31,29,30,30,29,30,30],1986:[18,31,31,32,31,31,31,30,29,30,29,30,30],1987:[18,31,32,31,32,31,30,30,29,30,29,30,30],1988:[17,31,32,31,32,31,30,30,30,29,29,30,31],1989:[18,31,31,31,32,31,31,30,29,30,29,30,30],1990:[18,31,31,32,31,31,31,30,29,30,29,30,30],1991:[18,31,32,31,32,31,30,30,29,30,29,30,30],1992:[17,31,32,31,32,31,30,30,30,29,30,29,31],1993:[18,31,31,31,32,31,31,30,29,30,29,30,30],1994:[18,31,31,32,31,31,31,30,29,30,29,30,30],1995:[17,31,32,31,32,31,30,30,30,29,29,30,30],1996:[17,31,32,31,32,31,30,30,30,29,30,29,31],1997:[18,31,31,32,31,31,31,30,29,30,29,30,30],1998:[18,31,31,32,31,31,31,30,29,30,29,30,30],1999:[17,31,32,31,32,31,30,30,30,29,29,30,31],2e3:[17,30,32,31,32,31,30,30,30,29,30,29,31],2001:[18,31,31,32,31,31,31,30,29,30,29,30,30],2002:[18,31,31,32,32,31,30,30,29,30,29,30,30],2003:[17,31,32,31,32,31,30,30,30,29,29,30,31],2004:[17,30,32,31,32,31,30,30,30,29,30,29,31],2005:[18,31,31,32,31,31,31,30,29,30,29,30,30],2006:[18,31,31,32,32,31,30,30,29,30,29,30,30],2007:[17,31,32,31,32,31,30,30,30,29,29,30,31],2008:[17,31,31,31,32,31,31,29,30,30,29,29,31],2009:[18,31,31,32,31,31,31,30,29,30,29,30,30],2010:[18,31,31,32,32,31,30,30,29,30,29,30,30],2011:[17,31,32,31,32,31,30,30,30,29,29,30,31],2012:[17,31,31,31,32,31,31,29,30,30,29,30,30],2013:[18,31,31,32,31,31,31,30,29,30,29,30,30],2014:[18,31,31,32,32,31,30,30,29,30,29,30,30],2015:[17,31,32,31,32,31,30,30,30,29,29,30,31],2016:[17,31,31,31,32,31,31,29,30,30,29,30,30],2017:[18,31,31,32,31,31,31,30,29,30,29,30,30],2018:[18,31,32,31,32,31,30,30,29,30,29,30,30],2019:[17,31,32,31,32,31,30,30,30,29,30,29,31],2020:[17,31,31,31,32,31,31,30,29,30,29,30,30],2021:[18,31,31,32,31,31,31,30,29,30,29,30,30],2022:[17,31,32,31,32,31,30,30,30,29,29,30,30],2023:[17,31,32,31,32,31,30,30,30,29,30,29,31],2024:[17,31,31,31,32,31,31,30,29,30,29,30,30],2025:[18,31,31,32,31,31,31,30,29,30,29,30,30],2026:[17,31,32,31,32,31,30,30,30,29,29,30,31],2027:[17,30,32,31,32,31,30,30,30,29,30,29,31],2028:[17,31,31,32,31,31,31,30,29,30,29,30,30],2029:[18,31,31,32,31,32,30,30,29,30,29,30,30],2030:[17,31,32,31,32,31,30,30,30,30,30,30,31],2031:[17,31,32,31,32,31,31,31,31,31,31,31,31],2032:[17,32,32,32,32,32,32,32,32,32,32,32,32],2033:[18,31,31,32,32,31,30,30,29,30,29,30,30],2034:[17,31,32,31,32,31,30,30,30,29,29,30,31],2035:[17,30,32,31,32,31,31,29,30,30,29,29,31],2036:[17,31,31,32,31,31,31,30,29,30,29,30,30],2037:[18,31,31,32,32,31,30,30,29,30,29,30,30],2038:[17,31,32,31,32,31,30,30,30,29,29,30,31],2039:[17,31,31,31,32,31,31,29,30,30,29,30,30],2040:[17,31,31,32,31,31,31,30,29,30,29,30,30],2041:[18,31,31,32,32,31,30,30,29,30,29,30,30],2042:[17,31,32,31,32,31,30,30,30,29,29,30,31],2043:[17,31,31,31,32,31,31,29,30,30,29,30,30],2044:[17,31,31,32,31,31,31,30,29,30,29,30,30],2045:[18,31,32,31,32,31,30,30,29,30,29,30,30],2046:[17,31,32,31,32,31,30,30,30,29,29,30,31],2047:[17,31,31,31,32,31,31,30,29,30,29,30,30],2048:[17,31,31,32,31,31,31,30,29,30,29,30,30],2049:[17,31,32,31,32,31,30,30,30,29,29,30,30],2050:[17,31,32,31,32,31,30,30,30,29,30,29,31],2051:[17,31,31,31,32,31,31,30,29,30,29,30,30],2052:[17,31,31,32,31,31,31,30,29,30,29,30,30],2053:[17,31,32,31,32,31,30,30,30,29,29,30,30],2054:[17,31,32,31,32,31,30,30,30,29,30,29,31],2055:[17,31,31,32,31,31,31,30,29,30,30,29,30],2056:[17,31,31,32,31,32,30,30,29,30,29,30,30],2057:[17,31,32,31,32,31,30,30,30,29,29,30,31],2058:[17,30,32,31,32,31,30,30,30,29,30,29,31],2059:[17,31,31,32,31,31,31,30,29,30,29,30,30],2060:[17,31,31,32,32,31,30,30,29,30,29,30,30],2061:[17,31,32,31,32,31,30,30,30,29,29,30,31],2062:[17,30,32,31,32,31,31,29,30,29,30,29,31],2063:[17,31,31,32,31,31,31,30,29,30,29,30,30],2064:[17,31,31,32,32,31,30,30,29,30,29,30,30],2065:[17,31,32,31,32,31,30,30,30,29,29,30,31],2066:[17,31,31,31,32,31,31,29,30,30,29,29,31],2067:[17,31,31,32,31,31,31,30,29,30,29,30,30],2068:[17,31,31,32,32,31,30,30,29,30,29,30,30],2069:[17,31,32,31,32,31,30,30,30,29,29,30,31],2070:[17,31,31,31,32,31,31,29,30,30,29,30,30],2071:[17,31,31,32,31,31,31,30,29,30,29,30,30],2072:[17,31,32,31,32,31,30,30,29,30,29,30,30],2073:[17,31,32,31,32,31,30,30,30,29,29,30,31],2074:[17,31,31,31,32,31,31,30,29,30,29,30,30],2075:[17,31,31,32,31,31,31,30,29,30,29,30,30],2076:[16,31,32,31,32,31,30,30,30,29,29,30,30],2077:[17,31,32,31,32,31,30,30,30,29,30,29,31],2078:[17,31,31,31,32,31,31,30,29,30,29,30,30],2079:[17,31,31,32,31,31,31,30,29,30,29,30,30],2080:[16,31,32,31,32,31,30,30,30,29,29,30,30],2081:[17,31,31,32,32,31,30,30,30,29,30,30,30],2082:[17,31,32,31,32,31,30,30,30,29,30,30,30],2083:[17,31,31,32,31,31,30,30,30,29,30,30,30],2084:[17,31,31,32,31,31,30,30,30,29,30,30,30],2085:[17,31,32,31,32,31,31,30,30,29,30,30,30],2086:[17,31,32,31,32,31,30,30,30,29,30,30,30],2087:[16,31,31,32,31,31,31,30,30,29,30,30,30],2088:[16,30,31,32,32,30,31,30,30,29,30,30,30],2089:[17,31,32,31,32,31,30,30,30,29,30,30,30],2090:[17,31,32,31,32,31,30,30,30,29,30,30,30],2091:[16,31,31,32,31,31,31,30,30,29,30,30,30],2092:[16,31,31,32,32,31,30,30,30,29,30,30,30],2093:[17,31,32,31,32,31,30,30,30,29,30,30,30],2094:[17,31,31,32,31,31,30,30,30,29,30,30,30],2095:[17,31,31,32,31,31,31,30,29,30,30,30,30],2096:[17,30,31,32,32,31,30,30,29,30,29,30,30],2097:[17,31,32,31,32,31,30,30,30,29,30,30,30],2098:[17,31,31,32,31,31,31,29,30,29,30,30,31],2099:[17,31,31,32,31,31,31,30,29,29,30,30,30],2100:[17,31,32,31,32,30,31,30,29,30,29,30,30]}}),_.calendars.nepali=o},1104:function(i,s,n){var _=n(38700),f=n(50896);function o(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}function m(x,c){return x-c*Math.floor(x/c)}o.prototype=new _.baseCalendar,f(o.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Day","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Day","Bah","Esf"],dayNames:["Yekshambe","Doshambe","Seshambe","Chæharshambe","Panjshambe","Jom'e","Shambe"],dayNamesShort:["Yek","Do","Se","Chæ","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(x){var c=this._validate(x,this.minMonth,this.minDay,_.local.invalidYear);return 682*((c.year()-(c.year()>0?474:473))%2820+474+38)%2816<682},weekOfYear:function(x,c,l){var u=this.newDate(x,c,l);return u.add(-(u.dayOfWeek()+1)%7,"d"),Math.floor((u.dayOfYear()-1)/7)+1},daysInMonth:function(x,c){var l=this._validate(x,c,this.minDay,_.local.invalidMonth);return this.daysPerMonth[l.month()-1]+(l.month()===12&&this.leapYear(l.year())?1:0)},weekDay:function(x,c,l){return this.dayOfWeek(x,c,l)!==5},toJD:function(x,c,l){var u=this._validate(x,c,l,_.local.invalidDate);x=u.year(),c=u.month(),l=u.day();var p=x-(x>=0?474:473),h=474+m(p,2820);return l+(c<=7?31*(c-1):30*(c-1)+6)+Math.floor((682*h-110)/2816)+365*(h-1)+1029983*Math.floor(p/2820)+this.jdEpoch-1},fromJD:function(x){var c=(x=Math.floor(x)+.5)-this.toJD(475,1,1),l=Math.floor(c/1029983),u=m(c,1029983),p=2820;if(u!==1029982){var h=Math.floor(u/366),y=m(u,366);p=Math.floor((2134*h+2816*y+2815)/1028522)+h+1}var b=p+2820*l+474;b=b<=0?b-1:b;var v=x-this.toJD(b,1,1)+1,w=v<=186?Math.ceil(v/31):Math.ceil((v-6)/30),C=x-this.toJD(b,w,1)+1;return this.newDate(b,w,C)}}),_.calendars.persian=o,_.calendars.jalali=o},51456:function(i,s,n){var _=n(38700),f=n(50896),o=_.instance();function m(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}m.prototype=new _.baseCalendar,f(m.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(x){var c=this._validate(x,this.minMonth,this.minDay,_.local.invalidYear);return x=this._t2gYear(c.year()),o.leapYear(x)},weekOfYear:function(x,c,l){var u=this._validate(x,this.minMonth,this.minDay,_.local.invalidYear);return x=this._t2gYear(u.year()),o.weekOfYear(x,u.month(),u.day())},daysInMonth:function(x,c){var l=this._validate(x,c,this.minDay,_.local.invalidMonth);return this.daysPerMonth[l.month()-1]+(l.month()===2&&this.leapYear(l.year())?1:0)},weekDay:function(x,c,l){return(this.dayOfWeek(x,c,l)||7)<6},toJD:function(x,c,l){var u=this._validate(x,c,l,_.local.invalidDate);return x=this._t2gYear(u.year()),o.toJD(x,u.month(),u.day())},fromJD:function(x){var c=o.fromJD(x),l=this._g2tYear(c.year());return this.newDate(l,c.month(),c.day())},_t2gYear:function(x){return x+this.yearsOffset+(x>=-this.yearsOffset&&x<=-1?1:0)},_g2tYear:function(x){return x-this.yearsOffset-(x>=1&&x<=this.yearsOffset?1:0)}}),_.calendars.taiwan=m},4592:function(i,s,n){var _=n(38700),f=n(50896),o=_.instance();function m(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}m.prototype=new _.baseCalendar,f(m.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(x){var c=this._validate(x,this.minMonth,this.minDay,_.local.invalidYear);return x=this._t2gYear(c.year()),o.leapYear(x)},weekOfYear:function(x,c,l){var u=this._validate(x,this.minMonth,this.minDay,_.local.invalidYear);return x=this._t2gYear(u.year()),o.weekOfYear(x,u.month(),u.day())},daysInMonth:function(x,c){var l=this._validate(x,c,this.minDay,_.local.invalidMonth);return this.daysPerMonth[l.month()-1]+(l.month()===2&&this.leapYear(l.year())?1:0)},weekDay:function(x,c,l){return(this.dayOfWeek(x,c,l)||7)<6},toJD:function(x,c,l){var u=this._validate(x,c,l,_.local.invalidDate);return x=this._t2gYear(u.year()),o.toJD(x,u.month(),u.day())},fromJD:function(x){var c=o.fromJD(x),l=this._g2tYear(c.year());return this.newDate(l,c.month(),c.day())},_t2gYear:function(x){return x-this.yearsOffset-(x>=1&&x<=this.yearsOffset?1:0)},_g2tYear:function(x){return x+this.yearsOffset+(x>=-this.yearsOffset&&x<=-1?1:0)}}),_.calendars.thai=m},45348:function(i,s,n){var _=n(38700),f=n(50896);function o(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}o.prototype=new _.baseCalendar,f(o.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Jum‘a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(x){var c=this._validate(x,this.minMonth,this.minDay,_.local.invalidYear);return this.daysInYear(c.year())===355},weekOfYear:function(x,c,l){var u=this.newDate(x,c,l);return u.add(-u.dayOfWeek(),"d"),Math.floor((u.dayOfYear()-1)/7)+1},daysInYear:function(x){for(var c=0,l=1;l<=12;l++)c+=this.daysInMonth(x,l);return c},daysInMonth:function(x,c){for(var l=this._validate(x,c,this.minDay,_.local.invalidMonth).toJD()-24e5+.5,u=0,p=0;p<m.length;p++){if(m[p]>l)return m[u]-m[u-1];u++}return 30},weekDay:function(x,c,l){return this.dayOfWeek(x,c,l)!==5},toJD:function(x,c,l){var u=this._validate(x,c,l,_.local.invalidDate),p=12*(u.year()-1)+u.month()-15292;return u.day()+m[p-1]-1+24e5-.5},fromJD:function(x){for(var c=x-24e5+.5,l=0,u=0;u<m.length&&!(m[u]>c);u++)l++;var p=l+15292,h=Math.floor((p-1)/12),y=h+1,b=p-12*h,v=c-m[l-1]+1;return this.newDate(y,b,v)},isValid:function(x,c,l){var u=_.baseCalendar.prototype.isValid.apply(this,arguments);return u&&(u=(x=x.year!=null?x.year:x)>=1276&&x<=1500),u},_validate:function(x,c,l,u){var p=_.baseCalendar.prototype._validate.apply(this,arguments);if(p.year<1276||p.year>1500)throw u.replace(/\{0\}/,this.local.name);return p}}),_.calendars.ummalqura=o;var m=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},38700:function(i,s,n){var _=n(50896);function f(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}function o(u,p,h,y){if(this._calendar=u,this._year=p,this._month=h,this._day=y,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(l.local.invalidDate||l.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function m(u,p){return"000000".substring(0,p-(u=""+u).length)+u}function x(){this.shortYearCutoff="+10"}function c(u){this.local=this.regionalOptions[u]||this.regionalOptions[""]}_(f.prototype,{instance:function(u,p){u=(u||"gregorian").toLowerCase(),p=p||"";var h=this._localCals[u+"-"+p];if(!h&&this.calendars[u]&&(h=new this.calendars[u](p),this._localCals[u+"-"+p]=h),!h)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,u);return h},newDate:function(u,p,h,y,b){return(y=(u!=null&&u.year?u.calendar():typeof y=="string"?this.instance(y,b):y)||this.instance()).newDate(u,p,h)},substituteDigits:function(u){return function(p){return(p+"").replace(/[0-9]/g,function(h){return u[h]})}},substituteChineseDigits:function(u,p){return function(h){for(var y="",b=0;h>0;){var v=h%10;y=(v===0?"":u[v]+p[b])+y,b++,h=Math.floor(h/10)}return y.indexOf(u[1]+p[1])===0&&(y=y.substr(1)),y||u[0]}}}),_(o.prototype,{newDate:function(u,p,h){return this._calendar.newDate(u??this,p,h)},year:function(u){return arguments.length===0?this._year:this.set(u,"y")},month:function(u){return arguments.length===0?this._month:this.set(u,"m")},day:function(u){return arguments.length===0?this._day:this.set(u,"d")},date:function(u,p,h){if(!this._calendar.isValid(u,p,h))throw(l.local.invalidDate||l.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=u,this._month=p,this._day=h,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(u,p){return this._calendar.add(this,u,p)},set:function(u,p){return this._calendar.set(this,u,p)},compareTo:function(u){if(this._calendar.name!==u._calendar.name)throw(l.local.differentCalendars||l.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,u._calendar.local.name);var p=this._year!==u._year?this._year-u._year:this._month!==u._month?this.monthOfYear()-u.monthOfYear():this._day-u._day;return p===0?0:p<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(u){return this._calendar.fromJD(u)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(u){return this._calendar.fromJSDate(u)},toString:function(){return(this.year()<0?"-":"")+m(Math.abs(this.year()),4)+"-"+m(this.month(),2)+"-"+m(this.day(),2)}}),_(x.prototype,{_validateLevel:0,newDate:function(u,p,h){return u==null?this.today():(u.year&&(this._validate(u,p,h,l.local.invalidDate||l.regionalOptions[""].invalidDate),h=u.day(),p=u.month(),u=u.year()),new o(this,u,p,h))},today:function(){return this.fromJSDate(new Date)},epoch:function(u){return this._validate(u,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(u){var p=this._validate(u,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear);return(p.year()<0?"-":"")+m(Math.abs(p.year()),4)},monthsInYear:function(u){return this._validate(u,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear),12},monthOfYear:function(u,p){var h=this._validate(u,p,this.minDay,l.local.invalidMonth||l.regionalOptions[""].invalidMonth);return(h.month()+this.monthsInYear(h)-this.firstMonth)%this.monthsInYear(h)+this.minMonth},fromMonthOfYear:function(u,p){var h=(p+this.firstMonth-2*this.minMonth)%this.monthsInYear(u)+this.minMonth;return this._validate(u,h,this.minDay,l.local.invalidMonth||l.regionalOptions[""].invalidMonth),h},daysInYear:function(u){var p=this._validate(u,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear);return this.leapYear(p)?366:365},dayOfYear:function(u,p,h){var y=this._validate(u,p,h,l.local.invalidDate||l.regionalOptions[""].invalidDate);return y.toJD()-this.newDate(y.year(),this.fromMonthOfYear(y.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(u,p,h){var y=this._validate(u,p,h,l.local.invalidDate||l.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(y))+2)%this.daysInWeek()},extraInfo:function(u,p,h){return this._validate(u,p,h,l.local.invalidDate||l.regionalOptions[""].invalidDate),{}},add:function(u,p,h){return this._validate(u,this.minMonth,this.minDay,l.local.invalidDate||l.regionalOptions[""].invalidDate),this._correctAdd(u,this._add(u,p,h),p,h)},_add:function(u,p,h){if(this._validateLevel++,h==="d"||h==="w"){var y=u.toJD()+p*(h==="w"?this.daysInWeek():1),b=u.calendar().fromJD(y);return this._validateLevel--,[b.year(),b.month(),b.day()]}try{var v=u.year()+(h==="y"?p:0),w=u.monthOfYear()+(h==="m"?p:0);b=u.day(),h==="y"?(u.month()!==this.fromMonthOfYear(v,w)&&(w=this.newDate(v,u.month(),this.minDay).monthOfYear()),w=Math.min(w,this.monthsInYear(v)),b=Math.min(b,this.daysInMonth(v,this.fromMonthOfYear(v,w)))):h==="m"&&(function(k){for(;w<k.minMonth;)v--,w+=k.monthsInYear(v);for(var N=k.monthsInYear(v);w>N-1+k.minMonth;)v++,w-=N,N=k.monthsInYear(v)}(this),b=Math.min(b,this.daysInMonth(v,this.fromMonthOfYear(v,w))));var C=[v,this.fromMonthOfYear(v,w),b];return this._validateLevel--,C}catch(k){throw this._validateLevel--,k}},_correctAdd:function(u,p,h,y){if(!(this.hasYearZero||y!=="y"&&y!=="m"||p[0]!==0&&u.year()>0==p[0]>0)){var b={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[y],v=h<0?-1:1;p=this._add(u,h*b[0]+v*b[1],b[2])}return u.date(p[0],p[1],p[2])},set:function(u,p,h){this._validate(u,this.minMonth,this.minDay,l.local.invalidDate||l.regionalOptions[""].invalidDate);var y=h==="y"?p:u.year(),b=h==="m"?p:u.month(),v=h==="d"?p:u.day();return h!=="y"&&h!=="m"||(v=Math.min(v,this.daysInMonth(y,b))),u.date(y,b,v)},isValid:function(u,p,h){this._validateLevel++;var y=this.hasYearZero||u!==0;if(y){var b=this.newDate(u,p,this.minDay);y=p>=this.minMonth&&p-this.minMonth<this.monthsInYear(b)&&h>=this.minDay&&h-this.minDay<this.daysInMonth(b)}return this._validateLevel--,y},toJSDate:function(u,p,h){var y=this._validate(u,p,h,l.local.invalidDate||l.regionalOptions[""].invalidDate);return l.instance().fromJD(this.toJD(y)).toJSDate()},fromJSDate:function(u){return this.fromJD(l.instance().fromJSDate(u).toJD())},_validate:function(u,p,h,y){if(u.year){if(this._validateLevel===0&&this.name!==u.calendar().name)throw(l.local.differentCalendars||l.regionalOptions[""].differentCalendars).replace(/\{0\}/,this.local.name).replace(/\{1\}/,u.calendar().local.name);return u}try{if(this._validateLevel++,this._validateLevel===1&&!this.isValid(u,p,h))throw y.replace(/\{0\}/,this.local.name);var b=this.newDate(u,p,h);return this._validateLevel--,b}catch(v){throw this._validateLevel--,v}}}),c.prototype=new x,_(c.prototype,{name:"Gregorian",jdEpoch:17214255e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Gregorian",epochs:["BCE","CE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(u){var p=this._validate(u,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear);return(u=p.year()+(p.year()<0?1:0))%4==0&&(u%100!=0||u%400==0)},weekOfYear:function(u,p,h){var y=this.newDate(u,p,h);return y.add(4-(y.dayOfWeek()||7),"d"),Math.floor((y.dayOfYear()-1)/7)+1},daysInMonth:function(u,p){var h=this._validate(u,p,this.minDay,l.local.invalidMonth||l.regionalOptions[""].invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===2&&this.leapYear(h.year())?1:0)},weekDay:function(u,p,h){return(this.dayOfWeek(u,p,h)||7)<6},toJD:function(u,p,h){var y=this._validate(u,p,h,l.local.invalidDate||l.regionalOptions[""].invalidDate);u=y.year(),p=y.month(),h=y.day(),u<0&&u++,p<3&&(p+=12,u--);var b=Math.floor(u/100),v=2-b+Math.floor(b/4);return Math.floor(365.25*(u+4716))+Math.floor(30.6001*(p+1))+h+v-1524.5},fromJD:function(u){var p=Math.floor(u+.5),h=Math.floor((p-186721625e-2)/36524.25),y=1524+(h=p+1+h-Math.floor(h/4)),b=Math.floor((y-122.1)/365.25),v=Math.floor(365.25*b),w=Math.floor((y-v)/30.6001),C=y-v-Math.floor(30.6001*w),k=w-(w>13.5?13:1),N=b-(k>2.5?4716:4715);return N<=0&&N--,this.newDate(N,k,C)},toJSDate:function(u,p,h){var y=this._validate(u,p,h,l.local.invalidDate||l.regionalOptions[""].invalidDate),b=new Date(y.year(),y.month()-1,y.day());return b.setHours(0),b.setMinutes(0),b.setSeconds(0),b.setMilliseconds(0),b.setHours(b.getHours()>12?b.getHours()+2:0),b},fromJSDate:function(u){return this.newDate(u.getFullYear(),u.getMonth()+1,u.getDate())}});var l=i.exports=new f;l.cdate=o,l.baseCalendar=x,l.calendars.gregorian=c},15168:function(i,s,n){var _=n(50896),f=n(38700);_(f.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),f.local=f.regionalOptions[""],_(f.cdate.prototype,{formatDate:function(o,m){return typeof o!="string"&&(m=o,o=""),this._calendar.formatDate(o||"",this,m)}}),_(f.baseCalendar.prototype,{UNIX_EPOCH:f.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:f.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(o,m,x){if(typeof o!="string"&&(x=m,m=o,o=""),!m)return"";if(m.calendar()!==this)throw f.local.invalidFormat||f.regionalOptions[""].invalidFormat;o=o||this.local.dateFormat;for(var c,l,u,p=(x=x||{}).dayNamesShort||this.local.dayNamesShort,h=x.dayNames||this.local.dayNames,y=x.monthNumbers||this.local.monthNumbers,b=x.monthNamesShort||this.local.monthNamesShort,v=x.monthNames||this.local.monthNames,w=(x.calculateWeek||this.local.calculateWeek,function(T,R){for(var M=1;O+M<o.length&&o.charAt(O+M)===T;)M++;return O+=M-1,Math.floor(M/(R||1))>1}),C=function(T,R,M,P){var V=""+R;if(w(T,P))for(;V.length<M;)V="0"+V;return V},k=this,N=function(T){return typeof y=="function"?y.call(k,T,w("m")):A(C("m",T.month(),2))},E=function(T,R){return R?typeof v=="function"?v.call(k,T):v[T.month()-k.minMonth]:typeof b=="function"?b.call(k,T):b[T.month()-k.minMonth]},S=this.local.digits,A=function(T){return x.localNumbers&&S?S(T):T},B="",I=!1,O=0;O<o.length;O++)if(I)o.charAt(O)!=="'"||w("'")?B+=o.charAt(O):I=!1;else switch(o.charAt(O)){case"d":B+=A(C("d",m.day(),2));break;case"D":B+=(c=m.dayOfWeek(),l=p,u=h,w("D")?u[c]:l[c]);break;case"o":B+=C("o",m.dayOfYear(),3);break;case"w":B+=C("w",m.weekOfYear(),2);break;case"m":B+=N(m);break;case"M":B+=E(m,w("M"));break;case"y":B+=w("y",2)?m.year():(m.year()%100<10?"0":"")+m.year()%100;break;case"Y":w("Y",2),B+=m.formatYear();break;case"J":B+=m.toJD();break;case"@":B+=(m.toJD()-this.UNIX_EPOCH)*this.SECS_PER_DAY;break;case"!":B+=(m.toJD()-this.TICKS_EPOCH)*this.TICKS_PER_DAY;break;case"'":w("'")?B+="'":I=!0;break;default:B+=o.charAt(O)}return B},parseDate:function(o,m,x){if(m==null)throw f.local.invalidArguments||f.regionalOptions[""].invalidArguments;if((m=typeof m=="object"?m.toString():m+"")==="")return null;o=o||this.local.dateFormat;var c=(x=x||{}).shortYearCutoff||this.shortYearCutoff;c=typeof c!="string"?c:this.today().year()%100+parseInt(c,10);for(var l=x.dayNamesShort||this.local.dayNamesShort,u=x.dayNames||this.local.dayNames,p=x.parseMonth||this.local.parseMonth,h=x.monthNumbers||this.local.monthNumbers,y=x.monthNamesShort||this.local.monthNamesShort,b=x.monthNames||this.local.monthNames,v=-1,w=-1,C=-1,k=-1,N=-1,E=!1,S=!1,A=function(j,W){for(var $=1;V+$<o.length&&o.charAt(V+$)===j;)$++;return V+=$-1,Math.floor($/(W||1))>1},B=function(j,W){var $=A(j,W),G=[2,3,$?4:2,$?4:2,10,11,20]["oyYJ@!".indexOf(j)+1],X=new RegExp("^-?\\d{1,"+G+"}"),H=m.substring(P).match(X);if(!H)throw(f.local.missingNumberAt||f.regionalOptions[""].missingNumberAt).replace(/\{0\}/,P);return P+=H[0].length,parseInt(H[0],10)},I=this,O=function(){if(typeof h=="function"){A("m");var j=h.call(I,m.substring(P));return P+=j.length,j}return B("m")},T=function(j,W,$,G){for(var X=A(j,G)?$:W,H=0;H<X.length;H++)if(m.substr(P,X[H].length).toLowerCase()===X[H].toLowerCase())return P+=X[H].length,H+I.minMonth;throw(f.local.unknownNameAt||f.regionalOptions[""].unknownNameAt).replace(/\{0\}/,P)},R=function(){if(typeof b=="function"){var j=A("M")?b.call(I,m.substring(P)):y.call(I,m.substring(P));return P+=j.length,j}return T("M",y,b)},M=function(){if(m.charAt(P)!==o.charAt(V))throw(f.local.unexpectedLiteralAt||f.regionalOptions[""].unexpectedLiteralAt).replace(/\{0\}/,P);P++},P=0,V=0;V<o.length;V++)if(S)o.charAt(V)!=="'"||A("'")?M():S=!1;else switch(o.charAt(V)){case"d":k=B("d");break;case"D":T("D",l,u);break;case"o":N=B("o");break;case"w":B("w");break;case"m":C=O();break;case"M":C=R();break;case"y":var D=V;E=!A("y",2),V=D,w=B("y",2);break;case"Y":w=B("Y",2);break;case"J":v=B("J")+.5,m.charAt(P)==="."&&(P++,B("J"));break;case"@":v=B("@")/this.SECS_PER_DAY+this.UNIX_EPOCH;break;case"!":v=B("!")/this.TICKS_PER_DAY+this.TICKS_EPOCH;break;case"*":P=m.length;break;case"'":A("'")?M():S=!0;break;default:M()}if(P<m.length)throw f.local.unexpectedText||f.regionalOptions[""].unexpectedText;if(w===-1?w=this.today().year():w<100&&E&&(w+=c===-1?1900:this.today().year()-this.today().year()%100-(w<=c?0:100)),typeof C=="string"&&(C=p.call(this,w,C)),N>-1){C=1,k=N;for(var L=this.daysInMonth(w,C);k>L;L=this.daysInMonth(w,C))C++,k-=L}return v>-1?this.fromJD(v):this.newDate(w,C,k)},determineDate:function(o,m,x,c,l){x&&typeof x!="object"&&(l=c,c=x,x=null),typeof c!="string"&&(l=c,c="");var u=this;return m=m?m.newDate():null,o==null?m:typeof o=="string"?function(p){try{return u.parseDate(c,p,l)}catch{}for(var h=((p=p.toLowerCase()).match(/^c/)&&x?x.newDate():null)||u.today(),y=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,b=y.exec(p);b;)h.add(parseInt(b[1],10),b[2]||"d"),b=y.exec(p);return h}(o):typeof o=="number"?isNaN(o)||o===1/0||o===-1/0?m:u.today().add(o,"d"):u.newDate(o)}})},21576:function(){},19768:function(){},63436:function(i,s,n){var _=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],f=typeof globalThis>"u"?n.g:globalThis;i.exports=function(){for(var o=[],m=0;m<_.length;m++)typeof f[_[m]]=="function"&&(o[o.length]=_[m]);return o}},67756:function(i,s,n){function _(ge,ve,we){ge.prototype=ve.prototype=we,we.constructor=ge}function f(ge,ve){var we=Object.create(ge.prototype);for(var Ee in ve)we[Ee]=ve[Ee];return we}function o(){}n.d(s,{qy:function(){return fe},Gz:function(){return ie}});var m=.7,x=1/m,c="\\s*([+-]?\\d+)\\s*",l="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",p=/^#([0-9a-f]{3,8})$/,h=new RegExp("^rgb\\(".concat(c,",").concat(c,",").concat(c,"\\)$")),y=new RegExp("^rgb\\(".concat(u,",").concat(u,",").concat(u,"\\)$")),b=new RegExp("^rgba\\(".concat(c,",").concat(c,",").concat(c,",").concat(l,"\\)$")),v=new RegExp("^rgba\\(".concat(u,",").concat(u,",").concat(u,",").concat(l,"\\)$")),w=new RegExp("^hsl\\(".concat(l,",").concat(u,",").concat(u,"\\)$")),C=new RegExp("^hsla\\(".concat(l,",").concat(u,",").concat(u,",").concat(l,"\\)$")),k={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function N(){return this.rgb().formatHex()}function E(){return this.rgb().formatRgb()}function S(ge){var ve,we;return ge=(ge+"").trim().toLowerCase(),(ve=p.exec(ge))?(we=ve[1].length,ve=parseInt(ve[1],16),we===6?A(ve):we===3?new O(ve>>8&15|ve>>4&240,ve>>4&15|240&ve,(15&ve)<<4|15&ve,1):we===8?B(ve>>24&255,ve>>16&255,ve>>8&255,(255&ve)/255):we===4?B(ve>>12&15|ve>>8&240,ve>>8&15|ve>>4&240,ve>>4&15|240&ve,((15&ve)<<4|15&ve)/255):null):(ve=h.exec(ge))?new O(ve[1],ve[2],ve[3],1):(ve=y.exec(ge))?new O(255*ve[1]/100,255*ve[2]/100,255*ve[3]/100,1):(ve=b.exec(ge))?B(ve[1],ve[2],ve[3],ve[4]):(ve=v.exec(ge))?B(255*ve[1]/100,255*ve[2]/100,255*ve[3]/100,ve[4]):(ve=w.exec(ge))?D(ve[1],ve[2]/100,ve[3]/100,1):(ve=C.exec(ge))?D(ve[1],ve[2]/100,ve[3]/100,ve[4]):k.hasOwnProperty(ge)?A(k[ge]):ge==="transparent"?new O(NaN,NaN,NaN,0):null}function A(ge){return new O(ge>>16&255,ge>>8&255,255&ge,1)}function B(ge,ve,we,Ee){return Ee<=0&&(ge=ve=we=NaN),new O(ge,ve,we,Ee)}function I(ge,ve,we,Ee){return arguments.length===1?((ke=ge)instanceof o||(ke=S(ke)),ke?new O((ke=ke.rgb()).r,ke.g,ke.b,ke.opacity):new O):new O(ge,ve,we,Ee??1);var ke}function O(ge,ve,we,Ee){this.r=+ge,this.g=+ve,this.b=+we,this.opacity=+Ee}function T(){return"#".concat(V(this.r)).concat(V(this.g)).concat(V(this.b))}function R(){var ge=M(this.opacity);return"".concat(ge===1?"rgb(":"rgba(").concat(P(this.r),", ").concat(P(this.g),", ").concat(P(this.b)).concat(ge===1?")":", ".concat(ge,")"))}function M(ge){return isNaN(ge)?1:Math.max(0,Math.min(1,ge))}function P(ge){return Math.max(0,Math.min(255,Math.round(ge)||0))}function V(ge){return((ge=P(ge))<16?"0":"")+ge.toString(16)}function D(ge,ve,we,Ee){return Ee<=0?ge=ve=we=NaN:we<=0||we>=1?ge=ve=NaN:ve<=0&&(ge=NaN),new j(ge,ve,we,Ee)}function L(ge){if(ge instanceof j)return new j(ge.h,ge.s,ge.l,ge.opacity);if(ge instanceof o||(ge=S(ge)),!ge)return new j;if(ge instanceof j)return ge;var ve=(ge=ge.rgb()).r/255,we=ge.g/255,Ee=ge.b/255,ke=Math.min(ve,we,Ee),xe=Math.max(ve,we,Ee),Ae=NaN,Se=xe-ke,he=(xe+ke)/2;return Se?(Ae=ve===xe?(we-Ee)/Se+6*(we<Ee):we===xe?(Ee-ve)/Se+2:(ve-we)/Se+4,Se/=he<.5?xe+ke:2-xe-ke,Ae*=60):Se=he>0&&he<1?0:Ae,new j(Ae,Se,he,ge.opacity)}function j(ge,ve,we,Ee){this.h=+ge,this.s=+ve,this.l=+we,this.opacity=+Ee}function W(ge){return(ge=(ge||0)%360)<0?ge+360:ge}function $(ge){return Math.max(0,Math.min(1,ge||0))}function G(ge,ve,we){return 255*(ge<60?ve+(we-ve)*ge/60:ge<180?we:ge<240?ve+(we-ve)*(240-ge)/60:ve)}_(o,S,{copy:function(ge){return Object.assign(new this.constructor,this,ge)},displayable:function(){return this.rgb().displayable()},hex:N,formatHex:N,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return L(this).formatHsl()},formatRgb:E,toString:E}),_(O,I,f(o,{brighter:function(ge){return ge=ge==null?x:Math.pow(x,ge),new O(this.r*ge,this.g*ge,this.b*ge,this.opacity)},darker:function(ge){return ge=ge==null?m:Math.pow(m,ge),new O(this.r*ge,this.g*ge,this.b*ge,this.opacity)},rgb:function(){return this},clamp:function(){return new O(P(this.r),P(this.g),P(this.b),M(this.opacity))},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:T,formatHex:T,formatHex8:function(){return"#".concat(V(this.r)).concat(V(this.g)).concat(V(this.b)).concat(V(255*(isNaN(this.opacity)?1:this.opacity)))},formatRgb:R,toString:R})),_(j,function(ge,ve,we,Ee){return arguments.length===1?L(ge):new j(ge,ve,we,Ee??1)},f(o,{brighter:function(ge){return ge=ge==null?x:Math.pow(x,ge),new j(this.h,this.s,this.l*ge,this.opacity)},darker:function(ge){return ge=ge==null?m:Math.pow(m,ge),new j(this.h,this.s,this.l*ge,this.opacity)},rgb:function(){var ge=this.h%360+360*(this.h<0),ve=isNaN(ge)||isNaN(this.s)?0:this.s,we=this.l,Ee=we+(we<.5?we:1-we)*ve,ke=2*we-Ee;return new O(G(ge>=240?ge-240:ge+120,ke,Ee),G(ge,ke,Ee),G(ge<120?ge+240:ge-120,ke,Ee),this.opacity)},clamp:function(){return new j(W(this.h),$(this.s),$(this.l),M(this.opacity))},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var ge=M(this.opacity);return"".concat(ge===1?"hsl(":"hsla(").concat(W(this.h),", ").concat(100*$(this.s),"%, ").concat(100*$(this.l),"%").concat(ge===1?")":", ".concat(ge,")"))}}));var X=function(ge){return function(){return ge}};function H(ge,ve){var we=ve-ge;return we?function(Ee,ke){return function(xe){return Ee+xe*ke}}(ge,we):X(isNaN(ge)?ve:ge)}var Y=function ge(ve){var we=function(ke){return(ke=+ke)==1?H:function(xe,Ae){return Ae-xe?function(Se,he,pe){return Se=Math.pow(Se,pe),he=Math.pow(he,pe)-Se,pe=1/pe,function(_e){return Math.pow(Se+_e*he,pe)}}(xe,Ae,ke):X(isNaN(xe)?Ae:xe)}}(ve);function Ee(ke,xe){var Ae=we((ke=I(ke)).r,(xe=I(xe)).r),Se=we(ke.g,xe.g),he=we(ke.b,xe.b),pe=H(ke.opacity,xe.opacity);return function(_e){return ke.r=Ae(_e),ke.g=Se(_e),ke.b=he(_e),ke.opacity=pe(_e),ke+""}}return Ee.gamma=ge,Ee}(1);function Z(ge,ve){var we,Ee=ve?ve.length:0,ke=ge?Math.min(Ee,ge.length):0,xe=new Array(ke),Ae=new Array(Ee);for(we=0;we<ke;++we)xe[we]=fe(ge[we],ve[we]);for(;we<Ee;++we)Ae[we]=ve[we];return function(Se){for(we=0;we<ke;++we)Ae[we]=xe[we](Se);return Ae}}function le(ge,ve){var we=new Date;return ge=+ge,ve=+ve,function(Ee){return we.setTime(ge*(1-Ee)+ve*Ee),we}}function ie(ge,ve){return ge=+ge,ve=+ve,function(we){return ge*(1-we)+ve*we}}function ne(ge){return ne=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ve){return typeof ve}:function(ve){return ve&&typeof Symbol=="function"&&ve.constructor===Symbol&&ve!==Symbol.prototype?"symbol":typeof ve},ne(ge)}function re(ge,ve){var we,Ee={},ke={};for(we in ge!==null&&ne(ge)==="object"||(ge={}),ve!==null&&ne(ve)==="object"||(ve={}),ve)we in ge?Ee[we]=fe(ge[we],ve[we]):ke[we]=ve[we];return function(xe){for(we in Ee)ke[we]=Ee[we](xe);return ke}}var Q=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ee=new RegExp(Q.source,"g");function se(ge,ve){var we,Ee,ke,xe=Q.lastIndex=ee.lastIndex=0,Ae=-1,Se=[],he=[];for(ge+="",ve+="";(we=Q.exec(ge))&&(Ee=ee.exec(ve));)(ke=Ee.index)>xe&&(ke=ve.slice(xe,ke),Se[Ae]?Se[Ae]+=ke:Se[++Ae]=ke),(we=we[0])===(Ee=Ee[0])?Se[Ae]?Se[Ae]+=Ee:Se[++Ae]=Ee:(Se[++Ae]=null,he.push({i:Ae,x:ie(we,Ee)})),xe=ee.lastIndex;return xe<ve.length&&(ke=ve.slice(xe),Se[Ae]?Se[Ae]+=ke:Se[++Ae]=ke),Se.length<2?he[0]?function(pe){return function(_e){return pe(_e)+""}}(he[0].x):function(pe){return function(){return pe}}(ve):(ve=he.length,function(pe){for(var _e,Pe=0;Pe<ve;++Pe)Se[(_e=he[Pe]).i]=_e.x(pe);return Se.join("")})}function de(ge,ve){ve||(ve=[]);var we,Ee=ge?Math.min(ve.length,ge.length):0,ke=ve.slice();return function(xe){for(we=0;we<Ee;++we)ke[we]=ge[we]*(1-xe)+ve[we]*xe;return ke}}function ue(ge){return ue=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ve){return typeof ve}:function(ve){return ve&&typeof Symbol=="function"&&ve.constructor===Symbol&&ve!==Symbol.prototype?"symbol":typeof ve},ue(ge)}function fe(ge,ve){var we,Ee,ke=ue(ve);return ve==null||ke==="boolean"?X(ve):(ke==="number"?ie:ke==="string"?(we=S(ve))?(ve=we,Y):se:ve instanceof S?Y:ve instanceof Date?le:(Ee=ve,!ArrayBuffer.isView(Ee)||Ee instanceof DataView?Array.isArray(ve)?Z:typeof ve.valueOf!="function"&&typeof ve.toString!="function"||isNaN(ve)?re:ie:de))(ge,ve)}},30584:function(i){i.exports=JSON.parse('["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"]')},7294:function(i){i.exports=JSON.parse('["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]')},47916:function(i){i.exports=JSON.parse('["normal","italic","oblique"]')},2904:function(i){i.exports=JSON.parse('["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"]')},68194:function(i){i.exports=JSON.parse('["inherit","initial","unset"]')},3748:function(i){i.exports=JSON.parse('["caption","icon","menu","message-box","small-caption","status-bar"]')}},d={};function g(i){var s=d[i];if(s!==void 0)return s.exports;var n=d[i]={exports:{}};return r[i].call(n.exports,n,n.exports,g),n.exports}return g.n=function(i){var s=i&&i.__esModule?function(){return i.default}:function(){return i};return g.d(s,{a:s}),s},g.d=function(i,s){for(var n in s)g.o(s,n)&&!g.o(i,n)&&Object.defineProperty(i,n,{enumerable:!0,get:s[n]})},g.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),g.o=function(i,s){return Object.prototype.hasOwnProperty.call(i,s)},g.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},g(13792)}()})})(hz);var j6t=hz.exports;const fz=$6t(j6t),U6t={id:"main-container"},H6t={id:"surface-container"},G6t=t.createElementVNode("br",null,null,-1),mz=39,D0=76,W6t=0,gz=2,yz=4,_z=5,vz=6,bz=7,q6t=8,Y6t=9,xz=10,wz=11,kz=13,Z6t=14,X6t=15,K6t=18,Rp=19,J6t=800,Cz=300,Ez=.1208,Tz=5,Q6t=2,e8t=3,t8t=4,a8t=7,r8t=-46,Sz=100,Az=-14,n8t={__name:"CardField",props:{selected_category:{type:Number,default:31},selected_team:{type:Array,default:()=>[]},showBallPosition:{type:Boolean,default:!0},showPlayersPosition:{type:Boolean,default:!0},widthContainer:{type:Number,default:1280},dataPaintInfo:{type:Object,default:()=>{}},showTracks:{type:Boolean,default:!1},touches:{type:Number,default:1},showPlayersEndPosition:{type:Boolean,default:!1},secondStart:{type:Number,default:0},operationStart:{type:Number,default:0},secondEnd:{type:Number,default:1},operationEnd:{type:Number,default:1},inFavor:{type:Boolean,default:!0}},emits:["changelateralidad"],setup(e,{emit:a}){var r;let d=.75,g=t.ref("left");const i=a,s=t.ref(null),n=t.ref(null),_=t.ref(0),f=t.ref(null),o=new Set([583,585,587,589]),m=new Set([584,586,588,590]),x=new Set([122,128,136,142]),c=new Set([125,131,139,145]),l=new Set([124,130,138,144]),u=new Set([123,129,137,143]),p=e;let h=null;t.watch(()=>_.value,V=>{b(V),n.value.style.height=`${v(V)}px`,f.value.style.top=`${w(v(V))}px`}),t.watch(()=>p.selected_category,V=>{V==32?g.value="right":g.value="left"});function y(){h=new ResizeObserver(V=>{for(const D of V)_.value=D.contentRect.width}),h.observe(s.value)}function b(V){fz.relayout(s.value,{width:V,height:v(V)})}function v(V){return Math.round(Cz/J6t*V,0)}function w(V){return Az+(V-Sz)/(Cz-Sz)*(r8t-Az)}t.watch(()=>p.dataPaintInfo,V=>{R(V)},{deep:!0}),t.watch(()=>p.selected_team,V=>{V.data.length>0&&R(V)}),t.watch(()=>p.secondStart,V=>{R(V)});function C(V,D){let L=.01321,j=.00929,W=0,$=0,G=[];const X=D.length;let H=Math.floor(X/10);for(;W<D0;)$=D.filter(Y=>Y[0]>=W*L&&Y[0]<=(W+1)*L&&Y[1]>=V*j&&Y[1]<=(V+1)*j).map(Y=>Y[1]).length,H=H===0?1:H,G.push(parseFloat(($/H).toFixed(4))),W++;return G.reverse()}function k(V){let D=[N(D0),N(D0)],L=[],j=mz;for(;j>0&&j<=mz;)L=C(j,V),D.push(L),j--;return D.push(N(D0),N(D0)),D}function N(V){return Array.from({length:V},()=>0)}function E(V,D,L){const j=[];let W=0,$=0;j.push(V[0]);for(let G=1;G<L-1;G++){const X=[];X.push(V[G][0]);for(let H=1;H<D-1;H++)W=V[G][H-1],$=V[G][H+1],X.push(W+.5*(V[G][H]+$-W));X.push(V[G][D-1]),j.push(X)}j.push(V[L-1]);for(let G=1;G<D-1;G++)for(let X=1;X<L-1;X++)W=j[X-1][G],$=j[X+1][G],j[X][G]=W+.5*(j[X][G]+$-W);return j}function S(V){for(var D=[],L=0;L<V.length;L++)if(V[L][Rp]==0&&V[L][yz]===p.selected_category){let j=V[L][wz];D.push([V[L][xz],j])}return D}function A(V,D,L=1){let j=[],W=[];return V.forEach($=>{if($[yz]===p.selected_category){let G=V.filter(X=>$[0]===X[K6t]&&X[Rp]<=L).sort((X,H)=>X[Rp]-H[Rp]);G.length>0&&j.push(G),$[Rp]===0&&W.push([$[W6t],$[kz],$[Z6t],$[X6t]])}}),{sequences:j,main_plays:W}}function B(V,D,L,j,W){let $=.1,G=j*4,X=j*3,H=[],Y=[],Z=[],le=[],ie=[],ne=[],re=[],Q=[],ee=[],se=[],de=[],ue=[],fe=[];const ge=.7,ve="rgba(253, 101, 36, 1)",we="rgba(249, 189, 50, 1)",Ee="rgba(255, 255, 255, 1)",ke="rgba(203, 238, 107, 1)",xe="rgba(55, 181, 252, 1)",Ae="rgba(55, 252, 217, 1)",Se="rgba(195, 198, 201, 1)",he=new Map([[o,{color:ke,symbol:"circle"}],[m,{color:xe,symbol:"circle"}],[x,{color:Ae,symbol:"circle"}],[c,{color:Se,symbol:"x"}],[l,{color:ve,symbol:"square"}],[u,{color:we,symbol:"triangle-up"}]]);return V.forEach(pe=>{if(pe.length===1){if(pe[0][Rp]===0)return;let _e=pe[0][vz]*L,Pe=pe[0][bz]*G-X,Ne=j*Ez,Ie=j*$,Oe=Pe+Ne+Ie;if(Oe=Oe>=j?j-1:Oe,Y.push(_e),Z.push(Oe-ge),le.push(_e),ie.push(Oe),W===1){let Ve=pe[0][_z].split(","),De=!1;Ve=Ve.map(Number);for(const[be,Ce]of he)if(Ve.some(Me=>be.has(Me))){ne.push(Ce.color),re.push(Ce.symbol),De=!0;break}De||(ne.push(Ee),re.push("circle"))}else pe[0][gz]===D?ne.push(Ee):ne.push(ve)}else pe.forEach((_e,Pe)=>{if(_e[Rp]===0)return;let Ne=_e[vz]*L,Ie=_e[bz]*G-X,Oe=j*Ez,Ve=j*$,De=Ie+Oe+Ve;if(De=De>=j?j-1:De,Y.push(Ne),Z.push(De-ge),le.push(Ne),ie.push(De),W===1){let be=pe[0][_z].split(","),Ce=!1;be=be.map(Number);for(const[Me,$e]of he)if(be.some(ze=>Me.has(ze))){ne.push($e.color),re.push($e.symbol),Ce=!0;break}Ce||(ne.push(Ee),re.push("circle"))}else{let be=_e[q6t]*L,Ce=_e[Y6t]*G-X+Oe+Ve;Ce=Ce>=j?j-1:Ce;let Me=_e[xz]*L,$e=_e[wz]*G-X+Oe+Ve;$e=$e>=j?j-1:$e,_e[gz]===D?ne.push(Ee):ne.push(ve),se.push(Ne,be,null),de.push(De,Ce,null),Q.push(Ne,be),ee.push(De,Ce),pe.length-1===Pe&&(Q.push(Me,null),ee.push($e,null),ue.push(Me),fe.push($e))}})}),H.shadowXPoints=Y,H.shadowYPoints=Z,H.playerXPoints=le,H.playerYPoints=ie,H.playerColorPoints=ne,H.trackX=Q,H.trackY=ee,H.sprintX=se,H.sprintY=de,H.arrowX=ue,H.arrowY=fe,H.symbols=re,H}function I(V,D){return V.map((L,j)=>L.map((W,$)=>{if($===D){let[G,X,H]=W.split(/[:.]/);return parseInt(G)*60+parseInt(X)}else return W}))}function O(V,D,L,j,W=0,$){let G=[];return j.forEach(X=>{let H=W===0?parseInt(X[1])-parseInt(L):parseInt(X[1])+parseInt(L);V.filter(Y=>X[0]===Y[a8t]&&H===Y[Tz]&&D===Y[Q6t]).forEach(Y=>{let Z=Y[e8t],le=Y[t8t];le<=$&&G.push([Z,le])})}),G}function T(V){return V.flat().every(D=>D===0)}function R(V){V.data=I(V.data,kz),V.field_positions=I(V.field_positions,Tz);let D=A(V.data,d,p.touches),L=S(V.data),j=O(V.field_positions,p.selected_team,p.secondStart,D.main_plays,p.operationStart,d),W=O(V.field_positions,p.selected_team,p.secondEnd,D.main_plays,p.operationEnd,d),$=k(L),G=k(j),X=k(W),H=$[0].length,Y=$.length;$=E(E($,H,Y),H,Y),G=E(E(G,H,Y),H,Y),X=E(E(X,H,Y),H,Y),H=$[0].length,Y=$.length;let Z=B(D.sequences,p.selected_team,H,Y,p.touches);var le=[[0,"rgba(12,31,82,0)"],[.2,"rgba(14, 55, 115, 0.8)"],[.4,"rgba(33, 85, 160, 0.8)"],[.6,"rgba(16, 124, 170, 0.8)"],[.8,"rgba(32, 154, 207, 0.8)"],[1,"rgba(32, 174, 207, 0.8)"]],ie=[[0,"rgba(12,31,82,0)"],[.2,"rgba(73, 13, 67, 0.8)"],[.4,"rgba(98, 32, 91, 0.8)"],[.6,"rgba(121, 52, 114, 0.8)"],[.8,"rgba(176, 36, 121, 0.8)"],[1,"rgba(230, 49, 158, 0.8)"]],ne=[[0,"rgba(12,31,82,0)"],[.2,"rgba(94, 111, 79, 1)"],[.4,"rgba(111, 142, 28, 1)"],[.6,"rgba(142, 177, 50, 1)"],[.8,"rgba(169, 211, 57, 1)"],[1,"rgba(195, 229, 105, 1)"]],re=[{z:$,type:"heatmap",connectgaps:!0,opacity:1,colorscale:ne,autoscale:!1,showscale:!1,zsmooth:"best",showgrid:!1,showline:!1}],Q=[{z:G,type:"heatmap",connectgaps:!0,opacity:1,colorscale:le,autoscale:!1,showscale:!1,zsmooth:"best",showgrid:!1,showline:!1}],ee=[{z:X,type:"heatmap",connectgaps:!0,opacity:1,colorscale:ie,autoscale:!1,showscale:!1,zsmooth:"best",showgrid:!1,showline:!1}],se={x:Z.shadowXPoints,y:Z.shadowYPoints,mode:"markers",marker:{symbol:Z.symbols,color:"rgba(0, 0, 0, 0.5)",size:9}},de={x:Z.playerXPoints,y:Z.playerYPoints,mode:"markers",marker:{symbol:Z.symbols,color:Z.playerColorPoints,size:8}},ue={x:Z.trackX,y:Z.trackY,mode:"lines",line:{color:"rgba(255, 255, 255, 1)",width:1,dash:"2px 2px",arrowhead:"end"}},fe={x:Z.sprintX,y:Z.sprintY,mode:"lines",line:{color:"rgba(255, 255, 255, 1)",width:1}},ge={x:Z.arrowX,y:Z.arrowY,mode:"markers",marker:{symbol:"triangle-up",size:10,color:"rgba(255, 255, 255, 1)",angle:120}},ve=[];p.showTracks&&p.touches>1&&ve.push(fe,ue,ge),p.showTracks&&ve.push(se,de),p.showPlayersEndPosition&&!T(X)&&ve.push(...ee),p.showPlayersPosition&&!T(G)&&ve.push(...Q),p.showBallPosition&&!T($)&&ve.push(...re);const we=[0,H],Ee=[0,Y];r={showlegend:!1,width:_.value,height:v(_.value),xaxis:{title:"",showgrid:!1,showline:!1,zeroline:!1,showticklabels:!1,ticks:"",showbackground:!1,backgroundcolor:"transparent",range:we},yaxis:{title:"",showgrid:!1,showline:!1,zeroline:!1,showticklabels:!1,ticks:"",showbackground:!1,backgroundcolor:"transparent",range:Ee},margin:{l:0,r:0,b:0,t:5}},fz.newPlot("surface-plot-heatmap",ve,r,{displayModeBar:!1,staticPlot:!0},{responsive:!0})}const M=()=>{};function P(V){g.value=V,i("changelateralidad",g.value)}return t.onBeforeUnmount(()=>{window.removeEventListener("resize",M)}),t.onMounted(()=>{s.value&&(s.value.style.pointerEvents="none"),window.addEventListener("resize",M),y()}),(V,D)=>(t.openBlock(),t.createElementBlock("div",U6t,[t.createElementVNode("div",H6t,[p.dataPaintInfo.data.length==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.widthContainer<768?"class-not-result-field-movil":"class-not-result-field")},[e.widthContainer<768?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("No se muestran resultados debido"),G6t,t.createTextVNode(" a los filtros aplicados.")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("No se muestran resultados debido a los filtros aplicados.")],64))],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{id:"label-left-zone",style:t.normalizeStyle(t.unref(g)=="left"?"":"opacity: 0.6"),onClick:D[0]||(D[0]=L=>P("left"))},null,4),t.createElementVNode("div",{id:"label-right-zone",style:t.normalizeStyle(t.unref(g)=="right"?"":"opacity: 0.6"),onClick:D[1]||(D[1]=L=>P("right"))},null,4),t.createElementVNode("div",{ref_key:"surfacePlot",ref:s,id:"surface-plot-heatmap",class:t.normalizeClass(e.inFavor?"":"against")},null,2)])]))}},Nz="/arrowbtn.png",i8t={components:{GSCTrendMenuBall:Y5t,GSCCheckbox:df,GSCTrendPosition:D6t,CardField:n8t},props:{acronymHome:{type:String,default:""},acronymAway:{type:String,default:""},typePlay:{type:String,default:"A favor"},widthContainer:{type:Number,default:1280},touchAllData:{type:Array,default:()=>[]},playersData:{type:Object,default:()=>{}},homeTeam:{type:Number,default:0},awayTeam:{type:Number,default:0},selected_category:{type:Number,default:31},team:{type:Number,required:!0},forGame:{type:Boolean,required:!1},teamsData:{type:Object,default:()=>{}},fieldPositionsAll:{type:Array,default:()=>[]},inFavor:{type:Boolean,required:!1},isTacticVisible:{type:Boolean,required:!1}},data(){return{type:"ball",show:!1,game:62276,trajectories:[],rival:3014,totalCorners:0,typepositioning:"Posición",BallOnOff:"OFF",numberTouches:1,playersList:{},timepositioning:-1,checkedBallGo:!0,checkedHeatMap:!0,filterFieldPositions:[],timepositioningFinal:-1,arrayPlayers:{},season:1325,timepositioningend:1,zonesFilter:[],touchFilter:{},token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},watch:{touchAllData:{handler(){this.typepositioning=="Posición"?this.getDataPosition():this.getDataTrajectory()},deep:!0},zonesFilter:{handler(){this.typepositioning=="Posición"?this.getDataPosition():this.getDataTrajectory()},deep:!0},typepositioning:{handler(){this.typepositioning=="Posición"?this.getDataPosition():this.getDataTrajectory()},deep:!0},timepositioning:{handler(){this.typepositioning=="Posición"?this.getDataPosition():this.getDataTrajectory()},deep:!0},timepositioningend:{handler(){this.typepositioning=="Posición"?this.getDataPosition():this.getDataTrajectory()},deep:!0}},computed:{firstTeam(){return this.homeTeam===this.team?this.acronymHome:this.acronymAway},secondTeam(){return this.homeTeam===this.team?this.acronymAway:this.acronymHome},firstTeam1Touch(){return this.inFavor?this.homeTeam===this.team?this.acronymHome:this.acronymAway:this.homeTeam===this.team?this.acronymAway:this.acronymHome},secondTeam1Touch(){return this.inFavor?this.homeTeam===this.team?this.acronymAway:this.acronymHome:this.homeTeam===this.team?this.acronymHome:this.acronymAway},reftrendteamsTouches(){const e=this.widthContainer;return e<=480?"ref-trend-teams-touches480":e<=768?"ref-trend-teams-touches768":"ref-trend-teams-touches"},reftrendteamslocal(){const e=this.widthContainer;return e<=480?"ref-trend-teams-local480":e<=768?"ref-trend-teams-local768":"ref-trend-teams-local"},reftrendteamsrival(){return this.widthContainer<=768?"ref-trend-teams-rival768":"ref-trend-teams-rival"},reftrendteamsall(){const e=this.widthContainer;return e<=480?"ref-trend-teams-all480":e<=768?"ref-trend-teams-all768":"ref-trend-teams-all"},refpointlebeltext(){const e=this.widthContainer;return e<=480?"ref-point-lebel-text480":e<=768?"ref-point-lebel-text768":e<=860?"ref-point-lebel-text870":"ref-point-lebel-text"},trendcontentcontrols(){return this.widthContainer<=768?"trend-content-controls768":["trend-content-controls","to-right"]},trendtitle(){return this.widthContainer<=768?"trend-title768":"trend-title"},trendtitlecontainer(){return this.widthContainer<=768?"trend-titlecontainer768":"trend-titlecontainer"},trendcontentcontrolscontainer(){const e=this.widthContainer;return e<=400?"trend-content-controls-container400":e<=860?"trend-content-controls-container860":"trend-content-controls-container"},trendcontentcontrolsleyendcheckscontent(){const e=this.widthContainer;return e<=400?"trend-content-controls-leyend-checkscontent400":e<=768?"trend-content-controls-leyend-checkscontent768":e<=1e3?"trend-content-controls-leyend-checkscontent1000":"trend-content-controls-leyend-checkscontent"},trendcontentcontrolsleyend(){const e=this.widthContainer;return e<=768?"trend-content-controls-leyend768":e<=1e3?"trend-content-controls-leyend1000":"trend-content-controls-leyend"},contDataClass(){return this.widthContainer<=768?"cont-data768":"cont-data"},contDataClass2(){return this.widthContainer<=768?"cont-data-ref768":"cont-data-ref"},contCollectorsClass(){const e=this.widthContainer;return e<=768?"cont-collectors768":e<=900?"cont-collectors900":"cont-collectors"},contCollectorsClass2(){const e=this.widthContainer;return e<=768?"cont-collectors-ref768":e<=900?"cont-collectors-ref900":"cont-collectors-ref"},contWhoCnnectedClass(){const e=this.widthContainer;return e<=768?"cont-who-connected768":e<=900?"cont-who-connected900":"cont-who-connected"},contWhoCnnectedClass2(){const e=this.widthContainer;return e<=768?"cont-who-connected-ref768":e<=900?"cont-who-connected-ref900":"cont-who-connected-ref"}},methods:{changelateralidad(e){this.$emit("changelateralidad",e)},changeTouchesnum(e){this.numberTouches=e},checkBallGo(){this.checkedBallGo=!this.checkedBallGo},checkHeatMap(){this.checkedHeatMap=!this.checkedHeatMap},changeBallOnOff(e){typeof e=="string"&&(this.BallOnOff=e)},getDataPosition(){if(this.touchAllData.length>0){const a=this.touchAllData.filter(o=>o[19]===0).map(o=>this.tiempoASegundosEnteros(o[13]));let r=[];this.timepositioning>=0?r=a.map(o=>o+this.timepositioning):r=a.map(o=>o-this.timepositioning);const d=this.fieldPositionsAll.filter(o=>r.includes(this.tiempoASegundosEnteros(o[5]))&&o[2]===this.team),g=this.contarYAgruparPorPosicion(d);let i=[];this.zonesFilter.length!=35?i=this.fieldPositionsAll.filter(o=>this.zonesFilter.includes(o[6])&&o[2]===this.team):i=this.fieldPositionsAll.filter(o=>this.zonesFilter.includes(o[6])&&o[2]===this.team),this.filterFieldPositions=i;let s=[],n=[];for(var e in this.arrayPlayers)this.arrayPlayers[e].selected&&s.push(this.arrayPlayers[e].id),n.push(this.arrayPlayers[e].id);s.length>0&&(this.filterFieldPositions=this.filterFieldPositions.filter(o=>s.includes(o[1])));const _=i.filter(o=>r.includes(this.tiempoASegundosEnteros(o[5]))&&o[2]===this.team),f=this.contarYAgruparPorPosicion(_);this.arrayPlayers={};for(let o=0;o<g.length;o++){const m=f.filter(function(x){return x.id_player==g[o].id_player});this.arrayPlayers[g[o].id_player]={id:g[o].id_player,corners:g[o].corners,cornersfilter:m[0]?m[0].corners:0,data:this.playersData[g[o].id_player]?this.playersData[g[o].id_player]:{name:"-",img:"-",position:11,id:"-",team:"-",nationality_id:"-",nationality_flag:"https://az755631.vo.msecnd.net/flags/undefined.jpg",jersey:"-"},selected:Object.keys(this.arrayPlayers).length>0&&n.includes(g[o].id_player)?!!s.includes(g[o].id_player):!0}}}else this.arrayPlayers={},this.filterFieldPositions=[]},getDataTrajectory(){if(this.touchAllData.length>0){const a=this.touchAllData.filter(c=>c[19]===0).map(c=>this.tiempoASegundosEnteros(c[13]));let r=[];this.timepositioning>=0?r=a.map(c=>c+Math.abs(this.timepositioning)):r=a.map(c=>c-Math.abs(this.timepositioning));let d=[];this.timepositioningend>=0?d=a.map(c=>c+Math.abs(this.timepositioningend)):d=a.map(c=>c-Math.abs(this.timepositioningend));const g=this.fieldPositionsAll.filter(c=>this.zonesFilter.includes(c[6])&&c[2]===this.team);this.filterFieldPositions=g;let i=[],s=[];for(var e in this.arrayPlayers)this.arrayPlayers[e].selected&&i.push(this.arrayPlayers[e].id),s.push(this.arrayPlayers[e].id);i.length>0&&(this.filterFieldPositions=this.filterFieldPositions.filter(c=>i.includes(c[1])));const n=this.fieldPositionsAll.filter(c=>a.includes(this.tiempoASegundosEnteros(c[5]))&&c[2]===this.team),_=g.filter(c=>r.includes(this.tiempoASegundosEnteros(c[5]))&&c[2]===this.team),f=g.filter(c=>d.includes(this.tiempoASegundosEnteros(c[5]))&&c[2]===this.team),o=this.contarYAgruparPorPosicion(n),m=this.contarYAgruparPorPosicion(_),x=this.contarYAgruparPorPosicion(f);for(let c=0;c<o.length;c++){const l=m.filter(function(p){return p.id_player==o[c].id_player}),u=x.filter(function(p){return p.id_player==o[c].id_player});this.arrayPlayers[o[c].id_player]={id:o[c].id_player,corners:o[c].corners,cornersfilter:l[0]?l[0].corners:0,cornersfilterfinal:u[0]?u[0].corners:0,data:this.playersData[o[c].id_player]?this.playersData[o[c].id_player]:{name:"-",img:"-",position:11,id:"-",team:"-",nationality_id:"-",nationality_flag:"https://az755631.vo.msecnd.net/flags/undefined.jpg",jersey:"-"},selected:Object.keys(this.arrayPlayers).length>0&&s.includes(o[c].id_player)?!!i.includes(o[c].id_player):!0}}}else this.arrayPlayers={},this.filterFieldPositions=[]},contarYAgruparPorPosicion(e){const a=e.reduce((r,d)=>{const g=d[1];return r[g]?r[g]+=1:r[g]=1,r},{});return Object.keys(a).map(r=>({id_player:parseInt(r,10),corners:a[r]}))},tiempoASegundosEnteros(e){let a=e.split(":"),r=parseInt(a[0],10),d=parseFloat(a[1]);return r*60+Math.floor(d)},getTimePositioning(e){this.timepositioning=e},getTimePositioningEnd(e){this.timepositioningend=e},getTypePositioning(e){this.typepositioning=e},getArrayZonesField(e){this.zonesFilter=e},selectcheckplayerall(e){for(let a in this.arrayPlayers)this.arrayPlayers[a].selected=e;this.typepositioning=="Posición"?this.getDataPosition():this.getDataTrajectory()},selectcheckplayer(e){this.arrayPlayers[e].selected=!this.arrayPlayers[e].selected,this.typepositioning=="Posición"?this.getDataPosition():this.getDataTrajectory()},clickTypeButton(e){this.type=e},clickAdvanced(){this.show=!this.show},async getData(){}},mounted(){}},ul=e=>(t.pushScopeId("data-v-94ff1503"),e=e(),t.popScopeId(),e),o8t={class:"text-diferent"},s8t=ul(()=>t.createElementVNode("br",null,null,-1)),l8t={key:0,class:"btnAdvance",src:Nz},c8t={key:1,class:"btnAdvanceHide",src:Nz},d8t={class:"menu-advanced-container"},u8t={class:"container-buttons-menu"},p8t={key:1,class:"position-only"},h8t={class:"buttons-menu-select-data"},f8t={key:0,class:"ref-trend-ball-player-container"},m8t=t.createStaticVNode('<div class="ref-trend-ball-ball" data-v-94ff1503><div class="ref-trend-ball-ball-point" data-v-94ff1503></div><div class="ref-trend-ball-ball-label" data-v-94ff1503>BALÓN</div></div><div class="ref-trend-ball-player" data-v-94ff1503><div class="ref-trend-ball-playe-point" data-v-94ff1503></div><div class="ref-trend-ball-player-label" data-v-94ff1503>JUGADORES OFENSIVOS</div></div>',2),g8t=[m8t],y8t={key:1,class:"ref-trend-ball-player-container-route"},_8t=t.createStaticVNode('<div class="ref-trend-ball-ball" data-v-94ff1503><div class="ref-trend-ball-ball-point" data-v-94ff1503></div><div class="ref-trend-ball-ball-label" data-v-94ff1503>BALÓN</div></div><div class="ref-trend-ball-player-route" data-v-94ff1503><div class="ref-trend-ball-player-label" data-v-94ff1503>RECORRIDOS: </div><div class="ref-trend-ball-playe-point" data-v-94ff1503></div><div class="ref-trend-ball-player-label" data-v-94ff1503>INICIO </div><div class="ref-trend-ball-playe-point-end" data-v-94ff1503></div><div class="ref-trend-ball-player-label" data-v-94ff1503>FINAL</div></div>',2),v8t=[_8t],b8t={class:"ref-trend-teams-rival-container-table"},x8t={class:"ref-trend-teams-rival-container-row1"},w8t=ul(()=>t.createElementVNode("div",{class:"ref-point-view",style:{backgroundImage:"url(./circle-my-team.png)"}},null,-1)),k8t={class:"ref-trend-teams-rival-container-row2"},C8t=ul(()=>t.createElementVNode("div",{class:"ref-point-view",style:{backgroundImage:"url(./circle-other-team.png)"}},null,-1)),E8t=ul(()=>t.createElementVNode("div",{class:"ref-point-view",style:{backgroundImage:"url(http://golstatsimages.blob.core.windows.net/content/rematado-gol.png)"}},null,-1)),T8t=ul(()=>t.createElementVNode("br",null,null,-1)),S8t=ul(()=>t.createElementVNode("div",{class:"ref-point-view",style:{backgroundImage:"url(http://golstatsimages.blob.core.windows.net/content/rematado-con-destino.png)"}},null,-1)),A8t=ul(()=>t.createElementVNode("br",null,null,-1)),N8t=ul(()=>t.createElementVNode("div",{class:"ref-point-view",style:{backgroundImage:"url(http://golstatsimages.blob.core.windows.net/content/rematado-sin-destino.png)"}},null,-1)),B8t=ul(()=>t.createElementVNode("br",null,null,-1)),I8t=ul(()=>t.createElementVNode("div",{class:"ref-point-view",style:{backgroundImage:"url(http://golstatsimages.blob.core.windows.net/content/sin-destino.png)"}},null,-1)),M8t={class:"ref-trend-teams-rival-container-table"},O8t={class:"ref-trend-teams-rival-container-row1"},P8t=ul(()=>t.createElementVNode("div",{class:"ref-point-view",style:{backgroundImage:"url(http://golstatsimages.blob.core.windows.net/content/ganados-jugador-rival.png)"}},null,-1)),F8t=ul(()=>t.createElementVNode("br",null,null,-1)),R8t={class:"ref-trend-teams-rival-container-row2"},z8t=ul(()=>t.createElementVNode("div",{class:"ref-point-view",style:{backgroundImage:"url(http://golstatsimages.blob.core.windows.net/content/ganados-portero.png)"}},null,-1)),V8t=ul(()=>t.createElementVNode("br",null,null,-1));function L8t(e,a,r,d,g,i){const s=t.resolveComponent("GSCCheckbox"),n=t.resolveComponent("GSCTrendMenuBall"),_=t.resolveComponent("GSCTrendPosition"),f=t.resolveComponent("CardField");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(r.widthContainer<=768?"gsc-trend-movil":"gsc-trend-plays")},[t.createElementVNode("div",{class:t.normalizeClass(i.trendtitlecontainer)},[t.createElementVNode("div",{class:t.normalizeClass(i.trendtitle)},[t.createTextVNode(" Tendencia General "),t.createElementVNode("span",o8t,"("+t.toDisplayString(r.inFavor?"A favor":"En contra")+")",1)],2),t.createElementVNode("div",{class:t.normalizeClass(i.trendcontentcontrols)},[t.createElementVNode("div",{class:t.normalizeClass(i.trendcontentcontrolsleyend)},[r.widthContainer>1e3||r.widthContainer<=768?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Elige que quieres ver: ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Elige que "),s8t,t.createTextVNode("quieres ver:")],64))],2),t.createElementVNode("div",{class:t.normalizeClass(i.trendcontentcontrolsleyendcheckscontent)},[t.createElementVNode("div",{class:t.normalizeClass(i.trendcontentcontrolscontainer)},[t.createVNode(s,{label:"¿A dónde fue el balón?",fontFamily:"Poppins-Regular",labelFontSize:r.widthContainer>=870?"13px":"12px","label-color":"#FFF","model-value":g.checkedBallGo,"onUpdate:modelValue":a[0]||(a[0]=o=>i.checkBallGo())},null,8,["labelFontSize","model-value"])],2),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(i.trendcontentcontrolscontainer)},[t.createVNode(s,{label:"Jugadores ofensivos",fontFamily:"Poppins-Regular",labelFontSize:r.widthContainer>=870?"13px":"12px","label-color":"#FFF",boxBackgroundColor:"#15a9e0","model-value":g.checkedHeatMap,"onUpdate:modelValue":a[1]||(a[1]=o=>i.checkHeatMap())},null,8,["labelFontSize","model-value"])],2),[[t.vShow,r.isTacticVisible]])],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(i.contDataClass)},[t.createElementVNode("div",{class:t.normalizeClass(i.contCollectorsClass)},[t.createElementVNode("div",{class:t.normalizeClass(r.widthContainer<=768?"button-avanced-movil":"button-avanced"),onClick:a[2]||(a[2]=(...o)=>i.clickAdvanced&&i.clickAdvanced(...o))},[g.show?(t.openBlock(),t.createElementBlock("img",l8t)):t.createCommentVNode("",!0),t.createTextVNode("Avanzado"),g.show?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("img",c8t))],2),t.withDirectives(t.createElementVNode("div",d8t,[t.createElementVNode("div",u8t,[r.isTacticVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",{class:t.normalizeClass(["buttons-menu",g.type=="ball"?"active":""]),onClick:a[3]||(a[3]=o=>i.clickTypeButton("ball"))}," A dónde fue el balón ",2),t.createElementVNode("div",{class:t.normalizeClass(["buttons-menu",g.type=="position"?"active":""]),onClick:a[4]||(a[4]=o=>i.clickTypeButton("position"))}," Posicionamiento ",2)],64)):(t.openBlock(),t.createElementBlock("div",p8t,"Posicionamiento"))]),t.createElementVNode("div",h8t,[t.withDirectives(t.createVNode(n,{"Ball-on-off":g.BallOnOff,onChangeBallOnOff:i.changeBallOnOff,onTouchesnum:i.changeTouchesnum},null,8,["Ball-on-off","onChangeBallOnOff","onTouchesnum"]),[[t.vShow,g.type=="ball"]]),t.withDirectives(t.createVNode(_,{onSelectcheckplayer:i.selectcheckplayer,onSelectcheckplayerall:i.selectcheckplayerall,data:g.arrayPlayers,onShowfield:i.getArrayZonesField,onTypepositioning:i.getTypePositioning,"width-container":r.widthContainer,onTimepositioning:i.getTimePositioning,onTimepositioningend:i.getTimePositioningEnd},null,8,["onSelectcheckplayer","onSelectcheckplayerall","data","onShowfield","onTypepositioning","width-container","onTimepositioning","onTimepositioningend"]),[[t.vShow,r.isTacticVisible&&g.type==="position"]])])],512),[[t.vShow,g.show]])],2),t.createElementVNode("div",{class:t.normalizeClass(i.contWhoCnnectedClass)},[t.createVNode(f,{"width-container":r.widthContainer,selected_team:r.team,"show-ball-position":g.checkedBallGo,"show-players-position":g.checkedHeatMap,selected_category:r.selected_category,"show-tracks":g.BallOnOff=="ON",touches:g.numberTouches,"operation-start":g.timepositioning>0?1:0,"second-start":Math.abs(g.timepositioning),"second-end":g.timepositioningend>0?1:0,"operation-end":Math.abs(g.timepositioningend),onChangelateralidad:i.changelateralidad,"show-players-end-position":g.typepositioning=="Recorrido","in-favor":r.inFavor,"data-paint-info":{data:r.touchAllData,field_positions:g.filterFieldPositions,home_atk_direction:1}},null,8,["width-container","selected_team","show-ball-position","show-players-position","selected_category","show-tracks","touches","operation-start","second-start","second-end","operation-end","onChangelateralidad","show-players-end-position","in-favor","data-paint-info"])],2)],2),t.createElementVNode("div",{class:t.normalizeClass(i.contDataClass2)},[t.createElementVNode("div",{class:t.normalizeClass(i.contCollectorsClass2)},[g.typepositioning==="Posición"?(t.openBlock(),t.createElementBlock("div",f8t,g8t)):(t.openBlock(),t.createElementBlock("div",y8t,v8t))],2),g.BallOnOff=="ON"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.contWhoCnnectedClass2),style:t.normalizeStyle(g.numberTouches>1?"margin-left: 0%; display: flex; justify-content: center;":"")},[g.numberTouches>1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.reftrendteamsTouches)},[t.createElementVNode("div",{class:"ref-trend-teams-rival-label-title",style:t.normalizeStyle(r.widthContainer<=768?"justify-content: center !important;":"")}," COORDENADAS: ",4),t.createElementVNode("div",b8t,[t.createElementVNode("div",x8t,[w8t,t.createElementVNode("div",{class:t.normalizeClass(i.refpointlebeltext),style:{"font-size":"9px"}},[r.forGame?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(i.firstTeam),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(r.acronymHome),1)],64))],2)]),t.createElementVNode("div",k8t,[C8t,t.createElementVNode("div",{class:t.normalizeClass(i.refpointlebeltext),style:{"font-size":"9px"}},[r.forGame?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(i.secondTeam),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Rival")],64))],2)])])],2)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.reftrendteamsall)},[t.createElementVNode("div",{class:t.normalizeClass(i.reftrendteamslocal)},[t.createElementVNode("div",{class:"ref-trend-teams-local-label-title",style:t.normalizeStyle(r.widthContainer<=768?"justify-content: center !important;":"")},[r.forGame?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(i.firstTeam1Touch),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(r.inFavor?r.acronymHome:"Rival"),1)],64))],4),t.createElementVNode("div",{class:t.normalizeClass(r.widthContainer<=480?"ref-trend-teams-local-container-table-movil":"ref-trend-teams-local-container-table")},[t.createElementVNode("div",{class:"ref-trend-teams-local-container-row1",style:t.normalizeStyle(r.widthContainer<=480?"display: inline-block !important;":"")},[E8t,t.createElementVNode("div",{class:t.normalizeClass(i.refpointlebeltext)},[t.createTextVNode("Remata destino "),T8t,t.createTextVNode("portería fue gol")],2)],4),t.createElementVNode("div",{class:"ref-trend-teams-local-container-row2",style:t.normalizeStyle(r.widthContainer<=480?"display: inline-block !important;":"")},[S8t,t.createElementVNode("div",{class:t.normalizeClass(i.refpointlebeltext)},[t.createTextVNode("Rematado destino "),A8t,t.createTextVNode("a portería no fue gol")],2)],4),t.createElementVNode("div",{class:"ref-trend-teams-local-container-row3",style:t.normalizeStyle(r.widthContainer<=480?"display: inline-block !important;":"")},[N8t,t.createElementVNode("div",{class:t.normalizeClass(i.refpointlebeltext)},[t.createTextVNode("Rematado sin "),B8t,t.createTextVNode("destino a portería")],2)],4),t.createElementVNode("div",{class:"ref-trend-teams-local-container-row4",style:t.normalizeStyle(r.widthContainer<=480?"display: inline-block !important;":"")},[I8t,t.createElementVNode("div",{class:t.normalizeClass(i.refpointlebeltext)},"Sin destino",2)],4)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(i.reftrendteamsrival)},[t.createElementVNode("div",{class:"ref-trend-teams-rival-label-title",style:t.normalizeStyle(r.widthContainer<=768?"justify-content: center;":"")},[r.forGame?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(i.secondTeam1Touch),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(r.inFavor?"Rival":r.acronymHome),1)],64))],4),t.createElementVNode("div",M8t,[t.createElementVNode("div",O8t,[P8t,t.createElementVNode("div",{class:t.normalizeClass(i.refpointlebeltext)},[r.widthContainer<=768?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganados Jugador rival")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Ganados "),F8t,t.createTextVNode("Jugador rival")],64))],2)]),t.createElementVNode("div",R8t,[z8t,t.createElementVNode("div",{class:t.normalizeClass(i.refpointlebeltext)},[r.widthContainer<=768?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganados Portero rival")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Ganados "),V8t,t.createTextVNode("Portero rival")],64))],2)])])],2)],2))],6)):t.createCommentVNode("",!0)],2)],2)}const D8t=Si(i8t,[["render",L8t],["__scopeId","data-v-94ff1503"]]),$8t={components:{GSCConnectionsSetPiece:Fst,GSCHeaderSetPiece:S_t,GSCDataToHighlight:xvt,GSCModalBreakdown:zbt,GSCSpecificPlays:F5t,GSCTrend:D8t},props:{game:{type:Object,required:!0},forSeason:{type:Boolean,default:!1},forTeam:{type:Boolean,default:!1},forGame:{type:Boolean,default:!1},team:{type:Number,default:0},isTacticVisible:{type:Boolean,default:!0},isSynchronization:{type:Boolean,default:!1}},data(){return{token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",touchAllDataHome:[],touchAllDataAway:[],filters:{isMoment:!1,final:[1,2,3],moment:[1,2,3],playingAs:[1,2],sections:[1,2,3,4,5,6],games:[],players:[],cornertype:31,howWas:[120,126,327,133],zona:[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],whathappened:[583,585,587,589,584,586,588,590,122,128,136,142,123,129,137,143,124,130,138,144,125,131,139,14,146,147,327,133],isWhatHappenedFull:!0,isZoneFull:!0},containerWidth:0,openModal:!1,playersData:{},teamsData:{},gamesAllHome:[],gamesAllAway:[],teamSelected:0,touchDataSelected:[],auxChangeFilterPlayer:!0,auxChangeFilterGames:!0,positionsDataSelected:[],copyLastFilters:{},seasonId:0,totalDataCollection:{},seasonsByGame:{},matchesByGame:{},rivalsByGame:{},updateConnections:0,showCorners:0,filterPlayersAvailable:[],filterGamesAvailable:[],updateTrend:0,lateralidad:"left",updateFilter:0,copyplayers:[],infavoragainst:!0,typePlay:"A favor",modalInitialData:{},areFiltersOpen:!1}},watch:{game:{immediate:!0,handler(e){this.getDataCorners(e),this.createStorageGame()}},teamSelected:{immediate:!0,handler(){this.fillFilterGamesReset(),this.fillFilterPlayersReset(),this.updateConnections+=1}},infavoragainst:{immediate:!0,handler(){this.fillFilterGamesReset(),this.fillFilterPlayersReset(),this.updateConnections+=1}},calculationTouchesData:{immediate:!0,handler(){this.showCorners=this.calculationTouchesData.filter(e=>e[19]==0).length}}},computed:{isGameOnly(){return this.forGame&&!this.forSeason&&!this.forTeam},calculateTotal(){return this.touchDataSelected.filter(e=>e[19]==0).length},calculationPositionsData(){return this.positionsDataSelected},calculationTouchesData(){let e=[],a=[];if(this.touchDataSelected.length>0){this.updateCopyfilter(),this.filters.isMoment?a=this.touchDataSelected.filter(d=>this.filters.moment.includes(d[17])&&this.filters.playingAs.includes(d[14])&&this.filters.sections.includes(d[20])&&d[19]==0):a=this.touchDataSelected.filter(d=>this.filters.final.includes(d[16])&&this.filters.playingAs.includes(d[14])&&this.filters.sections.includes(d[20])&&d[19]==0),this.updateGamesListFilter({corners:a,games:this.filters.games}),this.filters.games.length>0&&(a=a.filter(d=>this.filters.games.includes(d[3]))),this.infavoragainst&&(this.updatePlayerListFilter({corners:a,players:this.filters.players}),this.filters.players.length>0&&(a=a.filter(d=>this.filters.players.includes(d[1])))),a=a.filter(d=>this.filters.cornertype==d[4]),this.filters.zona.length!=35&&(a=a.filter(d=>this.filters.zona.includes(d[12]))),a=a.filter(d=>d[5].split(",").map(g=>parseInt(g)).some(g=>this.filters.howWas.includes(g))),this.filters.whathappened.length!=24&&(a=a.filter(d=>d[5].split(",").map(g=>parseInt(g)).some(g=>this.filters.whathappened.includes(g))));const r=a.map(d=>d[18]);e=this.touchDataSelected.filter(d=>r.includes(d[18]))}return e},cornersInFavor(){return"-"},cornersAgainst(){return"-"}},methods:{setHeaderStickyListener(){const e=this.$refs.header.getBoundingClientRect();window.onscroll=()=>{(window.scrollY||window.pageYOffset)>e.top?this.$refs.header.classList.add("sticky"):this.$refs.header.classList.remove("sticky")}},setCornersSide(e){this.lateralidad=e},onChangeShowFilters(e){this.areFiltersOpen=e},fillFilterPlayersReset(){setTimeout(()=>{if(this.infavoragainst){const e=this.forGame?this.infavoragainst?this.teamSelected:this.teamSelected==this.game.home_team?this.game.away_team:this.game.home_team:this.teamSelected,a=this.touchDataSelected.filter(d=>d[19]==0&&e).map(d=>d[1]),r=[...new Set(a)];this.getFilterTakenCorners({players:r})}},100)},fillFilterGamesReset(){setTimeout(()=>{const e=this.touchDataSelected.filter(r=>r[19]==0).map(r=>r[3]),a=[...new Set(e)];this.getFilterGames({games:a})},100)},updateCopyfilter(){this.copyLastFilters=this.filters},fillGameDataTeam(e){return{teamsIds:[e.home_team,e.visiting_team],label:`${e.matchday_abbreviation.replace("M","J")} ${this.teamsData[this.game.home_team].acronym} vs ${this.game.home_team==e.home_team?this.teamsData[e.visiting_team].acronym:this.teamsData[e.home_team].acronym}`,id:e.game_id,isSelected:!0,dateTimeMillis:Date.parse(e.date_time_utc),rivalTeam:{logo:this.game.home_team==e.home_team?this.teamsData[e.visiting_team].img:this.teamsData[e.home_team].img,team_id:this.game.home_team==e.home_team?e.visiting_team:e.home_team,provisional_logo:this.game.home_team==e.home_team?this.teamsData[e.visiting_team].img:this.teamsData[e.home_team].img,colloquial_name:this.game.home_team==e.home_team?this.teamsData[e.visiting_team].acronym:this.teamsData[e.home_team].acronym,acronym:this.game.home_team==e.home_team?this.teamsData[e.visiting_team].acronym:this.teamsData[e.home_team].acronym,team_name:this.game.home_team==e.home_team?this.teamsData[e.visiting_team].name:this.teamsData[e.home_team].name},roundAbbreviation:e.matchday_abbreviation.replace("M","J")}},fillGameData(e){return{teamsIds:[e.home_team,e.visiting_team],label:`${e.matchday_abbreviation.replace("M","J")} ${this.teamsData[this.teamSelected].acronym} vs ${this.teamSelected==e.home_team?this.teamsData[e.visiting_team].acronym:this.teamsData[e.home_team].acronym}`,id:e.game_id,isSelected:!0,dateTimeMillis:Date.parse(e.date_time_utc),rivalTeam:{logo:this.teamSelected==e.home_team?this.teamsData[e.visiting_team].img:this.teamsData[e.home_team].img,team_id:this.teamSelected==e.home_team?e.visiting_team:e.home_team,provisional_logo:this.teamSelected==e.home_team?this.teamsData[e.visiting_team].img:this.teamsData[e.home_team].img,colloquial_name:this.teamSelected==e.home_team?this.teamsData[e.visiting_team].acronym:this.teamsData[e.home_team].acronym,acronym:this.teamSelected==e.home_team?this.teamsData[e.visiting_team].acronym:this.teamsData[e.home_team].acronym,team_name:this.teamSelected==e.home_team?this.teamsData[e.visiting_team].name:this.teamsData[e.home_team].name},roundAbbreviation:e.matchday_abbreviation.replace("M","J")}},updatePlayerListFilter(e){if(this.infavoragainst){let a={},r=[];for(let d=0;d<e.corners.length;d++){const g=e.corners[d];if(g[19]===0&&g[2]===this.teamSelected){const i=g[1],s=this.playersData[i];i in a||(a[i]=s,r.push(s))}}if(this.filterPlayersAvailable=r,e.players.length>0&&this.filterPlayersAvailable.length>0)for(let d=0;d<this.filterPlayersAvailable.length;d++)e.players.includes(this.filterPlayersAvailable[d].id)?this.filterPlayersAvailable[d].isSelected=!0:this.filterPlayersAvailable[d].isSelected=!1}},updateGamesListFilter(e){if(!this.forGame){this.filterGamesAvailable=[];const a=this.obtenerIDsGames(e.corners);this.forSeason?this.teamSelected==this.game.home_team?this.filterGamesAvailable=a.map(r=>{let d=this.gamesAllHome.find(g=>g.game_id===r);if(d)return this.fillGameData(d)}):this.filterGamesAvailable=a.map(r=>{let d=this.gamesAllAway.find(g=>g.game_id===r);if(d)return this.fillGameData(d)}):this.filterGamesAvailable=a.map(r=>{let d=this.gamesAllHome.find(g=>g.game_id===r);if(d)return this.fillGameDataTeam(d)})}if(e.games.length>0&&this.filterGamesAvailable.length>0)for(let a=0;a<this.filterGamesAvailable.length;a++)e.games.includes(this.filterGamesAvailable[a].id)?this.filterGamesAvailable[a].isSelected=!0:this.filterGamesAvailable[a].isSelected=!1},getResetPlayers(){for(let e in this.playersData)this.playersData[e].isSelected=!0},getFilterZone(e){this.filters.zona=e,this.filters.isZoneFull=e.length===35},getFilterHowWasCorner(e){this.filters.cornertype=e.cornertype,this.filters.howWas=e.howWas},getFilterTakenCorners(e){this.filters.players=e.players},getFilterGames(e){this.filters.games=e.games,this.fillFilterPlayersReset()},getFilterDetails(e){this.filters.playingAs=e.playingAs,this.filters.sections=e.sections,this.fillFilterGamesReset(),this.fillFilterPlayersReset()},getFilterResultsByTime(e){this.filters.final=e.final,this.filters.isMoment=e.isMoment,this.filters.moment=e.moment,this.fillFilterGamesReset(),this.fillFilterPlayersReset()},getFilterWhatHappened(e){this.filters.whathappened=e,this.filters.isWhatHappenedFull=e.length===24},obtenerIDsGames(e){return[...new Set(e.map(a=>a[3]))]},async getInFavorAgainstTeam(e){this.updateTrend+=1,this.infavoragainst=e,this.validateDataLocalStorage({team:this.teamSelected,inFavor:this.infavoragainst,game:this.game})&&(this.teamSelected==this.game.home_team?await this.requestOrchestrator({games:this.gamesAllHome,team:this.teamSelected,inFavor:this.infavoragainst,game:this.game}):await this.requestOrchestrator({games:this.gamesAllAway,team:this.teamSelected,inFavor:this.infavoragainst,game:this.game}))},async getTeamSelected(e){this.teamSelected!=e&&(this.updateConnections+=1,this.updateTrend+=1,this.teamSelected=e,this.touchDataSelected=[],this.gamesAllHome.length!=0&&this.gamesAllAway.length!=0&&(this.teamSelected==this.game.home_team?this.validateDataLocalStorage({team:this.teamSelected,inFavor:this.infavoragainst,game:this.game})&&await this.requestOrchestrator({games:this.gamesAllHome,team:this.teamSelected,inFavor:this.infavoragainst,game:this.game}):this.validateDataLocalStorage({team:this.teamSelected,inFavor:this.infavoragainst,game:this.game})&&await this.requestOrchestrator({games:this.gamesAllAway,team:this.teamSelected,inFavor:this.infavoragainst,game:this.game})))},async requestOrchestrator(e){let a=[];const r=Ii.create({headers:{Authorization:`${this.token}`}});for(let n=0;n<e.games.length;n++)this.seasonId=e.games[n].season_id,a.push(e.inFavor?"https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/seasons/"+e.games[n].season_id+"/corners/trends/teams/"+e.team+"/"+e.games[n].game_id:"https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/seasons/"+e.games[n].season_id+"/corners/trends/teams/"+e.team+"/"+e.games[n].game_id+"?isR=1");const d=async n=>{try{return(await r.get(n)).data}catch(_){throw console.error("Error al obtener datos:",_),_}};var g=[],i=[];const s=a.map(n=>d(n));Promise.all(s).then(n=>{for(let _=0;_<n.length;_++)n[_].data=this.changeLateralityCoordenatesPlays(n[_].data,!1),n[_].field_positions=this.changeLateralityCoordenatesPlays(n[_].field_positions,!0),g=g.concat(n[_].data),i=i.concat(n[_].field_positions),this.getDataPlayers(n[_].players),this.getDataPlayers(n[_].rival_players),this.getDataTeams(n[_].teams),this.getSeasonByGame({season:n[_]&&n[_].hasOwnProperty("season_name")?n[_].season_name:"",game:n[_].data[0]?n[_].data[0][3]:0}),this.getMatchByGame({match:n[_]&&n[_].hasOwnProperty("matchday_abbreviation")?n[_].matchday_abbreviation:"",game:n[_].data[0]?n[_].data[0][3]:0}),this.getRivalsByGame({rival:this.infavoragainst?this.teamSelected==n[_].teams[0].team_id?n[_].teams[1].name:n[_].teams[0].name:this.teamSelected==n[_].teams[0].team_id?n[_].teams[0].name:n[_].teams[1].name,game:n[_].data[0]?n[_].data[0][3]:0,team:this.teamSelected,favor:this.infavoragainst});this.touchDataSelected=g,this.totalDataCollection[e.game.id][e.team][e.inFavor?"InFavor":"Against"].touch=g,this.positionsDataSelected=i,this.totalDataCollection[e.game.id][e.team][e.inFavor?"InFavor":"Against"].positions=i}).catch(n=>{console.error("Error al obtener datos:",n)})},getRowMatrix(e,a){let r=.01351,d=.02439,g=0,i=0,s=[];const n=a.length;let _=Math.floor(n/10);for(;g<74;)i=a.filter(f=>f[0]>=g*r&&f[0]<=(g+1)*r&&f[1]>=e*d&&f[1]<=(e+1)*d).map(f=>f[1]).length,_=_===0?1:_,s.push(parseFloat((i/_).toFixed(4))),g++;return s.reverse()},getEmptyArray(e){return Array.from({length:e},()=>0)},getMatrix(e){let a=[this.getEmptyArray(74),this.getEmptyArray(74)],r=[],d=39;for(;d>0&&d<=39;)r=this.getRowMatrix(d,e),a.push(r),d--;return a.push(this.getEmptyArray(74),this.getEmptyArray(74)),a},getSoftData(e,a,r){const d=[];let g=0,i=0;d.push(e[0]);for(let s=1;s<r-1;s++){const n=[];n.push(e[s][0]);for(let _=1;_<a-1;_++)g=e[s][_-1],i=e[s][_+1],n.push(g+.5*(e[s][_]+i-g));n.push(e[s][a-1]),d.push(n)}d.push(e[r-1]);for(let s=1;s<a-1;s++)for(let n=1;n<r-1;n++)g=d[n-1][s],i=d[n+1][s],d[n][s]=g+.5*(d[n][s]+i-g);return d},changeLateralityCoordenatesPlays(e,a){return a?e.forEach((r,d)=>{let g=0,i=0;this.infavoragainst?(g=r[2]===this.teamSelected?1-r[3]:r[3],i=r[2]===this.teamSelected?1-r[4]:r[4]):(g=r[2]===this.teamSelected?r[3]:1-r[3],i=r[2]===this.teamSelected?r[4]:1-r[4]),e[d][3]=g,e[d][4]=i}):e.forEach((r,d)=>{let g=0,i=0,s=0,n=0,_=0,f=0;r[19]!=0?this.infavoragainst?(g=r[2]===this.teamSelected?r[6]:1-r[6],i=r[2]===this.teamSelected?1-r[7]:r[7],s=r[2]===this.teamSelected?r[8]:1-r[8],n=r[2]===this.teamSelected?1-r[9]:r[9],_=r[2]===this.teamSelected?r[10]:1-r[10],f=r[2]===this.teamSelected?1-r[11]:r[11]):(g=r[2]===this.teamSelected?1-r[6]:r[6],i=r[2]===this.teamSelected?r[7]:1-r[7],s=r[2]===this.teamSelected?1-r[8]:r[8],n=r[2]===this.teamSelected?r[9]:1-r[9],_=r[2]===this.teamSelected?1-r[10]:r[10],f=r[2]===this.teamSelected?r[11]:1-r[11]):(g=1-r[6],i=r[7],s=1-r[8],n=r[9],_=1-r[10],f=r[11]),e[d][6]=g,e[d][7]=i,e[d][8]=s,e[d][9]=n,e[d][10]=_,e[d][11]=f}),e},changeLateralityPlays(e){e.field_positions=e.field_positions.map(r=>[...r.slice(0,3),r[4],r[3],...r.slice(5)]);let a=[];return e.data.forEach(r=>{r[19]===0&&a.push([r[0],r[13],r[14],r[15]])}),a.forEach(r=>{e.field_positions.filter(d=>r[0]===d[7]&&this.teamSelected===d[2]).forEach(d=>{let g=d[3],i=d[4];(e.homeTeamAtkDirection===1&&r[3]===1||e.homeTeamAtkDirection===2&&r[3]===2||e.homeTeamAtkDirection===1&&r[3]===3||e.homeTeamAtkDirection===2&&r[3]===4)&&(g=1-g,i=1-i),d[3]=g,d[4]=i})}),e.field_positions},createStorageGame(){this.totalDataCollection[this.game.id]={},this.totalDataCollection[this.game.id][this.game.home_team]={},this.totalDataCollection[this.game.id][this.game.home_team].InFavor={},this.totalDataCollection[this.game.id][this.game.home_team].InFavor.touch=[],this.totalDataCollection[this.game.id][this.game.home_team].InFavor.positions=[],this.totalDataCollection[this.game.id][this.game.home_team].Against={},this.totalDataCollection[this.game.id][this.game.home_team].Against.touch=[],this.totalDataCollection[this.game.id][this.game.home_team].Against.positions=[],(this.forGame||this.forSeason)&&(this.totalDataCollection[this.game.id][this.game.away_team]={},this.totalDataCollection[this.game.id][this.game.away_team].InFavor={},this.totalDataCollection[this.game.id][this.game.away_team].InFavor.touch=[],this.totalDataCollection[this.game.id][this.game.away_team].InFavor.positions=[],this.totalDataCollection[this.game.id][this.game.away_team].Against={},this.totalDataCollection[this.game.id][this.game.away_team].Against.touch=[],this.totalDataCollection[this.game.id][this.game.away_team].Against.positions=[])},validateDataLocalStorage(e){return this.totalDataCollection[e.game.id][e.team][e.inFavor?"InFavor":"Against"].touch.length>0&&this.totalDataCollection[e.game.id][e.team][e.inFavor?"InFavor":"Against"].positions.length>0?(this.touchDataSelected=this.totalDataCollection[e.game.id][e.team][e.inFavor?"InFavor":"Against"].touch,this.positionsDataSelected=this.totalDataCollection[e.game.id][e.team][e.inFavor?"InFavor":"Against"].positions,!1):!0},getGamesByTeam(e){this.forSeason?e.type=="home"?this.gamesAllHome=e.games.filter(function(a){return(a.home_team==e.idTeam||a.visiting_team==e.idTeam)&&a.game_status==1}):this.gamesAllAway=e.games.filter(function(a){return(a.home_team==e.idTeam||a.visiting_team==e.idTeam)&&a.game_status==1}):this.forGame?e.type=="home"?this.gamesAllHome=e.games.filter(function(a){return a.game_id==e.game.id}):this.gamesAllAway=e.games.filter(function(a){return a.game_id==e.game.id}):this.gamesAllHome=e.games.filter(function(a){return(a.home_team==e.idTeam||a.visiting_team==e.idTeam)&&a.game_status==1})},async getDataCorners(e){const a=await Ii.create({headers:{Authorization:`${this.token}`}}).get("https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?seasons="+e.season);this.forSeason?(this.getGamesByTeam({games:a.data.data[0].games,idTeam:e.home_team,type:"home"}),this.getGamesByTeam({games:a.data.data[0].games,idTeam:e.away_team,type:"away"}),this.validateDataLocalStorage({team:this.game.home_team,inFavor:!0,game:this.game})&&await this.requestOrchestrator({games:this.gamesAllHome,team:this.game.home_team,inFavor:!0,game:this.game})):this.forGame?(this.getGamesByTeam({games:a.data.data[0].games,idTeam:e.home_team,game:this.game,type:"home"}),this.getGamesByTeam({games:a.data.data[0].games,idTeam:e.away_team,game:this.game,type:"away"}),this.validateDataLocalStorage({team:this.game.home_team,inFavor:!0,game:this.game})&&await this.requestOrchestrator({games:this.gamesAllHome,team:this.game.home_team,inFavor:!0,game:this.game})):(this.getGamesByTeam({games:a.data.data[0].games,idTeam:e.home_team,type:"home"}),this.validateDataLocalStorage({team:e.home_team,inFavor:!0,game:this.game})&&await this.requestOrchestrator({games:this.gamesAllHome,team:this.game.home_team,inFavor:!0,game:this.game}))},obtenerNombreAbreviado(e){let a=e.split(", ");if(a.length!==2)return e;let r=a[0],d=a[1],g=r.split(" ")[0];return d.charAt(0).toUpperCase()+". "+g},getDataPlayers(e){for(let a=0;a<e.length;a++)this.playersData.hasOwnProperty(e[a].player_id)||(this.playersData[e[a].player_id]={name:this.obtenerNombreAbreviado(e[a].name),last_name:e[a].name.includes(",")?e[a].name.split(",")[0].trim():"",first_name:e[a].name.includes(",")?e[a].name.split(",")[1].trim():"",img:e[a].photo,photo:e[a].photo,position:e[a].position_id,positions:[e[a].position_id],id:e[a].player_id,player_id:e[a].player_id,team_id:e[a].team_id,team:e[a].team_id,nationality_id:e[a].nationality_id,nationality_flag:"https://az755631.vo.msecnd.net/flags/"+e[a].nationality_id+".jpg",jersey:e[a].jersey,isSelected:!0})},getSeasonByGame(e){e.season!=""?this.seasonsByGame[e.game]=e.season:this.seasonsByGame[e.game]="-"},getMatchByGame(e){e.match!=""?this.matchesByGame[e.game]=e.match.replace("M","J"):this.matchesByGame[e.game]="-"},getRivalsByGame(e){this.rivalsByGame[e.favor?"InFavor":"Against"]?this.rivalsByGame[e.favor?"InFavor":"Against"][e.team]?this.rivalsByGame[e.favor?"InFavor":"Against"][e.team][e.game]=e.rival:(this.rivalsByGame[e.favor?"InFavor":"Against"][e.team]={},this.rivalsByGame[e.favor?"InFavor":"Against"][e.team][e.game]=e.rival):(this.rivalsByGame[e.favor?"InFavor":"Against"]={},this.rivalsByGame[e.favor?"InFavor":"Against"][e.team]={},this.rivalsByGame[e.favor?"InFavor":"Against"][e.team][e.game]=e.rival)},getDataTeams(e){for(let a=0;a<e.length;a++)this.teamsData.hasOwnProperty(e[a].team_id)||(this.teamsData[e[a].team_id]={name:e[a].name,acronym:e[a].acronym,img:"https://az755631.vo.msecnd.net/teams-80/"+e[a].team_id+".png",id:e[a].team_id})},getTypePlay(e){typeof e=="string"&&(this.typePlay=e)},clickOpenModal(){this.openModal=!this.openModal,document.body.classList.add("no-scroll")},clickCloseFinal(){this.openModal=!1,document.body.classList.remove("no-scroll")},onOpenMediaPlayer(e){this.$emit("open-media-player",e)},onOpenMediaPlayerJson(e){let a={seasonId:this.seasonId,mainSectionType:1,playListType:3,categoryIds:[e.id],gameIds:this.forGame?[this.game.id]:null,playerIds:[],goalkeeperIds:[],teamId:this.teamSelected,matchResult:[1,2,3],playData:{},advancedFilter:{playListTitle:""}};this.$emit("open-media-player",a)}},mounted(){this.setHeaderStickyListener();const e=()=>{const a=document.querySelector(".gsc-set-piece");a?this.containerWidth=a.clientWidth:setTimeout(()=>{},400)};window.addEventListener("resize",e),this.$nextTick(e)}},j8t={class:"gsc-set-piece"},U8t={ref:"header",class:"gsc-set-piece__header"};function H8t(e,a,r,d,g,i){const s=t.resolveComponent("GSCHeaderSetPiece"),n=t.resolveComponent("GSCDataToHighlight"),_=t.resolveComponent("GSCTrend"),f=t.resolveComponent("GSCConnectionsSetPiece"),o=t.resolveComponent("GSCModalBreakdown"),m=t.resolveComponent("GSCSpecificPlays");return t.openBlock(),t.createElementBlock("div",j8t,[t.createElementVNode("div",U8t,[(t.openBlock(),t.createBlock(s,{"width-container":g.containerWidth,type:r.forTeam?0:3,"teams-data":g.teamsData,"game-info":r.game,"total-corners":i.calculateTotal,"show-corners":g.showCorners,"in-favor":g.infavoragainst,"corners-in-favor":i.cornersInFavor,"corners-against":i.cornersAgainst,"for-game":r.forGame,key:g.updateFilter,lateralidad:g.lateralidad,"available-players":g.filterPlayersAvailable,"available-games":g.filterGamesAvailable,"is-synchronization":r.isSynchronization,onChangeShowFilters:i.onChangeShowFilters,onChangetypePlay:i.getTypePlay,onOpenModal:i.clickOpenModal,onTeamselected:i.getTeamSelected,onInfavoragainstteam:i.getInFavorAgainstTeam,onFilter_results_by_time:i.getFilterResultsByTime,onFilter_details:i.getFilterDetails,onFilter_games:i.getFilterGames,onFilter_takencorners:i.getFilterTakenCorners,onFilter_howwascorner:i.getFilterHowWasCorner,onFilter_zone:i.getFilterZone,onFilter_whathappened:i.getFilterWhatHappened},null,8,["width-container","type","teams-data","game-info","total-corners","show-corners","in-favor","corners-in-favor","corners-against","for-game","lateralidad","available-players","available-games","is-synchronization","onChangeShowFilters","onChangetypePlay","onOpenModal","onTeamselected","onInfavoragainstteam","onFilter_results_by_time","onFilter_details","onFilter_games","onFilter_takencorners","onFilter_howwascorner","onFilter_zone","onFilter_whathappened"]))],512),!r.isSynchronization&&g.teamSelected>0?(t.openBlock(),t.createBlock(n,{key:0,team:g.teamSelected,season:r.game.season,"in-favor":g.infavoragainst,"width-container":g.containerWidth},null,8,["team","season","in-favor","width-container"])):t.createCommentVNode("",!0),r.isSynchronization?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(_,{"players-data":g.playersData,"teams-data":g.teamsData,"touch-all-data":i.calculationTouchesData,"field-positions-all":i.calculationPositionsData,"width-container":g.containerWidth,"in-favor":g.infavoragainst,"for-game":r.forGame,"home-team":r.game.home_team,"away-team":r.game.away_team,"acronym-home":r.game.home_acronym,"acronym-away":r.game.away_acronym,team:g.teamSelected,"type-play":g.typePlay,selected_category:g.filters.cornertype,"is-tactic-visible":r.isTacticVisible,key:g.updateTrend,onChangelateralidad:i.setCornersSide},null,8,["players-data","teams-data","touch-all-data","field-positions-all","width-container","in-favor","for-game","home-team","away-team","acronym-home","acronym-away","team","type-play","selected_category","is-tactic-visible","onChangelateralidad"])),!r.isSynchronization&&g.teamSelected>0?(t.openBlock(),t.createBlock(f,{"seasons-by-game":g.seasonsByGame,"matches-by-game":g.matchesByGame,"rivals-by-game":g.rivalsByGame,"width-container":g.containerWidth,"players-data":g.playersData,"teams-data":g.teamsData,"touch-all-data":i.calculationTouchesData,"team-id":r.forGame?g.infavoragainst?g.teamSelected:g.teamSelected==r.game.home_team?r.game.away_team:r.game.home_team:g.teamSelected,"in-favor":g.infavoragainst,"for-game":r.forGame,key:g.updateConnections},null,8,["seasons-by-game","matches-by-game","rivals-by-game","width-container","players-data","teams-data","touch-all-data","team-id","in-favor","for-game"])):t.createCommentVNode("",!0),g.openModal?(t.openBlock(),t.createBlock(o,{key:3,"component-width":g.containerWidth,onClickClose:i.clickCloseFinal,"show-modal-prop":g.openModal,id:g.teamSelected,"season-id":r.game.season,game:r.game.id,onClickPlay:i.onOpenMediaPlayerJson,prematch:!!r.forGame},null,8,["component-width","onClickClose","show-modal-prop","id","season-id","game","onClickPlay","prematch"])):t.createCommentVNode("",!0),g.teamSelected&&r.game.season?(t.openBlock(),t.createBlock(m,{key:4,"team-id-for-analysis":g.teamSelected,"season-id-for-analysis":r.game?r.game.season:g.seasonId,"width-container":g.containerWidth,filters:g.filters,"is-game-only":i.isGameOnly,game:r.game,"is-against-mode":!g.infavoragainst,"are-filters-open":g.areFiltersOpen,"is-tactic-visible":r.isTacticVisible,"is-synchronization":r.isSynchronization,onOpenMediaPlayer:i.onOpenMediaPlayer},null,8,["team-id-for-analysis","season-id-for-analysis","width-container","filters","is-game-only","game","is-against-mode","are-filters-open","is-tactic-visible","is-synchronization","onOpenMediaPlayer"])):t.createCommentVNode("",!0)])}const G8t=Si($8t,[["render",H8t],["__scopeId","data-v-563d6f72"]]),pIt="",hIt="",W8t={class:"datagame-container"},q8t=Ti({__name:"GSCTacticaFijaMain",props:{game:{type:Object,default:()=>({})},isTacticVisible:{type:Boolean,default:!0},isSynchronization:{type:Boolean,default:!1}},emits:["open-media-player"],setup(e,{emit:a}){function r(d){a("open-media-player",d)}return(d,g)=>(t.openBlock(),t.createElementBlock("div",W8t,[t.createVNode(t.unref(G8t),{game:{id:e.game.gameId,home_team:e.game.homeTeam.team_id,away_team:e.game.awayTeam.team_id,season:e.game.seasonId,game_status:e.game.game_status,home_acronym:e.game.homeTeam.acronym,away_acronym:e.game.awayTeam.acronym,logo_home:"https://az755631.vo.msecnd.net/teams-80/"+e.game.homeTeam.team_id+".png",logo_away:"https://az755631.vo.msecnd.net/teams-80/"+e.game.awayTeam.team_id+".png"},"for-season":e.game.game_status==4,"for-team":!1,"for-game":e.game.game_status!=4,"is-tactic-visible":e.isTacticVisible,"is-synchronization":e.isSynchronization,onOpenMediaPlayer:r},null,8,["game","for-season","for-game","is-tactic-visible","is-synchronization"])]))}},[["__scopeId","data-v-32e5c7c6"]]),$0=(e,a)=>{const r=e.__vccOpts||e;for(const[d,g]of a)r[d]=g;return r},Y8t={__name:"ButtonCustom",props:{text:{type:String,default:""},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},padding:{type:String,default:"0px"},borderRadius:{type:String,default:"0px"},borderWidth:{type:String,default:"1px"},borderColor:{type:String,default:"#d9d9d9"},backgroundColor:{type:String,default:"#FFFFFF"},activeBackgroundColor:{type:String,default:""},activeBorderColor:{type:String,default:""},activeBorderWidth:{type:String,default:"1px"},activeFontColor:{type:String,default:""},fontColor:{type:String,default:"#000000"},fontSize:{type:String,default:"16px"},fontFamily:{type:String,default:"Poppins-Regular, sans-serif"},isActive:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:a}){const r=e,d=t.computed(()=>({"--height":r.height,"--width":r.width,"--padding":r.padding,"--border-radius":r.borderRadius,"--border":`solid ${r.borderWidth} ${r.borderColor}`,"--background-color":r.backgroundColor,"--font-color":r.fontColor,"--font-size":r.fontSize,"--font-family":r.fontFamily,"--active-background-color":r.activeBackgroundColor||r.backgroundColor,"--active-border-color":r.activeBorderColor||r.borderColor,"--active-font-color":r.activeFontColor||r.fontColor}));function g(){a("click")}return(i,s)=>(t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass(["button",{active:e.isActive}]),style:t.normalizeStyle(d.value),onClick:g},t.toDisplayString(e.text),7))}},Z8t=$0(Y8t,[["__scopeId","data-v-ea76c1c1"]]);function Bz(e,a){return function(){return e.apply(a,arguments)}}const{toString:X8t}=Object.prototype,{getPrototypeOf:i8}=Object,z_=(e=>a=>{const r=X8t.call(a);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Ud=e=>(e=e.toLowerCase(),a=>z_(a)===e),V_=e=>a=>typeof a===e,{isArray:uf}=Array,j0=V_("undefined");function K8t(e){return e!==null&&!j0(e)&&e.constructor!==null&&!j0(e.constructor)&&_c(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Iz=Ud("ArrayBuffer");function J8t(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&Iz(e.buffer),a}const Q8t=V_("string"),_c=V_("function"),Mz=V_("number"),L_=e=>e!==null&&typeof e=="object",e7t=e=>e===!0||e===!1,D_=e=>{if(z_(e)!=="object")return!1;const a=i8(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},t7t=Ud("Date"),a7t=Ud("File"),r7t=Ud("Blob"),n7t=Ud("FileList"),i7t=e=>L_(e)&&_c(e.pipe),o7t=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||_c(e.append)&&((a=z_(e))==="formdata"||a==="object"&&_c(e.toString)&&e.toString()==="[object FormData]"))},s7t=Ud("URLSearchParams"),l7t=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function U0(e,a,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let d,g;if(typeof e!="object"&&(e=[e]),uf(e))for(d=0,g=e.length;d<g;d++)a.call(null,e[d],d,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let n;for(d=0;d<s;d++)n=i[d],a.call(null,e[n],n,e)}}function Oz(e,a){a=a.toLowerCase();const r=Object.keys(e);let d=r.length,g;for(;d-- >0;)if(g=r[d],a===g.toLowerCase())return g;return null}const Pz=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Fz=e=>!j0(e)&&e!==Pz;function o8(){const{caseless:e}=Fz(this)&&this||{},a={},r=(d,g)=>{const i=e&&Oz(a,g)||g;D_(a[i])&&D_(d)?a[i]=o8(a[i],d):D_(d)?a[i]=o8({},d):uf(d)?a[i]=d.slice():a[i]=d};for(let d=0,g=arguments.length;d<g;d++)arguments[d]&&U0(arguments[d],r);return a}const c7t=(e,a,r,{allOwnKeys:d}={})=>(U0(a,(g,i)=>{r&&_c(g)?e[i]=Bz(g,r):e[i]=g},{allOwnKeys:d}),e),d7t=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),u7t=(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)},p7t=(e,a,r,d)=>{let g,i,s;const n={};if(a=a||{},e==null)return a;do{for(g=Object.getOwnPropertyNames(e),i=g.length;i-- >0;)s=g[i],(!d||d(s,e,a))&&!n[s]&&(a[s]=e[s],n[s]=!0);e=r!==!1&&i8(e)}while(e&&(!r||r(e,a))&&e!==Object.prototype);return a},h7t=(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},f7t=e=>{if(!e)return null;if(uf(e))return e;let a=e.length;if(!Mz(a))return null;const r=new Array(a);for(;a-- >0;)r[a]=e[a];return r},m7t=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&i8(Uint8Array)),g7t=(e,a)=>{const r=(e&&e[Symbol.iterator]).call(e);let d;for(;(d=r.next())&&!d.done;){const g=d.value;a.call(e,g[0],g[1])}},y7t=(e,a)=>{let r;const d=[];for(;(r=e.exec(a))!==null;)d.push(r);return d},_7t=Ud("HTMLFormElement"),v7t=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,r,d){return r.toUpperCase()+d}),Rz=(({hasOwnProperty:e})=>(a,r)=>e.call(a,r))(Object.prototype),b7t=Ud("RegExp"),zz=(e,a)=>{const r=Object.getOwnPropertyDescriptors(e),d={};U0(r,(g,i)=>{let s;(s=a(g,i,e))!==!1&&(d[i]=s||g)}),Object.defineProperties(e,d)},x7t=e=>{zz(e,(a,r)=>{if(_c(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const d=e[r];if(_c(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+"'")})}})},w7t=(e,a)=>{const r={},d=g=>{g.forEach(i=>{r[i]=!0})};return uf(e)?d(e):d(String(e).split(a)),r},k7t=()=>{},C7t=(e,a)=>(e=+e,Number.isFinite(e)?e:a),s8="abcdefghijklmnopqrstuvwxyz",Vz="0123456789",Lz={DIGIT:Vz,ALPHA:s8,ALPHA_DIGIT:s8+s8.toUpperCase()+Vz},E7t=(e=16,a=Lz.ALPHA_DIGIT)=>{let r="";const{length:d}=a;for(;e--;)r+=a[Math.random()*d|0];return r};function T7t(e){return!!(e&&_c(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const S7t=e=>{const a=new Array(10),r=(d,g)=>{if(L_(d)){if(a.indexOf(d)>=0)return;if(!("toJSON"in d)){a[g]=d;const i=uf(d)?[]:{};return U0(d,(s,n)=>{const _=r(s,g+1);!j0(_)&&(i[n]=_)}),a[g]=void 0,i}}return d};return r(e,0)},A7t=Ud("AsyncFunction"),N7t=e=>e&&(L_(e)||_c(e))&&_c(e.then)&&_c(e.catch),Br={isArray:uf,isArrayBuffer:Iz,isBuffer:K8t,isFormData:o7t,isArrayBufferView:J8t,isString:Q8t,isNumber:Mz,isBoolean:e7t,isObject:L_,isPlainObject:D_,isUndefined:j0,isDate:t7t,isFile:a7t,isBlob:r7t,isRegExp:b7t,isFunction:_c,isStream:i7t,isURLSearchParams:s7t,isTypedArray:m7t,isFileList:n7t,forEach:U0,merge:o8,extend:c7t,trim:l7t,stripBOM:d7t,inherits:u7t,toFlatObject:p7t,kindOf:z_,kindOfTest:Ud,endsWith:h7t,toArray:f7t,forEachEntry:g7t,matchAll:y7t,isHTMLForm:_7t,hasOwnProperty:Rz,hasOwnProp:Rz,reduceDescriptors:zz,freezeMethods:x7t,toObjectSet:w7t,toCamelCase:v7t,noop:k7t,toFiniteNumber:C7t,findKey:Oz,global:Pz,isContextDefined:Fz,ALPHABET:Lz,generateString:E7t,isSpecCompliantForm:T7t,toJSONObject:S7t,isAsyncFn:A7t,isThenable:N7t};function Xn(e,a,r,d,g){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),g&&(this.response=g)}Br.inherits(Xn,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:Br.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Dz=Xn.prototype,$z={};["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=>{$z[e]={value:e}}),Object.defineProperties(Xn,$z),Object.defineProperty(Dz,"isAxiosError",{value:!0}),Xn.from=(e,a,r,d,g,i)=>{const s=Object.create(Dz);return Br.toFlatObject(e,s,function(n){return n!==Error.prototype},n=>n!=="isAxiosError"),Xn.call(s,e.message,a,r,d,g),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const B7t=null;function l8(e){return Br.isPlainObject(e)||Br.isArray(e)}function jz(e){return Br.endsWith(e,"[]")?e.slice(0,-2):e}function Uz(e,a,r){return e?e.concat(a).map(function(d,g){return d=jz(d),!r&&g?"["+d+"]":d}).join(r?".":""):a}function I7t(e){return Br.isArray(e)&&!e.some(l8)}const M7t=Br.toFlatObject(Br,{},null,function(e){return/^is[A-Z]/.test(e)});function $_(e,a,r){if(!Br.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,r=Br.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,l){return!Br.isUndefined(l[c])});const d=r.metaTokens,g=r.visitor||f,i=r.dots,s=r.indexes,n=(r.Blob||typeof Blob<"u"&&Blob)&&Br.isSpecCompliantForm(a);if(!Br.isFunction(g))throw new TypeError("visitor must be a function");function _(c){if(c===null)return"";if(Br.isDate(c))return c.toISOString();if(!n&&Br.isBlob(c))throw new Xn("Blob is not supported. Use a Buffer instead.");return Br.isArrayBuffer(c)||Br.isTypedArray(c)?n&&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(Br.endsWith(l,"{}"))l=d?l:l.slice(0,-2),c=JSON.stringify(c);else if(Br.isArray(c)&&I7t(c)||(Br.isFileList(c)||Br.endsWith(l,"[]"))&&(p=Br.toArray(c)))return l=jz(l),p.forEach(function(h,y){!(Br.isUndefined(h)||h===null)&&a.append(s===!0?Uz([l],y,i):s===null?l:l+"[]",_(h))}),!1}return l8(c)?!0:(a.append(Uz(u,l,i),_(c)),!1)}const o=[],m=Object.assign(M7t,{defaultVisitor:f,convertValue:_,isVisitable:l8});function x(c,l){if(!Br.isUndefined(c)){if(o.indexOf(c)!==-1)throw Error("Circular reference detected in "+l.join("."));o.push(c),Br.forEach(c,function(u,p){(!(Br.isUndefined(u)||u===null)&&g.call(a,u,Br.isString(p)?p.trim():p,l,m))===!0&&x(u,l?l.concat(p):[p])}),o.pop()}}if(!Br.isObject(e))throw new TypeError("data must be an object");return x(e),a}function Hz(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return a[r]})}function c8(e,a){this._pairs=[],e&&$_(e,this,a)}const Gz=c8.prototype;Gz.append=function(e,a){this._pairs.push([e,a])},Gz.toString=function(e){const a=e?function(r){return e.call(this,r,Hz)}:Hz;return this._pairs.map(function(r){return a(r[0])+"="+a(r[1])},"").join("&")};function O7t(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Wz(e,a,r){if(!a)return e;const d=r&&r.encode||O7t,g=r&&r.serialize;let i;if(g?i=g(a,r):i=Br.isURLSearchParams(a)?a.toString():new c8(a,r).toString(d),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class P7t{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){Br.forEach(this.handlers,function(r){r!==null&&a(r)})}}const qz=P7t,Yz={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},F7t=typeof URLSearchParams<"u"?URLSearchParams:c8,R7t=typeof FormData<"u"?FormData:null,z7t=typeof Blob<"u"?Blob:null,V7t={isBrowser:!0,classes:{URLSearchParams:F7t,FormData:R7t,Blob:z7t},protocols:["http","https","file","blob","url","data"]},Zz=typeof window<"u"&&typeof document<"u",L7t=(e=>Zz&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),D7t=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),$7t=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Zz,hasStandardBrowserEnv:L7t,hasStandardBrowserWebWorkerEnv:D7t},Symbol.toStringTag,{value:"Module"})),Hd={...$7t,...V7t};function j7t(e,a){return $_(e,new Hd.classes.URLSearchParams,Object.assign({visitor:function(r,d,g,i){return Hd.isNode&&Br.isBuffer(r)?(this.append(d,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},a))}function U7t(e){return Br.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function H7t(e){const a={},r=Object.keys(e);let d;const g=r.length;let i;for(d=0;d<g;d++)i=r[d],a[i]=e[i];return a}function Xz(e){function a(r,d,g,i){let s=r[i++];if(s==="__proto__")return!0;const n=Number.isFinite(+s),_=i>=r.length;return s=!s&&Br.isArray(g)?g.length:s,_?(Br.hasOwnProp(g,s)?g[s]=[g[s],d]:g[s]=d,!n):((!g[s]||!Br.isObject(g[s]))&&(g[s]=[]),a(r,d,g[s],i)&&Br.isArray(g[s])&&(g[s]=H7t(g[s])),!n)}if(Br.isFormData(e)&&Br.isFunction(e.entries)){const r={};return Br.forEachEntry(e,(d,g)=>{a(U7t(d),g,r,0)}),r}return null}function G7t(e,a,r){if(Br.isString(e))try{return(a||JSON.parse)(e),Br.trim(e)}catch(d){if(d.name!=="SyntaxError")throw d}return(r||JSON.stringify)(e)}const d8={transitional:Yz,adapter:["xhr","http"],transformRequest:[function(e,a){const r=a.getContentType()||"",d=r.indexOf("application/json")>-1,g=Br.isObject(e);if(g&&Br.isHTMLForm(e)&&(e=new FormData(e)),Br.isFormData(e))return d?JSON.stringify(Xz(e)):e;if(Br.isArrayBuffer(e)||Br.isBuffer(e)||Br.isStream(e)||Br.isFile(e)||Br.isBlob(e))return e;if(Br.isArrayBufferView(e))return e.buffer;if(Br.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(g){if(r.indexOf("application/x-www-form-urlencoded")>-1)return j7t(e,this.formSerializer).toString();if((i=Br.isFileList(e))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return $_(i?{"files[]":e}:e,s&&new s,this.formSerializer)}}return g||d?(a.setContentType("application/json",!1),G7t(e)):e}],transformResponse:[function(e){const a=this.transitional||d8.transitional,r=a&&a.forcedJSONParsing,d=this.responseType==="json";if(e&&Br.isString(e)&&(r&&!this.responseType||d)){const g=!(a&&a.silentJSONParsing)&&d;try{return JSON.parse(e)}catch(i){if(g)throw i.name==="SyntaxError"?Xn.from(i,Xn.ERR_BAD_RESPONSE,this,null,this.response):i}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Hd.classes.FormData,Blob:Hd.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Br.forEach(["delete","get","head","post","put","patch"],e=>{d8.headers[e]={}});const u8=d8,W7t=Br.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"]),q7t=e=>{const a={};let r,d,g;return e&&e.split(`
|
|
3564
|
+
`)):Y=L.stylize("[Circular]","special")),E(H)){if(X&&G.match(/^\d+$/))return Y;(H=JSON.stringify(""+G)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(H=H.slice(1,-1),H=L.stylize(H,"name")):(H=H.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),H=L.stylize(H,"string"))}return H+": "+Y}function v(L){return Array.isArray(L)}function w(L){return typeof L=="boolean"}function C(L){return L===null}function k(L){return typeof L=="number"}function N(L){return typeof L=="string"}function E(L){return L===void 0}function S(L){return A(L)&&T(L)==="[object RegExp]"}function A(L){return typeof L=="object"&&L!==null}function B(L){return A(L)&&T(L)==="[object Date]"}function I(L){return A(L)&&(T(L)==="[object Error]"||L instanceof Error)}function O(L){return typeof L=="function"}function T(L){return Object.prototype.toString.call(L)}function R(L){return L<10?"0"+L.toString(10):L.toString(10)}s.debuglog=function(L){if(L=L.toUpperCase(),!m[L])if(x.test(L)){var j=_.pid;m[L]=function(){var W=s.format.apply(s,arguments);console.error("%s %d: %s",L,j,W)}}else m[L]=function(){};return m[L]},s.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},s.types=n(41088),s.isArray=v,s.isBoolean=w,s.isNull=C,s.isNullOrUndefined=function(L){return L==null},s.isNumber=k,s.isString=N,s.isSymbol=function(L){return typeof L=="symbol"},s.isUndefined=E,s.isRegExp=S,s.types.isRegExp=S,s.isObject=A,s.isDate=B,s.types.isDate=B,s.isError=I,s.types.isNativeError=I,s.isFunction=O,s.isPrimitive=function(L){return L===null||typeof L=="boolean"||typeof L=="number"||typeof L=="string"||typeof L=="symbol"||L===void 0},s.isBuffer=n(75272);var M=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P(L,j){return Object.prototype.hasOwnProperty.call(L,j)}s.log=function(){var L,j;console.log("%s - %s",(j=[R((L=new Date).getHours()),R(L.getMinutes()),R(L.getSeconds())].join(":"),[L.getDate(),M[L.getMonth()],j].join(" ")),s.format.apply(s,arguments))},s.inherits=n(6768),s._extend=function(L,j){if(!j||!A(j))return L;for(var W=Object.keys(j),$=W.length;$--;)L[W[$]]=j[W[$]];return L};var V=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function D(L,j){if(!L){var W=new Error("Promise was rejected with a falsy value");W.reason=L,L=W}return j(L)}s.promisify=function(L){if(typeof L!="function")throw new TypeError('The "original" argument must be of type Function');if(V&&L[V]){var j;if(typeof(j=L[V])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(j,V,{value:j,enumerable:!1,writable:!1,configurable:!0}),j}function j(){for(var W,$,G=new Promise(function(Y,Z){W=Y,$=Z}),X=[],H=0;H<arguments.length;H++)X.push(arguments[H]);X.push(function(Y,Z){Y?$(Y):W(Z)});try{L.apply(this,X)}catch(Y){$(Y)}return G}return Object.setPrototypeOf(j,Object.getPrototypeOf(L)),V&&Object.defineProperty(j,V,{value:j,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(j,f(L))},s.promisify.custom=V,s.callbackify=function(L){if(typeof L!="function")throw new TypeError('The "original" argument must be of type Function');function j(){for(var W=[],$=0;$<arguments.length;$++)W.push(arguments[$]);var G=W.pop();if(typeof G!="function")throw new TypeError("The last argument must be of type Function");var X=this,H=function(){return G.apply(X,arguments)};L.apply(this,W).then(function(Y){_.nextTick(H.bind(null,null,Y))},function(Y){_.nextTick(D.bind(null,Y,H))})}return Object.setPrototypeOf(j,Object.getPrototypeOf(L)),Object.defineProperties(j,f(L)),j}},5408:function(i,s,n){var _=n(13380);i.exports=function(f){return _("webgl",f)}},96632:function(i,s,n){var _=n(46492),f=n(63436),o=n(57916),m=n(99676),x=n(2304),c=m("Object.prototype.toString"),l=n(46672)(),u=typeof globalThis>"u"?n.g:globalThis,p=f(),h=m("String.prototype.slice"),y=Object.getPrototypeOf,b=m("Array.prototype.indexOf",!0)||function(w,C){for(var k=0;k<w.length;k+=1)if(w[k]===C)return k;return-1},v={__proto__:null};_(p,l&&x&&y?function(w){var C=new u[w];if(Symbol.toStringTag in C){var k=y(C),N=x(k,Symbol.toStringTag);if(!N){var E=y(k);N=x(E,Symbol.toStringTag)}v["$"+w]=o(N.get)}}:function(w){var C=new u[w],k=C.slice||C.set;k&&(v["$"+w]=o(k))}),i.exports=function(w){if(!w||typeof w!="object")return!1;if(!l){var C=h(c(w),8,-1);return b(p,C)>-1?C:C==="Object"&&function(k){var N=!1;return _(v,function(E,S){if(!N)try{E(k),N=h(S,1)}catch{}}),N}(w)}return x?function(k){var N=!1;return _(v,function(E,S){if(!N)try{"$"+E(k)===S&&(N=h(S,1))}catch{}}),N}(w):null}},67020:function(i,s,n){var _=n(38700),f=n(50896),o=_.instance();function m(y){this.local=this.regionalOptions[y||""]||this.regionalOptions[""]}m.prototype=new _.baseCalendar,f(m.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(y,b){if(typeof y=="string"){var v=y.match(c);return v?v[0]:""}var w=this._validateYear(y),C=y.month(),k=""+this.toChineseMonth(w,C);return b&&k.length<2&&(k="0"+k),this.isIntercalaryMonth(w,C)&&(k+="i"),k},monthNames:function(y){if(typeof y=="string"){var b=y.match(l);return b?b[0]:""}var v=this._validateYear(y),w=y.month(),C=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][this.toChineseMonth(v,w)-1];return this.isIntercalaryMonth(v,w)&&(C="闰"+C),C},monthNamesShort:function(y){if(typeof y=="string"){var b=y.match(u);return b?b[0]:""}var v=this._validateYear(y),w=y.month(),C=["一","二","三","四","五","六","七","八","九","十","十一","十二"][this.toChineseMonth(v,w)-1];return this.isIntercalaryMonth(v,w)&&(C="闰"+C),C},parseMonth:function(y,b){y=this._validateYear(y);var v,w=parseInt(b);if(isNaN(w))b[0]==="闰"&&(v=!0,b=b.substring(1)),b[b.length-1]==="月"&&(b=b.substring(0,b.length-1)),w=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(b);else{var C=b[b.length-1];v=C==="i"||C==="I"}return this.toMonthIndex(y,w,v)},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(y,b){if(y.year&&(y=y.year()),typeof y!="number"||y<1888||y>2111)throw b.replace(/\{0\}/,this.local.name);return y},toMonthIndex:function(y,b,v){var w=this.intercalaryMonth(y);if(v&&b!==w||b<1||b>12)throw _.local.invalidMonth.replace(/\{0\}/,this.local.name);return w?!v&&b<=w?b-1:b:b-1},toChineseMonth:function(y,b){y.year&&(b=(y=y.year()).month());var v=this.intercalaryMonth(y);if(b<0||b>(v?12:11))throw _.local.invalidMonth.replace(/\{0\}/,this.local.name);return v?b<v?b+1:b:b+1},intercalaryMonth:function(y){return y=this._validateYear(y),p[y-p[0]]>>13},isIntercalaryMonth:function(y,b){y.year&&(b=(y=y.year()).month());var v=this.intercalaryMonth(y);return!!v&&v===b},leapYear:function(y){return this.intercalaryMonth(y)!==0},weekOfYear:function(y,b,v){var w,C=this._validateYear(y,_.local.invalidyear),k=h[C-h[0]],N=k>>9&4095,E=k>>5&15,S=31&k;(w=o.newDate(N,E,S)).add(4-(w.dayOfWeek()||7),"d");var A=this.toJD(y,b,v)-w.toJD();return 1+Math.floor(A/7)},monthsInYear:function(y){return this.leapYear(y)?13:12},daysInMonth:function(y,b){y.year&&(b=y.month(),y=y.year()),y=this._validateYear(y);var v=p[y-p[0]];if(b>(v>>13?12:11))throw _.local.invalidMonth.replace(/\{0\}/,this.local.name);return v&1<<12-b?30:29},weekDay:function(y,b,v){return(this.dayOfWeek(y,b,v)||7)<6},toJD:function(y,b,v){var w=this._validate(y,k,v,_.local.invalidDate);y=this._validateYear(w.year()),b=w.month(),v=w.day();var C=this.isIntercalaryMonth(y,b),k=this.toChineseMonth(y,b),N=function(E,S,A,B,I){var O,T,R;if(typeof E=="object")T=E,O=S||{};else{var M;if(!(typeof E=="number"&&E>=1888&&E<=2111))throw new Error("Lunar year outside range 1888-2111");if(!(typeof S=="number"&&S>=1&&S<=12))throw new Error("Lunar month outside range 1 - 12");if(!(typeof A=="number"&&A>=1&&A<=30))throw new Error("Lunar day outside range 1 - 30");typeof B=="object"?(M=!1,O=B):(M=!!B,O={}),T={year:E,month:S,day:A,isIntercalary:M}}R=T.day-1;var P,V=p[T.year-p[0]],D=V>>13;P=D&&(T.month>D||T.isIntercalary)?T.month:T.month-1;for(var L=0;L<P;L++)R+=V&1<<12-L?30:29;var j=h[T.year-h[0]],W=new Date(j>>9&4095,(j>>5&15)-1,(31&j)+R);return O.year=W.getFullYear(),O.month=1+W.getMonth(),O.day=W.getDate(),O}(y,k,v,C);return o.toJD(N.year,N.month,N.day)},fromJD:function(y){var b=o.fromJD(y),v=function(C,k,N,E){var S,A;if(typeof C=="object")S=C,A=k||{};else{if(!(typeof C=="number"&&C>=1888&&C<=2111))throw new Error("Solar year outside range 1888-2111");if(!(typeof k=="number"&&k>=1&&k<=12))throw new Error("Solar month outside range 1 - 12");if(!(typeof N=="number"&&N>=1&&N<=31))throw new Error("Solar day outside range 1 - 31");S={year:C,month:k,day:N},A={}}var B=h[S.year-h[0]],I=S.year<<9|S.month<<5|S.day;A.year=I>=B?S.year:S.year-1,B=h[A.year-h[0]];var O,T=new Date(B>>9&4095,(B>>5&15)-1,31&B),R=new Date(S.year,S.month-1,S.day);O=Math.round((R-T)/864e5);var M,P=p[A.year-p[0]];for(M=0;M<13;M++){var V=P&1<<12-M?30:29;if(O<V)break;O-=V}var D=P>>13;return!D||M<D?(A.isIntercalary=!1,A.month=1+M):M===D?(A.isIntercalary=!0,A.month=M):(A.isIntercalary=!1,A.month=M),A.day=1+O,A}(b.year(),b.month(),b.day()),w=this.toMonthIndex(v.year,v.month,v.isIntercalary);return this.newDate(v.year,w,v.day)},fromString:function(y){var b=y.match(x),v=this._validateYear(+b[1]),w=+b[2],C=!!b[3],k=this.toMonthIndex(v,w,C),N=+b[4];return this.newDate(v,k,N)},add:function(y,b,v){var w=y.year(),C=y.month(),k=this.isIntercalaryMonth(w,C),N=this.toChineseMonth(w,C),E=Object.getPrototypeOf(m.prototype).add.call(this,y,b,v);if(v==="y"){var S=E.year(),A=E.month(),B=this.isIntercalaryMonth(S,N),I=k&&B?this.toMonthIndex(S,N,!0):this.toMonthIndex(S,N,!1);I!==A&&E.month(I)}return E}});var x=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,c=/^\d?\d[iI]?/m,l=/^闰?十?[一二三四五六七八九]?月/m,u=/^闰?十?[一二三四五六七八九]?/m;_.calendars.chinese=m;var p=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],h=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904]},89792:function(i,s,n){var _=n(38700),f=n(50896);function o(m){this.local=this.regionalOptions[m||""]||this.regionalOptions[""]}o.prototype=new _.baseCalendar,f(o.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(m){var x=this._validate(m,this.minMonth,this.minDay,_.local.invalidYear);return(m=x.year()+(x.year()<0?1:0))%4==3||m%4==-1},monthsInYear:function(m){return this._validate(m,this.minMonth,this.minDay,_.local.invalidYear||_.regionalOptions[""].invalidYear),13},weekOfYear:function(m,x,c){var l=this.newDate(m,x,c);return l.add(-l.dayOfWeek(),"d"),Math.floor((l.dayOfYear()-1)/7)+1},daysInMonth:function(m,x){var c=this._validate(m,x,this.minDay,_.local.invalidMonth);return this.daysPerMonth[c.month()-1]+(c.month()===13&&this.leapYear(c.year())?1:0)},weekDay:function(m,x,c){return(this.dayOfWeek(m,x,c)||7)<6},toJD:function(m,x,c){var l=this._validate(m,x,c,_.local.invalidDate);return(m=l.year())<0&&m++,l.day()+30*(l.month()-1)+365*(m-1)+Math.floor(m/4)+this.jdEpoch-1},fromJD:function(m){var x=Math.floor(m)+.5-this.jdEpoch,c=Math.floor((x-Math.floor((x+366)/1461))/365)+1;c<=0&&c--,x=Math.floor(m)+.5-this.newDate(c,1,1).toJD();var l=Math.floor(x/30)+1,u=x-30*(l-1)+1;return this.newDate(c,l,u)}}),_.calendars.coptic=o},55668:function(i,s,n){var _=n(38700),f=n(50896);function o(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}o.prototype=new _.baseCalendar,f(o.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(x){return this._validate(x,this.minMonth,this.minDay,_.local.invalidYear),!1},monthsInYear:function(x){return this._validate(x,this.minMonth,this.minDay,_.local.invalidYear),13},daysInYear:function(x){return this._validate(x,this.minMonth,this.minDay,_.local.invalidYear),400},weekOfYear:function(x,c,l){var u=this.newDate(x,c,l);return u.add(-u.dayOfWeek(),"d"),Math.floor((u.dayOfYear()-1)/8)+1},daysInMonth:function(x,c){var l=this._validate(x,c,this.minDay,_.local.invalidMonth);return this.daysPerMonth[l.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(x,c,l){return(this._validate(x,c,l,_.local.invalidDate).day()+1)%8},weekDay:function(x,c,l){var u=this.dayOfWeek(x,c,l);return u>=2&&u<=6},extraInfo:function(x,c,l){var u=this._validate(x,c,l,_.local.invalidDate);return{century:m[Math.floor((u.year()-1)/100)+1]||""}},toJD:function(x,c,l){var u=this._validate(x,c,l,_.local.invalidDate);return x=u.year()+(u.year()<0?1:0),c=u.month(),(l=u.day())+(c>1?16:0)+(c>2?32*(c-2):0)+400*(x-1)+this.jdEpoch-1},fromJD:function(x){x=Math.floor(x+.5)-Math.floor(this.jdEpoch)-1;var c=Math.floor(x/400)+1;x-=400*(c-1),x+=x>15?16:0;var l=Math.floor(x/32)+1,u=x-32*(l-1)+1;return this.newDate(c<=0?c-1:c,l,u)}});var m={20:"Fruitbat",21:"Anchovy"};_.calendars.discworld=o},65168:function(i,s,n){var _=n(38700),f=n(50896);function o(m){this.local=this.regionalOptions[m||""]||this.regionalOptions[""]}o.prototype=new _.baseCalendar,f(o.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(m){var x=this._validate(m,this.minMonth,this.minDay,_.local.invalidYear);return(m=x.year()+(x.year()<0?1:0))%4==3||m%4==-1},monthsInYear:function(m){return this._validate(m,this.minMonth,this.minDay,_.local.invalidYear||_.regionalOptions[""].invalidYear),13},weekOfYear:function(m,x,c){var l=this.newDate(m,x,c);return l.add(-l.dayOfWeek(),"d"),Math.floor((l.dayOfYear()-1)/7)+1},daysInMonth:function(m,x){var c=this._validate(m,x,this.minDay,_.local.invalidMonth);return this.daysPerMonth[c.month()-1]+(c.month()===13&&this.leapYear(c.year())?1:0)},weekDay:function(m,x,c){return(this.dayOfWeek(m,x,c)||7)<6},toJD:function(m,x,c){var l=this._validate(m,x,c,_.local.invalidDate);return(m=l.year())<0&&m++,l.day()+30*(l.month()-1)+365*(m-1)+Math.floor(m/4)+this.jdEpoch-1},fromJD:function(m){var x=Math.floor(m)+.5-this.jdEpoch,c=Math.floor((x-Math.floor((x+366)/1461))/365)+1;c<=0&&c--,x=Math.floor(m)+.5-this.newDate(c,1,1).toJD();var l=Math.floor(x/30)+1,u=x-30*(l-1)+1;return this.newDate(c,l,u)}}),_.calendars.ethiopian=o},2084:function(i,s,n){var _=n(38700),f=n(50896);function o(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}function m(x,c){return x-c*Math.floor(x/c)}o.prototype=new _.baseCalendar,f(o.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(x){var c=this._validate(x,this.minMonth,this.minDay,_.local.invalidYear);return this._leapYear(c.year())},_leapYear:function(x){return m(7*(x=x<0?x+1:x)+1,19)<7},monthsInYear:function(x){return this._validate(x,this.minMonth,this.minDay,_.local.invalidYear),this._leapYear(x.year?x.year():x)?13:12},weekOfYear:function(x,c,l){var u=this.newDate(x,c,l);return u.add(-u.dayOfWeek(),"d"),Math.floor((u.dayOfYear()-1)/7)+1},daysInYear:function(x){return x=this._validate(x,this.minMonth,this.minDay,_.local.invalidYear).year(),this.toJD(x===-1?1:x+1,7,1)-this.toJD(x,7,1)},daysInMonth:function(x,c){return x.year&&(c=x.month(),x=x.year()),this._validate(x,c,this.minDay,_.local.invalidMonth),c===12&&this.leapYear(x)||c===8&&m(this.daysInYear(x),10)===5?30:c===9&&m(this.daysInYear(x),10)===3?29:this.daysPerMonth[c-1]},weekDay:function(x,c,l){return this.dayOfWeek(x,c,l)!==6},extraInfo:function(x,c,l){var u=this._validate(x,c,l,_.local.invalidDate);return{yearType:(this.leapYear(u)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(u)%10-3]}},toJD:function(x,c,l){var u=this._validate(x,c,l,_.local.invalidDate);x=u.year(),c=u.month(),l=u.day();var p=x<=0?x+1:x,h=this.jdEpoch+this._delay1(p)+this._delay2(p)+l+1;if(c<7){for(var y=7;y<=this.monthsInYear(x);y++)h+=this.daysInMonth(x,y);for(y=1;y<c;y++)h+=this.daysInMonth(x,y)}else for(y=7;y<c;y++)h+=this.daysInMonth(x,y);return h},_delay1:function(x){var c=Math.floor((235*x-234)/19),l=12084+13753*c,u=29*c+Math.floor(l/25920);return m(3*(u+1),7)<3&&u++,u},_delay2:function(x){var c=this._delay1(x-1),l=this._delay1(x);return this._delay1(x+1)-l==356?2:l-c==382?1:0},fromJD:function(x){x=Math.floor(x)+.5;for(var c=Math.floor(98496*(x-this.jdEpoch)/35975351)-1;x>=this.toJD(c===-1?1:c+1,7,1);)c++;for(var l=x<this.toJD(c,1,1)?7:1;x>this.toJD(c,l,this.daysInMonth(c,l));)l++;var u=x-this.toJD(c,l,1)+1;return this.newDate(c,l,u)}}),_.calendars.hebrew=o},26368:function(i,s,n){var _=n(38700),f=n(50896);function o(m){this.local=this.regionalOptions[m||""]||this.regionalOptions[""]}o.prototype=new _.baseCalendar,f(o.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(m){return(11*this._validate(m,this.minMonth,this.minDay,_.local.invalidYear).year()+14)%30<11},weekOfYear:function(m,x,c){var l=this.newDate(m,x,c);return l.add(-l.dayOfWeek(),"d"),Math.floor((l.dayOfYear()-1)/7)+1},daysInYear:function(m){return this.leapYear(m)?355:354},daysInMonth:function(m,x){var c=this._validate(m,x,this.minDay,_.local.invalidMonth);return this.daysPerMonth[c.month()-1]+(c.month()===12&&this.leapYear(c.year())?1:0)},weekDay:function(m,x,c){return this.dayOfWeek(m,x,c)!==5},toJD:function(m,x,c){var l=this._validate(m,x,c,_.local.invalidDate);return m=l.year(),x=l.month(),m=m<=0?m+1:m,(c=l.day())+Math.ceil(29.5*(x-1))+354*(m-1)+Math.floor((3+11*m)/30)+this.jdEpoch-1},fromJD:function(m){m=Math.floor(m)+.5;var x=Math.floor((30*(m-this.jdEpoch)+10646)/10631);x=x<=0?x-1:x;var c=Math.min(12,Math.ceil((m-29-this.toJD(x,1,1))/29.5)+1),l=m-this.toJD(x,c,1)+1;return this.newDate(x,c,l)}}),_.calendars.islamic=o},24747:function(i,s,n){var _=n(38700),f=n(50896);function o(m){this.local=this.regionalOptions[m||""]||this.regionalOptions[""]}o.prototype=new _.baseCalendar,f(o.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(m){var x=this._validate(m,this.minMonth,this.minDay,_.local.invalidYear);return(m=x.year()<0?x.year()+1:x.year())%4==0},weekOfYear:function(m,x,c){var l=this.newDate(m,x,c);return l.add(4-(l.dayOfWeek()||7),"d"),Math.floor((l.dayOfYear()-1)/7)+1},daysInMonth:function(m,x){var c=this._validate(m,x,this.minDay,_.local.invalidMonth);return this.daysPerMonth[c.month()-1]+(c.month()===2&&this.leapYear(c.year())?1:0)},weekDay:function(m,x,c){return(this.dayOfWeek(m,x,c)||7)<6},toJD:function(m,x,c){var l=this._validate(m,x,c,_.local.invalidDate);return m=l.year(),x=l.month(),c=l.day(),m<0&&m++,x<=2&&(m--,x+=12),Math.floor(365.25*(m+4716))+Math.floor(30.6001*(x+1))+c-1524.5},fromJD:function(m){var x=Math.floor(m+.5)+1524,c=Math.floor((x-122.1)/365.25),l=Math.floor(365.25*c),u=Math.floor((x-l)/30.6001),p=u-Math.floor(u<14?1:13),h=c-Math.floor(p>2?4716:4715),y=x-l-Math.floor(30.6001*u);return h<=0&&h--,this.newDate(h,p,y)}}),_.calendars.julian=o},65616:function(i,s,n){var _=n(38700),f=n(50896);function o(c){this.local=this.regionalOptions[c||""]||this.regionalOptions[""]}function m(c,l){return c-l*Math.floor(c/l)}function x(c,l){return m(c-1,l)+1}o.prototype=new _.baseCalendar,f(o.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(c){return this._validate(c,this.minMonth,this.minDay,_.local.invalidYear),!1},formatYear:function(c){c=this._validate(c,this.minMonth,this.minDay,_.local.invalidYear).year();var l=Math.floor(c/400);return c%=400,c+=c<0?400:0,l+"."+Math.floor(c/20)+"."+c%20},forYear:function(c){if((c=c.split(".")).length<3)throw"Invalid Mayan year";for(var l=0,u=0;u<c.length;u++){var p=parseInt(c[u],10);if(Math.abs(p)>19||u>0&&p<0)throw"Invalid Mayan year";l=20*l+p}return l},monthsInYear:function(c){return this._validate(c,this.minMonth,this.minDay,_.local.invalidYear),18},weekOfYear:function(c,l,u){return this._validate(c,l,u,_.local.invalidDate),0},daysInYear:function(c){return this._validate(c,this.minMonth,this.minDay,_.local.invalidYear),360},daysInMonth:function(c,l){return this._validate(c,l,this.minDay,_.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(c,l,u){return this._validate(c,l,u,_.local.invalidDate).day()},weekDay:function(c,l,u){return this._validate(c,l,u,_.local.invalidDate),!0},extraInfo:function(c,l,u){var p=this._validate(c,l,u,_.local.invalidDate).toJD(),h=this._toHaab(p),y=this._toTzolkin(p);return{haabMonthName:this.local.haabMonths[h[0]-1],haabMonth:h[0],haabDay:h[1],tzolkinDayName:this.local.tzolkinMonths[y[0]-1],tzolkinDay:y[0],tzolkinTrecena:y[1]}},_toHaab:function(c){var l=m(8+(c-=this.jdEpoch)+340,365);return[Math.floor(l/20)+1,m(l,20)]},_toTzolkin:function(c){return[x(20+(c-=this.jdEpoch),20),x(c+4,13)]},toJD:function(c,l,u){var p=this._validate(c,l,u,_.local.invalidDate);return p.day()+20*p.month()+360*p.year()+this.jdEpoch},fromJD:function(c){c=Math.floor(c)+.5-this.jdEpoch;var l=Math.floor(c/360);c%=360,c+=c<0?360:0;var u=Math.floor(c/20),p=c%20;return this.newDate(l,u,p)}}),_.calendars.mayan=o},30632:function(i,s,n){var _=n(38700),f=n(50896);function o(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}o.prototype=new _.baseCalendar;var m=_.instance("gregorian");f(o.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(x){var c=this._validate(x,this.minMonth,this.minDay,_.local.invalidYear||_.regionalOptions[""].invalidYear);return m.leapYear(c.year()+(c.year()<1?1:0)+1469)},weekOfYear:function(x,c,l){var u=this.newDate(x,c,l);return u.add(1-(u.dayOfWeek()||7),"d"),Math.floor((u.dayOfYear()-1)/7)+1},daysInMonth:function(x,c){var l=this._validate(x,c,this.minDay,_.local.invalidMonth);return this.daysPerMonth[l.month()-1]+(l.month()===12&&this.leapYear(l.year())?1:0)},weekDay:function(x,c,l){return(this.dayOfWeek(x,c,l)||7)<6},toJD:function(x,c,l){var u=this._validate(x,c,l,_.local.invalidMonth);(x=u.year())<0&&x++;for(var p=u.day(),h=1;h<u.month();h++)p+=this.daysPerMonth[h-1];return p+m.toJD(x+1468,3,13)},fromJD:function(x){x=Math.floor(x+.5);for(var c=Math.floor((x-(this.jdEpoch-1))/366);x>=this.toJD(c+1,1,1);)c++;for(var l=x-Math.floor(this.toJD(c,1,1)+.5)+1,u=1;l>this.daysInMonth(c,u);)l-=this.daysInMonth(c,u),u++;return this.newDate(c,u,l)}}),_.calendars.nanakshahi=o},73040:function(i,s,n){var _=n(38700),f=n(50896);function o(m){this.local=this.regionalOptions[m||""]||this.regionalOptions[""]}o.prototype=new _.baseCalendar,f(o.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(m){return this.daysInYear(m)!==this.daysPerYear},weekOfYear:function(m,x,c){var l=this.newDate(m,x,c);return l.add(-l.dayOfWeek(),"d"),Math.floor((l.dayOfYear()-1)/7)+1},daysInYear:function(m){if(m=this._validate(m,this.minMonth,this.minDay,_.local.invalidYear).year(),this.NEPALI_CALENDAR_DATA[m]===void 0)return this.daysPerYear;for(var x=0,c=this.minMonth;c<=12;c++)x+=this.NEPALI_CALENDAR_DATA[m][c];return x},daysInMonth:function(m,x){return m.year&&(x=m.month(),m=m.year()),this._validate(m,x,this.minDay,_.local.invalidMonth),this.NEPALI_CALENDAR_DATA[m]===void 0?this.daysPerMonth[x-1]:this.NEPALI_CALENDAR_DATA[m][x]},weekDay:function(m,x,c){return this.dayOfWeek(m,x,c)!==6},toJD:function(m,x,c){var l=this._validate(m,x,c,_.local.invalidDate);m=l.year(),x=l.month(),c=l.day();var u=_.instance(),p=0,h=x,y=m;this._createMissingCalendarData(m);var b=m-(h>9||h===9&&c>=this.NEPALI_CALENDAR_DATA[y][0]?56:57);for(x!==9&&(p=c,h--);h!==9;)h<=0&&(h=12,y--),p+=this.NEPALI_CALENDAR_DATA[y][h],h--;return x===9?(p+=c-this.NEPALI_CALENDAR_DATA[y][0])<0&&(p+=u.daysInYear(b)):p+=this.NEPALI_CALENDAR_DATA[y][9]-this.NEPALI_CALENDAR_DATA[y][0],u.newDate(b,1,1).add(p,"d").toJD()},fromJD:function(m){var x=_.instance().fromJD(m),c=x.year(),l=x.dayOfYear(),u=c+56;this._createMissingCalendarData(u);for(var p=9,h=this.NEPALI_CALENDAR_DATA[u][0],y=this.NEPALI_CALENDAR_DATA[u][p]-h+1;l>y;)++p>12&&(p=1,u++),y+=this.NEPALI_CALENDAR_DATA[u][p];var b=this.NEPALI_CALENDAR_DATA[u][p]-(y-l);return this.newDate(u,p,b)},_createMissingCalendarData:function(m){var x=this.daysPerMonth.slice(0);x.unshift(17);for(var c=m-1;c<m+2;c++)this.NEPALI_CALENDAR_DATA[c]===void 0&&(this.NEPALI_CALENDAR_DATA[c]=x)},NEPALI_CALENDAR_DATA:{1970:[18,31,31,32,31,31,31,30,29,30,29,30,30],1971:[18,31,31,32,31,32,30,30,29,30,29,30,30],1972:[17,31,32,31,32,31,30,30,30,29,29,30,30],1973:[19,30,32,31,32,31,30,30,30,29,30,29,31],1974:[19,31,31,32,30,31,31,30,29,30,29,30,30],1975:[18,31,31,32,32,30,31,30,29,30,29,30,30],1976:[17,31,32,31,32,31,30,30,30,29,29,30,31],1977:[18,31,32,31,32,31,31,29,30,29,30,29,31],1978:[18,31,31,32,31,31,31,30,29,30,29,30,30],1979:[18,31,31,32,32,31,30,30,29,30,29,30,30],1980:[17,31,32,31,32,31,30,30,30,29,29,30,31],1981:[18,31,31,31,32,31,31,29,30,30,29,30,30],1982:[18,31,31,32,31,31,31,30,29,30,29,30,30],1983:[18,31,31,32,32,31,30,30,29,30,29,30,30],1984:[17,31,32,31,32,31,30,30,30,29,29,30,31],1985:[18,31,31,31,32,31,31,29,30,30,29,30,30],1986:[18,31,31,32,31,31,31,30,29,30,29,30,30],1987:[18,31,32,31,32,31,30,30,29,30,29,30,30],1988:[17,31,32,31,32,31,30,30,30,29,29,30,31],1989:[18,31,31,31,32,31,31,30,29,30,29,30,30],1990:[18,31,31,32,31,31,31,30,29,30,29,30,30],1991:[18,31,32,31,32,31,30,30,29,30,29,30,30],1992:[17,31,32,31,32,31,30,30,30,29,30,29,31],1993:[18,31,31,31,32,31,31,30,29,30,29,30,30],1994:[18,31,31,32,31,31,31,30,29,30,29,30,30],1995:[17,31,32,31,32,31,30,30,30,29,29,30,30],1996:[17,31,32,31,32,31,30,30,30,29,30,29,31],1997:[18,31,31,32,31,31,31,30,29,30,29,30,30],1998:[18,31,31,32,31,31,31,30,29,30,29,30,30],1999:[17,31,32,31,32,31,30,30,30,29,29,30,31],2e3:[17,30,32,31,32,31,30,30,30,29,30,29,31],2001:[18,31,31,32,31,31,31,30,29,30,29,30,30],2002:[18,31,31,32,32,31,30,30,29,30,29,30,30],2003:[17,31,32,31,32,31,30,30,30,29,29,30,31],2004:[17,30,32,31,32,31,30,30,30,29,30,29,31],2005:[18,31,31,32,31,31,31,30,29,30,29,30,30],2006:[18,31,31,32,32,31,30,30,29,30,29,30,30],2007:[17,31,32,31,32,31,30,30,30,29,29,30,31],2008:[17,31,31,31,32,31,31,29,30,30,29,29,31],2009:[18,31,31,32,31,31,31,30,29,30,29,30,30],2010:[18,31,31,32,32,31,30,30,29,30,29,30,30],2011:[17,31,32,31,32,31,30,30,30,29,29,30,31],2012:[17,31,31,31,32,31,31,29,30,30,29,30,30],2013:[18,31,31,32,31,31,31,30,29,30,29,30,30],2014:[18,31,31,32,32,31,30,30,29,30,29,30,30],2015:[17,31,32,31,32,31,30,30,30,29,29,30,31],2016:[17,31,31,31,32,31,31,29,30,30,29,30,30],2017:[18,31,31,32,31,31,31,30,29,30,29,30,30],2018:[18,31,32,31,32,31,30,30,29,30,29,30,30],2019:[17,31,32,31,32,31,30,30,30,29,30,29,31],2020:[17,31,31,31,32,31,31,30,29,30,29,30,30],2021:[18,31,31,32,31,31,31,30,29,30,29,30,30],2022:[17,31,32,31,32,31,30,30,30,29,29,30,30],2023:[17,31,32,31,32,31,30,30,30,29,30,29,31],2024:[17,31,31,31,32,31,31,30,29,30,29,30,30],2025:[18,31,31,32,31,31,31,30,29,30,29,30,30],2026:[17,31,32,31,32,31,30,30,30,29,29,30,31],2027:[17,30,32,31,32,31,30,30,30,29,30,29,31],2028:[17,31,31,32,31,31,31,30,29,30,29,30,30],2029:[18,31,31,32,31,32,30,30,29,30,29,30,30],2030:[17,31,32,31,32,31,30,30,30,30,30,30,31],2031:[17,31,32,31,32,31,31,31,31,31,31,31,31],2032:[17,32,32,32,32,32,32,32,32,32,32,32,32],2033:[18,31,31,32,32,31,30,30,29,30,29,30,30],2034:[17,31,32,31,32,31,30,30,30,29,29,30,31],2035:[17,30,32,31,32,31,31,29,30,30,29,29,31],2036:[17,31,31,32,31,31,31,30,29,30,29,30,30],2037:[18,31,31,32,32,31,30,30,29,30,29,30,30],2038:[17,31,32,31,32,31,30,30,30,29,29,30,31],2039:[17,31,31,31,32,31,31,29,30,30,29,30,30],2040:[17,31,31,32,31,31,31,30,29,30,29,30,30],2041:[18,31,31,32,32,31,30,30,29,30,29,30,30],2042:[17,31,32,31,32,31,30,30,30,29,29,30,31],2043:[17,31,31,31,32,31,31,29,30,30,29,30,30],2044:[17,31,31,32,31,31,31,30,29,30,29,30,30],2045:[18,31,32,31,32,31,30,30,29,30,29,30,30],2046:[17,31,32,31,32,31,30,30,30,29,29,30,31],2047:[17,31,31,31,32,31,31,30,29,30,29,30,30],2048:[17,31,31,32,31,31,31,30,29,30,29,30,30],2049:[17,31,32,31,32,31,30,30,30,29,29,30,30],2050:[17,31,32,31,32,31,30,30,30,29,30,29,31],2051:[17,31,31,31,32,31,31,30,29,30,29,30,30],2052:[17,31,31,32,31,31,31,30,29,30,29,30,30],2053:[17,31,32,31,32,31,30,30,30,29,29,30,30],2054:[17,31,32,31,32,31,30,30,30,29,30,29,31],2055:[17,31,31,32,31,31,31,30,29,30,30,29,30],2056:[17,31,31,32,31,32,30,30,29,30,29,30,30],2057:[17,31,32,31,32,31,30,30,30,29,29,30,31],2058:[17,30,32,31,32,31,30,30,30,29,30,29,31],2059:[17,31,31,32,31,31,31,30,29,30,29,30,30],2060:[17,31,31,32,32,31,30,30,29,30,29,30,30],2061:[17,31,32,31,32,31,30,30,30,29,29,30,31],2062:[17,30,32,31,32,31,31,29,30,29,30,29,31],2063:[17,31,31,32,31,31,31,30,29,30,29,30,30],2064:[17,31,31,32,32,31,30,30,29,30,29,30,30],2065:[17,31,32,31,32,31,30,30,30,29,29,30,31],2066:[17,31,31,31,32,31,31,29,30,30,29,29,31],2067:[17,31,31,32,31,31,31,30,29,30,29,30,30],2068:[17,31,31,32,32,31,30,30,29,30,29,30,30],2069:[17,31,32,31,32,31,30,30,30,29,29,30,31],2070:[17,31,31,31,32,31,31,29,30,30,29,30,30],2071:[17,31,31,32,31,31,31,30,29,30,29,30,30],2072:[17,31,32,31,32,31,30,30,29,30,29,30,30],2073:[17,31,32,31,32,31,30,30,30,29,29,30,31],2074:[17,31,31,31,32,31,31,30,29,30,29,30,30],2075:[17,31,31,32,31,31,31,30,29,30,29,30,30],2076:[16,31,32,31,32,31,30,30,30,29,29,30,30],2077:[17,31,32,31,32,31,30,30,30,29,30,29,31],2078:[17,31,31,31,32,31,31,30,29,30,29,30,30],2079:[17,31,31,32,31,31,31,30,29,30,29,30,30],2080:[16,31,32,31,32,31,30,30,30,29,29,30,30],2081:[17,31,31,32,32,31,30,30,30,29,30,30,30],2082:[17,31,32,31,32,31,30,30,30,29,30,30,30],2083:[17,31,31,32,31,31,30,30,30,29,30,30,30],2084:[17,31,31,32,31,31,30,30,30,29,30,30,30],2085:[17,31,32,31,32,31,31,30,30,29,30,30,30],2086:[17,31,32,31,32,31,30,30,30,29,30,30,30],2087:[16,31,31,32,31,31,31,30,30,29,30,30,30],2088:[16,30,31,32,32,30,31,30,30,29,30,30,30],2089:[17,31,32,31,32,31,30,30,30,29,30,30,30],2090:[17,31,32,31,32,31,30,30,30,29,30,30,30],2091:[16,31,31,32,31,31,31,30,30,29,30,30,30],2092:[16,31,31,32,32,31,30,30,30,29,30,30,30],2093:[17,31,32,31,32,31,30,30,30,29,30,30,30],2094:[17,31,31,32,31,31,30,30,30,29,30,30,30],2095:[17,31,31,32,31,31,31,30,29,30,30,30,30],2096:[17,30,31,32,32,31,30,30,29,30,29,30,30],2097:[17,31,32,31,32,31,30,30,30,29,30,30,30],2098:[17,31,31,32,31,31,31,29,30,29,30,30,31],2099:[17,31,31,32,31,31,31,30,29,29,30,30,30],2100:[17,31,32,31,32,30,31,30,29,30,29,30,30]}}),_.calendars.nepali=o},1104:function(i,s,n){var _=n(38700),f=n(50896);function o(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}function m(x,c){return x-c*Math.floor(x/c)}o.prototype=new _.baseCalendar,f(o.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Day","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Day","Bah","Esf"],dayNames:["Yekshambe","Doshambe","Seshambe","Chæharshambe","Panjshambe","Jom'e","Shambe"],dayNamesShort:["Yek","Do","Se","Chæ","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(x){var c=this._validate(x,this.minMonth,this.minDay,_.local.invalidYear);return 682*((c.year()-(c.year()>0?474:473))%2820+474+38)%2816<682},weekOfYear:function(x,c,l){var u=this.newDate(x,c,l);return u.add(-(u.dayOfWeek()+1)%7,"d"),Math.floor((u.dayOfYear()-1)/7)+1},daysInMonth:function(x,c){var l=this._validate(x,c,this.minDay,_.local.invalidMonth);return this.daysPerMonth[l.month()-1]+(l.month()===12&&this.leapYear(l.year())?1:0)},weekDay:function(x,c,l){return this.dayOfWeek(x,c,l)!==5},toJD:function(x,c,l){var u=this._validate(x,c,l,_.local.invalidDate);x=u.year(),c=u.month(),l=u.day();var p=x-(x>=0?474:473),h=474+m(p,2820);return l+(c<=7?31*(c-1):30*(c-1)+6)+Math.floor((682*h-110)/2816)+365*(h-1)+1029983*Math.floor(p/2820)+this.jdEpoch-1},fromJD:function(x){var c=(x=Math.floor(x)+.5)-this.toJD(475,1,1),l=Math.floor(c/1029983),u=m(c,1029983),p=2820;if(u!==1029982){var h=Math.floor(u/366),y=m(u,366);p=Math.floor((2134*h+2816*y+2815)/1028522)+h+1}var b=p+2820*l+474;b=b<=0?b-1:b;var v=x-this.toJD(b,1,1)+1,w=v<=186?Math.ceil(v/31):Math.ceil((v-6)/30),C=x-this.toJD(b,w,1)+1;return this.newDate(b,w,C)}}),_.calendars.persian=o,_.calendars.jalali=o},51456:function(i,s,n){var _=n(38700),f=n(50896),o=_.instance();function m(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}m.prototype=new _.baseCalendar,f(m.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(x){var c=this._validate(x,this.minMonth,this.minDay,_.local.invalidYear);return x=this._t2gYear(c.year()),o.leapYear(x)},weekOfYear:function(x,c,l){var u=this._validate(x,this.minMonth,this.minDay,_.local.invalidYear);return x=this._t2gYear(u.year()),o.weekOfYear(x,u.month(),u.day())},daysInMonth:function(x,c){var l=this._validate(x,c,this.minDay,_.local.invalidMonth);return this.daysPerMonth[l.month()-1]+(l.month()===2&&this.leapYear(l.year())?1:0)},weekDay:function(x,c,l){return(this.dayOfWeek(x,c,l)||7)<6},toJD:function(x,c,l){var u=this._validate(x,c,l,_.local.invalidDate);return x=this._t2gYear(u.year()),o.toJD(x,u.month(),u.day())},fromJD:function(x){var c=o.fromJD(x),l=this._g2tYear(c.year());return this.newDate(l,c.month(),c.day())},_t2gYear:function(x){return x+this.yearsOffset+(x>=-this.yearsOffset&&x<=-1?1:0)},_g2tYear:function(x){return x-this.yearsOffset-(x>=1&&x<=this.yearsOffset?1:0)}}),_.calendars.taiwan=m},4592:function(i,s,n){var _=n(38700),f=n(50896),o=_.instance();function m(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}m.prototype=new _.baseCalendar,f(m.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(x){var c=this._validate(x,this.minMonth,this.minDay,_.local.invalidYear);return x=this._t2gYear(c.year()),o.leapYear(x)},weekOfYear:function(x,c,l){var u=this._validate(x,this.minMonth,this.minDay,_.local.invalidYear);return x=this._t2gYear(u.year()),o.weekOfYear(x,u.month(),u.day())},daysInMonth:function(x,c){var l=this._validate(x,c,this.minDay,_.local.invalidMonth);return this.daysPerMonth[l.month()-1]+(l.month()===2&&this.leapYear(l.year())?1:0)},weekDay:function(x,c,l){return(this.dayOfWeek(x,c,l)||7)<6},toJD:function(x,c,l){var u=this._validate(x,c,l,_.local.invalidDate);return x=this._t2gYear(u.year()),o.toJD(x,u.month(),u.day())},fromJD:function(x){var c=o.fromJD(x),l=this._g2tYear(c.year());return this.newDate(l,c.month(),c.day())},_t2gYear:function(x){return x-this.yearsOffset-(x>=1&&x<=this.yearsOffset?1:0)},_g2tYear:function(x){return x+this.yearsOffset+(x>=-this.yearsOffset&&x<=-1?1:0)}}),_.calendars.thai=m},45348:function(i,s,n){var _=n(38700),f=n(50896);function o(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}o.prototype=new _.baseCalendar,f(o.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Jum‘a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(x){var c=this._validate(x,this.minMonth,this.minDay,_.local.invalidYear);return this.daysInYear(c.year())===355},weekOfYear:function(x,c,l){var u=this.newDate(x,c,l);return u.add(-u.dayOfWeek(),"d"),Math.floor((u.dayOfYear()-1)/7)+1},daysInYear:function(x){for(var c=0,l=1;l<=12;l++)c+=this.daysInMonth(x,l);return c},daysInMonth:function(x,c){for(var l=this._validate(x,c,this.minDay,_.local.invalidMonth).toJD()-24e5+.5,u=0,p=0;p<m.length;p++){if(m[p]>l)return m[u]-m[u-1];u++}return 30},weekDay:function(x,c,l){return this.dayOfWeek(x,c,l)!==5},toJD:function(x,c,l){var u=this._validate(x,c,l,_.local.invalidDate),p=12*(u.year()-1)+u.month()-15292;return u.day()+m[p-1]-1+24e5-.5},fromJD:function(x){for(var c=x-24e5+.5,l=0,u=0;u<m.length&&!(m[u]>c);u++)l++;var p=l+15292,h=Math.floor((p-1)/12),y=h+1,b=p-12*h,v=c-m[l-1]+1;return this.newDate(y,b,v)},isValid:function(x,c,l){var u=_.baseCalendar.prototype.isValid.apply(this,arguments);return u&&(u=(x=x.year!=null?x.year:x)>=1276&&x<=1500),u},_validate:function(x,c,l,u){var p=_.baseCalendar.prototype._validate.apply(this,arguments);if(p.year<1276||p.year>1500)throw u.replace(/\{0\}/,this.local.name);return p}}),_.calendars.ummalqura=o;var m=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},38700:function(i,s,n){var _=n(50896);function f(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}function o(u,p,h,y){if(this._calendar=u,this._year=p,this._month=h,this._day=y,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(l.local.invalidDate||l.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function m(u,p){return"000000".substring(0,p-(u=""+u).length)+u}function x(){this.shortYearCutoff="+10"}function c(u){this.local=this.regionalOptions[u]||this.regionalOptions[""]}_(f.prototype,{instance:function(u,p){u=(u||"gregorian").toLowerCase(),p=p||"";var h=this._localCals[u+"-"+p];if(!h&&this.calendars[u]&&(h=new this.calendars[u](p),this._localCals[u+"-"+p]=h),!h)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,u);return h},newDate:function(u,p,h,y,b){return(y=(u!=null&&u.year?u.calendar():typeof y=="string"?this.instance(y,b):y)||this.instance()).newDate(u,p,h)},substituteDigits:function(u){return function(p){return(p+"").replace(/[0-9]/g,function(h){return u[h]})}},substituteChineseDigits:function(u,p){return function(h){for(var y="",b=0;h>0;){var v=h%10;y=(v===0?"":u[v]+p[b])+y,b++,h=Math.floor(h/10)}return y.indexOf(u[1]+p[1])===0&&(y=y.substr(1)),y||u[0]}}}),_(o.prototype,{newDate:function(u,p,h){return this._calendar.newDate(u??this,p,h)},year:function(u){return arguments.length===0?this._year:this.set(u,"y")},month:function(u){return arguments.length===0?this._month:this.set(u,"m")},day:function(u){return arguments.length===0?this._day:this.set(u,"d")},date:function(u,p,h){if(!this._calendar.isValid(u,p,h))throw(l.local.invalidDate||l.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=u,this._month=p,this._day=h,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(u,p){return this._calendar.add(this,u,p)},set:function(u,p){return this._calendar.set(this,u,p)},compareTo:function(u){if(this._calendar.name!==u._calendar.name)throw(l.local.differentCalendars||l.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,u._calendar.local.name);var p=this._year!==u._year?this._year-u._year:this._month!==u._month?this.monthOfYear()-u.monthOfYear():this._day-u._day;return p===0?0:p<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(u){return this._calendar.fromJD(u)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(u){return this._calendar.fromJSDate(u)},toString:function(){return(this.year()<0?"-":"")+m(Math.abs(this.year()),4)+"-"+m(this.month(),2)+"-"+m(this.day(),2)}}),_(x.prototype,{_validateLevel:0,newDate:function(u,p,h){return u==null?this.today():(u.year&&(this._validate(u,p,h,l.local.invalidDate||l.regionalOptions[""].invalidDate),h=u.day(),p=u.month(),u=u.year()),new o(this,u,p,h))},today:function(){return this.fromJSDate(new Date)},epoch:function(u){return this._validate(u,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(u){var p=this._validate(u,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear);return(p.year()<0?"-":"")+m(Math.abs(p.year()),4)},monthsInYear:function(u){return this._validate(u,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear),12},monthOfYear:function(u,p){var h=this._validate(u,p,this.minDay,l.local.invalidMonth||l.regionalOptions[""].invalidMonth);return(h.month()+this.monthsInYear(h)-this.firstMonth)%this.monthsInYear(h)+this.minMonth},fromMonthOfYear:function(u,p){var h=(p+this.firstMonth-2*this.minMonth)%this.monthsInYear(u)+this.minMonth;return this._validate(u,h,this.minDay,l.local.invalidMonth||l.regionalOptions[""].invalidMonth),h},daysInYear:function(u){var p=this._validate(u,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear);return this.leapYear(p)?366:365},dayOfYear:function(u,p,h){var y=this._validate(u,p,h,l.local.invalidDate||l.regionalOptions[""].invalidDate);return y.toJD()-this.newDate(y.year(),this.fromMonthOfYear(y.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(u,p,h){var y=this._validate(u,p,h,l.local.invalidDate||l.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(y))+2)%this.daysInWeek()},extraInfo:function(u,p,h){return this._validate(u,p,h,l.local.invalidDate||l.regionalOptions[""].invalidDate),{}},add:function(u,p,h){return this._validate(u,this.minMonth,this.minDay,l.local.invalidDate||l.regionalOptions[""].invalidDate),this._correctAdd(u,this._add(u,p,h),p,h)},_add:function(u,p,h){if(this._validateLevel++,h==="d"||h==="w"){var y=u.toJD()+p*(h==="w"?this.daysInWeek():1),b=u.calendar().fromJD(y);return this._validateLevel--,[b.year(),b.month(),b.day()]}try{var v=u.year()+(h==="y"?p:0),w=u.monthOfYear()+(h==="m"?p:0);b=u.day(),h==="y"?(u.month()!==this.fromMonthOfYear(v,w)&&(w=this.newDate(v,u.month(),this.minDay).monthOfYear()),w=Math.min(w,this.monthsInYear(v)),b=Math.min(b,this.daysInMonth(v,this.fromMonthOfYear(v,w)))):h==="m"&&(function(k){for(;w<k.minMonth;)v--,w+=k.monthsInYear(v);for(var N=k.monthsInYear(v);w>N-1+k.minMonth;)v++,w-=N,N=k.monthsInYear(v)}(this),b=Math.min(b,this.daysInMonth(v,this.fromMonthOfYear(v,w))));var C=[v,this.fromMonthOfYear(v,w),b];return this._validateLevel--,C}catch(k){throw this._validateLevel--,k}},_correctAdd:function(u,p,h,y){if(!(this.hasYearZero||y!=="y"&&y!=="m"||p[0]!==0&&u.year()>0==p[0]>0)){var b={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[y],v=h<0?-1:1;p=this._add(u,h*b[0]+v*b[1],b[2])}return u.date(p[0],p[1],p[2])},set:function(u,p,h){this._validate(u,this.minMonth,this.minDay,l.local.invalidDate||l.regionalOptions[""].invalidDate);var y=h==="y"?p:u.year(),b=h==="m"?p:u.month(),v=h==="d"?p:u.day();return h!=="y"&&h!=="m"||(v=Math.min(v,this.daysInMonth(y,b))),u.date(y,b,v)},isValid:function(u,p,h){this._validateLevel++;var y=this.hasYearZero||u!==0;if(y){var b=this.newDate(u,p,this.minDay);y=p>=this.minMonth&&p-this.minMonth<this.monthsInYear(b)&&h>=this.minDay&&h-this.minDay<this.daysInMonth(b)}return this._validateLevel--,y},toJSDate:function(u,p,h){var y=this._validate(u,p,h,l.local.invalidDate||l.regionalOptions[""].invalidDate);return l.instance().fromJD(this.toJD(y)).toJSDate()},fromJSDate:function(u){return this.fromJD(l.instance().fromJSDate(u).toJD())},_validate:function(u,p,h,y){if(u.year){if(this._validateLevel===0&&this.name!==u.calendar().name)throw(l.local.differentCalendars||l.regionalOptions[""].differentCalendars).replace(/\{0\}/,this.local.name).replace(/\{1\}/,u.calendar().local.name);return u}try{if(this._validateLevel++,this._validateLevel===1&&!this.isValid(u,p,h))throw y.replace(/\{0\}/,this.local.name);var b=this.newDate(u,p,h);return this._validateLevel--,b}catch(v){throw this._validateLevel--,v}}}),c.prototype=new x,_(c.prototype,{name:"Gregorian",jdEpoch:17214255e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Gregorian",epochs:["BCE","CE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(u){var p=this._validate(u,this.minMonth,this.minDay,l.local.invalidYear||l.regionalOptions[""].invalidYear);return(u=p.year()+(p.year()<0?1:0))%4==0&&(u%100!=0||u%400==0)},weekOfYear:function(u,p,h){var y=this.newDate(u,p,h);return y.add(4-(y.dayOfWeek()||7),"d"),Math.floor((y.dayOfYear()-1)/7)+1},daysInMonth:function(u,p){var h=this._validate(u,p,this.minDay,l.local.invalidMonth||l.regionalOptions[""].invalidMonth);return this.daysPerMonth[h.month()-1]+(h.month()===2&&this.leapYear(h.year())?1:0)},weekDay:function(u,p,h){return(this.dayOfWeek(u,p,h)||7)<6},toJD:function(u,p,h){var y=this._validate(u,p,h,l.local.invalidDate||l.regionalOptions[""].invalidDate);u=y.year(),p=y.month(),h=y.day(),u<0&&u++,p<3&&(p+=12,u--);var b=Math.floor(u/100),v=2-b+Math.floor(b/4);return Math.floor(365.25*(u+4716))+Math.floor(30.6001*(p+1))+h+v-1524.5},fromJD:function(u){var p=Math.floor(u+.5),h=Math.floor((p-186721625e-2)/36524.25),y=1524+(h=p+1+h-Math.floor(h/4)),b=Math.floor((y-122.1)/365.25),v=Math.floor(365.25*b),w=Math.floor((y-v)/30.6001),C=y-v-Math.floor(30.6001*w),k=w-(w>13.5?13:1),N=b-(k>2.5?4716:4715);return N<=0&&N--,this.newDate(N,k,C)},toJSDate:function(u,p,h){var y=this._validate(u,p,h,l.local.invalidDate||l.regionalOptions[""].invalidDate),b=new Date(y.year(),y.month()-1,y.day());return b.setHours(0),b.setMinutes(0),b.setSeconds(0),b.setMilliseconds(0),b.setHours(b.getHours()>12?b.getHours()+2:0),b},fromJSDate:function(u){return this.newDate(u.getFullYear(),u.getMonth()+1,u.getDate())}});var l=i.exports=new f;l.cdate=o,l.baseCalendar=x,l.calendars.gregorian=c},15168:function(i,s,n){var _=n(50896),f=n(38700);_(f.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),f.local=f.regionalOptions[""],_(f.cdate.prototype,{formatDate:function(o,m){return typeof o!="string"&&(m=o,o=""),this._calendar.formatDate(o||"",this,m)}}),_(f.baseCalendar.prototype,{UNIX_EPOCH:f.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:f.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(o,m,x){if(typeof o!="string"&&(x=m,m=o,o=""),!m)return"";if(m.calendar()!==this)throw f.local.invalidFormat||f.regionalOptions[""].invalidFormat;o=o||this.local.dateFormat;for(var c,l,u,p=(x=x||{}).dayNamesShort||this.local.dayNamesShort,h=x.dayNames||this.local.dayNames,y=x.monthNumbers||this.local.monthNumbers,b=x.monthNamesShort||this.local.monthNamesShort,v=x.monthNames||this.local.monthNames,w=(x.calculateWeek||this.local.calculateWeek,function(T,R){for(var M=1;O+M<o.length&&o.charAt(O+M)===T;)M++;return O+=M-1,Math.floor(M/(R||1))>1}),C=function(T,R,M,P){var V=""+R;if(w(T,P))for(;V.length<M;)V="0"+V;return V},k=this,N=function(T){return typeof y=="function"?y.call(k,T,w("m")):A(C("m",T.month(),2))},E=function(T,R){return R?typeof v=="function"?v.call(k,T):v[T.month()-k.minMonth]:typeof b=="function"?b.call(k,T):b[T.month()-k.minMonth]},S=this.local.digits,A=function(T){return x.localNumbers&&S?S(T):T},B="",I=!1,O=0;O<o.length;O++)if(I)o.charAt(O)!=="'"||w("'")?B+=o.charAt(O):I=!1;else switch(o.charAt(O)){case"d":B+=A(C("d",m.day(),2));break;case"D":B+=(c=m.dayOfWeek(),l=p,u=h,w("D")?u[c]:l[c]);break;case"o":B+=C("o",m.dayOfYear(),3);break;case"w":B+=C("w",m.weekOfYear(),2);break;case"m":B+=N(m);break;case"M":B+=E(m,w("M"));break;case"y":B+=w("y",2)?m.year():(m.year()%100<10?"0":"")+m.year()%100;break;case"Y":w("Y",2),B+=m.formatYear();break;case"J":B+=m.toJD();break;case"@":B+=(m.toJD()-this.UNIX_EPOCH)*this.SECS_PER_DAY;break;case"!":B+=(m.toJD()-this.TICKS_EPOCH)*this.TICKS_PER_DAY;break;case"'":w("'")?B+="'":I=!0;break;default:B+=o.charAt(O)}return B},parseDate:function(o,m,x){if(m==null)throw f.local.invalidArguments||f.regionalOptions[""].invalidArguments;if((m=typeof m=="object"?m.toString():m+"")==="")return null;o=o||this.local.dateFormat;var c=(x=x||{}).shortYearCutoff||this.shortYearCutoff;c=typeof c!="string"?c:this.today().year()%100+parseInt(c,10);for(var l=x.dayNamesShort||this.local.dayNamesShort,u=x.dayNames||this.local.dayNames,p=x.parseMonth||this.local.parseMonth,h=x.monthNumbers||this.local.monthNumbers,y=x.monthNamesShort||this.local.monthNamesShort,b=x.monthNames||this.local.monthNames,v=-1,w=-1,C=-1,k=-1,N=-1,E=!1,S=!1,A=function(j,W){for(var $=1;V+$<o.length&&o.charAt(V+$)===j;)$++;return V+=$-1,Math.floor($/(W||1))>1},B=function(j,W){var $=A(j,W),G=[2,3,$?4:2,$?4:2,10,11,20]["oyYJ@!".indexOf(j)+1],X=new RegExp("^-?\\d{1,"+G+"}"),H=m.substring(P).match(X);if(!H)throw(f.local.missingNumberAt||f.regionalOptions[""].missingNumberAt).replace(/\{0\}/,P);return P+=H[0].length,parseInt(H[0],10)},I=this,O=function(){if(typeof h=="function"){A("m");var j=h.call(I,m.substring(P));return P+=j.length,j}return B("m")},T=function(j,W,$,G){for(var X=A(j,G)?$:W,H=0;H<X.length;H++)if(m.substr(P,X[H].length).toLowerCase()===X[H].toLowerCase())return P+=X[H].length,H+I.minMonth;throw(f.local.unknownNameAt||f.regionalOptions[""].unknownNameAt).replace(/\{0\}/,P)},R=function(){if(typeof b=="function"){var j=A("M")?b.call(I,m.substring(P)):y.call(I,m.substring(P));return P+=j.length,j}return T("M",y,b)},M=function(){if(m.charAt(P)!==o.charAt(V))throw(f.local.unexpectedLiteralAt||f.regionalOptions[""].unexpectedLiteralAt).replace(/\{0\}/,P);P++},P=0,V=0;V<o.length;V++)if(S)o.charAt(V)!=="'"||A("'")?M():S=!1;else switch(o.charAt(V)){case"d":k=B("d");break;case"D":T("D",l,u);break;case"o":N=B("o");break;case"w":B("w");break;case"m":C=O();break;case"M":C=R();break;case"y":var D=V;E=!A("y",2),V=D,w=B("y",2);break;case"Y":w=B("Y",2);break;case"J":v=B("J")+.5,m.charAt(P)==="."&&(P++,B("J"));break;case"@":v=B("@")/this.SECS_PER_DAY+this.UNIX_EPOCH;break;case"!":v=B("!")/this.TICKS_PER_DAY+this.TICKS_EPOCH;break;case"*":P=m.length;break;case"'":A("'")?M():S=!0;break;default:M()}if(P<m.length)throw f.local.unexpectedText||f.regionalOptions[""].unexpectedText;if(w===-1?w=this.today().year():w<100&&E&&(w+=c===-1?1900:this.today().year()-this.today().year()%100-(w<=c?0:100)),typeof C=="string"&&(C=p.call(this,w,C)),N>-1){C=1,k=N;for(var L=this.daysInMonth(w,C);k>L;L=this.daysInMonth(w,C))C++,k-=L}return v>-1?this.fromJD(v):this.newDate(w,C,k)},determineDate:function(o,m,x,c,l){x&&typeof x!="object"&&(l=c,c=x,x=null),typeof c!="string"&&(l=c,c="");var u=this;return m=m?m.newDate():null,o==null?m:typeof o=="string"?function(p){try{return u.parseDate(c,p,l)}catch{}for(var h=((p=p.toLowerCase()).match(/^c/)&&x?x.newDate():null)||u.today(),y=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,b=y.exec(p);b;)h.add(parseInt(b[1],10),b[2]||"d"),b=y.exec(p);return h}(o):typeof o=="number"?isNaN(o)||o===1/0||o===-1/0?m:u.today().add(o,"d"):u.newDate(o)}})},21576:function(){},19768:function(){},63436:function(i,s,n){var _=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],f=typeof globalThis>"u"?n.g:globalThis;i.exports=function(){for(var o=[],m=0;m<_.length;m++)typeof f[_[m]]=="function"&&(o[o.length]=_[m]);return o}},67756:function(i,s,n){function _(ge,ve,we){ge.prototype=ve.prototype=we,we.constructor=ge}function f(ge,ve){var we=Object.create(ge.prototype);for(var Ee in ve)we[Ee]=ve[Ee];return we}function o(){}n.d(s,{qy:function(){return fe},Gz:function(){return ie}});var m=.7,x=1/m,c="\\s*([+-]?\\d+)\\s*",l="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",p=/^#([0-9a-f]{3,8})$/,h=new RegExp("^rgb\\(".concat(c,",").concat(c,",").concat(c,"\\)$")),y=new RegExp("^rgb\\(".concat(u,",").concat(u,",").concat(u,"\\)$")),b=new RegExp("^rgba\\(".concat(c,",").concat(c,",").concat(c,",").concat(l,"\\)$")),v=new RegExp("^rgba\\(".concat(u,",").concat(u,",").concat(u,",").concat(l,"\\)$")),w=new RegExp("^hsl\\(".concat(l,",").concat(u,",").concat(u,"\\)$")),C=new RegExp("^hsla\\(".concat(l,",").concat(u,",").concat(u,",").concat(l,"\\)$")),k={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function N(){return this.rgb().formatHex()}function E(){return this.rgb().formatRgb()}function S(ge){var ve,we;return ge=(ge+"").trim().toLowerCase(),(ve=p.exec(ge))?(we=ve[1].length,ve=parseInt(ve[1],16),we===6?A(ve):we===3?new O(ve>>8&15|ve>>4&240,ve>>4&15|240&ve,(15&ve)<<4|15&ve,1):we===8?B(ve>>24&255,ve>>16&255,ve>>8&255,(255&ve)/255):we===4?B(ve>>12&15|ve>>8&240,ve>>8&15|ve>>4&240,ve>>4&15|240&ve,((15&ve)<<4|15&ve)/255):null):(ve=h.exec(ge))?new O(ve[1],ve[2],ve[3],1):(ve=y.exec(ge))?new O(255*ve[1]/100,255*ve[2]/100,255*ve[3]/100,1):(ve=b.exec(ge))?B(ve[1],ve[2],ve[3],ve[4]):(ve=v.exec(ge))?B(255*ve[1]/100,255*ve[2]/100,255*ve[3]/100,ve[4]):(ve=w.exec(ge))?D(ve[1],ve[2]/100,ve[3]/100,1):(ve=C.exec(ge))?D(ve[1],ve[2]/100,ve[3]/100,ve[4]):k.hasOwnProperty(ge)?A(k[ge]):ge==="transparent"?new O(NaN,NaN,NaN,0):null}function A(ge){return new O(ge>>16&255,ge>>8&255,255&ge,1)}function B(ge,ve,we,Ee){return Ee<=0&&(ge=ve=we=NaN),new O(ge,ve,we,Ee)}function I(ge,ve,we,Ee){return arguments.length===1?((ke=ge)instanceof o||(ke=S(ke)),ke?new O((ke=ke.rgb()).r,ke.g,ke.b,ke.opacity):new O):new O(ge,ve,we,Ee??1);var ke}function O(ge,ve,we,Ee){this.r=+ge,this.g=+ve,this.b=+we,this.opacity=+Ee}function T(){return"#".concat(V(this.r)).concat(V(this.g)).concat(V(this.b))}function R(){var ge=M(this.opacity);return"".concat(ge===1?"rgb(":"rgba(").concat(P(this.r),", ").concat(P(this.g),", ").concat(P(this.b)).concat(ge===1?")":", ".concat(ge,")"))}function M(ge){return isNaN(ge)?1:Math.max(0,Math.min(1,ge))}function P(ge){return Math.max(0,Math.min(255,Math.round(ge)||0))}function V(ge){return((ge=P(ge))<16?"0":"")+ge.toString(16)}function D(ge,ve,we,Ee){return Ee<=0?ge=ve=we=NaN:we<=0||we>=1?ge=ve=NaN:ve<=0&&(ge=NaN),new j(ge,ve,we,Ee)}function L(ge){if(ge instanceof j)return new j(ge.h,ge.s,ge.l,ge.opacity);if(ge instanceof o||(ge=S(ge)),!ge)return new j;if(ge instanceof j)return ge;var ve=(ge=ge.rgb()).r/255,we=ge.g/255,Ee=ge.b/255,ke=Math.min(ve,we,Ee),xe=Math.max(ve,we,Ee),Ae=NaN,Se=xe-ke,he=(xe+ke)/2;return Se?(Ae=ve===xe?(we-Ee)/Se+6*(we<Ee):we===xe?(Ee-ve)/Se+2:(ve-we)/Se+4,Se/=he<.5?xe+ke:2-xe-ke,Ae*=60):Se=he>0&&he<1?0:Ae,new j(Ae,Se,he,ge.opacity)}function j(ge,ve,we,Ee){this.h=+ge,this.s=+ve,this.l=+we,this.opacity=+Ee}function W(ge){return(ge=(ge||0)%360)<0?ge+360:ge}function $(ge){return Math.max(0,Math.min(1,ge||0))}function G(ge,ve,we){return 255*(ge<60?ve+(we-ve)*ge/60:ge<180?we:ge<240?ve+(we-ve)*(240-ge)/60:ve)}_(o,S,{copy:function(ge){return Object.assign(new this.constructor,this,ge)},displayable:function(){return this.rgb().displayable()},hex:N,formatHex:N,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return L(this).formatHsl()},formatRgb:E,toString:E}),_(O,I,f(o,{brighter:function(ge){return ge=ge==null?x:Math.pow(x,ge),new O(this.r*ge,this.g*ge,this.b*ge,this.opacity)},darker:function(ge){return ge=ge==null?m:Math.pow(m,ge),new O(this.r*ge,this.g*ge,this.b*ge,this.opacity)},rgb:function(){return this},clamp:function(){return new O(P(this.r),P(this.g),P(this.b),M(this.opacity))},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:T,formatHex:T,formatHex8:function(){return"#".concat(V(this.r)).concat(V(this.g)).concat(V(this.b)).concat(V(255*(isNaN(this.opacity)?1:this.opacity)))},formatRgb:R,toString:R})),_(j,function(ge,ve,we,Ee){return arguments.length===1?L(ge):new j(ge,ve,we,Ee??1)},f(o,{brighter:function(ge){return ge=ge==null?x:Math.pow(x,ge),new j(this.h,this.s,this.l*ge,this.opacity)},darker:function(ge){return ge=ge==null?m:Math.pow(m,ge),new j(this.h,this.s,this.l*ge,this.opacity)},rgb:function(){var ge=this.h%360+360*(this.h<0),ve=isNaN(ge)||isNaN(this.s)?0:this.s,we=this.l,Ee=we+(we<.5?we:1-we)*ve,ke=2*we-Ee;return new O(G(ge>=240?ge-240:ge+120,ke,Ee),G(ge,ke,Ee),G(ge<120?ge+240:ge-120,ke,Ee),this.opacity)},clamp:function(){return new j(W(this.h),$(this.s),$(this.l),M(this.opacity))},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var ge=M(this.opacity);return"".concat(ge===1?"hsl(":"hsla(").concat(W(this.h),", ").concat(100*$(this.s),"%, ").concat(100*$(this.l),"%").concat(ge===1?")":", ".concat(ge,")"))}}));var X=function(ge){return function(){return ge}};function H(ge,ve){var we=ve-ge;return we?function(Ee,ke){return function(xe){return Ee+xe*ke}}(ge,we):X(isNaN(ge)?ve:ge)}var Y=function ge(ve){var we=function(ke){return(ke=+ke)==1?H:function(xe,Ae){return Ae-xe?function(Se,he,pe){return Se=Math.pow(Se,pe),he=Math.pow(he,pe)-Se,pe=1/pe,function(_e){return Math.pow(Se+_e*he,pe)}}(xe,Ae,ke):X(isNaN(xe)?Ae:xe)}}(ve);function Ee(ke,xe){var Ae=we((ke=I(ke)).r,(xe=I(xe)).r),Se=we(ke.g,xe.g),he=we(ke.b,xe.b),pe=H(ke.opacity,xe.opacity);return function(_e){return ke.r=Ae(_e),ke.g=Se(_e),ke.b=he(_e),ke.opacity=pe(_e),ke+""}}return Ee.gamma=ge,Ee}(1);function Z(ge,ve){var we,Ee=ve?ve.length:0,ke=ge?Math.min(Ee,ge.length):0,xe=new Array(ke),Ae=new Array(Ee);for(we=0;we<ke;++we)xe[we]=fe(ge[we],ve[we]);for(;we<Ee;++we)Ae[we]=ve[we];return function(Se){for(we=0;we<ke;++we)Ae[we]=xe[we](Se);return Ae}}function le(ge,ve){var we=new Date;return ge=+ge,ve=+ve,function(Ee){return we.setTime(ge*(1-Ee)+ve*Ee),we}}function ie(ge,ve){return ge=+ge,ve=+ve,function(we){return ge*(1-we)+ve*we}}function ne(ge){return ne=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ve){return typeof ve}:function(ve){return ve&&typeof Symbol=="function"&&ve.constructor===Symbol&&ve!==Symbol.prototype?"symbol":typeof ve},ne(ge)}function re(ge,ve){var we,Ee={},ke={};for(we in ge!==null&&ne(ge)==="object"||(ge={}),ve!==null&&ne(ve)==="object"||(ve={}),ve)we in ge?Ee[we]=fe(ge[we],ve[we]):ke[we]=ve[we];return function(xe){for(we in Ee)ke[we]=Ee[we](xe);return ke}}var Q=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ee=new RegExp(Q.source,"g");function se(ge,ve){var we,Ee,ke,xe=Q.lastIndex=ee.lastIndex=0,Ae=-1,Se=[],he=[];for(ge+="",ve+="";(we=Q.exec(ge))&&(Ee=ee.exec(ve));)(ke=Ee.index)>xe&&(ke=ve.slice(xe,ke),Se[Ae]?Se[Ae]+=ke:Se[++Ae]=ke),(we=we[0])===(Ee=Ee[0])?Se[Ae]?Se[Ae]+=Ee:Se[++Ae]=Ee:(Se[++Ae]=null,he.push({i:Ae,x:ie(we,Ee)})),xe=ee.lastIndex;return xe<ve.length&&(ke=ve.slice(xe),Se[Ae]?Se[Ae]+=ke:Se[++Ae]=ke),Se.length<2?he[0]?function(pe){return function(_e){return pe(_e)+""}}(he[0].x):function(pe){return function(){return pe}}(ve):(ve=he.length,function(pe){for(var _e,Pe=0;Pe<ve;++Pe)Se[(_e=he[Pe]).i]=_e.x(pe);return Se.join("")})}function de(ge,ve){ve||(ve=[]);var we,Ee=ge?Math.min(ve.length,ge.length):0,ke=ve.slice();return function(xe){for(we=0;we<Ee;++we)ke[we]=ge[we]*(1-xe)+ve[we]*xe;return ke}}function ue(ge){return ue=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ve){return typeof ve}:function(ve){return ve&&typeof Symbol=="function"&&ve.constructor===Symbol&&ve!==Symbol.prototype?"symbol":typeof ve},ue(ge)}function fe(ge,ve){var we,Ee,ke=ue(ve);return ve==null||ke==="boolean"?X(ve):(ke==="number"?ie:ke==="string"?(we=S(ve))?(ve=we,Y):se:ve instanceof S?Y:ve instanceof Date?le:(Ee=ve,!ArrayBuffer.isView(Ee)||Ee instanceof DataView?Array.isArray(ve)?Z:typeof ve.valueOf!="function"&&typeof ve.toString!="function"||isNaN(ve)?re:ie:de))(ge,ve)}},30584:function(i){i.exports=JSON.parse('["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"]')},7294:function(i){i.exports=JSON.parse('["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]')},47916:function(i){i.exports=JSON.parse('["normal","italic","oblique"]')},2904:function(i){i.exports=JSON.parse('["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"]')},68194:function(i){i.exports=JSON.parse('["inherit","initial","unset"]')},3748:function(i){i.exports=JSON.parse('["caption","icon","menu","message-box","small-caption","status-bar"]')}},d={};function g(i){var s=d[i];if(s!==void 0)return s.exports;var n=d[i]={exports:{}};return r[i].call(n.exports,n,n.exports,g),n.exports}return g.n=function(i){var s=i&&i.__esModule?function(){return i.default}:function(){return i};return g.d(s,{a:s}),s},g.d=function(i,s){for(var n in s)g.o(s,n)&&!g.o(i,n)&&Object.defineProperty(i,n,{enumerable:!0,get:s[n]})},g.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),g.o=function(i,s){return Object.prototype.hasOwnProperty.call(i,s)},g.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},g(13792)}()})})(hz);var j6t=hz.exports;const fz=$6t(j6t),U6t={id:"main-container"},H6t={id:"surface-container"},G6t=t.createElementVNode("br",null,null,-1),mz=39,D0=76,W6t=0,gz=2,yz=4,_z=5,vz=6,bz=7,q6t=8,Y6t=9,xz=10,wz=11,kz=13,Z6t=14,X6t=15,K6t=18,Rp=19,J6t=800,Cz=300,Ez=.1208,Tz=5,Q6t=2,e8t=3,t8t=4,a8t=7,r8t=-46,Sz=100,Az=-14,n8t={__name:"CardField",props:{selected_category:{type:Number,default:31},selected_team:{type:Array,default:()=>[]},showBallPosition:{type:Boolean,default:!0},showPlayersPosition:{type:Boolean,default:!0},widthContainer:{type:Number,default:1280},dataPaintInfo:{type:Object,default:()=>{}},showTracks:{type:Boolean,default:!1},touches:{type:Number,default:1},showPlayersEndPosition:{type:Boolean,default:!1},secondStart:{type:Number,default:0},operationStart:{type:Number,default:0},secondEnd:{type:Number,default:1},operationEnd:{type:Number,default:1},inFavor:{type:Boolean,default:!0}},emits:["changelateralidad"],setup(e,{emit:a}){var r;let d=.75,g=t.ref("left");const i=a,s=t.ref(null),n=t.ref(null),_=t.ref(0),f=t.ref(null),o=new Set([583,585,587,589]),m=new Set([584,586,588,590]),x=new Set([122,128,136,142]),c=new Set([125,131,139,145]),l=new Set([124,130,138,144]),u=new Set([123,129,137,143]),p=e;let h=null;t.watch(()=>_.value,V=>{b(V),n.value.style.height=`${v(V)}px`,f.value.style.top=`${w(v(V))}px`}),t.watch(()=>p.selected_category,V=>{V==32?g.value="right":g.value="left"});function y(){h=new ResizeObserver(V=>{for(const D of V)_.value=D.contentRect.width}),h.observe(s.value)}function b(V){fz.relayout(s.value,{width:V,height:v(V)})}function v(V){return Math.round(Cz/J6t*V,0)}function w(V){return Az+(V-Sz)/(Cz-Sz)*(r8t-Az)}t.watch(()=>p.dataPaintInfo,V=>{R(V)},{deep:!0}),t.watch(()=>p.selected_team,V=>{V.data.length>0&&R(V)}),t.watch(()=>p.secondStart,V=>{R(V)});function C(V,D){let L=.01321,j=.00929,W=0,$=0,G=[];const X=D.length;let H=Math.floor(X/10);for(;W<D0;)$=D.filter(Y=>Y[0]>=W*L&&Y[0]<=(W+1)*L&&Y[1]>=V*j&&Y[1]<=(V+1)*j).map(Y=>Y[1]).length,H=H===0?1:H,G.push(parseFloat(($/H).toFixed(4))),W++;return G.reverse()}function k(V){let D=[N(D0),N(D0)],L=[],j=mz;for(;j>0&&j<=mz;)L=C(j,V),D.push(L),j--;return D.push(N(D0),N(D0)),D}function N(V){return Array.from({length:V},()=>0)}function E(V,D,L){const j=[];let W=0,$=0;j.push(V[0]);for(let G=1;G<L-1;G++){const X=[];X.push(V[G][0]);for(let H=1;H<D-1;H++)W=V[G][H-1],$=V[G][H+1],X.push(W+.5*(V[G][H]+$-W));X.push(V[G][D-1]),j.push(X)}j.push(V[L-1]);for(let G=1;G<D-1;G++)for(let X=1;X<L-1;X++)W=j[X-1][G],$=j[X+1][G],j[X][G]=W+.5*(j[X][G]+$-W);return j}function S(V){for(var D=[],L=0;L<V.length;L++)if(V[L][Rp]==0&&V[L][yz]===p.selected_category){let j=V[L][wz];D.push([V[L][xz],j])}return D}function A(V,D,L=1){let j=[],W=[];return V.forEach($=>{if($[yz]===p.selected_category){let G=V.filter(X=>$[0]===X[K6t]&&X[Rp]<=L).sort((X,H)=>X[Rp]-H[Rp]);G.length>0&&j.push(G),$[Rp]===0&&W.push([$[W6t],$[kz],$[Z6t],$[X6t]])}}),{sequences:j,main_plays:W}}function B(V,D,L,j,W){let $=.1,G=j*4,X=j*3,H=[],Y=[],Z=[],le=[],ie=[],ne=[],re=[],Q=[],ee=[],se=[],de=[],ue=[],fe=[];const ge=.7,ve="rgba(253, 101, 36, 1)",we="rgba(249, 189, 50, 1)",Ee="rgba(255, 255, 255, 1)",ke="rgba(203, 238, 107, 1)",xe="rgba(55, 181, 252, 1)",Ae="rgba(55, 252, 217, 1)",Se="rgba(195, 198, 201, 1)",he=new Map([[o,{color:ke,symbol:"circle"}],[m,{color:xe,symbol:"circle"}],[x,{color:Ae,symbol:"circle"}],[c,{color:Se,symbol:"x"}],[l,{color:ve,symbol:"square"}],[u,{color:we,symbol:"triangle-up"}]]);return V.forEach(pe=>{if(pe.length===1){if(pe[0][Rp]===0)return;let _e=pe[0][vz]*L,Pe=pe[0][bz]*G-X,Ne=j*Ez,Ie=j*$,Oe=Pe+Ne+Ie;if(Oe=Oe>=j?j-1:Oe,Y.push(_e),Z.push(Oe-ge),le.push(_e),ie.push(Oe),W===1){let Ve=pe[0][_z].split(","),De=!1;Ve=Ve.map(Number);for(const[be,Ce]of he)if(Ve.some(Me=>be.has(Me))){ne.push(Ce.color),re.push(Ce.symbol),De=!0;break}De||(ne.push(Ee),re.push("circle"))}else pe[0][gz]===D?ne.push(Ee):ne.push(ve)}else pe.forEach((_e,Pe)=>{if(_e[Rp]===0)return;let Ne=_e[vz]*L,Ie=_e[bz]*G-X,Oe=j*Ez,Ve=j*$,De=Ie+Oe+Ve;if(De=De>=j?j-1:De,Y.push(Ne),Z.push(De-ge),le.push(Ne),ie.push(De),W===1){let be=pe[0][_z].split(","),Ce=!1;be=be.map(Number);for(const[Me,$e]of he)if(be.some(ze=>Me.has(ze))){ne.push($e.color),re.push($e.symbol),Ce=!0;break}Ce||(ne.push(Ee),re.push("circle"))}else{let be=_e[q6t]*L,Ce=_e[Y6t]*G-X+Oe+Ve;Ce=Ce>=j?j-1:Ce;let Me=_e[xz]*L,$e=_e[wz]*G-X+Oe+Ve;$e=$e>=j?j-1:$e,_e[gz]===D?ne.push(Ee):ne.push(ve),se.push(Ne,be,null),de.push(De,Ce,null),Q.push(Ne,be),ee.push(De,Ce),pe.length-1===Pe&&(Q.push(Me,null),ee.push($e,null),ue.push(Me),fe.push($e))}})}),H.shadowXPoints=Y,H.shadowYPoints=Z,H.playerXPoints=le,H.playerYPoints=ie,H.playerColorPoints=ne,H.trackX=Q,H.trackY=ee,H.sprintX=se,H.sprintY=de,H.arrowX=ue,H.arrowY=fe,H.symbols=re,H}function I(V,D){return V.map((L,j)=>L.map((W,$)=>{if($===D){let[G,X,H]=W.split(/[:.]/);return parseInt(G)*60+parseInt(X)}else return W}))}function O(V,D,L,j,W=0,$){let G=[];return j.forEach(X=>{let H=W===0?parseInt(X[1])-parseInt(L):parseInt(X[1])+parseInt(L);V.filter(Y=>X[0]===Y[a8t]&&H===Y[Tz]&&D===Y[Q6t]).forEach(Y=>{let Z=Y[e8t],le=Y[t8t];le<=$&&G.push([Z,le])})}),G}function T(V){return V.flat().every(D=>D===0)}function R(V){V.data=I(V.data,kz),V.field_positions=I(V.field_positions,Tz);let D=A(V.data,d,p.touches),L=S(V.data),j=O(V.field_positions,p.selected_team,p.secondStart,D.main_plays,p.operationStart,d),W=O(V.field_positions,p.selected_team,p.secondEnd,D.main_plays,p.operationEnd,d),$=k(L),G=k(j),X=k(W),H=$[0].length,Y=$.length;$=E(E($,H,Y),H,Y),G=E(E(G,H,Y),H,Y),X=E(E(X,H,Y),H,Y),H=$[0].length,Y=$.length;let Z=B(D.sequences,p.selected_team,H,Y,p.touches);var le=[[0,"rgba(12,31,82,0)"],[.2,"rgba(14, 55, 115, 0.8)"],[.4,"rgba(33, 85, 160, 0.8)"],[.6,"rgba(16, 124, 170, 0.8)"],[.8,"rgba(32, 154, 207, 0.8)"],[1,"rgba(32, 174, 207, 0.8)"]],ie=[[0,"rgba(12,31,82,0)"],[.2,"rgba(73, 13, 67, 0.8)"],[.4,"rgba(98, 32, 91, 0.8)"],[.6,"rgba(121, 52, 114, 0.8)"],[.8,"rgba(176, 36, 121, 0.8)"],[1,"rgba(230, 49, 158, 0.8)"]],ne=[[0,"rgba(12,31,82,0)"],[.2,"rgba(94, 111, 79, 1)"],[.4,"rgba(111, 142, 28, 1)"],[.6,"rgba(142, 177, 50, 1)"],[.8,"rgba(169, 211, 57, 1)"],[1,"rgba(195, 229, 105, 1)"]],re=[{z:$,type:"heatmap",connectgaps:!0,opacity:1,colorscale:ne,autoscale:!1,showscale:!1,zsmooth:"best",showgrid:!1,showline:!1}],Q=[{z:G,type:"heatmap",connectgaps:!0,opacity:1,colorscale:le,autoscale:!1,showscale:!1,zsmooth:"best",showgrid:!1,showline:!1}],ee=[{z:X,type:"heatmap",connectgaps:!0,opacity:1,colorscale:ie,autoscale:!1,showscale:!1,zsmooth:"best",showgrid:!1,showline:!1}],se={x:Z.shadowXPoints,y:Z.shadowYPoints,mode:"markers",marker:{symbol:Z.symbols,color:"rgba(0, 0, 0, 0.5)",size:9}},de={x:Z.playerXPoints,y:Z.playerYPoints,mode:"markers",marker:{symbol:Z.symbols,color:Z.playerColorPoints,size:8}},ue={x:Z.trackX,y:Z.trackY,mode:"lines",line:{color:"rgba(255, 255, 255, 1)",width:1,dash:"2px 2px",arrowhead:"end"}},fe={x:Z.sprintX,y:Z.sprintY,mode:"lines",line:{color:"rgba(255, 255, 255, 1)",width:1}},ge={x:Z.arrowX,y:Z.arrowY,mode:"markers",marker:{symbol:"triangle-up",size:10,color:"rgba(255, 255, 255, 1)",angle:120}},ve=[];p.showTracks&&p.touches>1&&ve.push(fe,ue,ge),p.showTracks&&ve.push(se,de),p.showPlayersEndPosition&&!T(X)&&ve.push(...ee),p.showPlayersPosition&&!T(G)&&ve.push(...Q),p.showBallPosition&&!T($)&&ve.push(...re);const we=[0,H],Ee=[0,Y];r={showlegend:!1,width:_.value,height:v(_.value),xaxis:{title:"",showgrid:!1,showline:!1,zeroline:!1,showticklabels:!1,ticks:"",showbackground:!1,backgroundcolor:"transparent",range:we},yaxis:{title:"",showgrid:!1,showline:!1,zeroline:!1,showticklabels:!1,ticks:"",showbackground:!1,backgroundcolor:"transparent",range:Ee},margin:{l:0,r:0,b:0,t:5}},fz.newPlot("surface-plot-heatmap",ve,r,{displayModeBar:!1,staticPlot:!0},{responsive:!0})}const M=()=>{};function P(V){g.value=V,i("changelateralidad",g.value)}return t.onBeforeUnmount(()=>{window.removeEventListener("resize",M)}),t.onMounted(()=>{s.value&&(s.value.style.pointerEvents="none"),window.addEventListener("resize",M),y()}),(V,D)=>(t.openBlock(),t.createElementBlock("div",U6t,[t.createElementVNode("div",H6t,[p.dataPaintInfo.data.length==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.widthContainer<768?"class-not-result-field-movil":"class-not-result-field")},[e.widthContainer<768?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("No se muestran resultados debido"),G6t,t.createTextVNode(" a los filtros aplicados.")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("No se muestran resultados debido a los filtros aplicados.")],64))],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{id:"label-left-zone",style:t.normalizeStyle(t.unref(g)=="left"?"":"opacity: 0.6"),onClick:D[0]||(D[0]=L=>P("left"))},null,4),t.createElementVNode("div",{id:"label-right-zone",style:t.normalizeStyle(t.unref(g)=="right"?"":"opacity: 0.6"),onClick:D[1]||(D[1]=L=>P("right"))},null,4),t.createElementVNode("div",{ref_key:"surfacePlot",ref:s,id:"surface-plot-heatmap",class:t.normalizeClass(e.inFavor?"":"against")},null,2)])]))}},Nz="/arrowbtn.png",i8t={components:{GSCTrendMenuBall:Y5t,GSCCheckbox:df,GSCTrendPosition:D6t,CardField:n8t},props:{acronymHome:{type:String,default:""},acronymAway:{type:String,default:""},typePlay:{type:String,default:"A favor"},widthContainer:{type:Number,default:1280},touchAllData:{type:Array,default:()=>[]},playersData:{type:Object,default:()=>{}},homeTeam:{type:Number,default:0},awayTeam:{type:Number,default:0},selected_category:{type:Number,default:31},team:{type:Number,required:!0},forGame:{type:Boolean,required:!1},teamsData:{type:Object,default:()=>{}},fieldPositionsAll:{type:Array,default:()=>[]},inFavor:{type:Boolean,required:!1},isTacticVisible:{type:Boolean,required:!1}},data(){return{type:"ball",show:!1,game:62276,trajectories:[],rival:3014,totalCorners:0,typepositioning:"Posición",BallOnOff:"OFF",numberTouches:1,playersList:{},timepositioning:-1,checkedBallGo:!0,checkedHeatMap:!0,filterFieldPositions:[],timepositioningFinal:-1,arrayPlayers:{},season:1325,timepositioningend:1,zonesFilter:[],touchFilter:{},token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},watch:{touchAllData:{handler(){this.typepositioning=="Posición"?this.getDataPosition():this.getDataTrajectory()},deep:!0},zonesFilter:{handler(){this.typepositioning=="Posición"?this.getDataPosition():this.getDataTrajectory()},deep:!0},typepositioning:{handler(){this.typepositioning=="Posición"?this.getDataPosition():this.getDataTrajectory()},deep:!0},timepositioning:{handler(){this.typepositioning=="Posición"?this.getDataPosition():this.getDataTrajectory()},deep:!0},timepositioningend:{handler(){this.typepositioning=="Posición"?this.getDataPosition():this.getDataTrajectory()},deep:!0}},computed:{firstTeam(){return this.homeTeam===this.team?this.acronymHome:this.acronymAway},secondTeam(){return this.homeTeam===this.team?this.acronymAway:this.acronymHome},firstTeam1Touch(){return this.inFavor?this.homeTeam===this.team?this.acronymHome:this.acronymAway:this.homeTeam===this.team?this.acronymAway:this.acronymHome},secondTeam1Touch(){return this.inFavor?this.homeTeam===this.team?this.acronymAway:this.acronymHome:this.homeTeam===this.team?this.acronymHome:this.acronymAway},reftrendteamsTouches(){const e=this.widthContainer;return e<=480?"ref-trend-teams-touches480":e<=768?"ref-trend-teams-touches768":"ref-trend-teams-touches"},reftrendteamslocal(){const e=this.widthContainer;return e<=480?"ref-trend-teams-local480":e<=768?"ref-trend-teams-local768":"ref-trend-teams-local"},reftrendteamsrival(){return this.widthContainer<=768?"ref-trend-teams-rival768":"ref-trend-teams-rival"},reftrendteamsall(){const e=this.widthContainer;return e<=480?"ref-trend-teams-all480":e<=768?"ref-trend-teams-all768":"ref-trend-teams-all"},refpointlebeltext(){const e=this.widthContainer;return e<=480?"ref-point-lebel-text480":e<=768?"ref-point-lebel-text768":e<=860?"ref-point-lebel-text870":"ref-point-lebel-text"},trendcontentcontrols(){return this.widthContainer<=768?"trend-content-controls768":["trend-content-controls","to-right"]},trendtitle(){return this.widthContainer<=768?"trend-title768":"trend-title"},trendtitlecontainer(){return this.widthContainer<=768?"trend-titlecontainer768":"trend-titlecontainer"},trendcontentcontrolscontainer(){const e=this.widthContainer;return e<=400?"trend-content-controls-container400":e<=860?"trend-content-controls-container860":"trend-content-controls-container"},trendcontentcontrolsleyendcheckscontent(){const e=this.widthContainer;return e<=400?"trend-content-controls-leyend-checkscontent400":e<=768?"trend-content-controls-leyend-checkscontent768":e<=1e3?"trend-content-controls-leyend-checkscontent1000":"trend-content-controls-leyend-checkscontent"},trendcontentcontrolsleyend(){const e=this.widthContainer;return e<=768?"trend-content-controls-leyend768":e<=1e3?"trend-content-controls-leyend1000":"trend-content-controls-leyend"},contDataClass(){return this.widthContainer<=768?"cont-data768":"cont-data"},contDataClass2(){return this.widthContainer<=768?"cont-data-ref768":"cont-data-ref"},contCollectorsClass(){const e=this.widthContainer;return e<=768?"cont-collectors768":e<=900?"cont-collectors900":"cont-collectors"},contCollectorsClass2(){const e=this.widthContainer;return e<=768?"cont-collectors-ref768":e<=900?"cont-collectors-ref900":"cont-collectors-ref"},contWhoCnnectedClass(){const e=this.widthContainer;return e<=768?"cont-who-connected768":e<=900?"cont-who-connected900":"cont-who-connected"},contWhoCnnectedClass2(){const e=this.widthContainer;return e<=768?"cont-who-connected-ref768":e<=900?"cont-who-connected-ref900":"cont-who-connected-ref"}},methods:{changelateralidad(e){this.$emit("changelateralidad",e)},changeTouchesnum(e){this.numberTouches=e},checkBallGo(){this.checkedBallGo=!this.checkedBallGo},checkHeatMap(){this.checkedHeatMap=!this.checkedHeatMap},changeBallOnOff(e){typeof e=="string"&&(this.BallOnOff=e)},getDataPosition(){if(this.touchAllData.length>0){const a=this.touchAllData.filter(o=>o[19]===0).map(o=>this.tiempoASegundosEnteros(o[13]));let r=[];this.timepositioning>=0?r=a.map(o=>o+this.timepositioning):r=a.map(o=>o-this.timepositioning);const d=this.fieldPositionsAll.filter(o=>r.includes(this.tiempoASegundosEnteros(o[5]))&&o[2]===this.team),g=this.contarYAgruparPorPosicion(d);let i=[];this.zonesFilter.length!=35?i=this.fieldPositionsAll.filter(o=>this.zonesFilter.includes(o[6])&&o[2]===this.team):i=this.fieldPositionsAll.filter(o=>this.zonesFilter.includes(o[6])&&o[2]===this.team),this.filterFieldPositions=i;let s=[],n=[];for(var e in this.arrayPlayers)this.arrayPlayers[e].selected&&s.push(this.arrayPlayers[e].id),n.push(this.arrayPlayers[e].id);s.length>0&&(this.filterFieldPositions=this.filterFieldPositions.filter(o=>s.includes(o[1])));const _=i.filter(o=>r.includes(this.tiempoASegundosEnteros(o[5]))&&o[2]===this.team),f=this.contarYAgruparPorPosicion(_);this.arrayPlayers={};for(let o=0;o<g.length;o++){const m=f.filter(function(x){return x.id_player==g[o].id_player});this.arrayPlayers[g[o].id_player]={id:g[o].id_player,corners:g[o].corners,cornersfilter:m[0]?m[0].corners:0,data:this.playersData[g[o].id_player]?this.playersData[g[o].id_player]:{name:"-",img:"-",position:11,id:"-",team:"-",nationality_id:"-",nationality_flag:"https://az755631.vo.msecnd.net/flags/undefined.jpg",jersey:"-"},selected:Object.keys(this.arrayPlayers).length>0&&n.includes(g[o].id_player)?!!s.includes(g[o].id_player):!0}}}else this.arrayPlayers={},this.filterFieldPositions=[]},getDataTrajectory(){if(this.touchAllData.length>0){const a=this.touchAllData.filter(c=>c[19]===0).map(c=>this.tiempoASegundosEnteros(c[13]));let r=[];this.timepositioning>=0?r=a.map(c=>c+Math.abs(this.timepositioning)):r=a.map(c=>c-Math.abs(this.timepositioning));let d=[];this.timepositioningend>=0?d=a.map(c=>c+Math.abs(this.timepositioningend)):d=a.map(c=>c-Math.abs(this.timepositioningend));const g=this.fieldPositionsAll.filter(c=>this.zonesFilter.includes(c[6])&&c[2]===this.team);this.filterFieldPositions=g;let i=[],s=[];for(var e in this.arrayPlayers)this.arrayPlayers[e].selected&&i.push(this.arrayPlayers[e].id),s.push(this.arrayPlayers[e].id);i.length>0&&(this.filterFieldPositions=this.filterFieldPositions.filter(c=>i.includes(c[1])));const n=this.fieldPositionsAll.filter(c=>a.includes(this.tiempoASegundosEnteros(c[5]))&&c[2]===this.team),_=g.filter(c=>r.includes(this.tiempoASegundosEnteros(c[5]))&&c[2]===this.team),f=g.filter(c=>d.includes(this.tiempoASegundosEnteros(c[5]))&&c[2]===this.team),o=this.contarYAgruparPorPosicion(n),m=this.contarYAgruparPorPosicion(_),x=this.contarYAgruparPorPosicion(f);for(let c=0;c<o.length;c++){const l=m.filter(function(p){return p.id_player==o[c].id_player}),u=x.filter(function(p){return p.id_player==o[c].id_player});this.arrayPlayers[o[c].id_player]={id:o[c].id_player,corners:o[c].corners,cornersfilter:l[0]?l[0].corners:0,cornersfilterfinal:u[0]?u[0].corners:0,data:this.playersData[o[c].id_player]?this.playersData[o[c].id_player]:{name:"-",img:"-",position:11,id:"-",team:"-",nationality_id:"-",nationality_flag:"https://az755631.vo.msecnd.net/flags/undefined.jpg",jersey:"-"},selected:Object.keys(this.arrayPlayers).length>0&&s.includes(o[c].id_player)?!!i.includes(o[c].id_player):!0}}}else this.arrayPlayers={},this.filterFieldPositions=[]},contarYAgruparPorPosicion(e){const a=e.reduce((r,d)=>{const g=d[1];return r[g]?r[g]+=1:r[g]=1,r},{});return Object.keys(a).map(r=>({id_player:parseInt(r,10),corners:a[r]}))},tiempoASegundosEnteros(e){let a=e.split(":"),r=parseInt(a[0],10),d=parseFloat(a[1]);return r*60+Math.floor(d)},getTimePositioning(e){this.timepositioning=e},getTimePositioningEnd(e){this.timepositioningend=e},getTypePositioning(e){this.typepositioning=e},getArrayZonesField(e){this.zonesFilter=e},selectcheckplayerall(e){for(let a in this.arrayPlayers)this.arrayPlayers[a].selected=e;this.typepositioning=="Posición"?this.getDataPosition():this.getDataTrajectory()},selectcheckplayer(e){this.arrayPlayers[e].selected=!this.arrayPlayers[e].selected,this.typepositioning=="Posición"?this.getDataPosition():this.getDataTrajectory()},clickTypeButton(e){this.type=e},clickAdvanced(){this.show=!this.show},async getData(){}},mounted(){}},ul=e=>(t.pushScopeId("data-v-8221cc58"),e=e(),t.popScopeId(),e),o8t={class:"text-diferent"},s8t=ul(()=>t.createElementVNode("br",null,null,-1)),l8t={key:0,class:"btnAdvance",src:Nz},c8t={key:1,class:"btnAdvanceHide",src:Nz},d8t={class:"menu-advanced-container"},u8t={class:"container-buttons-menu"},p8t={key:1,class:"position-only"},h8t={class:"buttons-menu-select-data"},f8t={key:0,class:"ref-trend-ball-player-container"},m8t=t.createStaticVNode('<div class="ref-trend-ball-ball" data-v-8221cc58><div class="ref-trend-ball-ball-point" data-v-8221cc58></div><div class="ref-trend-ball-ball-label" data-v-8221cc58>BALÓN</div></div><div class="ref-trend-ball-player" data-v-8221cc58><div class="ref-trend-ball-playe-point" data-v-8221cc58></div><div class="ref-trend-ball-player-label" data-v-8221cc58>JUGADORES OFENSIVOS</div></div>',2),g8t=[m8t],y8t={key:1,class:"ref-trend-ball-player-container-route"},_8t=t.createStaticVNode('<div class="ref-trend-ball-ball" data-v-8221cc58><div class="ref-trend-ball-ball-point" data-v-8221cc58></div><div class="ref-trend-ball-ball-label" data-v-8221cc58>BALÓN</div></div><div class="ref-trend-ball-player-route" data-v-8221cc58><div class="ref-trend-ball-player-label" data-v-8221cc58>RECORRIDOS: </div><div class="ref-trend-ball-playe-point" data-v-8221cc58></div><div class="ref-trend-ball-player-label" data-v-8221cc58>INICIO </div><div class="ref-trend-ball-playe-point-end" data-v-8221cc58></div><div class="ref-trend-ball-player-label" data-v-8221cc58>FINAL</div></div>',2),v8t=[_8t],b8t={class:"ref-trend-teams-rival-container-table"},x8t={class:"ref-trend-teams-rival-container-row1"},w8t=ul(()=>t.createElementVNode("div",{class:"ref-point-view",style:{backgroundImage:"url(/circle-my-team.png)"}},null,-1)),k8t={class:"ref-trend-teams-rival-container-row2"},C8t=ul(()=>t.createElementVNode("div",{class:"ref-point-view",style:{backgroundImage:"url(/circle-other-team.png)"}},null,-1)),E8t=ul(()=>t.createElementVNode("div",{class:"ref-point-view",style:{backgroundImage:"url(http://golstatsimages.blob.core.windows.net/content/rematado-gol.png)"}},null,-1)),T8t=ul(()=>t.createElementVNode("br",null,null,-1)),S8t=ul(()=>t.createElementVNode("div",{class:"ref-point-view",style:{backgroundImage:"url(http://golstatsimages.blob.core.windows.net/content/rematado-con-destino.png)"}},null,-1)),A8t=ul(()=>t.createElementVNode("br",null,null,-1)),N8t=ul(()=>t.createElementVNode("div",{class:"ref-point-view",style:{backgroundImage:"url(http://golstatsimages.blob.core.windows.net/content/rematado-sin-destino.png)"}},null,-1)),B8t=ul(()=>t.createElementVNode("br",null,null,-1)),I8t=ul(()=>t.createElementVNode("div",{class:"ref-point-view",style:{backgroundImage:"url(http://golstatsimages.blob.core.windows.net/content/sin-destino.png)"}},null,-1)),M8t={class:"ref-trend-teams-rival-container-table"},O8t={class:"ref-trend-teams-rival-container-row1"},P8t=ul(()=>t.createElementVNode("div",{class:"ref-point-view",style:{backgroundImage:"url(http://golstatsimages.blob.core.windows.net/content/ganados-jugador-rival.png)"}},null,-1)),F8t=ul(()=>t.createElementVNode("br",null,null,-1)),R8t={class:"ref-trend-teams-rival-container-row2"},z8t=ul(()=>t.createElementVNode("div",{class:"ref-point-view",style:{backgroundImage:"url(http://golstatsimages.blob.core.windows.net/content/ganados-portero.png)"}},null,-1)),V8t=ul(()=>t.createElementVNode("br",null,null,-1));function L8t(e,a,r,d,g,i){const s=t.resolveComponent("GSCCheckbox"),n=t.resolveComponent("GSCTrendMenuBall"),_=t.resolveComponent("GSCTrendPosition"),f=t.resolveComponent("CardField");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(r.widthContainer<=768?"gsc-trend-movil":"gsc-trend-plays")},[t.createElementVNode("div",{class:t.normalizeClass(i.trendtitlecontainer)},[t.createElementVNode("div",{class:t.normalizeClass(i.trendtitle)},[t.createTextVNode(" Tendencia General "),t.createElementVNode("span",o8t,"("+t.toDisplayString(r.inFavor?"A favor":"En contra")+")",1)],2),t.createElementVNode("div",{class:t.normalizeClass(i.trendcontentcontrols)},[t.createElementVNode("div",{class:t.normalizeClass(i.trendcontentcontrolsleyend)},[r.widthContainer>1e3||r.widthContainer<=768?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Elige que quieres ver: ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Elige que "),s8t,t.createTextVNode("quieres ver:")],64))],2),t.createElementVNode("div",{class:t.normalizeClass(i.trendcontentcontrolsleyendcheckscontent)},[t.createElementVNode("div",{class:t.normalizeClass(i.trendcontentcontrolscontainer)},[t.createVNode(s,{label:"¿A dónde fue el balón?",fontFamily:"Poppins-Regular",labelFontSize:r.widthContainer>=870?"13px":"12px","label-color":"#FFF","model-value":g.checkedBallGo,"onUpdate:modelValue":a[0]||(a[0]=o=>i.checkBallGo())},null,8,["labelFontSize","model-value"])],2),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(i.trendcontentcontrolscontainer)},[t.createVNode(s,{label:"Jugadores ofensivos",fontFamily:"Poppins-Regular",labelFontSize:r.widthContainer>=870?"13px":"12px","label-color":"#FFF",boxBackgroundColor:"#15a9e0","model-value":g.checkedHeatMap,"onUpdate:modelValue":a[1]||(a[1]=o=>i.checkHeatMap())},null,8,["labelFontSize","model-value"])],2),[[t.vShow,r.isTacticVisible]])],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(i.contDataClass)},[t.createElementVNode("div",{class:t.normalizeClass(i.contCollectorsClass)},[t.createElementVNode("div",{class:t.normalizeClass(r.widthContainer<=768?"button-avanced-movil":"button-avanced"),onClick:a[2]||(a[2]=(...o)=>i.clickAdvanced&&i.clickAdvanced(...o))},[g.show?(t.openBlock(),t.createElementBlock("img",l8t)):t.createCommentVNode("",!0),t.createTextVNode("Avanzado"),g.show?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("img",c8t))],2),t.withDirectives(t.createElementVNode("div",d8t,[t.createElementVNode("div",u8t,[r.isTacticVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",{class:t.normalizeClass(["buttons-menu",g.type=="ball"?"active":""]),onClick:a[3]||(a[3]=o=>i.clickTypeButton("ball"))}," A dónde fue el balón ",2),t.createElementVNode("div",{class:t.normalizeClass(["buttons-menu",g.type=="position"?"active":""]),onClick:a[4]||(a[4]=o=>i.clickTypeButton("position"))}," Posicionamiento ",2)],64)):(t.openBlock(),t.createElementBlock("div",p8t,"Posicionamiento"))]),t.createElementVNode("div",h8t,[t.withDirectives(t.createVNode(n,{"Ball-on-off":g.BallOnOff,onChangeBallOnOff:i.changeBallOnOff,onTouchesnum:i.changeTouchesnum},null,8,["Ball-on-off","onChangeBallOnOff","onTouchesnum"]),[[t.vShow,g.type=="ball"]]),t.withDirectives(t.createVNode(_,{onSelectcheckplayer:i.selectcheckplayer,onSelectcheckplayerall:i.selectcheckplayerall,data:g.arrayPlayers,onShowfield:i.getArrayZonesField,onTypepositioning:i.getTypePositioning,"width-container":r.widthContainer,onTimepositioning:i.getTimePositioning,onTimepositioningend:i.getTimePositioningEnd},null,8,["onSelectcheckplayer","onSelectcheckplayerall","data","onShowfield","onTypepositioning","width-container","onTimepositioning","onTimepositioningend"]),[[t.vShow,r.isTacticVisible&&g.type==="position"]])])],512),[[t.vShow,g.show]])],2),t.createElementVNode("div",{class:t.normalizeClass(i.contWhoCnnectedClass)},[t.createVNode(f,{"width-container":r.widthContainer,selected_team:r.team,"show-ball-position":g.checkedBallGo,"show-players-position":g.checkedHeatMap,selected_category:r.selected_category,"show-tracks":g.BallOnOff=="ON",touches:g.numberTouches,"operation-start":g.timepositioning>0?1:0,"second-start":Math.abs(g.timepositioning),"second-end":g.timepositioningend>0?1:0,"operation-end":Math.abs(g.timepositioningend),onChangelateralidad:i.changelateralidad,"show-players-end-position":g.typepositioning=="Recorrido","in-favor":r.inFavor,"data-paint-info":{data:r.touchAllData,field_positions:g.filterFieldPositions,home_atk_direction:1}},null,8,["width-container","selected_team","show-ball-position","show-players-position","selected_category","show-tracks","touches","operation-start","second-start","second-end","operation-end","onChangelateralidad","show-players-end-position","in-favor","data-paint-info"])],2)],2),t.createElementVNode("div",{class:t.normalizeClass(i.contDataClass2)},[t.createElementVNode("div",{class:t.normalizeClass(i.contCollectorsClass2)},[g.typepositioning==="Posición"?(t.openBlock(),t.createElementBlock("div",f8t,g8t)):(t.openBlock(),t.createElementBlock("div",y8t,v8t))],2),g.BallOnOff=="ON"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.contWhoCnnectedClass2),style:t.normalizeStyle(g.numberTouches>1?"margin-left: 0%; display: flex; justify-content: center;":"")},[g.numberTouches>1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.reftrendteamsTouches)},[t.createElementVNode("div",{class:"ref-trend-teams-rival-label-title",style:t.normalizeStyle(r.widthContainer<=768?"justify-content: center !important;":"")}," COORDENADAS: ",4),t.createElementVNode("div",b8t,[t.createElementVNode("div",x8t,[w8t,t.createElementVNode("div",{class:t.normalizeClass(i.refpointlebeltext),style:{"font-size":"9px"}},[r.forGame?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(i.firstTeam),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(r.teamsData[r.team].acronym),1)],64))],2)]),t.createElementVNode("div",k8t,[C8t,t.createElementVNode("div",{class:t.normalizeClass(i.refpointlebeltext),style:{"font-size":"9px"}},[r.forGame?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(i.secondTeam),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Rival")],64))],2)])])],2)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.reftrendteamsall)},[t.createElementVNode("div",{class:t.normalizeClass(i.reftrendteamslocal)},[t.createElementVNode("div",{class:"ref-trend-teams-local-label-title",style:t.normalizeStyle(r.widthContainer<=768?"justify-content: center !important;":"")},[r.forGame?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(i.firstTeam1Touch),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(r.inFavor?r.teamsData[r.team].acronym:"Rival"),1)],64))],4),t.createElementVNode("div",{class:t.normalizeClass(r.widthContainer<=480?"ref-trend-teams-local-container-table-movil":"ref-trend-teams-local-container-table")},[t.createElementVNode("div",{class:"ref-trend-teams-local-container-row1",style:t.normalizeStyle(r.widthContainer<=480?"display: inline-block !important;":"")},[E8t,t.createElementVNode("div",{class:t.normalizeClass(i.refpointlebeltext)},[t.createTextVNode("Remata destino "),T8t,t.createTextVNode("portería fue gol")],2)],4),t.createElementVNode("div",{class:"ref-trend-teams-local-container-row2",style:t.normalizeStyle(r.widthContainer<=480?"display: inline-block !important;":"")},[S8t,t.createElementVNode("div",{class:t.normalizeClass(i.refpointlebeltext)},[t.createTextVNode("Rematado destino "),A8t,t.createTextVNode("a portería no fue gol")],2)],4),t.createElementVNode("div",{class:"ref-trend-teams-local-container-row3",style:t.normalizeStyle(r.widthContainer<=480?"display: inline-block !important;":"")},[N8t,t.createElementVNode("div",{class:t.normalizeClass(i.refpointlebeltext)},[t.createTextVNode("Rematado sin "),B8t,t.createTextVNode("destino a portería")],2)],4),t.createElementVNode("div",{class:"ref-trend-teams-local-container-row4",style:t.normalizeStyle(r.widthContainer<=480?"display: inline-block !important;":"")},[I8t,t.createElementVNode("div",{class:t.normalizeClass(i.refpointlebeltext)},"Sin destino",2)],4)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(i.reftrendteamsrival)},[t.createElementVNode("div",{class:"ref-trend-teams-rival-label-title",style:t.normalizeStyle(r.widthContainer<=768?"justify-content: center;":"")},[r.forGame?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(i.secondTeam1Touch),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(r.inFavor?"Rival":r.teamsData[r.team].acronym),1)],64))],4),t.createElementVNode("div",M8t,[t.createElementVNode("div",O8t,[P8t,t.createElementVNode("div",{class:t.normalizeClass(i.refpointlebeltext)},[r.widthContainer<=768?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganados Jugador rival")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Ganados "),F8t,t.createTextVNode("Jugador rival")],64))],2)]),t.createElementVNode("div",R8t,[z8t,t.createElementVNode("div",{class:t.normalizeClass(i.refpointlebeltext)},[r.widthContainer<=768?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganados Portero rival")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Ganados "),V8t,t.createTextVNode("Portero rival")],64))],2)])])],2)],2))],6)):t.createCommentVNode("",!0)],2)],2)}const D8t=Si(i8t,[["render",L8t],["__scopeId","data-v-8221cc58"]]),$8t={components:{GSCConnectionsSetPiece:Fst,GSCHeaderSetPiece:S_t,GSCDataToHighlight:xvt,GSCModalBreakdown:zbt,GSCSpecificPlays:F5t,GSCTrend:D8t},props:{game:{type:Object,required:!0},forSeason:{type:Boolean,default:!1},forTeam:{type:Boolean,default:!1},forGame:{type:Boolean,default:!1},team:{type:Number,default:0},isTacticVisible:{type:Boolean,default:!0},isSynchronization:{type:Boolean,default:!1}},data(){return{token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",touchAllDataHome:[],touchAllDataAway:[],filters:{isMoment:!1,final:[1,2,3],moment:[1,2,3],playingAs:[1,2],sections:[1,2,3,4,5,6],games:[],players:[],cornertype:31,howWas:[120,126,327,133],zona:[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],whathappened:[583,585,587,589,584,586,588,590,122,128,136,142,123,129,137,143,124,130,138,144,125,131,139,14,146,147,327,133],isWhatHappenedFull:!0,isZoneFull:!0},containerWidth:0,openModal:!1,playersData:{},teamsData:{},gamesAllHome:[],gamesAllAway:[],teamSelected:0,touchDataSelected:[],auxChangeFilterPlayer:!0,auxChangeFilterGames:!0,positionsDataSelected:[],copyLastFilters:{},seasonId:0,totalDataCollection:{},seasonsByGame:{},matchesByGame:{},rivalsByGame:{},updateConnections:0,showCorners:0,filterPlayersAvailable:[],filterGamesAvailable:[],updateTrend:0,lateralidad:"left",updateFilter:0,copyplayers:[],infavoragainst:!0,typePlay:"A favor",modalInitialData:{},areFiltersOpen:!1}},watch:{game:{immediate:!0,handler(e){this.getDataCorners(e),this.createStorageGame()}},teamSelected:{immediate:!0,handler(){this.fillFilterGamesReset(),this.fillFilterPlayersReset(),this.updateConnections+=1}},infavoragainst:{immediate:!0,handler(){this.fillFilterGamesReset(),this.fillFilterPlayersReset(),this.updateConnections+=1}},calculationTouchesData:{immediate:!0,handler(){this.showCorners=this.calculationTouchesData.filter(e=>e[19]==0).length}}},computed:{isGameOnly(){return this.forGame&&!this.forSeason&&!this.forTeam},calculateTotal(){return this.touchDataSelected.filter(e=>e[19]==0).length},calculationPositionsData(){return this.positionsDataSelected},calculationTouchesData(){let e=[],a=[];if(this.touchDataSelected.length>0){this.updateCopyfilter(),this.filters.isMoment?a=this.touchDataSelected.filter(d=>this.filters.moment.includes(d[17])&&this.filters.playingAs.includes(d[14])&&this.filters.sections.includes(d[20])&&d[19]==0):a=this.touchDataSelected.filter(d=>this.filters.final.includes(d[16])&&this.filters.playingAs.includes(d[14])&&this.filters.sections.includes(d[20])&&d[19]==0),this.updateGamesListFilter({corners:a,games:this.filters.games}),this.filters.games.length>0&&(a=a.filter(d=>this.filters.games.includes(d[3]))),this.infavoragainst&&(this.updatePlayerListFilter({corners:a,players:this.filters.players}),this.filters.players.length>0&&(a=a.filter(d=>this.filters.players.includes(d[1])))),a=a.filter(d=>this.filters.cornertype==d[4]),this.filters.zona.length!=35&&(a=a.filter(d=>this.filters.zona.includes(d[12]))),a=a.filter(d=>d[5].split(",").map(g=>parseInt(g)).some(g=>this.filters.howWas.includes(g))),this.filters.whathappened.length!=24&&(a=a.filter(d=>d[5].split(",").map(g=>parseInt(g)).some(g=>this.filters.whathappened.includes(g))));const r=a.map(d=>d[18]);e=this.touchDataSelected.filter(d=>r.includes(d[18]))}return e},cornersInFavor(){return"-"},cornersAgainst(){return"-"}},methods:{setHeaderStickyListener(){const e=this.$refs.header.getBoundingClientRect();window.onscroll=()=>{(window.scrollY||window.pageYOffset)>e.top?this.$refs.header.classList.add("sticky"):this.$refs.header.classList.remove("sticky")}},setCornersSide(e){this.lateralidad=e},onChangeShowFilters(e){this.areFiltersOpen=e},fillFilterPlayersReset(){setTimeout(()=>{if(this.infavoragainst){const e=this.forGame?this.infavoragainst?this.teamSelected:this.teamSelected==this.game.home_team?this.game.away_team:this.game.home_team:this.teamSelected,a=this.touchDataSelected.filter(d=>d[19]==0&&e).map(d=>d[1]),r=[...new Set(a)];this.getFilterTakenCorners({players:r})}},100)},fillFilterGamesReset(){setTimeout(()=>{const e=this.touchDataSelected.filter(r=>r[19]==0).map(r=>r[3]),a=[...new Set(e)];this.getFilterGames({games:a})},100)},updateCopyfilter(){this.copyLastFilters=this.filters},fillGameDataTeam(e){return{teamsIds:[e.home_team,e.visiting_team],label:`${e.matchday_abbreviation.replace("M","J")} ${this.teamsData[this.game.home_team].acronym} vs ${this.game.home_team==e.home_team?this.teamsData[e.visiting_team].acronym:this.teamsData[e.home_team].acronym}`,id:e.game_id,isSelected:!0,dateTimeMillis:Date.parse(e.date_time_utc),rivalTeam:{logo:this.game.home_team==e.home_team?this.teamsData[e.visiting_team].img:this.teamsData[e.home_team].img,team_id:this.game.home_team==e.home_team?e.visiting_team:e.home_team,provisional_logo:this.game.home_team==e.home_team?this.teamsData[e.visiting_team].img:this.teamsData[e.home_team].img,colloquial_name:this.game.home_team==e.home_team?this.teamsData[e.visiting_team].acronym:this.teamsData[e.home_team].acronym,acronym:this.game.home_team==e.home_team?this.teamsData[e.visiting_team].acronym:this.teamsData[e.home_team].acronym,team_name:this.game.home_team==e.home_team?this.teamsData[e.visiting_team].name:this.teamsData[e.home_team].name},roundAbbreviation:e.matchday_abbreviation.replace("M","J")}},fillGameData(e){return{teamsIds:[e.home_team,e.visiting_team],label:`${e.matchday_abbreviation.replace("M","J")} ${this.teamsData[this.teamSelected].acronym} vs ${this.teamSelected==e.home_team?this.teamsData[e.visiting_team].acronym:this.teamsData[e.home_team].acronym}`,id:e.game_id,isSelected:!0,dateTimeMillis:Date.parse(e.date_time_utc),rivalTeam:{logo:this.teamSelected==e.home_team?this.teamsData[e.visiting_team].img:this.teamsData[e.home_team].img,team_id:this.teamSelected==e.home_team?e.visiting_team:e.home_team,provisional_logo:this.teamSelected==e.home_team?this.teamsData[e.visiting_team].img:this.teamsData[e.home_team].img,colloquial_name:this.teamSelected==e.home_team?this.teamsData[e.visiting_team].acronym:this.teamsData[e.home_team].acronym,acronym:this.teamSelected==e.home_team?this.teamsData[e.visiting_team].acronym:this.teamsData[e.home_team].acronym,team_name:this.teamSelected==e.home_team?this.teamsData[e.visiting_team].name:this.teamsData[e.home_team].name},roundAbbreviation:e.matchday_abbreviation.replace("M","J")}},updatePlayerListFilter(e){if(this.infavoragainst){let a={},r=[];for(let d=0;d<e.corners.length;d++){const g=e.corners[d];if(g[19]===0&&g[2]===this.teamSelected){const i=g[1],s=this.playersData[i];i in a||(a[i]=s,r.push(s))}}if(this.filterPlayersAvailable=r,e.players.length>0&&this.filterPlayersAvailable.length>0)for(let d=0;d<this.filterPlayersAvailable.length;d++)e.players.includes(this.filterPlayersAvailable[d].id)?this.filterPlayersAvailable[d].isSelected=!0:this.filterPlayersAvailable[d].isSelected=!1}},updateGamesListFilter(e){if(!this.forGame){this.filterGamesAvailable=[];const a=this.obtenerIDsGames(e.corners);this.forSeason?this.teamSelected==this.game.home_team?this.filterGamesAvailable=a.map(r=>{let d=this.gamesAllHome.find(g=>g.game_id===r);if(d)return this.fillGameData(d)}):this.filterGamesAvailable=a.map(r=>{let d=this.gamesAllAway.find(g=>g.game_id===r);if(d)return this.fillGameData(d)}):this.filterGamesAvailable=a.map(r=>{let d=this.gamesAllHome.find(g=>g.game_id===r);if(d)return this.fillGameDataTeam(d)})}if(e.games.length>0&&this.filterGamesAvailable.length>0)for(let a=0;a<this.filterGamesAvailable.length;a++)e.games.includes(this.filterGamesAvailable[a].id)?this.filterGamesAvailable[a].isSelected=!0:this.filterGamesAvailable[a].isSelected=!1},getResetPlayers(){for(let e in this.playersData)this.playersData[e].isSelected=!0},getFilterZone(e){this.filters.zona=e,this.filters.isZoneFull=e.length===35},getFilterHowWasCorner(e){this.filters.cornertype=e.cornertype,this.filters.howWas=e.howWas},getFilterTakenCorners(e){this.filters.players=e.players},getFilterGames(e){this.filters.games=e.games,this.fillFilterPlayersReset()},getFilterDetails(e){this.filters.playingAs=e.playingAs,this.filters.sections=e.sections,this.fillFilterGamesReset(),this.fillFilterPlayersReset()},getFilterResultsByTime(e){this.filters.final=e.final,this.filters.isMoment=e.isMoment,this.filters.moment=e.moment,this.fillFilterGamesReset(),this.fillFilterPlayersReset()},getFilterWhatHappened(e){this.filters.whathappened=e,this.filters.isWhatHappenedFull=e.length===24},obtenerIDsGames(e){return[...new Set(e.map(a=>a[3]))]},async getInFavorAgainstTeam(e){this.updateTrend+=1,this.infavoragainst=e,this.validateDataLocalStorage({team:this.teamSelected,inFavor:this.infavoragainst,game:this.game})&&(this.teamSelected==this.game.home_team?await this.requestOrchestrator({games:this.gamesAllHome,team:this.teamSelected,inFavor:this.infavoragainst,game:this.game}):await this.requestOrchestrator({games:this.gamesAllAway,team:this.teamSelected,inFavor:this.infavoragainst,game:this.game}))},async getTeamSelected(e){this.teamSelected!=e&&(this.updateConnections+=1,this.updateTrend+=1,this.teamSelected=e,this.touchDataSelected=[],this.gamesAllHome.length!=0&&this.gamesAllAway.length!=0&&(this.teamSelected==this.game.home_team?this.validateDataLocalStorage({team:this.teamSelected,inFavor:this.infavoragainst,game:this.game})&&await this.requestOrchestrator({games:this.gamesAllHome,team:this.teamSelected,inFavor:this.infavoragainst,game:this.game}):this.validateDataLocalStorage({team:this.teamSelected,inFavor:this.infavoragainst,game:this.game})&&await this.requestOrchestrator({games:this.gamesAllAway,team:this.teamSelected,inFavor:this.infavoragainst,game:this.game})))},async requestOrchestrator(e){let a=[];const r=Ii.create({headers:{Authorization:`${this.token}`}});for(let n=0;n<e.games.length;n++)this.seasonId=e.games[n].season_id,a.push(e.inFavor?"https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/seasons/"+e.games[n].season_id+"/corners/trends/teams/"+e.team+"/"+e.games[n].game_id:"https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/seasons/"+e.games[n].season_id+"/corners/trends/teams/"+e.team+"/"+e.games[n].game_id+"?isR=1");const d=async n=>{try{return(await r.get(n)).data}catch(_){throw console.error("Error al obtener datos:",_),_}};var g=[],i=[];const s=a.map(n=>d(n));Promise.all(s).then(n=>{for(let _=0;_<n.length;_++)n[_].data=this.changeLateralityCoordenatesPlays(n[_].data,!1),n[_].field_positions=this.changeLateralityCoordenatesPlays(n[_].field_positions,!0),g=g.concat(n[_].data),i=i.concat(n[_].field_positions),this.getDataPlayers(n[_].players),this.getDataPlayers(n[_].rival_players),this.getDataTeams(n[_].teams),this.getSeasonByGame({season:n[_]&&n[_].hasOwnProperty("season_name")?n[_].season_name:"",game:n[_].data[0]?n[_].data[0][3]:0}),this.getMatchByGame({match:n[_]&&n[_].hasOwnProperty("matchday_abbreviation")?n[_].matchday_abbreviation:"",game:n[_].data[0]?n[_].data[0][3]:0}),this.getRivalsByGame({rival:this.infavoragainst?this.teamSelected==n[_].teams[0].team_id?n[_].teams[1].name:n[_].teams[0].name:this.teamSelected==n[_].teams[0].team_id?n[_].teams[0].name:n[_].teams[1].name,game:n[_].data[0]?n[_].data[0][3]:0,team:this.teamSelected,favor:this.infavoragainst});this.touchDataSelected=g,this.totalDataCollection[e.game.id][e.team][e.inFavor?"InFavor":"Against"].touch=g,this.positionsDataSelected=i,this.totalDataCollection[e.game.id][e.team][e.inFavor?"InFavor":"Against"].positions=i}).catch(n=>{console.error("Error al obtener datos:",n)})},getRowMatrix(e,a){let r=.01351,d=.02439,g=0,i=0,s=[];const n=a.length;let _=Math.floor(n/10);for(;g<74;)i=a.filter(f=>f[0]>=g*r&&f[0]<=(g+1)*r&&f[1]>=e*d&&f[1]<=(e+1)*d).map(f=>f[1]).length,_=_===0?1:_,s.push(parseFloat((i/_).toFixed(4))),g++;return s.reverse()},getEmptyArray(e){return Array.from({length:e},()=>0)},getMatrix(e){let a=[this.getEmptyArray(74),this.getEmptyArray(74)],r=[],d=39;for(;d>0&&d<=39;)r=this.getRowMatrix(d,e),a.push(r),d--;return a.push(this.getEmptyArray(74),this.getEmptyArray(74)),a},getSoftData(e,a,r){const d=[];let g=0,i=0;d.push(e[0]);for(let s=1;s<r-1;s++){const n=[];n.push(e[s][0]);for(let _=1;_<a-1;_++)g=e[s][_-1],i=e[s][_+1],n.push(g+.5*(e[s][_]+i-g));n.push(e[s][a-1]),d.push(n)}d.push(e[r-1]);for(let s=1;s<a-1;s++)for(let n=1;n<r-1;n++)g=d[n-1][s],i=d[n+1][s],d[n][s]=g+.5*(d[n][s]+i-g);return d},changeLateralityCoordenatesPlays(e,a){return a?e.forEach((r,d)=>{let g=0,i=0;this.infavoragainst?(g=r[2]===this.teamSelected?1-r[3]:r[3],i=r[2]===this.teamSelected?1-r[4]:r[4]):(g=r[2]===this.teamSelected?r[3]:1-r[3],i=r[2]===this.teamSelected?r[4]:1-r[4]),e[d][3]=g,e[d][4]=i}):e.forEach((r,d)=>{let g=0,i=0,s=0,n=0,_=0,f=0;r[19]!=0?this.infavoragainst?(g=r[2]===this.teamSelected?r[6]:1-r[6],i=r[2]===this.teamSelected?1-r[7]:r[7],s=r[2]===this.teamSelected?r[8]:1-r[8],n=r[2]===this.teamSelected?1-r[9]:r[9],_=r[2]===this.teamSelected?r[10]:1-r[10],f=r[2]===this.teamSelected?1-r[11]:r[11]):(g=r[2]===this.teamSelected?1-r[6]:r[6],i=r[2]===this.teamSelected?r[7]:1-r[7],s=r[2]===this.teamSelected?1-r[8]:r[8],n=r[2]===this.teamSelected?r[9]:1-r[9],_=r[2]===this.teamSelected?1-r[10]:r[10],f=r[2]===this.teamSelected?r[11]:1-r[11]):(g=1-r[6],i=r[7],s=1-r[8],n=r[9],_=1-r[10],f=r[11]),e[d][6]=g,e[d][7]=i,e[d][8]=s,e[d][9]=n,e[d][10]=_,e[d][11]=f}),e},changeLateralityPlays(e){e.field_positions=e.field_positions.map(r=>[...r.slice(0,3),r[4],r[3],...r.slice(5)]);let a=[];return e.data.forEach(r=>{r[19]===0&&a.push([r[0],r[13],r[14],r[15]])}),a.forEach(r=>{e.field_positions.filter(d=>r[0]===d[7]&&this.teamSelected===d[2]).forEach(d=>{let g=d[3],i=d[4];(e.homeTeamAtkDirection===1&&r[3]===1||e.homeTeamAtkDirection===2&&r[3]===2||e.homeTeamAtkDirection===1&&r[3]===3||e.homeTeamAtkDirection===2&&r[3]===4)&&(g=1-g,i=1-i),d[3]=g,d[4]=i})}),e.field_positions},createStorageGame(){this.totalDataCollection[this.game.id]={},this.totalDataCollection[this.game.id][this.game.home_team]={},this.totalDataCollection[this.game.id][this.game.home_team].InFavor={},this.totalDataCollection[this.game.id][this.game.home_team].InFavor.touch=[],this.totalDataCollection[this.game.id][this.game.home_team].InFavor.positions=[],this.totalDataCollection[this.game.id][this.game.home_team].Against={},this.totalDataCollection[this.game.id][this.game.home_team].Against.touch=[],this.totalDataCollection[this.game.id][this.game.home_team].Against.positions=[],(this.forGame||this.forSeason)&&(this.totalDataCollection[this.game.id][this.game.away_team]={},this.totalDataCollection[this.game.id][this.game.away_team].InFavor={},this.totalDataCollection[this.game.id][this.game.away_team].InFavor.touch=[],this.totalDataCollection[this.game.id][this.game.away_team].InFavor.positions=[],this.totalDataCollection[this.game.id][this.game.away_team].Against={},this.totalDataCollection[this.game.id][this.game.away_team].Against.touch=[],this.totalDataCollection[this.game.id][this.game.away_team].Against.positions=[])},validateDataLocalStorage(e){return this.totalDataCollection[e.game.id][e.team][e.inFavor?"InFavor":"Against"].touch.length>0&&this.totalDataCollection[e.game.id][e.team][e.inFavor?"InFavor":"Against"].positions.length>0?(this.touchDataSelected=this.totalDataCollection[e.game.id][e.team][e.inFavor?"InFavor":"Against"].touch,this.positionsDataSelected=this.totalDataCollection[e.game.id][e.team][e.inFavor?"InFavor":"Against"].positions,!1):!0},getGamesByTeam(e){this.forSeason?e.type=="home"?this.gamesAllHome=e.games.filter(function(a){return(a.home_team==e.idTeam||a.visiting_team==e.idTeam)&&a.game_status==1}):this.gamesAllAway=e.games.filter(function(a){return(a.home_team==e.idTeam||a.visiting_team==e.idTeam)&&a.game_status==1}):this.forGame?e.type=="home"?this.gamesAllHome=e.games.filter(function(a){return a.game_id==e.game.id}):this.gamesAllAway=e.games.filter(function(a){return a.game_id==e.game.id}):this.gamesAllHome=e.games.filter(function(a){return(a.home_team==e.idTeam||a.visiting_team==e.idTeam)&&a.game_status==1})},async getDataCorners(e){const a=await Ii.create({headers:{Authorization:`${this.token}`}}).get("https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?seasons="+e.season);this.forSeason?(this.getGamesByTeam({games:a.data.data[0].games,idTeam:e.home_team,type:"home"}),this.getGamesByTeam({games:a.data.data[0].games,idTeam:e.away_team,type:"away"}),this.validateDataLocalStorage({team:this.game.home_team,inFavor:!0,game:this.game})&&await this.requestOrchestrator({games:this.gamesAllHome,team:this.game.home_team,inFavor:!0,game:this.game})):this.forGame?(this.getGamesByTeam({games:a.data.data[0].games,idTeam:e.home_team,game:this.game,type:"home"}),this.getGamesByTeam({games:a.data.data[0].games,idTeam:e.away_team,game:this.game,type:"away"}),this.validateDataLocalStorage({team:this.game.home_team,inFavor:!0,game:this.game})&&await this.requestOrchestrator({games:this.gamesAllHome,team:this.game.home_team,inFavor:!0,game:this.game})):(this.getGamesByTeam({games:a.data.data[0].games,idTeam:e.home_team,type:"home"}),this.validateDataLocalStorage({team:e.home_team,inFavor:!0,game:this.game})&&await this.requestOrchestrator({games:this.gamesAllHome,team:this.game.home_team,inFavor:!0,game:this.game}))},obtenerNombreAbreviado(e){let a=e.split(", ");if(a.length!==2)return e;let r=a[0],d=a[1],g=r.split(" ")[0];return d.charAt(0).toUpperCase()+". "+g},getDataPlayers(e){for(let a=0;a<e.length;a++)this.playersData.hasOwnProperty(e[a].player_id)||(this.playersData[e[a].player_id]={name:this.obtenerNombreAbreviado(e[a].name),last_name:e[a].name.includes(",")?e[a].name.split(",")[0].trim():"",first_name:e[a].name.includes(",")?e[a].name.split(",")[1].trim():"",img:e[a].photo,photo:e[a].photo,position:e[a].position_id,positions:[e[a].position_id],id:e[a].player_id,player_id:e[a].player_id,team_id:e[a].team_id,team:e[a].team_id,nationality_id:e[a].nationality_id,nationality_flag:"https://az755631.vo.msecnd.net/flags/"+e[a].nationality_id+".jpg",jersey:e[a].jersey,isSelected:!0})},getSeasonByGame(e){e.season!=""?this.seasonsByGame[e.game]=e.season:this.seasonsByGame[e.game]="-"},getMatchByGame(e){e.match!=""?this.matchesByGame[e.game]=e.match.replace("M","J"):this.matchesByGame[e.game]="-"},getRivalsByGame(e){this.rivalsByGame[e.favor?"InFavor":"Against"]?this.rivalsByGame[e.favor?"InFavor":"Against"][e.team]?this.rivalsByGame[e.favor?"InFavor":"Against"][e.team][e.game]=e.rival:(this.rivalsByGame[e.favor?"InFavor":"Against"][e.team]={},this.rivalsByGame[e.favor?"InFavor":"Against"][e.team][e.game]=e.rival):(this.rivalsByGame[e.favor?"InFavor":"Against"]={},this.rivalsByGame[e.favor?"InFavor":"Against"][e.team]={},this.rivalsByGame[e.favor?"InFavor":"Against"][e.team][e.game]=e.rival)},getDataTeams(e){for(let a=0;a<e.length;a++)this.teamsData.hasOwnProperty(e[a].team_id)||(this.teamsData[e[a].team_id]={name:e[a].name,acronym:e[a].acronym,img:"https://az755631.vo.msecnd.net/teams-80/"+e[a].team_id+".png",id:e[a].team_id})},getTypePlay(e){typeof e=="string"&&(this.typePlay=e)},clickOpenModal(){this.openModal=!this.openModal,document.body.classList.add("no-scroll")},clickCloseFinal(){this.openModal=!1,document.body.classList.remove("no-scroll")},onOpenMediaPlayer(e){this.$emit("open-media-player",e)},onOpenMediaPlayerJson(e){let a={seasonId:this.seasonId,mainSectionType:1,playListType:3,categoryIds:[e.id],gameIds:this.forGame?[this.game.id]:null,playerIds:[],goalkeeperIds:[],teamId:this.teamSelected,matchResult:[1,2,3],playData:{},advancedFilter:{playListTitle:""}};this.$emit("open-media-player",a)}},mounted(){this.setHeaderStickyListener();const e=()=>{const a=document.querySelector(".gsc-set-piece");a?this.containerWidth=a.clientWidth:setTimeout(()=>{},400)};window.addEventListener("resize",e),this.$nextTick(e)}},j8t={class:"gsc-set-piece"},U8t={ref:"header",class:"gsc-set-piece__header"};function H8t(e,a,r,d,g,i){const s=t.resolveComponent("GSCHeaderSetPiece"),n=t.resolveComponent("GSCDataToHighlight"),_=t.resolveComponent("GSCTrend"),f=t.resolveComponent("GSCConnectionsSetPiece"),o=t.resolveComponent("GSCModalBreakdown"),m=t.resolveComponent("GSCSpecificPlays");return t.openBlock(),t.createElementBlock("div",j8t,[t.createElementVNode("div",U8t,[(t.openBlock(),t.createBlock(s,{"width-container":g.containerWidth,type:r.forTeam?0:3,"teams-data":g.teamsData,"game-info":r.game,"total-corners":i.calculateTotal,"show-corners":g.showCorners,"in-favor":g.infavoragainst,"corners-in-favor":i.cornersInFavor,"corners-against":i.cornersAgainst,"for-game":r.forGame,key:g.updateFilter,lateralidad:g.lateralidad,"available-players":g.filterPlayersAvailable,"available-games":g.filterGamesAvailable,"is-synchronization":r.isSynchronization,onChangeShowFilters:i.onChangeShowFilters,onChangetypePlay:i.getTypePlay,onOpenModal:i.clickOpenModal,onTeamselected:i.getTeamSelected,onInfavoragainstteam:i.getInFavorAgainstTeam,onFilter_results_by_time:i.getFilterResultsByTime,onFilter_details:i.getFilterDetails,onFilter_games:i.getFilterGames,onFilter_takencorners:i.getFilterTakenCorners,onFilter_howwascorner:i.getFilterHowWasCorner,onFilter_zone:i.getFilterZone,onFilter_whathappened:i.getFilterWhatHappened},null,8,["width-container","type","teams-data","game-info","total-corners","show-corners","in-favor","corners-in-favor","corners-against","for-game","lateralidad","available-players","available-games","is-synchronization","onChangeShowFilters","onChangetypePlay","onOpenModal","onTeamselected","onInfavoragainstteam","onFilter_results_by_time","onFilter_details","onFilter_games","onFilter_takencorners","onFilter_howwascorner","onFilter_zone","onFilter_whathappened"]))],512),!r.isSynchronization&&g.teamSelected>0?(t.openBlock(),t.createBlock(n,{key:0,team:g.teamSelected,season:r.game.season,"in-favor":g.infavoragainst,"width-container":g.containerWidth},null,8,["team","season","in-favor","width-container"])):t.createCommentVNode("",!0),r.isSynchronization?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(_,{"players-data":g.playersData,"teams-data":g.teamsData,"touch-all-data":i.calculationTouchesData,"field-positions-all":i.calculationPositionsData,"width-container":g.containerWidth,"in-favor":g.infavoragainst,"for-game":r.forGame,"home-team":r.game.home_team,"away-team":r.game.away_team,"acronym-home":r.game.home_acronym,"acronym-away":r.game.away_acronym,team:g.teamSelected,"type-play":g.typePlay,selected_category:g.filters.cornertype,"is-tactic-visible":r.isTacticVisible,key:g.updateTrend,onChangelateralidad:i.setCornersSide},null,8,["players-data","teams-data","touch-all-data","field-positions-all","width-container","in-favor","for-game","home-team","away-team","acronym-home","acronym-away","team","type-play","selected_category","is-tactic-visible","onChangelateralidad"])),!r.isSynchronization&&g.teamSelected>0?(t.openBlock(),t.createBlock(f,{"seasons-by-game":g.seasonsByGame,"matches-by-game":g.matchesByGame,"rivals-by-game":g.rivalsByGame,"width-container":g.containerWidth,"players-data":g.playersData,"teams-data":g.teamsData,"touch-all-data":i.calculationTouchesData,"team-id":r.forGame?g.infavoragainst?g.teamSelected:g.teamSelected==r.game.home_team?r.game.away_team:r.game.home_team:g.teamSelected,"in-favor":g.infavoragainst,"for-game":r.forGame,key:g.updateConnections},null,8,["seasons-by-game","matches-by-game","rivals-by-game","width-container","players-data","teams-data","touch-all-data","team-id","in-favor","for-game"])):t.createCommentVNode("",!0),g.openModal?(t.openBlock(),t.createBlock(o,{key:3,"component-width":g.containerWidth,onClickClose:i.clickCloseFinal,"show-modal-prop":g.openModal,id:g.teamSelected,"season-id":r.game.season,game:r.game.id,onClickPlay:i.onOpenMediaPlayerJson,prematch:!!r.forGame},null,8,["component-width","onClickClose","show-modal-prop","id","season-id","game","onClickPlay","prematch"])):t.createCommentVNode("",!0),g.teamSelected&&r.game.season?(t.openBlock(),t.createBlock(m,{key:4,"team-id-for-analysis":g.teamSelected,"season-id-for-analysis":r.game?r.game.season:g.seasonId,"width-container":g.containerWidth,filters:g.filters,"is-game-only":i.isGameOnly,game:r.game,"is-against-mode":!g.infavoragainst,"are-filters-open":g.areFiltersOpen,"is-tactic-visible":r.isTacticVisible,"is-synchronization":r.isSynchronization,onOpenMediaPlayer:i.onOpenMediaPlayer},null,8,["team-id-for-analysis","season-id-for-analysis","width-container","filters","is-game-only","game","is-against-mode","are-filters-open","is-tactic-visible","is-synchronization","onOpenMediaPlayer"])):t.createCommentVNode("",!0)])}const G8t=Si($8t,[["render",H8t],["__scopeId","data-v-563d6f72"]]),pIt="",hIt="",W8t={class:"datagame-container"},q8t=Ti({__name:"GSCTacticaFijaMain",props:{game:{type:Object,default:()=>({})},isTacticVisible:{type:Boolean,default:!0},isSynchronization:{type:Boolean,default:!1}},emits:["open-media-player"],setup(e,{emit:a}){function r(d){a("open-media-player",d)}return(d,g)=>(t.openBlock(),t.createElementBlock("div",W8t,[t.createVNode(t.unref(G8t),{game:{id:e.game.gameId,home_team:e.game.homeTeam.team_id,away_team:e.game.awayTeam.team_id,season:e.game.seasonId,game_status:e.game.game_status,home_acronym:e.game.homeTeam.acronym,away_acronym:e.game.awayTeam.acronym,logo_home:"https://az755631.vo.msecnd.net/teams-80/"+e.game.homeTeam.team_id+".png",logo_away:"https://az755631.vo.msecnd.net/teams-80/"+e.game.awayTeam.team_id+".png"},"for-season":e.game.game_status==4,"for-team":!1,"for-game":e.game.game_status!=4,"is-tactic-visible":e.isTacticVisible,"is-synchronization":e.isSynchronization,onOpenMediaPlayer:r},null,8,["game","for-season","for-game","is-tactic-visible","is-synchronization"])]))}},[["__scopeId","data-v-32e5c7c6"]]),$0=(e,a)=>{const r=e.__vccOpts||e;for(const[d,g]of a)r[d]=g;return r},Y8t={__name:"ButtonCustom",props:{text:{type:String,default:""},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},padding:{type:String,default:"0px"},borderRadius:{type:String,default:"0px"},borderWidth:{type:String,default:"1px"},borderColor:{type:String,default:"#d9d9d9"},backgroundColor:{type:String,default:"#FFFFFF"},activeBackgroundColor:{type:String,default:""},activeBorderColor:{type:String,default:""},activeBorderWidth:{type:String,default:"1px"},activeFontColor:{type:String,default:""},fontColor:{type:String,default:"#000000"},fontSize:{type:String,default:"16px"},fontFamily:{type:String,default:"Poppins-Regular, sans-serif"},isActive:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:a}){const r=e,d=t.computed(()=>({"--height":r.height,"--width":r.width,"--padding":r.padding,"--border-radius":r.borderRadius,"--border":`solid ${r.borderWidth} ${r.borderColor}`,"--background-color":r.backgroundColor,"--font-color":r.fontColor,"--font-size":r.fontSize,"--font-family":r.fontFamily,"--active-background-color":r.activeBackgroundColor||r.backgroundColor,"--active-border-color":r.activeBorderColor||r.borderColor,"--active-font-color":r.activeFontColor||r.fontColor}));function g(){a("click")}return(i,s)=>(t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass(["button",{active:e.isActive}]),style:t.normalizeStyle(d.value),onClick:g},t.toDisplayString(e.text),7))}},Z8t=$0(Y8t,[["__scopeId","data-v-ea76c1c1"]]);function Bz(e,a){return function(){return e.apply(a,arguments)}}const{toString:X8t}=Object.prototype,{getPrototypeOf:i8}=Object,z_=(e=>a=>{const r=X8t.call(a);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Ud=e=>(e=e.toLowerCase(),a=>z_(a)===e),V_=e=>a=>typeof a===e,{isArray:uf}=Array,j0=V_("undefined");function K8t(e){return e!==null&&!j0(e)&&e.constructor!==null&&!j0(e.constructor)&&_c(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Iz=Ud("ArrayBuffer");function J8t(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&Iz(e.buffer),a}const Q8t=V_("string"),_c=V_("function"),Mz=V_("number"),L_=e=>e!==null&&typeof e=="object",e7t=e=>e===!0||e===!1,D_=e=>{if(z_(e)!=="object")return!1;const a=i8(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},t7t=Ud("Date"),a7t=Ud("File"),r7t=Ud("Blob"),n7t=Ud("FileList"),i7t=e=>L_(e)&&_c(e.pipe),o7t=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||_c(e.append)&&((a=z_(e))==="formdata"||a==="object"&&_c(e.toString)&&e.toString()==="[object FormData]"))},s7t=Ud("URLSearchParams"),l7t=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function U0(e,a,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let d,g;if(typeof e!="object"&&(e=[e]),uf(e))for(d=0,g=e.length;d<g;d++)a.call(null,e[d],d,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let n;for(d=0;d<s;d++)n=i[d],a.call(null,e[n],n,e)}}function Oz(e,a){a=a.toLowerCase();const r=Object.keys(e);let d=r.length,g;for(;d-- >0;)if(g=r[d],a===g.toLowerCase())return g;return null}const Pz=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Fz=e=>!j0(e)&&e!==Pz;function o8(){const{caseless:e}=Fz(this)&&this||{},a={},r=(d,g)=>{const i=e&&Oz(a,g)||g;D_(a[i])&&D_(d)?a[i]=o8(a[i],d):D_(d)?a[i]=o8({},d):uf(d)?a[i]=d.slice():a[i]=d};for(let d=0,g=arguments.length;d<g;d++)arguments[d]&&U0(arguments[d],r);return a}const c7t=(e,a,r,{allOwnKeys:d}={})=>(U0(a,(g,i)=>{r&&_c(g)?e[i]=Bz(g,r):e[i]=g},{allOwnKeys:d}),e),d7t=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),u7t=(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)},p7t=(e,a,r,d)=>{let g,i,s;const n={};if(a=a||{},e==null)return a;do{for(g=Object.getOwnPropertyNames(e),i=g.length;i-- >0;)s=g[i],(!d||d(s,e,a))&&!n[s]&&(a[s]=e[s],n[s]=!0);e=r!==!1&&i8(e)}while(e&&(!r||r(e,a))&&e!==Object.prototype);return a},h7t=(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},f7t=e=>{if(!e)return null;if(uf(e))return e;let a=e.length;if(!Mz(a))return null;const r=new Array(a);for(;a-- >0;)r[a]=e[a];return r},m7t=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&i8(Uint8Array)),g7t=(e,a)=>{const r=(e&&e[Symbol.iterator]).call(e);let d;for(;(d=r.next())&&!d.done;){const g=d.value;a.call(e,g[0],g[1])}},y7t=(e,a)=>{let r;const d=[];for(;(r=e.exec(a))!==null;)d.push(r);return d},_7t=Ud("HTMLFormElement"),v7t=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,r,d){return r.toUpperCase()+d}),Rz=(({hasOwnProperty:e})=>(a,r)=>e.call(a,r))(Object.prototype),b7t=Ud("RegExp"),zz=(e,a)=>{const r=Object.getOwnPropertyDescriptors(e),d={};U0(r,(g,i)=>{let s;(s=a(g,i,e))!==!1&&(d[i]=s||g)}),Object.defineProperties(e,d)},x7t=e=>{zz(e,(a,r)=>{if(_c(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const d=e[r];if(_c(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+"'")})}})},w7t=(e,a)=>{const r={},d=g=>{g.forEach(i=>{r[i]=!0})};return uf(e)?d(e):d(String(e).split(a)),r},k7t=()=>{},C7t=(e,a)=>(e=+e,Number.isFinite(e)?e:a),s8="abcdefghijklmnopqrstuvwxyz",Vz="0123456789",Lz={DIGIT:Vz,ALPHA:s8,ALPHA_DIGIT:s8+s8.toUpperCase()+Vz},E7t=(e=16,a=Lz.ALPHA_DIGIT)=>{let r="";const{length:d}=a;for(;e--;)r+=a[Math.random()*d|0];return r};function T7t(e){return!!(e&&_c(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const S7t=e=>{const a=new Array(10),r=(d,g)=>{if(L_(d)){if(a.indexOf(d)>=0)return;if(!("toJSON"in d)){a[g]=d;const i=uf(d)?[]:{};return U0(d,(s,n)=>{const _=r(s,g+1);!j0(_)&&(i[n]=_)}),a[g]=void 0,i}}return d};return r(e,0)},A7t=Ud("AsyncFunction"),N7t=e=>e&&(L_(e)||_c(e))&&_c(e.then)&&_c(e.catch),Br={isArray:uf,isArrayBuffer:Iz,isBuffer:K8t,isFormData:o7t,isArrayBufferView:J8t,isString:Q8t,isNumber:Mz,isBoolean:e7t,isObject:L_,isPlainObject:D_,isUndefined:j0,isDate:t7t,isFile:a7t,isBlob:r7t,isRegExp:b7t,isFunction:_c,isStream:i7t,isURLSearchParams:s7t,isTypedArray:m7t,isFileList:n7t,forEach:U0,merge:o8,extend:c7t,trim:l7t,stripBOM:d7t,inherits:u7t,toFlatObject:p7t,kindOf:z_,kindOfTest:Ud,endsWith:h7t,toArray:f7t,forEachEntry:g7t,matchAll:y7t,isHTMLForm:_7t,hasOwnProperty:Rz,hasOwnProp:Rz,reduceDescriptors:zz,freezeMethods:x7t,toObjectSet:w7t,toCamelCase:v7t,noop:k7t,toFiniteNumber:C7t,findKey:Oz,global:Pz,isContextDefined:Fz,ALPHABET:Lz,generateString:E7t,isSpecCompliantForm:T7t,toJSONObject:S7t,isAsyncFn:A7t,isThenable:N7t};function Xn(e,a,r,d,g){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),g&&(this.response=g)}Br.inherits(Xn,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:Br.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Dz=Xn.prototype,$z={};["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=>{$z[e]={value:e}}),Object.defineProperties(Xn,$z),Object.defineProperty(Dz,"isAxiosError",{value:!0}),Xn.from=(e,a,r,d,g,i)=>{const s=Object.create(Dz);return Br.toFlatObject(e,s,function(n){return n!==Error.prototype},n=>n!=="isAxiosError"),Xn.call(s,e.message,a,r,d,g),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const B7t=null;function l8(e){return Br.isPlainObject(e)||Br.isArray(e)}function jz(e){return Br.endsWith(e,"[]")?e.slice(0,-2):e}function Uz(e,a,r){return e?e.concat(a).map(function(d,g){return d=jz(d),!r&&g?"["+d+"]":d}).join(r?".":""):a}function I7t(e){return Br.isArray(e)&&!e.some(l8)}const M7t=Br.toFlatObject(Br,{},null,function(e){return/^is[A-Z]/.test(e)});function $_(e,a,r){if(!Br.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,r=Br.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,l){return!Br.isUndefined(l[c])});const d=r.metaTokens,g=r.visitor||f,i=r.dots,s=r.indexes,n=(r.Blob||typeof Blob<"u"&&Blob)&&Br.isSpecCompliantForm(a);if(!Br.isFunction(g))throw new TypeError("visitor must be a function");function _(c){if(c===null)return"";if(Br.isDate(c))return c.toISOString();if(!n&&Br.isBlob(c))throw new Xn("Blob is not supported. Use a Buffer instead.");return Br.isArrayBuffer(c)||Br.isTypedArray(c)?n&&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(Br.endsWith(l,"{}"))l=d?l:l.slice(0,-2),c=JSON.stringify(c);else if(Br.isArray(c)&&I7t(c)||(Br.isFileList(c)||Br.endsWith(l,"[]"))&&(p=Br.toArray(c)))return l=jz(l),p.forEach(function(h,y){!(Br.isUndefined(h)||h===null)&&a.append(s===!0?Uz([l],y,i):s===null?l:l+"[]",_(h))}),!1}return l8(c)?!0:(a.append(Uz(u,l,i),_(c)),!1)}const o=[],m=Object.assign(M7t,{defaultVisitor:f,convertValue:_,isVisitable:l8});function x(c,l){if(!Br.isUndefined(c)){if(o.indexOf(c)!==-1)throw Error("Circular reference detected in "+l.join("."));o.push(c),Br.forEach(c,function(u,p){(!(Br.isUndefined(u)||u===null)&&g.call(a,u,Br.isString(p)?p.trim():p,l,m))===!0&&x(u,l?l.concat(p):[p])}),o.pop()}}if(!Br.isObject(e))throw new TypeError("data must be an object");return x(e),a}function Hz(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return a[r]})}function c8(e,a){this._pairs=[],e&&$_(e,this,a)}const Gz=c8.prototype;Gz.append=function(e,a){this._pairs.push([e,a])},Gz.toString=function(e){const a=e?function(r){return e.call(this,r,Hz)}:Hz;return this._pairs.map(function(r){return a(r[0])+"="+a(r[1])},"").join("&")};function O7t(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Wz(e,a,r){if(!a)return e;const d=r&&r.encode||O7t,g=r&&r.serialize;let i;if(g?i=g(a,r):i=Br.isURLSearchParams(a)?a.toString():new c8(a,r).toString(d),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class P7t{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){Br.forEach(this.handlers,function(r){r!==null&&a(r)})}}const qz=P7t,Yz={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},F7t=typeof URLSearchParams<"u"?URLSearchParams:c8,R7t=typeof FormData<"u"?FormData:null,z7t=typeof Blob<"u"?Blob:null,V7t={isBrowser:!0,classes:{URLSearchParams:F7t,FormData:R7t,Blob:z7t},protocols:["http","https","file","blob","url","data"]},Zz=typeof window<"u"&&typeof document<"u",L7t=(e=>Zz&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),D7t=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),$7t=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Zz,hasStandardBrowserEnv:L7t,hasStandardBrowserWebWorkerEnv:D7t},Symbol.toStringTag,{value:"Module"})),Hd={...$7t,...V7t};function j7t(e,a){return $_(e,new Hd.classes.URLSearchParams,Object.assign({visitor:function(r,d,g,i){return Hd.isNode&&Br.isBuffer(r)?(this.append(d,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},a))}function U7t(e){return Br.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function H7t(e){const a={},r=Object.keys(e);let d;const g=r.length;let i;for(d=0;d<g;d++)i=r[d],a[i]=e[i];return a}function Xz(e){function a(r,d,g,i){let s=r[i++];if(s==="__proto__")return!0;const n=Number.isFinite(+s),_=i>=r.length;return s=!s&&Br.isArray(g)?g.length:s,_?(Br.hasOwnProp(g,s)?g[s]=[g[s],d]:g[s]=d,!n):((!g[s]||!Br.isObject(g[s]))&&(g[s]=[]),a(r,d,g[s],i)&&Br.isArray(g[s])&&(g[s]=H7t(g[s])),!n)}if(Br.isFormData(e)&&Br.isFunction(e.entries)){const r={};return Br.forEachEntry(e,(d,g)=>{a(U7t(d),g,r,0)}),r}return null}function G7t(e,a,r){if(Br.isString(e))try{return(a||JSON.parse)(e),Br.trim(e)}catch(d){if(d.name!=="SyntaxError")throw d}return(r||JSON.stringify)(e)}const d8={transitional:Yz,adapter:["xhr","http"],transformRequest:[function(e,a){const r=a.getContentType()||"",d=r.indexOf("application/json")>-1,g=Br.isObject(e);if(g&&Br.isHTMLForm(e)&&(e=new FormData(e)),Br.isFormData(e))return d?JSON.stringify(Xz(e)):e;if(Br.isArrayBuffer(e)||Br.isBuffer(e)||Br.isStream(e)||Br.isFile(e)||Br.isBlob(e))return e;if(Br.isArrayBufferView(e))return e.buffer;if(Br.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(g){if(r.indexOf("application/x-www-form-urlencoded")>-1)return j7t(e,this.formSerializer).toString();if((i=Br.isFileList(e))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return $_(i?{"files[]":e}:e,s&&new s,this.formSerializer)}}return g||d?(a.setContentType("application/json",!1),G7t(e)):e}],transformResponse:[function(e){const a=this.transitional||d8.transitional,r=a&&a.forcedJSONParsing,d=this.responseType==="json";if(e&&Br.isString(e)&&(r&&!this.responseType||d)){const g=!(a&&a.silentJSONParsing)&&d;try{return JSON.parse(e)}catch(i){if(g)throw i.name==="SyntaxError"?Xn.from(i,Xn.ERR_BAD_RESPONSE,this,null,this.response):i}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Hd.classes.FormData,Blob:Hd.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Br.forEach(["delete","get","head","post","put","patch"],e=>{d8.headers[e]={}});const u8=d8,W7t=Br.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"]),q7t=e=>{const a={};let r,d,g;return e&&e.split(`
|
|
3565
3565
|
`).forEach(function(i){g=i.indexOf(":"),r=i.substring(0,g).trim().toLowerCase(),d=i.substring(g+1).trim(),!(!r||a[r]&&W7t[r])&&(r==="set-cookie"?a[r]?a[r].push(d):a[r]=[d]:a[r]=a[r]?a[r]+", "+d:d)}),a},Kz=Symbol("internals");function H0(e){return e&&String(e).trim().toLowerCase()}function j_(e){return e===!1||e==null?e:Br.isArray(e)?e.map(j_):String(e)}function Y7t(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 Z7t=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function p8(e,a,r,d,g){if(Br.isFunction(d))return d.call(this,a,r);if(g&&(a=r),!!Br.isString(a)){if(Br.isString(d))return a.indexOf(d)!==-1;if(Br.isRegExp(d))return d.test(a)}}function X7t(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,r,d)=>r.toUpperCase()+d)}function K7t(e,a){const r=Br.toCamelCase(" "+a);["get","set","has"].forEach(d=>{Object.defineProperty(e,d+r,{value:function(g,i,s){return this[d].call(this,a,g,i,s)},configurable:!0})})}class U_{constructor(a){a&&this.set(a)}set(a,r,d){const g=this;function i(n,_,f){const o=H0(_);if(!o)throw new Error("header name must be a non-empty string");const m=Br.findKey(g,o);(!m||g[m]===void 0||f===!0||f===void 0&&g[m]!==!1)&&(g[m||_]=j_(n))}const s=(n,_)=>Br.forEach(n,(f,o)=>i(f,o,_));return Br.isPlainObject(a)||a instanceof this.constructor?s(a,r):Br.isString(a)&&(a=a.trim())&&!Z7t(a)?s(q7t(a),r):a!=null&&i(r,a,d),this}get(a,r){if(a=H0(a),a){const d=Br.findKey(this,a);if(d){const g=this[d];if(!r)return g;if(r===!0)return Y7t(g);if(Br.isFunction(r))return r.call(this,g,d);if(Br.isRegExp(r))return r.exec(g);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,r){if(a=H0(a),a){const d=Br.findKey(this,a);return!!(d&&this[d]!==void 0&&(!r||p8(this,this[d],d,r)))}return!1}delete(a,r){const d=this;let g=!1;function i(s){if(s=H0(s),s){const n=Br.findKey(d,s);n&&(!r||p8(d,d[n],n,r))&&(delete d[n],g=!0)}}return Br.isArray(a)?a.forEach(i):i(a),g}clear(a){const r=Object.keys(this);let d=r.length,g=!1;for(;d--;){const i=r[d];(!a||p8(this,this[i],i,a,!0))&&(delete this[i],g=!0)}return g}normalize(a){const r=this,d={};return Br.forEach(this,(g,i)=>{const s=Br.findKey(d,i);if(s){r[s]=j_(g),delete r[i];return}const n=a?X7t(i):String(i).trim();n!==i&&delete r[i],r[n]=j_(g),d[n]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const r=Object.create(null);return Br.forEach(this,(d,g)=>{d!=null&&d!==!1&&(r[g]=a&&Br.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(`
|
|
3566
3566
|
`)}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(g=>d.set(g)),d}static accessor(a){const r=(this[Kz]=this[Kz]={accessors:{}}).accessors,d=this.prototype;function g(i){const s=H0(i);r[s]||(K7t(d,i),r[s]=!0)}return Br.isArray(a)?a.forEach(g):g(a),this}}U_.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Br.reduceDescriptors(U_.prototype,({value:e},a)=>{let r=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(d){this[r]=d}}}),Br.freezeMethods(U_);const vu=U_;function h8(e,a){const r=this||u8,d=a||r,g=vu.from(d.headers);let i=d.data;return Br.forEach(e,function(s){i=s.call(r,i,g.normalize(),a?a.status:void 0)}),g.normalize(),i}function Jz(e){return!!(e&&e.__CANCEL__)}function G0(e,a,r){Xn.call(this,e??"canceled",Xn.ERR_CANCELED,a,r),this.name="CanceledError"}Br.inherits(G0,Xn,{__CANCEL__:!0});function J7t(e,a,r){const d=r.config.validateStatus;!r.status||!d||d(r.status)?e(r):a(new Xn("Request failed with status code "+r.status,[Xn.ERR_BAD_REQUEST,Xn.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const Q7t=Hd.hasStandardBrowserEnv?{write(e,a,r,d,g,i){const s=[e+"="+encodeURIComponent(a)];Br.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),Br.isString(d)&&s.push("path="+d),Br.isString(g)&&s.push("domain="+g),i===!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 ekt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function tkt(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function Qz(e,a){return e&&!ekt(a)?tkt(e,a):a}const akt=Hd.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");let r;function d(g){let i=g;return e&&(a.setAttribute("href",i),i=a.href),a.setAttribute("href",i),{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(g){const i=Br.isString(g)?d(g):g;return i.protocol===r.protocol&&i.host===r.host}}():function(){return function(){return!0}}();function rkt(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function nkt(e,a){e=e||10;const r=new Array(e),d=new Array(e);let g=0,i=0,s;return a=a!==void 0?a:1e3,function(n){const _=Date.now(),f=d[i];s||(s=_),r[g]=n,d[g]=_;let o=i,m=0;for(;o!==g;)m+=r[o++],o=o%e;if(g=(g+1)%e,g===i&&(i=(i+1)%e),_-s<a)return;const x=f&&_-f;return x?Math.round(m*1e3/x):void 0}}function eV(e,a){let r=0;const d=nkt(50,250);return g=>{const i=g.loaded,s=g.lengthComputable?g.total:void 0,n=i-r,_=d(n),f=i<=s;r=i;const o={loaded:i,total:s,progress:s?i/s:void 0,bytes:n,rate:_||void 0,estimated:_&&s&&f?(s-i)/_:void 0,event:g};o[a?"download":"upload"]=!0,e(o)}}const ikt=typeof XMLHttpRequest<"u",okt=ikt&&function(e){return new Promise(function(a,r){let d=e.data;const g=vu.from(e.headers).normalize();let{responseType:i,withXSRFToken:s}=e,n;function _(){e.cancelToken&&e.cancelToken.unsubscribe(n),e.signal&&e.signal.removeEventListener("abort",n)}let f;if(Br.isFormData(d)){if(Hd.hasStandardBrowserEnv||Hd.hasStandardBrowserWebWorkerEnv)g.setContentType(!1);else if((f=g.getContentType())!==!1){const[l,...u]=f?f.split(";").map(p=>p.trim()).filter(Boolean):[];g.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)):"";g.set("Authorization","Basic "+btoa(l+":"+u))}const m=Qz(e.baseURL,e.url);o.open(e.method.toUpperCase(),Wz(m,e.params,e.paramsSerializer),!0),o.timeout=e.timeout;function x(){if(!o)return;const l=vu.from("getAllResponseHeaders"in o&&o.getAllResponseHeaders()),u={data:!i||i==="text"||i==="json"?o.responseText:o.response,status:o.status,statusText:o.statusText,headers:l,config:e,request:o};J7t(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 Xn("Request aborted",Xn.ECONNABORTED,e,o)),o=null)},o.onerror=function(){r(new Xn("Network Error",Xn.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||Yz;e.timeoutErrorMessage&&(l=e.timeoutErrorMessage),r(new Xn(l,u.clarifyTimeoutError?Xn.ETIMEDOUT:Xn.ECONNABORTED,e,o)),o=null},Hd.hasStandardBrowserEnv&&(s&&Br.isFunction(s)&&(s=s(e)),s||s!==!1&&akt(m))){const l=e.xsrfHeaderName&&e.xsrfCookieName&&Q7t.read(e.xsrfCookieName);l&&g.set(e.xsrfHeaderName,l)}d===void 0&&g.setContentType(null),"setRequestHeader"in o&&Br.forEach(g.toJSON(),function(l,u){o.setRequestHeader(u,l)}),Br.isUndefined(e.withCredentials)||(o.withCredentials=!!e.withCredentials),i&&i!=="json"&&(o.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&o.addEventListener("progress",eV(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&o.upload&&o.upload.addEventListener("progress",eV(e.onUploadProgress)),(e.cancelToken||e.signal)&&(n=l=>{o&&(r(!l||l.type?new G0(null,e,o):l),o.abort(),o=null)},e.cancelToken&&e.cancelToken.subscribe(n),e.signal&&(e.signal.aborted?n():e.signal.addEventListener("abort",n)));const c=rkt(m);if(c&&Hd.protocols.indexOf(c)===-1){r(new Xn("Unsupported protocol "+c+":",Xn.ERR_BAD_REQUEST,e));return}o.send(d||null)})},f8={http:B7t,xhr:okt};Br.forEach(f8,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const tV=e=>`- ${e}`,skt=e=>Br.isFunction(e)||e===null||e===!1,aV={getAdapter:e=>{e=Br.isArray(e)?e:[e];const{length:a}=e;let r,d;const g={};for(let i=0;i<a;i++){r=e[i];let s;if(d=r,!skt(r)&&(d=f8[(s=String(r)).toLowerCase()],d===void 0))throw new Xn(`Unknown adapter '${s}'`);if(d)break;g[s||"#"+i]=d}if(!d){const i=Object.entries(g).map(([n,_])=>`adapter ${n} `+(_===!1?"is not supported by the environment":"is not available in the build"));let s=a?i.length>1?`since :
|
|
3567
3567
|
`+i.map(tV).join(`
|