(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,295553,e=>{"use strict";let t=(0,e.i(981030).atom)();e.s(["pageLocationDataAtom",0,t])},439766,e=>{"use strict";var t=e.i(981030),o=e.i(284007);let r=(0,t.atom)(void 0),i=(0,o.atomWithStorage)("wxu-web/keyval:activeLocation",null,void 0,{getOnInit:!0}),a=(0,t.atom)(e=>{var t;let o=e(i);return(t=e(r)??Date.now(),o&&Number.isFinite(o.expiresAt)&&!(o.expiresAt{var a;null===o?t(i,null):t(i,(a=e(r)??Date.now(),{placeId:o.placeId,geocode:o.geocode,...o.featureId?{featureId:o.featureId}:{},expiresAt:a+216e5}))});e.s(["activeLocationAtom",0,a])},726249,(e,t,o)=>{"use strict";function r(e){if(!e||!e.includes(","))return e;let t=e.split(",");if(2!==t.length)return e;let o=parseFloat(t[0]||""),r=parseFloat(t[1]||"");return Number.isNaN(o)||Number.isNaN(r)?e:`${o.toFixed(2)},${r.toFixed(2)}`}Object.defineProperty(o,"__esModule",{value:!0}),o.formatGeocode=r,o.pointKey=function(e,t){let o="geocode"===e.kind?r(e.value):e.value;return["location-point",e.kind,o,t]},o.locationDedupKey=function(e){return e.featureId?`f:${e.featureId}`:e.placeId?`p:${e.placeId}`:e.geocode?`g:${r(e.geocode)}`:""}},527091,e=>{"use strict";e.s(["sanitizeIanaTimeZone",0,function(e){if(!e)return"";try{return new Intl.DateTimeFormat("en-US",{timeZone:e}),e}catch{return""}}])},325974,942400,e=>{"use strict";var t=e.i(592121),o=e.i(381477),r=e.i(726249),i=e.i(527091),a=e.i(961123),n=e.i(546446),s=e.i(950771);let c=()=>{let e=(0,a.useParams)(),t=(0,n.useAtomValue)(s.pageLocaleAtom);return e?.locale||t||"en-US"};e.s(["usePageLocale",0,c],942400),e.s(["useResolveCanonical",0,function(e,a){let n=c(),s=e?.featureId,l=e?.placeId,u=e?.geocode,d=a?.sourceGeocode,m=s?.startsWith("address.")?void 0:s,{data:g,error:p,isLoading:f,isValidating:v}=(0,o.default)(m||l||u?["canonical",m??"",l??"",u??"",n]:null,async()=>{let e=m?`featureId=${encodeURIComponent(m)}`:l?`placeId=${encodeURIComponent(l)}`:`geocode=${encodeURIComponent(u??"")}`,t=await fetch(`/api/location/canonical?${e}&language=${encodeURIComponent(n)}`);if(!t.ok)throw Error(`canonical location lookup failed: ${t.status}`);return t.json()},{revalidateOnFocus:!1,dedupingInterval:3e5}),h=n.split("-")[1]??"US";return(0,t.useMemo)(()=>{if(!g)return{location:void 0,isLoading:f,isValidating:v,error:p};let e=function(e,t){let[o,r]=e.locationPoint?.coordinates??[],a=null!=r&&null!=o?`${r},${o}`:"";return{displayName:e.displayName,adminDistrict:e.adminDistrict||"",geocode:a,placeId:e.placeId||"",featureId:e.featureId,canonicalID:e.canonicalID,city:e.city,countryCode:e.countryCode,adminDistrictCode:e.adminDistrictCode||"",presentationName:function(e,t,o="US"){let{country:r,countryCode:i}=t;if(!e||!r||o!==i)return e;let a=`, ${r}`;return e.endsWith(a)?e.slice(0,-a.length):e}(e.presentationName??"",e,t),name:e.displayName||void 0,context:"",ianaTimeZone:(0,i.sanitizeIanaTimeZone)(e.ianaTimeZone),postalCode:e.postalCode??void 0,type:e.locationType,featureSource:e.featureSource,tags:e.tags?.internal,dmaCd:e.dmaCd||"",address:e.address,isDisputedLocation:e.isDisputedLocation??!1}}(g,h);return{location:d?{...e,geocode:(0,r.formatGeocode)(d)}:e,isLoading:f,isValidating:v,error:p}},[g,f,v,p,h,d])}],325974)},767685,e=>{"use strict";e.s(["honorRecentLocationName",0,(e,t)=>{if(!t||!e.placeId&&!e.featureId||"address"!==e.type)return e;let o=(e.placeId?t[e.placeId]:void 0)??Object.values(t).find(t=>t.featureId===e.featureId);return o?.name?{...e,displayName:o.name,name:o.name,presentationName:o.presentationName||e.presentationName,address:o.address||e.address}:e}])},150137,e=>{"use strict";var t=e.i(981030),o=e.i(695881),r=e.i(333350);let i=(0,o.createLogger)("geolocationApi"),a=(0,t.atom)(async()=>{if(r.default&&navigator.permissions)try{return(await navigator.permissions.query({name:"geolocation"})).state}catch(e){i.error(e)}}),n=(0,t.atom)(void 0);e.s(["geolocationAPIPermissionStateAsyncAtom",0,a,"preciseGeocodeAtom",0,n])},485737,e=>{"use strict";var t=e.i(981030),o=e.i(530102),r=e.i(682142),i=e.i(726249);let a=(0,r.getCICookie)(),n=a?.["TWC-GeoIP-Lat"],s=a?.["TWC-GeoIP-Long"],c=n&&s?(0,i.formatGeocode)(`${n},${s}`):(0,o.getCookie)("twc-location-geocode")?.toString()||null,l=(0,t.atom)(c),u=a?.["TWC-GeoIP-Country"]??(0,o.getCookie)("twc-location-country")?.toString()??null,d=(0,t.atom)(u),m=a?.["TWC-GeoIP-Region"]??(0,o.getCookie)("twc-location-region")?.toString()??null,g=(0,t.atom)(m),p=a?.["TWC-GeoIP-City"]??(0,o.getCookie)("twc-location-city")?.toString()??null,f=(0,t.atom)(p);e.s(["geoipCity",0,f,"geoipCountry",0,d,"geoipGeocode",0,l,"geoipRegion",0,g])},304158,e=>{"use strict";e.i(485737),e.s([])},692099,78321,790050,72053,e=>{"use strict";var t=e.i(592121),o=e.i(546446),r=e.i(295553);e.s(["usePageLocation",0,function(){let e=(0,o.useAtomValue)(r.pageLocationDataAtom);return(0,t.useMemo)(()=>({location:e??void 0,isLoading:!1}),[e])}],692099);var i=e.i(310847),a=e.i(439766),n=e.i(325974),s=e.i(767685);e.s(["useActiveLocation",0,function(){let e=(0,o.useAtomValue)(a.activeLocationAtom),r=(0,o.useAtomValue)(i.wxuUserRecentLocationsDataAtom),c=(0,n.useResolveCanonical)(e?{featureId:e.featureId,placeId:e.placeId,geocode:e.geocode}:null);return(0,t.useMemo)(()=>c.location?{...c,location:(0,s.honorRecentLocationName)(c.location,r)}:c,[c,r])}],78321);var c=e.i(150137);e.s(["useHtml5Location",0,function(){let e=(0,o.useAtomValue)(c.preciseGeocodeAtom);return(0,n.useResolveCanonical)(e?{geocode:e}:null,{sourceGeocode:e??void 0})}],790050),e.i(304158);var l=e.i(485737);e.s(["useGeoipLocation",0,function(){let e=(0,o.useAtomValue)(l.geoipGeocode);return(0,n.useResolveCanonical)(e?{geocode:e}:null,{sourceGeocode:e??void 0})}],72053)},88349,788414,e=>{"use strict";var t=e.i(695881);let o="wxu-web/key-val:html5Geolocation";e.s(["GEOLOCATION_CACHE_KEY",0,o,"GEOLOCATION_CACHE_TTL_MS",0,36e5,"isGeolocationPermissionDenied",0,function(){let e=function(){try{if("u"navigator.geolocation.getCurrentPosition(e=>{let{latitude:o,longitude:r}=e.coords;!function({latitude:e,longitude:t}){sessionStorage.setItem("wxu-web/key-val:html5Geolocation",JSON.stringify({latitude:e,longitude:t,permissionDenied:!1,timestamp:Date.now()}))}({latitude:o,longitude:r}),t({latitude:o,longitude:r})},e=>{e.code===e.PERMISSION_DENIED&&sessionStorage.setItem(o,JSON.stringify({permissionDenied:!0,timestamp:Date.now()})),r(e)},{enableHighAccuracy:!0,timeout:e,maximumAge:0}))}catch(e){r.error("getGeolocationAPIGeocode error: ",e)}}e.s(["getGeolocationAPIGeocode",0,i],88349)},380241,e=>{"use strict";var t=e.i(699173),o=e.i(592121),r=e.i(692099),i=e.i(78321),a=e.i(790050),n=e.i(72053),s=e.i(546446),c=e.i(284007),l=e.i(726249),u=e.i(88349),d=e.i(150137);let m=(0,c.loadable)(d.geolocationAPIPermissionStateAsyncAtom),g=(0,o.createContext)(null);e.s(["LocationSourcesProvider",0,({children:e})=>{let c,p,f,v,h=(0,r.usePageLocation)(),S=(0,i.useActiveLocation)(),A=(0,a.useHtml5Location)(),I=(0,n.useGeoipLocation)();c=(0,s.useAtomValue)(m),p=(0,s.useAtomValue)(d.preciseGeocodeAtom),f=(0,s.useSetAtom)(d.preciseGeocodeAtom),v="hasData"===c.state&&"granted"===c.data,(0,o.useEffect)(()=>{if(!v||p)return;let e=!1;return(0,u.getGeolocationAPIGeocode)().then(t=>{!e&&t?.latitude&&t?.longitude&&f((0,l.formatGeocode)(`${t.latitude},${t.longitude}`))}).catch(()=>{}),()=>{e=!0}},[v,p,f]);let C=(0,o.useMemo)(()=>({page:h,active:S,html5:A,geoip:I}),[h,S,A,I]);return(0,t.jsx)(g.Provider,{value:C,children:e})},"useSourceResults",0,function(){let e=(0,o.useContext)(g);if(!e)throw Error("useSourceResults must be used within a ");return e}],380241)},64412,e=>{"use strict";var t=e.i(592121),o=e.i(380241),r=e.i(325974);let i=["page","active","html5","geoip"];e.s(["useLocation",0,function(e="default",a=""){var n;let s=(0,o.useSourceResults)(),c=(n="specified"===e?a:null,(0,r.useResolveCanonical)(n?{geocode:n}:null,{sourceGeocode:n??void 0})),l=(0,t.useMemo)(()=>(function(e){switch(e){case"geolocation":return["html5","geoip"];case"specified":return["specified"];default:return i}})(e),[e]),u=(0,t.useMemo)(()=>({...s,specified:c}),[s,c]),d=(0,t.useMemo)(()=>(function(e,t){let o;for(let r of e){let e=t[r];if(e){if(e.error){o=e.error;continue}if(e.location||e.isLoading)return e}}return{location:void 0,isLoading:!1,error:o}})(l,u),[l,u]);return{location:d.location,isLoading:!d.location&&d.isLoading,isValidating:!!d.location&&!!d.isValidating,error:d.error}}],64412)},521350,e=>{"use strict";var t=e.i(333350);e.s(["areCookiesEnabled",0,function(){if(t.default){document.cookie="cookietest=1; max-age=1";let e=document?.cookie?.indexOf?.("cookietest=")!==-1;return document.cookie="cookietest=1; max-age=0",e}return!1},"isLocalStorageAvailable",0,function(){if(t.default)try{return localStorage.setItem("__storage_test__","__storage_test__"),localStorage.removeItem("__storage_test__"),!0}catch(e){if(e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&localStorage&&0!==localStorage.length)return!0}return!1}])},961123,(e,t,o)=>{t.exports=e.r(874357)},950771,e=>{"use strict";let t=(0,e.i(981030).atom)("en-US");e.s(["pageLocaleAtom",0,t])},609717,e=>{"use strict";e.i(950771),e.s([])},695203,e=>{"use strict";let t=(0,e.i(981030).atom)("");e.s(["deviceClassAtom",0,t])},358273,e=>{"use strict";var t=e.i(858040),o=e.i(521350),r=e.i(990033);let i="wxu-metrics-session",a="new-metrics-session",n="metric-session-last-active-time",s=()=>{let e=(0,t.getCookie)(i);if(!e)return null;let[o="",r="",a=""]=e.split(":"),n=parseInt(r,10);return{sessionId:o,sessionStartTime:n,pageCount:parseInt(a,10)}},c=e=>{let o=new Date().getTime(),a=e&&!u();d(o);let n=a?e:{},s=n.sessionId||(0,r.v4)(),c=n.sessionStartTime||o,l=n.pageCount||0,m=`${s}:${c}:${l}`;(0,t.setCookie)(i,decodeURIComponent(m),{domain:".weather.com",path:"/",maxAge:1800,secure:!0})},l=()=>{(0,o.isLocalStorageAvailable)()&&localStorage.setItem(a,"true")},u=(e=30)=>{try{let t=new Date().getTime(),o=m(),r=new Date(o).getTime(),i=new Date(t).getTime();if(Number.isNaN(r)||Number.isNaN(i))return console.error("Invalid timestamp"),!1;return Math.abs(r-i)>60*e*1e3}catch(e){return console.error("Error in isDifferenceMoreThanMinutes",e instanceof Error?e.message:String(e)),!1}},d=e=>{(0,o.isLocalStorageAvailable)()&&localStorage.setItem(n,e.toString())},m=()=>{if(!(0,o.isLocalStorageAvailable)())return"";let e=localStorage.getItem(n);return e?parseInt(e):""};e.s(["checkSessionTimestampExpired",0,u,"deleteIsNewMestricsSession",0,()=>{(0,o.isLocalStorageAvailable)()&&localStorage.removeItem(a)},"getMetricsSession",0,s,"incrementMetricsSessionCount",0,()=>{let e=s();e&&c({...e,pageCount:e?.pageCount+1})},"isNewMetricsSession",0,()=>{if((0,o.isLocalStorageAvailable)())return localStorage.getItem(a)},"regenerateMetricsSession",0,()=>{l(),c(null)},"setIsNewMestricsSession",0,l,"setMetricsSession",0,c])},737801,158662,673915,e=>{"use strict";e.i(546584);var t=e.i(546446),o=e.i(358273),r=e.i(521350),i=e.i(959194),a=e.i(537989),n=e.i(592121);e.i(609717);var s=e.i(950771),c=e.i(695203),l=e.i(981030);let u=(0,l.atom)(null);e.s(["experimentJoinListAtom",0,u],158662);let d=(0,l.atom)("");e.s(["fromStringAtom",0,d],673915);var m=e.i(333350),g=e.i(858040),p=e.i(682142),f=e.i(961123),v=e.i(64412);let h={postcode:"postal",city:"city",locality:"locality",neighborhood:"neighborhood",airport:"airport",poi:"poi",ski:"ski"};var S=e.i(896363);e.s(["useEventAttributes",0,()=>{var e;let l=(0,i.getCampaign)(),A=(0,i.getTpcc)(),I=(0,i.getPartner)(),C=(0,r.areCookiesEnabled)(),w=(0,p.getCICookie)(),y=w?.["TWC-GeoIP-Country"]??(0,g.getCookie)("twc-location-country"),P=w?.["TWC-GeoIP-Region"]??(0,g.getCookie)("twc-location-region"),_=(0,o.getMetricsSession)(),E=_?.pageCount?_?.pageCount+1:1,T=_?.sessionId||"",k=_?.sessionStartTime||0,L=(0,t.useAtomValue)(u),b=(0,t.useAtomValue)(d),R=(0,t.useAtomValue)(a.pageIdAtom)||"",D=(0,t.useAtomValue)(s.pageLocaleAtom),N=(0,t.useAtomValue)(c.deviceClassAtom),O=(0,f.usePathname)(),G=["article","video"].includes(R)?(0,i.stripLastPartOfSlug)(O):(0,i.getAnonymizedPath)(O),M=(0,i.getLinkReferral)(),U="u">typeof document?document.referrer:null,{location:x}=(0,v.useLocation)(),$=x?.city??null,V=x?.countryCode??null,j=x?.adminDistrictCode??null,F=x?.dmaCd??null,W=x?.placeId??null,K=x?.featureId??null,H=(e=x?.type)?h[e]??null:null,z=x?.featureSource??null,B=x?.tags?.length?(0,S.parseArrayToString)(x.tags):null,q=new Date,J=q.getHours(),Z=q.getDay(),Y=i.WEEK_DAYS[Z]||null,Q=w?.["TWC-Privacy"]??(0,g.getCookie)("twc-privacy"),X=m.default?window.DprSdk?.getCcpaSaleOptInString()??"":"",ee=m.default?window.DprSdk?.getGdprConsentOptInsString()??"":"",et=!!m.default&&(window.navigator?.globalPrivacyControl??!1),eo=ee?.includes("functional-technology")??!1,er=ee?.includes("geographically-relevant-advertising")??!1;return(0,n.useMemo)(()=>({campaign:l,tpcc:A,cookiesEnabled:C,physicalCountry:y??"",physicalState:P??"",pageId:R,partner:I,locale:D,deviceClass:N,url:G,linkReferral:M,referrer:U,pageCount:E,sessionId:T,sessionStartTime:k,schemaVersion:"nextgen",hourOfDay:J,dayOfWeek:Y,wlocCity:$,wlocCountry:V,wlocState:j,wlocDMA:F,wlocId:W,wlocFeatureId:K,wlocType:H,wlocFeatureSource:z,wlocTags:B,privProducts:X,priv:ee,gpcSignalOptOut:et,functionalTechnologies:eo,geographicallyRelevantAds:er,regime:Q??"",appVersion:"3b231dbc430288b236b4a9018075757f3190f4c5".slice(0,10),weatherMode:"normal",mParticleGranted:function(){if(!m.default)return!1;let e=window.DprSdk;return!!e&&(e.getFeatureFlags?.()?.mParticleFullMetrics??!1)}(),...null!=L&&{experimentJoinList:L},fromString:b??""}),[l,A,C,y,P,R,I,D,G,M,U,E,T,k,J,Y,$,V,j,F,W,K,H,z,B,ee,X,et,eo,er,Q,L,b])}],737801)},682142,e=>{"use strict";var t=e.i(858040),o=e.i(333350);let r=null;e.s(["getCICookie",0,function(){if(!o.default)return null;if(r)return r;let e=(0,t.getCookie)("ci")||"";return e?r=e.split("&").reduce((e,t)=>{let o=t.split("=");return o[0]&&"string"==typeof o[1]&&(e[o[0]]=o[1]),e},{}):null}])},947118,e=>{"use strict";var t=e.i(592121);let o=e=>(window.mParticle?.ready?.(e),()=>{}),r=()=>!!window.mParticle?.isInitialized?.(),i=()=>!1;e.s(["useIsInitialized",0,()=>(0,t.useSyncExternalStore)(o,r,i)])},132084,e=>{"use strict";var t,o=((t={}).APPLE="apple_widget",t.SAMSUNG="samsung_widget",t.OPPO="oppo_widget",t.TRANSSION="transsion",t.ONEPLUS="oneplus",t.TIKTOK="tiktok_search",t);Object.values(o),e.s(["Partner",()=>o,"SAMSUNG_VIETNAM_PARTNER",0,"samsungVietnam","partnersByPattern",0,{weatherapptodaywidget:"apple_widget",apple_:"apple_widget",samsung:"samsung_widget",oppo_:"oppo_widget","oppo-":"oppo_widget",transsion:"transsion",oneplus:"oneplus",tiktok_:"tiktok_search"}])},831826,e=>{"use strict";var t=e.i(132084);e.s(["getPartnerByPattern",0,function(e){for(let[o,r]of Object.entries(t.partnersByPattern))if(e.toLowerCase().includes(o))return r;return null},"isSamsungVietnamPartner",0,function(e){return e.toLowerCase().replace(/[_-]/g,"").includes("samsungvsc")}])},959194,896363,e=>{"use strict";var t=e.i(333350),o=e.i(831826),r=e.i(132084),i=e.i(682142),a=e.i(858040);let n=e=>{if(!e)return"";let t="[";return Array.isArray(e)&&e.forEach((o,r)=>{t+=`'${o}'${r!==e.length-1?",":""}`}),t+="]"};e.s(["parseArrayToString",0,n],896363);let s=()=>t.default?Object.fromEntries(new URLSearchParams(window.location.search.replace("+","%2B")).entries()):{};(0,i.getCICookie)()?.["TWC-GeoIP-DMA"],e.s(["WEEK_DAYS",0,["SUN","MON","TUE","WED","THU","FRI","SAT"],"areObjectValuesDefined",0,e=>Object.keys(e).every(t=>void 0!==e[t]),"getAnonymizedPath",0,function(e){var t;let o,r,i,a=(o=e,r=e?.indexOf?.("?"),i=e?.indexOf?.("#"),r>-1?o=o.substring(0,r):i>-1&&(o=o.substring(0,i)),o);if(t=a,"/index.html"===(a=t?.replace?.(/\/l\/[^/]+/gi,"/l"))||"/"===a||""===a)a="/";else{let e=a?.split("/")||[],t=e.length-1,o=e[t]??"";"news"!==(t>0?e[t-1]:"")&&(o.match(/[A-Z]/)||o.match(/[0-9]/)||o.match(/[@#$%&!*:]/)||""===o)&&e.pop(),a=e.join("/")}return a},"getCampaign",0,()=>{let e=s(),t=null,o=!0,r=[];return e.cm_ven&&r.push(e.cm_ven),e.cm_date&&r.push(e.cm_date),e.cm_cat&&r.push(e.cm_cat),e.cm_pla&&r.push(e.cm_pla),e.cm_ite&&r.push(e.cm_ite),r.length>0?t=r.join(":"):(t=(0,a.getCookie)("campaign-values")||null,o=!1),o&&t&&(0,a.setCookie)("campaign-values",t,{domain:".weather.com",path:"/",maxAge:1800}),t},"getLinkReferral",0,()=>s()?.traffic_source||null,"getPartner",0,()=>{let e=(0,a.getCookie)("partner")||"";return(0,o.getPartnerByPattern)(e)??e},"getSamsungVietnamPartner",0,()=>{let e=(0,a.getCookie)("partner")||"";return(0,o.isSamsungVietnamPartner)(e)?r.SAMSUNG_VIETNAM_PARTNER:""},"getTimezoneOffsetInHours",0,function(e,t=new Date){if(!e)throw Error("Invalid timeZone provided.");try{let o=t.getTime(),r=new Intl.DateTimeFormat("en-US",{timeZone:e,year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hourCycle:"h23"}).formatToParts(t).reduce((e,t)=>{if("literal"!==t.type){let o=parseInt(t.value,10);"hour"===t.type&&24===o&&(o=0),e[t.type]=o}return e},{});return(Date.UTC(r.year??0,(r.month??1)-1,r.day??1,r.hour??0,r.minute??0,r.second??0)-o)/36e5}catch(e){return e instanceof Error&&console.error(e.message),0}},"getTpcc",0,()=>{let e=s()?.tpcc||(0,a.getCookie)("tpcc")||null;return e&&(0,a.setCookie)("tpcc",e,{path:"/",domain:".weather.com",maxAge:1800}),e},"jwtDecoder",0,function(e){if(!e)return{};let t=e.split("."),o=(Array.isArray(t)&&t.length>=2&&t[1]||"").replace("-","+").replace("_","/");try{return JSON.parse(window.atob(o))||{}}catch{return{}}},"mapIabTagsToIabContent",0,e=>{let t=[];return e?.v1&&t.push(e.v1),e?.v2&&t.push(e.v2),e?.v3&&t.push(e.v3),n(t)},"stripLastPartOfSlug",0,(e="")=>{let t=e.split("/");return t?.[t.length-1]===""&&t.pop(),t.slice(0,t.length-1).join("/")}],959194)},725296,e=>{"use strict";var t,o=e.i(530102),r=((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.USA_UT="usa-ut",t);let i=Object.values(r);e.s(["PRIVACY_REGIMES",0,i,"RESTRICTIVE_REGIMES",0,["ca-qc","gdpr","latam-co","latam-do","latam-pe","lgpd","pipl","tr-kvkk"],"Regime",()=>r,"US_REGIMES",0,["usa","usa-ccpa","usa-co","usa-ct","usa-va"],"default",0,r,"getRegime",0,()=>(()=>{let e=(0,o.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 t.slice(e+1)||void 0}})()||(0,o.getCookie)("twc-privacy")||"exempt"])},678651,(e,t,o)=>{"use strict";function r(e){let t=new URLSearchParams;for(let[o,r]of Object.entries(e))void 0!==r&&t.append(o,r);return t}Object.defineProperty(o,"__esModule",{value:!0}),o.queryStringToSearchParams=r,o.urlFrom=function({host:e,...t}){if(!e)throw Error("Host is missing");let o=new URL(`https://${e}`);return Object.assign(o,{...t,hostname:e}),t.query&&(o.search=r(t.query).toString()),o}},414655,(e,t,o)=>{"use strict";async function r(e){if(!e.ok)switch(e.status){case 401:throw Error("Unauthorized (status 401)");case 403:throw Error("Forbidden (status 403)");case 404:throw Error("Not found (status 404)");case 400:throw Error("Bad Request (status 400)");default:if(e.status>=500)throw Error(`Server error (status ${e.status})`);throw Error(`Unhandled error (status ${e.status})`)}try{if(204===e.status)return null;return await e.json()}catch(e){throw Error(`Invalid JSON response: ${e.message}`)}}async function i(e){if(!e.ok)switch(e.status){case 401:throw Error("Unauthorized (status 401)");case 403:throw Error("Forbidden (status 403)");case 404:throw Error("Not found (status 404)");case 400:throw Error("Bad Request (status 400)");default:if(e.status>=500)throw Error(`Server error (status ${e.status})`);throw Error(`Unhandled error (status ${e.status})`)}try{if(204===e.status)return"";return await e.text()}catch(e){throw Error(`Invalid text response: ${e.message}`)}}Object.defineProperty(o,"__esModule",{value:!0}),o.handleFetchResponse=r,o.handleFetchTextResponse=i},763886,e=>{"use strict";let t=(0,e.i(981030).atom)();e.s(["partnerAtom",0,t])},739971,e=>{"use strict";let t=(0,e.i(981030).atom)(null);e.s(["subscriptionsEnabledAtom",0,t])},394481,e=>{"use strict";let t=(0,e.i(981030).atom)();e.s(["privacyRegimeAtom",0,t])}]);