"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7759],{95077:(e,t,r)=>{r.d(t,{A:()=>t$}),"undefined"!=typeof globalThis&&(globalThis.regeneratorRuntime=void 0);var n,i,o={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(e){try{if(window.btoa&&window.atob)return window.btoa(unescape(encodeURIComponent(e)))}catch(e){console.error("Error encoding cookie values into Base64:"+e)}return this._encode(e)},_encode:function(e){var t,r,n,i,a,u,c,d="",l=0;for(e=s.encode(e);l>2,a=(3&t)>4,u=(15&r)>6,c=63&n,isNaN(r)?u=c=64:isNaN(n)&&(c=64),d=d+o._keyStr.charAt(i)+o._keyStr.charAt(a)+o._keyStr.charAt(u)+o._keyStr.charAt(c);return d},decode:function(e){try{if(window.btoa&&window.atob)return decodeURIComponent(escape(window.atob(e)))}catch(e){}return o._decode(e)},_decode:function(e){var t,r,n,i,a,u,c,d="",l=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");l>4,r=(15&a)>2,n=(3&u)(t=e.charCodeAt(n))?r+=String.fromCharCode(t):(127t?r+=String.fromCharCode(192|t>>6):(r+=String.fromCharCode(224|t>>12),r+=String.fromCharCode(128|63&t>>6)),r+=String.fromCharCode(128|63&t));return r},decode:function(e){for(var t="",r=0,n=0,i=0,o=0;r(n=e.charCodeAt(r))?(t+=String.fromCharCode(n),r++):191n?(t+=String.fromCharCode((31&n)>>0;if("function"!=typeof e)throw TypeError(e+" is not a function");for(1>>0;if("function"!=typeof e)throw TypeError(e+" is not a function");for(1>>0;if("function"!=typeof e)throw TypeError();for(var n=[],i=20&&i[i.length-1])&&(6===c[0]||2===c[0])){s=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]>t/4).toString(16):(t^16*Math.random()>>t/4).toString(16)},_=function(e){return void 0===e&&(e=""),e?S():"".concat(1e7,"-").concat(1e3,"-").concat(4e3,"-").concat(8e3,"-").concat(1e11).replace(/[018]/g,_)},I=function(e){var t=Object.prototype.toString.call(e);return"[object Object]"===t||"[object Error]"===t},b=function(e){if(isNaN(e)||!isFinite(e))return 0;var t=parseFloat(e);return isNaN(t)?0:t},P=function(e){try{return e?JSON.parse(e.replace(/"/g,'"')):[]}catch(e){throw Error("Settings string contains invalid JSON")}},C=function(e){return F(e)?e:null},w=function(e,t){return e.replace("%%mpid%%",t)},T=function(e){return e.replace(/&/g,"&")},A=function(e,t,r){var n=T(t),i=r?T(r):null;return w(n,e)+encodeURIComponent(i?w(i,e):"")},E=function(e){return decodeURIComponent(e.replace(/\+/g," "))},k=function(e){return 0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\")),e},D=function(e){return"string"==typeof e},U=function(e){return"number"==typeof e},O=function(e){return"function"==typeof e},L=function(e){return U(e)||D(e)||"boolean"==typeof e},M=function(e){return e===(F(e)?e.toString().toLowerCase().replace(/[^0-9a-zA-Z]+/g,"_"):"")},F=function(e){return D(e)||U(e)},N=function(e){return null==e||!(Object.keys(e)||e).length},R=function(e,t){void 0===t&&(t=[]);var r,n={},i={};return e?(("undefined"!=typeof URL&&"undefined"!=typeof URLSearchParams?new URLSearchParams(new URL(e).search):x(e)).forEach(function(e,t){i[t.toLowerCase()]=e}),N(t))?i:(t.forEach(function(e){var t=i[e.toLowerCase()];t&&(n[e]=t)}),n):n},x=function(e){var t={};return(e.split("?")[1]||"").split("&").forEach(function(e){var r=e.split("="),n=r[0],i=r.slice(1).join("=");if(n&&void 0!==i)try{t[n]=decodeURIComponent(i||"")}catch(e){console.error("Failed to decode value for key ".concat(n,": ").concat(e))}}),{get:function(e){return t[e]},forEach:function(e){for(var r in t)t.hasOwnProperty(r)&&e(t[r],r)}}},V=function(){return"undefined"!=typeof window&&window.location?window.location.href:""},H=function(e,t,r){var n={};if(!N(e))for(var i in e)e.hasOwnProperty(i)&&(v(t,r(i))||(n[i]=e[i]));return n},K=function(e,t,r){var n;return(null==(n=e.kitConfigs)?void 0:n.find(function(e){return e.name===t&&e.moduleId===r}))||null},j={SessionStart:1,SessionEnd:2,PageView:3,PageEvent:4,CrashReport:5,OptOut:6,AppStateTransition:10,Profile:14,Commerce:16,Media:20,UserAttributeChange:17,UserIdentityChange:18},B={Unknown:0,Navigation:1,Location:2,Search:3,Transaction:4,UserContent:5,UserPreference:6,Social:7,Other:8,Media:9,getName:function(e){return e===B.Unknown?"Unknown":e===B.Navigation?"Navigation":e===B.Location?"Location":e===B.Search?"Search":e===B.Transaction?"Transaction":e===B.UserContent?"User Content":e===B.UserPreference?"User Preference":e===B.Social?"Social":e===q.ProductAddToCart?"Product Added to Cart":e===q.ProductAddToWishlist?"Product Added to Wishlist":e===q.ProductCheckout?"Product Checkout":e===q.ProductCheckoutOption?"Product Checkout Options":e===q.ProductClick?"Product Click":e===q.ProductImpression?"Product Impression":e===q.ProductPurchase?"Product Purchased":e===q.ProductRefund?"Product Refunded":e===q.ProductRemoveFromCart?"Product Removed From Cart":e===q.ProductRemoveFromWishlist?"Product Removed from Wishlist":e===q.ProductViewDetail?"Product View Details":e===q.PromotionClick?"Promotion Click":e===q.PromotionView?"Promotion View":"Other"}},q={ProductAddToCart:10,ProductRemoveFromCart:11,ProductCheckout:12,ProductCheckoutOption:13,ProductClick:14,ProductViewDetail:15,ProductPurchase:16,ProductRefund:17,PromotionView:18,PromotionClick:19,ProductAddToWishlist:20,ProductRemoveFromWishlist:21,ProductImpression:22},W={Other:0,CustomerId:1,Facebook:2,Twitter:3,Google:4,Microsoft:5,Yahoo:6,Email:7,FacebookCustomAudienceId:9,Other2:10,Other3:11,Other4:12,Other5:13,Other6:14,Other7:15,Other8:16,Other9:17,Other10:18,MobileNumber:19,PhoneNumber2:20,PhoneNumber3:21,isValid:function(e){if("number"==typeof e){for(var t in W)if(W.hasOwnProperty(t)&&W[t]===e)return!0}return!1},getName:function(e){return e===window.mParticle.IdentityType.CustomerId?"Customer ID":e===window.mParticle.IdentityType.Facebook?"Facebook ID":e===window.mParticle.IdentityType.Twitter?"Twitter ID":e===window.mParticle.IdentityType.Google?"Google ID":e===window.mParticle.IdentityType.Microsoft?"Microsoft ID":e===window.mParticle.IdentityType.Yahoo?"Yahoo ID":e===window.mParticle.IdentityType.Email?"Email":e===window.mParticle.IdentityType.FacebookCustomAudienceId?"Facebook App User ID":"Other ID"},getIdentityType:function(e){return"other"===e?W.Other:"customerid"===e?W.CustomerId:"facebook"===e?W.Facebook:"twitter"===e?W.Twitter:"google"===e?W.Google:"microsoft"===e?W.Microsoft:"yahoo"===e?W.Yahoo:"email"===e?W.Email:"facebookcustomaudienceid"===e?W.FacebookCustomAudienceId:"other2"===e?W.Other2:"other3"===e?W.Other3:"other4"===e?W.Other4:"other5"===e?W.Other5:"other6"===e?W.Other6:"other7"===e?W.Other7:"other8"===e?W.Other8:"other9"===e?W.Other9:"other10"===e?W.Other10:"mobile_number"===e?W.MobileNumber:"phone_number_2"===e?W.PhoneNumber2:"phone_number_3"==e&&W.PhoneNumber3},getIdentityName:function(e){return e===W.Other?"other":e===W.CustomerId?"customerid":e===W.Facebook?"facebook":e===W.Twitter?"twitter":e===W.Google?"google":e===W.Microsoft?"microsoft":e===W.Yahoo?"yahoo":e===W.Email?"email":e===W.FacebookCustomAudienceId?"facebookcustomaudienceid":e===W.Other2?"other2":e===W.Other3?"other3":e===W.Other4?"other4":e===W.Other5?"other5":e===W.Other6?"other6":e===W.Other7?"other7":e===W.Other8?"other8":e===W.Other9?"other9":e===W.Other10?"other10":e===W.MobileNumber?"mobile_number":e===W.PhoneNumber2?"phone_number_2":e===W.PhoneNumber3?"phone_number_3":null},getValuesAsStrings:function(){return Object.values(W).map(function(e){return U(e)?e.toString():void 0}).filter(function(e){return void 0!==e})},getNewIdentitiesByName:function(e){var t={},r=W.getValuesAsStrings();for(var n in e)r.includes(n)&&(t[W.getIdentityName(b(n))]=e[n]);return t}},z={Unknown:0,AddToCart:1,RemoveFromCart:2,Checkout:3,CheckoutOption:4,Click:5,ViewDetail:6,Purchase:7,Refund:8,AddToWishlist:9,RemoveFromWishlist:10,getName:function(e){return e===z.AddToCart?"Add to Cart":e===z.RemoveFromCart?"Remove from Cart":e===z.Checkout?"Checkout":e===z.CheckoutOption?"Checkout Option":e===z.Click?"Click":e===z.ViewDetail?"View Detail":e===z.Purchase?"Purchase":e===z.Refund?"Refund":e===z.AddToWishlist?"Add to Wishlist":e===z.RemoveFromWishlist?"Remove from Wishlist":"Unknown"},getExpansionName:function(e){return e===z.AddToCart?"add_to_cart":e===z.RemoveFromCart?"remove_from_cart":e===z.Checkout?"checkout":e===z.CheckoutOption?"checkout_option":e===z.Click?"click":e===z.ViewDetail?"view_detail":e===z.Purchase?"purchase":e===z.Refund?"refund":e===z.AddToWishlist?"add_to_wishlist":e===z.RemoveFromWishlist?"remove_from_wishlist":"unknown"}},Q={Unknown:0,PromotionView:1,PromotionClick:2,getName:function(e){return e===Q.PromotionView?"view":e===Q.PromotionClick?"click":"unknown"},getExpansionName:function(e){return e===Q.PromotionView?"view":e===Q.PromotionClick?"click":"unknown"}},J={MessageType:j,EventType:B,CommerceEventType:q,IdentityType:W,ProfileMessageType:{Logout:3},ApplicationTransitionType:{AppInit:1},ProductActionType:z,PromotionActionType:Q,Environment:u.Environment};function G(e){return(G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e){e[e.Unknown=0]="Unknown",e[e.AddToCart=1]="AddToCart",e[e.RemoveFromCart=2]="RemoveFromCart",e[e.Checkout=3]="Checkout",e[e.CheckoutOption=4]="CheckoutOption",e[e.Click=5]="Click",e[e.ViewDetail=6]="ViewDetail",e[e.Purchase=7]="Purchase",e[e.Refund=8]="Refund",e[e.AddToWishlist=9]="AddToWishlist",e[e.RemoveFromWishlist=10]="RemoveFromWishlist"}(n||(n={}));var Y={};!function(e){var t,r,n,i,o,s,a,u,c,d,l,g,p,f,v,m,h;Object.defineProperty(e,"__esModule",{value:!0}),(t=e.ApplicationInformationOsEnum||(e.ApplicationInformationOsEnum={})).unknown="Unknown",t.iOS="IOS",t.android="Android",t.windowsPhone="WindowsPhone",t.mobileWeb="MobileWeb",t.unityIOS="UnityIOS",t.unityAndroid="UnityAndroid",t.desktop="Desktop",t.tvOS="TVOS",t.roku="Roku",t.outOfBand="OutOfBand",t.alexa="Alexa",t.smartTV="SmartTV",t.fireTV="FireTV",t.xbox="Xbox",(e.ApplicationStateTransitionEventEventTypeEnum||(e.ApplicationStateTransitionEventEventTypeEnum={})).applicationStateTransition="application_state_transition",(r=e.ApplicationStateTransitionEventDataApplicationTransitionTypeEnum||(e.ApplicationStateTransitionEventDataApplicationTransitionTypeEnum={})).applicationInitialized="application_initialized",r.applicationExit="application_exit",r.applicationBackground="application_background",r.applicationForeground="application_foreground",(n=e.BatchEnvironmentEnum||(e.BatchEnvironmentEnum={})).unknown="unknown",n.development="development",n.production="production",(e.BreadcrumbEventEventTypeEnum||(e.BreadcrumbEventEventTypeEnum={})).breadcrumb="breadcrumb",(e.CommerceEventEventTypeEnum||(e.CommerceEventEventTypeEnum={})).commerceEvent="commerce_event",(i=e.CommerceEventDataCustomEventTypeEnum||(e.CommerceEventDataCustomEventTypeEnum={})).addToCart="add_to_cart",i.removeFromCart="remove_from_cart",i.checkout="checkout",i.checkoutOption="checkout_option",i.click="click",i.viewDetail="view_detail",i.purchase="purchase",i.refund="refund",i.promotionView="promotion_view",i.promotionClick="promotion_click",i.addToWishlist="add_to_wishlist",i.removeFromWishlist="remove_from_wishlist",i.impression="impression",(e.CrashReportEventEventTypeEnum||(e.CrashReportEventEventTypeEnum={})).crashReport="crash_report",(e.CustomEventEventTypeEnum||(e.CustomEventEventTypeEnum={})).customEvent="custom_event",(o=e.CustomEventDataCustomEventTypeEnum||(e.CustomEventDataCustomEventTypeEnum={})).navigation="navigation",o.location="location",o.search="search",o.transaction="transaction",o.userContent="user_content",o.userPreference="user_preference",o.social="social",o.media="media",o.other="other",o.unknown="unknown",(s=e.DeviceCurrentStateDeviceOrientationEnum||(e.DeviceCurrentStateDeviceOrientationEnum={})).portrait="portrait",s.portraitUpsideDown="portrait_upside_down",s.landscape="landscape",s.landscapeLeft="LandscapeLeft",s.landscapeRight="LandscapeRight",s.faceUp="FaceUp",s.faceDown="FaceDown",s.square="Square",(a=e.DeviceCurrentStateStatusBarOrientationEnum||(e.DeviceCurrentStateStatusBarOrientationEnum={})).portrait="portrait",a.portraitUpsideDown="portrait_upside_down",a.landscape="landscape",a.landscapeLeft="LandscapeLeft",a.landscapeRight="LandscapeRight",a.faceUp="FaceUp",a.faceDown="FaceDown",a.square="Square",(u=e.DeviceInformationPlatformEnum||(e.DeviceInformationPlatformEnum={})).iOS="iOS",u.android="Android",u.web="web",u.desktop="desktop",u.tvOS="tvOS",u.roku="roku",u.outOfBand="out_of_band",u.smartTV="smart_tv",u.xbox="xbox",(c=e.EventTypeEnum||(e.EventTypeEnum={})).unknown="unknown",c.sessionStart="session_start",c.sessionEnd="session_end",c.screenView="screen_view",c.customEvent="custom_event",c.crashReport="crash_report",c.optOut="opt_out",c.firstRun="first_run",c.preAttribution="pre_attribution",c.pushRegistration="push_registration",c.applicationStateTransition="application_state_transition",c.pushMessage="push_message",c.networkPerformance="network_performance",c.breadcrumb="breadcrumb",c.profile="profile",c.pushReaction="push_reaction",c.commerceEvent="commerce_event",c.userAttributeChange="user_attribute_change",c.userIdentityChange="user_identity_change",c.uninstall="uninstall",c.validationResult="validation_result",(d=e.IdentityTypeEnum||(e.IdentityTypeEnum={})).other="other",d.customerId="customer_id",d.facebook="facebook",d.twitter="twitter",d.google="google",d.microsoft="microsoft",d.yahoo="yahoo",d.email="email",d.alias="alias",d.facebookCustomAudienceId="facebook_custom_audience_id",d.otherId2="other_id_2",d.otherId3="other_id_3",d.otherId4="other_id_4",d.otherId5="other_id_5",d.otherId6="other_id_6",d.otherId7="other_id_7",d.otherId8="other_id_8",d.otherId9="other_id_9",d.otherId10="other_id_10",d.mobileNumber="mobile_number",d.phoneNumber2="phone_number_2",d.phoneNumber3="phone_number_3",(e.NetworkPerformanceEventEventTypeEnum||(e.NetworkPerformanceEventEventTypeEnum={})).networkPerformance="network_performance",(e.OptOutEventEnum||(e.OptOutEventEnum={})).optOut="opt_out",(l=e.ProductActionActionEnum||(e.ProductActionActionEnum={})).unknown="unknown",l.addToCart="add_to_cart",l.removeFromCart="remove_from_cart",l.checkout="checkout",l.checkoutOption="checkout_option",l.click="click",l.viewDetail="view_detail",l.purchase="purchase",l.refund="refund",l.addToWishlist="add_to_wishlist",l.removeFromWishlist="remove_from_wish_list",(e.ProfileEventEventTypeEnum||(e.ProfileEventEventTypeEnum={})).profile="profile",(g=e.ProfileEventDataProfileEventTypeEnum||(e.ProfileEventDataProfileEventTypeEnum={})).signup="signup",g.login="login",g.logout="logout",g.update="update",g.delete="delete",(p=e.PromotionActionActionEnum||(e.PromotionActionActionEnum={})).view="view",p.click="click",(e.PushMessageEventEventTypeEnum||(e.PushMessageEventEventTypeEnum={})).pushMessage="push_message",(f=e.PushMessageEventDataPushMessageTypeEnum||(e.PushMessageEventDataPushMessageTypeEnum={})).sent="sent",f.received="received",f.action="action",(v=e.PushMessageEventDataApplicationStateEnum||(e.PushMessageEventDataApplicationStateEnum={})).notRunning="not_running",v.background="background",v.foreground="foreground",(m=e.PushMessageEventDataPushMessageBehaviorEnum||(e.PushMessageEventDataPushMessageBehaviorEnum={})).received="Received",m.directOpen="DirectOpen",m.read="Read",m.influencedOpen="InfluencedOpen",m.displayed="Displayed",(e.PushRegistrationEventEventTypeEnum||(e.PushRegistrationEventEventTypeEnum={})).pushRegistration="push_registration",(e.SessionEndEventEventTypeEnum||(e.SessionEndEventEventTypeEnum={})).sessionEnd="session_end",(e.SessionStartEventEventTypeEnum||(e.SessionStartEventEventTypeEnum={})).sessionStart="session_start",(h=e.SourceInformationChannelEnum||(e.SourceInformationChannelEnum={})).native="native",h.javascript="javascript",h.pixel="pixel",h.desktop="desktop",h.partner="partner",h.serverToServer="server_to_server",(e.UserAttributeChangeEventEventTypeEnum||(e.UserAttributeChangeEventEventTypeEnum={})).userAttributeChange="user_attribute_change",(e.UserIdentityChangeEventEventTypeEnum||(e.UserIdentityChangeEventEventTypeEnum={})).userIdentityChange="user_identity_change"}(Y),function(e){e.other="other",e.customerId="customerid",e.facebook="facebook",e.twitter="twitter",e.google="google",e.microsoft="microsoft",e.yahoo="yahoo",e.email="email",e.alias="alias",e.facebookCustomAudienceId="facebookcustomaudienceid",e.otherId2="other2",e.otherId3="other3",e.otherId4="other4",e.otherId5="other5",e.otherId6="other6",e.otherId7="other7",e.otherId8="other8",e.otherId9="other9",e.otherId10="other10",e.mobileNumber="mobile_number",e.phoneNumber2="phone_number_2",e.phoneNumber3="phone_number_3"}(i||(i={}));var X=u.FeatureFlags.CaptureIntegrationSpecificIds;function $(e,t,r){if(!e||!t||1>t.length)return null;for(var n,i,o,s=r._IntegrationCapture,a=r._Helpers,u=a.getFeatureFlag,c=r.Identity.getCurrentUser(),d=[],l=null,g=0;g=e.MINIMUM_INTERVAL_MILLIS,this.uploadIntervalMillis=(r?Math.abs(y(r)%100)+1:100)},e.prototype.shouldDebounceAndUpdateLastASTTime=function(){var e=Date.now();return e-this.lastASTEventTimeu.status)t.verbose("Upload success for request ID: ".concat(i[o].source_request_id));else{if(500e._Store.SDKConfig.integrationDelayTimeout)return!1;for(var i in t)if(!0===t[i])return!0;return!1},this.createMainStorageName=function(e){return e?ev.currentStorageName+"_"+e:ev.currentStorageName},this.createProductStorageName=function(e){return e?ev.currentStorageProductsName+"_"+e:ev.currentStorageProductsName},this.converted=k,this.findKeyInObject=m,this.parseNumber=b,this.inArray=v,this.isObject=I,this.decoded=E,this.parseStringOrNumber=C,this.generateHash=y,this.generateUniqueId=_,this.Validators=ep}var eh=u.Messages,ey="mParticleAndroid",eS="mParticle";function e_(e){var t=this;this.initializeSessionAttributes=function(e){var r=u.NativeSdkPaths.SetSessionAttribute,n=JSON.stringify({key:"$src_env",value:"webview"}),i=JSON.stringify({key:"$src_key",value:e});t.sendToNative(r,n),e&&t.sendToNative(r,i)},this.isBridgeV2Available=function(e){if(!e)return!1;var t=eS+"_"+e+"_v2";return!!(window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.hasOwnProperty(t))||!!(window.mParticle&&window.mParticle.uiwebviewBridgeName&&window.mParticle.uiwebviewBridgeName===t)||!!window.hasOwnProperty(ey+"_"+e+"_v2")},this.isWebviewEnabled=function(r,n){return e._Store.bridgeV2Available=t.isBridgeV2Available(r),e._Store.bridgeV1Available=t.isBridgeV1Available(),2===n?e._Store.bridgeV2Available:!(window.mParticle&&window.mParticle.uiwebviewBridgeName&&window.mParticle.uiwebviewBridgeName!==eS+"_"+r+"_v2")&&2>n&&(e._Store.bridgeV2Available||e._Store.bridgeV1Available)},this.isBridgeV1Available=function(){return!!(e._Store.SDKConfig.useNativeSdk||window.mParticleAndroid||e._Store.SDKConfig.isIOS)},this.sendToNative=function(r,n){return e._Store.bridgeV2Available&&2===e._Store.SDKConfig.minWebviewBridgeVersion||e._Store.bridgeV2Available&&2>e._Store.SDKConfig.minWebviewBridgeVersion?void t.sendViaBridgeV2(r,n,e._Store.SDKConfig.requiredWebviewBridgeName):e._Store.bridgeV1Available&&2>e._Store.SDKConfig.minWebviewBridgeVersion?void t.sendViaBridgeV1(r,n):void 0},this.sendViaBridgeV1=function(r,n){window.mParticleAndroid&&window.mParticleAndroid.hasOwnProperty(r)?(e.Logger.verbose(eh.InformationMessages.SendAndroid+r),window.mParticleAndroid[r](n)):e._Store.SDKConfig.isIOS&&(e.Logger.verbose(eh.InformationMessages.SendIOS+r),t.sendViaIframeToIOS(r,n))},this.sendViaIframeToIOS=function(e,t){var r=document.createElement("IFRAME");r.setAttribute("src","mp-sdk://"+e+"/"+encodeURIComponent(t)),document.documentElement.appendChild(r),r.parentNode.removeChild(r)},this.sendViaBridgeV2=function(r,n,i){if(i){var o,s,a=window[ey+"_"+i+"_v2"],u=eS+"_"+i+"_v2";return window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers[u]&&(o=window.webkit.messageHandlers[u]),e.uiwebviewBridgeName===u&&(s=e[u]),a&&a.hasOwnProperty(r)?(e.Logger.verbose(eh.InformationMessages.SendAndroid+r),void a[r](n)):void(o?(e.Logger.verbose(eh.InformationMessages.SendIOS+r),o.postMessage(JSON.stringify({path:r,value:n?JSON.parse(n):null}))):s&&(e.Logger.verbose(eh.InformationMessages.SendIOS+r),t.sendViaIframeToIOS(r,n)))}}}var eI=u.Messages.InformationMessages;function eb(e){var t=this;this.attemptCookieSync=function(r,n){var i=e._Store,o=i.pixelConfigurations,s=i.webviewBridgeEnabled;if(r&&!s){var a=e._Persistence.getPersistence();N(a)||o.forEach(function(i){var o,s,u=!1,c=i.filteringConsentRuleValues,d=i.pixelUrl,l=i.redirectUrl,g=i.moduleId,p=i.frequencyCap,f=(c||{}).values;if(!N(d)&&(N(f)||(u=!0),!(u&&n))&&(0,e._Consent.isEnabledForUserConsent)(c,e.Identity.getCurrentUser())){var v=null!=(s=null==(o=a[r])?void 0:o.csd)?s:{};if(eP(p,v[g]||null)){var m=A(r,d,l);t.performCookieSync(m,g.toString(),r,v)}}})}},this.performCookieSync=function(t,r,n,i){var o=document.createElement("img");e.Logger.verbose(eI.CookieSync),o.onload=function(){i[r]=new Date().getTime(),e._Persistence.saveUserCookieSyncDatesToPersistence(n,i)},o.src=t}}var eP=function(e,t){return!t||new Date().getTime()>new Date(t).getTime()+864e5*e},eC=u.Messages;function ew(e){var t=this;this.initialize=function(){if(e._Store.sessionId){var r=6e4*e._Store.SDKConfig.sessionTimeout;if(new Date>new Date(e._Store.dateLastEventSent.getTime()+r))t.endSession(),t.startNewSession();else{var n=e._Persistence.getPersistence();n&&!n.cu&&(e.Identity.identify(e._Store.SDKConfig.identifyRequest,e._Store.SDKConfig.identityCallback),e._Store.identifyCalled=!0,e._Store.SDKConfig.identityCallback=null)}}else t.startNewSession()},this.getSession=function(){return e.Logger.warning(h("SessionManager.getSession()","SessionManager.getSessionId()")),this.getSessionId()},this.getSessionId=function(){return e._Store.sessionId},this.startNewSession=function(){if(e.Logger.verbose(eC.InformationMessages.StartingNewSession),e._Helpers.canLog()){e._Store.sessionId=e._Helpers.generateUniqueId().toUpperCase();var r=e.Identity.getCurrentUser(),n=r?r.getMPID():null;if(n&&(e._Store.currentSessionMPIDs=[n]),!e._Store.sessionStartDate){var i=new Date;e._Store.sessionStartDate=i,e._Store.dateLastEventSent=i}t.setSessionTimer(),e._Store.identifyCalled||(e.Identity.identify(e._Store.SDKConfig.identifyRequest,e._Store.SDKConfig.identityCallback),e._Store.identifyCalled=!0,e._Store.SDKConfig.identityCallback=null),e._Events.logEvent({messageType:J.MessageType.SessionStart})}else e.Logger.verbose(eC.InformationMessages.AbandonStartSession)},this.endSession=function(r){if(e.Logger.verbose(eC.InformationMessages.StartingEndSession),r)return e._Events.logEvent({messageType:J.MessageType.SessionEnd}),e._Store.nullifySession(),void(null==(n=e._timeOnSiteTimer)||n.resetTimer());if(!e._Helpers.canLog())return e.Logger.verbose(eC.InformationMessages.AbandonEndSession),void(null==(i=e._timeOnSiteTimer)||i.resetTimer());var n,i,o,s,a,u,c=e._Persistence.getPersistence();if(!c||c.gs&&!c.gs.sid)return e.Logger.verbose(eC.InformationMessages.NoSessionToEnd),void(null==(o=e._timeOnSiteTimer)||o.resetTimer());c.gs.sid&&e._Store.sessionId!==c.gs.sid&&(e._Store.sessionId=c.gs.sid),(null==(s=null==c?void 0:c.gs)?void 0:s.les)&&(u=6e4*e._Store.SDKConfig.sessionTimeout,new Date().getTime()-c.gs.lesi?void n.currentSessionMPIDs.push(e):void(0=i.length?"us1":i[0];for(var s in r){if("configUrl"==s){n[s]=e[s]||r[s];continue}if(e.hasOwnProperty(s))n[s]=e[s];else{var a=r[s].split(".");n[s]=(function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;io&&u.hasOwnProperty(d)&&-1===a.indexOf(d)&&delete t[d];for(var l,g=0;go;g++)t[l=a[g]]?(e.Logger.verbose("Size of new encoded cookie is larger than maxCookieSize setting of "+o+". Removing from cookie the earliest logged in MPID containing: "+JSON.stringify(t[l],0,2)),delete t[l]):e.Logger.error("Unable to save MPID data to cookies because the resulting encoded cookie is larger than the maxCookieSize setting of "+o+". We recommend using a maxCookieSize of 1500.")}else for(var p in t)t.hasOwnProperty(p)&&(s=n(t,r,i)).length>o&&!eR[p]&&p!==t.cu&&delete t[p];return s},this.findPrevCookiesBasedOnUI=function(t){var r,n=e._Persistence.getPersistence();if(t){for(var o in t.userIdentities)if(n&&Object.keys(n).length){for(var s in n)if(n[s].mpid){var a=n[s].ui;for(var u in a)if(o===u&&t.userIdentities[o]===a[u]){r=s;break}}}}r&&i.storeDataInMemory(n,r)},this.encodePersistence=function(t){for(var r in(t=JSON.parse(t)).gs)t.gs.hasOwnProperty(r)&&(eN[r]?t.gs[r]&&(Array.isArray(t.gs[r])&&t.gs[r].length||e._Helpers.isObject(t.gs[r])&&Object.keys(t.gs[r]).length)?t.gs[r]=eM.encode(JSON.stringify(t.gs[r])):delete t.gs[r]:"ie"===r?t.gs[r]=+!!t.gs[r]:t.gs[r]||delete t.gs[r]);for(var n in t)if(t.hasOwnProperty(n)&&!eR[n])for(r in t[n])t[n].hasOwnProperty(r)&&eN[r]&&(e._Helpers.isObject(t[n][r])&&Object.keys(t[n][r]).length?t[n][r]=eM.encode(JSON.stringify(t[n][r])):delete t[n][r]);return JSON.stringify(t).replace(/\"/g,"'").replace(/,/g,"|")},this.decodePersistence=function(t){try{if(t){if(t=JSON.parse(t.replace(/\'/g,'"').replace(/\|/g,",")),e._Helpers.isObject(t)&&Object.keys(t).length){for(var r in t.gs)t.gs.hasOwnProperty(r)&&(eN[r]?t.gs[r]=JSON.parse(eM.decode(t.gs[r])):"ie"===r&&(t.gs[r]=!!t.gs[r]));for(var n in t)if(t.hasOwnProperty(n))if(eR[n])"l"===n&&(t[n]=!!t[n]);else for(r in t[n])t[n].hasOwnProperty(r)&&eN[r]&&t[n][r].length&&(t[n][r]=JSON.parse(eM.decode(t[n][r])))}return JSON.stringify(t)}}catch(t){e.Logger.error("Problem with decoding cookie",t)}},this.getCookieDomain=function(){if(e._Store.SDKConfig.cookieDomain)return e._Store.SDKConfig.cookieDomain;var t=i.getDomain(document,location.hostname);return""===t?"":"."+t},this.getDomain=function(e,t){var r,n,i=t.split(".");for(r=i.length-1;0=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc=0;--r){var n=this.tryEntries[r];if(n.tryLoc=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;k(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:U(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),y}},i}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(eB);var ez=(0,eB.exports)();try{regeneratorRuntime=ez}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=ez:Function("r","regeneratorRuntime = r")(ez)}var eQ=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(ez);function eJ(e,t,r,n){var i=this;return{getUserIdentities:function(){var i={},o=r._Store.getUserIdentities(e);for(var s in o)if(o.hasOwnProperty(s)){var a=J.IdentityType.getIdentityName(r._Helpers.parseNumber(s));n&&(!n||n.isIdentityBlocked(a))||(i[a]=o[s])}return{userIdentities:i=r._Helpers.filterUserIdentitiesForForwarders(i,t.userIdentityFilters)}},getMPID:function(){return e},getUserAttributesLists:function(e){var t,o={};for(var s in t=i.getAllUserAttributes())t.hasOwnProperty(s)&&Array.isArray(t[s])&&(n&&(!n||n.isAttributeKeyBlocked(s))||(o[s]=t[s].slice()));return r._Helpers.filterUserAttributes(o,e.userAttributeFilters)},getAllUserAttributes:function(){var i={},o=r._Store.getUserAttributes(e);if(o)for(var s in o)o.hasOwnProperty(s)&&(n&&(!n||n.isAttributeKeyBlocked(s))||(Array.isArray(o[s])?i[s]=o[s].slice():i[s]=o[s]));return r._Helpers.filterUserAttributes(i,t.userAttributeFilters)}}}var eG=u.IdentityMethods,eY=eG.Modify,eX=eG.Identify,e$=eG.Login,eZ=eG.Logout;function e0(e,t){var r,n,i=this,o=this;this.forwarderStatsUploader=new el(e,t).initializeForwarderStatsUploader();var s={setUserAttribute:"setUserAttribute",removeUserAttribute:"removeUserAttribute"};this.initForwarders=function(t,r){var n=e.Identity.getCurrentUser();!e._Store.webviewBridgeEnabled&&e._Store.configuredForwarders&&(e._Store.configuredForwarders.sort(function(e,t){return e.settings.PriorityValue=e.settings.PriorityValue||0,t.settings.PriorityValue=t.settings.PriorityValue||0,-1*(e.settings.PriorityValue-t.settings.PriorityValue)}),e._Store.activeForwarders=e._Store.configuredForwarders.filter(function(i){if(!e._Consent.isEnabledForUserConsent(i.filteringConsentRuleValues,n)||!o.isEnabledForUserAttributes(i.filteringUserAttributeValue,n)||!o.isEnabledForUnknownUser(i.excludeAnonymousUser,n))return!1;var s=e._Helpers.filterUserIdentities(t,i.userIdentityFilters),a=e._Helpers.filterUserAttributes(n?n.getAllUserAttributes():{},i.userAttributeFilters);return i.initialized||(i.logger=e.Logger,i.init(i.settings,r,!1,null,a,s,e._Store.SDKConfig.appVersion,e._Store.SDKConfig.appName,e._Store.SDKConfig.customFlags,e._Store.clientId),i.initialized=!0),!0}))},this.isEnabledForUserAttributes=function(t,r){if(!t||!e._Helpers.isObject(t)||!Object.keys(t).length)return!0;if(!r)return!1;var n,i,o=r.getAllUserAttributes(),s=!1;try{if(o&&e._Helpers.isObject(o)&&Object.keys(o).length){for(var a in o)if(o.hasOwnProperty(a)&&(n=ef.hashAttributeConditionalForwarding(a),i=ef.hashAttributeConditionalForwarding(o[a]),n===t.userAttributeName&&i===t.userAttributeValue)){s=!0;break}}return!t||t.includeOnMatch===s}catch(e){return!0}},this.isEnabledForUnknownUser=function(e,t){return!!(t&&t.isLoggedIn()||!e)},this.applyToForwarders=function(t,r){e._Store.activeForwarders.length&&e._Store.activeForwarders.forEach(function(n){if(n[t])try{var i=n[t](r);i&&e.Logger.verbose(i)}catch(t){e.Logger.verbose(t)}})},this.sendEventToForwarders=function(t){var r,n,i,o=function(t,r){t.UserIdentities&&t.UserIdentities.length&&t.UserIdentities.forEach(function(n,i){e._Helpers.inArray(r,ef.hashUserIdentity(n.Type))&&(t.UserIdentities.splice(i,1),0i.status?(this.logger.verbose("User Audiences successfully received"),[4,i.json()]):[3,4];case 3:s={currentAudienceMemberships:null==(o=u.sent())?void 0:o.audience_memberships};try{t(s)}catch(e){throw Error("Error invoking callback on user audience response.")}return[3,5];case 4:if(401===i.status)throw Error("`HTTP error status ${userAudiencePromise.status} while retrieving User Audiences - please verify your API key.`");if(403===i.status)throw Error("`HTTP error status ${userAudiencePromise.status} while retrieving User Audiences - please verify your workspace is enabled for audiences.`");throw Error("Uncaught HTTP Error ".concat(i.status,"."));case 5:return[3,7];case 6:return a=u.sent(),this.logger.error("Error retrieving audiences. ".concat(a)),[3,7];case 7:return[2]}})})},e}(),tp=function(e){return N(e)||e.forEach(function(e){O(e)?e():Array.isArray(e)&&tf(e)}),[]},tf=function(e){var t=e.splice(0,1)[0];if("undefined"!=typeof window&&window.mParticle&&window.mParticle[e[0]])window.mParticle[t].apply(window.mParticle,e);else{var r=t.split(".");try{for(var n,i=window.mParticle,o=window.mParticle,s=0;s(t.getLastSeenTime()||0)?-1:1}),r},aliasUsers:function(t,r){var n;if(t.destinationMpid&&t.sourceMpid||(n=tv.ValidationMessages.AliasMissingMpid),t.destinationMpid===t.sourceMpid&&(n=tv.ValidationMessages.AliasNonUniqueMpid),t.startTime&&t.endTime||(n=tv.ValidationMessages.AliasMissingTime),t.startTime>t.endTime&&(n=tv.ValidationMessages.AliasStartBeforeEndTime),n)return e.Logger.warning(n),void e._Helpers.invokeAliasCallback(r,tm.validationIssue,n);if(e._Helpers.canLog())if(e._Store.webviewBridgeEnabled)e._NativeSdkHelpers.sendToNative(u.NativeSdkPaths.Alias,JSON.stringify(e._Identity.IdentityRequest.convertAliasToNative(t))),e._Helpers.invokeAliasCallback(r,tm.nativeIdentityRequest,"Alias request sent to native sdk");else{e.Logger.verbose(tv.InformationMessages.StartingAliasRequest+": "+t.sourceMpid+" -> "+t.destinationMpid);var i=e._Identity.IdentityRequest.createAliasNetworkRequest(t);e._IdentityAPIClient.sendAliasRequest(i,r)}else e._Helpers.invokeAliasCallback(r,tm.loggingDisabledOrMissingAPIKey,tv.InformationMessages.AbandonAliasUsers),e.Logger.verbose(tv.InformationMessages.AbandonAliasUsers)},createAliasRequest:function(t,r){try{if(!r||!t)return e.Logger.error("'destinationUser' and 'sourceUser' must both be present"),null;var n=t.getFirstSeenTime();n||e.Identity.getUsers().forEach(function(e){e.getFirstSeenTime()&&(!n||e.getFirstSeenTime()e._Store.SDKConfig.maxProducts&&(e.Logger.verbose("The cart contains "+o.length+" items. Only "+e._Store.SDKConfig.maxProducts+" can currently be saved in cookies."),o=o.slice(-e._Store.SDKConfig.maxProducts)),(i=e._Persistence.getAllUserProductsFromLS())[t].cp=o,e._Persistence.setCartProducts(i))},remove:function(r,n){e.Logger.warning("Deprecated function Identity.getCurrentUser().getCart().remove() will be removed in future releases");var i,o,s=-1,a=null;e._Store.webviewBridgeEnabled?e._NativeSdkHelpers.sendToNative(u.NativeSdkPaths.RemoveFromCart,JSON.stringify(r)):(e._SessionManager.resetSessionTimer(),(o=e._Persistence.getUserProductsFromLS(t))&&(o.forEach(function(e,t){e.Sku===r.Sku&&(s=t,a=e)}),-1