1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0d423-1447-7d10-a6b0-cf3360c3e806")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,90317,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={bindSnapshot:function(){return c},createAsyncLocalStorage:function(){return s},createSnapshot:function(){return u}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class i{disable(){throw a}getStore(){}run(){throw a}exit(){throw a}enterWith(){throw a}static bind(e){return e}}let l="u">typeof globalThis&&globalThis.AsyncLocalStorage;function s(){return l?new l:new i}function c(e){return l?l.bind(e):i.bind(e)}function u(){return l?l.snapshot():function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e(...r)}}},242344,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"workAsyncStorageInstance",{enumerable:!0,get:function(){return n}});let n=(0,e.r(90317).createAsyncLocalStorage)()},563599,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"workAsyncStorage",{enumerable:!0,get:function(){return n.workAsyncStorageInstance}});let n=e.r(242344)},309885,(e,t,r)=>{"use strict";function n(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"encodeURIPath",{enumerable:!0,get:function(){return n}})},667585,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"BailoutToCSR",{enumerable:!0,get:function(){return o}});let n=e.r(132061);function o(e){let{reason:t,children:r}=e;if("u"<typeof window)throw Object.defineProperty(new n.BailoutToCSRError(t),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return r}},652157,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"PreloadChunks",{enumerable:!0,get:function(){return s}});let n=e.r(843476),o=e.r(174080),a=e.r(563599),i=e.r(309885),l=e.r(543369);function s(e){let{moduleIds:t}=e;if("u">typeof window)return null;let r=a.workAsyncStorage.getStore();if(void 0===r)return null;let s=[];if(r.reactLoadableManifest&&t){let e=r.reactLoadableManifest;for(let r of t){if(!e[r])continue;let t=e[r].files;s.push(...t)}}if(0===s.length)return null;let c=(0,l.getAssetTokenQuery)();return(0,n.jsx)(n.Fragment,{children:s.map(e=>{let t="".concat(r.assetPrefix,"/_next/").concat((0,i.encodeURIPath)(e)).concat(c);return e.endsWith(".css")?(0,n.jsx)("link",{precedence:"dynamic",href:t,rel:"stylesheet",as:"style",nonce:r.nonce},e):((0,o.preload)(t,{as:"script",fetchPriority:"low",nonce:r.nonce}),null)})})}},869093,(e,t,r)=>{"use strict";var n=e.r(743010),o=e.r(762278);Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return d}});let a=e.r(843476),i=e.r(271645),l=e.r(667585),s=e.r(652157);function c(e){return{default:e&&"default"in e?e.default:e}}let u={loader:()=>Promise.resolve(c(()=>null)),loading:null,ssr:!0},d=function(e){let t=n._({},u,e),r=(0,i.lazy)(()=>t.loader().then(c)),d=t.loading;function f(e){let c=d?(0,a.jsx)(d,{isLoading:!0,pastDelay:!0,error:null}):null,u=!t.ssr||!!t.loading,f=u?i.Suspense:i.Fragment,g=t.ssr?(0,a.jsxs)(a.Fragment,{children:["u"<typeof window?(0,a.jsx)(s.PreloadChunks,{moduleIds:t.modules}):null,(0,a.jsx)(r,n._({},e))]}):(0,a.jsx)(l.BailoutToCSR,{reason:"next/dynamic",children:(0,a.jsx)(r,n._({},e))});return(0,a.jsx)(f,o._(n._({},u?{fallback:c}:{}),{children:g}))}return f.displayName="LoadableComponent",f}},770703,(e,t,r)=>{"use strict";var n=e.r(743010),o=e.r(762278);
1Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return i}});let a=e.r(563141)._(e.r(869093));function i(e,t){var r;let i={};"function"==typeof e&&(i.loader=e);let l=n._({},i,t);return(0,a.default)(o._(n._({},l),{modules:null==(r=l.loadableGenerated)?void 0:r.modules}))}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},351558,e=>{"use strict";var t=e.i(596970),r=e.i(242778),n=e.i(846417),o=e.i(710080);let a=async()=>{try{var e,t;let r=await (0,o.makeGamificationRequest)("daily-achievement",{method:"GET",apiVersion:"1",headerParams:{"content-type":"application/json"}},!0);if((null==r?void 0:r.error)||!(null==r?void 0:r.data))return console.error(null==(t=r.error)?void 0:t.message),null;return null!=(e=r.data)?e:null}catch(e){return console.error(e),null}},i=async()=>{var e,t,a;let i=null==(e=await (0,r.getFirAuth)())?void 0:e.currentUser;if(!(null==i?void 0:i.uid))return null;let l="".concat(n.GAMIFICATION_ENDPOINTS.GET_USER,"?userId=").concat(i.uid);try{let e=await (0,o.makeGamificationRequest)(l,{method:"GET",apiVersion:"1"});if((null==e?void 0:e.error)||!(null==e?void 0:e.data))return console.error(null==(a=e.error)?void 0:a.message),null;return null!=(t=e.data)?t:null}catch(e){return console.error(e),null}},l=async(e,a,i)=>{var l,s;if(!(null==(l=await (0,r.getFirAuth)())?void 0:l.currentUser))return null;let c={userId:e,timestamp:new Date().getTime(),source:"web",type:"participation",event:a,engagementSourceId:i};try{(0,t.isDevEnvironment)()&&console.debug({"Sending gamification engagement":!0,userId:e,event:a,engagementId:i});let r=await (0,o.makeGamificationRequest)(n.GAMIFICATION_ENDPOINTS.ENGAGEMENT,{method:"POST",apiVersion:"1",body:JSON.stringify(c)},!0);if(null==r?void 0:r.error)return console.error(null==(s=r.error)?void 0:s.message),!1;return(0,t.isDevEnvironment)()&&console.debug({"Gamification engagement sent":!0,userId:e,event:a,engagementId:i}),!0}catch(e){return console.error(e),!1}};e.s(["fetchDailyAchievement",0,a,"fetchGameificationUser",0,i,"sendGamificationEngagement",0,l])},635095,e=>{"use strict";var t=e.i(855323),r=e.i(478073),n=e.i(367414),o=e.i(593314),a=e.i(535258);let i=(0,t.styled)("div")({width:"100%",height:"100%",display:"block"}),l=(0,t.styled)("div",{shouldForwardProp:e=>"$aspectRatio"!==e})(e=>{let{theme:t,$aspectRatio:i="16:9"}=e;return{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:(0,a.calcVideoContainerHeight)(i,r.FULL_VIDEO_VIEW_HEIGHT),aspectRatio:(0,a.toCssAspectRatio)(i),maxWidth:"100%",margin:"0 auto",overflow:"hidden",borderRadius:o.BORDER_RADIUSES.small,background:n.colors.black,[t.breakpoints.down("md")]:{borderRadius:o.BORDER_RADIUSES.xSmall}}}),s=(0,t.styled)("div")(()=>({width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",color:n.colors.white,background:n.colors.black,fontSize:o.fontSizes.medium}));e.s(["MediaContainer",0,l,"VideoElement",0,i,"VideoErrorContainer",0,s])},994433,e=>{"use strict";var t=e.i(480388),r=e.i(499092),n=e.i(843476),o=e.i(500932);let a=(0,e.i(855323).styled)("button")({appearance:"none",background:"none",border:"none",padding:0,margin:0,font:"inherit",color:"inherit",textAlign:"inherit",cursor:"pointer"}),i=e=>{let i,l,s,c,u=(0,o.c)(8);u[0]!==e?({type:s,ref:i}=e,l=(0,r._)(e,["type","ref"]),u[0]=e,u[1]=i,u[2]=l,u[3]=s):(i=u[1],l=u[2],s=u[3]);let d=void 0===s?"button":s;return u[4]!==i||u[5]!==l||u[6]!==d?(c=(0,n.jsx)(a,(0,t._)({ref:i,type:d},l)),u[4]=i,u[5]=l,u[6]=d,u[7]=c):c=u[7],c};i.displayName="UnstyledButton",e.s(["UnstyledButton",0,i])},447373,e=>{"use strict";var t=e.i(480388),r=e.i(181788),n=e.i(367414),o=e.i(593314),a=e.i(855323);let i=(0,a.styled)("div")(e=>{let{type:a,orientation:i,theme:l}=e;return(0,r._)((0,t._)({position:"fixed",left:0,bottom:0,width:"100%",height:"slideup"===a?"40vh":"100%",overflow:"hidden",display:"flex",flexDirection:"column",justifyContent:"bottom"===i?"flex-end":"center",alignItems:"center"},"slideup"===a&&{zIndex:o.zIndex.loginOverlay,backgroundColor:"none"},"dialog"===a&&{zIndex:o.zIndex.loginOverlay,backgroundColor:"rgba(255,255,255,0.8)"},"video"===a&&{zIndex:o.zIndex.videoOverlay,backgroundColor:"rgba(0,0,0,0.7)",width:"100vw",height:(0,o.dynamicViewportHe
1ight)(e=>"100".concat(e))},"popup"===a&&{zIndex:o.zIndex.loginOverlay,backgroundColor:"rgba(0,0,0,0.4)"}),{"& .closeX":{position:"fixed",top:"bottom"===i?"48%":80,right:25,color:n.colors.white,background:n.colors.gray[900],borderRadius:"50%",padding:l.spacing(2.5,3),fontSize:18,fontWeight:800,cursor:"pointer",zIndex:99,[l.breakpoints.down("sm")]:{fontSize:16,top:"bottom"===i?"55%":70,right:10,padding:l.spacing(2,2.5)}}})}),l=(0,a.styled)("div")(()=>({position:"fixed",left:0,right:0,bottom:0,zIndex:9999})),s=(0,a.styled)("div")(e=>{let{theme:t,isBottom:r=!1}=e;return{display:"none",[t.breakpoints.down("sm")]:{display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"center",padding:t.spacing(3,0,3,r?8:1),backgroundImage:"linear-gradient(to right, #000000, #434343)"},"& img":{width:20,height:20,marginRight:t.spacing(1),borderRadius:3},"& .text":{fontSize:o.fontSizes.small,color:n.colors.white,fontWeight:"bold",marginRight:t.spacing(2.5),whiteSpace:"nowrap"},"& a":{textDecoration:"none",cursor:"pointer","& button":{padding:t.spacing(1,2),borderRadius:t.spacing(3),fontWeight:"bold",color:n.colors.gray[900],cursor:"pointer",backgroundColor:n.colors.white,marginRight:t.spacing(1),border:"none","&:focus":{outline:"none"}}},"& .close":{display:"flex",width:35,justifyContent:"center",borderLeft:"solid 1px ".concat(n.colors.white),paddingLeft:t.spacing(2),margin:t.spacing(0,1,0,3),"& p":{fontSize:o.fontSizes.medium,fontWeight:"bold",color:n.colors.white}}}});e.s(["AppCalloutCon",0,s,"BottomCon",0,l,"ModalOverlay",0,i])},378877,e=>{"use strict";var t=e.i(480388),r=e.i(843476),n=e.i(500932),o=e.i(138068),a=e.i(367414);let i=(0,e.i(855323).styled)("div",{shouldForwardProp:e=>"variant"!==e})(e=>{let{theme:r,variant:n}=e;return(0,t._)({display:"flex",justifyContent:"center",alignItems:"center",width:"100%","& svg":{width:r.spacing(4),height:r.spacing(4),marginRight:r.spacing(2)}},"overlay"===n?{position:"absolute",top:0,left:0,height:"100%"}:{minHeight:"50vh"})});e.s(["Loading",0,e=>{let t,l,s=(0,n.c)(3),{variant:c}=e,u=void 0===c?"overlay":c;return s[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,r.jsx)(o.Spinner,{fill:a.colors.yellow,ariaLabel:"Loading Spinner"}),s[0]=t):t=s[0],s[1]!==u?(l=(0,r.jsxs)(i,{variant:u,children:[t,"Loading..."]}),s[1]=u,s[2]=l):l=s[2],l}])},686834,e=>{"use strict";var t,r=((t={}).LOG_IN="logged_in",t.ARTICLE_READ="ARTICLE_READ",t.ARTICLE_SHARE="ARTICLE_SHARE",t.VIDEO_WATCH="VIDEO_WATCH",t.VIDEO_SHARE="VIDEO_SHARE",t.CATEGORY_VIEW="CATEGORY_VIEW",t.CHAT_CHANNEL_VIEW="CHAT_CHANNEL_VIEW",t.CHAT_MESSAGE_SENT="CHAT_MESSAGE_SENT",t);e.s(["GAMIFICATION_ENGAGEMENTS",()=>r,"STATUS_VALUES",0,{FREE_AGENT:1,CONTRIBUTOR:2,STARTER:3,CAPTAIN:4,ALL_STAR:5,MVP:6},"gamificationEngagements",0,{LOG_IN:"logged_in",ARTICLE_READ:"ARTICLE_READ",ARTICLE_SHARE:"ARTICLE_SHARE",VIDEO_WATCH:"VIDEO_WATCH",VIDEO_SHARE:"VIDEO_SHARE",CATEGORY_VIEW:"CATEGORY_VIEW",CHAT_CHANNEL_VIEW:"CHAT_CHANNEL_VIEW",CHAT_MESSAGE_SENT:"CHAT_MESSAGE_SENT"}])},478073,143075,e=>{"use strict";var t=e.i(480388),r=e.i(181788);let n="6415900097001",o="FajRXawD0",a="Gkw68fDSq",i="//players.brightcove.net/".concat(n,"/").concat(o,"_default/index.min.js"),l="//players.brightcove.net/".concat(n,"/").concat(a,"_default/index.min.js"),s={preload:"metadata",showTitle:!1,showDescription:!1,showControls:!1,showBigPlayButton:!0,loop:!1,playsinline:!0,fluid:!1,autoplay:!1,muted:!1,control_bar:!0,fullScreenControl:!0,aspectRatio:"16:9",responsive:!0,controls:!0,css:{controlBarColor:"white",controlColor:"white",progressColor:"white"},playback_rates:[.5,.75,1,1.25,1.5,1.75,2],skip_buttons:{forward:10,backward:10}};e.s(["DEFAULT_VIDEO_PLAYER_ID",0,o,"DEFAULT_VIDEO_PLAYER_OPTIONS",0,s,"PLL_VIDEO_ACCOUNT_ID",0,n,"STORY_VIDEO_PLAYER_ID",0,a,"STORY_VIDEO_PLAYER_OPTIONS",0,{preload:"auto",showTitle:!1,showDescription:!1,showBigPlayButton:!1,showControls:!1,playsinline:!1,fluid:!1,autoplay:!0,control_bar:!1,fullScreenControl:!1,muted:!1,aspectRatio:"9:16",responsive:!0,controls:!1,loop:!1,css:{controlBarColor:"none",controlColor:"none",progressColor:"transparent"},playback_rates:[],skip_buttons:{forward:10,backward:10}},"STORY_VIDEO_PLAYER_SCRIPT",0,l,"VIDEO_PLAYER_SCRIPT",0,i],143075),e.s(["FULL_VIDEO_VIEW_HEIGHT",0,85,"MAX_PLAYBACK_TICK_SECONDS",0,1,"PLAYER_EVENTS",0,["play","pause","ended","error"],"VIDEO_WATCHED_PERCENT_THRESHOLD",0,.75,"VIDEO_WATCHED_SECONDS_THRESHOLD",0,30,"getVideoPlayerOptions",0,e=>{let{autoplay:n=!1,aspectRatio:o="16:9",muted:a=!1}=e;return(0,r._)((0,t._)({},s),{autoplay:n,aspectRatio:o,muted:a})}],478073)},613317,7603,e=>{"use strict";var t=e.i(480388),r=e.i(181788),n=e.i(843476),o=e.i(500932),a=e.i(271645);let i="ca-pub-3201393185455772",l="".concat("https://pagead2.googlesyndication.com","/pagead/js/adsbygoogle.js?client=").concat(i);e.s(["ADSENSE_CLIENT_ID",0,i,"ADSENSE_SCRIPT_SRC",0,l,"AD_OPTIONS",0,{bannerMain:{slotId:"5660628357",selectorId:"first-leaderboard",type:"leaderboard_atf",cssClass:"leaderboard","aria-label":"Main advertisement banner"},bannerSecond:{slotId:"6620887626",selectorId:"second-leaderboard",type:"leaderboard_btf",cssClass:"leaderboard","aria-label":"Second advertisement banner"},bannerThird:{slotId:"5309274567",selectorId:"third-leaderboard",type:"leaderboard_btf",cssClass:"leaderboard","aria-label":"Third advertisement banner"},bannerFourth:{slotId:"9500990382",selectorId:"fourth-leaderboard",type:"leaderboard_btf",cssClass:"leaderboard","aria-label":"Fourth advertisement banner"},bannerInContent:{slotId:"5756869262",selectorId:"banner-incontent",type:"in_content",cssClass:"leaderboard",layoutKey:"-fb+5w+4e-db+86","aria-label":"In content advertisement banner"},mediumRectangle:{slotId:"7164368015",selectorId:"first-med-rect",type:"med_rect_btf",cssClass:"rectangle","aria-label":"Medium rectangle advertisement"}}],7603);let s="LOADED",c="FAILED",u={scriptLoaded:!1,canShowAds:!1,hasError:!1,errorMessage:void 0},d=(e,n)=>{switch(n.type){case s:return{scriptLoaded:!0,canShowAds:!0,hasError:!1,errorMessage:void 0};case c:return(0,r._)((0,t._)({},e),{canShowAds:!1,hasError:!0,errorMessage:n.message})}},f=(0,a.createContext)(null);e.s(["AdContext",0,f,"AdProvider",0,e=>{let i,g,m,h=(0,o.c)(6),{children:p}=e,[_,E]=(0,a.useReducer)(d,u),v=(0,a.useRef)(!1);h[0]===Symbol.for("react.memo_cache_sentinel")?(i=()=>
1{if(v.current)return;if(v.current=!0,window.adsbygoogle=window.adsbygoogle||[],document.querySelector('script[src="'.concat(l,'"]')))return void E({type:s});let e=document.createElement("script");e.src=l,e.async=!0,e.crossOrigin="anonymous",e.onload=()=>E({type:s}),e.onerror=e=>E({type:c,message:"Failed to load AdSense script: ".concat(e)}),document.head.appendChild(e)},h[0]=i):i=h[0];let b=i;h[1]!==_?(g=(0,r._)((0,t._)({},_),{requestAdScript:b}),h[1]=_,h[2]=g):g=h[2];let y=g;return h[3]!==p||h[4]!==y?(m=(0,n.jsx)(f.Provider,{value:y,children:p}),h[3]=p,h[4]=y,h[5]=m):m=h[5],m},"DEFAULT_AD_CONTEXT",0,{scriptLoaded:!1,canShowAds:!1,hasError:!0,errorMessage:"Ads unavailable",requestAdScript:()=>{}},"useAdContext",0,()=>{let e=(0,a.use)(f);if(!e)throw Error("useAdContext must be used within an AdProvider. Make sure your component is wrapped with AdProvider.");return e}],613317)},514580,e=>{"use strict";var t=e.i(271645);let r=(0,t.createContext)(null);e.s(["AuthUserContext",0,r,"useAuthUser",0,()=>{let e=(0,t.use)(r);if(!e)throw Error("useAuthUser must be used within an AuthProvider.");return e}])},715493,e=>{"use strict";var t=e.i(514580);e.s(["useAuthContext",()=>t.useAuthUser])},183012,419831,e=>{"use strict";var t=e.i(843476),r=e.i(500932),n=e.i(271645),o=e.i(480388),a=e.i(181788);let i=(e,t)=>null===e||!Number.isInteger(e)||e<0||e>=t.length?null:t[e],l=(e,t)=>(0,a._)((0,o._)({},e),{homeTeam:i(e.homeTeam,t),awayTeam:i(e.awayTeam,t)});async function s(){try{let e=await fetch("/api/league/live-state",{cache:"no-store"});if(!e.ok)return console.error("Error fetching live state: unexpected status",e.status),null;return await e.json()}catch(e){return console.error("Error fetching live state:",e),null}}async function c(){try{let e=await fetch("/api/league/season-events",{cache:"no-store"});if(!e.ok)return console.error("Error fetching season events: unexpected status",e.status),null;let t=await e.json();return{version:t.version,pll:t.pll.map(e=>l(e,t.teams)),wll:t.wll.map(e=>l(e,t.teams))}}catch(e){return console.error("Error fetching season events:",e),null}}async function u(e){try{let t=await fetch("".concat("/api/league/game-stats","?slug=").concat(encodeURIComponent(e)),{cache:"no-store"});if(!t.ok)return console.error("Error fetching game stats: unexpected status",t.status),null;return await t.json()}catch(e){return console.error("Error fetching game stats:",e),null}}e.s(["fetchGameStats",0,u,"fetchLiveState",0,s,"fetchSeasonEventsPayload",0,c],419831);var d=e.i(927569),f=e.i(596970),g=e.i(952674),m=e.i(213502),h=e.i(524587);let p=(e,t,r)=>{1===r?(0,d.captureError)(e,{context:t,tags:{area:"live_game"},level:"warning"}):r===g.LIVE_STATE_ERROR_THRESHOLD?(0,d.captureError)(e,{context:t,tags:{area:"live_game"}}):console.error("[".concat(t,"] ongoing outage, consecutive failures: ").concat(r))},_=(0,n.createContext)(null);e.s(["LiveGameProvider",0,e=>{let o,a=(0,r.c)(3),{children:i}=e,l=(()=>{let{events:e,updateEventInState:t,replaceEvents:r}=(0,m.useLeagueEventsContext)(),{wllEvents:o,updateWLLEventInState:a,replaceWLLEvents:i}=(0,h.useSeasonEventsContext)(),[l,u]=(0,n.useState)(null),d=(0,n.useMemo)(()=>[...e,...o],[e,o]),_=(0,n.useRef)(!0),E=(0,n.useRef)(null),v=(0,n.useRef)(null),b=(0,n.useRef)(0),y=(0,n.useRef)(0),A=(0,n.useRef)(null),C=(0,n.useRef)(null),w=(0,n.useRef)([]),S=(0,n.useRef)(0),I=(0,n.useRef)(t),T=(0,n.useRef)(a),L=(0,n.useRef)(r),R=(0,n.useRef)(i);(0,n.useEffect)(()=>{I.current=t,T.current=a,L.current=r,R.current=i},[t,a,r,i]);let O=(0,n.useRef)(async()=>{}),x=(0,n.useCallback)(()=>{E.current&&(clearTimeout(E.current),E.current=null)},[]),P=(0,n.useCallback)(e=>{x(),!_.current||(0,f.isBrowserEnvironment)()&&document.hidden||(E.current=setTimeout(()=>{O.current()},e))},[x]),V=(0,n.useCallback)(e=>{w.current=e.events,e.events.forEach(e=>{("WLL"===e.league?T.current:I.current)(e)}),u(e.liveSlugname)},[]),D=(0,n.useCallback)(()=>{if(C.current)return C.current;let e=(async()=>{try{let e=await c();if(!_.current)return;if(!e){S.current+=1,p(Error("Season-events fetch returned no data"),"live_game_error:season_refresh",S.current);return}if(!e.version)return;e.pll.length>0&&L.current(e.pll),e.wll.length>
10&&R.current(e.wll),w.current.forEach(e=>{("WLL"===e.league?T.current:I.current)(e)}),A.current=e.version,S.current=0}catch(e){S.current+=1,p(e,"live_game_error:season_refresh",S.current)}finally{C.current=null}})();return C.current=e,e},[]),N=(0,n.useCallback)(async()=>{if(!_.current)return;if(v.current)return v.current;let e=Date.now()-b.current;if(e<5e3){E.current||P(5e3-e);return}let t=(async()=>{try{let t=await s();if(!_.current)return;if(t){var e;y.current=0,V(t),t.seasonVersion&&t.seasonVersion!==A.current&&D(),P((e=t.nextPollMs,!Number.isFinite(e)||e<=0?g.LIVE_STATE_FALLBACK_POLL_MS:Math.max(e,g.LIVE_STATE_MIN_POLL_MS)))}else y.current+=1,p(Error("Live-state fetch returned no data"),"live_game_error:poll_failed",y.current),P(g.LIVE_STATE_FALLBACK_POLL_MS)}catch(e){y.current+=1,p(e,"live_game_error:poll",y.current),_.current&&P(g.LIVE_STATE_FALLBACK_POLL_MS)}finally{b.current=Date.now(),v.current=null}})();return v.current=t,t},[V,P,D]);(0,n.useEffect)(()=>{O.current=N},[N]),(0,n.useEffect)(()=>(_.current=!0,N(),()=>{_.current=!1,x(),v.current=null}),[N,x]),(0,n.useEffect)(()=>{if(!(0,f.isBrowserEnvironment)())return;let e=()=>{document.hidden?x():N()};return document.addEventListener("visibilitychange",e),()=>document.removeEventListener("visibilitychange",e)},[N,x]);let j=(0,n.useMemo)(()=>{var e;return l&&null!=(e=d.find(e=>e.slugname===l))?e:null},[d,l]);return(0,n.useMemo)(()=>({liveGameEvent:j}),[j])})();return a[0]!==i||a[1]!==l?(o=(0,t.jsx)(_.Provider,{value:l,children:i}),a[0]=i,a[1]=l,a[2]=o):o=a[2],o},"useLiveGameContext",0,()=>{let e=(0,n.use)(_);if(!e)throw Error("useLiveGame must be used within a LiveGameProvider");return e}],183012)},887035,e=>{"use strict";var t=e.i(480388),r=e.i(181788),n=e.i(843476),o=e.i(500932),a=e.i(271645),i=e.i(994433),l=e.i(447373);let s=e=>{let t,r,a=(0,o.c)(7),{type:s,orientation:c,children:u,onClick:d}=e,f=void 0===c?"center":c;return a[0]!==d?(t=(0,n.jsx)(i.UnstyledButton,{className:"closeX","aria-label":"Close",onClick:d,children:"X"}),a[0]=d,a[1]=t):t=a[1],a[2]!==u||a[3]!==f||a[4]!==t||a[5]!==s?(r=(0,n.jsxs)(l.ModalOverlay,{type:s,orientation:f,children:[t,u]}),a[2]=u,a[3]=f,a[4]=t,a[5]=s,a[6]=r):r=a[6],r};var c=e.i(120307),u=e.i(635095),d=e.i(478073),f=e.i(85856),g=e.i(490242);let m={mediaItem:null,showVideo:!1,duration:0},h=(e,n)=>{switch(n.type){case"OPEN":var o;return{mediaItem:n.media,showVideo:!0,duration:(null==(o=n.media)?void 0:o.duration)||0};case"CLOSE":return(0,r._)((0,t._)({},e),{mediaItem:null,showVideo:!e.showVideo})}},p=(0,a.createContext)(null);e.s(["DEFAULT_VIDEO_CONTEXT",0,{loadAndShowVideo:()=>{}},"VideoContext",0,p,"VideoProvider",0,e=>{let r,i,l,_,E,v,b,y=(0,o.c)(17),{children:A}=e,[C,w]=(0,a.useReducer)(h,m),{mediaItem:S,showVideo:I,duration:T}=C;y[0]===Symbol.for("react.memo_cache_sentinel")?(r=e=>{w({type:"OPEN",media:e})},y[0]=r):r=y[0];let L=r;y[1]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{w({type:"CLOSE"})},y[1]=i):i=y[1];let R=i,O=(null==S?void 0:S.mediaId)||"",x=null==S?void 0:S.title;y[2]!==T||y[3]!==O||y[4]!==x?(l={mediaId:O,source:c.VIDEO_START_SOURCES.player,duration:T,title:x},y[2]=T,y[3]=O,y[4]=x,y[5]=l):l=y[5];let P=(0,f.useVideoAnalytics)(l),V=null==S?void 0:S.aspectRatio;y[6]!==V?(_=(0,d.getVideoPlayerOptions)({autoplay:!0,aspectRatio:V,muted:!1}),y[6]=V,y[7]=_):_=y[7];let D=_;y[8]===Symbol.for("react.memo_cache_sentinel")?(E={loadAndShowVideo:L},y[8]=E):E=y[8];let N=E;if(y[9]!==P||y[10]!==S||y[11]!==I||y[12]!==D){var j;v=I&&S&&(0,n.jsx)(s,{type:"video",onClick:R,children:(0,n.jsx)(u.MediaContainer,{$aspectRatio:null!=(j=S.aspectRatio)?j:"16:9",children:(0,n.jsx)(g.LazyVideoPlayer,(0,t._)({videoId:S.mediaId||"",options:D},P),S.mediaId)})}),y[9]=P,y[10]=S,y[11]=I,y[12]=D,y[13]=v}else v=y[13];return y[14]!==A||y[15]!==v?(b=(0,n.jsxs)(p.Provider,{value:N,children:[A,v]}),y[14]=A,y[15]=v,y[16]=b):b=y[16],b},"useVideoContext",0,()=>{let e=(0,a.use)(p);if(!e)throw Error("useVideoContext must be used within a VideoProvider. Make sure your component is wrapped with VideoProvider.");return e}],887035)},312308,e=>{"use strict";var t=e.i(271645);let r=()=>()=>{};
1e.s(["useClientValue",0,(e,n)=>{let o=(0,t.useRef)(null),a=(0,t.useCallback)(()=>(o.current||(o.current={value:e()}),o.current.value),[]),i=(0,t.useCallback)(()=>n,[n]);return(0,t.useSyncExternalStore)(r,a,i)}])},85856,490242,e=>{"use strict";var t=e.i(480388),r=e.i(181788),n=e.i(500932),o=e.i(351558),a=e.i(686834),i=e.i(715493),l=e.i(262471),s=e.i(535258),c=e.i(596970);e.s(["useVideoAnalytics",0,e=>{let u,d,f,g,m,h,p=(0,n.c)(23),{mediaId:_,source:E,duration:v,title:b,placement:y}=e,A=void 0===v?0:v,{isLoggedIn:C,userId:w}=(0,i.useAuthContext)();p[0]!==A||p[1]!==_||p[2]!==y||p[3]!==b?(u=()=>(0,t._)({mediaId:_,videoLength:A>0?A:""},void 0===b?{}:{title:b},void 0===y?{}:{placement:y}),p[0]=A,p[1]=_,p[2]=y,p[3]=b,p[4]=u):u=p[4];let S=u;p[5]!==S||p[6]!==A?(d=e=>(0,r._)((0,t._)({},S()),{seconds_watched:e,percentage_watched:A>0?e/A:""}),p[5]=S,p[6]=A,p[7]=d):d=p[7];let I=d;p[8]!==S||p[9]!==C||p[10]!==_||p[11]!==E||p[12]!==w?(f=()=>{let e=S();(0,s.sendVideoStart)(E,e),C&&w&&_&&((0,c.isDevEnvironment)()&&console.debug("Sending gamification engagement on video start",a.gamificationEngagements.VIDEO_WATCH,_,E),(0,o.sendGamificationEngagement)(w,a.gamificationEngagements.VIDEO_WATCH,_)),(0,l.logBrazeEvent)(a.gamificationEngagements.VIDEO_WATCH,e)},p[8]=S,p[9]=C,p[10]=_,p[11]=E,p[12]=w,p[13]=f):f=p[13];let T=f;p[14]!==I?(g=e=>{(0,s.sendVideoWatched)(I(e))},p[14]=I,p[15]=g):g=p[15];let L=g;p[16]!==A||p[17]!==I?(m=e=>{0!==e&&0!==A&&(0,s.sendVideoPause)(I(e))},p[16]=A,p[17]=I,p[18]=m):m=p[18];let R=m;return p[19]!==L||p[20]!==R||p[21]!==T?(h={onVideoStart:T,logVideoWatched:L,onVideoPause:R},p[19]=L,p[20]=R,p[21]=T,p[22]=h):h=p[22],h}],85856);var u=e.i(843476),d=e.i(770703),f=e.i(378877);let g=(0,d.default)(()=>e.A(107884).then(e=>e.VideoPlayer),{loadableGenerated:{modules:[111623]},ssr:!1,loading:()=>(0,u.jsx)(f.Loading,{})});e.s(["LazyVideoPlayer",0,g],490242)},419710,e=>{"use strict";var t=e.i(353738),r=e.i(927569);let n=(e,t)=>{let r=e.trim().toLowerCase(),n=t.trim().toLowerCase();return!r||n.includes(r)},o=(e,t)=>{let r=e.trim();return r?t?"".concat(r,", opens in new tab"):r:""},a=(e,t)=>{let r=e.trim(),o=t.trim();return o&&(null==r?void 0:r.toLowerCase())!==o.toLowerCase()&&(!r||n(r,o))?{"aria-label":o}:{}},i="premierlacrosseleague.com",l=e=>{try{let{host:t,pathname:r}=new URL(e,"https://".concat(i)),n=r.replace(/\/$/,"")||"/";return t===i||t==="www.".concat(i)?n:"".concat(t).concat(n)}catch(t){return(0,r.captureError)(t,{context:"normalizeNavHref",extra:{href:e}}),e.replace(/\/$/,"")||"/"}},s={[l(t.SCHEDULE_URL)]:"PLL schedule"},c=(e,t)=>{let r=o(t,"_blank"===e.target),n=a(t,r);"aria-label"in n?e.setAttribute("aria-label",n["aria-label"]):e.removeAttribute("aria-label")},u="data-wp-content",d=new Set(["A","BUTTON","INPUT","SELECT","TEXTAREA","SUMMARY"]),f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;e.querySelectorAll("[tabindex]").forEach(e=>{let t;if("-1"===e.getAttribute("tabindex")||e.hasAttribute("role")||("A"===(t=e.tagName)?e.hasAttribute("href"):"INPUT"===t?"hidden"!==e.type:d.has(t)))return;let r=e.classList.contains("goog-rtopics")?"region":null;r&&e.setAttribute("role",r)})},g=()=>{document.querySelectorAll("a.tournament-item[href]").forEach(e=>{var t;let r=(e=>{let t=e.querySelector(".tournament-item-text");if(!t){var r,n;return null!=(r=null==(n=e.textContent)?void 0:n.replace(/\s+/g," ").trim())?r:""}let o=[];return t.querySelectorAll("h4, h5").forEach(e=>{var t;let r=null==(t=e.textContent)?void 0:t.replace(/\s+/g," ").trim();r&&o.push(r)}),o.join(", ")})(e);if(!r)return;e.querySelectorAll('img.event-logo, img[alt="logo"]').forEach(e=>{e.setAttribute("alt","")});let o=null!=(t=e.getAttribute("aria-label"))?t:"";if(o){if(o.trim().toLowerCase()===r.trim().toLowerCase())return void e.removeAttribute("aria-label");o&&!n(r,o)&&c(e,r)}}),document.querySelectorAll("[".concat(u,"] a[href]")).forEach(e=>{var t,r,a;if(null!==e.closest("[data-site-chrome]")||e.classList.contains("tournament-item"))return;let i=null!=(t=null==(a=e.textContent)?void 0:a.replace(/\s+/g," ").trim())?t:"";if(!i)return;let l=null!=(r=e.getAttribute("aria-label"))?r:"";!l||((e,t,r)=>{let a=e.trim(),i=t.trim();if(!i||!a)return!1;let l=o(a,r);if(i.toLowerCase()===l.toLowerCase())return!1;if(!n(a,i))return!0;let s=a.toLowerCase(),c=i.toLowerCase(),u=c.startsWith(s),d=c.startsWith(o(a,!1).toLowerCase());return!u&&!d||i.length>l.length+5})(i,l,"_blank"===e.target)&&c(e,i)}),f()},m=!1,h=null,p=null,_=()=>{null==p||p.disconnect(),p=null,m=!1};e.s(["getLinkAriaLabelProps",0,a,"getNavLinkAccessibleName",0,e=>{let{visibleText:t,href:r,menuLabel:n,opensInNewTab:a}=e,i=t.trim(),c=s[l(r)];if(c)return o(c,a);let u=null==n?void 0:n.trim();return u&&i&&u.toLowerCase()!==i.toLowerCase()?o("".concat(u," ").concat(i.charAt(0).toLowerCase()).concat(i.slice(1)),a):o(i,a)},"getVisibleTextLinkAccessibleName",0,o,"initWordPressContentAccessibility",0,()=>{let e=()=>g();e(),"requestIdleCallback"in window&&window.requestIdleCallback(e),(()=>{if(m||"u"<typeof MutationObserver)return;m=!0;let e=new MutationObserver(e=>{e.some(e=>e.addedNodes.length>0)&&(null!==h&&window.clearTimeout(h),h=window.setTimeout(()=>{h=null,g()},250))});p=e;let t=()=>
1{Array.from(document.querySelectorAll("main")).forEach(t=>{e.observe(t,{childList:!0,subtree:!0})}),window.setTimeout(_,1e4)};document.body?t():document.addEventListener("DOMContentLoaded",t,{once:!0})})()},"syncWordPressContentAccessibility",0,g,"wpContentHostProps",0,{[u]:""}])},535258,e=>{"use strict";var t=e.i(480388),r=e.i(181788),n=e.i(166022),o=e.i(120307);let a=e=>{let[t,r]=e.split(":").map(Number);return!t||!r||isNaN(t)||isNaN(r)?[16,9]:[t,r]},i=e=>{let[t,r]=a(e);return t/r};e.s(["calcVideoContainerHeight",0,(e,t)=>{let[r,n]=a(e);return"min(".concat(t,"vh, calc(100vw * ").concat(n," / ").concat(r,"))")},"parseAspectRatio",0,a,"sendVideoPause",0,e=>{(0,n.logEvent)(o.ANALYTICS_TAGS.video_pause,e)},"sendVideoStart",0,(e,a)=>{(0,n.logEvent)(o.ANALYTICS_TAGS.video_start,(0,r._)((0,t._)({},a),{source:e}))},"sendVideoWatched",0,e=>{(0,n.logEvent)(o.ANALYTICS_TAGS.video_watched,e)},"shouldFitByWidth",0,(e,t)=>i(e)>i(t),"toCssAspectRatio",0,e=>{let[t,r]=a(e);return"".concat(t," / ").concat(r)}])}]); 2 3//# chunkId=01a0d423-1447-7d10-a6b0-cf3360c3e806
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.