(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,209203,e=>{"use strict";var t=e.i(902875),r=e.i(546446);e.s(["JotaiProvider",0,function({children:e}){return(0,t.jsx)(r.Provider,{children:e})}])},198050,e=>{"use strict";var t=e.i(902875),r=e.i(247865),i=e.i(533760),n=e.i(405341),a=e.i(829065);e.s(["CJUniversalTagScript",0,()=>{let[e,s]=(0,r.useState)(null);return((0,r.useEffect)(()=>{let e=(0,n.getCjConfig)();e&&(0,a.isCjEligible)()&&s(e)},[]),e)?(0,t.jsx)(i.default,{id:"cj-site-page",strategy:"afterInteractive",children:`(function (w, d, src, enterpriseId) { w.cj = w.cj || {}; w.cj.sitePage = { enterpriseId: enterpriseId }; if (d.getElementById('cjapitag')) return; var tag = d.createElement('script'); var first = d.getElementsByTagName('script')[0]; tag.id = 'cjapitag'; tag.async = true; tag.src = src; if (first && first.parentNode) first.parentNode.insertBefore(tag, first); else d.body.appendChild(tag); })(window, document, ${JSON.stringify(e.tagSrc)}, ${JSON.stringify(e.enterpriseId)});`}):null}])},405341,829065,e=>{"use strict";e.s(["CJ_ACTION_ID_DIRECT_PURCHASE",0,521782,"CJ_ACTION_ID_TRIAL_SIGNUP",0,519532,"getCjConfig",0,()=>{let e=Number("1601099".trim()),t="1377327807670".trim();return Number.isInteger(e)&&!(et.US_REGIMES.includes((0,t.getRegime)())],829065)},560542,e=>{"use strict";var t=e.i(247865),r=e.i(293163),i=e.i(695881),n=e.i(553329),a=e.i(405341),s=e.i(829065);let o=(0,i.createLogger)("CommissionJunction");e.s(["useCjConversionTag",0,({shouldFire:e,orderId:i,amount:l,hasTrial:u})=>{let c=(0,t.useRef)(!1);(0,t.useEffect)(()=>{if(!e||c.current||!i)return;let t=(0,a.getCjConfig)();t&&(0,s.isCjEligible)()&&(c.current=!0,(0,n.tryCatch)((async()=>{var e;let n,s,o;return e={orderId:i,amount:l,actionTrackerId:u?a.CJ_ACTION_ID_TRIAL_SIGNUP:a.CJ_ACTION_ID_DIRECT_PURCHASE,cjEventId:(0,r.getCjEvent)()},(n=window).cj=n.cj||{},n.cj.order={enterpriseId:t.enterpriseId,actionTrackerId:e.actionTrackerId,orderId:e.orderId,pageType:"conversionConfirmation",currency:"USD",amount:e.amount,...e.cjEventId?{cjeventOrder:e.cjEventId}:{}},document.getElementById("cjapitag")?.remove(),(s=document.createElement("script")).id="cjapitag",s.async=!0,s.src=t.tagSrc,o=document.getElementsByTagName("script")[0],void(o?.parentNode?o.parentNode.insertBefore(s,o):document.body.appendChild(s))})()).then(({error:e})=>{e&&o.error("conversion tag failed",{orderId:i,error:e})}))},[e,i,l,u])}],560542)},965269,e=>{"use strict";let t=(0,e.i(389379).default)(()=>e.A(902656),{loadableGenerated:{modules:[621735]}});e.s(["default",0,t])},902656,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2t5xmo2txzt6d.js","static/immutable/chunks/12fubf_fp2_cz.js","static/immutable/chunks/2yezy77cz4tok.js"].map(t=>e.l(t))).then(()=>t(621735)))},783893,e=>{"use strict";let t=(0,e.i(389379).default)(()=>e.A(20709),{loadableGenerated:{modules:[677677]}});e.s(["default",0,t])},20709,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3v5xkh1luiwdh.js","static/immutable/chunks/2yezy77cz4tok.js","static/immutable/chunks/34jco_-sjauqp.js","static/immutable/chunks/1k3pu4r_ox_im.js","static/immutable/chunks/23j5cby1qynqi.js","static/immutable/chunks/0sl0l24hmb52a.js","static/immutable/chunks/2pgdik_6f042t.js","static/immutable/chunks/1wyc72xt3zo8r.js","static/immutable/chunks/3suuof4cdpk8d.js","static/immutable/chunks/3u8esmljzn8e2.js","static/immutable/chunks/2ovv_s7gnhlj8.css"].map(t=>e.l(t))).then(()=>t(677677)))},566389,e=>{"use strict";let t=(0,e.i(389379).default)(()=>e.A(600803),{loadableGenerated:{modules:[572304]}});e.s(["default",0,t])},600803,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3mfo2o0k04eyl.js","static/immutable/chunks/0puf992-7hjdm.js","static/immutable/chunks/2ip2set2jdcfr.js","static/immutable/chunks/0x5304dbp95z0.js","static/immutable/chunks/23j5cby1qynqi.js"].map(t=>e.l(t))).then(()=>t(572304)))},846954,e=>{"use strict";var t=e.i(725287),r=e.i(797770),i=e.i(695203),n=e.i(604323),a=e.i(513539),s=e.i(236433),o=e.i(537989),l=e.i(950771),u=e.i(942400);let c=/Mobi|SM-[NGAF]/,d=/iPad|Tablet|SM-[TPX]/,m=/TV/;var f=e.i(991511);let p="notFound";e.s(["NOT_FOUND_PAGE_ID",0,p,"NotFoundAnalyticsHydration",0,({locale:e})=>{var g;let h=(0,t.usePathname)(),b=(0,u.usePageLocale)(),v="u"{"use strict";let t=(0,e.i(389379).default)(()=>e.A(461068),{loadableGenerated:{modules:[902011]}});e.s(["default",0,t])},461068,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2qcbawuotei3c.js","static/immutable/chunks/2yezy77cz4tok.js"].map(t=>e.l(t))).then(()=>t(902011)))},993635,e=>{"use strict";let t=(0,e.i(389379).default)(()=>e.A(997332),{loadableGenerated:{modules:[685840]}});e.s(["default",0,t])},997332,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2ymn5y00dfxmu.js","static/immutable/chunks/111ompg7aihmv.js","static/immutable/chunks/23j5cby1qynqi.js"].map(t=>e.l(t))).then(()=>t(685840)))},275270,e=>{"use strict";let t=(0,e.i(389379).default)(()=>e.A(467242).then(e=>e.SidebarNavigation),{loadableGenerated:{modules:[952249]}});e.s(["SidebarNavigation",0,t])},467242,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1jkpdxzridrul.js","static/immutable/chunks/10u6g7x_gm98t.js","static/immutable/chunks/41-vlc5mu-95h.js"].map(t=>e.l(t))).then(()=>t(952249)))},302027,e=>{"use strict";e.s(["EMBED_CHECKOUT_MESSAGE",0,"wx-checkout-complete","EMBED_RELOAD_FALLBACK_MS",0,3e3])},274568,e=>{"use strict";let t=(0,e.i(389379).default)(()=>e.A(839642),{loadableGenerated:{modules:[971571]}});e.s(["default",0,t])},839642,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1xem3a-6srzlw.js","static/immutable/chunks/2yezy77cz4tok.js"].map(t=>e.l(t))).then(()=>t(971571)))},281468,e=>{"use strict";var t=e.i(288906),r=e.i(247865),i=e.i(725287);function n(){return false}function a(e){return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}function s(e){(0,r.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]);let i=(0,r.useRef)(null);return(0,r.useEffect)(()=>{if(i.current)e.route&&i.current(e.route);else{let r=function(e={}){var t;if(!("u">typeof window)||null===e.route)return null;window.si||(window.si=function(...e){(window.siq=window.siq||[]).push(e)});let r=e.scriptSrc?e.scriptSrc:n()?"https://va.vercel-scripts.com/v1/speed-insights/script.debug.js":e.dsn?"https://va.vercel-scripts.com/v1/speed-insights/script.js":e.basePath?`${e.basePath}/speed-insights/script.js`:"/_vercel/speed-insights/script.js";if(document.head.querySelector(`script[src*="${r}"]`))return null;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend));let i=document.createElement("script");return i.src=r,i.defer=!0,i.dataset.sdkn="@vercel/speed-insights"+(e.framework?`/${e.framework}`:""),i.dataset.sdkv="1.3.1",e.sampleRate&&(i.dataset.sampleRate=e.sampleRate.toString()),e.route&&(i.dataset.route=e.route),e.endpoint?i.dataset.endpoint=e.endpoint:e.basePath&&(i.dataset.endpoint=`${e.basePath}/speed-insights/vitals`),e.dsn&&(i.dataset.dsn=e.dsn),n()&&!1===e.debug&&(i.dataset.debug="false"),i.onerror=()=>{console.log(`[Vercel Speed Insights] Failed to load script from ${r}. Please check if any content blockers are enabled and try again.`)},document.head.appendChild(i),{setRoute:e=>{i.dataset.route=e??void 0}}}({framework:e.framework??"react",basePath:e.basePath??function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...e});r&&(i.current=r.setRoute)}},[e.route]),null}function o(e){let n=(()=>{let e=(0,i.useParams)(),t=(0,i.useSearchParams)()||new URLSearchParams,r=(0,i.usePathname)();if(!e)return null;let n=Object.keys(e).length?e:Object.fromEntries(t.entries());if(!r||!n)return r;let s=r;try{let e=Object.entries(n);for(let[t,r]of e)if(!Array.isArray(r)){let e=a(r);e.test(s)&&(s=s.replace(e,`/[${t}]`))}for(let[t,r]of e)if(Array.isArray(r)){let e=a(r.join("/"));e.test(s)&&(s=s.replace(e,`/[...${t}]`))}return s}catch(e){return r}})();return r.default.createElement(s,{route:n,...e,framework:"next",basePath:function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}()})}e.s(["SpeedInsights",0,function(e){return r.default.createElement(r.Suspense,{fallback:null},r.default.createElement(o,{...e}))}])},175897,e=>{"use strict";var t,r=e.i(288906),i={scriptHostname:("u">typeof r.default?r.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_HOST:void 0)??"https://vercel.live",ownerId:"u">typeof r.default?r.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_OWNER_ID:void 0,projectId:"u">typeof r.default?r.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_PROJECT_ID:void 0,branch:"u">typeof r.default?r.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_BRANCH:void 0,deploymentId:"u">typeof r.default?"dpl_7e4WzbkVZDKncqmnhezhU2V1CnUa":void 0},n=e.i(247865),a=!1;e.s(["UnmountController",0,function({shouldMount:e,nonce:r}){return(0,n.useEffect)(()=>(e&&a&&function(e={}){if(typeof window>"u"||null===document.querySelector("vercel-live-feedback")){Object.assign(i,e);let r=document.createElement("script");for(let[n,a]of(r.src=`${i.scriptHostname}/_next-live/feedback/feedback.js`,r.setAttribute("data-explicit-opt-in","true"),e.nonce&&r.setAttribute("nonce",e.nonce),Object.entries((i.ownerId&&i.projectId?{"data-owner-id":i.ownerId,"data-project-id":i.projectId,"data-branch":t??i.branch}:i.deploymentId?{"data-deployment-id":i.deploymentId}:void 0)??{})))a&&r.setAttribute(n,a);(document.head||document.documentElement).appendChild(r)}}({nonce:r}),a=!0,()=>{(typeof window>"u"?void 0:window.__vercel_toolbar)?.unmount()}),[]),null}],175897)},232598,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i={callServer:function(){return a.callServer},createServerReference:function(){return o.createServerReference},findSourceMapURL:function(){return s.findSourceMapURL}};for(var n in i)Object.defineProperty(r,n,{enumerable:!0,get:i[n]});let a=e.r(276247),s=e.r(788443),o=e.r(955011)},800462,50727,e=>{"use strict";var t=e.i(284007);let r=(0,t.atomWithStorage)("wx-from-search-result",null);e.s(["fromSearchResultAtom",0,r],800462);let i=(0,t.atomWithStorage)("wx-ht-from-search-result",null);e.s(["fromSearchResultAtom",0,i],50727)},915044,382602,e=>{"use strict";var t=e.i(247865),r=e.i(947118),i=e.i(546446),n=e.i(293163),a=e.i(160317),s=e.i(981030),o=e.i(889753);let l=(0,s.atom)(e=>e(o.userProfileAtom)?.email),u=(0,s.atom)(e=>e(o.userProfileAtom)?.firstName),c=(0,s.atom)(e=>e(o.userProfileAtom)?.gender);(0,s.atom)(e=>e(o.userProfileAtom)?.emailVerified),e.s(["userEmailAtom",0,l,"userFirstNameAtom",0,u,"userGenderAtom",0,c],382602);var d=e.i(540768),m=e.i(310847),f=e.i(333350),p=e.i(528600);e.s(["useUserAttributes",0,()=>{let e=(0,r.useIsInitialized)(),{user:{isUserLoggedIn:s,isUserPremium:o,subscriptionTier:l}}=(0,p.useUser)(),[g,h]=(0,t.useState)(!1),[b,v]=(0,t.useState)(!1),w=o??!1,A=(0,a.getSubscriptionTierKey)(l),E=(0,i.useAtomValue)(u),C=(0,i.useAtomValue)(c),y=(0,i.useAtomValue)(m.wxuUserAnonymousIdAtom),S=(0,i.useAtomValue)(m.userHasLoggedInBeforeAtom),_=f.default?window?.DprSdk?.getUserConsent("sale-of-data")!==!1:void 0,I=f.default?window?.DprSdk?.getUserConsent("sensitive-data")!==!1:void 0,k=(0,d.getCookie)("subscription")??"",{productID:R=null,expirationDateTime:P=null,transactionDateTime:j=null,firstTransactionDateTime:T=null,autoRenew:L=null,price:O=null,productName:N=null}=(0,n.jwtDecoder)(k)||{},U=(0,t.useMemo)(()=>({premium:w,premiumProductTier:A,premiumExpiration:P,premiumStart:j,premiumFirstTransactionDate:T,premiumProductId:R,premiumProductAutoRenew:L,premiumPrice:O,premiumProductName:N,isRegisteredUser:s||S||!1,isLoggedIn:s,"Amplitude.device_id":y,$Gender:C,$FirstName:E,saleOfDataAuthorization:_,sensitiveDataAuthorization:I,devUser:!1}),[w,A,P,j,T,R,L,O,N,y,s,S,E,C,_,I]);(0,t.useEffect)(()=>{let{$FirstName:e,$Gender:t,...r}=U;(0,n.areObjectValuesDefined)(r)&&!g&&h(!0)},[U,g]);let D=(0,t.useCallback)(()=>{for(let e in U)void 0===U[e]&&delete U[e];if(e&&g&&!b){let e=window.mParticle?.Identity?.getCurrentUser?.();if(!e)return void console.warn("MParticle: No current user");e.setUserAttributes(U),v(!0),console.debug("MParticle: User attributes set - ",U)}},[e,U,g,b]);return{userAttributes:U,setUserAttribute:(0,t.useCallback)((t,r)=>{if(!e)return void console.warn("MParticle is not initialized");let i=window.mParticle?.Identity?.getCurrentUser?.();i?(i.setUserAttribute(t,r),console.debug(`MParticle: User attribute set - ${t}`)):console.warn("MParticle: No current user")},[e]),setUserAttributes:D,removeUserAttribute:(0,t.useCallback)(t=>{if(!e)return void console.warn("MParticle is not initialized");let r=window.mParticle?.Identity?.getCurrentUser?.();r?(r.removeUserAttribute(t),console.debug(`MParticle: User attribute removed - ${t}`)):console.warn("MParticle: No current user")},[e])}}],915044)},520362,e=>{"use strict";var t=e.i(902875),r=e.i(247865);let i=e=>{let{apiRoute:t,depth:i,refresh:n,serverURL:a}=e,s=(0,r.useRef)(!1),o=(0,r.useCallback)(e=>{e.origin===a&&e.data&&"object"==typeof e.data&&"payload-document-event"===e.data.type&&("function"==typeof n?n():console.error("You must provide a refresh function to `RefreshRouteOnSave`"))},[n,a]);return(0,r.useEffect)(()=>("u">typeof window&&window.addEventListener("message",o),s.current||(s.current=!0,(e=>{let{serverURL:t}=e;if("u">typeof window){let e=window?.opener||window?.parent;e?.postMessage({type:"payload-live-preview",ready:!0},t)}})({serverURL:a}),n()),()=>{"u">typeof window&&window.removeEventListener("message",o)}),[a,o,i,t,n]),null};var n=e.i(725287);let a=(0,e.i(695881).createLogger)("BlockHighlightOverlay"),s={position:"absolute",pointerEvents:"none",border:"2px solid #5B9BD5",backgroundColor:"rgba(91, 155, 213, 0.04)",borderRadius:"8px",boxShadow:"0 0 8px rgba(91, 155, 213, 0.3)",zIndex:"9999",transition:"opacity 150ms ease"},o=e=>{let r=(0,n.useRouter)();return(0,t.jsx)(i,{...e,refresh:r.refresh})};e.s(["LivePreviewListener",0,o],346267),e.i(346267),e.s(["BlockHighlightOverlay",0,()=>{let e=(0,r.useRef)(null),t=(0,r.useRef)(null),i=(0,r.useRef)(null),n=(0,r.useRef)(null),o=(0,r.useRef)(null),l=(0,r.useCallback)(()=>{if("u"{let r=t.current,n=e.current;if(!r||!n)return;if(!r.isConnected){t.current=null,n.style.opacity="0",i.current?.disconnect();return}let a=r.getBoundingClientRect();n.style.top=`${a.top+window.scrollY}px`,n.style.left=`${a.left+window.scrollX}px`,n.style.width=`${a.width}px`,n.style.height=`${a.height}px`,n.style.opacity="1"},[]),c=(0,r.useCallback)(()=>{t.current=null,o.current=null,e.current&&(e.current.style.opacity="0"),i.current?.disconnect()},[]),d=(0,r.useCallback)(()=>{t.current&&null===n.current&&(n.current=requestAnimationFrame(()=>{n.current=null,u()}))},[u]),m=(0,r.useCallback)(e=>{if(e===o.current)return;let r=document.querySelector(`[data-block-id="${CSS.escape(e)}"]`);if(!r)return void a.debug("No element found for block ID",{blockId:e});let n=(e=>{let t=e,r=t.getBoundingClientRect();for(let e=0;e{let t=e=>{var t;(e=>{if(e===window.location.origin)return!0;try{let{hostname:t}=new URL(e);return"weather.com"===t||t.endsWith(".weather.com")}catch{return!1}})(e.origin)&&"object"==typeof(t=e.data)&&null!==t&&"type"in t&&("wx:block-highlight-clear"===t.type||"wx:block-highlight"===t.type&&"blockId"in t&&"string"==typeof t.blockId)&&("wx:block-highlight"===e.data.type?m(e.data.blockId):c())};return window.addEventListener("message",t),window.addEventListener("scroll",d,{passive:!0}),window.addEventListener("resize",d,{passive:!0}),()=>{window.removeEventListener("message",t),window.removeEventListener("scroll",d),window.removeEventListener("resize",d),null!==n.current&&cancelAnimationFrame(n.current),i.current?.disconnect(),e.current?.remove()}},[m,c,d]),null},"LivePreviewListener",0,o],520362)},186044,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2eyqm1viprogh.js"].map(t=>e.l(t))).then(()=>t(451309)))},313983,e=>{"use strict";var t,r=((t={}).ESSENTIAL_TECHNOLOGY="essential-technology",t.FUNCTIONAL_TECHNOLOGY="functional-technology",t.GEOGRAPHICALLY_RELEVANT_ADVERTISING="geographically-relevant-advertising",t.INTERNATIONAL_TRANSFER="international-transfer",t.SALE_OF_DATA="sale-of-data",t.SENSITIVE_DATA="sensitive-data",t.SELECT_PERSONALISED_CONTENT="Select personalised content",t.SELECT_PERSONALISED_ADS="Select personalised ads",t.SELECT_BASIC_ADS="Select basic ads",t.CREATE_A_PERSONALISED_ADS_PROFILE="Create a personalised ads profile",t.CREATE_A_PERSONALISED_CONTENT_PROFILE="Create a personalised content profile",t.MEASURE_AD_PERFORMANCE="Measure ad performance",t.APPLY_MARKET_RESEARCH_TO_GENERATE_AUDIENCE_INSIGHTS="Apply market research to generate audience insights",t.DEVELOP_AND_IMPROVE_PRODUCTS="Develop and improve products",t.STORE_AND_OR_ACCESS_INFORMATION_ON_A_DEVICE="Store and/or access information on a device",t.MEASURE_CONTENT_PERFORMANCE="Measure content performance",t);e.s(["Purpose",()=>r])},731672,e=>{"use strict";var t=e.i(546446),r=e.i(965586),i=e.i(671525),n=e.i(889753),a=e.i(810564),s=e.i(553329),o=e.i(45846),l=e.i(284007),u=e.i(756227),c=e.i(358273),d=e.i(247865),m=e.i(540768),f=e.i(682142),p=e.i(782937),g=e.i(695881),h=e.i(333350),b=e.i(64412),v=e.i(950771),w=e.i(537989),A=e.i(695203),E=e.i(158662),C=e.i(777638),y=e.i(924776),S=e.i(409628),_=e.i(605781);let I=(0,g.createLogger)("useUserLoggedOut");var k=e.i(658547),R=e.i(472925),P=e.i(529603),j=e.i(160317),T=e.i(543512);let L={isLoggedIn:!1,upsxId:"",registeredEmail:void 0,premium:!1,premiumProductTier:(0,j.getSubscriptionTierKey)(T.UserSubscriptionTiers.none),$FirstName:"",$Gender:"",emailSubscriptions:"[]",premiumProductId:null,premiumExpiration:null,premiumStart:null,premiumFirstTransactionDate:null,premiumProductAutoRenew:null,premiumPrice:null,premiumProductName:null,premiumProductTerm:null};e.s(["useUserLogout",0,function({reload:e=!0,clearOnError:g=!1}={}){let j=(0,t.useSetAtom)(n.userPreferencesAtom),T=(0,u.useResetAuthState)(),{refresh:O}=(0,i.usePageNavigation)(),N=((e={})=>{let r=(0,t.useAtomValue)(w.pageIdAtom),i=(0,t.useAtomValue)(v.pageLocaleAtom),n=(0,t.useAtomValue)(A.deviceClassAtom),a=(0,t.useAtomValue)(E.experimentJoinListAtom),{location:s}=(0,b.useLocation)(),o=(0,y.useIsHightouchReady)(),{url:l,logoutMethod:u}=e;return(0,d.useCallback)(()=>{if(!h.default||!o)return;let e=(0,f.getCICookie)(),t=e?.["TWC-GeoIP-Country"]??(0,m.getCookie)("twc-location-country"),d=e?.["TWC-GeoIP-Region"]??(0,m.getCookie)("twc-location-region"),g=e?.["TWC-Privacy"]??(0,m.getCookie)("twc-privacy"),b=window.DprSdk?.getGdprConsentOptInsString()??"",v=window.DprSdk?.getCcpaSaleOptInString()??"",w=window.navigator?.globalPrivacyControl??!1,A=b?.includes("functional-technology")??!1,E=window.DprSdk?.getUserConsent("geographically-relevant-advertising")!==!1,y=navigator?.cookieEnabled??!1,k=(0,m.getCookie)("partner")||"",R=(0,p.getPartnerByPattern)(k)??k,P=(0,c.getMetricsSession)(),j=P?.sessionId||"",T=P?.sessionStartTime||0,L=new Date,O=L.getHours(),N=S.WEEK_DAYS[L.getDay()]??"",U=-L.getTimezoneOffset()/60,D=document.referrer,x={url:l??window.location.pathname,logoutMethod:u??"manual",referrer:D,privProducts:v,deviceTimeZone:U,pageId:r??"",locale:i,deviceClass:n,sessionId:j,sessionStartTime:T,partner:R,wlocCity:s?.city??null,wlocCountry:s?.countryCode??null,wlocState:s?.adminDistrictCode??null,wlocDMA:s?.dmaCd??null,dayOfWeek:N,regime:g??"",cookiesEnabled:y,gpcSignalOptOut:w,functionalTechnologies:A,geographicallyRelevantAds:E,priv:b,hourOfDay:O,physicalCountry:t??"",physicalState:d??"",campaign:(0,C.getCampaign)()??void 0,tpcc:(0,C.getTpcc)(),linkReferral:(0,C.getLinkReferral)(),experimentJoinList:a,weatherMode:"normal",samsungVersion:(0,C.getSamsungVersion)(),appVersion:"a4d101b136e8782701254dc7081d2f3659e224d8".slice(0,10)};try{let e=(0,_.trackUserLoggedout)(x);return I.info('Hightouch: Event "user-loggedout" tracked'),e}catch(e){I.error('Hightouch: Event "user-loggedout" failed',{error:e})}},[l,u,r,i,n,a,s,o])})(),{logout:U}=(0,k.useUserIdentity)();return async()=>{let{error:t}=await (0,s.tryCatch)(o.upsxClient.auth.logout());return t?(console.error("Failed to log out:",t),g&&(T(),j(l.RESET),(0,r.deleteCookie)("twc-user",{domain:(0,a.upsxCookieDomain)(window.location.hostname)})),!1):(await (0,R.settleWithin)(()=>N(),1e3),T(),await (0,s.tryCatch)(U()),(0,P.setSignInTraits)(L),(0,c.regenerateMetricsSession)(),j(l.RESET),(0,r.deleteCookie)("twc-user",{domain:(0,a.upsxCookieDomain)(window.location.hostname)}),e&&O({mpa:!0}),!0)}}],731672)},249725,e=>{"use strict";var t=e.i(546446),r=e.i(247865),i=e.i(726249),n=e.i(310847);let a=Object.freeze({});function s(){let e=(0,t.useSetAtom)(n.wxuUserLocationFeatureIdsAtom);return(0,r.useCallback)((t,r)=>{let n=[];t.placeId&&n.push(t.placeId),t.geocode&&!r?.startsWith("address.")&&n.push((0,i.formatGeocode)(t.geocode)),0!==n.length&&e(e=>{let t=e??{};if(!n.some(e=>!(e in t)||t[e]!==r))return t;let i={...t};for(let e of n)i[e]=r;return i})},[e])}e.s(["useLocationFeatureIds",0,function(){let e=(0,t.useAtomValue)(n.wxuUserLocationFeatureIdsAtom)??a,o=(0,r.useCallback)(t=>{if(t.placeId){let r=e[t.placeId];if(r)return r}if(t.geocode){let r=e[(0,i.formatGeocode)(t.geocode)];if(r)return r}},[e]),l=(0,r.useCallback)(t=>t in e,[e]);return{featureIds:e,resolveFeatureId:o,hasResolvedPlaceId:l,recordFeatureId:s()}},"useRecordFeatureId",0,s])},145651,e=>{"use strict";var t=e.i(546446),r=e.i(776169),i=e.i(579310),n=e.i(310847),a=e.i(247865);let s=Object.freeze([]),o=Object.freeze([]);e.s(["default",0,()=>{let{updatePreferences:e}=(0,r.usePreferences)(),l=(0,t.useAtomValue)(i.userLocationsAtom),u=(0,a.useMemo)(()=>l?[...l].sort((e,t)=>e.position-t.position):s,[l]),[c,d]=(0,t.useAtom)(n.wxuUserRecentLocationsAtom),[,m]=(0,t.useAtom)(n.wxuUserRecentAddressesAtom),f=(0,a.useCallback)(t=>{let r={...t,position:Math.max(...u.map(e=>e.position),0)+1};e({locations:[...u,r]})},[u,e]),p=(0,a.useCallback)(t=>{e({locations:u.filter(e=>e.placeID!==t)})},[u,e]),g=(0,a.useCallback)(e=>{d(t=>[e,...(t||[]).filter(t=>t!==e)].slice(0,5))},[d]),h=(0,a.useCallback)(e=>{d(t=>(t||[]).filter(t=>t!==e))},[d]),b=(0,a.useCallback)(()=>{d([])},[d]),v=(0,a.useCallback)(e=>{m(t=>(t||[]).filter(t=>t.placeId!==e))},[m]),w=(0,a.useCallback)(e=>{p(e),h(e),v(e)},[p,h,v]);return{addFavoriteLocation:f,removeFavoriteLocation:p,addRecentLocation:g,removeRecentLocation:h,removeRecentAddress:v,clearRecentLocations:b,deleteLocation:w,recentLocations:c||o,favoriteLocations:u}}])},472925,e=>{"use strict";var t=e.i(553329);let r=async(e,r)=>{let i;await (0,t.tryCatch)(Promise.race([Promise.resolve().then(e),new Promise(e=>{i=setTimeout(e,r)})])),clearTimeout(i)};e.s(["settleWithin",0,r])}]);