(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,965269,e=>{"use strict";let t=(0,e.i(389379).default)(()=>e.A(902656),{loadableGenerated:{modules:[621735]}});e.s(["default",0,t])},783893,e=>{"use strict";let t=(0,e.i(389379).default)(()=>e.A(20709),{loadableGenerated:{modules:[677677]}});e.s(["default",0,t])},566389,e=>{"use strict";let t=(0,e.i(389379).default)(()=>e.A(600803),{loadableGenerated:{modules:[572304]}});e.s(["default",0,t])},80923,e=>{"use strict";var t=e.i(950771),r=e.i(991511);let n=({locale:e})=>((0,r.useRehydrateAtoms)([[t.pageLocaleAtom,e]]),null);e.s(["NotFoundLocaleHydration",0,n,"default",0,n])},178664,e=>{"use strict";let t=(0,e.i(389379).default)(()=>e.A(461068),{loadableGenerated:{modules:[902011]}});e.s(["default",0,t])},993635,e=>{"use strict";let t=(0,e.i(389379).default)(()=>e.A(997332),{loadableGenerated:{modules:[685840]}});e.s(["default",0,t])},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])},274568,e=>{"use strict";let t=(0,e.i(389379).default)(()=>e.A(839642),{loadableGenerated:{modules:[971571]}});e.s(["default",0,t])},185945,e=>{"use strict";var t=e.i(288906),r=e.i(247865),n=e.i(725287);function s(){return false}function i(e){return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}function a(e){(0,r.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]);let n=(0,r.useRef)(null);return(0,r.useEffect)(()=>{if(n.current)e.route&&n.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:s()?"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 n=document.createElement("script");return n.src=r,n.defer=!0,n.dataset.sdkn="@vercel/speed-insights"+(e.framework?`/${e.framework}`:""),n.dataset.sdkv="1.3.1",e.sampleRate&&(n.dataset.sampleRate=e.sampleRate.toString()),e.route&&(n.dataset.route=e.route),e.endpoint?n.dataset.endpoint=e.endpoint:e.basePath&&(n.dataset.endpoint=`${e.basePath}/speed-insights/vitals`),e.dsn&&(n.dataset.dsn=e.dsn),s()&&!1===e.debug&&(n.dataset.debug="false"),n.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(n),{setRoute:e=>{n.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&&(n.current=r.setRoute)}},[e.route]),null}function o(e){let s=(()=>{let e=(0,n.useParams)(),t=(0,n.useSearchParams)()||new URLSearchParams,r=(0,n.usePathname)();if(!e)return null;let s=Object.keys(e).length?e:Object.fromEntries(t.entries());if(!r||!s)return r;let a=r;try{let e=Object.entries(s);for(let[t,r]of e)if(!Array.isArray(r)){let e=i(r);e.test(a)&&(a=a.replace(e,`/[${t}]`))}for(let[t,r]of e)if(Array.isArray(r)){let e=i(r.join("/"));e.test(a)&&(a=a.replace(e,`/[...${t}]`))}return a}catch(e){return r}})();return r.default.createElement(a,{route:s,...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}))}])},538946,e=>{"use strict";var t,r=e.i(288906),n={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_38jX7DKBZe3E84MYvyAK45ZS6yNv":void 0},s=e.i(247865),i=!1;e.s(["UnmountController",0,function({shouldMount:e,nonce:r}){return(0,s.useEffect)(()=>(e&&i&&function(e={}){if(typeof window>"u"||null===document.querySelector("vercel-live-feedback")){Object.assign(n,e);let r=document.createElement("script");for(let[s,i]of(r.src=`${n.scriptHostname}/_next-live/feedback/feedback.js`,r.setAttribute("data-explicit-opt-in","true"),e.nonce&&r.setAttribute("nonce",e.nonce),Object.entries((n.ownerId&&n.projectId?{"data-owner-id":n.ownerId,"data-project-id":n.projectId,"data-branch":t??n.branch}:n.deploymentId?{"data-deployment-id":n.deploymentId}:void 0)??{})))i&&r.setAttribute(s,i);(document.head||document.documentElement).appendChild(r)}}({nonce:r}),i=!0,()=>{(typeof window>"u"?void 0:window.__vercel_toolbar)?.unmount()}),[]),null}],538946)},147732,e=>{"use strict";e.s(["debounce",0,function(e,t,{signal:r,edges:n}={}){let s,i=null,a=null!=n&&n.includes("leading"),o=null==n||n.includes("trailing"),l=()=>{null!==i&&(e.apply(s,i),s=void 0,i=null)},u=null,c=()=>{null!=u&&clearTimeout(u),u=setTimeout(()=>{u=null,o&&l(),d()},t)},d=()=>{null!==u&&(clearTimeout(u),u=null),s=void 0,i=null},f=function(...e){if(r?.aborted)return;s=this,i=e;let t=null==u;c(),a&&t&&l()};return f.schedule=c,f.cancel=d,f.flush=()=>{l()},r?.addEventListener("abort",d,{once:!0}),f}])},232598,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={callServer:function(){return i.callServer},createServerReference:function(){return o.createServerReference},findSourceMapURL:function(){return a.findSourceMapURL}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let i=e.r(276247),a=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 n=(0,t.atomWithStorage)("wx-ht-from-search-result",null);e.s(["fromSearchResultAtom",0,n],50727)},128541,e=>{"use strict";var t=e.i(284007);let r=(0,t.createJSONStorage)(()=>sessionStorage),n=(0,t.atomWithStorage)("wx-purchase-source-attribution",null,r);e.s(["purchaseSourceAttributionAtom",0,n])},647292,e=>{"use strict";let t=(0,e.i(981030).atom)("");e.s(["webViewPlatformAtom",0,t])},915044,e=>{"use strict";e.i(288906);var t=e.i(247865),r=e.i(947118),n=e.i(546446),s=e.i(959194),i=e.i(160317),a=e.i(382602),o=e.i(540768),l=e.i(310847),u=e.i(333350),c=e.i(528600);e.s(["useUserAttributes",0,()=>{let e=(0,r.useIsInitialized)(),{user:{isUserLoggedIn:d,isUserPremium:f,subscriptionTier:p}}=(0,c.useUser)(),[m,A]=(0,t.useState)(!1),[g,b]=(0,t.useState)(!1),v=f??!1,w=(0,i.getSubscriptionTierKey)(p),h=(0,n.useAtomValue)(a.userFirstNameAtom),E=(0,n.useAtomValue)(a.userGenderAtom),S=(0,n.useAtomValue)(l.wxuUserAnonymousIdAtom),y=(0,n.useAtomValue)(l.userHasLoggedInBeforeAtom),C=u.default?window?.DprSdk?.getUserConsent("sale-of-data")!==!1:void 0,_=u.default?window?.DprSdk?.getUserConsent("sensitive-data")!==!1:void 0,R=(0,o.getCookie)("subscription")??"",{productID:I=null,expirationDateTime:P=null,transactionDateTime:T=null,firstTransactionDateTime:L=null,autoRenew:k=null,price:O=null,productName:N=null}=(0,s.jwtDecoder)(R)||{},U=(0,t.useMemo)(()=>({premium:v,premiumProductTier:w,premiumExpiration:P,premiumStart:T,premiumFirstTransactionDate:L,premiumProductId:I,premiumProductAutoRenew:k,premiumPrice:O,premiumProductName:N,isRegisteredUser:d||y||!1,isLoggedIn:d,"Amplitude.device_id":S,$Gender:E,$FirstName:h,saleOfDataAuthorization:C,sensitiveDataAuthorization:_,devUser:!1}),[v,w,P,T,L,I,k,O,N,S,d,y,h,E,C,_]);(0,t.useEffect)(()=>{(0,s.areObjectValuesDefined)(U)&&!m&&A(!0)},[U,m]);let x=(0,t.useCallback)(()=>{for(let e in U)void 0===U[e]&&delete U[e];if(e&&m&&!g){let e=window.mParticle?.Identity?.getCurrentUser?.();if(!e)return void console.warn("MParticle: No current user");e.setUserAttributes(U),b(!0),console.debug("MParticle: User attributes set - ",U)}},[e,U,m,g]);return{userAttributes:U,setUserAttribute:(0,t.useCallback)((t,r)=>{if(!e)return void console.warn("MParticle is not initialized");let n=window.mParticle?.Identity?.getCurrentUser?.();n?(n.setUserAttribute(t,r),console.debug(`MParticle: User attribute set - ${t}`)):console.warn("MParticle: No current user")},[e]),setUserAttributes:x,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])}}])},491240,e=>{"use strict";let t=(0,e.i(695881).createLogger)("MParticleIdentity");e.s(["truncateIdentityValue",0,e=>"string"==typeof e&&e.length>256?(t.warn(`identity value exceeded 256 chars (${e.length}); truncating`),e.slice(0,256)):e])},456215,e=>{"use strict";e.s(["isSnowCastWebView",0,function(e){return"snowcast"===e||e.startsWith("snowcast-")},"isWebViewIos",0,function(e){return"ios"===e||e.endsWith("-ios")}])},520362,e=>{"use strict";var t=e.i(902875),r=e.i(247865);let n=e=>{let{apiRoute:t,depth:n,refresh:s,serverURL:i}=e,a=(0,r.useRef)(!1),o=(0,r.useCallback)(e=>{e.origin===i&&e.data&&"object"==typeof e.data&&"payload-document-event"===e.data.type&&("function"==typeof s?s():console.error("You must provide a refresh function to `RefreshRouteOnSave`"))},[s,i]);return(0,r.useEffect)(()=>("u">typeof window&&window.addEventListener("message",o),a.current||(a.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:i}),s()),()=>{"u">typeof window&&window.removeEventListener("message",o)}),[i,o,n,t,s]),null};var s=e.i(725287);let i=(0,e.i(695881).createLogger)("BlockHighlightOverlay"),a={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,s.useRouter)();return(0,t.jsx)(n,{...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),n=(0,r.useRef)(null),s=(0,r.useRef)(null),o=(0,r.useRef)(null),l=(0,r.useCallback)(()=>{if("u"{let r=t.current,s=e.current;if(!r||!s)return;if(!r.isConnected){t.current=null,s.style.opacity="0",n.current?.disconnect();return}let i=r.getBoundingClientRect();s.style.top=`${i.top+window.scrollY}px`,s.style.left=`${i.left+window.scrollX}px`,s.style.width=`${i.width}px`,s.style.height=`${i.height}px`,s.style.opacity="1"},[]),c=(0,r.useCallback)(()=>{t.current=null,o.current=null,e.current&&(e.current.style.opacity="0"),n.current?.disconnect()},[]),d=(0,r.useCallback)(()=>{t.current&&null===s.current&&(s.current=requestAnimationFrame(()=>{s.current=null,u()}))},[u]),f=(0,r.useCallback)(e=>{if(e===o.current)return;let r=document.querySelector(`[data-block-id="${CSS.escape(e)}"]`);if(!r)return void i.debug("No element found for block ID",{blockId:e});let s=(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?f(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!==s.current&&cancelAnimationFrame(s.current),n.current?.disconnect(),e.current?.remove()}},[f,c,d]),null},"LivePreviewListener",0,o],520362)},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])},725296,e=>{"use strict";var t,r=e.i(965586),n=((t={}).CA="ca",t.CA_QC="ca-qc",t.EXEMPT="exempt",t.GDPR="gdpr",t.JP="jp",t.KR="kr",t.LATAM_CO="latam-co",t.LATAM_DO="latam-do",t.LATAM_PE="latam-pe",t.LGPD="lgpd",t.PIPL="pipl",t.TR_KVKK="tr-kvkk",t.USA="usa",t.USA_CCPA="usa-ccpa",t.USA_CO="usa-co",t.USA_CT="usa-ct",t.USA_VA="usa-va",t);Object.values(n);let s={"usa-ut":"usa"},i=e=>e?s[e]??e:void 0;e.s(["RESTRICTIVE_REGIMES",0,["ca-qc","gdpr","latam-co","latam-do","latam-pe","lgpd","pipl","tr-kvkk"],"Regime",()=>n,"US_REGIMES",0,["usa","usa-ccpa","usa-co","usa-ct","usa-va"],"default",0,n,"getRegime",0,()=>(()=>{let e=(0,r.getCookie)("ci")?.toString();if(e)for(let t of e.split("&")){let e=t.indexOf("=");if(e>-1&&"TWC-Privacy"===t.slice(0,e))return i(t.slice(e+1))}})()??i((0,r.getCookie)("twc-privacy")?.toString())??"exempt"])},7150,e=>{"use strict";let t=(0,e.i(981030).atom)(!1);e.s(["pushlyPromptSuppressedAtom",0,t])},45846,e=>{"use strict";e.i(288906);let t=new(e.i(245943)).UPSXClient({baseUrl:"https://upsx.weather.com"});e.s(["upsxClient",0,t])},378869,e=>{"use strict";let t=(0,e.i(284007).atomWithStorage)("wxu-web/keyval:emailSubscriptions",null,void 0,{getOnInit:!0});e.s(["emailPreferencesAtom",0,t])},382602,e=>{"use strict";var t=e.i(981030),r=e.i(889753);let n=(0,t.atom)(e=>e(r.userProfileAtom)?.email),s=(0,t.atom)(e=>e(r.userProfileAtom)?.firstName),i=(0,t.atom)(e=>e(r.userProfileAtom)?.gender);(0,t.atom)(e=>e(r.userProfileAtom)?.emailVerified),e.s(["userEmailAtom",0,n,"userFirstNameAtom",0,s,"userGenderAtom",0,i])},249725,e=>{"use strict";var t=e.i(546446),r=e.i(247865),n=e.i(726249),s=e.i(310847);let i=Object.freeze({});function a(){let e=(0,t.useSetAtom)(s.wxuUserLocationFeatureIdsAtom);return(0,r.useCallback)((t,r)=>{let s=[];t.placeId&&s.push(t.placeId),t.geocode&&!r?.startsWith("address.")&&s.push((0,n.formatGeocode)(t.geocode)),0!==s.length&&e(e=>{let t=e??{};if(!s.some(e=>!(e in t)||t[e]!==r))return t;let n={...t};for(let e of s)n[e]=r;return n})},[e])}e.s(["useLocationFeatureIds",0,function(){let e=(0,t.useAtomValue)(s.wxuUserLocationFeatureIdsAtom)??i,o=(0,r.useCallback)(t=>{if(t.placeId){let r=e[t.placeId];if(r)return r}if(t.geocode){let r=e[(0,n.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:a()}},"useRecordFeatureId",0,a])},776169,809991,e=>{"use strict";var t=e.i(546446),r=e.i(889753),n=e.i(301904),s=e.i(901351),i=e.i(310847),a=e.i(528600),o=e.i(617874),l=e.i(540768),u=e.i(553329),c=e.i(247865),d=e.i(245943);let f=(0,e.i(695881).createLogger)("useMapSettings");e.s(["WEB_MAP_SETTINGS_PLATFORM",0,"twc","useMapSettings",0,function(e="twc"){let{user:{isUserLoggedIn:t}}=(0,a.useUser)();return{saveMapSettings:(0,c.useCallback)(async r=>{if(!t)return!1;let{error:n}=await (0,u.tryCatch)(s.upsxClient.preference.updateMapSettings(e,r));if(!n)return!0;if(n instanceof d.APIError&&404===n.code){let{error:t}=await (0,u.tryCatch)(s.upsxClient.preference.createMapSettings(e,r));return!t||(f.warn("Failed to create map settings",t),!1)}return f.warn("Failed to update map settings",n),!1},[t,e])}}],809991),e.s(["usePreferences",0,function(){let{user:{isUserLoggedIn:e}}=(0,a.useUser)(),[c,d]=(0,t.useAtom)(r.userPreferencesAtom),[f,p]=(0,t.useAtom)(i.wxuUserPreferenceAtom),m=async()=>{let{data:e,error:t}=await (0,u.tryCatch)(s.upsxClient.preference.getMapSettings("twc"));if(t||!e)return null;let{animationSpeed:r,autoplay:n,opacity:i,roadOverlay:a,style:o}=e,l={...void 0!==r&&{animationSpeed:r},...void 0!==n&&{autoplay:n},...void 0!==i&&{opacity:i},...void 0!==a&&{roadOverlay:a},...void 0!==o&&{style:o}};return Object.keys(l).length>0?l:null},A=async e=>{try{await s.upsxClient.preference.updatePreference(e)}catch(e){return console.error("Failed to sync preferences with server:",e),null}},g=async(t,r=!0)=>{try{let n,s=(n={...c,...t},d(n),p({...f,...t,locations:n.locations}),n);if(t?.unit){let e=(0,o.unitsSystemByName)(t.unit),r=e?.code||"e";(0,l.setCookie)(o.UNITS_COOKIE_KEY,r,{domain:"weather.com"})}return r&&e&&await A(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([s.upsxClient.preference.getPreference(),m()]);if(!e?.userID)return null;let{mapSettings:r,...i}=e,a={...i,mapSettings:{...n.DEFAULT_MAP_SETTINGS,...t}};return g(a,!1),a}catch{return null}},updatePreferences:g}}],776169)},145651,579310,e=>{"use strict";var t=e.i(546446),r=e.i(776169),n=e.i(981030),s=e.i(889753);let i=(0,e.i(174960).focusAtom)(s.userPreferencesAtom,e=>e.prop("locations")),a=(0,n.atom)(e=>e(s.userPreferencesAtom)?.locations||[]);(0,n.atom)(e=>{let t=e(a);return t?.find(e=>0===e.position)||t?.[0]||null}),(0,n.atom)(e=>(e(a)?.length||0)>0),e.s(["userLocationsAtom",0,i,"userLocationsGetAtom",0,a],579310);var o=e.i(310847),l=e.i(247865);let u=Object.freeze([]),c=Object.freeze([]);e.s(["default",0,()=>{let{updatePreferences:e}=(0,r.usePreferences)(),n=(0,t.useAtomValue)(i),s=(0,l.useMemo)(()=>n?[...n].sort((e,t)=>e.position-t.position):u,[n]),[a,d]=(0,t.useAtom)(o.wxuUserRecentLocationsAtom),[,f]=(0,t.useAtom)(o.wxuUserRecentAddressesAtom),p=(0,l.useCallback)(t=>{let r={...t,position:Math.max(...s.map(e=>e.position),0)+1};e({locations:[...s,r]})},[s,e]),m=(0,l.useCallback)(t=>{e({locations:s.filter(e=>e.placeID!==t)})},[s,e]),A=(0,l.useCallback)(e=>{d(t=>[e,...(t||[]).filter(t=>t!==e)].slice(0,5))},[d]),g=(0,l.useCallback)(e=>{d(t=>(t||[]).filter(t=>t!==e))},[d]),b=(0,l.useCallback)(()=>{d([])},[d]),v=(0,l.useCallback)(e=>{f(t=>(t||[]).filter(t=>t.placeId!==e))},[f]),w=(0,l.useCallback)(e=>{m(e),g(e),v(e)},[m,g,v]);return{addFavoriteLocation:p,removeFavoriteLocation:m,addRecentLocation:A,removeRecentLocation:g,removeRecentAddress:v,clearRecentLocations:b,deleteLocation:w,recentLocations:a||c,favoriteLocations:s}}],145651)},160317,e=>{"use strict";var t=e.i(543512);e.s(["getSubscriptionTierKey",0,function(e){return t.UserSubscriptionTierKeysMap[e]??t.UserSubscriptionTierKeysMap[t.UserSubscriptionTiers.none]}])},892504,e=>{"use strict";let t="upsx-purchase-checked-at";e.s(["clearPurchaseChecked",0,()=>{try{localStorage.removeItem(t)}catch{}},"markPurchaseChecked",0,()=>{try{localStorage.setItem(t,String(Date.now()))}catch{}},"purchaseCheckedRecently",0,()=>{try{let e=localStorage.getItem(t);if(!e)return!1;let r=Number(e);if(!Number.isFinite(r))return!1;return Date.now()-r{"use strict";e.s(["hasLength",0,e=>Array.isArray(e)&&e.length>0])}]);