(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,725837,e=>{"use strict";let t=(0,e.i(981030).atom)("control");e.s(["hourlyPaginationVariantAtom",0,t])},688070,e=>{"use strict";let t=(0,e.i(981030).atom)(!1);e.s(["isWebViewOnlyAtom",0,t])},742436,e=>{"use strict";var t=e.i(546584),r=e.i(699173),i=e.i(592121),o=e.i(185312),n=e.i(333350),s=e.i(310847),a=e.i(546446),l=e.i(737801),u=e.i(688070),c=e.i(158662),d=e.i(528600),m=e.i(530102),p=e.i(553329);let f="production"!==t.default.env.VERCEL_TARGET_ENV,g=new Set,v="client-a74nh7wdmymfO9eOcl5awe1cgB30BDRV",b="production"!==t.default.env.VERCEL_TARGET_ENV,A=(0,i.createContext)(null),w=({children:e,scriptSrc:t,pageScopedExposureFlagKeys:w})=>{let y,h,x=(0,a.useAtomValue)(s.wxuUserAnonymousIdAtom),S=(y=(0,l.useEventAttributes)(),h=(0,a.useAtomValue)(u.isWebViewOnlyAtom),(0,i.useCallback)((e,t={})=>{if(h)return void console.debug("Skipping enrolled-in-experiment in webview mode");if(!window.mParticle?.isInitialized?.())return void console.warn("MParticle is not initialized");if(!e)return void console.warn("No exposure data provided to trackEnrolledInExperiment");if(!e.experiment_key)return void console.debug(`[Experiment] Skipping exposure tracking for ${e.flag_key} - no experiment_key (feature flag only)`);try{let r={...y,newVariant:e.variant||"",newExperiment:e.experiment_key,newExperimentReceivedAt:Date.now()};window.mParticle?.logEvent?.("enrolled-in-experiment",window.mParticle?.EventType?.Other,r,t),console.debug(`MParticle: Event tracked - enrolled-in-experiment for ${e.flag_key||"unknown"}:${e.variant}`)}catch(e){console.error("MParticle: Failed to track event",e)}},[y,h])),k=(0,a.useSetAtom)(c.experimentJoinListAtom),{user:E}=(0,d.useUser)(),[I,C]=(0,i.useState)(!1),[P,_]=(0,i.useState)(!1),O=(0,i.useRef)(void 0),D=(0,i.useRef)(void 0),T=(0,m.getCookie)("ANON_C")?.toString();O.current=E.userID||void 0,D.current=T||x;let M=(0,i.useRef)(new Set),U=(0,i.useMemo)(()=>new Set(w??[]),[w]),N=(0,i.useCallback)(e=>{let t=`${e.flag_key}::${e.variant??""}`;M.current.has(t)||(M.current.add(t),S(e),function({exposure:e,userId:t,deviceId:r}){if(!e.experiment_key){f&&console.debug(`[Experiment] Skipping Amplitude HTTP exposure for ${e.flag_key} — no experiment_key (feature flag only)`);return}if(!t&&!r){f&&console.debug("[Experiment] Skipping Amplitude HTTP exposure — no user identity");return}let i=`${e.flag_key}::${e.variant??""}`;if(g.has(i)){f&&console.debug(`[Experiment] Skipping duplicate Amplitude HTTP exposure: ${i}`);return}g.add(i);let o={api_key:"bb1117981ed2a95dc4fa64b75661d681",events:[{event_type:"$exposure",user_id:t,device_id:r,ip:"$remote",event_properties:{flag_key:e.flag_key,variant:e.variant,experiment_key:e.experiment_key,platform:"web",app_name:"wx-next-web",environment:f?"dev":"prod",experimentation_platform:"amplitude_experiment"}}]};(async()=>{let{data:t,error:r}=await (0,p.tryCatch)(fetch("https://api2.amplitude.com/2/httpapi",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o),keepalive:!0}));return r?console.error("[Experiment] Failed to send exposure to Amplitude HTTP API:",r):t&&!t.ok?console.error(`[Experiment] Amplitude HTTP API returned ${t.status}`):f&&console.debug("[Experiment] Amplitude HTTP exposure sent:",{flag_key:e.flag_key,variant:e.variant})})()}({exposure:e,userId:O.current,deviceId:D.current}))},[S]),[R,V]=(0,i.useState)({});(0,i.useEffect)(()=>{if(n.default){let e=(0,m.getCookie)("amplitude-variants");if(e)try{let t=JSON.parse(e.toString());V(t),b&&Object.keys(t).length>0&&console.debug("[Experiment] Loaded server variants from cookie:",Object.keys(t))}catch(e){console.error("[Experiment] Failed to parse variants cookie:",e)}}},[]),(0,i.useEffect)(()=>{0===Object.keys(R).length?k(null):k(JSON.stringify(Object.entries(R).filter(([,e])=>!!e?.key).map(([e,t])=>{let r=t.key??"",i=Math.floor(Date.now()/1e3);return`${e},${r},${i}`})))},[R,k]);let j=function(e,t,r){let o=(0,i.useRef)(null),[s,a]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{if(!s&&n.default&&v&&t){if(!window.Experiment)return void console.error("Amplitude Experiment SDK not loaded. Script may still be loading.");try{let t=Object.keys(r).length>0;o.current=window.Experiment.initialize(v,{debug:b,fetchTimeoutMillis:5e3,retryFetchOnFailure:!0,fetchOnStart:!1,automaticExposureTracking:!1,exposureTrackingProvider:{track:t=>{try{e(t),b&&console.debug("[Experiment] Exposure tracked:",t)}catch(e){console.error("[Experiment] Failed to track exposure:",e)}}},initialVariants:t?r:void 0,source:t?"initialVariants":"localStorage"}),a(!0),b&&(t?console.debug("[Experiment] SDK initialized with server variants:",Object.keys(r)):console.debug("[Experiment] SDK initialized (will fetch from API)"))}catch(e){console.error("Failed to initialize Amplitude Experiment SDK:",e)}}},[s,t,e,r]),o.current}(N,I,R);(0,i.useEffect)(()=>{(async()=>{if(!j)return;let e=(0,m.getCookie)("ANON_C")?.toString()||x;if(!e&&!E.userID){b&&console.debug("[Experiment] No user identifier available"),_(!0);return}let t={device_id:e,...E.userID?{user_id:E.userID}:{},user_properties:{}};b&&console.debug("[Experiment] Fetching experiments from API for user:",t);try{await j.fetch(t)}catch(e){console.error("[Experiment] Failed to fetch experiments:",e)}finally{_(!0)}})()},[j,x,E.userID]);let L=(0,i.useRef)(!1);return(0,i.useEffect)(()=>{L.current=!1,M.current.clear(),g.clear()},[E.userID]),(0,i.useEffect)(()=>{if(!j||0===Object.keys(R).length||L.current)return;let e=()=>{if(!L.current){for(let e of Object.keys(R))U.has(e)||j.exposure(e);L.current=!0,b&&console.debug("[Experiment] Tracked exposures for server variants:",Object.keys(R))}};window.mParticle?.isInitialized?.()?e():window.mParticle?.ready?.(e)},[j,R,U]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.default,{src:t,strategy:"afterInteractive",onLoad:()=>{C(!0),b&&console.debug("Amplitude Experiment script loaded")},onError:e=>{console.error("Failed to load Amplitude Experiment script:",e)}}),(0,r.jsx)(A.Provider,{value:{client:j,variant:(e,t)=>{if(!j)return t;let r=j.variant(e,t);return b&&console.debug("[Experiment] Current Variant:",r),r},exposure:e=>{j&&j.exposure(e)},fetch:e=>{if(!j)return Promise.resolve();if(!e){let e=(0,m.getCookie)("ANON_C")?.toString()||x;if(e||E.userID){let t={device_id:e,...E.userID?{user_id:E.userID}:{},user_properties:{}};return j.fetch(t)}}return j.fetch(e)},isFetchComplete:P},children:e})]})};e.s(["ExperimentProvider",0,w,"default",0,w,"useExperimentContext",0,()=>{let e=(0,i.useContext)(A);if(!e)throw Error("useExperimentContext must be used within an AmplitudeExperimentProvider");return e}],742436)},49893,e=>{"use strict";let t=(0,e.i(981030).atom)();e.s(["adsKillswitchAtom",0,t])},5397,e=>{"use strict";let t=(0,e.i(981030).atom)();e.s(["showAdminHeaderAtom",0,t])},21121,e=>{"use strict";let t=(0,e.i(981030).atom)(!1);e.s(["showVelvetcakeModuleAtom",0,t])},630986,e=>{"use strict";var t=e.i(546446),r=e.i(604323);e.s(["useCMSAttributes",0,()=>(0,t.useAtomValue)(r.metricsArticleDataAtom)])},37423,e=>{"use strict";let t=(0,e.i(981030).atom)(!1);e.s(["dprSdkIsInitializedAtom",0,t])},436028,e=>{"use strict";e.s(["hasLength",0,e=>Array.isArray(e)&&e.length>0])},609858,674339,e=>{"use strict";var t=e.i(546446),r=e.i(592121);let i=(0,e.i(981030).atom)({timestamp:new Date().toISOString()});e.s(["debugDataAtom",0,i],674339),e.s(["useDebugSystem",0,function(){let[e,o]=(0,t.useAtom)(i),n=(0,r.useCallback)((e,t)=>{o(r=>{let i=r?.[e]||{},o="object"==typeof t&&null!==t&&"object"==typeof i?{...i,...t}:t;return{...r,[e]:o}})},[o]),s=(0,r.useCallback)((e,t)=>{o(r=>{let i=r||{timestamp:new Date().toISOString()},o=i.components||{};if(null===t){let t={...o};return delete t[e],{...i,components:t}}return{...i,components:{...o,[e]:t}}})},[o]),a=(0,r.useCallback)(e=>{n("page",e)},[n]),l=(0,r.useCallback)(e=>{n("route",e)},[n]),u=(0,r.useCallback)(e=>{Object.entries(e).forEach(([e,t])=>{t&&n(e,t)})},[n]);return{debugData:e,updateSection:n,updateComponentData:s,setPageData:a,clearAllDebugData:(0,r.useCallback)(()=>{o({timestamp:new Date().toISOString()})},[o]),updateRouteInfo:l,updatePageDebug:u}}],609858)},752496,e=>{"use strict";var t=e.i(592121),r=e.i(609858);let i=(0,e.i(695881).createLogger)("DebugCollector");e.s(["DebugCollectorClient",0,function({componentName:e,data:o,page:n,onUpdateData:s,onSetPageData:a}){let{updateComponentData:l,setPageData:u}=(0,r.useDebugSystem)(),c=(0,t.useRef)(!1),d=s||l,m=a||u;return(0,t.useEffect)(()=>{if(o)return i.lifecycle(`Collecting component data for ${e}`,{dataKeys:Object.keys(o),hasPerformance:!!o.performance,hasContext:!!o.context}),d(e,{...o,_collectedAt:new Date().toISOString()}),()=>{i.lifecycle(`Cleaning up data for ${e}`),d(e,null)}},[e,o,d]),(0,t.useEffect)(()=>{n&&!c.current&&(i.lifecycle("Setting page metadata",{title:n.title,assetName:n.assetName,collection:n.collection}),m({...n,_updatedAt:new Date().toISOString()}),c.current=!0)},[n,m]),null}])},806262,e=>{"use strict";e.i(592121);var t=e.i(546446);e.i(284007),e.i(981030);let r=new WeakMap;e.s(["useHydrateAtoms",0,function(e,i){var o;let n,s=(0,t.useStore)(i),a=(o=s,(n=r.get(o))||(n=new WeakSet,r.set(o,n)),n);for(let[t,...r]of e)(!a.has(t)||(null==i?void 0:i.dangerouslyForceHydrate))&&(a.add(t),s.set(t,...r))}])},604323,e=>{"use strict";let t=(0,e.i(981030).atom)();e.s(["metricsArticleDataAtom",0,t])},284007,e=>{"use strict";var t=e.i(981030);let r={get url(){return`file://${e.P("node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected][email protected]/node_modules/jotai/esm/vanilla/utils.mjs")}`}},i=Symbol((r.env?r.env.MODE:void 0)!=="production"?"RESET":""),o=e=>"function"==typeof(null==e?void 0:e.then);function n(e=()=>{try{return window.localStorage}catch(e){(r.env?r.env.MODE:void 0)!=="production"&&"u">typeof window&&console.warn(e);return}},t){var i;let s,a,l,u,c={getItem:(r,i)=>{var n,l;let u=e=>{if(s!==(e=e||"")){try{a=JSON.parse(e,null==t?void 0:t.reviver)}catch(e){return i}s=e}return a},c=null!=(l=null==(n=e())?void 0:n.getItem(r))?l:null;return o(c)?c.then(u):u(c)},setItem:(r,i)=>{var o;return null==(o=e())?void 0:o.setItem(r,JSON.stringify(i,null==t?void 0:t.replacer))},removeItem:t=>{var r;return null==(r=e())?void 0:r.removeItem(t)}};try{l=null==(i=e())?void 0:i.subscribe}catch(e){}return!l&&"u">typeof window&&"function"==typeof window.addEventListener&&window.Storage&&(l=(t,r)=>{if(!(e()instanceof window.Storage))return()=>{};let i=i=>{i.storageArea===e()&&i.key===t&&r(i.newValue)};return window.addEventListener("storage",i),()=>{window.removeEventListener("storage",i)}}),l&&(u=l,c.subscribe=(e,t,r)=>u(e,e=>{let i;try{i=JSON.parse(e||"")}catch(e){i=r}t(i)})),c}let s=n(),a=new WeakMap,l={state:"loading"};e.s(["RESET",0,i,"atomWithStorage",0,function(e,n,a=s,l){let u=null==l?void 0:l.getOnInit,c=(0,t.atom)(u?a.getItem(e,n):n);return(r.env?r.env.MODE:void 0)!=="production"&&(c.debugPrivate=!0),c.onMount=t=>{let r;return t(a.getItem(e,n)),a.subscribe&&(r=a.subscribe(e,t,n)),r},(0,t.atom)(e=>e(c),(t,r,s)=>{let l="function"==typeof s?s(t(c)):s;return l===i?(r(c,n),a.removeItem(e)):o(l)?l.then(t=>(r(c,t),a.setItem(e,t))):(r(c,l),a.setItem(e,l))})},"createJSONStorage",0,n,"loadable",0,function(e){let i;return i=()=>{let i=new WeakMap,o=(0,t.atom)([()=>{},0]);o.unstable_onInit=e=>{e.set(o,([,t])=>[()=>e.set(o,([e,t])=>[e,t+1]),t])},(r.env?r.env.MODE:void 0)!=="production"&&(o.debugPrivate=!0);let n=(0,t.atom)(t=>{let r,n,[s]=t(o);try{r=t(e)}catch(e){return{state:"hasError",error:e}}if("function"!=typeof(null==(n=r)?void 0:n.then))return{state:"hasData",data:r};let a=r,u=i.get(a);return u?u:(a.then(e=>{i.set(a,{state:"hasData",data:e}),s()},e=>{i.set(a,{state:"hasError",error:e}),s()}),i.get(a)||(i.set(a,l),l))});return(r.env?r.env.MODE:void 0)!=="production"&&(n.debugPrivate=!0),(0,t.atom)(e=>e(n))},(a.has(e)?a:a.set(e,i())).get(e)}])},537989,e=>{"use strict";let t=(0,e.i(981030).atom)();e.s(["pageIdAtom",0,t])},236593,e=>{"use strict";var t=e.i(284007);let r=(0,t.createJSONStorage)(()=>sessionStorage),i=(0,t.atomWithStorage)("wx-source-module",null,r);e.s(["sourceModuleAtom",0,i])},608201,e=>{"use strict";var t=e.i(284007);let r=(0,t.createJSONStorage)(()=>sessionStorage),i=(0,t.atomWithStorage)("wx-source-page",null,r);e.s(["sourcePageAtom",0,i])},318849,e=>{"use strict";let t=!1,r="upsx-recent-purchase-at";e.s(["SWR_CACHE_LEGACY_STORAGE_KEY",0,"app-cache","SWR_CACHE_STORAGE_KEY",0,"wxu-swr-cache-v1","disableSwrPersist",0,()=>{t=!0},"hasRecentPurchase",0,e=>{try{let t=localStorage.getItem(r);if(!t)return!1;let i=Number(t);if(!Number.isFinite(i))return!1;return Date.now()-it,"markRecentPurchase",0,()=>{try{localStorage.setItem(r,String(Date.now()))}catch{}}])},45846,e=>{"use strict";let t=new(e.i(245943)).UPSXClient({baseUrl:"https://upsx.weather.com"});e.s(["upsxClient",0,t])},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])},185312,(e,t,r)=>{t.exports=e.r(16129)},991511,e=>{"use strict";var t=e.i(592121),r=e.i(806262),i=e.i(546446);e.s(["useRehydrateAtoms",0,e=>{(0,r.useHydrateAtoms)(e);let o=(0,i.useStore)(),n=(0,t.useRef)(e);n.current=e,(0,t.useEffect)(()=>{for(let[e,t]of n.current)o.get(e)!==t&&o.set(e,t)})}])},797770,e=>{"use strict";let t=(0,e.i(981030).atom)("");e.s(["adsMetricsUnitAndZoneAtom",0,t])},382602,e=>{"use strict";var t=e.i(981030),r=e.i(889753);let i=(0,t.atom)(e=>e(r.userProfileAtom)?.email),o=(0,t.atom)(e=>e(r.userProfileAtom)?.firstName),n=(0,t.atom)(e=>e(r.userProfileAtom)?.gender);(0,t.atom)(e=>e(r.userProfileAtom)?.emailVerified),e.s(["userEmailAtom",0,i,"userFirstNameAtom",0,o,"userGenderAtom",0,n])},160317,e=>{"use strict";var t=e.i(543512);e.s(["getSubscriptionTierKey",0,function(e){return t.UserSubscriptionTierKeysMap[e]??t.UserSubscriptionTierKeysMap[t.UserSubscriptionTiers.none]}])},915044,e=>{"use strict";var t=e.i(592121),r=e.i(947118),i=e.i(546446),o=e.i(959194),n=e.i(160317),s=e.i(382602),a=e.i(858040),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:m,subscriptionTier:p}}=(0,c.useUser)(),[f,g]=(0,t.useState)(!1),[v,b]=(0,t.useState)(!1),A=m??!1,w=(0,n.getSubscriptionTierKey)(p),y=(0,i.useAtomValue)(s.userFirstNameAtom),h=(0,i.useAtomValue)(s.userGenderAtom),x=(0,i.useAtomValue)(l.wxuUserAnonymousIdAtom),S=(0,i.useAtomValue)(l.userHasLoggedInBeforeAtom),k=u.default?window?.DprSdk?.getUserConsent("sale-of-data")!==!1:void 0,E=u.default?window?.DprSdk?.getUserConsent("sensitive-data")!==!1:void 0,I=(0,a.getCookie)("subscription")??"",{productID:C=null,expirationDateTime:P=null,transactionDateTime:_=null,firstTransactionDateTime:O=null,autoRenew:D=null,price:T=null,productName:M=null}=(0,o.jwtDecoder)(I)||{},U=(0,t.useMemo)(()=>({premium:A,premiumProductTier:w,premiumExpiration:P,premiumStart:_,premiumFirstTransactionDate:O,premiumProductId:C,premiumProductAutoRenew:D,premiumPrice:T,premiumProductName:M,isRegisteredUser:d||S||!1,isLoggedIn:d,"Amplitude.device_id":x,$Gender:h,$FirstName:y,saleOfDataAuthorization:k,sensitiveDataAuthorization:E,devUser:!1}),[A,w,P,_,O,C,D,T,M,x,d,S,y,h,k,E]);(0,t.useEffect)(()=>{(0,o.areObjectValuesDefined)(U)&&!f&&g(!0)},[U,f]);let N=(0,t.useCallback)(()=>{for(let e in U)void 0===U[e]&&delete U[e];if(e&&f&&!v){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,f,v]);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:N,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])}}])},647872,279791,523579,39822,726513,678480,e=>{"use strict";var t=e.i(981030);(0,t.atom)({});let r=(0,t.atom)(!1);e.s(["showOpenWebCommentsAtom",0,r],279791);let i=(0,t.atom)(!1);e.s(["retroWeatherAtom",0,i],523579);let o=(0,t.atom)("a");e.s(["editorsPickLocationAwareVariantAtom",0,o],39822);let n=(0,t.atom)("control");e.s(["subsOfferCopyVariantAtom",0,n],726513);let s=(0,t.atom)("a");e.s(["subsOfferLayoutVariantAtom",0,s],678480),e.i(725837),e.s([],647872)},647292,e=>{"use strict";let t=(0,e.i(981030).atom)("");e.s(["webViewPlatformAtom",0,t])},145651,579310,249725,e=>{"use strict";var t=e.i(546446),r=e.i(776169),i=e.i(981030),o=e.i(889753);let n=(0,e.i(174960).focusAtom)(o.userPreferencesAtom,e=>e.prop("locations")),s=(0,i.atom)(e=>e(o.userPreferencesAtom)?.locations||[]);(0,i.atom)(e=>{let t=e(s);return t?.find(e=>0===e.position)||t?.[0]||null}),(0,i.atom)(e=>(e(s)?.length||0)>0),e.s(["userLocationsAtom",0,n,"userLocationsGetAtom",0,s],579310);var a=e.i(310847),l=e.i(592121);let u=Object.freeze([]),c=Object.freeze([]);e.s(["default",0,()=>{let{updatePreferences:e}=(0,r.usePreferences)(),i=(0,t.useAtomValue)(n),o=(0,l.useMemo)(()=>i?[...i].sort((e,t)=>e.position-t.position):u,[i]),[s,d]=(0,t.useAtom)(a.wxuUserRecentLocationsAtom),[,m]=(0,t.useAtom)(a.wxuUserRecentAddressesAtom),p=(0,l.useCallback)(t=>{let r={...t,position:Math.max(...o.map(e=>e.position),0)+1};e({locations:[...o,r]})},[o,e]),f=(0,l.useCallback)(t=>{e({locations:o.filter(e=>e.placeID!==t)})},[o,e]),g=(0,l.useCallback)(e=>{d(t=>[e,...(t||[]).filter(t=>t!==e)].slice(0,5))},[d]),v=(0,l.useCallback)(e=>{d(t=>(t||[]).filter(t=>t!==e))},[d]),b=(0,l.useCallback)(()=>{d([])},[d]),A=(0,l.useCallback)(e=>{m(t=>(t||[]).filter(t=>t.placeId!==e))},[m]),w=(0,l.useCallback)(e=>{f(e),v(e),A(e)},[f,v,A]);return{addFavoriteLocation:p,removeFavoriteLocation:f,addRecentLocation:g,removeRecentLocation:v,removeRecentAddress:A,clearRecentLocations:b,deleteLocation:w,recentLocations:s||c,favoriteLocations:o}}],145651);var d=e.i(726249);let m=Object.freeze({});function p(){let e=(0,t.useSetAtom)(a.wxuUserLocationFeatureIdsAtom);return(0,l.useCallback)((t,r)=>{let i=[];t.placeId&&i.push(t.placeId),t.geocode&&!r?.startsWith("address.")&&i.push((0,d.formatGeocode)(t.geocode)),0!==i.length&&e(e=>{let t=e??{};if(!i.some(e=>!(e in t)||t[e]!==r))return t;let o={...t};for(let e of i)o[e]=r;return o})},[e])}e.s(["useLocationFeatureIds",0,function(){let e=(0,t.useAtomValue)(a.wxuUserLocationFeatureIdsAtom)??m,r=(0,l.useCallback)(t=>{if(t.placeId){let r=e[t.placeId];if(r)return r}if(t.geocode){let r=e[(0,d.formatGeocode)(t.geocode)];if(r)return r}},[e]),i=(0,l.useCallback)(t=>t in e,[e]);return{featureIds:e,resolveFeatureId:r,hasResolvedPlaceId:i,recordFeatureId:p()}},"useRecordFeatureId",0,p],249725)},800462,e=>{"use strict";let t=(0,e.i(284007).atomWithStorage)("wx-from-search-result",null);e.s(["fromSearchResultAtom",0,t])}]);