!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]="ecd32220-c4c0-4ea6-b7d9-890f4da162a0",e._sentryDebugIdIdentifier="sentry-dbid-ecd32220-c4c0-4ea6-b7d9-890f4da162a0")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3797],{9725:(e,t,i)=>{i.d(t,{x8:()=>l,RU:()=>d,XE:()=>v,H_:()=>x,XB:()=>y});var n=i(6029),r=i(21377),a=i(76356),o=i(54409),s=i(65078);function l(e){var t;let{event:i}=e,l=(0,s.gm)(i.yardDistance,"currentPossession",i),c=Number(null==(t=i.yardDistance)?void 0:t.currentDown);return(0,n.jsx)(a.so,{alignSelf:"flex-start",direction:"column",mr:"-xs",h:"[34px]",w:"[20px]",justify:l===r.Jfo.Right?"flex-end":"flex-start",children:!(void 0===l||c<1||c>4)&&(0,n.jsx)(o.CvR,{icon:"af-touchdown",width:"16px",height:"16px",mr:"xs",mt:"xxs",fill:"sofaSingles.live"})})}var c=i(95083),u=i(90248);function d(){return(0,n.jsx)(a.so,{align:"center",children:(0,n.jsx)(c.EY,{fontStyle:"body.medium",color:"status.live",children:(0,n.jsx)(u.A,{id:"am_football_red_zone_status"})})})}let f=e=>{switch(e){case 1:return"1st";case 2:return"2nd";case 3:return"3rd";case 4:return"4th";default:return}},h=e=>{let{currentDown:t,currentYardsToFirstDown:i,isGoalPossession:n}=e,r=f(t),a=i;if("number"==typeof i&&r)return i<1&&(a="Inches"),n&&(a="Goal"),"".concat(r," & ").concat(a)},m=e=>e.nameCode||e.name.slice(0,3).toLocaleUpperCase(),p=(e,t,i,n)=>{if("number"==typeof i&&void 0!==n)return"".concat(m(n===r.Jfo.Left?e:t)," ").concat(i)},y=e=>!!(e.currentPossession&&e.currentTeamHalf&&e.currentDown&&"number"==typeof e.currentYardline&&"number"==typeof e.currentYardsToFirstDown);function v(e,t){let{homeTeam:i,awayTeam:n}=t,a=m(e.currentPossession===r.Jfo.Left?i:n),o=h(e),s=p(i,n,e.currentYardline,e.currentTeamHalf);return o&&s?"".concat(a," ").concat(o," @ ").concat(s):null}function x(e){return!!e&&!!y(e)&&!!(e.currentYardline&&e.currentYardline<=20&&e.currentPossession!==e.currentTeamHalf)}},14407:(e,t,i)=>{i.d(t,{I:()=>s});var n=i(6029),r=i(41735),a=i(94497);let o=r.default.span.withConfig({componentId:"sc-923226f3-0"})(["animation:"," 1s ease-in infinite;"],a.HI.fast),s=()=>(0,n.jsx)(o,{"data-testid":"Blinker",children:"'"})},43451:(e,t,i)=>{i.d(t,{D:()=>o});var n=i(6029),r=i(36145),a=i(41735);let o=({width:e="100%",height:t,animate:i=!1,viewBox:o,style:s,children:l,uniqueKey:c})=>{let u=(0,a.useTheme)();return(0,n.jsx)(r.Ay,Object.assign({speed:2,animate:i,width:e,height:t,backgroundColor:i?u.colors.surface.s0:u.colors.surface.s2,foregroundColor:u.colors.surface.s2,viewBox:o,style:s,uniqueKey:c},{children:l}))}},47146:(e,t,i)=>{i.d(t,{v:()=>o});var n=i(6029),r=i(29705);let a={second:59,minute:59,hour:24,day:7},o=e=>{let{timestamp:t,isAbsoluteTime:i,children:o}=e,{value:s,unit:l}=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now(),i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0,r={...a,...i||{}},o=(e-t)/1e3;if(Math.abs(o)0)return{value:Math.round(f),unit:"year"};let h=12*f+c.getMonth()-u.getMonth();return Math.round(Math.abs(h))>0?{value:Math.round(h),unit:"month"}:{value:Math.round(o/604800),unit:"week"}}(t,void 0,void 0,i);return(0,n.jsx)(r.A,{value:s,unit:l,numeric:"auto",children:e=>"function"==typeof o?o(e):(0,n.jsx)(n.Fragment,{children:e})})}},49519:(e,t,i)=>{i.d(t,{p:()=>r.p,w:()=>n.w});var n=i(53192),r=i(91603)},69759:(e,t,i)=>{i.d(t,{I:()=>r,J:()=>a});var n=i(87357);let r=501;function a(e,t){return void 0!==t.point&&void 0!==e.bestOfSets&&e.bestOfSets>1?{topScore:Number(t.point)||r,bottomScore:t.display,bottomScoreExtra:(0,n.U)(t)}:void 0!==t.point&&void 0!==e.bestOfLegs&&e.bestOfLegs>0?{topScore:Number(t.point)||r,bottomScore:t.display,bottomScoreExtra:void 0}:(void 0===t.point||null===t.point)&&e.bestOfSets&&e.bestOfSets>1?{topScore:(0,n.U)(t)||0,bottomScore:t.display,bottomScoreExtra:void 0}:{topScore:t.display||0,bottomScore:void 0,bottomScoreExtra:void 0}}},73022:(e,t,i)=>{i.d(t,{Gi:()=>n.Gi,iV:()=>n.iV,kG:()=>n.kG,lx:()=>n.lx,zV:()=>n.zV});var n=i(97477)},79027:(e,t,i)=>{i.d(t,{$_:()=>n.A}),i(94497);var n=i(60443);i(19600)},87357:(e,t,i)=>{i.d(t,{U:()=>n});function n(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]}},94497:(e,t,i)=>{i.d(t,{HI:()=>r,qG:()=>o});var n=i(41735);let r=(0,n.keyframes)(["0%{opacity:1;}30%{opacity:1;}60%{opacity:0.25;}100%{opacity:1;}"]);r.slow=(0,n.keyframes)(["0%{opacity:1;}5%{opacity:1;}10%{opacity:.25;}15%{opacity:1;}100%{opacity:1;}"]),r.fast=(0,n.keyframes)(["0%{opacity:1;}50%{opacity:1;}51%{opacity:0;}100%{opacity:0;}"]),(0,n.css)(["animation:"," 1s ease-in infinite;"],r).slow=(0,n.css)(["animation:"," 10s ease-in infinite;"],r.slow);let a=(0,n.keyframes)(["0%{transform:translateY(50px);opacity:0;}50%{opacity:1;}100%{opacity:1;transform:translateY(0);}"]);(0,n.css)(["animation:0.3s "," ease-in-out;animation-fill-mode:forwards;"],a);let o=(0,n.keyframes)(["from{opacity:0.0001;}to{opacity:1;}"])},94604:(e,t,i)=>{i.d(t,{Rm:()=>d,lC:()=>u,ub:()=>f});var n=i(6029),r=i(21377),a=i(947),o=i(26331);let s=/(.*)(\s(U.\d+|Olympic Team|Universiade Team|[A-C]|7[Ss])$)/,l=e=>e.normalize("NFD").replace(/[\u0300-\u036f\']/g,"").toLowerCase().replace(/\s/g,"-").replace(/&/g,"and"),c=e=>{let{translation:t,suffixedTeam:i,showFemaleSuffix:r}=e,a=r?" (F)":"";return i?(0,n.jsx)(n.Fragment,{children:"".concat(t).concat(i[2]).concat(a)}):(0,n.jsx)(n.Fragment,{children:"".concat(t).concat(a)})},u=e=>{let{original:t,showFemaleSuffix:i}=e,r=s.exec(t),o=(0,a.A)(),u=l(r?r[1]:t),d=o.formatMessage({id:u});return d===u?(0,n.jsx)(c,{translation:t,showFemaleSuffix:i}):(0,n.jsx)(c,{translation:d,suffixedTeam:r,showFemaleSuffix:i})},d=e=>{var t,i,r,s;let l=(0,o.A)(),d=(0,a.A)();if("short"in e&&e.short&&(null==(i=e.team.fieldTranslations)||null==(t=i.shortNameTranslation)?void 0:t[l]))return(0,n.jsx)(c,{translation:e.team.fieldTranslations.shortNameTranslation[l],showFemaleSuffix:e.showFemaleSuffix});if(null==(s=e.team.fieldTranslations)||null==(r=s.nameTranslation)?void 0:r[l])return(0,n.jsx)(c,{translation:e.team.fieldTranslations.nameTranslation[l],showFemaleSuffix:e.showFemaleSuffix});let f=e.team.name;return("full"in e&&e.full&&e.team.fullName&&(f=e.team.fullName),"short"in e&&e.short&&e.team.shortName&&(f=e.team.shortName),"No team"===f&&(f=d.formatMessage({id:"player.noTeam"})),e.team.national)?(0,n.jsx)(u,{original:f,showFemaleSuffix:e.showFemaleSuffix}):(0,n.jsx)(c,{translation:f,showFemaleSuffix:e.showFemaleSuffix})},f=e=>"F"===e.gender&&e.type===r.YVh.Regular},97477:(e,t,i)=>{i.d(t,{Gi:()=>g,kG:()=>S,lx:()=>j,iV:()=>b,zV:()=>y});var n=i(6029),r=i(21377),a=i(4967),o=i(41249),s=i(55729),l=i(14407),c=i(47146),u=i(19168),d=i(31710),f=i(41735),h=i(79027);function m(){let e=(0,d._)(["font-size: 24px"]);return m=function(){return e},e}let p=f.default.span.withConfig({componentId:"sc-8990aa68-0"})(["font-size:20px;",";font-weight:500;"],h.$_.lgMin(m())),y=e=>{let{time:t,status:i,currentPeriodStartTimestamp:n}=e;return i.type===r.XUj.InProgress&&"number"==typeof(null==t?void 0:t.initial)&&!u.p2.includes(i.code)&&!!(t.currentPeriodStartTimestamp||n)},v=e=>e.map(e=>"0".concat(e).slice(-2)).join(":"),x=e=>e.code===r.sum["1st extra"]||e.code===r.sum["2nd extra"]||e.code===r.sum.Overtime?"ET-":"";class b extends s.PureComponent{componentDidMount(){this.start(),document.addEventListener("visibilitychange",this.onVisibilityChange)}componentDidUpdate(e){let{referenceTime:t}=this.props;t!==e.referenceTime&&this.resetDelta()}componentWillUnmount(){this.stop(),document.removeEventListener("visibilitychange",this.onVisibilityChange)}resetDelta(){let{referenceTime:e,modifier:t}=this.props,i=Math.floor(Date.now()/1e3);this.setState({delta:t<0?e-i:i-e})}tick(){if(1>=Math.abs(this.props.modifier)){let e=this.state.delta+this.props.modifier;this.setState({delta:e})}else this.resetDelta()}start(){if(this.stop(),Math.abs(this.props.modifier)>1){let e=Math.floor(Date.now()/1e3)-this.props.referenceTime,[,,,t]=(0,a.U1)(e);this.timeoutIntervalId=window.setTimeout(()=>{this.intervalId=window.setInterval(this.tick,1e3*this.props.modifier),this.tick()},(60-t+1)*1e3)}else this.intervalId=window.setInterval(this.tick,1e3)}stop(){window.clearInterval(this.intervalId),window.clearTimeout(this.timeoutIntervalId)}onVisibilityChange(){"visible"===document.visibilityState&&(this.resetDelta(),this.setState({isPageHidden:!1}),this.start()),"hidden"===document.visibilityState&&(this.stop(),this.setState({isPageHidden:!0}))}render(){if(this.state.isPageHidden)return"-";let e=this.state.delta,t=(0,a.U1)(e),i=v(t.slice(1));return this.props.children({timeParts:t,formattedTime:i,delta:e})}constructor(e){if(super(e),"function"!=typeof e.children&&(0,r.Cu5)())throw Error("Timekeeper component requires prop children as a function!");let t=Math.floor(Date.now()/1e3),i=this.props.modifier<0?e.referenceTime-t:t-e.referenceTime;this.state={delta:i,isPageHidden:!1},this.tick=this.tick.bind(this),this.start=this.start.bind(this),this.stop=this.stop.bind(this),this.resetDelta=this.resetDelta.bind(this),this.onVisibilityChange=this.onVisibilityChange.bind(this)}}function g(e){let{startTimestamp:t}=e;return(0,n.jsx)(b,{referenceTime:t,modifier:-1,children:e=>{let{timeParts:i,delta:r}=e,[a,o,s,l]=i,u="";return r<0?"-":a>=1?(0,n.jsx)(c.v,{timestamp:1e3*t,isAbsoluteTime:!0}):v([o,s,l])}})}function w(e){let{startTimestamp:t,children:i,modifier:r=1}=e;return(0,n.jsx)(b,{referenceTime:t,modifier:r,children:"function"==typeof i?i:e=>{let{delta:t,formattedTime:i}=e;return t<0?null:i}})}function S(e){let{time:t,status:i,currentPeriodStartTimestamp:r}=e;if("number"!=typeof(null==t?void 0:t.initial))return null;let a=t.currentPeriodStartTimestamp||r;if(!a)return null;let o=a-t.initial;return(0,n.jsx)(w,{startTimestamp:o,modifier:60,children:e=>{let{delta:n}=e;if(t.max&&n>t.max)return Math.floor(t.max/60)+"+";let r=0===n?1:Math.ceil(n/60),a=x(i);return r>=0?a+r:null}})}g.StyledComponent=p;let M={period1:"injuryTime1",period2:"injuryTime2",extra1:"injuryTime3",extra2:"injuryTime4"};function j(e){let{time:t,status:i,currentPeriodStartTimestamp:r,lastPeriod:s,hasMinuteBlinker:u}=e;if(!y({time:t,status:i,currentPeriodStartTimestamp:r}))return null;let d=s?t[M[s]]:void 0,f=(t.currentPeriodStartTimestamp||r)-t.initial;return(0,n.jsx)(w,{startTimestamp:f,children:e=>{let{timeParts:i,delta:r}=e;if(r<0)return null;let[s,h,m,p]=i;if(s>0)return(0,n.jsx)(c.v,{timestamp:1e3*f});let y="",v="",x=t.max,b=!1;if(x&&r>x){let e=r-x;if(e>a.av)b=!0,v=Math.floor(x/60)+"+";else if(e>0&&d){p=Math.floor(r%60),m=Math.floor(r/60),h=Math.floor(r/3600);let e=m<10?"0".concat(m):"".concat(m),t=p<10?"0".concat(p):"".concat(p);v="".concat(y+e,":").concat(t)}else{y+=Math.floor(x/60)+"+",p=Math.floor(e%60),m=Math.floor(e/60)%60,h=Math.floor(e/3600)%24;let t=m<10?"0".concat(m):"".concat(m),i=p<10?"0".concat(p):"".concat(p);v="".concat(y+t,":").concat(i)}}else{let e=(m=60*h+m)<10?"0".concat(m):"".concat(m),t=p<10?"0".concat(p):"".concat(p);v="".concat(y+e,":").concat(t)}return(0,n.jsxs)(o.so,{justify:"center",children:[v,d&&(0,n.jsx)(o.so,{px:"sm",br:"md",bg:"sofaSingles.liveHighlight",ml:"xs",align:"center",children:(0,n.jsxs)(o.EY,{font:"assistive.default",color:"sofaSingles.live",as:"bdi",children:["+",d,"'"]})}),u&&!b&&(0,n.jsx)(l.I,{})]})}})}}}]);