@sensiblestats/widget-embed 0.38.5 → 0.38.7

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @sensiblestats/widget-embed
2
2
 
3
+ ## 0.38.7
4
+
5
+ ### Patch Changes
6
+
7
+ - df7d101: Greeting discovery tiles now tint the live panel color instead of hardcoding light pastels, so an operator with a dark custom `surface` (or a dark theme) gets readable tinted-dark cards rather than near-white text on fixed light pastel backgrounds.
8
+
9
+ ## 0.38.6
10
+
11
+ ### Patch Changes
12
+
13
+ - Today tab: mirror the away team around the score — crest on the outer (right) edge, name right-aligned — so each fixture row reads symmetrically like a scoreboard. Applies to both the live band and the competition accordions.
14
+
3
15
  ## 0.38.5
4
16
 
5
17
  ### Patch Changes
@@ -34,7 +34,7 @@ Error generating stack: `+s.message+`
34
34
  `))+1))}let o="#".repeat(i),a=n.enter("headingAtx"),l=n.enter("phrasing");s.move(o+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
35
35
  `,...s.current()});return/^[\t ]/.test(u)&&(u=Nr(u.charCodeAt(0))+u.slice(1)),u=u?o+" "+u:o,n.options.closeAtx&&(u+=" "+o),l(),a(),u}nf.peek=zI;function nf(e){return e.value||""}function zI(){return"<"}rf.peek=BI;function rf(e,t,n,r){let i=$i(n),s=i==='"'?"Quote":"Apostrophe",o=n.enter("image"),a=n.enter("label"),l=n.createTracker(r),u=l.move("![");return u+=l.move(n.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(a=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),a(),e.title&&(a=n.enter(`title${s}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),a()),u+=l.move(")"),o(),u}function BI(){return"!"}sf.peek=FI;function sf(e,t,n,r){let i=e.referenceType,s=n.enter("imageReference"),o=n.enter("label"),a=n.createTracker(r),l=a.move("!["),u=n.safe(e.alt,{before:l,after:"]",...a.current()});l+=a.move(u+"]["),o();let c=n.stack;n.stack=[],o=n.enter("reference");let d=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});return o(),n.stack=c,s(),i==="full"||!u||u!==d?l+=a.move(d+"]"):i==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function FI(){return"!"}of.peek=UI;function of(e,t,n){let r=e.value||"",i="`",s=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++s<n.unsafe.length;){let o=n.unsafe[s],a=n.compilePattern(o),l;if(o.atBreak)for(;l=a.exec(r);){let u=l.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(l.index+1)}}return i+r+i}function UI(){return"`"}function af(e,t){let n=$r(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}lf.peek=QI;function lf(e,t,n,r){let i=$i(n),s=i==='"'?"Quote":"Apostrophe",o=n.createTracker(r),a,l;if(af(e,n)){let c=n.stack;n.stack=[],a=n.enter("autolink");let d=o.move("<");return d+=o.move(n.containerPhrasing(e,{before:d,after:">",...o.current()})),d+=o.move(">"),a(),n.stack=c,d}a=n.enter("link"),l=n.enter("label");let u=o.move("[");return u+=o.move(n.containerPhrasing(e,{before:u,after:"](",...o.current()})),u+=o.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=o.move("<"),u+=o.move(n.safe(e.url,{before:u,after:">",...o.current()})),u+=o.move(">")):(l=n.enter("destinationRaw"),u+=o.move(n.safe(e.url,{before:u,after:e.title?" ":")",...o.current()}))),l(),e.title&&(l=n.enter(`title${s}`),u+=o.move(" "+i),u+=o.move(n.safe(e.title,{before:u,after:i,...o.current()})),u+=o.move(i),l()),u+=o.move(")"),a(),u}function QI(e,t,n){return af(e,n)?"<":"["}uf.peek=HI;function uf(e,t,n,r){let i=e.referenceType,s=n.enter("linkReference"),o=n.enter("label"),a=n.createTracker(r),l=a.move("["),u=n.containerPhrasing(e,{before:l,after:"]",...a.current()});l+=a.move(u+"]["),o();let c=n.stack;n.stack=[],o=n.enter("reference");let d=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});return o(),n.stack=c,s(),i==="full"||!u||u!==d?l+=a.move(d+"]"):i==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function HI(){return"["}function ts(e){let t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Kv(e){let t=ts(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function Yv(e){let t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Zl(e){let t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function Gv(e,t,n,r){let i=n.enter("list"),s=n.bulletCurrent,o=e.ordered?Yv(n):ts(n),a=e.ordered?o==="."?")":".":Kv(n),l=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){let c=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&c&&(!c.children||!c.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),Zl(n)===o&&c){let d=-1;for(;++d<e.children.length;){let p=e.children[d];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(o=a),n.bulletCurrent=o;let u=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=s,i(),u}function Zv(e){let t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function $v(e,t,n,r){let i=Zv(n),s=n.bulletCurrent||ts(n);t&&t.type==="list"&&t.ordered&&(s=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+s);let o=s.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);let a=n.createTracker(r);a.move(s+" ".repeat(o-s.length)),a.shift(o);let l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,a.current()),c);return l(),u;function c(d,p,f){return p?(f?"":" ".repeat(o))+d:(f?s:s+" ".repeat(o-s.length))+d}}function ek(e,t,n,r){let i=n.enter("paragraph"),s=n.enter("phrasing"),o=n.containerPhrasing(e,r);return s(),i(),o}var cf=Tr(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function tk(e,t,n,r){return(e.children.some(function(o){return cf(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function nk(e){let t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}df.peek=VI;function df(e,t,n,r){let i=nk(n),s=n.enter("strong"),o=n.createTracker(r),a=o.move(i+i),l=o.move(n.containerPhrasing(e,{after:i,before:a,...o.current()})),u=l.charCodeAt(0),c=es(r.before.charCodeAt(r.before.length-1),u,i);c.inside&&(l=Nr(u)+l.slice(1));let d=l.charCodeAt(l.length-1),p=es(r.after.charCodeAt(0),d,i);p.inside&&(l=l.slice(0,-1)+Nr(d));let f=o.move(i+i);return s(),n.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},a+l+f}function VI(e,t,n){return n.options.strong||"*"}function rk(e,t,n,r){return n.safe(e.value,r)}function ik(e){let t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function sk(e,t,n){let r=(Zl(n)+(n.options.ruleSpaces?" ":"")).repeat(ik(n));return n.options.ruleSpaces?r.slice(0,-1):r}var Mo={blockquote:Fv,break:ef,code:_v,definition:Wv,emphasis:tf,hardBreak:ef,heading:qv,html:nf,image:rf,imageReference:sf,inlineCode:of,link:lf,linkReference:uf,list:Gv,listItem:$v,paragraph:ek,root:tk,strong:df,text:rk,thematicBreak:sk};function ff(){return{enter:{table:jI,tableData:ok,tableHeader:ok,tableRow:WI},exit:{codeText:XI,table:_I,tableData:pf,tableHeader:pf,tableRow:pf}}}function jI(e){let t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function _I(e){this.exit(e),this.data.inTable=void 0}function WI(e){this.enter({type:"tableRow",children:[]},e)}function pf(e){this.exit(e)}function ok(e){this.enter({type:"tableCell",children:[]},e)}function XI(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,JI));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function JI(e,t){return t==="|"?t:e}function mf(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,s=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
36
36
  `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:o,tableCell:l,tableRow:a}};function o(f,h,w,C){return u(c(f,w,C),f.align)}function a(f,h,w,C){let m=d(f,w,C),g=u([m]);return g.slice(0,g.indexOf(`
37
- `))}function l(f,h,w,C){let m=w.enter("tableCell"),g=w.enter("phrasing"),y=w.containerPhrasing(f,{...C,before:s,after:s});return g(),m(),y}function u(f,h){return Bv(f,{align:h,alignDelimiters:r,padding:n,stringLength:i})}function c(f,h,w){let C=f.children,m=-1,g=[],y=h.enter("table");for(;++m<C.length;)g[m]=d(C[m],h,w);return y(),g}function d(f,h,w){let C=f.children,m=-1,g=[],y=h.enter("tableRow");for(;++m<C.length;)g[m]=l(C[m],f,h,w);return y(),g}function p(f,h,w){let C=Mo.inlineCode(f,h,w);return w.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function hf(){return{exit:{taskListCheckValueChecked:ak,taskListCheckValueUnchecked:ak,paragraph:qI}}}function gf(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:KI}}}function ak(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function qI(e){let t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){let n=this.stack[this.stack.length-1];n.type;let r=n.children[0];if(r&&r.type==="text"){let i=t.children,s=-1,o;for(;++s<i.length;){let a=i[s];if(a.type==="paragraph"){o=a;break}}o===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function KI(e,t,n,r){let i=e.children[0],s=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);s&&a.move(o);let l=Mo.listItem(e,t,n,{...r,...a.current()});return s&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(c){return c+o}}function wf(){return[qp(),Yp(),Zp(),ff(),hf()]}function yf(e){return{extensions:[Kp(),Gp(e),$p(),mf(e),gf()]}}var YI={tokenize:tT,partial:!0},lk={tokenize:nT,partial:!0},uk={tokenize:rT,partial:!0},ck={tokenize:iT,partial:!0},GI={tokenize:sT,partial:!0},dk={name:"wwwAutolink",tokenize:$I,previous:fk},pk={name:"protocolAutolink",tokenize:eT,previous:mk},Xn={name:"emailAutolink",tokenize:ZI,previous:hk},Nn={};function vf(){return{text:Nn}}var ui=48;for(;ui<123;)Nn[ui]=Xn,ui++,ui===58?ui=65:ui===91&&(ui=97);Nn[43]=Xn;Nn[45]=Xn;Nn[46]=Xn;Nn[95]=Xn;Nn[72]=[Xn,pk];Nn[104]=[Xn,pk];Nn[87]=[Xn,dk];Nn[119]=[Xn,dk];function ZI(e,t,n){let r=this,i,s;return o;function o(d){return!xf(d)||!hk.call(r,r.previous)||kf(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(d))}function a(d){return xf(d)?(e.consume(d),a):d===64?(e.consume(d),l):n(d)}function l(d){return d===46?e.check(GI,c,u)(d):d===45||d===95||Pe(d)?(s=!0,e.consume(d),l):c(d)}function u(d){return e.consume(d),i=!0,l}function c(d){return s&&i&&_e(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function $I(e,t,n){let r=this;return i;function i(o){return o!==87&&o!==119||!fk.call(r,r.previous)||kf(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(YI,e.attempt(lk,e.attempt(uk,s),n),n)(o))}function s(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function eT(e,t,n){let r=this,i="",s=!1;return o;function o(d){return(d===72||d===104)&&mk.call(r,r.previous)&&!kf(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),e.consume(d),a):n(d)}function a(d){if(_e(d)&&i.length<5)return i+=String.fromCodePoint(d),e.consume(d),a;if(d===58){let p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(d),l}return n(d)}function l(d){return d===47?(e.consume(d),s?u:(s=!0,l)):n(d)}function u(d){return d===null||ei(d)||ne(d)||In(d)||ti(d)?n(d):e.attempt(lk,e.attempt(uk,c),n)(d)}function c(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function tT(e,t,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),s):n(o)}function s(o){return o===null?n(o):t(o)}}function nT(e,t,n){let r,i,s;return o;function o(u){return u===46||u===95?e.check(ck,l,a)(u):u===null||ne(u)||In(u)||u!==45&&ti(u)?l(u):(s=!0,e.consume(u),o)}function a(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),o}function l(u){return i||r||!s?n(u):t(u)}}function rT(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?s(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(ck,t,s)(o):o===null||ne(o)||In(o)?t(o):(e.consume(o),i)}function s(o){return o===41&&r++,e.consume(o),i}}function iT(e,t,n){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),s):a===93?(e.consume(a),i):a===60||a===null||ne(a)||In(a)?t(a):n(a)}function i(a){return a===null||a===40||a===91||ne(a)||In(a)?t(a):r(a)}function s(a){return _e(a)?o(a):n(a)}function o(a){return a===59?(e.consume(a),r):_e(a)?(e.consume(a),o):n(a)}}function sT(e,t,n){return r;function r(s){return e.consume(s),i}function i(s){return Pe(s)?n(s):t(s)}}function fk(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ne(e)}function mk(e){return!_e(e)}function hk(e){return!(e===47||xf(e))}function xf(e){return e===43||e===45||e===46||e===95||Pe(e)}function kf(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var oT={tokenize:fT,partial:!0};function bf(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:cT,continuation:{tokenize:dT},exit:pT}},text:{91:{name:"gfmFootnoteCall",tokenize:uT},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:aT,resolveTo:lT}}}}function aT(e,t,n){let r=this,i=r.events.length,s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let l=r.events[i][1];if(l.type==="labelImage"){o=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return a;function a(l){if(!o||!o._balanced)return n(l);let u=lt(r.sliceSerialize({start:o.end,end:r.now()}));return u.codePointAt(0)!==94||!s.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function lT(e,t){let n=e.length,r;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){r=e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let i={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;let o={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},l=[e[n+1],e[n+2],["enter",i,t],e[n+3],e[n+4],["enter",s,t],["exit",s,t],["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(n,e.length-n+1,...l),e}function uT(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),s=0,o;return a;function a(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(d){if(s>999||d===93&&!o||d===null||d===91||ne(d))return n(d);if(d===93){e.exit("chunkString");let p=e.exit("gfmFootnoteCallString");return i.includes(lt(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return ne(d)||(o=!0),s++,e.consume(d),d===92?c:u}function c(d){return d===91||d===92||d===93?(e.consume(d),s++,u):u(d)}}function cT(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),s,o=0,a;return l;function l(h){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(h){return h===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(h)}function c(h){if(o>999||h===93&&!a||h===null||h===91||ne(h))return n(h);if(h===93){e.exit("chunkString");let w=e.exit("gfmFootnoteDefinitionLabelString");return s=lt(r.sliceSerialize(w)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return ne(h)||(a=!0),o++,e.consume(h),h===92?d:c}function d(h){return h===91||h===92||h===93?(e.consume(h),o++,c):c(h)}function p(h){return h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),i.includes(s)||i.push(s),j(e,f,"gfmFootnoteDefinitionWhitespace")):n(h)}function f(h){return t(h)}}function dT(e,t,n){return e.check(Tn,t,e.attempt(oT,t,n))}function pT(e){e.exit("gfmFootnoteDefinition")}function fT(e,t,n){let r=this;return j(e,i,"gfmFootnoteDefinitionIndent",5);function i(s){let o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(s):n(s)}}function Cf(e){let n=(e||{}).singleTilde,r={name:"strikethrough",tokenize:s,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,a){let l=-1;for(;++l<o.length;)if(o[l][0]==="enter"&&o[l][1].type==="strikethroughSequenceTemporary"&&o[l][1]._close){let u=l;for(;u--;)if(o[u][0]==="exit"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._open&&o[l][1].end.offset-o[l][1].start.offset===o[u][1].end.offset-o[u][1].start.offset){o[l][1].type="strikethroughSequence",o[u][1].type="strikethroughSequence";let c={type:"strikethrough",start:Object.assign({},o[u][1].start),end:Object.assign({},o[l][1].end)},d={type:"strikethroughText",start:Object.assign({},o[u][1].end),end:Object.assign({},o[l][1].start)},p=[["enter",c,a],["enter",o[u][1],a],["exit",o[u][1],a],["enter",d,a]],f=a.parser.constructs.insideSpan.null;f&&ze(p,p.length,0,Er(f,o.slice(u+1,l),a)),ze(p,p.length,0,[["exit",d,a],["enter",o[l][1],a],["exit",o[l][1],a],["exit",c,a]]),ze(o,u-1,l-u+3,p),l=u+p.length-2;break}}for(l=-1;++l<o.length;)o[l][1].type==="strikethroughSequenceTemporary"&&(o[l][1].type="data");return o}function s(o,a,l){let u=this.previous,c=this.events,d=0;return p;function p(h){return u===126&&c[c.length-1][1].type!=="characterEscape"?l(h):(o.enter("strikethroughSequenceTemporary"),f(h))}function f(h){let w=Wn(u);if(h===126)return d>1?l(h):(o.consume(h),d++,f);if(d<2&&!n)return l(h);let C=o.exit("strikethroughSequenceTemporary"),m=Wn(h);return C._open=!m||m===2&&!!w,C._close=!w||w===2&&!!m,a(h)}}}var $l=class{constructor(){this.map=[]}add(t,n,r){mT(this,t,n,r)}consume(t){if(this.map.sort(function(s,o){return s[0]-o[0]}),this.map.length===0)return;let n=this.map.length,r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(let s of i)t.push(s);i=r.pop()}this.map.length=0}};function mT(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function gk(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){let s=r.length-1;r[s]=r[s]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function Af(){return{flow:{null:{name:"table",tokenize:hT,resolveAll:gT}}}}function hT(e,t,n){let r=this,i=0,s=0,o;return a;function a(b){let G=r.events.length-1;for(;G>-1;){let B=r.events[G][1].type;if(B==="lineEnding"||B==="linePrefix")G--;else break}let Z=G>-1?r.events[G][1].type:null,L=Z==="tableHead"||Z==="tableRow"?k:l;return L===k&&r.parser.lazy[r.now().line]?n(b):L(b)}function l(b){return e.enter("tableHead"),e.enter("tableRow"),u(b)}function u(b){return b===124||(o=!0,s+=1),c(b)}function c(b){return b===null?n(b):F(b)?s>1?(s=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),f):n(b):X(b)?j(e,c,"whitespace")(b):(s+=1,o&&(o=!1,i+=1),b===124?(e.enter("tableCellDivider"),e.consume(b),e.exit("tableCellDivider"),o=!0,c):(e.enter("data"),d(b)))}function d(b){return b===null||b===124||ne(b)?(e.exit("data"),c(b)):(e.consume(b),b===92?p:d)}function p(b){return b===92||b===124?(e.consume(b),d):d(b)}function f(b){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(b):(e.enter("tableDelimiterRow"),o=!1,X(b)?j(e,h,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b):h(b))}function h(b){return b===45||b===58?C(b):b===124?(o=!0,e.enter("tableCellDivider"),e.consume(b),e.exit("tableCellDivider"),w):E(b)}function w(b){return X(b)?j(e,C,"whitespace")(b):C(b)}function C(b){return b===58?(s+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(b),e.exit("tableDelimiterMarker"),m):b===45?(s+=1,m(b)):b===null||F(b)?A(b):E(b)}function m(b){return b===45?(e.enter("tableDelimiterFiller"),g(b)):E(b)}function g(b){return b===45?(e.consume(b),g):b===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(b),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(b))}function y(b){return X(b)?j(e,A,"whitespace")(b):A(b)}function A(b){return b===124?h(b):b===null||F(b)?!o||i!==s?E(b):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(b)):E(b)}function E(b){return n(b)}function k(b){return e.enter("tableRow"),N(b)}function N(b){return b===124?(e.enter("tableCellDivider"),e.consume(b),e.exit("tableCellDivider"),N):b===null||F(b)?(e.exit("tableRow"),t(b)):X(b)?j(e,N,"whitespace")(b):(e.enter("data"),M(b))}function M(b){return b===null||b===124||ne(b)?(e.exit("data"),N(b)):(e.consume(b),b===92?Q:M)}function Q(b){return b===92||b===124?(e.consume(b),M):M(b)}}function gT(e,t){let n=-1,r=!0,i=0,s=[0,0,0,0],o=[0,0,0,0],a=!1,l=0,u,c,d,p=new $l;for(;++n<e.length;){let f=e[n],h=f[1];f[0]==="enter"?h.type==="tableHead"?(a=!1,l!==0&&(wk(p,t,l,u,c),c=void 0,l=0),u={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(n,0,[["enter",u,t]])):h.type==="tableRow"||h.type==="tableDelimiterRow"?(r=!0,d=void 0,s=[0,0,0,0],o=[0,n+1,0,0],a&&(a=!1,c={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(n,0,[["enter",c,t]])),i=h.type==="tableDelimiterRow"?2:c?3:1):i&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(s[1]!==0&&(o[0]=o[1],d=eu(p,t,s,i,void 0,d),s=[0,0,0,0]),o[2]=n)):h.type==="tableCellDivider"&&(r?r=!1:(s[1]!==0&&(o[0]=o[1],d=eu(p,t,s,i,void 0,d)),s=o,o=[s[1],n,0,0])):h.type==="tableHead"?(a=!0,l=n):h.type==="tableRow"||h.type==="tableDelimiterRow"?(l=n,s[1]!==0?(o[0]=o[1],d=eu(p,t,s,i,n,d)):o[1]!==0&&(d=eu(p,t,o,i,n,d)),i=0):i&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")&&(o[3]=n)}for(l!==0&&wk(p,t,l,u,c),p.consume(t.events),n=-1;++n<t.events.length;){let f=t.events[n];f[0]==="enter"&&f[1].type==="table"&&(f[1]._align=gk(t.events,n))}return e}function eu(e,t,n,r,i,s){let o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";n[0]!==0&&(s.end=Object.assign({},ns(t.events,n[0])),e.add(n[0],0,[["exit",s,t]]));let l=ns(t.events,n[1]);if(s={type:o,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",s,t]]),n[2]!==0){let u=ns(t.events,n[2]),c=ns(t.events,n[3]),d={type:a,start:Object.assign({},u),end:Object.assign({},c)};if(e.add(n[2],0,[["enter",d,t]]),r!==2){let p=t.events[n[2]],f=t.events[n[3]];if(p[1].end=Object.assign({},f[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){let h=n[2]+1,w=n[3]-n[2]-1;e.add(h,w,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(s.end=Object.assign({},ns(t.events,i)),e.add(i,0,[["exit",s,t]]),s=void 0),s}function wk(e,t,n,r,i){let s=[],o=ns(t.events,n);i&&(i.end=Object.assign({},o),s.push(["exit",i,t])),r.end=Object.assign({},o),s.push(["exit",r,t]),e.add(n+1,0,s)}function ns(e,t){let n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}var wT={name:"tasklistCheck",tokenize:yT};function Sf(){return{text:{91:wT}}}function yT(e,t,n){let r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),s)}function s(l){return ne(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),o):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),o):n(l)}function o(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(l)}function a(l){return F(l)?t(l):X(l)?e.check({tokenize:xT},t,n)(l):n(l)}}function xT(e,t,n){return j(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function yk(e){return Il([vf(),bf(),Cf(e),Af(),Sf()])}var vT={};function tu(e){let t=this,n=e||vT,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(yk(n)),s.push(wf()),o.push(yf(n))}var Jn=S(T(),1),kT={a:({children:e,href:t})=>(0,Jn.jsx)("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:"ss-w-md-link",children:e}),table:({children:e})=>(0,Jn.jsx)("div",{className:"ss-w-table-wrap",children:(0,Jn.jsx)("table",{className:"ss-w-md-table",children:e})}),ul:({children:e})=>(0,Jn.jsx)("ul",{className:"ss-w-md-ul",children:e}),ol:({children:e})=>(0,Jn.jsx)("ol",{className:"ss-w-md-ol",children:e}),code:({children:e})=>(0,Jn.jsx)("code",{className:"ss-w-md-code",children:e})};function xk({text:e}){return(0,Jn.jsx)("div",{className:"ss-w-md",children:(0,Jn.jsx)(Hp,{remarkPlugins:[tu],components:kT,children:e})})}var Ef=S(de(),1),se=S(T(),1),vk=3,bT=/^(\d+)-(\d+)-(\d+)$/;function CT(e){return e.split(/\s+/).slice(0,2).map(t=>{var n;return(n=t[0])!=null?n:""}).join("").toUpperCase()}function AT(e){return e.replace(/\d{4}/g,t=>t.slice(2))}function bk({image:e,label:t}){return(0,se.jsx)("span",{className:"ss-w-ecard-crest",style:{backgroundImage:`url(${e})`},...t?{role:"img",title:t,"aria-label":t}:{"aria-hidden":"true"}})}function ST({w:e,d:t,l:n}){return e+t+n===0?null:(0,se.jsxs)("span",{className:"ss-w-form","aria-hidden":"true",children:[e>0?(0,se.jsx)("span",{className:"ss-w-form-w",style:{flexGrow:e}}):null,t>0?(0,se.jsx)("span",{className:"ss-w-form-d",style:{flexGrow:t}}):null,n>0?(0,se.jsx)("span",{className:"ss-w-form-l",style:{flexGrow:n}}):null]})}function ET({s:e}){let t=bT.exec(e.value);return t?(0,se.jsxs)("div",{className:"ss-w-ecard-cell",children:[(0,se.jsx)("span",{className:"ss-w-ecard-cval",children:(0,se.jsx)(ST,{w:Number(t[1]),d:Number(t[2]),l:Number(t[3])})}),(0,se.jsx)("span",{className:"ss-w-ecard-clabel",children:e.value})]}):(0,se.jsxs)("div",{className:"ss-w-ecard-cell",children:[(0,se.jsx)("span",{className:"ss-w-ecard-cval",children:e.value}),(0,se.jsx)("span",{className:"ss-w-ecard-clabel",children:e.label})]})}function IT({stats:e}){if(e.length===0)return null;let t=Math.min(e.length,4);return(0,se.jsx)("div",{className:"ss-w-ecard-strip",style:{gridTemplateColumns:`repeat(${t}, 1fr)`},children:e.map(n=>(0,se.jsx)(ET,{s:n},n.label+n.value))})}function kk({c:e,showScopeCrest:t}){let n=e.scopes.length===1?e.scopes[0]:null;return(0,se.jsxs)("div",{className:"ss-w-ecard-hd",children:[(0,se.jsx)("span",{className:e.kind==="team"?"ss-w-thumb ss-w-team":"ss-w-thumb",style:e.image?{backgroundImage:`url(${e.image})`}:void 0,children:e.image?"":CT(e.name)}),(0,se.jsxs)("span",{className:"ss-w-ecard-idtext",children:[(0,se.jsx)("span",{className:"ss-w-nm",children:e.name}),e.sub?(0,se.jsx)("span",{className:"ss-w-sub",children:e.sub}):null]}),(0,se.jsxs)("span",{className:"ss-w-ecard-meta",children:[t&&(n!=null&&n.image)?(0,se.jsx)(bk,{image:n.image,label:n.label}):null,e.season?(0,se.jsx)("span",{className:"ss-w-ecard-season",children:AT(e.season)}):null]})]})}function TT({scopes:e,active:t,onSelect:n}){return(0,se.jsx)("div",{className:"ss-w-ecard-scopes",role:"tablist",children:e.map((r,i)=>{var s;return(0,se.jsx)("button",{type:"button",role:"tab",className:"ss-w-ecard-scope","aria-selected":i===t,"aria-label":r.label,title:r.label,onClick:()=>n(i),children:r.image?(0,se.jsx)(bk,{image:r.image}):r.label},String((s=r.competitionId)!=null?s:"all"))})})}function NT({c:e}){let[t,n]=(0,Ef.useState)(0);if(!(e.scopes.length>0))return(0,se.jsx)("div",{className:"ss-w-ecard ss-w-ecard-bare","data-kind":e.kind,children:(0,se.jsx)(kk,{c:e,showScopeCrest:!1})});let i=e.scopes.length>1,s=e.scopes[i&&e.scopes[t]?t:0];return(0,se.jsxs)("div",{className:"ss-w-ecard","data-kind":e.kind,children:[(0,se.jsx)(kk,{c:e,showScopeCrest:!i}),i?(0,se.jsx)(TT,{scopes:e.scopes,active:t,onSelect:n}):null,(0,se.jsx)(IT,{stats:s.stats})]})}function Ck({cards:e,disabled:t,showLessLabel:n="Show less",showMoreLabel:r=i=>`Show ${i} more`}){let[i,s]=(0,Ef.useState)(!1);if(e.length===0)return null;let o=i?e:e.slice(0,vk),a=e.length-vk;return(0,se.jsxs)("div",{className:"ss-w-cards",children:[o.map(l=>(0,se.jsx)(NT,{c:l},l.id)),a>0?(0,se.jsx)("button",{type:"button",className:"ss-w-cards-more",disabled:t,onClick:()=>s(l=>!l),children:i?n:r(a)}):null]})}var Tf=S(de(),1);var rs=S(de(),1);var Ak=S(de(),1),Sk=S(T(),1),LT=4e3;function nu({toast:e,onDismiss:t}){return(0,Ak.useEffect)(()=>{if(!e)return;let n=setTimeout(t,LT);return()=>clearTimeout(n)},[e,t]),e?(0,Sk.jsx)("div",{className:`ss-w-toast ss-w-toast-${e.kind}`,role:"status","aria-live":"polite",children:e.text}):null}var is=S(T(),1);function PT(e){return Promise.race([e,new Promise((t,n)=>setTimeout(()=>n(new Error("add-to-slip timed out")),1e4))])}function Po({selection:e,shownOdds:t,marketName:n,marketDeveloperName:r,slip:i,ui:s}){let[o,a]=(0,rs.useState)(!1),[l,u]=(0,rs.useState)(!1),[c,d]=(0,rs.useState)(null),p=(0,rs.useCallback)(()=>d(null),[]),f=Wi(),h=i.onAddToSlip;return!s||!h||!e?null:(0,is.jsxs)("div",{className:"ss-w-slip",children:[(0,is.jsx)("button",{type:"button",className:"ss-w-slip-btn",disabled:o||l,onClick:async()=>{a(!0),r!==void 0&&(f==null||f.log({name:"slip_click",entityType:"market",marketDeveloperName:r,entityId:r}));try{let C=await PT(Promise.resolve(h(e)));if(C!=null&&!Od(C))throw new Error("malformed add-to-slip result");let m=C!=null?C:void 0;if(r!==void 0&&(f==null||f.log({name:"slip_result",entityType:"market",marketDeveloperName:r,entityId:r,outcome:Ow(m)})),d(zw(m,t||e.oddsDecimal.toFixed(2),s)),u(Dw(m)),ml(m)&&i.onMarketClicked)try{i.onMarketClicked(n)}catch{}}catch{r!==void 0&&(f==null||f.log({name:"slip_result",entityType:"market",marketDeveloperName:r,entityId:r,outcome:"timeout"})),d({kind:"error",text:s.slipFailed})}finally{a(!1)}},children:l?s.inSlip:s.addToSlip}),(0,is.jsx)(nu,{toast:c,onDismiss:p})]})}function Ek({it:e,slip:t,ui:n}){var i;let r=e.addToSlipEnabled?Jw(e,t.conversationId):null;return(0,is.jsx)(Po,{selection:r,shownOdds:(i=e.odds)!=null?i:"",marketName:e.market,marketDeveloperName:e.marketDeveloperName,slip:t,ui:n})}var Ro=S(T(),1);function ss({previous:e,current:t,direction:n,ui:r}){var o,a,l,u;if(e===void 0||n===void 0)return null;let i=n==="shortened"?(o=r==null?void 0:r.oddsShortened)!=null?o:"shortened":(a=r==null?void 0:r.oddsDrifted)!=null?a:"drifted",s=(u=(l=r==null?void 0:r.oddsMoved)==null?void 0:l.call(r,e,t,i))!=null?u:`was ${e}, now ${t}, ${i}`;return(0,Ro.jsxs)("span",{className:"ss-w-move",role:"img","aria-label":s,children:[(0,Ro.jsx)("span",{className:"ss-w-move-prev","aria-hidden":"true",children:e}),(0,Ro.jsx)("span",{className:"ss-w-move-arrow","aria-hidden":"true",children:n==="shortened"?"\u25BC":"\u25B2"})]})}var Ik=S(de(),1),If=S(T(),1);function RT(e){return(e!=null?e:"").trim().slice(0,1).toUpperCase()||"?"}function Be({url:e,name:t,kind:n}){let r=n==="comp"?"ss-w-bi-comp-logo":"ss-w-bi-crest",[i,s]=(0,Ik.useState)(!1);return e&&!i?(0,If.jsx)("img",{className:r,src:e,alt:"","aria-hidden":"true",onError:()=>s(!0)}):(0,If.jsx)("span",{className:`${r} ss-w-bi-crest-mono`,"aria-hidden":"true",children:RT(t)})}var ru=S(de(),1);var ci=S(T(),1),DT={pin:{viewBox:"0 0 24 24",strokeWidth:1.4,transform:"scale(1.5)",d:"M9.5 1.5 14.5 6.5 13 8l-.5-.5-3 3 .3 2.2-1.4 1.4L5.6 11.3l-3.3 3.3-1-1 3.3-3.3L1.9 7.5l1.4-1.4 2.2.3 3-3L8 2.9z"},star:{viewBox:"0 0 24 24",strokeWidth:2,d:"M12 2.5l2.9 5.9 6.5.95-4.7 4.58 1.1 6.47L12 17.35 6.1 20.4l1.1-6.47L2.5 9.35l6.5-.95z"},bookmark:{viewBox:"0 0 24 24",strokeWidth:2,d:"M7 3h10a1.5 1.5 0 0 1 1.5 1.5V21l-6.5-3.6L5.5 21V4.5A1.5 1.5 0 0 1 7 3z"}};function Mt({pin:e,monitor:t,ui:n}){let[r,i]=(0,ru.useState)(null),s=(0,ru.useCallback)(()=>i(null),[]),o=Wi();if(!t||!t.enabled)return null;let a=sy(e),l=t.isPinned(a),u=e.kind==="match"?{pin:n.matchPinLabel,unpin:n.matchUnpinLabel}:{pin:n.pinLabel,unpin:n.unpinLabel},c=()=>{let p=t.togglePin({...e,key:a});(p==="added"||p==="removed")&&(e.kind==="match"||e.marketDeveloperName!==void 0)?o==null||o.log({name:p==="added"?"pin_add":"pin_remove",entityType:e.kind==="match"?"match":"market",entityId:e.kind==="match"?String(e.matchId):e.marketDeveloperName,marketDeveloperName:e.marketDeveloperName}):p==="match_limit"?i({kind:"error",text:n.matchLimitToast}):p==="market_limit"&&i({kind:"error",text:n.marketLimitToast})},d=DT[n.pinIcon];return(0,ci.jsxs)("div",{className:"ss-w-pin-wrap",children:[(0,ci.jsx)("button",{type:"button",className:"ss-w-pin","data-on":l||void 0,"data-icon":n.pinIcon,"aria-pressed":l,"aria-label":l?u.unpin:u.pin,onClick:c,children:(0,ci.jsx)("svg",{viewBox:d.viewBox,"aria-hidden":"true",children:(0,ci.jsx)("path",{transform:d.transform,d:d.d,fill:l?"currentColor":"none",stroke:l?"none":"currentColor",strokeWidth:d.strokeWidth,strokeLinejoin:"round",strokeLinecap:"round"})})}),(0,ci.jsx)(nu,{toast:r,onDismiss:s})]})}var H=S(T(),1);function Nk({stats:e}){return(0,H.jsx)("div",{className:"ss-w-bi-rows",children:e.map(t=>(0,H.jsxs)("div",{className:"ss-w-bi-row",children:[(0,H.jsx)("span",{className:"ss-w-bi-row-lbl",children:t.label}),(0,H.jsx)("span",{className:"ss-w-bi-row-num",children:t.value})]},`${t.label}:${t.value}`))})}function OT({scopes:e}){var i,s;let[t,n]=(0,Tf.useState)(0),r=(s=(i=e[t])!=null?i:e[0])!=null?s:{key:"",label:"",stats:[]};return(0,H.jsxs)("div",{className:"ss-w-bi-scoped",children:[(0,H.jsx)("div",{className:"ss-w-bi-scopes",role:"group",children:e.map((o,a)=>(0,H.jsx)("button",{type:"button",className:"ss-w-bi-chip","aria-pressed":a===t,onClick:()=>n(a),children:o.label},o.key))}),(0,H.jsx)(Nk,{stats:r.stats},r.key)]})}function zT(e){return!!e.scopes&&e.scopes.length>=2||e.stats.length>0}function BT({it:e,ui:t}){var c,d,p,f;let[n,r]=(0,Tf.useState)(!1),i=Wi(),s=!!e.scopes&&e.scopes.length>=2,o=zT(e),a=!!e.text;if(!a&&!o)return null;let l=o||((d=(c=e.text)==null?void 0:c.length)!=null?d:0)>90,u=()=>{r(h=>{let w=!h;return w&&(i==null||i.log({name:"insight_expand",entityType:"match",entityId:String(e.matchId)})),w})};return(0,H.jsxs)("div",{className:"ss-w-bi-reason",children:[(0,H.jsx)("span",{className:"ss-w-bi-chart","aria-hidden":"true"}),(0,H.jsxs)("div",{className:"ss-w-bi-reason-body",children:[a?(0,H.jsx)("p",{className:`ss-w-bi-text${n?"":" ss-w-bi-text-clamp"}`,children:e.text}):null,n&&o?s?(0,H.jsx)(OT,{scopes:e.scopes}):(0,H.jsx)(Nk,{stats:e.stats}):null]}),l?(0,H.jsx)("button",{type:"button",className:"ss-w-bi-expand","aria-expanded":n,"aria-label":n?(p=t==null?void 0:t.hideStats)!=null?p:"Hide stats":(f=t==null?void 0:t.showStats)!=null?f:"Show stats",onClick:u,children:(0,H.jsx)("span",{className:`ss-w-bi-arrow${n?" ss-w-bi-arrow-open":""}`,"aria-hidden":"true"})}):null]})}function Tk({it:e}){return e.homeTeamName&&e.awayTeamName?(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(Be,{kind:"team",url:e.homeCrest,name:e.homeTeamName}),(0,H.jsx)("span",{className:"ss-w-bi-team",children:e.homeTeamName}),(0,H.jsx)("span",{className:"ss-w-bi-vs","aria-hidden":"true",children:"vs"}),(0,H.jsx)("span",{className:"ss-w-bi-team",children:e.awayTeamName}),(0,H.jsx)(Be,{kind:"team",url:e.awayCrest,name:e.awayTeamName})]}):e.fixture?(0,H.jsx)("span",{className:"ss-w-bi-fixture-txt",children:e.fixture}):e.competition?(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(Be,{kind:"comp",url:e.competitionCrest,name:e.competition}),(0,H.jsx)("span",{className:"ss-w-bi-comp",children:e.competition})]}):null}function FT({it:e,ui:t,slip:n,monitor:r}){var p,f,h;let i=e.isLive||e.phase==="live",s=e.kickoffUtc&&(t!=null&&t.bettingKickoff)?t.bettingKickoff(e.kickoffUtc):void 0,o=(p=e.kickoffLabel)!=null?p:s?`${s.dayLabel} ${s.time}`:void 0,l=!!e.homeTeamName&&!!e.awayTeamName||!!e.fixture,u=!!r&&e.pinEnabled,c=l||!!e.competition||i||!!o||u,d=(0,H.jsxs)(H.Fragment,{children:[i?(0,H.jsxs)("span",{className:"ss-w-bi-live",children:[(0,H.jsx)("span",{className:"ss-w-bi-live-dot","aria-hidden":"true"}),(f=t==null?void 0:t.liveLabel)!=null?f:"Live"]}):null,o?(0,H.jsx)("span",{className:"ss-w-bi-kick",children:o}):null,u&&t?(0,H.jsx)(Mt,{ui:t,monitor:r,pin:{kind:"match",matchId:e.matchId}}):null]});return(0,H.jsxs)("div",{className:"ss-w-binsight",children:[c?l?(0,H.jsxs)("div",{className:"ss-w-bi-head",children:[e.competition||i||o||u?(0,H.jsxs)("div",{className:"ss-w-bi-meta",children:[(0,H.jsx)("span",{className:"ss-w-bi-meta-left",children:e.competition?(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(Be,{kind:"comp",url:e.competitionCrest,name:e.competition}),(0,H.jsx)("span",{className:"ss-w-bi-comp",children:e.competition})]}):null}),(0,H.jsx)("span",{className:"ss-w-bi-meta-right",children:d})]}):null,(0,H.jsx)("div",{className:"ss-w-bi-fixture-line",children:(0,H.jsx)(Tk,{it:e})})]}):(0,H.jsxs)("div",{className:"ss-w-bi-header",children:[(0,H.jsx)("span",{className:"ss-w-bi-header-left",children:(0,H.jsx)(Tk,{it:e})}),(0,H.jsx)("span",{className:"ss-w-bi-header-right",children:d})]}):null,(0,H.jsxs)("div",{className:"ss-w-bi-action",children:[e.market?(0,H.jsx)("span",{className:"ss-w-bi-market",children:e.market}):null,(0,H.jsxs)("div",{className:"ss-w-bi-pick-row",children:[e.selection?(0,H.jsx)("span",{className:"ss-w-bi-sel",children:e.selection}):null,e.odds?(0,H.jsxs)("span",{className:"ss-w-bi-odds",children:[(0,H.jsx)("b",{children:e.odds}),(0,H.jsx)(ss,{previous:e.previousOdds,current:e.odds,direction:e.movementDirection,ui:t}),e.bookmaker?(0,H.jsx)("span",{className:"ss-w-bi-book",children:e.bookmaker}):null]}):null,(0,H.jsx)(Ek,{it:e,slip:n,ui:t}),u&&t?(0,H.jsx)(Mt,{ui:t,monitor:r,pin:{kind:"selection",matchId:e.matchId,marketDeveloperName:e.marketDeveloperName,selectionLabel:e.selectionLabel,line:e.line,matchOddsId:e.matchOddsId}}):null]})]}),e.isMarketFloor?(0,H.jsx)("span",{className:"ss-w-bi-floor",children:(h=t==null?void 0:t.marketFloorLabel)!=null?h:"Market price \xB7 not a value pick"}):null,(0,H.jsx)(BT,{it:e,ui:t}),e.disclaimer?(0,H.jsx)("p",{className:"ss-w-bi-disc",children:e.disclaimer}):null]})}function Lk({insights:e,ui:t,slip:n,monitor:r}){return!e||e.length===0?null:(0,H.jsx)("div",{className:"ss-w-binsights",children:e.map(i=>(0,H.jsx)(FT,{it:i,ui:t,slip:n,monitor:r},i.id))})}var Pk=S(de(),1);var $=S(T(),1);function Mk({vm:e,row:t,ui:n,slip:r,inSlipIds:i}){let s=e.addToSlipEnabled?qw(e,t,r.conversationId):null,o=!!i&&t.matchOddsId!=null&&!!i[t.matchOddsId];return(0,$.jsxs)("div",{className:"ss-w-mo-row",children:[(0,$.jsx)("span",{className:"ss-w-mo-sel",children:t.selection}),(0,$.jsx)(ss,{previous:t.previousOdds,current:t.odds,direction:t.movementDirection,ui:n}),(0,$.jsx)("span",{className:"ss-w-mo-price",children:t.odds}),o&&n?(0,$.jsxs)("span",{className:"ss-w-mon-inslip",children:["\u2713 ",n.inSlipLabel]}):null,(0,$.jsx)(Po,{selection:s,shownOdds:t.odds,marketName:e.market,marketDeveloperName:e.marketDeveloperName,slip:r,ui:n})]})}function UT({vm:e,ui:t,slip:n,monitor:r,inSlipIds:i,hideHeader:s,pinRef:o}){var w,C,m,g;let[a,l]=(0,Pk.useState)(!1),u=e.kickoffUtc&&(t!=null&&t.bettingKickoff)?t.bettingKickoff(e.kickoffUtc):void 0,c=(w=e.kickoffLabel)!=null?w:u?`${u.dayLabel} ${u.time}`:void 0,d=!!e.homeTeamName&&!!e.awayTeamName,p=!!r&&e.pinEnabled,f=p&&!o,h=!!e.competition||e.isLive||!!c||p;return(0,$.jsxs)("div",{className:s?"ss-w-mocard ss-w-mocard--bare":"ss-w-mocard",children:[!s&&(0,$.jsxs)($.Fragment,{children:[h?(0,$.jsxs)("div",{className:"ss-w-bi-header",children:[(0,$.jsx)("span",{className:"ss-w-bi-header-left",children:e.competition?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(Be,{kind:"comp",url:e.competitionCrest,name:e.competition}),(0,$.jsx)("span",{className:"ss-w-bi-comp",children:e.competition})]}):null}),(0,$.jsxs)("span",{className:"ss-w-bi-header-right",children:[e.isLive?(0,$.jsxs)("span",{className:"ss-w-bi-live",children:[(0,$.jsx)("span",{className:"ss-w-bi-live-dot","aria-hidden":"true"}),(C=t==null?void 0:t.liveLabel)!=null?C:"Live"]}):null,c?(0,$.jsx)("span",{className:"ss-w-bi-kick",children:c}):null,p&&t?(0,$.jsx)(Mt,{ui:t,monitor:r,pin:o!=null?o:{kind:"match",matchId:e.matchId}}):null]})]}):null,d||e.fixture||e.market||f?(0,$.jsxs)("div",{className:"ss-w-mo-sub",children:[d?(0,$.jsxs)("div",{className:"ss-w-bi-fixture",children:[(0,$.jsx)(Be,{kind:"team",url:e.homeCrest,name:e.homeTeamName}),(0,$.jsx)("span",{className:"ss-w-bi-team",children:e.homeTeamName}),(0,$.jsx)("span",{className:"ss-w-bi-vs","aria-hidden":"true",children:"vs"}),(0,$.jsx)("span",{className:"ss-w-bi-team",children:e.awayTeamName}),(0,$.jsx)(Be,{kind:"team",url:e.awayCrest,name:e.awayTeamName})]}):e.fixture?(0,$.jsx)("span",{className:"ss-w-mo-teams",children:e.fixture}):null,e.market||f?(0,$.jsxs)("div",{className:"ss-w-mo-market-row",children:[e.market?(0,$.jsx)("span",{className:"ss-w-mo-market",children:e.market}):null,f&&t?(0,$.jsx)(Mt,{ui:t,monitor:r,pin:{kind:"market",matchId:e.matchId,marketDeveloperName:e.marketDeveloperName,line:e.mainLine}}):null]}):null]}):null]}),(0,$.jsxs)("div",{className:"ss-w-mo-rows",children:[e.mainRows.map(y=>(0,$.jsx)(Mk,{vm:e,row:y,ui:t,slip:n,inSlipIds:i},y.key)),a?e.moreRows.map(y=>(0,$.jsx)(Mk,{vm:e,row:y,ui:t,slip:n,inSlipIds:i},y.key)):null]}),e.moreRows.length>0?(0,$.jsxs)("button",{type:"button",className:"ss-w-mo-more","aria-expanded":a,onClick:()=>l(y=>!y),children:[(0,$.jsx)("span",{children:a?(m=t==null?void 0:t.hideLines)!=null?m:"Hide lines":`${(g=t==null?void 0:t.moreLines)!=null?g:"More lines"} (${e.moreRows.length})`}),(0,$.jsx)("span",{className:`ss-w-mo-more-chev${a?" ss-w-mo-more-chev-up":""}`,"aria-hidden":"true"})]}):null,e.bookmaker?(0,$.jsx)("div",{className:"ss-w-mo-foot",children:(0,$.jsx)("span",{children:e.bookmaker})}):null,e.disclaimer?(0,$.jsx)("p",{className:"ss-w-bi-disc",children:e.disclaimer}):null]})}function os({cards:e,ui:t,slip:n,monitor:r,inSlipIds:i,hideHeader:s,pinRef:o}){return!e||e.length===0?null:(0,$.jsx)("div",{className:"ss-w-mocards",children:e.map(a=>(0,$.jsx)(UT,{vm:a,ui:t,slip:n,monitor:r,inSlipIds:i,hideHeader:s,pinRef:o},a.id))})}var ie=S(T(),1);function HT(e,t){var n,r;return e.direction==="shortened"?(n=t==null?void 0:t.oddsShortened)!=null?n:"shortened":e.direction==="drifted"?(r=t==null?void 0:t.oddsDrifted)!=null?r:"drifted":""}function VT({vm:e,ui:t,monitor:n}){var a,l,u,c,d,p;let r=HT(e,t),i=r?`, ${r}`:"",s=t!=null&&t.chartAria?t.chartAria(e.opening,e.current,r,e.windowHours):`Price movement over the last ${e.windowHours} hours: opened at ${e.opening}, currently ${e.current}${i}.`,o=!!n&&e.pinEnabled;return(0,ie.jsxs)("div",{className:"ss-w-omcard",children:[(0,ie.jsxs)("div",{className:"ss-w-om-head",children:[(0,ie.jsx)("span",{className:"ss-w-om-market",children:e.market}),(0,ie.jsx)("span",{className:"ss-w-om-tag",children:(a=t==null?void 0:t.priceMovement)!=null?a:"Price movement"}),o&&t?(0,ie.jsx)(Mt,{ui:t,monitor:n,pin:{kind:"selection",matchId:e.matchId,marketDeveloperName:e.marketDeveloperName,selectionLabel:e.selectionLabel,line:e.line,withHistory:!0,matchOddsId:e.matchOddsId}}):null]}),e.fixture?(0,ie.jsxs)("div",{className:"ss-w-om-fixture",children:[(0,ie.jsx)("span",{children:e.fixture}),e.competition?(0,ie.jsx)("span",{className:"ss-w-om-comp",children:e.competition}):null]}):null,(0,ie.jsx)("div",{className:"ss-w-om-sel",children:e.selection}),(0,ie.jsx)(ss,{previous:e.opening,current:e.current,direction:e.direction,ui:t}),e.geometry===null?(0,ie.jsx)("div",{className:"ss-w-om-empty",children:e.observationCount===1?(l=t==null?void 0:t.singlePricePoint)!=null?l:"Only one price recorded so far for this selection.":(u=t==null?void 0:t.notEnoughHistory)!=null?u:"No price history recorded yet for this selection."}):(0,ie.jsxs)("svg",{className:"ss-w-om-chart",viewBox:e.geometry.viewBox,width:"100%",role:"img","aria-label":s,children:[e.geometry.gridlines.map(f=>(0,ie.jsxs)("g",{children:[(0,ie.jsx)("line",{className:"ss-w-om-grid",x1:40,y1:f.y,x2:312,y2:f.y}),(0,ie.jsx)("text",{className:"ss-w-om-ylab",x:34,y:f.y+3,textAnchor:"end",children:f.price.toFixed(2)})]},f.price)),(0,ie.jsx)("path",{className:"ss-w-om-line",d:e.geometry.path,fill:"none"}),e.geometry.markers.map((f,h)=>(0,ie.jsx)("circle",{className:"ss-w-om-dot",cx:f.x,cy:f.y,r:2.5},h)),t!=null&&t.chartTimeLabel?(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsx)("text",{className:"ss-w-om-xlab",x:40,y:132,textAnchor:"start",children:t.chartTimeLabel(e.geometry.startMs)}),(0,ie.jsx)("text",{className:"ss-w-om-xlab",x:312,y:132,textAnchor:"end",children:t.chartTimeLabel(e.geometry.endMs)})]}):(0,ie.jsx)("text",{className:"ss-w-om-xlab",x:40,y:132,children:t!=null&&t.movementWindow?t.movementWindow(e.windowHours):`Last ${e.windowHours}h`})]}),(0,ie.jsxs)("div",{className:"ss-w-om-foot",children:[(0,ie.jsxs)("span",{children:[(c=t==null?void 0:t.openingLabel)!=null?c:"Opening"," ",(0,ie.jsx)("b",{children:e.opening})]}),(0,ie.jsxs)("span",{children:[(d=t==null?void 0:t.currentLabel)!=null?d:"Current"," ",(0,ie.jsx)("b",{children:e.current})]})]}),e.bookmaker?(0,ie.jsx)("div",{className:"ss-w-om-foot",children:(0,ie.jsx)("span",{children:e.bookmaker})}):null,e.excludedCount>0?(0,ie.jsx)("div",{className:"ss-w-om-excl",children:t!=null&&t.excludedSuspended?t.excludedSuspended(e.excludedCount):`${e.excludedCount} suspended price(s) excluded from this chart.`}):null,e.isSuspended?(0,ie.jsx)("div",{className:"ss-w-om-susp",children:(p=t==null?void 0:t.selectionSuspended)!=null?p:"This selection is not currently available to bet."}):null,e.disclaimer?(0,ie.jsx)("div",{className:"ss-w-om-disc",children:e.disclaimer}):null]})}function iu({cards:e,ui:t,monitor:n}){return!e||e.length===0?null:(0,ie.jsx)("div",{className:"ss-w-omcards",children:e.map(r=>(0,ie.jsx)(VT,{vm:r,ui:t,monitor:n},r.id))})}var qn=S(T(),1);function su({actions:e,loading:t,disabled:n,onAct:r}){return e.length===0&&!t?null:(0,qn.jsxs)("div",{className:"ss-w-actions",children:[e.map((i,s)=>(0,qn.jsx)("button",{type:"button",className:"ss-w-abtn",disabled:n,onClick:()=>r(i),children:i.label},`${i.label}-${s}`)),e.length===0&&t?(0,qn.jsxs)(qn.Fragment,{children:[(0,qn.jsx)("span",{className:"ss-w-abtn-shimmer"}),(0,qn.jsx)("span",{className:"ss-w-abtn-shimmer"})]}):null]})}var Pt=S(T(),1),jT=3;function Dk({tile:e,onTap:t}){var s;let n=e.span==="full"?"ss-w-dash-tile--full":"ss-w-dash-tile--half",r=((s=e.imageUrls)!=null?s:[]).slice(0,jT),i=!!e.badgeText||r.length>0;return(0,Pt.jsxs)("button",{type:"button",className:`ss-w-dash-tile ${n}`,onClick:t,children:[(0,Pt.jsx)("span",{className:"ss-w-dash-tile-icon",children:(0,Pt.jsx)(Iy,{name:e.icon})}),(0,Pt.jsxs)("span",{className:"ss-w-dash-tile-body",children:[(0,Pt.jsx)("span",{className:"ss-w-dash-tile-title",children:e.title}),e.subtitle?(0,Pt.jsx)("span",{className:"ss-w-dash-tile-subtitle",children:e.subtitle}):null,i?(0,Pt.jsxs)("span",{className:"ss-w-dash-tile-meta",children:[e.badgeText?(0,Pt.jsx)("span",{className:"ss-w-dash-tile-badge",children:e.badgeText}):null,r.length>0?(0,Pt.jsx)("span",{className:"ss-w-dash-tile-crests",children:r.map((o,a)=>(0,Pt.jsx)("span",{className:"ss-w-dash-tile-crest",style:{backgroundImage:`url(${o})`},"aria-hidden":"true"},`${o}-${a}`))}):null]}):null]}),(0,Pt.jsx)("span",{className:"ss-w-dash-tile-chevron",children:(0,Pt.jsx)(yl,{})})]})}var Kn=S(T(),1),Nf={market:"ss-w-dash--market",goal:"ss-w-dash--goal",discovery:"ss-w-dash--discovery"};function _T(e){return Object.prototype.hasOwnProperty.call(Nf,e)?Nf[e]:Nf.goal}function Ok({dashboard:e,onTap:t}){return(0,Kn.jsxs)("div",{className:`ss-w-dash ${_T(e.layout)}`,children:[(0,Kn.jsxs)("div",{className:"ss-w-dash-head",children:[(0,Kn.jsx)("span",{className:"ss-w-dash-title",children:e.title}),e.subtitle?(0,Kn.jsx)("span",{className:"ss-w-dash-subtitle",children:e.subtitle}):null]}),(0,Kn.jsx)("div",{className:"ss-w-dash-grid",children:e.tiles.map((n,r)=>(0,Kn.jsx)(Dk,{tile:n,onTap:()=>t(n,r)},`${n.title}-${r}`))}),e.footerTip?(0,Kn.jsx)("span",{className:"ss-w-dash-foot",children:e.footerTip}):null]})}var q=S(T(),1);function WT(e){return e==="W"?"ss-w-fandash-teamform-cell--win":e==="L"?"ss-w-fandash-teamform-cell--loss":"ss-w-fandash-teamform-cell--draw"}function zk({m:e,subjectCrestUrl:t,subjectName:n}){var o;let r=(0,q.jsx)(Be,{url:t!=null?t:void 0,name:n,kind:"team"}),i=(0,q.jsx)(Be,{url:(o=e.opponentCrestUrl)!=null?o:void 0,kind:"team"}),s=e.teamIsHome?`${e.teamScore} - ${e.oppScore}`:`${e.oppScore} - ${e.teamScore}`;return(0,q.jsxs)("div",{className:`ss-w-fandash-teamform-cell ${WT(e.result)}`,children:[e.teamIsHome?r:i,(0,q.jsx)("span",{className:"ss-w-fandash-teamform-score",children:s}),e.teamIsHome?i:r]})}var XT=5;function JT(e){return Array.from({length:XT},(t,n)=>n).flatMap(t=>[(0,q.jsx)("span",{className:"ss-w-fandash-teamform-slot",children:e.homeForm[t]?(0,q.jsx)(zk,{m:e.homeForm[t],subjectCrestUrl:e.homeCrestUrl,subjectName:e.homeName}):null},`h-${t}`),(0,q.jsx)("span",{className:"ss-w-fandash-teamform-slot",children:e.awayForm[t]?(0,q.jsx)(zk,{m:e.awayForm[t],subjectCrestUrl:e.awayCrestUrl,subjectName:e.awayName}):null},`a-${t}`)])}function Bk({card:e}){var r,i,s,o;let{data:t}=e,n=t.h2H;return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-fixture",children:[(0,q.jsxs)("span",{className:"ss-w-fandash-eyebrow",children:[e.title," \xB7 ",t.competition]}),(0,q.jsxs)("div",{className:"ss-w-fandash-fixture-teams",children:[(0,q.jsxs)("span",{className:"ss-w-fandash-fixture-team",children:[(0,q.jsx)(Be,{url:(r=t.homeCrestUrl)!=null?r:void 0,name:t.homeName,kind:"team"}),(0,q.jsx)("span",{className:"ss-w-fandash-fixture-name",children:t.homeName})]}),(0,q.jsx)("span",{className:"ss-w-fandash-fixture-vs",children:"v"}),(0,q.jsxs)("span",{className:"ss-w-fandash-fixture-team ss-w-fandash-fixture-team--away",children:[(0,q.jsx)("span",{className:"ss-w-fandash-fixture-name",children:t.awayName}),(0,q.jsx)(Be,{url:(i=t.awayCrestUrl)!=null?i:void 0,name:t.awayName,kind:"team"})]})]}),(0,q.jsxs)("div",{className:"ss-w-fandash-fixture-meta",children:[(0,q.jsx)("span",{className:"ss-w-fandash-fixture-kickoff",children:t.kickoffLabel}),t.venue?(0,q.jsxs)("span",{className:"ss-w-fandash-fixture-venue",children:[" \xB7 ",t.venue]}):null]})]}),(0,q.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-lastfive",children:[(0,q.jsx)("span",{className:"ss-w-fandash-eyebrow",children:t.formLabel}),(0,q.jsxs)("div",{className:"ss-w-fandash-teamform-head",children:[(0,q.jsxs)("span",{className:"ss-w-fandash-teamform-head-team",children:[(0,q.jsx)(Be,{url:(s=t.homeCrestUrl)!=null?s:void 0,name:t.homeName,kind:"team"}),(0,q.jsx)("span",{className:"ss-w-fandash-teamform-head-name",children:t.homeName})]}),(0,q.jsxs)("span",{className:"ss-w-fandash-teamform-head-team",children:[(0,q.jsx)(Be,{url:(o=t.awayCrestUrl)!=null?o:void 0,name:t.awayName,kind:"team"}),(0,q.jsx)("span",{className:"ss-w-fandash-teamform-head-name",children:t.awayName})]})]}),(0,q.jsx)("div",{className:"ss-w-fandash-teamform-rows",children:JT(t)})]}),n||t.fact?(0,q.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-h2h",children:[n?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)("span",{className:"ss-w-fandash-eyebrow",children:n.label}),(0,q.jsxs)("div",{className:"ss-w-fandash-split",children:[(0,q.jsxs)("span",{className:"ss-w-fandash-split-cell",children:[(0,q.jsx)("span",{className:"ss-w-fandash-split-value",children:n.wins}),(0,q.jsx)("span",{className:"ss-w-fandash-split-label",children:n.homeWinsLabel})]}),(0,q.jsxs)("span",{className:"ss-w-fandash-split-cell",children:[(0,q.jsx)("span",{className:"ss-w-fandash-split-value",children:n.draws}),(0,q.jsx)("span",{className:"ss-w-fandash-split-label",children:n.drawsLabel})]}),(0,q.jsxs)("span",{className:"ss-w-fandash-split-cell",children:[(0,q.jsx)("span",{className:"ss-w-fandash-split-value",children:n.losses}),(0,q.jsx)("span",{className:"ss-w-fandash-split-label",children:n.awayWinsLabel})]})]})]}):null,t.fact?(0,q.jsx)("span",{className:"ss-w-fandash-fact",children:t.fact}):null]}):null]})}var di=S(de(),1),pn=S(T(),1),qT=864e5;function KT(e,t,n){let r=Math.floor((e*1e3-t)/1e3);if(r<=0)return null;let i=Math.floor(r/86400),s=Math.floor(r%86400/3600),o=Math.floor(r%3600/60),a=r%60,l=c=>String(c).padStart(2,"0");if(i>0)return[{value:l(i),unit:"d"},{value:l(s),unit:"h"}];let u=[{value:l(s),unit:"h"},{value:l(o),unit:"m"}];return n&&u.push({value:l(a),unit:"s"}),u}function Fk({card:e}){var l;let{data:t}=e,n={d:t.daysUnit,h:t.hoursUnit,m:t.minutesUnit,s:t.secondsUnit},[r,i]=(0,di.useState)(()=>Date.now()),[s]=(0,di.useState)(()=>typeof window!="undefined"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches),o=t.kickoffUnix*1e3-r<qT;(0,di.useEffect)(()=>{if(s)return;let u=window.setInterval(()=>i(Date.now()),o?1e3:6e4);return()=>window.clearInterval(u)},[s,o]);let a=KT(t.kickoffUnix,r,o&&!s);return(0,pn.jsx)("div",{className:"ss-w-fandash-card ss-w-fandash-countdown",children:(0,pn.jsxs)("div",{className:"ss-w-fandash-countdown-top",children:[(0,pn.jsx)("span",{className:"ss-w-fandash-eyebrow",children:(l=e.title)!=null?l:"Kick-off in"}),a?(0,pn.jsx)("span",{className:"ss-w-fandash-countdown-clock",children:a.map((u,c)=>(0,pn.jsxs)(di.Fragment,{children:[c>0?(0,pn.jsx)("span",{className:"ss-w-fandash-countdown-colon",children:":"}):null,(0,pn.jsxs)("span",{className:"ss-w-fandash-countdown-seg",children:[(0,pn.jsx)("span",{className:"ss-w-fandash-countdown-value",children:u.value}),(0,pn.jsx)("span",{className:"ss-w-fandash-countdown-unit",children:n[u.unit]})]})]},u.unit))}):null]})})}var Hk=S(de(),1);var Ce=S(T(),1),Lf=3;function Uk({name:e,crestUrl:t}){return(0,Ce.jsxs)("span",{className:"ss-w-fandash-injuries-col-head",children:[(0,Ce.jsx)(Be,{url:t!=null?t:void 0,name:e,kind:"team"}),(0,Ce.jsx)("span",{className:"ss-w-fandash-injuries-col-head-name",children:e})]})}function Qk({rows:e,emptyLabel:t,limit:n}){if(e.length===0)return(0,Ce.jsx)("span",{className:"ss-w-fandash-injuries-empty",children:t});let r=n===void 0?e:e.slice(0,n);return(0,Ce.jsx)("ul",{className:"ss-w-fandash-injury-list",children:r.map((i,s)=>(0,Ce.jsxs)("li",{className:"ss-w-fandash-injury-row",children:[(0,Ce.jsx)("span",{className:"ss-w-fandash-injury-name",children:i.playerName}),(0,Ce.jsxs)("span",{className:"ss-w-fandash-injury-meta",children:[(0,Ce.jsx)("span",{className:"ss-w-fandash-injury-status",children:i.status}),i.injuryType?(0,Ce.jsx)("span",{className:"ss-w-fandash-injury-type",children:i.injuryType}):null,i.expectedReturnLabel?(0,Ce.jsx)("span",{className:"ss-w-fandash-injury-return",children:i.expectedReturnLabel}):null]})]},`${i.playerName}-${s}`))})}function Vk({card:e,ui:t}){var u,c;let{data:n}=e,[r,i]=(0,Hk.useState)(!1),s=Math.max(0,n.ours.length-Lf)+Math.max(0,n.theirs.length-Lf),o=r?void 0:Lf,a=(u=t==null?void 0:t.showMore)!=null?u:(d=>`Show ${d} more`),l=(c=t==null?void 0:t.showLess)!=null?c:"Show less";return(0,Ce.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-injuries",children:[e.title?(0,Ce.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Ce.jsxs)("div",{className:"ss-w-fandash-injuries-cols",children:[(0,Ce.jsxs)("div",{className:"ss-w-fandash-injuries-col",children:[(0,Ce.jsx)(Uk,{name:n.oursName,crestUrl:n.oursCrestUrl}),(0,Ce.jsx)(Qk,{rows:n.ours,emptyLabel:n.emptyLabel,limit:o})]}),(0,Ce.jsx)("div",{className:"ss-w-fandash-injuries-divider"}),(0,Ce.jsxs)("div",{className:"ss-w-fandash-injuries-col",children:[(0,Ce.jsx)(Uk,{name:n.theirsName,crestUrl:n.theirsCrestUrl}),(0,Ce.jsx)(Qk,{rows:n.theirs,emptyLabel:n.emptyLabel,limit:o})]})]}),s>0?(0,Ce.jsx)("button",{type:"button",className:"ss-w-fandash-injuries-more","aria-expanded":r,onClick:()=>i(d=>!d),children:r?l:a(s)}):null]})}var as=S(T(),1);function jk({card:e}){return(0,as.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-reasons",children:[e.title?(0,as.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,as.jsx)("ul",{className:"ss-w-fandash-reason-list",children:e.data.angles.map((t,n)=>(0,as.jsx)("li",{className:"ss-w-fandash-reason-item",children:t},`${t}-${n}`))})]})}var ls=S(T(),1);function _k({card:e}){return(0,ls.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-watch",children:[e.title?(0,ls.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,ls.jsx)("span",{className:"ss-w-fandash-stations",children:e.data.stations.map((t,n)=>(0,ls.jsx)("span",{className:"ss-w-fandash-station-chip",children:t},`${t}-${n}`))})]})}var fn=S(T(),1);function Wk({card:e,onTap:t}){return(0,fn.jsxs)("button",{type:"button",className:"ss-w-fandash-card ss-w-fandash-card--tap ss-w-fandash-congested",onClick:()=>t(e),children:[e.title?(0,fn.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,fn.jsx)("div",{className:"ss-w-fandash-congested-grid",children:e.data.entries.map((n,r)=>(0,fn.jsxs)("span",{className:"ss-w-fandash-congested-cell",children:[(0,fn.jsx)("span",{className:"ss-w-fandash-congested-day",children:n.dayLabel}),(0,fn.jsx)("span",{className:"ss-w-fandash-congested-opponent",children:n.opponent}),(0,fn.jsx)("span",{className:"ss-w-fandash-congested-comp",children:n.competition}),(0,fn.jsx)("span",{className:"ss-w-fandash-congested-time",children:n.timeLabel})]},`${n.opponent}-${r}`))}),(0,fn.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var et=S(T(),1);function Xk({rows:e}){return e.length===0?(0,et.jsx)("span",{className:"ss-w-fandash-transfers-empty",children:"None"}):(0,et.jsx)("ul",{className:"ss-w-fandash-transfer-list",children:e.map((t,n)=>(0,et.jsxs)("li",{className:"ss-w-fandash-transfer-row",children:[(0,et.jsx)("span",{className:"ss-w-fandash-transfer-name",children:t.playerName}),(0,et.jsx)("span",{className:"ss-w-fandash-transfer-club",children:t.otherClub}),t.type?(0,et.jsx)("span",{className:"ss-w-fandash-transfer-type",children:t.type}):null]},`${t.playerName}-${n}`))})}function Jk({card:e}){let{data:t}=e;return(0,et.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-transfers",children:[e.title?(0,et.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,et.jsxs)("div",{className:"ss-w-fandash-transfers-cols",children:[(0,et.jsxs)("div",{className:"ss-w-fandash-transfers-col",children:[(0,et.jsx)("span",{className:"ss-w-fandash-transfers-col-head",children:"In"}),(0,et.jsx)(Xk,{rows:t.in})]}),(0,et.jsxs)("div",{className:"ss-w-fandash-transfers-col",children:[(0,et.jsx)("span",{className:"ss-w-fandash-transfers-col-head",children:"Out"}),(0,et.jsx)(Xk,{rows:t.out})]})]})]})}var Yn=S(T(),1);function qk({card:e}){return(0,Yn.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-links",children:[e.title?(0,Yn.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Yn.jsx)("div",{className:"ss-w-fandash-link-grid",children:e.data.links.map((t,n)=>(0,Yn.jsxs)("a",{className:"ss-w-fandash-link-tile",href:t.url,target:"_blank",rel:"noopener noreferrer",children:[(0,Yn.jsx)("span",{className:"ss-w-fandash-link-label",children:t.label}),(0,Yn.jsx)("span",{className:"ss-w-fandash-link-chevron",children:(0,Yn.jsx)(yl,{})})]},`${t.url}-${n}`))})]})}var Yk=S(de(),1),Ue=S(T(),1);function YT(e){return e.trim().slice(0,3).toUpperCase()}function Kk({url:e,name:t,side:n}){let[r,i]=(0,Yk.useState)(!1),s=`ss-w-fandash-postmatch-crest ss-w-fandash-postmatch-crest--${n}`;return e&&!r?(0,Ue.jsx)("img",{className:s,src:e,alt:"","aria-hidden":"true",onError:()=>i(!0)}):(0,Ue.jsx)("span",{className:`${s} ss-w-fandash-postmatch-crest--fallback`,"aria-hidden":"true",children:YT(t)})}function Gk({card:e}){let{data:t}=e,n=t.homeScore>=t.awayScore,r=t.awayScore>=t.homeScore;return(0,Ue.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-postmatch-result",children:[(0,Ue.jsxs)("div",{className:"ss-w-fandash-postmatch-top",children:[e.title?(0,Ue.jsx)("span",{className:"ss-w-fandash-postmatch-pill",children:e.title}):null,(0,Ue.jsx)("span",{className:`ss-w-fandash-postmatch-tag ss-w-fandash-postmatch-tag--${t.outcome}`,children:t.resultLabel})]}),(0,Ue.jsxs)("div",{className:"ss-w-fandash-postmatch-main",children:[(0,Ue.jsxs)("div",{className:"ss-w-fandash-postmatch-side ss-w-fandash-postmatch-side--home",children:[(0,Ue.jsx)(Kk,{url:t.homeCrestUrl,name:t.homeName,side:"home"}),(0,Ue.jsx)("span",{className:"ss-w-fandash-postmatch-team-name",children:t.homeName})]}),(0,Ue.jsxs)("div",{className:"ss-w-fandash-postmatch-score-main",children:[(0,Ue.jsx)("span",{className:`ss-w-fandash-postmatch-score-value ss-w-fandash-postmatch-score-value--${n?"win":"lose"}`,children:t.homeScore}),(0,Ue.jsx)("span",{className:"ss-w-fandash-postmatch-score-sep",children:"\u2013"}),(0,Ue.jsx)("span",{className:`ss-w-fandash-postmatch-score-value ss-w-fandash-postmatch-score-value--${r?"win":"lose"}`,children:t.awayScore})]}),(0,Ue.jsxs)("div",{className:"ss-w-fandash-postmatch-side ss-w-fandash-postmatch-side--away",children:[(0,Ue.jsx)(Kk,{url:t.awayCrestUrl,name:t.awayName,side:"away"}),(0,Ue.jsx)("span",{className:"ss-w-fandash-postmatch-team-name",children:t.awayName})]})]}),(0,Ue.jsxs)("div",{className:"ss-w-fandash-postmatch-meta",children:[t.kickoffLabel,t.competition?` \xB7 ${t.competition}`:""]})]})}var Gn=S(T(),1);function Zk({card:e,onTap:t}){return(0,Gn.jsxs)("button",{type:"button",className:"ss-w-fandash-card ss-w-fandash-card--tap ss-w-fandash-postmatch-goals",onClick:()=>t(e),children:[e.title?(0,Gn.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Gn.jsx)("ul",{className:"ss-w-fandash-postmatch-goal-list",children:e.data.goals.map((n,r)=>(0,Gn.jsxs)("li",{className:n.scoredByClub?"ss-w-fandash-postmatch-goal ss-w-fandash-postmatch-goal--club":"ss-w-fandash-postmatch-goal",children:[(0,Gn.jsx)("span",{className:"ss-w-fandash-postmatch-goal-ball"}),(0,Gn.jsx)("span",{children:n.text})]},`${n.text}-${r}`))}),(0,Gn.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var We=S(T(),1);function GT(e,t){let n=e+t;if(n<=0)return{home:"50%",away:"50%"};let r=Math.round(e/n*1e3)/10;return{home:`${r}%`,away:`${Math.round((100-r)*10)/10}%`}}function $k({card:e,onTap:t}){let{data:n}=e;return(0,We.jsxs)("button",{type:"button",className:"ss-w-fandash-card ss-w-fandash-card--tap ss-w-fandash-postmatch-stats",onClick:()=>t(e),children:[e.title?(0,We.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,We.jsx)("div",{className:"ss-w-fandash-postmatch-stat-rows",children:n.rows.map((r,i)=>{let s=n.clubIsHome?r.clubValue:r.oppValue,o=n.clubIsHome?r.oppValue:r.clubValue,a=n.clubIsHome?r.clubNum:r.oppNum,l=n.clubIsHome?r.oppNum:r.clubNum,{home:u,away:c}=GT(a,l);return(0,We.jsxs)("div",{className:"ss-w-fandash-postmatch-stat",children:[(0,We.jsxs)("div",{className:"ss-w-fandash-postmatch-stat-row",children:[(0,We.jsx)("span",{className:"ss-w-fandash-postmatch-stat-value ss-w-fandash-postmatch-stat-value--home",children:s}),(0,We.jsx)("span",{className:"ss-w-fandash-postmatch-stat-label",children:r.label}),(0,We.jsx)("span",{className:"ss-w-fandash-postmatch-stat-value ss-w-fandash-postmatch-stat-value--away",children:o})]}),(0,We.jsxs)("div",{className:"ss-w-fandash-postmatch-stat-bar",children:[(0,We.jsx)("span",{className:"ss-w-fandash-postmatch-stat-bar-home",style:{width:u}}),(0,We.jsx)("span",{className:"ss-w-fandash-postmatch-stat-bar-away",style:{width:c}})]})]},`${r.label}-${i}`)})}),n.rows.length>0?(0,We.jsxs)("div",{className:"ss-w-fandash-postmatch-legend",children:[(0,We.jsxs)("span",{className:"ss-w-fandash-postmatch-legend-item",children:[(0,We.jsx)("i",{className:"ss-w-fandash-postmatch-legend-swatch ss-w-fandash-postmatch-legend-swatch--home"}),n.homeName]}),(0,We.jsxs)("span",{className:"ss-w-fandash-postmatch-legend-item",children:[(0,We.jsx)("i",{className:"ss-w-fandash-postmatch-legend-swatch ss-w-fandash-postmatch-legend-swatch--away"}),n.awayName]})]}):null,(0,We.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var Zn=S(T(),1);function ZT(e){let t=e.trim().split(/\s+/).filter(Boolean);if(t.length===0)return"?";let n=t[0].charAt(0),r=t[t.length-1].charAt(0);return(t.length>1?`${n}${r}`:n).toUpperCase()}function eb({card:e,onTap:t}){let{data:n}=e;return(0,Zn.jsxs)("button",{type:"button",className:"ss-w-fandash-card ss-w-fandash-card--tap ss-w-fandash-postmatch-performer",onClick:()=>t(e),children:[e.title?(0,Zn.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Zn.jsxs)("div",{className:"ss-w-fandash-postmatch-perf-row",children:[(0,Zn.jsx)("span",{className:"ss-w-fandash-postmatch-perf-avatar","aria-hidden":"true",children:ZT(n.playerName)}),(0,Zn.jsx)("span",{className:"ss-w-fandash-postmatch-perf-name",children:n.playerName}),(0,Zn.jsx)("span",{className:"ss-w-fandash-postmatch-perf-rating",children:n.ratingLabel})]}),(0,Zn.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var us=S(T(),1);function tb({card:e}){let{data:t}=e;return(0,us.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-postmatch-next",children:[e.title?(0,us.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,us.jsx)("div",{className:"ss-w-fandash-postmatch-next-row",children:(0,us.jsx)("span",{className:"ss-w-fandash-postmatch-next-when",children:t.whenLabel})})]})}var Lr=S(T(),1);function nb({card:e,onTap:t}){let{data:n}=e;return(0,Lr.jsxs)("button",{type:"button",className:"ss-w-fandash-card ss-w-fandash-card--tap ss-w-fandash-resting-next",onClick:()=>t(e),children:[e.title?(0,Lr.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Lr.jsxs)("div",{className:"ss-w-fandash-resting-next-row",children:[(0,Lr.jsx)("span",{className:"ss-w-fandash-resting-next-when",children:n.whenLabel}),n.competition?(0,Lr.jsx)("span",{className:"ss-w-fandash-resting-next-competition",children:n.competition}):null]}),(0,Lr.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var Mr=S(T(),1);function rb({card:e,onTap:t}){let{data:n}=e;return(0,Mr.jsxs)("button",{type:"button",className:"ss-w-fandash-card ss-w-fandash-card--tap ss-w-fandash-resting-standings",onClick:()=>t(e),children:[e.title?(0,Mr.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Mr.jsxs)("div",{className:"ss-w-fandash-resting-standings-row",children:[(0,Mr.jsx)("span",{className:"ss-w-fandash-resting-standings-position",children:n.positionLabel}),(0,Mr.jsx)("span",{className:"ss-w-fandash-resting-standings-record",children:n.recordLabel})]}),(0,Mr.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var $n=S(T(),1);function ib({card:e,onTap:t}){let{data:n}=e;return(0,$n.jsxs)("button",{type:"button",className:"ss-w-fandash-card ss-w-fandash-card--tap ss-w-fandash-resting-season",onClick:()=>t(e),children:[e.title?(0,$n.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,$n.jsxs)("div",{className:"ss-w-fandash-resting-season-rows",children:[n.scorerLabel?(0,$n.jsx)("span",{className:"ss-w-fandash-resting-season-row",children:n.scorerLabel}):null,n.playerLabel?(0,$n.jsx)("span",{className:"ss-w-fandash-resting-season-row",children:n.playerLabel}):null,(0,$n.jsx)("span",{className:"ss-w-fandash-resting-season-row",children:n.tallyLabel})]}),(0,$n.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var cs=S(T(),1);function $T(e){let t=e.toUpperCase();return t==="W"?"ss-w-fandash-form-pill--win":t==="L"?"ss-w-fandash-form-pill--loss":"ss-w-fandash-form-pill--draw"}function sb({card:e}){let{data:t}=e;return(0,cs.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-resting-form",children:[e.title?(0,cs.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,cs.jsx)("span",{className:"ss-w-fandash-form",children:t.letters.map((n,r)=>(0,cs.jsx)("span",{className:`ss-w-fandash-form-pill ${$T(n)}`,children:n},`${n}-${r}`))})]})}var au=S(de(),1);var ou=S(de(),1),ob=6e4,eN=15;function Mf(e,t,n){if(!t)return e;let r=Math.floor((Date.now()-n)/ob);return e+Math.min(Math.max(0,r),eN)}function ab(e,t,n){let[r,i]=(0,ou.useState)(()=>Mf(e,t,n));return(0,ou.useEffect)(()=>{if(i(Mf(e,t,n)),!t)return;let s=window.setInterval(()=>{i(Mf(e,t,n))},ob);return()=>window.clearInterval(s)},[e,t,n]),r}var Ae=S(T(),1);function tN(e){return e.trim().slice(0,3).toUpperCase()}function lb({url:e,name:t,side:n}){let[r,i]=(0,au.useState)(!1),s=`ss-w-fandash-live-crest ss-w-fandash-live-crest--${n}`;return e&&!r?(0,Ae.jsx)("img",{className:s,src:e,alt:"","aria-hidden":"true",onError:()=>i(!0)}):(0,Ae.jsx)("span",{className:`${s} ss-w-fandash-live-crest--fallback`,"aria-hidden":"true",children:tN(t)})}function nN(e){if(!e||e.length===0)return null;let t=e.filter(n=>n.type==="goal"&&n.player);return t.length===0?null:t.slice().sort((n,r)=>n.minute-r.minute).map(n=>`${n.player} ${n.minuteLabel}`).join(", ")}function ub({card:e,goalEvents:t}){let{data:n}=e,r=`${n.minute}:${n.homeScore}:${n.awayScore}`,i=(0,au.useRef)(null);(!i.current||i.current.key!==r)&&(i.current={key:r,receivedAtMs:Date.now()});let s=ab(n.minute,n.clockRunning,i.current.receivedAtMs),o=n.minuteLabel.replace(/^\d+/,""),a=nN(t);return(0,Ae.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-live-score",children:[e.title?(0,Ae.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Ae.jsxs)("div",{className:"ss-w-fandash-live-top",children:[(0,Ae.jsxs)("span",{className:"ss-w-fandash-live-pill",children:[(0,Ae.jsx)("span",{className:"ss-w-fandash-live-dot","aria-hidden":"true"}),n.statusLabel]}),(0,Ae.jsx)("span",{className:"ss-w-fandash-live-minute",children:`${s}${o}`}),n.competition?(0,Ae.jsx)("span",{className:"ss-w-fandash-live-competition",children:n.competition}):null]}),(0,Ae.jsxs)("div",{className:"ss-w-fandash-live-main",children:[(0,Ae.jsxs)("div",{className:"ss-w-fandash-live-side ss-w-fandash-live-side--home",children:[(0,Ae.jsx)(lb,{url:n.homeCrestUrl,name:n.homeName,side:"home"}),(0,Ae.jsx)("span",{className:"ss-w-fandash-live-team-name",children:n.homeName})]}),(0,Ae.jsxs)("div",{className:"ss-w-fandash-live-score-main",children:[(0,Ae.jsx)("span",{className:"ss-w-fandash-live-score-value",children:n.homeScore}),(0,Ae.jsx)("span",{className:"ss-w-fandash-live-score-sep",children:"\u2013"}),(0,Ae.jsx)("span",{className:"ss-w-fandash-live-score-value",children:n.awayScore})]}),(0,Ae.jsxs)("div",{className:"ss-w-fandash-live-side ss-w-fandash-live-side--away",children:[(0,Ae.jsx)(lb,{url:n.awayCrestUrl,name:n.awayName,side:"away"}),(0,Ae.jsx)("span",{className:"ss-w-fandash-live-team-name",children:n.awayName})]})]}),a?(0,Ae.jsxs)("div",{className:"ss-w-fandash-live-scorers",children:[(0,Ae.jsx)("span",{className:"ss-w-fandash-live-scorers-icon","aria-hidden":"true",children:"\u26BD"}),a]}):null]})}var db=S(de(),1),Te=S(T(),1),cb=3;function rN({type:e}){return e==="goal"?(0,Te.jsx)("span",{className:"ss-w-fandash-live-tl-ico ss-w-fandash-live-tl-ico--goal","aria-hidden":"true",children:(0,Te.jsx)("span",{className:"ss-w-fandash-live-tl-ball"})}):e==="yellow"||e==="red"?(0,Te.jsx)("span",{className:"ss-w-fandash-live-tl-ico","aria-hidden":"true",children:(0,Te.jsx)("span",{className:`ss-w-fandash-live-tl-card ss-w-fandash-live-tl-card--${e}`})}):e==="sub"?(0,Te.jsx)("span",{className:"ss-w-fandash-live-tl-ico","aria-hidden":"true",children:(0,Te.jsx)("span",{className:"ss-w-fandash-live-tl-subarrows",children:"\u21C5"})}):(0,Te.jsx)("span",{className:"ss-w-fandash-live-tl-ico","aria-hidden":"true",children:(0,Te.jsx)("span",{className:"ss-w-fandash-live-tl-dot"})})}function iN({e}){var t,n;return e.type==="sub"?(0,Te.jsxs)("span",{className:"ss-w-fandash-live-tl-who",children:[(t=e.player)!=null?t:e.text,e.playerOff?(0,Te.jsxs)("span",{className:"ss-w-fandash-live-tl-off",children:[" for ",e.playerOff]}):null]}):(0,Te.jsx)("span",{className:"ss-w-fandash-live-tl-who",children:(n=e.player)!=null?n:e.text})}function sN({e}){let t=["ss-w-fandash-live-tl-ev",e.side==="home"?"ss-w-fandash-live-tl-ev--home":"ss-w-fandash-live-tl-ev--away",e.type==="goal"?"ss-w-fandash-live-tl-ev--goal":""].filter(Boolean).join(" ");return(0,Te.jsxs)("div",{className:t,children:[(0,Te.jsxs)("span",{className:"ss-w-fandash-live-tl-txt",children:[(0,Te.jsx)(iN,{e}),(0,Te.jsx)(rN,{type:e.type})]}),(0,Te.jsx)("span",{className:"ss-w-fandash-live-tl-badge",children:e.minuteLabel})]})}function pb({card:e,ui:t}){var c,d;let[n,r]=(0,db.useState)(!1),i=e.data.events;if(!i||i.length===0)return null;let s=[...i].sort((p,f)=>f.minute-p.minute),o=s.length-cb,a=n?s:s.slice(0,cb),l=(c=t==null?void 0:t.showMore)!=null?c:(p=>`Show ${p} more`),u=(d=t==null?void 0:t.showLess)!=null?d:"Show less";return(0,Te.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-live-timeline",children:[e.title?(0,Te.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Te.jsx)("div",{className:"ss-w-fandash-live-tl",children:a.map((p,f)=>(0,Te.jsx)(sN,{e:p},`${p.minute}-${p.side}-${p.type}-${f}`))}),o>0?(0,Te.jsx)("button",{type:"button",className:"ss-w-fandash-live-tl-more","aria-expanded":n,onClick:()=>r(p=>!p),children:n?u:l(o)}):null]})}var fb=S(de(),1),ct=S(T(),1),ds=270,Pf=56,Pr=Pf/2,oN=.26;function aN(e){var u,c;let t=e.length-1,n=d=>t===0?0:d/t*ds,r=d=>Pr-d*oN,i=e.map((d,p)=>`${n(p).toFixed(1)},${r(d.value).toFixed(1)}`),s=`M0,${Pr} L${i.join(" L")} L${ds},${Pr} Z`,o=`M${i.join(" L")}`,a=(c=(u=e[t])==null?void 0:u.value)!=null?c:0;return{area:s,line:o,lastLeftPct:t===0?0:100,lastTopPx:r(a)}}function lu({points:e,caption:t,clubIsHome:n}){if(e.length===0)return null;let{area:r,line:i,lastLeftPct:s,lastTopPx:o}=aN(e),a=(0,fb.useId)(),l=`${a}-top`,u=`${a}-bottom`,c=n?"ss-w-fandash-live-mom-home":"ss-w-fandash-live-mom-away",d=n?"ss-w-fandash-live-mom-away":"ss-w-fandash-live-mom-home";return(0,ct.jsxs)("div",{className:"ss-w-fandash-live-mom",children:[t?(0,ct.jsx)("span",{className:"ss-w-fandash-live-mom-caption",children:t}):null,(0,ct.jsxs)("div",{className:"ss-w-fandash-live-mom-plot",children:[(0,ct.jsxs)("svg",{className:"ss-w-fandash-live-mom-svg",viewBox:`0 0 ${ds} ${Pf}`,preserveAspectRatio:"none",role:"img","aria-label":t!=null?t:"Momentum",children:[(0,ct.jsxs)("defs",{children:[(0,ct.jsx)("clipPath",{id:l,children:(0,ct.jsx)("rect",{x:0,y:0,width:ds,height:Pr})}),(0,ct.jsx)("clipPath",{id:u,children:(0,ct.jsx)("rect",{x:0,y:Pr,width:ds,height:Pf-Pr})})]}),(0,ct.jsx)("path",{d:r,className:c,clipPath:`url(#${l})`}),(0,ct.jsx)("path",{d:r,className:d,clipPath:`url(#${u})`}),(0,ct.jsx)("line",{x1:0,y1:Pr,x2:ds,y2:Pr,className:"ss-w-fandash-live-mom-base"}),(0,ct.jsx)("path",{d:i,className:"ss-w-fandash-live-mom-line",vectorEffect:"non-scaling-stroke"})]}),(0,ct.jsx)("span",{className:"ss-w-fandash-live-mom-now",style:{left:`clamp(4px, ${s}%, calc(100% - 4px))`,top:`${o}px`},"aria-hidden":"true"})]})]})}var Qe=S(T(),1);function lN(e,t){let n=e+t;if(n<=0)return{home:"50%",away:"50%"};let r=Math.round(e/n*1e3)/10;return{home:`${r}%`,away:`${Math.round((100-r)*10)/10}%`}}function mb({card:e}){let{data:t}=e;return(0,Qe.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-live-stats",children:[e.title?(0,Qe.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Qe.jsx)("div",{className:"ss-w-fandash-live-stat-rows",children:t.rows.map((n,r)=>{let i=t.clubIsHome?n.clubValue:n.oppValue,s=t.clubIsHome?n.oppValue:n.clubValue,o=t.clubIsHome?n.clubNum:n.oppNum,a=t.clubIsHome?n.oppNum:n.clubNum,{home:l,away:u}=lN(o,a);return(0,Qe.jsxs)("div",{className:"ss-w-fandash-live-stat",children:[(0,Qe.jsxs)("div",{className:"ss-w-fandash-live-stat-row",children:[(0,Qe.jsx)("span",{className:"ss-w-fandash-live-stat-value ss-w-fandash-live-stat-value--home",children:i}),(0,Qe.jsx)("span",{className:"ss-w-fandash-live-stat-label",children:n.label}),(0,Qe.jsx)("span",{className:"ss-w-fandash-live-stat-value ss-w-fandash-live-stat-value--away",children:s})]}),(0,Qe.jsxs)("div",{className:"ss-w-fandash-live-bar",children:[(0,Qe.jsx)("span",{className:"ss-w-fandash-live-bar-home",style:{width:l}}),(0,Qe.jsx)("span",{className:"ss-w-fandash-live-bar-away",style:{width:u}})]})]},`${n.label}-${r}`)})}),t.momentum.length>0?(0,Qe.jsx)(lu,{points:t.momentum,caption:t.momentumLabel,clubIsHome:t.clubIsHome}):t.momentumLabel?(0,Qe.jsx)("span",{className:"ss-w-fandash-live-momentum",children:t.momentumLabel}):null,t.rows.length>0?(0,Qe.jsxs)("div",{className:"ss-w-fandash-live-legend",children:[(0,Qe.jsxs)("span",{className:"ss-w-fandash-live-legend-item",children:[(0,Qe.jsx)("i",{className:"ss-w-fandash-live-legend-swatch ss-w-fandash-live-legend-swatch--home"}),t.homeName]}),(0,Qe.jsxs)("span",{className:"ss-w-fandash-live-legend-item",children:[(0,Qe.jsx)("i",{className:"ss-w-fandash-live-legend-swatch ss-w-fandash-live-legend-swatch--away"}),t.awayName]})]}):null]})}var xe=S(T(),1);function hb({dashboard:e,onTap:t,ui:n}){let r=[...e.cards.filter(o=>o.cardType==="countdown"),...e.cards.filter(o=>o.cardType!=="countdown")],i=e.cards.find(o=>o.cardType==="liveTimeline"),s=i==null?void 0:i.data.events.filter(o=>o.type==="goal");return(0,xe.jsxs)("div",{className:"ss-w-fandash",children:[e.greeting?(0,xe.jsx)("span",{className:e.greetingIsLead?"ss-w-fandash-greeting ss-w-fandash-greeting--lead":"ss-w-fandash-greeting",children:e.greeting}):null,(0,xe.jsx)("div",{className:"ss-w-fandash-cards",children:r.map((o,a)=>(0,xe.jsx)(uN,{card:o,onTap:t,ui:n,goalEvents:s},`${o.cardType}-${a}`))})]})}function uN({card:e,onTap:t,ui:n,goalEvents:r}){switch(e.cardType){case"fixture":return(0,xe.jsx)(Bk,{card:e});case"countdown":return(0,xe.jsx)(Fk,{card:e});case"injuries":return(0,xe.jsx)(Vk,{card:e,ui:n});case"reasonToBet":return(0,xe.jsx)(jk,{card:e});case"whereToWatch":return(0,xe.jsx)(_k,{card:e});case"congestedWeek":return(0,xe.jsx)(Wk,{card:e,onTap:t});case"transfers":return(0,xe.jsx)(Jk,{card:e});case"links":return(0,xe.jsx)(qk,{card:e});case"postMatchResult":return(0,xe.jsx)(Gk,{card:e});case"postMatchGoals":return(0,xe.jsx)(Zk,{card:e,onTap:t});case"postMatchStats":return(0,xe.jsx)($k,{card:e,onTap:t});case"postMatchTopPerformer":return(0,xe.jsx)(eb,{card:e,onTap:t});case"postMatchNext":return(0,xe.jsx)(tb,{card:e});case"restingNext":return(0,xe.jsx)(nb,{card:e,onTap:t});case"restingStandings":return(0,xe.jsx)(rb,{card:e,onTap:t});case"restingSeason":return(0,xe.jsx)(ib,{card:e,onTap:t});case"restingForm":return(0,xe.jsx)(sb,{card:e});case"liveScore":return(0,xe.jsx)(ub,{card:e,goalEvents:r});case"liveTimeline":return(0,xe.jsx)(pb,{card:e,ui:n});case"liveStats":return(0,xe.jsx)(mb,{card:e});default:return null}}var Ht=S(T(),1);function gb({message:e,disabled:t,onAct:n,onTap:r,ui:i,slip:s,monitor:o}){if(e.role==="user")return(0,Ht.jsx)("div",{className:"ss-w-msg ss-w-user","data-msg-id":e.id,children:(0,Ht.jsx)("div",{className:"ss-w-bubble",children:e.text})});let a=l=>{n({message:l.actionLabel,actionRef:l.actionRef,label:l.actionLabel||l.title||""})};return(0,Ht.jsxs)("div",{className:"ss-w-msg ss-w-bot","data-msg-id":e.id,children:[e.text&&!e.greetingDashboard&&!e.clubFanDashboard?(0,Ht.jsx)(xk,{text:e.text}):null,e.greetingDashboard&&!e.clubFanDashboard?(0,Ht.jsx)(Ok,{dashboard:e.greetingDashboard,onTap:r}):null,e.clubFanDashboard?(0,Ht.jsx)(hb,{dashboard:e.clubFanDashboard,onTap:a,ui:i}):null,(0,Ht.jsx)(Ck,{cards:e.cards,disabled:t,showLessLabel:i==null?void 0:i.showLess,showMoreLabel:i==null?void 0:i.showMore}),(0,Ht.jsx)(Lk,{insights:e.insights,ui:i,slip:s,monitor:o}),(0,Ht.jsx)(os,{cards:e.marketOdds,ui:i,slip:s,monitor:o}),(0,Ht.jsx)(iu,{cards:e.oddsMovement,ui:i,monitor:o}),(0,Ht.jsx)(su,{actions:e.actions,loading:!1,disabled:t,onAct:n})]})}var Rf=S(T(),1);function wb({chips:e,onPick:t}){return e.length===0?null:(0,Rf.jsx)("div",{className:"ss-w-chips",children:e.map((n,r)=>(0,Rf.jsx)("button",{type:"button",className:"ss-w-chip",onClick:()=>t(n.text),children:n.text},`${n.text}-${r}`))})}function yb(e,t=48){return e.scrollHeight-e.scrollTop-e.clientHeight<=t}var mn=S(T(),1);function cN(e){let t=e[e.length-1];if(!t||t.role!=="assistant")return null;let n=e[e.length-2];return{turnId:t.id,anchorId:n&&n.role==="user"?n.id:t.id}}function xb({controller:e,ui:t,slip:n,onDashboardTap:r,monitor:i}){let{state:s,send:o}=e,a=(0,pi.useRef)(null),l=(0,pi.useRef)(null),u=(0,pi.useRef)(!0),c=(0,pi.useRef)(null);(0,pi.useEffect)(()=>{var w,C;let f=cN(s.messages),h=a.current;if(f&&f.turnId!==c.current){c.current=f.turnId,l.current&&h&&(l.current.style.height=s.isStreaming?`${h.clientHeight}px`:""),u.current=!1,(w=h==null?void 0:h.querySelector(`[data-msg-id="${f.anchorId}"]`))==null||w.scrollIntoView({block:"start"});return}!s.isStreaming&&l.current&&(l.current.style.height=""),u.current&&((C=l.current)==null||C.scrollIntoView({block:"end"}))},[s.messages,s.status,s.isStreaming]);let d=s.messages.some(f=>f.role==="user"),p=s.messages.some(f=>f.role==="assistant"&&(f.greetingDashboard||f.clubFanDashboard));return(0,mn.jsxs)("div",{className:"ss-w-list","aria-live":"polite",ref:a,onScroll:()=>{a.current&&(u.current=yb(a.current))},children:[s.messages.map(f=>(0,mn.jsx)(gb,{message:f,disabled:s.isStreaming,onAct:h=>o(h.message,{actionId:h.actionId,actionRef:h.actionRef,displayText:h.label}),onTap:(h,w)=>{o(h.actionValue,h.actionRef?{actionRef:h.actionRef,displayText:h.title}:{displayText:h.title}),f.role==="assistant"&&f.greetingDashboard&&(r==null||r(h,w,f.greetingDashboard.layout))},ui:t,slip:n,monitor:i},f.id)),s.isStreaming&&s.actionsLoading?(0,mn.jsx)(su,{actions:[],loading:!0,onAct:()=>{}}):null,s.status?(0,mn.jsx)("div",{className:"ss-w-status",children:s.status}):null,s.error?(0,mn.jsxs)("div",{className:"ss-w-error",role:"alert",children:[(0,mn.jsx)("span",{children:"message"in s.error?s.error.message:t.somethingWentWrong}),(0,mn.jsx)("button",{type:"button",className:"ss-w-retry",onClick:()=>e.retry(),children:t.retry})]}):null,!d&&!p?(0,mn.jsx)(wb,{chips:s.starters,onPick:f=>o(f)}):null,(0,mn.jsx)("div",{ref:l,className:"ss-w-turn-spacer","aria-hidden":"true"})]})}var vb=S(de(),1);var Rr=S(T(),1);function kb({placeholder:e,streaming:t,onSend:n,onStop:r,stopLabel:i="Stop response",sendLabel:s="Send message"}){let[o,a]=(0,vb.useState)(""),l=()=>{let c=o.trim();c&&(n(c),a(""))};return(0,Rr.jsxs)("div",{className:"ss-w-input",children:[(0,Rr.jsx)("textarea",{className:"ss-w-textarea",rows:1,placeholder:e,value:o,disabled:t,onChange:c=>a(c.target.value),onKeyDown:c=>{c.key==="Enter"&&!c.shiftKey&&(c.preventDefault(),l())}}),t?(0,Rr.jsx)("button",{type:"button",className:"ss-w-send ss-w-stop","aria-label":i,onClick:r,children:(0,Rr.jsx)("span",{className:"ss-w-stop-glyph"})}):(0,Rr.jsx)("button",{type:"button",className:"ss-w-send","aria-label":s,onClick:l,children:(0,Rr.jsx)(Ay,{})})]})}var ps=S(T(),1);function bb({monitor:e,ui:t,matchCount:n,oddsCount:r,todayCount:i,hasToday:s}){let o=[{tab:"chat",label:t.tabChat,count:0,dot:e.chatDot},...s?[{tab:"today",label:t.tabToday,count:i,dot:e.todayDot}]:[],...n>0?[{tab:"following",label:t.tabFollowing,count:n,dot:e.matchesDot}]:[],...r>0?[{tab:"odds",label:t.tabOdds,count:r,dot:e.oddsDot}]:[]];return o.length<2?null:(0,ps.jsx)("div",{className:"ss-w-tabs",role:"tablist",children:o.map(({tab:a,label:l,count:u,dot:c})=>{let d=e.activeTab===a;return(0,ps.jsxs)("button",{type:"button",role:"tab","aria-selected":d,"data-on":d?"":void 0,className:"ss-w-tab",onClick:()=>e.setActiveTab(a),children:[l,u>0&&(0,ps.jsx)("span",{className:"ss-w-tab-count",children:u}),c&&!d&&(0,ps.jsx)("span",{className:"ss-w-tab-dot","aria-hidden":"true"})]},a)})})}var dt=S(T(),1);function Cb({match:e,monitor:t,ui:n,slip:r}){var o,a;let i=(o=e.availableMarkets)!=null?o:[];if(i.length===0)return null;let s=(a=t.openMarket[e.matchId])!=null?a:null;return(0,dt.jsx)("div",{className:"ss-w-acc",children:i.map(l=>{var p,f,h;let u=s===l.marketDeveloperName&&!l.suspended,c=`${e.matchId}:${l.marketDeveloperName}`,d=t.marketOdds[c];return(0,dt.jsxs)("div",{className:u?"ss-w-acc-row ss-w-acc-row-open":"ss-w-acc-row",children:[(0,dt.jsxs)("div",{className:"ss-w-acc-head",children:[(0,dt.jsxs)("button",{type:"button",className:l.suspended?"ss-w-acc-toggle ss-w-acc-toggle--susp":"ss-w-acc-toggle","aria-expanded":u,disabled:l.suspended,onClick:()=>t.toggleMarket(e.matchId,l.marketDeveloperName),children:[(0,dt.jsx)("span",{className:"ss-w-acc-chevron",children:l.suspended?"":u?"\u25BE":"\u25B8"}),(0,dt.jsx)("span",{className:"ss-w-acc-label",children:l.marketLabel}),l.hasInsight&&(0,dt.jsx)("span",{className:"ss-w-acc-badge",children:"\u2605"}),l.suspended&&(0,dt.jsx)("span",{className:"ss-w-acc-susp",children:n.accordionSuspended})]}),(0,dt.jsx)(Mt,{ui:n,monitor:t,pin:{kind:"market",matchId:e.matchId,marketDeveloperName:l.marketDeveloperName}})]}),u&&(0,dt.jsxs)("div",{className:"ss-w-acc-panel",children:[(d==null?void 0:d.error)&&(0,dt.jsx)("div",{className:"ss-w-acc-retry",onClick:()=>t.retryMarket(e.matchId,l.marketDeveloperName),children:n.accordionRetry}),((f=(p=d==null?void 0:d.block)==null?void 0:p.insight)==null?void 0:f.text)&&(0,dt.jsxs)("div",{className:"ss-w-acc-insight",children:[(0,dt.jsx)("span",{className:"ss-w-acc-badge",children:n.accordionValueLabel})," ",d.block.insight.text]}),((h=d==null?void 0:d.block)==null?void 0:h.card)&&(0,dt.jsx)(os,{cards:[_i(d.block.card)],ui:n,slip:r,monitor:t,inSlipIds:t.inSlip,hideHeader:!0})]})]},l.marketDeveloperName)})})}var ee=S(T(),1);function dN(e,t,n){let r=e.market;if(!r||!r.addToSlipEnabled||typeof r.matchOddsId!="number"||typeof r.price!="number")return null;let i={matchOddsId:r.matchOddsId,matchId:t,oddsDecimal:r.price};return n!==void 0&&(i.conversationId=n),i}function Df(e,t){let n=e.market;return n?t.some(r=>r.marketDeveloperName===n.marketDeveloperName||n.matchOddsId!=null&&r.matchOddsId===n.matchOddsId):!1}function pN(e){return new Date(e).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}function Ab({match:e,promotedPins:t,monitor:n,ui:r,slip:i}){var d,p,f,h;let s=e.phase==="live",o=e.events.filter(w=>w.type==="goal"),a=e.statRows.filter(w=>Df(w,t)),l=e.statRows.filter(w=>!Df(w,t)),u=[...a,...l],c=e.phase==="preMatch"&&e.kickoffUtc?r.bettingKickoff(e.kickoffUtc):void 0;return(0,ee.jsxs)("div",{className:"ss-w-mon",children:[(0,ee.jsxs)("div",{className:"ss-w-mon-top",children:[s&&(0,ee.jsxs)("span",{className:"ss-w-fandash-live-pill",children:[(0,ee.jsx)("span",{className:"ss-w-fandash-live-dot","aria-hidden":"true"}),r.liveLabel]}),e.phase==="fullTime"&&(0,ee.jsx)("span",{className:"ss-w-mon-pill",children:r.fullTimeLabel}),c&&(0,ee.jsxs)("span",{className:"ss-w-mon-pill",children:[c.dayLabel," \xB7 ",c.time]}),s&&e.minuteLabel&&(0,ee.jsx)("span",{className:"ss-w-mon-min",children:e.minuteLabel}),e.competitionName&&(0,ee.jsx)("span",{className:"ss-w-mon-comp",children:e.competitionName}),(0,ee.jsx)(Mt,{ui:r,monitor:n,pin:{kind:"match",matchId:e.matchId}})]}),(0,ee.jsxs)("div",{className:"ss-w-mon-main",children:[(0,ee.jsxs)("span",{className:"ss-w-mon-side",children:[(0,ee.jsx)(Be,{kind:"team",url:(d=e.homeCrestUrl)!=null?d:void 0,name:(p=e.homeTeamName)!=null?p:void 0}),(0,ee.jsx)("span",{className:"ss-w-mon-name",children:e.homeTeamName})]}),e.phase==="preMatch"?(0,ee.jsx)("span",{className:"ss-w-mon-vs",children:"vs"}):(0,ee.jsxs)("span",{className:"ss-w-mon-score",children:[e.homeScore,(0,ee.jsx)("i",{children:"\u2013"}),e.awayScore]}),(0,ee.jsxs)("span",{className:"ss-w-mon-side ss-w-mon-side--away",children:[(0,ee.jsx)(Be,{kind:"team",url:(f=e.awayCrestUrl)!=null?f:void 0,name:(h=e.awayTeamName)!=null?h:void 0}),(0,ee.jsx)("span",{className:"ss-w-mon-name",children:e.awayTeamName})]})]}),o.length>0&&(0,ee.jsx)("div",{className:"ss-w-mon-scorers",children:o.map(w=>{var C;return`${(C=w.player)!=null?C:""} ${w.minuteLabel}`}).join(", ")}),(0,ee.jsx)("div",{className:"ss-w-mon-stats",children:u.map(w=>{let C=w.homeNum+w.awayNum,m=C>0?w.homeNum/C*75:0,g=C>0?w.awayNum/C*75:0,y=Df(w,t),A=dN(w,e.matchId,i.conversationId);return(0,ee.jsxs)("div",{className:y?"ss-w-mon-stat ss-w-mon-pstrip":"ss-w-mon-stat",children:[(0,ee.jsxs)("div",{className:"ss-w-mon-stat-row",children:[(0,ee.jsx)("span",{className:"ss-w-mon-stat-v ss-w-mon-stat-v--home",children:w.homeValue}),(0,ee.jsx)("span",{className:"ss-w-mon-stat-l",children:w.label}),(0,ee.jsx)("span",{className:"ss-w-mon-stat-v ss-w-mon-stat-v--away",children:w.awayValue})]}),(0,ee.jsxs)("div",{className:"ss-w-mon-bar",children:[(0,ee.jsx)("b",{className:"ss-w-mon-bar-home",style:{width:`${m}%`}}),(0,ee.jsx)("i",{className:"ss-w-mon-bar-away",style:{width:`${g}%`}})]}),w.market&&!w.market.isSuspended&&(0,ee.jsxs)("div",{className:y?"ss-w-mon-stat-mkt ss-w-mon-mkt":"ss-w-mon-stat-mkt",children:[(0,ee.jsxs)("span",{children:[w.market.marketLabel," \xB7 ",w.market.selectionLabel]}),(0,ee.jsxs)("span",{className:"ss-w-mon-stat-mkt-right",children:[typeof w.market.price=="number"&&(0,ee.jsx)("span",{className:"ss-w-mon-price",children:w.market.price.toFixed(2)}),(0,ee.jsx)(Po,{selection:A,shownOdds:typeof w.market.price=="number"?w.market.price.toFixed(2):"",marketName:w.market.marketLabel,marketDeveloperName:w.market.marketDeveloperName,slip:i,ui:r})]})]})]},w.label)})}),e.status==="stale"&&(0,ee.jsx)("span",{className:"ss-w-mon-asof",children:r.asOf(pN(e.asOfUtc))}),e.momentum.length>0&&(0,ee.jsxs)("div",{className:"ss-w-mon-mom",children:[(0,ee.jsxs)("div",{className:"ss-w-mon-stat-row",children:[(0,ee.jsx)("span",{className:"ss-w-mon-stat-v ss-w-mon-stat-v--home",children:typeof e.momentumHomePct=="number"?`${e.momentumHomePct}%`:""}),(0,ee.jsx)("span",{className:"ss-w-mon-stat-l",children:r.momentumLabel}),(0,ee.jsx)("span",{className:"ss-w-mon-stat-v ss-w-mon-stat-v--away",children:typeof e.momentumHomePct=="number"?`${100-e.momentumHomePct}%`:""})]}),(0,ee.jsx)(lu,{points:e.momentum,clubIsHome:!0})]}),e.phase==="fullTime"&&(0,ee.jsx)("div",{className:"ss-w-mon-grace",children:r.graceNote})]})}var He=S(T(),1);function fN({m:e,ui:t}){let n=e.phase!=="preMatch"&&typeof e.homeScore=="number",r=e.status==="stale";return!n&&!e.minuteLabel&&!(e.isSuspended&&!e.isSettled)&&!e.isSettled&&!r?null:(0,He.jsxs)("div",{className:"ss-w-mk-live",children:[n&&(0,He.jsxs)("b",{className:"ss-w-mk-live-score",children:[e.homeTeamName," ",e.homeScore,"\u2013",e.awayScore," ",e.awayTeamName]}),e.minuteLabel&&(0,He.jsx)("span",{className:"ss-w-mon-min",children:e.minuteLabel}),e.isSuspended&&!e.isSettled&&(0,He.jsx)("span",{className:"ss-w-mon-susp",children:t.suspendedLabel}),e.isSettled&&(0,He.jsx)("span",{className:"ss-w-mon-pill",children:t.fullTimeLabel}),r&&(0,He.jsx)("span",{className:"ss-w-mon-asof",children:t.asOf(new Date(e.asOfUtc).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}))})]})}function Sb({monitor:e,ui:t,slip:n}){var i,s;let r=((s=(i=e.snapshot)==null?void 0:i.matches)!=null?s:[]).filter(o=>e.pins.some(a=>a.kind==="match"&&a.matchId===o.matchId));return r.length===0?(0,He.jsx)("div",{className:"ss-w-mon-empty",children:t.emptyMatchesTab}):(0,He.jsx)("div",{className:"ss-w-mon-list",children:r.map(o=>(0,He.jsxs)("div",{className:"ss-w-mon-item",children:[(0,He.jsx)(Ab,{match:o,promotedPins:e.pins.filter(a=>a.kind!=="match"&&a.matchId===o.matchId),monitor:e,ui:t,slip:n}),(0,He.jsx)(Cb,{match:o,monitor:e,ui:t,slip:n})]},o.matchId))})}function mN(e,t){let n=e.mainRows[0];if(t===void 0||!n||n.oddsDecimal===void 0||n.oddsDecimal===t)return e;let r={...n,previousOdds:t.toFixed(2),movementDirection:n.oddsDecimal<t?"shortened":"drifted"};return{...e,mainRows:[r,...e.mainRows.slice(1)]}}function Eb({monitor:e,ui:t,slip:n}){var i,s;let r=((s=(i=e.snapshot)==null?void 0:i.markets)!=null?s:[]).filter(o=>e.pins.some(a=>a.key===o.key));return r.length===0?(0,He.jsx)("div",{className:"ss-w-mon-empty",children:t.emptyOddsTab}):(0,He.jsx)("div",{className:"ss-w-mon-list",children:r.map(o=>{let a=e.pins.find(l=>l.key===o.key);return(0,He.jsxs)("div",{className:"ss-w-mon-oddspin","data-settled":o.isSettled||void 0,children:[(0,He.jsx)(fN,{m:o,ui:t}),o.card&&(0,He.jsx)(os,{cards:[mN(_i(o.card),e.lastViewedPrices[o.key])],ui:t,slip:n,monitor:e,pinRef:a!=null?a:void 0,inSlipIds:e.inSlip}),o.history&&(0,He.jsx)(iu,{cards:[hl(o.history)],ui:t}),!o.card&&!o.history&&(0,He.jsx)("div",{className:"ss-w-mon-empty-card",children:t.oddsUnavailable})]},o.key)})})}var $t=S(T(),1);function hN(e){let t=new Date(e*1e3);return`${`${t.getHours()}`.padStart(2,"0")}:${`${t.getMinutes()}`.padStart(2,"0")}`}function Ib({name:e,crest:t}){return(0,$t.jsxs)("span",{className:"ss-w-drow-side",children:[t?(0,$t.jsx)("img",{className:"ss-w-drow-crest",src:t,alt:""}):null,(0,$t.jsx)("span",{className:"ss-w-drow-nm",children:e})]})}function uu({match:e,state:t,stale:n,ui:r,monitor:i}){var u;let s=(t==null?void 0:t.phase)==="live"&&!n,o=((t==null?void 0:t.phase)==="live"||(t==null?void 0:t.phase)==="fullTime")&&typeof t.homeScore=="number"&&typeof t.awayScore=="number",a=(t==null?void 0:t.phase)==="live"&&(u=t.minuteLabel)!=null?u:null,l=t!=null&&t.isHalfTime&&!n?r.halfTime:s?a!=null?a:"\u2014":(t==null?void 0:t.phase)==="live"?"\u2014":hN(e.kickoffUnix);return(0,$t.jsxs)("div",{className:s||t!=null&&t.isHalfTime?"ss-w-drow ss-w-drow--live":"ss-w-drow",children:[(0,$t.jsx)("span",{className:s||t!=null&&t.isHalfTime?"ss-w-drow-when ss-w-drow-when--live":"ss-w-drow-when",children:l}),(0,$t.jsxs)("span",{className:"ss-w-drow-fx",children:[(0,$t.jsx)(Ib,{name:e.homeTeamName,crest:e.homeTeamImagePath}),(0,$t.jsx)("span",{className:o?"ss-w-drow-sc":"ss-w-drow-sc ss-w-drow-sc--idle",children:o?`${t.homeScore}\u2013${t.awayScore}`:"\u2013"}),(0,$t.jsx)(Ib,{name:e.awayTeamName,crest:e.awayTeamImagePath})]}),(0,$t.jsx)(Mt,{ui:r,monitor:i,pin:{kind:"match",matchId:e.matchId}})]})}function cu(e,t){return(e==null?void 0:e.phase)==="live"&&!t}function Tb(e){return(e==null?void 0:e.phase)==="fullTime"}var hn=S(T(),1);function Nb({group:e,open:t,onToggle:n,states:r,stale:i,ui:s,monitor:o,disambiguate:a=!1}){let l=e.matches.filter(c=>!cu(r[c.matchId],i)),u=l.length!==e.matches.length;return l.length===0?null:(0,hn.jsxs)("div",{className:"ss-w-grp",children:[(0,hn.jsxs)("button",{type:"button",className:"ss-w-grp-head","aria-expanded":t,onClick:n,children:[(0,hn.jsx)("span",{className:"ss-w-grp-chev",children:t?"\u25BE":"\u25B8"}),u&&(0,hn.jsx)("span",{className:"ss-w-sec-dot","aria-hidden":"true"}),(0,hn.jsxs)("span",{className:"ss-w-grp-name",children:[e.competitionName,a&&e.competitionCountry?(0,hn.jsxs)("span",{className:"ss-w-grp-country",children:[" (",e.competitionCountry,")"]}):null]}),(0,hn.jsx)("span",{className:"ss-w-grp-count",children:l.length})]}),t&&(0,hn.jsx)("div",{className:"ss-w-grp-body",children:l.map(c=>(0,hn.jsx)(uu,{match:c,state:r[c.matchId],stale:i,ui:s,monitor:o},c.matchId))})]})}var en=S(T(),1);function Lb({discovery:e,ui:t,monitor:n}){let{groups:r,states:i,stale:s,expanded:o,toggleGroup:a}=e,l=r.map(d=>({...d,matches:d.matches.filter(p=>!Tb(i[p.matchId]))})).filter(d=>d.matches.length>0),u=s?[]:l.flatMap(d=>d.matches.filter(p=>cu(i[p.matchId],s)).map(p=>({match:p,rank:d.rank}))).sort((d,p)=>d.rank-p.rank),c=l.reduce((d,p)=>{var f;return d[p.competitionName]=((f=d[p.competitionName])!=null?f:0)+1,d},{});return(0,en.jsxs)("div",{className:"ss-w-mon-list",children:[s&&(0,en.jsx)("div",{className:"ss-w-stale",children:t.staleStates}),u.length>0&&(0,en.jsxs)(en.Fragment,{children:[(0,en.jsxs)("div",{className:"ss-w-sec-head",children:[(0,en.jsx)("span",{className:"ss-w-sec-dot","aria-hidden":"true"}),t.sectionLive]}),(0,en.jsx)("div",{className:"ss-w-today-live",children:u.map(({match:d})=>(0,en.jsx)(uu,{match:d,state:i[d.matchId],stale:s,ui:t,monitor:n},d.matchId))})]}),l.map(d=>{var p,f;return(0,en.jsx)(Nb,{group:d,open:(p=o[d.competitionId])!=null?p:d.expandedByDefault,onToggle:()=>a(d.competitionId),disambiguate:((f=c[d.competitionName])!=null?f:0)>1,states:i,stale:s,ui:t,monitor:n},d.competitionId)})]})}var gn=S(T(),1),gN="(max-width: 639px)";function wN(){let[e,t]=(0,fs.useState)(!1);return(0,fs.useEffect)(()=>{if(typeof window=="undefined"||typeof window.matchMedia!="function")return;let n=window.matchMedia(gN),r=()=>t(n.matches);return r(),n.addEventListener("change",r),()=>n.removeEventListener("change",r)},[]),e}function Mb({controller:e,ui:t,slip:n,onDashboardTap:r,monitor:i,discovery:s}){var f,h;let{state:o,close:a,stop:l,send:u,reset:c}=e,d=wN();(0,fs.useEffect)(()=>{let w=C=>{C.key==="Escape"&&a()};return window.addEventListener("keydown",w),()=>window.removeEventListener("keydown",w)},[a]);let p=w=>{i==null||i.setActiveTab("chat"),u(w)};return(0,fs.useEffect)(()=>{i&&i.activeTab!=="chat"&&o.isStreaming&&i.markChatActivity()},[i,o.isStreaming,o.messages.length]),(0,gn.jsxs)("div",{className:"ss-w-panel",role:"dialog","aria-modal":d,"aria-label":t.chatDialogLabel,children:[(0,gn.jsx)(My,{onClose:a,closeLabel:t.closeChat,logoUrl:t.logoUrl,headerTitle:t.headerTitle,onNewConversation:c,canReset:o.messages.length>0,newConversationLabel:t.newConversation,moreOptionsLabel:t.moreOptions}),i&&(0,gn.jsx)(bb,{monitor:i,ui:t,matchCount:i.pins.filter(w=>w.kind==="match").length,oddsCount:i.pins.filter(w=>w.kind!=="match").length,todayCount:(f=s==null?void 0:s.liveCount)!=null?f:0,hasToday:((h=s==null?void 0:s.groups.length)!=null?h:0)>0}),(0,gn.jsx)("div",{style:!i||i.activeTab==="chat"?{display:"contents"}:{position:"absolute",inset:0,visibility:"hidden",display:"flex",flexDirection:"column"},children:(0,gn.jsx)(xb,{controller:e,ui:t,slip:n,onDashboardTap:r,monitor:i})}),i&&s&&i.activeTab==="today"&&(0,gn.jsx)(Lb,{discovery:s,ui:t,monitor:i}),i&&i.activeTab==="following"&&(0,gn.jsx)(Sb,{monitor:i,ui:t,slip:n}),i&&i.activeTab==="odds"&&(0,gn.jsx)(Eb,{monitor:i,ui:t,slip:n}),(0,gn.jsx)(kb,{placeholder:t.placeholder,streaming:o.isStreaming,onSend:p,onStop:l,stopLabel:t.stopResponse,sendLabel:t.sendMessage})]})}var Pb=`.ss-w-root { all: revert; }
37
+ `))}function l(f,h,w,C){let m=w.enter("tableCell"),g=w.enter("phrasing"),y=w.containerPhrasing(f,{...C,before:s,after:s});return g(),m(),y}function u(f,h){return Bv(f,{align:h,alignDelimiters:r,padding:n,stringLength:i})}function c(f,h,w){let C=f.children,m=-1,g=[],y=h.enter("table");for(;++m<C.length;)g[m]=d(C[m],h,w);return y(),g}function d(f,h,w){let C=f.children,m=-1,g=[],y=h.enter("tableRow");for(;++m<C.length;)g[m]=l(C[m],f,h,w);return y(),g}function p(f,h,w){let C=Mo.inlineCode(f,h,w);return w.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function hf(){return{exit:{taskListCheckValueChecked:ak,taskListCheckValueUnchecked:ak,paragraph:qI}}}function gf(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:KI}}}function ak(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function qI(e){let t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){let n=this.stack[this.stack.length-1];n.type;let r=n.children[0];if(r&&r.type==="text"){let i=t.children,s=-1,o;for(;++s<i.length;){let a=i[s];if(a.type==="paragraph"){o=a;break}}o===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function KI(e,t,n,r){let i=e.children[0],s=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);s&&a.move(o);let l=Mo.listItem(e,t,n,{...r,...a.current()});return s&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(c){return c+o}}function wf(){return[qp(),Yp(),Zp(),ff(),hf()]}function yf(e){return{extensions:[Kp(),Gp(e),$p(),mf(e),gf()]}}var YI={tokenize:tT,partial:!0},lk={tokenize:nT,partial:!0},uk={tokenize:rT,partial:!0},ck={tokenize:iT,partial:!0},GI={tokenize:sT,partial:!0},dk={name:"wwwAutolink",tokenize:$I,previous:fk},pk={name:"protocolAutolink",tokenize:eT,previous:mk},Xn={name:"emailAutolink",tokenize:ZI,previous:hk},Nn={};function vf(){return{text:Nn}}var ui=48;for(;ui<123;)Nn[ui]=Xn,ui++,ui===58?ui=65:ui===91&&(ui=97);Nn[43]=Xn;Nn[45]=Xn;Nn[46]=Xn;Nn[95]=Xn;Nn[72]=[Xn,pk];Nn[104]=[Xn,pk];Nn[87]=[Xn,dk];Nn[119]=[Xn,dk];function ZI(e,t,n){let r=this,i,s;return o;function o(d){return!xf(d)||!hk.call(r,r.previous)||kf(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(d))}function a(d){return xf(d)?(e.consume(d),a):d===64?(e.consume(d),l):n(d)}function l(d){return d===46?e.check(GI,c,u)(d):d===45||d===95||Pe(d)?(s=!0,e.consume(d),l):c(d)}function u(d){return e.consume(d),i=!0,l}function c(d){return s&&i&&_e(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function $I(e,t,n){let r=this;return i;function i(o){return o!==87&&o!==119||!fk.call(r,r.previous)||kf(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(YI,e.attempt(lk,e.attempt(uk,s),n),n)(o))}function s(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function eT(e,t,n){let r=this,i="",s=!1;return o;function o(d){return(d===72||d===104)&&mk.call(r,r.previous)&&!kf(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),e.consume(d),a):n(d)}function a(d){if(_e(d)&&i.length<5)return i+=String.fromCodePoint(d),e.consume(d),a;if(d===58){let p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(d),l}return n(d)}function l(d){return d===47?(e.consume(d),s?u:(s=!0,l)):n(d)}function u(d){return d===null||ei(d)||ne(d)||In(d)||ti(d)?n(d):e.attempt(lk,e.attempt(uk,c),n)(d)}function c(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function tT(e,t,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),s):n(o)}function s(o){return o===null?n(o):t(o)}}function nT(e,t,n){let r,i,s;return o;function o(u){return u===46||u===95?e.check(ck,l,a)(u):u===null||ne(u)||In(u)||u!==45&&ti(u)?l(u):(s=!0,e.consume(u),o)}function a(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),o}function l(u){return i||r||!s?n(u):t(u)}}function rT(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?s(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(ck,t,s)(o):o===null||ne(o)||In(o)?t(o):(e.consume(o),i)}function s(o){return o===41&&r++,e.consume(o),i}}function iT(e,t,n){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),s):a===93?(e.consume(a),i):a===60||a===null||ne(a)||In(a)?t(a):n(a)}function i(a){return a===null||a===40||a===91||ne(a)||In(a)?t(a):r(a)}function s(a){return _e(a)?o(a):n(a)}function o(a){return a===59?(e.consume(a),r):_e(a)?(e.consume(a),o):n(a)}}function sT(e,t,n){return r;function r(s){return e.consume(s),i}function i(s){return Pe(s)?n(s):t(s)}}function fk(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ne(e)}function mk(e){return!_e(e)}function hk(e){return!(e===47||xf(e))}function xf(e){return e===43||e===45||e===46||e===95||Pe(e)}function kf(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var oT={tokenize:fT,partial:!0};function bf(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:cT,continuation:{tokenize:dT},exit:pT}},text:{91:{name:"gfmFootnoteCall",tokenize:uT},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:aT,resolveTo:lT}}}}function aT(e,t,n){let r=this,i=r.events.length,s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let l=r.events[i][1];if(l.type==="labelImage"){o=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return a;function a(l){if(!o||!o._balanced)return n(l);let u=lt(r.sliceSerialize({start:o.end,end:r.now()}));return u.codePointAt(0)!==94||!s.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function lT(e,t){let n=e.length,r;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){r=e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let i={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;let o={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},l=[e[n+1],e[n+2],["enter",i,t],e[n+3],e[n+4],["enter",s,t],["exit",s,t],["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(n,e.length-n+1,...l),e}function uT(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),s=0,o;return a;function a(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(d){if(s>999||d===93&&!o||d===null||d===91||ne(d))return n(d);if(d===93){e.exit("chunkString");let p=e.exit("gfmFootnoteCallString");return i.includes(lt(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return ne(d)||(o=!0),s++,e.consume(d),d===92?c:u}function c(d){return d===91||d===92||d===93?(e.consume(d),s++,u):u(d)}}function cT(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),s,o=0,a;return l;function l(h){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(h){return h===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(h)}function c(h){if(o>999||h===93&&!a||h===null||h===91||ne(h))return n(h);if(h===93){e.exit("chunkString");let w=e.exit("gfmFootnoteDefinitionLabelString");return s=lt(r.sliceSerialize(w)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return ne(h)||(a=!0),o++,e.consume(h),h===92?d:c}function d(h){return h===91||h===92||h===93?(e.consume(h),o++,c):c(h)}function p(h){return h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),i.includes(s)||i.push(s),j(e,f,"gfmFootnoteDefinitionWhitespace")):n(h)}function f(h){return t(h)}}function dT(e,t,n){return e.check(Tn,t,e.attempt(oT,t,n))}function pT(e){e.exit("gfmFootnoteDefinition")}function fT(e,t,n){let r=this;return j(e,i,"gfmFootnoteDefinitionIndent",5);function i(s){let o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(s):n(s)}}function Cf(e){let n=(e||{}).singleTilde,r={name:"strikethrough",tokenize:s,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,a){let l=-1;for(;++l<o.length;)if(o[l][0]==="enter"&&o[l][1].type==="strikethroughSequenceTemporary"&&o[l][1]._close){let u=l;for(;u--;)if(o[u][0]==="exit"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._open&&o[l][1].end.offset-o[l][1].start.offset===o[u][1].end.offset-o[u][1].start.offset){o[l][1].type="strikethroughSequence",o[u][1].type="strikethroughSequence";let c={type:"strikethrough",start:Object.assign({},o[u][1].start),end:Object.assign({},o[l][1].end)},d={type:"strikethroughText",start:Object.assign({},o[u][1].end),end:Object.assign({},o[l][1].start)},p=[["enter",c,a],["enter",o[u][1],a],["exit",o[u][1],a],["enter",d,a]],f=a.parser.constructs.insideSpan.null;f&&ze(p,p.length,0,Er(f,o.slice(u+1,l),a)),ze(p,p.length,0,[["exit",d,a],["enter",o[l][1],a],["exit",o[l][1],a],["exit",c,a]]),ze(o,u-1,l-u+3,p),l=u+p.length-2;break}}for(l=-1;++l<o.length;)o[l][1].type==="strikethroughSequenceTemporary"&&(o[l][1].type="data");return o}function s(o,a,l){let u=this.previous,c=this.events,d=0;return p;function p(h){return u===126&&c[c.length-1][1].type!=="characterEscape"?l(h):(o.enter("strikethroughSequenceTemporary"),f(h))}function f(h){let w=Wn(u);if(h===126)return d>1?l(h):(o.consume(h),d++,f);if(d<2&&!n)return l(h);let C=o.exit("strikethroughSequenceTemporary"),m=Wn(h);return C._open=!m||m===2&&!!w,C._close=!w||w===2&&!!m,a(h)}}}var $l=class{constructor(){this.map=[]}add(t,n,r){mT(this,t,n,r)}consume(t){if(this.map.sort(function(s,o){return s[0]-o[0]}),this.map.length===0)return;let n=this.map.length,r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(let s of i)t.push(s);i=r.pop()}this.map.length=0}};function mT(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function gk(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){let s=r.length-1;r[s]=r[s]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function Af(){return{flow:{null:{name:"table",tokenize:hT,resolveAll:gT}}}}function hT(e,t,n){let r=this,i=0,s=0,o;return a;function a(b){let G=r.events.length-1;for(;G>-1;){let B=r.events[G][1].type;if(B==="lineEnding"||B==="linePrefix")G--;else break}let Z=G>-1?r.events[G][1].type:null,L=Z==="tableHead"||Z==="tableRow"?k:l;return L===k&&r.parser.lazy[r.now().line]?n(b):L(b)}function l(b){return e.enter("tableHead"),e.enter("tableRow"),u(b)}function u(b){return b===124||(o=!0,s+=1),c(b)}function c(b){return b===null?n(b):F(b)?s>1?(s=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),f):n(b):X(b)?j(e,c,"whitespace")(b):(s+=1,o&&(o=!1,i+=1),b===124?(e.enter("tableCellDivider"),e.consume(b),e.exit("tableCellDivider"),o=!0,c):(e.enter("data"),d(b)))}function d(b){return b===null||b===124||ne(b)?(e.exit("data"),c(b)):(e.consume(b),b===92?p:d)}function p(b){return b===92||b===124?(e.consume(b),d):d(b)}function f(b){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(b):(e.enter("tableDelimiterRow"),o=!1,X(b)?j(e,h,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b):h(b))}function h(b){return b===45||b===58?C(b):b===124?(o=!0,e.enter("tableCellDivider"),e.consume(b),e.exit("tableCellDivider"),w):E(b)}function w(b){return X(b)?j(e,C,"whitespace")(b):C(b)}function C(b){return b===58?(s+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(b),e.exit("tableDelimiterMarker"),m):b===45?(s+=1,m(b)):b===null||F(b)?A(b):E(b)}function m(b){return b===45?(e.enter("tableDelimiterFiller"),g(b)):E(b)}function g(b){return b===45?(e.consume(b),g):b===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(b),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(b))}function y(b){return X(b)?j(e,A,"whitespace")(b):A(b)}function A(b){return b===124?h(b):b===null||F(b)?!o||i!==s?E(b):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(b)):E(b)}function E(b){return n(b)}function k(b){return e.enter("tableRow"),N(b)}function N(b){return b===124?(e.enter("tableCellDivider"),e.consume(b),e.exit("tableCellDivider"),N):b===null||F(b)?(e.exit("tableRow"),t(b)):X(b)?j(e,N,"whitespace")(b):(e.enter("data"),M(b))}function M(b){return b===null||b===124||ne(b)?(e.exit("data"),N(b)):(e.consume(b),b===92?Q:M)}function Q(b){return b===92||b===124?(e.consume(b),M):M(b)}}function gT(e,t){let n=-1,r=!0,i=0,s=[0,0,0,0],o=[0,0,0,0],a=!1,l=0,u,c,d,p=new $l;for(;++n<e.length;){let f=e[n],h=f[1];f[0]==="enter"?h.type==="tableHead"?(a=!1,l!==0&&(wk(p,t,l,u,c),c=void 0,l=0),u={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(n,0,[["enter",u,t]])):h.type==="tableRow"||h.type==="tableDelimiterRow"?(r=!0,d=void 0,s=[0,0,0,0],o=[0,n+1,0,0],a&&(a=!1,c={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(n,0,[["enter",c,t]])),i=h.type==="tableDelimiterRow"?2:c?3:1):i&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(s[1]!==0&&(o[0]=o[1],d=eu(p,t,s,i,void 0,d),s=[0,0,0,0]),o[2]=n)):h.type==="tableCellDivider"&&(r?r=!1:(s[1]!==0&&(o[0]=o[1],d=eu(p,t,s,i,void 0,d)),s=o,o=[s[1],n,0,0])):h.type==="tableHead"?(a=!0,l=n):h.type==="tableRow"||h.type==="tableDelimiterRow"?(l=n,s[1]!==0?(o[0]=o[1],d=eu(p,t,s,i,n,d)):o[1]!==0&&(d=eu(p,t,o,i,n,d)),i=0):i&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")&&(o[3]=n)}for(l!==0&&wk(p,t,l,u,c),p.consume(t.events),n=-1;++n<t.events.length;){let f=t.events[n];f[0]==="enter"&&f[1].type==="table"&&(f[1]._align=gk(t.events,n))}return e}function eu(e,t,n,r,i,s){let o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";n[0]!==0&&(s.end=Object.assign({},ns(t.events,n[0])),e.add(n[0],0,[["exit",s,t]]));let l=ns(t.events,n[1]);if(s={type:o,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",s,t]]),n[2]!==0){let u=ns(t.events,n[2]),c=ns(t.events,n[3]),d={type:a,start:Object.assign({},u),end:Object.assign({},c)};if(e.add(n[2],0,[["enter",d,t]]),r!==2){let p=t.events[n[2]],f=t.events[n[3]];if(p[1].end=Object.assign({},f[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){let h=n[2]+1,w=n[3]-n[2]-1;e.add(h,w,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(s.end=Object.assign({},ns(t.events,i)),e.add(i,0,[["exit",s,t]]),s=void 0),s}function wk(e,t,n,r,i){let s=[],o=ns(t.events,n);i&&(i.end=Object.assign({},o),s.push(["exit",i,t])),r.end=Object.assign({},o),s.push(["exit",r,t]),e.add(n+1,0,s)}function ns(e,t){let n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}var wT={name:"tasklistCheck",tokenize:yT};function Sf(){return{text:{91:wT}}}function yT(e,t,n){let r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),s)}function s(l){return ne(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),o):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),o):n(l)}function o(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(l)}function a(l){return F(l)?t(l):X(l)?e.check({tokenize:xT},t,n)(l):n(l)}}function xT(e,t,n){return j(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function yk(e){return Il([vf(),bf(),Cf(e),Af(),Sf()])}var vT={};function tu(e){let t=this,n=e||vT,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(yk(n)),s.push(wf()),o.push(yf(n))}var Jn=S(T(),1),kT={a:({children:e,href:t})=>(0,Jn.jsx)("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:"ss-w-md-link",children:e}),table:({children:e})=>(0,Jn.jsx)("div",{className:"ss-w-table-wrap",children:(0,Jn.jsx)("table",{className:"ss-w-md-table",children:e})}),ul:({children:e})=>(0,Jn.jsx)("ul",{className:"ss-w-md-ul",children:e}),ol:({children:e})=>(0,Jn.jsx)("ol",{className:"ss-w-md-ol",children:e}),code:({children:e})=>(0,Jn.jsx)("code",{className:"ss-w-md-code",children:e})};function xk({text:e}){return(0,Jn.jsx)("div",{className:"ss-w-md",children:(0,Jn.jsx)(Hp,{remarkPlugins:[tu],components:kT,children:e})})}var Ef=S(de(),1),se=S(T(),1),vk=3,bT=/^(\d+)-(\d+)-(\d+)$/;function CT(e){return e.split(/\s+/).slice(0,2).map(t=>{var n;return(n=t[0])!=null?n:""}).join("").toUpperCase()}function AT(e){return e.replace(/\d{4}/g,t=>t.slice(2))}function bk({image:e,label:t}){return(0,se.jsx)("span",{className:"ss-w-ecard-crest",style:{backgroundImage:`url(${e})`},...t?{role:"img",title:t,"aria-label":t}:{"aria-hidden":"true"}})}function ST({w:e,d:t,l:n}){return e+t+n===0?null:(0,se.jsxs)("span",{className:"ss-w-form","aria-hidden":"true",children:[e>0?(0,se.jsx)("span",{className:"ss-w-form-w",style:{flexGrow:e}}):null,t>0?(0,se.jsx)("span",{className:"ss-w-form-d",style:{flexGrow:t}}):null,n>0?(0,se.jsx)("span",{className:"ss-w-form-l",style:{flexGrow:n}}):null]})}function ET({s:e}){let t=bT.exec(e.value);return t?(0,se.jsxs)("div",{className:"ss-w-ecard-cell",children:[(0,se.jsx)("span",{className:"ss-w-ecard-cval",children:(0,se.jsx)(ST,{w:Number(t[1]),d:Number(t[2]),l:Number(t[3])})}),(0,se.jsx)("span",{className:"ss-w-ecard-clabel",children:e.value})]}):(0,se.jsxs)("div",{className:"ss-w-ecard-cell",children:[(0,se.jsx)("span",{className:"ss-w-ecard-cval",children:e.value}),(0,se.jsx)("span",{className:"ss-w-ecard-clabel",children:e.label})]})}function IT({stats:e}){if(e.length===0)return null;let t=Math.min(e.length,4);return(0,se.jsx)("div",{className:"ss-w-ecard-strip",style:{gridTemplateColumns:`repeat(${t}, 1fr)`},children:e.map(n=>(0,se.jsx)(ET,{s:n},n.label+n.value))})}function kk({c:e,showScopeCrest:t}){let n=e.scopes.length===1?e.scopes[0]:null;return(0,se.jsxs)("div",{className:"ss-w-ecard-hd",children:[(0,se.jsx)("span",{className:e.kind==="team"?"ss-w-thumb ss-w-team":"ss-w-thumb",style:e.image?{backgroundImage:`url(${e.image})`}:void 0,children:e.image?"":CT(e.name)}),(0,se.jsxs)("span",{className:"ss-w-ecard-idtext",children:[(0,se.jsx)("span",{className:"ss-w-nm",children:e.name}),e.sub?(0,se.jsx)("span",{className:"ss-w-sub",children:e.sub}):null]}),(0,se.jsxs)("span",{className:"ss-w-ecard-meta",children:[t&&(n!=null&&n.image)?(0,se.jsx)(bk,{image:n.image,label:n.label}):null,e.season?(0,se.jsx)("span",{className:"ss-w-ecard-season",children:AT(e.season)}):null]})]})}function TT({scopes:e,active:t,onSelect:n}){return(0,se.jsx)("div",{className:"ss-w-ecard-scopes",role:"tablist",children:e.map((r,i)=>{var s;return(0,se.jsx)("button",{type:"button",role:"tab",className:"ss-w-ecard-scope","aria-selected":i===t,"aria-label":r.label,title:r.label,onClick:()=>n(i),children:r.image?(0,se.jsx)(bk,{image:r.image}):r.label},String((s=r.competitionId)!=null?s:"all"))})})}function NT({c:e}){let[t,n]=(0,Ef.useState)(0);if(!(e.scopes.length>0))return(0,se.jsx)("div",{className:"ss-w-ecard ss-w-ecard-bare","data-kind":e.kind,children:(0,se.jsx)(kk,{c:e,showScopeCrest:!1})});let i=e.scopes.length>1,s=e.scopes[i&&e.scopes[t]?t:0];return(0,se.jsxs)("div",{className:"ss-w-ecard","data-kind":e.kind,children:[(0,se.jsx)(kk,{c:e,showScopeCrest:!i}),i?(0,se.jsx)(TT,{scopes:e.scopes,active:t,onSelect:n}):null,(0,se.jsx)(IT,{stats:s.stats})]})}function Ck({cards:e,disabled:t,showLessLabel:n="Show less",showMoreLabel:r=i=>`Show ${i} more`}){let[i,s]=(0,Ef.useState)(!1);if(e.length===0)return null;let o=i?e:e.slice(0,vk),a=e.length-vk;return(0,se.jsxs)("div",{className:"ss-w-cards",children:[o.map(l=>(0,se.jsx)(NT,{c:l},l.id)),a>0?(0,se.jsx)("button",{type:"button",className:"ss-w-cards-more",disabled:t,onClick:()=>s(l=>!l),children:i?n:r(a)}):null]})}var Tf=S(de(),1);var rs=S(de(),1);var Ak=S(de(),1),Sk=S(T(),1),LT=4e3;function nu({toast:e,onDismiss:t}){return(0,Ak.useEffect)(()=>{if(!e)return;let n=setTimeout(t,LT);return()=>clearTimeout(n)},[e,t]),e?(0,Sk.jsx)("div",{className:`ss-w-toast ss-w-toast-${e.kind}`,role:"status","aria-live":"polite",children:e.text}):null}var is=S(T(),1);function PT(e){return Promise.race([e,new Promise((t,n)=>setTimeout(()=>n(new Error("add-to-slip timed out")),1e4))])}function Po({selection:e,shownOdds:t,marketName:n,marketDeveloperName:r,slip:i,ui:s}){let[o,a]=(0,rs.useState)(!1),[l,u]=(0,rs.useState)(!1),[c,d]=(0,rs.useState)(null),p=(0,rs.useCallback)(()=>d(null),[]),f=Wi(),h=i.onAddToSlip;return!s||!h||!e?null:(0,is.jsxs)("div",{className:"ss-w-slip",children:[(0,is.jsx)("button",{type:"button",className:"ss-w-slip-btn",disabled:o||l,onClick:async()=>{a(!0),r!==void 0&&(f==null||f.log({name:"slip_click",entityType:"market",marketDeveloperName:r,entityId:r}));try{let C=await PT(Promise.resolve(h(e)));if(C!=null&&!Od(C))throw new Error("malformed add-to-slip result");let m=C!=null?C:void 0;if(r!==void 0&&(f==null||f.log({name:"slip_result",entityType:"market",marketDeveloperName:r,entityId:r,outcome:Ow(m)})),d(zw(m,t||e.oddsDecimal.toFixed(2),s)),u(Dw(m)),ml(m)&&i.onMarketClicked)try{i.onMarketClicked(n)}catch{}}catch{r!==void 0&&(f==null||f.log({name:"slip_result",entityType:"market",marketDeveloperName:r,entityId:r,outcome:"timeout"})),d({kind:"error",text:s.slipFailed})}finally{a(!1)}},children:l?s.inSlip:s.addToSlip}),(0,is.jsx)(nu,{toast:c,onDismiss:p})]})}function Ek({it:e,slip:t,ui:n}){var i;let r=e.addToSlipEnabled?Jw(e,t.conversationId):null;return(0,is.jsx)(Po,{selection:r,shownOdds:(i=e.odds)!=null?i:"",marketName:e.market,marketDeveloperName:e.marketDeveloperName,slip:t,ui:n})}var Ro=S(T(),1);function ss({previous:e,current:t,direction:n,ui:r}){var o,a,l,u;if(e===void 0||n===void 0)return null;let i=n==="shortened"?(o=r==null?void 0:r.oddsShortened)!=null?o:"shortened":(a=r==null?void 0:r.oddsDrifted)!=null?a:"drifted",s=(u=(l=r==null?void 0:r.oddsMoved)==null?void 0:l.call(r,e,t,i))!=null?u:`was ${e}, now ${t}, ${i}`;return(0,Ro.jsxs)("span",{className:"ss-w-move",role:"img","aria-label":s,children:[(0,Ro.jsx)("span",{className:"ss-w-move-prev","aria-hidden":"true",children:e}),(0,Ro.jsx)("span",{className:"ss-w-move-arrow","aria-hidden":"true",children:n==="shortened"?"\u25BC":"\u25B2"})]})}var Ik=S(de(),1),If=S(T(),1);function RT(e){return(e!=null?e:"").trim().slice(0,1).toUpperCase()||"?"}function Be({url:e,name:t,kind:n}){let r=n==="comp"?"ss-w-bi-comp-logo":"ss-w-bi-crest",[i,s]=(0,Ik.useState)(!1);return e&&!i?(0,If.jsx)("img",{className:r,src:e,alt:"","aria-hidden":"true",onError:()=>s(!0)}):(0,If.jsx)("span",{className:`${r} ss-w-bi-crest-mono`,"aria-hidden":"true",children:RT(t)})}var ru=S(de(),1);var ci=S(T(),1),DT={pin:{viewBox:"0 0 24 24",strokeWidth:1.4,transform:"scale(1.5)",d:"M9.5 1.5 14.5 6.5 13 8l-.5-.5-3 3 .3 2.2-1.4 1.4L5.6 11.3l-3.3 3.3-1-1 3.3-3.3L1.9 7.5l1.4-1.4 2.2.3 3-3L8 2.9z"},star:{viewBox:"0 0 24 24",strokeWidth:2,d:"M12 2.5l2.9 5.9 6.5.95-4.7 4.58 1.1 6.47L12 17.35 6.1 20.4l1.1-6.47L2.5 9.35l6.5-.95z"},bookmark:{viewBox:"0 0 24 24",strokeWidth:2,d:"M7 3h10a1.5 1.5 0 0 1 1.5 1.5V21l-6.5-3.6L5.5 21V4.5A1.5 1.5 0 0 1 7 3z"}};function Mt({pin:e,monitor:t,ui:n}){let[r,i]=(0,ru.useState)(null),s=(0,ru.useCallback)(()=>i(null),[]),o=Wi();if(!t||!t.enabled)return null;let a=sy(e),l=t.isPinned(a),u=e.kind==="match"?{pin:n.matchPinLabel,unpin:n.matchUnpinLabel}:{pin:n.pinLabel,unpin:n.unpinLabel},c=()=>{let p=t.togglePin({...e,key:a});(p==="added"||p==="removed")&&(e.kind==="match"||e.marketDeveloperName!==void 0)?o==null||o.log({name:p==="added"?"pin_add":"pin_remove",entityType:e.kind==="match"?"match":"market",entityId:e.kind==="match"?String(e.matchId):e.marketDeveloperName,marketDeveloperName:e.marketDeveloperName}):p==="match_limit"?i({kind:"error",text:n.matchLimitToast}):p==="market_limit"&&i({kind:"error",text:n.marketLimitToast})},d=DT[n.pinIcon];return(0,ci.jsxs)("div",{className:"ss-w-pin-wrap",children:[(0,ci.jsx)("button",{type:"button",className:"ss-w-pin","data-on":l||void 0,"data-icon":n.pinIcon,"aria-pressed":l,"aria-label":l?u.unpin:u.pin,onClick:c,children:(0,ci.jsx)("svg",{viewBox:d.viewBox,"aria-hidden":"true",children:(0,ci.jsx)("path",{transform:d.transform,d:d.d,fill:l?"currentColor":"none",stroke:l?"none":"currentColor",strokeWidth:d.strokeWidth,strokeLinejoin:"round",strokeLinecap:"round"})})}),(0,ci.jsx)(nu,{toast:r,onDismiss:s})]})}var H=S(T(),1);function Nk({stats:e}){return(0,H.jsx)("div",{className:"ss-w-bi-rows",children:e.map(t=>(0,H.jsxs)("div",{className:"ss-w-bi-row",children:[(0,H.jsx)("span",{className:"ss-w-bi-row-lbl",children:t.label}),(0,H.jsx)("span",{className:"ss-w-bi-row-num",children:t.value})]},`${t.label}:${t.value}`))})}function OT({scopes:e}){var i,s;let[t,n]=(0,Tf.useState)(0),r=(s=(i=e[t])!=null?i:e[0])!=null?s:{key:"",label:"",stats:[]};return(0,H.jsxs)("div",{className:"ss-w-bi-scoped",children:[(0,H.jsx)("div",{className:"ss-w-bi-scopes",role:"group",children:e.map((o,a)=>(0,H.jsx)("button",{type:"button",className:"ss-w-bi-chip","aria-pressed":a===t,onClick:()=>n(a),children:o.label},o.key))}),(0,H.jsx)(Nk,{stats:r.stats},r.key)]})}function zT(e){return!!e.scopes&&e.scopes.length>=2||e.stats.length>0}function BT({it:e,ui:t}){var c,d,p,f;let[n,r]=(0,Tf.useState)(!1),i=Wi(),s=!!e.scopes&&e.scopes.length>=2,o=zT(e),a=!!e.text;if(!a&&!o)return null;let l=o||((d=(c=e.text)==null?void 0:c.length)!=null?d:0)>90,u=()=>{r(h=>{let w=!h;return w&&(i==null||i.log({name:"insight_expand",entityType:"match",entityId:String(e.matchId)})),w})};return(0,H.jsxs)("div",{className:"ss-w-bi-reason",children:[(0,H.jsx)("span",{className:"ss-w-bi-chart","aria-hidden":"true"}),(0,H.jsxs)("div",{className:"ss-w-bi-reason-body",children:[a?(0,H.jsx)("p",{className:`ss-w-bi-text${n?"":" ss-w-bi-text-clamp"}`,children:e.text}):null,n&&o?s?(0,H.jsx)(OT,{scopes:e.scopes}):(0,H.jsx)(Nk,{stats:e.stats}):null]}),l?(0,H.jsx)("button",{type:"button",className:"ss-w-bi-expand","aria-expanded":n,"aria-label":n?(p=t==null?void 0:t.hideStats)!=null?p:"Hide stats":(f=t==null?void 0:t.showStats)!=null?f:"Show stats",onClick:u,children:(0,H.jsx)("span",{className:`ss-w-bi-arrow${n?" ss-w-bi-arrow-open":""}`,"aria-hidden":"true"})}):null]})}function Tk({it:e}){return e.homeTeamName&&e.awayTeamName?(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(Be,{kind:"team",url:e.homeCrest,name:e.homeTeamName}),(0,H.jsx)("span",{className:"ss-w-bi-team",children:e.homeTeamName}),(0,H.jsx)("span",{className:"ss-w-bi-vs","aria-hidden":"true",children:"vs"}),(0,H.jsx)("span",{className:"ss-w-bi-team",children:e.awayTeamName}),(0,H.jsx)(Be,{kind:"team",url:e.awayCrest,name:e.awayTeamName})]}):e.fixture?(0,H.jsx)("span",{className:"ss-w-bi-fixture-txt",children:e.fixture}):e.competition?(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(Be,{kind:"comp",url:e.competitionCrest,name:e.competition}),(0,H.jsx)("span",{className:"ss-w-bi-comp",children:e.competition})]}):null}function FT({it:e,ui:t,slip:n,monitor:r}){var p,f,h;let i=e.isLive||e.phase==="live",s=e.kickoffUtc&&(t!=null&&t.bettingKickoff)?t.bettingKickoff(e.kickoffUtc):void 0,o=(p=e.kickoffLabel)!=null?p:s?`${s.dayLabel} ${s.time}`:void 0,l=!!e.homeTeamName&&!!e.awayTeamName||!!e.fixture,u=!!r&&e.pinEnabled,c=l||!!e.competition||i||!!o||u,d=(0,H.jsxs)(H.Fragment,{children:[i?(0,H.jsxs)("span",{className:"ss-w-bi-live",children:[(0,H.jsx)("span",{className:"ss-w-bi-live-dot","aria-hidden":"true"}),(f=t==null?void 0:t.liveLabel)!=null?f:"Live"]}):null,o?(0,H.jsx)("span",{className:"ss-w-bi-kick",children:o}):null,u&&t?(0,H.jsx)(Mt,{ui:t,monitor:r,pin:{kind:"match",matchId:e.matchId}}):null]});return(0,H.jsxs)("div",{className:"ss-w-binsight",children:[c?l?(0,H.jsxs)("div",{className:"ss-w-bi-head",children:[e.competition||i||o||u?(0,H.jsxs)("div",{className:"ss-w-bi-meta",children:[(0,H.jsx)("span",{className:"ss-w-bi-meta-left",children:e.competition?(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(Be,{kind:"comp",url:e.competitionCrest,name:e.competition}),(0,H.jsx)("span",{className:"ss-w-bi-comp",children:e.competition})]}):null}),(0,H.jsx)("span",{className:"ss-w-bi-meta-right",children:d})]}):null,(0,H.jsx)("div",{className:"ss-w-bi-fixture-line",children:(0,H.jsx)(Tk,{it:e})})]}):(0,H.jsxs)("div",{className:"ss-w-bi-header",children:[(0,H.jsx)("span",{className:"ss-w-bi-header-left",children:(0,H.jsx)(Tk,{it:e})}),(0,H.jsx)("span",{className:"ss-w-bi-header-right",children:d})]}):null,(0,H.jsxs)("div",{className:"ss-w-bi-action",children:[e.market?(0,H.jsx)("span",{className:"ss-w-bi-market",children:e.market}):null,(0,H.jsxs)("div",{className:"ss-w-bi-pick-row",children:[e.selection?(0,H.jsx)("span",{className:"ss-w-bi-sel",children:e.selection}):null,e.odds?(0,H.jsxs)("span",{className:"ss-w-bi-odds",children:[(0,H.jsx)("b",{children:e.odds}),(0,H.jsx)(ss,{previous:e.previousOdds,current:e.odds,direction:e.movementDirection,ui:t}),e.bookmaker?(0,H.jsx)("span",{className:"ss-w-bi-book",children:e.bookmaker}):null]}):null,(0,H.jsx)(Ek,{it:e,slip:n,ui:t}),u&&t?(0,H.jsx)(Mt,{ui:t,monitor:r,pin:{kind:"selection",matchId:e.matchId,marketDeveloperName:e.marketDeveloperName,selectionLabel:e.selectionLabel,line:e.line,matchOddsId:e.matchOddsId}}):null]})]}),e.isMarketFloor?(0,H.jsx)("span",{className:"ss-w-bi-floor",children:(h=t==null?void 0:t.marketFloorLabel)!=null?h:"Market price \xB7 not a value pick"}):null,(0,H.jsx)(BT,{it:e,ui:t}),e.disclaimer?(0,H.jsx)("p",{className:"ss-w-bi-disc",children:e.disclaimer}):null]})}function Lk({insights:e,ui:t,slip:n,monitor:r}){return!e||e.length===0?null:(0,H.jsx)("div",{className:"ss-w-binsights",children:e.map(i=>(0,H.jsx)(FT,{it:i,ui:t,slip:n,monitor:r},i.id))})}var Pk=S(de(),1);var $=S(T(),1);function Mk({vm:e,row:t,ui:n,slip:r,inSlipIds:i}){let s=e.addToSlipEnabled?qw(e,t,r.conversationId):null,o=!!i&&t.matchOddsId!=null&&!!i[t.matchOddsId];return(0,$.jsxs)("div",{className:"ss-w-mo-row",children:[(0,$.jsx)("span",{className:"ss-w-mo-sel",children:t.selection}),(0,$.jsx)(ss,{previous:t.previousOdds,current:t.odds,direction:t.movementDirection,ui:n}),(0,$.jsx)("span",{className:"ss-w-mo-price",children:t.odds}),o&&n?(0,$.jsxs)("span",{className:"ss-w-mon-inslip",children:["\u2713 ",n.inSlipLabel]}):null,(0,$.jsx)(Po,{selection:s,shownOdds:t.odds,marketName:e.market,marketDeveloperName:e.marketDeveloperName,slip:r,ui:n})]})}function UT({vm:e,ui:t,slip:n,monitor:r,inSlipIds:i,hideHeader:s,pinRef:o}){var w,C,m,g;let[a,l]=(0,Pk.useState)(!1),u=e.kickoffUtc&&(t!=null&&t.bettingKickoff)?t.bettingKickoff(e.kickoffUtc):void 0,c=(w=e.kickoffLabel)!=null?w:u?`${u.dayLabel} ${u.time}`:void 0,d=!!e.homeTeamName&&!!e.awayTeamName,p=!!r&&e.pinEnabled,f=p&&!o,h=!!e.competition||e.isLive||!!c||p;return(0,$.jsxs)("div",{className:s?"ss-w-mocard ss-w-mocard--bare":"ss-w-mocard",children:[!s&&(0,$.jsxs)($.Fragment,{children:[h?(0,$.jsxs)("div",{className:"ss-w-bi-header",children:[(0,$.jsx)("span",{className:"ss-w-bi-header-left",children:e.competition?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(Be,{kind:"comp",url:e.competitionCrest,name:e.competition}),(0,$.jsx)("span",{className:"ss-w-bi-comp",children:e.competition})]}):null}),(0,$.jsxs)("span",{className:"ss-w-bi-header-right",children:[e.isLive?(0,$.jsxs)("span",{className:"ss-w-bi-live",children:[(0,$.jsx)("span",{className:"ss-w-bi-live-dot","aria-hidden":"true"}),(C=t==null?void 0:t.liveLabel)!=null?C:"Live"]}):null,c?(0,$.jsx)("span",{className:"ss-w-bi-kick",children:c}):null,p&&t?(0,$.jsx)(Mt,{ui:t,monitor:r,pin:o!=null?o:{kind:"match",matchId:e.matchId}}):null]})]}):null,d||e.fixture||e.market||f?(0,$.jsxs)("div",{className:"ss-w-mo-sub",children:[d?(0,$.jsxs)("div",{className:"ss-w-bi-fixture",children:[(0,$.jsx)(Be,{kind:"team",url:e.homeCrest,name:e.homeTeamName}),(0,$.jsx)("span",{className:"ss-w-bi-team",children:e.homeTeamName}),(0,$.jsx)("span",{className:"ss-w-bi-vs","aria-hidden":"true",children:"vs"}),(0,$.jsx)("span",{className:"ss-w-bi-team",children:e.awayTeamName}),(0,$.jsx)(Be,{kind:"team",url:e.awayCrest,name:e.awayTeamName})]}):e.fixture?(0,$.jsx)("span",{className:"ss-w-mo-teams",children:e.fixture}):null,e.market||f?(0,$.jsxs)("div",{className:"ss-w-mo-market-row",children:[e.market?(0,$.jsx)("span",{className:"ss-w-mo-market",children:e.market}):null,f&&t?(0,$.jsx)(Mt,{ui:t,monitor:r,pin:{kind:"market",matchId:e.matchId,marketDeveloperName:e.marketDeveloperName,line:e.mainLine}}):null]}):null]}):null]}),(0,$.jsxs)("div",{className:"ss-w-mo-rows",children:[e.mainRows.map(y=>(0,$.jsx)(Mk,{vm:e,row:y,ui:t,slip:n,inSlipIds:i},y.key)),a?e.moreRows.map(y=>(0,$.jsx)(Mk,{vm:e,row:y,ui:t,slip:n,inSlipIds:i},y.key)):null]}),e.moreRows.length>0?(0,$.jsxs)("button",{type:"button",className:"ss-w-mo-more","aria-expanded":a,onClick:()=>l(y=>!y),children:[(0,$.jsx)("span",{children:a?(m=t==null?void 0:t.hideLines)!=null?m:"Hide lines":`${(g=t==null?void 0:t.moreLines)!=null?g:"More lines"} (${e.moreRows.length})`}),(0,$.jsx)("span",{className:`ss-w-mo-more-chev${a?" ss-w-mo-more-chev-up":""}`,"aria-hidden":"true"})]}):null,e.bookmaker?(0,$.jsx)("div",{className:"ss-w-mo-foot",children:(0,$.jsx)("span",{children:e.bookmaker})}):null,e.disclaimer?(0,$.jsx)("p",{className:"ss-w-bi-disc",children:e.disclaimer}):null]})}function os({cards:e,ui:t,slip:n,monitor:r,inSlipIds:i,hideHeader:s,pinRef:o}){return!e||e.length===0?null:(0,$.jsx)("div",{className:"ss-w-mocards",children:e.map(a=>(0,$.jsx)(UT,{vm:a,ui:t,slip:n,monitor:r,inSlipIds:i,hideHeader:s,pinRef:o},a.id))})}var ie=S(T(),1);function HT(e,t){var n,r;return e.direction==="shortened"?(n=t==null?void 0:t.oddsShortened)!=null?n:"shortened":e.direction==="drifted"?(r=t==null?void 0:t.oddsDrifted)!=null?r:"drifted":""}function VT({vm:e,ui:t,monitor:n}){var a,l,u,c,d,p;let r=HT(e,t),i=r?`, ${r}`:"",s=t!=null&&t.chartAria?t.chartAria(e.opening,e.current,r,e.windowHours):`Price movement over the last ${e.windowHours} hours: opened at ${e.opening}, currently ${e.current}${i}.`,o=!!n&&e.pinEnabled;return(0,ie.jsxs)("div",{className:"ss-w-omcard",children:[(0,ie.jsxs)("div",{className:"ss-w-om-head",children:[(0,ie.jsx)("span",{className:"ss-w-om-market",children:e.market}),(0,ie.jsx)("span",{className:"ss-w-om-tag",children:(a=t==null?void 0:t.priceMovement)!=null?a:"Price movement"}),o&&t?(0,ie.jsx)(Mt,{ui:t,monitor:n,pin:{kind:"selection",matchId:e.matchId,marketDeveloperName:e.marketDeveloperName,selectionLabel:e.selectionLabel,line:e.line,withHistory:!0,matchOddsId:e.matchOddsId}}):null]}),e.fixture?(0,ie.jsxs)("div",{className:"ss-w-om-fixture",children:[(0,ie.jsx)("span",{children:e.fixture}),e.competition?(0,ie.jsx)("span",{className:"ss-w-om-comp",children:e.competition}):null]}):null,(0,ie.jsx)("div",{className:"ss-w-om-sel",children:e.selection}),(0,ie.jsx)(ss,{previous:e.opening,current:e.current,direction:e.direction,ui:t}),e.geometry===null?(0,ie.jsx)("div",{className:"ss-w-om-empty",children:e.observationCount===1?(l=t==null?void 0:t.singlePricePoint)!=null?l:"Only one price recorded so far for this selection.":(u=t==null?void 0:t.notEnoughHistory)!=null?u:"No price history recorded yet for this selection."}):(0,ie.jsxs)("svg",{className:"ss-w-om-chart",viewBox:e.geometry.viewBox,width:"100%",role:"img","aria-label":s,children:[e.geometry.gridlines.map(f=>(0,ie.jsxs)("g",{children:[(0,ie.jsx)("line",{className:"ss-w-om-grid",x1:40,y1:f.y,x2:312,y2:f.y}),(0,ie.jsx)("text",{className:"ss-w-om-ylab",x:34,y:f.y+3,textAnchor:"end",children:f.price.toFixed(2)})]},f.price)),(0,ie.jsx)("path",{className:"ss-w-om-line",d:e.geometry.path,fill:"none"}),e.geometry.markers.map((f,h)=>(0,ie.jsx)("circle",{className:"ss-w-om-dot",cx:f.x,cy:f.y,r:2.5},h)),t!=null&&t.chartTimeLabel?(0,ie.jsxs)(ie.Fragment,{children:[(0,ie.jsx)("text",{className:"ss-w-om-xlab",x:40,y:132,textAnchor:"start",children:t.chartTimeLabel(e.geometry.startMs)}),(0,ie.jsx)("text",{className:"ss-w-om-xlab",x:312,y:132,textAnchor:"end",children:t.chartTimeLabel(e.geometry.endMs)})]}):(0,ie.jsx)("text",{className:"ss-w-om-xlab",x:40,y:132,children:t!=null&&t.movementWindow?t.movementWindow(e.windowHours):`Last ${e.windowHours}h`})]}),(0,ie.jsxs)("div",{className:"ss-w-om-foot",children:[(0,ie.jsxs)("span",{children:[(c=t==null?void 0:t.openingLabel)!=null?c:"Opening"," ",(0,ie.jsx)("b",{children:e.opening})]}),(0,ie.jsxs)("span",{children:[(d=t==null?void 0:t.currentLabel)!=null?d:"Current"," ",(0,ie.jsx)("b",{children:e.current})]})]}),e.bookmaker?(0,ie.jsx)("div",{className:"ss-w-om-foot",children:(0,ie.jsx)("span",{children:e.bookmaker})}):null,e.excludedCount>0?(0,ie.jsx)("div",{className:"ss-w-om-excl",children:t!=null&&t.excludedSuspended?t.excludedSuspended(e.excludedCount):`${e.excludedCount} suspended price(s) excluded from this chart.`}):null,e.isSuspended?(0,ie.jsx)("div",{className:"ss-w-om-susp",children:(p=t==null?void 0:t.selectionSuspended)!=null?p:"This selection is not currently available to bet."}):null,e.disclaimer?(0,ie.jsx)("div",{className:"ss-w-om-disc",children:e.disclaimer}):null]})}function iu({cards:e,ui:t,monitor:n}){return!e||e.length===0?null:(0,ie.jsx)("div",{className:"ss-w-omcards",children:e.map(r=>(0,ie.jsx)(VT,{vm:r,ui:t,monitor:n},r.id))})}var qn=S(T(),1);function su({actions:e,loading:t,disabled:n,onAct:r}){return e.length===0&&!t?null:(0,qn.jsxs)("div",{className:"ss-w-actions",children:[e.map((i,s)=>(0,qn.jsx)("button",{type:"button",className:"ss-w-abtn",disabled:n,onClick:()=>r(i),children:i.label},`${i.label}-${s}`)),e.length===0&&t?(0,qn.jsxs)(qn.Fragment,{children:[(0,qn.jsx)("span",{className:"ss-w-abtn-shimmer"}),(0,qn.jsx)("span",{className:"ss-w-abtn-shimmer"})]}):null]})}var Pt=S(T(),1),jT=3;function Dk({tile:e,onTap:t}){var s;let n=e.span==="full"?"ss-w-dash-tile--full":"ss-w-dash-tile--half",r=((s=e.imageUrls)!=null?s:[]).slice(0,jT),i=!!e.badgeText||r.length>0;return(0,Pt.jsxs)("button",{type:"button",className:`ss-w-dash-tile ${n}`,onClick:t,children:[(0,Pt.jsx)("span",{className:"ss-w-dash-tile-icon",children:(0,Pt.jsx)(Iy,{name:e.icon})}),(0,Pt.jsxs)("span",{className:"ss-w-dash-tile-body",children:[(0,Pt.jsx)("span",{className:"ss-w-dash-tile-title",children:e.title}),e.subtitle?(0,Pt.jsx)("span",{className:"ss-w-dash-tile-subtitle",children:e.subtitle}):null,i?(0,Pt.jsxs)("span",{className:"ss-w-dash-tile-meta",children:[e.badgeText?(0,Pt.jsx)("span",{className:"ss-w-dash-tile-badge",children:e.badgeText}):null,r.length>0?(0,Pt.jsx)("span",{className:"ss-w-dash-tile-crests",children:r.map((o,a)=>(0,Pt.jsx)("span",{className:"ss-w-dash-tile-crest",style:{backgroundImage:`url(${o})`},"aria-hidden":"true"},`${o}-${a}`))}):null]}):null]}),(0,Pt.jsx)("span",{className:"ss-w-dash-tile-chevron",children:(0,Pt.jsx)(yl,{})})]})}var Kn=S(T(),1),Nf={market:"ss-w-dash--market",goal:"ss-w-dash--goal",discovery:"ss-w-dash--discovery"};function _T(e){return Object.prototype.hasOwnProperty.call(Nf,e)?Nf[e]:Nf.goal}function Ok({dashboard:e,onTap:t}){return(0,Kn.jsxs)("div",{className:`ss-w-dash ${_T(e.layout)}`,children:[(0,Kn.jsxs)("div",{className:"ss-w-dash-head",children:[(0,Kn.jsx)("span",{className:"ss-w-dash-title",children:e.title}),e.subtitle?(0,Kn.jsx)("span",{className:"ss-w-dash-subtitle",children:e.subtitle}):null]}),(0,Kn.jsx)("div",{className:"ss-w-dash-grid",children:e.tiles.map((n,r)=>(0,Kn.jsx)(Dk,{tile:n,onTap:()=>t(n,r)},`${n.title}-${r}`))}),e.footerTip?(0,Kn.jsx)("span",{className:"ss-w-dash-foot",children:e.footerTip}):null]})}var q=S(T(),1);function WT(e){return e==="W"?"ss-w-fandash-teamform-cell--win":e==="L"?"ss-w-fandash-teamform-cell--loss":"ss-w-fandash-teamform-cell--draw"}function zk({m:e,subjectCrestUrl:t,subjectName:n}){var o;let r=(0,q.jsx)(Be,{url:t!=null?t:void 0,name:n,kind:"team"}),i=(0,q.jsx)(Be,{url:(o=e.opponentCrestUrl)!=null?o:void 0,kind:"team"}),s=e.teamIsHome?`${e.teamScore} - ${e.oppScore}`:`${e.oppScore} - ${e.teamScore}`;return(0,q.jsxs)("div",{className:`ss-w-fandash-teamform-cell ${WT(e.result)}`,children:[e.teamIsHome?r:i,(0,q.jsx)("span",{className:"ss-w-fandash-teamform-score",children:s}),e.teamIsHome?i:r]})}var XT=5;function JT(e){return Array.from({length:XT},(t,n)=>n).flatMap(t=>[(0,q.jsx)("span",{className:"ss-w-fandash-teamform-slot",children:e.homeForm[t]?(0,q.jsx)(zk,{m:e.homeForm[t],subjectCrestUrl:e.homeCrestUrl,subjectName:e.homeName}):null},`h-${t}`),(0,q.jsx)("span",{className:"ss-w-fandash-teamform-slot",children:e.awayForm[t]?(0,q.jsx)(zk,{m:e.awayForm[t],subjectCrestUrl:e.awayCrestUrl,subjectName:e.awayName}):null},`a-${t}`)])}function Bk({card:e}){var r,i,s,o;let{data:t}=e,n=t.h2H;return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-fixture",children:[(0,q.jsxs)("span",{className:"ss-w-fandash-eyebrow",children:[e.title," \xB7 ",t.competition]}),(0,q.jsxs)("div",{className:"ss-w-fandash-fixture-teams",children:[(0,q.jsxs)("span",{className:"ss-w-fandash-fixture-team",children:[(0,q.jsx)(Be,{url:(r=t.homeCrestUrl)!=null?r:void 0,name:t.homeName,kind:"team"}),(0,q.jsx)("span",{className:"ss-w-fandash-fixture-name",children:t.homeName})]}),(0,q.jsx)("span",{className:"ss-w-fandash-fixture-vs",children:"v"}),(0,q.jsxs)("span",{className:"ss-w-fandash-fixture-team ss-w-fandash-fixture-team--away",children:[(0,q.jsx)("span",{className:"ss-w-fandash-fixture-name",children:t.awayName}),(0,q.jsx)(Be,{url:(i=t.awayCrestUrl)!=null?i:void 0,name:t.awayName,kind:"team"})]})]}),(0,q.jsxs)("div",{className:"ss-w-fandash-fixture-meta",children:[(0,q.jsx)("span",{className:"ss-w-fandash-fixture-kickoff",children:t.kickoffLabel}),t.venue?(0,q.jsxs)("span",{className:"ss-w-fandash-fixture-venue",children:[" \xB7 ",t.venue]}):null]})]}),(0,q.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-lastfive",children:[(0,q.jsx)("span",{className:"ss-w-fandash-eyebrow",children:t.formLabel}),(0,q.jsxs)("div",{className:"ss-w-fandash-teamform-head",children:[(0,q.jsxs)("span",{className:"ss-w-fandash-teamform-head-team",children:[(0,q.jsx)(Be,{url:(s=t.homeCrestUrl)!=null?s:void 0,name:t.homeName,kind:"team"}),(0,q.jsx)("span",{className:"ss-w-fandash-teamform-head-name",children:t.homeName})]}),(0,q.jsxs)("span",{className:"ss-w-fandash-teamform-head-team",children:[(0,q.jsx)(Be,{url:(o=t.awayCrestUrl)!=null?o:void 0,name:t.awayName,kind:"team"}),(0,q.jsx)("span",{className:"ss-w-fandash-teamform-head-name",children:t.awayName})]})]}),(0,q.jsx)("div",{className:"ss-w-fandash-teamform-rows",children:JT(t)})]}),n||t.fact?(0,q.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-h2h",children:[n?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)("span",{className:"ss-w-fandash-eyebrow",children:n.label}),(0,q.jsxs)("div",{className:"ss-w-fandash-split",children:[(0,q.jsxs)("span",{className:"ss-w-fandash-split-cell",children:[(0,q.jsx)("span",{className:"ss-w-fandash-split-value",children:n.wins}),(0,q.jsx)("span",{className:"ss-w-fandash-split-label",children:n.homeWinsLabel})]}),(0,q.jsxs)("span",{className:"ss-w-fandash-split-cell",children:[(0,q.jsx)("span",{className:"ss-w-fandash-split-value",children:n.draws}),(0,q.jsx)("span",{className:"ss-w-fandash-split-label",children:n.drawsLabel})]}),(0,q.jsxs)("span",{className:"ss-w-fandash-split-cell",children:[(0,q.jsx)("span",{className:"ss-w-fandash-split-value",children:n.losses}),(0,q.jsx)("span",{className:"ss-w-fandash-split-label",children:n.awayWinsLabel})]})]})]}):null,t.fact?(0,q.jsx)("span",{className:"ss-w-fandash-fact",children:t.fact}):null]}):null]})}var di=S(de(),1),pn=S(T(),1),qT=864e5;function KT(e,t,n){let r=Math.floor((e*1e3-t)/1e3);if(r<=0)return null;let i=Math.floor(r/86400),s=Math.floor(r%86400/3600),o=Math.floor(r%3600/60),a=r%60,l=c=>String(c).padStart(2,"0");if(i>0)return[{value:l(i),unit:"d"},{value:l(s),unit:"h"}];let u=[{value:l(s),unit:"h"},{value:l(o),unit:"m"}];return n&&u.push({value:l(a),unit:"s"}),u}function Fk({card:e}){var l;let{data:t}=e,n={d:t.daysUnit,h:t.hoursUnit,m:t.minutesUnit,s:t.secondsUnit},[r,i]=(0,di.useState)(()=>Date.now()),[s]=(0,di.useState)(()=>typeof window!="undefined"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches),o=t.kickoffUnix*1e3-r<qT;(0,di.useEffect)(()=>{if(s)return;let u=window.setInterval(()=>i(Date.now()),o?1e3:6e4);return()=>window.clearInterval(u)},[s,o]);let a=KT(t.kickoffUnix,r,o&&!s);return(0,pn.jsx)("div",{className:"ss-w-fandash-card ss-w-fandash-countdown",children:(0,pn.jsxs)("div",{className:"ss-w-fandash-countdown-top",children:[(0,pn.jsx)("span",{className:"ss-w-fandash-eyebrow",children:(l=e.title)!=null?l:"Kick-off in"}),a?(0,pn.jsx)("span",{className:"ss-w-fandash-countdown-clock",children:a.map((u,c)=>(0,pn.jsxs)(di.Fragment,{children:[c>0?(0,pn.jsx)("span",{className:"ss-w-fandash-countdown-colon",children:":"}):null,(0,pn.jsxs)("span",{className:"ss-w-fandash-countdown-seg",children:[(0,pn.jsx)("span",{className:"ss-w-fandash-countdown-value",children:u.value}),(0,pn.jsx)("span",{className:"ss-w-fandash-countdown-unit",children:n[u.unit]})]})]},u.unit))}):null]})})}var Hk=S(de(),1);var Ce=S(T(),1),Lf=3;function Uk({name:e,crestUrl:t}){return(0,Ce.jsxs)("span",{className:"ss-w-fandash-injuries-col-head",children:[(0,Ce.jsx)(Be,{url:t!=null?t:void 0,name:e,kind:"team"}),(0,Ce.jsx)("span",{className:"ss-w-fandash-injuries-col-head-name",children:e})]})}function Qk({rows:e,emptyLabel:t,limit:n}){if(e.length===0)return(0,Ce.jsx)("span",{className:"ss-w-fandash-injuries-empty",children:t});let r=n===void 0?e:e.slice(0,n);return(0,Ce.jsx)("ul",{className:"ss-w-fandash-injury-list",children:r.map((i,s)=>(0,Ce.jsxs)("li",{className:"ss-w-fandash-injury-row",children:[(0,Ce.jsx)("span",{className:"ss-w-fandash-injury-name",children:i.playerName}),(0,Ce.jsxs)("span",{className:"ss-w-fandash-injury-meta",children:[(0,Ce.jsx)("span",{className:"ss-w-fandash-injury-status",children:i.status}),i.injuryType?(0,Ce.jsx)("span",{className:"ss-w-fandash-injury-type",children:i.injuryType}):null,i.expectedReturnLabel?(0,Ce.jsx)("span",{className:"ss-w-fandash-injury-return",children:i.expectedReturnLabel}):null]})]},`${i.playerName}-${s}`))})}function Vk({card:e,ui:t}){var u,c;let{data:n}=e,[r,i]=(0,Hk.useState)(!1),s=Math.max(0,n.ours.length-Lf)+Math.max(0,n.theirs.length-Lf),o=r?void 0:Lf,a=(u=t==null?void 0:t.showMore)!=null?u:(d=>`Show ${d} more`),l=(c=t==null?void 0:t.showLess)!=null?c:"Show less";return(0,Ce.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-injuries",children:[e.title?(0,Ce.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Ce.jsxs)("div",{className:"ss-w-fandash-injuries-cols",children:[(0,Ce.jsxs)("div",{className:"ss-w-fandash-injuries-col",children:[(0,Ce.jsx)(Uk,{name:n.oursName,crestUrl:n.oursCrestUrl}),(0,Ce.jsx)(Qk,{rows:n.ours,emptyLabel:n.emptyLabel,limit:o})]}),(0,Ce.jsx)("div",{className:"ss-w-fandash-injuries-divider"}),(0,Ce.jsxs)("div",{className:"ss-w-fandash-injuries-col",children:[(0,Ce.jsx)(Uk,{name:n.theirsName,crestUrl:n.theirsCrestUrl}),(0,Ce.jsx)(Qk,{rows:n.theirs,emptyLabel:n.emptyLabel,limit:o})]})]}),s>0?(0,Ce.jsx)("button",{type:"button",className:"ss-w-fandash-injuries-more","aria-expanded":r,onClick:()=>i(d=>!d),children:r?l:a(s)}):null]})}var as=S(T(),1);function jk({card:e}){return(0,as.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-reasons",children:[e.title?(0,as.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,as.jsx)("ul",{className:"ss-w-fandash-reason-list",children:e.data.angles.map((t,n)=>(0,as.jsx)("li",{className:"ss-w-fandash-reason-item",children:t},`${t}-${n}`))})]})}var ls=S(T(),1);function _k({card:e}){return(0,ls.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-watch",children:[e.title?(0,ls.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,ls.jsx)("span",{className:"ss-w-fandash-stations",children:e.data.stations.map((t,n)=>(0,ls.jsx)("span",{className:"ss-w-fandash-station-chip",children:t},`${t}-${n}`))})]})}var fn=S(T(),1);function Wk({card:e,onTap:t}){return(0,fn.jsxs)("button",{type:"button",className:"ss-w-fandash-card ss-w-fandash-card--tap ss-w-fandash-congested",onClick:()=>t(e),children:[e.title?(0,fn.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,fn.jsx)("div",{className:"ss-w-fandash-congested-grid",children:e.data.entries.map((n,r)=>(0,fn.jsxs)("span",{className:"ss-w-fandash-congested-cell",children:[(0,fn.jsx)("span",{className:"ss-w-fandash-congested-day",children:n.dayLabel}),(0,fn.jsx)("span",{className:"ss-w-fandash-congested-opponent",children:n.opponent}),(0,fn.jsx)("span",{className:"ss-w-fandash-congested-comp",children:n.competition}),(0,fn.jsx)("span",{className:"ss-w-fandash-congested-time",children:n.timeLabel})]},`${n.opponent}-${r}`))}),(0,fn.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var et=S(T(),1);function Xk({rows:e}){return e.length===0?(0,et.jsx)("span",{className:"ss-w-fandash-transfers-empty",children:"None"}):(0,et.jsx)("ul",{className:"ss-w-fandash-transfer-list",children:e.map((t,n)=>(0,et.jsxs)("li",{className:"ss-w-fandash-transfer-row",children:[(0,et.jsx)("span",{className:"ss-w-fandash-transfer-name",children:t.playerName}),(0,et.jsx)("span",{className:"ss-w-fandash-transfer-club",children:t.otherClub}),t.type?(0,et.jsx)("span",{className:"ss-w-fandash-transfer-type",children:t.type}):null]},`${t.playerName}-${n}`))})}function Jk({card:e}){let{data:t}=e;return(0,et.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-transfers",children:[e.title?(0,et.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,et.jsxs)("div",{className:"ss-w-fandash-transfers-cols",children:[(0,et.jsxs)("div",{className:"ss-w-fandash-transfers-col",children:[(0,et.jsx)("span",{className:"ss-w-fandash-transfers-col-head",children:"In"}),(0,et.jsx)(Xk,{rows:t.in})]}),(0,et.jsxs)("div",{className:"ss-w-fandash-transfers-col",children:[(0,et.jsx)("span",{className:"ss-w-fandash-transfers-col-head",children:"Out"}),(0,et.jsx)(Xk,{rows:t.out})]})]})]})}var Yn=S(T(),1);function qk({card:e}){return(0,Yn.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-links",children:[e.title?(0,Yn.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Yn.jsx)("div",{className:"ss-w-fandash-link-grid",children:e.data.links.map((t,n)=>(0,Yn.jsxs)("a",{className:"ss-w-fandash-link-tile",href:t.url,target:"_blank",rel:"noopener noreferrer",children:[(0,Yn.jsx)("span",{className:"ss-w-fandash-link-label",children:t.label}),(0,Yn.jsx)("span",{className:"ss-w-fandash-link-chevron",children:(0,Yn.jsx)(yl,{})})]},`${t.url}-${n}`))})]})}var Yk=S(de(),1),Ue=S(T(),1);function YT(e){return e.trim().slice(0,3).toUpperCase()}function Kk({url:e,name:t,side:n}){let[r,i]=(0,Yk.useState)(!1),s=`ss-w-fandash-postmatch-crest ss-w-fandash-postmatch-crest--${n}`;return e&&!r?(0,Ue.jsx)("img",{className:s,src:e,alt:"","aria-hidden":"true",onError:()=>i(!0)}):(0,Ue.jsx)("span",{className:`${s} ss-w-fandash-postmatch-crest--fallback`,"aria-hidden":"true",children:YT(t)})}function Gk({card:e}){let{data:t}=e,n=t.homeScore>=t.awayScore,r=t.awayScore>=t.homeScore;return(0,Ue.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-postmatch-result",children:[(0,Ue.jsxs)("div",{className:"ss-w-fandash-postmatch-top",children:[e.title?(0,Ue.jsx)("span",{className:"ss-w-fandash-postmatch-pill",children:e.title}):null,(0,Ue.jsx)("span",{className:`ss-w-fandash-postmatch-tag ss-w-fandash-postmatch-tag--${t.outcome}`,children:t.resultLabel})]}),(0,Ue.jsxs)("div",{className:"ss-w-fandash-postmatch-main",children:[(0,Ue.jsxs)("div",{className:"ss-w-fandash-postmatch-side ss-w-fandash-postmatch-side--home",children:[(0,Ue.jsx)(Kk,{url:t.homeCrestUrl,name:t.homeName,side:"home"}),(0,Ue.jsx)("span",{className:"ss-w-fandash-postmatch-team-name",children:t.homeName})]}),(0,Ue.jsxs)("div",{className:"ss-w-fandash-postmatch-score-main",children:[(0,Ue.jsx)("span",{className:`ss-w-fandash-postmatch-score-value ss-w-fandash-postmatch-score-value--${n?"win":"lose"}`,children:t.homeScore}),(0,Ue.jsx)("span",{className:"ss-w-fandash-postmatch-score-sep",children:"\u2013"}),(0,Ue.jsx)("span",{className:`ss-w-fandash-postmatch-score-value ss-w-fandash-postmatch-score-value--${r?"win":"lose"}`,children:t.awayScore})]}),(0,Ue.jsxs)("div",{className:"ss-w-fandash-postmatch-side ss-w-fandash-postmatch-side--away",children:[(0,Ue.jsx)(Kk,{url:t.awayCrestUrl,name:t.awayName,side:"away"}),(0,Ue.jsx)("span",{className:"ss-w-fandash-postmatch-team-name",children:t.awayName})]})]}),(0,Ue.jsxs)("div",{className:"ss-w-fandash-postmatch-meta",children:[t.kickoffLabel,t.competition?` \xB7 ${t.competition}`:""]})]})}var Gn=S(T(),1);function Zk({card:e,onTap:t}){return(0,Gn.jsxs)("button",{type:"button",className:"ss-w-fandash-card ss-w-fandash-card--tap ss-w-fandash-postmatch-goals",onClick:()=>t(e),children:[e.title?(0,Gn.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Gn.jsx)("ul",{className:"ss-w-fandash-postmatch-goal-list",children:e.data.goals.map((n,r)=>(0,Gn.jsxs)("li",{className:n.scoredByClub?"ss-w-fandash-postmatch-goal ss-w-fandash-postmatch-goal--club":"ss-w-fandash-postmatch-goal",children:[(0,Gn.jsx)("span",{className:"ss-w-fandash-postmatch-goal-ball"}),(0,Gn.jsx)("span",{children:n.text})]},`${n.text}-${r}`))}),(0,Gn.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var We=S(T(),1);function GT(e,t){let n=e+t;if(n<=0)return{home:"50%",away:"50%"};let r=Math.round(e/n*1e3)/10;return{home:`${r}%`,away:`${Math.round((100-r)*10)/10}%`}}function $k({card:e,onTap:t}){let{data:n}=e;return(0,We.jsxs)("button",{type:"button",className:"ss-w-fandash-card ss-w-fandash-card--tap ss-w-fandash-postmatch-stats",onClick:()=>t(e),children:[e.title?(0,We.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,We.jsx)("div",{className:"ss-w-fandash-postmatch-stat-rows",children:n.rows.map((r,i)=>{let s=n.clubIsHome?r.clubValue:r.oppValue,o=n.clubIsHome?r.oppValue:r.clubValue,a=n.clubIsHome?r.clubNum:r.oppNum,l=n.clubIsHome?r.oppNum:r.clubNum,{home:u,away:c}=GT(a,l);return(0,We.jsxs)("div",{className:"ss-w-fandash-postmatch-stat",children:[(0,We.jsxs)("div",{className:"ss-w-fandash-postmatch-stat-row",children:[(0,We.jsx)("span",{className:"ss-w-fandash-postmatch-stat-value ss-w-fandash-postmatch-stat-value--home",children:s}),(0,We.jsx)("span",{className:"ss-w-fandash-postmatch-stat-label",children:r.label}),(0,We.jsx)("span",{className:"ss-w-fandash-postmatch-stat-value ss-w-fandash-postmatch-stat-value--away",children:o})]}),(0,We.jsxs)("div",{className:"ss-w-fandash-postmatch-stat-bar",children:[(0,We.jsx)("span",{className:"ss-w-fandash-postmatch-stat-bar-home",style:{width:u}}),(0,We.jsx)("span",{className:"ss-w-fandash-postmatch-stat-bar-away",style:{width:c}})]})]},`${r.label}-${i}`)})}),n.rows.length>0?(0,We.jsxs)("div",{className:"ss-w-fandash-postmatch-legend",children:[(0,We.jsxs)("span",{className:"ss-w-fandash-postmatch-legend-item",children:[(0,We.jsx)("i",{className:"ss-w-fandash-postmatch-legend-swatch ss-w-fandash-postmatch-legend-swatch--home"}),n.homeName]}),(0,We.jsxs)("span",{className:"ss-w-fandash-postmatch-legend-item",children:[(0,We.jsx)("i",{className:"ss-w-fandash-postmatch-legend-swatch ss-w-fandash-postmatch-legend-swatch--away"}),n.awayName]})]}):null,(0,We.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var Zn=S(T(),1);function ZT(e){let t=e.trim().split(/\s+/).filter(Boolean);if(t.length===0)return"?";let n=t[0].charAt(0),r=t[t.length-1].charAt(0);return(t.length>1?`${n}${r}`:n).toUpperCase()}function eb({card:e,onTap:t}){let{data:n}=e;return(0,Zn.jsxs)("button",{type:"button",className:"ss-w-fandash-card ss-w-fandash-card--tap ss-w-fandash-postmatch-performer",onClick:()=>t(e),children:[e.title?(0,Zn.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Zn.jsxs)("div",{className:"ss-w-fandash-postmatch-perf-row",children:[(0,Zn.jsx)("span",{className:"ss-w-fandash-postmatch-perf-avatar","aria-hidden":"true",children:ZT(n.playerName)}),(0,Zn.jsx)("span",{className:"ss-w-fandash-postmatch-perf-name",children:n.playerName}),(0,Zn.jsx)("span",{className:"ss-w-fandash-postmatch-perf-rating",children:n.ratingLabel})]}),(0,Zn.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var us=S(T(),1);function tb({card:e}){let{data:t}=e;return(0,us.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-postmatch-next",children:[e.title?(0,us.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,us.jsx)("div",{className:"ss-w-fandash-postmatch-next-row",children:(0,us.jsx)("span",{className:"ss-w-fandash-postmatch-next-when",children:t.whenLabel})})]})}var Lr=S(T(),1);function nb({card:e,onTap:t}){let{data:n}=e;return(0,Lr.jsxs)("button",{type:"button",className:"ss-w-fandash-card ss-w-fandash-card--tap ss-w-fandash-resting-next",onClick:()=>t(e),children:[e.title?(0,Lr.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Lr.jsxs)("div",{className:"ss-w-fandash-resting-next-row",children:[(0,Lr.jsx)("span",{className:"ss-w-fandash-resting-next-when",children:n.whenLabel}),n.competition?(0,Lr.jsx)("span",{className:"ss-w-fandash-resting-next-competition",children:n.competition}):null]}),(0,Lr.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var Mr=S(T(),1);function rb({card:e,onTap:t}){let{data:n}=e;return(0,Mr.jsxs)("button",{type:"button",className:"ss-w-fandash-card ss-w-fandash-card--tap ss-w-fandash-resting-standings",onClick:()=>t(e),children:[e.title?(0,Mr.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Mr.jsxs)("div",{className:"ss-w-fandash-resting-standings-row",children:[(0,Mr.jsx)("span",{className:"ss-w-fandash-resting-standings-position",children:n.positionLabel}),(0,Mr.jsx)("span",{className:"ss-w-fandash-resting-standings-record",children:n.recordLabel})]}),(0,Mr.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var $n=S(T(),1);function ib({card:e,onTap:t}){let{data:n}=e;return(0,$n.jsxs)("button",{type:"button",className:"ss-w-fandash-card ss-w-fandash-card--tap ss-w-fandash-resting-season",onClick:()=>t(e),children:[e.title?(0,$n.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,$n.jsxs)("div",{className:"ss-w-fandash-resting-season-rows",children:[n.scorerLabel?(0,$n.jsx)("span",{className:"ss-w-fandash-resting-season-row",children:n.scorerLabel}):null,n.playerLabel?(0,$n.jsx)("span",{className:"ss-w-fandash-resting-season-row",children:n.playerLabel}):null,(0,$n.jsx)("span",{className:"ss-w-fandash-resting-season-row",children:n.tallyLabel})]}),(0,$n.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var cs=S(T(),1);function $T(e){let t=e.toUpperCase();return t==="W"?"ss-w-fandash-form-pill--win":t==="L"?"ss-w-fandash-form-pill--loss":"ss-w-fandash-form-pill--draw"}function sb({card:e}){let{data:t}=e;return(0,cs.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-resting-form",children:[e.title?(0,cs.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,cs.jsx)("span",{className:"ss-w-fandash-form",children:t.letters.map((n,r)=>(0,cs.jsx)("span",{className:`ss-w-fandash-form-pill ${$T(n)}`,children:n},`${n}-${r}`))})]})}var au=S(de(),1);var ou=S(de(),1),ob=6e4,eN=15;function Mf(e,t,n){if(!t)return e;let r=Math.floor((Date.now()-n)/ob);return e+Math.min(Math.max(0,r),eN)}function ab(e,t,n){let[r,i]=(0,ou.useState)(()=>Mf(e,t,n));return(0,ou.useEffect)(()=>{if(i(Mf(e,t,n)),!t)return;let s=window.setInterval(()=>{i(Mf(e,t,n))},ob);return()=>window.clearInterval(s)},[e,t,n]),r}var Ae=S(T(),1);function tN(e){return e.trim().slice(0,3).toUpperCase()}function lb({url:e,name:t,side:n}){let[r,i]=(0,au.useState)(!1),s=`ss-w-fandash-live-crest ss-w-fandash-live-crest--${n}`;return e&&!r?(0,Ae.jsx)("img",{className:s,src:e,alt:"","aria-hidden":"true",onError:()=>i(!0)}):(0,Ae.jsx)("span",{className:`${s} ss-w-fandash-live-crest--fallback`,"aria-hidden":"true",children:tN(t)})}function nN(e){if(!e||e.length===0)return null;let t=e.filter(n=>n.type==="goal"&&n.player);return t.length===0?null:t.slice().sort((n,r)=>n.minute-r.minute).map(n=>`${n.player} ${n.minuteLabel}`).join(", ")}function ub({card:e,goalEvents:t}){let{data:n}=e,r=`${n.minute}:${n.homeScore}:${n.awayScore}`,i=(0,au.useRef)(null);(!i.current||i.current.key!==r)&&(i.current={key:r,receivedAtMs:Date.now()});let s=ab(n.minute,n.clockRunning,i.current.receivedAtMs),o=n.minuteLabel.replace(/^\d+/,""),a=nN(t);return(0,Ae.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-live-score",children:[e.title?(0,Ae.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Ae.jsxs)("div",{className:"ss-w-fandash-live-top",children:[(0,Ae.jsxs)("span",{className:"ss-w-fandash-live-pill",children:[(0,Ae.jsx)("span",{className:"ss-w-fandash-live-dot","aria-hidden":"true"}),n.statusLabel]}),(0,Ae.jsx)("span",{className:"ss-w-fandash-live-minute",children:`${s}${o}`}),n.competition?(0,Ae.jsx)("span",{className:"ss-w-fandash-live-competition",children:n.competition}):null]}),(0,Ae.jsxs)("div",{className:"ss-w-fandash-live-main",children:[(0,Ae.jsxs)("div",{className:"ss-w-fandash-live-side ss-w-fandash-live-side--home",children:[(0,Ae.jsx)(lb,{url:n.homeCrestUrl,name:n.homeName,side:"home"}),(0,Ae.jsx)("span",{className:"ss-w-fandash-live-team-name",children:n.homeName})]}),(0,Ae.jsxs)("div",{className:"ss-w-fandash-live-score-main",children:[(0,Ae.jsx)("span",{className:"ss-w-fandash-live-score-value",children:n.homeScore}),(0,Ae.jsx)("span",{className:"ss-w-fandash-live-score-sep",children:"\u2013"}),(0,Ae.jsx)("span",{className:"ss-w-fandash-live-score-value",children:n.awayScore})]}),(0,Ae.jsxs)("div",{className:"ss-w-fandash-live-side ss-w-fandash-live-side--away",children:[(0,Ae.jsx)(lb,{url:n.awayCrestUrl,name:n.awayName,side:"away"}),(0,Ae.jsx)("span",{className:"ss-w-fandash-live-team-name",children:n.awayName})]})]}),a?(0,Ae.jsxs)("div",{className:"ss-w-fandash-live-scorers",children:[(0,Ae.jsx)("span",{className:"ss-w-fandash-live-scorers-icon","aria-hidden":"true",children:"\u26BD"}),a]}):null]})}var db=S(de(),1),Te=S(T(),1),cb=3;function rN({type:e}){return e==="goal"?(0,Te.jsx)("span",{className:"ss-w-fandash-live-tl-ico ss-w-fandash-live-tl-ico--goal","aria-hidden":"true",children:(0,Te.jsx)("span",{className:"ss-w-fandash-live-tl-ball"})}):e==="yellow"||e==="red"?(0,Te.jsx)("span",{className:"ss-w-fandash-live-tl-ico","aria-hidden":"true",children:(0,Te.jsx)("span",{className:`ss-w-fandash-live-tl-card ss-w-fandash-live-tl-card--${e}`})}):e==="sub"?(0,Te.jsx)("span",{className:"ss-w-fandash-live-tl-ico","aria-hidden":"true",children:(0,Te.jsx)("span",{className:"ss-w-fandash-live-tl-subarrows",children:"\u21C5"})}):(0,Te.jsx)("span",{className:"ss-w-fandash-live-tl-ico","aria-hidden":"true",children:(0,Te.jsx)("span",{className:"ss-w-fandash-live-tl-dot"})})}function iN({e}){var t,n;return e.type==="sub"?(0,Te.jsxs)("span",{className:"ss-w-fandash-live-tl-who",children:[(t=e.player)!=null?t:e.text,e.playerOff?(0,Te.jsxs)("span",{className:"ss-w-fandash-live-tl-off",children:[" for ",e.playerOff]}):null]}):(0,Te.jsx)("span",{className:"ss-w-fandash-live-tl-who",children:(n=e.player)!=null?n:e.text})}function sN({e}){let t=["ss-w-fandash-live-tl-ev",e.side==="home"?"ss-w-fandash-live-tl-ev--home":"ss-w-fandash-live-tl-ev--away",e.type==="goal"?"ss-w-fandash-live-tl-ev--goal":""].filter(Boolean).join(" ");return(0,Te.jsxs)("div",{className:t,children:[(0,Te.jsxs)("span",{className:"ss-w-fandash-live-tl-txt",children:[(0,Te.jsx)(iN,{e}),(0,Te.jsx)(rN,{type:e.type})]}),(0,Te.jsx)("span",{className:"ss-w-fandash-live-tl-badge",children:e.minuteLabel})]})}function pb({card:e,ui:t}){var c,d;let[n,r]=(0,db.useState)(!1),i=e.data.events;if(!i||i.length===0)return null;let s=[...i].sort((p,f)=>f.minute-p.minute),o=s.length-cb,a=n?s:s.slice(0,cb),l=(c=t==null?void 0:t.showMore)!=null?c:(p=>`Show ${p} more`),u=(d=t==null?void 0:t.showLess)!=null?d:"Show less";return(0,Te.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-live-timeline",children:[e.title?(0,Te.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Te.jsx)("div",{className:"ss-w-fandash-live-tl",children:a.map((p,f)=>(0,Te.jsx)(sN,{e:p},`${p.minute}-${p.side}-${p.type}-${f}`))}),o>0?(0,Te.jsx)("button",{type:"button",className:"ss-w-fandash-live-tl-more","aria-expanded":n,onClick:()=>r(p=>!p),children:n?u:l(o)}):null]})}var fb=S(de(),1),ct=S(T(),1),ds=270,Pf=56,Pr=Pf/2,oN=.26;function aN(e){var u,c;let t=e.length-1,n=d=>t===0?0:d/t*ds,r=d=>Pr-d*oN,i=e.map((d,p)=>`${n(p).toFixed(1)},${r(d.value).toFixed(1)}`),s=`M0,${Pr} L${i.join(" L")} L${ds},${Pr} Z`,o=`M${i.join(" L")}`,a=(c=(u=e[t])==null?void 0:u.value)!=null?c:0;return{area:s,line:o,lastLeftPct:t===0?0:100,lastTopPx:r(a)}}function lu({points:e,caption:t,clubIsHome:n}){if(e.length===0)return null;let{area:r,line:i,lastLeftPct:s,lastTopPx:o}=aN(e),a=(0,fb.useId)(),l=`${a}-top`,u=`${a}-bottom`,c=n?"ss-w-fandash-live-mom-home":"ss-w-fandash-live-mom-away",d=n?"ss-w-fandash-live-mom-away":"ss-w-fandash-live-mom-home";return(0,ct.jsxs)("div",{className:"ss-w-fandash-live-mom",children:[t?(0,ct.jsx)("span",{className:"ss-w-fandash-live-mom-caption",children:t}):null,(0,ct.jsxs)("div",{className:"ss-w-fandash-live-mom-plot",children:[(0,ct.jsxs)("svg",{className:"ss-w-fandash-live-mom-svg",viewBox:`0 0 ${ds} ${Pf}`,preserveAspectRatio:"none",role:"img","aria-label":t!=null?t:"Momentum",children:[(0,ct.jsxs)("defs",{children:[(0,ct.jsx)("clipPath",{id:l,children:(0,ct.jsx)("rect",{x:0,y:0,width:ds,height:Pr})}),(0,ct.jsx)("clipPath",{id:u,children:(0,ct.jsx)("rect",{x:0,y:Pr,width:ds,height:Pf-Pr})})]}),(0,ct.jsx)("path",{d:r,className:c,clipPath:`url(#${l})`}),(0,ct.jsx)("path",{d:r,className:d,clipPath:`url(#${u})`}),(0,ct.jsx)("line",{x1:0,y1:Pr,x2:ds,y2:Pr,className:"ss-w-fandash-live-mom-base"}),(0,ct.jsx)("path",{d:i,className:"ss-w-fandash-live-mom-line",vectorEffect:"non-scaling-stroke"})]}),(0,ct.jsx)("span",{className:"ss-w-fandash-live-mom-now",style:{left:`clamp(4px, ${s}%, calc(100% - 4px))`,top:`${o}px`},"aria-hidden":"true"})]})]})}var Qe=S(T(),1);function lN(e,t){let n=e+t;if(n<=0)return{home:"50%",away:"50%"};let r=Math.round(e/n*1e3)/10;return{home:`${r}%`,away:`${Math.round((100-r)*10)/10}%`}}function mb({card:e}){let{data:t}=e;return(0,Qe.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-live-stats",children:[e.title?(0,Qe.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Qe.jsx)("div",{className:"ss-w-fandash-live-stat-rows",children:t.rows.map((n,r)=>{let i=t.clubIsHome?n.clubValue:n.oppValue,s=t.clubIsHome?n.oppValue:n.clubValue,o=t.clubIsHome?n.clubNum:n.oppNum,a=t.clubIsHome?n.oppNum:n.clubNum,{home:l,away:u}=lN(o,a);return(0,Qe.jsxs)("div",{className:"ss-w-fandash-live-stat",children:[(0,Qe.jsxs)("div",{className:"ss-w-fandash-live-stat-row",children:[(0,Qe.jsx)("span",{className:"ss-w-fandash-live-stat-value ss-w-fandash-live-stat-value--home",children:i}),(0,Qe.jsx)("span",{className:"ss-w-fandash-live-stat-label",children:n.label}),(0,Qe.jsx)("span",{className:"ss-w-fandash-live-stat-value ss-w-fandash-live-stat-value--away",children:s})]}),(0,Qe.jsxs)("div",{className:"ss-w-fandash-live-bar",children:[(0,Qe.jsx)("span",{className:"ss-w-fandash-live-bar-home",style:{width:l}}),(0,Qe.jsx)("span",{className:"ss-w-fandash-live-bar-away",style:{width:u}})]})]},`${n.label}-${r}`)})}),t.momentum.length>0?(0,Qe.jsx)(lu,{points:t.momentum,caption:t.momentumLabel,clubIsHome:t.clubIsHome}):t.momentumLabel?(0,Qe.jsx)("span",{className:"ss-w-fandash-live-momentum",children:t.momentumLabel}):null,t.rows.length>0?(0,Qe.jsxs)("div",{className:"ss-w-fandash-live-legend",children:[(0,Qe.jsxs)("span",{className:"ss-w-fandash-live-legend-item",children:[(0,Qe.jsx)("i",{className:"ss-w-fandash-live-legend-swatch ss-w-fandash-live-legend-swatch--home"}),t.homeName]}),(0,Qe.jsxs)("span",{className:"ss-w-fandash-live-legend-item",children:[(0,Qe.jsx)("i",{className:"ss-w-fandash-live-legend-swatch ss-w-fandash-live-legend-swatch--away"}),t.awayName]})]}):null]})}var xe=S(T(),1);function hb({dashboard:e,onTap:t,ui:n}){let r=[...e.cards.filter(o=>o.cardType==="countdown"),...e.cards.filter(o=>o.cardType!=="countdown")],i=e.cards.find(o=>o.cardType==="liveTimeline"),s=i==null?void 0:i.data.events.filter(o=>o.type==="goal");return(0,xe.jsxs)("div",{className:"ss-w-fandash",children:[e.greeting?(0,xe.jsx)("span",{className:e.greetingIsLead?"ss-w-fandash-greeting ss-w-fandash-greeting--lead":"ss-w-fandash-greeting",children:e.greeting}):null,(0,xe.jsx)("div",{className:"ss-w-fandash-cards",children:r.map((o,a)=>(0,xe.jsx)(uN,{card:o,onTap:t,ui:n,goalEvents:s},`${o.cardType}-${a}`))})]})}function uN({card:e,onTap:t,ui:n,goalEvents:r}){switch(e.cardType){case"fixture":return(0,xe.jsx)(Bk,{card:e});case"countdown":return(0,xe.jsx)(Fk,{card:e});case"injuries":return(0,xe.jsx)(Vk,{card:e,ui:n});case"reasonToBet":return(0,xe.jsx)(jk,{card:e});case"whereToWatch":return(0,xe.jsx)(_k,{card:e});case"congestedWeek":return(0,xe.jsx)(Wk,{card:e,onTap:t});case"transfers":return(0,xe.jsx)(Jk,{card:e});case"links":return(0,xe.jsx)(qk,{card:e});case"postMatchResult":return(0,xe.jsx)(Gk,{card:e});case"postMatchGoals":return(0,xe.jsx)(Zk,{card:e,onTap:t});case"postMatchStats":return(0,xe.jsx)($k,{card:e,onTap:t});case"postMatchTopPerformer":return(0,xe.jsx)(eb,{card:e,onTap:t});case"postMatchNext":return(0,xe.jsx)(tb,{card:e});case"restingNext":return(0,xe.jsx)(nb,{card:e,onTap:t});case"restingStandings":return(0,xe.jsx)(rb,{card:e,onTap:t});case"restingSeason":return(0,xe.jsx)(ib,{card:e,onTap:t});case"restingForm":return(0,xe.jsx)(sb,{card:e});case"liveScore":return(0,xe.jsx)(ub,{card:e,goalEvents:r});case"liveTimeline":return(0,xe.jsx)(pb,{card:e,ui:n});case"liveStats":return(0,xe.jsx)(mb,{card:e});default:return null}}var Ht=S(T(),1);function gb({message:e,disabled:t,onAct:n,onTap:r,ui:i,slip:s,monitor:o}){if(e.role==="user")return(0,Ht.jsx)("div",{className:"ss-w-msg ss-w-user","data-msg-id":e.id,children:(0,Ht.jsx)("div",{className:"ss-w-bubble",children:e.text})});let a=l=>{n({message:l.actionLabel,actionRef:l.actionRef,label:l.actionLabel||l.title||""})};return(0,Ht.jsxs)("div",{className:"ss-w-msg ss-w-bot","data-msg-id":e.id,children:[e.text&&!e.greetingDashboard&&!e.clubFanDashboard?(0,Ht.jsx)(xk,{text:e.text}):null,e.greetingDashboard&&!e.clubFanDashboard?(0,Ht.jsx)(Ok,{dashboard:e.greetingDashboard,onTap:r}):null,e.clubFanDashboard?(0,Ht.jsx)(hb,{dashboard:e.clubFanDashboard,onTap:a,ui:i}):null,(0,Ht.jsx)(Ck,{cards:e.cards,disabled:t,showLessLabel:i==null?void 0:i.showLess,showMoreLabel:i==null?void 0:i.showMore}),(0,Ht.jsx)(Lk,{insights:e.insights,ui:i,slip:s,monitor:o}),(0,Ht.jsx)(os,{cards:e.marketOdds,ui:i,slip:s,monitor:o}),(0,Ht.jsx)(iu,{cards:e.oddsMovement,ui:i,monitor:o}),(0,Ht.jsx)(su,{actions:e.actions,loading:!1,disabled:t,onAct:n})]})}var Rf=S(T(),1);function wb({chips:e,onPick:t}){return e.length===0?null:(0,Rf.jsx)("div",{className:"ss-w-chips",children:e.map((n,r)=>(0,Rf.jsx)("button",{type:"button",className:"ss-w-chip",onClick:()=>t(n.text),children:n.text},`${n.text}-${r}`))})}function yb(e,t=48){return e.scrollHeight-e.scrollTop-e.clientHeight<=t}var mn=S(T(),1);function cN(e){let t=e[e.length-1];if(!t||t.role!=="assistant")return null;let n=e[e.length-2];return{turnId:t.id,anchorId:n&&n.role==="user"?n.id:t.id}}function xb({controller:e,ui:t,slip:n,onDashboardTap:r,monitor:i}){let{state:s,send:o}=e,a=(0,pi.useRef)(null),l=(0,pi.useRef)(null),u=(0,pi.useRef)(!0),c=(0,pi.useRef)(null);(0,pi.useEffect)(()=>{var w,C;let f=cN(s.messages),h=a.current;if(f&&f.turnId!==c.current){c.current=f.turnId,l.current&&h&&(l.current.style.height=s.isStreaming?`${h.clientHeight}px`:""),u.current=!1,(w=h==null?void 0:h.querySelector(`[data-msg-id="${f.anchorId}"]`))==null||w.scrollIntoView({block:"start"});return}!s.isStreaming&&l.current&&(l.current.style.height=""),u.current&&((C=l.current)==null||C.scrollIntoView({block:"end"}))},[s.messages,s.status,s.isStreaming]);let d=s.messages.some(f=>f.role==="user"),p=s.messages.some(f=>f.role==="assistant"&&(f.greetingDashboard||f.clubFanDashboard));return(0,mn.jsxs)("div",{className:"ss-w-list","aria-live":"polite",ref:a,onScroll:()=>{a.current&&(u.current=yb(a.current))},children:[s.messages.map(f=>(0,mn.jsx)(gb,{message:f,disabled:s.isStreaming,onAct:h=>o(h.message,{actionId:h.actionId,actionRef:h.actionRef,displayText:h.label}),onTap:(h,w)=>{o(h.actionValue,h.actionRef?{actionRef:h.actionRef,displayText:h.title}:{displayText:h.title}),f.role==="assistant"&&f.greetingDashboard&&(r==null||r(h,w,f.greetingDashboard.layout))},ui:t,slip:n,monitor:i},f.id)),s.isStreaming&&s.actionsLoading?(0,mn.jsx)(su,{actions:[],loading:!0,onAct:()=>{}}):null,s.status?(0,mn.jsx)("div",{className:"ss-w-status",children:s.status}):null,s.error?(0,mn.jsxs)("div",{className:"ss-w-error",role:"alert",children:[(0,mn.jsx)("span",{children:"message"in s.error?s.error.message:t.somethingWentWrong}),(0,mn.jsx)("button",{type:"button",className:"ss-w-retry",onClick:()=>e.retry(),children:t.retry})]}):null,!d&&!p?(0,mn.jsx)(wb,{chips:s.starters,onPick:f=>o(f)}):null,(0,mn.jsx)("div",{ref:l,className:"ss-w-turn-spacer","aria-hidden":"true"})]})}var vb=S(de(),1);var Rr=S(T(),1);function kb({placeholder:e,streaming:t,onSend:n,onStop:r,stopLabel:i="Stop response",sendLabel:s="Send message"}){let[o,a]=(0,vb.useState)(""),l=()=>{let c=o.trim();c&&(n(c),a(""))};return(0,Rr.jsxs)("div",{className:"ss-w-input",children:[(0,Rr.jsx)("textarea",{className:"ss-w-textarea",rows:1,placeholder:e,value:o,disabled:t,onChange:c=>a(c.target.value),onKeyDown:c=>{c.key==="Enter"&&!c.shiftKey&&(c.preventDefault(),l())}}),t?(0,Rr.jsx)("button",{type:"button",className:"ss-w-send ss-w-stop","aria-label":i,onClick:r,children:(0,Rr.jsx)("span",{className:"ss-w-stop-glyph"})}):(0,Rr.jsx)("button",{type:"button",className:"ss-w-send","aria-label":s,onClick:l,children:(0,Rr.jsx)(Ay,{})})]})}var ps=S(T(),1);function bb({monitor:e,ui:t,matchCount:n,oddsCount:r,todayCount:i,hasToday:s}){let o=[{tab:"chat",label:t.tabChat,count:0,dot:e.chatDot},...s?[{tab:"today",label:t.tabToday,count:i,dot:e.todayDot}]:[],...n>0?[{tab:"following",label:t.tabFollowing,count:n,dot:e.matchesDot}]:[],...r>0?[{tab:"odds",label:t.tabOdds,count:r,dot:e.oddsDot}]:[]];return o.length<2?null:(0,ps.jsx)("div",{className:"ss-w-tabs",role:"tablist",children:o.map(({tab:a,label:l,count:u,dot:c})=>{let d=e.activeTab===a;return(0,ps.jsxs)("button",{type:"button",role:"tab","aria-selected":d,"data-on":d?"":void 0,className:"ss-w-tab",onClick:()=>e.setActiveTab(a),children:[l,u>0&&(0,ps.jsx)("span",{className:"ss-w-tab-count",children:u}),c&&!d&&(0,ps.jsx)("span",{className:"ss-w-tab-dot","aria-hidden":"true"})]},a)})})}var dt=S(T(),1);function Cb({match:e,monitor:t,ui:n,slip:r}){var o,a;let i=(o=e.availableMarkets)!=null?o:[];if(i.length===0)return null;let s=(a=t.openMarket[e.matchId])!=null?a:null;return(0,dt.jsx)("div",{className:"ss-w-acc",children:i.map(l=>{var p,f,h;let u=s===l.marketDeveloperName&&!l.suspended,c=`${e.matchId}:${l.marketDeveloperName}`,d=t.marketOdds[c];return(0,dt.jsxs)("div",{className:u?"ss-w-acc-row ss-w-acc-row-open":"ss-w-acc-row",children:[(0,dt.jsxs)("div",{className:"ss-w-acc-head",children:[(0,dt.jsxs)("button",{type:"button",className:l.suspended?"ss-w-acc-toggle ss-w-acc-toggle--susp":"ss-w-acc-toggle","aria-expanded":u,disabled:l.suspended,onClick:()=>t.toggleMarket(e.matchId,l.marketDeveloperName),children:[(0,dt.jsx)("span",{className:"ss-w-acc-chevron",children:l.suspended?"":u?"\u25BE":"\u25B8"}),(0,dt.jsx)("span",{className:"ss-w-acc-label",children:l.marketLabel}),l.hasInsight&&(0,dt.jsx)("span",{className:"ss-w-acc-badge",children:"\u2605"}),l.suspended&&(0,dt.jsx)("span",{className:"ss-w-acc-susp",children:n.accordionSuspended})]}),(0,dt.jsx)(Mt,{ui:n,monitor:t,pin:{kind:"market",matchId:e.matchId,marketDeveloperName:l.marketDeveloperName}})]}),u&&(0,dt.jsxs)("div",{className:"ss-w-acc-panel",children:[(d==null?void 0:d.error)&&(0,dt.jsx)("div",{className:"ss-w-acc-retry",onClick:()=>t.retryMarket(e.matchId,l.marketDeveloperName),children:n.accordionRetry}),((f=(p=d==null?void 0:d.block)==null?void 0:p.insight)==null?void 0:f.text)&&(0,dt.jsxs)("div",{className:"ss-w-acc-insight",children:[(0,dt.jsx)("span",{className:"ss-w-acc-badge",children:n.accordionValueLabel})," ",d.block.insight.text]}),((h=d==null?void 0:d.block)==null?void 0:h.card)&&(0,dt.jsx)(os,{cards:[_i(d.block.card)],ui:n,slip:r,monitor:t,inSlipIds:t.inSlip,hideHeader:!0})]})]},l.marketDeveloperName)})})}var ee=S(T(),1);function dN(e,t,n){let r=e.market;if(!r||!r.addToSlipEnabled||typeof r.matchOddsId!="number"||typeof r.price!="number")return null;let i={matchOddsId:r.matchOddsId,matchId:t,oddsDecimal:r.price};return n!==void 0&&(i.conversationId=n),i}function Df(e,t){let n=e.market;return n?t.some(r=>r.marketDeveloperName===n.marketDeveloperName||n.matchOddsId!=null&&r.matchOddsId===n.matchOddsId):!1}function pN(e){return new Date(e).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}function Ab({match:e,promotedPins:t,monitor:n,ui:r,slip:i}){var d,p,f,h;let s=e.phase==="live",o=e.events.filter(w=>w.type==="goal"),a=e.statRows.filter(w=>Df(w,t)),l=e.statRows.filter(w=>!Df(w,t)),u=[...a,...l],c=e.phase==="preMatch"&&e.kickoffUtc?r.bettingKickoff(e.kickoffUtc):void 0;return(0,ee.jsxs)("div",{className:"ss-w-mon",children:[(0,ee.jsxs)("div",{className:"ss-w-mon-top",children:[s&&(0,ee.jsxs)("span",{className:"ss-w-fandash-live-pill",children:[(0,ee.jsx)("span",{className:"ss-w-fandash-live-dot","aria-hidden":"true"}),r.liveLabel]}),e.phase==="fullTime"&&(0,ee.jsx)("span",{className:"ss-w-mon-pill",children:r.fullTimeLabel}),c&&(0,ee.jsxs)("span",{className:"ss-w-mon-pill",children:[c.dayLabel," \xB7 ",c.time]}),s&&e.minuteLabel&&(0,ee.jsx)("span",{className:"ss-w-mon-min",children:e.minuteLabel}),e.competitionName&&(0,ee.jsx)("span",{className:"ss-w-mon-comp",children:e.competitionName}),(0,ee.jsx)(Mt,{ui:r,monitor:n,pin:{kind:"match",matchId:e.matchId}})]}),(0,ee.jsxs)("div",{className:"ss-w-mon-main",children:[(0,ee.jsxs)("span",{className:"ss-w-mon-side",children:[(0,ee.jsx)(Be,{kind:"team",url:(d=e.homeCrestUrl)!=null?d:void 0,name:(p=e.homeTeamName)!=null?p:void 0}),(0,ee.jsx)("span",{className:"ss-w-mon-name",children:e.homeTeamName})]}),e.phase==="preMatch"?(0,ee.jsx)("span",{className:"ss-w-mon-vs",children:"vs"}):(0,ee.jsxs)("span",{className:"ss-w-mon-score",children:[e.homeScore,(0,ee.jsx)("i",{children:"\u2013"}),e.awayScore]}),(0,ee.jsxs)("span",{className:"ss-w-mon-side ss-w-mon-side--away",children:[(0,ee.jsx)(Be,{kind:"team",url:(f=e.awayCrestUrl)!=null?f:void 0,name:(h=e.awayTeamName)!=null?h:void 0}),(0,ee.jsx)("span",{className:"ss-w-mon-name",children:e.awayTeamName})]})]}),o.length>0&&(0,ee.jsx)("div",{className:"ss-w-mon-scorers",children:o.map(w=>{var C;return`${(C=w.player)!=null?C:""} ${w.minuteLabel}`}).join(", ")}),(0,ee.jsx)("div",{className:"ss-w-mon-stats",children:u.map(w=>{let C=w.homeNum+w.awayNum,m=C>0?w.homeNum/C*75:0,g=C>0?w.awayNum/C*75:0,y=Df(w,t),A=dN(w,e.matchId,i.conversationId);return(0,ee.jsxs)("div",{className:y?"ss-w-mon-stat ss-w-mon-pstrip":"ss-w-mon-stat",children:[(0,ee.jsxs)("div",{className:"ss-w-mon-stat-row",children:[(0,ee.jsx)("span",{className:"ss-w-mon-stat-v ss-w-mon-stat-v--home",children:w.homeValue}),(0,ee.jsx)("span",{className:"ss-w-mon-stat-l",children:w.label}),(0,ee.jsx)("span",{className:"ss-w-mon-stat-v ss-w-mon-stat-v--away",children:w.awayValue})]}),(0,ee.jsxs)("div",{className:"ss-w-mon-bar",children:[(0,ee.jsx)("b",{className:"ss-w-mon-bar-home",style:{width:`${m}%`}}),(0,ee.jsx)("i",{className:"ss-w-mon-bar-away",style:{width:`${g}%`}})]}),w.market&&!w.market.isSuspended&&(0,ee.jsxs)("div",{className:y?"ss-w-mon-stat-mkt ss-w-mon-mkt":"ss-w-mon-stat-mkt",children:[(0,ee.jsxs)("span",{children:[w.market.marketLabel," \xB7 ",w.market.selectionLabel]}),(0,ee.jsxs)("span",{className:"ss-w-mon-stat-mkt-right",children:[typeof w.market.price=="number"&&(0,ee.jsx)("span",{className:"ss-w-mon-price",children:w.market.price.toFixed(2)}),(0,ee.jsx)(Po,{selection:A,shownOdds:typeof w.market.price=="number"?w.market.price.toFixed(2):"",marketName:w.market.marketLabel,marketDeveloperName:w.market.marketDeveloperName,slip:i,ui:r})]})]})]},w.label)})}),e.status==="stale"&&(0,ee.jsx)("span",{className:"ss-w-mon-asof",children:r.asOf(pN(e.asOfUtc))}),e.momentum.length>0&&(0,ee.jsxs)("div",{className:"ss-w-mon-mom",children:[(0,ee.jsxs)("div",{className:"ss-w-mon-stat-row",children:[(0,ee.jsx)("span",{className:"ss-w-mon-stat-v ss-w-mon-stat-v--home",children:typeof e.momentumHomePct=="number"?`${e.momentumHomePct}%`:""}),(0,ee.jsx)("span",{className:"ss-w-mon-stat-l",children:r.momentumLabel}),(0,ee.jsx)("span",{className:"ss-w-mon-stat-v ss-w-mon-stat-v--away",children:typeof e.momentumHomePct=="number"?`${100-e.momentumHomePct}%`:""})]}),(0,ee.jsx)(lu,{points:e.momentum,clubIsHome:!0})]}),e.phase==="fullTime"&&(0,ee.jsx)("div",{className:"ss-w-mon-grace",children:r.graceNote})]})}var He=S(T(),1);function fN({m:e,ui:t}){let n=e.phase!=="preMatch"&&typeof e.homeScore=="number",r=e.status==="stale";return!n&&!e.minuteLabel&&!(e.isSuspended&&!e.isSettled)&&!e.isSettled&&!r?null:(0,He.jsxs)("div",{className:"ss-w-mk-live",children:[n&&(0,He.jsxs)("b",{className:"ss-w-mk-live-score",children:[e.homeTeamName," ",e.homeScore,"\u2013",e.awayScore," ",e.awayTeamName]}),e.minuteLabel&&(0,He.jsx)("span",{className:"ss-w-mon-min",children:e.minuteLabel}),e.isSuspended&&!e.isSettled&&(0,He.jsx)("span",{className:"ss-w-mon-susp",children:t.suspendedLabel}),e.isSettled&&(0,He.jsx)("span",{className:"ss-w-mon-pill",children:t.fullTimeLabel}),r&&(0,He.jsx)("span",{className:"ss-w-mon-asof",children:t.asOf(new Date(e.asOfUtc).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}))})]})}function Sb({monitor:e,ui:t,slip:n}){var i,s;let r=((s=(i=e.snapshot)==null?void 0:i.matches)!=null?s:[]).filter(o=>e.pins.some(a=>a.kind==="match"&&a.matchId===o.matchId));return r.length===0?(0,He.jsx)("div",{className:"ss-w-mon-empty",children:t.emptyMatchesTab}):(0,He.jsx)("div",{className:"ss-w-mon-list",children:r.map(o=>(0,He.jsxs)("div",{className:"ss-w-mon-item",children:[(0,He.jsx)(Ab,{match:o,promotedPins:e.pins.filter(a=>a.kind!=="match"&&a.matchId===o.matchId),monitor:e,ui:t,slip:n}),(0,He.jsx)(Cb,{match:o,monitor:e,ui:t,slip:n})]},o.matchId))})}function mN(e,t){let n=e.mainRows[0];if(t===void 0||!n||n.oddsDecimal===void 0||n.oddsDecimal===t)return e;let r={...n,previousOdds:t.toFixed(2),movementDirection:n.oddsDecimal<t?"shortened":"drifted"};return{...e,mainRows:[r,...e.mainRows.slice(1)]}}function Eb({monitor:e,ui:t,slip:n}){var i,s;let r=((s=(i=e.snapshot)==null?void 0:i.markets)!=null?s:[]).filter(o=>e.pins.some(a=>a.key===o.key));return r.length===0?(0,He.jsx)("div",{className:"ss-w-mon-empty",children:t.emptyOddsTab}):(0,He.jsx)("div",{className:"ss-w-mon-list",children:r.map(o=>{let a=e.pins.find(l=>l.key===o.key);return(0,He.jsxs)("div",{className:"ss-w-mon-oddspin","data-settled":o.isSettled||void 0,children:[(0,He.jsx)(fN,{m:o,ui:t}),o.card&&(0,He.jsx)(os,{cards:[mN(_i(o.card),e.lastViewedPrices[o.key])],ui:t,slip:n,monitor:e,pinRef:a!=null?a:void 0,inSlipIds:e.inSlip}),o.history&&(0,He.jsx)(iu,{cards:[hl(o.history)],ui:t}),!o.card&&!o.history&&(0,He.jsx)("div",{className:"ss-w-mon-empty-card",children:t.oddsUnavailable})]},o.key)})})}var $t=S(T(),1);function hN(e){let t=new Date(e*1e3);return`${`${t.getHours()}`.padStart(2,"0")}:${`${t.getMinutes()}`.padStart(2,"0")}`}function Ib({name:e,crest:t,away:n=!1}){return(0,$t.jsxs)("span",{className:n?"ss-w-drow-side ss-w-drow-side--away":"ss-w-drow-side",children:[t?(0,$t.jsx)("img",{className:"ss-w-drow-crest",src:t,alt:""}):null,(0,$t.jsx)("span",{className:"ss-w-drow-nm",children:e})]})}function uu({match:e,state:t,stale:n,ui:r,monitor:i}){var u;let s=(t==null?void 0:t.phase)==="live"&&!n,o=((t==null?void 0:t.phase)==="live"||(t==null?void 0:t.phase)==="fullTime")&&typeof t.homeScore=="number"&&typeof t.awayScore=="number",a=(t==null?void 0:t.phase)==="live"&&(u=t.minuteLabel)!=null?u:null,l=t!=null&&t.isHalfTime&&!n?r.halfTime:s?a!=null?a:"\u2014":(t==null?void 0:t.phase)==="live"?"\u2014":hN(e.kickoffUnix);return(0,$t.jsxs)("div",{className:s||t!=null&&t.isHalfTime?"ss-w-drow ss-w-drow--live":"ss-w-drow",children:[(0,$t.jsx)("span",{className:s||t!=null&&t.isHalfTime?"ss-w-drow-when ss-w-drow-when--live":"ss-w-drow-when",children:l}),(0,$t.jsxs)("span",{className:"ss-w-drow-fx",children:[(0,$t.jsx)(Ib,{name:e.homeTeamName,crest:e.homeTeamImagePath}),(0,$t.jsx)("span",{className:o?"ss-w-drow-sc":"ss-w-drow-sc ss-w-drow-sc--idle",children:o?`${t.homeScore}\u2013${t.awayScore}`:"\u2013"}),(0,$t.jsx)(Ib,{name:e.awayTeamName,crest:e.awayTeamImagePath,away:!0})]}),(0,$t.jsx)(Mt,{ui:r,monitor:i,pin:{kind:"match",matchId:e.matchId}})]})}function cu(e,t){return(e==null?void 0:e.phase)==="live"&&!t}function Tb(e){return(e==null?void 0:e.phase)==="fullTime"}var hn=S(T(),1);function Nb({group:e,open:t,onToggle:n,states:r,stale:i,ui:s,monitor:o,disambiguate:a=!1}){let l=e.matches.filter(c=>!cu(r[c.matchId],i)),u=l.length!==e.matches.length;return l.length===0?null:(0,hn.jsxs)("div",{className:"ss-w-grp",children:[(0,hn.jsxs)("button",{type:"button",className:"ss-w-grp-head","aria-expanded":t,onClick:n,children:[(0,hn.jsx)("span",{className:"ss-w-grp-chev",children:t?"\u25BE":"\u25B8"}),u&&(0,hn.jsx)("span",{className:"ss-w-sec-dot","aria-hidden":"true"}),(0,hn.jsxs)("span",{className:"ss-w-grp-name",children:[e.competitionName,a&&e.competitionCountry?(0,hn.jsxs)("span",{className:"ss-w-grp-country",children:[" (",e.competitionCountry,")"]}):null]}),(0,hn.jsx)("span",{className:"ss-w-grp-count",children:l.length})]}),t&&(0,hn.jsx)("div",{className:"ss-w-grp-body",children:l.map(c=>(0,hn.jsx)(uu,{match:c,state:r[c.matchId],stale:i,ui:s,monitor:o},c.matchId))})]})}var en=S(T(),1);function Lb({discovery:e,ui:t,monitor:n}){let{groups:r,states:i,stale:s,expanded:o,toggleGroup:a}=e,l=r.map(d=>({...d,matches:d.matches.filter(p=>!Tb(i[p.matchId]))})).filter(d=>d.matches.length>0),u=s?[]:l.flatMap(d=>d.matches.filter(p=>cu(i[p.matchId],s)).map(p=>({match:p,rank:d.rank}))).sort((d,p)=>d.rank-p.rank),c=l.reduce((d,p)=>{var f;return d[p.competitionName]=((f=d[p.competitionName])!=null?f:0)+1,d},{});return(0,en.jsxs)("div",{className:"ss-w-mon-list",children:[s&&(0,en.jsx)("div",{className:"ss-w-stale",children:t.staleStates}),u.length>0&&(0,en.jsxs)(en.Fragment,{children:[(0,en.jsxs)("div",{className:"ss-w-sec-head",children:[(0,en.jsx)("span",{className:"ss-w-sec-dot","aria-hidden":"true"}),t.sectionLive]}),(0,en.jsx)("div",{className:"ss-w-today-live",children:u.map(({match:d})=>(0,en.jsx)(uu,{match:d,state:i[d.matchId],stale:s,ui:t,monitor:n},d.matchId))})]}),l.map(d=>{var p,f;return(0,en.jsx)(Nb,{group:d,open:(p=o[d.competitionId])!=null?p:d.expandedByDefault,onToggle:()=>a(d.competitionId),disambiguate:((f=c[d.competitionName])!=null?f:0)>1,states:i,stale:s,ui:t,monitor:n},d.competitionId)})]})}var gn=S(T(),1),gN="(max-width: 639px)";function wN(){let[e,t]=(0,fs.useState)(!1);return(0,fs.useEffect)(()=>{if(typeof window=="undefined"||typeof window.matchMedia!="function")return;let n=window.matchMedia(gN),r=()=>t(n.matches);return r(),n.addEventListener("change",r),()=>n.removeEventListener("change",r)},[]),e}function Mb({controller:e,ui:t,slip:n,onDashboardTap:r,monitor:i,discovery:s}){var f,h;let{state:o,close:a,stop:l,send:u,reset:c}=e,d=wN();(0,fs.useEffect)(()=>{let w=C=>{C.key==="Escape"&&a()};return window.addEventListener("keydown",w),()=>window.removeEventListener("keydown",w)},[a]);let p=w=>{i==null||i.setActiveTab("chat"),u(w)};return(0,fs.useEffect)(()=>{i&&i.activeTab!=="chat"&&o.isStreaming&&i.markChatActivity()},[i,o.isStreaming,o.messages.length]),(0,gn.jsxs)("div",{className:"ss-w-panel",role:"dialog","aria-modal":d,"aria-label":t.chatDialogLabel,children:[(0,gn.jsx)(My,{onClose:a,closeLabel:t.closeChat,logoUrl:t.logoUrl,headerTitle:t.headerTitle,onNewConversation:c,canReset:o.messages.length>0,newConversationLabel:t.newConversation,moreOptionsLabel:t.moreOptions}),i&&(0,gn.jsx)(bb,{monitor:i,ui:t,matchCount:i.pins.filter(w=>w.kind==="match").length,oddsCount:i.pins.filter(w=>w.kind!=="match").length,todayCount:(f=s==null?void 0:s.liveCount)!=null?f:0,hasToday:((h=s==null?void 0:s.groups.length)!=null?h:0)>0}),(0,gn.jsx)("div",{style:!i||i.activeTab==="chat"?{display:"contents"}:{position:"absolute",inset:0,visibility:"hidden",display:"flex",flexDirection:"column"},children:(0,gn.jsx)(xb,{controller:e,ui:t,slip:n,onDashboardTap:r,monitor:i})}),i&&s&&i.activeTab==="today"&&(0,gn.jsx)(Lb,{discovery:s,ui:t,monitor:i}),i&&i.activeTab==="following"&&(0,gn.jsx)(Sb,{monitor:i,ui:t,slip:n}),i&&i.activeTab==="odds"&&(0,gn.jsx)(Eb,{monitor:i,ui:t,slip:n}),(0,gn.jsx)(kb,{placeholder:t.placeholder,streaming:o.isStreaming,onSend:p,onStop:l,stopLabel:t.stopResponse,sendLabel:t.sendMessage})]})}var Pb=`.ss-w-root { all: revert; }
38
38
  .ss-w-root, .ss-w-root * { box-sizing: border-box; margin: 0; padding: 0; }
39
39
  .ss-w-root {
40
40
  --ss-w-accent: #17936a;
@@ -459,10 +459,13 @@ Error generating stack: `+s.message+`
459
459
  .ss-w-dash--discovery .ss-w-dash-tile--full .ss-w-dash-tile-icon { align-self: center; }
460
460
  .ss-w-dash--discovery .ss-w-dash-tile-meta { flex-wrap: nowrap; }
461
461
  .ss-w-dash--discovery .ss-w-dash-tile-crest { width: 22px; height: 22px; }
462
- .ss-w-dash--discovery .ss-w-dash-tile:nth-child(1) { background: #eef8f1; }
463
- .ss-w-dash--discovery .ss-w-dash-tile:nth-child(2) { background: #eef3fb; }
464
- .ss-w-dash--discovery .ss-w-dash-tile:nth-child(3) { background: #fdf6ec; }
465
- .ss-w-dash--discovery .ss-w-dash-tile:nth-child(4) { background: #f5eefb; }
462
+ /* Tints mix a hue into the live panel rather than hardcoding a light pastel, so a dark
463
+ operator surface (e.g. --ss-w-panel set from a navy \`surface\` brand color) yields a
464
+ readable tinted-dark card instead of near-white ink on a fixed light pastel. */
465
+ .ss-w-dash--discovery .ss-w-dash-tile:nth-child(1) { background: color-mix(in srgb, #34c759 10%, var(--ss-w-panel)); }
466
+ .ss-w-dash--discovery .ss-w-dash-tile:nth-child(2) { background: color-mix(in srgb, #3a82f6 10%, var(--ss-w-panel)); }
467
+ .ss-w-dash--discovery .ss-w-dash-tile:nth-child(3) { background: color-mix(in srgb, #f5a623 10%, var(--ss-w-panel)); }
468
+ .ss-w-dash--discovery .ss-w-dash-tile:nth-child(4) { background: color-mix(in srgb, #a855f7 10%, var(--ss-w-panel)); }
466
469
 
467
470
  /* club fan pre-match dashboard */
468
471
  .ss-w-fandash { display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
@@ -886,6 +889,8 @@ Error generating stack: `+s.message+`
886
889
  which is the u350 betting-card truncation one layer down. */
887
890
  .ss-w-drow-fx { display: flex; align-items: center; gap: 6px; min-width: 0; }
888
891
  .ss-w-drow-side { display: flex; align-items: center; gap: 5px; min-width: 0; flex: 1 1 0; }
892
+ /* Away side mirrors home around the score: crest to the far edge, name aligned inward. */
893
+ .ss-w-drow-side--away { flex-direction: row-reverse; text-align: right; }
889
894
  .ss-w-drow-nm { font-size: 12.5px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
890
895
  /* Centre slot of .ss-w-drow-fx, between the two sides: flex:none so a widening score never
891
896
  steals width the team names need to avoid ellipsis. min-width holds the slot at the width of a