(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]||(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]=[])).push(["object"==typeof document?document.currentScript:void 0,238430,e=>{"use strict";var t=e.i(902875),r=e.i(247865);e.s(["default",0,function({candidate:e,failedMessage:i="Authentication failed. Please try again.",protectMessage:a="Remove your adblocker.",fetch:n,refresh:o,getCustomAccountInfo:l}){let[s,c]=(0,r.useState)(""),[d,u]=(0,r.useState)(!1),[h,f]=(0,r.useState)(!1),[p,m]=(0,r.useState)(!1),g=(0,r.useRef)([]);(0,r.useEffect)(()=>{e.id!==g.current[0]&&(g.current=[e.id],e.transactIDs&&g.current.push(...e.transactIDs))},[e.id,e.transactIDs]);let v=(0,r.useCallback)(()=>{try{n("/?adm_get_token=1").then(e=>{e.ok&&o()}).catch(()=>{c(i)})}catch{c(i)}},[n,i,o]),y=(0,r.useMemo)(()=>"u">typeof window?window:{admiral:{}},[]);return(0,r.useEffect)(()=>{typeof window>"u"||(y.admiral=y.admiral||function(...e){(y.admiral.q=y.admiral.q||[]).push(e)},y.admiral("after","measure.detected",function(t){if("abr"==e.requirement)t.adblocking?(c(a),u(!0)):m(!0);else if("account"==e.requirement||"benefits"==e.requirement){let t=!!l;y.admiral("after","visitor.latest",function(r){var i;if("account"===e.requirement)(t?l().registered:r.status.registered)||h||(c(a),u(!0));else if("benefits"===e.requirement){let r=[];if(t)r=l().benefits;else{let e=document.cookie.split(";");e&&(r=(null==(i=e.find(e=>e.startsWith("admbenefits=")))?void 0:i.split(","))??[])}if(r){let t=e.benefits??[];if(0==t.length)return void m(!0);let i=!1;for(let e of t)r.includes(e)&&(i=!0);i?m(!0):(c(a),u(!0))}else c(a),u(!0)}})}}))},[]),(0,r.useEffect)(()=>{p&&(m(!1),v())},[p,v]),(0,r.useEffect)(()=>{h||!d||(f(!0),y.admiral("targeting","force",{candidateIDs:g.current}))},[h,d,g,y]),(0,t.jsxs)("div",{children:[s||null," "]})}])},251590,986044,e=>{"use strict";var t=e.i(247865),r=e.i(855128),i=e.i(271359),a=e.i(982538),n=e.i(902875),o=Object.defineProperty,l=(e,t)=>o(e,"name",{value:t,configurable:!0});function s(e){let o=e+"CollectionProvider",[s,c]=(0,r.createContextScope)(o),[d,u]=s(o,{collectionRef:{current:null},itemMap:new Map}),h=l(e=>{let{scope:r,children:i}=e,a=t.useRef(null),o=t.useRef(new Map).current;return(0,n.jsx)(d,{scope:r,itemMap:o,collectionRef:a,children:i})},"CollectionProvider");h.displayName=o;let f=e+"CollectionSlot",p=(0,a.createSlot)(f),m=t.forwardRef((e,t)=>{let{scope:r,children:a}=e,o=u(f,r),l=(0,i.useComposedRefs)(t,o.collectionRef);return(0,n.jsx)(p,{ref:l,children:a})});m.displayName=f;let g=e+"CollectionItemSlot",v="data-radix-collection-item",y=(0,a.createSlot)(g),w=t.forwardRef((e,r)=>{let{scope:a,children:o,...l}=e,s=t.useRef(null),c=(0,i.useComposedRefs)(r,s),d=u(g,a);return t.useEffect(()=>(d.itemMap.set(s,{ref:s,...l}),()=>void d.itemMap.delete(s))),(0,n.jsx)(y,{...{[v]:""},ref:c,children:o})});function x(r){let i=u(e+"CollectionConsumer",r);return t.useCallback(()=>{let e=i.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${v}]`));return Array.from(i.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[i.collectionRef,i.itemMap])}return w.displayName=g,l(x,"useCollection"),[{Provider:h,Slot:m,ItemSlot:w},x,c]}l(s,"createCollection");var c=new WeakMap,d=class e extends Map{static{l(this,"OrderedDict")}#e;constructor(e){super(e),this.#e=[...super.keys()],c.set(this,!0)}set(e,t){return c.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,r){let i,a=this.has(t),n=this.#e.length,o=f(e),l=o>=0?o:n+o,s=l=n?-1:l;if(s===this.size||a&&s===this.size-1||-1===s)return this.set(t,r),this;let c=this.size+ +!a;o=this.size&&(i=this.size-1),this.at(i)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let i=r+t;return i=this.size&&(i=this.size-1),this.keyAt(i)}find(e,t){let r=0;for(let i of this){if(Reflect.apply(e,t,[i,r,this]))return i;r++}}findIndex(e,t){let r=0;for(let i of this){if(Reflect.apply(e,t,[i,r,this]))return r;r++}return -1}filter(t,r){let i=[],a=0;for(let e of this)Reflect.apply(t,r,[e,a,this])&&i.push(e),a++;return new e(i)}map(t,r){let i=[],a=0;for(let e of this)i.push([e[0],Reflect.apply(t,r,[e,a,this])]),a++;return new e(i)}reduce(...e){let[t,r]=e,i=0,a=r??this.at(0);for(let r of this)a=0===i&&1===e.length?r:Reflect.apply(t,this,[a,r,i,this]),i++;return a}reduceRight(...e){let[t,r]=e,i=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let a=this.at(r);i=r===this.size-1&&1===e.length?a:Reflect.apply(t,this,[i,a,r,this])}return i}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),i=this.get(r);t.set(r,i)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let i=new e,a=this.size-1;if(void 0===t)return i;t0&&(a=r-1);for(let e=t;e=0?i:r+i;return a=r?-1:a}function f(e){return e!=e||0===e?0:Math.trunc(e)}function p(e,t){if(e===t)return!0;if("object"!=typeof e||"object"!=typeof t||null==e||null==t)return!1;let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(let i of r)if(!Object.prototype.hasOwnProperty.call(t,i)||e[i]!==t[i])return!1;return!0}function m(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function g(e,t){return e[1].element&&t[1].element?m(e[1].element,t[1].element)?-1:1:0}function v(e){return new MutationObserver(t=>{for(let r of t)if("childList"===r.type)return void e()})}l(u,"at"),l(h,"toSafeIndex"),l(f,"toSafeInteger"),l(function(e){let o=e+"CollectionProvider",[s,c]=(0,r.createContextScope)(o),[u,h]=s(o,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new d,setItemMap:l(()=>void 0,"setItemMap")}),f=l(({state:e,...t})=>e?(0,n.jsx)(y,{...t,state:e}):(0,n.jsx)(m,{...t}),"CollectionProvider");f.displayName=o;let m=l(e=>{let t=S();return(0,n.jsx)(y,{...e,state:t})},"CollectionInit");m.displayName=o+"Init";let y=l(e=>{let{scope:r,children:a,state:o}=e,l=t.useRef(null),[s,c]=t.useState(null),d=(0,i.useComposedRefs)(l,c),[h,f]=o;return t.useEffect(()=>{if(!s)return;let e=v(()=>{});return e.observe(s,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[s]),(0,n.jsx)(u,{scope:r,itemMap:h,setItemMap:f,collectionRef:d,collectionRefObject:l,collectionElement:s,children:a})},"CollectionProviderImpl");y.displayName=o+"Impl";let w=e+"CollectionSlot",x=(0,a.createSlot)(w),b=t.forwardRef((e,t)=>{let{scope:r,children:a}=e,o=h(w,r),l=(0,i.useComposedRefs)(t,o.collectionRef);return(0,n.jsx)(x,{ref:l,children:a})});b.displayName=w;let C=e+"CollectionItemSlot",j=(0,a.createSlot)(C),A=t.forwardRef((e,r)=>{let{scope:a,children:o,...l}=e,s=t.useRef(null),[c,u]=t.useState(null),f=(0,i.useComposedRefs)(r,s,u),{setItemMap:m}=h(C,a),v=t.useRef(l);p(v.current,l)||(v.current=l);let y=v.current;return t.useEffect(()=>(m(e=>c?e.has(c)?e.set(c,{...y,element:c}).toSorted(g):(e.set(c,{...y,element:c}),e.toSorted(g)):e),()=>{m(e=>c&&e.has(c)?(e.delete(c),new d(e)):e)}),[c,y,m]),(0,n.jsx)(j,{"data-radix-collection-item":"",ref:f,children:o})});function S(){return t.useState(new d)}function k(t){let{itemMap:r}=h(e+"CollectionConsumer",t);return r}return A.displayName=C,l(S,"useInitCollection"),l(k,"useCollection"),[{Provider:f,Slot:b,ItemSlot:A},{createCollectionScope:c,useCollection:k,useInitCollection:S}]},"createCollection"),l(p,"shallowEqual"),l(m,"isElementPreceding"),l(g,"sortByDocumentPosition"),l(v,"getChildListObserver"),e.s(["createCollection",0,s],251590);var y=Object.defineProperty,w=t.createContext(void 0);function x(e){let r=t.useContext(w);return e||r||"ltr"}y(x,"name",{value:"useDirection",configurable:!0}),e.s(["useDirection",0,x],986044)},352573,e=>{"use strict";let t=(0,e.i(514514).default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);e.s(["ChevronLeft",0,t],352573)},163163,e=>{"use strict";let t=(0,e.i(514514).default)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);e.s(["Info",0,t],163163)},454722,498324,e=>{"use strict";var t=e.i(514514);let r=(0,t.default)("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);e.s(["Sun",0,r],454722);let i=(0,t.default)("thermometer",[["path",{d:"M14 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0Z",key:"17jzev"}]]);e.s(["Thermometer",0,i],498324)},965257,e=>{"use strict";e.i(288906);var t=e.i(247865),r=e.i(725287),i=e.i(546446),a=e.i(540768),n=e.i(682142),o=e.i(782937),l=e.i(695881),s=e.i(333350),c=e.i(64412),d=e.i(950771),u=e.i(537989),h=e.i(695203),f=e.i(158662),p=e.i(358273),m=e.i(777638),g=e.i(122124),v=e.i(924776),y=e.i(409628),w=e.i(605781),x=e.i(289681);let b=(0,l.createLogger)("useTrackAlertSubscriptionChanged");e.s(["useTrackAlertSubscriptionChanged",0,()=>{let e=(0,i.useAtomValue)(u.pageIdAtom),l=(0,i.useAtomValue)(d.pageLocaleAtom),C=(0,i.useAtomValue)(h.deviceClassAtom),j=(0,i.useAtomValue)(f.experimentJoinListAtom),A=(0,r.usePathname)(),{location:S}=(0,c.useLocation)(),k=(0,v.useIsHightouchReady)(),I=(0,t.useCallback)(({name:t,status:r,alertId:i})=>{let s=(0,n.getCICookie)(),c=s?.["TWC-GeoIP-Country"]??(0,a.getCookie)("twc-location-country"),d=s?.["TWC-GeoIP-Region"]??(0,a.getCookie)("twc-location-region"),u=s?.["TWC-Privacy"]??(0,a.getCookie)("twc-privacy"),h=window.DprSdk?.getGdprConsentOptInsString()??"",f=window.DprSdk?.getCcpaSaleOptInString()??"",v=window.navigator?.globalPrivacyControl??!1,w=h?.includes("functional-technology")??!1,b=window.DprSdk?.getUserConsent("geographically-relevant-advertising")!==!1,k=window.DprSdk?.getUserConsent("interest-based-ads")!==!1,I=(0,x.getConsentAuthorization)("sale-of-data"),E=(0,x.getConsentAuthorization)("sensitive-data"),T=navigator?.cookieEnabled??!1,D=(0,a.getCookie)("partner")||"",M=(0,o.getPartnerByPattern)(D)??D,R=(0,p.getMetricsSession)(),N=R?.sessionId||"",P=new Date(R?.sessionStartTime||0).toISOString(),L=new Date,O=L.getHours(),_=y.WEEK_DAYS[L.getDay()]??"";return{name:t,status:r?"enabled":"disabled",alertId:i??null,pageId:e??"",url:(0,g.getAnonymizedPath)(A??""),referrer:document.referrer,locale:l,deviceClass:C,partner:M,sessionId:N,sessionStartTime:P,siteMode:"normal",dayOfWeek:_,hourOfDay:O,regime:u??"",cookiesEnabled:T,gpcSignalOptOut:v,functionalTechnologies:w,geographicallyRelevantAds:b,interestBasedAds:k,priv:h,privProducts:f,saleOfDataAuthorization:I,sensitiveDataAuthorization:E,campaign:(0,m.getCampaign)(),experimentJoinList:j,weatherMode:"normal",physicalCountry:c??"",physicalState:d??"",wlocCity:S?.city??null,wlocCountry:S?.countryCode??null,wlocState:S?.adminDistrictCode??null,wlocDMA:S?.dmaCd??null,samsungVersion:(0,m.getSamsungVersion)(),appVersion:"0404f88080af60073c643d025e42bd9b3fcc20b4".slice(0,10)}},[e,l,C,j,A,S]);return(0,t.useCallback)(e=>{if(s.default){if(!k)return void b.warn('Hightouch: Event "alert-subscription-changed" skipped - SDK not ready');try{(0,w.trackAlertSubscriptionChanged)(I(e)),b.info('Hightouch: Event "alert-subscription-changed" tracked')}catch(e){b.error('Hightouch: Event "alert-subscription-changed" failed',{error:e})}}},[k,I])}])},551699,e=>{"use strict";var t=e.i(247865),r=e.i(333350);let i=2e3,a=[0,.25,.5,.75,1],n=e=>e.right-e.left>0&&e.bottom-e.top>0;e.s(["useFullVisibilityOnce",0,(e,{targets:o,dwellMs:l=i,disabled:s=!1})=>{let[c,d]=(0,t.useState)(!1),u=(0,t.useRef)(null),h=(0,t.useRef)(!1),f=(0,t.useRef)(e);(0,t.useEffect)(()=>{f.current=e},[e]),(0,t.useEffect)(()=>{if(s||c||h.current||!r.default||0===o.length)return;let e=new Map,t=()=>{u.current&&(clearTimeout(u.current),u.current=null)},i=()=>{u.current=null,h.current||(h.current=!0,f.current(),d(!0))},p=new IntersectionObserver(r=>{let a;if(r.forEach(t=>{e.set(t.target,t.boundingClientRect)}),e.sizenull!==e.rootBounds)?.rootBounds??null,c=s?{width:s.width,height:s.height}:{width:window.innerWidth,height:window.innerHeight};((e,t)=>{if(!e||!n(e)||t.width=0&&e.bottom=t.height,a=e.left>=0&&e.right=t.width;return(r||i)&&(a||o)})(0===(a=[...e.values()].filter(n)).length?null:a.reduce((e,t)=>({top:Math.min(e.top,t.top),left:Math.min(e.left,t.left),bottom:Math.max(e.bottom,t.bottom),right:Math.max(e.right,t.right)}),{top:1/0,left:1/0,bottom:-1/0,right:-1/0}),c)?u.current||h.current||(u.current=setTimeout(i,l)):t()},{threshold:a});return o.forEach(e=>p.observe(e)),()=>{t(),p.disconnect()}},[o,s,c,l])}])},156869,e=>{"use strict";var t=e.i(247865),r=e.i(1567),i=e.i(782552),a=e.i(551699);e.s(["useModuleViewed",0,({moduleId:e,modulePosition:n,enabled:o=!0})=>{let l=(0,r.useTrackModuleViewed)(),s=(0,i.useTrackModuleViewed)(),c=!o||!e,[d,u]=(0,t.useState)(null),h=(0,t.useCallback)(e=>{u(e)},[]),f=(0,t.useMemo)(()=>d&&!c?[d]:[],[d,c]),p=(0,t.useCallback)(()=>{e&&(l({moduleId:e,modulePosition:n}),s({moduleId:e,modulePosition:n}))},[l,s,e,n]);return(0,a.useFullVisibilityOnce)(p,{targets:f,disabled:c}),h}])},279887,e=>{"use strict";var t=e.i(487709),r=e.i(737801),i=e.i(247865);e.s(["useTrackEmailSubscription",0,()=>{let e="alert-subscription-changed",a=(0,r.useEventAttributes)();return(0,i.useCallback)(({name:r,status:i})=>{let n={...a,name:r,status:i?"enabled":"disabled"};if(!(0,t.canLogEvent)())return void console.warn("MParticle is not loaded");try{window.mParticle?.logEvent?.(e,window.mParticle?.EventType?.Other,n),console.debug(`MParticle: Event "${e}" tracked`,n)}catch(t){console.error(`MParticle: Event "${e}" failed`,t)}},[a])}])},1567,782552,e=>{"use strict";var t=e.i(487709),r=e.i(737801),i=e.i(546446),a=e.i(513539),n=e.i(247865);e.s(["useTrackModuleViewed",0,()=>{let e="module-viewed",o=(0,r.useEventAttributes)(),l=(0,i.useAtomValue)(a.layoutStateAtom);return(0,n.useCallback)(({moduleId:r,modulePosition:i})=>{if(!(0,t.canLogEvent)())return void console.warn("MParticle is not loaded");let a={...o,moduleId:r,modulePosition:String(i),layoutState:l};try{window.mParticle?.logEvent?.(e,window.mParticle?.EventType?.Other,a),console.debug(`MParticle: Event "${e}" tracked`,a)}catch(t){console.error(`MParticle: Event "${e}" failed`,t)}},[o,l])}],1567);var o=e.i(725287),l=e.i(540768),s=e.i(682142),c=e.i(782937),d=e.i(695881),u=e.i(333350),h=e.i(64412),f=e.i(950771),p=e.i(537989),m=e.i(695203),g=e.i(158662),v=e.i(358273),y=e.i(122124),w=e.i(777638),x=e.i(727365),b=e.i(896363),C=e.i(924776),j=e.i(409628),A=e.i(605781),S=e.i(289681);let k=(0,d.createLogger)("useTrackModuleViewed"),I=new Set(["city","locality","neighborhood","airport","postal","poi","ski","geocode","locid"]),E=new Set(["mapbox","twc-poi","twc-v3-loc-search","twc-v3-loc-point"]),T=[];function D(e){try{(0,A.trackModuleViewed)(e),k.info(`Hightouch: Event "module-viewed" tracked - ${e.moduleId}`)}catch(e){k.error('Hightouch: Event "module-viewed" failed',{error:e})}}e.s(["useTrackModuleViewed",0,()=>{let e=(0,o.usePathname)(),t=(0,i.useAtomValue)(p.pageIdAtom),r=(0,i.useAtomValue)(f.pageLocaleAtom),d=(0,i.useAtomValue)(m.deviceClassAtom),A=(0,i.useAtomValue)(a.layoutStateAtom),k=(0,i.useAtomValue)(g.experimentJoinListAtom),{location:M}=(0,h.useLocation)(),R=(0,C.useIsHightouchReady)(),N=(0,n.useCallback)(({moduleId:i,modulePosition:a})=>{let n=(0,s.getCICookie)(),o=n?.["TWC-GeoIP-Country"]??(0,l.getCookie)("twc-location-country"),u=n?.["TWC-GeoIP-Region"]??(0,l.getCookie)("twc-location-region"),h=n?.["TWC-Privacy"]??(0,l.getCookie)("twc-privacy"),f=window.DprSdk?.getGdprConsentOptInsString()??"",p=window.DprSdk?.getCcpaSaleOptInString()??"",m=window.navigator?.globalPrivacyControl??!1,g=f?.includes("functional-technology")??!1,C=window.DprSdk?.getUserConsent("geographically-relevant-advertising")!==!1,T=window.DprSdk?.getUserConsent("interest-based-ads")!==!1,D=(0,S.getConsentAuthorization)("sale-of-data"),R=(0,S.getConsentAuthorization)("sensitive-data"),N=navigator?.cookieEnabled??!1,P=(0,l.getCookie)("partner")||"",L=(0,c.getPartnerByPattern)(P)??P,O=(0,v.getMetricsSession)(),_=O?.sessionId||"",H=new Date(O?.sessionStartTime||0).toISOString(),z=new Date,U=z.getHours(),F=j.WEEK_DAYS[z.getDay()]??"",q="article"===t||"video"===t?(0,y.stripLastPartOfSlug)(e??""):(0,y.getAnonymizedPath)(e??""),V=(0,x.normalizeWlocType)(M?.type),G=M?.featureSource??null;return{moduleId:i,modulePosition:String(a),layoutState:A??void 0,pageId:t??"",url:q,referrer:document.referrer,locale:r,deviceClass:d,partner:L,sessionId:_,sessionStartTime:H,siteMode:"normal",dayOfWeek:F,hourOfDay:U,regime:h??"",cookiesEnabled:N,gpcSignalOptOut:m,functionalTechnologies:g,geographicallyRelevantAds:C,interestBasedAds:T,priv:f,privProducts:p,saleOfDataAuthorization:D,sensitiveDataAuthorization:R,campaign:(0,w.getCampaign)(),experimentJoinList:k,weatherMode:"normal",physicalCountry:o??"",physicalState:u??"",wlocCity:M?.city??null,wlocCountry:M?.countryCode??null,wlocState:M?.adminDistrictCode??null,wlocDMA:M?.dmaCd??null,wlocId:M?.placeId??null,wlocFeatureId:M?.featureId??null,wlocFeatureSource:null!=G&&E.has(G)?G:void 0,wlocTags:M?.tags?.length?(0,b.parseArrayToString)(M.tags):null,wlocType:null!==V&&I.has(V)?V:void 0,samsungVersion:(0,w.getSamsungVersion)(),appVersion:"0404f88080af60073c643d025e42bd9b3fcc20b4".slice(0,10)}},[e,t,r,d,A,k,M]);return(0,n.useEffect)(()=>{if(!R||0===T.length)return;let e=T;T=[],e.forEach(D)},[R]),(0,n.useCallback)(e=>{if(!u.default)return;let t=N(e);R?D(t):T.push(t)},[R,N])}],782552)},695478,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.findSubscriptionGroup=void 0,r.getMorningBriefAttrs=function(e){return{location:e.placeId,latitude:e.latitude,longitude:e.longitude,dmaCode:e.dmaCd||null,adminDistrict:e.adminDistrict,adminDistrictCode:e.adminDistrictCode||null,postalCode:e.postalCode}},r.findSubscriptionGroup=(e,t,r)=>e&&Array.isArray(e)?e.find(e=>e.subscriptionGroupName===t)||r||null:r||null},155123,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.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},(r,i)=>{let a={};return t.forEach(t=>{let r=e[t];void 0!==r&&Array.isArray(r)&&i{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.createTransformer=function(e){return t=>((0,i.fromCompactResponse)(t)||[]).map((r,i)=>e(r,i,t))};let i=e.r(155123)},228071,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getHourlyAirQualityForecast=l,r.transformHourlyAirQualityForecast=s;let i=e.r(267084),a=e.r(678651),n=e.r(414655),o=e.r(992591);async function l(e){let t=(0,i.getHourlyAirQualityForecastUrlConfig)(e),r=(0,a.urlFrom)(t),o=await fetch(r,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}});return s(await (0,n.handleFetchResponse)(o))}function s(e){let t=e.globalairquality,r={validTimeGmt:t.validTimeGmt,airQualityIndex:t.airQualityIndex,airQualityCategory:t.airQualityCategory,airQualityCategoryIndex:t.airQualityCategoryIndex,airQualityCategoryIndexColor:t.airQualityCategoryIndexColor,primaryPollutant:t.primaryPollutant},i=(0,o.createTransformer)((e,r)=>{let i=e=>{let i=t.pollutants[e];if(i)return{name:i.name,phrase:i.phrase,amount:i.amount[r]??0,unit:i.unit,category:i.category[r]??"",categoryIndex:i.categoryIndex[r]??0,index:i.index[r]??0}};return{...e,pollutants:{CO:i("CO"),NO2:i("NO2"),O3:i("O3"),PM10:i("PM10"),PM2_5:i("PM2.5"),SO2:i("SO2")},messages:{general:t.messages.General[r]??{title:"",text:""},sensitiveGroup:t.messages["Sensitive Group"][r]??{title:"",text:""}}}})(r);return{latitude:t.latitude,longitude:t.longitude,source:t.source,disclaimer:t.disclaimer,expireTimeGmt:t.expireTimeGmt,forecast:i}}},980108,(e,t,r)=>{"use strict";var i,a,n,o,l,s,c,d;Object.defineProperty(r,"__esModule",{value:!0}),r.PollutantType=r.AirQualityCategory=r.AirQualityForecastDuration=r.AirQualityScale=void 0,(l=i||(r.AirQualityScale=i={})).EPA="EPA",l.HJ6332012="HJ6332012",l.ATMO="ATMO",l.UBA="UBA",l.DAQI="DAQI",l.NAQI="NAQI",l.IMECA="IMECA",l.CAQI="CAQI",l.CAI="CAI",(s=a||(r.AirQualityForecastDuration=a={})).TWELVE_HOUR="12hour",s.TWENTY_FOUR_HOUR="24hour",s.FORTY_EIGHT_HOUR="48hour",s.SEVENTY_TWO_HOUR="72hour",(c=n||(r.AirQualityCategory=n={})).GOOD="Good",c.MODERATE="Moderate",c.UNHEALTHY_FOR_SENSITIVE_GROUPS="Unhealthy for Sensitive Groups",c.UNHEALTHY="Unhealthy",c.VERY_UNHEALTHY="Very Unhealthy",c.HAZARDOUS="Hazardous",(d=o||(r.PollutantType=o={})).CO="CO",d.NO2="NO2",d.O3="O3",d.PM10="PM10",d.PM2_5="PM2.5",d.SO2="SO2"},267084,(e,t,r)=>{"use strict";e.i(288906),Object.defineProperty(r,"__esModule",{value:!0}),r.getGlobalAirQualityUrlConfig=function({geocode:e,language:t,scale:r}){return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/globalAirQuality",query:{geocode:e,language:t,scale:r,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},r.getHourlyAirQualityForecastUrlConfig=function({geocode:e,language:t,scale:r,duration:i}){return{host:"api.weather.com",protocol:"https",pathname:`/v3/wx/globalAirQuality/forecast/hourly/${i}`,query:{geocode:e,language:t,scale:r,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},r.getKoreaAirQualityUrlConfig=function({placeId:e,language:t}){return{host:"api.weather.com",protocol:"https",pathname:"/v2/globalairquality",query:{placeid:e,language:t,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}}},467741,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getAirQualityIndexMax=r.getAirQualityScale=void 0;let i=e.r(980108),a={US:i.AirQualityScale.EPA,CN:i.AirQualityScale.HJ6332012,FR:i.AirQualityScale.ATMO,DE:i.AirQualityScale.UBA,GB:i.AirQualityScale.DAQI,IN:i.AirQualityScale.NAQI,MX:i.AirQualityScale.IMECA,ES:i.AirQualityScale.CAQI},n={[i.AirQualityScale.UBA]:100,[i.AirQualityScale.NAQI]:500,[i.AirQualityScale.IMECA]:300,[i.AirQualityScale.HJ6332012]:300,[i.AirQualityScale.EPA]:500,[i.AirQualityScale.DAQI]:10,[i.AirQualityScale.CAQI]:100,[i.AirQualityScale.ATMO]:10,[i.AirQualityScale.CAI]:500};r.getAirQualityScale=({countryCode:e})=>a[e]||i.AirQualityScale.EPA,r.getAirQualityIndexMax=e=>n[e]??n[i.AirQualityScale.EPA]},286863,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.matchStormById=r.stormMatchesId=void 0,r.stormMatchesId=(e,t)=>{if(!t)return!1;let r=t.toLowerCase();return e.storm_id.toLowerCase()===r||e.storm_name.toLowerCase()===r},r.matchStormById=(e,t)=>{if(!e||!t)return null;let r=t.toLowerCase(),i=e.find(e=>e.storm_id.toLowerCase()===r);return i||(e.find(e=>e.storm_name.toLowerCase()===r)??null)}},643548,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getTropicalCurrentPosition=o;let i=e.r(979777),a=e.r(678651),n=e.r(414655);async function o(e){let t=(0,i.getTropicalObservationsCurrentPositionUrlConfig)(e),r=(0,a.urlFrom)(t),o=await fetch(r,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}});return(0,n.handleFetchResponse)(o)}},738634,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.transformDailyForecast=void 0,r.getDailyForecast=s,r.getDailyCognitiveHealthForecast=c;let i=e.r(417669),a=e.r(678651),n=e.r(414655),o=e.r(992591),l=e.r(861160);async function s(e){let t=(0,i.getDailyForecastUrlConfig)(e),o=(0,a.urlFrom)(t),l=await fetch(o,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:1800}}),s=await (0,n.handleFetchResponse)(l);return(0,r.transformDailyForecast)(s)}async function c(e){let t=(0,i.getDailyCognitiveHealthForecastUrlConfig)(e),r=(0,a.urlFrom)(t),o=await fetch(r,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:1800}});return await (0,n.handleFetchResponse)(o)}r.transformDailyForecast=(0,o.createTransformer)((e,t,r)=>{let i=2*t,a=i+1,{daypart:n}=r||{};return{calendarDayTemperatureMax:e.calendarDayTemperatureMax??void 0,calendarDayTemperatureMin:e.calendarDayTemperatureMin??void 0,dayOfWeek:e.dayOfWeek??void 0,expirationTimeUtc:e.expirationTimeUtc??void 0,moonPhase:e.moonPhase??void 0,moonPhaseCode:e.moonPhaseCode??void 0,moonPhaseDay:e.moonPhaseDay??void 0,moonriseTimeLocal:e.moonriseTimeLocal??void 0,moonriseTimeUtc:e.moonriseTimeUtc??void 0,moonsetTimeLocal:e.moonsetTimeLocal??void 0,moonsetTimeUtc:e.moonsetTimeUtc??void 0,narrative:e.narrative??void 0,qpf:e.qpf??void 0,qpfSnow:e.qpfSnow??void 0,sunriseTimeLocal:e.sunriseTimeLocal??void 0,sunriseTimeUtc:e.sunriseTimeUtc??void 0,sunsetTimeLocal:e.sunsetTimeLocal??void 0,sunsetTimeUtc:e.sunsetTimeUtc??void 0,temperatureMax:e.temperatureMax??void 0,temperatureMin:e.temperatureMin??void 0,validTimeLocal:e.validTimeLocal??void 0,validTimeUtc:e.validTimeUtc??void 0,daypart:[i,a].map((t,r)=>n?.[0]?.daypartName?.[t]?{cloudCover:n[0].cloudCover?.[t]??void 0,dayOrNight:n[0].dayOrNight?.[t]??void 0,daypartName:n[0].daypartName?.[t]??void 0,iconCode:n[0].iconCode?.[t]??void 0,iconCodeExtend:n[0].iconCodeExtend?.[t]??void 0,narrative:n[0].narrative?.[t]??void 0,precipChance:n[0].precipChance?.[t]??void 0,precipType:n[0].precipType?.[t]??void 0,qpf:n[0].qpf?.[t]??void 0,qpfSnow:n[0].qpfSnow?.[t]??void 0,qualifierCode:n[0].qualifierCode?.[t]??void 0,qualifierPhrase:n[0].qualifierPhrase?.[t]??void 0,relativeHumidity:n[0].relativeHumidity?.[t]??void 0,snowRange:n[0].snowRange?.[t]??void 0,temperature:n[0].temperature?.[t]??void 0,temperatureHeatIndex:n[0].temperatureHeatIndex?.[t]||void 0,temperatureWindChill:n[0].temperatureWindChill?.[t]||void 0,thunderCategory:n[0].thunderCategory?.[t]??void 0,thunderIndex:n[0].thunderIndex?.[t]??void 0,uvDescription:n[0].uvDescription?.[t]??void 0,uvIndex:n[0].uvIndex?.[t]??void 0,windDirection:n[0].windDirection?.[t]??void 0,windDirectionCardinal:n[0].windDirectionCardinal?.[t]?(0,l.normalizeCardinal)(n[0].windDirectionCardinal[t]):void 0,windPhrase:n[0].windPhrase?.[t]??void 0,windSpeed:n[0].windSpeed?.[t]??void 0,wxPhraseLong:n[0].wxPhraseLong?.[t]??void 0,wxPhraseShort:n[0].wxPhraseShort?.[t]??void 0,...0===r?{sunriseTimeLocal:e.sunriseTimeLocal??void 0,sunsetTimeLocal:e.sunsetTimeLocal??void 0}:{moonPhase:e.moonPhase??void 0,moonPhaseCode:e.moonPhaseCode??void 0,moonriseTimeLocal:e.moonriseTimeLocal??void 0,moonsetTimeLocal:e.moonsetTimeLocal??void 0}}:void 0)}})},740980,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.transformHistoricalDailySummary=r.transformHistoricalHourly=void 0,r.getHistoricalHourlyForecast=c,r.getHistoricalDailySummary=d;let i=e.r(417669),a=e.r(678651),n=e.r(414655),o=e.r(992591),l=e.r(861160),s=e.r(349262);async function c(e){let t=(0,i.getHistoricalHourlyUrlConfig)(e),o=(0,a.urlFrom)(t),l=await fetch(o,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}}),s=await (0,n.handleFetchResponse)(l);return(0,r.transformHistoricalHourly)(s)}async function d(e){let t=(0,i.getHistoricalDailySummaryUrlConfig)(e),o=(0,a.urlFrom)(t),l=await fetch(o,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:3600}}),s=await (0,n.handleFetchResponse)(l);return(0,r.transformHistoricalDailySummary)(s)}r.transformHistoricalHourly=(0,o.createTransformer)(e=>({cloudCeiling:e.cloudCeiling??null,dayOfWeek:e.dayOfWeek??"",dayOrNight:e.dayOrNight??s.DayOrNight.DAY,expirationTimeUtc:e.expirationTimeUtc??0,iconCode:e.iconCode??44,iconCodeExtend:e.iconCodeExtend??0,precip24Hour:e.precip24Hour??0,pressureAltimeter:e.pressureAltimeter??0,pressureChange:e.pressureChange??0,pressureMeanSeaLevel:e.pressureMeanSeaLevel??0,pressureTendencyCode:e.pressureTendencyCode??0,pressureTendencyTrend:e.pressureTendencyTrend??"",relativeHumidity:e.relativeHumidity??0,snow24Hour:e.snow24Hour??"",sunriseTimeLocal:e.sunriseTimeLocal??"",sunriseTimeUtc:e.sunriseTimeUtc??0,sunsetTimeLocal:e.sunsetTimeLocal??"",sunsetTimeUtc:e.sunsetTimeUtc??0,temperature:e.temperature??0,temperatureChange24Hour:e.temperatureChange24Hour??0,temperatureDewPoint:e.temperatureDewPoint??0,temperatureFeelsLike:e.temperatureFeelsLike??0,temperatureHeatIndex:e.temperatureHeatIndex??0,temperatureMax24Hour:e.temperatureMax24Hour??"",temperatureMaxSince7Am:e.temperatureMaxSince7Am??0,temperatureMin24Hour:e.temperatureMin24Hour??0,temperatureWindChill:e.temperatureWindChill??0,uvDescription:e.uvDescription??s.UVDescription.LOW,uvIndex:e.uvIndex??0,validTimeLocal:e.validTimeLocal??"",validTimeUtc:e.validTimeUtc??0,visibility:e.visibility??0,windDirection:e.windDirection??0,windDirectionCardinal:(0,l.normalizeCardinal)(e.windDirectionCardinal??s.WindDirectionCardinal.NORTH),windGust:e.windGust??null,windSpeed:e.windSpeed??0,wxPhraseLong:e.wxPhraseLong??""})),r.transformHistoricalDailySummary=(0,o.createTransformer)(e=>({dayOfWeek:e.dayOfWeek??void 0,iconCodeDay:e.iconCodeDay??void 0,iconCodeExtendDay:e.iconCodeExtendDay??void 0,iconCodeExtendNight:e.iconCodeExtendNight??void 0,iconCodeNight:e.iconCodeNight??void 0,precip24Hour:e.precip24Hour??void 0,rain24Hour:e.rain24Hour??void 0,snow24Hour:e.snow24Hour??void 0,temperatureMax:e.temperatureMax??void 0,temperatureMin:e.temperatureMin??void 0,validTimeLocal:e.validTimeLocal??void 0,validTimeUtc:e.validTimeUtc??void 0,wxPhraseLongDay:e.wxPhraseLongDay??void 0,wxPhraseLongNight:e.wxPhraseLongNight??void 0}))},495892,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.transformHourlyForecast=void 0,r.getHourlyForecast=p,r.mergeHourlyForecastWithAirQuality=m,r.getHourlyForecastWithAirQuality=g;let i=e.r(417669),a=e.r(678651),n=e.r(414655),o=e.r(992591),l=e.r(349262),s=e.r(358025),c=e.r(349262),d=e.r(861160),u=e.r(228071),h=e.r(980108),f=e.r(467741);async function p(e){let t=(0,i.getHourlyForecastUrlConfig)(e),o=(0,a.urlFrom)(t),l=await fetch(o,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}}),s=await (0,n.handleFetchResponse)(l);return(0,r.transformHourlyForecast)(s)}function m(e,t){if(!t)return e;let r=new Map(t.forecast.map(e=>[e.validTimeGmt,e]));return e.map(e=>{let t=r.get(e.validTimeUtc);return t?{...e,airQualityIndex:t.airQualityIndex,airQualityCategory:t.airQualityCategory,airQualityCategoryIndexColor:t.airQualityCategoryIndexColor}:e})}async function g(e){let[t,r]=await Promise.all([p(e),(0,u.getHourlyAirQualityForecast)({geocode:e.geocode,language:e.language,scale:(0,f.getAirQualityScale)({countryCode:e.cscCountryCode??""}),duration:function(e){switch(e){case l.HourlyForecastDuration.SIX_HOUR:case l.HourlyForecastDuration.TWELVE_HOUR:return h.AirQualityForecastDuration.TWELVE_HOUR;case l.HourlyForecastDuration.ONE_DAY:return h.AirQualityForecastDuration.TWENTY_FOUR_HOUR;case l.HourlyForecastDuration.TWO_DAY:return h.AirQualityForecastDuration.FORTY_EIGHT_HOUR;case l.HourlyForecastDuration.THREE_DAY:case l.HourlyForecastDuration.TEN_DAY:case l.HourlyForecastDuration.FIFTEEN_DAY:default:return h.AirQualityForecastDuration.SEVENTY_TWO_HOUR}}(e.duration)}).catch(()=>null)]);return m(t,r)}r.transformHourlyForecast=(0,o.createTransformer)(e=>({cloudCover:e.cloudCover??0,dayOfWeek:e.dayOfWeek??"",dayOrNight:e.dayOrNight??c.DayOrNight.DAY,expirationTimeUtc:e.expirationTimeUtc??0,iconCode:e.iconCode??0,iconCodeExtend:e.iconCodeExtend??0,precipChance:e.precipChance??0,precipType:e.precipType??s.PrecipType.RAIN,pressureMeanSeaLevel:e.pressureMeanSeaLevel??0,qpf:e.qpf??0,qpfSnow:e.qpfSnow??0,relativeHumidity:e.relativeHumidity??0,temperature:e.temperature??0,temperatureDewPoint:e.temperatureDewPoint??0,temperatureFeelsLike:e.temperatureFeelsLike??0,temperatureHeatIndex:e.temperatureHeatIndex??0,temperatureWindChill:e.temperatureWindChill??0,uvDescription:e.uvDescription??c.UVDescription.LOW,uvIndex:e.uvIndex??0,validTimeLocal:e.validTimeLocal??"",validTimeUtc:e.validTimeUtc??0,visibility:e.visibility??0,windDirection:e.windDirection??0,windDirectionCardinal:(0,d.normalizeCardinal)(e.windDirectionCardinal??c.WindDirectionCardinal.NORTH),windGust:e.windGust??null,windSpeed:e.windSpeed??0,wxPhraseLong:e.wxPhraseLong??"",wxPhraseShort:e.wxPhraseShort??"",wxSeverity:e.wxSeverity??0,stormId:e.stormId??null}))},358025,(e,t,r)=>{"use strict";var i,a,n,o,l,s,c,d,u,h;Object.defineProperty(r,"__esModule",{value:!0}),r.PrecipIntensityCode=r.PrecipTypeCode=r.ThunderCategory=r.PrecipType=r.MoonPhaseCode=void 0,(s=i||(r.MoonPhaseCode=i={})).WANING_GIBBOUS="WNG",s.WAXING_CRESCENT="WXC",s.FIRST_QUARTER="FQ",s.WANING_CRESCENT="WNC",s.LAST_QUARTER="LQ",s.FULL="F",s.WAXING_GIBBOUS="WXG",s.NEW="N",(c=a||(r.PrecipType=a={})).RAIN="rain",c.SNOW="snow",c.PRECIP="precip",(d=n||(r.ThunderCategory=n={})).NO_THUNDER="0",d.THUNDER_POSSIBLE="1",d.THUNDER_EXPECTED="2",d.SEVERE_THUNDERSTORMS_POSSIBLE="3",d.SEVERE_THUNDERSTORMS_LIKELY="4",d.HIGH_RISK_OF_SEVERE_THUNDERSTORMS="5",(u=o||(r.PrecipTypeCode=o={}))[u.NONE=0]="NONE",u[u.RAIN=1]="RAIN",u[u.SNOW=2]="SNOW",u[u.FREEZING_RAIN=3]="FREEZING_RAIN",u[u.THUNDER=4]="THUNDER",u[u.SLEET=5]="SLEET",u[u.HAIL=6]="HAIL",(h=l||(r.PrecipIntensityCode=l={}))[h.NONE=0]="NONE",h[h.VERY_LIGHT=1]="VERY_LIGHT",h[h.LIGHT=2]="LIGHT",h[h.MODERATE=3]="MODERATE",h[h.HEAVY=4]="HEAVY"},417669,(e,t,r)=>{"use strict";e.i(288906),Object.defineProperty(r,"__esModule",{value:!0}),r.getDailyForecastUrlConfig=function({geocode:e,placeId:t,units:r,language:a,duration:n=i.ForecastDuration.FIVE_DAY,cscCountryCode:o}){return{host:"api.weather.com",protocol:"https",pathname:`/v3/wx/forecast/daily/${n}`,query:{geocode:e,placeid:t,units:r,language:a,cscCountryCode:o||void 0,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},r.getDailyCognitiveHealthForecastUrlConfig=function({geocode:e,language:t,conditionType:r,duration:a=i.ForecastDuration.FIVE_DAY}){return{host:"api.weather.com",protocol:"https",pathname:`/v3/wx/forecast/daily/${a}/cognitiveHealth`,query:{geocode:e,language:t,conditionType:r,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},r.getHourlyForecastUrlConfig=function({geocode:e,placeId:t,units:r,language:a,duration:n=i.HourlyForecastDuration.TWO_DAY,cscCountryCode:o}){return{host:"api.weather.com",protocol:"https",pathname:`/v3/wx/forecast/hourly/${n}`,query:{geocode:e,placeid:t,units:r,language:a,cscCountryCode:o||void 0,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},r.getFifteenMinuteForecastUrlConfig=function({geocode:e,units:t,language:r}){return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/forecast/fifteenminute",query:{geocode:e,units:t,language:r,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},r.getMinutelyPrecipitationForecastUrlConfig=function({geocode:e,units:t,language:r,duration:i="60minute"}){return{host:"api.weather.com",protocol:"https",pathname:`/v3/wx/forecast/minutely/precipitation/${i}`,query:{geocode:e,units:t,language:r,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},r.getWWIRForecastUrlConfig=function({geocode:e,postalCode:t,units:r,language:i}){return{host:"api.weather.com",protocol:"https",pathname:t?`/v1/location/${t}/forecast/wwir.json`:`/v1/geocode/${e?.replace(",","/")}/forecast/wwir.json`,query:{units:r,language:i,apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},r.getHistoricalHourlyUrlConfig=function({placeid:e,units:t,language:r,par:i}){return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/conditions/historical/hourly/1day",query:{placeid:e,units:t,language:r,par:i,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},r.getHistoricalDailySummaryUrlConfig=function({geocode:e,units:t,language:r}){return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/conditions/historical/dailysummary/30day",query:{geocode:e,units:t,language:r,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}};let i=e.r(349262)},698674,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getWeatherInsights=o;let i=e.r(449802),a=e.r(678651),n=e.r(414655);async function o(e){let t=(0,i.getSunV3WeatherInsightsUrlConfig)(e),r=(0,a.urlFrom)(t),o=await fetch(r,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}});return(0,n.handleFetchResponse)(o)}},474245,(e,t,r)=>{"use strict";var i,a;Object.defineProperty(r,"__esModule",{value:!0}),r.InsightType=void 0,(a=i||(r.InsightType=i={})).ALL="all",a.BREAKING_VIDEO_INSIGHT="breakingVideoInsight",a.CHANCE_PRECIP_INSIGHT="chancePrecipInsight",a.SUNNY_DAY_INSIGHT="sunnyDayInsight",a.POLLEN_INSIGHT="pollenInsight",a.ALLERGY_AGGRAVATOR_INSIGHT="allergyAggravatorInsight",a.TEMPERATURE_CHANGE_INSIGHT="temperatureChangeInsight",a.TRENDING_TEMPERATURE_INSIGHT="trendingTemperatureInsight",a.SUN_INSIGHT="sunInsight",a.SHORT_TERM_PRECIP_INSIGHT="shortTermPrecipInsight",a.THUNDERSTORM_SOON_INSIGHT="thunderstormSoonInsight",a.SEVERE_STORM_INSIGHT="severeStormInsight",a.PRECIP_INSIGHT="precipInsight"},449802,(e,t,r)=>{"use strict";e.i(288906),Object.defineProperty(r,"__esModule",{value:!0}),r.getSunV3WeatherInsightsUrlConfig=function({geocode:e,placeId:t,postalKey:r,insightType:a=i.InsightType.ALL,units:n,language:o,par:l,cscCountryCode:s}){let c={format:"json",units:n,language:o,apiKey:"71f92ea9dd2f4790b92ea9dd2f779061",insightType:a,par:l,cscCountryCode:s};return e?c.geocode=e:t?c.placeid=t:r&&(c.postalKey=r),{host:"api.weather.com",protocol:"https",pathname:"/v3/insights",query:c}};let i=e.r(474245)},550008,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getPollenDaypart=o,r.getPollenForecastDaily=l,r.getPollenObservations=s,r.getPollenHistoricalMonthlySummary=c;let i=e.r(65755),a=e.r(678651),n=e.r(414655);async function o(e){let t=(0,i.getPollenDaypartUrlConfig)(e),r=(0,a.urlFrom)(t),o=await fetch(r,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}});return await (0,n.handleFetchResponse)(o)}async function l(e){let t=await fetch((0,a.urlFrom)((0,i.getPollenForecastDailyUrlConfig)(e)),{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}});return(0,n.handleFetchResponse)(t)}async function s(e){let t=await fetch((0,a.urlFrom)((0,i.getPollenObservationsUrlConfig)(e)),{headers:{"Accept-Encoding":"gzip"},next:{revalidate:3600}});return(0,n.handleFetchResponse)(t)}async function c(e){let t=await fetch((0,a.urlFrom)((0,i.getPollenHistoricalMonthlySummaryUrlConfig)(e)),{headers:{"Accept-Encoding":"gzip"},next:{revalidate:86400}});return(0,n.handleFetchResponse)(t)}},65755,(e,t,r)=>{"use strict";e.i(288906),Object.defineProperty(r,"__esModule",{value:!0}),r.getPollenDaypartUrlConfig=function({geocode:e,language:t,duration:r="3day"}){return{host:"api.weather.com",protocol:"https",pathname:`/v2/indices/pollen/daypart/${r}`,query:{geocode:e,format:"json",language:t,apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},r.getPollenForecastDailyUrlConfig=function({geocode:e,language:t}){return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/indices/pollen/forecast/daily/5day",query:{geocode:e,format:"json",language:t,apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},r.getPollenObservationsUrlConfig=function({geocode:e,language:t}){let[r="",a=""]=e.split(",").map(e=>e.trim());return{host:"api.weather.com",protocol:"https",pathname:`/v1/geocode/${r}/${a}/observations/pollen.json`,query:{language:i.includes(t)?t:"en-US",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},r.getPollenHistoricalMonthlySummaryUrlConfig=function({geocode:e,language:t}){return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/pollen/historical/monthlySummary",query:{geocode:e,format:"json",language:t,apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}};let i=["en-US","es-ES","es-US"]},445359,e=>{"use strict";var t=e.i(902875),r=e.i(247865),i=e.i(747961);let a=(0,r.forwardRef)(({title:e,titleId:r,desc:i,descId:a,...n},o)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:o,"aria-labelledby":r,"aria-describedby":a,...n,children:[i?(0,t.jsx)("desc",{id:a,children:i}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"Play"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M3.5 14a.5.5 0 0 1-.5-.5v-11a.5.5 0 0 1 .741-.438l10 5.5a.5.5 0 0 1 0 .876l-10 5.5A.5.5 0 0 1 3.5 14"})]})),n=r.default.forwardRef((e,r)=>(0,t.jsx)(i.BaseIcon,{ref:r,icon:a,...e}));n.displayName="PlayFilledAlt",e.s(["PlayFilledAlt",0,n])},517480,e=>{"use strict";var t=e.i(902875),r=e.i(247865),i=e.i(747961);let a=(0,r.forwardRef)(({title:e,titleId:r,desc:i,descId:a,...n},o)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:o,"aria-labelledby":r,"aria-describedby":a,...n,children:[i?(0,t.jsx)("desc",{id:a,children:i}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"grass"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.366 2.062c.194.108.291.331.238.546-.751 3.018-.824 5.682-.714 7.753.492-1.662 1.312-3.691 2.919-5.446a.494.494 0 0 1 .605-.097c.2.11.296.345.232.564a25.4 25.4 0 0 0-.807 3.851c-.185 1.515-.185 3.022.205 4.113a.493.493 0 0 1-.928.328c-.47-1.312-.444-3.008-.254-4.56.066-.54.153-1.07.25-1.573-.966 1.698-1.384 3.427-1.696 4.715-.101.419-.191.79-.285 1.1a.492.492 0 0 1-.96-.084l-.001-.007c-.213-1.791-.582-4.891.033-8.718-.707 1.279-1.072 2.704-1.268 4.06-.144 1-.195 1.949-.23 2.758l-.012.309c-.027.659-.05 1.245-.127 1.635a.492.492 0 0 1-.97-.025c-.323-2.224-1.173-4.559-2.65-6.574.215.872.401 1.8.55 2.686.283 1.695.441 3.311.38 4.15a.492.492 0 0 1-.983-.072c.053-.711-.086-2.226-.37-3.917-.28-1.68-.693-3.466-1.16-4.71a.49.49 0 0 1 .192-.581.495.495 0 0 1 .613.059c1.71 1.653 2.894 3.65 3.626 5.698a23 23 0 0 1 .166-1.554c.303-2.095 1.007-4.496 2.815-6.323a.495.495 0 0 1 .591-.084",clipRule:"evenodd"})]})),n=r.default.forwardRef((e,r)=>(0,t.jsx)(i.BaseIcon,{ref:r,icon:a,...e}));n.displayName="Grass",e.s(["Grass",0,n])},820820,e=>{"use strict";var t=e.i(902875),r=e.i(247865),i=e.i(747961);let a=(0,r.forwardRef)(({title:e,titleId:r,desc:i,descId:a,...n},o)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:o,"aria-labelledby":r,"aria-describedby":a,...n,children:[i?(0,t.jsx)("desc",{id:a,children:i}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"Arrow Right"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M9.56 3.56a.499.499 0 0 0-.706.705l3.438 3.443H2.707a.5.5 0 0 0 0 1h9.585L8.854 12.15a.499.499 0 0 0 .706.705l3.94-3.94a1 1 0 0 0 0-1.415z"})]})),n=r.default.forwardRef((e,r)=>(0,t.jsx)(i.BaseIcon,{ref:r,icon:a,...e}));n.displayName="ArrowRight",e.s(["ArrowRight",0,n])},436441,e=>{"use strict";var t=e.i(902875),r=e.i(247865),i=e.i(747961);let a=(0,r.forwardRef)(({title:e,titleId:r,desc:i,descId:a,...n},o)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:o,"aria-labelledby":r,"aria-describedby":a,...n,children:[i?(0,t.jsx)("desc",{id:a,children:i}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"Flu"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsxs)("g",{fill:"currentColor",children:[(0,t.jsx)("path",{d:"M8.5 5.75a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0M11 7.75a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0M8 8.5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1M9 10.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0M5.75 9a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5"}),(0,t.jsx)("path",{fillRule:"evenodd",d:"M12.975 7.5H14v-1h1v3h-1v-1h-1.025a4.97 4.97 0 0 1-1.108 2.66l.719.719.707-.707.707.707L11.879 14l-.707-.707.707-.707-.719-.718a4.97 4.97 0 0 1-2.66 1.107V14h1v1h-3v-1h1v-1.025a4.97 4.97 0 0 1-2.66-1.107l-.719.718.707.707-.707.707L2 11.879l.707-.707.707.707.719-.718A4.97 4.97 0 0 1 3.025 8.5H2v1H1v-3h1v1h1.025a4.97 4.97 0 0 1 1.108-2.66l-.719-.719-.707.707L2 4.121 4.121 2l.707.707-.707.707.719.718A4.97 4.97 0 0 1 7.5 3.025V2h-1V1h3v1h-1v1.025a4.97 4.97 0 0 1 2.66 1.107l.719-.718-.707-.707.707-.707L14 4.121l-.707.707-.707-.707-.719.718A4.97 4.97 0 0 1 12.975 7.5m-7.197 3.826a4 4 0 1 0 4.444-6.652 4 4 0 0 0-4.444 6.652",clipRule:"evenodd"})]})]})),n=r.default.forwardRef((e,r)=>(0,t.jsx)(i.BaseIcon,{ref:r,icon:a,...e}));n.displayName="Flu",e.s(["Flu",0,n])},366101,e=>{"use strict";var t=e.i(902875),r=e.i(247865),i=e.i(747961);let a=(0,r.forwardRef)(({title:e,titleId:r,desc:i,descId:a,...n},o)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:o,"aria-labelledby":r,"aria-describedby":a,...n,children:[i?(0,t.jsx)("desc",{id:a,children:i}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"moonrise"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsx)("g",{fill:"currentColor",children:(0,t.jsx)("path",{d:"M14.5 14h-13a.5.5 0 0 0 0 1h13a.5.5 0 0 0 0-1M12.975 12.501c.027.275-.199.499-.475.499s-.497-.225-.531-.5a4 4 0 0 0-.678-1.774c-.158-.227-.143-.542.063-.726.205-.184.524-.168.687.055.523.717.846 1.562.934 2.446M8.03 12.5c-.034.274-.255.5-.531.5s-.502-.224-.475-.498a4.96 4.96 0 0 1 1.853-3.404 4.005 4.005 0 0 0-4.845 3.404c-.035.274-.256.498-.531.498-.277 0-.503-.225-.475-.5A5.006 5.006 0 0 1 8 8c.772 0 1.533.18 2.223.526a.5.5 0 0 1 0 .895A3.98 3.98 0 0 0 8.03 12.5M8.471 1.195a.667.667 0 0 0-.942 0L5.853 2.871a.499.499 0 0 0 .705.706L7.5 2.64v3.585a.5.5 0 0 0 1 0V2.639l.942.938a.499.499 0 0 0 .705-.706z"})})]})),n=r.default.forwardRef((e,r)=>(0,t.jsx)(i.BaseIcon,{ref:r,icon:a,...e}));n.displayName="Moonrise",e.s(["Moonrise",0,n])},188065,e=>{"use strict";var t=e.i(902875),r=e.i(247865),i=e.i(747961);let a=(0,r.forwardRef)(({title:e,titleId:r,desc:i,descId:a,...n},o)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:o,"aria-labelledby":r,"aria-describedby":a,...n,children:[i?(0,t.jsx)("desc",{id:a,children:i}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"Rain Drop"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsxs)("g",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",children:[(0,t.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,t.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"})]})]})),n=r.default.forwardRef((e,r)=>(0,t.jsx)(i.BaseIcon,{ref:r,icon:a,...e}));n.displayName="RainDrop",e.s(["RainDrop",0,n])},324079,e=>{"use strict";var t=e.i(902875),r=e.i(247865),i=e.i(747961);let a=(0,r.forwardRef)(({title:e,titleId:r,desc:i,descId:a,...n},o)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:o,"aria-labelledby":r,"aria-describedby":a,...n,children:[i?(0,t.jsx)("desc",{id:a,children:i}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"Sunrise"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsx)("g",{fill:"currentColor",children:(0,t.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"})})]})),n=r.default.forwardRef((e,r)=>(0,t.jsx)(i.BaseIcon,{ref:r,icon:a,...e}));n.displayName="Sunrise",e.s(["Sunrise",0,n])},166812,e=>{"use strict";var t=e.i(902875),r=e.i(247865),i=e.i(747961);let a=(0,r.forwardRef)(({title:e,titleId:r,desc:i,descId:a,...n},o)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:o,"aria-labelledby":r,"aria-describedby":a,...n,children:[i?(0,t.jsx)("desc",{id:a,children:i}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"Sunset"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsx)("g",{fill:"currentColor",children:(0,t.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"})})]})),n=r.default.forwardRef((e,r)=>(0,t.jsx)(i.BaseIcon,{ref:r,icon:a,...e}));n.displayName="Sunset",e.s(["Sunset",0,n])},262762,e=>{"use strict";var t=e.i(902875),r=e.i(247865),i=e.i(747961);let a=(0,r.forwardRef)(({title:e,titleId:r,desc:i,descId:a,...n},o)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:o,"aria-labelledby":r,"aria-describedby":a,...n,children:[i?(0,t.jsx)("desc",{id:a,children:i}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"Temperature Max"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsxs)("g",{fill:"currentColor",children:[(0,t.jsx)("path",{d:"M13.5 5H10v1h3.5zM15 8h-5v1h5zM13.5 11H10v1h3.5zM5 10.092V3.5H4v6.592a1.5 1.5 0 1 0 1 0"}),(0,t.jsx)("path",{d:"M15 2H6.487A2.491 2.491 0 0 0 2 3.5v5.555a3.5 3.5 0 1 0 5 0V3.5a2.5 2.5 0 0 0-.05-.5H15zM4.5 14a2.497 2.497 0 0 1-1.666-4.36L3 9.493V3.5a1.5 1.5 0 0 1 3 0v5.992l.166.149A2.497 2.497 0 0 1 4.5 14"})]})]})),n=r.default.forwardRef((e,r)=>(0,t.jsx)(i.BaseIcon,{ref:r,icon:a,...e}));n.displayName="TemperatureMax",e.s(["TemperatureMax",0,n])},955105,e=>{"use strict";var t=e.i(902875),r=e.i(247865),i=e.i(747961);let a=(0,r.forwardRef)(({title:e,titleId:r,desc:i,descId:a,...n},o)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:o,"aria-labelledby":r,"aria-describedby":a,...n,children:[i?(0,t.jsx)("desc",{id:a,children:i}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"Wind"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.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"})]})),n=r.default.forwardRef((e,r)=>(0,t.jsx)(i.BaseIcon,{ref:r,icon:a,...e}));n.displayName="Wind",e.s(["Wind",0,n])},267538,e=>{e.q("/_next/static/immutable/media/weather-bg-sprite.32wix_aaq3qmi.jpg")},425912,e=>{e.q("/_next/static/immutable/media/weather-bg-sprite.2ol3vhh5gt8dk.webp")},438725,e=>{e.q("/_next/static/immutable/media/location-pin-gps.294w2vjf9x9r3.svg")},927444,e=>{e.q("/_next/static/immutable/media/location-pin-saved.3wwevu66ra4_s.svg")},646244,e=>{e.q("/_next/static/immutable/media/location-pin-searched.3jmk_k5dvk4yq.svg")},664592,785355,202340,e=>{"use strict";var t=e.i(289607);e.s(["formatShortMonthDateTime",0,({date:e,locale:r="en-US",timeZone:i})=>{if(!e)return"";let a={month:"short",day:"numeric",hour:"numeric",hour12:!0,minute:"2-digit"};if(!r.includes("-US"))return delete a.hour12,a.hourCycle="h23",(0,t.formatIntlDateString)(e,r,i);let n=(0,t.formatIntlDateParts)(e,r,i,a),o=n.find(e=>"month"===e.type).value,l=n.find(e=>"day"===e.type).value,s=n.find(e=>"hour"===e.type).value,c=n.find(e=>"minute"===e.type).value,d=n.find(e=>"dayperiod"===e.type.toLowerCase()).value.toLowerCase();return`${o} ${l}, ${s}:${c} ${d}`}],664592);var r=e.i(308427);let i={lod:4,attr:0,format:"png",height:"320",width:"568",product:"9066",basemap:"dark",baseUrl:"https://api.weather.com/v2/maps/dynamic?"};e.s(["buildInteractiveMapUrl",0,({radarUrl:e,hasPlaceId:t,stormName:r,zoom:i})=>{let a=!t,n=new URLSearchParams;a&&(n.set("page","radar"),n.set("id","autodetect")),n.set("base","dark"),null!=i&&n.set("zoom",String(i));let o=Array.isArray(r)?r:r?[r]:[],l=o.length?`&collection=${o.map(encodeURIComponent).join(",")}`:"";return`${a?"/redir":e}?${n.toString()}${l}`},"buildStormImageUrl",0,(e,{languageCode:t,countryCode:a,overlays:n,zoom:o})=>{let{lod:l,attr:s,format:c,height:d,width:u,product:h,basemap:f,baseUrl:p}=i,m=o||l,g=(0,r.getLODRoundedVal)(`${e.currentposition.lat}`,m),v=(0,r.getLODRoundedVal)(`${e.currentposition.lon}`,m),y=t&&["en","fr","es","de","ru","zu"].indexOf(t)>=0?t:"en",w=null;return"IN"===a&&(w="&region=in"),`${p}geocode=${g},${v}&h=${d}&w=${u}&lod=${m}&product=${n||h}&map=${f}&format=${c}&language=${y}&apiKey=71f92ea9dd2f4790b92ea9dd2f779061&a=${s}${w||""}`}],785355),e.s(["isNotNil",0,function(e){return null!=e}],202340)},149630,e=>{"use strict";var t=e.i(247865);e.s(["RELATIVE_TIME_REFRESH_MS",0,6e4,"useMountedNow",0,function(e){let[r,i]=(0,t.useState)(null);return(0,t.useEffect)(()=>{let t=()=>new Date(Date.now());i(t());let r=setInterval(()=>i(t()),e);return()=>clearInterval(r)},[e]),r}])},658763,e=>{"use strict";let t="liveblog-entry-";e.s(["LIVEBLOG_ENTRY_ANCHOR_PREFIX",0,t,"liveblogEntryAnchorId",0,e=>`${t}${e}`])},217817,e=>{e.q("/_next/static/immutable/media/ellipse.00degh2rgqa_6.png")},15819,e=>{e.q("/_next/static/immutable/media/morning-brief-logo.2w7o5r-sy8jah.svg")},103860,e=>{"use strict";var t=e.i(902875),r=e.i(247865);let i={src:e.i(192066).default,width:21,height:21,blurWidth:8,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAs0lEQVR42l2PzQrCMBCE09LEVkggPZS22H8ohOipJ99D8CzeBLGKVqQonn1qd4uR0oU5JPPtMEu01teiKJ5ZlvVGdV2/fN+vCA6YN0qpcF134XlehQqCYBOG4ZYxNidpmp6klOskSc5RFO1QcRwf4H2BpOMA4AbnfEVGY9v2LM/zOwLtD1iOAcuyGHgddniUZfmZJvwBKCih0F4I0cAnNXIch+PyQEPJBlLecGJnBGavlGq/aBQeMbilbuQAAAAASUVORK5CYII="};var a=e.i(37429),n=e.i(368847),o=e.i(352573),l=e.i(870393);let s=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)),c=({id:e,assets:r,currentSlideIndex:c,totalAssets:d,previous:u,next:h,sendTrackString:f,rounded:p=!1})=>{if(!r.length||c=r.length)return null;let m=r[c],g=`${c+1}/${d}`,v=0===c,y=c===d-1;return(0,t.jsxs)("figure",{id:e,className:"relative mt-4 mb-4 w-full max-w-full",children:[(0,t.jsx)("div",{className:p?"overflow-hidden rounded-[16px]":"",children:(0,t.jsx)("div",{className:`relative w-full ${p?"rounded-[16px]":""}`,children:(0,t.jsx)("div",{className:`relative w-full ${p?"rounded-[16px]":""}`,style:{paddingTop:"56.25%"},children:(0,t.jsx)(a.default,{className:"absolute top-0 left-0 h-full w-full object-cover",src:m.url||"",alt:m.seo?.altText||"",rounded:p,width:800,height:450,sizes:"(max-width: 767px) 91vw, (max-width: 1280px) 64vw, 800px"})})})}),(0,t.jsx)("figcaption",{children:(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsx)("div",{className:"flex items-center pt-2",children:(0,t.jsxs)("div",{className:"relative flex w-full items-center",children:[(0,t.jsx)("div",{className:"flex items-center",children:(0,t.jsx)(a.default,{src:i.src,alt:"Slideshow",width:20,height:20,className:"h-5 w-5",rounded:!1})}),(0,t.jsx)("div",{className:"mr-2 ml-2",children:(0,t.jsx)(n.Text,{variant:"Body.S",color:"primary",children:g})}),(0,t.jsx)("div",{className:"flex-grow"}),(0,t.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:v,onClick:()=>{f("wxnode_slideshow_link-previous"),u()},children:(0,t.jsx)("span",{className:"flex items-center justify-center",children:(0,t.jsx)("span",{className:"flex items-center justify-center","aria-label":"chevron left",children:(0,t.jsx)(o.ChevronLeft,{className:`h-5 w-5 ${v?"text-gray-200":"text-blue-500"}`})})})}),(0,t.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:y,onClick:()=>{f("wxnode_slideshow_link-next"),h()},children:(0,t.jsx)("span",{className:"flex items-center justify-center",children:(0,t.jsx)("span",{className:"flex items-center justify-center","aria-label":"chevron right",children:(0,t.jsx)(l.ChevronRight,{className:`h-5 w-5 ${y?"text-gray-200":"text-blue-500"}`})})})})]})}),m.filename&&!s(m.filename)&&(0,t.jsx)(n.Text,{variant:"Title.S",color:"primary",elementType:"h3",className:"mt-0 mb-1",children:m.filename}),m.caption&&(0,t.jsx)(n.Text,{variant:"Body.S",color:"primary",className:`py-1 pb-0 ${!(m.filename&&!s(m.filename))?"mt-0 pt-0":""}`,children:m.caption}),m.seo?.credit&&(0,t.jsxs)(n.Text,{variant:"Body.S",color:"secondary",className:"pt-1",children:["(",m.seo.credit,")"]}),(0,t.jsx)("div",{className:"border-b border-gray-200 py-2"})]})})]})};var d=e.i(737801),u=e.i(630986),h=e.i(867059),f=e.i(725287),p=e.i(546446),m=e.i(540768),g=e.i(682142),v=e.i(782937),y=e.i(695881),w=e.i(333350),x=e.i(64412),b=e.i(950771),C=e.i(537989),j=e.i(695203),A=e.i(866137),S=e.i(797770),k=e.i(673915),I=e.i(604323),E=e.i(158662),T=e.i(358273),D=e.i(777638),M=e.i(122124),R=e.i(924776),N=e.i(409628),P=e.i(605781),L=e.i(289681);let O=(0,y.createLogger)("useSlideshowClick");var _=e.i(723469);e.s(["default",0,({id:e,assets:i=[],allSlides:a=[],totalAssets:n=a.length||0,loadNextSlideshowPage:o,sendTrackString:l,rounded:s=!1})=>{let y,H,z=(0,r.useId)(),U=e||`slideshow-${z}`,F=a.length>0,[q,V]=(0,r.useState)(0),[G,W]=(0,r.useState)(1),[B,Q]=(0,r.useState)(1),$=(y=(0,d.useEventAttributes)(),H=(0,u.useCMSAttributes)(),(0,r.useCallback)(e=>{let{seoTitle:t,...r}=H??{},i={...y,...r,...e,slidesViewed:1,sizeCode:"null"};try{window.mParticle?.logEvent?.("slideshow-click",window.mParticle?.EventType?.Other,i),console.debug('MParticle: Event "slideshow-click" tracked')}catch(e){console.error('MParticle: Event "slideshow-click" failed',e)}},[])),K=(()=>{let e=(0,p.useAtomValue)(C.pageIdAtom),t=(0,p.useAtomValue)(b.pageLocaleAtom),i=(0,p.useAtomValue)(j.deviceClassAtom),a=(0,p.useAtomValue)(A.adBlockAtom),n=(0,p.useAtomValue)(S.adsMetricsUnitAndZoneAtom),o=(0,p.useAtomValue)(k.fromStringAtom),l=(0,p.useAtomValue)(I.metricsArticleDataAtom),s=(0,p.useAtomValue)(E.experimentJoinListAtom),c=(0,f.usePathname)(),{location:d}=(0,x.useLocation)(),u=(0,R.useIsHightouchReady)(),y=(0,h.usePageViewCount)(),_=(0,r.useCallback)(r=>{let u=(0,g.getCICookie)(),h=u?.["TWC-GeoIP-Country"]??(0,m.getCookie)("twc-location-country"),f=u?.["TWC-GeoIP-Region"]??(0,m.getCookie)("twc-location-region"),p=u?.["TWC-Privacy"]??(0,m.getCookie)("twc-privacy"),w=window.DprSdk?.getGdprConsentOptInsString()??"",x=window.DprSdk?.getCcpaSaleOptInString()??"",b=window.navigator?.globalPrivacyControl??!1,C=w?.includes("functional-technology")??!1,j=window.DprSdk?.getUserConsent("geographically-relevant-advertising")!==!1,A=window.DprSdk?.getUserConsent("interest-based-ads")!==!1,S=(0,L.getConsentAuthorization)("sale-of-data"),k=(0,L.getConsentAuthorization)("sensitive-data"),I=navigator?.cookieEnabled??!1,E=(0,m.getCookie)("partner")||"",R=(0,v.getPartnerByPattern)(E)??E,P=(0,T.getMetricsSession)(),O=P?.sessionId||"",_=new Date(P?.sessionStartTime||0).toISOString(),H=new Date,z=H.getHours(),U=N.WEEK_DAYS[H.getDay()]??"",F=e&&["article","video"].includes(e)?c?.split("/").slice(0,-1).join("/")??"":(0,M.getAnonymizedPath)(c??"");return{...r,slidesViewed:1,sizeCode:null,adBlock:a,pageId:e??"",url:F,pageCount:y,schemaVersion:"nextgen",adsMetricsUnitAndZone:n,author:l?.author??null,contentId:l?.contentId??null,createdDate:l?.createdDate??null,publishDate:l?.publishDate??null,collection:l?.collection??null,entitlements:l?.entitlements??null,nodeTypes:l?.nodeType??null,pageTemplate:l?.pageTemplate??null,premiumContent:l?.premiumContent!=null?String(l.premiumContent):null,providerName:l?.provider??void 0,tagsGeo:l?.tagsGeo??null,tagsKeyword:l?.tagsKeyword??null,tagsStorm:l?.tagsStorm??null,referrer:document.referrer,fromString:o,locale:t,deviceClass:i,partner:R,sessionId:O,sessionStartTime:_,siteMode:"normal",dayOfWeek:U,hourOfDay:z,regime:p??"",cookiesEnabled:I,gpcSignalOptOut:b,functionalTechnologies:C,geographicallyRelevantAds:j,interestBasedAds:A,priv:w,privProducts:x,saleOfData:S??void 0,saleOfDataAuthorization:S,sensitiveDataAuthorization:k,campaign:(0,D.getCampaign)(),tpcc:(0,D.getTpcc)(),linkReferral:(0,D.getLinkReferral)(),experimentJoinList:s,weatherMode:"normal",physicalCountry:h??"",physicalState:f??"",wlocCity:d?.city??null,wlocCountry:d?.countryCode??null,wlocState:d?.adminDistrictCode??null,samsungVersion:(0,D.getSamsungVersion)(),appVersion:"0404f88080af60073c643d025e42bd9b3fcc20b4".slice(0,10)}},[y,e,t,i,a,n,o,l,s,c,d]);return(0,r.useCallback)(e=>{if(w.default){if(!u)return void O.warn('Hightouch: Event "slideshow-click" skipped - SDK not ready');try{(0,P.trackSlideshowClick)(_(e)),O.info('Hightouch: Event "slideshow-click" tracked')}catch(e){O.error('Hightouch: Event "slideshow-click" failed',{error:e})}}},[u,_])})(),Y=(0,r.useCallback)(e=>{$(e),K(e)},[$,K]),Z=(0,_.useTrackString)(),[J,X]=(0,r.useState)(F?a.slice(0,20):i),ee=(0,r.useCallback)(e=>{if(!e)return!1;let{top:t}=e.getBoundingClientRect();return t>=-100&&t{if(q-1>=0){let e=q-1?Math.ceil((q-1)/20):1;Y({slideNumber:q,buttonClicked:"back",slideId:i[q-1]?.id||"",slidesInShow:i.length}),V(q-1),W(e)}},[q,Y,i]),er=(0,r.useCallback)(()=>{if(q+1=B){let e=20*G;if(e-3i.length&&G>=B){let e=20*G;e-3{if(ee(document.querySelector(`#${U}`)))switch(e.key){case"ArrowLeft":et();break;case"ArrowRight":er()}},[U,ee,et,er]);return(0,r.useEffect)(()=>(document.body.addEventListener("keydown",ei),()=>{document.body.removeEventListener("keydown",ei)}),[ei]),(0,r.useEffect)(()=>{F&&0===J.length&&X(a.slice(0,20))},[F,a,J.length]),(0,t.jsx)(c,{id:U,assets:F?J:i,currentSlideIndex:q,totalAssets:n,previous:et,next:er,sendTrackString:l??Z,rounded:s})}],103860)},192066,e=>{e.q("/_next/static/immutable/media/SlideshowIcon.0v87u3aesr017.png")},924707,e=>{"use strict";var t=e.i(902875),r=e.i(368847),i=e.i(632137),a=e.i(581014),n=e.i(247865),o=e.i(262453),l=e.i(64412),s=e.i(214008),c=e.i(352711);let d=({location:e,onImprovePrecision:i})=>{let d=(0,a.useTranslations)("Header"),u=(0,o.usePreciseGeocode)(),{location:h}=(0,l.useLocation)("geolocation"),f=(0,c.useImprovePrecisionFlow)({unavailableTitle:d("locationUnavailable"),unavailableBody:d("locationUnavailableHelp")}),p=(0,n.useCallback)(()=>{i?.(),f()},[i,f]);return!u&&(0,s.isSameLocation)(e,h)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.default,{variant:"Body.S",color:"secondary",children:"·"}),(0,t.jsx)("button",{type:"button",onClick:p,"data-testid":"improve-precision-affordance",className:"inline-flex cursor-pointer items-center rounded-md text-sm font-medium text-blue-500 transition-colors hover:text-blue-600 hover:underline focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:outline-none",children:d("improvePrecision")})]}):null};e.s(["LocationTimeHeadingClient",0,({title:e,location:n,formattedTime:o,expectsTimeStamp:l=!1,titleVariant:s="Title.S",titleClassName:c,headingLevel:u="h2",isTitleLoading:h=!1,hideLocationMeta:f=!1,hideAffordance:p=!1,presentationName:m,promotePresentationName:g=!1,className:v})=>{let y=(0,a.useTranslations)("CurrentConditions"),w=m||n?.presentationName;return(0,t.jsxs)("div",{className:(0,i.cn)("flex flex-col gap-2",v),children:[(0,t.jsx)("div",{className:"flex min-h-7 items-center",children:(0,t.jsx)(r.default,{elementType:u,isLoading:h,variant:s,className:c,skeletonClassName:"h-6 w-60",children:e})}),!f&&(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-1",children:[(0,t.jsx)(r.default,{elementType:g?"h2":"p",isLoading:!w,variant:"Body.S",skeletonClassName:"h-4 w-45",children:w}),o?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.default,{variant:"Body.S",color:"secondary",children:"·"}),(0,t.jsx)(r.default,{variant:"Body.S",color:"secondary",children:y("asOf",{formattedTime:o})})]}):l&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.default,{variant:"Body.S",color:"secondary",children:"·"}),(0,t.jsx)(r.default,{isLoading:!0,variant:"Body.S",skeletonClassName:"h-4 w-40"})]}),!p&&(0,t.jsx)(d,{location:n})]})]})}],924707)},11697,e=>{"use strict";var t=e.i(381477),r=e.i(698674),i=e.i(546446),a=e.i(674885),n=e.i(617874);let o={revalidateOnFocus:!1,dedupingInterval:6e4};e.s(["useGetWeatherInsights",0,({key:e="get-weather-insights",geoCode:l,insightType:s,locale:c,par:d="twc",cscCountryCode:u})=>{let h=(0,i.useAtomValue)(a.userUnitPreferenceAtom),f=((0,n.unitsSystemByName)(h)||n.imperial).code;return(0,t.default)(l?[e,s,l,f,d,c]:null,([e,t,i,a,n,o])=>(0,r.getWeatherInsights)({geocode:i,units:a,language:o,insightType:t,par:n,cscCountryCode:"KR"===u?"KR":void 0}),o)}])},181462,e=>{"use strict";let t=(e,t)=>"string"==typeof e?.[t]?e[t]:void 0;e.s(["getServerLocationCanonicalId",0,e=>t(e,"serverLocationCanonicalId"),"getServerLocationDisplayName",0,e=>t(e,"serverLocationDisplayName"),"getServerLocationIsConus",0,e=>"boolean"==typeof e?.serverLocationIsConus?e.serverLocationIsConus:void 0,"getServerLocationPlaceId",0,e=>t(e,"serverLocationPlaceId"),"resolveLocationHeadingContext",0,(e,r)=>({level:r??"h2",presentationName:t(e,"serverLocationPresentationName"),ownsHeading:"h1"===r})])},950604,e=>{"use strict";let t={ar:{roadsLight:"weather/cjzcvjtvw2jvk1dmw6401lv5f",roadsDark:"weather/cjzcwe7p22kiq1cufsznrxn0j",satellite:"weather/cjzcwxaxk2kxv1dpfm7r2oy4p",grayscale:"weather/ck8k9e89n0xtq1ip2ygpp19cv"},de:{roadsLight:"weather/cjzbc9v9n14051co36j3p2r4y",roadsDark:"weather/cjzbdp71h0vpe1dn0iv1uuxno",satellite:"weather/cjzbewyxb16f41clacifdiwlw",grayscale:"weather/ck8j3yykx0u7n1impkkftca0f"},en:{roadsLight:"weather/cjza0fpcf54z71cnty86ulfhj",roadsDark:"weather/cjza0gjet1d8n1cmh9hyhw2kt",satellite:"weather/cjza0g6kt0zij1cmufoybwgrk",grayscale:"weather/ck8j3ip491cgv1imdwgt83kxg"},es:{roadsLight:"weather/cjzbb7lcc12z61cmp9gtjk3o3",roadsDark:"weather/cjzbehhr016391cpdjborv9ty",satellite:"weather/cjzbf2e0516kf1cqnkpwt4ujg",grayscale:"weather/ck8j42ocv0u4l1hn59helvh41"},fr:{roadsLight:"weather/cjzbb7f4412va1cp9gu6tsxw5",roadsDark:"weather/cjzbefah4160h1cpd1vqsjnsu",satellite:"weather/cjzbezo0p16hs1cqnh422ilfs",grayscale:"weather/ck8j40zpx1cvf1imsvwj14jd5"},in:{roadsLight:"weather/cja1hk6znafpv2sqp1c3z63wb",roadsDark:"weather/cja1iodhlag4i2rnvsw14wkhu",grayscale:"weather/ck8oklev739711jo4loc1r0n9"},ja:{roadsLight:"weather/cjzcvjluh2jp61cufexjvzw9a",roadsDark:"weather/cjzcwamvm2kkl1dmwut09m1wc",satellite:"weather/cjzcwubnu2kks1co3g4o5u7ql",grayscale:"weather/ck8k9e89n0xtq1ip2ygpp19cv"},ko:{roadsLight:"weather/cjzcvjeu92jo21dpfvwgf572d",roadsDark:"weather/cjzcw2wb72jyc1docqldz1tzf",satellite:"weather/cjzcwo2qs2krx1cuf0db82vcx",grayscale:"weather/ck8k9e89n0xtq1ip2ygpp19cv"},pt:{roadsLight:"weather/cjzcvk1xa2g9w1dwzn7mfsjj9",roadsDark:"weather/cjzcwgdpi2kao1cqnjmu9k4ly",satellite:"weather/cjzcwzmps2kr71cq0xrvikiga",grayscale:"weather/ck8k9e89n0xtq1ip2ygpp19cv"},ru:{roadsLight:"weather/cjzbb7qx2133x1cnwiqa8bifv",roadsDark:"weather/cjzbej6bl16161cqnpu401x3p",satellite:"weather/cjzbf4qsd16lt1co274kutrn6",grayscale:"weather/ck8k904c109sp1il3idpltadf"},zh:{roadsLight:"weather/cjzbb7wue13481cpkuk9ro81p",roadsDark:"weather/cjzbelcyb166y1cpdnuheq9ue",satellite:"weather/cjzbf6rq316qg1co3ono2gniv",grayscale:"weather/ck8k9se3g0mwr1il96hsh9mz2"},_:{roadsLight:"weather/cjzbb82gn12z81co8aant0ter",roadsDark:"weather/cjzbenwnq168o1co3atxyr67d",satellite:"weather/cjzbf8qmr16qg1cqnrd9b8g31",grayscale:"weather/ck8k9e89n0xtq1ip2ygpp19cv"}},r={bottomEndId:"Bottom Data Group",middleEndId:"Middle Data Group",topEndId:"Top Data Group"},i={[t.in.roadsLight]:{bottomEndId:"tunnel-street-low",middleEndId:"housenum-label"},[t.in.roadsDark]:{bottomEndId:"tunnel-street-low",middleEndId:"place-city-sm"}},a={en:{roadsLight:"weather/cmph441x8005g01sn12ta16b6",roadsDark:"weather/cmpvi54ib008401syd0vg1piy",satellite:"weather/cmpvtoa8j002s01rehbo205hg",grayscale:"weather/ck8j3ip491cgv1imdwgt83kxg"},ko:{roadsLight:"weather/cmpq44hvg003d01rcgyrafka3",roadsDark:"weather/cmpvu5gvd008t01sydiush7yr",satellite:"weather/cmpvuftfj002u01reesi036jh",grayscale:"weather/ck8k9e89n0xtq1ip2ygpp19cv"}},n={ar:{roadsLight:"weather/cl27q8xy5004015jznwdr2jux",roadsDark:"weather/cl27t1sof001014qklb7mnhmy",satellite:"weather/cl27tfc94000n14nrxvqj1r6x",grayscale:"weather/cl27udvrb00cr14qvessadsma"},en:{roadsLight:"weather/cl29hgygu000514nsipiki72e",roadsDark:"weather/cl2878qzu001514nu9enf9n8l",satellite:"weather/cl287db0x00c714pcvfwktsbm",grayscale:"weather/cl287gh8k001t15m8jw4dmcas"},es:{roadsLight:"weather/cl29gw5va001d14rqdzl3y423",roadsDark:"weather/cl29h0oc9001d14qpzmyi2695",satellite:"weather/cl29h5h50005q14nw84644huz",grayscale:"weather/cl29hbn28005a15nzjogzrx24"},fr:{roadsLight:"weather/cl287k6n8000115s3fj52086u",roadsDark:"weather/cl287tjl5003x14nwjkzsprdg",satellite:"weather/cl287we0j003y14nwbds6gojj",grayscale:"weather/cl287z8cn001g15nwaoqxecmw"},_:{roadsLight:"weather/cl29hkzws001f14rq7pzuwhre",roadsDark:"weather/cl29kelz6001e14t1pgsozymj",satellite:"weather/cl29khb2p001n15lmy7ansx20",grayscale:"weather/cl27udvrb00cr14qvessadsma"}};function o(e,r){let i=function({locale:e,geoCountry:r,isSamsungMorocco:i,isKoreanCSC:o}={}){let[l="en",s]=(e||"en").split("-"),c=l.toLowerCase();if(o){let e=a[c];if(e)return e}if(s?.toUpperCase()==="IN"||r?.toUpperCase()==="IN")return t.in;let d=i?n:t;return d[c]??d._}(r);return i[e]??i.roadsLight}let l="mapbox://styles/",s={light:"weather/cmq18dhse00gk01s67nky5oc4",dark:"weather/cmpzizddb007f01s0480lew2j",satellite:"weather/cmpzjludd000401qs2inuays8"},c={light:"roadsLight",dark:"roadsDark",satellite:"satellite"},d="classic".trim().toLowerCase()==="classic"?"classic":"standard";function u(e,t=d,r={}){let i="classic"===t?o(c[e],r):s[e];return`${l}${i}`}let h=[{id:"light",label:"themeLabelLight",mapStyle:u("light"),thumbnailGradient:"from-sky-200 to-blue-300"},{id:"dark",label:"themeLabelDark",mapStyle:u("dark"),thumbnailGradient:"from-slate-700 to-slate-900"},{id:"satellite",label:"themeLabelSatellite",mapStyle:u("satellite"),thumbnailGradient:"from-emerald-700 to-stone-800"}],f=new Set(["ar","de","en","es","fr","it","ja","ko","pt","ru"]),p=new Set(["TW","HK","MO","HANT"]);e.s(["DEFAULT_MAP_THEME_ID",0,"light","FEATURE_MAP_STYLE",0,"mapbox://styles/weather/cjza0fpcf54z71cnty86ulfhj","MAPBOX_BASEMAP_VARIANT",0,d,"MAP_THEMES",0,h,"mapboxBasemapLanguage",0,function(e="en-US"){let[t,r]=e.split("-"),i=(t??"").toLowerCase(),a=(r??"").toUpperCase();return"zh"===i?p.has(a)?"zhHant":"zhHans":f.has(i)?i:void 0},"resolveMapBasemap",0,function(e,t=d,a={}){var n;let s,h;if("classic"!==t)return u(e,t,a);let{styleId:f,dividers:p}=(h=i[s=o(n=c[e],a)]??("grayscale"===n?null:r),{styleId:s,dividers:h}),m=`${l}${f}`;return p?{type:"MapboxBasemapClassic",source:m,...p}:m},"resolveMapStyle",0,u],950604)},665488,e=>{"use strict";var t=e.i(902875),r=e.i(247865),i=e.i(859827),a=e.i(993269),n=e.i(632137),o=e.i(368847),l=e.i(240058),s=e.i(855128),c=e.i(251590),d=e.i(271359),u=e.i(543836),h=e.i(803976),f=e.i(942928),p=e.i(714035),m=e.i(312610),g=e.i(296994),v=Object.defineProperty,y=(e,t)=>v(e,"name",{value:t,configurable:!0}),w="Collapsible",[x,b]=(0,s.createContextScope)(w),[C,j]=x(w),A=r.forwardRef(y(function(e,i){let{__scopeCollapsible:a,open:n,defaultOpen:o,disabled:l,onOpenChange:s,...c}=e,[d,u]=(0,h.useControllableState)({prop:n,defaultProp:o??!1,onChange:s,caller:w});return(0,t.jsx)(C,{scope:a,disabled:l,contentId:(0,g.useId)(),open:d,onOpenToggle:r.useCallback(()=>u(e=>!e),[u]),children:(0,t.jsx)(f.Primitive.div,{"data-state":T(d),"data-disabled":l?"":void 0,...c,ref:i})})},"Collapsible")),S=r.forwardRef(y(function(e,r){let{__scopeCollapsible:i,...a}=e,n=j("CollapsibleTrigger",i);return(0,t.jsx)(f.Primitive.button,{type:"button","aria-controls":n.open?n.contentId:void 0,"aria-expanded":n.open||!1,"data-state":T(n.open),"data-disabled":n.disabled?"":void 0,disabled:n.disabled,...a,ref:r,onClick:(0,u.composeEventHandlers)(e.onClick,n.onOpenToggle)})},"CollapsibleTrigger")),k="CollapsibleContent",I=r.forwardRef(y(function(e,r){let{forceMount:i,...a}=e,n=j(k,e.__scopeCollapsible);return(0,t.jsx)(m.Presence,{present:i||n.open,children:({present:e})=>(0,t.jsx)(E,{...a,ref:r,present:e})})},"CollapsibleContent")),E=r.forwardRef(y(function(e,i){let{__scopeCollapsible:a,present:n,children:o,...l}=e,s=j(k,a),[c,u]=r.useState(n),h=r.useRef(null),m=(0,d.useComposedRefs)(i,h),g=r.useRef(0),v=g.current,y=r.useRef(0),w=y.current,x=s.open||c,b=r.useRef(x),C=r.useRef(void 0);return r.useEffect(()=>{let e=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,p.useLayoutEffect)(()=>{let e=h.current;if(e){C.current=C.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();g.current=t.height,y.current=t.width,b.current||(e.style.transitionDuration=C.current.transitionDuration,e.style.animationName=C.current.animationName),u(n)}},[s.open,n]),(0,t.jsx)(f.Primitive.div,{"data-state":T(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!x,...l,ref:m,style:{"--radix-collapsible-content-height":v?`${v}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...e.style},children:x&&o})},"CollapsibleContentImpl"));function T(e){return e?"open":"closed"}y(T,"getState");var D=e.i(986044),M=Object.defineProperty,R=(e,t)=>M(e,"name",{value:t,configurable:!0}),N="Accordion",P=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[L,O,_]=(0,c.createCollection)(N),[H,z]=(0,s.createContextScope)(N,[_,b]),U=b(),F=r.forwardRef(R(function(e,r){let{type:i,...a}=e;return(0,t.jsx)(L.Provider,{scope:e.__scopeAccordion,children:"multiple"===i?(0,t.jsx)(Q,{...a,ref:r}):(0,t.jsx)(B,{...a,ref:r})})},"Accordion")),[q,V]=H(N),[G,W]=H(N,{collapsible:!1}),B=r.forwardRef(R(function(e,i){let{value:a,defaultValue:n,onValueChange:o=R(()=>{},"onValueChange"),collapsible:l=!1,...s}=e,[c,d]=(0,h.useControllableState)({prop:a,defaultProp:n??"",onChange:o,caller:N});return(0,t.jsx)(q,{scope:e.__scopeAccordion,value:r.useMemo(()=>c?[c]:[],[c]),onItemOpen:d,onItemClose:r.useCallback(()=>l&&d(""),[l,d]),children:(0,t.jsx)(G,{scope:e.__scopeAccordion,collapsible:l,children:(0,t.jsx)(Y,{...s,ref:i})})})},"AccordionImplSingle")),Q=r.forwardRef(R(function(e,i){let{value:a,defaultValue:n,onValueChange:o=R(()=>{},"onValueChange"),...l}=e,[s,c]=(0,h.useControllableState)({prop:a,defaultProp:n??[],onChange:o,caller:N}),d=r.useCallback(e=>c((t=[])=>[...t,e]),[c]),u=r.useCallback(e=>c((t=[])=>t.filter(t=>t!==e)),[c]);return(0,t.jsx)(q,{scope:e.__scopeAccordion,value:s,onItemOpen:d,onItemClose:u,children:(0,t.jsx)(G,{scope:e.__scopeAccordion,collapsible:!0,children:(0,t.jsx)(Y,{...l,ref:i})})})},"AccordionImplMultiple")),[$,K]=H(N),Y=r.forwardRef(R(function(e,i){let{__scopeAccordion:a,disabled:n,dir:o,orientation:l="vertical",...s}=e,c=r.useRef(null),h=(0,d.useComposedRefs)(c,i),p=O(a),m="ltr"===(0,D.useDirection)(o),g=(0,u.composeEventHandlers)(e.onKeyDown,e=>{if(!P.includes(e.key))return;let t=e.target,r=p().filter(e=>!e.ref.current?.disabled),i=r.findIndex(e=>e.ref.current===t),a=r.length;if(-1===i)return;e.preventDefault();let n=i,o=a-1,s=R(()=>{(n=i+1)>o&&(n=0)},"moveNext"),c=R(()=>{(n=i-1){e?l.onItemOpen(a):l.onItemClose(a)}})})},"AccordionItem")),et=r.forwardRef(R(function(e,r){let{__scopeAccordion:i,...a}=e,n=K(N,i),o=X("AccordionHeader",i);return(0,t.jsx)(f.Primitive.h3,{"data-orientation":n.orientation,"data-state":en(o.open),"data-disabled":o.disabled?"":void 0,...a,ref:r})},"AccordionHeader")),er="AccordionTrigger",ei=r.forwardRef(R(function(e,r){let{__scopeAccordion:i,...a}=e,n=K(N,i),o=X(er,i),l=W(er,i),s=U(i);return(0,t.jsx)(L.ItemSlot,{scope:i,children:(0,t.jsx)(S,{"aria-disabled":o.open&&!l.collapsible||void 0,"data-orientation":n.orientation,id:o.triggerId,...s,...a,ref:r})})},"AccordionTrigger")),ea=r.forwardRef(R(function(e,r){let{__scopeAccordion:i,...a}=e,n=K(N,i),o=X("AccordionContent",i),l=U(i);return(0,t.jsx)(I,{role:"region","aria-labelledby":o.triggerId,"data-orientation":n.orientation,...l,...a,ref:r,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})},"AccordionContent"));function en(e){return e?"open":"closed"}R(en,"getState"),r.forwardRef(({className:e,href:r,children:i,...a},n)=>(0,t.jsx)(l.default,{ref:n,href:r,...a,children:(0,t.jsx)(o.Text,{variant:"Caption.M",color:"secondary",children:i})})).displayName="AccordionTextLink";let eo=r.forwardRef(({className:e,type:r="single",collapsible:i=!0,...a},o)=>{let l={ref:o,type:r,className:(0,n.cn)("w-full",e),"data-slot":"accordion",...a};return"single"===r&&(l.collapsible=i),(0,t.jsx)(F,{...l})});eo.displayName="Accordion",r.forwardRef(({className:e,children:r,enabled:i=!1,...a},l)=>(0,t.jsx)("div",{ref:l,className:(0,n.cn)("mt-4",e),...a,children:(0,t.jsx)(o.Text,{variant:"Caption.M",color:"disabled",children:r})})).displayName="AccordionTextSpotlight",e.s(["Accordion",0,eo,"AccordionContent",0,function({className:e,animated:r,...i}){return(0,t.jsx)(ea,{"data-slot":"accordion-content",className:(0,n.cn)("overflow-hidden text-sm transition-all",{"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down":r},e),...i})},"AccordionItem",0,function({className:e,...r}){return(0,t.jsx)(ee,{"data-slot":"accordion-item",className:(0,n.cn)("w-full",e),...r})},"AccordionTrigger",0,function({className:e,children:r,triggerContent:l,title:s,number:c,iconClassName:d,iconNodeOverride:u,...h}){return(0,t.jsx)(et,{className:"flex",children:(0,t.jsxs)(ei,{"data-slot":"accordion-trigger",className:(0,n.cn)("hover:text-whale-400 group flex flex-1 cursor-pointer items-center justify-between py-4 text-left font-medium transition-all",e),...h,children:[(0,t.jsxs)("div",{className:"flex grow items-center",children:[void 0!==c&&(0,t.jsx)("div",{className:"mr-3 flex h-6 w-6 items-center justify-center rounded-full bg-[#204794] text-sm font-medium text-white",children:(0,t.jsx)("span",{className:"leading-none tracking-wide",children:c})}),l||(s?(0,t.jsx)(o.Text,{variant:"Body.L",children:s}):r)]}),(0,t.jsx)("div",{className:"relative flex items-center",children:u||(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.Plus,{className:(0,n.cn)("h-5 w-5 shrink-0 transition-all duration-200",d,"group-data-[state=open]:rotate-45 group-data-[state=open]:opacity-0")}),(0,t.jsx)(a.Minus,{className:(0,n.cn)("absolute h-5 w-5 shrink-0 opacity-0 transition-all duration-200",d,"group-data-[state=open]:opacity-100")})]})})]})})}],665488)},846871,e=>{"use strict";var t=e.i(902875),r=e.i(294237),i=e.i(632137);let a=(0,r.cva)("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"}});e.s(["Loader",0,({className:e,size:r,variant:n,label:o})=>(0,t.jsx)("div",{className:(0,i.cn)(a({size:r,variant:n}),e),"aria-label":o})])},546334,e=>{"use strict";var t=e.i(902875),r=e.i(247865),i=e.i(725287),a=e.i(381477),n=e.i(925209),o=e.i(564993),l=e.i(985542),s=e.i(612977),c=e.i(368847),d=e.i(877957),u=/[\\\/_+.#"@\[\(\{&]/,h=/[\\\/_+.#"@\[\(\{&]/g,f=/[\s-]/,p=/[\s-]/g;function m(e){return e.toLowerCase().replace(p," ")}var g=e.i(396817),v=e.i(942928),y=e.i(296994),w=e.i(271359),x='[cmdk-group=""]',b='[cmdk-group-items=""]',C='[cmdk-item=""]',j=`${C}:not([aria-disabled="true"])`,A="cmdk-item-select",S="data-value",k=(e,t,r)=>{var i;return i=e,function e(t,r,i,a,n,o,l){if(o===r.length)return n===t.length?1:.99;var s=`${n},${o}`;if(void 0!==l[s])return l[s];for(var c,d,m,g,v=a.charAt(o),y=i.indexOf(v,n),w=0;y>=0;)(c=e(t,r,i,a,y+1,o+1,l))>w&&(y===n?c*=1:u.test(t.charAt(y-1))?(c*=.8,(m=t.slice(n,y-1).match(h))&&n>0&&(c*=Math.pow(.999,m.length))):f.test(t.charAt(y-1))?(c*=.9,(g=t.slice(n,y-1).match(p))&&n>0&&(c*=Math.pow(.999,g.length))):(c*=.17,n>0&&(c*=Math.pow(.999,y-n))),t.charAt(y)!==r.charAt(o)&&(c*=.9999)),(c<.1>c&&(c=.1*d),c>w&&(w=c),y=i.indexOf(v,y+1);return l[s]=w,w}(i=r&&r.length>0?`${i+" "+r.join(" ")}`:i,t,m(i),m(t),0,0,{})},I=r.createContext(void 0),E=r.createContext(void 0),T=r.createContext(void 0),D=r.forwardRef((e,t)=>{let i=U(()=>{var t,r;return{search:"",value:null!=(r=null!=(t=e.value)?t:e.defaultValue)?r:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),a=U(()=>new Set),n=U(()=>new Map),o=U(()=>new Map),l=U(()=>new Set),s=H(e),{label:c,children:d,value:u,onValueChange:h,filter:f,shouldFilter:p,loop:m,disablePointerSelection:g=!1,vimBindings:w=!0,...T}=e,D=(0,y.useId)(),M=(0,y.useId)(),R=(0,y.useId)(),N=r.useRef(null),P=V();z(()=>{if(void 0!==u){let e=u.trim();i.current.value=e,L.emit()}},[u]),z(()=>{P(6,Q)},[]);let L=r.useMemo(()=>({subscribe:e=>(l.current.add(e),()=>l.current.delete(e)),snapshot:()=>i.current,setState:(e,t,r)=>{var a,n,o,l;if(!Object.is(i.current[e],t)){if(i.current[e]=t,"search"===e)B(),F(),P(1,q);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(R);e?e.focus():null==(a=document.getElementById(D))||a.focus()}if(P(7,()=>{var e;i.current.selectedItemId=null==(e=$())?void 0:e.id,L.emit()}),r||P(5,Q),(null==(n=s.current)?void 0:n.value)!==void 0){null==(l=(o=s.current).onValueChange)||l.call(o,null!=t?t:"");return}}L.emit()}},emit:()=>{l.current.forEach(e=>e())}}),[]),O=r.useMemo(()=>({value:(e,t,r)=>{var a;t!==(null==(a=o.current.get(e))?void 0:a.value)&&(o.current.set(e,{value:t,keywords:r}),i.current.filtered.items.set(e,_(t,r)),P(2,()=>{F(),L.emit()}))},item:(e,t)=>(a.current.add(e),t&&(n.current.has(t)?n.current.get(t).add(e):n.current.set(t,new Set([e]))),P(3,()=>{B(),F(),i.current.value||q(),L.emit()}),()=>{o.current.delete(e),a.current.delete(e),i.current.filtered.items.delete(e);let t=$();P(4,()=>{B(),(null==t?void 0:t.getAttribute("id"))===e&&q(),L.emit()})}),group:e=>(n.current.has(e)||n.current.set(e,new Set),()=>{o.current.delete(e),n.current.delete(e)}),filter:()=>s.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:D,inputId:R,labelId:M,listInnerRef:N}),[]);function _(e,t){var r,a;let n=null!=(a=null==(r=s.current)?void 0:r.filter)?a:k;return e?n(e,i.current.search,t):0}function F(){if(!i.current.search||!1===s.current.shouldFilter)return;let e=i.current.filtered.items,t=[];i.current.filtered.groups.forEach(r=>{let i=n.current.get(r),a=0;i.forEach(t=>{a=Math.max(e.get(t),a)}),t.push([r,a])});let r=N.current;K().sort((t,r)=>{var i,a;let n=t.getAttribute("id"),o=r.getAttribute("id");return(null!=(i=e.get(o))?i:0)-(null!=(a=e.get(n))?a:0)}).forEach(e=>{let t=e.closest(b);t?t.appendChild(e.parentElement===t?e:e.closest(`${b} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${b} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let r=null==(t=N.current)?void 0:t.querySelector(`${x}[${S}="${encodeURIComponent(e[0])}"]`);null==r||r.parentElement.appendChild(r)})}function q(){let e=K().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(S);L.setState("value",t||void 0)}function B(){var e,t,r,l;if(!i.current.search||!1===s.current.shouldFilter){i.current.filtered.count=a.current.size;return}i.current.filtered.groups=new Set;let c=0;for(let n of a.current){let a=_(null!=(t=null==(e=o.current.get(n))?void 0:e.value)?t:"",null!=(l=null==(r=o.current.get(n))?void 0:r.keywords)?l:[]);i.current.filtered.items.set(n,a),a>0&&c++}for(let[e,t]of n.current)for(let r of t)if(i.current.filtered.items.get(r)>0){i.current.filtered.groups.add(e);break}i.current.filtered.count=c}function Q(){var e,t,r;let i=$();i&&((null==(e=i.parentElement)?void 0:e.firstChild)===i&&(null==(r=null==(t=i.closest(x))?void 0:t.querySelector('[cmdk-group-heading=""]'))||r.scrollIntoView({block:"nearest"})),i.scrollIntoView({block:"nearest"}))}function $(){var e;return null==(e=N.current)?void 0:e.querySelector(`${C}[aria-selected="true"]`)}function K(){var e;return Array.from((null==(e=N.current)?void 0:e.querySelectorAll(j))||[])}function Y(e){let t=K()[e];t&&L.setState("value",t.getAttribute(S))}function Z(e){var t;let r=$(),i=K(),a=i.findIndex(e=>e===r),n=i[a+e];null!=(t=s.current)&&t.loop&&(n=a+e0?function(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}(r,x):function(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}(r,x))?void 0:r.querySelector(j);i?L.setState("value",i.getAttribute(S)):Z(e)}let X=()=>Y(K().length-1),ee=e=>{e.preventDefault(),e.metaKey?X():e.altKey?J(1):Z(1)},et=e=>{e.preventDefault(),e.metaKey?Y(0):e.altKey?J(-1):Z(-1)};return r.createElement(v.Primitive.div,{ref:t,tabIndex:-1,...T,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=T.onKeyDown)||t.call(T,e);let r=e.nativeEvent.isComposing||229===e.keyCode;if(!(e.defaultPrevented||r))switch(e.key){case"n":case"j":w&&e.ctrlKey&&ee(e);break;case"ArrowDown":ee(e);break;case"p":case"k":w&&e.ctrlKey&&et(e);break;case"ArrowUp":et(e);break;case"Home":e.preventDefault(),Y(0);break;case"End":e.preventDefault(),X();break;case"Enter":{e.preventDefault();let t=$();if(t){let e=new Event(A);t.dispatchEvent(e)}}}}},r.createElement("label",{"cmdk-label":"",htmlFor:O.inputId,id:O.labelId,style:W},c),G(e,e=>r.createElement(E.Provider,{value:L},r.createElement(I.Provider,{value:O},e))))}),M=r.forwardRef((e,t)=>{var i,a;let n=(0,y.useId)(),o=r.useRef(null),l=r.useContext(T),s=r.useContext(I),c=H(e),d=null!=(a=null==(i=c.current)?void 0:i.forceMount)?a:null==l?void 0:l.forceMount;z(()=>{if(!d)return s.item(n,null==l?void 0:l.id)},[d]);let u=q(n,o,[e.value,e.children,o],e.keywords),h=r.useContext(E),f=F(e=>e.value&&e.value===u.current),p=F(e=>!!d||!1===s.filter()||!e.search||e.filtered.items.get(n)>0);function m(){var e,t;g(),null==(t=(e=c.current).onSelect)||t.call(e,u.current)}function g(){h.setState("value",u.current,!0)}if(r.useEffect(()=>{let t=o.current;if(!(!t||e.disabled))return t.addEventListener(A,m),()=>t.removeEventListener(A,m)},[p,e.onSelect,e.disabled]),!p)return null;let{disabled:x,value:b,onSelect:C,forceMount:j,keywords:S,...k}=e;return r.createElement(v.Primitive.div,{ref:(0,w.composeRefs)(o,t),...k,id:n,"cmdk-item":"",role:"option","aria-disabled":!!x,"aria-selected":!!f,"data-disabled":!!x,"data-selected":!!f,onPointerMove:x||s.getDisablePointerSelection()?void 0:g,onClick:x?void 0:m},e.children)}),R=r.forwardRef((e,t)=>{let{heading:i,children:a,forceMount:n,...o}=e,l=(0,y.useId)(),s=r.useRef(null),c=r.useRef(null),d=(0,y.useId)(),u=r.useContext(I),h=F(e=>!!n||!1===u.filter()||!e.search||e.filtered.groups.has(l));z(()=>u.group(l),[]),q(l,s,[e.value,e.heading,c]);let f=r.useMemo(()=>({id:l,forceMount:n}),[n]);return r.createElement(v.Primitive.div,{ref:(0,w.composeRefs)(s,t),...o,"cmdk-group":"",role:"presentation",hidden:!h||void 0},i&&r.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:d},i),G(e,e=>r.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":i?d:void 0},r.createElement(T.Provider,{value:f},e))))}),N=r.forwardRef((e,t)=>{let{alwaysRender:i,...a}=e,n=r.useRef(null),o=F(e=>!e.search);return i||o?r.createElement(v.Primitive.div,{ref:(0,w.composeRefs)(n,t),...a,"cmdk-separator":"",role:"separator"}):null}),P=r.forwardRef((e,t)=>{let{onValueChange:i,...a}=e,n=null!=e.value,o=r.useContext(E),l=F(e=>e.search),s=F(e=>e.selectedItemId),c=r.useContext(I);return r.useEffect(()=>{null!=e.value&&o.setState("search",e.value)},[e.value]),r.createElement(v.Primitive.input,{ref:t,...a,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":s,id:c.inputId,type:"text",value:n?e.value:l,onChange:e=>{n||o.setState("search",e.target.value),null==i||i(e.target.value)}})}),L=r.forwardRef((e,t)=>{let{children:i,label:a="Suggestions",...n}=e,o=r.useRef(null),l=r.useRef(null),s=F(e=>e.selectedItemId),c=r.useContext(I);return r.useEffect(()=>{if(l.current&&o.current){let e=l.current,t=o.current,r,i=new ResizeObserver(()=>{r=requestAnimationFrame(()=>{let r=e.offsetHeight;t.style.setProperty("--cmdk-list-height",r.toFixed(1)+"px")})});return i.observe(e),()=>{cancelAnimationFrame(r),i.unobserve(e)}}},[]),r.createElement(v.Primitive.div,{ref:(0,w.composeRefs)(o,t),...n,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":s,"aria-label":a,id:c.listId},G(e,e=>r.createElement("div",{ref:(0,w.composeRefs)(l,c.listInnerRef),"cmdk-list-sizer":""},e)))}),O=r.forwardRef((e,t)=>{let{open:i,onOpenChange:a,overlayClassName:n,contentClassName:o,container:l,...s}=e;return r.createElement(g.Root,{open:i,onOpenChange:a},r.createElement(g.Portal,{container:l},r.createElement(g.Overlay,{"cmdk-overlay":"",className:n}),r.createElement(g.Content,{"aria-label":e.label,"cmdk-dialog":"",className:o},r.createElement(D,{ref:t,...s}))))}),_=Object.assign(D,{List:L,Item:M,Input:P,Group:R,Separator:N,Dialog:O,Empty:r.forwardRef((e,t)=>F(e=>0===e.filtered.count)?r.createElement(v.Primitive.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Loading:r.forwardRef((e,t)=>{let{progress:i,children:a,label:n="Loading...",...o}=e;return r.createElement(v.Primitive.div,{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":i,"aria-valuemin":0,"aria-valuemax":100,"aria-label":n},G(e,e=>r.createElement("div",{"aria-hidden":!0},e)))})});function H(e){let t=r.useRef(e);return z(()=>{t.current=e}),t}var z="u"e(t.snapshot());return r.useSyncExternalStore(t.subscribe,i,i)}function q(e,t,i,a=[]){let n=r.useRef(),o=r.useContext(I);return z(()=>{var r;let l=(()=>{var e;for(let t of i){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():n.current}})(),s=a.map(e=>e.trim());o.value(e,l,s),null==(r=t.current)||r.setAttribute(S,l),n.current=l}),n}var V=()=>{let[e,t]=r.useState(),i=U(()=>new Map);return z(()=>{i.current.forEach(e=>e()),i.current=new Map},[e]),(e,r)=>{i.current.set(e,r),t({})}};function G({asChild:e,children:t},i){let a;return e&&r.isValidElement(t)?r.cloneElement("function"==typeof(a=t.type)?a(t.props):"render"in a?a.render(t.props):t,{ref:t.ref},i(t.props.children)):i(t)}var W={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};let B=(0,e.i(514514).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);var Q=e.i(632137);function $({className:e,...r}){return(0,t.jsx)(_,{"data-slot":"command",className:(0,Q.cn)("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...r})}function K({className:e,...r}){return(0,t.jsxs)("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[(0,t.jsx)(B,{className:"size-4 shrink-0 opacity-50"}),(0,t.jsx)(_.Input,{"data-slot":"command-input",className:(0,Q.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",e),...r})]})}function Y({className:e,...r}){return(0,t.jsx)(_.List,{"data-slot":"command-list",className:(0,Q.cn)("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...r})}function Z({className:e,...r}){return(0,t.jsx)(_.Group,{"data-slot":"command-group",className:(0,Q.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",e),...r})}function J({className:e,...r}){return(0,t.jsx)(_.Item,{"data-slot":"command-item",className:(0,Q.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",e),...r})}e.i(62544);var X=e.i(809058);e.s(["LocationInput",0,function({location:e,onChangeLocation:u,label:h="Search for a location",placeholder:f="Search city or zip code",className:p,error:m,disabled:g=!1}){let v=(0,i.useParams)(),y=v?.locale,[w,x]=(0,r.useState)(!1),[b,C]=(0,r.useState)(""),j=(0,s.default)(b.trim(),300),A=e?`${e.city}, ${e.adminDistrictCode||e.adminDistrict||e.displayContext}`:null,{isLoading:S,data:k}=(0,a.default)(j?["location-search",j,y]:null,([,e,t])=>(0,l.getLocationsByQuery)(e,t));return(0,t.jsxs)("div",{className:"w-full min-w-0",children:[(0,t.jsxs)(X.Popover,{open:w,onOpenChange:x,children:[(0,t.jsx)(X.PopoverTrigger,{asChild:!0,children:(0,t.jsxs)(d.Button,{variant:"outline",role:"combobox",disabled:g,"aria-expanded":w,"aria-invalid":!!m,className:(0,Q.cn)("flex w-full justify-start gap-2 bg-white px-3 text-left font-normal text-gray-900",p,!!e&&"border-black",m&&"border-alert-severe"),children:[S?(0,t.jsx)(o.LoaderCircle,{className:"size-4 shrink-0 animate-spin","aria-hidden":"true",title:""}):(0,t.jsx)(n.Location,{className:"size-4 shrink-0","aria-hidden":"true",title:""}),(0,t.jsx)("span",{className:"flex-1 truncate",children:A??h})]})}),(0,t.jsx)(X.PopoverContent,{side:"bottom",align:"start",collisionPadding:8,className:"w-(--radix-popover-trigger-width) p-0",showArrow:!1,children:(0,t.jsxs)($,{shouldFilter:!1,children:[(0,t.jsx)(K,{placeholder:f,value:b,onValueChange:C}),(0,t.jsx)(Y,{className:"max-h-[min(200px,46vh)] min-h-10",children:(0,t.jsx)(Z,{children:k?.map(e=>(0,t.jsx)(J,{value:e.locId,onSelect:()=>{u(e),x(!1)},children:e.address},e.locId))})})]})})]}),m&&(0,t.jsx)(c.Text,{variant:"Caption.S",color:"error",className:"mt-1",children:m})]})}],546334)},548888,763635,e=>{"use strict";var t=e.i(902875),r=e.i(247865),i=e.i(632137),a=e.i(747961);let n=(0,r.forwardRef)(({title:e,titleId:r,desc:i,descId:a,...n},o)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:o,"aria-labelledby":r,"aria-describedby":a,...n,children:[i?(0,t.jsx)("desc",{id:a,children:i}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"Arrow Down"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.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"})]})),o=r.default.forwardRef((e,r)=>(0,t.jsx)(a.BaseIcon,{ref:r,icon:n,...e}));o.displayName="ArrowDown",e.s(["ArrowDown",0,o],763635);var l=e.i(955105),s=e.i(617874);let c={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},d=({windDirection:e,windDirectionCardinal:r,iconClassName:a,iconColor:n,displayWindDirectionIcon:s,displayMode:d,afterSpeed:u,useWindIcon:h})=>{var f,p;if(!e&&!r)return null;let m=(f=e,p=r,null!=f&&Number.isFinite(f)?f:p?c[p]:void 0);if(!("directional"===d||"directionalAndCardinal"===d||void 0===d&&s||h)||!h&&!Number.isFinite(m))return null;let g=h?l.Wind:o,v=h?void 0:{transform:`rotate(${m}deg)`};return(0,t.jsx)(g,{className:(0,i.cn)("inline-block size-4 align-middle",u?"ml-0.5":"mr-0.5",a),color:n,style:v,"aria-label":"Wind direction icon","data-testid":"WindDirectionIcon"})},u=({windDirection:e,windDirectionCardinal:r,cardinalClassName:i,displayWindDirectionIcon:a,displayMode:n,beforeSpeed:o})=>(e||r)&&("cardinal"===n||"directionalAndCardinal"===n||void 0===n&&!a)&&r?(0,t.jsxs)("span",{className:i,children:[!o&&" ",r,o&&" "]}):null,h=({units:e,windUnitClass:r})=>{let a=e?(0,s.unitsSystemByCode)(e):null,n=a?.speed;return(0,t.jsx)("span",{className:(0,i.cn)(r),children:n})},f=(0,r.memo)(({windSpeed:e,units:r,className:a,windDirection:n,windDirectionCardinal:o,windSpeedClass:l,windUnitClass:s,iconClassName:c,iconColor:f,cardinalClassName:p,iconAfterSpeed:m,cardinalBeforeSpeed:g,spaceWindSpeedAndUnit:v=!0,displayWindDirectionIcon:y=!1,displayMode:w,useWindIcon:x})=>{let b=(0,t.jsx)(d,{windDirection:n,windDirectionCardinal:o,iconClassName:c,iconColor:f,displayWindDirectionIcon:y,displayMode:w,afterSpeed:m,useWindIcon:x}),C=(0,t.jsx)(u,{windDirection:n,windDirectionCardinal:o,displayWindDirectionIcon:y,displayMode:w,beforeSpeed:g,cardinalClassName:p});return(0,t.jsxs)("span",{"data-testid":"Wind",className:(0,i.cn)(a),children:[!m&&b,g&&C,Number.isFinite(e)&&r?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:(0,i.cn)(l),children:e}),v&&" ",(0,t.jsx)(h,{units:r,windUnitClass:s})]}):(0,t.jsx)("span",{className:(0,i.cn)(l),children:"--"}),!g&&C,m&&b]})});e.s(["Wind",0,f],548888)},713272,e=>{"use strict";var t=e.i(873598),r=e.i(796424);e.s(["convertToTimeInTimezone",0,(e,i)=>(0,r.getNormalizedDateString)(new Intl.DateTimeFormat("en-US",{timeZone:(0,t.getCompatibleTimezone)(i),year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1,timeZoneName:"longOffset"}).format(new Date(e)))])},523126,e=>{"use strict";e.s(["diffInDays",0,(e,t)=>e&&t?Math.floor((Date.parse(t)-Date.parse(e))/864e5):0])},409846,e=>{"use strict";var t=e.i(873598);e.s(["formatTime",0,(e,r,i)=>{if(!e)return"";try{let a=new Date(e),n={hour:"numeric",minute:"2-digit",hour12:!0,timeZoneName:"short",...i?{timeZone:(0,t.getCompatibleTimezone)(i)}:{}};if(!r)return a.toLocaleTimeString("en-US",n);return a.toLocaleTimeString(r,n)}catch(e){return console.error("Error formatting time:",e),""}}])},491480,e=>{"use strict";var t=e.i(796424);e.s(["getLocalDate",0,({date:e,normalizeString:r=!0,resetToStartOfHour:i,resetToOffset:a,resetToStartOfDay:n,resetToStartOfMonth:o,resetToEndOfMonth:l,resetToStartOfWeek:s,resetToEndOfWeek:c,resetToHour:d,daysFromDate:u,daysBeforeDate:h,monthsBeforeDate:f,monthsAfterDate:p,yearsBeforeDate:m,yearsAfterDate:g})=>{if(!e)return new Date;let v=r||"string"!=typeof e?(0,t.getNormalizedDateString)(e):e,y=/([+-]\d{2}:?\d{2})$/,w=v.match(y),x=new Date(v.replace(y,""));if(u&&x.setDate(x.getDate()+u),h&&x.setDate(x.getDate()-h),f&&x.setMonth(x.getMonth()-f),p&&x.setMonth(x.getMonth()+p),i&&(x.setMinutes(0),x.setSeconds(0)),a&&w){let e,t=w[0];t.includes(":")?[,e]=t.split(":"):e=t.slice(-2),x.setMinutes(parseInt(e||"0",10)),x.setSeconds(0)}if(n&&x.setHours(0,0,0,0),o&&x.setDate(1),l){let e=x.getMonth(),t=x.getFullYear();x.setMonth(e+1),x.setDate(0),x.setFullYear(t)}return s&&x.setDate(x.getDate()-x.getDay()),c&&x.setDate(x.getDate()-x.getDay()+6),d&&x.setHours(d),m&&x.setFullYear(x.getFullYear()-1),g&&x.setFullYear(x.getFullYear()+1),x}])},308427,892186,e=>{"use strict";e.s(["getLODRoundedVal",0,(e,t)=>{let r=(e=>{if(e=12)return 3;throw Error("Cannot get precision from invalid level of detail")})(t),i=parseFloat(e),a=10**r,n=0===r?1:5;return(Math.sign(i)*Math.round(Math.abs(i)*a/n)*n/a).toFixed(r)}],308427);var t=e.i(902875),r=e.i(247865),i=e.i(632137),a=e.i(809058);let n={"top-left":"top-0 left-0 flex-row","top-right":"top-0 right-0 flex-row-reverse","bottom-left":"bottom-0 left-0 flex-row","bottom-right":"bottom-0 right-0 flex-row-reverse"},o={"top-left":"bottom","top-right":"bottom","bottom-left":"top","bottom-right":"top"},l={"top-left":"start","top-right":"end","bottom-left":"start","bottom-right":"end"},s={blue:"fill-brand-300",white:"fill-white"},c=({position:e="bottom-right",color:c="blue",className:u="",linksClassName:h="",stack:f=!1})=>{let[p,m]=(0,r.useState)(!1);return(0,t.jsx)("div",{className:(0,i.cn)("absolute flex items-start gap-1",n[e],u),"data-testid":"MapboxAttribution",children:(0,t.jsxs)(a.Popover,{open:p,onOpenChange:m,children:[(0,t.jsx)(a.PopoverTrigger,{asChild:!0,children:(0,t.jsx)("button",{type:"button",className:(0,i.cn)("flex cursor-pointer items-center p-0",s[c]),"aria-label":"Map Attribution","data-testid":"MapboxLinks",children:(0,t.jsx)(d,{})})}),(0,t.jsxs)(a.PopoverContent,{side:o[e],align:l[e],sideOffset:4,showArrow:!1,className:(0,i.cn)("!w-auto !rounded !border-none !bg-white/75 !p-1.5 !shadow-md","flex flex-wrap text-xs",f?"flex-col space-y-1":"flex-row items-center space-x-2",h),children:[(0,t.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://mapbox.com/about/maps",className:"text-blue-600 hover:underline",children:`\xa9 ${new Date().getFullYear()} Mapbox`}),(0,t.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://www.openstreetmap.org/about",className:"text-blue-600 hover:underline",children:"© OpenStreetMap"}),!f&&(0,t.jsx)("span",{className:"text-gray-400",children:"|"}),(0,t.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://www.mapbox.com/map-feedback/",className:"text-blue-600 hover:underline",children:"Improve this map"})]})]})})},d=()=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 800 180",className:"w-18.75 opacity-75 drop-shadow-[0_0_2px_black]",children:[(0,t.jsx)("title",{children:"Mapbox Logo"}),(0,t.jsx)("path",{d:"M594.6 49.8c-9.9 0-19.4 4.1-26.3 11.3V23c0-1.2-1-2.2-2.2-2.2h-13.4c-1.2 0-2.2 1-2.2 2.2v103c0 1.2 1 2.2 2.2 2.2h13.4c1.2 0 2.2-1 2.2-2.2v-7.1c6.9 7.2 16.3 11.3 26.3 11.3 20.9 0 37.8-18 37.8-40.2s-16.9-40.2-37.8-40.2zm-3.1 64.3c-12.7 0-23-10.6-23.1-23.8v-.6c.2-13.2 10.4-23.8 23.1-23.8 12.8 0 23.1 10.8 23.1 24.1s-10.4 24.1-23.1 24.1zM681.7 49.8c-22.6 0-40.9 18-40.9 40.2s18.3 40.2 40.9 40.2c22.6 0 40.9-18 40.9-40.2s-18.3-40.2-40.9-40.2zm-.1 64.3c-12.8 0-23.1-10.8-23.1-24.1s10.4-24.1 23.1-24.1 23.1 10.8 23.1 24.1-10.4 24.1-23.1 24.1zM431.6 51.8h-13.4c-1.2 0-2.2 1-2.2 2.2v7.1c-6.9-7.2-16.3-11.3-26.3-11.3-20.9 0-37.8 18-37.8 40.2s16.9 40.2 37.8 40.2c9.9 0 19.4-4.1 26.3-11.3v7.1c0 1.2 1 2.2 2.2 2.2h13.4c1.2 0 2.2-1 2.2-2.2V54c0-1.2-1-2.2-2.2-2.2zm-38.8 62.3c-12.8 0-23.1-10.8-23.1-24.1s10.4-24.1 23.1-24.1c12.7 0 23 10.6 23.1 23.8v.6c-.1 13.2-10.4 23.8-23.1 23.8zM498.5 49.8c-9.9 0-19.4 4.1-26.3 11.3V54c0-1.2-1-2.2-2.2-2.2h-13.4c-1.2 0-2.2 1-2.2 2.2v103c0 1.2 1 2.2 2.2 2.2H470c1.2 0 2.2-1 2.2-2.2v-38.1c6.9 7.2 16.3 11.3 26.3 11.3 20.9 0 37.8-18 37.8-40.2s-16.9-40.2-37.8-40.2zm-3.1 64.3c-12.7 0-23-10.6-23.1-23.8v-.6c.2-13.2 10.4-23.8 23.1-23.8 12.8 0 23.1 10.8 23.1 24.1s-10.3 24.1-23.1 24.1zM311.8 49.8c-10 .1-19.1 5.9-23.4 15-4.9-9.3-14.7-15.1-25.2-15-8.2 0-15.9 4-20.7 10.6V54c0-1.2-1-2.2-2.2-2.2h-13.4c-1.2 0-2.2 1-2.2 2.2v72c0 1.2 1 2.2 2.2 2.2h13.4c1.2 0 2.2-1 2.2-2.2V82.9c.5-9.6 7.2-17.3 15.4-17.3 8.5 0 15.6 7.1 15.6 16.4v44c0 1.2 1 2.2 2.2 2.2h13.5c1.2 0 2.2-1 2.2-2.2l-.1-44.8c1.2-8.8 7.5-15.6 15.2-15.6 8.5 0 15.6 7.1 15.6 16.4v44c0 1.2 1 2.2 2.2 2.2h13.5c1.2 0 2.2-1 2.2-2.2l-.1-49.5c0-14.8-12.6-26.7-28.1-26.7zM794.7 125.1l-23.2-35.3 23-35c.6-.9.3-2.2-.6-2.8-.3-.2-.7-.3-1.1-.3h-15.5c-1.2 0-2.3.6-2.9 1.6L760.9 76l-13.5-22.6c-.6-1-1.7-1.6-2.9-1.6H729c-1.1 0-2 .9-2 2 0 .4.1.8.3 1.1l23 35-23.2 35.3c-.6.9-.3 2.2.6 2.8.3.2.7.3 1.1.3h15.5c1.2 0 2.3-.6 2.9-1.6l13.8-23 13.8 23c.6 1 1.7 1.6 2.9 1.6H793c1.1 0 2-.9 2-2 0-.4-.1-.8-.3-1.2z"}),(0,t.jsxs)("g",{children:[(0,t.jsx)("path",{d:"M93.9 1.1C44.8 1.1 5 40.9 5 90s39.8 88.9 88.9 88.9 88.9-39.8 88.9-88.9c0-49.1-39.8-88.9-88.9-88.9zm42.2 110.7c-30.4 30.4-84.7 20.7-84.7 20.7s-9.8-54.2 20.7-84.7C89 30.9 117 31.6 134.7 49.2s18.3 45.7 1.4 62.6z"}),(0,t.jsx)("path",{d:"M104.1 53.2l-8.7 17.9-17.9 8.7 17.9 8.7 8.7 17.9 8.7-17.9 17.9-8.7-17.9-8.7z"})]})]}),u=(0,r.memo)(c);e.s(["MapboxAttribution",0,c,"default",0,u],892186)}]);