1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3394],{7370:(e,t,r)=>{"use strict";r.d(t,{default:()=>eB});var n=r(53954),i=r(73929);i.Ay.CLOSINGS_URL;var a=r(92890);i.Ay.VIDEO_RECOMMENDATIONS_ENABLE_LOGGING,new a.default("Video Recommendations Client"),i.Ay.VIDEO_RECOMMENDATIONS_TIMEOUT,i.Ay.VIDEO_RECOMMENDATIONS_CACHE_DURATION,i.Ay.VIDEO_RECOMMENDATIONS_ERROR_CACHE_DURATION,i.Ay.FEED_SERVICE_URL;var o=r(44557),l=r(25390),s=r(68394),c=r(57539),d=r(38413);let h=(0,c.J1)` 2 query SiteMetadataQuery($siteId: UUID!) { 3 sites(ID: $siteId) { 4 id 5 __typename 6 metadata { 7 web 8 social 9 links 10 defaults 11 } 12 } 13 } 14`;async function u(e){let{site:{site_id:t},graphqlClient:r}=e,n=await r.query({query:h,variables:{siteId:t},context:{cache:{strategy:d.D.dynamic,ttl:300}}});return n?.data?.sites?.[0]?.metadata}async function m(e){let t=e?.req?.site?.site_id;if(t)try{let{config:r}=await (0,l.H)(e,{configType:"htv-metadata",resourceId:t,resourceType:"site",consumer:"htv",slugs:e?.req?.site?.site_prefix??""});return r}catch(e){console.warn("GAI Search: fetchSiteHtvMetadata failed",e);return}}(0,s.cache)(u),(0,s.cache)(m),(0,c.J1)` 15 query ClosingsSectionQuery($siteId: UUID!) { 16 sites(ID: $siteId) { 17 id 18 __typename 19 sections(slug: "closings") { 20 __typename 21 id 22 display_id 23 title 24 slug 25 body 26 parent { 27 id 28 display_id 29 slug 30 metadata { 31 seo_meta_title 32 seo_meta_description 33 seo_meta_keywords 34 } 35 } 36 metadata { 37 seo_meta_title 38 seo_meta_description 39 seo_meta_keywords 40 } 41 } 42 } 43 } 44`;var p=r(92826),g=r(24226),f=r(35004),x=r(27607),b=r(52763),y=r(54288),w=r(67565),v=r(47333);let j={fontFamily:"var(--font-montserrat)",fontWeight:600,fontSize:"1.4rem"},A=w.A.div({backgroundColor:"rgba(44, 44, 44, 0.97)",position:"fixed",top:"0",left:"0",zIndex:"5999997",width:"100%",height:"100%",color:v.T.neutral[550]}),S=w.A.div({padding:"1.25rem",[y.fi.small]:{padding:"4.375rem 1.875rem 1.875rem"}}),_=w.A.button({color:v.T.neutral[50],float:"right",border:"none",background:"transparent"}),T=w.A.h2({...j}),k=w.A.label({position:"absolute",top:"-1000px",left:"-1000px",height:"1px",width:"1px",overflow:"hidden"}),C=w.A.input({...j,fontSize:"3.125rem",width:"20rem",background:"transparent",border:`1px solid ${v.T.neutral[550]}`,borderRadius:0,marginBottom:"1.25rem",color:v.T.neutral[550],textAlign:"center",letterSpacing:"1rem",padding:"5px 0"}),$=w.A.button({background:"transparent",color:"white",border:"none",marginLeft:"20px"}),E=w.A.button({...j,display:"block",background:"transparent",color:"white",border:"none",padding:0,margin:"20px 0"});function I({recentLocations:e,addLocation:t,isOpen:r=!1,onClose:i}){let[a,l]=(0,s.useState)(""),c=(0,s.useRef)(null),d=()=>{alert("That ZIP doesn't appear to be valid.")},h=async e=>{if(e.preventDefault(),null===/\d{5}/.exec(a)){d(),c.current?.focus();return}try{let e=await (0,o.Jf)(a);if(!e){d(),c.current?.focus();return}t({zip:e.zip,name:`${e.city}, ${e.state}`}),i()}catch{d(),c.current?.focus()}};if(!r)return null;let u=e=>(0,n.jsxs)(E,{onClick:()=>{t(e),i()},children:[e.name," ",e.zip]},e.zip);return(0,n.jsx)(A,{className:"weather-overlay",role:"dialog","aria-modal":"true","aria-label":"Search Locations",children:(0,n.jsxs)(S,{className:"page-overlay--inner",children:[(0,n.jsx)(_,{className:"weather-overlay-close-button","aria-label":"Close ZIP modal",onClick:i,children:(0,n.jsx)(b.GWt,{size:30,"aria-hidden":"true"})}),(0,n.jsxs)("form",{action:"/search",className:"search-form",method:"get",onSubmit:h,children:[(0,n.jsx)(T,{as:"h1",children:"Search location by ZIP code"}),(0,n.jsx)(k,{children:"ZIP"}),(0,n.jsx)(C,{ref:c,className:"zipcode-input",pattern:"[0-9]*",type:"text",name:"zip",id:"zip-input-field",maxLength:5,value:a,onChange:e=>l(e.target.value),autoComplete:"postal-code"}),(0,n.jsx)($,{type:"submit",className:"submit","aria-label":"Search ZIP code",children:(0,n.jsx)(x.KSO,{size:32,"aria-hidden":"true"})}),e[0]&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(T,{children:"Current Location"}),u(e[0])]}),e.slice(1).length&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(T,{children:"Recent Locations"}),e.slice(1).map(e=>u(e))]})]})]})})}let L=w.A.div({opacity:"1",overflow:"inherit",transition:"opacity 0.3s ease-in-out",backgroundColor:"rgba(44, 44, 44, 0.97)",position:"fixed",top:"0",left:"0",zIndex:"5999997",width:"100%",height:"100%"}),z=w.A.div({padding:"1.25rem","@media only screen and (min-width: 41.25rem)":{padding:"4.375rem 1.875rem 1.875rem"}}),N=w.A.button({color:v.T.neutral[50],float:"right",border:"none",background:"transparent",outline:"none",transition:"color .3s ease-in-out",textDecoration:"none",i:{lineHeight:"inherit",fontFamily:"var(--font-icon)",display:"inline-block",verticalAlign:"middle",fontWeight:"400",fontStyle:"normal",speak:"none"}}),R=w.A.div` 45 margin: 0 auto; 46 clear: both; 47`;w.A.div({fontFamily:"var(--font-montserrat), Helvetica, Arial, sans-serif",fontSize:"1.5rem",lineHeight:"1.2",boxSizing:"border-box",outline:"none",display:"block",background:"transparent",width:"100%",padding:"0.3125rem 0",border:"none",borderBottom:`1px solid ${v.T.neutral[825]}`,color:v.T.neutral[50],marginBottom:"1.25rem",borderRadius:"0",margin:"0"});let D=w.A.input({fontFamily:"var(--font-montserrat), Helvetica, Arial, sans-serif",fontSize:"1.5rem",lineHeight:"1.2",boxSizing:"border-box",outline:"none",display:"block",background:"transparent",width:"100%",padding:"0.3125rem 0",border:"none",borderBottom:`1px solid ${v.T.neutral[825]}`,color:v.T.neutral[50],marginBottom:"1.25rem",borderRadius:"0",fontWeight:"600","
47::placeholder":{color:v.T.neutral[50]},"::-webkit-search-cancel-button":{display:"none"}}),O=w.A.label({fontFamily:"var(--font-montserrat), Helvetica, Arial, sans-serif",fontSize:"1.125rem",lineHeight:"1.2",color:v.T.neutral[50],fontWeight:"600"});function W(){return(0,n.jsx)("svg",{width:"30",height:"30",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M20 4L4 20M4 4L20 20",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function M({isOpen:e=!1,onClose:t}){let[r,i]=(0,s.useState)("");return e?(0,n.jsx)(L,{className:`page-overlay search-overlay ${e?"active":""}`,role:"dialog","aria-modal":"true","aria-label":"search",children:(0,n.jsxs)(z,{className:"page-overlay--inner",children:[(0,n.jsx)(N,{className:"page-overlay--close-button","aria-label":"Close search",onClick:()=>t(),children:(0,n.jsx)("i",{className:"icon icon-close01","aria-hidden":"true",children:(0,n.jsx)(W,{})})}),(0,n.jsx)(R,{className:"search-overlay--form",children:(0,n.jsxs)("form",{action:"/search",className:"search-form",method:"get",onSubmit:e=>{e.preventDefault(),window.location.href=`/search?q=${encodeURIComponent(r)}`},children:[(0,n.jsx)(D,{type:"search",name:"q",placeholder:"Search",value:r,onChange:e=>i(e.target.value),autoComplete:"off"}),(0,n.jsx)(O,{children:""===r?"Type to Search":"Press enter to search"})]})})]})}):null}let U=w.A.nav(({isActive:e})=>({left:0,position:"absolute",width:"17rem",backgroundColor:"rgba(44,44,44,.98)",zIndex:1e3,overflowY:"auto",paddingBottom:"4rem",transition:e?"visibility 0s linear 0s,transform .5s":"visibility 0s linear .5s,transform .5s",transform:e?"translateX(0)":"translateX(-17rem)",visibility:e?"visible":"hidden"})),H=w.A.button({padding:"24px 32px 8px 0",textAlign:"right",fontSize:"1.5rem",color:v.T.neutral[50],border:"none",background:"transparent",transition:"color .3s ease-in-out",textDecoration:"none",display:"flex",justifyContent:"flex-end",width:"100%"}),F=w.A.ul({listStyle:"none",margin:0,padding:"16px 32px 32px 16px"}),P=w.A.li({borderBottom:`1px solid ${v.T.neutral[875]}`,position:"relative","&:last-child":{borderWidth:0},a:{background:"transparent",padding:".625rem 0 .625rem .625rem",display:"inline-block",width:"100%",transition:"unset",textDecoration:"none",fontFamily:"var(--font-montserrat)",fontWeight:500,fontSize:"1.125rem",lineHeight:"1.2",color:v.T.neutral[50]},".menu-item-button":{background:"transparent",padding:"10px 12px",display:"inline-block",width:"100%",border:"none",textAlign:"left",fontFamily:"var(--font-montserrat)",fontWeight:500,fontSize:"1.125rem",lineHeight:"1.2",color:v.T.neutral[50],position:"relative"}}),B=w.A.ul({listStyle:"none",paddingLeft:0,borderTop:`1px solid ${v.T.neutral[875]}`}),q=w.A.li({borderBottom:`1px solid ${v.T.neutral[925]}`,a:{color:v.T.neutral[500],padding:"8px 12px 8px 32px"}}),G=w.A.span(({isExpanded:e})=>({position:"absolute",right:0,top:"50%",transform:"translateY(-50%)",color:v.T.neutral[500],fontSize:"30px",cursor:"pointer","&::before":{content:e?'"â"':'"+"'}})),V=w.A.span({display:"inline-block",width:"28px",height:"28px",position:"relative","&::before, &::after":{content:'""',position:"absolute",width:"100%",height:"2px",backgroundColor:"currentColor",top:"50%",left:0},"&::before":{transform:"rotate(45deg)"},"&::after":{transform:"rotate(-45deg)"}}),J=w.A.small({margin:"8px",fontFamily:"var(--font-montserrat)",fontWeight:500});function Z({appVersion:e,isActive:t,onClose:r,menu:i,sidebarTop:a}){let{expandedItems:o,handleToggleSubmenu:l}=function(){let[e,t]=(0,s.useState)(new Set);return{expandedItems:e,handleToggleSubmenu:(0,s.useCallback)(e=>{t(t=>{let r=new Set(t);return r.has(e)?r.delete(e):r.add(e),r})},[])}}(),c=(0,s.useCallback)((e,t)=>{let r=e.items&&e.items.length>0,i=o.has(t),a=Array.isArray(e.url)?e.url[0]:e.url;return(0,n.jsx)(P,{children:r?(0,n.jsxs)(n.Fragment,{children:[a?(0,n.jsxs)("a",{href:a,className:"menu-item-button","aria-expanded":i,"aria-label":`Navigate to ${e.label}`,tabIndex:0,children:[e.label,(0,n.jsx)(G,{isExpanded:i,onClick:e=>{e.preventDefault(),e.stopPropagation(),l(t)}})]}):(0,n.jsxs)("button",{className:"menu-item-button",onClick:()=>l(t),"aria-expanded":i,"aria-label":e.label,tabIndex:0,children:[e.label,(0,n.jsx)(G,{isExpanded:i,onClick:e=>{e.stopPropagation(),l(t)}})]}),i&&(0,n.jsx)(B,{children:e.items.map(e=>(0,n.jsx)(q,{children:(0,n.jsx)("a",{href:Array.isArray(e.url)?e.url[0]:e.url,tabIndex:0,"aria-label":`Navigate to ${e.label}`,children:e.label})},`${e.label}-${Array.isArray(e.url)?e.url[0]:e.url}`))})]}):(0,n.jsx)("a",{href:a,tabIndex:0,"aria-label":`Navigate to ${e.label}`,children:e.label})},`${e.label}-${a||t}`)},[o,l]),d=(0,s.useMemo)(()=>i?.map((e,t)=>c(e,t))||[],[i,c]);
47return(0,n.jsxs)(U,{isActive:t,id:"sidepanel",style:{top:a},"aria-label":"Main navigation",children:[(0,n.jsx)(H,{id:"sidepanel-close-button",onClick:r,onTouchStart:r,"aria-label":"Close navigation",tabIndex:0,children:(0,n.jsx)(V,{})}),(0,n.jsx)(F,{id:"sidepanel-menu",role:"menu",children:d}),(0,n.jsxs)(J,{"aria-hidden":"true",children:["NextFRE ",e]})]})}var K=r(73180),Y=r(33639),X=r(53924),Q=r(21802);r(82239),r(32207);var ee=r(81341),et=r(92026);let er=w.A.div({fontFamily:"var(--font-montserrat)",fontWeight:600,fontSize:"0.875rem",borderBottom:`3px solid ${v.T.neutral[975]}`,backgroundColor:v.T.neutral[50],[y.Zj.small]:{minHeight:"75px"},[(0,y.v0)("48rem")]:{fontSize:"1rem"}}),en=(0,w.A)(y._V)({position:"relative",minHeight:"44px"}),ei=w.A.div({padding:"6px 0",[y.fi.small]:{width:"calc(100% - 140px)"}}),ea=w.A.div({overflow:"hidden"}),eo=w.A.a({overflow:"hidden",textOverflow:"ellipsis",textDecoration:"none",display:"block",lineHeight:"28px",[y.fi.small]:{whiteSpace:"nowrap"}}),el=w.A.span({color:v.T.red[400],textTransform:"uppercase"}),es=w.A.span({color:v.T.neutral[975],display:"-webkit-box",lineHeight:"1.2rem",maxHeight:"2.4rem",overflow:"hidden",textOverflow:"ellipsis",WebkitLineClamp:2,WebkitBoxOrient:"vertical",[y.fi.small]:{display:"inline",marginLeft:"10px"}}),ec=w.A.span({color:v.T.neutral[850],marginLeft:"10px"}),ed=w.A.div({display:"flex",flexWrap:"wrap",alignItems:"center",">*":{marginRight:"15px"}}),eh=w.A.span({width:"100%",flexGrow:1,lineHeight:"28px",span:{marginLeft:"5px"},[y.fi.small]:{width:"auto",flexGrow:0,lineHeight:"normal"}}),eu=w.A.span({fontWeight:700}),em=w.A.span({color:v.T.neutral[825],fontSize:"0.8rem",display:"inline-flex",alignItems:"center",svg:{marginRight:"3px"}}),ep=w.A.div({display:"inline-block"}),eg={color:v.T.neutral[990],backgroundColor:"rgba(222, 222, 222, .8)",borderRadius:"2.5rem",border:"none",height:"28px",fontFamily:"inherit",display:"inline-flex",alignItems:"center",padding:"0 .4rem",svg:{verticalAlign:"text-top"}},ef=w.A.button({...eg,fontWeight:500,span:{marginLeft:"3px",display:"none",[y.fi.medium]:{display:"initial"}}}),ex=w.A.button({...eg,marginLeft:"5px"}),eb=w.A.a({display:"none",marginLeft:"30px",textDecoration:"none",color:v.T.neutral[1100],fontSize:"0.8rem",alignItems:"center",svg:{marginLeft:"10px"},[y.fi.medium]:{display:"inline-flex"}}),ey=w.A.div({background:"white",position:"absolute",top:"10px",right:"6px",display:"flex",flexShrink:0}),ew=w.A.span({color:v.T.neutral[825],textAlign:"center",padding:"0 6px"}),ev=w.A.button({background:"none",border:"none",padding:"0 8px"}),ej=(0,w.A)(ev)({paddingRight:"0"});function eA({content:e,frontendLinkTemplate:t,...r}){let i=(0,K.G)(e);return(0,n.jsx)(ea,{...r,children:(0,n.jsxs)(eo,{target:"_top",href:e.metadata.external_link||(0,Y.JX)(e,t),children:[(0,n.jsx)(el,{children:"Breaking News:"}),(0,n.jsxs)(es,{children:[e.metadata.index_title||e.title,i&&(0,n.jsx)(ec,{children:i})]})]})})}function eS(e){return 1===e?"There is currently 1 active weather alert":`There are currently ${e} active weather alerts`}function e_({frontendLinkTemplate:e,weatherData:t,storedLocation:r,closingsCount:i,breakingNews:a,locateMeEnabled:o,handleLocateMeClick:l,handleChangeZipClick:c}){let d=(0,s.useRef)(null),[h,u]=(0,s.useState)(!1),[m,p]=(0,s.useState)(1),g=()=>{d?.current?.slickPause(),u(!0)},f=a?.sections.flatMap(e=>e.units.map(e=>e.data.content)),x=t?.alerts_count??0,y=x>0,w=!!(t||r?.zip),j=(f?.length??0)+ +!!i+ +!!y+ +!!w;return(0,n.jsx)(er,{children:(0,n.jsxs)(en,{children:[(0,n.jsx)(ei,{children:(0,n.jsxs)(Q.A,{ref:e=>{d.current=e},...{slidesToShow:1,slidesToScroll:1,arrows:!1,dots:!1,infinite:j>1,autoplay:!0,autoplaySpeed:8e3,speed:500,draggable:!1,afterChange:e=>{p(e+1)}},children:[f?.map(t=>(0,n.jsx)(eA,{content:t,frontendLinkTemplate:e},t.display_id)),i&&(0,n.jsx)(ea,{children:(0,n.jsxs)(eo,{target:"_top",href:"/weather/closings",children:[(0,n.jsx)(el,{children:"Closings"}),(0,n.jsx)(es,{children:1===i?"There is currently 1 active closing or delay":`There are currently ${i} active closings or delays`})]})}),y&&(0,n.jsx)(ea,{children:(0,n.jsxs)(eo,{target:"_top",href:"/alerts",children:[(0,n.jsx)(el,{children:"Severe Weather"}),(0,n.jsx)(es,{title:eS(x),children:eS(x)})]})}),w&&(0,n.jsx)(ea,{children:(0,n.jsxs)(ed,{children:[(0,n.jsxs)(eh,{children:[t?(0,et.y)(t)??"":(0,et.Z)(r)??"",(0,n.jsx)("span",{children:t?.zip??r?.zip})]}),(0,n.jsx)(eu,{children:t?.current?`${t.current.temp_f}\xb0`:"â"}),(0,n.jsxs)(em,{children:[(0,n.jsx)(ee.A,{size:28,color:v.T.blue[200],iconName:t?.current?.icon_name,"aria-hidden":"true"}),t?.current?.sky??""]}),(0,n.jsxs)(em,{children:[(0,n.jsx)(X.b8l,{size:28,color:v.T.blue[200],"aria-hidden":"true"}),t?.hourly?.[0]?`${t.hourly[0].precip_chance}%`:"â"]}),(0,n.jsxs)(ep,{children:[(0,n.jsxs)(ef,{onClick:c,"aria-label":"Change weather location",children:[(0,n.jsx)(b.sIY,{size:16,"aria-hidden":"true"}),(0,n.jsx)("span",{children:"Change"})]}),o&&(0,n.jsx)(ex,{"aria-label":"Use current location for weather",onClick:()=>{l()},children:(0,n.jsx)(b.meu,{size:16,"aria-hidden":"true"})})]}),(0,n.jsxs)(eb,{target:"_top",href:"/weather",children:["MORE",(0,n.jsx)(b.X6T,{size:10,"aria-hidden":"true"})]})]})})]})}),0!==j&&(0,n.jsxs)(ey,{children:[(0,n.jsx)(ev,{onClick:()=>{d?.current?.slickPrev(),g()},"aria-label":"Previous Alert",children:(0,n.jsx)(b._Jj,{size:14})}),(0,n.jsxs)(ew,{children:[m," / ",j]}),(0,n.jsx)(ev,{onClick:()=>{d?.current?.slickNext(),g()},"aria-label":"Next Alert",children:(0,n.jsx)(b.X6T,{size:14})}),(0,n.jsx)(ej,{onClick:h?()=>{d?.current?.slickPlay(),u(!1)}:g,children:h?(0,n.jsx)(b.gSK,{size:18,"aria-label":"Play Alerts Carousel"}):(0,n.jsx)(b.kwt,{size:18,"aria-label":"Stop Alerts Carousel"})})]})]})})}let eT=w.A.header({backgroundColor:v.T.neutral[975],display:"block"}),ek=(0,w.A)(y._V)(({$noLeftPadding:e})=>({height:"4rem",...e&&{paddingLeft:0,"& .header-logo, & #header-logo-mobile":{marginLeft:0}},[y.fi.small]:{height:"6rem"}})),eC=w.A.button({color:v.T.neutral[500],verticalAlign:"middle",textAlign:"center",border:"none",background:"transparent",padding:0,transition:"color .3s ease-in-out",textDecoration:"none",height:"100%","&:hover":{color:v.T.neutral[50]},i:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"2rem",svg:{fontStyle:"normal",fontSize:"2rem",width:"2rem",height:"2rem",display:"block"}}}),e$=w.A.span({fontWeight:700,display:"none",fontFamily:"sans-serif",[y.fi.small]:{fontSize:".7rem",textTransform:"uppercase",display:"block",marginTop:".25rem",fontWeight:"700"}});w.A.i({display:"flex"});let eE=w.A.a({display:"none",marginLeft:".625rem",lineHeight:"4rem",[y.fi.small]:{marginLeft:"1.25rem",lineHeight:"6rem"},[y.fi.medium]:{display:"inline-block"},img:{verticalAlign:"middle",height:"2.8rem",[y.fi.small]:{height:"4.2rem"}}}),eI=w.A.a({display:"inline-block;",marginLeft:".625rem",lineHeight:"4rem",[y.fi.small]:{marginLeft:"1.25rem",lineHeight:"6rem"},[y.fi.medium]:{display:"none"},img:{verticalAlign:"middle",height:"2.8rem",[y.fi.small]:{height:"4.2rem",width:"auto"}}}),eL=w.A.ul({float:"right",display:"table",margin:0,padding:0,height:"4rem",listStyleType:"none",[y.fi.small]:{height:"6rem"},a:{fontFamily:"var(--font-montserrat)",fontSize:".75rem",lineHeight:"1.2",textTransform:"uppercase",textDecoration:"none",color:"inherit",display:"block"}}),ez=w.A.li({display:"table-cell",textAlign:"center",verticalAlign:"bottom",paddingLeft:".9375rem",paddingBottom:"19px",fontFamily:"var(--font-montserrat)",fontSize:"1rem",lineHeight:"1.2",color:v.T.neutral[500],[y.fi.small]:{paddingLeft:"1.875rem"}}),eN=w.A.li({[y.fi.small]:{paddingLeft:"1.875rem",display:"table-cell",textAlign:"center",verticalAlign:"bottom",paddingBottom:"19px",fontFamily:"var(--font-montserrat)",fontSize:"1rem",lineHeight:"1.2",color:v.T.neutral[500]}}),eR=w.A.div({display:"none",[y.fi.medium]:{display:"table-cell",paddingLeft:"6px",paddingRight:"6px"}}),eD=w.A.a({display:"flex",flexDirection:"column",cursor:"pointer","&:hover":{color:v.T.neutral[50]}}),eO=w.A.div({fontWeight:600,display:"none",[y.fi.small]:{display:"block",marginTop:".25rem"}}),eW=w.A.span({fontFamily:"var(--font-montserrat)",fontSize:".9375rem",fontWeight:600,lineHeight:"1.2",minWidth:"21px",display:"inline-block",[y.fi.small]:{fontSize:"1rem"}}),eM=w.A.i(({fontSize:e="0.9rem"})=>({margin:"4px",svg:{fontSize:e,width:e,height:e,verticalAlign:"middle",marginBottom:".25rem"}}));w.A.button({background:"none",border:"none",color:"white"});var eU=r(98663);let eH=({assets:e,accessibilityName:t})=>{let r=e?.alternate_logo,i=(0,eU.k2)(e?.alternate_logo),a=(0,eU.k2)(e?.logo),o=(0,eU.k2)(e?.logo_mobile||e?.logo);return(0,n.jsx)(n.Fragment,{children:r?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(eE,{href:"/",target:"_top",className:"header-logo",children:(0,n.jsx)("img",{src:i,alt:t,height:67,width:200})}),(0,n.jsx)(eI,{id:"header-logo-mobile",href:"/",target:"_top",children:(0,n.jsx)("img",{src:i,alt:t,height:44,width:133,fetchPriority:"high"})})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(eE,{href:"/",target:"_top",className:"header-logo",children:(0,n.jsx)("img",{src:a,alt:t,height:67,width:200})}),(0,n.jsx)(eI,{id:"header-logo-mobile",href:"/",target:"_top",children:(0,n.jsx)("img",{src:o,alt:t,height:44,width:133,fetchPriority:"high"})})]})})};function eF({weatherData:e}){let t=e?.current.temp_f,r=e?.current.icon_name;return(0,n.jsx)(ez,{id:"weather-nav-item",children:(0,n.jsxs)(eD,{id:"nav-menu-weather-button",target:"_top",href:"/weather",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(eM,{fontSize:"1.2rem",children:(0,n.jsx)(ee.A,{iconName:r})}),(0,n.jsx)(eW,{children:t&&`${t}\xb0`})]}),(0,n.jsx)(eO,{id:"nav-item-text",children:"WEATHER"})]})})}var eP=r(62408);function eB({appVersion:e,frontendLinkTemplate:t,menu:r,defaultZipCode:i,assets:a,fullName:l,shortName:c,closingsCount:d,breakingNews:h,hideMenuButton:u=!1,hideSearch:m=!1,hideCarousel:x=!1,hideNavMenu:b=!1}
47){let[w,v]=(0,s.useState)(!1),{sidebarTop:j,syncSidebarTop:A}=function(e){let[t,r]=(0,s.useState)(`${y.Cp}px`),n=(0,s.useCallback)(()=>{var e,t;let n=(e=document.querySelector("#nowcast-header"),(t=document.querySelector("#header-inner"))?(e?.clientHeight??0)+t.clientHeight:y.Cp);r(`${n}px`)},[]);return(0,s.useEffect)(()=>{if(e)return window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)},[e,n]),{sidebarTop:t,syncSidebarTop:n}}(w),[S,_]=(0,s.useState)(!1),[T,k]=(0,s.useState)(!1),[C,$]=(0,s.useState)(),[E,L]=(0,s.useState)(!1),{addLocation:z,setCurrentLocationName:N,currentZip:R,recentLocations:D}=(0,f.KE)({defaultZipCode:i});(0,s.useEffect)(()=>{L("u">typeof navigator&&!!navigator.geolocation)},[]);let O=async()=>{try{let e=await (0,eP.gW)();e&&z(e)}catch(e){console.error("Error using current location for weather",e)}};return(0,s.useEffect)(()=>{let e=R?.zip;if(!e)return;let t=!1;return(async()=>{try{let r=await (0,o.Jf)(e);if(t)return;$(r),r?.city!=null&&r?.state!=null&&N(e,`${r.city}, ${r.state}`)}catch(e){console.error("Error fetching simple weather for top nav",e),t||$(void 0)}})(),()=>{t=!0}},[R?.zip]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(M,{isOpen:S,onClose:()=>{_(!1)}}),(0,n.jsx)(I,{isOpen:T,onClose:()=>{k(!1)},recentLocations:D,addLocation:z}),(0,n.jsxs)(eT,{id:"header",children:[(0,n.jsxs)(ek,{id:"header-inner",$noLeftPadding:u,children:[!u&&(0,n.jsxs)(eC,{id:"header-sidepanel-button",title:"Navigation","aria-controls":"sidepanel",onClick:()=>{A(),v(!w)},children:[(0,n.jsx)("i",{id:"bars","aria-hidden":!0,children:(0,n.jsx)(g.g,{icon:p.ckx})}),(0,n.jsx)(e$,{id:"header-sidepanel-text",children:"Menu"})]}),(0,n.jsx)(eH,{assets:a,accessibilityName:c||l}),!b&&(0,n.jsxs)(eL,{id:"nav-menu",children:[(0,n.jsx)(ez,{id:"nav-item","data-id":"1",children:(0,n.jsxs)(eD,{id:"brazeSubscribe",href:"/subscribe",children:[(0,n.jsx)(eM,{children:(0,n.jsx)(g.g,{icon:p.y_8,"aria-hidden":!0})}),(0,n.jsx)(eO,{id:"brazeSubscribeText",children:"SUBSCRIBE TO EMAILS"})]})}),(0,n.jsx)(eF,{weatherData:C}),!m&&(0,n.jsx)(eN,{id:"nav-search-item",children:(0,n.jsx)(eR,{id:"desktop-only",children:(0,n.jsxs)(eD,{id:"nav-search-button",onClick:()=>_(!0),onTouchStart:()=>_(!0),children:[(0,n.jsx)(eM,{children:(0,n.jsx)(g.g,{icon:p.MjD})}),(0,n.jsx)(eO,{id:"nav-item-text",onClick:()=>_(!0),onTouchStart:()=>_(!0),children:"SEARCH"})]})})})]})]}),!x&&(0,n.jsx)(e_,{frontendLinkTemplate:t,weatherData:C,storedLocation:R,locateMeEnabled:E,closingsCount:d,breakingNews:h,handleLocateMeClick:O,handleChangeZipClick:()=>k(!0)})]}),!u&&(0,n.jsx)(Z,{appVersion:e,menu:r,isActive:w,onClose:()=>v(!1),sidebarTop:j})]})}},25390:(e,t,r)=>{"use strict";r.d(t,{H:()=>o});var n=r(57539),i=r(38413);let a=(0,n.Ay)` 48 query ConfigQuery( 49 $resourceId: String! 50 $resourceType: String! 51 $slugs: String! 52 $debug: String! 53 $consumer: String! 54 $configType: String! 55 ) { 56 cacheable_config( 57 resource_id: $resourceId 58 config_type: $configType 59 resource_type: $resourceType 60 consumer: $consumer 61 slugs: $slugs 62 debug: $debug 63 ) { 64 merged_configs: merged_config_ids 65 config 66 hash 67 __typename 68 } 69 } 70`;async function o(e,t,r={}){let{graphqlClient:n}=e.req,{resourceId:l,resourceType:s,slugs:c="",debug:d="",consumer:h="htv",configType:u="theme"}=t,{cache:m=!0}=r,p=m?{cache:{strategy:i.D.config}}:{cache:!1},g=c;if(!m){let e=`nocache_${Date.now()}`;g?g+=`,${e}`:g=e}let{data:f}=await n.query({query:a,variables:{resourceId:l,resourceType:s,slugs:g,debug:d,consumer:h,configType:u},requiredFields:["cacheable_config.config"],context:p});if(f?.notFound)return{isValid:!1,config:f};let{merged_configs:x,config:b,hash:y}=f.cacheable_config||{};return x?.length&&e?.res?.locals.surrogateKeys.push(...x),y&&Object.defineProperty(b,"hash",{value:y}),{isValid:!!b,config:b}}},33639:(e,t,r)=>{"use strict";r.d(t,{JX:()=>i,tp:()=>a});var n=r(34733);let i=(e,t)=>{let r=t?.replace("{slug}",e.slug).replace("{display_id_absolute}",e.display_id.toString());return r?(0,n.IU)(r):""},a=(e,t)=>i(e,t?.links?.templates?.ContentModel?.frontendLinkTemplate)},35004:(e,t,r)=>{"use strict";r.d(t,{pY:()=>l,KE:()=>o});var n=r(75797),i=r.n(n),a=r(68394);function o({defaultZipCode:e}={}){let t="hrst.zip.history",r=(0,a.useMemo)(()=>e??("u">typeof globalThis&&globalThis.DEFAULT_ZIPCODE||"10001"),[e]),{get:n,set:i}={get:e=>{try{if(!window.localStorage)return null;return JSON.parse(localStorage.getItem(e)??"null")}catch(e){return console.warn("Cannot get value from localStorage",e),null}}
70,set:(e,t)=>{try{if(!window.localStorage)return;localStorage.setItem(e,JSON.stringify(t))}catch(e){console.warn("Cannot set value on localStorage",e)}},remove:e=>{try{if(!window.localStorage)return;localStorage.removeItem(e)}catch(e){console.warn("Cannot remove from localStorage",e)}}},[l,s]=(0,a.useState)(()=>[{zip:r}]),c=(0,a.useMemo)(()=>l[0],[l]),d=(0,a.useMemo)(()=>c?.zip||r,[c,r]),h=(0,a.useRef)(n),u=(0,a.useRef)(r);(0,a.useEffect)(()=>{h.current=n,u.current=r},[n,r]),(0,a.useEffect)(()=>{let e=()=>{try{let e=h.current(t);e&&e.length>0?s(e):s([{zip:u.current}])}catch{s([{zip:u.current}])}},r=r=>{r.key===t&&e()},n=()=>{e()};return"u">typeof globalThis&&globalThis.window&&(e(),globalThis.window.addEventListener("storage",r),globalThis.window.addEventListener("zipCodeChange",n)),()=>{"u">typeof globalThis&&globalThis.window&&(globalThis.window.removeEventListener("storage",r),globalThis.window.removeEventListener("zipCodeChange",n))}},[t]);let m=e=>{i(t,e),s(e),"u">typeof globalThis&&globalThis.window&&globalThis.window.dispatchEvent(new Event("zipCodeChange"))};return{zipcode:d,addLocation:e=>{let r=n(t)??[];r.length>=5&&r.pop();let i=r.findIndex(t=>t.zip===e.zip);-1!==i&&r.splice(i,1),r.unshift(e),m(r)},setCurrentLocationName:(e,r)=>{let i=n(t);if(!i||0===i.length)return void m([{zip:e,name:r}]);let[a,...o]=i;a.zip===e&&a.name!==r&&m([{...a,name:r},...o])},currentZip:c,recentLocations:l}}async function l(e,t){let r=await fetch("https://assets.htvapps.com/global/zips.json",{method:"GET"}),n=await r.json();return i().createKdTree(n,function(e,t){return Math.pow(e.lat-t.lat,2)+Math.pow(e.lng-t.lng,2)},["lat","lng"]).nearest({lat:e,lng:t},1)[0][0].zip}},44557:(e,t,r)=>{"use strict";r.d(t,{IM:()=>o,Jf:()=>a,aj:()=>l});var n=r(35871);let i={baseURL:r(73929).Ay.RUNTIME_WEATHER_URL,timeout:5e3,headers:{"Content-Type":"application/json"},cacheTtl:600};async function a(e){let t=`${i.baseURL}/api/v1/weather/simple/${e}`;return await s(t)}async function o(e){let t=`${i.baseURL}/api/v1/weather/full/${e}`;return await s(t)}async function l(e){let t=`${i.baseURL}/api/v1/alerts/${e}`;return await s(t)}async function s(e){try{let t=await (0,n.hd)(e,{method:"GET",headers:i.headers,cache:{ttl:i.cacheTtl},timeout:i.timeout});if(!t?.data)return void console.warn(`Failed to fetch weather from ${e}`);return t.data}catch(t){throw console.error(`Error making Weather GET request: ${e}`,t),t}}},47333:(e,t,r)=>{"use strict";r.d(t,{A:()=>i,T:()=>n});let n={neutral:{50:"#ffffff",100:"#f5f5f5",125:"#f7f7f7",150:"#f3f3f3",200:"#eeeeee",250:"#ececec",275:"#e3e3e3",300:"#e0e0e0",350:"#d8d8d8",400:"#cdcdcd",450:"#cccccc",500:"#c5c5c5",525:"#A4A4A4",550:"#9b9b9b",580:"#909090",600:"#999999",650:"#888888",700:"#767676",750:"#737373",775:"#5E5E5E",780:"#797979",800:"#6e6e6e",825:"#666666",830:"#6A6C6E",850:"#595959",875:"#515151",880:"#676767",900:"#414141",925:"#383939",950:"#333333",975:"#2c2c2c",990:"#222222",1e3:"#444444",1100:"#000000"},blue:{50:"#06c",60:"#7db7f1",80:"#69c",90:"#42a1ff",100:"#3367d6",200:"#0066cc",300:"#0063cc",400:"#0063cf",500:"#0066cc",525:"#007bff",550:"#1C58B8",600:"#003399",700:"#3b5998",800:"#0000ff",900:"#001122"},red:{400:"#ea1031",500:"#ff0000",550:"#CC0000",600:"#ce0000",700:"#a60300",800:"#460606"},green:{500:"#00ff00",600:"#1a7a78"}},i=n},48858:e=>{e.exports={}},54288:(e,t,r)=>{"use strict";r.d(t,{Cp:()=>s,F0:()=>i,Jw:()=>o,Zj:()=>d,_V:()=>u,fi:()=>c,oV:()=>h,v0:()=>a});var n=r(67565);let i={small:"41.25rem",medium:"61.25rem",large:"73.75rem"},a=e=>`@media only screen and (min-width: ${e})`,o=e=>`@media only screen and (max-width: ${e})`,l=e=>`@media only screen and (max-width: ${e}) and (max-height: 600px)`,s=136,c={small:a(i.small),medium:a(i.medium),large:a(i.large)},d={small:o(i.small),medium:o(i.medium),large:o(i.large)},h={small:l(i.small),medium:l(i.medium),large:l(i.large)},u=n.A.div({maxWidth:"75rem",margin:"0 auto",paddingLeft:"2%",paddingRight:"2%",[c.medium]:{paddingLeft:"1%",paddingRight:"1%"}})},62408:(e,t,r)=>{"use strict";r.d(t,{We:()=>h,_t:()=>l,fU:()=>d,fi:()=>o,gW:()=>c,gx:()=>p,lW:()=>s,lp:()=>m,o5:()=>g,rW:()=>u,yo:()=>a});var n=r(44557),i=r(35004);let a=/^\d{5}$/,o=/\D/g,l=(e,t)=>
70{let r=encodeURIComponent(e),n=encodeURIComponent(t);return{facebook:{iconPath:"static/icons/social/facebook.svg",iconSize:20,alt:"Share to Facebook",ariaLabel:"Share this article to Facebook",handler:()=>{let e=`https://www.facebook.com/sharer.php?u=${r}&t=${n}`;window.open(e,"_blank","width=600,height=400")}},twitter:{iconPath:"static/icons/social/x.svg",iconSize:20,alt:"Share to Twitter",ariaLabel:"Share this article to Twitter",handler:()=>{let e=`https://twitter.com/share?url=${r}&text=${n}&count=none/`;window.open(e,"_blank","width=600,height=400")}},"e-mail":{iconPath:"static/icons/social/email.svg",iconSize:20,alt:"Email",ariaLabel:"Email this article",handler:()=>{window.location.href=`mailto:?subject=${n}&body=${r}`}}}},s=async(e,t,r)=>{try{await navigator.clipboard.writeText(e)}catch{t?.current&&(t?.current.select(),document.execCommand("copy"))}finally{r("Link copied!")}},c=async()=>"u"<typeof navigator||!navigator.geolocation?null:new Promise((e,t)=>{navigator.geolocation.getCurrentPosition(async t=>{let r=await (0,i.pY)(t.coords.latitude,t.coords.longitude),a=await (0,n.IM)(String(r));a||e(null),e({zip:a.zip,name:`${a.city}, ${a.state}`})},t)}),d=e=>{if(!e)return"â";let t=/([1-2]?[0-9]:[0-9]{2}):[0-9]{2}\s*(am|pm)/i.exec(e);return t?`${t[1]} ${t[2].toLowerCase()}`:e},h=e=>{if(!e)return 12;try{let t=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1,timeZone:e}).format(new Date);return parseInt(t,10)||0}catch{return 12}},u=(e,t)=>0===e?"Today":1===e?"Tomorrow":t,m=(e,t)=>0===e?"Tonight":1===e?"Tomorrow Night":`${t} Night`,p=(e,t)=>{if(e>0)return!0;try{return 15>parseInt(new Date().toLocaleString("en-US",{timeZone:t,hour:"numeric",hour12:!1}),10)}catch{return!0}},g=e=>{if(!e?.length)return[];let t=e[0].day,r=7;switch(t){case"Friday":r=3;break;case"Saturday":r=2;break;case"Sunday":r=1}return e.filter(e=>e.day_offset<r&&("Friday"===e.day||"Saturday"===e.day||"Sunday"===e.day))}},73180:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var n=r(68394);let i=(e,t)=>{let[r,i]=(0,n.useState)(void 0);return(0,n.useEffect)(()=>{i(((e,t=120)=>{if(!e.updated_at)return;let r=Math.floor(Math.floor((Date.now()-new Date(e.updated_at).getTime())/1e3)/60);if(!(r<1)&&!(r>t))return r>=60?"1 HR":`${r} MIN`})(e,t))},[e.updated_at,t]),r}},81341:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(53954),i=r(58498),a=r(53924);let o={clear:a.yAK,cloudy:a.Rc4,flurries:a.CsR,fog:a.feo,hazy:a.feo,nt_clear:a.oAg,nt_cloudy:a.h_c,nt_flurries:a.zPS,nt_fog:a.TkN,nt_hazy:a.TkN,nt_mostlycloudy:a.q7M,nt_rain:a.vQE,nt_sleet:a.lNt,nt_snow:a.Kh_,nt_tstorms:a.m7c,nt_unknown:i.uup,nt_wind:a.Oe4,partlycloudy:a.b1P,rain:a.xtr,sleet:a.y_b,snow:a.kkF,sunny:a.yAK,tstorms:a.I2x,unknown:i.uup,wind:a.Oe4};function l({iconName:e,...t}){let r=o[e??"unknown"]||o.unknown;return(0,n.jsx)(r,{...t})}},92026:(e,t,r)=>{"use strict";function n(e){return e?.city!=null&&e?.state!=null?`${e.city}, ${e.state}`:null}function i(e){return e?.name?.trim()||null}r.d(t,{Z:()=>i,y:()=>n})},96121:(e,t,r)=>{"use strict";r.d(t,{default:()=>S});var n=r(53954),i=r(67565),a=r(54288),o=r(47333);let l=i.A.div({overflow:"hidden",height:"2.5rem"}),s=i.A.div({display:"inline-block",[a.fi.small]:{width:"60%"}}),c=i.A.span({float:"left",fontWeight:600,marginRight:".3125rem",lineHeight:"2.5rem",fontFamily:"var(--font-montserrat)",fontSize:"1.0625rem",color:o.T.neutral[50]}),d=i.A.span({fontWeight:700,float:"left",lineHeight:"2.5rem",color:o.T.neutral[50],display:"none",[a.fi.large]:{display:"inline-block",textOverflow:"ellipsis",overflow:"hidden",maxWidth:"80%",whiteSpace:"nowrap"},[a.fi.medium]:{display:"inline-block",textOverflow:"ellipsis",overflow:"hidden",maxWidth:"80%",whiteSpace:"nowrap"},[a.fi.small]:{fontFamily:"var(--font-montserrat)",fontSize:"1.0625rem"},[a.oV.large]:{display:"inline-block",textOverflow:"ellipsis",overflow:"hidden",maxWidth:"80%",whiteSpace:"nowrap"}}),h=i.A.div({float:"right",height:"2.5rem",[a.fi.small]:{width:"38%"}}),u=i.A.i({float:"right",width:"2.5rem",height:"2.5rem",marginLeft:".625rem",position:"relative",top:"0",right:"0",textAlign:"center",lineHeight:"2.5rem",background:"rgba(255, 255, 255, .3)",color:o.T.neutral[50],verticalAlign:"baseline",fontSize:"1.1rem",fontFamily:"var(--font-icon)",fontWeight:400,fontStyle:"normal",speak:"none",textDecoration:"inherit",textTransform:"none",textRendering:"auto",display:"flex",alignItems:"center",justifyContent:"center"}),m=i.A.span({fontWeight:600,float:"right",lineHeight:"2.5rem",color:o.T.neutral[50],fontFamily:"var(--font-montserrat)",[a.fi.small]:{fontSize:"1.0625rem"}}),p=i.A.span({display:"inline-block",width:"0",height:"0",borderTop:"7px solid transparent",borderBottom:"7px solid transparent",borderLeft:"12px solid white",marginLeft:"2.5px"});var g=r(68394),f=r(35871),x=r(73929);r(48858);let b={baseURL:x.Ay.RUNTIME_NOWCAST_URL,timeout:2e3,cacheTtl:30,errorCacheTtl:30,disabledStations:x.Ay.RUNTIME_NOWCAST_DISABLED_STATIONS?JSON.parse(x.Ay.RUNTIME_NOWCAST_DISABLED_STATIONS):["wmor"]},y=()=>({enabled:!1}),w=new Map;async function v(e){let t;if(b.disabledStations.includes(e))return console.debug("Nowcast is disabled for station."),y();let r=`${b.baseURL}/${e}/status`;if((t=w.get(r))&&Date.now()-t.timestamp<1e3*b.errorCacheTtl)return y();try{let e=await (0,f.hd)(r,{method:"GET",timeout:b.timeout,cache:{ttl:b.cacheTtl},throwIfErrorStatus:!0,headers:e=>({})});if(!e?.data)throw Error("Nowcast response has no data");return e.data}catch(e){return w.set(r,{timestamp:Date.now()}),console.error(`Error fetching nowcast status from ${r}`,e),y()}}async function j(e){var t;return t=await v(e),{enabled:!!t?.enabled,is_live:t?.mode==="live",is_ondemand:t?.mode==="demand",stream
70:t?.stream,bar_title:t?.bar_title}}let A={live:{backgroundColor:o.T.red[600],hint:"Live Now"},onDemand:{backgroundColor:o.T.blue[400],hint:"Watch on Demand"},comingSoon:{backgroundColor:o.T.red[600],hint:"Coming up Soon"}};function S({nowcastData:e,sitePrefix:t}){let{nowcastData:r}=function({initialData:e,sitePrefix:t}){let[r,n]=(0,g.useState)(e||null),i=(0,g.useRef)(!1),a=(0,g.useCallback)(async()=>{if(!i.current){i.current=!0;try{n(await j(t))}finally{i.current=!1}}},[t]);return(0,g.useEffect)(()=>{a();let e=setInterval(a,3e4);return()=>{clearInterval(e)}},[a]),{nowcastData:r}}({initialData:e,sitePrefix:t});if(!r?.enabled)return null;let i=A[r.is_live?"live":r.is_ondemand?"onDemand":"comingSoon"];return(0,n.jsx)(l,{id:"nowcast-header",style:{backgroundColor:i.backgroundColor},role:"region","aria-label":"Nowcast Status",tabIndex:0,children:(0,n.jsx)("a",{id:"nowcast-target",target:"_top",href:"wzvn"===t?"/abcnowcast":"/nowcast",role:"link",onClick:e=>e.stopPropagation(),children:(0,n.jsxs)(a._V,{id:"nowcast-inner",children:[(0,n.jsxs)(s,{id:"nowcast-left",children:[(0,n.jsx)(c,{id:"nowcast-title",children:"NOWCAST"}),(0,n.jsx)(d,{id:"nowcast-live-label",children:r.bar_title})]}),(0,n.jsxs)(h,{id:"nowcast-right",children:[(0,n.jsx)("span",{"aria-hidden":"true",children:(0,n.jsx)(u,{id:"nowcast-button","aria-hidden":"true",children:(0,n.jsx)(p,{})})}),(0,n.jsx)(m,{id:"nowcast-hint","data-live":"Live Now",children:i.hint})]})]})})})}},98663:(e,t,r)=>{"use strict";r.d(t,{k2:()=>s,nY:()=>l,vn:()=>d});var n,i=r(84561);let a=i?.env?.PUBLIC_IMAGE_HOSTNAME||"https://kubrick.htvapps.com",o=new Set([(()=>{try{return new URL(a).host}catch{return""}})(),"hips.hearstapps.com","hips.hearstapps.net"]);function l(e,t="x:x",r={}){if(!e)return"";let{media_metadata:n,image_metadata:i}=e,{crops:a={}}=n||{},{crops:o={}}=i||{},s=function(e){let t="";switch(function(e){if(e.image_metadata?.legacy_domain&&e.pathname)return"legacy_domain";if(e.image_metadata?.domain&&e.pathname)return"domain";if(e.pathname)return"pathname";if(e.url)return"URL";if(e.filename)return"filename";else if(e.preview_image)return"preview";return"unknown"}(e)){case"legacy_domain":t=d(e.image_metadata?.legacy_domain??"",e.pathname??"");break;case"domain":t=d(e.image_metadata?.domain??"",e.pathname??"");break;case"pathname":t=d(e.hips_prefix??"",e.pathname??"");break;case"URL":t=e.url??"";break;case"filename":t=e.aws_url??"";break;case"preview":t=e.preview_image??""}return t||console.warn(`Couldn't build image url ${JSON.stringify(e)}`),t}(e);if(!s)return"";let c=a?.[t]||o?.[t]||"",h=Object.entries(c?{crop:c,...r}:r).map(([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(t)}`).join("&");return h?`${s}?${h}`:s}function s(e,t={}){let r,n;if(!e)return"";try{let t=new URL(e);r=t.host,n=t.pathname}catch{return e}if(o.has(r))return e;e=`${a}/${r}${n}`;let i=Object.entries(t).map(([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(t)}`).join("&");return i?`${e}?${i}`:e}var c=((n=c||{}).LEGACY_DOMAIN="legacy_domain",n.DOMAIN="domain",n.PATHNAME="pathname",n.FILENAME="filename",n.URL="URL",n.PREVIEW="preview",n.UNKNOWN="unknown",n);function d(e,t,r){return e.startsWith("http")&&(e=new URL(e).host),new URL(`${a}${e?"/"+e:""}${t}${r?"?crop="+r:""}`).toString()}}}]);
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.