(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7518],{994:(e,t,l)=>{"use strict";l.r(t),l.d(t,{SlideshowBlock:()=>o,default:()=>s});var a=l(19948);l(91712);var n=l(39253),r=l(21746),i=l(24764);let o=e=>{let{slides:t=[],settings:l={},id:o}=e;if(!(0,i.J)(t))return null;let s=[];for(let e of t){var d,c;if(!e.imageAsset){console.error("Slide missing imageAsset:",e);continue}let t=(0,r.bt)(e.imageAsset)?e.imageAsset:null;if(!t||!t.url){console.error("Invalid imageAsset or missing URL:",t);continue}let l={...t,seo:{...t.seo,caption:e.imageCaption||(null==(d=t.seo)?void 0:d.caption)||"",altText:e.imageTitle&&""!==e.imageTitle.trim()?e.imageTitle:(null==(c=t.seo)?void 0:c.altText)||""},...!e.imageTitle||""===e.imageTitle.trim()||/\.(jpg|jpeg|png|gif|webp|bmp|tiff|svg)$/i.test(e.imageTitle)||/^[A-Z0-9_]+\d*\.[a-zA-Z]+$/i.test(e.imageTitle)||/^[a-zA-Z0-9_-]+\d+$/i.test(e.imageTitle)||/[._][0-9]+/i.test(e.imageTitle)||/^[A-Z0-9_]+$/i.test(e.imageTitle)?{}:{filename:e.imageTitle}};s.push(l)}return 0===s.length?(console.error("SlideshowBlock - No valid assets after transformation"),(0,a.jsx)("div",{className:"text-center text-red-500",children:"Error: Could not load images for the slideshow."})):(0,a.jsx)(n.A,{id:o||"slideshow-".concat(Math.random().toString(36).substring(2,9)),assets:s.slice(0,20),allSlides:s,totalAssets:s.length,rounded:(null==l?void 0:l.rounded)||!1,blockType:"Slideshow",slides:t,settings:l,sendTrackString:()=>{}})},s=o},21746:(e,t,l)=>{"use strict";function a(e){return"object"==typeof e&&null!==e&&"url"in e}l.d(t,{bt:()=>a})},24764:(e,t,l)=>{"use strict";l.d(t,{J:()=>a});let a=e=>Array.isArray(e)&&e.length>0},31434:(e,t,l)=>{"use strict";l.r(t),l.d(t,{BuyButtonBlock:()=>u,default:()=>v});var a=l(19948),n=l(91712),r=l(35175),i=l(34025),o=l(24484);let s=(0,i.F)("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 my-1 mx-1 py-2 px-4",{variants:{variant:{"bg-brand-200":"bg-brand-200 text-black hover:bg-brand-200/90","bg-brand-300":"bg-brand-300 text-white hover:bg-brand-300/90","bg-yellow-400":"bg-yellow-400 text-black hover:bg-yellow-400/90","bg-green-600":"bg-green-600 text-white hover:bg-green-500/90","bg-violet-500":"bg-violet-500 text-white hover:bg-violet-500/90","bg-gray-900":"bg-gray-900 text-white hover:bg-gray-900/90"},display:{block:"block",inline:"inline-block"}},defaultVariants:{variant:"bg-gray-900",display:"block"}}),d=n.forwardRef((e,t)=>{let{className:l,variant:n,display:i,inline:d=!1,asChild:c=!1,...u}=e,v=c?r.DX:"button";return(0,a.jsx)(v,{className:(0,o.cn)(s({variant:n,display:d?"inline":i,className:l})),ref:t,...u})});d.displayName="Button";var c=l(78702);let u=e=>{let{label:t,url:l,variant:n="bg-gray-900",inline:r=!1,isAffiliate:i=!0}=e;return(0,a.jsx)("div",{className:r?"inline-block":"block",children:(0,a.jsx)(c.default,{href:l,target:"_blank",rel:i?"nofollow noopener noreferrer":"noopener",children:(0,a.jsx)(d,{variant:n,inline:!1,className:"cursor-pointer whitespace-nowrap",children:t})})})},v=u},38992:(e,t,l)=>{"use strict";l.r(t),l.d(t,{TwitterBlock:()=>i,default:()=>o});var a=l(19948),n=l(91712);let r="twitter-script-loaded",i=e=>{let{entryMethod:t,tweetURL:l,tweetId:i,showThread:o}=e,s=(0,n.useRef)(null),d=(0,n.useCallback)(()=>"id"===t&&i?"https://twitter.com/i/status/".concat(i):"url"===t&&l?l.replace("x.com","twitter.com"):null,[t,i,l]),{isLoaded:c}=function(){let[e,t]=(0,n.useState)(()=>!!(window.twttr&&window.twttr.widgets)),[l,a]=(0,n.useState)(null);return(0,n.useEffect)(()=>{if(e)return;if(!l){if(window.twttr&&window.twttr.widgets)return void t(!0);a(new Promise(e=>{if(window.twttr&&window.twttr.widgets){t(!0),e();return}let l=document.createElement("script");l.src="https://platform.twitter.com/widgets.js",l.async=!0,l.onload=()=>{t(!0);let l=new CustomEvent(r);window.dispatchEvent(l),e()},document.body.appendChild(l)}))}l&&l.then(()=>t(!0));let n=()=>t(!0);return window.addEventListener(r,n),()=>{window.removeEventListener(r,n)}},[e,l]),{isLoaded:e}}();return(0,n.useEffect)(()=>{let e=d();e&&(s.current&&(s.current.innerHTML='\n

\n \n
\n ')),c&&window.twttr&&window.twttr.widgets&&window.twttr.widgets.load(s.current))},[d,i,l,t,o,c]),(0,a.jsx)("div",{className:"flex items-center",ref:s})},o=i},39253:(e,t,l)=>{"use strict";l.d(t,{A:()=>v});var a=l(19948),n=l(91712);let r={src:"/_next/static/media/SlideshowIcon.2da11b0d.png"};var i=l(3491),o=l(81999),s=l(69284),d=l(87725);let c=e=>!!e&&""!==e.trim()&&(/\.(jpg|jpeg|png|gif|webp|bmp|tiff|svg)$/i.test(e)||/^[A-Z0-9_]+\d*\.[a-zA-Z]+$/i.test(e)||/^[a-zA-Z0-9_-]+\d+$/i.test(e)||/[._][0-9]+/i.test(e)||/^[A-Z0-9_]+$/i.test(e)),u=e=>{var t,l;let{id:n,assets:u,currentSlideIndex:v,totalAssets:m,previous:p,next:f,sendTrackString:g,rounded:y=!1}=e;if(!u.length||v=u.length)return null;let b=u[v],h="".concat(v+1,"/").concat(m),w=0===v,x=v===m-1;return(0,a.jsxs)("figure",{id:n,className:"relative mb-4 mt-4 w-full max-w-full",children:[(0,a.jsx)("div",{className:y?"overflow-hidden rounded-[16px]":"",children:(0,a.jsx)("div",{className:"relative w-full ".concat(y?"rounded-[16px]":""),children:(0,a.jsx)("div",{className:"relative w-full ".concat(y?"rounded-[16px]":""),style:{paddingTop:"56.25%"},children:(0,a.jsx)(i.A,{className:"absolute left-0 top-0 h-full w-full object-cover",src:b.url||"",alt:(null==(t=b.seo)?void 0:t.altText)||"",rounded:y,width:800,height:450,sizes:"(max-width: 767px) 91vw, (max-width: 1280px) 64vw, 800px"})})})}),(0,a.jsx)("figcaption",{children:(0,a.jsxs)("div",{className:"w-full",children:[(0,a.jsx)("div",{className:"flex items-center pt-2",children:(0,a.jsxs)("div",{className:"relative flex w-full items-center",children:[(0,a.jsx)("div",{className:"flex items-center",children:(0,a.jsx)(i.A,{src:r.src,alt:"Slideshow",width:20,height:20,className:"h-5 w-5",rounded:!1})}),(0,a.jsx)("div",{className:"ml-2 mr-2",children:(0,a.jsx)(o.EY,{variant:"Body.S",color:"primary",children:h})}),(0,a.jsx)("div",{className:"flex-grow"}),(0,a.jsx)("button",{type:"button","aria-label":"Previous",className:"mr-[10px] flex cursor-pointer items-center justify-center border-none bg-transparent p-2 disabled:cursor-not-allowed disabled:opacity-50",disabled:w,onClick:()=>{g("wxnode_slideshow_link-previous"),p()},children:(0,a.jsx)("span",{className:"flex items-center justify-center",children:(0,a.jsx)("span",{className:"flex items-center justify-center","aria-label":"chevron left",children:(0,a.jsx)(s.A,{className:"h-5 w-5 ".concat(w?"text-gray-200":"text-blue-500")})})})}),(0,a.jsx)("button",{type:"button","aria-label":"Next",className:"ml-auto flex cursor-pointer items-center justify-center border-none bg-transparent p-2 disabled:cursor-not-allowed disabled:opacity-50",disabled:x,onClick:()=>{g("wxnode_slideshow_link-next"),f()},children:(0,a.jsx)("span",{className:"flex items-center justify-center",children:(0,a.jsx)("span",{className:"flex items-center justify-center","aria-label":"chevron right",children:(0,a.jsx)(d.A,{className:"h-5 w-5 ".concat(x?"text-gray-200":"text-blue-500")})})})})]})}),b.filename&&!c(b.filename)&&(0,a.jsx)(o.EY,{variant:"Title.S",color:"primary",elementType:"h3",className:"mb-1 mt-0",children:b.filename}),(null==(l=b.seo)?void 0:l.caption)&&(0,a.jsx)(o.EY,{variant:"Body.S",color:"primary",className:"py-1 pb-0 ".concat(b.filename&&!c(b.filename)?"":"mt-0 pt-0"),children:b.seo.caption}),(0,a.jsx)("div",{className:"border-b border-gray-200 py-2"})]})})]})},v=e=>{let{id:t,assets:l=[],allSlides:r=[],totalAssets:i=r.length||0,loadNextSlideshowPage:o,sendTrackString:s=()=>{},rounded:d=!1}=e,c=(0,n.useId)(),v=t||"slideshow-".concat(c),m=r.length>0,[p,f]=(0,n.useState)(0),[g,y]=(0,n.useState)(1),[b,h]=(0,n.useState)(1),[w,x]=(0,n.useState)(m?r.slice(0,20):l),N=(0,n.useCallback)(e=>{if(!e)return!1;let{top:t}=e.getBoundingClientRect();return t>=-100&&t{if(p-1>=0){let e=p-1?Math.ceil((p-1)/20):1;f(p-1),y(e)}},[p]),k=(0,n.useCallback)(()=>{if(p+1=b){let e=20*g;if(e-3

l.length&&g>=b){let e=20*g;e-3

{if(N(document.querySelector("#".concat(v))))switch(e.key){case"ArrowLeft":j();break;case"ArrowRight":k()}},[v,N,j,k]);return(0,n.useEffect)(()=>(document.body.addEventListener("keydown",A),()=>{document.body.removeEventListener("keydown",A)}),[A]),(0,n.useEffect)(()=>{m&&0===w.length&&x(r.slice(0,20))},[m,r,w.length]),(0,a.jsx)(u,{id:v,assets:m?w:l,currentSlideIndex:p,totalAssets:i,previous:j,next:k,sendTrackString:s,rounded:d})}},43596:(e,t,l)=>{"use strict";l.r(t),l.d(t,{VideoBlock:()=>Q,default:()=>ee});var a=l(19948),n=l(91712),r=l(55184),i=l(24484),o=l(67451);let s={autoplayadsmuted:!1,client:"googima",vpaidcontrols:!0};var d=l(6139),c=l(67484),u=l.n(c);let v=(0,d.h)("JWPlayer"),m=e=>{var t;let{playlist:l,options:r={},setupParams:d={},events:c=[],className:m=""}=e,p="player-".concat((0,n.useId)()),{playerId:f="IdNDrRWQ"}=d,g=(0,n.useMemo)(()=>({playlist:l,...(e=>{let{ads:t=!0,showDescriptions:l=!0}=e;return{aspectratio:"16:9",autostart:!0,backgroundLoading:!0,width:"100%",mute:!1,autoPause:{pauseAds:!0,viewability:!0},captions:{backgroundOpacity:50,fontSize:14},...t?{advertising:s}:{},...l?{displaytitle:!0,displaydescription:!0}:{displaytitle:!1,displaydescription:!1}}})(d),...r}),[l,d,r]),y=(0,n.useRef)(null),b=(0,n.useRef)(!1),h=null==l||null==(t=l[0])?void 0:t.file,[w,x]=(0,n.useState)(h?"loading":"error");return(0,n.useEffect)(()=>{if(b.current||!("jwplayer"in window)||"ready"!==w||!h)return;let e=window.jwplayer(p);y.current=e,b.current=!0,v.info("initialized player"),e.setup(g),c.forEach(t=>{let{eventName:l,callback:a}=t;e.on(l,t=>{a({event:t,player:e})}),v.lifecycle("Registered event handler for ".concat(l))})},[g,c,h,p,w]),(0,n.useEffect)(()=>()=>{if(y.current)try{y.current.remove(),y.current=null,b.current=!1}catch(e){v.error("Error removing JW Player",e)}},[]),(0,a.jsxs)("div",{children:[h&&(0,a.jsx)(o.default,{src:"https://cdn.jwplayer.com/libraries/".concat(f,".js"),strategy:"afterInteractive",onLoad:()=>x("ready"),onReady:()=>x("ready"),onError:()=>x("error")}),(0,a.jsx)("div",{className:(0,i.cn)("overflow-hidden rounded-lg",u().jwplayerContainer,m),children:"loading"===w&&h?(0,a.jsx)("div",{className:"flex aspect-video w-full items-center justify-center bg-black",children:(0,a.jsx)("div",{className:"h-8 w-8 animate-spin rounded-full border-b-2 border-t-2 border-white"})}):"error"===w?(0,a.jsx)("div",{className:"flex aspect-video w-full items-center justify-center bg-black text-white",children:"Failed to initialize video player"}):(0,a.jsx)("div",{id:p,className:"aspect-video w-full bg-black"})})]})},p="/placeholder-video-thumbnail.jpg",f=(0,d.h)("AdUtils"),g=async e=>{let{player:t,user:l,ctx:a={},isMobile:n=!1}=e;if(!t)return;if(null==l?void 0:l.isUserPremium)return void t.play();let r=await y(a,n);r?t.playAd(r):t.play()},y=async function(e){let t,l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!x())return null;let a=h(e,l),n=b({},e.iab);window.__Helios.emit("UPDATE_AD_UNIT_PATH",a);try{var r,i,o;null==(o=window.__Helios.modules)||null==(i=o.iabc)||null==(r=i.update)||r.call(i,{page:n,site:{v1:["IAB15-10_Weather"],v3:["390_Weather"]}})}catch(e){f.error("Error updating IABC parameters",e)}try{t=await w()}catch(e){t=null,f.error("Error getting ad tag",e)}return window.__Helios.emit("UPDATE_AD_UNIT_PATH",a),t},b=(e,t)=>{let l={...e};for(let e in t)Array.isArray(t[e])?(l[e]=[...l[e]||[],...t[e]],l[e]=[...new Set(l[e])]):"object"==typeof t[e]&&null!==t[e]?l[e]=b(l[e]||{},t[e]):l[e]=t[e];return l},h=(e,t)=>{let l=e.collectionAdZone||e.adzone||"video";return"".concat("/7646","/").concat("").concat(t?"mobile_smart_us":"web_weather_us","/").concat(l)},w=async()=>{let e=[];try{var t;e=await (null==(t=window)?void 0:t.__Helios.video.requestVideoBids())}catch(e){f.error("Error getting video bids",e)}return await window.__Helios.modules.videoTag.createAdTag(e)},x=()=>{try{var e,t,l,a,n;return"function"==typeof(null==(t=window.__Helios)||null==(e=t.video)?void 0:e.requestVideoBids)&&"function"==typeof(null==(n=window.__Helios)||null==(a=n.modules)||null==(l=a.videoTag)?void 0:l.createAdTag)}catch(e){return!1}},N=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"https";return e.replace(/^\/\//,"".concat(t,"://"))},j=e=>{let{collectionId:t,videoIndex:l,videoId:a}=e||{};return{videoCount:l,videoId:a,collectionId:t}},k=e=>"GDFP"===e||"AdSense/AdX"===e;var A=l(37811);let E=(0,d.h)("NewRelic");function _(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{var l,a,n;null==(n=window)||null==(a=n.NREUM)||null==(l=a.addPageAction)||l.call(a,e,{...I(t,"meta.")})}catch(e){E.error("New Relic: sendReumEvent error",e instanceof Error?e.message:String(e))}}A.env.NEW_RELIC_RUM_ACCOUNT_ID,A.env.NEW_RELIC_RUM_APP_ID,A.env.NEW_RELIC_RUM_LICENSE_KEY;let I=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object.fromEntries(Object.entries(e).map(e=>{let[l,a]=e;return["".concat(t).concat(l),a]}))},S=(0,d.h)("AdEvents"),P=new Set(["amznbid","crt_pb","hb_pb"]),C=[{eventName:"ready",callback:e=>{let{event:t}=e;_("videoReady",{isViewable:!!t.viewable,setupTime:t.setupTime})}},{eventName:"beforePlay",callback:async e=>{var t;let{event:l,player:a,isFirstPlayRef:n,user:r,isMobile:i}=e;if(!(null==n?void 0:n.current))return;let o=a.getPlaylistItem(),s=null==o||null==(t=o.custom)?void 0:t.ctx;s&&(s.videoIndex=a.getPlaylistIndex()),_("videoBeforePlay",{...j(s),isViewable:!!l.viewable,playReason:l.playReason}),a.stop(),await g({player:a,user:r,ctx:s,isMobile:i}),n.current=!1}},{eventName:"adRequest",callback:e=>{var t;let{event:l,player:a}=e,n=a.getPlaylistItem(),r=null==n||null==(t=n.custom)?void 0:t.ctx,i={},o=j(r);try{let e=N(l.tag||""),t=new URL(e).searchParams.get("cust_params"),a=(e=>e?e.split("&").reduce((e,t)=>{let[l,a]=t.split("=");return l&&a&&(e[l]||(e[l]=[]),e[l].push(a)),e},{}):{})(t);for(let e of Object.keys(a))P.has(e)&&(i["".concat("kv_").concat(e)]="".concat(a[e]))}catch(e){S.error("Error parsing cust_params",e)}_("videoAdRequest",{...o,isViewable:!!l.viewable,roll:l.adposition,...i})}},{eventName:"adStarted",callback:e=>{var t,l,a,n,r,i;let{event:o,player:s}=e,d=s.getPlaylistItem(),c=null==d||null==(t=d.custom)?void 0:t.ctx,{duration:u,adposition:v}=o,m=j(c),p="";try{let e=null==(i=o.ima)||null==(r=i.ad)?void 0:r.data;e&&(p=(e=>{let{adSystem:t,adId:l,adWrapperSystems:a,adWrapperIds:n}={adSystem:"",adId:"",adWrapperSystems:[],adWrapperIds:[],...e};if(k(t))return l;let r=a.findIndex(k);return r>=0&&r{var t;let{event:l,player:a}=e,n=a.getPlaylistItem();_("videoStart",{...j(null==n||null==(t=n.custom)?void 0:t.ctx),isViewable:!!l.viewable,loadTime:l.loadTime})}},{eventName:"complete",callback:e=>{var t;let{player:l}=e,a=l.getPlaylistItem();_("videoComplete",{...j(null==a||null==(t=a.custom)?void 0:t.ctx)})}},{eventName:"adSkipped",callback:e=>{var t;let{player:l}=e,a=l.getPlaylistItem();_("videoAdSkip",{...j(null==a||null==(t=a.custom)?void 0:t.ctx)})}},{eventName:"playlistItem",callback:async e=>{var t;let{event:l,player:a,isFirstPlayRef:n,user:r,isMobile:i}=e;if(null==n?void 0:n.current)return;let{item:o}=l,s=null==o||null==(t=o.custom)?void 0:t.ctx;s.videoIndex=a.getPlaylistIndex(),a.stop(),await g({player:a,user:r,ctx:s,isMobile:i})}},{eventName:"adComplete",callback:async e=>{let{player:t}=e;t.play()}},{eventName:"adError",callback:async e=>{var t;let{event:l,player:a}=e,n=a.getPlaylistItem();_("videoAdError",{...j(null==n||null==(t=n.custom)?void 0:t.ctx),message:l.message,code:l.code,vastCode:l.vastCode,roll:l.adposition}),S.error("Ad error occurred",l),a.play()}},{eventName:"error",callback:async e=>{var t;let{event:l,player:a}=e,n=a.getPlaylistItem();_("videoError",{...j(null==n||null==(t=n.custom)?void 0:t.ctx),message:l.message,code:l.code}),S.error("Video Player error",l)}},{eventName:"setupError",callback:e=>{let{event:t}=e;_("videoSetupError",{message:t.message,code:t.code})}}];var R=l(76361),T=l(61305);let M="",F="",B=1,z=0,L=0,W={adImpression:!1,videoAttempt:!1,videoPlayed:!1,videoStarted:!1,videoCompleted:!1,videoEnd:!1};function O(){Object.keys(W).map(e=>{W[e]=!1}),z=0,L=0}function U(e,t){var l,a,n,r,i,o,s,d,c,u,v,m,p,f,g,y,b,h,w,x,N,j,k,A,E,_,I,S,P,C,M,F,B,z,L,W,O;let U=t||e.getPlaylistItem();return{adBlock:e.getAdBlock(),adsMetricsUnitAndZone:null==U||null==(a=U.custom)||null==(l=a.ctx)?void 0:l.adzone,aspectRatio:null==e||null==(n=e.getConfig())?void 0:n.aspectratio,assetName:(0,R.EY)(null!=(W=null==U||null==(i=U.custom)||null==(r=i.ctx)?void 0:r.assetName)?W:""),collection:null==U||null==(s=U.custom)||null==(o=s.ctx)?void 0:o.pcollid,collectionId:null==U||null==(c=U.custom)||null==(d=c.ctx)?void 0:d.pcollid,contentId:null==U||null==(v=U.custom)||null==(u=v.ctx)?void 0:u.id,entitlements:(0,T.X)(null!=(O=null==U||null==(p=U.custom)||null==(m=p.ctx)?void 0:m.entitlements)?O:[]),iabContent:(0,R.IA)((null==U||null==(g=U.custom)||null==(f=g.ctx)?void 0:f.iab)||{}),id:null==U||null==(b=U.custom)||null==(y=b.ctx)?void 0:y.id,duration:null==U||null==(w=U.custom)||null==(h=w.ctx)?void 0:h.duration,lastmodifieddate:null==U||null==(j=U.custom)||null==(N=j.ctx)||null==(x=N.lastmodifieddate)?void 0:x.toString(),muted:e.getMute(),premiumContent:null==U||null==(A=U.custom)||null==(k=A.ctx)?void 0:k.premium,publishdate:null==U||null==(I=U.custom)||null==(_=I.ctx)||null==(E=_.publishdate)?void 0:E.toString(),providerName:null==U||null==(P=U.custom)||null==(S=P.ctx)?void 0:S.providername,tagsGeo:(0,T.X)(null==U||null==(M=U.custom)||null==(C=M.ctx)?void 0:C.tagsGeo),tagsKeyword:(0,T.X)(null==U||null==(B=U.custom)||null==(F=B.ctx)?void 0:F.tagsKeyword),tagsStorm:(0,T.X)(null==U||null==(L=U.custom)||null==(z=L.ctx)?void 0:z.tagsStorm)}}let Z=[{eventName:"ready",callback:e=>{let{player:t,trackVideoEvent:l}=e;window.addEventListener("beforeunload",()=>{W.videoStarted&&!W.videoEnd&&(t.getPlaylistItem()&&!W.videoAttempt&&l&&l({eventName:"video-end",eventAttributes:{adtitle:M,errorMessage:F,contentWatchedSeconds:z,playReason:"",videoView:B,...U(t)}}),W.videoEnd=!0)})}},{eventName:"adImpression",callback:async e=>{let{event:t,player:l,trackVideoEvent:a}=e,n=l.getPlaylistItem();O(),console.debug("JW Player callback - adImpression eventSentFlags:",W),M=null==t?void 0:t.adtitle,W.adImpression=!0,n&&!W.videoAttempt&&a&&(a({eventName:"video-attempt",eventAttributes:{adtitle:M,errorMessage:F,playReason:"",videoView:B,...U(l)}}),W.videoAttempt=!0),n&&!W.videoPlayed&&a&&(a({eventName:"video-played",eventAttributes:{adtitle:M,errorMessage:F,playReason:"",videoView:B,...U(l)}}),W.videoPlayed=!0)}},{eventName:"viewable",callback:async e=>{let{event:t}=e;B=null==t?void 0:t.viewable}},{eventName:"playlistItem",callback:async e=>{let{player:t,trackVideoEvent:l}=e;if(W.videoStarted&&!W.videoCompleted&&!W.videoEnd){let e=t.getPlaylistIndex(),a=t.getPlaylistItem(e-1);l({eventName:"video-end",eventAttributes:{adtitle:M,errorMessage:F,contentWatchedSeconds:z,playReason:"",videoView:B,...U(t,a)}}),W.videoEnd=!0}}},{eventName:"playAttempt",callback:async e=>{let{player:t,trackVideoEvent:l}=e,a=t.getPlaylistItem();W.adImpression||O(),F="",console.debug("JW Player callback - playAttempt eventSentFlags:",W),a&&!W.videoAttempt&&l&&(W.videoAttempt=!0,l({eventName:"video-attempt",eventAttributes:{adtitle:M,errorMessage:F,playReason:"",videoView:B,...U(t)}}))}},{eventName:"firstFrame",callback:async e=>{let{player:t,trackVideoEvent:l}=e;console.debug("JW Player callback - firstFrame eventSentFlags:",W);let a=t.getPlaylistItem();a&&!W.videoPlayed&&l&&(l({eventName:"video-played",eventAttributes:{adtitle:M,errorMessage:F,playReason:"",videoView:B,...U(t)}}),W.videoPlayed=!0),a&&!W.videoStarted&&l&&(l({eventName:"video-started",eventAttributes:{adtitle:M,errorMessage:F,playReason:"",videoView:B,...U(t)}}),W.videoStarted=!0)}},{eventName:"complete",callback:async e=>{let{player:t,trackVideoEvent:l}=e,a=t.getPlaylistItem();console.debug("JW Player callback - complete eventSentFlags:",W),a&&!W.videoCompleted&&l&&(l({eventName:"video-completed",eventAttributes:{adtitle:M,errorMessage:F,playReason:"",videoView:B,...U(t)}}),W.videoCompleted=!0),W.videoStarted&&!W.videoEnd&&(l({eventName:"video-end",eventAttributes:{adtitle:M,errorMessage:F,contentWatchedSeconds:z,playReason:"",videoView:B,...U(t)}}),W.videoEnd=!0)}},{eventName:"adStarted",callback:async e=>{let{event:t,player:l,trackVideoEvent:a}=e,n=l.getPlaylistItem();console.debug("JW Player callback - adStarted eventSentFlags:",W),M=null==t?void 0:t.adtitle,n&&a&&a({eventName:"ad-started",eventAttributes:{adtitle:M,errorMessage:F,playReason:"",videoView:B,...U(l)}})}},{eventName:"adSkipped",callback:async e=>{let{player:t,trackVideoEvent:l}=e;t.getPlaylistItem()&&l&&l({eventName:"ad-skipped",eventAttributes:{adtitle:M,errorMessage:F,playReason:"",videoView:B,...U(t)}})}},{eventName:"adComplete",callback:async e=>{let{event:t,player:l,trackVideoEvent:a}=e,n=l.getPlaylistItem();console.debug("JW Player callback - adComplete eventSentFlags:",W),M=null==t?void 0:t.adtitle,n&&a&&a({eventName:"ad-complete",eventAttributes:{adtitle:M,errorMessage:F,playReason:"",videoView:B,...U(l)}})}},{eventName:"adError",callback:async e=>{let{event:t}=e;console.error("Video ad error:",t)}},{eventName:"error",callback:async e=>{let{event:t}=e;F=null==t?void 0:t.message,console.error("Video Player error:",t)}},{eventName:"time",callback:e=>{let{event:t}=e;if("number"==typeof(null==t?void 0:t.position)){let e=t.position-L;z+=e,L=t.position}}},{eventName:"seek",callback:e=>{let{event:t}=e;"number"==typeof(null==t?void 0:t.offset)&&(L=t.offset)}}];var D=l(4461),J=l(99580),V=l(34158),H=l(72185),$=l(89882),q=l(24764),X=l(79591),Y=l(63305);let K={src:"/_next/static/media/placeholder.6858ca75.jpg"},G=async e=>{let t=await fetch(e);if(!t.ok)throw Error("Failed to fetch video data from ".concat(e));return t.json()},Q=e=>{var t;let{file:l,image:o,title:s,description:d,tracks:c=[],playlist:u,custom:v={},playerSettings:f,descriptionAttributes:g,videoReference:y,playlistsReference:b=[]}=e,h="video-player-".concat((0,n.useId)()),w=(0,n.useRef)(!0),x=(0,n.useRef)(null),N=(null==(t=(0,X.J)())?void 0:t.user)||{},j=(0,Y.i)(),k=null;y&&("string"==typeof y?k="/api/payload/videos/".concat(y):"object"==typeof y&&(k=(null==y?void 0:y.id)?"/api/payload/videos/".concat(y.id):null));let{data:A,error:E}=(0,r.Ay)(k,G,{revalidateOnFocus:!1,dedupingInterval:3e5}),_=(()=>{let e=(0,J.N)(),t=(0,H.A)(),l=(0,V.usePathname)();return(0,n.useCallback)(a=>{let{eventName:n,eventAttributes:r={}}=a;if(!D.A.isInitialized())return void console.warn("MParticle is not initialized");let i={...r,author:(null==t?void 0:t.author)||"",contentId:(null==t?void 0:t.contentId)||r.contentId,teaserTitle:"",title:"",...e,url:l?(0,R.EY)(l):""};try{D.A.logEvent(n,D.A.EventType.Other,i),console.debug('MParticle: Video Event tracked - "'.concat(n,'"'),i)}catch(e){console.error('MParticle: Failed to track Video Event - "'.concat(n,'"'),e)}},[null==t?void 0:t.author,null==t?void 0:t.contentId,e,l])})(),I=(0,n.useMemo)(()=>{let e=[];return!Array.isArray(c)&&(null==c?void 0:c.file)?e.push(c):Array.isArray(c)&&e.push(...c),e},[c]),S=(0,n.useMemo)(()=>A&&Object.keys(A).length>0||y&&"string"!=typeof y,[A,y]),P=(0,n.useMemo)(()=>A&&Object.keys(A).length>0?A:y&&"string"!=typeof y?y:null,[A,y]),T=(0,n.useMemo)(()=>{var e,t,a,n,r,i,o,s,d;return S&&(null==P||null==(t=P.content)||null==(e=t.videoFormatUrls)?void 0:e.length)>0?(null==P||null==(n=P.content)||null==(a=n.defaultFormat)?void 0:a.url)?null==P||null==(d=P.content)||null==(s=d.defaultFormat)?void 0:s.url:null==P||null==(o=P.content)||null==(i=o.videoFormatUrls)||null==(r=i[0])?void 0:r.url:l},[S,P,l]),M=(0,n.useMemo)(()=>{if(S){var e,t,l;return(null==P||null==(e=P.content)?void 0:e.keyFrameImage)||(null==P||null==(l=P.seo)||null==(t=l.image)?void 0:t.url)||o}return o},[S,P,o]),F=(0,n.useMemo)(()=>S&&(null==P?void 0:P.title)||s,[S,P,s]),B=(0,n.useMemo)(()=>{if(S&&(null==P?void 0:P.description)){var e,t,l;return(null==(l=P.description.root)||null==(t=l.children[0])||null==(e=t.children[0])?void 0:e.text)||d}return d},[S,P,d]),z=(0,n.useMemo)(()=>{if(x.current&&JSON.stringify({file:T,image:M,title:F,description:B,tracks:I,playlist:u,custom:v})===JSON.stringify(x.current))return x.current;let e=M||(T?(e=>{if(!e)return p;for(let t of[/(?:cdn\.jwplayer\.com\/(?:videos|manifests|previews)\/)([a-zA-Z0-9]+)(?:-[a-zA-Z0-9]+)?/,/(?:content\.jwplatform\.com\/(?:videos|manifests)\/)([a-zA-Z0-9]+)(?:-[a-zA-Z0-9]+)?/,/(?:players\.jwplayer\.com\/preview\/)([a-zA-Z0-9]+)(?:-[a-zA-Z0-9]+)?/]){let l=e.match(t);if(l&&l[1])return"https://cdn.jwplayer.com/v2/media/".concat(l[1],"/poster.jpg")}return p})(T):null)||K.src,t={file:T,image:e,title:F,description:B,tracks:I,custom:v};return x.current=t,t},[T,M,F,B,I,u,v]),L=(0,n.useMemo)(()=>{var e,t,l,a;let n=[];return u&&(n=((e,t)=>{var l;if(!(null==t?void 0:t.file))return[];if("string"==typeof e)return(null==t?void 0:t.file)?[t]:[];let a=Array.isArray(e)?e:[];return(null==t?void 0:t.file)&&(!(a.length>0)||(null==(l=a[0])?void 0:l.file)!==(null==t?void 0:t.file))?[t,...a.filter(e=>e.file!==t.file)]:a})(u,z)||[]),b&&b.length,S&&(null==P||null==(e=P.content)?void 0:e.playlists)&&Array.isArray(null==P||null==(t=P.content)?void 0:t.playlists)&&(null==P||null==(a=P.content)||null==(l=a.playlists)||l.length),n.length>0?n:[z]},[u,z,b,P,S]);if((0,n.useEffect)(()=>{w.current=!0},[L]),y&&"string"==typeof y&&!A&&!E)return(0,a.jsx)("div",{className:"flex h-32 items-center justify-center bg-gray-100",children:(0,a.jsx)("div",{className:"h-8 w-8 animate-spin rounded-full border-b-2 border-t-2 border-gray-900"})});if(E)return(0,a.jsx)("div",{className:"flex h-32 items-center justify-center bg-red-100 text-red-800",children:(0,a.jsx)("span",{children:"Failed to load video data"})});if(!T)return null;let W=[...C,...Z].map(e=>{let{eventName:t,callback:l}=e;return{eventName:t,callback:e=>{let{event:t,player:a}=e;return l({event:t,player:a,isFirstPlayRef:w,user:N,trackVideoEvent:_,isMobile:j})}}});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)($.DebugCollector,{componentName:"VideoBlock",data:{props:{file:l,image:o,title:s,description:d,tracksCount:(0,q.J)(I),hasPlaylist:!!u&&u.length>0,custom:v},state:{videoObject:z,playlistItems:L.length,isFirstPlay:w.current,events:W.map(e=>e.eventName)},performance:{}}}),(0,a.jsx)(m,{playlist:L,events:W},h),(null==f?void 0:f.showDescriptions)&&(0,a.jsx)("p",{...g,className:(0,i.cn)("my-2 text-sm",null==g?void 0:g.className),children:z.title})]})},ee=Q},59333:(e,t,l)=>{"use strict";l.r(t),l.d(t,{ImageBlock:()=>d,default:()=>c});var a=l(19948),n=l(91712),r=l(78702),i=l(24484),o=l(3491);let s=n.forwardRef((e,t)=>{let{src:l,alt:n,caption:r,credit:s,width:d=320,height:c=180,shadow:u=!0,rounded:v=!0,className:m,sizes:p,priority:f,imageAttributes:g}=e,y=!!(r||s);return(0,a.jsxs)("figure",{ref:t,className:(0,i.cn)(m),children:[(0,a.jsx)(o._,{src:l,alt:n,width:d,height:c,shadow:u,rounded:v,sizes:p,priority:f,...g}),y&&(0,a.jsxs)("figcaption",{className:"mt-2 text-sm leading-tight",children:[r&&(0,a.jsx)("p",{children:r}),s&&(0,a.jsxs)("p",{className:"m-0 text-gray-500",children:["(",s,")"]})]})]})});s.displayName="Figure";let d=e=>{var t,l,n;let{imageType:o,internalImageId:d,externalImageUrl:c,controls:u,altText:v,isPriorityImage:m,imageAttributes:p,linkUrl:f}=e;if(!o||!d&&!c)return(0,a.jsx)("div",{className:"text-center text-red-500",children:"Error: Missing data for the image block."});let g="internal"===o&&(e=>"object"==typeof e&&null!==e&&"url"in e)(d),y=g?(null==d?void 0:d.url)||"":c||"",b=g?(null==d||null==(t=d.seo)?void 0:t.altText)||"":v||"",h="",w="";(null==u?void 0:u.showCaption)&&((!g||(null==u?void 0:u.useImageCaption))&&"external"!==o?g&&(h=(null==d||null==(l=d.seo)?void 0:l.caption)||"",w=(null==d||null==(n=d.seo)?void 0:n.credit)||""):(h=(null==u?void 0:u.caption)||"",w=(null==u?void 0:u.credit)||""));let x=(0,a.jsx)(s,{src:y,alt:b,caption:h,credit:w,priority:!!m,className:(0,i.cn)("my-4 flex flex-col",{"max-w-[480px]":(null==u?void 0:u.width)==="half"}),sizes:"(max-width: 767px) 91vw, (max-width: 1280px) 64vw, 800px",imageAttributes:p});return f?(0,a.jsx)(r.default,{href:f,target:"_blank",rel:"noopener noreferrer nofollow",children:x}):x},c=d},67484:e=>{e.exports={jwplayerContainer:"JWPlayer_jwplayerContainer__u4Psj"}},69146:(e,t,l)=>{"use strict";l.r(t),l.d(t,{LiveblogEntriesBlock:()=>n,default:()=>r});var a=l(19948);l(91712);let n=()=>(0,a.jsx)("div",{children:"Live Blog Entries"}),r=n},89882:(e,t,l)=>{"use strict";l.r(t),l.d(t,{DebugCollector:()=>i});var a=l(91712),n=l(41741);let r=(0,l(6139).h)("DebugCollector");function i(e){let{componentName:t,data:l,page:i,onUpdateData:o,onSetPageData:s}=e,{updateComponentData:d,setPageData:c}=(0,n.K)(),u=(0,a.useRef)(!1),v=o||d,m=s||c;return(0,a.useEffect)(()=>{if(l)return r.lifecycle("Collecting component data for ".concat(t),{dataKeys:Object.keys(l),hasPerformance:!!l.performance,hasContext:!!l.context}),v(t,{...l,_collectedAt:new Date().toISOString()}),()=>{r.lifecycle("Cleaning up data for ".concat(t)),v(t,null)}},[t,l,v]),(0,a.useEffect)(()=>{i&&!u.current&&(r.lifecycle("Setting page metadata",{title:i.title,assetName:i.assetName,collection:i.collection}),m({...i,_updatedAt:new Date().toISOString()}),u.current=!0)},[i,m]),null}}}]);