(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9233],{1247:(e,t,l)=>{"use strict";t.j=i;let a=l(17681),n=l(36762),r=l(84015);async function i(){let e=(0,r.getEmailPreferencesStatusUrlConfig)(),t=(0,a.urlFrom)(e),l=await fetch(t,{method:"GET",credentials:"include",headers:{"Content-Type":"application/json"},next:{revalidate:60}});return(0,n.handleFetchResponse)(l)}},2362:(e,t)=>{"use strict";t.C=void 0,t.C=(e,t,l)=>e&&Array.isArray(e)?e.find(e=>e.subscriptionGroupName===t)||l||null:l||null},3916:(e,t,l)=>{"use strict";l.d(t,{y:()=>s});var a=l(76792),n=l(42292),r=l(23233);let i=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Arrow Down"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M3.353 9.767a.499.499 0 0 1 .705-.706L7.5 12.5V2.914a.5.5 0 0 1 1 0V12.5l3.443-3.438a.499.499 0 0 1 .705.706l-3.94 3.94a1 1 0 0 1-1.415 0z"})]})}),s=n.forwardRef((e,t)=>(0,a.jsx)(r.h,{ref:t,icon:i,...e}));s.displayName="ArrowDown"},4883:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSunWeatherAlertHeadlinesUrlConfig=function(e){let{geocode:t,countryCode:l,areaId:a,adminDistrictCode:n,language:r}=e,i={format:"json",language:r,apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"};return t&&(i.geocode=t),l&&(i.countryCode=l),a&&(i.areaId=a),n&&(i.adminDistrictCode=n),{host:"api.weather.com",protocol:"https",pathname:"/v3/alerts/headlines",query:i}},t.getSunWeatherAlertDetailUrlConfig=function(e){let{detailKey:t,language:l}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/alerts/detail",query:{alertId:t,format:"json",language:l,apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}}},5606:(e,t,l)=>{"use strict";l.r(t),l.d(t,{MorningBriefBlock:()=>U,default:()=>z});var a=l(76792),n=l(42292),r=l(29385),i=l(97935),s=l(4963),o=l(27370),d=l(94591),c=l(44615),u=l(46178),m=l(99551),h=l(31892),p=l(73455),v=l(48260);function x(e){let{className:t,...l}=e;return(0,a.jsx)(h.uB,{"data-slot":"command",className:(0,v.cn)("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),...l})}function f(e){let{className:t,...l}=e;return(0,a.jsxs)("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[(0,a.jsx)(p.A,{className:"size-4 shrink-0 opacity-50"}),(0,a.jsx)(h.uB.Input,{"data-slot":"command-input",className:(0,v.cn)("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",t),...l})]})}function g(e){let{className:t,...l}=e;return(0,a.jsx)(h.uB.List,{"data-slot":"command-list",className:(0,v.cn)("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),...l})}function y(e){let{className:t,...l}=e;return(0,a.jsx)(h.uB.Group,{"data-slot":"command-group",className:(0,v.cn)("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),...l})}function N(e){let{className:t,...l}=e;return(0,a.jsx)(h.uB.Item,{"data-slot":"command-item",className:(0,v.cn)("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...l})}l(49605);var w=l(65485),b=l(55198);function I(e){var t;let{label:l,placeholder:r,className:s,location:h,onChangeLocation:p}=e,I=(0,b.useParams)(),_=null==I?void 0:I.locale,[j,E]=(0,n.useState)(!1),[T,A]=(0,n.useState)(""),{isLoading:R,data:C}=function(e,t){let l=e.trim().length>0,{isLoading:a,data:n,error:r}=(0,c.Ay)(l?["search/locations",encodeURIComponent(e)]:null,async()=>await (0,d.SK)(e,t));return{isLoading:a,data:n,error:r}}((0,u.A)(T,300),_);return(0,a.jsxs)(m.AM,{open:j,onOpenChange:E,children:[(0,a.jsx)(m.Wv,{asChild:!0,children:(0,a.jsxs)(o.$n,{variant:"outline",role:"combobox",className:(0,v.cn)("text-muted-foreground flex w-full bg-white px-2 text-nowrap",s),children:[(0,a.jsx)("div",{children:R?(0,a.jsx)(i.A,{className:"animate-spin"}):(0,a.jsx)(w.A,{})}),(0,a.jsx)("div",{className:"flex flex-1 px-2 text-start",children:null!=(t=null==h?void 0:h.displayName)?t:l})]})}),(0,a.jsx)(m.hl,{className:"w-[var(--radix-popover-trigger-width)]",showArrow:!1,children:(0,a.jsxs)(x,{shouldFilter:!1,children:[(0,a.jsx)(f,{placeholder:r,value:T,onValueChange:A}),(0,a.jsx)(g,{children:(0,a.jsx)(y,{children:null==C?void 0:C.map(e=>(0,a.jsx)(N,{value:e.locId,onSelect:()=>{null==p||p(e),E(!1)},children:e.address},e.locId))})})]})})]})}var _=l(77722);function j(e){let{label:t,error:l,className:n,...r}=e;return(0,a.jsxs)("div",{className:"w-full",children:[t&&(0,a.jsx)("label",{className:"text-sm",children:t}),(0,a.jsx)(_.p,{...r,className:l?"".concat(n," border-red-500"):n})]})}var E=l(9198);let T={"{{terms}}":{text:"Terms",url:"https://".concat("weather.com","/legal")},"{{privacy}}":{text:"Privacy Policy",url:"https://".concat("weather.com","/en-US/twc/privacy-policy")}},A=/\{\{(.*?)\}\}/g;function R(){return(0,a.jsx)("div",{className:"mt-4 text-xs",children:"By signing up you agree to the {{terms}} & {{privacy}}. Unsubscribe at any time.".split(A).map((e,t)=>{let l=T["{{".concat(e,"}}")];return l?(0,a.jsx)(E.default,{href:l.url,className:"underline",children:l.text},t):(0,a.jsx)("span",{children:e},t)})})}let C={src:"/_next/static/media/morning-brief-logo.73126316.svg"},S={src:"/_next/static/media/ellipse.b0c8befa.png"};var L=l(89512),D=l(27301),M=l(87103),O=l(75302),W=l(1247);let H=(0,l(20156).tG)("emailPreferences",null,void 0,{getOnInit:!0});var P=l(25319),k=l(82304);let F=()=>{let[e,t]=(0,O.fp)(H),{user:l}=(0,P.J)(),a=(null==l?void 0:l.userID)||null,r=(null==l?void 0:l.isUserLoggedIn)||!1,i=(0,n.useCallback)(l=>{a&&t({userId:a,expiry:Date.now()+9e5,subscriptions:function(e,t){let l=(null==t?void 0:t.length)?t:k.J3,a={};return e?(null==l||l.forEach(e=>{a[e.subscriptionGroupName]=e}),e.forEach(e=>{a[e.subscriptionGroupName]=e}),Object.values(a)):l}(l,null==e?void 0:e.subscriptions)})},[a,t,null==e?void 0:e.subscriptions]),s=e&&e.userId===a&&e.expiry&&e.expiry>Date.now();return(0,c.Ay)(a&&r&&!s?"getEmailPreferencesStatus/".concat(a):void 0,()=>(0,W.j)(),{revalidateOnFocus:!1,revalidateOnReconnect:!1,refreshInterval:0,errorRetryCount:2,onSuccess:e=>{a&&e&&i(e.subscriptions)}}),{subscriptions:a&&e?e.subscriptions:null,updateSubscriptions:i}};async function G(e,t){let{arg:l}=t,{email:a,location:n,locale:r,isAnonymous:i}=l,{location:s}=await (0,M.$M)(n.placeId,r).catch(()=>({location:null})),o={subscriptions:[{subscriptionGroupName:e,isSubscribed:!0,attributes:{location:n.placeId,latitude:n.latitude,longitude:n.longitude,dmaCode:(null==s?void 0:s.dmaCd)||null,adminDistrict:n.adminDistrict,adminDistrictCode:n.adminDistrictCode||null,postalCode:n.postalCode}}]};return i&&(o.email=a),await (0,D.p_)(o).then(e=>({...e,sentSubscriptions:o.subscriptions}))}var B=l(22627),V=l(2362);let U=()=>{var e,t;let l=(0,b.useParams)(),d=(0,b.useSearchParams)(),c=null==l?void 0:l.locale,{userProfile:u}=(0,P.J)(),[m,h]=(0,n.useState)(null!=(e=null==u?void 0:u.email)?e:""),[p,v]=(0,n.useState)(null),[x,f]=(0,n.useState)(!1),{data:g,loading:y,onSubmit:N,error:w}=function(){let{updateSubscriptions:e}=F(),{isMutating:t,trigger:l,data:a,error:r,reset:i}=(0,L.A)("newsletter/signup/daily-newsletters-1",(e,t)=>G("daily-newsletters-1",t));return{loading:t,error:r,data:a,onSubmit:(0,n.useCallback)(async t=>{let a=await l(t);return a.sentSubscriptions&&e(a.sentSubscriptions),a},[l,e]),onReset:i}}(),_=d.get("cm_ven"),E=null==_?void 0:_.startsWith("dnt_newsletter"),{subscriptions:T}=F(),A=(0,n.useMemo)(()=>(0,V.C)(T,k.rn),[T]),D=(0,n.useCallback)(async e=>{e.preventDefault(),!y&&m.trim()&&p&&(f(!0),await N({email:m,location:p,locale:c,isAnonymous:!(null==u?void 0:u.email)}))},[N,m,p,c,y,null==u?void 0:u.email]);return!x&&(null==A?void 0:A.isSubscribed)||E?null:(0,a.jsxs)("div",{style:{backgroundImage:'url("'.concat(S.src,'")'),backgroundPosition:"right top",backgroundRepeat:"no-repeat",backgroundSize:"70px"},className:"my-4 space-y-2 rounded-xl bg-white py-5 pr-[30px] pl-5 shadow-[0_3px_20px_0_rgba(181,171,162,0.5)]",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-end sm:gap-3",children:[(0,a.jsx)(B.A,{src:C.src,alt:"",className:"m-0 w-37.5",rounded:!1}),(0,a.jsx)("div",{className:"mb-1.5 hidden min-h-[24px] min-w-[2px] bg-black sm:block"}),(0,a.jsx)("div",{className:"text-lg font-semibold",children:"Weather in your inbox"})]}),(null==g?void 0:g.status)==="success"?(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(r.A,{className:"h-6 w-6 text-green-500"}),(0,a.jsx)("div",{className:"text-sm text-gray-700",children:(0,a.jsx)("p",{children:"You are subscribed to the Morning Brief newsletter."})})]}):(0,a.jsxs)("form",{onSubmit:D,className:"flex flex-1 flex-col items-end gap-4 pt-4 lg:flex-row",children:[(0,a.jsx)(j,{id:"email",required:!0,type:"email",placeholder:"Email",className:"h-12",value:m,onChange:e=>h(e.target.value),error:!!(null==g?void 0:g.emailError),disabled:!!(null==u?void 0:u.email)}),(0,a.jsx)(I,{label:"Forecast Location",placeholder:"Search City or Zip Code",className:"h-12 items-center text-sm",location:p,onChangeLocation:v}),(0,a.jsx)("div",{children:(0,a.jsxs)(o.$n,{type:"submit",className:"flex h-12 items-center gap-1 text-nowrap",disabled:y||!(m&&p),children:[(0,a.jsx)("span",{children:"Sign Up"}),y&&(0,a.jsx)(i.A,{className:"animate-spin"})]})})]}),w&&(0,a.jsxs)("div",{className:"flex items-center gap-2 text-red-500",children:[(0,a.jsx)(s.A,{className:"h-6 w-6 text-red-500"}),(0,a.jsx)("div",{className:"text-sm",children:"Failed to subscribe, please try again."})]}),(null==g?void 0:g.status)==="error"&&(0,a.jsxs)("div",{className:"flex items-center gap-2 text-red-500",children:[(0,a.jsx)(s.A,{className:"h-6 w-6 text-red-500"}),(0,a.jsx)("div",{className:"text-sm",children:null!=(t=g.emailError)?t:g.error})]}),(0,a.jsx)(R,{})]})};U.displayName="MorningBriefBlock";let z=U},6106:(e,t,l)=>{"use strict";l.r(t),l.d(t,{LiveblogEntriesBlock:()=>n,default:()=>r});var a=l(76792);l(42292);let n=()=>(0,a.jsx)("div",{children:"Live Blog Entries"}),r=n},6626:(e,t,l)=>{"use strict";l.r(t),l.d(t,{SlideshowBlock:()=>s,default:()=>o});var a=l(76792);l(42292);var n=l(49192),r=l(98066),i=l(18556);let s=e=>{let{slides:t=[],settings:l={},id:s}=e;if(!(0,i.J)(t))return null;let o=[];for(let e of t){var d;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||t.caption||"",altText:e.imageTitle&&""!==e.imageTitle.trim()?e.imageTitle:(null==(d=t.seo)?void 0:d.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}};o.push(l)}return 0===o.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:s||"slideshow-".concat(Math.random().toString(36).substring(2,9)),assets:o.slice(0,20),allSlides:o,totalAssets:o.length,rounded:(null==l?void 0:l.rounded)||!1,blockType:"Slideshow",slides:t,settings:l,sendTrackString:()=>{}})},o=s},8366:(e,t,l)=>{"use strict";l.d(t,{o:()=>s});var a=l(76792),n=l(42292),r=l(23233);let i=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Uv Index"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"m8.022 15.021-1.748-2.94-3.29.932.931-3.284L.977 8.01l2.936-1.72-.924-3.236 3.278.874L8.022.977l1.7 2.949 3.255-.861-.868 3.226 2.853 1.717-2.854 1.718L12.98 13l-3.265-.918zm1.216-4.112 2.325.654-.615-2.306 2.075-1.249-2.075-1.248.615-2.287-2.325.615-1.23-2.132L6.74 5.088l-2.305-.615.653 2.287-2.132 1.248 2.132 1.25-.653 2.305 2.305-.654 1.268 2.133z",clipRule:"evenodd"})]})}),s=n.forwardRef((e,t)=>(0,a.jsx)(r.h,{ref:t,icon:i,...e}));s.displayName="UvIndex"},9390:(e,t,l)=>{"use strict";l.d(t,{s:()=>s});var a=l(76792),n=l(42292),r=l(23233);let i=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Sunny Day"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{d:"M7.5 13.5v1a.5.5 0 0 0 1 0v-1a.5.5 0 0 0-1 0M7.5 1.5v1a.5.5 0 0 0 1 0v-1a.5.5 0 0 0-1 0M13.5 8.5h1a.5.5 0 0 0 0-1h-1a.5.5 0 0 0 0 1M1.5 8.5h1a.5.5 0 0 0 0-1h-1a.5.5 0 0 0 0 1M11.536 12.243l.707.707a.5.5 0 0 0 .707-.707l-.707-.707a.5.5 0 0 0-.707.707M3.05 3.757l.707.707a.5.5 0 0 0 .707-.707l-.707-.707a.5.5 0 1 0-.707.707M12.243 4.464l.707-.707a.5.5 0 1 0-.707-.707l-.707.707a.5.5 0 0 0 .707.707M3.757 12.95l.707-.707a.5.5 0 1 0-.707-.707l-.707.707a.5.5 0 1 0 .707.707"}),(0,a.jsx)("path",{fillRule:"evenodd",d:"M8 10.667a2.667 2.667 0 1 0 0-5.334 2.667 2.667 0 0 0 0 5.334m0 1a3.667 3.667 0 1 0 0-7.334 3.667 3.667 0 0 0 0 7.334",clipRule:"evenodd"})]})]})}),s=n.forwardRef((e,t)=>(0,a.jsx)(r.h,{ref:t,icon:i,...e}));s.displayName="SunnyDay"},9946:(e,t)=>{"use strict";t.k=void 0,t.k=e=>{let{phenomena:t,significance:l,areaId:a,officeCode:n,eventTrackingNumber:r,locId:i}=e;return"".concat("/weather/alerts/localalerts/l/".concat(i),"?phenomena=").concat(t,"&significance=").concat(l,"&areaid=").concat(a,"&office=").concat(n,"&etn=").concat(r)}},11806:(e,t,l)=>{"use strict";l.r(t),l.d(t,{TwitterBlock:()=>i,default:()=>s});var a=l(76792),n=l(42292);let r="twitter-script-loaded",i=e=>{let{entryMethod:t,tweetURL:l,tweetId:i,showThread:s}=e,o=(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&&(o.current&&(o.current.innerHTML='\n

\n \n
\n ')),c&&window.twttr&&window.twttr.widgets&&window.twttr.widgets.load(o.current))},[d,i,l,t,s,c]),(0,a.jsx)("div",{className:"flex items-center",ref:o})},s=i},11904:(e,t,l)=>{"use strict";t.o=void 0;let a=l(43716),n={US:a.AirQualityScale.EPA,CN:a.AirQualityScale.HJ6332012,FR:a.AirQualityScale.ATMO,DE:a.AirQualityScale.UBA,GB:a.AirQualityScale.DAQI,IN:a.AirQualityScale.NAQI,MX:a.AirQualityScale.IMECA,ES:a.AirQualityScale.CAQI};t.o=e=>{let{countryCode:t}=e;return n[t]||a.AirQualityScale.EPA}},12086:(e,t,l)=>{"use strict";l.d(t,{A:()=>o});var a=l(76792),n=l(42292),r=l(47421),i=l(96304),s=l(42531);let o=e=>{let{rtl:t,isSamsungTheme:l,radius:o=4,legendTypes:d}=e,c=(0,r.c3)("PrecipIntensity"),u=(0,n.useMemo)(()=>{let e=[{label:c("legendRain"),type:i.PrecipType.RAIN,color:s.vc},{label:c("legendSnow"),type:i.PrecipType.SNOW,color:s.at},{label:c(l?"samsungLegendMix":"legendMix"),type:i.PrecipType.PRECIP,color:s._x}];return t?e.reverse():e},[l,t,c]);return(0,a.jsx)("div",{className:"mt-3 flex items-center justify-center gap-6",children:u.map(e=>{let{label:t,type:l,color:n}=e;return(!d||d[l])&&(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)("div",{style:{width:2*o,height:2*o,backgroundColor:n},className:"rounded-full"}),(0,a.jsx)("p",{className:"text-xs",children:t})]},l)})})}},12962:(e,t,l)=>{"use strict";t.lh=void 0,t.$c=d;let a=l(39825),n=l(17681),r=l(36762),i=l(35181),s=l(96304),o=l(76088);async function d(e){let l=(0,a.getHourlyForecastUrlConfig)(e),i=(0,n.urlFrom)(l),s=await fetch(i,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}}),o=await (0,r.handleFetchResponse)(s);return(0,t.lh)(o)}t.lh=(0,i.createTransformer)(e=>{var t,l,a,n,r,i,d,c,u,m,h,p,v,x,f,g,y,N,w,b,I,_,j,E,T,A,R,C,S;return{cloudCover:null!=(t=e.cloudCover)?t:0,dayOfWeek:null!=(l=e.dayOfWeek)?l:"",dayOrNight:null!=(a=e.dayOrNight)?a:o.DayOrNight.DAY,expirationTimeUtc:null!=(n=e.expirationTimeUtc)?n:0,iconCode:null!=(r=e.iconCode)?r:0,iconCodeExtend:null!=(i=e.iconCodeExtend)?i:0,precipChance:null!=(d=e.precipChance)?d:0,precipType:null!=(c=e.precipType)?c:s.PrecipType.RAIN,pressureMeanSeaLevel:null!=(u=e.pressureMeanSeaLevel)?u:0,qpf:null!=(m=e.qpf)?m:0,qpfSnow:null!=(h=e.qpfSnow)?h:0,relativeHumidity:null!=(p=e.relativeHumidity)?p:0,temperature:null!=(v=e.temperature)?v:0,temperatureDewPoint:null!=(x=e.temperatureDewPoint)?x:0,temperatureFeelsLike:null!=(f=e.temperatureFeelsLike)?f:0,temperatureHeatIndex:null!=(g=e.temperatureHeatIndex)?g:0,temperatureWindChill:null!=(y=e.temperatureWindChill)?y:0,uvDescription:null!=(N=e.uvDescription)?N:o.UVDescription.LOW,uvIndex:null!=(w=e.uvIndex)?w:0,validTimeLocal:null!=(b=e.validTimeLocal)?b:"",validTimeUtc:null!=(I=e.validTimeUtc)?I:0,visibility:null!=(_=e.visibility)?_:0,windDirection:null!=(j=e.windDirection)?j:0,windDirectionCardinal:null!=(E=e.windDirectionCardinal)?E:o.WindDirectionCardinal.NORTH,windGust:null!=(T=e.windGust)?T:null,windSpeed:null!=(A=e.windSpeed)?A:0,wxPhraseLong:null!=(R=e.wxPhraseLong)?R:"",wxPhraseShort:null!=(C=e.wxPhraseShort)?C:"",wxSeverity:null!=(S=e.wxSeverity)?S:0}})},13886:(e,t,l)=>{"use strict";t.I=i;let a=l(47681),n=l(17681),r=l(36762);async function i(e){let t=(0,a.getSunV3WeatherInsightsUrlConfig)(e),l=(0,n.urlFrom)(t),i=await fetch(l,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}});return(0,r.handleFetchResponse)(i)}},14124:(e,t,l)=>{"use strict";t.vt=void 0,t.v1=o;let a=l(39825),n=l(17681),r=l(36762),i=l(35181),s=l(96304);async function o(e){let l=(0,a.getDailyForecastUrlConfig)(e),i=(0,n.urlFrom)(l),s=await fetch(i,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:1800}}),o=await (0,r.handleFetchResponse)(s);return(0,t.vt)(o)}t.vt=(0,i.createTransformer)((e,t,l)=>{var a,n,r,i,o,d,c,u,m,h,p,v,x,f,g,y,N,w,b,I,_,j,E,T;return{calendarDayTemperatureMax:null!=(n=e.calendarDayTemperatureMax)?n:0,calendarDayTemperatureMin:null!=(r=e.calendarDayTemperatureMin)?r:0,dayOfWeek:null!=(i=e.dayOfWeek)?i:"",expirationTimeUtc:null!=(o=e.expirationTimeUtc)?o:0,moonPhase:null!=(d=e.moonPhase)?d:"",moonPhaseCode:null!=(c=e.moonPhaseCode)?c:s.MoonPhaseCode.NEW,moonPhaseDay:null!=(u=e.moonPhaseDay)?u:0,moonriseTimeLocal:null!=(m=e.moonriseTimeLocal)?m:"",moonriseTimeUtc:null!=(h=e.moonriseTimeUtc)?h:0,moonsetTimeLocal:null!=(p=e.moonsetTimeLocal)?p:"",moonsetTimeUtc:null!=(v=e.moonsetTimeUtc)?v:0,narrative:null!=(x=e.narrative)?x:"",qpf:null!=(f=e.qpf)?f:0,qpfSnow:null!=(g=e.qpfSnow)?g:0,sunriseTimeLocal:null!=(y=e.sunriseTimeLocal)?y:"",sunriseTimeUtc:null!=(N=e.sunriseTimeUtc)?N:0,sunsetTimeLocal:null!=(w=e.sunsetTimeLocal)?w:"",sunsetTimeUtc:null!=(b=e.sunsetTimeUtc)?b:0,temperatureMax:null!=(I=e.temperatureMax)?I:null,temperatureMin:null!=(_=e.temperatureMin)?_:0,validTimeLocal:null!=(j=e.validTimeLocal)?j:"",validTimeUtc:null!=(E=e.validTimeUtc)?E:0,daypart:null!=(T=null==l||null==(a=l.daypart)?void 0:a[t])?T:{cloudCover:[],dayOrNight:[],daypartName:[],iconCode:[],iconCodeExtend:[],narrative:[],precipChance:[],precipType:[],qpf:[],qpfSnow:[],qualifierCode:[],qualifierPhrase:[],relativeHumidity:[],snowRange:[],temperature:[],temperatureHeatIndex:[],temperatureWindChill:[],thunderCategory:[],thunderIndex:[],uvDescription:[],uvIndex:[],windDirection:[],windDirectionCardinal:[],windPhrase:[],windSpeed:[],wxPhraseLong:[],wxPhraseShort:[]}}})},18556:(e,t,l)=>{"use strict";l.d(t,{J:()=>a});let a=e=>Array.isArray(e)&&e.length>0},20712:(e,t,l)=>{"use strict";l.a(e,async(e,a)=>{try{l.r(t),l.d(t,{HourlyForecastBlock:()=>d,default:()=>c});var n=l(76792),r=l(88572),i=l(44685),s=l(46593),o=e([r]);r=(o.then?(await o)():o)[0];let d=e=>{let{locationProvider:t,locationEntry:l,simplifiedVersion:a}=e,o="specified"===t,{specifiedLocationData:d,specifiedLocationError:c,isSpecifiedLocationLoading:u}=(0,s.v)(o?l:null);if(o&&u)return(0,n.jsx)("div",{children:"Loading location data..."});if(o&&c)return(0,n.jsxs)("div",{children:["Error loading location data: ",c.message]});let m=o&&d&&l?(0,i.I)(d):void 0;return(0,n.jsx)(r.A,{location:m,simplifiedVersion:a})},c=d;a()}catch(e){a(e)}})},21230:(e,t,l)=>{"use strict";l.d(t,{c:()=>a});let a={"@3xs":256,"@2xs":288,"@xs":320,"@sm":384,"@md":448,"@lg":512,"@xl":576,"@2xl":672,"@3xl":768,"@4xl":896,"@5xl":1024,"@6xl":1152,"@7xl":1280}},23250:(e,t,l)=>{"use strict";l.r(t),l.d(t,{ContentMediaBlock:()=>c,default:()=>u});var a=l(76792),n=l(18556),r=l(9198),i=l(48260),s=l(49692),o=l(49192),d=l(27370);let c=e=>{let{contentQuery:t,limit:l="4",title:c="Trending",ctaText:u="More Stories",ctaLink:m="/",showCategory:h}=e,p=(null==t?void 0:t.mergedContent)||[];if(!(0,n.J)(p))return null;let v="not-prose mx-auto w-full max-w-5xl",x=p.slice(0,Number(l));if(x.every(e=>"image"===e.contentType)){let e=x.map(e=>({id:e.id,url:e.overrideThumbnail||e.thumbnail||"",filename:e.overrideTitle||"",caption:e.overrideDescription||e.description||"",seo:{altText:e.overrideTitle||e.title},createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()}));return(0,a.jsx)("section",{className:v,children:(0,a.jsx)(o.A,{id:"content-media-slideshow-".concat(Math.random().toString(36).substring(2,9)),assets:e,allSlides:e,slides:[],totalAssets:e.length,rounded:!0,sendTrackString:()=>{},blockType:"Slideshow"})})}return(0,a.jsxs)("section",{className:(0,i.cn)("@container rounded-xl bg-white p-5",v),children:[(0,a.jsx)("h2",{className:"not-prose mb-4 text-2xl font-bold",children:c}),(0,a.jsx)("div",{className:"grid grid-cols-1 gap-4 @md:grid-cols-2 @lg:grid-cols-4",children:x.map(e=>{var t,l;let n=e.overrideTitle||e.title,r=e.overrideThumbnail||e.thumbnail||"/placeholder.svg",i=(null==(t=e.url)?void 0:t.includes("video"))||!1,o=(null==(l=e.category)?void 0:l.title)||"Weather News";return(0,a.jsx)(s.S,{heading:h?o:void 0,description:n,href:e.url,imageUrl:r,showIcon:i,imageWrapClassName:"mb-2",dir:"col"},e.id)})}),(0,a.jsx)("div",{className:"mt-4 text-right",children:(0,a.jsx)(d.$n,{asChild:!0,className:"rounded bg-gray-900 px-4 py-2 text-sm font-medium text-white hover:bg-gray-800",children:(0,a.jsx)(r.default,{href:null!=m?m:"/",children:u})})})]})},u=c},25115:(e,t,l)=>{"use strict";l.r(t),l.d(t,{BuyButtonBlock:()=>u,default:()=>m});var a=l(76792),n=l(42292),r=l(84057),i=l(30505),s=l(48260);let o=(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,m=c?r.DX:"button";return(0,a.jsx)(m,{className:(0,s.cn)(o({variant:n,display:d?"inline":i,className:l})),ref:t,...u})});d.displayName="Button";var c=l(9198);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})})})},m=u},26106:(e,t,l)=>{"use strict";l.r(t),l.d(t,{TaboolaBlock:()=>v,default:()=>x});var a=l(76792),n=l(42292),r=l(55198),i=l(54909),s=l(58010),o=l(48260),d=l(70336),c=l(75302),u=l(25319),m=l(64996);let h=function(){let{DISCONNECTED_user:e}=(0,u.J)(),[t,l]=(0,n.useState)(!1),a=(0,c.md)(m.W);return(0,n.useEffect)(()=>{a&&l((()=>{try{var e,t,l,a;if(void 0!==(null==(e=window)?void 0:e.DprSdk)){let e=null==(l=window)||null==(t=l.DprSdk)?void 0:t.getFeatureFlags();return null==(a=null==e?void 0:e.taboola)||a}return!0}catch(e){return!0}})())},[a]),t&&!(null==e?void 0:e.isUserPremium)},p=(()=>{let e="",t=!1;return()=>({pushTaboolaCommand:(0,n.useCallback)((l,a,n)=>{window._taboola=window._taboola||[],a!==e&&(""===e||t||(window._taboola.push({notify:"newPageLoad"}),t=!0),e=a,t=!1),window._taboola.push({[n]:"auto",url:a}),window._taboola.push(l),window._taboola.push({flush:!0})},[])})})(),v=e=>{let{taboolaId:t,taboolaUiMode:l,placementName:c,targetType:u,title:m="",pageType:v,taboolaType:x,showTaboola:f=!0}=e,g=(0,n.useRef)(null),y=h(),[N,w]=(0,n.useState)("pending"),b=(0,r.usePathname)(),{isTaboolaLoaded:I}=(()=>{let[e,t]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{if(e)return;if(document.getElementById("tb_loader_script"))return void t(!0);window._taboola=window._taboola||[],window.performance&&"function"==typeof window.performance.mark&&window.performance.mark("tbl_ic");let l=document.createElement("script");l.src="//cdn.taboola.com/libtrc/theweatherchannel/loader.js",l.id="tb_loader_script",l.async=!0,l.onload=()=>{t(!0)},l.onerror=()=>{console.error("Failed to load Taboola script.")},document.body.appendChild(l)},[e]),{isTaboolaLoaded:e}})(),_=y&&f,{pushTaboolaCommand:j}=p(),E=(0,n.useMemo)(()=>{let e=(0,i.j)();return"".concat(e).concat(b||"")},[b]),T="empty"!==N,A=(0,n.useMemo)(()=>{let e="taboola-below-content-thumbnails---video"===t||"taboola-below-content-thumbnails-video"===t;return{container:T?"generic"!==x?"wx-media-object gradient-overlay thirdparty-feed border":e?"gap-2 py-0 md:rounded-md max-sm:rounded-none":"gap-2 py-5":"hidden",headerContainer:e?"mx-4 px-0 pt-6 max-sm:border-t max-sm:border-gray-200":"px-4",header:e?"text-[20px] font-semibold":"text-xl font-semibold",contentContainer:"z-40 px-4"}},[t,x,T]);return((0,n.useEffect)(()=>{_&&I&&"pending"===N&&j({mode:l,container:t,placement:c,target_type:u},E,v)},[_,I,N,j,t,l,c,u,E,v]),(0,n.useEffect)(()=>{let e=g.current;if(!e||!_||!I)return;let t=new MutationObserver((t,l)=>{try{e.hasChildNodes()?(w("populated"),l.disconnect()):"pending"!==N&&(w("empty"),l.disconnect())}catch(e){console.warn("Error in TaboolaBlock content observer",e)}});return t.observe(e,{childList:!0}),e.hasChildNodes()&&(w("populated"),t.disconnect()),()=>t.disconnect()},[_,I,N]),_&&I)?"invisible"===x?(0,a.jsx)("div",{id:t,ref:g}):(0,a.jsxs)("section",{className:"@container",children:[(0,a.jsx)(s.DebugCollector,{componentName:"TaboolaBlock",data:{props:{taboolaId:t,taboolaUiMode:l,placementName:c,targetType:u,pageUrl:E,pageType:v,taboolaContentState:N,shouldShow:T}}}),"generic"===x?(0,a.jsxs)(d.Zp,{className:A.container,children:[m&&T&&(0,a.jsx)(d.aR,{className:A.headerContainer,children:(0,a.jsx)("h2",{className:A.header,children:m})}),(0,a.jsx)(d.Wu,{className:(0,o.cn)(A.contentContainer),children:(0,a.jsx)("div",{id:t,className:"bg-none",ref:g})})]}):(0,a.jsxs)("div",{className:A.container,children:[m&&T&&(0,a.jsx)("header",{"aria-label":"Taboola",className:"panel-heading mb-2",children:(0,a.jsx)("h2",{"data-testid":"taboolaHeading",className:"text-lg font-medium",children:m})}),(0,a.jsx)("div",{id:t,className:"flex min-h-[300px] w-full items-center justify-center",ref:g})]})]}):null},x=v},27301:(e,t,l)=>{"use strict";t.p_=i;let a=l(17681),n=l(36762),r=l(84015);async function i(e){let t=(0,r.getEmailPreferencesSetUrlConfig)(),l=(0,a.urlFrom)(t),i=JSON.stringify(function(e){let{subscriptions:t,email:l,mParticleId:a}=e,n={};return t&&(n.subscriptions=t),l&&(n.email=l),a&&(n.mParticleId=a),n}(e)),s=await fetch(l,{method:"PUT",credentials:"include",headers:{"Content-Type":"application/json"},body:i});if(200===s.status||400===s.status){let e=await s.json();return console.log({json:e}),e}return(0,n.handleFetchResponse)(s)}},28004:(e,t,l)=>{"use strict";l.d(t,{N:()=>i});var a=l(76792),n=l(42292),r=l(48260);let i=(0,n.memo)(e=>{let{value:t,className:l,roundValue:n}=e,i=n?function(e){return e%5>=2.5?5*parseInt(String(e/5),10)+5:5*parseInt(String(e/5),10)}(t):t;return(0,a.jsx)("span",{"data-testid":"PercentageValue",className:(0,r.cn)(l),children:Number.isFinite(i)&&i>=0?"".concat(i,"%"):"--"})})},29814:(e,t,l)=>{"use strict";l.d(t,{W:()=>s});var a=l(76792),n=l(42292),r=l(23233);let i=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M7.5 1.5v1a.5.5 0 0 0 1 0v-1a.5.5 0 0 0-1 0M7.5 13.5v1a.5.5 0 0 0 1 0v-1a.5.5 0 0 0-1 0M2.5 8.5h-1a.5.5 0 0 1 0-1h1a.5.5 0 0 1 0 1M11.536 12.243l.707.707a.5.5 0 0 0 .707-.707l-.707-.707a.5.5 0 0 0-.707.707M3.757 4.464l-.707-.707a.5.5 0 1 1 .707-.707l.707.707a.5.5 0 0 1-.707.707M12.243 4.464l.707-.707a.5.5 0 1 0-.707-.707l-.707.707a.5.5 0 0 0 .707.707M4.464 12.243l-.707.707a.5.5 0 1 1-.707-.707l.707-.707a.5.5 0 1 1 .707.707M8.72 10.568A2.67 2.67 0 0 1 5.333 8 2.667 2.667 0 0 1 9.85 6.079c.25-.234.55-.414.883-.524a3.667 3.667 0 1 0-.125 5.021H9.217z"}),(0,a.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.489 5.9c-.985 0-1.795.747-1.913 1.71a1.25 1.25 0 0 0-1.01 1.231c0 .633.465 1.159 1.07 1.24l.007.002h.004l.148.01h2.97q.07.006.14.006c.845 0 1.528-.694 1.528-1.548 0-.738-.509-1.356-1.192-1.512a1.93 1.93 0 0 0-1.752-1.14m-1.203 1.847a1.22 1.22 0 0 1 1.203-1.133c.488 0 .92.301 1.108.749l.128.305.328.062c.365.07.66.402.66.82a.82.82 0 0 1-.883.831l-.03-.003H9.823l-.107-.007a.53.53 0 0 1-.429-.53.53.53 0 0 1 .455-.534l.503-.06z",clipRule:"evenodd"})]})}),s=n.forwardRef((e,t)=>(0,a.jsx)(r.h,{ref:t,icon:i,...e}));s.displayName="FairMostlyClearDay"},30253:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getHourlyAirQualityForecastUrlConfig=function(e){let{geocode:t,language:l,scale:a,duration:n}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/globalAirQuality/forecast/hourly/".concat(n),query:{geocode:t,language:l,scale:a,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}}},30596:(e,t,l)=>{"use strict";l.r(t),l.d(t,{CurrentConditionsBlock:()=>U,default:()=>z});var a=l(76792),n=l(42292),r=l(44615),i=l(81100),s=l(86942),o=l(14124),d=l(76159),c=l(11904),u=l(76088),m=l(43716),h=l(46828),p=l(68751),v=l(48260);let x=e=>{let{children:t,direction:l="horizontal",height:r,width:i,textVariant:s="Display.L",textColor:o="inverse",translateDistance:d,transitionDuration:c="500ms",className:u,transitionClassName:m,isLoading:h,skeletonClassName:x}=e,[f,g]=(0,n.useState)(!1);(0,n.useEffect)(()=>{f||h||setTimeout(()=>{g(!0)},0)},[f,h]);let y="horizontal"===l?"translateX":"translateY";return(0,a.jsx)(p.Ay,{isLoading:h,skeletonClassName:x,elementType:"div",className:(0,v.cn)("w-max overflow-hidden",u),variant:s,color:o,style:{height:r,width:i},children:(0,a.jsx)("span",{className:(0,v.cn)("transform: flex transition-transform",m),style:{transitionDuration:c,flexDirection:"horizontal"===l?"row":"column",transform:f?"".concat(y,"(-").concat(d,")"):"".concat(y,"(0px)")},children:t})})};var f=l(11340);let g="https://s.w-x.co/WeatherImages_Web/WeatherImage_",y=[320,480,640,800],N=[{name:"Tornadoes",iconCodes:[0],dayVariants:2,nightVariants:2},{name:"TropicalStorms",iconCodes:[1,2],dayVariants:2,nightVariants:2},{name:"StrongStorms",iconCodes:[3,4],dayVariants:2,nightVariants:2},{name:"RainAndSnow",iconCodes:[5,7],dayVariants:2,nightVariants:2},{name:"RainAndSleet",iconCodes:[6,10,35],dayVariants:2,nightVariants:2},{name:"FreezingDrizzle",iconCodes:[8],dayVariants:2,nightVariants:2},{name:"Drizzle",iconCodes:[9,11,39],dayVariants:2,nightVariants:2},{name:"Rain",iconCodes:[12],dayVariants:2,nightVariants:2},{name:"Flurries",iconCodes:[13],dayVariants:2,nightVariants:2},{name:"SnowShowers",iconCodes:[14,16],dayVariants:2,nightVariants:2},{name:"BlowingSnow",iconCodes:[15,25],dayVariants:2,nightVariants:2},{name:"Hail",iconCodes:[17,18],dayVariants:2,nightVariants:2},{name:"BlowingSand",iconCodes:[19],dayVariants:2,nightVariants:2},{name:"Foggy",iconCodes:[20],dayVariants:2,nightVariants:2},{name:"Haze",iconCodes:[21],dayVariants:2,nightVariants:2},{name:"Smoke",iconCodes:[22],dayVariants:2,nightVariants:2},{name:"Breezy",iconCodes:[23,24],dayVariants:2,nightVariants:2},{name:"Cloudy",iconCodes:[26],dayVariants:2,nightVariants:2},{name:"MostlyCloudy",iconCodes:[27],dayVariants:null,nightVariants:2},{name:"MostlyCloudy",iconCodes:[28],dayVariants:5,nightVariants:null},{name:"PartlyCloudy",iconCodes:[29],dayVariants:null,nightVariants:2},{name:"PartlyCloudy",iconCodes:[30],dayVariants:5,nightVariants:null},{name:"Clear",iconCodes:[31],dayVariants:null,nightVariants:2},{name:"Sunny",iconCodes:[32,36],dayVariants:4,nightVariants:null},{name:"MostlyClear",iconCodes:[33],dayVariants:null,nightVariants:2},{name:"Fair",iconCodes:[34],dayVariants:2,nightVariants:null},{name:"IsolatedThunderstorms",iconCodes:[37],dayVariants:2,nightVariants:null},{name:"ScatteredThunderstorms",iconCodes:[38],dayVariants:2,nightVariants:null},{name:"HeavyRain",iconCodes:[40],dayVariants:2,nightVariants:2},{name:"ScatteredSnowShowers",iconCodes:[41],dayVariants:2,nightVariants:null},{name:"HeavySnow",iconCodes:[42,43],dayVariants:2,nightVariants:2},{name:"Unknown",iconCodes:[44],dayVariants:null,nightVariants:null},{name:"ScatteredShowers",iconCodes:[45],dayVariants:null,nightVariants:2},{name:"ScatteredSnowShowers",iconCodes:[46],dayVariants:null,nightVariants:2},{name:"Thunderstorms",iconCodes:[47],dayVariants:null,nightVariants:2}],w={"--color-blue-800":["BlowingSnow-night","Breezy-night","Clear-night","Fluries-night","HeavySnow-night","MostlyClear-night","PartlyCloudy-night","ScatteredSnowShowers-night","SnowShowers-night","Unknown.jpg"],"--color-teal-700":["BlowingSnow-day","Breezy-day","Fair-day","Flurries-day","HeavySnow-day","PartlyCloudy-day","ScatteredSnowShowers-day","SnowShowers-day","Sunny-day"],"--color-teal-800":["Drizzle-day","FreezingDrizzle-day","Hail-day","HeavyRain-day","IsolatedThunderstorms-day","Rain-day","RainAndSleet-day","RainAndSnow-day","ScatteredThunderstorms-day","StrongStorms-day","Tornadoes-day","TropicalStorms-day"],"--color-teal-900":["Drizzle-night","FreezingDrizzle-night","Hail-night","HeavyRain-night","Rain-night","RainAndSleet-night","RainAndSnow-night","ScatteredShowers-night","StrongStorms-night","Thunderstorms-night","Tornadoes-night","TropicalStorms-night"],"--color-violet-800":["BlowingSand-day","Cloudy-day","Foggy-day","Haze-day","MostlyCloudy-day","Smoke-day"],"--color-indigo-900":["BlowingSand-night","Cloudy-night","Foggy-night","Haze-night","MostlyCloudy-night","Smoke-night"]};var b=l(98833);let I=function(){let{iconCode:e=44}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=N.find(t=>{var l,a;return null==t||null==(a=t.iconCodes)||null==(l=a.includes)?void 0:l.call(a,e)}),l=N.find(e=>(null==e?void 0:e.name)==="Unknown");return t||l},_=function(){let{width:e=320}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return y.reduce((t,l)=>Math.abs(l-e){var t;let{className:l,relativeHumidity:n,roundValue:r}=e,i=(t=n){let{className:t,airQualityIndex:l,airQualityCategory:n,separator:r="parenthesis"}=e;return Number.isNaN(l)||!n?"--":(0,a.jsxs)("span",{"data-testid":"AirQualityValue",className:(0,v.cn)(t),children:[(0,a.jsx)("span",{children:l}),"parenthesis"===r&&(0,a.jsx)("span",{children:" (".concat(n,")")}),"dash"===r&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{children:" - "}),(0,a.jsxs)("span",{children:[" ",n]})]})]})});var O=l(55406);let W=e=>{let{location:t,weatherData:l,forecastData:n,isLoading:r,error:i}=e;return i?(0,a.jsx)(P,{error:i}):(0,a.jsx)(H,{isLoading:r,location:t,weatherData:l,forecastData:n})},H=e=>{let{isLoading:t,location:l,weatherData:n,forecastData:r}=e,i=function(){let{iconCode:e=44,dayPart:t="day",variant:l=0,width:a=800,isSevere:n=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r={src:function(){let{iconCode:e=44,dayPart:t="day",variant:l=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=I({iconCode:e}),n=null==a?void 0:a["".concat(t,"Variants")];if(!n||l>n)return a=I({iconCode:44}),"".concat(g).concat(a.name,".jpg");let r=!!n&&0===l&&((e,t)=>{let l=Math.ceil(e);return Math.floor(Math.random()*(Math.floor(t)-l+1)+l)})(1,n),i="";return r?i="_".concat(r):l&&(i="_".concat(l)),"".concat(g).concat(a.name,"-").concat(t).concat(i,".jpg")}({iconCode:e,dayPart:t,variant:l}),width:_({width:a}),quality:70,format:"pjpg",autoWebP:!0,ratio:"16:9"};return n&&(r.saturation=-100),(0,b.default)(r)}({iconCode:null==n?void 0:n.iconCode,dayPart:(null==n?void 0:n.dayOrNight)==="D"?"day":"night"}),s=t?"--color-white":(e=>Object.keys(w).find(t=>w[t].find(t=>{var l;return null==e||null==(l=e.includes)?void 0:l.call(e,t)}))||"--color-blue-800")(i),{user:o}=(0,E.J)(),d=(0,j.c3)("CurrentConditions"),c=(0,T.md)(A.Mu),u=o.isUserLoggedIn,m=function(e){let{firstName:t=""}=e,l=new Date().getHours();return t?l>=5&&l=12&&l=18&&l{let{error:t}=e;return(0,a.jsx)("div",{className:"overflow-hidden rounded-lg",children:(0,a.jsx)("div",{className:"flex min-h-[150px] flex-col bg-blue-800 p-8 text-white",children:(0,a.jsx)("div",{className:"flex flex-grow items-center justify-center",children:(0,a.jsx)("div",{className:"text-xl text-red-300",children:(null==t?void 0:t.message)||"Unable to load weather data"})})})})};var k=l(58010),F=l(55198);let G=e=>{let{location:t}=e,{effectiveLocation:l,isLocationLoading:n,locationError:h}=(0,i.s)({location:t}),{weatherData:p,forecastData:v,isLoading:x,error:f}=function(e){var t,l,a,n,i,h,p,v,x,f;let g=(0,F.useParams)(),y=null==g?void 0:g.locale,N=(0,T.md)(S.Yt),w=null==(t=(0,C.xP)(N))?void 0:t.code,{data:b,error:I,isLoading:_}=(0,r.Ay)(e?["observations",e.geocode,w]:null,e=>{let[t,l,a]=e;return(0,s.z)({geocode:l,units:a,language:y})},{revalidateOnFocus:!1,dedupingInterval:6e4}),{data:j,error:E,isLoading:A}=(0,r.Ay)(e?["daily-forecast",e.geocode,w]:null,t=>{let[l,a,n]=t;return e?(0,o.v1)({geocode:a,units:n,language:y}):null},{revalidateOnFocus:!1,dedupingInterval:6e4}),R=(null==y||null==(a=y.split)||null==(l=a.call(y,"-"))?void 0:l[1])||"US",{data:L,error:D,isLoading:M}=(0,r.Ay)(e?["hourly-airquality",e.geocode]:null,t=>{let[l,a]=t;return e?(0,d.g)({geocode:a,language:y,scale:(0,c.o)({countryCode:R}),duration:m.AirQualityForecastDuration.TWELVE_HOUR}):null},{revalidateOnFocus:!1,dedupingInterval:6e4}),O=b?{airQualityIndex:null==L||null==(n=L.forecast[0])?void 0:n.airQualityIndex,airQualityCategory:null!=(v=null==L||null==(i=L.forecast[0])?void 0:i.airQualityCategory)?v:"",temperature:b.temperature,temperatureFeelsLike:b.temperatureFeelsLike,wxPhraseLong:b.wxPhraseLong,iconName:u.ICON_CODE_MAP[b.iconCode]||"na",iconCode:b.iconCode,validTimeLocal:b.validTimeLocal,relativeHumidity:b.relativeHumidity,windSpeed:b.windSpeed,windDirectionCardinal:b.windDirectionCardinal,dayOrNight:b.dayOrNight}:void 0,W=j&&j.length>0?{temperatureMax:null!=(x=null==(h=j[0])?void 0:h.calendarDayTemperatureMax)?x:0,temperatureMin:null!=(f=null==(p=j[0])?void 0:p.calendarDayTemperatureMin)?f:0}:void 0;return{weatherData:O,forecastData:W,isLoading:_||!b||A||!j||M,error:I||E||D}}(l),g=x||n,y=f||h;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(k.DebugCollector,{componentName:"CurrentConditions",data:{props:{location:t},state:{effectiveLocation:l,isLocationLoading:n,isLoading:g,weatherData:p,forecastData:v,error:y,componentState:y&&"error"||g&&"loading"||"ready"},performance:{renderCount:void 0}}}),(0,a.jsx)(W,{location:l,weatherData:p,forecastData:v,isLoading:g,error:y})]})};var B=l(46593),V=l(44685);let U=e=>{let{locationProvider:t,locationEntry:l}=e,n="specified"===t,{specifiedLocationData:r,specifiedLocationError:i,isSpecifiedLocationLoading:s}=(0,B.v)(n?l:null);return n&&s?(0,a.jsx)("div",{children:"Loading location data..."}):n&&i?(0,a.jsxs)("div",{children:["Error loading location data: ",i.message]}):n&&r&&l?(0,a.jsx)(G,{location:(0,V.I)(r)}):n?null:(0,a.jsx)(G,{})},z=U},31607:(e,t,l)=>{"use strict";l.d(t,{D:()=>s});var a=l(76792),n=l(42292),r=l(23233);let i=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Arrow Up"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M3.353 6.647a.499.499 0 0 0 .705.706L7.5 3.915V13.5a.5.5 0 0 0 1 0V3.915l3.443 3.438a.499.499 0 0 0 .705-.706l-3.94-3.94a1 1 0 0 0-1.415 0z"})]})}),s=n.forwardRef((e,t)=>(0,a.jsx)(r.h,{ref:t,icon:i,...e}));s.displayName="ArrowUp"},34672:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromCompactResponse=function(e){if(!e)return null;let t=Object.keys(e);return t.length&&t[0]&&void 0!==e[t[0]]&&Array.isArray(e[t[0]])?Array.from({length:e[t[0]].length},(l,a)=>{let n={};return t.forEach(t=>{let l=e[t];void 0!==l&&Array.isArray(l)&&a{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createTransformer=function(e){return t=>((0,a.fromCompactResponse)(t)||[]).map((l,a)=>e(l,a,t))};let a=l(34672)},35374:(e,t,l)=>{"use strict";l.d(t,{h:()=>a});let a=4},35555:(e,t,l)=>{"use strict";l.r(t),l.d(t,{ImageBlock:()=>d,default:()=>c});var a=l(76792),n=l(42292),r=l(9198),i=l(48260),s=l(22627);let o=n.forwardRef((e,t)=>{let{src:l,alt:n,caption:r,credit:o,width:d=320,height:c=180,shadow:u=!0,rounded:m=!0,className:h,sizes:p,priority:v,imageAttributes:x}=e,f=!!(r||o);return(0,a.jsxs)("figure",{ref:t,className:(0,i.cn)(h),children:[(0,a.jsx)(s._,{src:l,alt:n,width:d,height:c,shadow:u,rounded:m,sizes:p,priority:v,...x}),f&&(0,a.jsxs)("figcaption",{className:"mt-2 text-sm leading-tight",children:[r&&(0,a.jsx)("p",{children:r}),o&&(0,a.jsxs)("p",{className:"m-0 text-gray-500",children:["(",o,")"]})]})]})});o.displayName="Figure";let d=e=>{var t,l;let{imageType:n,internalImageId:s,externalImageUrl:d,controls:c,altText:u,isPriorityImage:m,imageAttributes:h,linkUrl:p}=e;if(!n||!s&&!d)return(0,a.jsx)("div",{className:"text-center text-red-500",children:"Error: Missing data for the image block."});let v="internal"===n&&(e=>"object"==typeof e&&null!==e&&"url"in e)(s),x=v?(null==s?void 0:s.url)||"":d||"",f=v?(null==s||null==(t=s.seo)?void 0:t.altText)||"":u||"",g="",y="";(null==c?void 0:c.showCaption)&&((!v||(null==c?void 0:c.useImageCaption))&&"external"!==n?v&&(g=(null==s?void 0:s.caption)||"",y=(null==s||null==(l=s.seo)?void 0:l.credit)||""):(g=(null==c?void 0:c.caption)||"",y=(null==c?void 0:c.credit)||""));let N=(0,a.jsx)(o,{src:x,alt:f,caption:g,credit:y,priority:!!m,className:(0,i.cn)("my-4 flex flex-col",{"max-w-[480px]":(null==c?void 0:c.width)==="half"}),sizes:"(max-width: 767px) 91vw, (max-width: 1280px) 64vw, 800px",imageAttributes:h});return p?(0,a.jsx)(r.default,{href:p,target:"_blank",rel:"noopener noreferrer nofollow",children:N}):N},c=d},36116:(e,t,l)=>{"use strict";t.$t=void 0,t.FA=d;let a=l(39825),n=l(17681),r=l(36762),i=l(35181),s=l(96304),o=l(76088);async function d(e){let l=(0,a.getFifteenMinuteForecastUrlConfig)(e),i=(0,n.urlFrom)(l),s=await fetch(i,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:60}}),o=await (0,r.handleFetchResponse)(s);return(0,t.$t)(o)}t.$t=(0,i.createTransformer)(e=>{var t,l,a,n,r,i,d,c,u,m,h,p,v,x,f,g,y;return{dayOfWeek:null!=(t=e.dayOfWeek)?t:"",iconCode:null!=(l=e.iconCode)?l:0,iconCodeExtend:null!=(a=e.iconCodeExtend)?a:0,precipChance:null!=(n=e.precipChance)?n:0,precipRate:null!=(r=e.precipRate)?r:0,precipType:null!=(i=e.precipType)?i:s.PrecipType.RAIN,relativeHumidity:null!=(d=e.relativeHumidity)?d:0,snowRate:null!=(c=e.snowRate)?c:0,temperature:null!=(u=e.temperature)?u:0,temperatureFeelsLike:null!=(m=e.temperatureFeelsLike)?m:0,validTimeLocal:null!=(h=e.validTimeLocal)?h:"",windDirection:null!=(p=e.windDirection)?p:0,windDirectionCardinal:null!=(v=e.windDirectionCardinal)?v:o.WindDirectionCardinal.NORTH,windSpeed:null!=(x=e.windSpeed)?x:0,wxPhraseLong:null!=(f=e.wxPhraseLong)?f:"",wxPhraseShort:null!=(g=e.wxPhraseShort)?g:"",wxSeverity:null!=(y=e.wxSeverity)?y:0}})},37971:(e,t,l)=>{"use strict";l.d(t,{T:()=>s});var a=l(76792),n=l(42292),r=l(23233);let i=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Cloudy"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.063 3c1.877 0 3.35 1.456 3.457 3.53l.035.241.795.084.028.008c.482.124.891.343 1.182.674.295.337.44.757.44 1.227a1.9 1.9 0 0 1-.616 1.395c-.35.33-.838.56-1.457.656.046.156.073.322.073.495 0 .846-.605 1.548-1.388 1.658l-.107.014h-.103l-.006.001-7.808.006q-.111.01-.226.011C2.058 13 1 11.897 1 10.537c0-1.203.828-2.207 1.923-2.42l.701-.138.28-.683a3.49 3.49 0 0 1 1.769-1.858c.033-.45.257-.844.48-1.133.245-.32.53-.569.7-.699C7.454 3.15 8.216 3 9.064 3M7.029 6.019c-1.065 0-1.975.671-2.365 1.625l-.456 1.112-1.135.222c-.716.14-1.246.794-1.246 1.56 0 .864.677 1.587 1.535 1.587q.075 0 .149-.008l.038-.004 7.901-.006.054-.007a.79.79 0 0 0 .669-.79.79.79 0 0 0-.682-.792l-1.755-.216-.147-1.845c-.109-1.354-1.205-2.438-2.56-2.438m2.034-2.171c-.767 0-1.317.139-1.71.437a3 3 0 0 0-.543.541q-.136.177-.214.348.213-.03.433-.031c1.778 0 3.239 1.426 3.384 3.24l.09 1.132 1.083.132c.315.04.602.175.834.376a.4.4 0 0 1 .085-.013c.652-.04 1.067-.242 1.313-.473s.348-.514.348-.773c0-.284-.084-.497-.229-.662-.146-.167-.382-.314-.736-.41l-1.379-.146-.133-.936v-.02c-.078-1.668-1.222-2.742-2.626-2.742",clipRule:"evenodd"})]})}),s=n.forwardRef((e,t)=>(0,a.jsx)(r.h,{ref:t,icon:i,...e}));s.displayName="Cloudy"},38098:(e,t,l)=>{"use strict";l.d(t,{Z:()=>p});var a=l(76792),n=l(42292),r=l(48260),i=l(3916),s=l(71666);let o={N:0,NNE:22.5,NE:45,ENE:67.5,E:90,ESE:112.5,SE:135,SSE:157.5,S:180,SSW:202.5,SW:225,WSW:247.5,W:270,WNW:292.5,NW:315,NNW:337.5};var d=l(76088);let c={O:d.WindDirectionCardinal.WEST,NO:d.WindDirectionCardinal.NORTHWEST,NNO:d.WindDirectionCardinal.NORTH_NORTHWEST,ONO:d.WindDirectionCardinal.WEST_NORTHWEST,OSO:d.WindDirectionCardinal.WEST_SOUTHWEST,SO:d.WindDirectionCardinal.SOUTHWEST,SSO:d.WindDirectionCardinal.SOUTH_SOUTHWEST},u=e=>{let{windDirection:t,windDirectionCardinal:l,iconClassName:n,iconColor:s,displayWindDirectionIcon:d,displayMode:c,afterSpeed:u}=e;if(!t&&!l)return null;let m=((e,t)=>null!=e&&Number.isFinite(e)?e:t?o[t]:void 0)(t,l);return("directional"===c||"directionalAndCardinal"===c||void 0===c&&d)&&Number.isFinite(m)?(0,a.jsx)("span",{className:(0,r.cn)(u?"ml-0.5":"mr-0.5"),children:(0,a.jsx)(i.y,{"data-testid":"WindDirectionIcon",className:(0,r.cn)("inline-block size-4 align-middle",n),color:s,style:{transform:"rotate(".concat(m,"deg)")},"aria-label":"Wind direction arrow"})}):null},m=e=>{let{windDirection:t,windDirectionCardinal:l,cardinalClassName:n,displayWindDirectionIcon:r,displayMode:i,beforeSpeed:s}=e;return(t||l)&&("cardinal"===i||"directionalAndCardinal"===i||void 0===i&&!r)&&l?(0,a.jsxs)("span",{className:n,children:[!s&&" ",l,s&&" "]}):null},h=e=>{let{units:t,windUnitClass:l}=e,n=t?(0,s.Bu)(t):null,i=null==n?void 0:n.speed;return(0,a.jsx)("span",{className:(0,r.cn)(l),children:i})},p=(0,n.memo)(e=>{let{windSpeed:t,units:l,className:n,windDirection:i,windDirectionCardinal:s,windSpeedClass:o,windUnitClass:d,iconClassName:p,iconColor:v,cardinalClassName:x,iconAfterSpeed:f,cardinalBeforeSpeed:g,spaceWindSpeedAndUnit:y=!0,displayWindDirectionIcon:N=!1,displayMode:w}=e;s=s&&(e=>c[e]||e)(s);let b=(0,a.jsx)(u,{windDirection:i,windDirectionCardinal:s,iconClassName:p,iconColor:v,displayWindDirectionIcon:N,displayMode:w,afterSpeed:f}),I=(0,a.jsx)(m,{windDirection:i,windDirectionCardinal:s,displayWindDirectionIcon:N,displayMode:w,beforeSpeed:g,cardinalClassName:x});return(0,a.jsxs)("span",{"data-testid":"Wind",className:(0,r.cn)(n),children:[!f&&b,g&&I,Number.isFinite(t)&&l?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:(0,r.cn)(o),children:t}),y&&" ",(0,a.jsx)(h,{units:l,windUnitClass:d})]}):"--",!g&&I,f&&b]})})},39565:(e,t,l)=>{"use strict";l.d(t,{Ay:()=>s});var a=l(76792),n=l(48260),r=l(79770),i=l(68751);let s=e=>{let{insightHeadline:t,insightTextLong:l,className:s,headlineClass:o,textClass:d,background:c,weatherMode:u}=e;if(!t&&!l)return null;let m="";return u&&(m="severe"===u?"warning":"watch"),(0,a.jsxs)("div",{className:(0,n.cn)("nowrap flex items-center px-6.5 py-4",s,c&&"bg-[#f6f6f6]","watch"===m&&"bg-[#f6f6f6]","warning"===m&&"bg-[#ba0d00]"),children:[m?(0,a.jsx)(r.A,{className:"mr-4 size-4.5 shrink-0"}):null,(0,a.jsxs)("div",{children:[t?(0,a.jsx)(i.Ay,{elementType:"h2",variant:"Body.M",className:(0,n.cn)("mb-2.5 text-base font-medium text-gray-500",o),children:t}):null,l?(0,a.jsx)(i.Ay,{variant:"Body.L.Bold",className:(0,n.cn)("font-semibold text-gray-800","watch"===m&&"text-sm text-white","warning"===m&&"text-sm text-[#ba0d00]",d),children:l}):null]})]})}},39825:(e,t,l)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDailyForecastUrlConfig=function(e){let{geocode:t,units:l,language:n,duration:r=a.ForecastDuration.FIVE_DAY,cscCountryCode:i}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/forecast/daily/".concat(r),query:{geocode:t,units:l,language:n,cscCountryCode:i||void 0,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},t.getHourlyForecastUrlConfig=function(e){let{geocode:t,units:l,language:n,duration:r=a.HourlyForecastDuration.TWO_DAY,cscCountryCode:i}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/forecast/hourly/".concat(r),query:{geocode:t,units:l,language:n,cscCountryCode:i||void 0,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},t.getFifteenMinuteForecastUrlConfig=function(e){let{geocode:t,units:l,language:a}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/forecast/fifteenminute",query:{geocode:t,units:l,language:a,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},t.getMinutelyPrecipitationForecastUrlConfig=function(e){let{geocode:t,units:l,language:a,duration:n="60minute"}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/forecast/minutely/precipitation/".concat(n),query:{geocode:t,units:l,language:a,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}};let a=l(76088)},40358:(e,t,l)=>{"use strict";l.d(t,{r:()=>d});var a=l(44615),n=l(13886),r=l(75302),i=l(32035),s=l(71666);let o={revalidateOnFocus:!1,dedupingInterval:6e4},d=e=>{let{key:t,geoCode:l,insightType:d,locale:c,par:u="twc"}=e,m=(0,r.md)(i.Yt),h=((0,s.xP)(m)||s.AF).code;return(0,a.Ay)(l?[t,d,l,h,u,c]:null,e=>{let[t,l,a,r,i,s]=e;return(0,n.I)({geocode:a,units:r,language:s,insightType:l,par:i})},o)}},40640:(e,t,l)=>{"use strict";l.d(t,{S:()=>s});var a=l(76792),n=l(42292),r=l(23233);let i=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"View"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{d:"M15.47 7.83A8.35 8.35 0 0 0 8 2.5 8.35 8.35 0 0 0 .53 7.83a.5.5 0 0 0 0 .34A8.35 8.35 0 0 0 8 13.5a8.35 8.35 0 0 0 7.47-5.33.5.5 0 0 0 0-.34M8 12.5c-2.65 0-5.45-1.965-6.465-4.5C2.55 5.465 5.35 3.5 8 3.5s5.45 1.965 6.465 4.5C13.45 10.535 10.65 12.5 8 12.5"}),(0,a.jsx)("path",{d:"M8 5a3 3 0 1 0 0 6 3 3 0 0 0 0-6m0 5a2 2 0 1 1 0-4 2 2 0 0 1 0 4"})]})]})}),s=n.forwardRef((e,t)=>(0,a.jsx)(r.h,{ref:t,icon:i,...e}));s.displayName="View"},42531:(e,t,l)=>{"use strict";l.d(t,{VF:()=>n,_x:()=>s,at:()=>i,cv:()=>a,ro:()=>o,vc:()=>r});let a=["rain","freezing_rain"],n=["snow","sleet"],r="#47A25D",i="#65B0C3",s="#DD85A7",o={300:"rain",310:"rain",400:"rain",402:"rain",410:"rain",412:"rain",500:"rain",510:"rain",600:"rain",601:"rain",610:"rain",611:"rain",700:"sleet",701:"sleet",710:"sleet",711:"sleet",800:"freezing_rain",810:"freezing_rain",850:"freezing_rain",900:"rain",910:"rain",950:"rain",1e3:"freezing_rain",1001:"freezing_rain",1002:"freezing_rain",1010:"freezing_rain",1011:"freezing_rain",1012:"freezing_rain",1051:"freezing_rain",1100:"rain",1110:"rain",1140:"rain",1170:"rain",1200:"rain",1201:"rain",1210:"rain",1211:"rain",1240:"rain",1251:"rain",1270:"rain",1300:"snow",1310:"snow",1400:"snow",1410:"snow",1600:"snow",1601:"snow",1610:"snow",1611:"snow",1651:"snow",1800:"sleet",1801:"sleet",1810:"sleet",1811:"sleet",3700:"rain",3710:"rain",3800:"rain",3810:"rain",3900:"rain",3910:"rain",4e3:"rain",4010:"rain",4100:"snow",4110:"snow",4200:"snow",4210:"snow",4300:"snow",4500:"rain",4510:"rain",4600:"rain",4610:"rain",4700:"snow",4710:"snow",4800:"snow",4810:"snow",4900:"rain",4910:"rain",5e3:"snow",5100:"freezing_rain",5101:"freezing_rain",5110:"freezing_rain",5111:"freezing_rain",5200:"sleet",5210:"sleet",5300:"freezing_rain",5301:"freezing_rain",5302:"freezing_rain",5310:"freezing_rain",5311:"freezing_rain",5312:"freezing_rain",5351:"freezing_rain",5400:"snow",5500:"rain",5600:"snow",5610:"snow",5700:"rain",5710:"rain"}},43635:(e,t,l)=>{"use strict";l.r(t),l.d(t,{AdBlock:()=>h,default:()=>p});var a=l(76792),n=l(42292),r=l(58010),i=l(48260),s=l(74130),o=l(25319);let d=(0,l(30505).F)("",{variants:{overflow:{hidden:"overflow-hidden",none:""},layout:{flex:"flex-1",block:"block",fixed:"block fixed w-full",fixedBelowBottomNav:"block fixed w-full bottom-[61px] sm:bottom-0 z-[101]",contentTopDiv:"region-contentTop",stickyTopRight:"sticky top-[82px] z-45",default:""},bg:{white:"bg-white",gray:"bg-[#dee0e3]",none:""},radius:{md:"rounded-md",lg:"rounded-lg",none:""},padding:{standard:"px-4 pb-4",noTop:"pt-0 px-4 pb-4",mobile:"p-2",none:""},margin:{bottomMd:"mb-4",bottomLg:"mb-5",topMd:"mt-3",topLg:"mt-4",none:""},shadow:{md:"shadow-md",none:""},special:{hidden:"hidden",none:""}},compoundVariants:[{layout:"flex",margin:"topMd",class:"-mb-3"}],defaultVariants:{overflow:"none",layout:"default",bg:"none",radius:"none",padding:"none",margin:"none",shadow:"none",special:"none"}}),c={WX_WindowShade:{layout:"contentTopDiv",overflow:"hidden",margin:"bottomMd"},WX_Leaderboard:{layout:"contentTopDiv",overflow:"hidden",margin:"bottomMd"},WX_BottomLeader:{bg:"white",radius:"md",overflow:"hidden",padding:"standard",margin:"topLg"},WX_Bot300:{bg:"white",radius:"md",overflow:"hidden",padding:"standard",margin:"topLg"},WX_PromoDriver1:{bg:"white",radius:"md",overflow:"hidden",padding:"standard",margin:"topLg"},WX_MidLeader:{bg:"white",radius:"md",overflow:"hidden",padding:"standard",margin:"topLg"},WX_Top300Small:{bg:"white",radius:"md",overflow:"hidden",padding:"standard"},WX_SpotLight:{overflow:"hidden",bg:"white",margin:"bottomMd"},WX_DriverUnit:{overflow:"hidden",bg:"white",margin:"bottomMd"},WX_Top300Variable:{bg:"white",radius:"md",overflow:"hidden",padding:"standard"},MW_Position1:{layout:"fixedBelowBottomNav",bg:"gray",padding:"mobile"},MW_Position1_Samsung:{layout:"fixedBelowBottomNav",bg:"gray",padding:"mobile"},MW_Position3:{overflow:"hidden",margin:"bottomLg"},MW_Position4:{radius:"lg",overflow:"hidden",bg:"white",padding:"noTop"},MW_Position5:{radius:"lg",overflow:"hidden",bg:"white",padding:"noTop"},MW_Position2:{radius:"lg",overflow:"hidden",bg:"white",padding:"noTop"}},u=new Set(["MW_Position_ContentFeedAd","MW_Position_ContentFeedAd1","MW_Position_ContentFeedAd11","WX_ContentFeed","WX_ContentFeed1","WX_ContentFeedRadar"]),m=e=>u.has(e),h=e=>{let{adId:t,variant:l="banner",title:u=null,titleAlignment:h="right",height:p="120px",className:v="",sticky:x=!1}=e,{user:f}=(0,o.J)(),{isUserPremium:g}=f,[y,N]=(0,n.useState)({loaded:!1,height:p,displayAd:!1}),w=(0,n.useRef)(null),b=(0,n.useRef)(!1),I=(0,n.useRef)({resize:null,adFrameMutation:null,adCreativeMutation:null}),_=(0,n.useMemo)(()=>((e,t,l,a)=>{if(m(e))return l?d({layout:"flex",margin:"topMd"}):"";if("WX_Hidden"===e||!l)return d({special:"hidden"});let n=c[e];return n||(n="banner"===t?{radius:"lg",overflow:"hidden",bg:"white",shadow:"md",margin:"bottomMd"}:{bg:"white",radius:"md",overflow:"hidden",padding:"standard"}),"WX_Top300Variable"===e&&a&&(n={...n,layout:"stickyTopRight"}),d(n)})(t,l,y.displayAd,x),[t,l,y.displayAd,x]),j=(0,n.useMemo)(()=>{let e=y.loaded?"visible":"invisible";return"".concat("text-center w-full h-full flex text-gray-600 text-base leading-none"," ").concat("WX_SpotLight"!==t?"justify-center":""," ").concat(e)},[t,y.loaded]),E=(0,n.useCallback)(e=>{for(let t of e){let e=t.contentRect.height;e>0&&N(t=>({...t,height:"".concat(e+10,"px"),loaded:!0}))}},[]),T=(0,n.useCallback)(e=>{let t=e.some(e=>"childList"===e.type&&e.addedNodes.length>0);N(e=>({...e,displayAd:t}))},[]),A=(0,n.useCallback)(e=>{let t=w.current;if(e.some(e=>{var t;return"childList"===e.type&&e.addedNodes.length>0&&((null==(t=e.addedNodes[0])?void 0:t.textContent)!=="Advertisement"||e.addedNodes.length>1)})&&t){var l,a,n;null==(l=I.current.resize)||l.observe(t),null==(a=I.current.adCreativeMutation)||a.observe(t,{childList:!0,subtree:!0}),N(e=>({...e,loaded:!0})),null==(n=I.current.adFrameMutation)||n.disconnect()}},[]);return((0,n.useEffect)(()=>{N({loaded:!1,height:p,displayAd:!1});let e=new ResizeObserver(E),t=new MutationObserver(T),l=new MutationObserver(A);I.current={resize:e,adCreativeMutation:t,adFrameMutation:l};let a=w.current;return a&&l.observe(a,{childList:!0,subtree:!0}),()=>{e.disconnect(),l.disconnect(),t.disconnect()}},[T,t,p,E,A]),(0,n.useEffect)(()=>{m(t)&&!b.current&&((e=>{try{let t=(e=>{if("MW_Position_ContentFeedAd11"===e)return{currContentFeedIndex:"21",baseNativeAdPosition:"MW_Position_ContentFeedAd1"};if("MW_Position_ContentFeedAd1"===e||"WX_ContentFeed1"===e){let t=e.match(/(\d+)$/);if(t)return{currContentFeedIndex:t[1],baseNativeAdPosition:e.substring(0,t.index)}}return console.error("Could not parse index from ContentFeed adId: ".concat(e)),null})(e);if(t){let{currContentFeedIndex:l,baseNativeAdPosition:a}=t,n=window.__HeliosConfig.slotsConfig[a];if(n){let t="".concat(n.adUnitPath,"/contentfeed").concat(l);window.__HeliosQ=window.__HeliosQ||[],window.__HeliosQ.push(()=>{window.__Helios.waitForEvent("AD_SLOTS_CONNECTED").then(()=>{window.__Helios.emit("AD_RENDER_CONTENT_FEED",{elementId:e,adUnitPath:t,baseNativeAdPosition:a})})})}else console.error("No config found for ".concat(e," at Helios.slotConfig.").concat(a))}}catch(e){console.error("Error rendering native ad",e)}})(t),b.current=!0)},[t]),!t||g)?null:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.DebugCollector,{componentName:"AdBlock",data:{props:{adId:t,variant:l,title:u,titleAlignment:h,height:p,className:v},state:{loaded:y.loaded,height:y.height,displayAd:y.displayAd},performance:{renderTime:Date.now()}}}),(0,a.jsxs)("div",{className:(0,i.cn)(_,v),children:[u&&y.loaded&&(0,a.jsx)("div",{className:"text-xxs w-full px-4 py-0.75 text-gray-400 text-".concat(h),children:u}),"WX_PromoDriver1"===t&&!u&&y.loaded&&y.displayAd&&(0,a.jsx)("h2",{className:"my-6 px-2 text-2xl font-bold",children:"Stay Safe"}),(0,a.jsx)("div",{id:t,"data-testid":t,className:j,style:{height:y.loaded?"100%":"0px"},ref:w})]}),"WX_PromoDriver1"===t&&(!y.loaded||!y.displayAd)&&(0,a.jsx)(s.default,{title:"Stay Safe",ctaStyle:"featured",linkUrl:"/",backgroundColor:"white",media:"https://s-dev.w-x.co/wxnext/img/Screenshot2025-04-17at44929PMpng"})]})},p=h},43716:(e,t)=>{"use strict";var l,a,n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.PollutantType=t.AirQualityCategory=t.AirQualityForecastDuration=t.AirQualityScale=void 0,function(e){e.EPA="EPA",e.HJ6332012="HJ6332012",e.ATMO="ATMO",e.UBA="UBA",e.DAQI="DAQI",e.NAQI="NAQI",e.IMECA="IMECA",e.CAQI="CAQI"}(l||(t.AirQualityScale=l={})),function(e){e.TWELVE_HOUR="12hour",e.TWENTY_FOUR_HOUR="24hour",e.FORTY_EIGHT_HOUR="48hour",e.SEVENTY_TWO_HOUR="72hour"}(a||(t.AirQualityForecastDuration=a={})),function(e){e.GOOD="Good",e.MODERATE="Moderate",e.UNHEALTHY_FOR_SENSITIVE_GROUPS="Unhealthy for Sensitive Groups",e.UNHEALTHY="Unhealthy",e.VERY_UNHEALTHY="Very Unhealthy",e.HAZARDOUS="Hazardous"}(n||(t.AirQualityCategory=n={})),function(e){e.CO="CO",e.NO2="NO2",e.O3="O3",e.PM10="PM10",e.PM2_5="PM2.5",e.SO2="SO2"}(r||(t.PollutantType=r={}))},43834:(e,t,l)=>{"use strict";l.r(t),l.d(t,{PromoDriverBlock:()=>s,default:()=>o});var a=l(76792);l(42292);var n=l(57965),r=l(9198),i=l(98066);let s=e=>{let{title:t,image:l,subtitle:s,bodyText:o,ctaButton:d}=e,c=(null==d?void 0:d.url)&&/^https?:\/\//i.test(d.url),u=(0,i.bt)(l)?l:null;return t||u&&(null==u?void 0:u.url)||s||o||d?(0,a.jsxs)("div",{className:"overflow-hidden rounded-lg bg-white",children:[t&&(0,a.jsx)("div",{className:"p-4",children:(0,a.jsx)("h3",{className:"text-xl font-semibold text-gray-900",children:t})}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(null==u?void 0:u.url)?(0,a.jsx)("div",{className:"relative aspect-[42/13] w-full overflow-hidden bg-white px-4 pt-4",children:(0,a.jsx)("div",{className:"relative h-full w-full overflow-hidden rounded-lg",children:(0,a.jsx)("a",{href:d&&d.url||"#",children:(0,a.jsx)(n.default,{src:u.url,alt:t||"Promo image",fill:!0,className:"object-cover"})})})}):null,(s||o||d)&&(0,a.jsxs)("div",{className:"p-4",children:[s&&(0,a.jsx)("a",{href:d&&d.url||"#",children:(0,a.jsx)("h4",{className:"mb-2 text-base font-bold",children:s})}),o&&(0,a.jsx)("a",{href:d&&d.url||"#",children:(0,a.jsx)("p",{className:"mb-4 text-base",children:o})}),d&&(0,a.jsx)("div",{className:"flex justify-end",children:c?(0,a.jsx)("a",{href:d.url||"#",target:d.openInNewTab?"_blank":"_self",rel:d.openInNewTab?"noopener noreferrer":"",className:"inline-block max-w-[200px] overflow-hidden rounded-lg bg-black px-4 py-2 text-base font-normal text-ellipsis whitespace-nowrap text-white",children:d.text}):(0,a.jsx)(r.default,{href:d.url||"#",target:d.openInNewTab?"_blank":"_self",className:"inline-block max-w-[200px] overflow-hidden rounded-lg bg-black px-4 py-2 text-base font-normal text-ellipsis whitespace-nowrap text-white",children:d.text})})]})]})]}):null},o=s},44685:(e,t,l)=>{"use strict";l.d(t,{I:()=>r});var a=l(63255),n=l(67810);function r(e){return{displayName:e.location.displayName,adminDistrict:e.location.adminDistrict,geocode:(0,a.S)("".concat(e.location.latitude,",").concat(e.location.longitude)),placeId:e.location.placeId,city:e.location.city,countryCode:e.location.countryCode,adminDistrictCode:e.location.adminDistrictCode||"",presentationName:(0,n.LM)(e.location),ianaTimeZone:e.location.ianaTimeZone}}},44936:(e,t,l)=>{"use strict";l.d(t,{p:()=>i});var a=l(56768),n=l(42292),r=l(40358);let i=(e,t)=>{var l;let{data:i,isLoading:s}=(0,r.r)({key:"precipintensity-insight",geoCode:null!=(l=null==e?void 0:e.geocode)?l:null,insightType:a.InsightType.PRECIP_INSIGHT,locale:t}),o=(0,n.useMemo)(()=>null==i?void 0:i.find(e=>{var t;return(null==e||null==(t=e.supplement)?void 0:t.precipSource)==="wwir"}),[i]);return{loadingInsight:s,insightHeadline:(null==o?void 0:o.insightHeadline[0])||"",insightTextLong:(null==o?void 0:o.insightTextLong[0])||""}}},46593:(e,t,l)=>{"use strict";l.d(t,{v:()=>i});var a=l(44615),n=l(87103),r=l(55198);let i=e=>{let t=(0,r.useParams)(),l=null==t?void 0:t.locale,{data:i,error:s,isLoading:o}=(0,a.Ay)(e?["/v3/location/point",e]:null,()=>e?(0,n.PT)(e,l):null,{revalidateOnFocus:!1,dedupingInterval:3e5});return{specifiedLocationData:i,specifiedLocationError:s,isSpecifiedLocationLoading:o}}},46670:(e,t,l)=>{"use strict";l.d(t,{S:()=>d});var a=l(76792);l(42292);var n=l(48260),r=l(31607),i=l(3916),s=l(71666);let o=e=>{let{pressureTendencyCode:t,iconClassName:l}=e;return 1===t?(0,a.jsx)(r.D,{"data-testid":"PressureRisingIcon",className:(0,n.cn)("mr-1 inline-block h-4 w-4",l),"aria-label":"Pressure rising"}):2===t?(0,a.jsx)(i.y,{"data-testid":"PressureFallingIcon",className:(0,n.cn)("mr-1 inline-block h-4 w-4",l),"aria-label":"Pressure falling"}):null},d=e=>{let{className:t,unitsClassName:l,pressureAltimeter:r,pressureMeanSeaLevel:i,pressureTendencyCode:d,units:c,iconClassName:u}=e,m=c?(0,s.Bu)(c):null,h=null==m?void 0:m.pressure,p=(()=>{let e=r&&r>0||i&&i>0?r||i:null;return e?"e"===c?e.toFixed(2):e.toFixed(1):null})();return(0,a.jsx)("span",{"data-testid":"PressureValue",className:(0,n.cn)("inline-flex items-center",t),children:p?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o,{pressureTendencyCode:d,iconClassName:u}),(0,a.jsx)("span",{children:p}),"\xa0",(0,a.jsx)("span",{className:(0,n.cn)(l),children:h})]}):"--"})}},46828:(e,t,l)=>{"use strict";l.d(t,{A:()=>g});var a=l(76792);l(42292);var n=l(93146),r=l(63481),i=l(29963),s=l(79770),o=l(44615),d=l(27370),c=l(55198),u=l(48260),m=l(62596),h=l(79315);let p=e=>{let{date:t,locale:l="en-US",timeZone:a}=e;if(!t)return null;let{cDate:n,cTimeZone:r}=(0,h.r)({date:t,locale:l,timeZone:a});return new Intl.DateTimeFormat(l,{weekday:"long",timeZone:r}).format(n)};var v=l(47421),x=l(68751),f=l(9946);let g=e=>{let{location:t,className:l,headlineClassName:h,showSubheadline:g=!1}=e,y=(0,c.useParams)(),N=null==y?void 0:y.locale,w=(0,v.c3)("AlertHeadlines"),{data:b,error:I,isLoading:_}=(0,o.Ay)((null==t?void 0:t.geocode)?["alerts",t.geocode]:null,e=>{let[t,l]=e;return(0,n.Sn)({geocode:l,language:N})},{revalidateOnFocus:!1,dedupingInterval:6e4}),j=(null==b?void 0:b.alerts)&&b.alerts.length>0?b.alerts[0]:null,E=j?(()=>{if(!j)return null;let{productIdentifier:e,phenomena:t,significance:l}=j;if(!e||!t||!l)return null;let a=(0,r.F)({productIdentifier:e,phenomena:t,significance:l}),n=(0,i.t)({productIdentifier:e||"",phenomena:t,significance:l}),s={1:{icon:"#fff",fill:"#ba0d00",border:"#f0f0f0",textColor:"#FFFFFF",backgroundColor:"#ba0d00",buttonBackgroundColor:"#ba0d00"},2:{icon:"#000",fill:"#e6731f",border:"#f0f0f0",textColor:"#ffffff",backgroundColor:"#25242299",buttonBackgroundColor:"#25242299"},3:{icon:"#000",fill:"#ebbb02",border:"#f0f0f0",textColor:"#ffffff",backgroundColor:"#25242299",buttonBackgroundColor:"#25242299"},4:{icon:"#fff",fill:"#a51ccb",border:"#f0f0f0",textColor:"#FFFFFF",backgroundColor:"#25242299",buttonBackgroundColor:"#ffffff1a"},severe:{icon:"#fff",fill:"#ba0d00",border:"#f0f0f0",textColor:"#FFFFFF",backgroundColor:"#ba0d00",buttonBackgroundColor:"#ba0d00"}};return s[n?"severe":a]||s[4]})():null,T=j?(0,r.F)({productIdentifier:j.productIdentifier,phenomena:j.phenomena,significance:j.significance}):null,A=j?(0,i.t)({productIdentifier:j.productIdentifier,phenomena:j.phenomena,significance:j.significance}):null;if(_||I||!j)return null;let R=j.effectiveTimeLocalTimeZone||j.endTimeLocalTimeZone||"",C=(e=>{let{effectiveTimeLocal:t,endTimeLocal:l}=e,a="";switch(!0){case!!(t&&l):a="subheadlineTextWithStartAndEndTime";break;case!!(!t&&l):a="subheadlineTextWithoutStartTime";break;case!!(t&&!l):a="subheadlineTextWithoutEndTime";break;default:return""}return a})({effectiveTimeLocal:j.effectiveTimeLocal,endTimeLocal:j.endTimeLocal}),S=(0,f.k)({phenomena:j.phenomena,significance:j.significance,areaId:j.areaId,officeCode:j.officeCode,eventTrackingNumber:j.eventTrackingNumber,locId:(null==t?void 0:t.placeId)||""});return(0,a.jsxs)("a",{href:S,className:(0,u.cn)("flex items-center gap-4 rounded-sm px-2 py-2 text-sm",l),style:{backgroundColor:null==E?void 0:E.backgroundColor,color:null==E?void 0:E.textColor},role:"alert","aria-live":"polite",children:[(0,a.jsxs)("div",{className:"flex-1 flex-col",children:[(0,a.jsxs)("div",{className:"flex gap-2",children:[j&&(0,a.jsx)(s.AlertIcon,{productIdentifier:j.productIdentifier,phenomena:j.phenomena,significance:j.significance,className:"h-4 w-4 items-start","aria-hidden":"true"}),(0,a.jsx)("span",{className:(0,u.cn)("uppercase",h),children:j.eventDescription})]}),g&&(0,a.jsx)(x.Ay,{className:"mt-1 uppercase",variant:"Caption.S.Bold",color:"inverse",children:w(C,{[(null==j?void 0:j.effectiveTimeLocal)&&"startTime"]:(0,m.P)({date:j.effectiveTimeLocal,weekday:"short",locale:N,timeZone:j.ianaTimeZone,minutes:!0}),[(null==j?void 0:j.endTimeLocal)&&"endTime"]:(e=>{let{effectiveTimeLocal:t,endTimeLocal:l,locale:a,ianaTimeZone:n}=e,r=p({date:t,locale:a,timeZone:n}),i=p({date:l,locale:a,timeZone:n});return(0,m.P)({date:l,locale:a,weekday:r!==i&&"short"||void 0,timeZone:n,minutes:!0})})({effectiveTimeLocal:j.effectiveTimeLocal||"",endTimeLocal:j.endTimeLocal||"",locale:N,ianaTimeZone:j.ianaTimeZone||""}),timeZone:R})})]}),b&&b.alerts.length>1&&(0,a.jsxs)(d.$n,{variant:"outline",size:"sm",style:{backgroundColor:null==E?void 0:E.buttonBackgroundColor,...1===T||A?{outline:"solid 1px #ffffff"}:{}},className:"flex h-6 items-center justify-center rounded-xs border-0 px-2 py-2 text-xs text-white hover:bg-transparent hover:text-white","aria-label":"View ".concat(b.alerts.length-1," more alerts"),children:["+",b.alerts.length-1," MORE"]})]})}},46859:(e,t,l)=>{"use strict";l.d(t,{v:()=>N});var a=l(23803);let n=(0,a.h)("AdUtils"),r=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 i(a,n);r?t.playAd(r):t.play()},i=async function(e){let t,l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!c())return null;let a=o(e,l),r=s({},e.iab);window.__Helios.emit("UPDATE_AD_UNIT_PATH",a);try{var i,u,m;null==(m=window.__Helios.modules)||null==(u=m.iabc)||null==(i=u.update)||i.call(u,{page:r,site:{v1:["IAB15-10_Weather"],v3:["390_Weather"]}})}catch(e){n.error("Error updating IABC parameters",e)}try{t=await d()}catch(e){t=null,n.error("Error getting ad tag",e)}return window.__Helios.emit("UPDATE_AD_UNIT_PATH",a),t},s=(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]=s(l[e]||{},t[e]):l[e]=t[e];return l},o=(e,t)=>{var l,a,n,r,i,s;let o=null==(a=window)||null==(l=a.__HeliosConfig)?void 0:l.generalConfig,d=null!=(i=null==o||null==(n=o.targeting)?void 0:n.networkCode)?i:"/7646",c=null!=(s=null==o||null==(r=o.targeting)?void 0:r.adUnits)?s:t?"mobile_smart_us":"web_weather_us",u=e.collectionAdZone||e.adzone||"video";return"".concat(d,"/").concat(c,"/").concat(u)},d=async()=>{let e=[];try{var t;e=await (null==(t=window)?void 0:t.__Helios.video.requestVideoBids())}catch(e){n.error("Error getting video bids",e)}return await window.__Helios.modules.videoTag.createAdTag(e)},c=()=>{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}},u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"https";return e.replace(/^\/\//,"".concat(t,"://"))},m=e=>{let{collectionId:t,videoIndex:l,videoId:a}=e||{};return{videoCount:l,videoId:a,collectionId:t}},h=e=>"GDFP"===e||"AdSense/AdX"===e;l(76792),l(73675);var p=l(37811);let v=(0,a.h)("NewRelic");function x(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,{...f(t,"meta.")})}catch(e){v.error("New Relic: sendReumEvent error",e instanceof Error?e.message:String(e))}}p.env.NEW_RELIC_RUM_ACCOUNT_ID,p.env.NEW_RELIC_RUM_APP_ID,p.env.NEW_RELIC_RUM_LICENSE_KEY;let f=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]}))},g=(0,a.h)("AdEvents"),y=new Set(["amznbid","crt_pb","hb_pb"]),N=[{eventName:"ready",callback:e=>{let{event:t}=e;x("videoReady",{isViewable:!!t.viewable,setupTime:t.setupTime})}},{eventName:"beforePlay",callback:async e=>{var t;let{event:l,player:a,isFirstPlayRef:n,user:i,isMobile:s}=e;if(!(null==n?void 0:n.current))return;let o=a.getPlaylistItem(),d=null==o||null==(t=o.custom)?void 0:t.ctx;d&&(d.videoIndex=a.getPlaylistIndex()),x("videoBeforePlay",{...m(d),isViewable:!!l.viewable,playReason:l.playReason}),a.stop(),await r({player:a,user:i,ctx:d,isMobile:s}),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={},s=m(r);try{let e=u(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))y.has(e)&&(i["".concat("kv_").concat(e)]="".concat(a[e]))}catch(e){g.error("Error parsing cust_params",e)}x("videoAdRequest",{...s,isViewable:!!l.viewable,roll:l.adposition,...i})}},{eventName:"adStarted",callback:e=>{var t,l,a,n,r,i;let{event:s,player:o}=e,d=o.getPlaylistItem(),c=null==d||null==(t=d.custom)?void 0:t.ctx,{duration:u,adposition:p}=s,v=m(c),f="";try{let e=null==(i=s.ima)||null==(r=i.ad)?void 0:r.data;e&&(f=(e=>{let{adSystem:t,adId:l,adWrapperSystems:a,adWrapperIds:n}={adSystem:"",adId:"",adWrapperSystems:[],adWrapperIds:[],...e};if(h(t))return l;let r=a.findIndex(h);return r>=0&&r{var t;let{event:l,player:a}=e,n=a.getPlaylistItem();x("videoStart",{...m(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();x("videoComplete",{...m(null==a||null==(t=a.custom)?void 0:t.ctx)})}},{eventName:"adSkipped",callback:e=>{var t;let{player:l}=e,a=l.getPlaylistItem();x("videoAdSkip",{...m(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:i,isMobile:s}=e;if(null==n?void 0:n.current)return;let{item:o}=l,d=null==o||null==(t=o.custom)?void 0:t.ctx;d.videoIndex=a.getPlaylistIndex(),a.stop(),await r({player:a,user:i,ctx:d,isMobile:s})}},{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();x("videoAdError",{...m(null==n||null==(t=n.custom)?void 0:t.ctx),message:l.message,code:l.code,vastCode:l.vastCode,roll:l.adposition}),g.error("Ad error occurred",l),a.play()}},{eventName:"error",callback:async e=>{var t;let{event:l,player:a}=e,n=a.getPlaylistItem();x("videoError",{...m(null==n||null==(t=n.custom)?void 0:t.ctx),message:l.message,code:l.code}),g.error("Video Player error",l)}},{eventName:"setupError",callback:e=>{let{event:t}=e;x("videoSetupError",{message:t.message,code:t.code})}}]},47060:(e,t,l)=>{"use strict";l.d(t,{c:()=>s});var a=l(76792),n=l(42292),r=l(23233);let i=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Clear Night"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M6.751 2.707a7.54 7.54 0 0 0 5.797 9.097A5.56 5.56 0 0 1 8.561 13.5q-.105.002-.21 0a5.547 5.547 0 0 1-1.6-10.792m.74-1.207a1 1 0 0 0-.088.008 6.548 6.548 0 0 0 .912 12.99c.082.004.164 0 .246 0a6.54 6.54 0 0 0 5.35-2.777.504.504 0 0 0-.391-.782A6.54 6.54 0 0 1 7.945 2.19a.507.507 0 0 0-.455-.69"})]})}),s=n.forwardRef((e,t)=>(0,a.jsx)(r.h,{ref:t,icon:i,...e}));s.displayName="ClearNight"},47681:(e,t,l)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSunV3WeatherInsightsUrlConfig=function(e){let{geocode:t,placeId:l,postalKey:n,insightType:r=a.InsightType.ALL,units:i,language:s,par:o}=e,d={format:"json",units:i,language:s,apiKey:"71f92ea9dd2f4790b92ea9dd2f779061",insightType:r,par:o};return t?d.geocode=t:l?d.placeid=l:n&&(d.postalKey=n),{host:"api.weather.com",protocol:"https",pathname:"/v3/insights",query:d}};let a=l(56768)},48195:(e,t,l)=>{"use strict";l.a(e,async(e,a)=>{try{l.d(t,{A:()=>A});var n=l(76792),r=l(42292),i=l(68751),s=l(27370),o=l(9198),d=l(70336),c=l(47421),u=l(63407),m=l(70214),h=l(46828),p=l(82903);l(56768);var v=l(31607),x=l(3916),f=l(9390),g=l(37971),y=l(95002),N=l(47060),w=l(29814),b=l(39565),I=l(61344),_=l(44936),j=e([I]);I=(j.then?(await j)():j)[0];let E={up:v.D,down:x.y,sun:f.s,cloud:g.T,rain:y.c,clear:f.s,"clear-night":N.c,fair:w.W},T=e=>{let{location:t,locale:l}=e,{insightTextLong:a}=(0,_.p)(t,l);return a?(0,n.jsx)(b.Ay,{className:"px-4 py-2",headlineClass:"hidden",textClass:"text-sm m-0",insightTextLong:a}):null},A=e=>{let{location:t,hourlyForecast:l,isLoading:a,error:v,locale:x,showDayLabel:f,canToggleMultipleItems:g,ctaLink:y,ctaText:N,enableAlertHeadlines:w,insight:b,insightIcon:_,showPrecipIntensity:j}=e,A=(0,c.c3)("HourlyForecast"),[R,C]=(0,r.useState)(!1),S=_&&E[_];return(0,n.jsxs)(d.Zp,{className:"not-prose @container/hourly gap-0 p-4",children:[(0,n.jsxs)(d.aR,{className:"gap-0 p-0",children:[(0,n.jsx)(i.Ay,{elementType:"h2",variant:"Title.M",className:"mb-4 leading-snug whitespace-nowrap",children:A("hourlyWeather")}),b&&(0,n.jsxs)("div",{className:"mb-4 flex items-center gap-1",children:[S&&(0,n.jsx)("div",{children:(0,n.jsx)(S,{className:"text-brand-light size-5"})}),(0,n.jsx)(i.Ay,{variant:"Body.S.Bold",color:"brandLight",children:b})]})]}),(0,n.jsxs)(d.Wu,{className:"p-0",children:[w&&(0,n.jsx)("div",{children:(0,n.jsx)(h.A,{location:t,className:"mx-4 mb-3 inline-flex @lg/hourly:min-w-59"})}),j&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(T,{location:t,locale:x}),(0,n.jsx)("div",{className:"px-4 py-2",children:(0,n.jsx)(I.A,{location:t,onlyChart:!0})})]}),(()=>{var e,d;let c="flex min-h-48 items-center justify-center p-4";if(!t)return(0,n.jsx)("div",{className:"".concat(c," animate-pulse text-xl"),children:A("locationLoading")});if(a)return(0,n.jsx)("div",{className:"".concat(c," animate-pulse text-xl"),children:A("loadingForecast")});if(v||0===l.length)return(0,n.jsx)("div",{className:"".concat(c," text-xl text-red-500"),children:(null==v?void 0:v.message)||A("errorMsg")});let h=null!=(d=null==(e=l[0])?void 0:e.validTimeLocal)?d:void 0;return(0,n.jsxs)("div",{children:[(0,n.jsx)(p.nD,{...g?{type:"multiple",defaultValue:h?[h]:void 0}:{type:"single",defaultValue:h},children:l.map((e,a)=>{var s;return!R&&e.wxPhraseLong.length>15&&C(!0),(0,n.jsxs)(r.Fragment,{children:[f&&(0===a||e.dayOfWeek!==((null==(s=l[a-1])?void 0:s.dayOfWeek)||""))&&(0,n.jsx)(i.Ay,{variant:"Body.L.Bold",className:"border-b border-[#dedede] p-4",children:(0,m.z)({date:e.validTimeLocal,locale:x,timeZone:t.ianaTimeZone})}),(0,n.jsx)(u.A,{itemIndex:a,forecast:e,location:t,locale:x,longPhraseInSet:R})]},e.validTimeLocal)})}),y&&N&&(0,n.jsx)("div",{className:"pt-6",children:(0,n.jsx)(s.$n,{asChild:!0,children:(0,n.jsx)(o.default,{href:y,children:N})})})]})})()]})]})};a()}catch(e){a(e)}})},48834:(e,t,l)=>{"use strict";l.d(t,{M:()=>i});var a=l(76792),n=l(48260),r=l(47421);let i=e=>{let t,{uvIndex:l,uvDescription:i,className:s,descriptionClassName:o}=e,d=(0,r.c3)("DetailsTable");return t=!Number.isFinite(l)||l10?d("extreme"):i?l:t=d("uvIndexVal",{val:l,maxVal:11}),(0,a.jsxs)("span",{"data-testid":"UVIndexValue",className:(0,n.cn)(s),children:[t,i&&l{"use strict";l.d(t,{A:()=>m});var a=l(76792),n=l(42292);let r={src:"/_next/static/media/SlideshowIcon.2da11b0d.png"};var i=l(22627),s=l(68751),o=l(64868),d=l(11181);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;let{id:l,assets:n,currentSlideIndex:u,totalAssets:m,previous:h,next:p,sendTrackString:v,rounded:x=!1}=e;if(!n.length||u=n.length)return null;let f=n[u],g="".concat(u+1,"/").concat(m),y=0===u,N=u===m-1;return(0,a.jsxs)("figure",{id:l,className:"relative mt-4 mb-4 w-full max-w-full",children:[(0,a.jsx)("div",{className:x?"overflow-hidden rounded-[16px]":"",children:(0,a.jsx)("div",{className:"relative w-full ".concat(x?"rounded-[16px]":""),children:(0,a.jsx)("div",{className:"relative w-full ".concat(x?"rounded-[16px]":""),style:{paddingTop:"56.25%"},children:(0,a.jsx)(i.A,{className:"absolute top-0 left-0 h-full w-full object-cover",src:f.url||"",alt:(null==(t=f.seo)?void 0:t.altText)||"",rounded:x,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:"mr-2 ml-2",children:(0,a.jsx)(s.EY,{variant:"Body.S",color:"primary",children:g})}),(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:y,onClick:()=>{v("wxnode_slideshow_link-previous"),h()},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)(o.A,{className:"h-5 w-5 ".concat(y?"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:N,onClick:()=>{v("wxnode_slideshow_link-next"),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 right",children:(0,a.jsx)(d.A,{className:"h-5 w-5 ".concat(N?"text-gray-200":"text-blue-500")})})})})]})}),f.filename&&!c(f.filename)&&(0,a.jsx)(s.EY,{variant:"Title.S",color:"primary",elementType:"h3",className:"mt-0 mb-1",children:f.filename}),f.caption&&(0,a.jsx)(s.EY,{variant:"Body.S",color:"primary",className:"py-1 pb-0 ".concat(f.filename&&!c(f.filename)?"":"mt-0 pt-0"),children:f.caption}),(0,a.jsx)("div",{className:"border-b border-gray-200 py-2"})]})})]})},m=e=>{let{id:t,assets:l=[],allSlides:r=[],totalAssets:i=r.length||0,loadNextSlideshowPage:s,sendTrackString:o=()=>{},rounded:d=!1}=e,c=(0,n.useId)(),m=t||"slideshow-".concat(c),h=r.length>0,[p,v]=(0,n.useState)(0),[x,f]=(0,n.useState)(1),[g,y]=(0,n.useState)(1),[N,w]=(0,n.useState)(h?r.slice(0,20):l),b=(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;v(p-1),f(e)}},[p]),_=(0,n.useCallback)(()=>{if(p+1=g){let e=20*x;if(e-3

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

{if(b(document.querySelector("#".concat(m))))switch(e.key){case"ArrowLeft":I();break;case"ArrowRight":_()}},[m,b,I,_]);return(0,n.useEffect)(()=>(document.body.addEventListener("keydown",j),()=>{document.body.removeEventListener("keydown",j)}),[j]),(0,n.useEffect)(()=>{h&&0===N.length&&w(r.slice(0,20))},[h,r,N.length]),(0,a.jsx)(u,{id:m,assets:h?N:l,currentSlideIndex:p,totalAssets:i,previous:I,next:_,sendTrackString:o,rounded:d})}},49605:(e,t,l)=>{"use strict";l.d(t,{Cf:()=>u,L3:()=>m,LC:()=>c,ZJ:()=>d,lG:()=>o});var a=l(76792);l(42292);var n=l(74277),r=l(72527),i=l(48260);l(27370);var s=l(68751);function o(e){let{...t}=e;return(0,a.jsx)(n.bL,{"data-slot":"dialog",...t})}function d(e){let{...t}=e;return(0,a.jsx)(n.ZL,{"data-slot":"dialog-portal",...t})}function c(e){let{className:t,...l}=e;return(0,a.jsx)(n.hJ,{"data-slot":"dialog-overlay",className:(0,i.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...l})}function u(e){let{className:t,children:l,showCloseButton:s=!0,...o}=e;return(0,a.jsxs)(d,{"data-slot":"dialog-portal",children:[(0,a.jsx)(c,{}),(0,a.jsxs)(n.UC,{"data-slot":"dialog-content",className:(0,i.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-white shadow-lg duration-200 sm:max-w-md",t),...o,children:[l,s&&(0,a.jsxs)(n.bm,{className:"absolute top-4 right-4 cursor-pointer transition-opacity hover:opacity-70 focus:outline-none",children:[(0,a.jsx)(r.b,{className:"h-5 w-5 text-black"}),(0,a.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function m(e){let{className:t,children:l,...r}=e;return(0,a.jsx)(n.hE,{"data-slot":"dialog-title",className:(0,i.cn)("pt-4 text-center",t),...r,children:(0,a.jsx)(s.EY,{variant:"Title.M",children:l})})}},49692:(e,t,l)=>{"use strict";l.d(t,{S:()=>x});var a=l(76792),n=l(22627),r=l(42292),i=l(23233);let s=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Play"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{d:"M5.5 11.5A.5.5 0 0 1 5 11V5a.5.5 0 0 1 .724-.447l6 3a.5.5 0 0 1 0 .894l-6 3a.5.5 0 0 1-.224.053M6 5.809v4.382L10.382 8z"}),(0,a.jsx)("path",{d:"M8 2a6 6 0 1 1 0 12A6 6 0 0 1 8 2m0-1a7 7 0 1 0 0 14A7 7 0 0 0 8 1"})]})]})}),o=r.forwardRef((e,t)=>(0,a.jsx)(i.h,{ref:t,icon:s,...e}));o.displayName="PlayOutline";let d=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Book"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{d:"M13 5H9.5v1H13zM13 7.5H9.5v1H13zM13 10H9.5v1H13zM6.5 5H3v1h3.5zM6.5 7.5H3v1h3.5zM6.5 10H3v1h3.5z"}),(0,a.jsx)("path",{d:"M14 2.5H2a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-9a1 1 0 0 0-1-1m-12 1h5.5v9H2zm6.5 9v-9H14v9z"})]})]})}),c=r.forwardRef((e,t)=>(0,a.jsx)(i.h,{ref:t,icon:d,...e}));c.displayName="Book";var u=l(9198),m=l(48260),h=l(68751);let p={video:o,article:c},v={col:"flex-col",row:"flex-row","col-reverse":"flex-col-reverse","row-reverse":"flex-row-reverse"},x=e=>{let{heading:t,description:l,content:r,href:i,target:s,imageUrl:o,altText:d,onClick:c,className:x,imageWrapClassName:f,imageClassName:g,contentClassName:y,badge:N,icon:w="video",showIcon:b,iconClassName:I,overlayClassName:_,dir:j="row"}=e,E=p[w],T=!!(t||l||r),A=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:(0,m.cn)("relative aspect-video w-full overflow-hidden rounded-md",f),children:[(0,a.jsx)(n.A,{src:o,alt:d||l||"",fill:!0,className:(0,m.cn)("absolute top-0 left-0 h-full w-full object-cover",g),sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 25vw"}),(0,a.jsx)("div",{className:(0,m.cn)("absolute inset-0 flex items-center justify-center",_),children:b&&E&&(0,a.jsx)(E,{className:(0,m.cn)("size-10 text-white",I)})}),N&&(0,a.jsx)("div",{className:"absolute right-2 bottom-2 rounded-full bg-black/70 px-[10px] py-2 text-[14px] leading-none text-white md:right-1 md:bottom-1 md:p-1 md:text-[10px]",children:N})]}),T&&(0,a.jsx)("div",{className:y,children:r||(0,a.jsxs)(a.Fragment,{children:[t&&(0,a.jsx)(h.Ay,{elementType:"span",variant:"Title.S",className:"mb-1 text-xs",color:"placeholder",children:t}),l&&(0,a.jsx)(h.Ay,{elementType:"h2",className:"mb-1 leading-tight font-normal",children:l})]})})]}),R=(0,m.cn)("not-prose font-normal text-gray-900 no-underline hover:no-underline flex",v[j],x);return!c&&i?(0,a.jsx)(u.default,{className:R,href:i,target:s,children:A}):(0,a.jsx)("div",{className:R,onClick:c,children:A})}},49694:(e,t,l)=>{"use strict";l.d(t,{S:()=>s});var a=l(76792),n=l(42292),r=l(23233);let i=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"pressure"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.498 1.022a.5.5 0 0 1 .5.5v3.022H4.841l3.14 2.788 3.16-2.788h-1.13V1.522a.5.5 0 0 1 1 0v2.022h1.453a.5.5 0 0 1 .33.875L8.744 7.993l4.053 3.6a.5.5 0 0 1-.332.874h-1.473v2.022a.5.5 0 0 1-1 0v-3.022h1.157L8.008 8.68l-3.16 2.788h1.13v3.022a.5.5 0 0 1-1 0v-2.022H3.525a.5.5 0 0 1-.33-.875l4.052-3.574-4.054-3.6a.5.5 0 0 1 .332-.874h1.473V1.522a.5.5 0 0 1 .5-.5",clipRule:"evenodd"})]})}),s=n.forwardRef((e,t)=>(0,a.jsx)(r.h,{ref:t,icon:i,...e}));s.displayName="Pressure"},50772:(e,t,l)=>{"use strict";l.d(t,{r:()=>i});var a=l(42292),n=l(55680),r=l(1843);let i=e=>{let t=(0,a.useRef)(null),[l,i]=(0,a.useState)(r.A?e(window.innerWidth,window.innerHeight):null),s=(0,a.useRef)(!1),o=(0,n.X)(e);return(0,a.useEffect)(()=>{let e=t.current;if(!e||"undefined"==typeof ResizeObserver)return;let l=new ResizeObserver(e=>{for(let t of e){let{right:e,left:l,top:a,bottom:n}=t.contentRect,r=e+l,d=a+n,c=o.current(r,d);s.current=!0,i(c)}});return l.observe(e),()=>{l.disconnect()}},[t,o]),[l,t,s.current]}},54909:(e,t,l)=>{"use strict";l.d(t,{j:()=>n,w:()=>r});var a=l(37811);let n=e=>{var t,l,n,r;let i,s=null==(t=null!=(l=a.env.VERCEL_TARGET_ENV)?l:"production")?void 0:t.toLowerCase();a.env.VERCEL_TARGET_ENV,"preview"!==s&&a.env.VERCEL_TARGET_ENV_URL;let o=null!=(n=a.env.VERCEL_URL)?n:"wx-next-m4z5agw01.vercel.weather.com",d=null!=(r=a.env.VERCEL_TARGET_ENV_URL)?r:"weather.com",c="true"===a.env.NEXT_DEV_SERVER_INSECURE||"true"===a.env.NEXT_PUBLIC_NEXT_DEV_SERVER_INSECURE;switch(s){case"preview":i="https://".concat(o);break;case"development":i=c?"http://".concat(d):"https://".concat(d);break;default:i="https://".concat(d)}return e?new URL(e,i).toString():i},r=e=>{var t,l;a.env.VERCEL_TARGET_ENV_PRODUCTION_URL;let n=null!=(t=a.env.VERCEL_TARGET_ENV_PRODUCTION_URL)?t:"weather.com",r=null!=(l=a.env.VERCEL_PROJECT_PRODUCTION_URL)?l:"wxnext.weather.com",i="https://".concat(null!=n?n:r);return e?new URL(e,i).toString():i}},55094:(e,t,l)=>{"use strict";l.d(t,{lV:()=>r,os:()=>i,rT:()=>n});var a=l(82170);let n={id:"barBackground",beforeDatasetsDraw(e,t,l){let{ctx:a,chartArea:{top:n},scales:{y:r}}=e;if(!r)return;let i=e.getDatasetMeta(0),s=l.floatPoint||0;i.data.forEach(e=>{var t;let{x:i,width:o}=e.getProps(["x","width"],!0);a.save(),a.fillStyle=l.color||"transparent",function(e,t,l,a,n,r){let i=Math.min(r,a/2,n/2);e.beginPath(),e.moveTo(t+i,l),e.lineTo(t+a-i,l),e.quadraticCurveTo(t+a,l,t+a,l+i),e.lineTo(t+a,l+n-i),e.quadraticCurveTo(t+a,l+n,t+a-i,l+n),e.lineTo(t+i,l+n),e.quadraticCurveTo(t,l+n,t,l+n-i),e.lineTo(t,l+i),e.quadraticCurveTo(t,l,t+i,l),e.closePath(),e.fill()}(a,i-o/2,n,o,r.getPixelForValue(r.min+s)-n,null!=(t=l.borderRadius)?t:8),a.restore()})}},r={id:"extendXAxisLine",afterDraw(e,t,l){var a,n,r,i,s;let{ctx:o,scales:d}=e,c=d.x,u=d.y,m=null!=(a=l.offset)?a:20,h=(null!=(n=null==u?void 0:u.bottom)?n:0)+m;o.save(),o.beginPath(),o.strokeStyle=l.color||"black",o.lineWidth=null!=(r=l.lineWidth)?r:1,o.moveTo((null!=(i=null==c?void 0:c.left)?i:0)-200,h),o.lineTo((null!=(s=null==c?void 0:c.right)?s:0)+200,h),o.stroke(),o.restore()}},i={id:"transitionLines",afterDatasetsDraw(e,t,l){let{ctx:n,scales:{x:r,y:i}}=e;i&&(n.save(),n.lineWidth=1,n.setLineDash([2,2]),(0,a.v)(l.transitionPoints,(t,a)=>{var r;let s=e.getDatasetMeta(0).data[+a];if(!s)return;let{x:o,width:d}=s.getProps(["x","width"],!0),c=o-d/2;n.beginPath(),n.strokeStyle=t,n.moveTo(c,i.top),n.lineTo(c,i.getPixelForValue(i.min+(null!=(r=l.floatPoint)?r:0))),n.stroke()}),n.restore())}}},56157:(e,t,l)=>{"use strict";l.d(t,{$:()=>s});var a=l(76792),n=l(42292),r=l(23233);let i=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Dew Point"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("g",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",children:(0,a.jsx)("path",{d:"M10.889 4.663a2 2 0 1 0 2.222-3.326 2 2 0 0 0-2.222 3.326m.555-2.494a1 1 0 1 1 1.112 1.663 1 1 0 0 1-1.112-1.663M5.308 14.199A2.75 2.75 0 0 0 7.25 15 2.75 2.75 0 0 0 10 12.26c0-1.721-2.172-10.507-2.265-10.88a.5.5 0 0 0-.97 0C6.672 1.753 4.5 10.539 4.5 12.26c.002.728.293 1.425.808 1.939M5.5 12.26c0-1.056 1.02-5.57 1.75-8.638C7.98 6.69 9 11.205 9 12.26a1.75 1.75 0 1 1-3.5 0"})})]})}),s=n.forwardRef((e,t)=>(0,a.jsx)(r.h,{ref:t,icon:i,...e}));s.displayName="DewPoint"},56768:(e,t)=>{"use strict";var l;Object.defineProperty(t,"__esModule",{value:!0}),t.InsightType=void 0,function(e){e.ALL="all",e.BREAKING_VIDEO_INSIGHT="breakingVideoInsight",e.CHANCE_PRECIP_INSIGHT="chancePrecipInsight",e.SUNNY_DAY_INSIGHT="sunnyDayInsight",e.POLLEN_INSIGHT="pollenInsight",e.TEMPERATURE_CHANGE_INSIGHT="temperatureChangeInsight",e.TRENDING_TEMPERATURE_INSIGHT="trendingTemperatureInsight",e.SUN_INSIGHT="sunInsight",e.SHORT_TERM_PRECIP_INSIGHT="shortTermPrecipInsight",e.THUNDERSTORM_SOON_INSIGHT="thunderstormSoonInsight",e.SEVERE_STORM_INSIGHT="severeStormInsight",e.PRECIP_INSIGHT="precipInsight"}(l||(t.InsightType=l={}))},56791:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSortedAlerts=void 0,t.getSortedAlerts=e=>[...e].sort((e,t)=>e.displayRank>t.displayRank?1:e.displayRankt.eventTrackingNumber?1:(e.eventTrackingNumber{"use strict";l.d(t,{Z:()=>s});var a=l(76792),n=l(42292),r=l(23233);let i=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Wind"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.333 4.626C8.575 3.757 9.41 3 10.648 3c1.497 0 2.39 1.095 2.39 2.165 0 1.069-.893 2.164-2.39 2.164H4.389c-.256 0-.463-.188-.463-.42s.207-.42.463-.42h6.259c.91 0 1.463-.649 1.463-1.324 0-.676-.552-1.325-1.463-1.325-.764 0-1.265.45-1.416.991-.063.225-.315.361-.563.304s-.398-.285-.336-.51M2 9.09c0-.232.207-.42.463-.42h9.148C13.107 8.67 14 9.766 14 10.835S13.107 13 11.61 13c-1.334 0-2.211-.882-2.364-1.694-.043-.228.127-.445.379-.484s.491.115.534.343c.082.435.598.996 1.452.996.91 0 1.462-.65 1.462-1.326 0-.675-.552-1.325-1.462-1.325H2.463C2.207 9.51 2 9.322 2 9.09",clipRule:"evenodd"})]})}),s=n.forwardRef((e,t)=>(0,a.jsx)(r.h,{ref:t,icon:i,...e}));s.displayName="Wind"},60827:(e,t,l)=>{"use strict";l.r(t),l.d(t,{BlueskyBlock:()=>d,default:()=>c});var a=l(76792),n=l(42292);let r=(0,l(23803).h)("payload:Bluesky:OEmbed");function i(e){try{if(e.startsWith("at://")){let t=e.match(/^at:\/\/([^/]+)\/app\.bsky\.feed\.post\/([^/?#]+)/);if(t){let e=t[1],l=t[2];if(e&&l)return{handle:e,postId:l}}return null}let t=new URL(e).pathname.split("/");if(t.length>=5&&"profile"===t[1]&&"post"===t[3]){let e=t[2],l=t[4];if(e&&l)return{handle:e,postId:l}}return null}catch(e){return null}}async function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{let l=i(e);if(!l)return{error:"invalid_url",message:"Invalid Bluesky URL format"};let a=new URL("https://embed.bsky.app/oembed");a.searchParams.set("url",e),r.debug("Fetching Bluesky oEmbed",{url:e,parsedUrl:l,options:t}),t.maxWidth&&a.searchParams.set("maxwidth",t.maxWidth.toString()),t.maxHeight&&a.searchParams.set("maxheight",t.maxHeight.toString());let n=await fetch(a.toString(),{method:"GET",headers:{Accept:"application/json","User-Agent":"wx-next/1.0"}});if(!n.ok)return{error:"api_error",message:"Bluesky API returned ".concat(n.status,": ").concat(n.statusText)};let s=await n.json();if("rich"!==s.type||!s.html)return{error:"invalid_response",message:"Invalid oEmbed response from Bluesky"};return s}catch(e){return{error:"fetch_error",message:e instanceof Error?e.message:"Unknown error occurred"}}}function o(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],l=i(e),a=l?"@".concat(l.handle):"Bluesky User";return'\n

\n
\n \n \n \n Bluesky Post\n
\n
\n Post by '.concat(a,'\n
\n
\n \n View on Bluesky →\n \n
\n ').concat(t?'
Thread view enabled
':"","\n
\n ")}let d=e=>{let{entryMethod:t,blueskyURL:l,postId:r,showThread:i=!1}=e,d=(0,n.useRef)(null),[c,u]=(0,n.useState)(!0),[m,h]=(0,n.useState)(null),p=(0,n.useCallback)(()=>"id"===t&&r?null:"url"===t&&l?l:null,[t,r,l]);return((0,n.useEffect)(()=>{(async()=>{let e=p();if(!e){h("No valid Bluesky URL provided"),u(!1);return}if(d.current){u(!0),h(null);try{let t=await s(e,{maxWidth:550,showThread:i});"error"in t?(console.warn("Bluesky oEmbed error:",t),d.current.innerHTML=o(e,i)):d.current.innerHTML=t.html}catch(t){console.error("Failed to load Bluesky embed:",t),d.current.innerHTML=o(e,i)}finally{u(!1)}}})()},[p,i]),c)?(0,a.jsx)("div",{className:"bluesky-embed-loading",style:{border:"1px solid #e1e8ed",borderRadius:"12px",padding:"16px",margin:"16px 0",maxWidth:"550px",background:"#f8f9fa",textAlign:"center"},children:(0,a.jsx)("div",{style:{color:"#536471"},children:"Loading Bluesky post..."})}):m?(0,a.jsxs)("div",{className:"bluesky-embed-error",style:{border:"1px solid #ff6b6b",borderRadius:"12px",padding:"16px",margin:"16px 0",maxWidth:"550px",background:"#fff5f5"},children:[(0,a.jsx)("div",{style:{color:"#d63031",fontWeight:"bold",marginBottom:"8px"},children:"Bluesky Embed Error"}),(0,a.jsx)("div",{style:{color:"#636e72"},children:m})]}):(0,a.jsx)("div",{className:"bluesky-embed-container",ref:d})},c=d},61344:(e,t,l)=>{"use strict";l.a(e,async(e,a)=>{try{l.d(t,{A:()=>c});var n=l(76792),r=l(55198),i=l(81100),s=l(91053),o=l(77119),d=e([o]);o=(d.then?(await d)():d)[0];let c=e=>{var t;let{location:l,onlyChart:a}=e,d=null==(t=(0,r.useParams)())?void 0:t.locale,{effectiveLocation:c,isLocationLoading:u}=(0,i.s)({location:l}),{loadingForecast:m,chartData:h,hasChartData:p,insightTextLong:v}=(0,s.A)(c,d),x=u||!c||m;return(0,n.jsx)(o.A,{location:c,locale:d,onlyChart:a,isLoading:x,chartData:h,hasChartData:p,insightTextLong:v})};a()}catch(e){a(e)}})},62596:(e,t,l)=>{"use strict";l.d(t,{P:()=>n});var a=l(79315);let n=e=>{var t,l,n,r,i,s,o,d,c;let{date:u,locale:m="en-US",timeZone:h,minutes:p,showTimeZone:v,showShortDayperiod:x,weekday:f}=e;if(!u)return"";let{cDate:g,cTimeZone:y}=(0,a.r)({date:u,locale:m,timeZone:h}),N={hour:"numeric",hour12:!0,timeZone:y};f&&(N.weekday=f),p&&(N.minute="2-digit"),"en-US"!==m&&"es-US"!==m&&(delete N.hour12,N.minute="2-digit",N.hourCycle="h23"),v&&(N.timeZoneName="short");let w=new Intl.DateTimeFormat(m,N);if(m.includes("-US")){let e=w.formatToParts(g),a=f&&(null==(t=e.find(e=>"weekday"===e.type))?void 0:t.value),s=null==(l=e.find(e=>"hour"===e.type))?void 0:l.value,o=p&&(null==(n=e.find(e=>"minute"===e.type))?void 0:n.value),d=null==(r=e.find(e=>"dayperiod"===e.type.toLowerCase()))?void 0:r.value.toLowerCase(),c=m.includes("en")?d:null==d?void 0:d.replace(/\./g,"").replace(/\s/g,""),u=x?"".concat(null==c?void 0:c[0]," "):" ".concat(c," "),h=v?null==(i=e.find(e=>"timeZoneName"===e.type))?void 0:i.value:"",y=f?"".concat(a," "):"";return"".concat(y).concat(s).concat(p?":".concat(o):"").concat(u).concat(h).trim()}if(x){let e=w.formatToParts(g),t=f&&(null==(s=e.find(e=>"weekday"===e.type))?void 0:s.value),l=null==(o=e.find(e=>"hour"===e.type))?void 0:o.value,a=p&&(null==(d=e.find(e=>"minute"===e.type))?void 0:d.value),n=v?null==(c=e.find(e=>"timeZoneName"===e.type))?void 0:c.value:"";return"".concat(f?"".concat(t," "):"").concat(l).concat(p?":".concat(a):""," ").concat(n).trim()}return w.format(g)}},63236:(e,t,l)=>{"use strict";l.d(t,{b:()=>i});var a=l(76792);l(42292);var n=l(48260),r=l(71666);let i=e=>{let{className:t,units:l,visibility:i,unitsClassName:s}=e,o=l?(0,r.Bu)(l):null,d=null==o?void 0:o.distance,c="";return c=0===i?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{children:"0"}),(0,a.jsxs)("span",{className:(0,n.cn)(s),children:[" ",d]})]}):!i||i10||"m"===l&&i>16?"Unlimited":(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{children:i}),(0,a.jsxs)("span",{className:(0,n.cn)(s),children:[" ",d]})]}),(0,a.jsx)("span",{"data-testid":"VisibilityValue",className:(0,n.cn)(t),children:c})}},63407:(e,t,l)=>{"use strict";l.d(t,{A:()=>ee});var a=l(76792),n=l(42292),r=l(75302),i=l(30505),s=l(47421),o=l(70336),d=l(68751),c=l(32035),u=l(50772),m=l(21230),h=l(58196),p=l(20135),v=l(23233);let x=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Rain Snow Wintery Mix"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{fillRule:"evenodd",d:"M7.982 1.833c-1.303 0-2.391 1.032-2.5 2.37l-.034.407-.405.049c-.67.08-1.209.672-1.209 1.41 0 .724.518 1.307 1.17 1.405l.217.015h4.896l.024.003q.087.008.175.008c1.01 0 1.851-.845 1.851-1.915 0-.946-.66-1.719-1.51-1.882l-.264-.051-.104-.248c-.386-.93-1.279-1.57-2.307-1.57M4.535 3.747C4.843 2.096 6.26.833 7.982.833c1.367 0 2.543.798 3.123 1.95 1.198.352 2.062 1.48 2.062 2.802 0 1.597-1.264 2.915-2.851 2.915a3 3 0 0 1-.245-.01H5.187l-.25-.018H4.92l-.034-.005c-1.168-.16-2.051-1.182-2.051-2.398 0-1.091.71-2.026 1.701-2.322",clipRule:"evenodd","data-figma-bg-blur-radius":20}),(0,a.jsx)("path",{d:"m7.954 9.295-.543 1.491a.5.5 0 0 0 .94.342l.543-1.491a.5.5 0 1 0-.94-.342M10.267 11.085l-.856 2.352a.5.5 0 0 0 .94.342l.856-2.352a.5.5 0 1 0-.94-.342M5.964 11.324a.25.25 0 0 1 .25.25v.152a.25.25 0 0 1 .297.396l-.297.297v2.092l.301.317a.25.25 0 0 1-.301.391v.207a.25.25 0 0 1-.5 0v-.212a.25.25 0 0 1-.309-.389l.309-.315v-2.092l-.307-.307a.25.25 0 0 1 .307-.39v-.147a.25.25 0 0 1 .25-.25"}),(0,a.jsx)("path",{d:"M7.816 12.41a.255.255 0 0 1-.092.345l-.182.107a.253.253 0 0 1-.272.383l-.264-.068-1.792 1.054-.153.366a.247.247 0 0 1-.46-.006l-.152.09a.245.245 0 0 1-.339-.09.255.255 0 0 1 .092-.345l.175-.103a.25.25 0 0 1-.04-.174.25.25 0 0 1 .279-.218l.351.045 1.792-1.054.085-.307a.247.247 0 0 1 .473-.02l.16-.095c.12-.07.271-.03.34.09"}),(0,a.jsx)("path",{d:"M7.815 14.59a.245.245 0 0 1-.339.09l-.16-.094a.247.247 0 0 1-.473-.02l-.084-.308-1.792-1.053-.352.045a.25.25 0 0 1-.279-.219.25.25 0 0 1 .04-.174l-.175-.102a.255.255 0 0 1-.092-.345c.068-.12.22-.16.339-.09l.152.089a.247.247 0 0 1 .46-.006l.154.367 1.791 1.053.265-.067a.25.25 0 0 1 .303.182.25.25 0 0 1-.032.2l.182.107c.119.07.16.225.092.345"})]})]})}),f=n.forwardRef((e,t)=>(0,a.jsx)(v.h,{ref:t,icon:x,...e}));f.displayName="RainSnowWinteryMix";let g=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Snowflake"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsxs)("g",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",children:[(0,a.jsx)("path",{d:"M8 1a.5.5 0 0 1 .5.5v13a.5.5 0 0 1-1 0v-13A.5.5 0 0 1 8 1"}),(0,a.jsx)("path",{d:"M5.896 1.896a.5.5 0 0 1 .707 0L8 3.293l1.396-1.397a.5.5 0 1 1 .707.708L8 4.707 5.896 2.604a.5.5 0 0 1 0-.708M5.896 13.854a.5.5 0 0 0 .707 0L8 12.457l1.396 1.397a.5.5 0 0 0 .707-.708L8 11.043l-2.104 2.103a.5.5 0 0 0 0 .708M14.062 4.5a.5.5 0 0 1-.183.683l-11.259 6.5a.5.5 0 0 1-.5-.866l11.259-6.5a.5.5 0 0 1 .683.183"}),(0,a.jsx)("path",{d:"M12.234 3.126a.5.5 0 0 1 .353.613l-.51 1.907 1.907.512a.5.5 0 1 1-.26.965l-2.873-.77.77-2.873a.5.5 0 0 1 .613-.354M1.878 9.105a.5.5 0 0 0 .354.612l1.908.511-.512 1.908a.5.5 0 1 0 .966.259l.77-2.874-2.873-.77a.5.5 0 0 0-.613.354M14.062 11.5a.5.5 0 0 1-.683.183L2.12 5.183a.5.5 0 1 1 .5-.866l11.259 6.5a.5.5 0 0 1 .183.683"}),(0,a.jsx)("path",{d:"M14.337 9.23a.5.5 0 0 1-.353.612l-1.908.511.511 1.908a.5.5 0 1 1-.966.259l-.77-2.874 2.874-.77a.5.5 0 0 1 .612.354M3.982 3.251a.5.5 0 0 0-.354.613L4.14 5.77l-1.908.512a.5.5 0 1 0 .259.965l2.873-.77-.77-2.873a.5.5 0 0 0-.612-.354"})]})]})}),y=n.forwardRef((e,t)=>(0,a.jsx)(v.h,{ref:t,icon:g,...e}));y.displayName="Snowflake";let N=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Rain Drop"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsxs)("g",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",children:[(0,a.jsx)("path",{d:"M8 14.256a4.506 4.506 0 0 1-4.5-4.5 5 5 0 0 1 .747-2.478l3.33-5.303a.52.52 0 0 1 .847 0l3.314 5.278a5.03 5.03 0 0 1 .762 2.503 4.506 4.506 0 0 1-4.5 4.5M8 3.18 5.11 7.784a4 4 0 0 0-.61 1.972 3.5 3.5 0 0 0 7 0 4.03 4.03 0 0 0-.624-1.998z"}),(0,a.jsx)("path",{d:"M10.103 9.757a.5.5 0 0 1 .319.631 2.74 2.74 0 0 1-1.747 1.724.5.5 0 0 1-.313-.95c.615-.203.976-.68 1.11-1.086a.5.5 0 0 1 .63-.32"})]})]})}),w=n.forwardRef((e,t)=>(0,a.jsx)(v.h,{ref:t,icon:N,...e}));w.displayName="RainDrop";let b=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Feels Like"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{fillRule:"evenodd",d:"M10.889 4.163A2 2 0 1 0 13.11.837a2 2 0 0 0-2.222 3.326m.555-2.494a1 1 0 1 1 1.112 1.662 1 1 0 0 1-1.112-1.662M11 15h2a1.003 1.003 0 0 0 1-1v-3.5a1.003 1.003 0 0 0 1-1v-3A1.47 1.47 0 0 0 13.5 5h-3A1.473 1.473 0 0 0 9 6.5v3a1.003 1.003 0 0 0 1 1V14a1.003 1.003 0 0 0 1 1m-.696-8.97A.5.5 0 0 1 10.5 6h3a.473.473 0 0 1 .5.5v3h-1V14h-2V9.5h-1v-3a.47.47 0 0 1 .304-.47",clipRule:"evenodd"}),(0,a.jsx)("path",{d:"M5 10.092V6H4v4.092a1.5 1.5 0 1 0 1 0"}),(0,a.jsx)("path",{fillRule:"evenodd",d:"M2.563 14.417c.574.38 1.248.584 1.937.583A3.497 3.497 0 0 0 7 9.055V3.5a2.5 2.5 0 1 0-5 0v5.555a3.497 3.497 0 0 0 .563 5.362M3.44 2.44a1.5 1.5 0 0 1 2.12 0c.281.281.44.662.44 1.06v5.992l.166.149a2.5 2.5 0 1 1-3.332 0L3 9.49V3.5c0-.398.159-.779.44-1.06",clipRule:"evenodd"})]})]})}),I=n.forwardRef((e,t)=>(0,a.jsx)(v.h,{ref:t,icon:b,...e}));I.displayName="FeelsLike";var _=l(60393),j=l(75848),E=l(49694),T=l(8366);let A=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Cloud Cover"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"m11.109 11.591.06.006q.099.01.204.01c1.17 0 2.176-.984 2.176-2.269 0-1.133-.789-2.04-1.778-2.23l-.66-.128-.258-.62c-.488-1.174-1.607-1.967-2.88-1.967-1.614 0-2.987 1.28-3.125 2.974l-.083 1.017-1.013.122c-.707.085-1.303.718-1.303 1.538 0 .795.562 1.415 1.242 1.528l.276.02zm-7.185 1.25-.363-.025h-.003C2.226 12.633 1.2 11.461 1.2 10.044c0-1.434 1.05-2.616 2.403-2.779.189-2.309 2.073-4.122 4.37-4.122 1.812 0 3.366 1.127 4.035 2.737 1.59.305 2.792 1.737 2.792 3.458 0 1.944-1.534 3.519-3.426 3.519q-.165 0-.324-.016z",clipRule:"evenodd"})]})}),R=n.forwardRef((e,t)=>(0,a.jsx)(v.h,{ref:t,icon:A,...e}));R.displayName="CloudCover";var C=l(56157);let S=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Wind Gust"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",d:"m2.5 4.375 4-3a.63.63 0 0 1 .572-.093l11.25 3.75h.001a.624.624 0 0 1 0 1.186l-11.25 3.75a.63.63 0 0 1-.573-.093l-4-3V18.75H1.25V1.25H2.5zm13.75 9.375a2.5 2.5 0 0 1 0 5H7.5V17.5h8.75A1.25 1.25 0 1 0 15 16.25h-1.25a2.503 2.503 0 0 1 2.5-2.5M10 11.25a2.5 2.5 0 0 1 0 5H5V15h5a1.25 1.25 0 1 0-1.25-1.25H7.5a2.5 2.5 0 0 1 2.5-2.5M7.5 8.508l1.25-.417V3.159L7.5 2.742zM2.917 5.625l3.333 2.5v-5zM10 7.675l1.25-.417V3.992L10 3.575zm2.5-.834 3.648-1.216L12.5 4.409z"})]})}),L=n.forwardRef((e,t)=>(0,a.jsx)(v.h,{ref:t,icon:S,...e}));L.displayName="WindGust";var D=l(40640),M=l(71666),O=l(55406),W=l(38098),H=l(28004),P=l(46670),k=l(63236),F=l(48834),G=l(48260);let B=e=>{let t,l,{precipType:n="rain",rain:r,snow:i,qpf:s=0,qpfSnow:o=0,units:d,unitOverride:c,className:u,unitClass:m}=e,h=null!=r?r:s,p=null!=i?i:o,v=d?(0,M.Bu)(d):null;if("snow"===n)t=p,l="accumulation";else if("rain"===n)t=h,l="precip";else if("precip"===n){let e=Number(h)>=Number(p);t=e?h:p,l=e?"precip":"accumulation"}else t=h,l="precip";let x=null==v?void 0:v[l];return(0,a.jsxs)("span",{"data-testid":"AccumulationValue",className:(0,G.cn)(u),children:[(0,a.jsx)("span",{children:t})," ",(0,a.jsx)("span",{className:(0,G.cn)(m),children:c||x})]})},V=e=>!(0,h.g)(e)||null,U={derive:e=>{let{precipType:t}=e;return"precip"===t?f:"snow"===t?y:w}},z={temperatureFeelsLike:{label:(e,t)=>{let{t:l}=t;return l("feelsLike")},icon:I,value:e=>{let{temperatureFeelsLike:t}=e;return V(t)&&(0,a.jsx)(O.B,{value:t})}},windSpeed:{label:(e,t)=>{let{t:l}=t;return l("wind")},icon:_.Z,value:(e,t)=>{let{windSpeed:l,windDirectionCardinal:n}=e,{unitName:r}=t,i=(0,M.xP)(r);return V(l)&&(0,a.jsx)(W.Z,{className:"whitespace-nowrap",windSpeed:l,windDirectionCardinal:n,units:i.code,displayMode:"directionalAndCardinal"})}},precipChance:{label:(e,t)=>{let{precipType:l}=e,{t:a}=t;return a("chanceOf".concat((0,p.Z)(l)))},icon:U,value:e=>{let{precipChance:t}=e;return V(t)&&(0,a.jsx)(H.N,{value:t})}},relativeHumidity:{label:(e,t)=>{let{t:l}=t;return l("humidity")},icon:j.K,value:e=>{let{relativeHumidity:t}=e;return V(t)&&(0,a.jsx)(H.N,{value:t})}},pressureMeanSeaLevel:{label:(e,t)=>{let{t:l}=t;return l("pressure")},icon:E.S,value:e=>{let{pressureMeanSeaLevel:t}=e;return V(t)&&(0,a.jsx)(P.S,{pressureMeanSeaLevel:t})}},visibility:{label:(e,t)=>{let{t:l}=t;return l("visibility")},icon:D.S,value:(e,t)=>{let{visibility:l}=e,{unitName:n}=t;return V(l)&&(0,a.jsx)(k.b,{visibility:l,units:(0,M.xP)(n).code})}},uvIndex:{label:(e,t)=>{let{t:l}=t;return l("uvIndex")},icon:T.o,value:e=>{let{uvIndex:t}=e;return V(t)&&(0,a.jsx)(F.M,{uvIndex:t})}},cloudCover:{label:(e,t)=>{let{t:l}=t;return l("cloudCover")},icon:R,value:e=>{let{cloudCover:t}=e;return V(t)&&(0,a.jsx)(H.N,{value:t})}},accumulation:{label:(e,t)=>{let{precipType:l}=e,{t:a}=t;return a("".concat(l,"Amount"))},icon:U,value:(e,t)=>{let{qpf:l,qpfSnow:n,precipType:r}=e,{unitName:i}=t;return V(l)||V(n)?(0,a.jsx)(B,{precipType:r,qpf:l,qpfSnow:n,units:(0,M.xP)(i).code}):null}},temperatureDewPoint:{label:(e,t)=>{let{t:l}=t;return l("dewPoint")},icon:C.$,value:e=>{let{temperatureDewPoint:t}=e;return V(t)&&(0,a.jsx)(O.B,{value:t})}},windGust:{label:(e,t)=>{let{t:l}=t;return l("windGust")},icon:L,value:(e,t)=>{let{windGust:l}=e,{unitName:n}=t;return(0,a.jsx)(W.Z,{windSpeed:l,units:(0,M.xP)(n).code})}}},Y=(0,i.F)("grid justify-between gap-1",{variants:{cols:{1:"grid-cols-[repeat(1,auto)]",2:"grid-cols-[repeat(2,auto)]",3:"grid-cols-[repeat(3,auto)]",4:"grid-cols-[repeat(4,auto)]",5:"grid-cols-[repeat(5,auto)]",6:"grid-cols-[repeat(6,auto)]"}}}),Z=(0,n.memo)(e=>{let{dataPoints:t,fields:l,columns:i}=e,{small:h=2,medium:p=3,large:v=4}=i||{},[x,f]=(0,u.r)(e=>e>=m.c["@xl"]?v:e>=m.c["@xs"]?p:h),g=x||p,y=(0,s.c3)("DetailsTable"),N={unitName:(0,r.md)(c.Yt),t:y},w=0;return(0,a.jsx)(o.Zp,{ref:f,className:"border-2xl @container/detailsTable mb-2 bg-[#e8e8e8] p-0",children:(0,a.jsx)(o.Wu,{className:"px-4 py-4 @xl/detailsTable:px-6",children:(0,a.jsx)("ul",{className:Y({cols:g}),children:l.map((e,l)=>{let r=z[e],i=null==r?void 0:r.value(t,N);if(!r||!i)return w++,null;let s="derive"in r.icon?r.icon.derive(t,N):r.icon,o="function"==typeof r.label?r.label(t,N):r.label,c=l-w;return(0,a.jsxs)(n.Fragment,{children:[c>0&&c%g==0&&(0,a.jsx)("li",{className:"col-span-full py-3",children:(0,a.jsx)("div",{className:"border-b border-[#dedede]"})}),(0,a.jsxs)("li",{className:"flex gap-1 @md/detailsTable:gap-1.5 @xl/detailsTable:gap-2",children:[s&&(0,a.jsx)(s,{className:"size-4 @md/detailsTable:size-5"}),(0,a.jsxs)("div",{children:[(0,a.jsx)(d.Ay,{variant:"Body.M",className:"mb-0.5 text-sm leading-normal @xl/detailsTable:text-base",children:o}),(0,a.jsx)(d.Ay,{elementType:"string"==typeof i?"p":"div",variant:"Body.L.Bold",className:"text-sm leading-normal @xl/detailsTable:text-base",children:i})]})]})]},o+c)})})})})});var q=l(62596),Q=l(82903);let X=e=>{let{precipChance:t,showIcon:l=!0,displayMode:n="text",className:r,iconClassName:i,textClassName:s,progressClassName:o,progressBarClassName:d}=e;return(0,a.jsxs)(a.Fragment,{children:[("text"===n||"both"===n)&&(0,a.jsxs)("span",{className:(0,G.cn)(r,s),children:[l&&(0,a.jsx)(w,{className:(0,G.cn)("size-4",i)}),(0,a.jsx)(H.N,{value:t,className:"align-middle"})]}),("progress"===n||"both"===n)&&(0,a.jsxs)("div",{className:(0,G.cn)("relative inline-block h-5 w-26 overflow-hidden rounded-xl bg-[#e9e9e9] align-middle",r,o),children:[(0,a.jsx)("div",{className:(0,G.cn)("relative h-full w-full rounded-xl bg-[#cbdef0]",d),style:{left:"".concat(t-100,"%")}}),(0,a.jsxs)("div",{className:"absolute top-0 bottom-0 flex h-full w-full items-center p-1",children:[l&&(0,a.jsx)(w,{className:(0,G.cn)("size-3.25",i)}),(0,a.jsx)(H.N,{value:t,className:"text-sm"})]})]})]})};var $=l(11340);let J=["temperatureFeelsLike","accumulation","windSpeed","pressureMeanSeaLevel","cloudCover","temperatureDewPoint","uvIndex","visibility","relativeHumidity","windGust"],K=e=>{let{text:t}=e;return(0,a.jsx)(d.Ay,{variant:"Caption.M",color:"secondary",className:"mb-1 font-bold @max-md/hourItem:hidden",children:t})},ee=e=>{let{forecast:t,location:l,locale:n,itemIndex:i,longPhraseInSet:o}=e,u=(0,s.c3)("DetailsTable"),m=(0,r.md)(c.Yt),h=(0,M.xP)(m),p=0===i;return(0,a.jsxs)(Q.As,{value:t.validTimeLocal,className:"border-grey-500 @container/hourItem gap-2 border-b py-3",children:[(0,a.jsx)(Q.$m,{className:"items-end gap-1 p-0 @md/hourItem:gap-3",iconClassName:"mb-1 size-4",triggerContent:(0,a.jsxs)("div",{className:"flex w-full items-end justify-between gap-1",children:[(0,a.jsx)("div",{className:"min-w-[60px]",children:(0,a.jsx)(d.Ay,{className:(0,G.cn)("inline-block rounded-[100px] px-2 py-0.5 whitespace-nowrap","group-data-[state=open]:bg-blue-500 group-data-[state=open]:text-white"),children:(0,q.P)({date:t.validTimeLocal,locale:n,timeZone:l.ianaTimeZone})})}),(0,a.jsx)("div",{className:"basis-[40px]",children:(0,a.jsx)(d.Ay,{variant:"Body.L.Bold",children:(0,a.jsx)(O.B,{value:t.temperature})})}),(0,a.jsxs)("div",{className:"relative flex h-6 items-center",children:[(0,a.jsx)($.WxIcon,{iconCode:t.iconCode,className:"lightBG size-7 @md/hourItem:size-8",size:"lg",iconTheme:"lightBG","aria-label":t.wxPhraseLong||"Weather condition ".concat(t.iconCode)}),(0,a.jsx)(d.Ay,{variant:"Body.M",className:(0,G.cn)("pl-1.5 @max-2xl/hourItem:hidden",o?"min-w-[200px]":"min-w-[110px]"),children:t.wxPhraseLong})]}),(0,a.jsx)("div",{className:"min-w-[50px] items-end @lg/hourItem:min-w-[105px] @lg/hourItem:py-0.5",children:(0,a.jsx)(X,{precipChance:t.precipChance,displayMode:"both",textClassName:"@lg/hourItem:hidden",progressClassName:"@max-lg/hourItem:hidden",iconClassName:"@max-lg/hourItem:size-3"})}),(0,a.jsxs)("div",{className:"basis-[72px] items-end @max-md/hourItem:hidden",children:[p&&(0,a.jsx)(K,{text:u("humidity")}),(0,a.jsx)(d.Ay,{children:(0,a.jsx)(H.N,{value:t.relativeHumidity})})]}),(0,a.jsxs)("div",{className:"basis-[76px] items-end",children:[p&&(0,a.jsx)(K,{text:u("wind")}),(0,a.jsx)(d.Ay,{elementType:"div",children:(0,a.jsx)(W.Z,{windSpeed:t.windSpeed,windDirectionCardinal:t.windDirectionCardinal,units:h.code,displayMode:"directional",className:"whitespace-nowrap",iconClassName:"size-3 @md/hourItem:size-4"})})]}),(0,a.jsxs)("div",{className:"min-w-[76px] @max-md/hourItem:hidden",children:[p&&(0,a.jsx)(K,{text:u("precipitation")}),(0,a.jsx)(d.Ay,{children:(0,a.jsx)(B,{precipType:t.precipType,qpf:t.qpf,qpfSnow:t.qpfSnow,units:h.code})})]})]})}),(0,a.jsx)(Q.ub,{className:"pt-2 @md/hourItem:pt-4",children:(0,a.jsx)(Z,{dataPoints:t,fields:J})})]})}},65148:(e,t,l)=>{"use strict";l.a(e,async(e,a)=>{try{l.d(t,{A:()=>w});var n=l(76792),r=l(42292),i=l(47421),s=l(48260),o=l(62596),d=l(50772),c=l(21230),u=l(42531),m=l(96304),h=l(55094),p=l(85670),v=l(12086),x=l(86096);let{Chart:e,CategoryScale:f,LinearScale:g,BarController:y,BarElement:N}=await Promise.all([l.e(9645),l.e(675)]).then(l.bind(l,46354));e.register(f,g,y,N);let w=(0,r.memo)(t=>{let{chartData:l,hasChartData:a,ianaTimeZone:f,locale:g,rootClass:y,rtl:N=!1,removeTransitionLines:w}=t,b=(0,i.c3)("PrecipIntensity"),I=(0,r.useRef)(null),_=(0,r.useRef)(null),[j,E]=(0,d.r)(e=>eN?[...l].reverse():l,[l,N]),A=(0,r.useMemo)(()=>(0,x.Hi)(l),[l]),R=(0,r.useMemo)(()=>{let e=Object.values(m.PrecipType),t=0;for(let l of e)A[l]&&t++;return t>1},[A]),C=(0,r.useMemo)(()=>{let e=T.map(e=>e.level),t=T.map(e=>{let{validTimeLocal:t}=e;return t}),l=T.map(e=>{let{precipType:t}=e;return t===m.PrecipType.RAIN?u.vc:t===m.PrecipType.SNOW?u.at:u._x});return{labels:t,datasets:[{label:b("chartTitle"),data:e,backgroundColor:l,borderWidth:0,maxBarThickness:j?4:8,categoryPercentage:1,stack:"stack1",borderRadius:12,borderSkipped:!1}]}},[j,T,b]),S=(0,r.useMemo)(()=>({responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{enabled:!1},transitionLines:{floatPoint:.5,transitionPoints:w?void 0:T.reduce((e,t,l)=>{var a;if(l>0&&t.level>0&&T[l-1]&&t.precipType!==(null==(a=T[l-1])?void 0:a.precipType)){let a=u._x;u.cv.includes(t.precipType)?a=u.vc:u.VF.includes(t.precipType)&&(a=u.at),e[l]=a}return e},{})},barBackground:{color:"#eeeeee",borderRadius:12,floatPoint:.5},extendXAxisLine:{color:"#eeeeee",lineWidth:1,offset:-2},datasets:{bar:{minBarLength:10}}},scales:{x:{stacked:!0,grid:{display:!0,drawOnChartArea:!1,drawTicks:!0,tickColor:"#676767",tickLength:3,tickWidth:1,tickBorderDashOffset:50,offset:!1},border:{display:!1},ticks:{major:{enabled:!0},display:!0,maxRotation:0,minRotation:0,autoSkip:!1,font:{size:j?12:14},color:"#676767",callback:function(e,t){var l;let a=(null==(l=this.chart.data.labels)?void 0:l[t])||"",n=new Date(a);return 0===n.getMinutes()?(0,o.P)({date:n,locale:g,timeZone:f,showShortDayperiod:!0}):j?null:""}}},y:{stacked:!0,min:-.5,max:9,position:N?"right":"left",grid:{display:!1,drawBorder:!1},ticks:{count:10,autoSkip:!1,display:!0,crossAlign:"far",font:{size:j?12:14},callback:function(e,t){return 2===t?b("chartLight"):8===t?b("chartHeavy"):""}},border:{display:!1}}}}),[w,T,j,N,b,g,f]);return((0,r.useEffect)(()=>{var t;let l=null==(t=I.current)?void 0:t.getContext("2d");if(l&&e)return _.current=new e(l,{type:"bar",data:C,options:S,plugins:[h.rT,h.lV,h.os]}),()=>{var e;null==(e=_.current)||e.destroy()}},[C,S]),a)?(0,n.jsxs)("div",{ref:E,className:(0,s.cn)("@container/precipChart",y),dir:N?"rtl":void 0,children:[(0,n.jsx)(p.A,{data:l,ianaTimeZone:f,locale:g}),(0,n.jsx)("div",{className:(0,s.cn)("relative h-26 text-sm text-gray-500 @md/precipChart:h-30",N?"pr-2 @md/precipChart:pr-3 @xl/precipChart:pr-4":"pl-2 @md/precipChart:pl-3 @xl/precipChart:pl-4"),children:(0,n.jsx)("canvas",{ref:I})}),R&&(0,n.jsx)(v.A,{rtl:N,legendTypes:A,isSamsungTheme:!1})]}):null});a()}catch(e){a(e)}},1)},65732:(e,t,l)=>{"use strict";l.r(t),l.d(t,{DailyForecastBlock:()=>w,default:()=>b});var a=l(76792);l(42292);var n=l(27370),r=l(14124),i=l(76088),s=l(44615),o=l(81100),d=l(48260),c=l(99530);let u=function(e,t){let l=(0,c.G)();return l?l.variant(e,t):t};var m=l(75302),h=l(32035),p=l(47421),v=l(71666),x=l(55198),f=l(11340);let g=e=>{var t;let{location:l}=e,c=(0,p.c3)("DailyForecast"),g=(0,x.useParams)(),y=null==g?void 0:g.locale,{value:N}=u("reorder-current-conditions-and-forecast","control"),{effectiveLocation:w,isLocationLoading:b}=(0,o.s)({location:l}),I=(0,m.md)(h.Yt),_=null==(t=(0,v.xP)(I))?void 0:t.code,{data:j,error:E,isLoading:T}=(0,s.Ay)(w?["daily-forecast",w.geocode,_]:null,e=>{let[t,l,a]=e;return w?(0,r.v1)({geocode:l,units:a,language:y,duration:i.ForecastDuration.THREE_DAY}):null},{revalidateOnFocus:!1,dedupingInterval:6e4}),A=[];if(j&&j[0]&&j[0].daypart){let e=j[0].daypart;if(e&&e.daypartName)for(let t=0;t{let l="Afternoon"===e.name||"Evening"===e.name?"text-blue-600":"text-slate-700";return(0,a.jsxs)("div",{className:"flex items-center justify-between px-6 py-5","data-testid":"forecast-period-".concat(t),children:[(0,a.jsx)("div",{className:"w-1/3 text-xl font-medium text-gray-700","data-testid":"period-name",children:e.name}),(0,a.jsxs)("div",{className:"text-5xl font-bold ".concat(l," w-1/3 text-center"),"data-testid":"temperature",children:[e.temperature,"\xb0"]}),(0,a.jsxs)("div",{className:"flex w-1/3 items-center justify-end",children:[(0,a.jsx)("div",{className:"flex w-12 justify-center","data-testid":"weather-icon",children:(0,a.jsx)(f.WxIcon,{iconCode:e.iconCode,className:"lightBG",size:"xl",iconTheme:"lightBG","aria-label":i.ICON_CODE_MAP[e.iconCode]||"Weather condition ".concat(e.iconCode)})}),(0,a.jsx)("div",{className:"ml-6 w-16 text-xl font-medium text-gray-700","data-testid":"precipitation",children:e.precipitation})]})]},e.name)})}),(0,a.jsx)("div",{className:"flex justify-start p-4",children:(0,a.jsx)(n.$n,{variant:"default",className:"rounded-md bg-slate-900 text-white hover:bg-slate-800","data-testid":"next-48-hours",children:c("bottomCtaButton")})})]}):(0,a.jsxs)("div",{className:"overflow-hidden rounded-lg bg-white shadow-md",children:[(0,a.jsx)("div",{className:"bg-slate-800 p-4 text-white",children:(0,a.jsx)("h2",{className:"text-2xl font-bold",children:c("loadingLocation")})}),(0,a.jsx)("div",{className:"flex h-64 items-center justify-center p-6",children:(0,a.jsx)("div",{className:"animate-pulse text-xl",children:"Determining location..."})})]})};var y=l(46593),N=l(44685);let w=e=>{let{locationProvider:t,locationEntry:l}=e,{specifiedLocationData:n,specifiedLocationError:r,isSpecifiedLocationLoading:i}=(0,y.v)("specified"===t?l:null);return"specified"===t&&i?(0,a.jsx)("div",{children:"Loading location data..."}):"specified"===t&&r?(0,a.jsxs)("div",{children:["Error loading location data: ",r.message]}):"specified"===t&&n&&l?(0,a.jsx)(g,{location:(0,N.I)(n)}):"specified"!==t?(0,a.jsx)(g,{}):null},b=w},70214:(e,t,l)=>{"use strict";l.d(t,{z:()=>n});var a=l(79315);let n=e=>{let{date:t,locale:l="en-US",timeZone:n}=e;if(!t)return"";let{cDate:r,cTimeZone:i}=(0,a.r)({date:t,locale:l,timeZone:n});return new Intl.DateTimeFormat(l,{weekday:"long",day:"numeric",month:"long",timeZone:i}).format(r)}},70336:(e,t,l)=>{"use strict";l.d(t,{Wu:()=>s,Zp:()=>r,aR:()=>i});var a=l(76792);l(42292);var n=l(48260);function r(e){let{className:t,...l}=e;return(0,a.jsx)("div",{"data-slot":"card",className:(0,n.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl py-6",t),...l})}function i(e){let{className:t,...l}=e;return(0,a.jsx)("div",{"data-slot":"card-header",className:(0,n.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",t),...l})}function s(e){let{className:t,...l}=e;return(0,a.jsx)("div",{"data-slot":"card-content",className:(0,n.cn)("px-6",t),...l})}},74130:(e,t,l)=>{"use strict";l.r(t),l.d(t,{CTABlock:()=>r,default:()=>i});var a=l(76792);l(42292);var n=l(22627);let r=e=>{let{title:t,subTitle:l,subText:r,ctaStyle:i,media:s,buttonText:o,linkUrl:d,openInNewTab:c,backgroundColor:u}=e,m=void 0!=s.url?s.url:"string"==typeof s?s:null;return(0,a.jsx)("section",{className:"not-prose @container mx-auto w-full max-w-4xl rounded-md ".concat({white:"bg-white","light-gray":"bg-gray-100","brand-blue":"bg-blue-500",accent:"bg-accent"}[u||"white"]," p-5 shadow-2xl"),children:(0,a.jsx)("div",{className:"cta-block ".concat(i),children:(0,a.jsxs)("div",{className:"cta-content text-black",children:[(0,a.jsx)("h2",{className:"mb-6 text-2xl font-bold",children:t}),m&&(0,a.jsx)("a",{href:d,target:c?"_blank":"_self",rel:c?"noopener noreferrer":void 0,className:"mb-4 block overflow-hidden rounded-lg",children:(0,a.jsx)("div",{className:"relative w-full",children:(0,a.jsx)(n.A,{src:m,alt:t})})}),l&&(0,a.jsx)("h2",{className:"mb-2 text-lg font-bold",children:l}),r&&(0,a.jsx)("p",{className:"mb-4",children:r}),"standard"===i&&(0,a.jsx)("div",{className:"mt-4 flex justify-end",children:(0,a.jsx)("a",{href:d,target:c?"_blank":"_self",rel:c?"noopener noreferrer":void 0,className:"inline-block rounded-lg bg-black px-6 py-3 text-white transition-colors hover:bg-gray-800",children:o||"Learn More"})})]})})})},i=r},75782:(e,t,l)=>{"use strict";l.a(e,async(e,a)=>{try{l.r(t),l.d(t,{PrecipIntensityBlock:()=>c,default:()=>u});var n=l(76792),r=l(46593),i=l(44685),s=l(89975),o=l(61344),d=e([o]);o=(d.then?(await d)():d)[0];let c=e=>{let{locationEntry:t,locationProvider:l}=e,a="specified"===l,{specifiedLocationData:d,specifiedLocationError:c,isSpecifiedLocationLoading:u}=(0,r.v)(t);if(a&&u)return(0,n.jsx)(s.a,{});if(a&&c)return null;let m=a&&d&&t?(0,i.I)(d):void 0;return(0,n.jsx)(o.A,{location:m})},u=c;a()}catch(e){a(e)}})},75848:(e,t,l)=>{"use strict";l.d(t,{K:()=>s});var a=l(76792),n=l(42292),r=l(23233);let i=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"humidity"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{fillRule:"evenodd",d:"M8 13a3.5 3.5 0 0 0 3.5-3.5c0-.59-.276-1.34-.701-2.13-.309-.573-.637-1.068-.907-1.475a26 26 0 0 1-.267-.406 77 77 0 0 1-.564-.9c-.151-.244-.281-.453-.502-.796a43 43 0 0 1-.556-.885c-.14.229-.318.52-.55.883-.238.37-.371.587-.538.86-.13.212-.28.456-.515.832q-.159.25-.35.531c-.257.382-.549.816-.841 1.348C4.78 8.139 4.5 8.886 4.5 9.5A3.5 3.5 0 0 0 8 13m0 1a4.5 4.5 0 0 0 4.5-4.5c0-1.486-1.16-3.231-1.797-4.19q-.136-.206-.234-.358a80 80 0 0 1-.552-.88c-.16-.258-.3-.484-.518-.821-.243-.376-.426-.674-.57-.91-.425-.693-.514-.837-.829-.837s-.395.133-.814.822c-.144.237-.328.54-.575.925-.24.373-.382.606-.556.889-.131.214-.28.457-.503.812-.078.125-.18.276-.296.449C4.606 6.37 3.5 8.017 3.5 9.5A4.5 4.5 0 0 0 8 14",clipRule:"evenodd"}),(0,a.jsx)("path",{d:"M12.5 9.5a4.48 4.48 0 0 1-1.107 2.957L4.845 6.025c.283-.443.545-.814.707-1.073.517-.825.638-1.045 1.059-1.701.966-1.507.967-1.747 1.389-1.747s.438.259 1.399 1.747c.413.64.55.883 1.07 1.701S12.5 7.804 12.5 9.5"})]})]})}),s=n.forwardRef((e,t)=>(0,a.jsx)(r.h,{ref:t,icon:i,...e}));s.displayName="Humidity"},76088:(e,t)=>{"use strict";var l,a,n,r,i,s,o,d,c,u;Object.defineProperty(t,"__esModule",{value:!0}),t.ICON_CODE_MAP=t.ICON_CODE_EXTENDED=t.IconCodeExtended=t.IconCode=t.CloudCoverPhrase=t.PressureTendencyCode=t.UVDescription=t.WindDirectionCardinal=t.DayOrNight=t.HourlyForecastDuration=t.ForecastDuration=t.Units=void 0,function(e){e.IMPERIAL="e",e.METRIC="m",e.HYBRID="h"}(l||(t.Units=l={})),function(e){e.THREE_DAY="3day",e.FIVE_DAY="5day",e.SEVEN_DAY="7day",e.TEN_DAY="10day",e.FIFTEEN_DAY="15day"}(a||(t.ForecastDuration=a={})),function(e){e.SIX_HOUR="6hour",e.TWELVE_HOUR="12hour",e.ONE_DAY="1day",e.TWO_DAY="2day",e.THREE_DAY="3day",e.TEN_DAY="10day",e.FIFTEEN_DAY="15day"}(n||(t.HourlyForecastDuration=n={})),function(e){e.DAY="D",e.NIGHT="N",e.MISSING="X"}(r||(t.DayOrNight=r={})),function(e){e.NORTH="N",e.NORTH_NORTHEAST="NNE",e.NORTHEAST="NE",e.EAST_NORTHEAST="ENE",e.EAST="E",e.EAST_SOUTHEAST="ESE",e.SOUTHEAST="SE",e.SOUTH_SOUTHEAST="SSE",e.SOUTH="S",e.SOUTH_SOUTHWEST="SSW",e.SOUTHWEST="SW",e.WEST_SOUTHWEST="WSW",e.WEST="W",e.WEST_NORTHWEST="WNW",e.NORTHWEST="NW",e.NORTH_NORTHWEST="NNW",e.CALM="CALM"}(i||(t.WindDirectionCardinal=i={})),function(e){e.NOT_AVAILABLE="-2",e.NO_REPORT="-1",e.LOW="Low",e.MODERATE="Moderate",e.HIGH="High",e.VERY_HIGH="Very High",e.EXTREME="Extreme"}(s||(t.UVDescription=s={})),function(e){e[e.STEADY=0]="STEADY",e[e.RISING=1]="RISING",e[e.FALLING=2]="FALLING",e[e.RAPIDLY_RISING=3]="RAPIDLY_RISING",e[e.RAPIDLY_FALLING=4]="RAPIDLY_FALLING"}(o||(t.PressureTendencyCode=o={})),function(e){e.CLEAR="Clear",e.PARTLY_CLOUDY="Partly Cloudy",e.MOSTLY_CLOUDY="Mostly Cloudy",e.CLOUDY="Cloudy"}(d||(t.CloudCoverPhrase=d={})),function(e){e[e.TORNADO=0]="TORNADO",e[e.TROPICAL_STORM=1]="TROPICAL_STORM",e[e.HURRICANE=2]="HURRICANE",e[e.STRONG_STORMS=3]="STRONG_STORMS",e[e.THUNDERSTORMS=4]="THUNDERSTORMS",e[e.RAIN_SNOW_WINTERY_MIX=5]="RAIN_SNOW_WINTERY_MIX",e[e.RAIN_SLEET=6]="RAIN_SLEET",e[e.RAIN_SNOW_WINTERY_MIX_ALT=7]="RAIN_SNOW_WINTERY_MIX_ALT",e[e.FREEZING_DRIZZLE_RAIN=8]="FREEZING_DRIZZLE_RAIN",e[e.DRIZZLE=9]="DRIZZLE",e[e.FREEZING_DRIZZLE_RAIN_ALT=10]="FREEZING_DRIZZLE_RAIN_ALT",e[e.SHOWERS=11]="SHOWERS",e[e.RAIN=12]="RAIN",e[e.FLURRIES=13]="FLURRIES",e[e.SNOW_SHOWERS=14]="SNOW_SHOWERS",e[e.BLOWING_DRIFTING_SNOW=15]="BLOWING_DRIFTING_SNOW",e[e.SNOW=16]="SNOW",e[e.HAIL=17]="HAIL",e[e.SLEET=18]="SLEET",e[e.BLOWING_DUST_SANDSTORM=19]="BLOWING_DUST_SANDSTORM",e[e.FOGGY=20]="FOGGY",e[e.HAZE=21]="HAZE",e[e.SMOKE=22]="SMOKE",e[e.BREEZY=23]="BREEZY",e[e.WINDY=24]="WINDY",e[e.BLOWING_DRIFTING_SNOW_ALT=25]="BLOWING_DRIFTING_SNOW_ALT",e[e.CLOUDY=26]="CLOUDY",e[e.MOSTLY_CLOUDY_NIGHT=27]="MOSTLY_CLOUDY_NIGHT",e[e.MOSTLY_CLOUDY_DAY=28]="MOSTLY_CLOUDY_DAY",e[e.PARTLY_CLOUDY_NIGHT=29]="PARTLY_CLOUDY_NIGHT",e[e.PARTLY_CLOUDY_DAY=30]="PARTLY_CLOUDY_DAY",e[e.CLEAR_NIGHT=31]="CLEAR_NIGHT",e[e.SUNNY=32]="SUNNY",e[e.MOSTLY_CLEAR_NIGHT=33]="MOSTLY_CLEAR_NIGHT",e[e.MOSTLY_CLEAR_DAY=34]="MOSTLY_CLEAR_DAY",e[e.MIXED_RAIN_HAIL=35]="MIXED_RAIN_HAIL",e[e.SUNNY_ALT=36]="SUNNY_ALT",e[e.ISOLATED_THUNDERSTORMS=37]="ISOLATED_THUNDERSTORMS",e[e.SCATTERED_THUNDERSTORMS_DAY=38]="SCATTERED_THUNDERSTORMS_DAY",e[e.SCATTERED_SHOWERS_DAY=39]="SCATTERED_SHOWERS_DAY",e[e.HEAVY_RAIN=40]="HEAVY_RAIN",e[e.SCATTERED_SNOW_SHOWERS_DAY=41]="SCATTERED_SNOW_SHOWERS_DAY",e[e.HEAVY_SNOW_BLIZZARD=42]="HEAVY_SNOW_BLIZZARD",e[e.HEAVY_SNOW_BLIZZARD_ALT=43]="HEAVY_SNOW_BLIZZARD_ALT",e[e.NA=44]="NA",e[e.SCATTERED_SHOWERS_NIGHT=45]="SCATTERED_SHOWERS_NIGHT",e[e.SCATTERED_SNOW_SHOWERS_NIGHT=46]="SCATTERED_SNOW_SHOWERS_NIGHT",e[e.SCATTERED_THUNDERSTORMS_NIGHT=47]="SCATTERED_THUNDERSTORMS_NIGHT"}(c||(t.IconCode=c={})),function(e){e[e.STRONG_STORMS=300]="STRONG_STORMS",e[e.STRONG_STORMS_WIND=310]="STRONG_STORMS_WIND",e[e.FREEZING_RAIN=1e3]="FREEZING_RAIN",e[e.LIGHT_FREEZING_RAIN=1001]="LIGHT_FREEZING_RAIN",e[e.HEAVY_FREEZING_RAIN=1002]="HEAVY_FREEZING_RAIN",e[e.FREEZING_RAIN_WIND=1010]="FREEZING_RAIN_WIND",e[e.LIGHTFREEZING_RAIN_WIND=1011]="LIGHTFREEZING_RAIN_WIND",e[e.HEAVY_FREEZING_RAIN_WIND=1012]="HEAVY_FREEZING_RAIN_WIND",e[e.LIGHT_FREEZING_RAIN_FOG=1051]="LIGHT_FREEZING_RAIN_FOG",e[e.SLEET=1800]="SLEET",e[e.LIGHT_SLEET=1801]="LIGHT_SLEET",e[e.SLEET_WIND=1810]="SLEET_WIND",e[e.LIGHT_SLEET_WIND=1811]="LIGHT_SLEET_WIND",e[e.SCATTERED_THUNDERSTORMS_WIND=3819]="SCATTERED_THUNDERSTORMS_WIND",e[e.HEAVY_SNOW=4200]="HEAVY_SNOW",e[e.HEAVY_SNOW_WIND=4210]="HEAVY_SNOW_WIND",e[e.BLIZZARD=4300]="BLIZZARD",e[e.FREEZING_RAIN_SLEET=5100]="FREEZING_RAIN_SLEET",e[e.LIGHT_FREEZING_RAIN_SLEET=5101]="LIGHT_FREEZING_RAIN_SLEET",e[e.FREEZING_RAIN_SLEET_WIND=5110]="FREEZING_RAIN_SLEET_WIND",e[e.LIGHT_FREEZING_RAIN_SLEET_WIND=5111]="LIGHT_FREEZING_RAIN_SLEET_WIND",e[e.RAIN_FREEZING_RAIN=5300]="RAIN_FREEZING_RAIN",e[e.LIGHT_RAIN_FREEZING_RAIN=5301]="LIGHT_RAIN_FREEZING_RAIN",e[e.HEAVY_RAIN_FREEZING_RAIN=5302]="HEAVY_RAIN_FREEZING_RAIN",e[e.RAIN_FREEZING_RAIN_WIND=5310]="RAIN_FREEZING_RAIN_WIND",e[e.LIGHT_RAIN_FREEZING_RAIN_WIND=5311]="LIGHT_RAIN_FREEZING_RAIN_WIND",e[e.HEAVY_RAIN_FREEZING_RAIN_WIND=5312]="HEAVY_RAIN_FREEZING_RAIN_WIND",e[e.LIGHT_RAIN_FREEZING_RAIN_FOG=5351]="LIGHT_RAIN_FREEZING_RAIN_FOG",e[e.THUNDER_SNOW=5600]="THUNDER_SNOW",e[e.THUNDER_SNOW_WIND=5610]="THUNDER_SNOW_WIND",e[e.SCATTERED_STRONG_STORMS=5709]="SCATTERED_STRONG_STORMS",e[e.SCATTERED_STRONG_STORMS_WIND=5719]="SCATTERED_STRONG_STORMS_WIND",e[e.RAIN_ICE_EARLY=6500]="RAIN_ICE_EARLY",e[e.LIGHT_RAIN_ICE_EARLY=6501]="LIGHT_RAIN_ICE_EARLY",e[e.AM_RAIN_ICE=6503]="AM_RAIN_ICE",e[e.AM_LIGHT_RAIN_ICE=6504]="AM_LIGHT_RAIN_ICE",e[e.RAIN_ICE_WIND_EARLY=6510]="RAIN_ICE_WIND_EARLY",e[e.LIGHT_RAIN_ICE_WIND_EARLY=6511]="LIGHT_RAIN_ICE_WIND_EARLY",e[e.AM_RAIN_ICE_WIND=6513]="AM_RAIN_ICE_WIND",e[e.AM_LIGHT_RAIN_ICE_WIND=6514]="AM_LIGHT_RAIN_ICE_WIND",e[e.ICE_EARLY=6600]="ICE_EARLY",e[e.AM_ICE=6603]="AM_ICE",e[e.ICE_WIND_EARLY=6610]="ICE_WIND_EARLY",e[e.AM_ICE_WIND=6613]="AM_ICE_WIND",e[e.RAIN_ICE_LATE=7500]="RAIN_ICE_LATE",e[e.LIGHT_RAIN_ICE_LATE=7501]="LIGHT_RAIN_ICE_LATE",e[e.PM_RAIN_ICE=7503]="PM_RAIN_ICE",e[e.PM_LIGHT_RAIN_ICE=7504]="PM_LIGHT_RAIN_ICE",e[e.RAIN_ICE_WIND_LATE=7510]="RAIN_ICE_WIND_LATE",e[e.LIGHT_RAIN_ICE_WIND_LATE=7511]="LIGHT_RAIN_ICE_WIND_LATE",e[e.PM_RAIN_ICE_WIND=7513]="PM_RAIN_ICE_WIND",e[e.PM_LIGHT_RAIN_ICE_WIND=7514]="PM_LIGHT_RAIN_ICE_WIND",e[e.ICE_LATE=7600]="ICE_LATE",e[e.PM_ICE=7603]="PM_ICE",e[e.ICE_WIND_LATE=7610]="ICE_WIND_LATE",e[e.PM_ICE_WIND=7613]="PM_ICE_WIND",e[e.RAIN_TO_ICE=8100]="RAIN_TO_ICE",e[e.RAIN_TO_ICE_WIND=8110]="RAIN_TO_ICE_WIND",e[e.ICE_TO_RAIN=8500]="ICE_TO_RAIN",e[e.ICE_TO_RAIN_WIND=8510]="ICE_TO_RAIN_WIND"}(u||(t.IconCodeExtended=u={})),t.ICON_CODE_EXTENDED={300:"STRONG_STORMS",310:"STRONG_STORMS-WIND",1e3:"FREEZING_RAIN",1001:"LIGHT_FREEZING_RAIN",1002:"HEAVY_FREEZING_RAIN",1010:"FREEZING_RAIN-WIND",1011:"LIGHTFREEZING_RAIN-WIND",1012:"HEAVY_FREEZING_RAIN-WIND",1051:"LIGHT_FREEZING_RAIN-FOG",1800:"SLEET",1801:"LIGHT_SLEET",1810:"SLEET-WIND",1811:"LIGHT_SLEET-WIND",3819:"SCATTERED_THUNDERSTORMS-WIND",4200:"HEAVY_SNOW",4210:"HEAVY_SNOW-WIND",4300:"BLIZZARD",5100:"FREEZING_RAIN-SLEET",5101:"LIGHT_FREEZING_RAIN-SLEET",5110:"FREEZING_RAIN-SLEET-WIND",5111:"LIGHT_FREEZING_RAIN-SLEET-WIND",5300:"RAIN-FREEZING_RAIN",5301:"LIGHT_RAIN-FREEZING_RAIN",5302:"HEAVY_RAIN-FREEZING_RAIN",5310:"RAIN-FREEZING_RAIN-WIND",5311:"LIGHT_RAIN-FREEZING_RAIN-WIND",5312:"HEAVY_RAIN-FREEZING_RAIN-WIND",5351:"LIGHT_RAIN-FREEZING_RAIN-FOG",5600:"THUNDER_SNOW",5610:"THUNDER_SNOW-WIND",5709:"SCATTERED_STRONG_STORMS",5719:"SCATTERED_STRONG_STORMS-WIND",6500:"RAIN-ICE_EARLY",6501:"LIGHT_RAIN-ICE_EARLY",6503:"AM_RAIN-ICE",6504:"AM_LIGHT_RAIN-ICE",6510:"RAIN-ICE-WIND_EARLY",6511:"LIGHT_RAIN-ICE-WIND_EARLY",6513:"AM_RAIN-ICE-WIND",6514:"AM_LIGHT_RAIN-ICE-WIND",6600:"ICE_EARLY",6603:"AM_ICE",6610:"ICE-WIND_EARLY",6613:"AM_ICE-WIND",7500:"RAIN-ICE_LATE",7501:"LIGHT_RAIN-ICE_LATE",7503:"PM_RAIN-ICE",7504:"PM_LIGHT_RAIN-ICE",7510:"RAIN-ICE-WIND_LATE",7511:"LIGHT_RAIN-ICE-WIND_LATE",7513:"PM_RAIN-ICE-WIND",7514:"PM_LIGHT_RAIN-ICE-WIND",7600:"ICE_LATE",7603:"PM_ICE",7610:"ICE-WIND_LATE",7613:"PM_ICE-WIND",8100:"RAIN_TO_ICE",8110:"RAIN_TO_ICE-WIND",8500:"ICE_TO_RAIN",8510:"ICE_TO_RAIN-WIND"},t.ICON_CODE_MAP={0:"tornado",1:"tropical-storm",2:"hurricane",3:"strong-storms",4:"thunderstorms",5:"rain-snow-wintery-mix",6:"rain-sleet",7:"rain-snow-wintery-mix",8:"freezing-drizzle-rain",9:"drizzle",10:"freezing-drizzle-rain",11:"showers",12:"rain",13:"flurries",14:"snow-showers",15:"blowing-drifting-snow",16:"snow",17:"hail",18:"sleet",19:"blowing-dust-sandstorm",20:"foggy",21:"haze",22:"smoke",23:"breezy",24:"windy",25:"blowing-drifting-snow",26:"cloudy",27:"mostly-cloudy-night",28:"mostly-cloudy-day",29:"partly-cloudy-night",30:"partly-cloudy-day",31:"clear-night",32:"sunny",33:"mostly-clear-night",34:"mostly-clear-day",35:"mixed-rain-hail",36:"sunny",37:"isolated-thunderstorms",38:"scattered-thunderstorms-day",39:"scattered-showers-day",40:"heavy-rain",41:"scattered-snow-showers-day",42:"heavy-snow-blizzard",43:"heavy-snow-blizzard",44:"na",45:"scattered-showers-night",46:"scattered-snow-showers-night",47:"scattered-thunderstorms-night"}},76159:(e,t,l)=>{"use strict";t.g=s;let a=l(30253),n=l(17681),r=l(36762),i=l(35181);async function s(e){let t=(0,a.getHourlyAirQualityForecastUrlConfig)(e),l=(0,n.urlFrom)(t),s=await fetch(l,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}});return function(e){let t=e.globalairquality,l={validTimeGmt:t.validTimeGmt,airQualityIndex:t.airQualityIndex,airQualityCategory:t.airQualityCategory,airQualityCategoryIndex:t.airQualityCategoryIndex,airQualityCategoryIndexColor:t.airQualityCategoryIndexColor,primaryPollutant:t.primaryPollutant},a=(0,i.createTransformer)((e,l)=>{var a,n;let r=e=>{var a,n,r,i;let s=t.pollutants[e];if(s)return{name:s.name,phrase:s.phrase,amount:null!=(a=s.amount[l])?a:0,unit:s.unit,category:null!=(n=s.category[l])?n:"",categoryIndex:null!=(r=s.categoryIndex[l])?r:0,index:null!=(i=s.index[l])?i:0}};return{...e,pollutants:{CO:r("CO"),NO2:r("NO2"),O3:r("O3"),PM10:r("PM10"),PM2_5:r("PM2.5"),SO2:r("SO2")},messages:{general:null!=(a=t.messages.General[l])?a:{title:"",text:""},sensitiveGroup:null!=(n=t.messages["Sensitive Group"][l])?n:{title:"",text:""}}}})(l);return{latitude:t.latitude,longitude:t.longitude,source:t.source,disclaimer:t.disclaimer,expireTimeGmt:t.expireTimeGmt,forecast:a}}(await (0,r.handleFetchResponse)(s))}},77119:(e,t,l)=>{"use strict";l.a(e,async(e,a)=>{try{l.d(t,{A:()=>m});var n=l(76792),r=l(47421),i=l(70336),s=l(68751),o=l(89975),d=l(9198),c=l(65148),u=e([c]);c=(u.then?(await u)():u)[0];let m=e=>{let{location:t,locale:l,onlyChart:a,isLoading:u,chartData:m,hasChartData:h,rtl:p,removeTransitionLines:v,insightTextLong:x}=e,f=(0,r.c3)("PrecipIntensity");if(!u&&!h)return null;let g=()=>u?(0,n.jsx)("div",{className:"relative h-15 text-center",children:(0,n.jsx)(o.a,{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2"})}):(0,n.jsx)(c.A,{chartData:m,hasChartData:h,ianaTimeZone:null==t?void 0:t.ianaTimeZone,locale:l,rtl:p,removeTransitionLines:v});return a?g():(0,n.jsxs)(i.Zp,{className:"relative gap-0 overflow-hidden p-4",children:[(0,n.jsxs)(i.Wu,{className:"p-0",children:[x&&(0,n.jsxs)(s.Ay,{variant:"Body.M",className:"mb-2",children:[(0,n.jsx)("span",{className:"font-bold",children:"Outlook:"})," ",x]}),g()]}),t&&(0,n.jsx)(d.default,{className:"absolute top-0 right-0 bottom-0 left-0",href:"/weather/hourbyhour/l/".concat(t.placeId),"aria-label":f("viewHourlyForecast"),children:"\xa0"})]})};a()}catch(e){a(e)}})},79315:(e,t,l)=>{"use strict";l.d(t,{r:()=>n});var a=l(99838);let n=e=>{let{date:t,timeZone:l}=e;return{cDate:new Date((0,a.$)(t)),cTimeZone:(e=>{try{return new Intl.DateTimeFormat("en-US",{timeZone:e}),e}catch(e){return"Etc/UTC"}})(l)}}},82064:(e,t,l)=>{"use strict";l.r(t),l.d(t,{VideoBlock:()=>y,default:()=>N});var a=l(76792),n=l(42292),r=l(44615),i=l(86605);let s="/placeholder-video-thumbnail.jpg";var o=l(46859),d=l(95624),c=l(99343),u=l(58010),m=l(18556),h=l(48260),p=l(25319),v=l(70412);let x={src:"/_next/static/media/placeholder.6858ca75.jpg"},f=(0,l(23803).h)("video:events"),g=async e=>{let t=await fetch(e);if(!t.ok)throw Error("Failed to fetch video data from ".concat(e));return t.json()},y=e=>{var t;let{file:l,image:y,title:N,description:w,tracks:b=[],playlist:I,custom:_={},playerSettings:j,descriptionAttributes:E,videoReference:T,playlistsReference:A=[]}=e,R="video-player-".concat((0,n.useId)()),C=(0,n.useRef)(!0),S=(0,n.useRef)(null),L=(null==(t=(0,p.J)())?void 0:t.user)||{},D=(0,v.z)(),M=null;T&&("string"==typeof T?M="/api/payload/videos/".concat(T):"object"==typeof T&&(M=(null==T?void 0:T.id)?"/api/payload/videos/".concat(T.id):null));let{data:O,error:W}=(0,r.Ay)(M,g,{revalidateOnFocus:!1,dedupingInterval:3e5}),H=(0,c.c)(),P=(0,n.useMemo)(()=>{let e=[];return!Array.isArray(b)&&(null==b?void 0:b.file)?e.push(b):Array.isArray(b)&&e.push(...b),e},[b]),k=(0,n.useMemo)(()=>O&&Object.keys(O).length>0||T&&"string"!=typeof T,[O,T]),F=(0,n.useMemo)(()=>O&&Object.keys(O).length>0?O:T&&"string"!=typeof T?T:null,[O,T]),G=(0,n.useMemo)(()=>{var e,t,a,n,r,i,s,o,d;return k&&(null==F||null==(t=F.content)||null==(e=t.videoFormatUrls)?void 0:e.length)>0?(null==F||null==(n=F.content)||null==(a=n.defaultFormat)?void 0:a.url)?null==F||null==(d=F.content)||null==(o=d.defaultFormat)?void 0:o.url:null==F||null==(s=F.content)||null==(i=s.videoFormatUrls)||null==(r=i[0])?void 0:r.url:l},[k,F,l]),B=(0,n.useMemo)(()=>{if(k){var e,t,l;return(null==F||null==(e=F.content)?void 0:e.keyFrameImage)||(null==F||null==(l=F.seo)||null==(t=l.image)?void 0:t.url)||y}return y},[k,F,y]),V=(0,n.useMemo)(()=>k&&(null==F?void 0:F.title)||N,[k,F,N]),U=(0,n.useMemo)(()=>{if(k&&(null==F?void 0:F.description)){var e,t,l;return(null==(l=F.description.root)||null==(t=l.children[0])||null==(e=t.children[0])?void 0:e.text)||w}return w},[k,F,w]),z=(0,n.useMemo)(()=>{if(S.current&&JSON.stringify({file:G,image:B,title:V,description:U,tracks:P,playlist:I,custom:_})===JSON.stringify(S.current))return S.current;let e=B||(G?(e=>{if(!e)return s;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 s})(G):null)||x.src,t={file:G,image:e,title:V,description:U,tracks:P,custom:_};return S.current=t,t},[G,B,V,U,P,I,_]),Y=(0,n.useMemo)(()=>{var e,t,l,a;let n=[];return I&&(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})(I,z)||[]),A&&A.length,k&&(null==F||null==(e=F.content)?void 0:e.playlists)&&Array.isArray(null==F||null==(t=F.content)?void 0:t.playlists)&&(null==F||null==(a=F.content)||null==(l=a.playlists)||l.length),n.length>0?n:[z]},[I,z,A,F,k]);if((0,n.useEffect)(()=>{C.current=!0},[Y]),T&&"string"==typeof T&&!O&&!W)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-t-2 border-b-2 border-gray-900"})});if(W)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(!G)return null;let Z=[...o.v,...d.yW].map(e=>{let{eventName:t,callback:l}=e;return{eventName:t,callback:e=>{let{event:a,player:n}=e;"time"!==t&&f.info("[".concat(t,"]:"),a),l({event:a,player:n,isFirstPlayRef:C,user:L,trackVideoEvent:H,isMobile:D})}}});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.DebugCollector,{componentName:"VideoBlock",data:{props:{file:l,image:y,title:N,description:w,tracksCount:(0,m.J)(P),hasPlaylist:!!I&&I.length>0,custom:_},state:{videoObject:z,playlistItems:Y.length,isFirstPlay:C.current,events:Z.map(e=>e.eventName)},performance:{}}}),(0,a.jsx)("div",{className:"overflow-hidden rounded-lg",children:(0,a.jsx)(i.h,{playlist:Y,events:Z},R)}),(null==j?void 0:j.showDescriptions)&&(0,a.jsx)("p",{...E,className:(0,h.cn)("my-2 text-sm",null==E?void 0:E.className),children:z.title})]})},N=y},82304:(e,t)=>{"use strict";t.J3=t.Ny=t.rn=void 0,t.rn="daily-newsletters-1",t.Ny="marketing-emails-1",t.J3=[{subscriptionGroupName:t.rn,subscriptionGroupId:"",isSubscribed:!1,attributes:{location:""}},{subscriptionGroupName:t.Ny,subscriptionGroupId:"",isSubscribed:!1}]},84015:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEmailPreferencesStatusUrlConfig=function(){return{host:"weather.com",protocol:"https",pathname:"/api/v1/email-preferences/status"}},t.getEmailPreferencesSetUrlConfig=function(){return{host:"weather.com",protocol:"https",pathname:"/api/v1/email-preferences/set"}},t.getEmailPreferencesChangeEmailUrlConfig=function(){return{host:"weather.com",protocol:"https",pathname:"/api/v1/email-preferences/change-email"}}},85670:(e,t,l)=>{"use strict";l.d(t,{A:()=>i});var a=l(76792),n=l(47421),r=l(62596);let i=e=>{let{data:t,ianaTimeZone:l,locale:i}=e,s=(0,n.c3)("PrecipIntensity");return(0,a.jsxs)("table",{className:"hidden",children:[(0,a.jsx)("caption",{children:s("tableCaption")}),(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:s("time")}),(0,a.jsx)("th",{children:s("precipType")}),(0,a.jsx)("th",{children:s("precipLevel")})]})}),(0,a.jsx)("tbody",{children:null==t?void 0:t.map(e=>0!==e.level?(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:(0,r.P)({date:e.validTimeLocal,locale:i,timeZone:l,minutes:!0})}),(0,a.jsx)("td",{children:e.precipType}),(0,a.jsx)("td",{children:e.level})]},e.validTimeLocal):null)})]})}},86096:(e,t,l)=>{"use strict";l.d(t,{Hi:()=>s,Zs:()=>r,gS:()=>d,nE:()=>i,xZ:()=>o});var a=l(99838),n=l(42531);let r=()=>{var e;let t={};return null!=(e=null==t?void 0:t["twc-csc"])?e:""},i=(e,t,l,a)=>e?(a?(null==e?void 0:e.slice(0,7))||[]:e||[]).map((e,n)=>{let r=e.iconCodeExtend,i=e.precipType,s=m({precipRate:a?e.qpf:e.precipRate,iconCodeExtend:r,precipType:i,unitsSystem:t});return{precipType:i,validTimeLocal:l[n],level:s}}):Array(7).fill({precipType:"",validTimeLocal:"",level:0}),s=e=>e.reduce((e,t)=>{let{precipType:l}=t;return e[l]=!0,e},{}),o=e=>!!(null==e?void 0:e.find(e=>{let{level:t}=e;return t>0})),d=(e,t)=>{if(!(null==e?void 0:e.length))return[];let l=e.map(e=>(0,a.$)(e.validTimeLocal));return t?l.slice(0,7):l},c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;switch(!0){case e>1.65:return 9;case e>.72:return 8;case e>.32:return 7;case e>.14:return 6;case e>.06:return 5;case e>.03:return 4;case e>.01:return 3;case e>0:return 2;case 0===e:return .7;default:return 0}},u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;switch(!0){case e>1.52:return 9;case e>.48:return 8;case e>.17:return 7;case e>.07:return 6;case e>.03:return 5;case e>.02:return 4;case e>.01:return 3;case e>0:return 2;case 0===e:return .7;default:return 0}},m=e=>{let{precipRate:t,iconCodeExtend:l,precipType:a,unitsSystem:r}=e,i=(null==r?void 0:r.precip)!=="in"?Number((t/25.4).toFixed(2)):t,s="precip"===a||0===t?n.ro[l]:a;switch(!0){case n.cv.includes(s):return c(i);case n.VF.includes(s):return u(i);default:return 0}}},86605:(e,t,l)=>{"use strict";l.d(t,{h:()=>m});var a=l(76792),n=l(42292),r=l(48260),i=l(73675);let s={autoplayadsmuted:!1,client:"googima",vpaidcontrols:!0};var o=l(23803),d=l(92928),c=l.n(d);let u=(0,o.h)("JWPlayer"),m=e=>{var t;let{playlist:l,options:o={},setupParams:d={},events:m=[],className:h=""}=e,p="player-".concat((0,n.useId)()),{playerId:v="IdNDrRWQ"}=d,x=(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),...o}),[l,d,o]),f=(0,n.useRef)(null),g=(0,n.useRef)(!1),y=null==l||null==(t=l[0])?void 0:t.file,[N,w]=(0,n.useState)(y?"loading":"error");return(0,n.useEffect)(()=>{if(g.current||!("jwplayer"in window)||"ready"!==N||!y)return;let e=window.jwplayer(p);f.current=e,g.current=!0,u.info("initialized player"),e.setup(x),m.forEach(t=>{let{eventName:l,callback:a}=t;e.on(l,t=>{a({event:t,player:e})}),u.lifecycle("Registered event handler for ".concat(l))})},[x,m,y,p,N]),(0,n.useEffect)(()=>()=>{if(f.current)try{f.current.remove(),f.current=null,g.current=!1}catch(e){u.error("Error removing JW Player",e)}},[]),(0,a.jsxs)("div",{children:[y&&(0,a.jsx)(i.default,{src:"https://cdn.jwplayer.com/libraries/".concat(v,".js"),strategy:"afterInteractive",onLoad:()=>w("ready"),onReady:()=>w("ready"),onError:()=>w("error")}),(0,a.jsx)("div",{className:(0,r.cn)("overflow-hidden",c().jwplayerContainer,h),children:"loading"===N&&y?(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-t-2 border-b-2 border-white"})}):"error"===N?(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"})})]})}},88572:(e,t,l)=>{"use strict";l.a(e,async(e,a)=>{try{l.d(t,{A:()=>y});var n=l(76792),r=l(42292),i=l(47421),s=l(44615),o=l(12962),d=l(76088),c=l(81100),u=l(75302),m=l(32035),h=l(71666),p=l(55198),v=l(48195),x=l(88790),f=l(35374),g=e([v]);v=(g.then?(await g)():g)[0];let y=e=>{var t,l;let{location:a,simplifiedVersion:g}=e,y=(0,i.c3)("HourlyForecast"),{effectiveLocation:N,isLocationLoading:w}=(0,c.s)({location:a}),b=(0,u.md)(m.Yt),I=null==(t=(0,h.xP)(b))?void 0:t.code,_=g?d.HourlyForecastDuration.ONE_DAY:d.HourlyForecastDuration.THREE_DAY,j=null==(l=(0,p.useParams)())?void 0:l.locale,{data:E=[],error:T,isLoading:A}=(0,s.Ay)(N?["get-hourly-forecast",N.geocode,I,_,j]:null,e=>{let[t,l,a,n,r]=e;return(0,o.$c)({geocode:l,units:a,duration:n,language:r})},{revalidateOnFocus:!1,dedupingInterval:6e4}),R=(0,r.useMemo)(()=>g?E.slice(0,f.h):E,[E,g]),{insight:C,insightIcon:S}=(0,x.j)(N,j),L=N?g?"/weather/hourbyhour/l/".concat(N.placeId):"/weather/tenday/l/".concat(N.placeId):"";return(0,n.jsx)(v.A,{location:N,hourlyForecast:R,locale:j,isLoading:A||w,error:T,showDayLabel:!g,canToggleMultipleItems:!g,ctaLink:L,ctaText:y(g?"next48":"10DayWeather"),enableAlertHeadlines:!g,insight:C,insightIcon:S,showPrecipIntensity:!g})};a()}catch(e){a(e)}})},88790:(e,t,l)=>{"use strict";l.d(t,{j:()=>v});var a=l(42292),n=l(44615),r=l(75302),i=l(23189),s=l(56768),o=l(14124),d=l(32035),c=l(71666),u=l(76088),m=l(40358);let h=["trendingFeelsLikeInsight","trendingTemperatureInsight","trendingWindInsight","trendingUvIndexInsight"],p=Math.floor(Math.random()*h.length),v=(e,t)=>{var l,v;let x=(0,r.md)(d.Yt),f=null==(l=(0,c.xP)(x))?void 0:l.code,{data:g,isLoading:y}=(0,m.r)({key:"hourly-forecast-all-insights",geoCode:(null==e?void 0:e.geocode)||null,insightType:s.InsightType.ALL,locale:t}),N=(0,a.useMemo)(()=>null==g?void 0:g.reduce((e,t)=>(e[t.insightType]=t,e),{}),[g]),{data:w=[],isLoading:b}=(0,n.Ay)(e?["get-daily-forecast",e.geocode,f,u.ForecastDuration.THREE_DAY,t]:null,e=>{let[t,l,a,n,r]=e;return(0,o.v1)({geocode:l,units:a,duration:n,language:r})},{revalidateOnFocus:!1,dedupingInterval:6e5}),I=y||b,_=w[0],j=(0,a.useMemo)(()=>{var e,t,l,a,n,r;if(I)return"";let i=null==N||null==(t=N.significantWeatherTodayInsight)||null==(e=t.insightText)?void 0:e[0];if(i)return i;let s=null==_||null==(a=_.daypart)||null==(l=a.narrative)?void 0:l[0];if(s)return s.split(".")[0];let o=h[p]||h[0];return(null==N||null==(r=N[o])||null==(n=r.insightText)?void 0:n[0])||""},[I,N,null==_||null==(v=_.daypart)?void 0:v.narrative]);return(0,a.useMemo)(()=>{let e=(0,i.B)(j,[" ","."]),t=e?(e=>{if(e){if(/(warmer|higher)/i.test(e))return"up";else if(/(cooler|lower)/i.test(e))return"down";else if(/(partly cloudy)/i.test(e)||/(sun)/i.test(e)&&/(cloud)/i.test(e))return"fair";else if(/(sunny|sunshine)/i.test(e))return"sun";else if(/(cloudy)/i.test(e))return"cloud";else if(/(shower|rain)/i.test(e))return"rain";else if(/(clear)/i.test(e))return/(night)/i.test(e)?"clear-night":"clear"}return null})(e):null;return{insight:e,insightIcon:t}},[j])}},89975:(e,t,l)=>{"use strict";l.d(t,{a:()=>s});var a=l(76792);l(42292);var n=l(30505),r=l(48260);let i=(0,n.F)("inline-block rounded-full border-solid animate-spin box-border",{variants:{size:{sm:"w-4 h-4 border-[2px]",md:"w-6 h-6 border-[2px]",lg:"w-8 h-8 border-[3px]"},variant:{white:"border-white border-b-transparent",primary:"border-brand-400 border-b-transparent",black:"border-[#252422] border-b-transparent"}},defaultVariants:{size:"sm",variant:"black"}}),s=e=>{let{className:t,size:l,variant:n}=e;return(0,a.jsx)("div",{className:(0,r.cn)(i({size:l,variant:n}),t)})}},91053:(e,t,l)=>{"use strict";l.d(t,{A:()=>p});var a=l(42292),n=l(75302),r=l(32035),i=l(71666),s=l(76088),o=l(44615),d=l(12962),c=l(36116),u=l(86096),m=l(44936);let h={revalidateOnFocus:!1,dedupingInterval:6e4},p=(e,t)=>{let l=(0,n.md)(r.Yt),p=(0,i.xP)(l)||i.AF,v=p.code,x=(0,u.Zs)(),f="KR"===x,g=f&&(null==e?void 0:e.countryCode)==="KR",{data:y,isLoading:N}=(0,o.Ay)(e&&g?["get-hourly-forecast",e.geocode,v,t,f?x:void 0]:null,e=>{let[t,l,a,n,r]=e;return(0,d.$c)({geocode:l,units:a,language:n,cscCountryCode:r,duration:s.HourlyForecastDuration.TWO_DAY})},h),{data:w,isLoading:b}=(0,o.Ay)(e&&!g?["get-fifteen-minute-forecast",e.geocode,v,t]:null,e=>{let[t,l,a,n]=e;return(0,c.FA)({geocode:l,units:a,language:n})},h),I=g?y:w,_=(0,a.useMemo)(()=>(0,u.gS)(I,g),[I,g]),j=(0,a.useMemo)(()=>(0,u.nE)(I,p,_,g)||[],[I,g,_,p]),E=(0,a.useMemo)(()=>(0,u.xZ)(j),[j]),{loadingInsight:T,insightHeadline:A,insightTextLong:R}=(0,m.p)(e,t);return{loadingForecast:N||b,chartData:j,hasChartData:E,loadingInsight:T,insightHeadline:A,insightTextLong:R}}},92928:e=>{e.exports={jwplayerContainer:"JWPlayer_jwplayerContainer__u4Psj"}},93146:(e,t,l)=>{"use strict";t.Sn=s;let a=l(4883),n=l(17681),r=l(36762),i=l(56791);async function s(e){let{geocode:t,language:l="en-US"}=e,s=(0,n.urlFrom)((0,a.getSunWeatherAlertHeadlinesUrlConfig)({geocode:t,language:l})),o=await fetch(s,{headers:{"Accept-Encoding":"gzip"},cache:"no-store",next:{revalidate:0}}),d=await (0,r.handleFetchResponse)(o);return{...d,alerts:(0,i.getSortedAlerts)(d.alerts)}}},93265:(e,t,l)=>{"use strict";l.r(t),l.d(t,{CurrentDetailsBlock:()=>eu,default:()=>em});var a=l(76792),n=l(44685),r=l(46593),i=l(44615),s=l(86942),o=l(55198),d=l(75302),c=l(32035),u=l(71666),m=l(76088),h=l(14124),p=l(42292),v=l(47421),x=l(68751),f=l(89975),g=l(70336),y=l(40640),N=l(23233);let w=(0,p.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"temperature"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{fillRule:"evenodd",d:"M6.5 8.63V3a2 2 0 1 0-4 0v5.63a3.5 3.5 0 1 0 4 0M4.5 2a1 1 0 0 1 1 1v3.5h-2V3a1 1 0 0 1 1-1m0 12a2.5 2.5 0 0 1-1.25-4.665l.25-.14V7.5h2v1.695l.25.14A2.5 2.5 0 0 1 4.5 14",clipRule:"evenodd"}),(0,a.jsx)("path",{d:"M9.938 2.466a.5.5 0 0 1 .5-.5h4.087a.5.5 0 0 1 0 1h-4.087a.5.5 0 0 1-.5-.5M10.438 4.996a.5.5 0 1 0 0 1h2.63a.5.5 0 0 0 0-1zM9.938 11.509a.5.5 0 0 1 .5-.5h2.63a.5.5 0 0 1 0 1h-2.63a.5.5 0 0 1-.5-.5M10.438 8.002a.5.5 0 1 0 0 1h4.087a.5.5 0 0 0 0-1z"})]})]})}),b=p.forwardRef((e,t)=>(0,a.jsx)(N.h,{ref:t,icon:w,...e}));b.displayName="Temperature";var I=l(60393),_=l(75848),j=l(56157),E=l(49694),T=l(8366),A=l(55406),R=l(38098),C=l(28004),S=l(46670),L=l(48834),D=l(63236),M=l(96304);let O=(0,p.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"New Moon"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("circle",{cx:8,cy:7.613,r:6.4,fill:"currentColor"})]})}),W=p.forwardRef((e,t)=>(0,a.jsx)(N.h,{ref:t,icon:O,...e}));W.displayName="NewMoon";let H=(0,p.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Waxing Crescent"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M8.01 13.553q2.432 0 4.18-1.742 1.75-1.742 1.75-4.202 0-2.452-1.75-4.198-1.748-1.745-4.18-1.745 1.704 0 2.92 1.745t1.216 4.198q0 2.46-1.216 4.202t-2.92 1.742m-.014-12.34q2.64 0 4.521 1.882Q14.4 4.978 14.4 7.616q0 2.645-1.883 4.521t-4.52 1.876q-2.646 0-4.522-1.876Q1.6 10.262 1.6 7.617q0-2.64 1.875-4.522t4.521-1.882"})]})}),P=p.forwardRef((e,t)=>(0,a.jsx)(N.h,{ref:t,icon:H,...e}));P.displayName="WaxingCrescent";let k=(0,p.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"First Quarter"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M8.004 13.552q2.446 0 4.19-1.745 1.746-1.745 1.746-4.198 0-2.452-1.745-4.198-1.745-1.745-4.191-1.745zm-.007-12.34q2.644 0 4.524 1.88t1.88 4.517q0 2.64-1.88 4.521-1.879 1.883-4.524 1.883-2.639 0-4.517-1.883Q1.6 10.247 1.6 7.61q0-2.64 1.88-4.518 1.878-1.88 4.517-1.88"})]})}),F=p.forwardRef((e,t)=>(0,a.jsx)(N.h,{ref:t,icon:k,...e}));F.displayName="FirstQuarter";let G=(0,p.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Waxing Gibbous"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M8.003 1.673q-1.38 0-2.367 1.745-.986 1.746-.986 4.198 0 2.454.986 4.198t2.367 1.745q2.439 0 4.188-1.745 1.748-1.744 1.748-4.198 0-2.452-1.748-4.198-1.749-1.745-4.188-1.745m0 12.34q-2.645 0-4.524-1.88-1.88-1.878-1.88-4.517t1.88-4.52q1.878-1.883 4.524-1.883 2.638 0 4.518 1.882Q14.4 4.978 14.4 7.616q0 2.64-1.88 4.518-1.878 1.879-4.517 1.879"})]})}),B=p.forwardRef((e,t)=>(0,a.jsx)(N.h,{ref:t,icon:G,...e}));B.displayName="WaxingGibbous";let V=(0,p.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Full Moon"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M7.996 13.553q2.445 0 4.195-1.742 1.748-1.742 1.748-4.202 0-2.452-1.748-4.198-1.749-1.745-4.195-1.745-2.452 0-4.198 1.745Q2.053 5.157 2.053 7.61q0 2.46 1.745 4.202t4.198 1.742m0-12.34q2.64 0 4.521 1.882Q14.4 4.978 14.4 7.616q0 2.645-1.883 4.521t-4.52 1.876q-2.646 0-4.522-1.876Q1.6 10.262 1.6 7.617q0-2.64 1.875-4.522t4.521-1.882"})]})}),U=p.forwardRef((e,t)=>(0,a.jsx)(N.h,{ref:t,icon:V,...e}));U.displayName="FullMoon";let z=(0,p.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Waning Gibbous"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M7.996 13.553q1.374 0 2.36-1.742t.986-4.202q0-2.452-.986-4.198-.986-1.745-2.36-1.745-2.452 0-4.198 1.745Q2.053 5.157 2.053 7.61q0 2.46 1.745 4.202t4.198 1.742m0-12.34q2.64 0 4.521 1.882Q14.4 4.978 14.4 7.616q0 2.645-1.883 4.521t-4.52 1.876q-2.646 0-4.522-1.876Q1.6 10.262 1.6 7.617q0-2.64 1.875-4.522t4.521-1.882"})]})}),Y=p.forwardRef((e,t)=>(0,a.jsx)(N.h,{ref:t,icon:z,...e}));Y.displayName="WaningGibbous";let Z=(0,p.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Last Quarter"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M7.997 1.673q-2.439 0-4.188 1.742-1.748 1.74-1.748 4.201 0 2.453 1.748 4.198 1.749 1.745 4.188 1.745zm.007 12.34q-2.64 0-4.521-1.883Q1.6 10.247 1.6 7.61q0-2.646 1.883-4.522 1.883-1.875 4.52-1.875 2.646 0 4.522 1.875Q14.4 4.964 14.4 7.61q0 2.64-1.875 4.521-1.876 1.883-4.521 1.883"})]})}),q=p.forwardRef((e,t)=>(0,a.jsx)(N.h,{ref:t,icon:Z,...e}));q.displayName="LastQuarter";let Q=(0,p.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Waning Crescent"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M8.01 1.673q-2.453 0-4.201 1.745-1.75 1.746-1.75 4.198 0 2.454 1.75 4.198 1.748 1.745 4.2 1.745-.975 0-1.676-1.745-.7-1.744-.7-4.198 0-2.452.7-4.198.701-1.745 1.677-1.745m-.007 12.34q-2.645 0-4.524-1.88-1.88-1.878-1.88-4.517t1.88-4.52q1.878-1.883 4.524-1.883 2.638 0 4.518 1.882Q14.4 4.978 14.4 7.616q0 2.64-1.88 4.518-1.878 1.879-4.517 1.879"})]})}),X=p.forwardRef((e,t)=>(0,a.jsx)(N.h,{ref:t,icon:Q,...e}));X.displayName="WaningCrescent";var $=l(81692);let J=(0,p.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Sunrise"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("g",{fill:"currentColor",children:(0,a.jsx)("path",{d:"M14.499 13.5a.5.5 0 1 1 0 1H1.5a.5.5 0 0 1 0-1zM3 11a.5.5 0 0 1 0 1H1.5a.5.5 0 1 1 0-1zM8 9a3 3 0 0 1 2.958 2.502c.046.272-.183.497-.459.497s-.493-.227-.562-.494A2 2 0 0 0 8 10a2 2 0 0 0-1.937 1.505c-.069.267-.287.494-.563.494s-.504-.225-.459-.497A3 3 0 0 1 8 9M14.5 11a.5.5 0 0 1 0 1H13a.5.5 0 1 1 0-1zM3.05 7.05a.5.5 0 0 1 .708 0l1.045 1.046a.5.5 0 0 1-.707.707L3.05 7.757a.5.5 0 0 1 0-.707M12.242 7.05a.5.5 0 0 1 .707.707l-1.046 1.046a.5.5 0 0 1-.707-.707zM7.605 2.397a.56.56 0 0 1 .79 0l1.753 1.753a.5.5 0 0 1-.706.706L8.5 3.917v3.585a.5.5 0 0 1-1 0V3.917l-.942.939a.5.5 0 0 1-.705-.706z"})})]})}),K=p.forwardRef((e,t)=>(0,a.jsx)(N.h,{ref:t,icon:J,...e}));K.displayName="Sunrise";let ee=(0,p.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Sunset"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsx)("g",{fill:"currentColor",children:(0,a.jsx)("path",{d:"M14.499 13.502a.5.5 0 0 1 0 1H1.5a.5.5 0 0 1 0-1zM3 11.003a.5.5 0 0 1 0 1H1.5a.5.5 0 0 1 0-1zM14.5 11.003a.5.5 0 0 1 0 1H13a.5.5 0 0 1 0-1zM8 9a3 3 0 0 1 2.958 2.502c.046.272-.183.498-.459.498s-.493-.227-.562-.494A2.006 2.006 0 0 0 8 10a2.004 2.004 0 0 0-1.937 1.506c-.07.267-.287.494-.563.494s-.505-.226-.459-.498A3 3 0 0 1 8 9M3.05 7.053a.5.5 0 0 1 .707 0l1.046 1.046a.5.5 0 0 1-.707.707L3.05 7.76a.5.5 0 0 1 0-.707M12.242 7.053a.5.5 0 0 1 .707.707l-1.046 1.046a.5.5 0 0 1-.707-.707zM8 2.003a.5.5 0 0 1 .5.5v3.585l.941-.939a.5.5 0 0 1 .705.706L8.396 7.607a.56.56 0 0 1-.79 0L5.853 5.855a.5.5 0 0 1 .705-.706l.942.939V2.503a.5.5 0 0 1 .5-.5"})})]})}),et=p.forwardRef((e,t)=>(0,a.jsx)(N.h,{ref:t,icon:ee,...e}));et.displayName="Sunset";let el=(e,t)=>{var l,a,n,r,i,s,o,d,c,u,m,h;if(!e)return!1;let{top:p,right:v,bottom:x,left:f,width:g,height:y}=e.getBoundingClientRect(),N={t:x,r:window.innerWidth-f,b:window.innerHeight-p,l:v},w={x:(null!=(o=null==t||null==(l=t.threshold)?void 0:l.x)?o:0)*g,y:(null!=(d=null==t||null==(a=t.threshold)?void 0:a.y)?d:0)*y},b={top:null!=(c=null==t||null==(n=t.offset)?void 0:n.top)?c:0,right:null!=(u=null==t||null==(r=t.offset)?void 0:r.right)?u:0,bottom:null!=(m=null==t||null==(i=t.offset)?void 0:i.bottom)?m:0,left:null!=(h=null==t||null==(s=t.offset)?void 0:s.left)?h:0};return N.t>b.top+w.y&&N.r>b.right+w.x&&N.b>b.bottom+w.y&&N.l>b.left+w.x};var ea=l(62596),en=l(99838);let er=e=>{let{date:t,normalizeString:l=!0,resetToStartOfHour:a,resetToOffset:n,resetToStartOfMonth:r,resetToEndOfMonth:i,resetToStartOfWeek:s,resetToEndOfWeek:o,resetToHour:d,daysFromDate:c,daysBeforeDate:u,monthsBeforeDate:m,monthsAfterDate:h,yearsBeforeDate:p,yearsAfterDate:v}=e;if(!t)return new Date;let x=l||"string"!=typeof t?(0,en.$)(t):t,f=/([+-]\d{2}:?\d{2})$/,g=x.match(f),y=new Date(x.replace(f,""));if(c&&y.setDate(y.getDate()+c),u&&y.setDate(y.getDate()-u),m&&y.setMonth(y.getMonth()-m),h&&y.setMonth(y.getMonth()+h),a&&(y.setMinutes(0),y.setSeconds(0)),n&&g){let e,t=g[0];t.includes(":")?[,e]=t.split(":"):e=t.slice(-2),y.setMinutes(parseInt(e||"0",10)),y.setSeconds(0)}if(r&&y.setDate(1),i){let e=y.getMonth(),t=y.getFullYear();y.setMonth(e+1),y.setDate(0),y.setFullYear(t)}return s&&y.setDate(y.getDate()-y.getDay()),o&&y.setDate(y.getDate()-y.getDay()+6),d&&y.setHours(d),p&&y.setFullYear(y.getFullYear()-1),v&&y.setFullYear(y.getFullYear()+1),y},ei=(0,a.jsxs)("svg",{children:[(0,a.jsx)("title",{children:"Daylight"}),(0,a.jsx)("circle",{cx:"12",cy:"12",r:"12",fill:"#FFF"}),(0,a.jsx)("path",{fill:"#FFB900",d:"M18.405 17.661a1 1 0 0 1-1.437 1.391l-1.665-1.72a1 1 0 1 1 1.437-1.39l1.665 1.72zm-5.541 2.651a1 1 0 0 1-2 0v-2.366a1 1 0 1 1 2 0v2.366zm-6.718-1.624a1 1 0 0 1-1.357-1.469l1.758-1.624a1 1 0 1 1 1.357 1.47l-1.758 1.623zm-2.753-5.769a1 1 0 1 1 .002-2l2.422.001a1 1 0 0 1-.001 2l-2.423-.001zm1.77-6.115A1 1 0 0 1 6.6 5.414l1.664 1.719a1 1 0 0 1-1.436 1.391l-1.665-1.72zm5.751-3.391a1 1 0 1 1 2 0v2.366a1 1 0 0 1-2 0V3.413zm6.5 1.903a1 1 0 1 1 1.356 1.47l-1.757 1.623a1 1 0 1 1-1.357-1.47l1.758-1.623zm3.005 6.114a1 1 0 0 1-.002 2l-2.422-.001a1 1 0 0 1 .001-2l2.423.001z"}),(0,a.jsx)("ellipse",{fill:"#FFB900",cx:"11.85",cy:"11.935",rx:"3.225",ry:"3.256"})]}),es=(0,p.memo)(e=>{var t;let{sunriseTimeLocal:l,sunsetTimeLocal:n,ianaTimeZone:r,validTimeLocal:i,width:s=100,className:d}=e,c=null==(t=(0,o.useParams)())?void 0:t.locale,u=(0,p.useRef)(null),m=(0,p.useRef)(null),[h,v]=(0,p.useState)(0),f=s/2,g=(0,p.useMemo)(()=>({formattedTime:(0,ea.P)({date:l,timeZone:r,locale:c,minutes:!0}),dateTime:er({date:l})}),[r,c,l]),y=(0,p.useMemo)(()=>({formattedTime:(0,ea.P)({date:n,timeZone:r,locale:c,minutes:!0}),dateTime:er({date:n})}),[r,c,n]),N=(0,p.useMemo)(()=>new Date(i.replace(/([+-]\d{2}:?\d{2})$/,"")),[i]),w=y.dateTime.getTime()-g.dateTime.getTime(),b=(N.getTime()-g.dateTime.getTime())*180/w,I=(e,t)=>{let l="x"===e?Math.cos:Math.sin;return Math.round(1e4*(("y"===e?f-6:f)*(l((t+180)*Math.PI/180)+1)+1.5))/1e4},_=(0,p.useCallback)(()=>{let e=0,t=setInterval(()=>{e>=b?clearInterval(t):v(e=Math.min(e+1,b))},10)},[b]),j=(0,p.useMemo)(()=>(0,$.n)(()=>{u.current&&el(u.current)&&g&&y&&(_(),window.removeEventListener("scroll",j))},400),[_,g,y]);(0,p.useEffect)(()=>(g&&y&&(u.current&&el(u.current)?_():window.addEventListener("scroll",j)),()=>{window.removeEventListener("scroll",j)}),[_,j,g,y]);let E=N.getTime()=g.dateTime.getTime();return g&&y?(0,a.jsx)("div",{ref:u,className:d,children:(0,a.jsxs)("div",{"data-testid":"sunriseSunsetContainer",className:"flex flex-col items-center",children:[(0,a.jsxs)("svg",{"data-testid":"TwcSunChartGraph",className:"mx-auto my-0 block",width:s+27,height:s/2+27-6,children:[(0,a.jsx)("path",{d:"M ".concat(-13.5," ").concat(f-13.5," a 1 1 0 0 0 ").concat(s," 0"),className:"transform-[rotate(180deg)] fill-none stroke-[#252422] stroke-3 [stroke-linecap:round]",style:{transformOrigin:"".concat(f,"px ").concat(f,"px")}}),E&&(0,a.jsx)("g",{ref:m,style:{transform:"translate(".concat(I("x",h),"px, ").concat(I("y",h),"px)")},children:ei})]}),(0,a.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,a.jsxs)("div",{"data-testid":"SunriseValue",className:"flex items-center justify-end gap-1.25",children:[(0,a.jsx)(K,{}),(0,a.jsx)(x.Ay,{variant:"Body.S",className:"text-sm font-normal md:text-base",children:g.formattedTime.toLowerCase()})]}),(0,a.jsxs)("div",{"data-testid":"SunsetValue",className:"flex items-center justify-end gap-1.25",children:[(0,a.jsx)(et,{}),(0,a.jsx)(x.Ay,{variant:"Body.S",className:"text-sm font-normal md:text-base",children:y.formattedTime.toLowerCase()})]})]})]})}):null}),eo=e=>{var t;let{currentDetails:l,location:n,isLoading:r}=e,i=(0,v.c3)("CurrentDetails"),s=(0,v.c3)("DetailsTable"),o=(0,d.md)(c.Yt),m=null==(t=(0,u.xP)(o))?void 0:t.code,h=(0,p.useMemo)(()=>l&&((e,t,l)=>[{Icon:b,label:"".concat(t("high")," / ").concat(t("low")),content:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(A.B,{value:e.temperatureMax})," / ",(0,a.jsx)(A.B,{value:e.temperatureMin})]})},{Icon:I.Z,label:t("wind"),content:(0,a.jsx)(R.Z,{windSpeed:e.windSpeed,units:l,windDirection:e.windDirection,windDirectionCardinal:e.windDirectionCardinal,displayMode:"directionalAndCardinal"})},{Icon:_.K,label:t("humidity"),content:(0,a.jsx)(C.N,{value:e.relativeHumidity})},{Icon:j.$,label:t("dewPoint"),content:(0,a.jsx)(A.B,{value:e.temperatureDewPoint})},{Icon:E.S,label:t("pressure"),content:(0,a.jsx)(S.S,{pressureAltimeter:e.pressureAltimeter,pressureTendencyCode:e.pressureTendencyCode,units:l})},{Icon:T.o,label:t("uvIndex"),content:(0,a.jsx)(L.M,{uvIndex:e.uvIndex})},{Icon:y.S,label:t("visibility"),content:(0,a.jsx)(D.b,{visibility:e.visibility,units:l})},{Icon:(e=>{switch(e){case M.MoonPhaseCode.NEW:return W;case M.MoonPhaseCode.WAXING_CRESCENT:return P;case M.MoonPhaseCode.FIRST_QUARTER:return F;case M.MoonPhaseCode.WAXING_GIBBOUS:return B;case M.MoonPhaseCode.FULL:return U;case M.MoonPhaseCode.WANING_GIBBOUS:return Y;case M.MoonPhaseCode.LAST_QUARTER:return q;case M.MoonPhaseCode.WANING_CRESCENT:return X;default:return W}})(e.moonPhaseCode),label:t("moonPhase"),content:e.moonPhase}])(l,s,m),[l,s,m]),N=(()=>{if(r)return(0,a.jsx)("div",{className:"flex items-center justify-center p-3",children:(0,a.jsx)(f.a,{})});if(!l||!n||!h)return null;let{temperatureFeelsLike:e,sunriseTimeLocal:t,sunsetTimeLocal:s,validTimeLocal:o}=l;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(x.Ay,{variant:"Title.S",className:"@md/currentDetails:mb-3",children:[i("weatherToday")," ",n.presentationName]}),(0,a.jsxs)("div",{className:"mb-3 flex w-full items-end @md/currentDetails:mb-4",children:[(0,a.jsxs)("div",{className:"grow-1",children:[(0,a.jsx)(x.Ay,{className:"text-sm leading-normal @md/currentDetails:text-base",children:i("feelsLike")}),(0,a.jsx)(x.Ay,{variant:"Display.L",className:"text-[40px] leading-normal font-medium @md/currentDetails:text-5xl",children:(0,a.jsx)(A.B,{value:e})})]}),(0,a.jsx)(es,{sunriseTimeLocal:t,sunsetTimeLocal:s,validTimeLocal:o,ianaTimeZone:n.ianaTimeZone,className:"mb-1 @md/currentDetails:mb-2"})]}),(0,a.jsx)("div",{className:"grid gap-[0_32px] px-4 @md/currentDetails:grid-cols-2 @2xl/currentDetails:px-6",children:h.map(e=>{let{Icon:t,label:l,content:n}=e;return(0,a.jsxs)("div",{className:"flex items-center gap-1.5 border-t py-3 [&:first-child]:border-none @md/currentDetails:[&:nth-child(-n+2)]:border-none",children:[(0,a.jsx)(t,{className:"size-4 @md/currentDetails:size-5"}),(0,a.jsx)(x.Ay,{variant:"Body.M",className:"grow-1 font-normal whitespace-nowrap @2xl/currentDetails:text-lg",children:l}),(0,a.jsx)("div",{className:"text-right @2xl/currentDetails:text-lg",children:n})]},l)})})]})})();return N&&(0,a.jsx)(g.Zp,{className:"@container/currentDetails p-4",children:(0,a.jsx)(g.Wu,{className:"p-0",children:N})})};var ed=l(81100);let ec=e=>{let{location:t}=e,{effectiveLocation:l,isLocationLoading:n}=(0,ed.s)({location:t}),{currentDetails:r,loading:v}=(e=>{var t,l,a;let n=(0,d.md)(c.Yt),r=null==(t=(0,u.xP)(n))?void 0:t.code,v=null==(l=(0,o.useParams)())?void 0:l.locale,x=null==(a=(0,o.useParams)())?void 0:a.cscCountryCode,{data:f,error:g,isLoading:y}=(0,i.Ay)(e?["get-current-observations",e.geocode,r,v]:null,e=>{let[t,l,a,n]=e;return(0,s.z)({geocode:l,units:a,language:n})},{revalidateOnFocus:!1,dedupingInterval:6e4}),{data:N,error:w,isLoading:b}=(0,i.Ay)(e?["get-daily-forecast",e.geocode,r,m.ForecastDuration.THREE_DAY,v,"KR"===x?x:void 0]:null,e=>{let[t,l,a,n,r,i]=e;return(0,h.v1)({geocode:l,units:a,language:r,duration:n,cscCountryCode:i})},{revalidateOnFocus:!1,dedupingInterval:6e4}),I=null==N?void 0:N[0];return{currentDetails:(0,p.useMemo)(()=>f&&I&&{...f,temperatureMin:I.temperatureMin,temperatureMax:I.temperatureMax,moonPhase:I.moonPhase,moonPhaseCode:I.moonPhaseCode},[f,I]),loading:y||b,error:g||w}})(l);return(0,a.jsx)(eo,{location:l,currentDetails:r,isLoading:n||v})},eu=e=>{let{locationProvider:t,locationEntry:l}=e,i="specified"===t,{specifiedLocationData:s,specifiedLocationError:o,isSpecifiedLocationLoading:d}=(0,r.v)(i?l:null);if(i&&d)return(0,a.jsx)("div",{children:"Loading location data..."});if(i&&o)return(0,a.jsxs)("div",{children:["Error loading location data: ",o.message]});let c=i&&s&&l?(0,n.I)(s):void 0;return(0,a.jsx)(ec,{location:c})},em=eu},95002:(e,t,l)=>{"use strict";l.d(t,{c:()=>s});var a=l(76792),n=l(42292),r=l(23233);let i=(0,n.forwardRef)((e,t)=>{let{title:l,titleId:n,desc:r,descId:i,...s}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":n,"aria-describedby":i,...s,children:[r?(0,a.jsx)("desc",{id:i,children:r}):null,void 0===l?(0,a.jsx)("title",{id:n,children:"Rain Heavy"}):l?(0,a.jsx)("title",{id:n,children:l}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{fillRule:"evenodd",d:"M7.982 1.833c-1.303 0-2.391 1.032-2.5 2.37l-.034.407-.405.049c-.67.08-1.209.672-1.209 1.41 0 .724.518 1.307 1.17 1.405l.217.015h4.896l.024.003q.087.008.175.008c1.01 0 1.851-.845 1.851-1.915 0-.946-.66-1.719-1.51-1.882l-.264-.051-.104-.248c-.386-.93-1.279-1.57-2.307-1.57M4.535 3.747C4.843 2.096 6.26.833 7.982.833c1.367 0 2.543.798 3.123 1.95 1.198.352 2.062 1.48 2.062 2.802 0 1.597-1.264 2.915-2.851 2.915a3 3 0 0 1-.245-.01H5.187l-.25-.018H4.92l-.034-.005c-1.168-.16-2.051-1.182-2.051-2.398 0-1.091.71-2.026 1.701-2.322",clipRule:"evenodd","data-figma-bg-blur-radius":20}),(0,a.jsx)("path",{d:"m7.65 9.47-.711 1.954a.5.5 0 1 0 .94.342l.71-1.954a.5.5 0 1 0-.94-.342M4.882 10.816l-.803 2.205a.5.5 0 0 0 .94.342l.802-2.205a.5.5 0 0 0-.94-.342M10.179 10.918l-.766 2.103a.5.5 0 1 0 .94.342l.765-2.103a.5.5 0 0 0-.94-.342"})]})]})}),s=n.forwardRef((e,t)=>(0,a.jsx)(r.h,{ref:t,icon:i,...e}));s.displayName="RainHeavy"},95624:(e,t,l)=>{"use strict";l.d(t,{yW:()=>N});var a=l(95913),n=l(90937);let r="",i="",s=1,o=0,d=0,c=0,u=0,m=!1,h=0,p={adImpression:!1,videoAttempt:!1,videoPlayed:!1,videoStarted:!1,videoCompleted:!1,videoEnd:!1},v={autostart:"auto",interaction:"click",external:"externalLink",playlist:"playlistClick","related-interaction":"nextClick","related-auto":"auto"};function x(e){var t;return null!=(t=v[e])?t:"click"}function f(e){let t=e.split(":").map(Number);if(2===t.length){let[e=0,l=0]=t,a=Math.floor(60*e+l);return isNaN(a)?0:a}if(3===t.length){let[e=0,l=0,a=0]=t,n=Math.floor(3600*e+60*l+a);return isNaN(n)?0:n}return 0}function g(){Object.keys(p).map(e=>{p[e]=!1}),o=0,d=0,i=""}function y(e,t){var l,r,i,s,o,d,c,u,m,h,p,v,x,f,g,y,N,w,b,I,_,j,E,T,A,R,C,S,L,D,M,O,W,H,P,k,F;let G=t||e.getPlaylistItem();return{adBlock:e.getAdBlock(),adsMetricsUnitAndZone:null==G||null==(r=G.custom)||null==(l=r.ctx)?void 0:l.adzone,aspectRatio:null==e||null==(i=e.getConfig())?void 0:i.aspectratio,assetName:(0,a.EY)(null!=(k=null==G||null==(o=G.custom)||null==(s=o.ctx)?void 0:s.assetName)?k:""),collection:null==G||null==(c=G.custom)||null==(d=c.ctx)?void 0:d.pcollid,collectionId:null==G||null==(m=G.custom)||null==(u=m.ctx)?void 0:u.pcollid,contentId:null==G||null==(p=G.custom)||null==(h=p.ctx)?void 0:h.id,entitlements:(0,n.X)(null!=(F=null==G||null==(x=G.custom)||null==(v=x.ctx)?void 0:v.entitlements)?F:[]),iabContent:(0,a.IA)((null==G||null==(g=G.custom)||null==(f=g.ctx)?void 0:f.iab)||{}),id:null==G||null==(N=G.custom)||null==(y=N.ctx)?void 0:y.id,duration:null==G||null==(b=G.custom)||null==(w=b.ctx)?void 0:w.duration,lastmodifieddate:null==G||null==(j=G.custom)||null==(_=j.ctx)||null==(I=_.lastmodifieddate)?void 0:I.toString(),muted:e.getMute(),premiumContent:null==G||null==(T=G.custom)||null==(E=T.ctx)?void 0:E.premium,publishdate:null==G||null==(C=G.custom)||null==(R=C.ctx)||null==(A=R.publishdate)?void 0:A.toString(),providerName:null==G||null==(L=G.custom)||null==(S=L.ctx)?void 0:S.providername,tagsGeo:(0,n.X)(null==G||null==(M=G.custom)||null==(D=M.ctx)?void 0:D.tagsGeo),tagsKeyword:(0,n.X)(null==G||null==(W=G.custom)||null==(O=W.ctx)?void 0:O.tagsKeyword),tagsStorm:(0,n.X)(null==G||null==(P=G.custom)||null==(H=P.ctx)?void 0:H.tagsStorm)}}let N=[{eventName:"ready",callback:e=>{let{player:t,trackVideoEvent:l}=e;window.addEventListener("beforeunload",()=>{if(p.videoStarted&&!p.videoEnd){var e,a;let n=t.getPlaylistItem(),d=f(null==n||null==(a=n.custom)||null==(e=a.ctx)?void 0:e.duration);n&&!p.videoAttempt&&l&&(l({eventName:"video-end",eventAttributes:{errorMessage:i,contentWatchedSeconds:o,playReason:r,videoView:s,...y(t)}}),l({eventName:"video-ended",eventAttributes:{errorMessage:i,videoWatchedLength:o,playMethod:r,videoView:s,...y(t),videoLength:d,adLength:c,adWatchedLength:u,adSkipped:m,exitReason:"pageExit"}})),p.videoEnd=!0}})}},{eventName:"adImpression",callback:async e=>{let{player:t,trackVideoEvent:l}=e,a=t.getPlaylistItem();if(i="",g(),console.debug("JW Player callback - adImpression eventSentFlags:",p),p.adImpression=!0,a&&!p.videoAttempt&&l){var n,o;let e=f(null==a||null==(o=a.custom)||null==(n=o.ctx)?void 0:n.duration);l({eventName:"video-attempt",eventAttributes:{errorMessage:i,playReason:r,videoView:s,...y(t)}}),l({eventName:"video-attempted",eventAttributes:{errorMessage:i,playMethod:r,videoLength:e,videoView:s,...y(t)}}),p.videoAttempt=!0}a&&!p.videoPlayed&&l&&(l({eventName:"video-played",eventAttributes:{errorMessage:i,playReason:r,videoView:s,...y(t)}}),p.videoPlayed=!0)}},{eventName:"viewable",callback:async e=>{let{event:t}=e;s=null==t?void 0:t.viewable}},{eventName:"playlistItem",callback:async e=>{let{player:t,trackVideoEvent:l}=e;if(r=x("playlist"),p.videoStarted&&!p.videoCompleted&&!p.videoEnd){var a,n;let e=t.getPlaylistIndex(),d=t.getPlaylistItem(e-1),h=f(null==d||null==(n=d.custom)||null==(a=n.ctx)?void 0:a.duration);l({eventName:"video-end",eventAttributes:{errorMessage:i,contentWatchedSeconds:o,playReason:r,videoView:s,...y(t,d)}}),l({eventName:"video-ended",eventAttributes:{errorMessage:i,videoWatchedLength:o,playMethod:r,videoView:s,...y(t),videoLength:h,adLength:c,adWatchedLength:u,adSkipped:m,exitReason:"nextVideo"}}),p.videoEnd=!0}}},{eventName:"playAttempt",callback:async e=>{let{player:t,trackVideoEvent:l}=e,a=t.getPlaylistItem();if(p.adImpression||(i="",g()),console.debug("JW Player callback - playAttempt eventSentFlags:",p),a&&!p.videoAttempt&&l){var n,o;let e=f(null==a||null==(o=a.custom)||null==(n=o.ctx)?void 0:n.duration);p.videoAttempt=!0,l({eventName:"video-attempt",eventAttributes:{errorMessage:i,playReason:r,videoView:s,...y(t)}}),l({eventName:"video-attempted",eventAttributes:{errorMessage:i,videoLength:e,playMethod:r,videoView:s,...y(t)}})}}},{eventName:"firstFrame",callback:async e=>{let{player:t,trackVideoEvent:l}=e;console.debug("JW Player callback - firstFrame eventSentFlags:",p);let a=t.getPlaylistItem();if(a&&!p.videoPlayed&&l&&(l({eventName:"video-played",eventAttributes:{errorMessage:i,playReason:r,videoView:s,...y(t)}}),p.videoPlayed=!0),a&&!p.videoStarted&&l){var n,o;let e=f(null==a||null==(o=a.custom)||null==(n=o.ctx)?void 0:n.duration);l({eventName:"video-started",eventAttributes:{errorMessage:i,playReason:r,videoView:s,...y(t)}}),l({eventName:"video-begin",eventAttributes:{errorMessage:i,playMethod:r,videoView:s,...y(t),videoLength:e,adLength:c,adWatchedLength:u,adSkipped:m}}),p.videoStarted=!0}}},{eventName:"complete",callback:async e=>{var t,l;let{player:a,trackVideoEvent:n}=e,d=a.getPlaylistItem(),h=f(null==d||null==(l=d.custom)||null==(t=l.ctx)?void 0:t.duration);console.debug("JW Player callback - complete eventSentFlags:",p),d&&!p.videoCompleted&&n&&(n({eventName:"video-completed",eventAttributes:{errorMessage:i,playReason:r,videoView:s,...y(a)}}),p.videoCompleted=!0),p.videoStarted&&!p.videoEnd&&(n({eventName:"video-end",eventAttributes:{errorMessage:i,contentWatchedSeconds:o,playReason:r,videoView:s,...y(a)}}),n({eventName:"video-ended",eventAttributes:{errorMessage:i,videoWatchedLength:o,playMethod:r,videoView:s,...y(a),videoLength:h,adLength:c,adWatchedLength:u,adSkipped:m,exitReason:"complete"}}),p.videoEnd=!0)}},{eventName:"adStarted",callback:async e=>{let{event:t,player:l,trackVideoEvent:a}=e,n=l.getPlaylistItem();c=t.duration,console.debug("JW Player callback - adStarted eventSentFlags:",p),n&&a&&a({eventName:"ad-started",eventAttributes:{errorMessage:i,playReason:r,videoView:s,...y(l)}})}},{eventName:"adSkipped",callback:async e=>{let{player:t,trackVideoEvent:l}=e,a=t.getPlaylistItem();m=!0,a&&l&&l({eventName:"ad-skipped",eventAttributes:{errorMessage:i,playReason:r,videoView:s,...y(t)}})}},{eventName:"adComplete",callback:async e=>{let{event:t,player:l,trackVideoEvent:a}=e,n=l.getPlaylistItem();u=t.duration,console.debug("JW Player callback - adComplete eventSentFlags:",p),n&&a&&a({eventName:"ad-complete",eventAttributes:{errorMessage:i,playReason:r,videoView:s,...y(l)}})}},{eventName:"beforePlay",callback:async e=>{let{event:t}=e;r=x(null==t?void 0:t.playReason)}},{eventName:"adError",callback:async e=>{let{event:t}=e;console.error("Video ad error:",t)}},{eventName:"error",callback:async e=>{let{event:t}=e;i=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-d;o+=e,d=t.position}}},{eventName:"seek",callback:e=>{let{event:t}=e;"number"==typeof(null==t?void 0:t.offset)&&(d=t.offset)}},{eventName:"adTime",callback:async e=>{let{event:t}=e,l=Date.now();l-h>=1e3&&(u=parseFloat(t.position.toFixed(2)),h=l)}}]},96304:(e,t)=>{"use strict";var l,a,n,r,i;Object.defineProperty(t,"__esModule",{value:!0}),t.PrecipIntensityCode=t.PrecipTypeCode=t.ThunderCategory=t.PrecipType=t.MoonPhaseCode=void 0,function(e){e.WANING_GIBBOUS="WNG",e.WAXING_CRESCENT="WXC",e.FIRST_QUARTER="FQ",e.WANING_CRESCENT="WNC",e.LAST_QUARTER="LQ",e.FULL="F",e.WAXING_GIBBOUS="WXG",e.NEW="N"}(l||(t.MoonPhaseCode=l={})),function(e){e.RAIN="rain",e.SNOW="snow",e.PRECIP="precip"}(a||(t.PrecipType=a={})),function(e){e.NO_THUNDER="0",e.THUNDER_POSSIBLE="1",e.THUNDER_EXPECTED="2",e.SEVERE_THUNDERSTORMS_POSSIBLE="3",e.SEVERE_THUNDERSTORMS_LIKELY="4",e.HIGH_RISK_OF_SEVERE_THUNDERSTORMS="5"}(n||(t.ThunderCategory=n={})),function(e){e[e.NONE=0]="NONE",e[e.RAIN=1]="RAIN",e[e.SNOW=2]="SNOW",e[e.FREEZING_RAIN=3]="FREEZING_RAIN",e[e.THUNDER=4]="THUNDER",e[e.SLEET=5]="SLEET",e[e.HAIL=6]="HAIL"}(r||(t.PrecipTypeCode=r={})),function(e){e[e.NONE=0]="NONE",e[e.VERY_LIGHT=1]="VERY_LIGHT",e[e.LIGHT=2]="LIGHT",e[e.MODERATE=3]="MODERATE",e[e.HEAVY=4]="HEAVY"}(i||(t.PrecipIntensityCode=i={}))},98066:(e,t,l)=>{"use strict";function a(e){return"string"!=typeof e}function n(e){return"object"==typeof e&&null!==e&&"url"in e&&("mimeType"in e||"seo"in e&&"altText"in e.seo)}l.d(t,{QY:()=>a,bt:()=>n})},99343:(e,t,l)=>{"use strict";l.d(t,{c:()=>o});var a=l(42292),n=l(92700),r=l(55198),i=l(95913),s=l(153);let o=()=>{let e=(0,n.N)(),t=(0,s.A)(),l=(0,r.usePathname)();return(0,a.useCallback)(a=>{var n,r,s,o,d,c;let{eventName:u,eventAttributes:m={}}=a;if(!(null==(r=window.mParticle)||null==(n=r.isInitialized)?void 0:n.call(r)))return void console.warn("MParticle is not initialized");let h={...m,author:(null==t?void 0:t.author)||"",contentId:(null==t?void 0:t.contentId)||m.contentId,...e,url:l?(0,i.EY)(l):""};try{null==(c=window.mParticle)||null==(d=c.logEvent)||d.call(c,u,null==(o=window.mParticle)||null==(s=o.EventType)?void 0:s.Other,h),console.debug('MParticle: Video Event tracked - "'.concat(u,'"'),h)}catch(e){console.error('MParticle: Failed to track Video Event - "'.concat(u,'"'),e)}},[null==t?void 0:t.author,null==t?void 0:t.contentId,e,l])}},99838:(e,t,l)=>{"use strict";function a(e){if(!e)return"";let t=("number"==typeof e?new Date(e).toISOString():e instanceof Date?e.toISOString():e).replace(/\.\d+/,"").replace("Z","+0000").replace(/\s+/,"T").replace(/\s+/g,"").replace(/[A-Z]{3,}/,""),l=/([+-])(\d{2})(\d{2})$/;l.test(t)&&(t=t.replace(l,"$1$2:$3"));let a=t.replace(/(\d{4})-(\d{2})-(\d{2})/,"$1/$2/$3").replace("T"," ");return"Invalid Date"===new Date(a).toString()?"Invalid Date"!==new Date(t).toString()?t:"string"==typeof e?e:"":a}l.d(t,{$:()=>a})}}]);