(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,726538,e=>{"use strict";var t=e.i(902875),a=e.i(247865),l=e.i(725287),s=e.i(457492);e.s(["SectionSubnav",0,function({links:e,locale:i,section:r,leadingLink:n,disableActiveFallback:c=!1,className:u}){let m=(0,l.useParams)(),{navLinks:o,basePath:h}=(0,a.useMemo)(()=>({navLinks:[...n?[n]:[],...e.map(e=>({...e,slug:`${r}/${e.slug}`}))],basePath:"en-US"===i?"":`/${i}`}),[e,i,r,n]),d=(0,a.useMemo)(()=>{let t=n&&!c?0:-1;if(m.section&&m.section!==`/${r}`.replace(/^\//,"").replace(/\//g,"-"))return t;let a=e.findIndex(e=>e.slug===m.slug);return -1===a?t:a+ +!!n},[m.section,m.slug,r,e,n,c]);return(0,t.jsx)(s.SubnavigationUI,{links:o,basePath:h,activeIndex:d,className:u})}],726538)},238430,e=>{"use strict";var t=e.i(902875),a=e.i(247865);e.s(["default",0,function({candidate:e,failedMessage:l="Authentication failed. Please try again.",protectMessage:s="Remove your adblocker.",fetch:i,refresh:r,getCustomAccountInfo:n}){let[c,u]=(0,a.useState)(""),[m,o]=(0,a.useState)(!1),[h,d]=(0,a.useState)(!1),[p,b]=(0,a.useState)(!1),v=(0,a.useRef)([]);(0,a.useEffect)(()=>{e.id!==v.current[0]&&(v.current=[e.id],e.transactIDs&&v.current.push(...e.transactIDs))},[e.id,e.transactIDs]);let f=(0,a.useCallback)(()=>{try{i("/?adm_get_token=1").then(e=>{e.ok&&r()}).catch(()=>{u(l)})}catch{u(l)}},[i,l,r]),g=(0,a.useMemo)(()=>"u">typeof window?window:{admiral:{}},[]);return(0,a.useEffect)(()=>{typeof window>"u"||(g.admiral=g.admiral||function(...e){(g.admiral.q=g.admiral.q||[]).push(e)},g.admiral("after","measure.detected",function(t){if("abr"==e.requirement)t.adblocking?(u(s),o(!0)):b(!0);else if("account"==e.requirement||"benefits"==e.requirement){let t=!!n;g.admiral("after","visitor.latest",function(a){var l;if("account"===e.requirement)(t?n().registered:a.status.registered)||h||(u(s),o(!0));else if("benefits"===e.requirement){let a=[];if(t)a=n().benefits;else{let e=document.cookie.split(";");e&&(a=(null==(l=e.find(e=>e.startsWith("admbenefits=")))?void 0:l.split(","))??[])}if(a){let t=e.benefits??[];if(0==t.length)return void b(!0);let l=!1;for(let e of t)a.includes(e)&&(l=!0);l?b(!0):(u(s),o(!0))}else u(s),o(!0)}})}}))},[]),(0,a.useEffect)(()=>{p&&(b(!1),f())},[p,f]),(0,a.useEffect)(()=>{h||!m||(d(!0),g.admiral("targeting","force",{candidateIDs:v.current}))},[h,m,v,g]),(0,t.jsxs)("div",{children:[c||null," "]})}])},947118,221085,e=>{"use strict";let t;var a=e.i(247865);let l=new Set,s=0,i=()=>"function"==typeof window.mParticle?.init,r=()=>{void 0!==t&&(clearInterval(t),t=void 0)},n=()=>{if(!i()||(r(),0===l.size))return;let e=[...l];for(let t of(l.clear(),e))t()},c=()=>{void 0===t&&(s=0,t=setInterval(()=>{s+=100,n(),s>=3e4&&r()},100))},u=e=>(l.add(e),c(),()=>{l.delete(e)}),m=e=>i()?(e(),()=>{}):u(e),o=e=>i()?()=>{}:u(e),h=()=>!1;e.s(["subscribeSdkLoaded",0,m,"useIsSdkLoaded",0,()=>(0,a.useSyncExternalStore)(o,i,h),"watchForSdkLoad",0,e=>{if("u"{};if(i())return n(),()=>{};c();let t=Array.from(document.scripts).find(t=>t.getAttribute("src")===e);if(!t)return()=>{};let a=()=>n();return t.addEventListener("load",a),()=>{t.removeEventListener("load",a)}}],221085);let d=e=>"function"==typeof window.mParticle?.ready?(window.mParticle?.ready?.(e),()=>{}):m(()=>{window.mParticle?.ready?.(e),e()}),p=()=>!!window.mParticle?.isInitialized?.(),b=()=>!1;e.s(["useIsInitialized",0,()=>(0,a.useSyncExternalStore)(d,p,b)],947118)},37423,e=>{"use strict";let t=(0,e.i(981030).atom)(!1);e.s(["dprSdkIsInitializedAtom",0,t])},887908,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3d-1kbutbj1gv.js"].map(t=>e.l(t))).then(()=>t(147168)))},991894,e=>{e.v(t=>Promise.all(["static/immutable/chunks/22euvwis66vmb.js"].map(t=>e.l(t))).then(()=>t(39086)))},840623,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2n8msz19yvqd6.js"].map(t=>e.l(t))).then(()=>t(882330)))},660824,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0xxeeocmy2aye.js"].map(t=>e.l(t))).then(()=>t(530212)))},317297,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2616xyz29bjwr.js"].map(t=>e.l(t))).then(()=>t(680602)))},355962,e=>{e.v(t=>Promise.all(["static/immutable/chunks/37hnuu5dy6sit.js"].map(t=>e.l(t))).then(()=>t(503885)))},765014,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3um12qzwmc8k_.js"].map(t=>e.l(t))).then(()=>t(872251)))},876327,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2tyxy3-hxmn50.js"].map(t=>e.l(t))).then(()=>t(947387)))},921282,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3ma3aggvms9ma.js"].map(t=>e.l(t))).then(()=>t(493948)))},959395,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0f3g-lp97vkng.js"].map(t=>e.l(t))).then(()=>t(706686)))},813499,e=>{e.v(t=>Promise.all(["static/immutable/chunks/329zyt8hnwe7y.js"].map(t=>e.l(t))).then(()=>t(314459)))},563854,e=>{e.v(t=>Promise.all(["static/immutable/chunks/16536_5evh7u0.js"].map(t=>e.l(t))).then(()=>t(643246)))},48629,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1zgos4ygxa0bb.js"].map(t=>e.l(t))).then(()=>t(769885)))},762150,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0p2m8whl54tha.js"].map(t=>e.l(t))).then(()=>t(1892)))},541661,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0y1c5urz16cs_.js"].map(t=>e.l(t))).then(()=>t(478186)))},565343,e=>{e.v(t=>Promise.all(["static/immutable/chunks/06xr-i7ondto9.js"].map(t=>e.l(t))).then(()=>t(294782)))},393816,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0ff1-4vnz_78l.js"].map(t=>e.l(t))).then(()=>t(855621)))},75726,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0yr40fq9cik4v.js"].map(t=>e.l(t))).then(()=>t(748540)))},72951,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3mw623e8v1oie.js"].map(t=>e.l(t))).then(()=>t(360647)))},276567,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2853l-wt_g4_t.js"].map(t=>e.l(t))).then(()=>t(501462)))},951283,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1hb99379n909x.js"].map(t=>e.l(t))).then(()=>t(273498)))},416614,e=>{e.v(t=>Promise.all(["static/immutable/chunks/084ypheui9pug.js"].map(t=>e.l(t))).then(()=>t(901728)))},592630,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0s_0vvr_qgag9.js"].map(t=>e.l(t))).then(()=>t(507085)))},423373,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1p3orq86c5ifv.js"].map(t=>e.l(t))).then(()=>t(62159)))},815954,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3qaf2w3zk3w27.js"].map(t=>e.l(t))).then(()=>t(61161)))},15398,e=>{e.v(t=>Promise.all(["static/immutable/chunks/02xiqt9zvf6gh.js"].map(t=>e.l(t))).then(()=>t(762526)))},776943,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1ytb6oy4ikrz6.js"].map(t=>e.l(t))).then(()=>t(97569)))},284458,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3nxkndkqavswg.js"].map(t=>e.l(t))).then(()=>t(877390)))},261156,e=>{e.v(t=>Promise.all(["static/immutable/chunks/38l6gmiu5_9ku.js"].map(t=>e.l(t))).then(()=>t(827382)))},389867,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3hk3rd5e71dc4.js"].map(t=>e.l(t))).then(()=>t(702479)))},900346,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0t4h2wlc7n595.js"].map(t=>e.l(t))).then(()=>t(389327)))},96219,e=>{e.v(t=>Promise.all(["static/immutable/chunks/381m8qf6cbhtp.js"].map(t=>e.l(t))).then(()=>t(16557)))},267082,e=>{e.v(t=>Promise.all(["static/immutable/chunks/31nq3o47_azko.js"].map(t=>e.l(t))).then(()=>t(894202)))},829350,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1p8724zzw5ewi.js"].map(t=>e.l(t))).then(()=>t(447314)))},391939,e=>{e.v(t=>Promise.all(["static/immutable/chunks/396y1w1ozc-fu.js"].map(t=>e.l(t))).then(()=>t(72575)))},252521,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0lmym4f8kyevf.js"].map(t=>e.l(t))).then(()=>t(661446)))},408674,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1bk2xo-o_s-vf.js"].map(t=>e.l(t))).then(()=>t(783769)))},846784,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1-9yeudlt40j_.js"].map(t=>e.l(t))).then(()=>t(873667)))},713848,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0qp3xhy3q8zip.js"].map(t=>e.l(t))).then(()=>t(889507)))},407657,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1-2wb7wpbqbgn.js"].map(t=>e.l(t))).then(()=>t(75960)))},415546,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0tsqv73kd2uwg.js"].map(t=>e.l(t))).then(()=>t(667728)))},781723,e=>{e.v(t=>Promise.all(["static/immutable/chunks/17nasyndzgye8.js"].map(t=>e.l(t))).then(()=>t(654703)))},197999,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0hwzkvu2g7pco.js"].map(t=>e.l(t))).then(()=>t(272493)))},103659,e=>{e.v(t=>Promise.all(["static/immutable/chunks/17hryngooc2j1.js"].map(t=>e.l(t))).then(()=>t(296920)))},625303,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1d-xb8qt0v27_.js"].map(t=>e.l(t))).then(()=>t(718437)))},148486,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3q96qady37ql-.js"].map(t=>e.l(t))).then(()=>t(946515)))},957284,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1zx_ucotfu7pf.js"].map(t=>e.l(t))).then(()=>t(48914)))},92368,e=>{e.v(t=>Promise.all(["static/immutable/chunks/19pzyqeq9654w.js"].map(t=>e.l(t))).then(()=>t(789895)))},226507,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3jelzfg203nfe.js"].map(t=>e.l(t))).then(()=>t(538258)))},132409,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0nmdno2r5jhr2.js"].map(t=>e.l(t))).then(()=>t(3017)))},626117,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3mltvvqhcgund.js"].map(t=>e.l(t))).then(()=>t(825086)))},395624,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1q-jk2-pdev6-.js"].map(t=>e.l(t))).then(()=>t(600726)))},494738,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3_ndi79lx21jd.js"].map(t=>e.l(t))).then(()=>t(512028)))},774463,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3t1n31-ogxy75.js"].map(t=>e.l(t))).then(()=>t(155062)))},752465,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3iyt_l7ny1i-k.js"].map(t=>e.l(t))).then(()=>t(777844)))},67832,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1jtfbjn7tl5lf.js"].map(t=>e.l(t))).then(()=>t(414064)))},2638,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2jkxj9298b3gp.js"].map(t=>e.l(t))).then(()=>t(198051)))},916531,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0wdahy0c-g55j.js"].map(t=>e.l(t))).then(()=>t(369675)))},744883,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1yxzgbbc9k2zy.js"].map(t=>e.l(t))).then(()=>t(581947)))},880187,e=>{e.v(t=>Promise.all(["static/immutable/chunks/17dedv282ubqs.js"].map(t=>e.l(t))).then(()=>t(747997)))},164295,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0srphq_p8tbzl.js"].map(t=>e.l(t))).then(()=>t(702162)))},521662,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0mi2a4br_qp3u.js"].map(t=>e.l(t))).then(()=>t(782697)))},403395,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0pvy0xx928tqy.js"].map(t=>e.l(t))).then(()=>t(573581)))},661123,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1n29uczdwr6s-.js"].map(t=>e.l(t))).then(()=>t(711818)))},48208,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2n6233oisp1f-.js"].map(t=>e.l(t))).then(()=>t(625444)))},476493,e=>{e.v(t=>Promise.all(["static/immutable/chunks/234hfx_o8ubit.js"].map(t=>e.l(t))).then(()=>t(328877)))},650095,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1-83gv2_8qjed.js"].map(t=>e.l(t))).then(()=>t(601862)))},945801,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3a02q729huh9w.js"].map(t=>e.l(t))).then(()=>t(566248)))},909969,e=>{e.v(t=>Promise.all(["static/immutable/chunks/41skq4kn8ohe8.js"].map(t=>e.l(t))).then(()=>t(218776)))},155043,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0nxr0_6i1lqtd.js"].map(t=>e.l(t))).then(()=>t(869146)))},353962,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2hut6c8sprk2i.js"].map(t=>e.l(t))).then(()=>t(367128)))},666922,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3qb4sm1bny98e.js"].map(t=>e.l(t))).then(()=>t(856593)))},72998,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2sx3cwgqxp3i5.js"].map(t=>e.l(t))).then(()=>t(970479)))},722332,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3e4lkh1cm8zsc.js"].map(t=>e.l(t))).then(()=>t(476881)))},171913,e=>{e.v(t=>Promise.all(["static/immutable/chunks/37viczxedu6th.js"].map(t=>e.l(t))).then(()=>t(927976)))},90,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0b6c2xomqe187.js"].map(t=>e.l(t))).then(()=>t(22872)))},632092,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3cmxbqj3xp7vq.js"].map(t=>e.l(t))).then(()=>t(45677)))},5397,e=>{"use strict";let t=(0,e.i(981030).atom)();e.s(["showAdminHeaderAtom",0,t])},186044,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1x__73gnt4v5_.js"].map(t=>e.l(t))).then(()=>t(451309)))},752496,e=>{"use strict";var t=e.i(247865),a=e.i(609858);let l=(0,e.i(695881).createLogger)("DebugCollector");e.s(["DebugCollectorClient",0,function({componentName:e,data:s,page:i,onUpdateData:r,onSetPageData:n}){let{updateComponentData:c,setPageData:u}=(0,a.useDebugSystem)(),m=(0,t.useRef)(!1),o=r||c,h=n||u;return(0,t.useEffect)(()=>{if(s)return l.lifecycle(`Collecting component data for ${e}`,{dataKeys:Object.keys(s),hasPerformance:!!s.performance,hasContext:!!s.context}),o(e,{...s,_collectedAt:new Date().toISOString()}),()=>{l.lifecycle(`Cleaning up data for ${e}`),o(e,null)}},[e,s,o]),(0,t.useEffect)(()=>{i&&!m.current&&(l.lifecycle("Setting page metadata",{title:i.title,assetName:i.assetName,collection:i.collection}),h({...i,_updatedAt:new Date().toISOString()}),m.current=!0)},[i,h]),null}])},609858,674339,e=>{"use strict";var t=e.i(546446),a=e.i(247865);let l=(0,e.i(981030).atom)({timestamp:new Date().toISOString()});e.s(["debugDataAtom",0,l],674339),e.s(["useDebugSystem",0,function(){let[e,s]=(0,t.useAtom)(l),i=(0,a.useCallback)((e,t)=>{s(a=>{let l=a?.[e]||{},s="object"==typeof t&&null!==t&&"object"==typeof l?{...l,...t}:t;return{...a,[e]:s}})},[s]),r=(0,a.useCallback)((e,t)=>{s(a=>{let l=a||{timestamp:new Date().toISOString()},s=l.components||{};if(null===t){let t={...s};return delete t[e],{...l,components:t}}return{...l,components:{...s,[e]:t}}})},[s]),n=(0,a.useCallback)(e=>{i("page",e)},[i]),c=(0,a.useCallback)(e=>{i("route",e)},[i]),u=(0,a.useCallback)(e=>{Object.entries(e).forEach(([e,t])=>{t&&i(e,t)})},[i]);return{debugData:e,updateSection:i,updateComponentData:r,setPageData:n,clearAllDebugData:(0,a.useCallback)(()=>{s({timestamp:new Date().toISOString()})},[s]),updateRouteInfo:c,updatePageDebug:u}}],609858)},235577,e=>{"use strict";var t=e.i(902875),a=e.i(523084),l=e.i(47524),s=e.i(632137),i=e.i(877957);e.s(["ScrollButton",0,function({direction:e,onClick:r,hidden:n,size:c="default",variant:u="light",className:m}){let o="sm"===c,h=(0,s.cn)("text-current",o?"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)(i.Button,{type:"button",onClick:r,"aria-hidden":"true",tabIndex:-1,className:(0,s.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"===u?"bg-[#252422] text-white hover:bg-[#3a3937] active:bg-[#1a1918]":"solid"===u?"bg-black/80 text-white hover:bg-black/90 active:bg-black":"white"===u?"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",o?"size-8":"size-12","left"===e&&"left-1","right"===e&&"right-1",n&&"left"===e&&"-translate-x-[calc(100%+1.5rem)]",n&&"right"===e&&"translate-x-[calc(100%+1.5rem)]",n&&"pointer-events-none opacity-0",m),children:"left"===e?(0,t.jsx)(a.ChevronLeft,{className:h}):(0,t.jsx)(l.ChevronRight,{className:h})})}])},457492,e=>{"use strict";var t=e.i(902875),a=e.i(247865),l=e.i(632137),s=e.i(546446),i=e.i(663333),r=e.i(235577),n=e.i(315730),c=e.i(240058);let u=(0,l.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"),m=e=>{let{activeIndex:a,index:s,link:i}=e,r=a===s,n=(0,l.cn)(u,{"bg-gray-100 text-blue-500":r});if(e.onSelect){let{onSelect:a}=e;return(0,t.jsx)("button",{type:"button",onClick:()=>a(s,i),className:(0,l.cn)("cursor-pointer",n),"aria-current":r?"page":void 0,children:i.label})}let{basePath:m,mpa:o}=e,h=i.href??("/"===i.slug?m||"/":`${m}/${i.slug}`);return(0,t.jsx)(c.default,{href:h,mpa:o,className:n,"aria-current":r?"page":void 0,sourceModule:"subnavigation",children:i.label})},o=(0,a.memo)(e=>{let{links:a,activeIndex:c,className:u,constrained:o=!0}=e,h=(0,s.useAtomValue)(i.deviceClassAtom),{ref:d,showLeft:p,showRight:b,scrollLeft:v,scrollRight:f}=(0,n.useHorizontalScroll)({enabled:"mobile"!==h&&"tablet"!==h,scrollAmount:200,contentKey:a});return(0,t.jsxs)("div",{className:(0,l.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]",o&&"md:mr-auto md:max-w-[min(958px,100%)]",u),"data-testid":"subnavigation",children:[(0,t.jsx)("div",{className:(0,l.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)(r.ScrollButton,{hidden:!p,onClick:v,direction:"left"}),(0,t.jsx)("div",{ref:d,className:(0,l.cn)("scrollbar-hide flex h-10 items-center gap-1 overflow-x-auto md:h-12"),children:a.map((a,l)=>e.onSelect?(0,t.jsx)(m,{link:a,index:l,activeIndex:c,onSelect:e.onSelect},`${a.label}_${a.slug}`):(0,t.jsx)(m,{link:a,index:l,activeIndex:c,basePath:e.basePath,mpa:e.mpa},`${a.label}_${a.slug}`))}),(0,t.jsx)("div",{className:(0,l.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":b}),"aria-hidden":"true"}),(0,t.jsx)(r.ScrollButton,{hidden:!b,onClick:f,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,a)=>e.label===t.links[a]?.label&&e.slug===t.links[a]?.slug&&e.href===t.links[a]?.href));o.displayName="SubnavigationUI",e.s(["SubnavigationUI",0,o],457492)},315730,e=>{"use strict";var t=e.i(147732),a=e.i(247865);e.s(["useHorizontalScroll",0,function({enabled:e=!0,scrollAmount:l=200,contentKey:s}={}){let i=(0,a.useRef)(null),r=(0,a.useRef)(null),n=(0,a.useRef)(!1),[c,u]=(0,a.useState)(!1),[m,o]=(0,a.useState)(!1),h=(0,a.useCallback)(()=>{let t=i.current;if(!t||!e){u(!1),o(!1);return}let{scrollLeft:a,scrollWidth:l,clientWidth:s}=t,r=Math.abs(a),c=r>2,m=r+s(0,t.debounce)(h,150),[h]),p=(0,a.useCallback)(()=>{null===r.current&&(r.current=requestAnimationFrame(()=>{h(),r.current=null}))},[h]);(0,a.useEffect)(()=>{let t=i.current;return t&&(n.current="rtl"===getComputedStyle(t).direction),h(),e&&(t?.addEventListener("scroll",p),window.addEventListener("resize",d)),()=>{null!==r.current&&cancelAnimationFrame(r.current),r.current=null,t?.removeEventListener("scroll",p),d.cancel(),window.removeEventListener("resize",d)}},[e,h,p,d,s]);let b=(0,a.useCallback)(()=>i.current?.scrollBy({left:-l,behavior:"smooth"}),[l]),v=(0,a.useCallback)(()=>i.current?.scrollBy({left:l,behavior:"smooth"}),[l]);return{ref:i,showLeft:c,showRight:m,scrollLeft:b,scrollRight:v}}])},905059,e=>{"use strict";let t=(0,e.i(284007).atomWithStorage)("wx-next/user:mapLayerOrder",null,void 0,{getOnInit:!0});e.s(["mapLayerOrderAtom",0,t])},776169,809991,e=>{"use strict";var t=e.i(546446),a=e.i(889753),l=e.i(301904),s=e.i(905059),i=e.i(901351),r=e.i(310847),n=e.i(528600),c=e.i(617874),u=e.i(540768),m=e.i(553329),o=e.i(247865),h=e.i(245943);let d=(0,e.i(695881).createLogger)("useMapSettings");e.s(["WEB_MAP_SETTINGS_PLATFORM",0,"twc","useMapSettings",0,function(e="twc"){let{user:{isUserLoggedIn:a}}=(0,n.useUser)(),l=(0,t.useSetAtom)(s.mapLayerOrderAtom),r=(0,o.useCallback)(async t=>{if(!a)return!1;let{error:l}=await (0,m.tryCatch)(i.upsxClient.preference.updateMapSettings(e,t));if(!l)return!0;if(l instanceof h.APIError&&404===l.code){let{error:a}=await (0,m.tryCatch)(i.upsxClient.preference.createMapSettings(e,t));return!a||(d.warn("Failed to create map settings",a),!1)}return d.warn("Failed to update map settings",l),!1},[a,e]),c=(0,o.useCallback)((e,t)=>{l(e?.layerOrder??t)},[l]),u=(0,o.useCallback)(async t=>{if(!a||0===t.length)return!1;l(t);let{data:s,error:r}=await (0,m.tryCatch)(i.upsxClient.preference.reorderMapSettingsLayers(e,{order:t}));if(!r)return c(s,t),!0;if(r instanceof h.APIError&&404===r.code){let{data:a,error:l}=await (0,m.tryCatch)(i.upsxClient.preference.createMapSettings(e,{layerOrder:t}));if(!l)return c(a,t),!0;if(l instanceof h.APIError&&409===l.code){let{data:a,error:l}=await (0,m.tryCatch)(i.upsxClient.preference.reorderMapSettingsLayers(e,{order:t}));return l?(d.warn("Failed to reorder map layers after create",l),!1):(c(a,t),!0)}return d.warn("Failed to create map settings layer order",l),!1}return d.warn("Failed to reorder map layers",r),!1},[a,e,c,l]),p=(0,o.useCallback)(async(t,s,r)=>{if(!a)return!1;l(r);let{data:n,error:o}=await (0,m.tryCatch)(i.upsxClient.preference.moveMapSettingsLayer(e,t,{placement:s}));return o?o instanceof h.APIError&&(404===o.code||400===o.code)?u(r):(d.warn("Failed to move map layer",o),!1):(c(n,r),!0)},[a,e,c,u,l]);return{saveMapSettings:r,saveLayerOrder:u,moveLayer:p}}],809991),e.s(["usePreferences",0,function(){let{user:{isUserLoggedIn:e}}=(0,n.useUser)(),[o,h]=(0,t.useAtom)(a.userPreferencesAtom),[d,p]=(0,t.useAtom)(r.wxuUserPreferenceAtom),b=(0,t.useSetAtom)(s.mapLayerOrderAtom),v=async()=>{let{data:e,error:t}=await (0,m.tryCatch)(i.upsxClient.preference.getMapSettings("twc"));if(t)return{ok:!1,mapSettings:null,layerOrder:null};if(!e)return{ok:!0,mapSettings:null,layerOrder:null};let{animationSpeed:a,autoplay:l,opacity:s,roadOverlay:r,style:n}=e,c={...void 0!==a&&{animationSpeed:a},...void 0!==l&&{autoplay:l},...void 0!==s&&{opacity:s},...void 0!==r&&{roadOverlay:r},...void 0!==n&&{style:n}};return{ok:!0,mapSettings:Object.keys(c).length>0?c:null,layerOrder:e.layerOrder?.length?e.layerOrder:null}},f=async e=>{try{await i.upsxClient.preference.updatePreference(e)}catch(e){return console.error("Failed to sync preferences with server:",e),null}},g=async(t,a=!0)=>{try{let l,s=(l={...o,...t},h(l),p({...d,...t,locations:l.locations}),l);if(t?.unit){let e=(0,c.unitsSystemByName)(t.unit),a=e?.code||"e";(0,u.setCookie)(c.UNITS_COOKIE_KEY,a,{domain:"weather.com"})}return a&&e&&await f(s),{success:!0}}catch(e){return console.error("Failed to update preferences:",e),{success:!1,error:e instanceof Error?e.message:"Failed to update preferences"}}};return{syncPreferencesFromUpsx:async()=>{try{let[e,t]=await Promise.all([i.upsxClient.preference.getPreference(),v()]);if(!e?.userID)return null;let{mapSettings:a,layerOrder:s,ok:r}=t;r&&b(s);let{mapSettings:n,...c}=e,u={...c,mapSettings:{...l.DEFAULT_MAP_SETTINGS,...a}};return g(u,!1),u}catch{return null}},updatePreferences:g}}],776169)},792461,e=>{"use strict";var t=e.i(247865);e.s(["useRefMemo",0,e=>{let a=(0,t.useRef)(e);return a.current=e,a}])}]);