(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,192066,e=>{e.q("/_next/static/media/SlideshowIcon.38ukq3atqgza-.png")},931291,e=>{e.q("/_next/static/media/getVaccinatedTip.1he5i8vtxy9x-.png")},674232,e=>{e.q("/_next/static/media/cvsLocationTip.120lk8jpcra1z.png")},821101,e=>{e.q("/_next/static/media/getBetterTip.0gvx6hx56bsmu.png")},662061,e=>{e.q("/_next/static/media/considerTestingTip.3cvxfee5o6nxt.png")},15819,e=>{e.q("/_next/static/media/morning-brief-logo.1vsg6xjfl-m0f.svg")},217817,e=>{e.q("/_next/static/media/ellipse.2u_1umvdusv_0.png")},32223,e=>{e.q("/_next/static/media/tree_particles.1ritrbp0fqn-c.png")},777507,e=>{e.q("/_next/static/media/grass_particles.0jyl80h3s1apl.png")},26411,e=>{e.q("/_next/static/media/ragweed_particles.15i_zhe-3f9ug.png")},736794,e=>{e.q("/_next/static/media/google-preferred-source-badge-en.083veuzl7n_jk.png")},813272,e=>{"use strict";var t=e.i(592121);e.s(["getScrollMaskStyle",0,function(e,t,r="3rem",i="0px"){if(e&&t)return;let n=e?`linear-gradient(to right, black calc(100% - ${r}), transparent calc(100% - ${i}), transparent 100%)`:t?`linear-gradient(to right, transparent 0%, transparent ${i}, black ${r})`:`linear-gradient(to right, transparent 0%, transparent ${i}, black ${r}, black calc(100% - ${r}), transparent calc(100% - ${i}), transparent 100%)`;return{maskImage:n,WebkitMaskImage:n}},"useScrollable",0,function(e){let[r,i]=(0,t.useState)({atStart:!0,atEnd:!1}),n=(0,t.useCallback)(()=>{let t=e.current;if(!t)return;let r=t.scrollLeft=t.scrollWidth-t.clientWidth-4;i(e=>e.atStart===r&&e.atEnd===n?e:{atStart:r,atEnd:n})},[e]);(0,t.useEffect)(()=>{let t=e.current;if(!t)return;let r=new ResizeObserver(n);return r.observe(t),n(),()=>r.disconnect()},[e,n]);let a=(0,t.useCallback)(t=>{e.current?.scrollBy({left:t,behavior:"smooth"})},[e]);return{...r,scrollBy:a,onScroll:n}}])},482317,e=>{"use strict";let t=(0,e.i(514514).default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);e.s(["X",0,t],482317)},219246,e=>{"use strict";let t=(0,e.i(981030).atom)(0);e.s(["fixedTopAdHeightAtom",0,t])},251590,986044,e=>{"use strict";var t=e.i(592121),r=e.i(855128),i=e.i(271359),n=e.i(982538),a=e.i(699173),l=Object.defineProperty,o=(e,t)=>l(e,"name",{value:t,configurable:!0});function s(e){let l=e+"CollectionProvider",[s,c]=(0,r.createContextScope)(l),[u,d]=s(l,{collectionRef:{current:null},itemMap:new Map}),f=o(e=>{let{scope:r,children:i}=e,n=t.useRef(null),l=t.useRef(new Map).current;return(0,a.jsx)(u,{scope:r,itemMap:l,collectionRef:n,children:i})},"CollectionProvider");f.displayName=l;let m=e+"CollectionSlot",p=(0,n.createSlot)(m),h=t.forwardRef((e,t)=>{let{scope:r,children:n}=e,l=d(m,r),o=(0,i.useComposedRefs)(t,l.collectionRef);return(0,a.jsx)(p,{ref:o,children:n})});h.displayName=m;let g=e+"CollectionItemSlot",v="data-radix-collection-item",b=(0,n.createSlot)(g),x=t.forwardRef((e,r)=>{let{scope:n,children:l,...o}=e,s=t.useRef(null),c=(0,i.useComposedRefs)(r,s),u=d(g,n);return t.useEffect(()=>(u.itemMap.set(s,{ref:s,...o}),()=>void u.itemMap.delete(s))),(0,a.jsx)(b,{...{[v]:""},ref:c,children:l})});function y(r){let i=d(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 x.displayName=g,o(y,"useCollection"),[{Provider:f,Slot:h,ItemSlot:x},y,c]}o(s,"createCollection");var c=new WeakMap,u=class e extends Map{static{o(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,n=this.has(t),a=this.#e.length,l=m(e),o=l>=0?l:a+l,s=o=a?-1:o;if(s===this.size||n&&s===this.size-1||-1===s)return this.set(t,r),this;let c=this.size+ +!n;l=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=[],n=0;for(let e of this)Reflect.apply(t,r,[e,n,this])&&i.push(e),n++;return new e(i)}map(t,r){let i=[],n=0;for(let e of this)i.push([e[0],Reflect.apply(t,r,[e,n,this])]),n++;return new e(i)}reduce(...e){let[t,r]=e,i=0,n=r??this.at(0);for(let r of this)n=0===i&&1===e.length?r:Reflect.apply(t,this,[n,r,i,this]),i++;return n}reduceRight(...e){let[t,r]=e,i=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let n=this.at(r);i=r===this.size-1&&1===e.length?n:Reflect.apply(t,this,[i,n,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,n=this.size-1;if(void 0===t)return i;t0&&(n=r-1);for(let e=t;e=0?i:r+i;return n=r?-1:n}function m(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 h(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function g(e,t){return e[1].element&&t[1].element?h(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()})}o(d,"at"),o(f,"toSafeIndex"),o(m,"toSafeInteger"),o(function(e){let l=e+"CollectionProvider",[s,c]=(0,r.createContextScope)(l),[d,f]=s(l,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new u,setItemMap:o(()=>void 0,"setItemMap")}),m=o(({state:e,...t})=>e?(0,a.jsx)(b,{...t,state:e}):(0,a.jsx)(h,{...t}),"CollectionProvider");m.displayName=l;let h=o(e=>{let t=k();return(0,a.jsx)(b,{...e,state:t})},"CollectionInit");h.displayName=l+"Init";let b=o(e=>{let{scope:r,children:n,state:l}=e,o=t.useRef(null),[s,c]=t.useState(null),u=(0,i.useComposedRefs)(o,c),[f,m]=l;return t.useEffect(()=>{if(!s)return;let e=v(()=>{});return e.observe(s,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[s]),(0,a.jsx)(d,{scope:r,itemMap:f,setItemMap:m,collectionRef:u,collectionRefObject:o,collectionElement:s,children:n})},"CollectionProviderImpl");b.displayName=l+"Impl";let x=e+"CollectionSlot",y=(0,n.createSlot)(x),w=t.forwardRef((e,t)=>{let{scope:r,children:n}=e,l=f(x,r),o=(0,i.useComposedRefs)(t,l.collectionRef);return(0,a.jsx)(y,{ref:o,children:n})});w.displayName=x;let j=e+"CollectionItemSlot",C=(0,n.createSlot)(j),S=t.forwardRef((e,r)=>{let{scope:n,children:l,...o}=e,s=t.useRef(null),[c,d]=t.useState(null),m=(0,i.useComposedRefs)(r,s,d),{setItemMap:h}=f(j,n),v=t.useRef(o);p(v.current,o)||(v.current=o);let b=v.current;return t.useEffect(()=>(h(e=>c?e.has(c)?e.set(c,{...b,element:c}).toSorted(g):(e.set(c,{...b,element:c}),e.toSorted(g)):e),()=>{h(e=>c&&e.has(c)?(e.delete(c),new u(e)):e)}),[c,b,h]),(0,a.jsx)(C,{"data-radix-collection-item":"",ref:m,children:l})});function k(){return t.useState(new u)}function A(t){let{itemMap:r}=f(e+"CollectionConsumer",t);return r}return S.displayName=j,o(k,"useInitCollection"),o(A,"useCollection"),[{Provider:m,Slot:w,ItemSlot:S},{createCollectionScope:c,useCollection:A,useInitCollection:k}]},"createCollection"),o(p,"shallowEqual"),o(h,"isElementPreceding"),o(g,"sortByDocumentPosition"),o(v,"getChildListObserver"),e.s(["createCollection",0,s],251590);var b=Object.defineProperty,x=t.createContext(void 0);function y(e){let r=t.useContext(x);return e||r||"ltr"}b(y,"name",{value:"useDirection",configurable:!0}),e.s(["useDirection",0,y],986044)},665488,e=>{"use strict";var t=e.i(699173),r=e.i(592121),i=e.i(859827),n=e.i(993269),a=e.i(632137),l=e.i(368847),o=e.i(240058),s=e.i(855128),c=e.i(251590),u=e.i(271359),d=e.i(543836),f=e.i(803976),m=e.i(942928),p=e.i(714035),h=e.i(312610),g=e.i(296994),v=Object.defineProperty,b=(e,t)=>v(e,"name",{value:t,configurable:!0}),x="Collapsible",[y,w]=(0,s.createContextScope)(x),[j,C]=y(x),S=r.forwardRef(b(function(e,i){let{__scopeCollapsible:n,open:a,defaultOpen:l,disabled:o,onOpenChange:s,...c}=e,[u,d]=(0,f.useControllableState)({prop:a,defaultProp:l??!1,onChange:s,caller:x});return(0,t.jsx)(j,{scope:n,disabled:o,contentId:(0,g.useId)(),open:u,onOpenToggle:r.useCallback(()=>d(e=>!e),[d]),children:(0,t.jsx)(m.Primitive.div,{"data-state":R(u),"data-disabled":o?"":void 0,...c,ref:i})})},"Collapsible")),k=r.forwardRef(b(function(e,r){let{__scopeCollapsible:i,...n}=e,a=C("CollapsibleTrigger",i);return(0,t.jsx)(m.Primitive.button,{type:"button","aria-controls":a.open?a.contentId:void 0,"aria-expanded":a.open||!1,"data-state":R(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...n,ref:r,onClick:(0,d.composeEventHandlers)(e.onClick,a.onOpenToggle)})},"CollapsibleTrigger")),A="CollapsibleContent",I=r.forwardRef(b(function(e,r){let{forceMount:i,...n}=e,a=C(A,e.__scopeCollapsible);return(0,t.jsx)(h.Presence,{present:i||a.open,children:({present:e})=>(0,t.jsx)(E,{...n,ref:r,present:e})})},"CollapsibleContent")),E=r.forwardRef(b(function(e,i){let{__scopeCollapsible:n,present:a,children:l,...o}=e,s=C(A,n),[c,d]=r.useState(a),f=r.useRef(null),h=(0,u.useComposedRefs)(i,f),g=r.useRef(0),v=g.current,b=r.useRef(0),x=b.current,y=s.open||c,w=r.useRef(y),j=r.useRef(void 0);return r.useEffect(()=>{let e=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,p.useLayoutEffect)(()=>{let e=f.current;if(e){j.current=j.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,b.current=t.width,w.current||(e.style.transitionDuration=j.current.transitionDuration,e.style.animationName=j.current.animationName),d(a)}},[s.open,a]),(0,t.jsx)(m.Primitive.div,{"data-state":R(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!y,...o,ref:h,style:{"--radix-collapsible-content-height":v?`${v}px`:void 0,"--radix-collapsible-content-width":x?`${x}px`:void 0,...e.style},children:y&&l})},"CollapsibleContentImpl"));function R(e){return e?"open":"closed"}b(R,"getState");var P=e.i(986044),N=Object.defineProperty,M=(e,t)=>N(e,"name",{value:t,configurable:!0}),_="Accordion",D=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[O,T,z]=(0,c.createCollection)(_),[$,L]=(0,s.createContextScope)(_,[z,w]),U=w(),B=r.forwardRef(M(function(e,r){let{type:i,...n}=e;return(0,t.jsx)(O.Provider,{scope:e.__scopeAccordion,children:"multiple"===i?(0,t.jsx)(W,{...n,ref:r}):(0,t.jsx)(q,{...n,ref:r})})},"Accordion")),[F,G]=$(_),[V,H]=$(_,{collapsible:!1}),q=r.forwardRef(M(function(e,i){let{value:n,defaultValue:a,onValueChange:l=M(()=>{},"onValueChange"),collapsible:o=!1,...s}=e,[c,u]=(0,f.useControllableState)({prop:n,defaultProp:a??"",onChange:l,caller:_});return(0,t.jsx)(F,{scope:e.__scopeAccordion,value:r.useMemo(()=>c?[c]:[],[c]),onItemOpen:u,onItemClose:r.useCallback(()=>o&&u(""),[o,u]),children:(0,t.jsx)(V,{scope:e.__scopeAccordion,collapsible:o,children:(0,t.jsx)(Z,{...s,ref:i})})})},"AccordionImplSingle")),W=r.forwardRef(M(function(e,i){let{value:n,defaultValue:a,onValueChange:l=M(()=>{},"onValueChange"),...o}=e,[s,c]=(0,f.useControllableState)({prop:n,defaultProp:a??[],onChange:l,caller:_}),u=r.useCallback(e=>c((t=[])=>[...t,e]),[c]),d=r.useCallback(e=>c((t=[])=>t.filter(t=>t!==e)),[c]);return(0,t.jsx)(F,{scope:e.__scopeAccordion,value:s,onItemOpen:u,onItemClose:d,children:(0,t.jsx)(V,{scope:e.__scopeAccordion,collapsible:!0,children:(0,t.jsx)(Z,{...o,ref:i})})})},"AccordionImplMultiple")),[K,Y]=$(_),Z=r.forwardRef(M(function(e,i){let{__scopeAccordion:n,disabled:a,dir:l,orientation:o="vertical",...s}=e,c=r.useRef(null),f=(0,u.useComposedRefs)(c,i),p=T(n),h="ltr"===(0,P.useDirection)(l),g=(0,d.composeEventHandlers)(e.onKeyDown,e=>{if(!D.includes(e.key))return;let t=e.target,r=p().filter(e=>!e.ref.current?.disabled),i=r.findIndex(e=>e.ref.current===t),n=r.length;if(-1===i)return;e.preventDefault();let a=i,l=n-1,s=M(()=>{(a=i+1)>l&&(a=0)},"moveNext"),c=M(()=>{(a=i-1){e?o.onItemOpen(n):o.onItemClose(n)}})})},"AccordionItem")),et=r.forwardRef(M(function(e,r){let{__scopeAccordion:i,...n}=e,a=Y(_,i),l=Q("AccordionHeader",i);return(0,t.jsx)(m.Primitive.h3,{"data-orientation":a.orientation,"data-state":ea(l.open),"data-disabled":l.disabled?"":void 0,...n,ref:r})},"AccordionHeader")),er="AccordionTrigger",ei=r.forwardRef(M(function(e,r){let{__scopeAccordion:i,...n}=e,a=Y(_,i),l=Q(er,i),o=H(er,i),s=U(i);return(0,t.jsx)(O.ItemSlot,{scope:i,children:(0,t.jsx)(k,{"aria-disabled":l.open&&!o.collapsible||void 0,"data-orientation":a.orientation,id:l.triggerId,...s,...n,ref:r})})},"AccordionTrigger")),en=r.forwardRef(M(function(e,r){let{__scopeAccordion:i,...n}=e,a=Y(_,i),l=Q("AccordionContent",i),o=U(i);return(0,t.jsx)(I,{role:"region","aria-labelledby":l.triggerId,"data-orientation":a.orientation,...o,...n,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 ea(e){return e?"open":"closed"}M(ea,"getState"),r.forwardRef(({className:e,href:r,children:i,...n},a)=>(0,t.jsx)(o.default,{ref:a,href:r,...n,children:(0,t.jsx)(l.Text,{variant:"Caption.M",color:"secondary",children:i})})).displayName="AccordionTextLink";let el=r.forwardRef(({className:e,type:r="single",collapsible:i=!0,...n},l)=>{let o={ref:l,type:r,className:(0,a.cn)("w-full",e),"data-slot":"accordion",...n};return"single"===r&&(o.collapsible=i),(0,t.jsx)(B,{...o})});el.displayName="Accordion",r.forwardRef(({className:e,children:r,enabled:i=!1,...n},o)=>(0,t.jsx)("div",{ref:o,className:(0,a.cn)("mt-4",e),...n,children:(0,t.jsx)(l.Text,{variant:"Caption.M",color:"disabled",children:r})})).displayName="AccordionTextSpotlight",e.s(["Accordion",0,el,"AccordionContent",0,function({className:e,animated:r,...i}){return(0,t.jsx)(en,{"data-slot":"accordion-content",className:(0,a.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,a.cn)("w-full",e),...r})},"AccordionTrigger",0,function({className:e,children:r,triggerContent:o,title:s,number:c,iconClassName:u,iconNodeOverride:d,...f}){return(0,t.jsx)(et,{className:"flex",children:(0,t.jsxs)(ei,{"data-slot":"accordion-trigger",className:(0,a.cn)("hover:text-whale-400 group flex flex-1 cursor-pointer items-center justify-between py-4 text-left font-medium transition-all",e),...f,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})}),o||(s?(0,t.jsx)(l.Text,{variant:"Body.L",children:s}):r)]}),(0,t.jsx)("div",{className:"relative flex items-center",children:d||(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.Plus,{className:(0,a.cn)("h-5 w-5 shrink-0 transition-all duration-200",u,"group-data-[state=open]:rotate-45 group-data-[state=open]:opacity-0")}),(0,t.jsx)(n.Minus,{className:(0,a.cn)("absolute h-5 w-5 shrink-0 opacity-0 transition-all duration-200",u,"group-data-[state=open]:opacity-100")})]})})]})})}],665488)},171101,e=>{"use strict";let t=(0,e.i(514514).default)("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);e.s(["Calendar",0,t],171101)},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)},973855,e=>{"use strict";let t=(0,e.i(514514).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["ChevronDown",0,t],973855)},899507,e=>{"use strict";e.s(["isNil",0,function(e){return null==e}])},449928,760430,355200,e=>{"use strict";e.s(["isPrimitive",0,function(e){return null==e||"object"!=typeof e&&"function"!=typeof e}],449928),e.s(["isTypedArray",0,function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}],760430),e.s(["isUnsafeProperty",0,function(e){return"__proto__"===e}],355200)},370220,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getEmailPreferencesStatusUrlConfig=function(){return{host:i,protocol:"https",pathname:"/api/v1/email-preferences/status"}},r.getEmailPreferencesSetUrlConfig=function(){return{host:i,protocol:"https",pathname:"/api/v1/email-preferences/set"}},r.getEmailPreferencesChangeEmailUrlConfig=function(){return{host:i,protocol:"https",pathname:"/api/v1/email-preferences/change-email"}};let i="weather.com"},454307,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.setEmailPreferences=l,r.updateSubscription=o;let i=e.r(678651),n=e.r(414655),a=e.r(370220);async function l(e){let t=(0,a.getEmailPreferencesSetUrlConfig)(),r=(0,i.urlFrom)(t),l=JSON.stringify(function(e){let{subscriptions:t,email:r,mParticleId:i}=e,n={};return t&&(n.subscriptions=t),r&&(n.email=r),i&&(n.mParticleId=i),n}(e)),o=await fetch(r,{method:"PUT",credentials:"include",headers:{"Content-Type":"application/json"},body:l});return 200===o.status||400===o.status?await o.json():(0,n.handleFetchResponse)(o)}async function o(e,t,r){return l({subscriptions:[{subscriptionGroupName:e,isSubscribed:t,...r&&{attributes:r}}]})}},451086,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getEmailPreferencesStatus=l;let i=e.r(678651),n=e.r(414655),a=e.r(370220);async function l(){let e=(0,a.getEmailPreferencesStatusUrlConfig)(),t=(0,i.urlFrom)(e),r=await fetch(t,{method:"GET",credentials:"include",headers:{"Content-Type":"application/json"},next:{revalidate:60}});return(0,n.handleFetchResponse)(r)}},952582,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.DEFAULT_SUBSCRIPTIONS=r.ON_YOUR_RADAR_GROUP=r.MARKETING_EMAILS_GROUP=r.WEEKLY_BRIEF_GROUP=r.DAILY_NEWSLETTERS_GROUP=void 0,r.DAILY_NEWSLETTERS_GROUP="daily-newsletters-1",r.WEEKLY_BRIEF_GROUP="weekly-brief",r.MARKETING_EMAILS_GROUP="marketing-emails-1",r.ON_YOUR_RADAR_GROUP="on-your-radar",r.DEFAULT_SUBSCRIPTIONS=[{subscriptionGroupName:r.DAILY_NEWSLETTERS_GROUP,subscriptionGroupId:"",isSubscribed:!1,attributes:{location:""}},{subscriptionGroupName:r.WEEKLY_BRIEF_GROUP,subscriptionGroupId:"",isSubscribed:!1},{subscriptionGroupName:r.MARKETING_EMAILS_GROUP,subscriptionGroupId:"",isSubscribed:!1},{subscriptionGroupName:r.ON_YOUR_RADAR_GROUP,subscriptionGroupId:"",isSubscribed:!1}]},422825,e=>{"use strict";var t=e.i(546446),r=e.i(381477),i=e.i(899507),n=e.i(449928),a=e.i(760430);function l(e){if((0,n.isPrimitive)(e))return e;if(Array.isArray(e)||(0,a.isTypedArray)(e)||e instanceof ArrayBuffer||"u">typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer)return e.slice(0);let t=Object.getPrototypeOf(e),r=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new r(e);if(e instanceof RegExp){let t=new r(e);return t.lastIndex=e.lastIndex,t}if(e instanceof DataView)return new r(e.buffer.slice(0));if(e instanceof Error){let t=new r(e.message);return t.stack=e.stack,t.name=e.name,t.cause=e.cause,t}return"u">typeof File&&e instanceof File?new r([e],e.name,{type:e.type,lastModified:e.lastModified}):"object"==typeof e?Object.assign(Object.create(t),e):e}var o=e.i(355200);function s(e){if(!e||"object"!=typeof e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&"[object Object]"===Object.prototype.toString.call(e)}function c(e,t,r){let i=Object.keys(t);for(let n=0;n"boolean"==typeof e?{isSubscribed:e}:e;e.s(["useEmailPreferences",0,({forceSubs:e,skipStatus:n}={})=>{let[a,o]=(0,t.useAtom)(f),{user:b}=(0,m.useUser)(),x=(0,g.useSubscriptionsEnabled)()||e,y=b?.userID||null,w=b?.isUserLoggedIn||!1,j=(0,h.useCallback)(e=>{if(y){var t;let r,i;o({userId:y,expiry:Date.now()+9e5,subscriptions:(t=a?.subscriptions,r=t?.length?t:p.DEFAULT_SUBSCRIPTIONS,i={},e?(r?.forEach(e=>{i[e.subscriptionGroupName]=e}),e.forEach(e=>{let t=i[e.subscriptionGroupName]||{};i[e.subscriptionGroupName]=c(l(t),e,function e(t,r){if(Array.isArray(r))if(Array.isArray(t))return c(l(t),r,e);else return c([],r,e);if(s(r))if(s(t))return c(l(t),r,e);else return c({},r,e)})}),Object.values(i)):r)})}},[y,o,a?.subscriptions]),C=a&&a.userId===y&&a.expiry&&a.expiry>Date.now(),S=x&&y&&!C,{isLoading:k}=(0,r.default)(!n&&S?`getEmailPreferencesStatus/${y}`:void 0,d.getEmailPreferencesStatus,{shouldRetryOnError:e=>!(e instanceof Error&&e.message.includes("401")),revalidateOnFocus:!1,revalidateOnReconnect:!1,refreshInterval:0,errorRetryCount:2,onSuccess:e=>{y&&e&&j(e.subscriptions)}}),A=(0,h.useCallback)(async(e,t)=>{if(!x)return{status:"error",error:"Subscription is not enabled!"};let r=await (0,u.setEmailPreferences)({subscriptions:e,email:w?void 0:t});return"success"===r.status&&j(e),r},[j,x,w,a?.subscriptions]),I=(0,h.useCallback)(async({newsletter:e,weekly:t,onYourRadar:r,marketing:n})=>{let a=[!(0,i.isNil)(e)&&{subscriptionGroupName:"daily-newsletters-1",...v(e)},!(0,i.isNil)(t)&&{subscriptionGroupName:"weekly-brief",...v(t)},!(0,i.isNil)(r)&&{subscriptionGroupName:"on-your-radar",...v(r)},!(0,i.isNil)(n)&&{subscriptionGroupName:"marketing-emails-1",...v(n)}].filter(Boolean);return await A(a)},[A]);return{emailSubscriptions:C?a.subscriptions:null,updateEmailSubscriptions:I,updateEmailPreference:A,isLoadingPreferences:k}}],422825)},658547,e=>{"use strict";var t=e.i(592121),r=e.i(947118),i=e.i(491240);e.s(["useUserIdentity",0,()=>{let e=(0,r.useIsInitialized)(),n=(0,t.useCallback)(t=>{if(!e)return console.warn("MParticle is not initialized"),Promise.reject(Error("MParticle is not initialized"));let r={userIdentities:{customerid:t.customerid,email:t.email,other:(0,i.truncateIdentityValue)(t.other)}};return window.mParticle?.Identity?.identify?.(r)},[e]);return{identify:n,login:(0,t.useCallback)(t=>{if(!e)return console.warn("MParticle is not initialized"),Promise.reject(Error("MParticle is not initialized"));let r={userIdentities:{customerid:t.customerid,email:t.email,facebook:t.facebook,facebookcustomaudienceid:t.facebookcustomaudienceid,google:t.google,microsoft:t.microsoft,other:(0,i.truncateIdentityValue)(t.other),other2:(0,i.truncateIdentityValue)(t.other2),other3:(0,i.truncateIdentityValue)(t.other3),other4:(0,i.truncateIdentityValue)(t.other4),twitter:t.twitter,yahoo:t.yahoo}};return window.mParticle?.Identity?.login?.(r)},[e]),logout:(0,t.useCallback)(()=>e?window.mParticle?.Identity?.logout?.({userIdentities:{}}):(console.warn("MParticle is not initialized"),Promise.reject(Error("MParticle is not initialized"))),[e])}}])},459598,e=>{"use strict";let t,r=!1;e.s(["consumePurchaseAbandonSuppression",0,()=>!!r&&(r=!1,clearTimeout(t),!0),"suppressNextPurchaseAbandon",0,()=>{r=!0,clearTimeout(t),t=setTimeout(()=>{r=!1},2e3)}])},143851,e=>{"use strict";var t=e.i(546446),r=e.i(45846),i=e.i(310847),n=e.i(776169),a=e.i(671525),l=e.i(658547),o=e.i(18358),s=e.i(521350),c=e.i(756227),u=e.i(318849),d=e.i(358273),f=e.i(459598);e.s(["useUserLogin",0,function(){let e=(0,t.useSetAtom)(i.userHasLoggedInBeforeAtom),m=(0,c.useResetAuthState)(),p=(0,t.useAtomValue)(i.wxuLoginRedirectPageAtom),h=(0,t.useAtomValue)(i.wxuUserAnonymousIdAtom),{syncPreferencesFromUpsx:g,updatePreferences:v}=(0,n.usePreferences)(),{navigate:b}=(0,a.default)(),{login:x}=(0,l.useUserIdentity)(),y=(0,o.useTrackEvent)(),w=()=>{(0,d.regenerateMetricsSession)(),(0,f.suppressNextPurchaseAbandon)(),(0,u.disableSwrPersist)();let e=new URLSearchParams(window.location.search).get("ref");b((e&&`https://${e}`)??p)},j=async(t,i=!0)=>{m(),(0,s.isLocalStorageAvailable)()&&localStorage.setItem("PARTNERS_SYNC","true"),e(!0),await g()||await v({});try{await r.upsxClient.purchase.getPurchaseToken()}catch(e){console.error("Failed to get UPSX token:",e)}t?.userID&&(x({email:t.email,customerid:t.userID,other:h}),y("login"===t.type?"user-loggedin":"signup-complete",{url:window.location.pathname})),i&&w()};return{login:async(e,t)=>{try{let i=await r.upsxClient.auth.login({email:e,password:t});return i&&await j({email:i.email,userID:i.userID,type:"login"}),!0}catch(e){return console.error("Failed to login",e),!1}},authSuccess:j,authRedirect:w}}])},558802,e=>{"use strict";var t=e.i(699173),r=e.i(592121),i=e.i(747961);let n=(0,r.forwardRef)(({title:e,titleId:r,desc:i,descId:n,...a},l)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":n,...a,children:[i?(0,t.jsx)("desc",{id:n,children:i}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"Locked"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M12 7h-1V4a3 3 0 0 0-6 0v3H4a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1M6 4a2 2 0 1 1 4 0v3H6zm6 10H4V8h8z"})]})),a=r.default.forwardRef((e,r)=>(0,t.jsx)(i.BaseIcon,{ref:r,icon:n,...e}));a.displayName="Locked",e.s(["Locked",0,a])},245308,e=>{"use strict";var t=e.i(699173),r=e.i(592121),i=e.i(747961);let n=(0,r.forwardRef)(({title:e,titleId:r,desc:i,descId:n,...a},l)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":n,...a,children:[i?(0,t.jsx)("desc",{id:n,children:i}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"View"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsxs)("g",{fill:"currentColor",children:[(0,t.jsx)("path",{d:"M15.47 7.83A8.35 8.35 0 0 0 8 2.5 8.35 8.35 0 0 0 .53 7.83a.5.5 0 0 0 0 .34A8.35 8.35 0 0 0 8 13.5a8.35 8.35 0 0 0 7.47-5.33.5.5 0 0 0 0-.34M8 12.5c-2.65 0-5.45-1.965-6.465-4.5C2.55 5.465 5.35 3.5 8 3.5s5.45 1.965 6.465 4.5C13.45 10.535 10.65 12.5 8 12.5"}),(0,t.jsx)("path",{d:"M8 5a3 3 0 1 0 0 6 3 3 0 0 0 0-6m0 5a2 2 0 1 1 0-4 2 2 0 0 1 0 4"})]})]})),a=r.default.forwardRef((e,r)=>(0,t.jsx)(i.BaseIcon,{ref:r,icon:n,...e}));a.displayName="View",e.s(["View",0,a])},790010,e=>{"use strict";var t=e.i(245943),r=e.i(45846),i=e.i(143851);e.s(["useUserSignup",0,function(){let{authSuccess:e,authRedirect:n}=(0,i.useUserLogin)();return{signup:async(i,n=!0)=>{try{let t=await (i.password?r.upsxClient.auth.register({email:i.email,password:i.password,firstName:i.firstName}):r.upsxClient.auth.registerPasswordless({email:i.email,firstName:i.firstName}));return await e({email:t.email,userID:t.userID,type:"signup"},n),{success:!0,data:{email:t.email,userID:t.userID}}}catch(e){if(console.error("Failed to signup",e),e instanceof t.APIError){let t=e.data;return{success:!1,error:{code:e.code,...t}}}return{success:!1,error:{}}}},authRedirect:n}}])},796424,e=>{"use strict";e.s(["getNormalizedDateString",0,function(e){if(!e)return"";let t=("number"==typeof e?new Date(e).toISOString():e instanceof Date?e.toISOString():e.replace(/GMT(?![+-])/,"GMT+0000")).replace(/\.\d+/,"").replace("Z","+0000").replace(/\s+/,"T").replace(/\s+/g,"").replace(/[A-Z]{3,}/,""),r=/([+-])(\d{2})(\d{2})$/;r.test(t)&&(t=t.replace(r,"$1$2:$3"));let i=t.replace(/(\d{4})-(\d{2})-(\d{2})/,"$1/$2/$3").replace("T"," ");return"Invalid Date"===new Date(i).toString()?"Invalid Date"!==new Date(t).toString()?t:"string"==typeof e?e:"":i}])},873598,e=>{"use strict";e.s(["getCompatibleTimezone",0,e=>{try{return new Intl.DateTimeFormat("en-US",{timeZone:e}),e}catch{return"Etc/UTC"}}])},506424,e=>{"use strict";var t=e.i(796424),r=e.i(873598);e.s(["getCompatibleValues",0,({date:e,timeZone:i})=>({cDate:new Date((0,t.getNormalizedDateString)(e)),cTimeZone:(0,r.getCompatibleTimezone)(i)})])},289607,e=>{"use strict";var t=e.i(506424);let r=(e,r,i,n)=>{let{cDate:a,cTimeZone:l}=(0,t.getCompatibleValues)({date:e,locale:r,timeZone:i}),o=n??{year:"numeric",month:"2-digit",day:"2-digit",weekday:"short"};return o.timeZone=l,{cDate:a,cTimeZone:l,formatOptions:o}};e.s(["formatIntlDateParts",0,(e,t,i,n)=>{if(!e)return[];let{cDate:a,formatOptions:l}=r(e,t,i,n);return new Intl.DateTimeFormat(t,l).formatToParts(a)},"formatIntlDateString",0,(e,t,i,n)=>{if(!e)return"";let{cDate:a,formatOptions:l}=r(e,t,i,n);return new Intl.DateTimeFormat(t,l).format(a)}])},127667,e=>{"use strict";let t=(0,e.i(514514).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["Loader2",0,t],127667)},846871,e=>{"use strict";var t=e.i(699173),r=e.i(294237),i=e.i(632137);let n=(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:a,label:l})=>(0,t.jsx)("div",{className:(0,i.cn)(n({size:r,variant:a}),e),"aria-label":l})])},546334,e=>{"use strict";var t=e.i(699173),r=e.i(592121),i=e.i(961123),n=e.i(381477),a=e.i(925209),l=e.i(564993),o=e.i(985542),s=e.i(612977),c=e.i(368847),u=e.i(877957),d=/[\\\/_+.#"@\[\(\{&]/,f=/[\\\/_+.#"@\[\(\{&]/g,m=/[\s-]/,p=/[\s-]/g;function h(e){return e.toLowerCase().replace(p," ")}var g=e.i(396817),v=e.i(942928),b=e.i(296994),x=e.i(271359),y='[cmdk-group=""]',w='[cmdk-group-items=""]',j='[cmdk-item=""]',C=`${j}:not([aria-disabled="true"])`,S="cmdk-item-select",k="data-value",A=(e,t,r)=>{var i;return i=e,function e(t,r,i,n,a,l,o){if(l===r.length)return a===t.length?1:.99;var s=`${a},${l}`;if(void 0!==o[s])return o[s];for(var c,u,h,g,v=n.charAt(l),b=i.indexOf(v,a),x=0;b>=0;)(c=e(t,r,i,n,b+1,l+1,o))>x&&(b===a?c*=1:d.test(t.charAt(b-1))?(c*=.8,(h=t.slice(a,b-1).match(f))&&a>0&&(c*=Math.pow(.999,h.length))):m.test(t.charAt(b-1))?(c*=.9,(g=t.slice(a,b-1).match(p))&&a>0&&(c*=Math.pow(.999,g.length))):(c*=.17,a>0&&(c*=Math.pow(.999,b-a))),t.charAt(b)!==r.charAt(l)&&(c*=.9999)),(c<.1>c&&(c=.1*u),c>x&&(x=c),b=i.indexOf(v,b+1);return o[s]=x,x}(i=r&&r.length>0?`${i+" "+r.join(" ")}`:i,t,h(i),h(t),0,0,{})},I=r.createContext(void 0),E=r.createContext(void 0),R=r.createContext(void 0),P=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}}}),n=U(()=>new Set),a=U(()=>new Map),l=U(()=>new Map),o=U(()=>new Set),s=$(e),{label:c,children:u,value:d,onValueChange:f,filter:m,shouldFilter:p,loop:h,disablePointerSelection:g=!1,vimBindings:x=!0,...R}=e,P=(0,b.useId)(),N=(0,b.useId)(),M=(0,b.useId)(),_=r.useRef(null),D=G();L(()=>{if(void 0!==d){let e=d.trim();i.current.value=e,O.emit()}},[d]),L(()=>{D(6,W)},[]);let O=r.useMemo(()=>({subscribe:e=>(o.current.add(e),()=>o.current.delete(e)),snapshot:()=>i.current,setState:(e,t,r)=>{var n,a,l,o;if(!Object.is(i.current[e],t)){if(i.current[e]=t,"search"===e)q(),B(),D(1,F);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(M);e?e.focus():null==(n=document.getElementById(P))||n.focus()}if(D(7,()=>{var e;i.current.selectedItemId=null==(e=K())?void 0:e.id,O.emit()}),r||D(5,W),(null==(a=s.current)?void 0:a.value)!==void 0){null==(o=(l=s.current).onValueChange)||o.call(l,null!=t?t:"");return}}O.emit()}},emit:()=>{o.current.forEach(e=>e())}}),[]),T=r.useMemo(()=>({value:(e,t,r)=>{var n;t!==(null==(n=l.current.get(e))?void 0:n.value)&&(l.current.set(e,{value:t,keywords:r}),i.current.filtered.items.set(e,z(t,r)),D(2,()=>{B(),O.emit()}))},item:(e,t)=>(n.current.add(e),t&&(a.current.has(t)?a.current.get(t).add(e):a.current.set(t,new Set([e]))),D(3,()=>{q(),B(),i.current.value||F(),O.emit()}),()=>{l.current.delete(e),n.current.delete(e),i.current.filtered.items.delete(e);let t=K();D(4,()=>{q(),(null==t?void 0:t.getAttribute("id"))===e&&F(),O.emit()})}),group:e=>(a.current.has(e)||a.current.set(e,new Set),()=>{l.current.delete(e),a.current.delete(e)}),filter:()=>s.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:P,inputId:M,labelId:N,listInnerRef:_}),[]);function z(e,t){var r,n;let a=null!=(n=null==(r=s.current)?void 0:r.filter)?n:A;return e?a(e,i.current.search,t):0}function B(){if(!i.current.search||!1===s.current.shouldFilter)return;let e=i.current.filtered.items,t=[];i.current.filtered.groups.forEach(r=>{let i=a.current.get(r),n=0;i.forEach(t=>{n=Math.max(e.get(t),n)}),t.push([r,n])});let r=_.current;Y().sort((t,r)=>{var i,n;let a=t.getAttribute("id"),l=r.getAttribute("id");return(null!=(i=e.get(l))?i:0)-(null!=(n=e.get(a))?n:0)}).forEach(e=>{let t=e.closest(w);t?t.appendChild(e.parentElement===t?e:e.closest(`${w} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${w} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let r=null==(t=_.current)?void 0:t.querySelector(`${y}[${k}="${encodeURIComponent(e[0])}"]`);null==r||r.parentElement.appendChild(r)})}function F(){let e=Y().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(k);O.setState("value",t||void 0)}function q(){var e,t,r,o;if(!i.current.search||!1===s.current.shouldFilter){i.current.filtered.count=n.current.size;return}i.current.filtered.groups=new Set;let c=0;for(let a of n.current){let n=z(null!=(t=null==(e=l.current.get(a))?void 0:e.value)?t:"",null!=(o=null==(r=l.current.get(a))?void 0:r.keywords)?o:[]);i.current.filtered.items.set(a,n),n>0&&c++}for(let[e,t]of a.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 W(){var e,t,r;let i=K();i&&((null==(e=i.parentElement)?void 0:e.firstChild)===i&&(null==(r=null==(t=i.closest(y))?void 0:t.querySelector('[cmdk-group-heading=""]'))||r.scrollIntoView({block:"nearest"})),i.scrollIntoView({block:"nearest"}))}function K(){var e;return null==(e=_.current)?void 0:e.querySelector(`${j}[aria-selected="true"]`)}function Y(){var e;return Array.from((null==(e=_.current)?void 0:e.querySelectorAll(C))||[])}function Z(e){let t=Y()[e];t&&O.setState("value",t.getAttribute(k))}function X(e){var t;let r=K(),i=Y(),n=i.findIndex(e=>e===r),a=i[n+e];null!=(t=s.current)&&t.loop&&(a=n+e0?function(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}(r,y):function(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}(r,y))?void 0:r.querySelector(C);i?O.setState("value",i.getAttribute(k)):X(e)}let Q=()=>Z(Y().length-1),ee=e=>{e.preventDefault(),e.metaKey?Q():e.altKey?J(1):X(1)},et=e=>{e.preventDefault(),e.metaKey?Z(0):e.altKey?J(-1):X(-1)};return r.createElement(v.Primitive.div,{ref:t,tabIndex:-1,...R,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=R.onKeyDown)||t.call(R,e);let r=e.nativeEvent.isComposing||229===e.keyCode;if(!(e.defaultPrevented||r))switch(e.key){case"n":case"j":x&&e.ctrlKey&&ee(e);break;case"ArrowDown":ee(e);break;case"p":case"k":x&&e.ctrlKey&&et(e);break;case"ArrowUp":et(e);break;case"Home":e.preventDefault(),Z(0);break;case"End":e.preventDefault(),Q();break;case"Enter":{e.preventDefault();let t=K();if(t){let e=new Event(S);t.dispatchEvent(e)}}}}},r.createElement("label",{"cmdk-label":"",htmlFor:T.inputId,id:T.labelId,style:H},c),V(e,e=>r.createElement(E.Provider,{value:O},r.createElement(I.Provider,{value:T},e))))}),N=r.forwardRef((e,t)=>{var i,n;let a=(0,b.useId)(),l=r.useRef(null),o=r.useContext(R),s=r.useContext(I),c=$(e),u=null!=(n=null==(i=c.current)?void 0:i.forceMount)?n:null==o?void 0:o.forceMount;L(()=>{if(!u)return s.item(a,null==o?void 0:o.id)},[u]);let d=F(a,l,[e.value,e.children,l],e.keywords),f=r.useContext(E),m=B(e=>e.value&&e.value===d.current),p=B(e=>!!u||!1===s.filter()||!e.search||e.filtered.items.get(a)>0);function h(){var e,t;g(),null==(t=(e=c.current).onSelect)||t.call(e,d.current)}function g(){f.setState("value",d.current,!0)}if(r.useEffect(()=>{let t=l.current;if(!(!t||e.disabled))return t.addEventListener(S,h),()=>t.removeEventListener(S,h)},[p,e.onSelect,e.disabled]),!p)return null;let{disabled:y,value:w,onSelect:j,forceMount:C,keywords:k,...A}=e;return r.createElement(v.Primitive.div,{ref:(0,x.composeRefs)(l,t),...A,id:a,"cmdk-item":"",role:"option","aria-disabled":!!y,"aria-selected":!!m,"data-disabled":!!y,"data-selected":!!m,onPointerMove:y||s.getDisablePointerSelection()?void 0:g,onClick:y?void 0:h},e.children)}),M=r.forwardRef((e,t)=>{let{heading:i,children:n,forceMount:a,...l}=e,o=(0,b.useId)(),s=r.useRef(null),c=r.useRef(null),u=(0,b.useId)(),d=r.useContext(I),f=B(e=>!!a||!1===d.filter()||!e.search||e.filtered.groups.has(o));L(()=>d.group(o),[]),F(o,s,[e.value,e.heading,c]);let m=r.useMemo(()=>({id:o,forceMount:a}),[a]);return r.createElement(v.Primitive.div,{ref:(0,x.composeRefs)(s,t),...l,"cmdk-group":"",role:"presentation",hidden:!f||void 0},i&&r.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:u},i),V(e,e=>r.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":i?u:void 0},r.createElement(R.Provider,{value:m},e))))}),_=r.forwardRef((e,t)=>{let{alwaysRender:i,...n}=e,a=r.useRef(null),l=B(e=>!e.search);return i||l?r.createElement(v.Primitive.div,{ref:(0,x.composeRefs)(a,t),...n,"cmdk-separator":"",role:"separator"}):null}),D=r.forwardRef((e,t)=>{let{onValueChange:i,...n}=e,a=null!=e.value,l=r.useContext(E),o=B(e=>e.search),s=B(e=>e.selectedItemId),c=r.useContext(I);return r.useEffect(()=>{null!=e.value&&l.setState("search",e.value)},[e.value]),r.createElement(v.Primitive.input,{ref:t,...n,"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:a?e.value:o,onChange:e=>{a||l.setState("search",e.target.value),null==i||i(e.target.value)}})}),O=r.forwardRef((e,t)=>{let{children:i,label:n="Suggestions",...a}=e,l=r.useRef(null),o=r.useRef(null),s=B(e=>e.selectedItemId),c=r.useContext(I);return r.useEffect(()=>{if(o.current&&l.current){let e=o.current,t=l.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,x.composeRefs)(l,t),...a,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":s,"aria-label":n,id:c.listId},V(e,e=>r.createElement("div",{ref:(0,x.composeRefs)(o,c.listInnerRef),"cmdk-list-sizer":""},e)))}),T=r.forwardRef((e,t)=>{let{open:i,onOpenChange:n,overlayClassName:a,contentClassName:l,container:o,...s}=e;return r.createElement(g.Root,{open:i,onOpenChange:n},r.createElement(g.Portal,{container:o},r.createElement(g.Overlay,{"cmdk-overlay":"",className:a}),r.createElement(g.Content,{"aria-label":e.label,"cmdk-dialog":"",className:l},r.createElement(P,{ref:t,...s}))))}),z=Object.assign(P,{List:O,Item:N,Input:D,Group:M,Separator:_,Dialog:T,Empty:r.forwardRef((e,t)=>B(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:n,label:a="Loading...",...l}=e;return r.createElement(v.Primitive.div,{ref:t,...l,"cmdk-loading":"",role:"progressbar","aria-valuenow":i,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},V(e,e=>r.createElement("div",{"aria-hidden":!0},e)))})});function $(e){let t=r.useRef(e);return L(()=>{t.current=e}),t}var L="u"e(t.snapshot());return r.useSyncExternalStore(t.subscribe,i,i)}function F(e,t,i,n=[]){let a=r.useRef(),l=r.useContext(I);return L(()=>{var r;let o=(()=>{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():a.current}})(),s=n.map(e=>e.trim());l.value(e,o,s),null==(r=t.current)||r.setAttribute(k,o),a.current=o}),a}var G=()=>{let[e,t]=r.useState(),i=U(()=>new Map);return L(()=>{i.current.forEach(e=>e()),i.current=new Map},[e]),(e,r)=>{i.current.set(e,r),t({})}};function V({asChild:e,children:t},i){let n;return e&&r.isValidElement(t)?r.cloneElement("function"==typeof(n=t.type)?n(t.props):"render"in n?n.render(t.props):t,{ref:t.ref},i(t.props.children)):i(t)}var H={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};let q=(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 W=e.i(632137);function K({className:e,...r}){return(0,t.jsx)(z,{"data-slot":"command",className:(0,W.cn)("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...r})}function Y({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)(q,{className:"size-4 shrink-0 opacity-50"}),(0,t.jsx)(z.Input,{"data-slot":"command-input",className:(0,W.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 Z({className:e,...r}){return(0,t.jsx)(z.List,{"data-slot":"command-list",className:(0,W.cn)("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...r})}function X({className:e,...r}){return(0,t.jsx)(z.Group,{"data-slot":"command-group",className:(0,W.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)(z.Item,{"data-slot":"command-item",className:(0,W.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(367810);var Q=e.i(809058);e.s(["LocationInput",0,function({location:e,onChangeLocation:d,label:f="Search for a location",placeholder:m="Search city or zip code",className:p,error:h,disabled:g=!1}){let v=(0,i.useParams)(),b=v?.locale,[x,y]=(0,r.useState)(!1),[w,j]=(0,r.useState)(""),C=(0,s.default)(w.trim(),300),S=e?`${e.city}, ${e.adminDistrictCode||e.adminDistrict||e.displayContext}`:null,{isLoading:k,data:A}=(0,n.default)(C?["location-search",C,b]:null,([,e,t])=>(0,o.getLocationsByQuery)(e,t));return(0,t.jsxs)("div",{className:"w-full min-w-0",children:[(0,t.jsxs)(Q.Popover,{open:x,onOpenChange:y,children:[(0,t.jsx)(Q.PopoverTrigger,{asChild:!0,children:(0,t.jsxs)(u.Button,{variant:"outline",role:"combobox",disabled:g,"aria-expanded":x,"aria-invalid":!!h,className:(0,W.cn)("flex w-full justify-start gap-2 bg-white px-3 text-left font-normal text-gray-900",p,!!e&&"border-black",h&&"border-alert-severe"),children:[k?(0,t.jsx)(l.LoaderCircle,{className:"size-4 shrink-0 animate-spin","aria-hidden":"true",title:""}):(0,t.jsx)(a.Location,{className:"size-4 shrink-0","aria-hidden":"true",title:""}),(0,t.jsx)("span",{className:"flex-1 truncate",children:S??f})]})}),(0,t.jsx)(Q.PopoverContent,{side:"bottom",align:"start",collisionPadding:8,className:"w-(--radix-popover-trigger-width) p-0",showArrow:!1,children:(0,t.jsxs)(K,{shouldFilter:!1,children:[(0,t.jsx)(Y,{placeholder:m,value:w,onValueChange:j}),(0,t.jsx)(Z,{className:"max-h-[min(200px,46vh)] min-h-10",children:(0,t.jsx)(X,{children:A?.map(e=>(0,t.jsx)(J,{value:e.locId,onSelect:()=>{d(e),y(!1)},children:e.address},e.locId))})})]})})]}),h&&(0,t.jsx)(c.Text,{variant:"Caption.S",color:"error",className:"mt-1",children:h})]})}],546334)},279887,e=>{"use strict";var t=e.i(947118),r=e.i(737801),i=e.i(592121);e.s(["useTrackEmailSubscription",0,()=>{let e="alert-subscription-changed",n=(0,t.useIsInitialized)(),a=(0,r.useEventAttributes)();return(0,i.useCallback)(({name:t,status:r})=>{let i={...a,name:t,status:r?"enabled":"disabled"};if(!n)return void console.warn("MParticle is not initialized");try{window.mParticle?.logEvent?.(e,window.mParticle?.EventType?.Other,i),console.debug(`MParticle: Event "${e}" tracked`,i)}catch(t){console.error(`MParticle: Event "${e}" failed`,t)}},[a,n])}])},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},979538,e=>{"use strict";let t=(0,e.i(695881).createLogger)("OpenWebSdkClient"),r=new class{baseUrl;constructor(){this.baseUrl="https://upsx.weather.com"}async getAccount(e){let r=e?.maxRetries||3,i=e?.delayMs||500,n=null;for(let e=1;esetTimeout(e,r));continue}throw n}let s=await o.json();return t.info(`getAccount - Account found (attempt ${e}/${r}):`,s),s}catch(a){if(t.error(`getAccount - Error (attempt ${e}/${r}):`,a),a instanceof TypeError&&a.message.includes("fetch"))return t.error(`getAccount - Network error, treating as no account (attempt ${e}/${r})`),null;if(n=a instanceof Error?a:Error(String(a)),esetTimeout(e,r));continue}throw n}if(n)throw n;return null}async getCodeB(e,r,i,n){let a=n?.maxRetries||2,l=n?.delayMs||500,o=null,s=e?e.split("?")[0]:"";if(!s)throw Error("Invalid codeA: codeA is required to complete the SSO process");for(let e=1;esetTimeout(e,r));continue}throw o}let f=await d.json();return t.info(`getCodeB - Success, codeB received (attempt ${e}/${a+1}):`,f.codeB?`codeB ${f.codeB}`:"missing"),f.codeB}catch(r){if(t.error(`getCodeB - Error (attempt ${e}/${a+1}):`,r),o=r instanceof Error?r:Error(String(r)),esetTimeout(e,r));continue}throw o}if(o)throw o;return""}};e.s(["openWebClient",0,r])},109339,470015,e=>{"use strict";var t=e.i(699173),r=e.i(592121),i=e.i(747961);let n=(0,r.forwardRef)(({title:e,titleId:r,desc:i,descId:n,...a},l)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-label":"The Weather Company - Home",viewBox:"0 0 432.96 399.36",ref:l,"aria-labelledby":r,"aria-describedby":n,...a,children:[i?(0,t.jsx)("desc",{id:n,children:i}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"The Weather Channel"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsx)("path",{d:"M152.48 347.3c0 4.02 2.48 6.71 5.9 6.71 2.51 0 5.01-1.3 7.01-3.52l.21-11.03h-.62c-9.31 0-12.5 1.74-12.5 7.84M165.2 144c0-3.81-.4-5.81-1.61-7.72-1.3-1.99-3.2-3.01-5.9-3.01-5.12 0-8.04 4.02-8.04 11.13v.19h15.54V144zm7.82 109.49c0 4.01 2.52 6.72 5.94 6.72 2.5 0 5.01-1.32 7.01-3.52l.21-11.03h-.6c-9.34.01-12.56 1.73-12.56 7.83m-34.34-17.25c0-3.81-.41-5.8-1.6-7.7-1.32-2.02-3.22-3.03-5.94-3.03-5.11 0-8 4.03-8 11.14v.19h15.53v-.6zM316 319.32c-5.1 0-8.01 4.02-8.01 11.15v.19h15.54v-.59c0-3.82-.39-5.83-1.59-7.72-1.32-2.02-3.22-3.03-5.94-3.03"}),(0,t.jsx)("path",{d:"M372.65 228.54c-1.33-.7-2.41-1.01-3.91-1.01-3.02 0-5.74 1.4-8.21 4.3v36.3h-13.46v-34.3c0-6.9-.8-12.13-1.9-15.02l12.02-3.24c1.21 2.11 1.9 4.44 2.12 7.32 1.92-2.59 5.09-5.4 7.63-6.51 1.1-.49 2.9-.81 4.38-.81 2.02 0 2.92.2 5.03 1.11zM360.2 363.13c-5.73 0-10.32-2.69-11.94-7.03-1.01-2.59-1.21-4.18-1.21-11.5v-38.29c0-6.72-.19-10.82-.69-15.45l13.73-3.11c.5 2.81.71 6.14.71 13.33v40c0 8.82.1 10.02.88 11.42.5.89 1.62 1.39 2.72 1.39.5 0 .79 0 1.49-.18l2.3 8.02c-2.29.9-5.08 1.4-7.99 1.4m-22.42-116.48h-29.67v.44c0 7.91 3.91 12.41 10.83 12.41 4.61 0 8.92-1.71 13.03-5.11l5.21 8.04c-5.91 4.8-12.12 7.1-19.34 7.1-14.73 0-24.25-10.43-24.25-26.55 0-9.24 1.89-15.35 6.4-20.35 4.22-4.72 9.33-6.92 16.14-6.92 5.92 0 11.53 1.99 14.85 5.4 4.7 4.83 6.81 11.76 6.81 22.47v3.07zm-.32 93.83H307.8v.41c0 7.9 3.92 12.42 10.83 12.42 4.62 0 8.91-1.72 13.02-5.12l5.23 8.04c-5.92 4.8-12.13 7.1-19.35 7.1-14.74 0-24.26-10.43-24.26-26.55 0-9.23 1.9-15.35 6.4-20.35 4.22-4.73 9.33-6.92 16.14-6.92 5.9 0 11.53 2.01 14.84 5.42 4.71 4.8 6.81 11.73 6.81 22.43zm-50.78-72.34h-13.13v-34.5c0-5.09-1.4-7.01-5.21-7.01-3.31 0-7.63 2.01-10.62 4.73v36.78h-13.63v-59.35c0-4.82-.4-9.61-1-11.73l13.73-3.21c.59 2.81.9 7.61.9 12.52v10.22c0 1.61-.2 3.72-.2 4.32 3.51-3.31 9.31-5.52 14.54-5.52 6.51 0 11.72 2.81 13.33 7.31.99 2.94 1.3 4.63 1.3 9.54v35.9zm-2.73 93.8h-13.23v-33.38c0-5.81-1.01-7.52-4.51-7.52-2.7 0-6.22 1.82-9.31 4.62v36.28h-13.45v-37.19c0-4.41-.6-8.61-1.79-12.04l11.95-3.4c1.18 2.1 1.88 4.31 1.88 6.41 2.01-1.38 3.72-2.6 5.91-3.81 2.73-1.39 6.23-2.19 9.22-2.19 5.71 0 10.73 2.99 12.32 7.42.74 1.9 1.02 4.11 1.02 7.31v37.49zm-57.3-92.61c-6.81 0-12.23-2.99-13.83-7.52-.8-2.23-.9-3.23-.9-7.92v-27.88h-5.11v-9.21h5.11c0-5 0-8.34.5-12.13l13.64-3.4c-.5 4.69-.8 10.32-.8 15.54h12.04l-3.42 9.21h-8.61v25.78c0 6.51 1.19 8.22 5.81 8.22 1.2 0 2.41-.32 4.81-1.01l1.7 8.01c-3.94 1.61-7.43 2.31-10.94 2.31m4.99 92.61H218.4v-33.38c0-5.81-1.01-7.52-4.51-7.52-2.7 0-6.19 1.82-9.32 4.62v36.28h-13.44v-37.19c0-4.41-.58-8.61-1.77-12.04l11.92-3.4c1.2 2.1 1.91 4.31 1.91 6.41 1.99-1.38 3.69-2.6 5.9-3.81 2.7-1.39 6.21-2.19 9.21-2.19 5.72 0 10.74 2.99 12.33 7.42.71 1.9 1.02 4.11 1.02 7.31v37.49zm-55.28-91.9c-11.45 0-17.65-5.83-17.65-16.06 0-12.03 8.31-17.63 24.63-17.63 1.01 0 1.92 0 3.01.09v-2.11c0-5.69-1.09-7.61-6-7.61-4.3 0-9.32 2.13-14.83 5.85l-5.72-9.65c2.72-1.71 4.71-2.71 8.34-4.19 5-2.12 9.32-3.01 14.02-3.01 8.61 0 14.54 3.21 16.55 8.91.69 2.1.99 3.7.89 9.22l-.29 17.26v.9c0 5.5.89 7.58 4.8 10.51l-7.11 8.22c-3.11-1.31-5.92-3.59-7.22-6.22-1 .98-2.11 2.01-3.11 2.71-2.51 1.8-6.11 2.81-10.31 2.81m.06 94.51c-3.1-1.31-5.92-3.61-7.21-6.23-1.01 1.02-2.11 2.01-3.11 2.72-2.51 1.81-6.11 2.8-10.33 2.8-11.43 0-17.65-5.82-17.65-16.02 0-12.04 8.33-17.67 24.67-17.67 1 0 1.91 0 3.01.1v-2.08c0-5.74-1.1-7.63-6.03-7.63-4.32 0-9.34 2.11-14.83 5.82l-5.73-9.64c2.72-1.7 4.73-2.69 8.34-4.19 5.02-2.12 9.32-3.01 14.05-3.01 8.59 0 14.52 3.19 16.51 8.93.72 2.1 1.03 3.72.92 9.21l-.29 17.26v.89c0 5.52.9 7.6 4.82 10.52zM108.4 242.98c0-9.24 1.9-15.35 6.41-20.35 4.22-4.72 9.33-6.92 16.15-6.92 5.91 0 11.54 1.99 14.84 5.4 4.72 4.83 6.83 11.76 6.83 22.47v3.08h-29.68v.44c0 7.91 3.92 12.41 10.82 12.41 4.62 0 8.91-1.71 13.03-5.11l5.22 8.04c-5.92 4.8-12.14 7.1-19.36 7.1-14.73-.01-24.26-10.44-24.26-26.56m20.64 118.96H115.9v-34.5c0-5.1-1.4-7-5.2-7-3.31 0-7.63 1.99-10.63 4.71v36.79H86.44V302.6c0-4.83-.41-9.62-1.01-11.74l13.75-3.2c.58 2.82.89 7.62.89 12.56v10.19c0 1.6-.2 3.72-.2 4.33 3.5-3.32 9.32-5.53 14.53-5.53 6.52 0 11.71 2.81 13.32 7.33 1.01 2.92 1.32 4.61 1.32 9.54zm-69.54 1.19c-9.63 0-17.05-3.09-22.76-9.61-5.62-6.31-8.43-14.73-8.43-24.96 0-8.72 1.52-15.64 4.7-21.65 5.44-10.12 15.46-16.14 26.69-16.14 6.91 0 13.82 2.21 17.64 5.52l-6.32 9.51c-3.51-2.6-7.22-3.9-11.12-3.9-4.72 0-9.33 2.29-11.83 6.01-2.7 4-3.91 9.83-3.91 17.94 0 9.52.79 14.83 2.89 18.65 2.81 5.12 7.42 7.81 13.44 7.81 4.1 0 7.82-1.19 11.93-4.49l6.42 8.81c-5.52 4.49-11.41 6.5-19.34 6.5M40.56 198.45l6 27.48c2.81 13.04 3.72 22.95 3.72 22.95.29-2.7 1.5-12.64 3.59-22.25l6.21-28.18h15.35l6.44 31.19c1.3 6.51 3 18.45 3 18.45.19-2.22 2.39-16.36 3.8-23.18l5.72-26.47h14.73l-16.83 70.27H76.94l-6.23-28.36c-2.1-9.32-3.11-18.34-3.29-20.24 0 0-1.2 9.82-3.34 20.05l-5.8 28.55H42.36l-16.65-70.27h14.85zm-14.34-92.24h50.22l-2.3 11.64H57.5v58.04H43.25v-58.04H26.22zm69.95-4.61c.59 2.81.9 7.62.9 12.53v10.23c0 1.58-.21 3.71-.21 4.31 3.51-3.31 9.32-5.53 14.53-5.53 6.52 0 11.73 2.8 13.35 7.32 1 2.9 1.3 4.61 1.3 9.53v35.89H112.9V141.4c0-5.11-1.4-7.01-5.23-7.01-3.31 0-7.61 1.99-10.61 4.71v36.79H83.44v-59.35c0-4.82-.41-9.61-1.02-11.73zm45.17 28.78c4.21-4.72 9.32-6.94 16.14-6.94 5.9 0 11.52 2.03 14.84 5.44 4.71 4.82 6.81 11.71 6.81 22.45v3.11h-29.66v.41c0 7.92 3.9 12.42 10.81 12.42 4.6 0 8.92-1.69 13.03-5.12l5.23 8.04c-5.93 4.79-12.15 7.1-19.35 7.1-14.75 0-24.27-10.43-24.27-26.54.01-9.26 1.9-15.37 6.42-20.37M.82.04v399.28h399.26V.04z"}),(0,t.jsx)("path",{d:"M316.33 225.51c-5.11 0-8.03 4.03-8.03 11.14v.19h15.55v-.6c0-3.81-.41-5.8-1.61-7.7-1.3-2.02-3.21-3.03-5.91-3.03m101.57-211h2.16c1.87 0 3.69-.1 3.69-2.32 0-1.91-1.65-2.13-3.08-2.13h-2.77zm-2.09-6.16h5.21c3.27 0 4.83 1.3 4.83 3.94 0 2.51-1.59 3.56-3.65 3.78l3.97 6.1h-2.25l-3.75-5.94h-2.26v5.94h-2.09V8.35zm4.51 17.03c5.4 0 9.72-4.38 9.72-10.11 0-5.72-4.32-10.11-9.72-10.11-5.43 0-9.72 4.39-9.72 10.11 0 5.73 4.28 10.11 9.72 10.11m0-21.93c6.42 0 11.82 5.08 11.82 11.82s-5.4 11.82-11.82 11.82c-6.45 0-11.82-5.08-11.82-11.82 0-6.73 5.37-11.82 11.82-11.82"})]})),a=r.default.forwardRef((e,r)=>(0,t.jsx)(i.BaseIcon,{ref:r,icon:n,...e}));a.displayName="TWC",e.s(["SignInModal",0,function({isOpen:e,onClose:r}){return e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"fixed inset-0 z-[60] bg-black/50"}),(0,t.jsx)("div",{className:"fixed inset-0 z-[70] flex items-center justify-center p-4",children:(0,t.jsxs)("div",{className:"relative w-full max-w-sm rounded-lg bg-white p-6 pt-7 shadow-lg",children:[(0,t.jsx)("button",{onClick:r,className:"absolute top-2 right-2 flex h-6 w-6 items-center justify-center rounded-full text-xl text-gray-400 hover:bg-gray-100 hover:text-gray-600","aria-label":"Close banner",children:"×"}),(0,t.jsx)("div",{className:"mt-4 mb-4 flex justify-center",children:(0,t.jsx)(a,{className:"h-10 w-auto text-blue-600"})}),(0,t.jsx)("h3",{className:"mb-4 text-center text-lg font-medium text-gray-900",children:"Sign in to join the conversation"}),(0,t.jsx)("button",{onClick:()=>{window.location.href="/login"},className:"w-full rounded-md bg-gray-900 px-4 py-2 text-sm font-medium text-white hover:bg-gray-800",children:"Sign in"})]})})]}):null}],109339);var l=e.i(877957),o=e.i(935331);e.s(["DisplayNameModal",0,function({isOpen:e,onClose:r,displayName:i,onDisplayNameChange:n,onSubmit:s,isSubmitting:c,error:u}){return e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"fixed inset-0 z-[60] bg-black/50"}),(0,t.jsx)("div",{className:"fixed inset-0 z-[70] flex items-center justify-center p-4",children:(0,t.jsxs)("div",{className:"relative w-full max-w-sm rounded-lg bg-white p-6 shadow-xl",children:[(0,t.jsx)("button",{onClick:r,className:"absolute top-2 right-2 flex h-6 w-6 items-center justify-center rounded-full text-xl text-gray-400 hover:bg-gray-100 hover:text-gray-600","aria-label":"Close dialog",children:"×"}),(0,t.jsx)("div",{className:"mt-4 mb-4 flex justify-center",children:(0,t.jsx)(a,{className:"h-10 w-auto text-blue-600"})}),(0,t.jsx)("h2",{className:"mb-2 text-center text-xl font-semibold text-gray-900",children:"Create a display name"}),(0,t.jsx)("p",{className:"mb-6 text-left text-sm text-gray-600",children:"Your display name is the name others will see when you comment."}),(0,t.jsxs)("form",{onSubmit:s,className:"space-y-4",children:[u&&(0,t.jsx)("div",{className:"rounded-md bg-red-50 p-3 text-sm text-red-700",children:u}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("label",{htmlFor:"displayName",className:"block text-sm font-medium text-gray-700",children:"Display Name"}),(0,t.jsx)(o.Input,{id:"displayName",type:"text",value:i,onChange:e=>n(e.target.value),placeholder:"Enter your display name",required:!0,minLength:3,maxLength:30,className:"w-full"})]}),(0,t.jsx)(l.Button,{type:"submit",disabled:c||!i.trim(),className:"w-full bg-gray-900 text-white",size:"default",children:c?"Creating...":"Create"})]}),(0,t.jsxs)("p",{className:"mt-4 text-left text-xs text-gray-500",children:["Your email address is shared with OpenWeb, the commenting platform. By creating a display name, you agree to the OpenWeb"," ",(0,t.jsx)("a",{href:"https://www.openweb.com/legal-and-privacy/privacy/",target:"_blank",rel:"noopener noreferrer",className:"text-blue-500 underline hover:text-blue-600",children:"Privacy Policy"})," ","and"," ",(0,t.jsx)("a",{href:"https://www.openweb.com/legal-and-privacy/terms-of-use/",target:"_blank",rel:"noopener noreferrer",className:"text-blue-500 underline hover:text-blue-600",children:"Terms of Use"}),"."]})]})})]}):null}],470015)},235577,e=>{"use strict";var t=e.i(699173),r=e.i(523084),i=e.i(47524),n=e.i(632137),a=e.i(877957);e.s(["ScrollButton",0,function({direction:e,onClick:l,hidden:o,size:s="default",variant:c="light",className:u}){let d="sm"===s,f=(0,n.cn)("text-current",d?"size-4":"size-6 transition-[width,height] duration-150 group-hover:size-7 group-active:size-6 group-active:duration-100");return(0,t.jsx)(a.Button,{type:"button",onClick:l,"aria-hidden":"true",tabIndex:-1,className:(0,n.cn)("group z-sticky absolute top-1/2 flex -translate-y-1/2 cursor-pointer items-center justify-center rounded-full p-0 transition-all duration-150 ease-in-out active:duration-100","dark"===c?"bg-[#252422] text-white hover:bg-[#3a3937] active:bg-[#1a1918]":"solid"===c?"bg-black/80 text-white hover:bg-black/90 active:bg-black":"white"===c?"bg-white/80 text-gray-900 backdrop-blur-[2px] hover:bg-white/95 active:bg-white":"bg-transparent text-gray-900 hover:bg-gray-100 active:bg-gray-200",d?"size-8":"size-12","left"===e&&"left-1","right"===e&&"right-1",o&&"left"===e&&"-translate-x-[calc(100%+1.5rem)]",o&&"right"===e&&"translate-x-[calc(100%+1.5rem)]",o&&"pointer-events-none opacity-0",u),children:"left"===e?(0,t.jsx)(r.ChevronLeft,{className:f}):(0,t.jsx)(i.ChevronRight,{className:f})})}])},315730,e=>{"use strict";var t=e.i(147732),r=e.i(592121);e.s(["useHorizontalScroll",0,function({enabled:e=!0,scrollAmount:i=200,contentKey:n}={}){let a=(0,r.useRef)(null),l=(0,r.useRef)(null),o=(0,r.useRef)(!1),[s,c]=(0,r.useState)(!1),[u,d]=(0,r.useState)(!1),f=(0,r.useCallback)(()=>{let t=a.current;if(!t||!e){c(!1),d(!1);return}let{scrollLeft:r,scrollWidth:i,clientWidth:n}=t,l=Math.abs(r),s=l>2,u=l+n(0,t.debounce)(f,150),[f]),p=(0,r.useCallback)(()=>{null===l.current&&(l.current=requestAnimationFrame(()=>{f(),l.current=null}))},[f]);(0,r.useEffect)(()=>{let t=a.current;return t&&(o.current="rtl"===getComputedStyle(t).direction),f(),e&&(t?.addEventListener("scroll",p),window.addEventListener("resize",m)),()=>{null!==l.current&&cancelAnimationFrame(l.current),l.current=null,t?.removeEventListener("scroll",p),m.cancel(),window.removeEventListener("resize",m)}},[e,f,p,m,n]);let h=(0,r.useCallback)(()=>a.current?.scrollBy({left:-i,behavior:"smooth"}),[i]),g=(0,r.useCallback)(()=>a.current?.scrollBy({left:i,behavior:"smooth"}),[i]);return{ref:a,showLeft:s,showRight:u,scrollLeft:h,scrollRight:g}}])},457492,e=>{"use strict";var t=e.i(699173),r=e.i(592121),i=e.i(632137),n=e.i(546446),a=e.i(663333),l=e.i(235577),o=e.i(315730),s=e.i(240058);let c=(0,i.cn)("h-full rounded-3xl px-4 text-sm whitespace-nowrap transition-colors text-gray-900 font-bold","inline-flex items-center hover:bg-gray-100 active:bg-gray-200 focus-visible:outline-none focus-visible:bg-gray-100"),u=e=>{let{activeIndex:r,index:n,link:a}=e,l=r===n,o=(0,i.cn)(c,{"bg-gray-100 text-blue-500":l});if(e.onSelect){let{onSelect:r}=e;return(0,t.jsx)("button",{type:"button",onClick:()=>r(n,a),className:(0,i.cn)("cursor-pointer",o),"aria-current":l?"page":void 0,children:a.label})}let{basePath:u,mpa:d}=e,f=a.href??("/"===a.slug?u||"/":`${u}/${a.slug}`);return(0,t.jsx)(s.default,{href:f,mpa:d,className:o,"aria-current":l?"page":void 0,sourceModule:"subnavigation",children:a.label})},d=(0,r.memo)(e=>{let{links:r,activeIndex:s,className:c,constrained:d=!0}=e,f=(0,n.useAtomValue)(a.deviceClassAtom),{ref:m,showLeft:p,showRight:h,scrollLeft:g,scrollRight:v}=(0,o.useHorizontalScroll)({enabled:"mobile"!==f&&"tablet"!==f,scrollAmount:200,contentKey:r});return(0,t.jsxs)("div",{className:(0,i.cn)("relative overflow-hidden rounded-3xl bg-white p-1 shadow-[0_4px_16px_0_rgba(0,0,0,0.08),_0_0_32px_0_rgba(0,0,0,0.12)]","md:rounded-4xl md:rounded-[28px]",d&&"md:mr-auto md:max-w-[min(958px,100%)]",c),"data-testid":"subnavigation",children:[(0,t.jsx)("div",{className:(0,i.cn)("pointer-events-none absolute top-0 -left-25 h-full w-24 bg-gradient-to-r from-white from-0% via-white via-60% to-transparent transition-[left] md:-top-1 md:h-14 md:rounded-s-[28px]",{"-left-1":p}),"aria-hidden":"true"}),(0,t.jsx)(l.ScrollButton,{hidden:!p,onClick:g,direction:"left"}),(0,t.jsx)("div",{ref:m,className:(0,i.cn)("scrollbar-hide flex h-10 items-center gap-1 overflow-x-auto md:h-12"),children:r.map((r,i)=>e.onSelect?(0,t.jsx)(u,{link:r,index:i,activeIndex:s,onSelect:e.onSelect},`${r.label}_${r.slug}`):(0,t.jsx)(u,{link:r,index:i,activeIndex:s,basePath:e.basePath,mpa:e.mpa},`${r.label}_${r.slug}`))}),(0,t.jsx)("div",{className:(0,i.cn)("pointer-events-none absolute top-0 -right-25 h-full w-24 bg-gradient-to-l from-white from-0% via-white via-60% to-transparent transition-[right] md:-top-1 md:h-14 md:rounded-e-[28px]",{"-right-1":h}),"aria-hidden":"true"}),(0,t.jsx)(l.ScrollButton,{hidden:!h,onClick:v,direction:"right"})]})},(e,t)=>e.activeIndex===t.activeIndex&&e.basePath===t.basePath&&e.mpa===t.mpa&&e.onSelect===t.onSelect&&e.constrained===t.constrained&&e.links.length===t.links.length&&e.links.every((e,r)=>e.label===t.links[r]?.label&&e.slug===t.links[r]?.slug&&e.href===t.links[r]?.href));d.displayName="SubnavigationUI",e.s(["SubnavigationUI",0,d],457492)},1567,e=>{"use strict";var t=e.i(947118),r=e.i(737801),i=e.i(546446),n=e.i(513539),a=e.i(592121);e.s(["useTrackModuleViewed",0,()=>{let e="module-viewed",l=(0,t.useIsInitialized)(),o=(0,r.useEventAttributes)(),s=(0,i.useAtomValue)(n.layoutStateAtom);return(0,a.useCallback)(({moduleId:t,modulePosition:r})=>{if(!l)return void console.warn("MParticle is not initialized");let i={...o,moduleId:t,modulePosition:String(r),layoutState:s};try{window.mParticle?.logEvent?.(e,window.mParticle?.EventType?.Other,i),console.debug(`MParticle: Event "${e}" tracked`,i)}catch(t){console.error(`MParticle: Event "${e}" failed`,t)}},[o,l,s])}])},16838,e=>{"use strict";var t=e.i(699173),r=e.i(752496);e.s(["DebugCollector",0,function({enabled:e=!0,...i}){return e?(0,t.jsx)(r.DebugCollectorClient,{...i}):null}])},445359,e=>{"use strict";var t=e.i(699173),r=e.i(592121),i=e.i(747961);let n=(0,r.forwardRef)(({title:e,titleId:r,desc:i,descId:n,...a},l)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":n,...a,children:[i?(0,t.jsx)("desc",{id:n,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"})]})),a=r.default.forwardRef((e,r)=>(0,t.jsx)(i.BaseIcon,{ref:r,icon:n,...e}));a.displayName="PlayFilledAlt",e.s(["PlayFilledAlt",0,a])},950604,e=>{"use strict";let t={light:"weather/cmq18dhse00gk01s67nky5oc4",dark:"weather/cmpzizddb007f01s0480lew2j",satellite:"weather/cmpzjludd000401qs2inuays8"};function r(e){return`mapbox://styles/${t[e]}`}let i=[{id:"light",label:"themeLabelLight",mapStyle:r("light"),thumbnailGradient:"from-sky-200 to-blue-300"},{id:"dark",label:"themeLabelDark",mapStyle:r("dark"),thumbnailGradient:"from-slate-700 to-slate-900"},{id:"satellite",label:"themeLabelSatellite",mapStyle:r("satellite"),thumbnailGradient:"from-emerald-700 to-stone-800"}],n=new Set(["ar","de","en","es","fr","it","ja","ko","pt","ru"]),a=new Set(["TW","HK","MO","HANT"]);e.s(["DEFAULT_MAP_THEME_ID",0,"light","FEATURE_MAP_STYLE",0,"mapbox://styles/weather/cjza0fpcf54z71cnty86ulfhj","MAP_THEMES",0,i,"mapboxBasemapLanguage",0,function(e="en-US"){let[t,r]=e.split("-"),i=(t??"").toLowerCase(),l=(r??"").toUpperCase();return"zh"===i?a.has(l)?"zhHant":"zhHans":n.has(i)?i:void 0},"resolveMapStyle",0,r])},491480,e=>{"use strict";var t=e.i(796424);e.s(["getLocalDate",0,({date:e,normalizeString:r=!0,resetToStartOfHour:i,resetToOffset:n,resetToStartOfDay:a,resetToStartOfMonth:l,resetToEndOfMonth:o,resetToStartOfWeek:s,resetToEndOfWeek:c,resetToHour:u,daysFromDate:d,daysBeforeDate:f,monthsBeforeDate:m,monthsAfterDate:p,yearsBeforeDate:h,yearsAfterDate:g})=>{if(!e)return new Date;let v=r||"string"!=typeof e?(0,t.getNormalizedDateString)(e):e,b=/([+-]\d{2}:?\d{2})$/,x=v.match(b),y=new Date(v.replace(b,""));if(d&&y.setDate(y.getDate()+d),f&&y.setDate(y.getDate()-f),m&&y.setMonth(y.getMonth()-m),p&&y.setMonth(y.getMonth()+p),i&&(y.setMinutes(0),y.setSeconds(0)),n&&x){let e,t=x[0];t.includes(":")?[,e]=t.split(":"):e=t.slice(-2),y.setMinutes(parseInt(e||"0",10)),y.setSeconds(0)}if(a&&y.setHours(0,0,0,0),l&&y.setDate(1),o){let e=y.getMonth(),t=y.getFullYear();y.setMonth(e+1),y.setDate(0),y.setFullYear(t)}return s&&y.setDate(y.getDate()-y.getDay()),c&&y.setDate(y.getDate()-y.getDay()+6),u&&y.setHours(u),h&&y.setFullYear(y.getFullYear()-1),g&&y.setFullYear(y.getFullYear()+1),y}])},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)))])}]);