!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ae760645-d11a-425c-9f48-a2ed8b40e77c",e._sentryDebugIdIdentifier="sentry-dbid-ae760645-d11a-425c-9f48-a2ed8b40e77c")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9915],{7360:(e,t,n)=>{n.d(t,{g:()=>x});var o=n(6029),i=n(49519),a=n(21377),l=n(41249),r=n(55729),s=n(947),d=n(62859),c=n(54409),u=n(65078),h=n(94604),f=n(49031);function g(e){let{count:t}=e;return"number"!=typeof t||t<1?null:(0,o.jsxs)(l.az,{as:"bdi",children:[(0,o.jsx)(c.xK6,{width:"14",height:"14",fill:"error.default"}),t>1&&(0,o.jsxs)(l.EY,{color:"onSurface.nLv3",font:"body.small",style:{verticalAlign:"middle"},children:["x",t]})]})}function x(e){var t,n,c,x,m,p;let{isShort:v,style:y,entity:w}=e,j=(0,s.A)(),{event:b,leftTeam:S,rightTeam:C}=(0,r.useContext)(d.y$),[R,L]=(0,u.jr)(b,"homeRedCards","awayRedCards"),k=(0,u.gm)(b,"winnerCode"),T=b.status.type===a.XUj.Finished,F=k===a.Jfo.Left,N=k===a.Jfo.Right,A="onSurface.nLv1",E="onSurface.nLv1";(T||b.status.type===a.XUj.WillContinue)&&(A=F?"onSurface.nLv1":"onSurface.nLv3",E=N?"onSurface.nLv1":"onSurface.nLv3");let _=w===a.wNW.Manager||w===a.wNW.Player,M=(0,f.PZ)(b,j.formatMessage,j.locale),Y=(0,o.jsx)(i.p,{size:16,id:S.id,name:S.name,isSmall:!0}),D=(0,o.jsx)(i.p,{size:16,id:C.id,name:C.name,isSmall:!0});return S.type===a.YVh.Person?Y=(0,o.jsx)(i.w,{size:16,alpha2:null==(t=S.country)?void 0:t.alpha2,fallback:(0,o.jsx)(l._V,{src:"/static/images/placeholders/team.svg",width:"16",height:"16",alt:null==(n=S.country)?void 0:n.name}),name:null==(c=S.country)?void 0:c.name}):S.type===a.YVh.Double&&(Y=null),C.type===a.YVh.Person?D=(0,o.jsx)(i.w,{size:16,alpha2:null==(x=C.country)?void 0:x.alpha2,fallback:(0,o.jsx)(l._V,{src:"/static/images/placeholders/team.svg",width:"16",height:"16",alt:null==(m=C.country)?void 0:m.name}),name:null==(p=C.country)?void 0:p.name}):C.type===a.YVh.Double&&(D=null),(0,o.jsxs)(l.az,{flex:"1 1 ".concat(v?"100px":"140px"),title:M,overflow:"hidden",minW:"0",style:y,children:[(0,o.jsxs)(l.so,{align:"center",mb:"xxs",children:[Y&&(0,o.jsx)(l.az,{h:"16px",w:"16px",mr:"sm",children:Y}),(0,o.jsxs)(l.EY,{font:"body.medium",as:"bdi",ellipsis:!0,color:A,lineHeight:"16px",children:[(0,o.jsx)(h.Rm,{team:S,short:!0}),_?null:(0,o.jsx)(g,{count:R})]})]}),(0,o.jsxs)(l.so,{align:"center",children:[D&&(0,o.jsx)(l.az,{h:"16px",w:"16px",mr:"sm",children:D}),(0,o.jsxs)(l.EY,{font:"body.medium",as:"bdi",ellipsis:!0,color:E,lineHeight:"16px",children:[(0,o.jsx)(h.Rm,{team:C,short:!0}),_?null:(0,o.jsx)(g,{count:L})]})]})]})}},18612:(e,t,n)=>{n.d(t,{D:()=>o.D});var o=n(43451)},24313:(e,t,n)=>{n.d(t,{M:()=>i,l:()=>a});var o=n(55729);let i=(0,o.createContext)({}),a=()=>(0,o.useContext)(i);i.displayName="EventCellContext"},25745:(e,t,n)=>{n.d(t,{s:()=>o});async function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Sofa365!Sofa365!",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"qC9sJnXgvT3C";if(!e)return;let o=new TextEncoder,i=o.encode(t),a={name:"AES-GCM",iv:o.encode(n)},l=await crypto.subtle.importKey("raw",i,a,!1,["decrypt"]),r=new Uint8Array(Array.from(window.atob(e)).map(e=>e.charCodeAt(0)));try{let e=await crypto.subtle.decrypt(a,l,r);return new TextDecoder().decode(e)}catch(e){throw Error("Decrypt failed")}}},27372:(e,t,n)=>{n.d(t,{W:()=>a,X:()=>i});var o=n(56869);function i(e){return!e||!o.Hs.includes(e)}function a(e){var t;return e&&(null==(t=window.navigator.connection)?void 0:t.effectiveType)?"4g"===window.navigator.connection.effectiveType:!e}},36937:(e,t,n)=>{n.d(t,{$:()=>o.$,g:()=>i.g});var o=n(87473),i=n(7360)},43451:(e,t,n)=>{n.d(t,{D:()=>l});var o=n(6029),i=n(36145),a=n(41735);let l=({width:e="100%",height:t,animate:n=!1,viewBox:l,style:r,children:s,uniqueKey:d})=>{let c=(0,a.useTheme)();return(0,o.jsx)(i.Ay,Object.assign({speed:2,animate:n,width:e,height:t,backgroundColor:n?c.colors.surface.s0:c.colors.surface.s2,foregroundColor:c.colors.surface.s2,viewBox:l,style:r,uniqueKey:d},{children:s}))}},47146:(e,t,n)=>{n.d(t,{v:()=>l});var o=n(6029),i=n(29705);let a={second:59,minute:59,hour:24,day:7},l=e=>{let{timestamp:t,isAbsoluteTime:n,children:l}=e,{value:r,unit:s}=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now(),n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0,i={...a,...n||{}},l=(e-t)/1e3;if(Math.abs(l)0)return{value:Math.round(h),unit:"year"};let f=12*h+d.getMonth()-c.getMonth();return Math.round(Math.abs(f))>0?{value:Math.round(f),unit:"month"}:{value:Math.round(l/604800),unit:"week"}}(t,void 0,void 0,n);return(0,o.jsx)(i.A,{value:r,unit:s,numeric:"auto",children:e=>"function"==typeof l?l(e):(0,o.jsx)(o.Fragment,{children:e})})}},49031:(e,t,n)=>{n.d(t,{J_:()=>p,PZ:()=>u,TF:()=>v,t3:()=>g});var o=n(6029),i=n(21377),a=n(41249),l=n(55729),r=n(54409),s=n(8703),d=n(27372),c=n(84942);function u(e,t,n){return t({id:"event.title"},{home:(0,c.s)(e.homeTeam,n),away:(0,c.s)(e.awayTeam,n)})}let h={[i.QCR.IceHockey]:{assists:e=>(0,o.jsx)(r.NcS,{icon:"ice-hockey",width:e.width,height:e.height,fill:"secondary.default"}),goals:e=>(0,o.jsx)(r.CvR,{icon:"hockey-pak",width:e.width,height:e.height,fill:"secondary.default"})},[i.QCR.Handball]:{goals:e=>(0,o.jsx)(r.NcS,{icon:"handball",width:e.width,height:e.height,fill:"secondary.default"})},[i.QCR.Football]:{redCards:e=>(0,o.jsx)(r.CvR,{icon:"card-red",width:e.width,height:e.height,fill:"error.default"}),yellowRedCards:e=>(0,o.jsx)(r.CvR,{icon:"card-double-yellow",width:e.width,height:e.height}),yellowCards:e=>(0,o.jsx)(r.CvR,{icon:"card-yellow",width:e.width,height:e.height,fill:"scoreRating.s65"}),ownGoals:e=>(0,o.jsx)(r.NcS,{icon:"football-own-goal",width:e.width,height:e.height,fill:"error.default"}),assists:e=>(0,o.jsx)(r.NcS,{icon:"football-assist",width:e.width,height:e.height,fill:"secondary.default"}),penaltyGoals:e=>(0,o.jsx)(r.NcS,{icon:"football-penalty",width:e.width,height:e.height,fill:"secondary.default"}),goals:e=>(0,o.jsx)(r.NcS,{icon:"football-ball",width:e.width,height:e.height,fill:"secondary.default"})},[i.QCR.AmericanFootball]:{kickingExtraMade:e=>(0,o.jsx)(r.CvR,{icon:"af-extra-point",width:e.width,height:e.height,fill:"secondary.default"}),kickingFgMade:e=>(0,o.jsx)(r.CvR,{icon:"af-field-goal",width:e.width,height:e.height,fill:"secondary.default"}),passingTouchdowns:e=>(0,o.jsx)(r.NcS,{icon:"af-passing-touchdown",width:e.width,height:e.height,fill:"secondary.default"}),rushingTouchdowns:e=>(0,o.jsx)(r.CvR,{icon:"af-touchdown",width:e.width,height:e.height,fill:"secondary.default"}),receivingTouchdowns:e=>(0,o.jsx)(r.CvR,{icon:"af-touchdown",width:e.width,height:e.height,fill:"secondary.default"}),puntReturnsTouchdowns:e=>(0,o.jsx)(r.CvR,{icon:"af-touchdown",width:e.width,height:e.height,fill:"secondary.default"}),puntingReturnTouchdowns:e=>(0,o.jsx)(r.CvR,{icon:"af-touchdown",width:e.width,height:e.height,fill:"secondary.default"}),kickReturnsTouchdowns:e=>(0,o.jsx)(r.CvR,{icon:"af-touchdown",width:e.width,height:e.height,fill:"secondary.default"}),fumbleTouchdownReturns:e=>(0,o.jsx)(r.CvR,{icon:"af-touchdown",width:e.width,height:e.height,fill:"secondary.default"}),defensiveInterceptionsTouchdowns:e=>(0,o.jsx)(r.CvR,{icon:"af-touchdown",width:e.width,height:e.height,fill:"secondary.default"})},[i.QCR.Minifootball]:{redCards:e=>(0,o.jsx)(r.CvR,{icon:"card-red",width:e.width,height:e.height,fill:"error.default"}),yellowRedCards:e=>(0,o.jsx)(r.CvR,{icon:"card-double-yellow",width:e.width,height:e.height}),yellowCards:e=>(0,o.jsx)(r.CvR,{icon:"card-yellow",width:e.width,height:e.height,fill:"scoreRating.s65"}),ownGoals:e=>(0,o.jsx)(r.NcS,{icon:"football-own-goal",width:e.width,height:e.height,fill:"error.default"}),assists:e=>(0,o.jsx)(r.NcS,{icon:"football-assist",width:e.width,height:e.height,fill:"secondary.default"}),penaltyGoals:e=>(0,o.jsx)(r.NcS,{icon:"football-penalty",width:e.width,height:e.height,fill:"secondary.default"}),goals:e=>(0,o.jsx)(r.NcS,{icon:"football-ball",width:e.width,height:e.height,fill:"secondary.default"}),accumulatedPenaltyGoals:e=>(0,o.jsx)(r.CvR,{icon:"accumulated-penalty",width:e.width,height:e.height,fill:"secondary.default"})}},f={rushingTouchdowns:1,receivingTouchdowns:1,puntReturnsTouchdowns:1,puntingReturnTouchdowns:1,kickReturnsTouchdowns:1,fumbleTouchdownReturns:1,defensiveInterceptionsTouchdowns:1},g=(e,t)=>{let n=[],s=h[e]||{};if(Object.keys(s).map(r=>{let d=s[r],c=t&&t[r];if(!c||r in f)return;if(e===i.QCR.Football&&"goals"===r){var u;if(!(c-=null!=(u=null==t?void 0:t.penaltyGoals)?u:0))return}if("yellowCards"===r&&((null==t?void 0:t.redCards)||(null==t?void 0:t.yellowRedCards)))return;let h=16;"yellowRedCards"===r&&(h=20);let g=c>1?c:"";n.push((0,o.jsxs)(l.Fragment,{children:[(0,o.jsx)(a.EY,{color:"secondary.default",ml:"sm",fontWeight:500,children:g}),(0,o.jsx)(d,{width:h,height:h,viewBox:"0 0 16 16"},"".concat(c,"-").concat(r))]},"".concat(c,"-").concat(r)))}),e===i.QCR.AmericanFootball){let e=Object.keys(f).map(e=>t&&t[e]?t[e]:0).reduce((e,t)=>e+t,0);e&&n.push((0,o.jsxs)(l.Fragment,{children:[(0,o.jsx)(a.EY,{color:"secondary.default",ml:"sm",fontWeight:500,children:e>1&&e}),(0,o.jsx)(r.CvR,{icon:"af-touchdown",width:16,height:16,fill:"secondary.default"},"special")]},"".concat(e,"-af")))}return n},x=["sm","lg"],m=[i.QCR.IceHockey,i.QCR.Waterpolo,i.QCR.Floorball],p=(e,t,n)=>[i.sum.Penalties,i.sum.AP].includes(e.status.code)&&"number"==typeof t.penalties?x.includes(n)&&m.includes((0,s.c5)(e))?{score:t.display}:{score:t.display,penalties:t.penalties}:{score:t.display},v=(e,t)=>(e.status.type===i.XUj.NotStarted||e.status.type===i.XUj.InProgress)&&e.streamContentId&&!(0,d.X)(t)},49519:(e,t,n)=>{n.d(t,{p:()=>i.p,w:()=>o.w});var o=n(53192),i=n(91603)},49821:(e,t,n)=>{n.d(t,{fl:()=>u,jF:()=>c,kW:()=>f,ki:()=>h});var o=n(55729),i=n(494),a=n(62859),l=n(1815),r=n(61836),s=n(25745),d=n(2294),c=function(e){return e.Featured="featured",e.Additional="additional",e.Streaks="streaks",e.Compliance="compliance",e}({}),u=function(e){return e.BetBoostButton="bet_boost_button",e.AffiliateButton="affiliate_button",e}({}),h=function(e){return e.ProviderLogo="provider_logo",e.OddsValue="odds_value",e.BookmakerButton="bookmaker_button",e.AffiliateButton="affiliate_button",e}({});function f(e){let{event:t,location:n}=(0,o.useContext)(a.y$),c=e.location||n,h=(0,i.d4)(d.a5),f=e.countryOddsProvider||h,g=(0,s.s)(null==f?void 0:f.impressionCostEncrypted),x="compliance"===e.type||f&&t.status.type&&(e.marketName||e.isComparison),m=Object.values(u).find(t=>{var n,o;return!!(null==(o=e.activeCTA)||null==(n=o[t])?void 0:n.isActive)}),p=async()=>{"compliance"===e.type?(0,r.D5)({id:t.id,provider:null==f?void 0:f.provider.slug,status:t.status.type,location:c,value:await g}):f&&t.status.type&&(e.marketName||e.isComparison)&&(0,r.CH)({id:t.id,provider:null==f?void 0:f.provider.slug,category:e.marketName,status:t.status.type,location:c,value:await g,is_active:!!m,type:m})},v=e.deps||[],y=(0,l.e)(p,{deps:[t.id,m,...v]});return{ref:x?y:void 0,makeOnClick:(0,o.useCallback)((n,o,i)=>{if(f&&n)return()=>{(0,r.Fe)({id:t.id,provider:i?i.provider.slug:f.provider.slug,category:n,type:e.type,location:c,position:o})}},[t.id,f,n])}}},50346:(e,t,n)=>{n.d(t,{Ay:()=>E,ZK:()=>T});var o=n(6029),i=n(18612),a=n(21377),l=n(4967),r=n(41249),s=n(78383),d=n.n(s),c=n(55729),u=n(90510),h=n(90248),f=n(494),g=n(62859),x=n(36937),m=n(65078),p=n(70591),v=n(75791),y=n(49821),w=n(2294),j=n(4236),b=n(61836),S=n(98516);let C=e=>e<20?"sofaSingles.value":"error.default",R=e=>-1!==[a.QCR.Football,a.QCR.Handball].indexOf(e),L=e=>R(e.tournament.category.sport.slug),k=e=>{let{hasDraw:t}=e;return(0,o.jsx)(r.az,{minW:t?132:88,w:t?132:88,ml:"xs",children:(0,o.jsxs)(i.D,{height:"auto",viewBox:"0 0 ".concat(t?132:88," 36"),uniqueKey:"event-cell-odds-cl",children:[(0,o.jsx)("rect",{x:"19",y:"4",width:"7",height:"13",rx:"4",ry:"2"}),(0,o.jsx)("rect",{x:"63",y:"4",width:"7",height:"13",rx:"4",ry:"2"}),t&&(0,o.jsx)("rect",{x:"93",y:"20",width:"34",height:"16",rx:"4",ry:"4"}),(0,o.jsx)("rect",{x:"5",y:"20",width:"34",height:"16",rx:"4",ry:"4"}),(0,o.jsx)("rect",{x:"49",y:"20",width:"34",height:"16",rx:"4",ry:"4"}),t&&(0,o.jsx)("rect",{x:"107",y:"4",width:"7",height:"13",rx:"4",ry:"4"})]})})};function T(e){let{odds:t,sport:n,eventId:i,fallback:a}=e,l=(0,f.d4)(w.a5),s=(0,f.d4)(w.$4),d=(0,m.g3)(),u=null==l?void 0:l.branded,h="fractional"===s,x=(0,c.useCallback)(e=>{e.stopPropagation(),(0,b.Fe)({id:i,provider:null==l?void 0:l.provider.slug,category:null==t?void 0:t.marketName,type:y.jF.Featured,location:g.cb.MainList,position:y.ki.OddsValue})},[i,l,t]),p=R(n);if(!t)return(0,o.jsx)(k,{hasDraw:p});if(t.loaded)return a||(0,o.jsx)("div",{style:{minWidth:p?132:88}});let S=(0,j.nu)(t.choices,d),C=h?v.Y:void 0;return(0,o.jsx)(o.Fragment,{children:S.map(e=>{let n=l&&u?(0,j.Iz)(e,t,l):null,i=(0,o.jsxs)(r.so,{direction:"column",align:"center",gap:"xs",children:[(0,o.jsx)(r.EY,{font:"assistive.default",color:"onSurface.nLv3",children:e.name}),(0,o.jsx)(r.so,{justify:"center",align:"center",w:h?48:40,h:h?20:16,border:e.winning?"primary.default":"onSurface.nLv4",br:"xs",bg:"surface.s1",hoverBg:"surface.s2",children:(0,o.jsx)(r.EY,{font:"display.micro",fontSize:h?14:void 0,letterSpacing:h?"-0.5px":void 0,color:t.isLive?"sofaSingles.value":"onSurface.nLv1",lineHeight:1,children:(0,o.jsx)(v.c,{fractionalValue:e.fractionalValue,children:C})})})]});return n?(0,o.jsx)(r.az,{as:"a",target:"_blank",href:n,rel:"nofollow noopener",onClick:x,zIndex:r.Py.Button,children:i},e.name):i})})}function F(e){let{startTimestamp:t,showDraw:n}=e;return(0,o.jsxs)(r.so,{justify:"space-between",px:"lg",pt:"xs",children:[(0,o.jsx)(r.EY,{font:"assistive.micro",color:"onSurface.nLv3",children:(0,o.jsx)(u.XU,{value:1e3*t,...l.or.dateTime})}),(0,o.jsxs)(r.so,{gap:"sm",children:[(0,o.jsx)(r.EY,{w:40,font:"assistive.micro",color:"onSurface.nLv3",align:"center",children:"1"}),n&&(0,o.jsx)(r.EY,{w:40,font:"assistive.micro",color:"onSurface.nLv3",align:"center",children:"X"}),(0,o.jsx)(r.EY,{w:40,font:"assistive.micro",color:"onSurface.nLv3",align:"center",children:"2"}),(0,o.jsx)(r.EY,{w:60,font:"assistive.micro",color:"onSurface.nLv3",align:"center",children:(0,o.jsx)(h.A,{id:"betting.drop"})})]})]})}function N(e){let{isChoice:t,choice:n,drop:i}=e;return(0,o.jsxs)(r.az,{children:[(0,o.jsx)(r.az,{w:40,border:"onSurface.nLv4",textAlign:"center",br:"sm",mb:"xs",children:(0,o.jsx)(r.EY,{font:"display.micro",lineHeight:"16px",color:"onSurface.nLv1",children:n.initialFractionalValue&&(0,o.jsx)(v.c,{fractionalValue:n.initialFractionalValue})})}),(0,o.jsx)(r.az,{w:40,border:"onSurface.nLv4",textAlign:"center",br:"sm",children:(0,o.jsx)(r.EY,{font:"display.micro",lineHeight:"16px",color:t?C(i):"onSurface.nLv1",children:(0,o.jsx)(v.c,{fractionalValue:n.fractionalValue})})})]})}function A(e){let{choices:t,choice:n,showDraw:i,drop:a}=e,l=t.length-1,[s,d]=(0,m.jr)(t,0,l);return(0,o.jsxs)(r.so,{gap:"sm",align:"center",children:[(0,o.jsx)(N,{choice:s,isChoice:s.name===n,drop:a},s.name),i&&(0,o.jsx)(N,{choice:t[1],isChoice:t[1].name===n,drop:a},t[1].name),(0,o.jsx)(N,{choice:d,isChoice:d.name===n,drop:a},d.name),(0,o.jsx)(r.EY,{font:"display.small",color:C(a),w:60,align:"center",children:"".concat((0,S.M)(a,1),"%")})]})}let E=function(e){let{event:t,choice:n,onClick:i=d(),isSelected:a,choices:l,drop:s,isMobile:c}=e,{event:u,...h}=(0,m.AR)(t),f=u.tournament.category.sport.slug,v=(L(u)||R(f)||null===f)&&3===l.length;return(0,o.jsx)(g.y$.Provider,{value:{event:u,...h},children:(0,o.jsx)(p.tj,{event:u,children:(0,o.jsxs)(r.az,{bg:[void 0,a?"surface.s2":"surface.s1"],onClick:e=>{i&&i(e,u.id,c)},cursor:"pointer",hoverBg:"surface.s2",children:[(0,o.jsx)(F,{startTimestamp:u.startTimestamp,showDraw:v}),(0,o.jsxs)(r.so,{justify:"space-between",align:"center",px:"lg",py:"sm",children:[(0,o.jsx)(x.g,{style:c?{flex:"1 1 auto"}:{}}),(0,o.jsx)(A,{choice:n,choices:l,drop:s,showDraw:v})]})]})})})}},56869:(e,t,n)=>{n.d(t,{Hs:()=>a,NR:()=>i,p4:()=>o});let o="/21866864457/preroll_video_app",i="https://pubads.g.doubleclick.net/gampad/live/ads?iu="+o+"&description_url=http%3A%2F%2Fsofascore.com&tfcd=0&npa=0&sz=1x1%7C400x300%7C640x480&ciu_szs=300x250%2C336x280%2C728x90&min_ad_duration=5000&max_ad_duration=30000&gdfp_req=1&unviewed_position_start=1&output=vast&env=vp&impl=s&correlator=",a=["BR","BG","JP","UK","KE","GB","NG","IT","NL","ES","MA","IR","BD","IN","TH","VN"]},69759:(e,t,n)=>{n.d(t,{I:()=>i,J:()=>a});var o=n(87357);let i=501;function a(e,t){return void 0!==t.point&&void 0!==e.bestOfSets&&e.bestOfSets>1?{topScore:Number(t.point)||i,bottomScore:t.display,bottomScoreExtra:(0,o.U)(t)}:void 0!==t.point&&void 0!==e.bestOfLegs&&e.bestOfLegs>0?{topScore:Number(t.point)||i,bottomScore:t.display,bottomScoreExtra:void 0}:(void 0===t.point||null===t.point)&&e.bestOfSets&&e.bestOfSets>1?{topScore:(0,o.U)(t)||0,bottomScore:t.display,bottomScoreExtra:void 0}:{topScore:t.display||0,bottomScore:void 0,bottomScoreExtra:void 0}}},75791:(e,t,n)=>{n.d(t,{Y:()=>s,c:()=>r});var o=n(6029),i=n(494),a=n(64274),l=n(2294);let r=e=>{let{fractionalValue:t,children:n}=e,r=(0,i.d4)(l.$4),s=(0,a.YB)(t,r);return(0,o.jsx)(o.Fragment,{children:n?n(s):s})},s=e=>{let[t,n]=e.split("/");return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("sup",{children:t}),"/",(0,o.jsx)("sub",{children:n})]})}},87357:(e,t,n)=>{n.d(t,{U:()=>o});function o(e){let t=Object.keys(e).filter(e=>e.startsWith("period")).sort((e,t)=>Number(e.replace("period",""))-Number(t.replace("period",""))).pop();if(t)return e[t]}},87473:(e,t,n)=>{n.d(t,{$:()=>b});var o=n(6029),i=n(21377),a=n(44194),l=n(41249),r=n(55729),s=n(90248),d=n(62859),c=n(49031),u=n(8703),h=n(65078),f=n(82169);let g=(e,t)=>{let n=e.tournament.category.sport.slug===i.QCR.Tennis,o=e.status.type===i.XUj.InProgress,a=e.crowdsourcingDataDisplayEnabled;return o&&(0,u.c5)(e)===i.QCR.Darts&&void 0===e.bestOfSets?"sofaSingles.live":o&&!n&&t===i.Jfo.Left?"onSurface.nLv1":o&&a?"sofaSingles.crowdsourcingLive":"inherit"},x=(e,t,n,o)=>{let a=e===i.XUj.Finished,l=o===i.Jfo.Left,r=o===i.Jfo.Right,s="onSurface.nLv1",d="onSurface.nLv1",c="onSurface.nLv1",u="onSurface.nLv1";return(a||e===i.XUj.WillContinue)&&(s=l?"onSurface.nLv1":"onSurface.nLv3",d=r?"onSurface.nLv1":"onSurface.nLv3","number"==typeof t.penalties&&"number"==typeof n.penalties&&(c=t.penalties>n.penalties?"onSurface.nLv1":"onSurface.nLv3",u=n.penalties>t.penalties?"onSurface.nLv1":"onSurface.nLv3")),{leftColor:s,rightColor:d,leftPenaltyColor:c,rightPenaltyColor:u}};var m=n(54409),p=n(69759),v=function(e){return e[e.Home=1]="Home",e[e.Away=2]="Away",e}({}),y=n(87357);let w=e=>{let{event:t,leftScore:n,rightScore:i}=e,{mediaBreakpoint:r}=(0,a.$c)(),s=void 0!==t.bestOfSets&&t.bestOfSets>1,d=(0,y.U)(n)||0,u=(0,y.U)(i)||0;return(0,o.jsxs)(l.so,{direction:"column",pr:"sm",align:"flex-end",children:[(0,o.jsxs)(l.so,{align:"flex-end",children:[t.firstToServe===v.Home?(0,o.jsx)(m.v1,{fill:"secondary.default"}):(0,o.jsx)(l.az,{w:16}),void 0!==n.point&&(0,o.jsx)(l.EY,{color:"secondary.default",block:!0,ml:10,children:n.point||p.I}),s&&(0,o.jsx)(l.EY,{color:"sofaSingles.live",block:!0,ml:8,children:d}),(0,o.jsx)(f.cU,{eventId:t.id,changeKey:"leftScore.display",color:"sofaSingles.live",...(0,c.J_)(t,n,r),textAlign:"end"})]}),(0,o.jsxs)(l.so,{align:"flex-end",children:[t.firstToServe===v.Away?(0,o.jsx)(m.v1,{fill:"secondary.default"}):(0,o.jsx)(l.az,{w:16}),void 0!==i.point&&(0,o.jsx)(l.EY,{color:"secondary.default",block:!0,ml:10,children:i.point||p.I}),s&&(0,o.jsx)(l.EY,{color:"sofaSingles.live",block:!0,ml:8,children:u}),(0,o.jsx)(f.cU,{eventId:t.id,changeKey:"rightScore.display",color:"sofaSingles.live",...(0,c.J_)(t,i,r),textAlign:"end"})]})]})},j=()=>{let{event:e,leftScore:t,rightScore:n}=(0,r.useContext)(d.y$),{mediaBreakpoint:s}=(0,a.$c)(),u=(0,h.gm)(e,"winnerCode");if(e.status.type===i.XUj.NotStarted)return(0,o.jsx)(l.az,{w:38,flex:"0 0 38px",ml:"sm"});if(e.status.type===i.XUj.InProgress)return(0,o.jsx)(w,{event:e,leftScore:t,rightScore:n});let g=x(e.status.type,t,n,u);return(0,o.jsxs)(l.so,{direction:"column",pr:"sm",align:"flex-end",children:[(0,o.jsx)(l.so,{align:"flex-end",children:(0,o.jsx)(f.cU,{eventId:e.id,changeKey:"leftScore.display",color:g.leftColor||"onSurface.nLv3",...(0,c.J_)(e,t,s),textAlign:"end"})}),(0,o.jsx)(l.so,{align:"flex-end",children:(0,o.jsx)(f.cU,{eventId:e.id,changeKey:"rightScore.display",color:g.rightColor||"onSurface.nLv3",...(0,c.J_)(e,n,s),textAlign:"end"})})]})};function b(){let{event:e,leftScore:t,rightScore:n}=(0,r.useContext)(d.y$),s=(0,h.gm)(e,"aggregatedWinnerCode"),m=(0,u.c5)(e),p=(0,h.gm)(e,"winnerCode"),{mediaBreakpoint:v}=(0,a.$c)();if(m===i.QCR.Cricket)return null;if(m===i.QCR.MMA)return(0,o.jsx)(S,{winnerCode:e.winnerCode});if(m===i.QCR.Darts)return(0,o.jsx)(j,{});if(e.status.type===i.XUj.NotStarted)return(0,o.jsx)(l.az,{w:"38px",mr:"sm"});let y=e.status.type===i.XUj.InProgress,w=y?"sofaSingles.live":"onSurface.nLv3",b=y?g(e,p):w,C=y?{leftColor:"onSurface.nLv3",rightColor:"onSurface.nLv3",leftPenaltyColor:"onSurface.nLv3",rightPenaltyColor:"onSurface.nLv3"}:x(e.status.type,t,n,p),R=s===i.Jfo.Left,L=s===i.Jfo.Right;return(0,o.jsxs)(l.so,{position:"relative",direction:"column",justify:"flex-end",align:"flex-end",w:"38px",color:w,mr:"sm",children:[(0,o.jsx)(f.cU,{eventId:e.id,changeKey:"homeScore.display",color:y?b:C.leftColor,penaltiesColor:y?b:C.leftPenaltyColor,...(0,c.J_)(e,t,v),aggWin:R,textAlign:"end"}),(0,o.jsx)(f.cU,{eventId:e.id,changeKey:"awayScore.display",color:y?b:C.rightColor,penaltiesColor:y?b:C.rightPenaltyColor,...(0,c.J_)(e,n,v),aggWin:L,textAlign:"end"})]})}function S(e){let{winnerCode:t}=e;return t!==i.Jfo.Left&&t!==i.Jfo.Right?null:(0,o.jsxs)(l.so,{direction:t===i.Jfo.Left?"column":"column-reverse",gap:"xxs",mx:"sm",children:[(0,o.jsx)(l.EY,{as:"div",c:"secondary.default",align:"center",children:(0,o.jsx)(s.A,{id:"standings.label.wins"})}),(0,o.jsx)(l.EY,{as:"div",c:"error.default",align:"center",children:(0,o.jsx)(s.A,{id:"standings.label.losses"})})]})}},94604:(e,t,n)=>{n.d(t,{Rm:()=>u,lC:()=>c,ub:()=>h});var o=n(6029),i=n(21377),a=n(947),l=n(26331);let r=/(.*)(\s(U.\d+|Olympic Team|Universiade Team|[A-C]|7[Ss])$)/,s=e=>e.normalize("NFD").replace(/[\u0300-\u036f\']/g,"").toLowerCase().replace(/\s/g,"-").replace(/&/g,"and"),d=e=>{let{translation:t,suffixedTeam:n,showFemaleSuffix:i}=e,a=i?" (F)":"";return n?(0,o.jsx)(o.Fragment,{children:"".concat(t).concat(n[2]).concat(a)}):(0,o.jsx)(o.Fragment,{children:"".concat(t).concat(a)})},c=e=>{let{original:t,showFemaleSuffix:n}=e,i=r.exec(t),l=(0,a.A)(),c=s(i?i[1]:t),u=l.formatMessage({id:c});return u===c?(0,o.jsx)(d,{translation:t,showFemaleSuffix:n}):(0,o.jsx)(d,{translation:u,suffixedTeam:i,showFemaleSuffix:n})},u=e=>{var t,n,i,r;let s=(0,l.A)(),u=(0,a.A)();if("short"in e&&e.short&&(null==(n=e.team.fieldTranslations)||null==(t=n.shortNameTranslation)?void 0:t[s]))return(0,o.jsx)(d,{translation:e.team.fieldTranslations.shortNameTranslation[s],showFemaleSuffix:e.showFemaleSuffix});if(null==(r=e.team.fieldTranslations)||null==(i=r.nameTranslation)?void 0:i[s])return(0,o.jsx)(d,{translation:e.team.fieldTranslations.nameTranslation[s],showFemaleSuffix:e.showFemaleSuffix});let h=e.team.name;return("full"in e&&e.full&&(e.team.fullName||e.team.name)&&(h=e.team.fullName||e.team.name),"short"in e&&e.short&&e.team.shortName&&(h=e.team.shortName),"No team"===h&&(h=u.formatMessage({id:"player.noTeam"})),e.team.national)?(0,o.jsx)(c,{original:h,showFemaleSuffix:e.showFemaleSuffix}):(0,o.jsx)(d,{translation:h,showFemaleSuffix:e.showFemaleSuffix})},h=e=>"F"===e.gender&&e.type===i.YVh.Regular}}]);