"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2234],{2534:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AccountAPI=void 0;let n=r(27116);class s{async getAccount(){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/account"})}async updateAccount(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/account",data:e})}async getAccountId(){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/account/id"})}async changeEmail(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/email/change",data:{email:e}})}async changePassword(e,t){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/password/change",data:{old_password:e,new_password:t}})}async forgotPassword(e,t,r){let s={};t&&(s.reset_password_url=t),r&&(s.platform=r),await this.requestHandler.request({method:n.HttpMethod.POST,path:"/password/forgotten",data:{email:e},params:s,requiresAuth:!1})}async resetPassword(e,t,r,s){let a={};s&&(a.platform=s),await this.requestHandler.request({method:n.HttpMethod.POST,path:"/password/reset",data:{email:e,otp:t,password:r},params:a,requiresAuth:!1})}async getUserId(){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/user/id"})}async getUserInfo(){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/user/id/email"})}async getUserAccountById(e){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/users/".concat(e,"/account")})}async getUserAccountByEmail(e){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/users/email/".concat(encodeURIComponent(e),"/account")})}async updateAccountLockStatus(e,t){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/users/".concat(e,"/account/lockStatus"),data:{accountLockStatus:t}})}constructor(e){this.requestHandler=e}}t.AccountAPI=s},3952:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ApplicationsAPI=void 0;let n=r(27116);class s{async getApplications(e,t){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/applications",params:{appId:e,endpointId:t}})}async createApplication(e){await this.requestHandler.request({method:n.HttpMethod.POST,path:"/applications",data:e})}async addPartner(e,t,r){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/applications/app-id/".concat(e,"/endpoint-id/").concat(t),data:r})}async deletePartner(e,t,r){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/applications/partner/app-id/".concat(e,"/endpoint-id/").concat(t),params:{partner:r}})}async updateLastActivity(e,t,r){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/applications/activity/user/".concat(e,"/app-id/").concat(t,"/endpoint-id/").concat(r)})}async getUserApplications(e){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/applications/user/".concat(e)})}async createUserApplication(e,t){await this.requestHandler.request({method:n.HttpMethod.POST,path:"/applications/user/".concat(e),data:t})}async deleteUserApplications(e){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/applications/user/".concat(e)})}async deleteUserApplication(e,t,r){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/applications/user/".concat(e,"/app-id/").concat(t,"/endpoint-id/").concat(r)})}async getUserEndpointIds(e){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/applications/endpoint-ids",params:{userID:e}})}constructor(e){this.requestHandler=e}}t.ApplicationsAPI=s},9005:(e,t,r)=>{r.d(t,{A:()=>n});let n=!!window.document&&!!window.document.createElement},10699:(e,t,r)=>{r.d(t,{I6:()=>u,P9:()=>i,YA:()=>c,lr:()=>l,pX:()=>o});var n=r(65875),s=r(80584);let a=(0,s.tG)("wxu-web/keyval:user",{},void 0,{getOnInit:!0}),o=(0,n.I)(a,e=>e.prop("anonymousId")),i=(0,n.I)(a,e=>e.prop("userHasLoggedInBefore")||!1),u=(0,n.I)(a,e=>e.prop("recentLocations")||[]),c=(0,n.I)(a,e=>e.prop("userPreference")||{}),d=(0,s.tG)("wxu-web/keyval:user-account",{},void 0,{getOnInit:!0}),l=(0,n.I)(d,e=>e.prop("userAccountResponse")||null)},11190:(e,t,r)=>{r.d(t,{C:()=>n});var n=function(e){return e[e.none=-1]="none",e[e.standard=0]="standard",e[e.premium=1]="premium",e[e.adFree=2]="adFree",e[e.premiumWithAd=3]="premiumWithAd",e}({})},12093:(e,t,r)=>{var n=Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]},s=function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),s(r(2534),t),s(r(3952),t),s(r(52930),t),s(r(63851),t),s(r(81070),t),s(r(31184),t),s(r(90361),t),s(r(66406),t)},26802:(e,t,r)=>{r.d(t,{B:()=>n});let n=(0,r(13578).eU)({timestamp:new Date().toISOString()})},26942:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ServerError=t.RateLimitError=t.ValidationError=t.NotFoundError=t.UnauthorizedError=t.AuthenticationError=t.APIError=t.UPSXError=void 0;class r extends Error{constructor(e){super(e),this.name="UPSXError",Object.setPrototypeOf(this,r.prototype)}}t.UPSXError=r;class n extends r{constructor(e,t,r){super(e),this.name="APIError",this.code=t,this.data=r,Object.setPrototypeOf(this,n.prototype)}}t.APIError=n;class s extends r{constructor(e){super(e),this.name="AuthenticationError",Object.setPrototypeOf(this,s.prototype)}}t.AuthenticationError=s;class a extends s{constructor(e="Authentication required"){super(e),this.name="UnauthorizedError",Object.setPrototypeOf(this,a.prototype)}}t.UnauthorizedError=a;class o extends n{constructor(e="Resource not found"){super(e,404),this.name="NotFoundError",Object.setPrototypeOf(this,o.prototype)}}t.NotFoundError=o;class i extends n{constructor(e="Invalid request",t){super(e,400,t),this.name="ValidationError",Object.setPrototypeOf(this,i.prototype)}}t.ValidationError=i;class u extends n{constructor(e="Rate limit exceeded"){super(e,429),this.name="RateLimitError",Object.setPrototypeOf(this,u.prototype)}}t.RateLimitError=u;class c extends n{constructor(e="Server error",t=500){super(e,t),this.name="ServerError",Object.setPrototypeOf(this,c.prototype)}}t.ServerError=c},27116:(e,t)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.HttpMethod=void 0,function(e){e.GET="GET",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE",e.PATCH="PATCH"}(r||(t.HttpMethod=r={}))},29016:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},31184:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PurchaseAPI=void 0;let n=r(27116);class s{async getPurchases(e){let t={};return e&&(t.platform=e),this.requestHandler.request({method:n.HttpMethod.GET,path:"/purchase/",params:t})}async createPurchase(e){await this.requestHandler.request({method:n.HttpMethod.POST,path:"/purchase/app/user",data:e})}async getPurchaseRecord(e,t,r){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/purchase/record",params:{platform:e,vendor:t,product:r}})}async getPurchaseToken(e){let t={};return e&&(t.platform=e),this.requestHandler.request({method:n.HttpMethod.GET,path:"/purchase/token",params:t})}async updatePurchase(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/purchase",data:e})}async createPurchaseTransaction(e){await this.requestHandler.request({method:n.HttpMethod.POST,path:"/purchase",data:e})}async getUserPurchases(e){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/purchase/".concat(e)})}async deleteUserPurchases(e){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/purchase/".concat(e)})}async getUserPurchaseSnapshot(e,t){let r={};return t&&(r.platform=t),this.requestHandler.request({method:n.HttpMethod.GET,path:"/purchase/".concat(e,"/getSnapshot"),params:r})}async getUserPurchaseRecord(e,t,r,s){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/purchase/".concat(e,"/record"),params:{platform:t,vendor:r,product:s}})}constructor(e){this.requestHandler=e}}t.PurchaseAPI=s},40843:(e,t,r)=>{r.d(t,{A:()=>u,_:()=>i});var n=r(59716),s=r(77704),a=r(72517),o=r(13820);let i=s.forwardRef((e,t)=>{let{src:r,alt:s,shadow:i,rounded:u=!0,className:c,wrapperClassName:d,width:l=320,height:h=180,quality:p,priority:y=!1,loading:m,objectFit:H="contain",fill:q=!1,sizes:P,...f}=e;if(!r)return null;let w=(0,n.jsx)(a.default,{ref:t,src:r,alt:s,width:q?void 0:l,height:q?void 0:h,quality:p,priority:y,loading:m,fill:q,sizes:P,className:(0,o.cn)({"shadow-md":i,"rounded-lg":u,"object-contain":"contain"===H,"object-cover":"cover"===H,"object-fill":"fill"===H,"object-none":"none"===H,"object-scale-down":"scale-down"===H,"h-auto w-full":!q},c),...f});return q?(0,n.jsx)("div",{className:(0,o.cn)("relative h-full w-full",d),children:w}):w});i.displayName="Image";let u=i},44476:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},47816:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},49896:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},50073:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},51003:(e,t,r)=>{r.d(t,{_:()=>n});let n=new(r(68174)).UPSXClient({baseUrl:"https://upsx.weather.com"})},52379:(e,t,r)=>{var n=Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]},s=function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),s(r(49896),t),s(r(64054),t),s(r(44476),t),s(r(50073),t),s(r(72057),t),s(r(47816),t),s(r(75746),t),s(r(96984),t),s(r(29016),t)},52930:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AssetsAPI=void 0;let n=r(27116);class s{async getAssets(){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/assets"})}async getUserAssets(e){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/assets/".concat(e)})}async deleteUserAssets(e){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/assets/".concat(e)})}async createWUAssets(e,t){await this.requestHandler.request({method:n.HttpMethod.POST,path:"/assets/wu/".concat(e),data:t})}async updateWUAssets(e,t){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/assets/wu/".concat(e),data:t})}async createWUAssetsMigration(e,t){await this.requestHandler.request({method:n.HttpMethod.POST,path:"/assets/migration/".concat(e),data:t})}constructor(e){this.requestHandler=e}}t.AssetsAPI=s},63851:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ConsentAPI=void 0;let n=r(27116);class s{async getConsent(e){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/consent",params:{endpointID:e}})}async updateConsent(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/consent",data:e})}async createConsent(e){await this.requestHandler.request({method:n.HttpMethod.POST,path:"/consent",data:e})}async deleteConsent(e){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/consent",params:{endpointID:e}})}async getUserConsent(){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/consent/user"})}async updateUserConsent(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/consent/user",data:e})}async createUserConsent(e){await this.requestHandler.request({method:n.HttpMethod.POST,path:"/consent/user",data:e})}async deleteUserConsent(){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/consent/user"})}async getBulkConsent(e,t){let r={};return e&&(r.endpointIDs=e),t&&(r.userID=t),this.requestHandler.request({method:n.HttpMethod.GET,path:"/consent/bulk",params:r})}async deleteBulkConsent(e,t){let r={};e&&(r.endpointIDs=e),t&&(r.userID=t),await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/consent/bulk",params:r})}async migrateUserConsent(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/consent/user/migration",data:e})}async updateUserConsentWebhook(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/consent/user/update",data:e})}constructor(e){this.requestHandler=e}}t.ConsentAPI=s},64009:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UPSXClient=void 0;let n=r(2534),s=r(3952),a=r(52930),o=r(82331),i=r(63851),u=r(81070),c=r(31184),d=r(90361),l=r(66406),h=r(98587);class p{constructor(e){this.requestHandler=new h.RequestHandler(e),this.auth=new o.AuthAPI(this.requestHandler),this.account=new n.AccountAPI(this.requestHandler),this.applications=new s.ApplicationsAPI(this.requestHandler),this.assets=new a.AssetsAPI(this.requestHandler),this.consent=new i.ConsentAPI(this.requestHandler),this.preference=new u.PreferenceAPI(this.requestHandler),this.purchase=new c.PurchaseAPI(this.requestHandler),this.segmentation=new d.SegmentationAPI(this.requestHandler),this.subscription=new l.SubscriptionAPI(this.requestHandler)}}t.UPSXClient=p},64054:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},66406:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SubscriptionAPI=void 0;let n=r(27116);class s{async updateActivity(e){await this.requestHandler.request({method:n.HttpMethod.PATCH,path:"/subscription/activity",data:e})}async updateAddress(e){await this.requestHandler.request({method:n.HttpMethod.PATCH,path:"/subscription/address",data:e})}async createMultiple(e){return this.requestHandler.request({method:n.HttpMethod.PUT,path:"/subscription/create",data:e})}async create(e){return this.requestHandler.request({method:n.HttpMethod.POST,path:"/subscription/create",data:e})}async delete(e){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/subscription/delete",params:{subids:e}})}async updateEvent(e){await this.requestHandler.request({method:n.HttpMethod.PATCH,path:"/subscription/event",data:e})}async find(e){let t={};return e.endpointId&&(t.endpointid=e.endpointId),e.address&&(t.address=e.address),e.userId&&(t.userid=e.userId),this.requestHandler.request({method:n.HttpMethod.GET,path:"/subscription/find",params:t})}async findAll(e){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/subscription/findall",params:{endpoints:e}})}async updateLocation(e){await this.requestHandler.request({method:n.HttpMethod.PATCH,path:"/subscription/location",data:e})}async update(e){await this.requestHandler.request({method:n.HttpMethod.PATCH,path:"/subscription/update",data:e})}async updateAll(e){await this.requestHandler.request({method:n.HttpMethod.PATCH,path:"/subscription/updateall",data:e})}async deleteAll(e){let t={};e.endpoints&&(t.endpoints=e.endpoints),e.userId&&(t.userid=e.userId),await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/subscriptions",params:t})}constructor(e){this.requestHandler=e}}t.SubscriptionAPI=s},68174:(e,t,r)=>{var n=Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]},s=function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.AuthenticationError=t.APIError=t.UPSXClient=void 0;let a=r(64009);Object.defineProperty(t,"UPSXClient",{enumerable:!0,get:function(){return a.UPSXClient}});let o=r(26942);Object.defineProperty(t,"APIError",{enumerable:!0,get:function(){return o.APIError}}),Object.defineProperty(t,"AuthenticationError",{enumerable:!0,get:function(){return o.AuthenticationError}}),s(r(27116),t),s(r(52379),t),s(r(12093),t)},72057:(e,t)=>{var r,n,s,a,o,i,u,c,d,l,h,p,y,m,H,q;Object.defineProperty(t,"__esModule",{value:!0}),t.LocationType=t.Role=t.PermissionType=t.ActivityCondition=t.WigetPropType=t.WigetPropPeriod=t.WigetPropCondition=t.WidgetType=t.StrikeTypeCode=t.GeometryType=t.InterruptionLevel=t.Weekday=t.Platform=t.Unit=t.ActivityType=t.AlertType=void 0,function(e){e[e.News=1]="News",e[e.AirQuality=2]="AirQuality",e[e.Avalanche=3]="Avalanche",e[e.Coastal=4]="Coastal",e[e.Miscellaneous=5]="Miscellaneous",e[e.RainFlood=6]="RainFlood",e[e.Temperature=7]="Temperature",e[e.Thunderstorm=8]="Thunderstorm",e[e.Visibility=9]="Visibility",e[e.Wind=10]="Wind",e[e.Lightning=11]="Lightning",e[e.Precipitation=12]="Precipitation",e[e.ExtremeCold=13]="ExtremeCold",e[e.ExtremeHeat=14]="ExtremeHeat",e[e.WinterPrecipitation=15]="WinterPrecipitation",e[e.HeavySnow=16]="HeavySnow",e[e.DenseFog=17]="DenseFog",e[e.HeavyRain=18]="HeavyRain",e[e.HighWind=19]="HighWind",e[e.Flux=20]="Flux",e[e.IcyForecast=21]="IcyForecast",e[e.Pollen=22]="Pollen",e[e.Flu=23]="Flu",e[e.DailyPrecip=24]="DailyPrecip",e[e.WebEmail=25]="WebEmail",e[e.DailyDigest=26]="DailyDigest",e[e.HeavyThunderstorm=27]="HeavyThunderstorm",e[e.Custom=28]="Custom",e[e.Activity=29]="Activity"}(r||(t.AlertType=r={})),function(e){e[e.Running=1]="Running",e[e.Golfing=2]="Golfing",e[e.Hiking=3]="Hiking",e[e.Gardening=4]="Gardening",e[e.Tennis=5]="Tennis",e[e.Cycling=6]="Cycling"}(n||(t.ActivityType=n={})),function(e){e[e.English=1]="English",e[e.Metric=2]="Metric",e[e.Hybrid=3]="Hybrid"}(s||(t.Unit=s={})),function(e){e[e.Apple=1]="Apple",e[e.Android=2]="Android",e[e.Http=3]="Http",e[e.Web=4]="Web",e[e.Email=5]="Email",e[e.Sms=6]="Sms"}(a||(t.Platform=a={})),function(e){e[e.Sunday=0]="Sunday",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=3]="Wednesday",e[e.Thursday=4]="Thursday",e[e.Friday=5]="Friday",e[e.Saturday=6]="Saturday"}(o||(t.Weekday=o={})),function(e){e[e.Passive=0]="Passive",e[e.Active=1]="Active",e[e.TimeSensitive=2]="TimeSensitive",e[e.Critical=3]="Critical"}(i||(t.InterruptionLevel=i={})),function(e){e.GeometryPoint="Point",e.GeometryMultiPoint="MultiPoint",e.GeometryPolygon="Polygon",e.GeometryMultiPolygon="MultiPolygon",e.GeometryLineString="LineString",e.GeometryMultiLineString="MultiLineString",e.GeometryCollection="GeometryCollection",e.Feature="Feature",e.FeatureCollection="FeatureCollection"}(u||(t.GeometryType=u={})),function(e){e[e.CloudToGround=0]="CloudToGround",e[e.CloudToCloud=1]="CloudToCloud"}(c||(t.StrikeTypeCode=c={})),function(e){e.WXLocation="wxlocation",e.WXComparison="wxcomparison"}(d||(t.WidgetType=d={})),function(e){e.Humidity="humidity",e.Wind="wind",e.Pressure="pressure",e.Visibility="visibility",e.DewPoint="dewPoint",e.UV="uv",e.AirQuality="airQuality",e.Temperature="temperature",e.TemperatureFeelsLike="temperatureFeelsLike",e.Precip="precip"}(l||(t.WigetPropCondition=l={})),function(e){e.Daily="daily",e.Hourly="hourly"}(h||(t.WigetPropPeriod=h={})),function(e){e.Forecast="forecast",e.Historical="historical"}(p||(t.WigetPropType=p={})),function(e){e[e.Poor=1]="Poor",e[e.Fair=2]="Fair",e[e.Good=3]="Good"}(y||(t.ActivityCondition=y={})),function(e){e[e.EndpointLookup=1]="EndpointLookup",e[e.LocationLookup=2]="LocationLookup",e[e.UserLookup=3]="UserLookup",e[e.NotificationMetric=4]="NotificationMetric",e[e.ClickMetric=5]="ClickMetric",e[e.AlertMap=6]="AlertMap",e[e.AlertNews=7]="AlertNews",e[e.AlertSegment=8]="AlertSegment",e[e.NotificationApps=9]="NotificationApps",e[e.NotificationTemplates=10]="NotificationTemplates",e[e.NotificationHeadlines=11]="NotificationHeadlines",e[e.NotificationDateFormats=12]="NotificationDateFormats",e[e.NotificationTranslations=13]="NotificationTranslations",e[e.Permissions=14]="Permissions",e[e.AgentActivity=15]="AgentActivity",e[e.DeleteSubscriptions=16]="DeleteSubscriptions",e[e.AlertSent=17]="AlertSent",e[e.Culture=18]="Culture",e[e.SendNotification=19]="SendNotification",e[e.Headlines=20]="Headlines",e[e.Templates=21]="Templates",e[e.UpdateAccountLockStatus=22]="UpdateAccountLockStatus"}(m||(t.PermissionType=m={})),function(e){e[e.Admin=1]="Admin",e[e.User=2]="User",e[e.UnAuthorized=3]="UnAuthorized",e[e.AppAgent=4]="AppAgent"}(H||(t.Role=H={})),function(e){e[e.Globe=0]="Globe",e[e.PollenID=1]="PollenID",e[e.TideID=2]="TideID",e[e.ZoneID=3]="ZoneID",e[e.PostalKey=4]="PostalKey",e[e.CountyID=5]="CountyID",e[e.CityID=6]="CityID",e[e.AdminDistrict=7]="AdminDistrict",e[e.DmaID=8]="DmaID",e[e.TimeZone=9]="TimeZone",e[e.CountryCode=10]="CountryCode"}(q||(t.LocationType=q={}))},75746:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},81070:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PreferenceAPI=void 0;let n=r(27116);class s{async getPreference(){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/preference"})}async updatePreference(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/preference",data:e})}async createPreference(e){await this.requestHandler.request({method:n.HttpMethod.POST,path:"/preference",data:e})}async getWUPreference(){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/preference/wu"})}async updateWUPreference(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/preference/wu",data:e})}async createWUPreference(e){await this.requestHandler.request({method:n.HttpMethod.POST,path:"/preference/wu",data:e})}async getUserPreference(e){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/preference/".concat(e)})}async deleteUserPreference(e){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/preference/".concat(e)})}async createUserWUPreference(e,t){await this.requestHandler.request({method:n.HttpMethod.POST,path:"/preference/wu/".concat(e),data:t})}constructor(e){this.requestHandler=e}}t.PreferenceAPI=s},82331:(e,t,r)=>{var n=r(85096).hp;Object.defineProperty(t,"__esModule",{value:!0}),t.AuthAPI=void 0;let s=r(26942),a=r(27116);class o{async login(e){try{let t=await this.requestHandler.request({method:a.HttpMethod.POST,path:"/login",data:e,requiresAuth:!1}),r={accessToken:"access_token_from_cookies",idToken:"id_token_from_cookies",refreshToken:"refresh_token_from_cookies",expiresAt:Date.now()+36e5};return this.requestHandler.setTokens(r),t}catch(e){if(e instanceof s.AuthenticationError)throw e;throw new s.AuthenticationError("Login failed: ".concat(e.message))}}async logout(){try{await this.requestHandler.request({method:a.HttpMethod.POST,path:"/logout"})}finally{this.requestHandler.clearTokens()}}async getMachineToken(e){try{let t=n.from("".concat(e.clientId,":").concat(e.clientSecret)).toString("base64"),r=await this.requestHandler.request({method:a.HttpMethod.POST,path:"/oauth/token",requiresAuth:!1,headers:{Authorization:"Basic ".concat(t)}}),s={accessToken:r.access_token,expiresAt:Date.now()+1e3*r.expires_in};return this.requestHandler.setTokens(s),r}catch(e){throw new s.AuthenticationError("Machine authentication failed: ".concat(e.message))}}async refreshToken(){try{let e=await this.requestHandler.request({method:a.HttpMethod.GET,path:"/refresh",requiresAuth:!1}),t={accessToken:"new_access_token_from_cookies",idToken:"new_id_token_from_cookies",refreshToken:"new_refresh_token_from_cookies",expiresAt:Date.now()+36e5};return this.requestHandler.setTokens(t),e}catch(e){throw this.requestHandler.clearTokens(),new s.AuthenticationError("Token refresh failed: ".concat(e.message))}}async register(e){try{return await this.requestHandler.request({method:a.HttpMethod.POST,path:"/register",data:e,requiresAuth:!1})}catch(e){throw new s.AuthenticationError("Registration failed: ".concat(e.message))}}async verifyEmail(e,t){try{return await this.requestHandler.request({method:a.HttpMethod.PUT,path:"/register/verify/email",data:{email:e,otp:t},requiresAuth:!1})}catch(e){throw new s.AuthenticationError("Email verification failed: ".concat(e.message))}}constructor(e){this.requestHandler=e}}t.AuthAPI=o},88423:(e,t,r)=>{r.d(t,{J:()=>m});var n=r(77704),s=r(78610),a=r(68899),o=r(77891),i=r(81679),u=r(37430),c=r(93479),d=r(64949),l=r(51003),h=r(10699),p=r(11190),y=r(26726);function m(){var e,t;let[r,m]=(0,n.useState)(null),[H,q]=(0,s.fp)(d.U),[P,f]=(0,s.fp)(h.pX),[w,g]=(0,s.fp)(h.lr),{refresh:T}=(0,c.b)(),E=parseInt((null==(e=(0,u.useGetCookie)()("twc-user"))?void 0:e.toString())||p.C.none.toString()),A=parseInt((null==(t=(0,u.getCookie)("twc-user"))?void 0:t.toString())||p.C.none.toString());P||f((0,y.A)()),!H&&w&&q(w);let M=E>p.C.none?"upsx/id":null,b=(0,i.A)(M,()=>l._.account.getAccountId(),{shouldRetryOnError:e=>"APIError"!==e.name}),{userID:v=""}=(null==b?void 0:b.data)||{};(0,a.Ay)(!H&&v?"upsx/account":null,()=>l._.account.getAccount(),{shouldRetryOnError:e=>"APIError"!==e.name,onSuccess:e=>{q(e),g(e)}});let I=async()=>{try{return await l._.auth.logout(),(0,o.j)(e=>"string"==typeof e&&e.startsWith("/upsx"),void 0,{revalidate:!1}),q(null),g(null),(0,u.deleteCookie)("twc-user",{domain:".weather.com"}),T({mpa:!0}),!0}catch(e){return m(e instanceof Error?e:Error("Failed to log out")),!1}};return{error:r,DISCONNECTED_user:{isUserLoggedIn:A>p.C.none,subscriptionTier:A,isUserPremium:A>p.C.standard},user:{userID:v,isUserLoggedIn:E>p.C.none,subscriptionTier:E,isUserPremium:E>p.C.standard},userProfile:H,logout:I}}},89392:(e,t,r)=>{r.d(t,{K:()=>o});var n=r(78610),s=r(77704),a=r(26802);function o(){let[e,t]=(0,n.fp)(a.B),r=(0,s.useCallback)((e,r)=>{t(t=>{let n=(null==t?void 0:t[e])||{},s="object"==typeof r&&null!==r&&"object"==typeof n?{...n,...r}:r;return{...t,[e]:s}})},[t]),o=(0,s.useCallback)((e,r)=>{t(t=>{let n=t||{timestamp:new Date().toISOString()},s=n.components||{};if(null===r){let t={...s};return delete t[e],{...n,components:t}}return{...n,components:{...s,[e]:r}}})},[t]),i=(0,s.useCallback)(e=>{r("page",e)},[r]),u=(0,s.useCallback)(e=>{r("route",e)},[r]),c=(0,s.useCallback)(e=>{Object.entries(e).forEach(e=>{let[t,n]=e;n&&r(t,n)})},[r]);return{debugData:e,updateSection:r,updateComponentData:o,setPageData:i,clearAllDebugData:(0,s.useCallback)(()=>{t({timestamp:new Date().toISOString()})},[t]),updateRouteInfo:u,updatePageDebug:c}}},90361:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SegmentationAPI=void 0;let n=r(27116);class s{async getEndpointSegmentation(){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/segmentation/endpoint"})}async updateEndpointSegmentation(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/segmentation/endpoint",data:e})}async deleteEndpointSegmentation(e){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/segmentation/endpoint",data:{keys:e}})}async getEndpointMetrics(){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/segmentation/metrics/endpoint"})}async getUserSegmentation(){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/segmentation/user"})}async updateUserSegmentation(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/segmentation/user",data:e})}async deleteUserSegmentation(e){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/segmentation/user",data:{keys:e}})}async getUserMetrics(){return this.requestHandler.request({method:n.HttpMethod.GET,path:"/segmentation/metrics/user"})}async getBulkSegmentation(e,t){let r={};return e&&(r.endpointIDs=e),t&&(r.userID=t),this.requestHandler.request({method:n.HttpMethod.GET,path:"/segmentation/bulk",params:r})}async deleteBulkSegmentation(e,t){let r={};e&&(r.endpointIDs=e),t&&(r.userID=t),await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/segmentation/bulk",params:r})}async updateBulkSegmentation(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/segmentation/analytics/bulk",data:e})}async updateKeyOnCondition(e){await this.requestHandler.request({method:n.HttpMethod.PUT,path:"/segmentation/analytics/condition",data:e})}async deleteKeyOnCondition(e){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/segmentation/analytics/condition",data:e})}async deleteKeyForIds(e){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/segmentation/analytics/key",data:e})}async deleteKeyForAll(e){await this.requestHandler.request({method:n.HttpMethod.DELETE,path:"/segmentation/analytics/key/all",data:{key:e}})}constructor(e){this.requestHandler=e}}t.SegmentationAPI=s},93479:(e,t,r)=>{r.d(t,{b:()=>s});var n=r(56694);let s=()=>{let e=(0,n.useRouter)();return{navigate:function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mpa:n=!0,replace:s=!1}=r;n?s?window.location.replace(t):window.location.href=t:s?e.replace(t):e.push(t)},refresh:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{mpa:r=!0}=t;r?window.location.reload():e.refresh()},router:e}}},96984:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},98587:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RequestHandler=void 0;let n=r(26942),s=r(27116);class a{setTokens(e){this.tokens=e}getTokens(){return this.tokens}clearTokens(){this.tokens=null}isAuthenticated(){var e;return!!(null==(e=this.tokens)?void 0:e.accessToken)}async request(e){var t;let{method:r,path:a,params:o,data:i,headers:u={},requiresAuth:c=!1,timeout:d=this.timeout}=e;if(c&&!this.isAuthenticated())throw new n.AuthenticationError("Authentication required");let l="".concat(this.baseUrl).concat(a.startsWith("/")?a:"/".concat(a));if(o&&Object.keys(o).length>0){let e=new URLSearchParams;for(let[t,r]of Object.entries(o))void 0!==r&&e.append(t,String(r));let t=e.toString();t&&(l+="?".concat(t))}let h={...this.defaultHeaders,...u};(null==(t=this.tokens)?void 0:t.accessToken)&&(h.Authorization="Bearer ".concat(this.tokens.accessToken));let p={method:r,headers:h,credentials:"include"};void 0!==i&&(r===s.HttpMethod.POST||r===s.HttpMethod.PUT)&&(p.body=JSON.stringify(i));try{let e=new AbortController,t=setTimeout(()=>e.abort(),d);p.signal=e.signal;let r=await fetch(l,p);if(clearTimeout(t),r.ok||await this.handleErrorResponse(r),204===r.status)return{};let n=r.headers.get("content-type");if(n&&n.includes("application/json"))return await r.json();return await r.text()}catch(e){if(e instanceof n.APIError)throw e;if(e instanceof DOMException&&"AbortError"===e.name)throw new n.APIError("Request timeout",408);throw new n.APIError("Network error: ".concat(e.message),0)}}async handleErrorResponse(e){let t;try{t=await e.json()}catch(r){t={message:e.statusText}}let r=t.message||"Unknown error",s=e.status;switch(s){case 400:throw new n.ValidationError(r,t);case 401:throw this.clearTokens(),new n.AuthenticationError(r);case 404:throw new n.NotFoundError(r);case 429:throw new n.RateLimitError(r);case 500:case 502:case 503:case 504:throw new n.ServerError(r,s);default:throw new n.APIError(r,s,t)}}constructor(e){this.tokens=null,this.baseUrl=e.baseUrl.endsWith("/")?e.baseUrl.slice(0,-1):e.baseUrl,this.timeout=e.timeout||3e4,this.defaultHeaders={"Content-Type":"application/json",Accept:"application/json",...e.headers}}}t.RequestHandler=a}}]);