1__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"InAppMessage",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(_e,"InAppMessageButton",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(_e,"ControlMessage",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(_e,"FullScreenMessage",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(_e,"HtmlMessage",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(_e,"ModalMessage",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(_e,"SlideUpMessage",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(_e,"automaticallyShowInAppMessages",{enumerable:!0,get:function(){return c.automaticallyShowInAppMessages}}),Object.defineProperty(_e,"logInAppMessageButtonClick",{enumerable:!0,get:function(){return f.logInAppMessageButtonClick}}),Object.defineProperty(_e,"logInAppMessageClick",{enumerable:!0,get:function(){return b.logInAppMessageClick}}),Object.defineProperty(_e,"logInAppMessageHtmlClick",{enumerable:!0,get:function(){return M.logInAppMessageHtmlClick}}),Object.defineProperty(_e,"logInAppMessageImpression",{enumerable:!0,get:function(){return I.logInAppMessageImpression}}),Object.defineProperty(_e,"showInAppMessage",{enumerable:!0,get:function(){return A.showInAppMessage}}),Object.defineProperty(_e,"subscribeToInAppMessage",{enumerable:!0,get:function(){return y.subscribeToInAppMessage}}),Object.defineProperty(_e,"deferInAppMessage",{enumerable:!0,get:function(){return j.deferInAppMessage}}),Object.defineProperty(_e,"getDeferredInAppMessage",{enumerable:!0,get:function(){return O.getDeferredInAppMessage}});var n=e(r(d[0])),t=e(r(d[1])),u=e(r(d[2])),s=e(r(d[3])),o=e(r(d[4])),p=e(r(d[5])),l=e(r(d[6])),c=r(d[7]),f=r(d[8]),b=r(d[9]),M=r(d[10]),I=r(d[11]),A=r(d[12]),y=r(d[13]),j=r(d[14]),O=r(d[15])},4348,[4425,4427,4423,4429,4424,4430,4431,4442,4457,4451,4455,4452,4447,4460,4461,4462]); 2__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"User",{enumerable:!0,get:function(){return u.default}});var e,t=r(d[0]),u=(e=t)&&e.__esModule?e:{default:e}},4349,[4402]); 3__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"ORIENTATION",{enumerable:!0,get:function(){return n}}),_e._isPhone=e,_e._getOrientation=t,_e._openUri=o,_e._getCurrentUrl=c,Object.defineProperty(_e,"WindowUtils",{enumerable:!0,get:function(){return u}});const n={PORTRAIT:0,LANDSCAPE:1};function e(){return screen.width<=600}function t(){if("orientation"in window)return 90===Math.abs(window.orientation)||270===window.orientation?n.LANDSCAPE:n.PORTRAIT;const e=window;if("screen"in e){let t=e.screen.orientation||screen.mozOrientation||screen.msOrientation;return null!=t&&"object"==typeof t&&(t=t.type),"landscape-primary"===t||"landscape-secondary"===t?n.LANDSCAPE:n.PORTRAIT}return n.PORTRAIT}function o(n,e,t){n&&(e||null!=t&&t.metaKey?window.open(n):window.location=n)}function c(){return window.location.href}const u={openUri:o,da:e,ga:t,Qh:c}},4350,[]); 4__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.convertMsToSeconds=function(e,n=!1){let t=e/1e3;return n&&(t=Math.floor(t)),t},_e.convertSecondsToMs=function(e){return 1e3*e},_e.dateFromUnixTimestamp=function(e){if(null==e)return null;const n=parseInt(e.toString());return isNaN(n)?null:new Date(1e3*n)},_e.toValidBackendTimeString=function(n){return null!=n&&(0,e.isDate)(n)?n.toISOString().replace(/\.[0-9]{3}Z$/,""):n},_e.rehydrateDateAfterJsonization=function(e){return null==e||""===e?null:new Date(e)},_e.timestampOrNow=function(e){return null==e||""===e?(new Date).valueOf():e},_e.secondsAgo=function(e){return((new Date).valueOf()-e.valueOf())/1e3},_e.secondsInTheFuture=function(e){return(e.valueOf()-(new Date).valueOf())/1e3};var e=r(d[0])},4351,[4360]); 5__d(function(g,r,i,a,m,e,d){"use strict";
5Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"MAX_PURCHASE_QUANTITY",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"FEED_ANIMATION_DURATION",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"GLOBAL_RATE_LIMIT_CAPACITY_DEFAULT",{enumerable:!0,get:function(){return _}}),Object.defineProperty(e,"GLOBAL_RATE_LIMIT_REFILL_RATE_DEFAULT",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"LAST_REQUEST_TO_ENDPOINT_MS_AGO_DEFAULT",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"MAX_RETRY_COUNT_PER_REQUEST",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"REQUEST_ATTEMPT_DEFAULT",{enumerable:!0,get:function(){return A}}),Object.defineProperty(e,"DISMISSALS_CACHE_SIZE_DEFAULT",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"REQUEST_BACKOFF_MIN_SLEEP_MS_DEFAULT",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"REQUEST_BACKOFF_SCALE_FACTOR_DEFAULT",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"REQUEST_BACKOFF_MAX_SLEEP_MS_DEFAULT",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"CoreStrings",{enumerable:!0,get:function(){return O}});const t=100,n=500,_=30,u=30,E=72e5,o=15,A=1,T=200,c=1e4,b=3,f=3e5,O={ee:"Braze must be initialized before calling methods.",je:"logCustomEvent",QE:"logEcommerceEvent",Ku:"setCustomUserAttribute"}},4352,[]); 6__d(function(g,_r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}});var t=_r(d[0]);class n{constructor(){this.In={}}Ut(n){if("function"!=typeof n)return null;const r=t.Guid.de();return this.In[r]=n,r}removeSubscription(t){delete this.In[t]}removeAllSubscriptions(){this.In={}}Ve(){return Object.keys(this.In).length}A(t){const n=[];for(const r in this.In){const s=this.In[r];n.push(s(t))}return n}}},4353,[4356]); 7__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o}});const n={init:function(o){void 0===o&&void 0!==n.zg||(n.zg=!!o),n.i||(n.i=!0)},destroy:function(){n.i=!1,n.zg=void 0,n.Ud=void 0},setLogger:function(o){"function"==typeof o?(n.init(),n.Ud=o):n.info("Ignoring setLogger call since logger is not a function")},toggleLogging:function(){n.init(),n.zg?n.zg=!1:n.zg=!0},info:function(o){if(n.zg){const t="Braze: "+o;null!=n.Ud&&n.Ud(t)}},warn:function(o){if(n.zg){const t="Braze SDK Warning: "+o+" (v6.9.0)";null!=n.Ud?n.Ud(t):console.warn(t)}},error:function(o){if(n.zg){const t="Braze SDK Error: "+o+" (v6.9.0)";null!=n.Ud?n.Ud(t):console.error(t)}}};var o=n},4354,[]); 8__d(function(g,_r,_i,_a,_m,_e,_d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return P}}),Object.defineProperty(_e,"BrazeSdkInstance",{enumerable:!0,get:function(){return k}}),Object.defineProperty(_e,"OPTIONS",{enumerable:!0,get:function(){return O}});var i=t(_r(_d[0])),e=t(_r(_d[1])),s=t(_r(_d[2])),h=t(_r(_d[3])),r=t(_r(_d[4])),n=_r(_d[5]),o=t(_r(_d[6])),l=t(_r(_d[7])),u=t(_r(_d[8])),a=t(_r(_d[9])),d=_r(_d[10]),c=t(d),f=t(_r(_d[11])),p=t(_r(_d[12])),v=_r(_d[13]),w=t(_r(_d[14])),I=_r(_d[15]),S=t(_r(_d[16])),b=_r(_d[17]),y=_r(_d[18]),m=_r(_d[19]),z=_r(_d[20]),A=_r(_d[21]),j=t(_r(_d[22]));const O={_h:"allowCrawlerActivity",Nh:"baseUrl",se:"cookieExpiryInDays",Oh:"noCookies",Th:"devicePropertyAllowlist",ka:"disablePushTokenMaintenance",Rh:"enableLogging",Ph:"enableSdkAuthentication",_a:"manageServiceWorkerExternally",Dh:"minimumIntervalBetweenTriggerActionsInSeconds",Lh:"sessionTimeoutInSeconds",yh:"appVersion",Mh:"appVersionNumber",xa:"serviceWorkerLocation",Ma:"safariWebsitePushId",qa:"localization",sr:"contentSecurityNonce",nr:"allowUserSuppliedJavascript",ja:"inAppMessageZIndex",ba:"openInAppMessagesInNewTab",tn:"openCardsInNewTab",oh:"requireExplicitInAppMessageDismissal",Uh:"doNotLoadFontAwesome",Wh:"deviceId",ya:"serviceWorker
8Scope",Ye:"dustHost",Bh:"sdkFlavor"};class k{constructor(){this.tu="",this.Vh="",this.Kh=void 0,this.Gh=null,this.eu=null,this.B=null,this.Ru=null,this.h=null,this.C=null,this.j=null,this.Ss=null,this.Yh="",this.isInitialized=!1,this.$h=!1,this.qh=new p.default,this.Hh=new p.default,this.options={},this.Jh=[],this.Xh=[],this.In=[],this.Vh="6.9.0"}Zh(t){this.qh.Ut(t)}uh(t){this.Hh.Ut(t)}initialize(t,e){var w,b,z;if(this.ao())return A.logger.info("Braze has already been initialized with an API key."),!0;this.options=e||{};let k=this.er(O.Rh);const P=(0,y.parseQueryStringKeyValues)(m.WindowUtils.Qh());if(P&&"true"===P.brazeLogging&&(k=!0),A.logger.init(k),A.logger.info(`Initialization Options: ${JSON.stringify(this.options,null,2)}`),null==t||""===t||"string"!=typeof t)return A.logger.error("Braze requires a valid API key to be initialized."),!1;this.tu=t;let B=this.er(O.Nh);if(null==B||""===B||"string"!=typeof B)return A.logger.error("Braze requires a valid baseUrl to be initialized."),!1;!1===/^https?:/.test(B)&&(B=`https://${B}`);const R=B;if(B=document.createElement("a"),B.href=R,"/"===B.pathname&&(B=`${B}api/v3`),this.Yh=B.toString(),s.default.il&&!this.er(O._h))return A.logger.info("Ignoring activity from crawler bot "+navigator.userAgent),this.$h=!0,!1;const C=this.er(O.Oh)||!1,E=this.er(O.se),T=f.default.sl();if(this.j=f.default.rl(t,C,E),C&&this.j.hl(t),new c.default.le(null,!0).wr(d.STORAGE_KEYS.ce))return A.logger.info("Ignoring all activity due to previous opt out"),this.$h=!0,!1;for(const t of(0,n.keys)(this.options))-1===(0,n.values)(A.SupportedOptions).indexOf(t)&&A.logger.warn(`Ignoring unknown initialization option '${t}'.`);const $=["mparticle","wordpress","tealium"];if(null!=this.er(O.Bh)){const t=this.er(O.Bh);-1!==$.indexOf(t)?this.Kh=t:A.logger.error("Invalid sdk flavor passed: "+t)}let _=this.er(A.SupportedOptions.Th);if(null!=_)if((0,n.isArray)(_)){const t=[];for(let i=0;i<_.length;i++)(0,n.validateValueIsFromEnum)(r.default,_[i],"devicePropertyAllowlist contained an invalid value.","DeviceProperties")&&t.push(_[i]);_=t}else A.logger.error("devicePropertyAllowlist must be an array. Defaulting to all properties."),_=null;const N=this.er(O.Wh);if(N){const t=new j.default(N);this.j.Iu(d.STORAGE_KEYS.Ou.Wh,t)}this.eu=new h.default(this.j,_),this.h=new u.default(this.j),this.Ss=new S.default(this.h,this.j),this.C=new a.default(this.j,this.Ss,this.h,this.er(O.Lh));const q=new p.default;this.Gh=new i.default(this.j,this.er(O.Ph),q),this.S(q),this.B=new o.default(this.eu,this.j,this.Gh,this.Ss,this.C,this.h,this.tu,this.Yh,this.Vh,this.Kh||"",this.er(O.yh),this.er(O.Mh)),this.Ru=new l.default(this.tu,this.Yh,this.C,this.eu,this.Ss,this.h,this.j,t=>{if(this.ao())for(const i of this.vr())i.q(t)},this.Gh,this.B),this.Ru.initialize(),C||this.j.ll(),A.logger.info(`Initialized for the Braze backend at "${this.er(O.Nh)}" with API key "${this.tu}".`),v.TriggersProviderFactory.t(),(0,I.subscribeToDust)(),this.h.bo(()=>{var t;this.isInitialized&&(null===(t=this.h)||void 0===t?void 0:t.lo())&&_r(_d[24])(_d[23],_d.paths).then(t=>{this.isInitialized&&(0,t.default)()})}),this.Ru.rn(()=>{var t;this.isInitialized&&(null===(t=this.h)||void 0===t?void 0:t.lo())&&_r(_d[24])(_d[23],_d.paths).then(t=>{this.isInitialized&&(0,t.default)(void 0,void 0,!0)})}),this.qh.A(this.options),this.isInitialized=!0,window.dispatchEvent(new CustomEvent("braze.initialized"));const M=null===(w=this.C)||void 0===w?void 0:w.al();return T||null==M||(null===(b=this.C)||void 0===b?void 0:b.ul((new Date).valueOf(),M))||null===(z=this.Ru)||void 0===z||z.Ar(),!0}destroy(t){if(A.logger.destroy(),this.ao()){this.Hh.A(),this.Hh.removeAllSubscriptions();for(const t of this.Jh)t.destroy();this.Jh=[];for(const t of this.Xh)t.clearData(!1);this.B&&this.B.fo(),this.Xh=[],this.removeAllSubscriptions(),this.In=[],null!=this.Ru&&this.Ru.destroy(),this.Ru=null,this.Gh=null,this.eu=null,this.B=null,this.h=null,this.C=null,this.Ss=null,this.options={},this.Kh=void 0,this.isInitialized=!1,this.$h=!1,t&&(this.j=null)}}rr(){return!(this.cl()||!this.ao()&&(console.warn(z.CoreStrings.ee),1))}za(){return this.tu}Er(){return this.Gh}ht(){return this.Yh}ue(){return this.eu}m(){return this.B}er(t){return this.options[t]}vr(){return this.Xh}nn(){return this.Ru}l(){return this.h}u(){return this.C}p(){return this.j}zr(){if(this.Ss&&this.Ru)return new b.User(this.Ss,this.Ru)}ir(){return this.Ss}
8dr(){return!0===this.er(O.nr)}g(t){let i=!1;for(const e of this.Jh)e===t&&(i=!0);i||this.Jh.push(t)}v(t){let i=!1;for(const e of this.Xh)e.constructor===t.constructor&&(i=!0);t instanceof e.default&&!i&&this.Xh.push(t)}S(t){t instanceof p.default&&this.In.push(t)}removeAllSubscriptions(){if(this.rr())for(const t of this.In)t.removeAllSubscriptions()}removeSubscription(t){if(this.rr())for(const i of this.In)i.removeSubscription(t)}fe(t){this.$h=t}ao(){return this.isInitialized}cl(){return this.$h}ar(t,i){return this.rr()?w.default.o().on(t,i):null}qi(){return this.Vh}}const P=new k},4355,{"0":4397,"1":4362,"2":4404,"3":4409,"4":4375,"5":4360,"6":4411,"7":4413,"8":4416,"9":4418,"10":4359,"11":4420,"12":4353,"13":4381,"14":4465,"15":4470,"16":4471,"17":4349,"18":4363,"19":4350,"20":4352,"21":4356,"22":4400,"23":4387,"24":880,"paths":{}}); 9__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"logger",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(_e,"EncodingUtils",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(_e,"EventTypes",{enumerable:!0,get:function(){return u.EventTypes}}),Object.defineProperty(_e,"InternalEventTypes",{enumerable:!0,get:function(){return u.InternalEventTypes}}),Object.defineProperty(_e,"Guid",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(_e,"IndexedDBAdapter",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(_e,"SupportedOptions",{enumerable:!0,get:function(){return l.default}});var t=e(r(d[0])),n=e(r(d[1])),u=r(d[2]),f=e(r(d[3])),o=e(r(d[4])),l=e(r(d[5]))},4356,[4354,4393,4390,4394,4395,4396]); 10__d(function(g,_r,_i,a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return o}});var t=_r(_d[0]),u=e(_r(_d[1])),n=e(_r(_d[2])),l=e(_r(_d[3]));var o={Dt:(e,o,r)=>{var d,f;const i=new l.default,s=u.default.u();if(!s)return t.logger.info(`Not logging event with type "${e}" because the current session ID could not be found.`),i;const c=s.el();return i.Ce.push(new n.default(r||(null===(d=u.default.ir())||void 0===d?void 0:d.getUserId()),e,(new Date).valueOf(),c,o)),i.lt=(null===(f=u.default.p())||void 0===f?void 0:f.ol(i.Ce))||!1,i}}},4357,[4356,4355,4398,4358]); 11__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});class t{constructor(t=!1,s=[]){this.lt=t,this.Ce=s,this.lt=t,this.Ce=s}Cs(t){this.lt=this.lt&&t.lt,this.Ce.push(...t.Ce)}}},4358,[]); 12__d(function(g,_r,_i,_a,m,_e,d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}}),Object.defineProperty(_e,"STORAGE_KEYS",{enumerable:!0,get:function(){return l}});var e=t(_r(d[0])),s=t(_r(d[1])),r=_r(d[2]),o=_r(d[3]),n=_r(d[4]),a=t(_r(d[5])),i=_r(d[6]);const l={Ou:{Cu:"ab.storage.userId",Wh:"ab.storage.deviceId",um:"ab.storage.sessionId"},It:{ac:"ab.test",ZE:"ab.storage.events",$E:"ab.storage.attributes",tS:"ab.storage.attributes.anonymous_user",Ba:"ab.storage.device",Ka:"ab.storage.sdk_metadata",Pa:"ab.storage.session_id_for_cached_metadata",Uu:"ab.storage.pushToken",eS:"ab.storage.cardImpressions",sd:"ab.storage.serverConfig",sS:"ab.storage.triggers",rS:"ab.storage.triggers.ts",dm:"ab.storage.messagingSessionStart",bi:"ab.storage.cc",ji:"ab.storage.ccLastFullSync",yi:"ab.storage.ccLastCardUpdated",Ml:"ab.storage.globalRateLimitCurrentTokenCount",Ll:"ab.storage.dynamicRateLimitCurrentTokenCount",Zt:"ab.storage.ccClicks",ps:"ab.storage.ccImpressions",fs:"ab.storage.ccDismissals",oS:"ab.storage.lastDisplayedTriggerTimesById",nS:"ab.storage.lastDisplayedTriggerTime",aS:"ab.storage.triggerFireInstancesById",fh:"ab.storage.signature",iS:"ab.storage.brazeSyncRetryCount",zi:"ab.storage.sdkVersion",Fo:"ab.storage.ff",jo:"ab.storage.ffImpressions",qo:"ab.storage.ff
12LastRefreshAt",Do:"ab.storage.ff.sessionId",ES:"ab.storage.lastReqToEndpoint",SS:"ab.storage.requestAttempts",pa:"ab.storage.deferredIam",Bl:"ab.storage.lastSdkReq",lS:"ab.storage.alias",Tt:"ab.storage.banners",At:"ab.storage.banners.impressions",Xt:"ab.storage.banners.dismissals",kt:"ab.storage.banners.sessionId",Ht:"ab.storage.banners.lastRequestedTime",Xe:"ab.storage.dust.mite",Ye:"ab.storage.dust.host",Ze:"ab.storage.dust.auth",sn:"ab.storage.dust.expiration"},ce:"ab.optOut"};class u{constructor(t,e){this._S=t,this.uS=e,this._S=t,this.uS=e}hl(t){const e=(0,r.keys)(l.Ou),s=new u.le(t);for(const t of e)s.remove(l.Ou[t])}Iu(t,e){let r=null;null!=e&&e instanceof s.default&&(r=e.qt()),this._S.store(t,r)}cS(t){const e=this.$u(t);null!=e&&(e.pm=(new Date).valueOf(),this.Iu(t,e))}$u(t){const e=this._S.wr(t),r=(t=>{let e;try{e=JSON.parse(t)}catch(t){e=null}return e})(e);let o;if(r)o=s.default._u(r)||null,o&&this.Iu(t,o);else{const r=s.default.TS(e);o=s.default._u(r)||null,r!==e&&o&&this.Iu(t,o)}return o}jm(t){this._S.remove(t)}ll(){const t=(0,r.keys)(l.Ou);let e;for(const s of t)e=this.$u(l.Ou[s]),null!=e&&this.Iu(l.Ou[s],e)}ol(t){let e;if(null==t||0===t.length)return!1;e=(0,r.isArray)(t)?t:[t];let s=this.uS.wr(l.It.ZE);null!=s&&(0,r.isArray)(s)||(s=[]);for(let t=0;t<e.length;t++)s.push(e[t].qt());return this.uS.store(l.It.ZE,s)}gm(t){return null!=t&&this.ol([t])}hS(){let t=this.uS.wr(l.It.ZE);this.uS.remove(l.It.ZE),null==t&&(t=[]);const s=[];let n=!1,a=null;if((0,r.isArray)(t))for(let r=0;r<t.length;r++)e.default.AS(t[r])?s.push(e.default._u(t[r])):a=r;else n=!0;if(n||null!=a){let r="Stored events could not be deserialized as Events";n&&(r+=", was "+Object.prototype.toString.call(t)+" not an array"),null!=a&&(r+=", value at index "+a+" does not look like an event"),r+=", serialized values were of type "+typeof t+": "+JSON.stringify(t),s.push(new e.default(null,o.EventTypes.Ya,(new Date).valueOf(),null,{e:r}))}return s}Pt(t,e){return!!(0,r.validateValueIsFromEnum)(l.It,t,"StorageManager cannot store object.","STORAGE_KEYS.OBJECTS")&&this.uS.store(t,e)}St(t){return!!(0,r.validateValueIsFromEnum)(l.It,t,"StorageManager cannot retrieve object.","STORAGE_KEYS.OBJECTS")&&this.uS.wr(t)}Vt(t){return!!(0,r.validateValueIsFromEnum)(l.It,t,"StorageManager cannot remove object.","STORAGE_KEYS.OBJECTS")&&(this.uS.remove(t),!0)}clearData(){const t=(0,r.keys)(l.Ou),e=(0,r.keys)(l.It);for(let e=0;e<t.length;e++){const s=t[e];this._S.remove(l.Ou[s])}for(let t=0;t<e.length;t++){const s=e[t];this.uS.remove(l.It[s])}}gS(t){return t||l.It.tS}vl(t){let e=this.uS.wr(l.It.$E);null==e&&(e={});const s=this.gS(t[n.User.Sa]),r=e[s];for(const o in t)o!==n.User.Sa&&(null==e[s]||r&&null==r[o])&&this.Eu(t[n.User.Sa],o,t[o])}Eu(t,e,s){let r=this.uS.wr(l.It.$E);null==r&&(r={});const o=this.gS(t);let a=r[o];if(null==a&&(a={},null!=t&&(a[n.User.Sa]=t)),e===n.User.Bu){null==a[e]&&(a[e]={});for(const t in s)a[e][t]=s[t]}else a[e]=s;return r[o]=a,this.uS.store(l.It.$E,r)}RS(){const t=this.uS.wr(l.It.$E);this.uS.remove(l.It.$E);const e=[];for(const s in t)null!=t[s]&&e.push(t[s]);return e}Lu(t){const e=this.uS.wr(l.It.$E);if(null!=e){const s=this.gS(null),r=e[s];null!=r&&(e[s]=void 0,this.uS.store(l.It.$E,e),r[n.User.Sa]=t,this.vl(r))}const s=this.$u(l.Ou.um);let r=null;null!=s&&(r=s.Tu);const o=this.hS();if(null!=o)for(let e=0;e<o.length;e++){const s=o[e];null==s.userId&&s.sessionId==r&&(s.userId=t),this.gm(s)}}dS(){return this.uS.IS}}u.ec=class{constructor(t){this.tu=t,this.tu=t,this.IS=a.default.bS()?3:10}fS(t){return t+"."+this.tu}store(t,e){const s={v:e};try{return localStorage.setItem(this.fS(t),JSON.stringify(s)),!0}catch(t){return o.logger.info("Storage failure: "+(0,i.getErrorMessage)(t)),!1}}wr(t){try{let e=null;const s=localStorage.getItem(this.fS(t));return null!=s&&(e=JSON.parse(s)),null==e?null:e.v}catch(t){return o.logger.info("Storage retrieval failure: "+(0,i.getErrorMessage)(t)),null}}remove(t){try{localStorage.removeItem(this.fS(t))}catch(t){return o.logger.info("Storage removal failure: "+(0,i.getErrorMessage)(t)),!1}}},u.rc=class{constructor(){this.mS={},this.KS=5242880,this.IS=3}store(t,e){const s={value:e},r=this.YS(e);return r>this.KS?(o.logger.info("Storage failure: object is \u2248"+r+" bytes which is greater than the max of "+this.KS),!1):(this.mS[t]=s,!0)}YS(t){const e=[],s=[t];let r=0;for(;s.length;){const t=s.pop();if("boolean"==typeof t)r+=4;else if("string"==typeof t)r+=2*t.length;else if("number"==typeof t)r+=8;else if("object"==typeof t&&-1===e.indexOf(t)){let r,o;e.push(t);for(const e in t)o=t,r=e,s.push(o[r])}}return r}wr(t){const e=this.mS[t];return null==e?null:e.value}remove(t){this.mS[t]=null}},u.le=class{constructor(t,e,s){this.tu=t,this.NS=e,this.tu=t,this.DS=this.GS();const r="number"==typeof s&&s>0?s:400;this.CS=24*r*60,this.MS={},this.NS=!!e}fS(t){return null!=this.tu?t+"."+this.tu:t}GS(){let t=0,e=document.location.hostname;const s=e.split(".");for(;t<s.length-1&&-1===document.cookie.indexOf("ab._gd=ab._gd");)t++,e="."+s.slice(-1-t).join("."),document.cookie="ab._gd=ab._gd;domain="+e+";";return document.cookie="ab._gd=;expires="+new Date(0).toUTCString()+";domain="+e+";",e}me(){const t=new Date;return t.setTime(t.getTime()+60*this.CS*1e3),t.getFullYear()}
12pS(){const t=(0,r.values)(l.Ou),e=document.cookie.split(";");for(let s=0;s<e.length;s++){let r=e[s];for(;" "===r.charAt(0);)r=r.substring(1);let o=!1;for(let e=0;e<t.length;e++)if(0===r.indexOf(t[e])){o=!0;break}if(o){const t=r.split("=")[0];-1===t.indexOf("."+this.tu)&&this.vS(t)}}}store(t,e){this.pS();const s=this.fS(t),r=new Date;r.setTime(r.getTime()+60*this.CS*1e3);const n="expires="+r.toUTCString(),a="domain="+this.DS;let l;l=this.NS?e:encodeURIComponent(e);const u=s+"="+l+";"+n+";"+a+";path=/";if(u.length>=4093)return o.logger.info("Storage failure: string is "+u.length+" chars which is too large to store as a cookie."),this.MS[s]=!0,this.vS(s),!1;try{document.cookie=u}catch(t){return o.logger.info("Storage failure: "+(0,i.getErrorMessage)(t)),this.MS[s]=!0,!1}const h=this.NS?String(l):decodeURIComponent(l);return this.US(s)!==h?(o.logger.info(`Storage failure: unable to verify cookie write for "${s}". Falling back to other storage.`),this.MS[s]=!0,this.vS(s),!1):(delete this.MS[s],!0)}wr(t){const e=this.fS(t);return this.MS[e]?null:this.US(e)}US(t){const e=[],s=t+"=",r=document.cookie.split(";");for(let n=0;n<r.length;n++){let a=r[n];for(;" "===a.charAt(0);)a=a.substring(1);if(0===a.indexOf(s))try{let t;t=this.NS?a.substring(s.length,a.length):decodeURIComponent(a.substring(s.length,a.length)),e.push(t)}catch(e){return o.logger.info("Storage retrieval failure: "+(0,i.getErrorMessage)(e)),this.vS(t),null}}return e.length>0?e[e.length-1]:null}remove(t){this.vS(this.fS(t))}vS(t){const e=t+"=;expires="+new Date(0).toUTCString();document.cookie=e,document.cookie=e+";path=/";const s=e+";domain="+this.DS;document.cookie=s,document.cookie=s+";path=/"}},u.tc=class{constructor(t,e,s,r){this.tu=t,this.yS=[],e&&this.yS.push(new u.le(t,void 0,r)),s&&this.yS.push(new u.ec(t)),this.yS.push(new u.rc)}store(t,e){let s=!0;for(let r=0;r<this.yS.length;r++)s=this.yS[r].store(t,e)&&s;return s}wr(t){for(let e=0;e<this.yS.length;e++){const s=this.yS[e].wr(t);if(null!=s)return s}return null}remove(t){new u.le(this.tu).remove(t);for(let e=0;e<this.yS.length;e++)this.yS[e].remove(t)}}},4359,[4398,4400,4360,4356,4349,4404,4401]); 13__d(function(g,_r,_i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.values=e,_e.validateValueIsFromEnum=function(r,n,o,c){const i=e(r);return-1!==i.indexOf(n)||(t.logger.error(`${o} Valid values from ${c} are "${i.join('"/"')}".`),!1)},_e.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)},_e.isDate=function(t){return"[object Date]"===Object.prototype.toString.call(t)},_e.isObject=function(t){return"[object Object]"===Object.prototype.toString.call(t)},_e.intersection=function(t,...e){null==t&&(t=[]);const r=[],n=arguments.length;for(let e=0,o=t.length;e<o;e++){const o=t[e];if(-1!==r.indexOf(o))continue;let c=1;for(c=1;c<n&&-1!==arguments[c].indexOf(o);c++);c===n&&r.push(o)}return r},_e.keys=r,_e.isEqual=function t(e,n){if(e===n)return 0!==e||1/e==1/n;if(null==e||null==n)return e===n;const o=e.toString();if(o!==n.toString())return!1;switch(o){case"[object RegExp]":case"[object String]":return""+e==""+n;case"[object Number]":return+e!=+e?+n!=+n:0==+e?1/+e==1/n:+e==+n;case"[object Date]":case"[object Boolean]":return+e==+n}const c="[object Array]"===o;if(!c){if("object"!=typeof e||"object"!=typeof n)return!1;const t=e.constructor,r=n.constructor;if(t!==r&&!("function"==typeof t&&t instanceof t&&"function"==typeof r&&r instanceof r)&&"constructor"in e&&"constructor"in n)return!1}const i=[],u=[];let s=i.length;for(;s--;)if(i[s]===e)return u[s]===n;if(i.push(e),u.push(n),c){if(s=e.length,s!==n.length)return!1;for(;s--;)if(!t(e[s],n[s]))return!1}else{const o=r(e);let c;if(s=o.length,r(n).length!==s)return!1;for(;s--;)if(c=o[s],!Object.prototype.hasOwnProperty.call(n,c)||!t(e[c],n[c]))return!1}return i.pop(),u.pop(),!0};var t=_r(d[0]);function e(t){const e=[];let r;for(const n in t)r=n,Object.prototype.hasOwnProperty.call(t,r)&&void 0!==t[r]&&e.push(t[r]);return e}function r(t){const e=[];for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push(r);return e}},4360,[4356]); 14__d(function(g,_r,_i,a,m,_e,d){"use strict";
14Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"readResponseHeaders",{enumerable:!0,get:function(){return u}});var e,t=_r(d[0]),r=_r(d[1]),o=(e=r)&&e.__esModule?e:{default:e},s=_r(d[2]);const n={ot:e=>{let r,n;try{const s=()=>{t.logger.error("This browser does not have any supported ajax options!")};let u=!1;if(window.XMLHttpRequest&&(u=!0),!u)return void s();r=new XMLHttpRequest;const f=t=>{"function"==typeof e.error&&e.error(r.status),"function"==typeof e.ft&&e.ft(!1,t)};r.onload=()=>{let t=!1;if(4!==r.readyState)return;t=r.status>=200&&r.status<300||304===r.status;const s=r.getAllResponseHeaders();if(t){if("function"==typeof e.lt){let n;try{n=JSON.parse(r.responseText)}catch(t){const n={error:""===r.responseText?o.default.Wa:o.default.Qa,response:r.responseText};(0,e.lt)(n,s)}n&&e.lt(n,s)}"function"==typeof e.ft&&e.ft(!0,s)}else f(s)},r.onerror=()=>{f(r.getAllResponseHeaders())},r.ontimeout=()=>{f()},n=JSON.stringify(e.data),r.open("POST",e.url,!0),r.setRequestHeader("Content-type","application/json"),r.setRequestHeader("X-Requested-With","XMLHttpRequest");const i=e.headers||[];for(const e of i)r.setRequestHeader(e[0],e[1]);r.send(n)}catch(e){t.logger.error(`Network request error: ${(0,s.getErrorMessage)(e)}`)}}},u=e=>{const t={},r=e.toString().split("\r\n");if(!r)return t;let o,s;for(const e of r)e&&(o=e.slice(0,e.indexOf(":")).toLowerCase().trim(),s=e.slice(e.indexOf(":")+1).trim(),t[o]=s);return t};var f=n},4361,[4356,4412,4401]); 15__d(function(g,r,i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});class t{constructor(){}q(t){}changeUser(t=!1){}clearData(t=!1){}}},4362,[]); 16__d(function(g,_r,i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.parseQueryStringKeyValues=function(t){null==t&&(t="");const n=t.split("?").slice(1).join("?"),s={};if(null!=n){const t=n.split("&");for(let n=0;n<t.length;n++){const r=t[n].split("=");""!==r[0]&&(s[r[0]]=r[1])}}return s},e.isURIJavascriptOrData=function(t){return!(!t||0!==(t=t.toString().toLowerCase()).lastIndexOf("javascript:",0)&&0!==t.lastIndexOf("data:",0))}},4363,[]); 17__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return e}});var t=r(d[0]),n=r(d[1]);const l={it:{pn:"data",Mi:"content_cards/sync",Co:"feature_flags/sync",Yo:"template",st:"banners/sync"},Pl:t=>null==t?void 0:t.St(n.STORAGE_KEYS.It.ES),Am:t=>null==t?void 0:t.St(n.STORAGE_KEYS.It.SS),Rm:(t,l)=>{null==t||t.Pt(n.STORAGE_KEYS.It.ES,l)},qm:(t,l)=>{null==t||t.Pt(n.STORAGE_KEYS.It.SS,l)},ql:(t,n)=>{if(!t||!n)return-1;const e=l.Pl(t);if(null==e)return-1;const u=e[n];return null==u||isNaN(u)?-1:u},Al:(n,e)=>{let u=t.REQUEST_ATTEMPT_DEFAULT;if(!n||!e)return u;const E=l.Am(n);return null==E?u:(u=E[e],null==u||isNaN(u)?t.REQUEST_ATTEMPT_DEFAULT:u)},nt:(t,n,e)=>{if(!t||!n)return;let u=l.Pl(t);null==u&&(u={}),u[n]=e,l.Rm(t,u)},Dl:(t,n,e)=>{if(!t||!n)return;let u=l.Am(t);null==u&&(u={}),u[n]=e,l.qm(t,u)},Ji:(n,e)=>{n&&e&&l.Dl(n,e,t.REQUEST_ATTEMPT_DEFAULT)},zl:(t,n)=>{if(!t||!n)return;const e=l.Al(t,n);l.Dl(t,n,e+1)}};var e=l},4364,[4352,4359]); 18__d(function(g,r,i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"randomInclusive",{enumerable:!0,get:function(){return t}});const t=(t,n)=>(t=Math.ceil(t),n=Math.floor(n),Math.floor(Math.random()*(n-t+1))+t)},4365,[]); 19__d(function(g,r,_i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e._isInView=n,Object.defineProperty(_e,"DOMUtils",{enumerable:!0,get:function(){return i}}),Object.defineProperty(_e,"DIRECTIONS",{enumerable:!0,get:function(){return o}}),_e.supportsPassive=c,_e.addPassiveEventListener=l,_e.topIsInView=function(t){return i.td(t,!0,!1,!1)},_e.bottomIsInView=function(t){return i.td(t,!1,!0,!1)},_e.clickElement=function(t){if(t.onclick){const e=document.createEvent("MouseEvents");e.initEvent("click",!0,!0),t.onclick.apply(t,[e])}},_e.detectSwipe=function(t,e,n){let i=null,c=null;l(t,"touchstart",t=>{i=t.touches[0].clientX,c=t.touches[0].clientY}),l(t,"touchmove",l=>
19{if(null==i||null==c)return;const u=i-l.touches[0].clientX,s=c-l.touches[0].clientY;Math.abs(u)>Math.abs(s)&&Math.abs(u)>=25?((u>0&&e===o.ie||u<0&&e===o.ne)&&n(l),i=null,c=null):Math.abs(s)>=25&&((s>0&&e===o.Uo&&t.scrollTop===t.scrollHeight-t.offsetHeight||s<0&&e===o.Vo&&0===t.scrollTop)&&n(l),i=null,c=null)})},_e.buildSvg=function(t,e,n){const i="http://www.w3.org/2000/svg",o=document.createElementNS(i,"svg");o.setAttribute("viewBox",t),o.setAttribute("xmlns",i);const c=document.createElementNS(i,"path");return c.setAttribute("d",e),null!=n&&c.setAttribute("fill",n),o.appendChild(c),o};var t=r(d[0]),e=r(d[1]);function n(t,e=!1,n=!1,i=!1){if(null==t)return!1;e=e||!1,n=n||!1;const o=t.getBoundingClientRect();return null!=o&&(o.top>=0&&o.top<=(window.innerHeight||document.documentElement.clientHeight)||!e)&&(o.left>=0||!i)&&(o.bottom>=0&&o.bottom<=(window.innerHeight||document.documentElement.clientHeight)||!n)&&(o.right<=(window.innerWidth||document.documentElement.clientWidth)||!i)}const i={Ic:null,td:n},o={Uo:"up",Vo:"down",ie:"left",ne:"right"};function c(){if(null==i.Ic){i.Ic=!1;try{const t=Object.defineProperty({},"passive",{get:()=>{i.Ic=!0}});window.addEventListener("testPassive",()=>{},t),window.removeEventListener("testPassive",()=>{},t)}catch(n){t.logger.error((0,e.getErrorMessage)(n))}}return i.Ic}function l(t,e,n=()=>{}){t.addEventListener(e,n,!!c()&&{passive:!0})}},4366,[4356,4401]); 20__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"KeyCodes",{enumerable:!0,get:function(){return t}});const t={Ao:32,Wo:9,Lo:13,rh:27}},4367,[]); 21__d(function(g,_r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return f}});var t=_r(d[0]),n=e(t),u=e(_r(d[1])),r=e(_r(d[2]));const l={i:!1,na:null,ra:()=>{if(l.t(),!l.na){let e=u.default.language,f=!1;n.default.er(t.OPTIONS.qa)&&(e=n.default.er(t.OPTIONS.qa),f=!0),l.na=new r.default(e,f)}return l.na},t:()=>{l.i||(n.default.g(l),l.i=!0)},destroy:()=>{l.na=null,l.i=!1}};var f=l},4368,[4355,4404,4458]); 22__d(function(g,_r,_i,_a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"CUSTOM_DATA_REGEX",{enumerable:!0,get:function(){return u}}),Object.defineProperty(_e,"CUSTOM_ATTRIBUTE_SPECIAL_CHARS_REGEX",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"CUSTOM_ATTRIBUTE_RESERVED_OPERATORS",{enumerable:!0,get:function(){return a}}),Object.defineProperty(_e,"EMAIL_ADDRESS_REGEX",{enumerable:!0,get:function(){return c}}),Object.defineProperty(_e,"EMAIL_ADDRESS_MAX_LENGTH",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"CUSTOM_PROPERTIES_MAX_SIZE_BYTES",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"CUSTOM_PROPERTIES_MAX_SIZE_STRING",{enumerable:!0,get:function(){return A}}),Object.defineProperty(_e,"CUSTOM_ATTRIBUTES_MAX_SIZE_BYTES",{enumerable:!0,get:function(){return _}}),Object.defineProperty(_e,"CUSTOM_ATTRIBUTES_MAX_SIZE_STRING",{enumerable:!0,get:function(){return S}}),Object.defineProperty(_e,"CUSTOM_ATTRIBUTE_MAX_DEPTH",{enumerable:!0,get:function(){return p}}),Object.defineProperty(_e,"BRAZE_ACTION_URI_REGEX",{enumerable:!0,get:function(){return T}}),Object.defineProperty(_e,"VALID_UTF8_STRING_NO_WHITESPACES_REGEX",{enumerable:!0,get:function(){return y}}),_e.validateCustomString=b,_e.validateCustomAttributeKey=E,_e.validatePropertyType=O,_e._validateNestedProperties=C,_e._validateEventPropertyValue=R,_e.validateStandardString=function(e,t,n,i=!1){const o="string"==typeof e||null===e&&i;return o||r.logger.error(`Cannot ${t} because ${n} "${e}" is invalid.`),o},_e.validateCustomProperties=I,_e.validateCustomAttributeArrayType=function(t,n){let i=!1,u=!1;const s=()=>{r.logger.error("Custom attribute arrays must be either string arrays or object arrays.")};for(const r of n)if("string"==typeof r){if(u)return s(),[!1,!1];if(!b(r,`set custom user attribute "${t}"`,"the element in the given array"))return[!1,!1];i=!0}else{if(!(0,e.isObject)(r))return s(),[!1,!1];if(i)return s(),[!1,!1];if(!I(r,o.CoreStrings.Ku,"attribute value",`set custom user attribute "${t}"`,"custom user attribute"))return[!1,!1];u=!0}return[i,u]},_e.isValidEmail=function(e){if("string"!=typeof e)return!1;const t=e.length;return!(0===t||t>256)&&c.test(e.toLowerCase())},_e.isValidBrazeActionJson=function(e){if(!(i.BRAZE_ACTIONS.properties.type in e))return!1;switch(e[i.BRAZE_ACTIONS.properties.type]){case i.BRAZE_ACTIONS.types.io:if(i.BRAZE_ACTIONS.properties.eo in e)return!0;break;case i.BRAZE_ACTIONS.types.logCustomEvent:case i.BRAZE_ACTIONS.types.setEmailNotificationSubscriptionType:case i.BRAZE_ACTIONS.types.setPushNotificationSubscriptionType:case i.BRAZE_ACTIONS.types.setCustomUserAttribute:case i.BRAZE_ACTIONS.types.addToSubscriptionGroup:case i.BRAZE_ACTIONS.types.removeFromSubscriptionGroup:case i.BRAZE_ACTIONS.types.addToCustomAttributeArray:case i.BRAZE_ACTIONS.types.removeFromCustomAttributeArray:case i.BRAZE_ACTIONS.types.mo:case i.BRAZE_ACTIONS.types.uo:if(i.BRAZE_ACTIONS.properties.so in e)return!0;break;case i.BRAZE_ACTIONS.types.requestPushPermission:return!0;default:return!1}return!1},_e.isValidBrazeActionType=function(e){let t=!1;
22return Object.keys(i.BRAZE_ACTIONS.types).forEach(r=>{i.BRAZE_ACTIONS.types[r]!==e.toString()||(t=!0)}),t},_e.isValidBannerPlacementId=function(e){return y.test(e)};var e=_r(d[0]),t=_r(d[1]),r=_r(d[2]),n=_r(d[3]),i=_r(d[4]),o=_r(d[5]);const u=/^[^\x00-\x1F\x22]+$/,s=/[$.]/,a=["$add","$update","$remove","$identifier_key","$identifier_value","$new_object","$time","$google_ad_personalization","$google_ad_user_data"],c=/^[^@\s]+@[^@\s]+\.[^@\s]+$/,l=256,f=51200,A="50KB",_=76800,S="75KB",p=50,T=/^brazeActions:\/\/v\d+\//,y=/^[^\s]+$/;function b(e,t,n){const i=null!=e&&"string"==typeof e&&(""===e||null!=e.match(u));return i||r.logger.error(`Cannot ${t} because ${n} "${e}" is invalid.`),i}function E(e){return null!=e&&e.match(s)&&-1===a.indexOf(e)&&r.logger.warn("Custom attribute keys cannot contain '$' or '.'"),b(e,"set custom user attribute","the given key")}function O(t){const r=typeof t;return null==t||"number"===r||"boolean"===r||(0,e.isDate)(t)||"string"===r}function C(t,i,o){const u=-1!==o;if(u&&o>50)return r.logger.error("Nested attributes cannot be more than 50 levels deep."),!1;const s=u?o+1:-1;if((0,e.isArray)(t)&&(0,e.isArray)(i)){for(let r=0;r<t.length&&r<i.length;r++)if((0,e.isDate)(t[r])&&(i[r]=(0,n.toValidBackendTimeString)(t[r])),!C(t[r],i[r],s))return!1}else{if(!(0,e.isObject)(t))return O(t);for(const r of(0,e.keys)(t)){const o=t[r];if(u&&!E(r))return!1;if((0,e.isDate)(o)&&(i[r]=(0,n.toValidBackendTimeString)(o)),!C(o,i[r],s))return!1}}return!0}function R(t,n,i,o,u){let s;return s=(0,e.isObject)(t)||(0,e.isArray)(t)?C(t,n,u?1:-1):O(t),s||r.logger.error(`Cannot ${i} because ${o} "${t}" is invalid.`),s}function I(i,u,s,a,c){if(null==i&&(i={}),"object"!=typeof i||(0,e.isArray)(i))return r.logger.error(`${u} requires that ${s} be an object. Ignoring ${c}.`),[!1,null];let l,f;u===o.CoreStrings.Ku?(l=76800,f="75KB"):(l=51200,f="50KB");const A=JSON.stringify(i);if((0,t.getByteLength)(A)>l)return r.logger.error(`Could not ${a} because ${s} was greater than the max size of ${f}.`),[!1,null];let _;try{_=JSON.parse(A)}catch(i){return r.logger.error(`Could not ${a} because ${s} did not contain valid JSON.`),[!1,null]}for(const t in i){if(u===o.CoreStrings.Ku&&!E(t))return[!1,null];if(!b(t,a,`the ${c} property name`))return[!1,null];const r=i[t];if(u===o.CoreStrings.Ku||null!=r){if((0,e.isDate)(r)&&(_[t]=(0,n.toValidBackendTimeString)(r)),!R(r,_[t],a,`the ${c} property "${t}"`,u===o.CoreStrings.Ku))return[!1,null]}else delete i[t],delete _[t]}return[!0,_]}},4369,[4360,4403,4356,4351,4370,4352]); 23__d(function(g,_r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"BRAZE_ACTIONS",{enumerable:!0,get:function(){return n}}),Object.defineProperty(_e,"INELIGIBLE_BRAZE_ACTION_URL_ERROR_TYPES",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"ineligibleBrazeActionURLErrorMessage",{enumerable:!0,get:function(){return u}}),_e.getDecodedBrazeAction=function(n){try{const t=n.match(o.BRAZE_ACTION_URI_REGEX),s=t?t[0].length:null,u=s?n.substring(s):null;if(null==s||s>n.length-1||!u)return void e.logger.error(`Did not find base64 encoded brazeAction in url to process : ${n}`);const c=(0,r.decodeBrazeActions)(u);return c?JSON.parse(c):void e.logger.error(`Failed to decode base64 encoded brazeAction: ${u}`)}catch(r){return void e.logger.error(`Failed to process brazeAction URL ${n} : ${(0,t.getErrorMessage)(r)}`)}},_e.containsUnknownBrazeAction=function e(t){const r=n.properties.type,s=n.properties.eo;try{if(null==t)return!0;const u=t[r];return u===n.types.io?c(e,t[s]):!(0,o.isValidBrazeActionType)(u)}catch(t){return!0}},_e.containsPushPrimerBrazeAction=function e(t){if(!t||!(0,o.isValidBrazeActionJson)(t))return!1;const r=n.properties.type,s=n.properties.eo,u=t[r];return u===n.types.io?c(e,t[s]):u===n.types.requestPushPermission};var e=_r(d[0]),t=_r(d[1]),r=_r(d[2]),o=_r(d[3]);const n={types:{io:"container",logCustomEvent:"logCustomEvent",setEmailNotificationSubscriptionType:"setEmailNotificationSubscriptionType",setPushNotificationSubscriptionType:"setPushNotificationSubscriptionType",setCustomUserAttribute:"setCustomUserAttribute",requestPushPermission:"requestPushPermission",addToSubscriptionGroup:"addToSubscriptionGroup",removeFromSubscriptionGroup:"removeFromSubscriptionGroup",addToCustomAttributeArray:"addToCustomAttributeArray",removeFromCustomAttributeArray:"removeFromCustomAttributeArray",mo:"openLink",uo:"openLinkInWebView"},properties:{type:"type",eo:"steps",so:"args"}},s={Un:"unknownBrazeAction",Nc:"noPushPrompt"},u=(e,t)=>
23e===s.Un?`${t} contains an unknown braze action type and will not be displayed.`:"";function c(e,t){let r=!1;if(t)for(const o of t)if(r=r||e(o),r)return!0;return!1}},4370,[4356,4401,4403,4369]); 24__d(function(g,_r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.createCloseButton=function(o,n,r,s="ltr"){const u=document.createElement("button");u.setAttribute("aria-label",o),u.setAttribute("role","button"),u.dir=s,(0,e.addPassiveEventListener)(u,"touchstart"),u.className="ab-close-button";const l=(0,e.buildSvg)("0 0 15 15","M15 1.5L13.5 0l-6 6-6-6L0 1.5l6 6-6 6L1.5 15l6-6 6 6 1.5-1.5-6-6 6-6z",n);return u.appendChild(l),l.setAttribute("aria-hidden","true"),u.addEventListener("keydown",e=>{e.keyCode!==t.KeyCodes.Ao&&e.keyCode!==t.KeyCodes.Lo||(r(),e.stopPropagation())}),u.onclick=e=>{r(),e.stopPropagation()},u};var e=_r(d[0]),t=_r(d[1])},4371,[4366,4367]); 25__d(function(g,_r,_i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e._handleBrazeAction=p,_e.handleBrazeAction=function(e,t){p(e,t)};var t=_r(d[0]),o=_r(d[1]),r=e(_r(d[2])),s=_r(d[3]),i=e(_r(d[4])),n=_r(d[5]),A=_r(d[6]),c=_r(d[7]),u=_r(d[8]);function p(e,p,l){if(r.default.rr())if(A.BRAZE_ACTION_URI_REGEX.test(e)){const p=(0,s.getDecodedBrazeAction)(e);if(!p)return;const l=e=>{if(!(0,A.isValidBrazeActionJson)(e))return void t.logger.error(`Decoded Braze Action json is invalid: ${JSON.stringify(e,null,2)}`);const p=s.BRAZE_ACTIONS.properties.type,y=s.BRAZE_ACTIONS.properties.eo,S=s.BRAZE_ACTIONS.properties.so,_=e[p];if(_===s.BRAZE_ACTIONS.types.io){const t=e[y];for(const e of t)l(e)}else{const A=e[S];let p,l;switch(_){case s.BRAZE_ACTIONS.types.logCustomEvent:_r(d[10])(d[9],d.paths).then(({logCustomEvent:e})=>{r.default.ao()?(l=Array.prototype.slice.call(A),e(...l)):t.logger.error(o.CoreStrings.ee)});break;case s.BRAZE_ACTIONS.types.requestPushPermission:_r(d[10])(d[11],d.paths).then(({requestPushPermission:e})=>{r.default.ao()?"Safari"===i.default.browser&&i.default.OS===n.OperatingSystems.co?window.navigator.standalone&&e():e():t.logger.error(o.CoreStrings.ee)});break;case s.BRAZE_ACTIONS.types.setEmailNotificationSubscriptionType:case s.BRAZE_ACTIONS.types.setPushNotificationSubscriptionType:case s.BRAZE_ACTIONS.types.setCustomUserAttribute:case s.BRAZE_ACTIONS.types.addToSubscriptionGroup:case s.BRAZE_ACTIONS.types.removeFromSubscriptionGroup:case s.BRAZE_ACTIONS.types.addToCustomAttributeArray:case s.BRAZE_ACTIONS.types.removeFromCustomAttributeArray:p=(0,u.getUser)(),p&&p[_](...Array.prototype.slice.call(A));break;case s.BRAZE_ACTIONS.types.mo:case s.BRAZE_ACTIONS.types.uo:l=Array.prototype.slice.call(A),c.WindowUtils.openUri(...l);break;default:t.logger.info(`Ignoring unknown Braze Action: ${_}`)}}};l(p)}else c.WindowUtils.openUri(e,p,l)}},4372,{"0":4356,"1":4352,"2":4355,"3":4370,"4":4404,"5":4407,"6":4369,"7":4350,"8":4376,"9":4377,"10":880,"11":4383,"paths":{}}); 26__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.attachFeedCSS=b,e.setupFeedUI=function(){b(),(0,o.loadFontAwesome)()};var t=r(d[0]),o=r(d[1]);function b(o){(0,t.attachCSS)(o,"feed","body>.ab-feed{position:fixed;top:0;right:0;bottom:0;width:421px;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}body>.ab-feed .ab-feed-body{position:absolute;top:0;left:0;right:0;border:none;border-left:1px solid #d0d0d0;padding-top:70px;min-height:100%}body>.ab-feed .ab-initial-spinner{float:none}body>.ab-feed .ab-no-cards-message{position:absolute;width:100%;margin-left:-20px;top:40%}.ab-feed{-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-box-shadow:0 1px 7px 1px rgba(66,82,113,.15);-moz-box-shadow:0 1px 7px 1px rgba(66,82,113,.15);box-shadow:0 1px 7px 1px rgba(66,82,113,.15);width:402px;background-color:#eee;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',s
26ans-serif;font-size:13px;line-height:130%;letter-spacing:normal;overflow-y:auto;overflow-x:visible;z-index:9011;-webkit-overflow-scrolling:touch}.ab-feed :focus,.ab-feed:focus{outline:0}.ab-feed .ab-feed-body{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;border:1px solid #d0d0d0;border-top:none;padding:20px 20px 0 20px}.ab-feed.ab-effect-slide{-webkit-transform:translateX(450px);-moz-transform:translateX(450px);-ms-transform:translateX(450px);transform:translateX(450px);-webkit-transition:transform .5s ease-in-out;-moz-transition:transform .5s ease-in-out;-o-transition:transform .5s ease-in-out;transition:transform .5s ease-in-out}.ab-feed.ab-effect-slide.ab-show{-webkit-transform:translateX(0);-moz-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}.ab-feed.ab-effect-slide.ab-hide{-webkit-transform:translateX(450px);-moz-transform:translateX(450px);-ms-transform:translateX(450px);transform:translateX(450px)}.ab-feed .ab-card{position:relative;-webkit-box-shadow:0 2px 3px 0 rgba(178,178,178,.5);-moz-box-shadow:0 2px 3px 0 rgba(178,178,178,.5);box-shadow:0 2px 3px 0 rgba(178,178,178,.5);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;width:100%;border:1px solid #d0d0d0;margin-bottom:20px;overflow:hidden;background-color:#fff;-webkit-transition:height .4s ease-in-out,margin .4s ease-in-out;-moz-transition:height .4s ease-in-out,margin .4s ease-in-out;-o-transition:height .4s ease-in-out,margin .4s ease-in-out;transition:height .4s ease-in-out,margin .4s ease-in-out}.ab-feed .ab-card .ab-pinned-indicator{position:absolute;right:0;top:0;margin-right:-1px;width:0;height:0;border-style:solid;border-width:0 24px 24px 0;border-color:transparent #1676d0 transparent transparent}.ab-feed .ab-card .ab-pinned-indicator .fa-star{position:absolute;right:-21px;top:2px;font-size:9px;color:#fff}.ab-feed .ab-card.ab-effect-card.ab-hide{-webkit-transition:all .5s ease-in-out;-moz-transition:all .5s ease-in-out;-o-transition:all .5s ease-in-out;transition:all .5s ease-in-out}.ab-feed .ab-card.ab-effect-card.ab-hide.ab-swiped-left{-webkit-transform:translateX(-450px);-moz-transform:translateX(-450px);-ms-transform:translateX(-450px);transform:translateX(-450px)}.ab-feed .ab-card.ab-effect-card.ab-hide.ab-swiped-right{-webkit-transform:translateX(450px);-moz-transform:translateX(450px);-ms-transform:translateX(450px);transform:translateX(450px)}.ab-feed .ab-card.ab-effect-card.ab-hide:not(.ab-swiped-left):not(.ab-swiped-right){opacity:0}.ab-feed .ab-card .ab-close-button{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;background-color:transparent;background-size:15px;border:none;width:15px;min-width:15px;height:15px;cursor:pointer;display:block;font-size:15px;line-height:0;padding-top:15px;padding-right:15px;padding-left:15px;padding-bottom:15px;position:absolute;top:0;z-index:9021;opacity:0;-webkit-transition:.5s;-moz-transition:.5s;-o-transition:.5s;transition:.5s}.ab-feed .ab-card .ab-close-button[dir=rtl]{left:0}.ab-feed .ab-card .ab-close-button[dir=ltr]{right:0}.ab-feed .ab-card .ab-close-button svg{-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease;fill:#9b9b9b;height:auto;width:100%}.ab-feed .ab-card .ab-close-button svg.ab-chevron{display:none}.ab-feed .ab-card .ab-close-button:active{background-color:transparent}.ab-feed .ab-card .ab-close-button:focus{background-color:transparent}.ab-feed .ab-card .ab-close-button:hover{background-color:transparent}.ab-feed .ab-card .ab-close-button:hover svg{fill-opacity:.8}.ab-feed .ab-card .ab-close-button:hover{opacity:1}.ab-feed .ab-card .ab-close-button:focus{opacity:1}.ab-feed .ab-card a{float:none;color:inherit;text-decoration:none}.ab-feed .ab-card a:hover{text-decoration:underline}.ab-feed .ab-card .ab-image-area{float:none;display:inline-block;vertical-align:top;line-height:0;overflow:hidden;width:100%;-webkit-box-sizing:initial;-moz-box-sizing:initial;box-sizing:initial}.ab-feed .ab-card .ab-image-area img{float:none;height:auto;width:100%}
26.ab-feed .ab-card.ab-image-only .ab-card-body{display:none}.ab-feed .ab-card .ab-card-body{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:inline-block;width:100%;position:relative}.ab-feed .ab-card .ab-unread-indicator{position:absolute;bottom:0;margin-right:-1px;width:100%;height:5px;background-color:#1676d0}.ab-feed .ab-card .ab-unread-indicator.read{background-color:transparent}.ab-feed .ab-card .ab-title{float:none;letter-spacing:0;margin:0;font-weight:700;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;display:block;overflow:hidden;word-wrap:break-word;text-overflow:ellipsis;font-size:18px;line-height:130%;padding:20px 25px 0 25px}.ab-feed .ab-card .ab-description{float:none;color:#545454;padding:15px 25px 20px 25px;word-wrap:break-word;white-space:pre-wrap}.ab-feed .ab-card .ab-description.ab-no-title{padding-top:20px}.ab-feed .ab-card .ab-url-area{float:none;color:#1676d0;margin-top:12px;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',s
26ans-serif}.ab-feed .ab-card.ab-classic-card .ab-card-body{min-height:40px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.ab-feed .ab-card.ab-classic-card.with-image .ab-card-body{min-height:100px}.ab-feed .ab-card.ab-classic-card.with-image .ab-card-body[dir=ltr]{padding-left:72px}.ab-feed .ab-card.ab-classic-card.with-image .ab-card-body[dir=rtl]{padding-right:72px}.ab-feed .ab-card.ab-classic-card.with-image .ab-image-area{width:60px;height:60px;padding:20px 0 25px 25px;position:absolute}.ab-feed .ab-card.ab-classic-card.with-image .ab-image-area[dir=rtl]{padding:20px 25px 25px 0}.ab-feed .ab-card.ab-classic-card.with-image .ab-image-area img{-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;max-width:100%;max-height:100%;width:auto;height:auto}.ab-feed .ab-card.ab-classic-card.with-image .ab-title{background-color:transparent;font-size:16px}.ab-feed .ab-card.ab-classic-card.with-image .ab-description{padding-top:10px}.ab-feed .ab-card.ab-control-card{height:0;width:0;margin:0;border:0}.ab-feed .ab-feed-buttons-wrapper{float:none;position:relative;background-color:#282828;height:50px;-webkit-box-shadow:0 2px 3px 0 rgba(178,178,178,.5);-moz-box-shadow:0 2px 3px 0 rgba(178,178,178,.5);box-shadow:0 2px 3px 0 rgba(178,178,178,.5);z-index:1}.ab-feed .ab-feed-buttons-wrapper .ab-close-button,.ab-feed .ab-feed-buttons-wrapper .ab-refresh-button{float:none;cursor:pointer;color:#fff;font-size:18px;padding:16px;-webkit-transition:.2s;-moz-transition:.2s;-o-transition:.2s;transition:.2s}.ab-feed .ab-feed-buttons-wrapper .ab-close-button:hover,.ab-feed .ab-feed-buttons-wrapper .ab-refresh-button:hover{font-size:22px}.ab-feed .ab-feed-buttons-wrapper .ab-close-button{float:right}.ab-feed .ab-feed-buttons-wrapper .ab-close-button:hover{padding-top:12px;padding-right:14px}.ab-feed .ab-feed-buttons-wrapper .ab-refresh-button{padding-left:17px}.ab-feed .ab-feed-buttons-wrapper .ab-refresh-button:hover{padding-top:13px;padding-left:14px}.ab-feed .ab-no-cards-message{text-align:center;margin-bottom:20px}@media (max-width:600px){body>.ab-feed{width:100%}}")}},4373,[4444,4445]); 27__d(function(g,_r,_i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.changeUser=function(e,r){if(!t.default.rr())return;if(null==e||0===e.length||e!=e)return void u.logger.error("changeUser requires a non-empty userId.");if((0,n.getByteLength)(e)>s.User.br)return void u.logger.error(`Rejected user id "${e}" because it is longer than ${s.User.br} bytes.`);if(null!=r&&!(0,i.validateStandardString)(r,"set signature for new user","signature"))return;const l=t.default.nn();l&&l.changeUser(e.toString(),t.default.vr(),r)};var e,r=_r(d[0]),t=(e=r)&&e.__esModule?e:{default:e},n=_r(d[1]),u=_r(d[2]),s=_r(d[3]),i=_r(d[4])},4374,[4355,4403,4356,4349,4369]); 28__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});var t={BROWSER:"browser",BROWSER_VERSION:"browserVersion",OS:"os",RESOLUTION:"resolution",LANGUAGE:"language",TIME_ZONE:"timeZone",USER_AGENT:"userAgent"}},4375,[]); 29__d(function(g,_r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.getUser=function(){if(r.default.rr())return r.default.zr()};var e,t=_r(d[0]),r=(e=t)&&e.__esModule?e:{default:e}},4376,[4355]); 30__d(function(g,_r,_i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.logCustomEvent=function(e,s){if(!t.default.rr())return!1;if(null==e||e.length<=0)return o.logger.error(`logCustomEvent requires a non-empty eventName, got "${e}". Ignoring event.`),!1;if(!(0,i.validateCustomString)(e,"log custom event","the event name"))return!1;const[f,v]=(0,i.validateCustomProperties)(s,l.CoreStrings.je,"eventProperties",`log custom event "${e}"`,"event");if(!f)return!1;const c=t.default.l();if(c&&c.$e(e))return o.logger.info(`Custom Event "${e}" is blocklisted, ignoring.`),!1;const C=n.default.Dt(o.EventTypes.CustomEvent,{n:e,p:v});if(C.lt){o.logger.info(`Logged custom event "${e}".`);for(const t of C.Ce)u.TriggersProviderFactory.o().Ee(r.default.he,[e,s],t)}return C.lt};var t=e(_r(d[0])),n=e(_r(d[1])),o=_r(d[2]),r=e(_r(d[3])),u=_r(d[4]),i=_r(d[5]),l=_r(d[6])},4377,[4355,4357,4356,4380,4381,4369,4352]); 31__d(function(_g,_r,_i,_a,m,_e,d){"use strict";function r(r){return r&&r.__esModule?r:{default:r}}
31Object.defineProperty(_e,'__esModule',{value:!0}),_e.logPurchase=function(r,s,a,c,f){if(!i.default.rr())return!1;if(null==a&&(a="USD"),null==c&&(c=1),null==r||r.length<=0)return e.logger.error(`logPurchase requires a non-empty productId, got "${r}", ignoring.`),!1;if(!(0,l.validateCustomString)(r,"log purchase","the purchase name"))return!1;if(null==s||isNaN(parseFloat(s.toString())))return e.logger.error(`logPurchase requires a numeric price, got ${s}, ignoring.`),!1;const p=parseFloat(s.toString()).toFixed(2);if(null==c||isNaN(parseInt(c.toString())))return e.logger.error(`logPurchase requires an integer quantity, got ${c}, ignoring.`),!1;const h=parseInt(c.toString());if(h<1||h>t.MAX_PURCHASE_QUANTITY)return e.logger.error(`logPurchase requires a quantity >1 and <${t.MAX_PURCHASE_QUANTITY}, got ${h}, ignoring.`),!1;if(a=null!=a?a.toUpperCase():a,!(0,o.isValidIso4217CurrencyCode)(a))return e.logger.error(`logPurchase requires a valid currencyCode, got ${a}, ignoring.`),!1;const[P,$]=(0,l.validateCustomProperties)(f,"logPurchase","purchaseProperties",`log purchase "${r}"`,"purchase");if(!P)return!1;const _=i.default.l();if(_&&_.$r(r))return e.logger.info(`Purchase "${r}" is blocklisted, ignoring.`),!1;const q=n.default.Dt(e.EventTypes.Pr,{pid:r,c:a,p:p,q:h,pr:$});if(q.lt){e.logger.info(`Logged ${h} purchase${h>1?"s":""} of "${r}" for ${a} ${p}.`);for(const e of q.Ce)g.TriggersProviderFactory.o().Ee(u.default.qr,[r,f],e)}return q.lt};var e=_r(d[0]),o=_r(d[1]),t=_r(d[2]),n=r(_r(d[3])),i=r(_r(d[4])),u=r(_r(d[5])),g=_r(d[6]),l=_r(d[7])},4378,[4356,4382,4352,4357,4355,4380,4381,4369]); 32__d(function(g,_r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.requestImmediateDataFlush=function(e){if(!u.default.rr())return;const t=u.default.nn();t&&t.requestImmediateDataFlush(e)};var e,t=_r(d[0]),u=(e=t)&&e.__esModule?e:{default:e}},4379,[4355]); 33__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});var t={OPEN:"open",qr:"purchase",Sr:"push_click",he:"custom_event",rm:"iam_click",Os:"test"}},4380,[]); 34__d(function(g,_r,_i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"TriggersProviderFactory",{enumerable:!0,get:function(){return n}});var r=e(_r(d[0])),t=_r(d[1]),u=e(t),i=e(_r(d[2]));const n={i:!1,provider:null,o:()=>(n.t(),n.provider||n.rg(),n.provider),rg:()=>{if(!n.provider){const e=u.default.er(t.OPTIONS.Dh);n.provider=new i.default(null!=e?e:30,r.default.ra().Pn(),u.default.p(),u.default.nn(),r.default.ra()),u.default.v(n.provider)}},t:()=>{n.i||(n.rg(),u.default.g(n),n.i=!0)},destroy:()=>{n.provider=null,n.i=!1}}},4381,[4421,4355,4463]); 35__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.isValidIso4217CurrencyCode=function(R){return-1!==D.indexOf(R)};const D=["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BRL","BSD","BTC","BTN","BWP","BYR","BZD","CAD","CDF","CHF","CLF","CLP","CNY","COP","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EEK","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GGP","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","IMP","INR","IQD","IRR","ISK","JEP","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LTL","LVL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MTL","MUR","MVR","MWK","MXN","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","STD","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","UYU","UZS","VEF","VND","VUV","WST","XAF","XAG","XAU","XCD","XDR","XOF","XPD","XPF","XPT","YER","ZAR","ZMK","ZMW","ZWL"]},4382,[]); 36__d(function(g,_r,i,a,m,_e,d){"use strict";
36function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.requestPushPermission=function(e,n){if(t.default.rr())return u.default.ra().subscribe((u,n,r)=>{const s=t.default.nn();s&&s.requestImmediateDataFlush(),"function"==typeof e&&e(u,n,r)},n)};var t=e(_r(d[0])),u=e(_r(d[1]))},4383,[4355,4473]); 37__d(function(g,_r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.unregisterPush=function(e,t){if(u.default.rr())return r.default.ra().unsubscribe(e,t)};var u=e(_r(d[0])),r=e(_r(d[1]))},4384,[4355,4473]); 38__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}});const i={cu:()=>"serviceWorker"in navigator&&"undefined"!=typeof ServiceWorkerRegistration&&"showNotification"in ServiceWorkerRegistration.prototype&&"PushManager"in window,lu:()=>"safari"in window&&"pushNotification"in window.safari&&"function"==typeof window.safari.pushNotification.permission&&"function"==typeof window.safari.pushNotification.requestPermission,isPushSupported:()=>i.cu()||i.lu(),isPushBlocked:()=>{const n=i.isPushSupported()&&"Notification"in window&&null!=window.Notification&&null!=window.Notification.permission&&"denied"===window.Notification.permission,o=i.isPushSupported()&&(!("Notification"in window)||null==window.Notification);return n||o},isPushPermissionGranted:()=>i.isPushSupported()&&"Notification"in window&&null!=window.Notification&&null!=window.Notification.permission&&"granted"===window.Notification.permission,Vn:()=>i.isPushBlocked()?{Wn:!1,reason:"blocked"}:i.isPushSupported()?i.isPushPermissionGranted()?{Wn:!1,reason:"permissionGranted"}:{Wn:!0}:{Wn:!1,reason:"unsupported"},Yn:(i,n)=>"blocked"===i?`${n} containing a push prompt is not being shown because the user has already declined push permission prompt.`:"unsupported"===i?`${n} containing a push prompt is not being shown because the browser doesn't support push notifications.`:`${n} containing a push prompt is not being shown because the user has already accepted the permission prompt.`};var n=i},4385,[]); 39__d(function(g,r,_i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return t}});var e=r(d[0]);class t extends e.PropertiesBase{constructor(e,t=!1,s={},i){super(s),this.id=e,this.enabled=t,this.trackingString=i,this.id=e,this.enabled=t,this.trackingString=i}qt(){const e={};return e[t.bs.qs]=this.id,e[t.bs.Nr]=this.enabled,e[t.bs.Or]=this.properties,e[t.bs.Qr]=this.trackingString,e}}t.bs={qs:"id",Nr:"e",Or:"pr",Qr:"fts"},t.ei={qs:"id",Nr:"enabled",Or:"properties",Qr:"fts"}},4386,[4389]); 40__d(function(g,_r,i,_a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return n}}),_e.refreshFeatureFlags=function(e,r){u(e,r)};var r=e(_r(d[0])),t=e(_r(d[1]));function u(e,u,n=!1){if(r.default.rr())return t.default.o().refreshFeatureFlags(e,u,n)}var n=u},4387,[4355,4388]); 41__d(function(g,_r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return l}});var r=e(_r(d[0])),t=e(_r(d[1]));const u={i:!1,provider:null,o:()=>(u.t(),u.provider||(u.provider=new t.default(r.default.l(),r.default.m(),r.default.p(),r.default.u()),r.default.v(u.provider)),u.provider),t:()=>{u.i||(r.default.g(u),u.i=!0)},destroy:()=>{u.provider=null,u.i=!1}};var l=u},4388,[4355,4475]); 42__d(function(g,_r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"PropertiesBase",{enumerable:!0,get:function(){return t}});var e=_r(d[0]);class t{constructor(e){this.properties=e,this.properties=e||{}}tp(e,t,r){const p=this.properties[e];return null==p?(this.rp(e),null):t(p)?p.value:(this.ep(r),null)}getStringProperty(e){return this.tp(e,this.op,"string")}getNumberProperty(e){return this.tp(e,this.sp,"number")}getBooleanProperty(e){return this.tp(e,this.ip,"boolean")}getImageProperty(e){return this.tp(e,this.np,"image")}getJsonProperty(e){return this.tp(e,this.pp,"jsonobject")}getTimestampProperty(e){return this.tp(e,this.up,"datetime")}ep(t){e.logger.info(`Property is not of type ${t}.`)}rp(t){e.logger.info(`${t} not found in properties.`)}op(e){return"string"===e.type&&"string"==typeof e.value}sp(e){return"number"===e.type&&"number"==typeof e.value}ip(e){return"boolean"===e.type&&"boolean"==typeof e.value}np(e){return"image"===e.type&&"string"==typeof e.value}pp(e){return"jsonobject"===e.type&&"object"==typeof e.value&&e.value.constructor==Object}up(e){return"datetime"===e.type&&"number"==typeof e.value}}},4389,[4356]); 43__d(function(g,r,i,a,m,e,d){"use strict";
43Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"EventTypes",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"InternalEventTypes",{enumerable:!0,get:function(){return n}});const c={CustomEvent:"ce",Pr:"p",$c:"pc",Fc:"ca",gl:"i",Ya:"ie",vs:"cci",ws:"ccic",us:"ccc",gs:"ccd",wm:"ss",hm:"se",Fn:"si",On:"sc",Xn:"sbc",Lc:"sfe",om:"iec",Dc:"lr",Ac:"uae",Mc:"lcaa",Cc:"lcar",Zu:"inc",Qu:"add",Xu:"rem",Yu:"set",Vu:"ncam",Tc:"sgu",xo:"ffi",ro:"bi",Nt:"bc",Rt:"bd"},n={Gc:"content_cards_displayed"}},4390,[]); 44__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.attachBannerCSS=t,e.setupBannerUI=function(){t()};var n=r(d[0]);function t(t){(0,n.attachCSS)(t,"banner",".ab-html-banner{width:100%;height:100%;border:none;display:block}.ab-html-control-banner{width:0;height:0;margin:0;border:none}")}},4391,[4444]); 45__d(function(g,_r,_i,_a,_m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"buildBrazeBridge",{enumerable:!0,get:function(){return c}}),Object.defineProperty(_e,"applyNonceToDynamicallyCreatedTags",{enumerable:!0,get:function(){return u}}),Object.defineProperty(_e,"attachHtmlToIframeWithNonce",{enumerable:!0,get:function(){return a}});var t=_r(d[0]),r=_r(d[1]),n=_r(d[2]),o=e(_r(d[3])),s=_r(d[4]),i=e(_r(d[5]));const c=(e,c)=>{const u={display:{},web:{}},a=function(){return function(){const e=arguments;_r(d[7])(d[6],d.paths).then(r=>{o.default.ao()?r.requestPushPermission(...Array.prototype.slice.call(e)):t.logger.error(n.CoreStrings.ee)})}},l={requestImmediateDataFlush:function(){const e=arguments;_r(d[7])(d[8],d.paths).then(({requestImmediateDataFlush:r})=>{o.default.ao()?r(...Array.prototype.slice.call(e)):t.logger.error(n.CoreStrings.ee)})},logCustomEvent:function(){const e=arguments;_r(d[7])(d[9],d.paths).then(({logCustomEvent:r})=>{o.default.ao()?r(...Array.prototype.slice.call(e)):t.logger.error(n.CoreStrings.ee)})},logPurchase:function(){const e=arguments;_r(d[7])(d[10],d.paths).then(({logPurchase:r})=>{o.default.ao()?r(...Array.prototype.slice.call(e)):t.logger.error(n.CoreStrings.ee)})},unregisterPush:function(){const e=arguments;_r(d[7])(d[11],d.paths).then(({unregisterPush:r})=>{o.default.ao()?r(...Array.prototype.slice.call(e)):t.logger.error(n.CoreStrings.ee)})},requestPushPermission:a(),changeUser:function(){const e=arguments;_r(d[7])(d[12],d.paths).then(({changeUser:r})=>{o.default.ao()?r(...Array.prototype.slice.call(e)):t.logger.error(n.CoreStrings.ee)})}},p=function(e){return function(){l[e](...Array.prototype.slice.call(arguments))}};for(const e of(0,s.keys)(l))u[e]=p(e);const f=["setFirstName","setLastName","setEmail","setGender","setDateOfBirth","setCountry","setHomeCity","setEmailNotificationSubscriptionType","setLanguage","addAlias","setPushNotificationSubscriptionType","setPhoneNumber","setCustomUserAttribute","addToCustomAttributeArray","removeFromCustomAttributeArray","incrementCustomUserAttribute","setCustomLocationAttribute","addToSubscriptionGroup","removeFromSubscriptionGroup","setLineId"],y=function(e){return function(){const t=(0,r.getUser)();t&&t[e](...Array.prototype.slice.call(arguments))}},m={};for(let e=0;e<f.length;e++)m[f[e]]=y(f[e]);u.getUser=function(){return m};const h={},b=function(t){return function(){const r=arguments;"function"!=typeof c?h[t](...Array.prototype.slice.call(r)):c(e,function(){h[t](...Array.prototype.slice.call(r))})}},A=u.display;for(const e of(0,s.keys)(h))A[e]=b(e);const T={registerAppboyPushMessages:a()},C=function(e){return function(){T[e](...Array.prototype.slice.call(arguments))}},P=u.web;for(const e of(0,s.keys)(T))P[e]=C(e);return u.NotificationSubscriptionTypes=i.default.NotificationSubscriptionTypes,u},u=(e,t,r)=>{const n=`([\\w]+)\\s*=\\s*document.createElement\\(['"]${r}['"]\\)`,o=e.match(new RegExp(n));if(o){const r=`${o[1]}.setAttribute("nonce", "${t}")`;return`${e.slice(0,o.index+o[0].length)};${r};${e.slice(o.index+o[0].length)}`}return null},a=(e,t,r)=>{let n=null;if(null!=r){n=document.createElement("html"),n.innerHTML=t||"";const e=n.getElementsByTagName("style");for(let t=0;t<e.length;t++)e[t].setAttribute("nonce",r);const o=n.getElementsByTagName("script");for(let e=0;e<o.length;e++){o[e].setAttribute("nonce",r),o[e].innerHTML=o[e].innerHTML.replace(/<style>/g,`<style nonce='${r}'>`);const t=u(o[e].innerHTML,r,"script");t&&(o[e].innerHTML=t);const n=u(o[e].innerHTML,r,"style");n&&(o[e].innerHTML=n)}}e.srcdoc=n?n.innerHTML:t||""}},4392,{"0":4356,"1":4376,"2":4352,"3":4355,"4":4360,"5":4402,"6":4383,"7":880,"8":4379,"9":4377,"10":4378,"11":4384,"12":4374,"paths":{}}); 46__d(function(g,_r,i,a,m,e,d){"use strict";
46Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});var t={Nu:function(t){const r=(t+"=".repeat((4-t.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),n=atob(r),u=new Uint8Array(n.length);for(let t=0;t<n.length;++t)u[t]=n.charCodeAt(t);return u}}},4393,[]); 47__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}});var n={de:function(){if("undefined"!=typeof window&&window.crypto){if("function"==typeof window.crypto.randomUUID)return window.crypto.randomUUID();if("function"==typeof window.crypto.getRandomValues)try{const n=new Uint8Array(16);window.crypto.getRandomValues(n),n[6]=15&n[6]|64,n[8]=63&n[8]|128;const t=Array.from(n,n=>("0"+n.toString(16)).slice(-2));return[t.slice(0,4).join(""),t.slice(4,6).join(""),t.slice(6,8).join(""),t.slice(8,10).join(""),t.slice(10,16).join("")].join("-")}catch(n){}}const n=(n=!1)=>{const t=(Math.random().toString(16)+"000000000").substr(2,8);return n?"-"+t.substr(0,4)+"-"+t.substr(4,4):t};return n()+n(!0)+n(!0)+n()}}},4394,[]); 48__d(function(g,_r,_i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return e}});class e{constructor(e,t){this.database=e,this.Ud=t,this.parent="undefined"==typeof window?self:window,this.database=e,this.Ud=t}Od(){if("indexedDB"in this.parent)return this.parent.indexedDB}isSupported(){var e;try{if(null==this.Od())return!1;{const t=null===(e=this.Od())||void 0===e?void 0:e.open("Braze IndexedDB Support Test");if(t&&(t.onupgradeneeded=()=>t.result.close(),t.onsuccess=()=>t.result.close()),"undefined"!=typeof window){const e=window,t=e.chrome||e.browser||e.kd;if(t&&t.runtime&&t.runtime.id)return this.Ud.info("Not using IndexedDB for storage because we are running inside an extension"),!1}return!0}}catch(e){return this.Ud.info("Not using IndexedDB for storage due to following error: "+e),!1}}Kd(e,t){var o;const n=null===(o=this.Od())||void 0===o?void 0:o.open(this.database.Gd,this.database.VERSION);if(null==n)return"function"==typeof t&&t(),!1;const r=this;return n.onupgradeneeded=e=>{var t;r.Ud.info("Upgrading indexedDB "+r.database.Gd+" to v"+r.database.VERSION+"...");const o=null===(t=e.target)||void 0===t?void 0:t.result;for(const e in r.database.Ws){const t=e;r.database.Ws.hasOwnProperty(e)&&!o.objectStoreNames.contains(r.database.Ws[t])&&o.createObjectStore(r.database.Ws[t])}},n.onsuccess=o=>{var n;const s=null===(n=o.target)||void 0===n?void 0:n.result;s.onversionchange=()=>{s.close(),"function"==typeof t&&t(),r.Ud.error("Needed to close the database unexpectedly because of an upgrade in another tab")},e(s)},n.onerror=e=>{var o;const n=e;return r.Ud.info("Could not open indexedDB "+r.database.Gd+" v"+r.database.VERSION+": "+(null===(o=n.target)||void 0===o?void 0:o.errorCode)),"function"==typeof t&&t(),!0},!0}setItem(e,t,o,n,r){if(!this.isSupported())return"function"==typeof r&&r(),!1;const s=this;return this.Kd(d=>{if(!d.objectStoreNames.contains(e))return s.Ud.error("Could not store object "+t+" in "+e+" on indexedDB "+s.database.Gd+" - "+e+" is not a valid objectStore"),"function"==typeof r&&r(),void d.close();const i=d.transaction([e],"readwrite");i.oncomplete=()=>d.close();const c=i.objectStore(e).put(o,t);c.onerror=()=>{s.Ud.error("Could not store object "+t+" in "+e+" on indexedDB "+s.database.Gd),"function"==typeof r&&r()},c.onsuccess=()=>{"function"==typeof n&&n()}},r)}getItem(e,t,o){if(!this.isSupported())return!1;const n=this;return this.Kd(r=>{if(!r.objectStoreNames.contains(e))return n.Ud.error("Could not retrieve object "+t+" in "+e+" on indexedDB "+n.database.Gd+" - "+e+" is not a valid objectStore"),void r.close();const s=r.transaction([e],"readonly");s.oncomplete=()=>r.close();const d=s.objectStore(e).get(t);d.onerror=()=>{n.Ud.error("Could not retrieve object "+t+" in "+e+" on indexedDB "+n.database.Gd)},d.onsuccess=e=>{var t;const n=null===(t=e.target)||void 0===t?void 0:t.result;null!=n&&o(n)}})}kr(e,t,o){if(!this.isSupported())return"function"==typeof o&&o(),!1;const n=this;return this.Kd(r=>{if(!r.objectStoreNames.contains(e))return n.Ud.error("Could not retrieve last record from "+e+" on indexedDB "+n.database.Gd+" - "+e+" is not a valid objectStore"),"function"==typeof o&&o(),void r.close();const s=r.transaction([e],"readonly");s.oncomplete=()=>r.close();const d=s.objectStore(e).openCursor(null,"prev");d.onerror=()=>{n.Ud.error("Could not open cursor for "+e+" on indexedDB "+n.database.Gd),"function"==typeof o&&o()},d.onsuccess=e=>{var n;const r=null===(n=e.target)||void 0===n?void 0:n.result;null!=r&&null!=r.value&&null!=r.key?t(r.key,r.value):"function"==typeof o&&o()}},o)}ge(e,t){if(!this.isSupported())return!1;const o=this;return this.Kd(n=>{if(!n.objectStoreNames.contains(e))return o.Ud.error("Could not delete record "+t+" from "+e+" on indexedDB "+o.database.Gd+" - "+e+" is not a valid objectStore"),void n.close();const r=n.transaction([e],"readwrite");r.oncomplete=()=>n.close(),r.objectStore(e).delete(t).onerror=()=>{o.Ud.error("Could not delete record "+t+" from "+e+" on indexedDB "+o.database.Gd)}})}Qs(e,t){if(!this.isSupported())return!1;const o=this;return this.Kd(n=>{if(!n.objectStoreNames.contains(e))return o.Ud.error("Could not retrieve objects from "+e+" on indexedDB "+o.database.Gd+" - "+e+" is not a valid objectStore"),void n.close();const r=n.transaction([e],"readwrite");r.oncomplete=()=>n.close();const s=r.objectStore(e),d=s.openCursor(),i=[];d.onerror=()=>{i.length>0?(o.Ud.info("Cursor closed midway through for "+e+" on indexedDB "+o.database.Gd),t(i)):o.Ud.error("Could not open cursor for "+e+" on indexedDB "+o.database.Gd)},d.onsuccess=e=>{var o;const n=null===(o=e.target)||void 0===o?void 0:o.result;null!=n?(null!=n.value&&null!=n.key&&(s.delete(n.key).onsuccess=()=>{i.push(n.value)}),"function"==typeof n.continue&&n.continue()):i.length>0&&t(i)}})}clearData(){if(!this.isSupported())return!1;const e=[];for(const t in this.database.Ws){const o=t;this.database.Ws.hasOwnProperty(t)&&this.database.Ws[o]!==this.database.Ws.pe&&e.push(this.database.Ws[o])}const t=this;return this.Kd(function(o){const n=o.transaction(e,"readwrite");n.oncomplete=()=>o.close();for(let o=0;o<e.length;o++){const r=e[o];
48n.objectStore(r).clear().onerror=function(){t.Ud.error("Could not clear "+this.source.name+" on indexedDB "+t.database.Gd)}}n.onerror=function(){t.Ud.error("Could not clear object stores on indexedDB "+t.database.Gd)}})}}e._s={Xs:{Gd:"AppboyServiceWorkerAsyncStorage",VERSION:6,Ws:{pn:"data",yr:"pushClicks",Fu:"pushSubscribed",Hd:"fallbackDevice",Vs:"cardUpdates",pe:"optOut",Br:"pendingData",wh:"sdkAuthenticationSignature"},be:1}}},4395,[]); 49__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}});var n={_h:"allowCrawlerActivity",Nh:"baseUrl",se:"cookieExpiryInDays",Oh:"noCookies",Th:"devicePropertyAllowlist",ka:"disablePushTokenMaintenance",Rh:"enableLogging",Ph:"enableSdkAuthentication",_a:"manageServiceWorkerExternally",Dh:"minimumIntervalBetweenTriggerActionsInSeconds",Lh:"sessionTimeoutInSeconds",yh:"appVersion",Mh:"appVersionNumber",xa:"serviceWorkerLocation",Ma:"safariWebsitePushId",qa:"localization",sr:"contentSecurityNonce",nr:"allowUserSuppliedJavascript",ja:"inAppMessageZIndex",ba:"openInAppMessagesInNewTab",oh:"requireExplicitInAppMessageDismissal",Uh:"doNotLoadFontAwesome",Wh:"deviceId",ya:"serviceWorkerScope",Ye:"dustHost",Bh:"sdkFlavor",tn:"openCardsInNewTab"}},4396,[]); 50__d(function(g,r,_i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return n}});var t,e=r(d[0]),h=r(d[1]),s=(t=h)&&t.__esModule?t:{default:t},i=r(d[2]);class n{constructor(t,e,h){this.j=t,this.gh=e,this.bh=h,this.j=t,this.gh=e||!1,this.bh=h,this.Sh=new s.default,this.Ah=0,this.ph=1}Fh(){return this.gh}kh(){return this.j.St(e.STORAGE_KEYS.It.fh)}setSdkAuthenticationSignature(t){const h=this.kh();this.j.Pt(e.STORAGE_KEYS.It.fh,t);const s=i.IndexedDBAdapter._s.Xs;new i.IndexedDBAdapter(s,i.logger).setItem(s.Ws.wh,this.ph,t),h!==t&&this.ct()}jh(){this.j.Vt(e.STORAGE_KEYS.It.fh);const t=i.IndexedDBAdapter._s.Xs;new i.IndexedDBAdapter(t,i.logger).ge(t.Ws.wh,this.ph)}subscribeToSdkAuthenticationFailures(t){return this.bh.Ut(t)}Ch(t){this.bh.A(t)}xh(){this.Sh.removeAllSubscriptions()}Eh(){this.Ah+=1}Ih(){return this.Ah}ct(){this.Ah=0}}},4397,[4359,4353,4356]); 51__d(function(g,_r,_i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var t,s=_r(d[0]),e=(t=s)&&t.__esModule?t:{default:t},i=_r(d[1]),n=_r(d[2]),r=_r(d[3]);class u{constructor(t,s,e,i,n){this.userId=t,this.type=s,this.time=e,this.sessionId=i,this.data=n,this.userId=t,this.type=s,this.time=(0,r.timestampOrNow)(e),this.sessionId=i,this.data=n}ta(){var t;const s={name:this.type,time:(0,r.convertMsToSeconds)(this.time),data:this.data||{},session_id:this.sessionId};null!=this.userId&&(s.user_id=this.userId);const n=(null===(t=e.default.Er())||void 0===t?void 0:t.Fh())||!1;if(!s.user_id&&!n){const t=(0,i.getAlias)(e.default.p());t&&(s.alias=t)}return s}qt(){return{u:this.userId,t:this.type,ts:this.time,s:this.sessionId,d:this.data}}static fromJson(t){return new u(t.user_id,t.name,t.time,t.session_id,t.data)}static AS(t){return null!=t&&(0,n.isObject)(t)&&null!=t.t&&""!==t.t}static _u(t){return new u(t.u,t.t,t.ts,t.s,t.d)}}},4398,[4355,4399,4360,4351]); 52__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.getAlias=function(t){const l=null==t?void 0:t.St(e.STORAGE_KEYS.It.lS);let n;return l&&(n={label:l.l,name:l.a}),n};var e=r(d[0])},4399,[4359]); 53__d(function(g,_r,_i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return r}});var e=_r(d[0]),t=_r(d[1]),n=_r(d[2]);class r{constructor(t,n,r){this.Tu=t,null==t&&(t=e.Guid.de()),!r||isNaN(r)?this.lm=(new Date).valueOf():this.lm=r,this.Tu=t,this.pm=(new Date).valueOf(),this.fm=n}qt(){return`g:${encodeURIComponent(this.Tu)}|e:${this.fm}|c:${this.lm}|l:${this.pm}`}static TS(e){if("string"!=typeof e)return null;const t=e.lastIndexOf("|e:"),n=e.substring(0,t),r=n.split("g:")[1];let s;return s=/[|:]/.test(r)?encodeURIComponent(r):r,e.replace(n,`g:${s}`)}static _u(s){let i;if("string"==typeof s)try{const e=s.split("|");if(!(0,t.isArray)(e)||4!==e.length)return null;const n=e=>e.split(":")[1],l=e=>{const t=parseInt(n(e));if(!isNaN(t))return t};i=new r(decodeURIComponent(n(e[0])),l(e[1]),l(e[2])),i.pm=l(e[3])}catch(i){e.logger.info(`Unable to parse cookie string ${s}, failed with error: ${(0,n.getErrorMessage)(i)}`)}else{if(null==s||null==s.g)return null;i=new r(s.g,s.e,s.c),i.pm=s.l}return i}}},4400,[4356,4360,4401]); 54__d(function(g,_r,i,a,m,e,d){"use strict";
54Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"getErrorMessage",{enumerable:!0,get:function(){return r}});const r=r=>r instanceof Error?r.message:String(r)},4401,[]); 55__d(function(g,_r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var t=_r(d[0]),e=_r(d[1]),r=_r(d[2]),n=_r(d[3]),s=_r(d[4]);class u{constructor(t,e){this.Ss=t,this.Ru=e,this.Ss=t,this.Ru=e}getUserId(t){const r=this.Ss.getUserId();if("function"!=typeof t)return r;e.logger.warn("The callback for getUserId is deprecated. You can access its return value directly instead (e.g. `const id = braze.getUser().getUserId()`)"),t(r)}addAlias(t,n){return!(0,r.validateStandardString)(t,"add alias","the alias",!1)||t.length<=0?(e.logger.error("addAlias requires a non-empty alias"),!1):!(0,r.validateStandardString)(n,"add alias","the label",!1)||n.length<=0?(e.logger.error("addAlias requires a non-empty label"),!1):this.Ru.Gu(t,n).lt}setFirstName(t){return!!(0,r.validateStandardString)(t,"set first name","the firstName",!0)&&this.Ss.zu("first_name",t)}setLastName(t){return!!(0,r.validateStandardString)(t,"set last name","the lastName",!0)&&this.Ss.zu("last_name",t)}setEmail(t){return null===t||(0,r.isValidEmail)(t)?this.Ss.zu("email",t):(e.logger.error(`Cannot set email address - "${t}" did not pass RFC-5322 validation.`),!1)}setGender(e){return"string"==typeof e&&(e=e.toLowerCase()),!(null!==e&&!(0,t.validateValueIsFromEnum)(u.Genders,e,`Gender "${e}" is not a valid gender.`,"User.Genders"))&&this.Ss.zu("gender",e)}setDateOfBirth(t,r,n){return null===t&&null===r&&null===n?this.Ss.zu("dob",null):(t=null!=t?parseInt(t.toString()):null,r=null!=r?parseInt(r.toString()):null,n=null!=n?parseInt(n.toString()):null,null==t||null==r||null==n||isNaN(t)||isNaN(r)||isNaN(n)||r>12||r<1||n>31||n<1?(e.logger.error("Cannot set date of birth - parameters should comprise a valid date e.g. setDateOfBirth(1776, 7, 4);"),!1):this.Ss.zu("dob",`${t}-${r}-${n}`))}setCountry(t){return!!(0,r.validateStandardString)(t,"set country","the country",!0)&&this.Ss.zu("country",t)}setHomeCity(t){return!!(0,r.validateStandardString)(t,"set home city","the homeCity",!0)&&this.Ss.zu("home_city",t)}setLanguage(t){return!!(0,r.validateStandardString)(t,"set language","the language",!0)&&this.Ss.zu("language",t)}setEmailNotificationSubscriptionType(e){return!!(0,t.validateValueIsFromEnum)(u.NotificationSubscriptionTypes,e,`Email notification setting "${e}" is not a valid subscription type.`,"User.NotificationSubscriptionTypes")&&this.Ss.zu("email_subscribe",e)}setPushNotificationSubscriptionType(e){return!!(0,t.validateValueIsFromEnum)(u.NotificationSubscriptionTypes,e,`Push notification setting "${e}" is not a valid subscription type.`,"User.NotificationSubscriptionTypes")&&this.Ss.zu("push_subscribe",e)}setPhoneNumber(t){return!!(0,r.validateStandardString)(t,"set phone number","the phoneNumber",!0)&&(null===t||t.match(u.Hu)?this.Ss.zu("phone",t):(e.logger.error(`Cannot set phone number - "${t}" did not pass validation.`),!1))}setLastKnownLocation(t,r,n,s,u){return null==t||null==r?(e.logger.error("Cannot set last-known location - latitude and longitude are required."),!1):(t=parseFloat(t.toString()),r=parseFloat(r.toString()),null!=n&&(n=parseFloat(n.toString())),null!=s&&(s=parseFloat(s.toString())),null!=u&&(u=parseFloat(u.toString())),isNaN(t)||isNaN(r)||null!=n&&isNaN(n)||null!=s&&isNaN(s)||null!=u&&isNaN(u)?(e.logger.error("Cannot set last-known location - all supplied parameters must be numeric."),!1):t>90||t<-90||r>180||r<-180?(e.logger.error("Cannot set last-known location - latitude and longitude are bounded by \xb190 and \xb1180 respectively."),!1):null!=n&&n<0||null!=u&&u<0?(e.logger.error("Cannot set last-known location - accuracy and altitudeAccuracy may not be negative."),!1):this.Ru.setLastKnownLocation(this.Ss.getUserId(),t,r,s,n,u).lt)}setCustomUserAttribute(u,o,l){if(!(0,r.validateCustomAttributeKey)(u))return!1;const c=t=>{const[e]=(0,r.validateCustomProperties)(t,n.CoreStrings.Ku,"attribute value",`set custom user attribute "${u}"`,"custom user attribute");return e};if((0,t.isArray)(o)){const[t,n]=(0,r.validateCustomAttributeArrayType)(u,o);if(!t&&!n&&0!==o.length)return!1;if(t||0===o.length)return this.Ru.Mu(e.EventTypes.Yu,u,o).lt;for(const t of o)if(!c(t))return!1}else if((0,t.isObject)(o)){if(!c(o))return!1;if(l)return this.Ru.Mu(e.EventTypes.Vu,u,o).lt}else{if(void 0===o||!(0,r.validatePropertyType)(o))return!1;if((0,t.isDate)(o)&&(o=(0,s.toValidBackendTimeString)(o)),"string"==typeof o&&!(0,r.validateCustomString)(o,`set custom user attribute "${u}"`,"the element in the given array"))return!1}return this.Ss.setCustomUserAttribute(u,o)}addToCustomAttributeArray(t,n){return!!(0,r.validateCustomString)(t,"add to custom user attribute array","the given key")&&!(null!=n&&!(0,r.validateCustomString)(n,"add to custom user attribute array","the given value"))&&this.Ru.Mu(e.EventTypes.Qu,t,n).lt}removeFromCustomAttributeArray(t,n){return!!(0,r.validateCustomString)(t,"remove from custom user attribute array","the given key")&&!(null!=n&&!(0,r.validateCustomString)(n,"remove from custom user attribute array","the given value"))&&this.Ru.Mu(e.EventTypes.Xu,t,n).lt}incrementCustomUserAttribute(t,n){if(!(0,r.validateCustomString)(t,"increment custom user attribute","the given key"))return!1;null==n&&(n=1);const s=parseInt(n.toString());return isNaN(s)||s!==parseFloat(n.toString())?(e.logger.error(`Cannot increment custom user attribute because the given incrementValue "${n}" is not an integer.`),!1):this.Ru.Mu(e.EventTypes.Zu,t,s).lt}setCustomLocationAttribute(t,n,s){return!!(0,r.validateCustomString)(t,"set custom location attribute","the given key")&&((null!==n||null!==s)&&(n=null!=n?parseFloat(n.toString()):null,
55s=null!=s?parseFloat(s.toString()):null,null==n&&null!=s||null!=n&&null==s||null!=n&&(isNaN(n)||n>90||n<-90)||null!=s&&(isNaN(s)||s>180||s<-180))?(e.logger.error("Received invalid values for latitude and/or longitude. Latitude and longitude are bounded by \xb190 and \xb1180 respectively, or must both be null for removal."),!1):this.Ru.Na(t,n,s).lt)}addToSubscriptionGroup(t){return!(0,r.validateStandardString)(t,"add user to subscription group","subscription group ID",!1)||t.length<=0?(e.logger.error("addToSubscriptionGroup requires a non-empty subscription group ID"),!1):this.Ru.va(t,u.Ia.SUBSCRIBED).lt}removeFromSubscriptionGroup(t){return!(0,r.validateStandardString)(t,"remove user from subscription group","subscription group ID",!1)||t.length<=0?(e.logger.error("removeFromSubscriptionGroup requires a non-empty subscription group ID"),!1):this.Ru.va(t,u.Ia.UNSUBSCRIBED).lt}setLineId(t){return(0,r.validateStandardString)(t,"set LINE user ID","the ID",!0)&&0!==(null==t?void 0:t.length)?t&&t.length>u.Ca?(e.logger.error(`Rejected LINE user ID ${t} because it is longer than ${u.Ca} characters.`),!1):this.Ss.zu("native_line_id",t):(e.logger.error("setLineId requires a non-empty ID"),!1)}gu(t,e,r,n,s){this.Ss.gu(t,e,r,n,s),this.Ru.Ea()}wu(t){this.Ss.wu(t)}}u.Genders={MALE:"m",FEMALE:"f",OTHER:"o",UNKNOWN:"u",NOT_APPLICABLE:"n",PREFER_NOT_TO_SAY:"p"},u.NotificationSubscriptionTypes={OPTED_IN:"opted_in",SUBSCRIBED:"subscribed",UNSUBSCRIBED:"unsubscribed"},u.Hu=/^[0-9 .\\(\\)\\+\\-]+$/,u.Ia={SUBSCRIBED:"subscribed",UNSUBSCRIBED:"unsubscribed"},u.Sa="user_id",u.Bu="custom",u.br=997,u.Ca=33},4402,[4360,4356,4369,4352,4351]); 56__d(function(g,_r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.getByteLength=function(e){let t=e.length;for(let r=e.length-1;r>=0;r--){const n=e.charCodeAt(r);n>127&&n<=2047?t++:n>2047&&n<=65535&&(t+=2),n>=56320&&n<=57343&&r--}return t},_e.decodeBrazeActions=function(t){try{t=t.replace(/-/g,"+").replace(/_/g,"/");const e=window.atob(t),r=new Uint8Array(e.length);for(let t=0;t<e.length;t++)r[t]=e.charCodeAt(t);const n=new Uint16Array(r.buffer);return String.fromCharCode(...n)}catch(t){return e.logger.error("Unable to decode Base64: "+t),null}};var e=_r(d[0])},4403,[4356]); 57__d(function(g,r,_i,a,m,_e,d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"BrowserDetector",{enumerable:!0,get:function(){return o}});var e=t(r(d[0])),n=t(r(d[1])),i=r(d[2]);class o{constructor(){let t;t=navigator.userAgent.toLowerCase().includes(i.Browsers.Sg.toLowerCase())||!navigator.userAgentData?n.default:e.default,this.vg=new t,this.userAgent=navigator.userAgent,this.browser=this.vg.ef(),this.version=this.vg.ff(),this.OS=null,this.Fa().then(t=>this.OS=t);const s=navigator;this.language=(s.userLanguage||s.language||s.browserLanguage||s.systemLanguage||"").toLowerCase(),this.il=o.xg(this.userAgent)}bS(){return this.browser===i.Browsers.Bg}Aa(){return this.OS||null}Fa(){return this.OS?Promise.resolve(this.OS):this.vg.Fa(o.Og).then(t=>(this.OS=t,t))}static xg(t){t=t.toLowerCase();const e=["bot","spider","slurp","yandex","facebookexternalhit","sogou","ia_archiver","https://github.com/prerender/prerender","aolbuild","bingpreview","mediapartners-google","teoma","taiko","facebookexternalhit","facebookcatalog","meta-webindexer","meta-externalads","meta-externalagent","meta-externalfetcher"];for(let n=0;n<e.length;n++)if(-1!==t.indexOf(e[n]))return!0;return!1}}o.Og=[{string:navigator.platform,cf:"Win",identity:i.OperatingSystems.kg},{string:navigator.platform,cf:"Mac",identity:i.OperatingSystems.Pg},{string:navigator.platform,cf:"BlackBerry",identity:"BlackBerry"},{string:navigator.platform,cf:"FreeBSD",identity:"FreeBSD"},{string:navigator.platform,cf:"OpenBSD",identity:"OpenBSD"},{string:navigator.platform,cf:"Nintendo",identity:"Nintendo"},{string:navigator.platform,cf:"SunOS",identity:"SunOS"},{string:navigator.platform,cf:"PlayStation",identity:"PlayStation"},{string:navigator.platform,cf:"X11",identity:"X11"},{string:navigator.userAgent,cf:["iPhone","iPad","iPod"],identity:i.OperatingSystems.co},{string:navigator.platform,cf:"Pike v",identity:i.OperatingSystems.co},{string:navigator.userAgent,cf:["Web0S"],identity:"WebOS"},{string:navigator.userAgent,cf:"Tizen",identity:"Tizen"},{string:navigator.userAgent,cf:"Coolita",identity:"Other Smart TV"},{string:navigator.userAgent,cf:"WhaleTV",identity:"Other Smart TV"},{string:navigator.platform,cf:["Linux armv7l","Android"],identity:i.OperatingSystems.Dg},{string:navigator.userAgent,cf:["Android"],identity:i.OperatingSystems.Dg},{string:navigator.platform,cf:"Linux",identity:"Linux"}];const s=new o},4404,[4405,4408,4407]); 58__d(function(g,_r,_i,a,m,_e,d){"use strict";
58Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return n}});var t,e=_r(d[0]),r=(t=e)&&t.__esModule?t:{default:t},s=_r(d[1]);class n extends r.default{constructor(){if(super(),this.userAgentData=navigator.userAgentData,this.browser=null,this.version=null,this.userAgentData){const t=this.Bc();this.browser=t.browser||"Unknown Browser",this.version=t.version||"Unknown Version"}this.OS=null}ef(){return this.browser}ff(){return this.version}Fa(t){if(this.OS)return Promise.resolve(this.OS);const e=e=>{for(let r=0;r<t.length;r++){const s=n.nf(e,t[r]);if(s)return this.OS=s,this.OS}return e};return this.userAgentData.platform?Promise.resolve(e(this.userAgentData.platform)):this.getHighEntropyValues().then(t=>t.platform?e(t.platform):navigator.platform).catch(()=>navigator.platform)}Bc(){const t={},e=this.userAgentData.brands;if(e&&e.length)for(const r of e){const e=this.Vc(s.Browsers),n=r.brand.match(e);if(n&&n.length>0){t.browser=n[0],t.version=r.version;break}}return t}Vc(t){const e=[];for(const r in t){const s=r;e.push(t[s])}return new RegExp("("+e.join("|")+")","i")}getHighEntropyValues(){return this.userAgentData.getHighEntropyValues?this.userAgentData.getHighEntropyValues(["platform"]):Promise.reject()}}},4405,[4406,4407]); 59__d(function(g,_r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return t}});var e=_r(d[0]);class t{constructor(){}ef(){}ff(){}Fa(e){}static nf(t,r){if(t&&r)if(t=t.toLowerCase(),(0,e.isArray)(r.cf)){for(let e=0;e<r.cf.length;e++)if(-1!==t.indexOf(r.cf[e].toLowerCase()))return r.identity}else if(-1!==t.indexOf(r.cf.toLowerCase()))return r.identity}}},4406,[4360]); 60__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"Browsers",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"OperatingSystems",{enumerable:!0,get:function(){return n}});const t={rO:"Chrome",eO:"Edge",oO:"Opera",Bg:"Safari",OO:"Firefox",Sg:"ChatGPTBrowser"},n={Dg:"Android",co:"iOS",Pg:"Mac",kg:"Windows"}},4407,[]); 61__d(function(g,_r,_i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return t}});var r,e=_r(d[0]),n=(r=e)&&r.__esModule?r:{default:r}
61,s=_r(d[1]);class t extends n.default{constructor(){super(),this.Sd=t.Bc(navigator.userAgent||"")}ef(){return this.Sd[0]||"Unknown Browser"}ff(){return this.Sd[1]||"Unknown Version"}Fa(r){for(let e=0;e<r.length;e++){const n=r[e].string;let i=t.nf(n,r[e]);if(i)return i===s.OperatingSystems.Pg&&navigator.maxTouchPoints>1&&(i=s.OperatingSystems.co),Promise.resolve(i)}return Promise.resolve(navigator.platform)}static Bc(r){let e,n=r.match(/(samsungbrowser|tizen|roku|konqueror|icab|crios|opera|ucbrowser|chatgptbrowser|chrome|safari|firefox|camino|msie|trident(?=\/))\/?\s*(\.?\d+(\.\d+)*)/i)||[];if(-1!==r.indexOf("(Web0S; Linux/SmartTV)"))return["LG Smart TV",null];if(-1!==r.indexOf("CrKey"))return["Chromecast",null];if(-1!==r.indexOf("BRAVIA")||-1!==r.indexOf("SonyCEBrowser")||-1!==r.indexOf("SonyDTV"))return["Sony Smart TV",null];if(-1!==r.indexOf("PhilipsTV"))return["Philips Smart TV",null];if(r.match(/\b(Roku)\b/))return["Roku",null];if(r.match(/\bAFTM\b/))return["Amazon Fire Stick",null];if(n[1]===s.Browsers.rO){if(r.includes(s.Browsers.Sg))return[s.Browsers.Sg,n[2]];if(e=r.match(/\b(OPR|Edge|EdgA|Edg|UCBrowser)\/(\.?\d+(\.\d+)*)/),null!=e)return e=e.slice(1),e[0]=e[0].replace("OPR",s.Browsers.oO),e[0]=e[0].replace("EdgA",s.Browsers.eO),"Edg"===e[0]&&(e[0]=s.Browsers.eO),[e[0],e[1]]}if(n[1]===s.Browsers.Bg&&(e=r.match(/\b(EdgiOS)\/(\.?\d+(\.\d+)*)/),null!=e))return e=e.slice(1),e[0]=e[0].replace("EdgiOS",s.Browsers.eO),[e[0],e[1]];if(n=n[2]?[n[1],n[2]]:[null,null],n[0]===s.Browsers.Bg&&null!=(e=r.match(/version\/(\.?\d+(\.\d+)*)/i))&&n.splice(1,1,e[1]),null!=(e=r.match(/\b(UCBrowser)\/(\.?\d+(\.\d+)*)/))&&n.splice(1,1,e[2]),n[0]===s.Browsers.oO&&null!=(e=r.match(/mini\/(\.?\d+(\.\d+)*)/i)))return["Opera Mini",e[1]||""];if(n[0]){const r=n[0].toLowerCase();"crios"===r&&(n[0]=s.Browsers.rO),"tizen"===r&&(n[0]="Samsung Smart TV",n[1]=null),"samsungbrowser"===r&&(n[0]="Samsung Browser")}return n}}},4408,[4406,4407]); 62__d(function(g,_r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return c}});var t=e(_r(d[0])),n=e(_r(d[1])),r=e(_r(d[2])),s=e(_r(d[3])),u=_r(d[4]),l=_r(d[5]),o=_r(d[6]),f=_r(d[7]);class c{constructor(e,t){this.j=e,this.Da=t,this.j=e,null==t&&(t=(0,o.values)(r.default)),this.Da=t}ve(e=!0){let o=this.j.$u(l.STORAGE_KEYS.Ou.Wh);null==o&&(o=new s.default(u.Guid.de()),e&&this.j.Iu(l.STORAGE_KEYS.Ou.Wh,o));const f=new n.default(o.Tu);for(let e=0;e<this.Da.length;e++)switch(this.Da[e]){case r.default.BROWSER:f.browser=t.default.browser;break;case r.default.BROWSER_VERSION:f.Oa=t.default.version;break;case r.default.OS:f.os=this.Fa();break;case r.default.RESOLUTION:f.Ga=screen.width+"x"+screen.height;break;case r.default.LANGUAGE:f.language=t.default.language;break;case r.default.TIME_ZONE:f.timeZone=this.Ja(new Date);break;case r.default.USER_AGENT:f.userAgent=t.default.userAgent}return f}Fa(){if(t.default.Aa())return t.default.Aa();const e=this.j.St(l.STORAGE_KEYS.It.Ba);return e&&e.os_version?e.os_version:t.default.Fa()}Ja(e){let t=!1;if("undefined"!=typeof Intl&&"function"==typeof Intl.DateTimeFormat)try{if("function"==typeof Intl.DateTimeFormat().resolvedOptions){const e=Intl.DateTimeFormat().resolvedOptions().timeZone;if(null!=e&&""!==e)return e}}catch(e){u.logger.info("Intl.DateTimeFormat threw an error, cannot detect user's time zone:"+(0,f.getErrorMessage)(e)),t=!0}if(t)return"";const n=e.getTimezoneOffset();return this.Ha(n)}Ha(e){const t=Math.trunc(e/60),n=Math.trunc(e%60);let r="GMT";return 0!==e&&(r+=e<0?"+":"-",r+=("00"+Math.abs(t)).slice(-2)+":"+("00"+Math.abs(n)).slice(-2)),r}}},4409,[4404,4410,4375,4400,4356,4359,4360,4401]); 63__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});class t{constructor(t){this.id=t,this.id=t}ta(){const t={};return null!=this.browser&&(t.browser=this.browser),null!=this.Oa&&(t.browser_version=this.Oa),null!=this.os&&(t.os_version=this.os),null!=this.resolution&&(t.resolution=this.resolution),null!=this.language&&(t.locale=this.language),null!=this.timeZone&&(t.time_zone=this.timeZone),null!=this.userAgent&&(t.user_agent=this.userAgent),t}}},4410,[]); 64__d(function(g,_r,_i,_a,_m,_e,_d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}
64Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return c}});var e=t(_r(_d[0])),s=t(_r(_d[1])),i=_r(_d[2]),r=t(_r(_d[3])),n=_r(_d[4]),l=_r(_d[5]),a=_r(_d[6]),h=t(_r(_d[7])),o=_r(_d[8]),u=_r(_d[9]),d=_r(_d[10]);class c{constructor(t,e,s,i,r,n,l,a,h,o,u,d){this.eu=t,this.j=e,this.Gh=s,this.Ss=i,this.C=r,this.h=n,this.tu=l,this.Yh=a,this.Vh=h,this.Kh=o,this.appVersion=u,this.Ra=d,this.Xa=t=>null==t?"":`${t} `,this.eu=t,this.j=e,this.Gh=s,this.Ss=i,this.C=r,this.h=n,this.tu=l,this.Yh=a,this.Vh=h,this.Kh=o,this.appVersion=u,this.Ra=d,this.$a=["npm"],this.La={}}Z(t,e=!1,s=!1){const r=this.eu.ve(!s),l=r.ta(),h=this.j.St(a.STORAGE_KEYS.It.Ba);(0,n.isEqual)(h,l)||(t.device=l),t.api_key=this.tu,t.time=(0,i.convertMsToSeconds)((new Date).valueOf(),!0);const o=this.j.St(a.STORAGE_KEYS.It.Ka)||[],d=this.j.St(a.STORAGE_KEYS.It.Pa)||"";this.$a.length>0&&(!(0,n.isEqual)(o,this.$a)||d!==this.C.$t())&&(t.sdk_metadata=this.$a),t.sdk_version=this.Vh,this.Kh&&(t.sdk_flavor=this.Kh),t.app_version=this.appVersion,t.app_version_code=this.Ra,t.device_id=r.id;const c=this.Ss.getUserId();if(e&&null!==c&&(t.user_id=c),!c&&!this.Gh.Fh()){const e=(0,u.getAlias)(this.j);e&&(t.alias=e)}return t}ut(t,s,i){const a=s.auth_error,h=s.error;if(!a&&!h)return!0;if(a){let e;this.Gh.Eh();const s={errorCode:a.error_code};for(const t of i)(0,n.isArray)(t)&&"X-Braze-Auth-Signature"===t[0]&&(s.signature=t[1]);t.respond_with&&t.respond_with.user_id?s.userId=t.respond_with.user_id:t.user_id&&(s.userId=t.user_id);const r=a.reason;return r?(s.reason=r,e=`due to ${r}`):e=`with error code ${a.error_code}.`,this.Gh.Fh()||(e+=' Please use the "enableSdkAuthentication" initialization option to enable authentication.'),l.logger.error(`SDK Authentication failed ${e}`),this.Ua(t.events||[],t.attributes||[]),this.Gh.Ch(s),!1}if(h){let i,n=h;switch(n){case e.default.Wa:return i="Received successful response with empty body.",r.default.Dt(l.EventTypes.Ya,{e:i}),l.logger.info(i),!1;case e.default.Qa:return i="Received successful response with invalid JSON",r.default.Dt(l.EventTypes.Ya,{e:i+": "+s.response}),l.logger.info(i),!1;case e.default.Va:n=`The API key "${t.api_key}" is invalid for the baseUrl ${this.Yh}`;break;case e.default.Za:n="Sorry, we are not currently accepting your requests. If you think this is in error, please contact us.";break;case e.default.dl:n="No device identifier. Please contact Braze Technical Support for assistance."}l.logger.error("Backend error: "+n)}return!1}fl(t,e,s){return!!(t&&0!==t.length||e&&0!==e.length||s)}ml(t,e,s,i=!1){const r=[],n=t=>t||"",l=n(this.Ss.getUserId());let a=this.Zo(t);const o=[],u=[];let d,c=null;if(e.length>0){const t=[];
64for(const s of e){if(d=s.ta(),this.Gh.Fh()){if(l&&!d.user_id){c||(c={}),c.events||(c.events=[]),c.events.push(d);continue}if(n(d.user_id)!==l){u.push(d);continue}}t.push(d)}t.length>0&&(a.events=t)}if(s.length>0){const t=[];for(const e of s)e&&(this.Gh.Fh()&&n(e.user_id)!==l?o.push(e):t.push(e));t.length>0&&(a.attributes=t)}if(this.Ua(u,o),a=this.Z(a,!1,i),c){c=this.Z(c,!1,i);const t={requestData:c,headers:this.tt(c,h.default.it.pn)};r.push(t)}if(a&&!this.fl(a.events,a.attributes,t))return c?r:null;const f={requestData:a,headers:this.tt(a,h.default.it.pn)};return r.push(f),r}Ua(t,e){if(t){const e=[];for(const r of t){const t=s.default.fromJson(r);t.time=(0,i.convertSecondsToMs)(t.time),e.push(t)}this.j.ol(e)}if(e)for(const t of e)this.j.vl(t)}dt(t,e){let s="HTTP error ";null!=t&&(s+=t+" "),s+=e,l.logger.error(s)}Rl(t){return r.default.Dt(l.EventTypes.gl,{n:t})}Zo(t,e){const s={};t&&(s.triggers=!0);const i=null!=e?e:this.Ss.getUserId();if(i&&(s.user_id=i),!s.user_id&&!this.Gh.Fh()){const t=(0,u.getAlias)(this.j);t&&(s.alias=t)}return s.config={config_time:this.h.Qt()},{respond_with:s}}bl(t){const e=(new Date).valueOf();let s=o.LAST_REQUEST_TO_ENDPOINT_MS_AGO_DEFAULT.toString();const i=h.default.ql(this.j,t);return-1!==i&&(s=(e-i).toString()),s}tt(t,e,s="sdk"){const i=[["X-Braze-Api-Key",this.tu]],r=this.bl(e);i.push(["X-Braze-Last-Req-Ms-Ago",r]);const n=h.default.Al(this.j,e).toString();i.push(["X-Braze-Req-Attempt",n]);let l=!1;if(null!=t.respond_with&&t.respond_with.triggers&&(i.push(["X-Braze-TriggersRequest","true"]),l=!0),e===h.default.it.Mi){i.push(["X-Braze-ContentCardsRequest","true"]);let t=h.default.Al(this.j,h.default.it.Mi);t&&"client"!==s||(t=1,h.default.Dl(this.j,h.default.it.Mi,t));const e=Math.max(0,t-1);i.push(["BRAZE-SYNC-RETRY-COUNT",e.toString()]),l=!0}if(e===h.default.it.Co&&(i.push(["X-Braze-FeatureFlagsRequest","true"]),l=!0),l&&i.push(["X-Braze-DataRequest","true"]),"dust"===s&&i.push(["X-Braze-Request-Initiated-By","di"]),this.Gh.Fh()){const t=this.Gh.kh();null!=t&&i.push(["X-Braze-Auth-Signature",t])}return i}Tl(t,e,s,i){if(this.La[i])return;const r=window.setTimeout(()=>{l.logger.info(`Retrying rate limited ${this.Xa(i)}SDK request.`),this.et(e,s,i)},t);this.La[i]=r}fo(){for(const t in this.La){const e=this.La[t];window.clearTimeout(e)}this.La={}}et(t,e,s,i){if(!this.kl(s))return l.logger.info(`${this.Xa(s)}SDK request being rate limited.`),void("function"==typeof i&&i());const r=this.yl();if(!r.wl)return this.Tl(r.Nl,t,e,s),void l.logger.info(`${this.Xa(s)}SDK request being rate limited. Request will be retried in ${Math.trunc(r.Nl/1e3)} seconds.`);this.j.Pt(a.STORAGE_KEYS.It.Bl,(new Date).valueOf());const n=t.device;n&&n.os_version instanceof Promise?n.os_version.then(s=>{t.device.os_version=s,e(r.Sl)}):e(r.Sl)}Cl(t){const e=t?(0,d.readResponseHeaders)(t):null;if(!e||!e["retry-after"])return null;const s=e["retry-after"];if(isNaN(s)&&!isNaN(Date.parse(s)))return{type:"date",value:Date.parse(s)};if(!isNaN(parseFloat(s.toString())))return{type:"timestamp",value:1e3*parseFloat(s.toString())};r.default.Dt(l.EventTypes.Ya,{e:"Received unexpected value for retry-after header in /sync response: "+s});return null}yt(t,e,s,i,r,n){if(h.default.Al(this.j,s)>=o.MAX_RETRY_COUNT_PER_REQUEST)return;let l;n=n||0;const a=this.Cl(t);r();const u=t=>{const r=window.setTimeout(()=>{e()},t);i(r),h.default.zl(this.j,s)};if(a&&!isNaN(a.value)){switch(a.type){case"date":l=a.value-(new Date).getTime()+n,l<0&&e();break;case"timestamp":l=a.value+n}u(l)}else n?u(n):h.default.Ji(this.j,s)}jl(t){var e;null===(e=this.j)||void 0===e||e.Pt(a.STORAGE_KEYS.It.Ml,t)}Xl(t,e){let s=this.$l();null==s&&(s={}),s[t]=e,this.j.Pt(a.STORAGE_KEYS.It.Ll,s)}El(){var t;return null===(t=this.j)||void 0===t?void 0:t.St(a.STORAGE_KEYS.It.Ml)}$l(){var t;return null===(t=this.j)||void 0===t?void 0:t.St(a.STORAGE_KEYS.It.Ll)}Fl(t,e,s,i,r=""){let n;if(r){const t=this.$l();n=null==t||isNaN(t[r])?e:t[r]}else n=this.El(),(null==n||isNaN(n))&&(n=e);const l=(t-i)/1e3;return n=Math.min(n+l/s,e),n}Il(t,e){return Math.max(0,(1-t)*e*1e3)}Kl(t,e=""){var s,i,r,n,l;const o={wl:!0,Sl:-1,Nl:0};if(null==t&&(t=!0),!t&&!e)return o;let u,d,c=null;if(t)c=null===(s=this.j)||void 0===s?void 0:s.St(a.STORAGE_KEYS.It.Bl);else{const t=h.default.Pl(this.j);if(null==t||null==t[e])return o;c=t[e]}if(null==c||isNaN(c))return o;if(t?(u=(null===(i=this.h)||void 0===i?void 0:i.Ul())||-1,d=(null===(r=this.h)||void 0===r?void 0:r.xl())||-1):(u=(null===(n=this.h)||void 0===n?void 0:n.Hl(e))||-1,d=(null===(l=this.h)||void 0===l?void 0:l.Ol(e))||-1),-1===u||-1===d)return o;const f=(new Date).valueOf();let p=this.Fl(f,u,d,c,e);return p<1?(o.wl=!1,o.Nl=this.Il(p,d),o):(p=Math.trunc(p)-1,o.Sl=p,t?this.jl(p):this.Xl(e,p),o)}yl(){return this.Kl(!0)}kl(t){const e=this.Kl(!1,t);return!(e&&!e.wl)}ct(){this.Gh.ct()}ht(){return this.Yh}addSdkMetadata(t){for(const e of t)-1===this.$a.indexOf(e)&&this.$a.push(e)}}},4411,[4412,4398,4351,4357,4360,4356,4359,4364,4352,4399,4361]); 65__d(function(g,r,i,a,m,e,d){"use strict";
65Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}});var n={Va:"invalid_api_key",Za:"blacklisted",dl:"no_device_identifier",Qa:"invalid_json_response",Wa:"empty_response",__:"sdk_auth_error"}},4412,[]); 66__d(function(_g,_r,_i,a,_m,_e,_d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return f}});var e=_r(_d[0]),i=t(_r(_d[1])),s=_r(_d[2]),n=_r(_d[3]),h=t(_r(_d[4])),l=t(_r(_d[5])),u=t(_r(_d[6])),o=t(_r(_d[7])),r=_r(_d[8]),c=t(_r(_d[9])),d=t(_r(_d[10]));class f{constructor(t,e,i,s,n,l,u,o,r,c){this.tu=t,this.baseUrl=e,this.C=i,this.eu=s,this.Ss=n,this.h=l,this.j=u,this.hc=o,this.Gh=r,this.B=c,this.tu=t,this.baseUrl=e,this.nc=0,this.IS=u.dS()||0,this.lc=null,this.C=i,this.eu=s,this.Ss=n,this.h=l,this.j=u,this.Gh=r,this.B=c,this.hc=o,this.uc=new h.default,this.cc=null,this.dc=50,this.mc=!1,this.fc=!1}gc(t,e){return!t&&!e&&this.Gh.Ih()>=this.dc}vc(t){let i=this.C.am();if(t.length>0){const s=this.Ss.getUserId();for(const n of t){const t=!n.userId&&!s||n.userId===s;n.type===e.EventTypes.wm&&t&&(i=!0)}}return i}bc(t=!1,i=!0,s,h,l,u=!1,o=!1){i&&this.wc();const f=this.j.hS(),g=this.j.RS();let S=!1;const v=(t,e,u=-1)=>{const o=(new Date).valueOf();d.default.nt(this.j,d.default.it.pn,o),-1!==u&&e.push(["X-Braze-Req-Tokens-Remaining",u.toString()]);let f=!1;c.default.ot({url:this.baseUrl+"/data/",data:t,headers:e,lt:i=>{null!=t.respond_with&&t.respond_with.triggers&&(this.nc=Math.max(this.nc-1,0)),this.B.ut(t,i,e)?(this.Gh.ct(),this.h.ld(i),null!=t.respond_with&&t.respond_with.user_id!=this.Ss.getUserId()||(null!=t.device&&this.j.Pt(n.STORAGE_KEYS.It.Ba,t.device),null!=t.sdk_metadata&&(this.j.Pt(n.STORAGE_KEYS.It.Ka,t.sdk_metadata),this.j.Pt(n.STORAGE_KEYS.It.Pa,this.C.$t())),this.hc(i),d.default.Dl(this.j,d.default.it.pn,1),"function"==typeof s&&s())):i.auth_error&&(f=!0)},error:()=>{f=!0,null!=t.respond_with&&t.respond_with.triggers&&(this.nc=Math.max(this.nc-1,0)),this.B.Ua(t.events,t.attributes),"function"==typeof h&&h()},ft:(t,e)=>{"function"==typeof l&&l(!f);const s=this.B.Cl(e);let n=0;if(s)switch(s.type){case"date":n=Math.max(s.value-(new Date).valueOf(),0);break;case"timestamp":n=s.value}if(i&&!S){if(f){d.default.zl(this.j,d.default.it.pn);const t=this.h.vt(),e=this.h.gt(),i=this.h.bt();let s=this.lc;(null==s||s<t)&&(s=t);const h=Math.min(i,(0,r.randomInclusive)(t,s*e))+n;this.kc(h)}else this.kc(Math.max(1e3*this.IS,n));S=!0}}})},E=this.vc(f),p=t||E;if(this.gc(u,E))return void e.logger.info("Declining to flush data due to 50 consecutive authentication failures");if(i&&!this.B.fl(f,g,p))return this.kc(),void("function"==typeof l&&l(!0));const _=this.B.ml(p,f,g,o);p&&this.nc++;let I=!1;if(_)for(const t of _)this.B.et(t.requestData,e=>v(t.requestData,t.headers,e),d.default.it.pn,h),I=!0;this.Gh.Fh()&&i&&!I?this.kc():E&&(e.logger.info("Invoking new session subscriptions"),this.uc.A(),this.fc=!0)}yc(){return this.nc>0}kc(t=1e3*this.IS){this.mc||(this.wc(),this.cc=window.setTimeout(()=>{if(document.hidden){const t="visibilitychange",e=()=>{document.hidden||(document.removeEventListener(t,e,!1),this.bc())};document.addEventListener(t,e,!1)}else this.bc()},t),this.lc=t)}wc(){null!=this.cc&&(clearTimeout(this.cc),this.cc=null)}initialize(){this.mc=!1,this.kc()}destroy(){this.uc.removeAllSubscriptions(),this.Gh.xh(),this.wc(),this.mc=!0,this.bc(void 0,!1,void 0,void 0,void 0,void 0,!0),this.cc=null,this.fc=!1}rn(t){return this.fc?(t(),null):this.uc.Ut(t)}openSession(){const t=this.C.$t()!==this.C.el();t&&(this.j.cS(n.STORAGE_KEYS.Ou.Wh),this.j.cS(n.STORAGE_KEYS.Ou.Cu)),this.bc(!1,void 0,()=>{t&&(this.j.Vt(n.STORAGE_KEYS.It.jo),this.j.Vt(n.STORAGE_KEYS.It.At))}),this.Ea(),t&&_r(_d[12])(_d[11],_d.paths).then(t=>{if(this.mc)return;const i=t.default.ra();if(null!=i&&(o.default.isPushPermissionGranted()||o.default.isPushBlocked())){const t=()=>{i.du()?e.logger.info("Push token maintenance is disabled, not refreshing token for backend."):i.subscribe()},s=(e,i)=>{i&&t()},h=()=>{const e=this.j.St(n.STORAGE_KEYS.It.Uu);(null==e||e)&&t()},l=e.IndexedDBAdapter._s.Xs;new e.IndexedDBAdapter(l,e.logger).kr(l.Ws.Fu,s,h)}})}jc(){this.j.Vt(n.STORAGE_KEYS.It.Fo),this.j.Vt(n.STORAGE_KEYS.It.bi),this.j.Vt(n.STORAGE_KEYS.It.pa)}Sc(){this.j.Vt(n.STORAGE_KEYS.It.Bl),this.j.Vt(n.STORAGE_KEYS.It.ES),this.j.Vt(n.STORAGE_KEYS.It.Ml),this.j.Vt(n.STORAGE_KEYS.It.Ll)}changeUser(t,i,h){const l=this.Ss.getUserId();if(l!==t){this.C.Sm(),this.jc(),(0,s.removeAllVisibleInAppMessages)(),null!=l&&this.bc(void 0,!1,void 0,void 0,void 0),this.Ss.Ju(t),h?this.Gh.setSdkAuthenticationSignature(h):this.Gh.jh();for(let t=0;t<i.length;t++)i[t].changeUser(null==l);this.B.fo(),null!=l&&this.j.Vt(n.STORAGE_KEYS.It.eS),this.j.Vt(n.STORAGE_KEYS.It.Ba),this.j.Vt(n.STORAGE_KEYS.It.lS),this.Sc(),this.openSession(),e.logger.info('Changed user to "'+t+'".')}else{let i="Doing nothing.";h&&this.Gh.kh()!==h&&(this.Gh.setSdkAuthenticationSignature(h),i="Updated SDK authentication signature"),e.logger.info(`Current user is already ${t}. ${i}`)}}requestImmediateDataFlush(t){this.wc(),this.C.el(),this.bc(void 0,void 0,void 0,()=>{e.logger.error("Failed to flush data, request will be retried automatically.")},t,!0)}Ar(t,i){this.C.el(),e.logger.info("Requesting explicit trigger refresh."),this.bc(!0,void 0,t,i)}Gu(t,s){const h=e.EventTypes.Ac,l={a:t,l:s},u=i.default.Dt(h,l);return u&&(e.logger.info(`Logged alias ${t} with label ${s}`),this.j.Pt(n.STORAGE_KEYS.It.lS,l)),u}Mu(t,s,n){if(this.h.qu(s))return e.logger.info(`Custom Attribute "${s}" is blocklisted, ignoring.`),new u.default;const h={key:s,value:n},l=i.default.Dt(t,h);if(l){const t="object"==typeof n?JSON.stringify(n,null,2):n;e.logger.info(`Logged custom attribute: ${s} with value: ${t}`)}return l}setLastKnownLocation(t,s,n,h,l,u){const o={latitude:s,longitude:n};null!=h&&(o.altitude=h),null!=l&&(o.ll_accuracy=l),null!=u&&(o.alt_accuracy=u);const r=i.default.Dt(e.EventTypes.Dc,o,t||void 0);return r&&e.logger.info(`Set user last known location as ${JSON.stringify(o,null,2)}`),r}Fr(t,i){const s=this.C.el();return new l.default(this.Ss.getUserId(),e.EventTypes.$c,t,s,{cid:i})}qc(t,i){return new e.IndexedDBAdapter(t,i)}Ea(){const t=e.IndexedDBAdapter._s.Xs;this.qc(t,e.logger).setItem(t.Ws.pn,1,{baseUrl:this.baseUrl,data:{api_key:this.tu,device_id:this.eu.ve().id},userId:this.Ss.getUserId(),sdkAuthEnabled:this.Gh.Fh()})}Dr(t){for(const i of t)if(i.api_key===this.tu)this.B.Ua(i.events,i.attributes);else{const t=e.IndexedDBAdapter._s.Xs;new e.IndexedDBAdapter(t,e.logger).setItem(t.Ws.Br,e.Guid.de(),i)}}Na(t,s,n){if(this.h.qu(t))return e.logger.info(`Custom Attribute "${t}" is blocklisted, ignoring.`),new u.default;let h,l;return null===s&&null===n?(h=e.EventTypes.Cc,l={key:t}):(h=e.EventTypes.Mc,l={key:t,latitude:s,longitude:n}),i.default.Dt(h,l)}va(t,s){const n={group_id:t,status:s};return i.default.Dt(e.EventTypes.Tc,n)}}},4413,{"0":4356,"1":4357,"2":4414,"3":4359,"4":4353,"5":4398,"6":4358,"7":4385,"8":4365,"9":4361,"10":4364,"11":4473,"12":880,"paths":{}}); 67__d(function(g,r,i,a,m,e,d){"use strict";
67Object.defineProperty(e,'__esModule',{value:!0}),e.removeAllVisibleInAppMessages=function(){const n=document.querySelectorAll(".ab-iam-root");for(let t=0;t<n.length;t++){const o=n[t];if(o.id){const t=o.id+"-css",n=document.getElementById(t);n&&n.parentNode&&n.parentNode.removeChild(n)}o.parentNode&&o.parentNode.removeChild(o)}const o=document.getElementsByClassName(t.IamStrings.TE);for(let n=0;n<o.length;n++){const s=o[n].classList;s.contains(t.IamStrings.TE)&&s.remove(t.IamStrings.TE)}};var t=r(d[0])},4414,[4415]); 68__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"IamStrings",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"IamColors",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"IamDisplayFailures",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"IamSlideFrom",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"IamClickAction",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"IamDismissType",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"IamOpenTarget",{enumerable:!0,get:function(){return b}}),Object.defineProperty(e,"IamImageStyle",{enumerable:!0,get:function(){return O}}),Object.defineProperty(e,"IamOrientation",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"IamTextAlignment",{enumerable:!0,get:function(){return T}}),Object.defineProperty(e,"IamCropType",{enumerable:!0,get:function(){return I}}),Object.defineProperty(e,"IamServerTypes",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"IamTiming",{enumerable:!0,get:function(){return P}}),Object.defineProperty(e,"IAM_SHOW_CLASS",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"IAM_HIDE_CLASS",{enumerable:!0,get:function(){return p}}),Object.defineProperty(e,"IamSerializationKeys",{enumerable:!0,get:function(){return A}});const t={EE:"inAppMessage must be an InAppMessage object",TE:"ab-pause-scrolling"},n={IE:4281545523,AE:4294967295,_E:4278219733,OE:4293914607,LE:4283782485,SE:3224580915,NE:4288387995},E={RE:"hd",tE:"ias",ME:"of",eE:"do",oE:"umt",CE:"tf",DE:"te"},u={TOP:"TOP",BOTTOM:"BOTTOM"},c={URI:"URI",NONE:"NONE"},o={AUTO_DISMISS:"AUTO_DISMISS",MANUAL:"SWIPE"},b={NONE:"NONE",BLANK:"BLANK"},O={TOP:"TOP",GRAPHIC:"GRAPHIC"},f={PORTRAIT:"PORTRAIT",LANDSCAPE:"LANDSCAPE"},T={START:"START",CENTER:"CENTER",END:"END"},I={CENTER_CROP:"CENTER_CROP",FIT_CENTER:"FIT_CENTER"},s={sE:"SLIDEUP",aE:"MODAL",UE:"MODAL_STYLED",cE:"FULL",iE:"WEB_HTML",PE:"HTML",nE:"HTML_FULL"},P={gr:500,pE:200},l="ab-show",p="ab-hide",A={rE:"m",mE:"ma",GE:"sf",Is:"e",FE:"ti",HE:"ca",URI:"u",xE:"oa",BE:"dt",lE:"d",bE:"i",Bs:"iu",gE:"is",YE:"ic",KE:"ibc",XE:"bc",dE:"tc",hE:"cbc",yE:"ai",uE:"ao",WE:"h",fE:"ha",jE:"htc",kE:"fc",vE:"b",wE:"ct",zE:"o",VE:"hi",CSS:"css",xs:"type",qE:"messageFields",JE:"me",LANGUAGE:"l",Ns:"ia"}},4415,[]); 69__d(function(_g,_r,_i,_a,_m,_e,_d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return r}});var e=_r(_d[0]),l=t(_r(_d[1])),n=t(_r(_d[2])),i=t(_r(_d[3])),d=_r(_d[4]),s=_r(_d[5]);class r{constructor(t){this.j=t,this.j=t,this.Gl=new l.default,this._l=new l.default,this.Vl=new l.default,this.Jl=new l.default,this.Ql=new l.default,this.Wl=new l.default,this.Yl=null,this.Zl=null}ed(){if(null==this.Zl){const t=this.j.St(e.STORAGE_KEYS.It.sd);this.Zl=null!=t?n.default._u(t):new n.default}return this.Zl}Qt(){return this.ed().nd}ld(t){var l,i,d,s,r,u;if(null!=t&&null!=t.config){const a=t.config;if(a.time>this.ed().nd){const t=t=>null==t?this.ed().ud:t,h=new n.default(a.time,a.events_blacklist,a.attributes_blacklist,a.purchases_blacklist,a.messaging_session_timeout,a.vapid_public_key,a.content_cards,a.feature_flags,t(a.global_request_rate_limit),a.banners,a.dust,a.request_backoff,a.minimum_session_timeout,a.conversational_chat);let o=!1;null!=h.ad&&this.ju()!==h.ad&&(o=!0);let _=!1;null!=h.hd.enabled&&this.Pi()!==h.hd.enabled&&(_=!0);let c=!1;null!=h.Xr.enabled&&this.lo()!==h.Xr.enabled&&(c=!0);let v=!1;null!=(null===(l=h.banners)||void 0===l?void 0:l.enabled)&&this.Ot()!==(null===(i=h.banners)||void 0===i?void 0:i.enabled)&&(v=!0);let f=!1;null!=(null===(d=h.dust)||void 0===d?void 0:d.enabled)&&this.fn()!==(null===(s=h.dust)||void 0===s?void 0:s.enabled)&&(f=!0);let b=!1;null!=(null===(r=h.dd)||void 0===r?void 0:r.enabled)&&this.vd()!==(null===(u=h.dd)||void 0===u?void 0:u.enabled)&&(b=!0),this.Zl=h,this.j.Pt(e.STORAGE_KEYS.It.sd,h.qt()),o&&this.Gl.A(),_&&this._l.A(),c&&this.Vl.A(),v&&this.Jl.A(),f&&this.Ql.A(),b&&this.Wl.A()}}}xu(t){const e=this.Gl.Ut(t);return this.Yl&&this.Gl.removeSubscription(this.Yl),this.Yl=e,e}$i(t){return this._l.Ut(t)}bo(t){return this.Vl.Ut(t)}V(t){return this.Jl.Ut(t)}Tr(t){return this.Ql.Ut(t)}md(t){return this.Wl.Ut(t)}$e(t){return-1!==this.ed().gd.indexOf(t)}qu(t){return-1!==this.ed().bd.indexOf(t)}$r(t){return-1!==this.ed().fd.indexOf(t)}pd(){return this.ed().Rd}ju(){return this.ed().ad}Pi(){return this.ed().hd.enabled||!1}Cd(){const t=this.ed().ud;return!(!t||null==t.enabled)&&t.enabled}Ul(){if(!this.Cd())return-1;const t=this.ed().ud;return null==t.capacity||t.capacity<10?-1:t.capacity}xl(){if(!this.Cd())return-1;const t=this.ed().ud;return null==t.refill_rate||t.refill_rate<=0?-1:t.refill_rate}Ed(t){const e=this.ed().ud.endpoint_overrides;return null==e?null:e[t]}Hl(t){const e=this.Ed(t);return null==e||isNaN(e.capacity)||e.capacity<=0?-1:e.capacity}Ol(t){const e=this.Ed(t);return null==e||isNaN(e.refill_rate)||e.refill_rate<=0?-1:e.refill_rate}lo(){return this.ed().Xr.enabled&&null==this.Ro()?(i.default.Dt(d.EventTypes.Ya,{e:"Missing feature flag refresh_rate_limit."}),!1):this.ed().Xr.enabled||!1}Ro(){return this.ed().Xr.refresh_rate_limit}Ot(){var t;return(null===(t=this.ed().banners)||void 0===t?void 0:t.enabled)||null}re(){var t;return(null===(t=this.ed().banners)||void 0===t?void 0:t.max_placements)||0}Gt(){var t;const e=null===(t=this.ed().banners)||void 0===t?void 0:t.dismissals_cache_size;return null!=e&&"number"==typeof e&&e>0?e:s.DISMISSALS_CACHE_SIZE_DEFAULT}fn(){var t;
69return(null===(t=this.ed().dust)||void 0===t?void 0:t.enabled)||!1}vd(){var t;return(null===(t=this.ed().dd)||void 0===t?void 0:t.enabled)||!1}vt(){var t;const e=null===(t=this.ed().wd)||void 0===t?void 0:t.min_sleep_duration_ms;return null!=e?e:s.REQUEST_BACKOFF_MIN_SLEEP_MS_DEFAULT}gt(){var t;const e=null===(t=this.ed().wd)||void 0===t?void 0:t.scale_factor;return null!=e?e:s.REQUEST_BACKOFF_SCALE_FACTOR_DEFAULT}bt(){var t;const e=null===(t=this.ed().wd)||void 0===t?void 0:t.max_sleep_duration_ms;return null!=e?e:s.REQUEST_BACKOFF_MAX_SLEEP_MS_DEFAULT}Bd(){return this.ed().Td}}},4416,[4359,4353,4417,4357,4356,4352]); 70__d(function(g,_r,_i,_a,_m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return s}});var t=_r(_d[0]);class s{constructor(s=0,i=[],e=[],d=[],h=null,l=null,n={enabled:!1},r={enabled:!1,refresh_rate_limit:void 0},u={enabled:!0,capacity:t.GLOBAL_RATE_LIMIT_CAPACITY_DEFAULT,refill_rate:t.GLOBAL_RATE_LIMIT_REFILL_RATE_DEFAULT,endpoint_overrides:{}},a=null,_=null,c=null,b=null,f=null){this.nd=s,this.gd=i,this.bd=e,this.fd=d,this.Rd=h,this.ad=l,this.hd=n,this.Xr=r,this.ud=u,this.banners=a,this.dust=_,this.wd=c,this.Td=b,this.dd=f}qt(){return{s:"6.9.0",l:this.nd,e:this.gd,a:this.bd,p:this.fd,m:this.Rd,v:this.ad,c:this.hd,f:this.Xr,grl:this.ud,b:this.banners,d:this.dust,rb:this.wd,mst:this.Td,ch:this.dd}}static _u(t){let i=t.l;return"6.9.0"!==t.s&&(i=0),new s(i,t.e,t.a,t.p,t.m,t.v,t.c,t.f,t.grl,t.b,t.d,t.rb,t.mst,t.ch)}}},4417,[4352]); 71__d(function(g,_r,_i,a,m,_e,d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return h}});var e=_r(d[0]),s=t(_r(d[1])),i=t(_r(d[2])),u=_r(d[3]),n=_r(d[4]),l=_r(d[5]);class h{constructor(t,e,s,i){this.j=t,this.Ss=e,this.h=s,this.tm=i,this.j=t,this.Ss=e,this.h=s;const u=this.h.Bd();this.im=u?1e3*u:l.DEFAULT_MINIMUM_SESSION_TIMEOUT_IN_MS,(null==i||isNaN(i))&&(i=1800),i<this.im/1e3&&n.logger.info("Specified session timeout of "+i+"s is too small, using the minimum session timeout of "+this.im/1e3+"s instead."),this.tm=Math.max(i,this.im/1e3)}nm(t,e){return new s.default(this.Ss.getUserId(),n.EventTypes.hm,t,e.Tu,{d:(0,u.convertMsToSeconds)(t-e.lm)})}al(){return this.j.$u(e.STORAGE_KEYS.Ou.um)}$t(){const t=this.j.$u(e.STORAGE_KEYS.Ou.um);return null==t?null:t.Tu}am(){const t=(new Date).valueOf(),s=this.h.pd();if(null==s)return!1;const i=this.j.St(e.STORAGE_KEYS.It.dm),u=null==i||t-i>1e3*s;return u&&this.j.Pt(e.STORAGE_KEYS.It.dm,t),u}ul(t,e){return null==e||null==e.fm||!(t-e.lm<this.im)&&e.fm<t}el(){const t=(new Date).valueOf(),u=t+1e3*this.tm,l=this.j.$u(e.STORAGE_KEYS.Ou.um);if(this.ul(t,l)){let h="Generating session start event with time "+t;if(null!=l){let t=l.pm;t-l.lm<this.im&&(t=l.lm+this.im),this.j.gm(this.nm(t,l)),h+=" (old session ended "+t+")"}h+=". Will expire "+u.valueOf(),n.logger.info(h);const r=new i.default(n.Guid.de(),u);return this.j.gm(new s.default(this.Ss.getUserId(),n.EventTypes.wm,t,r.Tu)),this.j.Iu(e.STORAGE_KEYS.Ou.um,r),null==this.j.St(e.STORAGE_KEYS.It.dm)&&this.j.Pt(e.STORAGE_KEYS.It.dm,t),r.Tu}if(null!=l)return l.pm=t,l.fm=u,this.j.Iu(e.STORAGE_KEYS.Ou.um,l),l.Tu}Sm(){const t=this.j.$u(e.STORAGE_KEYS.Ou.um);null!=t&&(this.j.jm(e.STORAGE_KEYS.Ou.um),this.j.gm(this.nm((new Date).valueOf(),t)))}}},4418,[4359,4398,4400,4351,4356,4419]); 72__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DEFAULT_MINIMUM_SESSION_TIMEOUT_IN_MS",{enumerable:!0,get:function(){return t}});const t=1e4},4419,[]); 73__d(function(g,_r,i,_a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return r}});var e,t=_r(d[0]),o=(e=t)&&e.__esModule?e:{default:e},c=_r(d[1]);const n={rl:function(e,t=!1,c){const r=n.oc(),a=n.sl(),l=new o.default.tc(e,r&&!t,a,c);let u;return u=a?new o.default.ec(e):new o.default.rc,new o.default(l,u)}
73,oc:function(){return navigator.cookieEnabled||"cookie"in document&&(document.cookie.length>0||(document.cookie="test").indexOf.call(document.cookie,"test")>-1)},sl:function(){let e=!1;try{if(localStorage&&localStorage.getItem)try{localStorage.setItem(t.STORAGE_KEYS.It.ac,"true"),localStorage.getItem(t.STORAGE_KEYS.It.ac)?(localStorage.removeItem(t.STORAGE_KEYS.It.ac),e=!0):e=!1}catch(t){if(!(t instanceof Error&&("QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&localStorage.length>0))throw t;e=!0}}catch(e){c.logger.info("Local Storage not supported!")}return e}};var r=n},4420,[4359,4356]); 74__d(function(g,_r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return l}});var t=e(_r(d[0])),u=e(_r(d[1]));const n={na:null,i:!1,ra:()=>(n.t(),n.na||(n.na=new t.default(u.default.m(),u.default.u(),u.default.p(),u.default.ir())),n.na),t:()=>{n.i||(u.default.g(n),n.i=!0)},destroy:()=>{n.na=null,n.i=!1}};var l=n},4421,[4422,4355]); 75__d(function(g,_r,_i,a,_m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return S}});var t=e(_r(d[0])),n=e(_r(d[1])),i=e(_r(d[2])),s=e(_r(d[3])),r=e(_r(d[4])),l=e(_r(d[5])),o=e(_r(d[6])),u=_r(d[7]),c=_r(d[8]),f=e(_r(d[9])),h=_r(d[10]),p=e(_r(d[11])),I=e(_r(d[12])),m=_r(d[13]),_=_r(d[14]),E=e(_r(d[15])),v=e(_r(d[16])),y=_r(d[17]),T=_r(d[18]),A=_r(d[19]);class S{constructor(e,t,i,s){this.B=e,this.C=t,this.j=i,this.Ss=s,this.B=e,this.C=t,this.j=i,this.Ss=s,this.In=new p.default,n.default.S(this.In),this.An=1e3,this.Dn=6e4,this._n=null,this.qn=null,this.xn=null}Pn(){return this.In}En(e){return this.In.Ut(e)}Gn(){return this._n}Nn(e){this._n=e}Dt(e,t,n,r){const l=new f.default;let u;if(t===h.EventTypes.Fn||e instanceof i.default){if(!e.js())return h.logger.info("This in-app message has already received an impression. Ignoring analytics event."),l}else if((t===h.EventTypes.On||e instanceof s.default&&t===h.EventTypes.Xn)&&!e.Yt(r))return h.logger.info("This in-app message has already received a click. Ignoring analytics event."),l;return u=e instanceof i.default?{trigger_ids:[e.triggerId]}:this.Hn(e),null==u?l:(e.messageExtras&&(u.message_extras=e.messageExtras),null!=n&&(u.bid=n),o.default.Dt(t,u))}Jn(e,t){const n=new f.default;if(!e.Yt())return h.logger.info("This in-app message button has already received a click. Ignoring analytics event."),n;const i=this.Hn(t);return null==i?n:e.id===l.default.Kn?(h.logger.info("This in-app message button does not have a tracking id. Not logging event to Braze servers."),n):(null!=e.id&&(i.bid=e.id),o.default.Dt(h.EventTypes.Xn,i))}Ln(e){const t=e.messageFields;return null!=t&&t.is_push_primer||!1}Qn(e){if(!(e instanceof r.default))return;const t=e=>{if(!e)return;const t=(0,_.getDecodedBrazeAction)(e);if((0,_.containsUnknownBrazeAction)(t))return(0,_.ineligibleBrazeActionURLErrorMessage)(_.INELIGIBLE_BRAZE_ACTION_URL_ERROR_TYPES.Un,"In-App Message");if((0,_.containsPushPrimerBrazeAction)(t)){const e=E.default.Vn();if(!e.Wn)return E.default.Yn(e.reason,"In-App Message")}};if(this.Ln(e)){const e=E.default.Vn();if(!e.Wn)return E.default.Yn(e.reason,"In-App Message")}const n=e.buttons||[];let i;for(const e of n)if(e.clickAction===A.IamClickAction.URI&&e.uri&&m.BRAZE_ACTION_URI_REGEX.test(e.uri)&&(i=t(e.uri),i))return i;return e.clickAction===A.IamClickAction.URI&&e.uri&&m.BRAZE_ACTION_URI_REGEX.test(e.uri)?t(e.uri):void 0}Zn(e,t){t!==this.xn&&this._o(),this.qn=e,this.xn=t}_o(){null!=this.qn&&(clearTimeout(this.qn),this.qn=null,this.xn=null)}Xo(e,n,i,s){const r=this.B;if(!r)return;this.xn&&e.triggerId!==this.xn&&(this._o(),v.default.Ji(this.j,v.default.it.Yo));const l=r.Zo(!1),o=r.Z(l);o.template={trigger_id:e.triggerId,trigger_event_type:n},null!=i&&(o.template.data=i.ta());const f=r.tt(o,v.default.it.Yo);r.et(o,(r=-1)=>{const l=this.B;if(!l)return;const p=(new Date).valueOf();v.default.nt(this.j,v.default.it.Yo,p),-1!==r&&f.push(["X-Braze-Req-Tokens-Remaining",r.toString()]);let m,_,E=!1;t.default.ot({url:`${l.ht()}/template/`,data:o,headers:f,lt:t=>{if(!l.ut(o,t,f))return void("function"==typeof e.ia&&e.ia());if(l.ct(),null==t||null==t.templated_message)return;const n=t.templated_message;if(n.type!==I.default.la.oa)return;const i=(0,u.newInAppMessageFromJson)(n.data);if(null==i)return;const s=this.Qn(i);if(s)return h.logger.error(s),void("function"==typeof e.ia&&e.ia());"function"==typeof e.ua&&e.ua(i)},error:t=>{E=!0,m=t,_=`getting user personalization for message ${e.triggerId}.`},ft:(t,r)=>{if((new Date).valueOf()-e.ma<e.ca){let t=0;if(E){const n=Math.min(e.ca,this.Dn),i=this.An;null==s&&(s=i),t=Math.min(n,(0,c.randomInclusive)(i,3*s))}l.yt(r,()=>{this.Xo(e,n,i,t)},v.default.it.Yo,t=>this.Zn(t,e.triggerId),()=>this._o(),t)}E&&l.dt(m,_)}})},v.default.it.Yo)}Hn(e){if(null==e.triggerId)return h.logger.info("The in-app message has no analytics id. Not logging event to Braze servers."),null;const t={};return null!=e.triggerId&&(t.trigger_ids=[e.triggerId]),t}
75jn(e){return!!this.j&&!(!(e&&e instanceof r.default&&e.constructor!==r.default)||e instanceof i.default)&&this.j.Pt(y.STORAGE_KEYS.It.pa,e.qt())}sa(){if(!this.j)return null;const e=this.j.St(y.STORAGE_KEYS.It.pa);if(!e)return null;let t;switch(e.type){case A.IamServerTypes.cE:t=T.FullScreenMessage.ha(e);break;case A.IamServerTypes.iE:case A.IamServerTypes.PE:case A.IamServerTypes.nE:t=s.default.ha(e);break;case A.IamServerTypes.aE:case A.IamServerTypes.UE:t=T.ModalMessage.ha(e);break;case A.IamServerTypes.sE:t=T.SlideUpMessage.ha(e)}return t&&this.fa(),t}fa(){this.j&&this.j.Vt(y.STORAGE_KEYS.It.pa)}}},4422,[4361,4355,4423,4424,4425,4427,4357,4428,4365,4358,4356,4353,4432,4369,4370,4385,4364,4359,4348,4415]); 76__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});class t{constructor(t,s){this.triggerId=t,this.messageExtras=s,this.triggerId=t,this.messageExtras=s,this.extras={},this.isControl=!0,this.hs=!1}static fromJson(s){return new t(s.trigger_id,s.message_extras)}js(){return!this.hs&&(this.hs=!0,!0)}sm(){return this.hs}}},4423,[]); 77__d(function(g,_r,_i,_a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return s}});var i,e=_r(_d[0]),a=_r(_d[1]),t=(i=a)&&i.__esModule?i:{default:i};class s extends t.default{constructor(i,a,t,s,o,r,d,n,l,v,u,y){super(i,void 0,void 0,a,t,void 0,void 0,void 0,s=s||e.IamDismissType.MANUAL,o,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,r,d,void 0,void 0,void 0,n,void 0,void 0,void 0,l,v,y,void 0,void 0),this.messageFields=u,this.messageFields=u}od(){return!1}Yt(i){if(this.ko===e.IamServerTypes.iE){if(this.rd)return!1;this.rd=!0}return this.ti.A(i),!0}qt(){const i=super.qt(e.IamServerTypes.iE);return i[e.IamSerializationKeys.qE]=this.messageFields,i}static ha(i){return new s(i[e.IamSerializationKeys.rE],i[e.IamSerializationKeys.Is],i[e.IamSerializationKeys.FE],i[e.IamSerializationKeys.BE],i[e.IamSerializationKeys.lE],i[e.IamSerializationKeys.yE],i[e.IamSerializationKeys.uE],i[e.IamSerializationKeys.kE],i[e.IamSerializationKeys.VE],i[e.IamSerializationKeys.CSS],i[e.IamSerializationKeys.qE],i[e.IamSerializationKeys.JE])}}},4424,[4415,4425]); 78__d(function(_g,_r,_i,_a,_m,_e,_d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return h}});var e=_r(_d[0]),i=t(e),s=t(_r(_d[1])),a=_r(_d[2]),o=_r(_d[3]),n=t(_r(_d[4])),r=_r(_d[5]),l=_r(_d[6]);class h{constructor(t,e,i,s,a,o,r,h,m,c,u,I,d,g,S,y,E,p,T,C,b,z,A,K,f,N,O,v,x,k,B,_){this.message=t,this.messageAlignment=e,this.slideFrom=i,this.extras=s,this.triggerId=a,this.clickAction=o,this.uri=r,this.openTarget=h,this.dismissType=m,this.duration=c,this.icon=u,this.imageUrl=I,this.imageStyle=d,this.iconColor=g,this.iconBackgroundColor=S,this.backgroundColor=y,this.textColor=E,this.closeButtonColor=p,this.animateIn=T,this.animateOut=C,this.header=b,this.headerAlignment=z,this.headerTextColor=A,this.frameColor=K,this.buttons=f,this.cropType=N,this.orientation=O,this.htmlId=v,this.css=x,this.messageExtras=k,this.language=B,this.altImageText=_,this.message=t,this.messageAlignment=e||l.IamTextAlignment.CENTER,this.duration=c||5e3,this.slideFrom=i||l.IamSlideFrom.BOTTOM,this.extras=s||{},this.triggerId=a,this.clickAction=o||l.IamClickAction.NONE,this.uri=r,this.openTarget=h||l.IamOpenTarget.NONE,this.dismissType=m||l.IamDismissType.AUTO_DISMISS,this.icon=u,this.imageUrl=I,this.imageStyle=d||l.IamImageStyle.TOP,this.iconColor=g||l.IamColors.AE,this.iconBackgroundColor=S||l.IamColors._E,this.backgroundColor=y||l.IamColors.AE,this.textColor=E||l.IamColors.IE,this.closeButtonColor=p||l.IamColors.NE,this.animateIn=T,null==this.animateIn&&(this.animateIn=!0),this.animateOut=C,null==this.animateOut&&(this.animateOut=!0),this.header=b,this.headerAlignment=z||l.IamTextAlignment.CENTER,this.headerTextColor=A||l.IamColors.IE,this.frameColor=K||l.IamColors.SE,this.buttons=f||[],this.cropType=N||l.IamCropType.FIT_CENTER,this.orientation=O,this.htmlId=v,this.css=x,this.isControl
78=!1,this.messageExtras=k,this.language=B,this.altImageText=_,this.th=!1,this.hs=!1,this.rd=!1,this.sh=!1,this.Eo=null,this.$o=null,this.ti=new n.default,this.ih=new n.default,this.Go=l.IamTextAlignment.CENTER}subscribeToClickedEvent(t){return this.ti.Ut(t)}subscribeToDismissedEvent(t){return this.ih.Ut(t)}removeSubscription(t){this.ti.removeSubscription(t),this.ih.removeSubscription(t)}removeAllSubscriptions(){this.ti.removeAllSubscriptions(),this.ih.removeAllSubscriptions()}closeMessage(){this.tl(this.Eo)}zo(){return!0}od(){return this.zo()}Bo(){return null!=this.htmlId&&this.htmlId.length>4}Mo(){return this.Bo()&&null!=this.css&&this.css.length>0}Oo(){if(this.Bo()&&this.Mo())return this.htmlId+"-css"}js(){return!this.hs&&(this.hs=!0,!0)}sm(){return this.hs}Yt(t){return!this.rd&&(this.rd=!0,this.ti.A(),!0)}Ft(){return!this.sh&&(this.sh=!0,this.ih.A(),!0)}hide(t){if(t&&t.parentNode){let e=t.closest(".ab-iam-root");if(null==e&&(e=t),this.zo()&&null!=e.parentNode){const t=e.parentNode.classList;t&&t.contains(l.IamStrings.TE)&&t.remove(l.IamStrings.TE),document.body.removeEventListener("touchmove",h.hh)}e.className=e.className.replace(l.IAM_SHOW_CLASS,l.IAM_HIDE_CLASS)}return this.animateOut||!1}tl(t,e){if(null==t)return;let i;this.Eo=null,i=-1===t.className.indexOf("ab-in-app-message")?t.getElementsByClassName("ab-in-app-message")[0]:t;let a=!1;i&&(a=this.hide(i));const o=document.body;let n;null!=o&&(n=o.scrollTop);const r=()=>{if(t&&t.parentNode){let e=t.closest(".ab-iam-root");null==e&&(e=t),e.parentNode&&e.parentNode.removeChild(e)}const i=this.Oo();if(null!=i){const t=document.getElementById(i);t&&t.parentNode&&t.parentNode.removeChild(t)}null!=o&&"Safari"===s.default.browser&&(o.scrollTop=n),e?e():this.Ft()};a?setTimeout(r,l.IamTiming.gr):r(),this.$o&&this.$o.focus()}Ko(){return document.createTextNode(this.message||"")}Ho(t){t.setAttribute("alt",this.altImageText||"")}static hh(t){if(t.targetTouches&&t.targetTouches.length>1)return;const e=t.target;e&&e.classList&&e.classList.contains("ab-message-text")&&e.scrollHeight>e.clientHeight||document.querySelector(`.${l.IamStrings.TE}`)&&t.cancelable&&t.preventDefault()}eh(t){const e=t.parentNode;this.zo()&&null!=e&&this.orientation!==l.IamOrientation.LANDSCAPE&&(null!=e.classList&&e.classList.add(l.IamStrings.TE),document.body.addEventListener("touchmove",h.hh,!!(0,a.supportsPassive)()&&{passive:!1})),t.className+=" "+l.IAM_SHOW_CLASS}static nh(t){if(t.keyCode===o.KeyCodes.rh&&!i.default.er(e.OPTIONS.oh)&&document.querySelectorAll(".ab-modal-interactions").length>0){const t=document.getElementsByClassName("ab-html-message");let e=!1;for(const i of t){let t=null;(0,r.isIFrame)(i)&&i.contentWindow&&(t=i.contentWindow.document.getElementsByClassName("ab-programmatic-close-button")[0]),null!=t&&((0,a.clickElement)(t),e=!0)}if(!e){const t=document.querySelectorAll(".ab-modal-interactions > .ab-close-button")[0];null!=t&&(0,a.clickElement)(t)}}}lh(){this.th||i.default.er(e.OPTIONS.oh)||(document.addEventListener("keydown",h.nh,!1),i.default.uh(()=>{document.removeEventListener("keydown",h.nh)}),this.th=!0)}qt(t){const e={};return t?(e[l.IamSerializationKeys.rE]=this.message,e[l.IamSerializationKeys.mE]=this.messageAlignment,e[l.IamSerializationKeys.GE]=this.slideFrom,e[l.IamSerializationKeys.Is]=this.extras,e[l.IamSerializationKeys.FE]=this.triggerId,e[l.IamSerializationKeys.HE]=this.clickAction,e[l.IamSerializationKeys.URI]=this.uri,e[l.IamSerializationKeys.xE]=this.openTarget,e[l.IamSerializationKeys.BE]=this.dismissType,e[l.IamSerializationKeys.lE]=this.duration,e[l.IamSerializationKeys.bE]=this.icon,e[l.IamSerializationKeys.Bs]=this.imageUrl,e[l.IamSerializationKeys.gE]=this.imageStyle,e[l.IamSerializationKeys.YE]=this.iconColor,e[l.IamSerializationKeys.KE]=this.iconBackgroundColor,e[l.IamSerializationKeys.XE]=this.backgroundColor,e[l.IamSerializationKeys.dE]=this.textColor,e[l.IamSerializationKeys.hE]=this.closeButtonColor,e[l.IamSerializationKeys.yE]=this.animateIn,e[l.IamSerializationKeys.uE]=this.animateOut,e[l.IamSerializationKeys.WE]=this.header,e[l.IamSerializationKeys.fE]=this.headerAlignment,e[l.IamSerializationKeys.jE]=this.headerTextColor,e[l.IamSerializationKeys.kE]=this.frameColor,e[l.IamSerializationKeys.vE]=this.buttons,e[l.IamSerializationKeys.wE]=this.cropType,e[l.IamSerializationKeys.zE]=this.orientation,e[l.IamSerializationKeys.VE]=this.htmlId,e[l.IamSerializationKeys.CSS]=this.css,e[l.IamSerializationKeys.xs]=t,e[l.IamSerializationKeys.JE]=this.messageExtras,e[l.IamSerializationKeys.LANGUAGE]=this.language,e[l.IamSerializationKeys.Ns]=this.altImageText,e):e}}h.ah=l.IamColors,h.mh=l.IamDisplayFailures,h.SlideFrom=l.IamSlideFrom,h.ClickAction=l.IamClickAction,h.DismissType=l.IamDismissType,h.OpenTarget=l.IamOpenTarget,h.ImageStyle=l.IamImageStyle,h.Orientation=l.IamOrientation,h.TextAlignment=l.IamTextAlignment,h.CropType=l.IamCropType,h.dh=l.IamServerTypes,h.gr=l.IamTiming.gr,h.pE=l.IamTiming.pE,h.bs=l.IamSerializationKeys},4425,[4355,4404,4366,4367,4353,4426,4415]); 79__d(function(g,r,i,a,m,_e,d){"use strict";
79Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"isIFrame",{enumerable:!0,get:function(){return e}});const e=e=>null!==e&&"IFRAME"===e.tagName},4426,[]); 80__d(function(g,_r,_i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return e}});var t,i=_r(d[0]),r=(t=i)&&t.__esModule?t:{default:t},o=_r(d[1]);class e{constructor(t,i,s,c,l,n,u){this.text=t,this.backgroundColor=i,this.textColor=s,this.borderColor=c,this.clickAction=l,this.uri=n,this.id=u,this.text=t||"",this.backgroundColor=i||o.IamColors._E,this.textColor=s||o.IamColors.AE,this.borderColor=c||this.backgroundColor,this.clickAction=l||o.IamClickAction.NONE,this.uri=n,null==u&&(u=e.Kn),this.id=u,this.rd=!1,this.ti=new r.default}subscribeToClickedEvent(t){return this.ti.Ut(t)}removeSubscription(t){this.ti.removeSubscription(t)}removeAllSubscriptions(){this.ti.removeAllSubscriptions()}Yt(){return!this.rd&&(this.rd=!0,this.ti.A(),!0)}static fromJson(t){return new e(t.text,t.bg_color,t.text_color,t.border_color,t.click_action,t.uri,t.id)}}e.Kn=-1},4427,[4353,4415]); 81__d(function(_g,_r,_i,_a,_m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.newInAppMessageFromJson=function(e){if(!e)return null;if(e.is_control)return t.default.fromJson(e);let u=e.type;null!=u&&(u=u.toUpperCase());const c=e.message,_=e.text_align_message,d=e.slide_from,f=e.extras,g=e.trigger_id,m=e.click_action,p=e.uri,v=e.open_target,y=e.message_close,I=e.duration,b=e.icon,h=e.image_url,w=e.image_style,x=e.icon_color,S=e.icon_bg_color,E=e.bg_color,T=e.text_color,k=e.close_btn_color,C=e.header,M=e.text_align_header,A=e.header_text_color,J=e.frame_color,F=[];let P=e.btns;null==P&&(P=[]);for(let e=0;e<P.length;e++)F.push(n.default.fromJson(P[e]));const U=e.crop_type,j=e.orientation,z=e.animate_in,O=e.animate_out;let q=e.html_id,B=e.css;null!=q&&""!==q&&null!=B&&""!==B||(q=void 0,B=void 0);const D=e.message_extras,G=e.language,H=e.image_alt;let K;if(u===i.IamServerTypes.aE||u===i.IamServerTypes.UE)K=new s.default(c,_,f,g,m,p,v,y,I,b,h,w,x,S,E,T,k,z,O,C,M,A,J,F,U,q,B,D,G,H);else if(u===i.IamServerTypes.cE)K=new r.default(c,_,f,g,m,p,v,y,I,b,h,w,x,S,E,T,k,z,O,C,M,A,J,F,U,j,q,B,D,G,H);else if(u===i.IamServerTypes.sE)K=new l.default(c,_,d,f,g,m,p,v,y,I,b,h,x,S,E,T,k,z,O,q,B,D,G,H);else{if(u!==i.IamServerTypes.iE&&u!==i.IamServerTypes.PE&&u!==i.IamServerTypes.nE)return void a.logger.error("Ignoring message with unknown type "+u);{const t=e.message_fields;K=new o.default(c,f,g,y,I,z,O,J,q,B,t,D),K.trusted=e.trusted||!1}}return K.ko=u,K},_e.buttonsFromSerializedInAppMessage=function(e){const t=[];for(const r of e)t.push(new n.default(r.text,r.backgroundColor,r.textColor,r.borderColor,r.clickAction,r.uri,r.id));return t};var t=e(_r(_d[0])),r=e(_r(_d[1])),o=e(_r(_d[2])),n=e(_r(_d[3])),s=e(_r(_d[4])),l=e(_r(_d[5])),a=_r(_d[6]),i=_r(_d[7])},4428,[4423,4429,4424,4427,4430,4431,4356,4415]); 82__d(function(_g,_r,_i,_a,_m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return s}});var a,i=_r(_d[0]),e=_r(_d[1]),t=_r(_d[2]),r=(a=t)&&a.__esModule?a:{default:a};class s extends r.default{constructor(a,e,t,r,s,n,o,l,m,I,y,S,z,K,E,u,d,c,p,f,T,A,_,R,b,v,C,N,O,g,M){l=l||i.IamDismissType.MANUAL,v=v||i.IamOrientation.PORTRAIT,super(a,e,void 0,t,r,s,n,o,l,m,I,y,S,z,K,E,u,d,c,p,f,T,A,_,R,b=b||i.IamCropType.CENTER_CROP,v,C,N,O,g,M),this.Go=i.IamTextAlignment.CENTER}qt(){return super.qt(i.IamServerTypes.cE)}static ha(a){return new s(a[i.IamSerializationKeys.rE],a[i.IamSerializationKeys.mE],a[i.IamSerializationKeys.Is],a[i.IamSerializationKeys.FE],a[i.IamSerializationKeys.HE],a[i.IamSerializationKeys.URI],a[i.IamSerializationKeys.xE],a[i.IamSerializationKeys.BE],a[i.IamSerializationKeys.lE],a[i.IamSerializationKeys.bE],a[i.IamSerializationKeys.Bs],a[i.IamSerializationKeys.gE],a[i.IamSerializationKeys.YE],a[i.IamSerializationKeys.KE],a[i.IamSerializationKeys.XE],a[i.IamSerializationKeys.dE
82],a[i.IamSerializationKeys.hE],a[i.IamSerializationKeys.yE],a[i.IamSerializationKeys.uE],a[i.IamSerializationKeys.WE],a[i.IamSerializationKeys.fE],a[i.IamSerializationKeys.jE],a[i.IamSerializationKeys.kE],(0,e.buttonsFromSerializedInAppMessage)(a[i.IamSerializationKeys.vE]),a[i.IamSerializationKeys.wE],a[i.IamSerializationKeys.zE],a[i.IamSerializationKeys.VE],a[i.IamSerializationKeys.CSS],a[i.IamSerializationKeys.JE],a[i.IamSerializationKeys.LANGUAGE],a[i.IamSerializationKeys.Ns])}}},4429,[4415,4428,4425]); 83__d(function(_g,_r,_i,_a,_m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return s}});var a,i=_r(_d[0]),e=_r(_d[1]),t=_r(_d[2]),r=(a=t)&&a.__esModule?a:{default:a};class s extends r.default{constructor(a,e,t,r,s,n,o,l,m,I,y,S,z,K,E,u,d,p,c,f,T,_,v,A,b,N,g,C,M,h){super(a,e,void 0,t,r,s,n,o,l=l||i.IamDismissType.MANUAL,m,I,y,S,z,K,E,u,d,p,c,f,T,_,v,A,b=b||i.IamCropType.FIT_CENTER,void 0,N,g,C,M,h),this.Go=i.IamTextAlignment.CENTER}qt(){return super.qt(i.IamServerTypes.aE)}static ha(a){return new s(a[i.IamSerializationKeys.rE],a[i.IamSerializationKeys.mE],a[i.IamSerializationKeys.Is],a[i.IamSerializationKeys.FE],a[i.IamSerializationKeys.HE],a[i.IamSerializationKeys.URI],a[i.IamSerializationKeys.xE],a[i.IamSerializationKeys.BE],a[i.IamSerializationKeys.lE],a[i.IamSerializationKeys.bE],a[i.IamSerializationKeys.Bs],a[i.IamSerializationKeys.gE],a[i.IamSerializationKeys.YE],a[i.IamSerializationKeys.KE],a[i.IamSerializationKeys.XE],a[i.IamSerializationKeys.dE],a[i.IamSerializationKeys.hE],a[i.IamSerializationKeys.yE],a[i.IamSerializationKeys.uE],a[i.IamSerializationKeys.WE],a[i.IamSerializationKeys.fE],a[i.IamSerializationKeys.jE],a[i.IamSerializationKeys.kE],(0,e.buttonsFromSerializedInAppMessage)(a[i.IamSerializationKeys.vE]),a[i.IamSerializationKeys.wE],a[i.IamSerializationKeys.VE],a[i.IamSerializationKeys.CSS],a[i.IamSerializationKeys.JE],a[i.IamSerializationKeys.LANGUAGE],a[i.IamSerializationKeys.Ns])}}},4430,[4415,4428,4425]); 84__d(function(_g,_r,_i,_a,_m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return o}});var e,a=_r(_d[0]),i=(e=a)&&e.__esModule?e:{default:e},t=_r(_d[1]),s=_r(_d[2]);class o extends i.default{constructor(e,a,i,t,o,r,n,l,m,I,y,S,d,K,z,E,u,c,p,v,T,h,f,x){E=E||s.IamColors.LE,z=z||s.IamColors.OE,super(e,a=a||s.IamTextAlignment.START,i,t,o,r,n,l,m,I,y,S,void 0,d,K,z,E,u,c,p,void 0,void 0,void 0,void 0,void 0,void 0,void 0,v,T,h,f,x),this.Go=s.IamTextAlignment.START}zo(){return!1}Ko(){const e=document.createElement("span");return e.appendChild(document.createTextNode(this.message||"")),e}eh(e){const a=e.getElementsByClassName("ab-in-app-message")[0];t.DOMUtils.td(a,!0,!0)||(this.slideFrom===s.IamSlideFrom.TOP?a.style.top="0px":a.style.bottom="0px"),super.eh(e)}qt(){return super.qt(s.IamServerTypes.sE)}static ha(e){return new o(e[s.IamSerializationKeys.rE],e[s.IamSerializationKeys.mE],e[s.IamSerializationKeys.GE],e[s.IamSerializationKeys.Is],e[s.IamSerializationKeys.FE],e[s.IamSerializationKeys.HE],e[s.IamSerializationKeys.URI],e[s.IamSerializationKeys.xE],e[s.IamSerializationKeys.BE],e[s.IamSerializationKeys.lE],e[s.IamSerializationKeys.bE],e[s.IamSerializationKeys.Bs],e[s.IamSerializationKeys.YE],e[s.IamSerializationKeys.KE],e[s.IamSerializationKeys.XE],e[s.IamSerializationKeys.dE],e[s.IamSerializationKeys.hE],e[s.IamSerializationKeys.yE],e[s.IamSerializationKeys.uE],e[s.IamSerializationKeys.VE],e[s.IamSerializationKeys.CSS],e[s.IamSerializationKeys.JE],e[s.IamSerializationKeys.LANGUAGE],e[s.IamSerializationKeys.Ns])}}},4431,[4425,4366,4415]); 85__d(function(g,_r,_i,_a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return a}});var t,i=_r(_d[0]),e=_r(_d[1]),s=_r(_d[2]),d=(t=s)&&t.__esModule?t:{default:t},r=_r(_d[3]);class a{constructor(t,i=[],e,s,d=0,r,n,h=0,o=a.Dd,l,u,c){this.id=t,this.Pd=i,this.startTime=e,this.endTime=s,this.priority=d,this.type=r,this.data=n,this.yd=h,this.jd=o,this.ca=l,this.Nd=u,this._d=c,this.id=t,this.Pd=i||[],void 0===e&&(e=null),this.startTime=e,void 0===s&&(s=null),this.endTime=s,this.priority=d||0,this.type=r,this.yd=h||0,null==l&&(l=1e3*(this.yd+30)),this.ca=l,this.data=n,null!=o&&(this.jd=o),this.Nd=u,this._d=c||null}Ad(t){return null==this._d||this.jd!==a.Dd&&t-this._d>=1e3*this.jd}Id(t){this._d=t}$d(t){const i=t+1e3*this.yd;return Math.max(i-(new Date).valueOf(),0)}
85xd(t){const i=(new Date).valueOf()-t,s=null==t||isNaN(i)||null==this.ca||i<this.ca;return s||e.logger.info(`Trigger action ${this.type} is no longer eligible for display - fired ${i}ms ago and has a timeout of ${this.ca}ms.`),!s}static fromJson(t){const e=t.id,s=[];for(let i=0;i<t.trigger_condition.length;i++)s.push(d.default.fromJson(t.trigger_condition[i]));const n=(0,i.dateFromUnixTimestamp)(t.start_time),h=(0,i.dateFromUnixTimestamp)(t.end_time),o=t.priority,l=t.type,u=t.delay,c=t.re_eligibility,_=t.timeout,p=t.data,f=t.min_seconds_since_last_trigger;return(0,r.validateValueIsFromEnum)(a.la,l,"Could not construct Trigger from server data","Trigger.Types")?new a(e,s,n,h,o,l,p,u,c,_,f):null}qt(){const t=[];for(let i=0;i<this.Pd.length;i++)t.push(this.Pd[i].qt());return{i:this.id,c:t,s:this.startTime,e:this.endTime,p:this.priority,t:this.type,da:this.data,d:this.yd,r:this.jd,tm:this.ca,ss:this.Nd,ld:this._d}}static _u(t){const e=[],s=t.c||[];for(let t=0;t<s.length;t++)e.push(d.default._u(s[t]));return new a(t.i,e,(0,i.rehydrateDateAfterJsonization)(t.s),(0,i.rehydrateDateAfterJsonization)(t.e),t.p,t.t,t.da,t.d,t.r,t.tm,t.ss,t.ld)}}a.la={oa:"inapp",zd:"templated_iam"},a.Dd=-1},4432,[4351,4356,4433,4360]); 86__d(function(g,_r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return p}});var t=e(_r(d[0])),l=e(_r(d[1])),r=e(_r(d[2])),c=e(_r(d[3])),s=e(_r(d[4])),u=e(_r(d[5])),n=e(_r(d[6])),f=e(_r(d[7])),o=_r(d[8]),h=_r(d[9]);class p{constructor(e,t){this.type=e,this.data=t,this.type=e,this.data=t}_c(e,t){return p.Ec[this.type]===e&&(null==this.data||this.data.zc(t))}static sf(e,t){let l=null;try{l=window.atob(e)}catch(t){return o.logger.info("Failed to unencode analytics id "+e+": "+(0,h.getErrorMessage)(t)),!1}return t===l.split("_")[0]}static fromJson(e){const r=e.type;let f=null;switch(r){case p.la.OPEN:case p.la.Os:break;case p.la.qr:f=s.default.fromJson(e.data);break;case p.la.Pc:f=u.default.fromJson(e.data);break;case p.la.Sr:f=n.default.fromJson(e.data);break;case p.la.he:f=t.default.fromJson(e.data);break;case p.la.Rc:f=l.default.fromJson(e.data);break;case p.la.rm:f=c.default.fromJson(e.data)}return new p(r,f)}qt(){return{t:this.type,d:this.data?this.data.qt():null}}static _u(e){let f,o=null;switch(e.t){case p.la.OPEN:case p.la.Os:break;case p.la.qr:o=new s.default(e.d);break;case p.la.Pc:f=e.d||{},o=new u.default(f.id,r.default._u(f.pf||[]));break;case p.la.Sr:o=new n.default(e.d);break;case p.la.he:o=new t.default(e.d);break;case p.la.Rc:f=e.d||{},o=new l.default(f.e,r.default._u(f.pf||[]));break;case p.la.rm:o=new c.default(e.d)}return new p(e.t,o)}}p.la={OPEN:"open",qr:"purchase",Pc:"purchase_property",Sr:"push_click",he:"custom_event",Rc:"custom_event_property",rm:"iam_click",Os:"test"},p.Ec={},p.Ec[p.la.OPEN]=f.default.OPEN,p.Ec[p.la.qr]=f.default.qr,p.Ec[p.la.Pc]=f.default.qr,p.Ec[p.la.Sr]=f.default.Sr,p.Ec[p.la.he]=f.default.he,p.Ec[p.la.Rc]=f.default.he,p.Ec[p.la.rm]=f.default.rm,p.Ec[p.la.Os]=f.default.Os},4433,[4434,4435,4436,4438,4439,4440,4441,4380,4356,4401]); 87__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});class t{constructor(t){this.xc=t,this.xc=t}zc(t){return null==this.xc||this.xc===t[0]}static fromJson(n){return new t(n?n.event_name:null)}qt(){return this.xc}}},4434,[]); 88__d(function(g,r,_i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return s}});var t,e=r(d[0]),n=(t=e)&&t.__esModule?t:{default:t};class s{constructor(t,e){this.xc=t,this.tf=e,this.xc=t,this.tf=e}zc(t){if(null==this.xc||null==this.tf)return!1;const e=t[0],n=t[1];return e===this.xc&&this.tf.zc(n)}static fromJson(t){return new s(t?t.event_name:null,t?n.default.fromJson(t.property_filters):null)}qt(){return{e:this.xc,pf:this.tf?this.tf.qt():null}}}},4435,[4436]); 89__d(function(g,_r,i,a,m,_e,d){"use strict";
89Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return s}});var t,e=_r(d[0]),r=(t=e)&&t.__esModule?t:{default:t},l=_r(d[1]);class s{constructor(t){this.filters=t,this.filters=t}zc(t){let e=!0;for(let r=0;r<this.filters.length;r++){const l=this.filters[r];let s=!1;for(let e=0;e<l.length;e++)if(l[e].zc(t)){s=!0;break}if(!s){e=!1;break}}return e}static fromJson(t){if(null==t||!(0,l.isArray)(t))return null;const e=[];for(let l=0;l<t.length;l++){const s=[],n=t[l];for(let t=0;t<n.length;t++)s.push(r.default.fromJson(n[t]));e.push(s)}return new s(e)}qt(){const t=[];for(let e=0;e<this.filters.length;e++){const r=this.filters[e],l=[];for(let t=0;t<r.length;t++)l.push(r[t].qt());t.push(l)}return t}static _u(t){const e=[];for(let l=0;l<t.length;l++){const s=[],n=t[l];for(let t=0;t<n.length;t++)s.push(r.default._u(n[t]));e.push(s)}return new s(e)}}},4436,[4437,4360]); 90__d(function(g,r,_i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return T}});var t=r(d[0]),e=r(d[1]);class T{constructor(t,s,h,i){this.tT=t,this.sT=s,this.comparator=h,this.eT=i,this.tT=t,this.sT=s,this.comparator=h,this.eT=i,this.sT===T.lT.iT&&this.comparator!==T.hT.rT&&this.comparator!==T.hT.nT&&this.comparator!==T.hT.uT&&this.comparator!==T.hT.oT&&(this.eT=(0,e.dateFromUnixTimestamp)(this.eT))}zc(s){let h=null;switch(null!=s&&(h=s[this.tT]),this.comparator){case T.hT.ET:return null!=h&&h.valueOf()===this.eT.valueOf();case T.hT.aT:return null==h||h.valueOf()!==this.eT.valueOf();case T.hT.TT:return null!=h&&typeof h==typeof this.eT&&h>this.eT;case T.hT.rT:return this.sT===T.lT.iT?null!=h&&(0,t.isDate)(h)&&(0,e.secondsAgo)(h)<=this.eT.valueOf():null!=h&&typeof h==typeof this.eT&&h>=this.eT;case T.hT.cT:return null!=h&&typeof h==typeof this.eT&&h<this.eT;case T.hT.nT:return this.sT===T.lT.iT?null!=h&&(0,t.isDate)(h)&&(0,e.secondsAgo)(h)>=this.eT.valueOf():null!=h&&typeof h==typeof this.eT&&h<=this.eT;case T.hT.AT:return null!=h&&"string"==typeof h&&typeof h==typeof this.eT&&null!=h.match(this.eT);case T.hT._T:return null!=h;case T.hT.fT:return null==h;case T.hT.uT:return null!=h&&(0,t.isDate)(h)&&(0,e.secondsInTheFuture)(h)<this.eT;case T.hT.oT:return null!=h&&(0,t.isDate)(h)&&(0,e.secondsInTheFuture)(h)>this.eT;case T.hT.pT:return null==h||typeof h!=typeof this.eT||"string"!=typeof h||null==h.match(this.eT)}return!1}static fromJson(t){return new T(t.property_key,t.property_type,t.comparator,t.property_value)}qt(){let T=this.eT;return(0,t.isDate)(this.eT)&&(T=(0,e.convertMsToSeconds)(T.valueOf())),{k:this.tT,t:this.sT,c:this.comparator,v:T}}static _u(t){return new T(t.k,t.t,t.c,t.v)}}T.lT={yT:"boolean",ST:"number",NT:"string",iT:"date"},T.hT={ET:1,aT:2,TT:3,rT:4,cT:5,nT:6,AT:10,_T:11,fT:12,uT:15,oT:16,pT:17}},4437,[4360,4351]); 91__d(function(g,_r,_i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return i}});var t,e=_r(d[0]),r=(t=e)&&t.__esModule?t:{default:t};class i{constructor(t,e){this.if=t,this.rf=e,this.if=t,this.rf=e}zc(t){if(null==this.if)return!1;const e=r.default.sf(t[0],this.if);if(!e)return!1;let i=null==this.rf||0===this.rf.length;if(null!=this.rf)for(let e=0;e<this.rf.length;e++)if(this.rf[e]===t[1]){i=!0;break}return e&&i}static fromJson(t){return new i(t?t.id:null,t?t.buttons:null)}qt(){return this.if}}},4438,[4433]); 92__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});class t{constructor(t){this.productId=t,this.productId=t}zc(t){return null==this.productId||t[0]===this.productId}static fromJson(u){return new t(u?u.product_id:null)}qt(){return this.productId}}},4439,[]); 93__d(function(g,r,_i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return s}});var t,e=r(d[0]),u=(t=e)&&t.__esModule?t:{default:t};class s{constructor(t,e){this.productId=t,this.tf=e,this.productId=t,this.tf=e}zc(t){if(null==this.productId||null==this.tf)return!1;const e=t[0],u=t[1];return e===this.productId&&this.tf.zc(u)}static fromJson(t){return new s(t?t.product_id:null,t?u.default.fromJson(t.property_filters):null)}qt(){return{id:this.productId,pf:this.tf?this.tf.qt():null}}}},4440,[4436]); 94__d(function(g,r,i,a,m,_e,d){"use strict";
94Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e};class u{constructor(e){this.if=e,this.if=e}zc(e){return null==this.if||n.default.sf(e[0],this.if)}static fromJson(e){return new u(e?e.campaign_id:null)}qt(){return this.if}}},4441,[4433]); 95__d(function(g,_r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.automaticallyShowInAppMessages=function(){if(!s.default.rr())return;(0,t.setupInAppMessageUI)();const e=n.default.ra();if(null==e.Gn()){const n=(0,r.subscribeToInAppMessage)(e=>(0,u.showInAppMessage)(e));e.Nn(n)}return e.Gn()};var n=e(_r(d[0])),s=e(_r(d[1])),t=_r(d[2]),u=_r(d[3]),r=_r(d[4])},4442,[4421,4355,4443,4447,4460]); 96__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"attachFeedCSS",{enumerable:!0,get:function(){return t.attachFeedCSS}}),Object.defineProperty(e,"setupFeedUI",{enumerable:!0,get:function(){return t.setupFeedUI}}),Object.defineProperty(e,"attachInAppMessageCSS",{enumerable:!0,get:function(){return n.attachInAppMessageCSS}}),Object.defineProperty(e,"setupInAppMessageUI",{enumerable:!0,get:function(){return n.setupInAppMessageUI}}),Object.defineProperty(e,"attachBannerCSS",{enumerable:!0,get:function(){return u.attachBannerCSS}}),Object.defineProperty(e,"setupBannerUI",{enumerable:!0,get:function(){return u.setupBannerUI}}),Object.defineProperty(e,"loadFontAwesome",{enumerable:!0,get:function(){return c.loadFontAwesome}});var t=r(d[0]),n=r(d[1]),u=r(d[2]),c=r(d[3])},4443,[4373,4446,4391,4445]); 97__d(function(g,_r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.attachCSS=function(e,c,o){const u=e||document.querySelector("head"),l=`ab-${c}-css-definitions-${"6.9.0".replace(/\./g,"-")}`;if(!u)return;const r=u.ownerDocument||document;if(null==r.getElementById(l)){const e=r.createElement("style");e.innerHTML=o||"",e.id=l;const c=n.default.er(t.OPTIONS.sr);null!=c&&e.setAttribute("nonce",c),u.appendChild(e)}};var e,t=_r(d[0]),n=(e=t)&&e.__esModule?e:{default:e}},4444,[4355]); 98__d(function(g,_r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.loadFontAwesome=function(){if(s.default.er(t.OPTIONS.Uh))return;if(null===document.querySelector("link[rel=stylesheet][href=\"https://use.fontawesome.com/7f85a56ba4.css\"]")){const e=document.createElement("link");e.setAttribute("rel","stylesheet"),e.setAttribute("href","https://use.fontawesome.com/7f85a56ba4.css"),document.getElementsByTagName("head")[0].appendChild(e)}};var e,t=_r(d[0]),s=(e=t)&&e.__esModule?e:{default:e}},4445,[4355]); 99__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.attachInAppMessageCSS=s,e.setupInAppMessageUI=function(){s(),(0,o.loadFontAwesome)()};var t=r(d[0]),o=r(d[1]);function s(o){(0,t.attachCSS)(o,"iam",".ab-pause-scrolling,body.ab-pause-scrolling,html.ab-pause-scrolling{overflow:hidden;touch-action:none}.ab-iam-root.v3{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:9011;-webkit-tap-highlight-color:transparent}.ab-iam-root.v3:focus{outline:0}.ab-iam-root.v3.ab-effect-fullscreen,.ab-iam-root.v3.ab-effect-html,.ab-iam-root.v3.ab-effect-modal{opacity:0}.ab-iam-root.v3.ab-effect-fullscreen.ab-show,.ab-iam-root.v3.ab-effect-html.ab-show,.ab-iam-root.v3.ab-effect-modal.ab-show{opacity:1}.ab-iam-root.v3.ab-effect-fullscreen.ab-show.ab-animate-in,.ab-iam-root.v3.ab-effect-html.ab-show.ab-animate-in,.ab-iam-root.v3.ab-effect-modal.ab-show.ab-animate-in{-webkit-transition:opacity .5s;-moz-transition:opacity .5s;-o-transition:opacity .5s;transition:opacity .5s}.ab-iam-root.v3.ab-effect-fullscreen.ab-hide,.ab-iam-root.v3.ab-effect-html.ab-hide,.ab-iam-root.v3.ab-effect-modal.ab-hide{opacity:0}.ab-iam-root.v3.ab-effect-fullscreen.ab-hide.ab-animate-out,.ab-iam-root.v3.ab-effect-html.ab-hide.ab-animate-out,.ab-iam-root.v3.ab-effect-modal.ab-hide.ab-animate-out{-webkit-transition:opacity .5s;-moz-transition:opacity .5s;-o-transition:opacity .5s;transition:opacity .5s}.ab-iam-root.v3.ab-effect-slide .ab-in-app-message{-webkit-transform:translateX(535px);-moz-transform:translateX(535px);-ms-transform:translateX(535px);transform:translateX(535px)}.ab-iam-root.v3.ab-effect-slide.ab-show .ab-in-app-message{-webkit-transform:translateX(0);-moz-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}.ab-iam-root.v3.ab-effect-slide.ab-show.ab-animate-in .ab-in-app-message{-webkit-transition:transform .5s ease-in-out;-moz-transition:transform .5s ease-in-out;-o-transition:transform .5s ease-in-out;transition:transform .5s ease-in-out}.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message{-webkit-transform:translateX(535px);-moz-transform:translateX(535px);-ms-transform:translateX(535px);transform:translateX(535px)}.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-left{-webkit-transform:translateX(-535px);-moz-transform:translateX(-535px);-ms-transform:translateX(-535px);transform:translateX(-535px)}.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-up{-webkit-transform:translateY(-535px);-moz-transform:translateY(-535px);-ms-transform:translateY(-535px);transform:translateY(-535px)}.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-down{-webkit-transform:translateY(535px);-moz-transform:translateY(535px);-ms-transform:translateY(535px);transform:translateY(535px)}.ab-iam-root.v3.ab-effect-slide.ab-hide.ab-animate-out .ab-in-app-message{-webkit-transition:transform .5s ease-in-out;-moz-transition:transform .5s ease-in-out;-o-transition:transform .5s ease-in-out;transition:transform .5s ease-in-out}.ab-iam-root.v3 .ab-ios-scroll-wrapper{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto;pointer-events:all;touch-action:auto;-webkit-overflow-scrolling:touch}.ab-iam-root.v3 .ab-in-app-message{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:fixed;text-align:center;-webkit-box-shadow:0 0 4px rgba(0,0,0,.3);-moz-box-shadow:0 0 4px rgba(0,0,0,.3);box-shadow:0 0 4px rgba(0,0,0,.3);line-height:normal;letter-spacing:normal;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',s
99ans-serif;z-index:9011;max-width:100%;overflow:hidden;display:inline-block;pointer-events:all;color:#333;color-scheme:normal}.ab-iam-root.v3 .ab-in-app-message.ab-no-shadow{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.ab-iam-root.v3 .ab-in-app-message :focus,.ab-iam-root.v3 .ab-in-app-message:focus{outline:0}.ab-iam-root.v3 .ab-in-app-message.ab-clickable{cursor:pointer}.ab-iam-root.v3 .ab-in-app-message.ab-background{background-color:#fff}.ab-iam-root.v3 .ab-in-app-message .ab-close-button{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;background-color:transparent;background-size:15px;border:none;width:15px;min-width:15px;height:15px;cursor:pointer;display:block;font-size:15px;line-height:0;padding-top:15px;padding-right:15px;padding-left:15px;padding-bottom:15px;position:absolute;top:0;z-index:9021}.ab-iam-root.v3 .ab-in-app-message .ab-close-button[dir=rtl]{left:0}.ab-iam-root.v3 .ab-in-app-message .ab-close-button[dir=ltr]{right:0}.ab-iam-root.v3 .ab-in-app-message .ab-close-button svg{-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease;fill:#9b9b9b;height:auto;width:100%}.ab-iam-root.v3 .ab-in-app-message .ab-close-button svg.ab-chevron{display:none}.ab-iam-root.v3 .ab-in-app-message .ab-close-button:active{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message .ab-close-button:focus{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message .ab-close-button:hover{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message .ab-close-button:hover svg{fill-opacity:.8}.ab-iam-root.v3 .ab-in-app-message .ab-message-text{float:none;line-height:1.5;margin:20px 25px;max-width:100%;overflow:hidden;overflow-y:auto;vertical-align:text-bottom;word-wrap:break-word;white-space:pre-wrap;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',s
99ans-serif}.ab-iam-root.v3 .ab-in-app-message .ab-message-text.start-aligned{text-align:start}.ab-iam-root.v3 .ab-in-app-message .ab-message-text.end-aligned{text-align:end}.ab-iam-root.v3 .ab-in-app-message .ab-message-text.center-aligned{text-align:center}.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar{-webkit-appearance:none;width:14px}.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar-thumb{-webkit-appearance:none;border:4px solid transparent;background-clip:padding-box;-webkit-border-radius:7px;-moz-border-radius:7px;border-radius:7px;background-color:rgba(0,0,0,.2)}.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar-button{width:0;height:0;display:none}.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar-corner{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message .ab-message-header{float:none;letter-spacing:0;margin:0;font-weight:700;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;display:block;font-size:20px;margin-bottom:10px;line-height:1.3}.ab-iam-root.v3 .ab-in-app-message .ab-message-header.start-aligned{text-align:start}.ab-iam-root.v3 .ab-in-app-message .ab-message-header.end-aligned{text-align:end}.ab-iam-root.v3 .ab-in-app-message .ab-message-header.center-aligned{text-align:center}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen,.ab-iam-root.v3 .ab-in-app-message.ab-modal,.ab-iam-root.v3 .ab-in-app-message.ab-slideup{-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;cursor:pointer;overflow:hidden;word-wrap:break-word;text-overflow:ellipsis;font-size:14px;font-weight:700;margin:20px;margin-top:calc(constant(safe-area-inset-top,0) + 20px);margin-right:calc(constant(safe-area-inset-right,0) + 20px);margin-bottom:calc(constant(safe-area-inset-bottom,0) + 20px);margin-left:calc(constant(safe-area-inset-left,0) + 20px);margin-top:calc(env(safe-area-inset-top,0) + 20px);margin-right:calc(env(safe-area-inset-right,0) + 20px);margin-bottom:calc(env(safe-area-inset-bottom,0) + 20px);margin-left:calc(env(safe-area-inset-left,0) + 20px);max-height:150px;padding:10px;right:0;background-color:#efefef}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone{max-height:66px;margin:10px;margin-top:calc(constant(safe-area-inset-top,0) + 10px);margin-right:calc(constant(safe-area-inset-right,0) + 10px);margin-bottom:calc(constant(safe-area-inset-bottom,0) + 10px);margin-left:calc(constant(safe-area-inset-left,0) + 10px);margin-top:calc(env(safe-area-inset-top,0) + 10px);margin-right:calc(env(safe-area-inset-right,0) + 10px);margin-bottom:calc(env(safe-area-inset-bottom,0) + 10px);margin-left:calc(env(safe-area-inset-left,0) + 10px);max-width:90%;max-width:calc(100% - 40px);min-width:90%;min-width:calc(100% - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-close-button{display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-close-button svg:not(.ab-chevron){display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-close-button{display:block;height:20px;padding:0 20px 0 18px;pointer-events:none;top:50%;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:12px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-close-button svg.ab-chevron{display:inline}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-close-button svg.ab-chevron.rtl{-webkit-transform:scaleX(-1);-moz-transform:scaleX(-1);-ms-transform:scaleX(-1);transform:scaleX(-1)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-message-text{border-right-width:40px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text{max-width:100%;border-right-width:10px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text span{max-height:66px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text.ab-with-icon,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text.ab-with-image{max-width:80%;max-width:calc(100% - 50px - 5px - 10px - 25px)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-image-area{width:50px;height:50px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-image-area img{max-width:100%;max-height:100%;width:auto;height:auto}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:active .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:focus .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:hover .ab-message-text{opacity:.8}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:active .ab-close-button svg.ab-chevron,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:focus .ab-close-button svg.ab-chevron,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:hover .ab-close-button svg.ab-chevron{fill-opacity:.8}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:table-cell;border-color:transparent;border-style:solid;border-width:5px 25px 5px 10px;max-width:430px;vertical-align:middle;margin:0}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text[dir=rtl]{border-width:5px 10px 5px 25px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text span{dis
99play:block;max-height:150px;overflow:auto}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text.ab-with-icon,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text.ab-with-image{max-width:365px;border-top:0;border-bottom:0}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;background-color:transparent;background-size:15px;border:none;width:15px;min-width:15px;height:15px;cursor:pointer;display:block;font-size:15px;line-height:0;padding-top:15px;padding-right:15px;padding-left:15px;padding-bottom:15px;position:absolute;top:0;z-index:9021}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button[dir=rtl]{left:0}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button[dir=ltr]{right:0}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button svg{-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease;fill:#9b9b9b;height:auto;width:100%}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button svg.ab-chevron{display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:active{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:focus{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:hover{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:hover svg{fill-opacity:.8}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area{float:none;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:table-cell;border-color:transparent;border-style:solid;border-width:5px 0 5px 5px;vertical-align:top;width:60px;margin:0}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area.ab-icon-area{width:auto}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area img{float:none;width:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen,.ab-iam-root.v3 .ab-in-app-message.ab-modal{font-size:14px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area{float:none;position:relative;display:block;overflow:hidden}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area .ab-center-cropped-img,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area .ab-center-cropped-img{position:absolute;top:0;right:0;bottom:0;left:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area .ab-center-cropped-img img,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area .ab-center-cropped-img img{width:100%;height:100%;object-fit:cover;object-position:center}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-icon,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-icon{margin-top:20px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic{padding:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-message-text{display:none}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-message-buttons,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-message-buttons{bottom:0;left:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area{float:none;height:auto;margin:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-image-area img,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area img{display:block;top:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none}.ab-iam-root.v3 .ab-in-app-message.ab-modal{padding-top:20px;width:450px;max-width:450px;max-height:720px}.ab-iam-root.v3 .ab-in-app-message.ab-modal.simulate-phone{max-width:91%;max-width:calc(100% - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal.simulate-phone.graphic .ab-image-area img{max-width:91vw;max-width:calc(100vw - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text{max-height:660px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-image{max-height:524.827
9958621px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-icon{max-height:610px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons{margin-bottom:93px;max-height:587px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons.ab-with-image{max-height:451.82758621px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons.ab-with-icon{max-height:537px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area{margin-top:-20px;max-height:155.17241379px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area img{max-width:100%;max-height:155.17241379px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area.ab-icon-area{height:auto}.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic{width:auto;overflow:hidden}.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area{display:inline}.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area img{width:auto;max-height:720px;max-width:450px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen{width:450px;max-height:720px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape{width:720px;max-height:450px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape .ab-image-area{height:225px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape.graphic .ab-image-area{height:450px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape .ab-message-text{max-height:112px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-message-text{max-height:247px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-message-text.ab-with-buttons{margin-bottom:93px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area{height:360px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-image-area{height:720px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone{-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone:not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone:not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.graphic{display:block}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-html-message{background-color:transparent;border:none;height:100%;overflow:auto;position:relative;touch-action:auto;width:100%}.ab-iam-root.v3 .ab-in-app-message .ab-message-buttons{position:absolute;bottom:0;width:100%;padding:17px 25px 30px 25px;z-index:inherit;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ab-iam-root.v3 .ab-in-app-message .ab-message-button{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;cursor:pointer;display:inline-block;font-size:14px;font-weight:700;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',s
99ans-serif;height:44px;line-height:normal;letter-spacing:normal;margin:0;max-width:100%;min-width:80px;padding:0 12px;position:relative;text-transform:none;width:48%;width:calc(50% - 5px);border:1px solid #1b78cf;-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease;overflow:hidden;word-wrap:break-word;text-overflow:ellipsis;word-wrap:normal;white-space:nowrap}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:first-of-type{float:left;background-color:#fff;color:#1b78cf}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:last-of-type{float:right;background-color:#1b78cf;color:#fff}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:first-of-type:last-of-type{float:none;width:auto}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:transparent}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:after{-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:hover{opacity:.8}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:active:after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.08)}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:focus:after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.15)}.ab-iam-root.v3 .ab-in-app-message .ab-message-button a{color:inherit;text-decoration:inherit}.ab-iam-root.v3 .ab-in-app-message img{float:none;display:inline-block}.ab-iam-root.v3 .ab-in-app-message .ab-icon{float:none;display:inline-block;padding:10px;-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px}.ab-iam-root.v3 .ab-in-app-message .ab-icon .fa{float:none;font-size:30px;width:30px}.ab-iam-root.v3 .ab-start-hidden{visibility:hidden}.ab-iam-root.v3 .ab-centered{margin:auto;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-moz-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ab-iam-root.v3{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.ab-iam-root.v3 .ab-page-blocker{position:fixed;top:0;left:0;width:100%;height:100%;z-index:9001;pointer-events:all;background-color:rgba(51,51,51,.75)}@media (max-width:600px){.ab-iam-root.v3 .ab-in-app-message.ab-slideup{max-height:66px;margin:10px;margin-top:calc(constant(safe-area-inset-top,0) + 10px);margin-right:calc(constant(safe-area-inset-right,0) + 10px);margin-bottom:calc(constant(safe-area-inset-bottom,0) + 10px);margin-left:calc(constant(safe-area-inset-left,0) + 10px);margin-top:calc(env(safe-area-inset-top,0) + 10px);margin-right:calc(env(safe-area-inset-right,0) + 10px);margin-bottom:calc(env(safe-area-inset-bottom,0) + 10px);margin-left:calc(env(safe-area-inset-left,0) + 10px);max-width:90%;max-width:calc(100% - 40px);min-width:90%;min-width:calc(100% - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button{display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button svg:not(.ab-chevron){display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable .ab-close-button{display:block;height:20px;padding:0 20px 0 18px;pointer-events:none;top:50%;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:12px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable .ab-close-button svg.ab-chevron{display:inline}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable .ab-close-button svg.ab-chevron.rtl{-webkit-transform:scaleX(-1);-moz-transform:scaleX(-1);-ms-transform:scaleX(-1);transform:scaleX(-1)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable .ab-message-text{border-right-width:40px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text{max-width:100%;border-right-width:10px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text span{max-height:66px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text.ab-with-icon,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text.ab-with-image{max-width:80%;max-width:calc(100% - 50px - 5px - 10px - 25px)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area{width:50px;height:50px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area img{max-width:100%;max-height:100%;width:auto;height:auto}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape{-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-close-button,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen .ab-image-area,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-image-area,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen .ab-message-text,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen .ab-message-text.ab-with-buttons,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-message-text.ab-with-buttons,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape:not(.graphic),.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen:not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape:not(.graphic) .ab-message-buttons,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen:not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.graphic,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.graphic{display:block}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.graphic .ab-image-area,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.graphic .ab-message-button,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}}@media (max-width:480px){.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop){max-width:91%;max-width:calc(100% - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop).graphic .ab-image-area img{max-width:91vw;max-width:calc(100vw - 30px)}}@media (max-height:750px){.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop){max-height:91%;max-height:calc(100% - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop).graphic .ab-image-area img{max-height:91vh;max-height:calc(100vh - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text{max-height:65vh;max-height:calc(100vh - 30px - 60px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-image{max-height:45vh;max-height:calc(100vh - 30px - 155.17241379310346px - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-icon{max-height:45vh;max-height:calc(100vh - 30px - 70px - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons{max-height:50vh;max-height:calc(100vh - 30px - 93px - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons.ab-with-image{max-height:30vh;max-height:calc(100vh - 30px - 155.17241379310346px - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons.ab-with-icon{max-height:30vh;max-height:calc(100vh - 30px - 70px - 93px - 20px)}}@media (min-width:601px){.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area img{max-height:100%;max-width:100%}}@media (max-height:750px) and (min-width:601px){.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop){-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important;width:450px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop) .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop) .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop) .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop):not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop):not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).graphic{display:block}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}}@media (max-height:480px){.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop){-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop):not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop):not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic{display:block}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}}@media (max-width:750px){.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop){-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop):not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop):not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic{display:block}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic .ab-image-area{height:100
99%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}}")}},4446,[4444,4445]); 100__d(function(g,_r,_i,_a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.showInAppMessage=function(e,A,S){if(!n.default.rr())return;if((0,I.setupInAppMessageUI)(),null==e)return!1;if(e instanceof a.default)return O.logger.info("User received control for a multivariate test, logging to Braze servers."),(0,u.logInAppMessageImpression)(e),!0;if(!(e instanceof i.default))return!1;if(e.constructor===i.default)return!1;e.lh();const P=e instanceof o.default;if(P&&!e.trusted&&!n.default.dr())return O.logger.error('HTML in-app messages are disabled. Use the "allowUserSuppliedJavascript" option for braze.initialize to enable these messages.'),!1;if(null==A&&(A=document.body),e.zo()&&A.querySelectorAll(".ab-modal-interactions").length>0)return O.logger.info(`Cannot show in-app message ${e.message} because another message is being shown.`),!1;if(c.WindowUtils.da()){const t=c.WindowUtils.ga();if(t===c.ORIENTATION.PORTRAIT&&e.orientation===N.IamOrientation.LANDSCAPE||t===c.ORIENTATION.LANDSCAPE&&e.orientation===N.IamOrientation.PORTRAIT){const n=t===c.ORIENTATION.PORTRAIT?"portrait":"landscape",a=e.orientation===N.IamOrientation.PORTRAIT?"portrait":"landscape";return O.logger.info(`Not showing ${a} in-app message ${e.message} because the screen is currently ${n}`),!1}}if(!n.default.dr()){let t=!1;if(e.buttons&&e.buttons.length>0){const n=e.buttons;for(let e=0;e<n.length;e++)if(n[e].clickAction===N.IamClickAction.URI){const a=n[e].uri;t=(0,f.isURIJavascriptOrData)(a)}}else e.clickAction===N.IamClickAction.URI&&(t=(0,f.isURIJavascriptOrData)(e.uri));if(t)return O.logger.error('Javascript click actions are disabled. Use the "allowUserSuppliedJavascript" option for braze.initialize to enable these actions.'),!1}const y=document.createElement("div");if(y.className="ab-iam-root v3",y.className+=(0,r.default)(e),e.language&&!P&&(y.lang=e.language),e.Bo()&&(y.id=e.htmlId),n.default.er(t.OPTIONS.ja)&&(y.style.zIndex=(n.default.er(t.OPTIONS.ja)+1).toString()),A.appendChild(y),e.Mo()){const a=document.createElement("style");a.innerHTML=e.css,a.id=e.Oo(),null!=n.default.er(t.OPTIONS.sr)&&a.setAttribute("nonce",n.default.er(t.OPTIONS.sr)),document.getElementsByTagName("head")[0].appendChild(a)}const v=e instanceof s.default,w=(0,l.default)(e,a=>{if(e.zo()&&e.od()){const o=document.createElement("div");if(o.className="ab-page-blocker",e.Mo()||(o.style.backgroundColor=(0,T.toRgba)(e.frameColor)),n.default.er(t.OPTIONS.ja)&&(o.style.zIndex=n.default.er(t.OPTIONS.ja).toString()),y.appendChild(o),!n.default.er(t.OPTIONS.oh)){const t=(new Date).valueOf();o.onclick=n=>{(new Date).valueOf()-t>N.IamTiming.pE&&(e.tl(a),n.stopPropagation())}}y.appendChild(a),a.focus(),e.eh(y)}else if(v){const t=document.querySelectorAll(".ab-slideup");let n=null;for(let e=t.length-1;e>=0;e--)if(t[e]!==a){n=t[e];break}if(e.slideFrom===N.IamSlideFrom.TOP){let e=0;null!=n&&(e=n.offsetTop+n.offsetHeight),a.style.top=Math.max(e,0)+"px"}else{let e=0;null!=n&&(e=(window.innerHeight||document.documentElement.clientHeight)-n.offsetTop),a.style.bottom=Math.max(e,0)+"px"}}else if(P&&!n.default.er(t.OPTIONS.oh)){const t=e;(0,h.isIFrame)(a)&&a.contentWindow&&a.contentWindow.addEventListener("keydown",function(e){e.keyCode===p.KeyCodes.rh&&t.closeMessage()})}(0,u.logInAppMessageImpression)(e),e.dismissType===N.IamDismissType.AUTO_DISMISS&&setTimeout(()=>{y.contains(a)&&e.tl(a)},e.duration),"function"==typeof S&&S()},e=>{O.logger.info(e)},n.default.er(t.OPTIONS.ba),n.default.er(t.OPTIONS.ja),n.default.er(t.OPTIONS.sr),A,b.default.ra().wa());return(P||v)&&(y.appendChild(w),e.eh(y)),!0};var t=_r(d[0]),n=e(t),a=e(_r(d[1])),o=e(_r(d[2])),i=e(_r(d[3])),s=e(_r(d[4])),r=e(_r(d[5])),l=e(_r(d[6])),u=_r(d[7]),c=_r(d[8]),f=_r(d[9]),p=_r(d[10]),I=_r(d[11]),O=_r(d[12]),T=_r(d[13]),h=_r(d[14]),b=e(_r(d[15])),N=_r(d[
10016])},4447,[4355,4423,4424,4425,4431,4448,4449,4452,4350,4363,4367,4443,4356,4450,4426,4368,4415]); 101__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return c}});var t=e(r(d[0])),n=e(r(d[1])),f=e(r(d[2])),u=e(r(d[3]));function c(e){let c="";return e.animateIn&&(c+=" ab-animate-in"),e.animateOut&&(c+=" ab-animate-out"),e instanceof t.default?c+=" ab-effect-fullscreen":e instanceof n.default?c+=" ab-effect-html":e instanceof f.default?c+=" ab-effect-modal":e instanceof u.default&&(c+=" ab-effect-slide"),c}},4448,[4429,4424,4430,4431]); 102__d(function(_g,_r,_i,_a,_m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return p}});var a=_r(_d[0]),t=_r(_d[1]),o=_r(_d[2]),l=e(_r(_d[3])),n=e(_r(_d[4])),s=e(_r(_d[5])),i=e(_r(_d[6])),c=_r(_d[7]),d=_r(_d[8]),r=e(_r(_d[9])),m=e(_r(_d[10])),u=_r(_d[11]),b=_r(_d[12]),g=_r(_d[13]);function p(e,p,C,h,f,N,y=document.body,A="ltr"){if(e.$o=document.activeElement,e instanceof n.default)return(0,r.default)(e,p,h,f,N);const E=(function(e,l,n,s,i,r=document.body,m="ltr"){let p=null;const C=document.createElement("div");C.dir=m,C.className="ab-in-app-message ab-start-hidden ab-background",i&&(C.style.zIndex=(i+1).toString()),e.zo()&&(C.className+=" ab-modal-interactions",C.setAttribute("tabindex","-1")),e.Mo()||(C.style.color=(0,o.toRgba)(e.textColor),C.style.backgroundColor=(0,o.toRgba)(e.backgroundColor),(0,o.isTransparent)(e.backgroundColor)&&(C.className+=" ab-no-shadow"));const h=()=>{-1!==C.className.indexOf("ab-start-hidden")&&(C.className=C.className.replace("ab-start-hidden",""),document.querySelectorAll(".ab-iam-img-loading").length>0?n(`Cannot show in-app message ${e.message} because another message is being shown.`,g.IamDisplayFailures.tE):l(C))},f=(a=!0)=>{let t=document.querySelectorAll(".ab-iam-root");t&&0!==t.length||(t=r.querySelectorAll(".ab-iam-root")),t&&t.length>0&&(t[0].classList.remove("ab-iam-img-loading"),p&&(clearTimeout(p),p=null),a?h():u.logger.error(`Cannot show in-app message ${e.message} because the image failed to load.`))};if(e.imageStyle===g.IamImageStyle.GRAPHIC&&(C.className+=" graphic"),e.orientation===g.IamOrientation.LANDSCAPE&&(C.className+=" landscape"),null!=e.buttons&&0===e.buttons.length){e.clickAction!==g.IamClickAction.NONE&&(C.className+=" ab-clickable");const a=a=>(e.tl(C,()=>{(0,c.logInAppMessageClick)(e),e.clickAction===g.IamClickAction.URI&&(0,d._handleBrazeAction)(e.uri||"",s||e.openTarget===g.IamOpenTarget.BLANK,a)}),a.stopPropagation(),!1);C.onclick=a,C.addEventListener("keydown",e=>{if(e.keyCode===b.KeyCodes.Lo||e.keyCode===b.KeyCodes.Ao)return a(e)})}const N=(0,t.createCloseButton)("Close Message",e.Mo()?void 0:(0,o.toRgba)(e.closeButtonColor),()=>{e.tl(C)},m);C.appendChild(N),i&&(N.style.zIndex=(i+2).toString());const y=document.createElement("div");y.className="ab-message-text",y.dir=m,y.setAttribute("role","article");const A=(e.messageAlignment||e.Go).toLowerCase();y.className+=" "+A+"-aligned";let E=!1;const I=document.createElement("div");if(I.className="ab-image-area",e.imageUrl){const a=document.createElement("img");if(a.setAttribute("src",e.imageUrl),e.Ho(a),0===document.querySelectorAll(".ab-iam-img-loading").length){E=!0;const e=document.querySelectorAll(".ab-iam-root");e&&e.length>0&&e[0].classList.add("ab-iam-img-loading"),p=window.setTimeout(()=>{f(!1)},6e4),a.onload=()=>{f()},a.onerror=()=>{f(!1)}}if(e.cropType===g.IamCropType.CENTER_CROP){const e=document.createElement("div");e.className="ab-center-cropped-img",e.appendChild(a),I.appendChild(e)}else I.appendChild(a);C.appendChild(I),y.className+=" ab-with-image"}else if(e.icon){I.className+=" ab-icon-area";const a=document.createElement("span");a.className="ab-icon",e.Mo()||(a.style.backgroundColor=(0,o.toRgba)(e.iconBackgroundColor),a.style.color=(0,o.toRgba)(e.iconColor));const t=document.createElement("i");t.className="fa",t.appendChild(document.createTextNode(e.icon)),t.setAttribute("aria-hidden","true"),a.appendChild(t),I.appendChild(a),C.appendChild(I),y.className+=" ab-with-icon"}if((0,a.addPassiveEventListener)(y,"touchstart"),e.header&&e.header.length>0){const a=document.createElement("h1");a.className="ab-message-header",e.Jo=u.Guid.de(),a.id=e.Jo;const t=(e.headerAlignment||g.IamTextAlignment.CENTER).toLowerCase();a.className+=" "+t+"-aligned",e.Mo()||(a.style.color=(0,o.toRgba)(e.headerTextColor)),a.appendChild(document.createTextNode(e.header)),y.appendChild(a)}const k=e.Ko();return y.appendChild(k),C.appendChild(y),E||h(),e.Eo=C,C})(e,p,C,h,f,y,A);if(e instanceof l.default||e instanceof s.default){const a=e instanceof l.default?"ab-fullscreen":"ab-modal";E.className+=` ${a} ab-centered`,m.default.No(e,E,h),m.default.Po(E),m.default.Qo(e.Jo,E)}else if(e instanceof i.default){E.className+=" ab-slideup",E.setAttribute("tabindex","0"),E.setAttribute("role","alert");const t=E.getElementsByClassName("ab-close-button")[0];if(null!=t){const l=(0,a.buildSvg)("0 0 11.38 19.44","M11.38 9.72l-9.33 9.72L0 17.3l7.27-7.58L0 2.14 2.05 0l9.33 9.72z",e.Mo()?void 0:(0,o.toRgba)(e.closeButtonColor));l.setAttribute("class",`ab-chevron ${A}`),t.appendChild(l)}let l,n;(0,a.detectSwipe)(E,a.DIRECTIONS.ie,e=>{E.className+=" ab-swiped-left",null!=t&&null!=t.onclick&&t.onclick(e)}),(0,a.detectSwipe)(E,a.DIRECTIONS.ne,e=>{E.className+=" ab-swiped-right",null!=t&&null!=t.onclick&&t.onclick(e)}),e.slideFrom===g.IamSlideFrom.TOP?(l=a.DIRECTIONS.Uo,n=" ab-swiped-up"):(l=a.DIRECTIONS.Vo,n=" ab-swiped-down"),(0,a.detectSwipe)(E,l,e=>{E.className+=n,null!=t&&null!=t.onclick&&t.onclick(e)})}return E}},4449,[4366,4371,4450,4429,4424,4430,4431,4451,4372,4453,4456,4356,4367,4415]); 103__d(function(g,_r,i,a,m,e,d){"use strict";
103Object.defineProperty(e,'__esModule',{value:!0}),e.isTransparent=function(n){return null!=n&&(n=parseInt(n.toString()),!isNaN(n)&&(4278190080&n)>>>24==0)},e.toRgba=function(n,t){return null==n?"":(n=parseInt(n.toString()),isNaN(n)?"":(t&&!isNaN(parseFloat(t.toString()))||(t=1),"rgba("+[(16711680&(n>>>=0))>>>16,(65280&n)>>>8,255&n,((4278190080&n)>>>24)/255*t].join(",")+")"))},e.toRgb=function(n){return null==n||isNaN(parseInt(n.toString()))?"":"rgb("+[(16711680&(n>>>=0))>>>16,(65280&n)>>>8,255&n].join(",")+")"}},4450,[]); 104__d(function(g,_r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.logInAppMessageClick=function(e){if(!r.default.rr())return!1;if(!(e instanceof t.default))return u.logger.error(s.IamStrings.EE),!1;const c=n.default.ra().Dt(e,u.EventTypes.On);if(c){e.sm()||(0,o.logInAppMessageImpression)(e);for(let r=0;r<c.Ce.length;r++)f.TriggersProviderFactory.o().Ee(l.default.rm,[e.triggerId],c.Ce[r])}return c.lt};var r=e(_r(d[0])),t=e(_r(d[1])),n=e(_r(d[2])),o=_r(d[3]),s=_r(d[4]),u=_r(d[5]),l=e(_r(d[6])),f=_r(d[7])},4451,[4355,4425,4421,4452,4415,4356,4380,4381]); 105__d(function(g,_r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.logInAppMessageImpression=function(e){if(!t.default.rr())return!1;if(!(e instanceof r.default||e instanceof n.default))return o.logger.error(f.IamStrings.EE),!1;const s=e instanceof n.default?o.EventTypes.om:o.EventTypes.Fn;return u.default.ra().Dt(e,s).lt};var t=e(_r(d[0])),n=e(_r(d[1])),r=e(_r(d[2])),u=e(_r(d[3])),f=_r(d[4]),o=_r(d[5])},4452,[4355,4423,4425,4421,4415,4356]); 106__d(function(g,_r,_i,_a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return i}});var e,t=_r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},a=_r(d[1]),l=_r(d[2]),s=_r(d[3]),o=_r(d[4]),c=_r(d[5]);function i(e,t,i,r,u){const b=document.createElement("iframe");if(b.setAttribute("title","Modal Message"),r&&(b.style.zIndex=(r+1).toString()),(0,o.attachHtmlToIframeWithNonce)(b,e.message,u),b.onload=()=>{const n=b.contentWindow;n.focus();const l=n.document.getElementsByTagName("head")[0];if(null!=l){if(e.Mo()){const t=document.createElement("style");t.innerHTML=e.css||"",t.id=e.Oo()||"",null!=u&&t.setAttribute("nonce",u),l.appendChild(t)}const t=n.document.createElement("base");null!=t&&(t.setAttribute("target","_parent"),l.appendChild(t))}const r=n.document.getElementsByTagName("title");r&&r.length>0&&b.setAttribute("title",r[0].textContent||"");const p=Object.assign(Object.assign({},(0,o.buildBrazeBridge)(b,(t,n)=>e.tl(t,n))),{closeMessage:function(){e.tl(b)},logClick:function(){(0,a.logInAppMessageHtmlClick)(e,...arguments)}});if(n.appboyBridge=p,n.brazeBridge=p,e.ko!==c.IamServerTypes.PE){const t=n.document.getElementsByTagName("a");for(let n=0;n<t.length;n++)t[n].onclick=(0,s.buildHtmlClickHandler)(e,b,t[n],i);const a=n.document.getElementsByTagName("button");for(let t=0;t<a.length;t++)a[t].onclick=(0,s.buildHtmlClickHandler)(e,b,a[t],i)}const f=n.document.body;if(null!=f){e.Bo()&&(f.id=e.htmlId||"");const t=document.createElement("hidden");t.onclick=p.closeMessage,t.className="ab-programmatic-close-button",f.appendChild(t)}n.dispatchEvent(new CustomEvent("ab.BridgeReady")),-1!==b.className.indexOf("ab-start-hidden")&&(b.className=b.className.replace("ab-start-hidden",""),t(b))},b.className="ab-in-app-message ab-start-hidden ab-html-message ab-modal-interactions",n.default.OS===l.OperatingSystems.co){const t=document.createElement("div");return t.className="ab-ios-scroll-wrapper",t.appendChild(b),e.Eo=t,t}return e.Eo=b,b}},4453,[4404,4348,4407,4454,4392,4415]); 107__d(function(g,_r,_i,a,_m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"buildHtmlClickHandler",{enumerable:!0,get:function(){return l}});var e=_r(d[0]),t=_r(d[1]),n=_r(d[2]),r=_r(d[3]);const l=(l,i,o,u)=>{const s=o.getAttribute("href"),c=o.onclick;return p=>{if(null!=c&&"function"==typeof c&&!1===c.bind(o)(p))return;let b=(0,e.parseQueryStringKeyValues)(s).abButtonId;if(null!=b&&""!==b||(b=o.getAttribute("id")||void 0),null!=s&&""!==s&&0!==s.indexOf("#")){const e="blank"===(o.getAttribute("target")||"").toLowerCase().replace("_",""),c=u||l.openTarget===n.IamOpenTarget.BLANK||e,f=()=>{(0,r.logInAppMessageHtmlClick)(l,b,s),t.WindowUtils.openUri(s,c,p)};c?f():l.tl(i,f)}else(0,r.logInAppMessageHtmlClick)(l,b,s||void 0);return p.stopPropagation(),!1}}},4454,[4363,4350,4415,4455]); 108__d(function(g,_r,i,a,_m,_e,d){"use strict";
108function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.logInAppMessageHtmlClick=function(e,s,f){if(!t.default.rr())return!1;if(!(e instanceof r.default))return l.logger.error("inAppMessage argument to logInAppMessageHtmlClick must be an HtmlMessage object."),!1;let c=l.EventTypes.On;null!=s&&(c=l.EventTypes.Xn);const p=n.default.ra().Dt(e,c,s,f);if(p.lt)for(let t=0;t<p.Ce.length;t++)o.TriggersProviderFactory.o().Ee(u.default.rm,[e.triggerId,s],p.Ce[t]);return p.lt};var t=e(_r(d[0])),r=e(_r(d[1])),n=e(_r(d[2])),l=_r(d[3]),u=e(_r(d[4])),o=_r(d[5])},4455,[4355,4424,4421,4356,4380,4381]); 109__d(function(g,r,i,_a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return s}});var t=r(d[0]),e=r(d[1]),o=r(d[2]),a=r(d[3]),n=r(d[4]),l=r(d[5]);var s={Po:t=>{const e=t.querySelectorAll(".ab-close-button, .ab-message-button");let o;for(let t=0;t<e.length;t++)o=e[t],o.tabIndex=0;if(e.length>0){const o=e[0],a=e[e.length-1];t.addEventListener("keydown",e=>{const l=document.activeElement;e.keyCode===n.KeyCodes.Wo&&(e.shiftKey||l!==a&&l!==t?!e.shiftKey||l!==o&&l!==t||(e.preventDefault(),a.focus()):(e.preventDefault(),o.focus()))})}},Qo:(t,e)=>{e.setAttribute("role","dialog"),e.setAttribute("aria-modal","true"),t?e.setAttribute("aria-labelledby",t):e.setAttribute("aria-label","Modal Message")},No:(n,s,c)=>{if(n.buttons&&n.buttons.length>0){const u=document.createElement("div");u.className="ab-message-buttons",s.appendChild(u);const b=s.getElementsByClassName("ab-message-text")[0];null!=b&&(b.className+=" ab-with-buttons");const p=o=>a=>(n.tl(s,()=>{(0,e.logInAppMessageButtonClick)(o,n),o.clickAction===l.IamClickAction.URI&&(0,t._handleBrazeAction)(o.uri||"",c||n.openTarget===l.IamOpenTarget.BLANK,a)}),a.stopPropagation(),!1);for(let t=0;t<n.buttons.length;t++){const e=n.buttons[t],l=document.createElement("button");l.className="ab-message-button",l.setAttribute("type","button"),(0,a.addPassiveEventListener)(l,"touchstart");let s=e.text;""===e.text&&(s="\xa0"),l.appendChild(document.createTextNode(s)),n.Mo()||(l.style.backgroundColor=(0,o.toRgba)(e.backgroundColor),l.style.color=(0,o.toRgba)(e.textColor),l.style.borderColor=(0,o.toRgba)(e.borderColor)),l.onclick=p(e),u.appendChild(l)}}}}},4456,[4372,4457,4450,4366,4367,4415]); 110__d(function(g,_r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.logInAppMessageButtonClick=function(e,c){var v;if(!t.default.rr())return!1;if(!(e instanceof o.default))return l.logger.error("button must be an InAppMessageButton object"),!1;if(!(c instanceof n.default))return l.logger.error(r.IamStrings.EE),!1;const _=u.default.ra().Jn(e,c);if(_.lt)for(let t=0;t<_.Ce.length;t++)s.TriggersProviderFactory.o().Ee(f.default.rm,[c.triggerId,null===(v=e.id)||void 0===v?void 0:v.toString()],_.Ce[t]);return _.lt};var t=e(_r(d[0])),r=_r(d[1]),n=e(_r(d[2])),o=e(_r(d[3])),u=e(_r(d[4])),l=_r(d[5]),f=e(_r(d[6])),s=_r(d[7])},4457,[4355,4415,4425,4427,4421,4356,4380,4381]); 111__d(function(g,r,i,_a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return n}});var e,t=r(d[0]),a=r(d[1]),l=(e=a)&&e.__esModule?e:{default:e};class n{constructor(e,a=!1){if(this.language=e,null!=e&&(e=e.toLowerCase()),null!=e&&null==l.default[e]){const t=e.indexOf("-");t>0&&(e=e.substring(0,t))}if(null==l.default[e]){const l="Braze does not yet have a localization for language "+e+", defaulting to English. Please contact us if you are willing and able to help us translate our SDK into this language.";a?t.logger.error(l):t.logger.info(l),e="en"}this.language=e}get(e){return l.default[this.language][e]}wa(){switch(this.language){case"ar":case"he":case"fa":return"rtl";default:return"ltr"}}}},4458,[4356,4459]); 112__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return E}});var E={en:{NO_CARDS_MESSAGE:"We have no updates for you at this time.<br/>Please check again later.",FEED_TIMEOUT_MESSAGE:"Sorry, this refresh timed out.<br/>Please try again later."},ar:{NO_CARDS_MESSAGE:"\u0644\u064a\u0633 \u0644\u062f\u064a\u0646\u0627 \u0623\u064a \u062a\u062d\u062f\u064a\u062b. \u064a\u0631\u062c\u0649 \u0627\u0644\u062a\u062d\u0642\u0642 \u0645\u0631\u0629 \u0623\u062e\u0631\u0649 \u0644\u0627\u062d\u0642\u0627\u064b",FEED_TIMEOUT_MESSAGE:"\u064a\u0631\u062c\u0649 \u062a\u0643\u0631\u0627\u0631 \u0627\u0644\u0645\u062d\u0627\u0648\u0644\u0629 \u0644\u0627\u062d\u0642\u0627"},cs:{NO_CARDS_MESSAGE:"V tuto chv\xedli pro v\xe1s nem\xe1me \u017e\xe1dn\xe9 aktualizace.<br/>Zkontrolujte pros\xedm znovu pozd\u011bji.",FEED_TIMEOUT_MESSAGE:"Pros\xedm zkuste to znovu pozd\u011bji."},da:{NO_CARDS_MESSAGE:"Vi har ingen updates.<br/>Pr\xf8v venligst senere.",FEED_TIMEOUT_MESSAGE:"Pr\xf8v venligst senere."},de:{NO_CARDS_MESSAGE:"Derzeit sind keine Updates verf\xfcgbar.<br/>Bitte sp\xe4ter noch einmal versuchen.",FEED_TIMEOUT_MESSAGE:"Bitte sp\xe4ter noch einmal versuchen."}
112,es:{NO_CARDS_MESSAGE:"No tenemos actualizaciones.<br/>Por favor compru\xe9belo m\xe1s tarde.",FEED_TIMEOUT_MESSAGE:"Por favor int\xe9ntelo m\xe1s tarde."},"es-mx":{NO_CARDS_MESSAGE:"No tenemos ninguna actualizaci\xf3n.<br/>Vuelva a verificar m\xe1s tarde.",FEED_TIMEOUT_MESSAGE:"Por favor, vuelva a intentarlo m\xe1s tarde."},et:{NO_CARDS_MESSAGE:"Uuendusi pole praegu saadaval.<br/>Proovige hiljem uuesti.",FEED_TIMEOUT_MESSAGE:"Palun proovige hiljem uuesti."},fi:{NO_CARDS_MESSAGE:"P\xe4ivityksi\xe4 ei ole saatavilla.<br/>Tarkista my\xf6hemmin uudelleen.",FEED_TIMEOUT_MESSAGE:"Yrit\xe4 my\xf6hemmin uudelleen."},fr:{NO_CARDS_MESSAGE:"Aucune mise \xe0 jour disponible.<br/>Veuillez v\xe9rifier ult\xe9rieurement.",FEED_TIMEOUT_MESSAGE:"Veuillez r\xe9essayer ult\xe9rieurement."},he:{NO_CARDS_MESSAGE:".\u05d0\u05d9\u05df \u05dc\u05e0\u05d5 \u05e2\u05d3\u05db\u05d5\u05e0\u05d9\u05dd. \u05d1\u05d1\u05e7\u05e9\u05d4 \u05d1\u05d3\u05d5\u05e7 \u05e9\u05d5\u05d1 \u05d1\u05e7\u05e8\u05d5\u05d1",FEED_TIMEOUT_MESSAGE:".\u05d1\u05d1\u05e7\u05e9\u05d4 \u05e0\u05e1\u05d4 \u05e9\u05d5\u05d1 \u05d1\u05e7\u05e8\u05d5\u05d1"},hi:{NO_CARDS_MESSAGE:"\u0939\u092e\u093e\u0930\u0947 \u092a\u093e\u0938 \u0915\u094b\u0908 \u0905\u092a\u0921\u0947\u091f \u0928\u0939\u0940\u0902 \u0939\u0948\u0902\u0964 \u0915\u0943\u092a\u092f\u093e \u092c\u093e\u0926 \u092e\u0947\u0902 \u092b\u093f\u0930 \u0938\u0947 \u091c\u093e\u0901\u091a \u0915\u0930\u0947\u0902.\u0964",FEED_TIMEOUT_MESSAGE:"\u0915\u0943\u092a\u092f\u093e \u092c\u093e\u0926 \u092e\u0947\u0902 \u0926\u094b\u092c\u093e\u0930\u093e \u092a\u094d\u0930\u092f\u093e\u0938 \u0915\u0930\u0947\u0902\u0964."},id:{NO_CARDS_MESSAGE:"Kami tidak memiliki pembaruan. Coba lagi nanti.",FEED_TIMEOUT_MESSAGE:"Coba lagi nanti."},it:{NO_CARDS_MESSAGE:"Non ci sono aggiornamenti.<br/>Ricontrollare pi\xf9 tardi.",FEED_TIMEOUT_MESSAGE:"Riprovare pi\xf9 tardi."},ja:{NO_CARDS_MESSAGE:"\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306f\u3042\u308a\u307e\u305b\u3093\u3002<br/>\u5f8c\u3067\u3082\u3046\u4e00\u5ea6\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002",FEED_TIMEOUT_MESSAGE:"\u5f8c\u3067\u3082\u3046\u4e00\u5ea6\u8a66\u3057\u3066\u304f\u3060\u3055\u3044\u3002"},ko:{NO_CARDS_MESSAGE:"\uc5c5\ub370\uc774\ud2b8\uac00 \uc5c6\uc2b5\ub2c8\ub2e4. \ub2e4\uc74c\uc5d0 \ub2e4\uc2dc \ud655\uc778\ud574 \uc8fc\uc2ed\uc2dc\uc624.",FEED_TIMEOUT_MESSAGE:"\ub098\uc911\uc5d0 \ub2e4\uc2dc \uc2dc\ub3c4\ud574 \uc8fc\uc2ed\uc2dc\uc624."},ms:{NO_CARDS_MESSAGE:"Tiada kemas kini. Sila periksa kemudian.",FEED_TIMEOUT_MESSAGE:"Sila cuba kemudian."},nl:{NO_CARDS_MESSAGE:"Er zijn geen updates.<br/>Probeer het later opnieuw.",FEED_TIMEOUT_MESSAGE:"Probeer het later opnieuw."},no:{NO_CARDS_MESSAGE:"Vi har ingen oppdateringer.<br/>Vennligst sjekk igjen senere.",FEED_TIMEOUT_MESSAGE:"Vennligst pr\xf8v igjen senere."},pl:{NO_CARDS_MESSAGE:"Brak aktualizacji.<br/>Prosz\u0119 sprawdzi\u0107 ponownie p\xf3\u017aniej.",FEED_TIMEOUT_MESSAGE:"Prosz\u0119 spr\xf3bowa\u0107 ponownie p\xf3\u017aniej."},pt:{NO_CARDS_MESSAGE:"N\xe3o temos atualiza\xe7\xf5es.<br/>Por favor, verifique mais tarde.",FEED_TIMEOUT_MESSAGE:"Por favor, tente mais tarde."},"pt-br":{NO_CARDS_MESSAGE:"N\xe3o temos nenhuma atualiza\xe7\xe3o.<br/>Verifique novamente mais tarde.",FEED_TIMEOUT_MESSAGE:"Tente novamente mais tarde."},ru:{NO_CARDS_MESSAGE:"\u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b.<br/>\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0441\u043d\u043e\u0432\u0430 \u043f\u043e\u0437\u0436\u0435.",FEED_TIMEOUT_MESSAGE:"\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435."},sv:{NO_CARDS_MESSAGE:"Det finns inga uppdateringar.<br/>
112F\xf6rs\xf6k igen senare.",FEED_TIMEOUT_MESSAGE:"F\xf6rs\xf6k igen senare."},th:{NO_CARDS_MESSAGE:"\u0e40\u0e23\u0e32\u0e44\u0e21\u0e48\u0e21\u0e35\u0e01\u0e32\u0e23\u0e2d\u0e31\u0e1e\u0e40\u0e14\u0e15 \u0e01\u0e23\u0e38\u0e13\u0e32\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e20\u0e32\u0e22\u0e2b\u0e25\u0e31\u0e07.",FEED_TIMEOUT_MESSAGE:"\u0e01\u0e23\u0e38\u0e13\u0e32\u0e25\u0e2d\u0e07\u0e43\u0e2b\u0e21\u0e48\u0e20\u0e32\u0e22\u0e2b\u0e25\u0e31\u0e07."},uk:{NO_CARDS_MESSAGE:"\u041e\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044f \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0456.<br/>\u043b\u0430\u0441\u043a\u0430, \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u0442\u0435 \u0437\u043d\u043e\u0432\u0443 \u043f\u0456\u0437\u043d\u0456\u0448\u0435.",FEED_TIMEOUT_MESSAGE:"\u0411\u0443\u0434\u044c \u043b\u0430\u0441\u043a\u0430, \u0441\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0449\u0435 \u0440\u0430\u0437 \u043f\u0456\u0437\u043d\u0456\u0448\u0435."},vi:{NO_CARDS_MESSAGE:"Ch\xfang t\xf4i kh\xf4ng c\xf3 c\u1eadp nh\u1eadt n\xe0o.<br/>Vui l\xf2ng ki\u1ec3m tra l\u1ea1i sau.",FEED_TIMEOUT_MESSAGE:"Vui l\xf2ng th\u1eed l\u1ea1i sau."},"zh-hk":{NO_CARDS_MESSAGE:"\u66ab\u6642\u6c92\u6709\u66f4\u65b0.<br/>\u8acb\u7a0d\u5019\u518d\u8a66.",FEED_TIMEOUT_MESSAGE:"\u8acb\u7a0d\u5019\u518d\u8a66."},"zh-hans":{NO_CARDS_MESSAGE:"\u6682\u65f6\u6ca1\u6709\u66f4\u65b0.<br/>\u8bf7\u7a0d\u540e\u518d\u8bd5.",FEED_TIMEOUT_MESSAGE:"\u8bf7\u7a0d\u5019\u518d\u8bd5."},"zh-hant":{NO_CARDS_MESSAGE:"\u66ab\u6642\u6c92\u6709\u66f4\u65b0.<br/>\u8acb\u7a0d\u5019\u518d\u8a66.",FEED_TIMEOUT_MESSAGE:"\u8acb\u7a0d\u5019\u518d\u8a66."},"zh-tw":{NO_CARDS_MESSAGE:"\u66ab\u6642\u6c92\u6709\u66f4\u65b0.<br/>\u8acb\u7a0d\u5019\u518d\u8a66.",FEED_TIMEOUT_MESSAGE:"\u8acb\u7a0d\u5019\u518d\u8a66."},zh:{NO_CARDS_MESSAGE:"\u6682\u65f6\u6ca1\u6709\u66f4\u65b0.<br/>\u8bf7\u7a0d\u540e\u518d\u8bd5.",FEED_TIMEOUT_MESSAGE:"\u8bf7\u7a0d\u5019\u518d\u8bd5."}}},4459,[]); 113__d(function(g,_r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.subscribeToInAppMessage=function(e){if(n.default.rr())return"function"!=typeof e?null:u.default.ra().En(function(n){return e(n[0]),n.slice(1)})};var n=e(_r(d[0])),u=e(_r(d[1]))},4460,[4355,4421]); 114__d(function(g,_r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.deferInAppMessage=function(e){if(t.default.rr())return e instanceof o.default?(r.logger.info("Not deferring since this is a ControlMessage."),!1):e instanceof n.default?f.default.ra().jn(e):(r.logger.info("Not an instance of InAppMessage, ignoring."),!1)};var n=e(_r(d[0])),t=e(_r(d[1])),o=e(_r(d[2])),r=_r(d[3]),f=e(_r(d[4]))},4461,[4425,4355,4423,4356,4421]); 115__d(function(g,_r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.getDeferredInAppMessage=function(){if(r.default.rr())return t.default.ra().sa()};var r=e(_r(d[0])),t=e(_r(d[1]))},4462,[4355,4421]); 116__d(function(g,_r,_i,_a,m,_e,d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var i=t(_r(d[0])),e=_r(d[1]),s=t(_r(d[2])),r=_r(d[3]),n=_r(d[4]),h=t(_r(d[5])),o=t(_r(d[6])),l=t(_r(d[7])),a=_r(d[8]);class u extends i.default{constructor(t,i,e,s,r){super(),this.tg=t,this.Rs=i,this.j=e,this.Ru=s,this.ig=r,this.tg=t,this.Rs=i,this.j=e,this.Ru=s,this.ig=r,this.sg=[],this.eg=[],this.hg=null,this.ng={},this.og={},this.triggers=[],this.lg=0,this.ag(),this.gg()}fg(){if(this.j){this.hg=this.j.St(n.STORAGE_KEYS.It.nS)||this.hg,this.ng=this.j.St(n.STORAGE_KEYS.It.aS)||this.ng,this.og=this.j.St(n.STORAGE_KEYS.It.oS)||this.og;for(let t=0;t<this.triggers.length;t++){const i=this.triggers[t];i.id&&null!=this.og[i.id]&&i.Id(this.og[i.id])}}}ag(){if(!this.j)return;this.lg=this.j.St(n.STORAGE_KEYS.It.rS)||0;const t=this.j.St(n.STORAGE_KEYS.It.sS)||[],i=[];for(let e=0;e<t.length;e++)i.push(o.default._u(t[e]));this.triggers=i,this.fg()}
116gg(){const t=this,i=function(i,e,s,r,n){return function(){t.cg(i,e,s,r,n)}},e={};for(const t of this.triggers)t.id&&(e[t.id]=t);let h=!1;for(let t=0;t<this.triggers.length;t++){const n=this.triggers[t];if(n.id&&null!=this.ng[n.id]){const t=this.ng[n.id],o=[];for(let h=0;h<t.length;h++){const l=t[h],a=n.$d(l.ma||0);if(a>0){let t,h;o.push(l),null!=l.ug&&(t=l.ug),null!=l.dg&&s.default.AS(l.dg)&&(h=s.default._u(l.dg));const u=[];if(l.pg&&(0,r.isArray)(l.pg))for(let t=0;t<l.pg.length;t++){const i=e[l.pg[t]];null!=i&&u.push(i)}this.eg.push(window.setTimeout(i(n,l.ma||0,t,h,u),a))}}this.ng[n.id].length>o.length&&(this.ng[n.id]=o,h=!0,0===this.ng[n.id].length&&delete this.ng[n.id])}}h&&this.j&&this.j.Pt(n.STORAGE_KEYS.It.aS,this.ng)}mg(){if(!this.j)return;const t=[];for(let i=0;i<this.triggers.length;i++)t.push(this.triggers[i].qt());this.lg=(new Date).valueOf(),this.j.Pt(n.STORAGE_KEYS.It.sS,t),this.j.Pt(n.STORAGE_KEYS.It.rS,this.lg)}bg(){this.j&&((this.j.St(n.STORAGE_KEYS.It.rS)||0)>this.lg?this.ag():this.fg())}q(t){let i=!1;if(null!=t&&t.triggers){this.ig.fa(),this.fg();const e={},s={};this.triggers=[];for(let r=0;r<t.triggers.length;r++){const n=o.default.fromJson(t.triggers[r]);if(n){n.id&&null!=this.og[n.id]&&(n.Id(this.og[n.id]),e[n.id]=this.og[n.id]),n.id&&null!=this.ng[n.id]&&(s[n.id]=this.ng[n.id]);for(let t=0;t<n.Pd.length;t++)if(n.Pd[t]._c(l.default.Os,null)){i=!0;break}this.triggers.push(n)}}(0,r.isEqual)(this.og,e)||(this.og=e,this.j&&this.j.Pt(n.STORAGE_KEYS.It.oS,this.og)),(0,r.isEqual)(this.ng,s)||(this.ng=s,this.j&&this.j.Pt(n.STORAGE_KEYS.It.aS,this.ng)),this.mg(),i&&(a.logger.info("Trigger with test condition found, firing test."),this.Ee(l.default.Os)),this.Ee(l.default.OPEN);const h=this.sg;let u;this.sg=[];for(let t=0;t<h.length;t++)u=Array.prototype.slice.call(h[t]),this.Ee(...u)}}cg(t,i,s,r,n){const l=e=>{this.fg();const r=(new Date).valueOf();t.xd(i)||(!1===navigator.onLine&&t.type===o.default.la.oa&&e.imageUrl?a.logger.info(`Not showing ${t.type} trigger action ${t.id} due to offline state.`):t.Ad(r)&&this.wg(t,r,s)?0===this.Rs.Ve()?a.logger.info(`Not displaying trigger ${t.id} because neither automaticallyShowInAppMessages() nor subscribeToInAppMessage() were called.`):(this.Rs.A([e]),this.yg(t,r)):a.logger.info(`Not displaying trigger ${t.id} because display time fell outside of the acceptable time window.`))},u=()=>{this.fg();const e=n.pop();if(null!=e)if(this.Tg(e,i,s,r,n),e.xd(i)){let t=`Server aborted in-app message display, but the timeout on fallback trigger ${e.id} has already elapsed.`;n.length>0&&(t+=" Continuing to fall back."),a.logger.info(t),u()}else{a.logger.info(`Server aborted in-app message display. Falling back to lower priority ${e.type} trigger action ${t.id}.`);const h=1e3*e.yd-((new Date).valueOf()-i);h>0?this.eg.push(window.setTimeout(()=>{this.cg(e,i,s,r,n)},h)):this.cg(e,i,s,r,n)}};let f,c,S;switch(t.type){case o.default.la.oa:if(f=(0,e.newInAppMessageFromJson)(t.data),null==f){a.logger.error(`Could not parse trigger data for trigger ${t.id}, ignoring.`);break}if(c=this.ig.Qn(f),c){a.logger.error(c),u();break}l(f);break;case o.default.la.zd:if(S=h.default.fromJson(t.data,l,u,i,t.ca||0),null==S){a.logger.error(`Could not parse trigger data for trigger ${t.id}, ignoring.`);break}this.ig.Xo(S,s,r);break;default:a.logger.error(`Trigger ${t.id} was of unexpected type ${t.type}, ignoring.`)}}Ee(t,i=null,e){if(!(0,r.validateValueIsFromEnum)(l.default,t,"Cannot fire trigger action.","TriggerEvents"))return;if(this.Ru&&this.Ru.yc())return a.logger.info("Trigger sync is currently in progress, awaiting sync completion before firing trigger event."),void this.sg.push(arguments);this.bg();const s=(new Date).valueOf(),n=s-(this.hg||0);let h=!0,o=!0;const u=[];for(let e=0;e<this.triggers.length;e++){const r=this.triggers[e],n=s+1e3*r.yd;if(r.Ad(n)&&(null==r.startTime||r.startTime.valueOf()<=s)&&(null==r.endTime||r.endTime.valueOf()>=s)){let e=!1;for(let s=0;s<r.Pd.length;s++)if(r.Pd[s]._c(t,i)){e=!0;break}e&&(h=!1,this.wg(r,n,t)&&(o=!1,u.push(r)))}}if(h)return void a.logger.info(`Trigger event ${t} did not match any trigger conditions.`);if(o)return void a.logger.info(`Ignoring ${t} trigger event because a trigger was displayed ${n/1e3}s ago.`);u.sort((t,i)=>t.priority-i.priority);const f=u.pop();null!=f&&(a.logger.info(`Firing ${f.type} trigger action ${f.id} from trigger event ${t}.`),this.Tg(f,s,t,e,u),0===f.yd?this.cg(f,s,t,e,u):this.eg.push(window.setTimeout(()=>{this.cg(f,s,t,e,u)},1e3*f.yd)))}changeUser(t=!1){if(this.triggers=[],this.j&&this.j.Vt(n.STORAGE_KEYS.It.sS),!t){this.sg=[],this.hg=null,this.og={},this.ng={};for(let t=0;t<this.eg.length;t++)clearTimeout(this.eg[t]);this.eg=[],this.j&&(this.j.Vt(n.STORAGE_KEYS.It.nS),this.j.Vt(n.STORAGE_KEYS.It.oS),this.j.Vt(n.STORAGE_KEYS.It.aS))}}clearData(){this.triggers=[],this.hg=null,this.og={},this.ng={};for(let t=0;t<this.eg.length;t++)clearTimeout(this.eg[t]);this.eg=[]}wg(t,i,e){if(null==this.hg)return!0;
116if(e===l.default.Os)return a.logger.info("Ignoring minimum interval between trigger because it is a test type."),!0;let s=t.Nd;return null==s&&(s=this.tg),i-this.hg>=1e3*s}Tg(t,i,e,s,r){this.fg(),t.id&&(this.ng[t.id]=this.ng[t.id]||[]);const h={};let o;h.ma=i,h.ug=e,null!=s&&(o=s.qt()),h.dg=o;const l=[];for(const t of r)t.id&&l.push(t.id);h.pg=l,t.id&&this.ng[t.id].push(h),this.j&&this.j.Pt(n.STORAGE_KEYS.It.aS,this.ng)}yg(t,i){this.fg(),t.Id(i),this.hg=i,t.id&&(this.og[t.id]=i),this.j&&(this.j.Pt(n.STORAGE_KEYS.It.nS,i),this.j.Pt(n.STORAGE_KEYS.It.oS,this.og))}}},4463,[4362,4428,4398,4360,4359,4464,4432,4380,4356]); 117__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});class t{constructor(t,i,s,n,u){this.triggerId=t,this.ua=i,this.ia=s,this.ma=n,this.ca=u,this.triggerId=t,this.ua=i,this.ia=s,this.ma=n,this.ca=u}static fromJson(i,s,n,u,c){return null==i||null==i.trigger_id?null:new t(i.trigger_id,s,n,u,c)}}},4464,[]); 118__d(function(g,_r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return o}});var r=e(_r(d[0])),t=e(_r(d[1]));const u={i:!1,provider:null,o:()=>{if(u.t(),!u.provider){const e=r.default.er("dustHost");u.provider=new t.default(r.default.m(),r.default.p(),r.default.l(),e),r.default.v(u.provider),u.provider.Hr()}return u.provider},t:()=>{u.i||(r.default.g(u),u.i=!0)},destroy:()=>{u.provider&&u.provider.destroy(),u.provider=null,u.i=!1}};var o=u},4465,[4355,4466]); 119__d(function(_g,_r,_i,_a,m,_e,d){"use strict";function i(i){return i&&i.__esModule?i:{default:i}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return c}});var e=i(_r(d[0])),t=i(_r(d[1])),s=_r(d[2]),n=i(_r(d[3])),o=i(_r(d[4])),r=i(_r(d[5])),h=_r(d[6]),l=_r(d[7]),a=_r(d[8]),g=_r(d[9]),u=_r(d[10]);class c extends e.default{constructor(i,e,t,s,n=!0){super(),this.B=i,this.j=e,this.h=t,this.B=i,this.j=e,this.h=t,this.mite=null,this.Wi=null,this.Gi=null,this.Hi=null,this.Oi=s||null,this.Ki=null,this.Vi=null,this.T=null,this._i=0,this.Qi=g.MAX_RETRIES,this.Yi=null,this.Zi=null,this.we=!0,this.Se=null,this.ke=null,this.ye=null,this.Re=null,this.De=!1,this.Me=new Map,this.xe=null,this.We=null,this.Fe=null,this.Ue=this.Ne(n),this.Be=!1,this.Te=0,this.ze=null,this.Ae()}Ne(i){return i?(0,u.isSharedWorkerSupported)()?"sharedworker":(h.logger.info("SharedWorker not supported, using direct EventSource (multi-tab will gracefully degrade)"),"direct"):(h.logger.info("Shared connection disabled, using direct EventSource"),"direct")}Ge(){this.Fe=new u.DustWorkerBridge({Pe:i=>{this.qe(i)},He:()=>{this.Je(),this.ze=(new Date).valueOf()},Le:()=>{this.ze=null},Oe:i=>{h.logger.error(`Real-time messaging SharedWorker error: ${i}`)}}),this.Fe.initialize()||(h.logger.info("SharedWorker initialization failed, falling back to direct EventSource"),this.Ue="direct",this.Fe=null)}Je(){this._i=0,this.Se=null,this.we=!0,this.Be=!1,this.Te=0}Ie(){var i;return!(!("sharedworker"===this.Ue?Boolean(null===(i=this.Fe)||void 0===i?void 0:i.Ke()):Boolean(this.Vi))||null===this.ze)&&(new Date).valueOf()-this.ze>=g.CONNECTION_VALID_THRESHOLD_MS}qe(i){const e=i.type;if(!e)return void h.logger.warn(`Received real-time message without type: ${JSON.stringify(i)}`);const t="sharedworker"===this.Ue?"SharedWorker":"Direct";h.logger.info(`Received real-time message of type '${e}' via ${t}`);const s=this.Me.get(e);if(s&&s.Ve()>0)try{s.A(i)}catch(i){h.logger.error(`Error invoking subscription for message type '${e}': ${i}`)}else h.logger.info(`No subscribers for real-time message type '${e}'`)}_e(){return"sharedworker"===this.Ue}Qe(){return this.Ue}Ae(){if(this.j){const i=this.j.St(s.STORAGE_KEYS.It.Xe),e=this.j.St(s.STORAGE_KEYS.It.Ye),t=this.j.St(s.STORAGE_KEYS.It.Ze),n=this.j.St(s.STORAGE_KEYS.It.sn);i&&e?(this.mite=i,this.Wi=e,this.Gi=t,this.Hi=n,h.logger.info("Restored real-time messaging configuration from storage")):(i||e)&&(h.logger.warn("Incomplete real-time messaging configuration in storage, clearing"),this.en())}}Hr(){this.xe||this.We||(this.xe=this.on("ddr",i=>{var e,t,s;const n=i.body;if(!n)return;const o=n.r_ms;if("number"!=typeof o)return;const r=n.e,g=(null===(e=this.h)||void 0===e?void 0:e.vt())||l.REQUEST_BACKOFF_MIN_SLEEP_MS_DEFAULT,u=(null===(t=this.h)||void 0===t?void 0:t.gt())||l.REQUEST_BACKOFF_SCALE_FACTOR_DEFAULT,c=(null===(s=this.h)||void 0===s?void 0:s.bt())||l.REQUEST_BACKOFF_MAX_SLEEP_MS_DEFAULT,f=Math.min(c,(0,a.randomInclusive)(g,g*u)),S=Math.round(o+f),v=r?` (${r})`:"";h.logger.info(`Admin requested disconnect${v}, reconnecting in ${S}ms (r_ms=${o} + backoff=${f})`),this.hn(),setTimeout(()=>this.an(),S)}),this.We=this.on("ttl",i=>{const e=i.body;if(!e)return;const t=e.t_ms;if("number"!=typeof t)return;const s=t;if(h.logger.info(`Time to live set to ${s}ms, will reconnect when expired`),"sharedworker"===this.Ue)return;const n=e.rcs;"string"==typeof n&&(this.Ki=n),null!==this.Zi&&window.clearTimeout(this.Zi),this.Zi=window.setTimeout(()=>{this.Zi=null,h.logger.info("Time to live expired, performing gapless reconnection"),this.ln()},s)}))}cn(){this.ke||this.ye||(this.Re=()=>{this.De=!0,this.we=!1},window.addEventListener("beforeunload",this.Re),this.ke=()=>{var i;this.De=!0,(this.Vi||(null===(i=this.Fe)||void 0===i?void 0:i.Ke()))&&(h.logger.info("Page unloading, closing real-time connection gracefully"),this.we=!1,this.hn())},window.addEventListener("pagehide",this.ke),this.ye=i=>{var e;const t=this.Vi||(null===(e=this.Fe)||void 0===e?void 0:e.Ke());i.persisted&&this.un()&&!t&&(h.logger.info("Page restored from bfcache, reconnecting"),this.De=!1,this.Je(),this.an())},window.addEventListener("pageshow",this.ye))}Et(){return this.T}Lt(i){this.T=i}on(i,e){if("function"!=typeof e)return null;let s=this.Me.get(i);return s||(s=new n.default,this.Me.set(i,s),t.default.S(s)),s.Ut(e)}dn(i,e){const t=this.Me.get(i);t&&t.removeSubscription(e)}un(){return Boolean(this.mite&&this.Wi)}gn(){return!!this.Hi&&Math.floor((new Date).valueOf()/1e3)>=this.Hi}en(){this.mite=null,this.Wi=null,this.Gi=null,this.Hi=null,this.Ki=null,this.j&&(this.j.Vt(s.STORAGE_KEYS.It.Xe),this.j.Vt(s.STORAGE_KEYS.It.Ye),this.j.Vt(s.STORAGE_KEYS.It.Ze),this.j.Vt(s.STORAGE_KEYS.It.sn))}mn(i,e){const t=()=>{"function"==typeof e&&e()},n=this.B,l=this.j;if(!n||!l)return h.logger.error("NetworkManager or StorageManager not available"),void t();if(!this.h||!this.h.fn())return h.logger.info("Real-time messaging is not enabled, skipping refresh"),void t();this.un()?h.logger.info("Refreshing real-time messaging configuration"):h.logger.info("Fetching initial real-time messaging configuration");const a=n.Z({},!0),g=n.tt(a,r.default.it.pn),u=(new Date).valueOf();r.default.nt(l,r.default.it.pn,u),o.default.ot({url:`${n.ht()}/dust/config`,headers:g,data:a,lt:e=>{if(!n.ut(a,e,g))return h.logger.error("Failed to validate server response for real-time messaging configuration"),void t();n.ct(),e.mite&&e.host?(this.mite=e.mite,this.Wi=e.host,this.Gi=e.auth||null,this.Hi=e.expiration||null,h.logger.info("Received real-time messaging configuration from server"),l.Pt(s.STORAGE_KEYS.It.Xe,e.mite),l.Pt(s.STORAGE_KEYS.It.Ye,e.host),e.auth?l.Pt(s.STORAGE_KEYS.It.Ze,e.auth):l.Vt(s.STORAGE_KEYS.It.Ze),e.expiration?l.Pt(s.STORAGE_KEYS.It.sn,e.expiration):l.Vt(s.STORAGE_KEYS.It.sn),this.an(),"function"==typeof i&&i()):(h.logger.info("Real-time messaging configuration not available - this SDK version may not be supported"),this.en(),t())},error:i=>{n.dt(i,"retrieving DUST config"),t()}})}an(){if(!this.h||!this.h.fn())return;if(!this.un())return void h.logger.error("Cannot start real-time subscription without configuration");if(this.gn())return h.logger.info("Real-time messaging auth token has expired, refreshing configuration"),void this.mn(()=>{this.an()},()=>{h.logger.error("Failed to refresh expired real-time messaging configuration")});const i=this.mite,e=this.Oi||this.Wi;if(i&&e)switch(this.Ue){case"sharedworker":this.vn(i,e);break;case"direct":this.Vi&&(h.logger.info("Real-time connection already exists, closing before starting new subscription"),this.hn()),this.wn()}}bn(){const i=this.mite,e=this.Oi||this.Wi;return i&&e?(0,g.buildSseUrl)(e,i,this._i,this.Gi||void 0,this.Ki||void 0):null}vn(i,e){var t,s,n;if(this.Fe||this.Ge(),!this.Fe)return h.logger.info("SharedWorker initialization failed, falling back to direct EventSource"),this.Ue="direct",void this.Sn();
119this.Oi&&h.logger.info(`Using custom real-time messaging host: ${this.Oi}`),h.logger.info("Starting real-time subscription via SharedWorker");const o=(null===(t=this.h)||void 0===t?void 0:t.vt())||l.REQUEST_BACKOFF_MIN_SLEEP_MS_DEFAULT,r=(null===(s=this.h)||void 0===s?void 0:s.bt())||l.REQUEST_BACKOFF_MAX_SLEEP_MS_DEFAULT,a=(null===(n=this.h)||void 0===n?void 0:n.gt())||l.REQUEST_BACKOFF_SCALE_FACTOR_DEFAULT;this.Fe.connect({mite:i,dustHost:e,auth:this.Gi||void 0,backoff:{minSleepMs:o,maxSleepMs:r,scaleFactor:a}})}Sn(){this.Vi&&(h.logger.info("Real-time connection already exists, closing before starting new subscription"),this.kn()),this.wn()}wn(i){const e=this.bn();if(e){this.Oi&&h.logger.info(`Using custom real-time messaging host: ${this.Oi}`);try{const t=new EventSource(e);t.onopen=()=>{i?(h.logger.info("Gapless reconnection: new connection established, closing old connection"),i.close()):h.logger.info("Real-time messaging connection established"),this.Vi=t,this._i=0,this.Se=null,this.we=!0,this.Be=!0,this.ze=(new Date).valueOf()},t.addEventListener("msg",i=>{this.yn(i.data)}),t.onerror=()=>{const e=t.readyState;return this.De||(0===e?h.logger.info("Real-time messaging failed to connect"):h.logger.info("Real-time messaging connection lost")),i&&this.Vi!==t?(h.logger.info("Gapless reconnection failed, keeping old connection"),t.close(),void(this.we&&this._i<this.Qi&&this.$n())):(this.kn(),this.Be&&(this.Te++,this.Te>1)?(h.logger.info("Real-time messaging connection lost twice after successful connect (likely multi-tab conflict), yielding to other tab"),void(this.we=!1)):void(this.we&&this._i<this.Qi?this.$n():(this._i>=this.Qi&&h.logger.error(`Max retry attempts (${this.Qi}) reached for real-time messaging, giving up for current session`),this.we=!1)))}}catch(i){h.logger.error(`Failed to create real-time messaging connection: ${i instanceof Error?i.message:String(i)}`)}}}$n(){var i,e,t;this._i++;const s=(null===(i=this.h)||void 0===i?void 0:i.vt())||l.REQUEST_BACKOFF_MIN_SLEEP_MS_DEFAULT,n=(null===(e=this.h)||void 0===e?void 0:e.gt())||l.REQUEST_BACKOFF_SCALE_FACTOR_DEFAULT,o=(null===(t=this.h)||void 0===t?void 0:t.bt())||l.REQUEST_BACKOFF_MAX_SLEEP_MS_DEFAULT;let r=this.Se;(null==r||r<s)&&(r=s);const g=Math.min(o,(0,a.randomInclusive)(s,r*n));this.Se=g,h.logger.info(`Retrying real-time messaging connection in ${g}ms (attempt ${this._i}/${this.Qi})`),this.Yi=window.setTimeout(()=>{this.Yi=null,this.an()},g)}ln(){if(this.un()){if(this.gn())return h.logger.info("Auth token expired during gapless reconnection, falling back to regular reconnection"),this.hn(),void this.an();null!==this.Zi&&(window.clearTimeout(this.Zi),this.Zi=null),this.wn(this.Vi||void 0)}else h.logger.error("Cannot perform gapless reconnection without configuration")}hn(){var i;switch(this.ze=null,this.Ue){case"sharedworker":null===(i=this.Fe)||void 0===i||i.disconnect();break;case"direct":this.kn()}}kn(){null!==this.Yi&&(window.clearTimeout(this.Yi),this.Yi=null),null!==this.Zi&&(window.clearTimeout(this.Zi),this.Zi=null),this.ze=null,this.Vi&&(this.Vi.close(),this.Vi=null,h.logger.info("Real-time messaging connection closed"))}yn(i){try{const e=JSON.parse(i);this.qe(e)}catch(i){h.logger.warn(`Failed to parse real-time message: ${i instanceof Error?i.message:String(i)}`)}}changeUser(i=!1){this.hn(),i||(this.un()&&h.logger.info("Clearing cached real-time messaging configuration for user change"),this.en()),this.Je()}clearData(i=!1){this.we=!1,this.hn(),i&&(this.un()&&h.logger.info("Clearing cached real-time messaging configuration (wipeData)"),this.en()),this.Je()}destroy(){this.we=!1,this.hn(),this.en(),this.Fe&&(this.Fe.destroy(),this.Fe=null),this.xe&&(this.dn("ddr",this.xe),this.xe=null),this.We&&(this.dn("ttl",this.We),this.We=null),this.Re&&(window.removeEventListener("beforeunload",this.Re),this.Re=null),this.ke&&(window.removeEventListener("pagehide",this.ke),this.ke=null),this.ye&&(window.removeEventListener("pageshow",this.ye),this.ye=null),this.T&&(t.default.removeSubscription(this.T),this.T=null)}}},4466,[4362,4355,4359,4353,4361,4364,4356,4352,4365,4467,4468]); 120__d(function(g,_r,i,a,m,_e,d){"use strict";
120Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"MIN_BACKOFF_MS",{enumerable:!0,get:function(){return e}}),Object.defineProperty(_e,"MAX_BACKOFF_MS",{enumerable:!0,get:function(){return t}}),Object.defineProperty(_e,"BACKOFF_SCALE_FACTOR",{enumerable:!0,get:function(){return n}}),Object.defineProperty(_e,"MAX_RETRIES",{enumerable:!0,get:function(){return r}}),Object.defineProperty(_e,"CONNECTION_VALID_THRESHOLD_MS",{enumerable:!0,get:function(){return o}}),_e.randomInRange=u,_e.calculateBackoff=function(e){let t=e;return(null===t||t<1e4)&&(t=1e4),Math.min(3e5,u(1e4,3*t))},_e.buildSseUrl=function(e,t,n,r,o){const u=/^https?:\/\//i.test(e)?e:`https://${e}`;let c=`mite=${encodeURIComponent(t)}&attempts=${n}`;return r&&(c+=`&auth=${encodeURIComponent(r)}`),o&&(c+=`&rcs=${encodeURIComponent(o)}`),`${u}/sse?${c}`};const e=1e4,t=3e5,n=3,r=5,o=3e3;function u(e,t){return Math.floor(Math.random()*(t-e+1))+e}},4467,[]); 121__d(function(g,r,_i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.isSharedWorkerSupported=i,Object.defineProperty(_e,"DustWorkerBridge",{enumerable:!0,get:function(){return s}});var e=r(d[0]),t=r(d[1]);function i(){return"undefined"!=typeof SharedWorker}class s{constructor(e){this.Wr=null,this.Rr=null,this.isConnected=!1,this.Mr=null,this.Lr=null,this.Pe=e.Pe,this.He=e.He,this.Le=e.Le,this.Oe=e.Oe}initialize(){if(!i())return e.logger.info("SharedWorker not supported, will use direct connection"),!1;try{const i=new Blob([t.DUST_SHARED_WORKER_CODE],{type:"application/javascript"});return this.Rr=URL.createObjectURL(i),this.Wr=new SharedWorker(this.Rr,{name:"braze-dust-worker"}),this.Wr.port.onmessage=e=>{this.Ir(e.data)},this.Wr.port.onmessageerror=()=>{e.logger.warn("Message error from real-time messaging worker")},this.Wr.onerror=t=>{var i;e.logger.error(`Real-time messaging worker error: ${t.message||"unknown error"}`),null===(i=this.Oe)||void 0===i||i.call(this,"SharedWorker error")},this.Wr.port.start(),this.Ur(),this.Vr(),e.logger.info("Real-time messaging worker initialized"),!0}catch(t){return e.logger.error(`Failed to create real-time messaging worker: ${t instanceof Error?t.message:String(t)}`),this._r(),!1}}Ir(t){var i,s,n;switch(t.type){case"connected":e.logger.info("Real-time messaging connection established via SharedWorker"),this.isConnected=!0,null===(i=this.He)||void 0===i||i.call(this);break;case"disconnected":e.logger.info("Real-time messaging connection closed via SharedWorker"),this.isConnected=!1,null===(s=this.Le)||void 0===s||s.call(this);break;case"message":{const e=t.data,i={type:e.type};null!=e.body&&(i.body=e.body),this.Pe(i);break}case"error":e.logger.error(`Real-time messaging error: ${t.error}`),null===(n=this.Oe)||void 0===n||n.call(this,t.error)}}Ur(){this.Mr=window.setInterval(()=>{this.Wr&&this.Gr({type:"ping"})},3e4)}Jr(){null!==this.Mr&&(window.clearInterval(this.Mr),this.Mr=null)}Vr(){this.Lr=()=>{"visible"===document.visibilityState&&this.Wr&&this.Gr({type:"tab_active"})},document.addEventListener("visibilitychange",this.Lr)}Kr(){this.Lr&&(document.removeEventListener("visibilitychange",this.Lr),this.Lr=null)}Gr(e){this.Wr&&this.Wr.port.postMessage(e)}connect(t){this.Wr?(this.Gr({type:"connect",config:{mite:t.mite,dustHost:t.dustHost,auth:t.auth,backoff:{minSleepMs:t.backoff.minSleepMs,maxSleepMs:t.backoff.maxSleepMs,scaleFactor:t.backoff.scaleFactor}}}),e.logger.info("Connecting to real-time messaging")):e.logger.error("Cannot connect: real-time messaging worker not initialized")}disconnect(){this.Wr&&(this.Gr({type:"disconnect"}),this.isConnected=!1,e.logger.info("Disconnecting from real-time messaging"))}Ke(){return this.isConnected}isInitialized(){return null!==this.Wr}_r(){this.Jr(),this.Kr(),this.Wr&&(this.Wr.port.close(),this.Wr=null),this.Rr&&(URL.revokeObjectURL(this.Rr),this.Rr=null),this.isConnected=!1}destroy(){this.disconnect(),this._r(),e.logger.info("Real-time messaging worker destroyed")}}},4468,[4356,4469]); 122__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DUST_SHARED_WORKER_CODE",{enumerable:!0,get:function(){return n}});const n='\n"use strict";\nconst workerSelf = self;\nlet eventSource = null;\nlet currentConfig = null;\nlet retryCount = 0;\nlet retryTimeoutId = null;\nlet connectionInProgress = false;\nconst maxRetries = 5;\nconst connectedPorts = new Map();\nlet lastSleepMs = null;\nlet currentRcs = null;\nlet ttlTimeoutId = null;\nlet leaderPortId = null;\nlet ddrTimeoutId = null;\nconst fn = {\n startConnection: null,\n handleMessage: null,\n};
122\nfunction broadcast(message) {\n connectedPorts.forEach((portInfo, portId) => {\n try {\n portInfo.port.postMessage(message);\n }\n catch (_a) {\n connectedPorts.delete(portId);\n }\n });\n}\nfunction randomInclusive(min, max) {\n return Math.floor(Math.random() * (max - min + 1)) + min;\n}\nfunction electLeader() {\n if (leaderPortId && connectedPorts.has(leaderPortId)) {\n return;\n }\n const firstPortId = connectedPorts.keys().next().value;\n leaderPortId = firstPortId || null;\n if (leaderPortId) {\n console.log("[Braze Real-Time] Elected leader port:", leaderPortId);\n }\n}\nfunction promoteToLeader(portId) {\n if (connectedPorts.has(portId) && leaderPortId !== portId) {\n leaderPortId = portId;\n console.log("[Braze Real-Time] Promoted to leader (tab became active):", portId);\n }\n}\nfunction sendToLeader(message) {\n electLeader();\n if (!leaderPortId) {\n console.warn("[Braze Real-Time] No leader to send message to");\n return;\n }\n const leader = connectedPorts.get(leaderPortId);\n if (leader) {\n try {\n leader.port.postMessage(message);\n }\n catch (_a) {\n connectedPorts.delete(leaderPortId);\n leaderPortId = null;\n sendToLeader(message);\n }\n }\n}\nfunction closeConnection() {\n connectionInProgress = false;\n if (retryTimeoutId !== null) {\n clearTimeout(retryTimeoutId);\n retryTimeoutId = null;\n }\n if (ttlTimeoutId !== null) {\n clearTimeout(ttlTimeoutId);\n ttlTimeoutId = null;\n }\n if (ddrTimeoutId !== null) {\n clearTimeout(ddrTimeoutId);\n ddrTimeoutId = null;\n }\n if (eventSource) {\n eventSource.close();\n eventSource = null;\n broadcast({ type: "disconnected" });\n }\n}\nfunction retryWithBackoff() {\n if (!currentConfig) {\n return;\n }\n retryCount++;\n const { minSleepMs, maxSleepMs, scaleFactor } = currentConfig.backoff;\n let previousSleepMs = lastSleepMs;\n if (previousSleepMs == null || previousSleepMs < minSleepMs) {\n previousSleepMs = minSleepMs;\n }\n const backoffMs = Math.min(maxSleepMs, randomInclusive(minSleepMs, previousSleepMs * scaleFactor));\n lastSleepMs = backoffMs;\n console.log(`[Braze Real-Time] Retrying in ${backoffMs}ms (attempt ${retryCount}/${maxRetries})`);\n retryTimeoutId = setTimeout(function () {\n retryTimeoutId = null;\n fn.startConnection();\n }, backoffMs);\n}\nfunction startConnection(oldEventSourceToClose) {\n if (!currentConfig) {\n return;\n }\n if (eventSource && !oldEventSourceToClose) {\n console.warn("[Braze Real-Time] Connection already exists");\n return;\n }\n if (connectionInProgress && !oldEventSourceToClose) {\n console.warn("[Braze Real-Time] Connection attempt already in progress");\n return;\n }\n connectionInProgress = true;\n const { dustHost, mite, auth } = currentConfig;\n const dustHostWithScheme = /^https?:\\/\\//i.test(dustHost) ? dustHost : `https://${dustHost}`;\n let queryString = `mite=${encodeURIComponent(mite)}&attempts=${retryCount}`;\n if (auth) {\n queryString += `&auth=${encodeURIComponent(auth)}`;\n }\n if (currentRcs) {\n queryString += `&rcs=${encodeURIComponent(currentRcs)}`;\n }\n const subscribeUrl = `${dustHostWithScheme}/sse?${queryString}`;\n try {\n const newEventSource = new EventSource(subscribeUrl);\n newEventSource.onopen = function () {\n if (oldEventSourceToClose) {\n console.log("[Braze Real-Time] Gapless reconnection: new connection established, closing old connection");\n oldEventSourceToClose.close();\n }\n else {\n console.log("[Braze Real-Time] Connection established");\n }\n eventSource = newEventSource;\n connectionInProgress = false;\n retryCount = 0;\n lastSleepMs = null;\n broadcast({ type: "connected" });\n };\n newEventSource.addEventListener("msg", function (event) {\n fn.handleMessage(event.data);\n });\n newEventSource.onerror = function () {\n const readyState = newEventSource ? newEventSource.readyState : -1;\n if (readyState === 0) {\n console.log("[Braze Real-Time] Failed to connect");\n }\n else {\n console.log("[Braze Real-Time] Connection lost");\n }\n if (oldEventSourceToClose && eventSource !== newEventSource) {\n console.log("[Braze Real-Time] Gapless reconnection failed, keeping old connection");\n newEventSource.close();\n connectionInProgress = false;\n if (retryCount < maxRetries) {\n retryWithBackoff();\n }\n return;\n }\n closeConnection();\n if (retryCount < maxRetries) {\n retryWithBackoff();\n }\n else {\n console.error("[Braze Real-Time] Max retries reached");\n broadcast({ type: "error", error: "Max retry attempts reached" });\n }\n };\n }\n catch (error) {\n connectionInProgress = false;\n console.error("[Braze Real-Time] Failed to create EventSource:", error);\n broadcast({ type: "error", error: String(error) });\n }\n}\nfunction handleTtlMessage(tMs, rcs) {\n if (typeof tMs !== "number") {\n return;\n }\n if (typeof rcs === "string") {\n currentRcs = rcs;\n }\n console.log(`[Braze Real-Time] TTL set to ${tMs}ms, will perform gapless reconnection when expired`);\n if (ttlTimeoutId !== null) {\n clearTimeout(ttlTimeoutId);\n }\n ttlTimeoutId = setTimeout(function () {\n ttlTimeoutId = null;\n console.log("[Braze Real-Time] TTL expired, performing gapless reconnection");\n startConnection(eventSource || undefined);\n }, tMs);\n}\nfunction handleDdrMessage(rMs, reason) {\n if (typeof rMs !== "number") {\n return;\n }\n const backoffConfig = currentConfig === null || currentConfig === void 0 ? void 0 : currentConfig.backoff;\n const minSleepMs = (backoffConfig === null || backoffConfig === void 0 ? void 0 : backoffConfig.minSleepMs) || 10000;\n const scaleFactor = (backoffConfig === null || backoffConfig === void 0 ? void 0 : backoffConfig.scaleFactor) || 3;\n const maxSleepMs = (backoffConfig === null || backoffConfig === void 0 ? void 0 : backoffConfig.maxSleepMs) || 300000;\n const backoffMs = Math.min(maxSleepMs, randomInclusive(minSleepMs, minSleepMs * scaleFactor));\n const waitMs = Math.round(rMs + backoffMs);\n const reasonStr = reason ? ` (${reason})` : "";\n console.log(`[Braze Real-Time] Admin requested disconnect${reasonStr}, reconnecting in ${waitMs}ms (r_ms=${rMs} + backoff=${backoffMs})`);\n if (ddrTimeoutId !== null) {\n clearTimeout(ddrTimeoutId);\n }\n closeConnection();\n ddrTimeoutId = setTimeout(function () {\n ddrTimeoutId = null;\n fn.startConnection();\n }, waitMs);\n}
122\nfunction handleMessage(data) {\n try {\n const message = JSON.parse(data);\n if (!message.type) {\n console.warn("[Braze Real-Time] Message without type:", message);\n return;\n }\n if (message.type === "ttl" && message.body) {\n handleTtlMessage(message.body.t_ms, message.body.rcs);\n return;\n }\n if (message.type === "ddr" && message.body) {\n handleDdrMessage(message.body.r_ms, message.body.e);\n return;\n }\n console.log(`[Braze Real-Time] Routing \'${message.type}\' message to leader`);\n sendToLeader({ type: "message", data: message });\n }\n catch (error) {\n console.warn("[Braze Real-Time] Failed to parse message:", error);\n }\n}\nfn.startConnection = startConnection;\nfn.handleMessage = handleMessage;\nfunction handlePortMessage(port, portId, message) {\n switch (message.type) {\n case "connect":\n if (currentConfig &&\n (currentConfig.mite !== message.config.mite || currentConfig.dustHost !== message.config.dustHost)) {\n console.log("[Braze Real-Time] Config changed, reconnecting");\n closeConnection();\n retryCount = 0;\n lastSleepMs = null;\n currentRcs = null;\n }\n currentConfig = message.config;\n if (!connectedPorts.has(portId)) {\n connectedPorts.set(portId, { port: port });\n }\n electLeader();\n if (!eventSource && !connectionInProgress) {\n startConnection();\n }\n else if (eventSource) {\n port.postMessage({ type: "connected" });\n }\n break;\n case "disconnect":\n connectedPorts.delete(portId);\n if (portId === leaderPortId) {\n leaderPortId = null;\n electLeader();\n }\n if (connectedPorts.size === 0) {\n console.log("[Braze Real-Time] No more ports, closing connection");\n closeConnection();\n currentConfig = null;\n currentRcs = null;\n leaderPortId = null;\n }\n break;\n case "tab_active":\n promoteToLeader(portId);\n break;\n case "ping":\n port.postMessage({ type: "pong" });\n break;\n default:\n console.warn("[Braze Real-Time] Unknown message type:", message.type);\n }\n}\nworkerSelf.onconnect = function (event) {\n const port = event.ports[0];\n const portId = `port-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;\n connectedPorts.set(portId, { port: port });\n port.onmessage = function (messageEvent) {\n try {\n handlePortMessage(port, portId, messageEvent.data);\n }\n catch (error) {\n console.error("[Braze Real-Time] Error handling message:", error);\n }\n };\n port.onmessageerror = function () {\n console.warn("[Braze Real-Time] Message error from port:", portId);\n connectedPorts.delete(portId);\n };\n port.start();\n};\n'},4469,[]); 123__d(function(g,_r,i,a,m,_e,d){"use strict";function n(n){return n&&n.__esModule?n:{default:n}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.subscribeToDust=function(){const n=t.default.l(),e=t.default.nn();if(!n||!e)return null;const r=u.default.o(),f=()=>{if(!r.Et()){r.cn();const t=e.rn(()=>{n.fn()&&r.mn()});return t&&r.Lt(t),r.un()&&r.an(),t}return r.Et()};return n.Tr(()=>{t.default.ao()&&(n.fn()?(r.mn(),f()):(r.hn(),r.un()&&r.en()))}),n.fn()?f():null};var t=n(_r(d[0])),u=n(_r(d[1]))},4470,[4355,4465]); 124__d(function(g,_r,_i,a,m,_e,d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return h}});var e=t(_r(d[0])),u=_r(d[1]),s=t(_r(d[2])),i=_r(d[3]),n=_r(d[4]),r=_r(d[5]);class h{constructor(t,e){this.h=t,this.j=e,this.h=t,this.j=e}
124getUserId(){const t=this.j.$u(n.STORAGE_KEYS.Ou.Cu);if(null==t)return null;let e=t.Tu,s=(0,u.getByteLength)(e);if(s>r.User.br){for(;s>r.User.br;)e=e.slice(0,e.length-1),s=(0,u.getByteLength)(e);t.Tu=e,this.j.Iu(n.STORAGE_KEYS.Ou.Cu,t)}return e}Ju(t){const u=null==this.getUserId();this.j.Iu(n.STORAGE_KEYS.Ou.Cu,new e.default(t)),u&&this.j.Lu(t)}setCustomUserAttribute(t,e){if(this.h.qu(t))return i.logger.info('Custom Attribute "'+t+'" is blocklisted, ignoring.'),!1;const u={};return u[t]=e,this.zu(r.User.Bu,u,!0)}zu(t,e,u=!1,s=!1){const n=this.j.Eu(this.getUserId(),t,e);let r="",h=t,l=e;return u&&(r=" custom","object"==typeof e&&(h=Object.keys(e)[0],l=e[h],"object"==typeof l&&(l=JSON.stringify(l,null,2)))),!s&&n&&i.logger.info(`Logged${r} attribute ${h} with value ${l}`),n}gu(t,e,u,r,h){this.zu("push_token",t,!1,!0),this.zu("custom_push_public_key",u,!1,!0),this.zu("custom_push_user_auth",r,!1,!0),this.zu("custom_push_vapid_public_key",h,!1,!0);const l=i.IndexedDBAdapter._s.Xs,o=new i.IndexedDBAdapter(l,i.logger),_=new s.default(t,e,u,r,h);this.j.Pt(n.STORAGE_KEYS.It.Uu,_.qt()),o.setItem(l.Ws.Fu,l.be,!0)}wu(t){if(this.zu("push_token",null,!1,!0),this.zu("custom_push_public_key",null,!1,!0),this.zu("custom_push_user_auth",null,!1,!0),this.zu("custom_push_vapid_public_key",null,!1,!0),t){const t=i.IndexedDBAdapter._s.Xs,e=new i.IndexedDBAdapter(t,i.logger);this.j.Pt(n.STORAGE_KEYS.It.Uu,!1),e.setItem(t.Ws.Fu,t.be,!1)}}}},4471,[4400,4403,4472,4356,4359,4349]); 125__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return i}});var t=r(d[0]);class i{constructor(t,i,s,n,u){this.endpoint=t,this.Wu=i,this.publicKey=s,this.sc=n,this.ad=u,this.endpoint=t||null,this.Wu=i||null,this.publicKey=s||null,this.sc=n||null,this.ad=u||null}qt(){return{e:this.endpoint,c:this.Wu,p:this.publicKey,u:this.sc,v:this.ad}}static _u(s){return new i(s.e,(0,t.rehydrateDateAfterJsonization)(s.c),s.p,s.u,s.v)}}},4472,[4351]); 126__d(function(g,_r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return n}});var t=_r(d[0]),u=e(t),l=e(_r(d[1]));const f={i:!1,na:null,ra:()=>(f.t(),f.na||(f.na=new l.default(u.default.zr(),u.default.za(),u.default.ue(),u.default.ht(),u.default.er(t.OPTIONS.xa),u.default.er(t.OPTIONS.ya),u.default.er(t.OPTIONS.Ma),u.default.l(),u.default.er(t.OPTIONS._a),u.default.er(t.OPTIONS.ka),u.default.p())),f.na),t:()=>{f.i||(u.default.g(f),f.i=!0)},destroy:()=>{f.na=null,f.i=!1}};var n=f},4473,[4355,4474]); 127__d(function(g,_r,_i,_a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return a}});var i=_r(d[0]),t=e(_r(d[1])),o=_r(d[2]),r=_r(d[3]),s=_r(d[4]),n=e(_r(d[5])),u=_r(d[6]);class a{constructor(e,i,t,o,r,s,u,a,c,h,l){this.iu=e,this.tu=i,this.eu=t,this.su=r,this.ru=s,this.nu=u,this.h=a,this.ou=c,this.uu=h,this.j=l,this.iu=e,this.tu=i,this.eu=t,this.au=o+"/safari/"+i,this.su=r||"/service-worker.js",this.nu=u,this.h=a,this.ou=c||!1,this.uu=h||!1,this.j=l,this.hu=n.default.cu(),this.fu=n.default.lu()}du(){return this.uu}pu(e,i,t,r,s){e.unsubscribe().then(e=>{e?this.bu(i,t,r,s):(o.logger.error("Failed to unsubscribe device from push."),"function"==typeof s&&s(!1))}).catch(e=>{o.logger.error("Push unsubscription error: "+e),"function"==typeof s&&s(!1)})}yu(e,i,t){var r;const s=(e=>{if("string"==typeof e)return e;if(0!==e.endpoint.indexOf("https://android.googleapis.com/gcm/send"))return e.endpoint;let i=e.endpoint;const t=e;return t.mu&&-1===e.endpoint.indexOf(t.mu)&&(i=e.endpoint+"/"+t.mu),i})(e);let n=null,a=null;const c=e;if(null!=c.getKey)try{const e=Array.from(new Uint8Array(c.getKey("p256dh"))),i=Array.from(new Uint8Array(c.getKey("auth")));n=btoa(String.fromCharCode.apply(null,e)),a=btoa(String.fromCharCode.apply(null,i))}catch(e){o.logger.error((0,u.getErrorMessage)(e))}const h=(e=>{let i;return e.options&&(i=e.options.applicationServerKey)&&i.byteLength&&i.byteLength>0?btoa(String.fromCharCode.apply(null,Array.from(new Uint8Array(i)))).replace(/\+/g,"-").replace(/\//g,"_"):null})(c);null===(r=this.iu)||void 0===r||r.gu(s,i,n,a,h),s&&"function"==typeof t&&t(s,n,a)}vu(){var e;
127null===(e=this.iu)||void 0===e||e.wu(!0)}ku(e,i){var t;null===(t=this.iu)||void 0===t||t.wu(!1),o.logger.info(e),"function"==typeof i&&i(!1)}Pu(e,i,t,r){var n;if("default"===i.permission)try{window.safari.pushNotification.requestPermission(this.au,e,{api_key:this.tu,device_id:(null===(n=this.eu)||void 0===n?void 0:n.ve().id)||""},i=>{"granted"===i.permission&&this.iu&&this.iu.setPushNotificationSubscriptionType(s.User.NotificationSubscriptionTypes.OPTED_IN),this.Pu(e,i,t,r)})}catch(e){this.ku("Could not request permission for push: "+e,r)}else"denied"===i.permission?this.ku("The user has blocked notifications from this site, or Safari push is not configured in the Braze dashboard.",r):"granted"===i.permission&&(o.logger.info("Device successfully subscribed to push."),this.yu(i.deviceToken,new Date,t))}requestPermission(e,i,t){const r=r=>{switch(r){case"granted":return void("function"==typeof e&&e());case"default":return void("function"==typeof i&&i());case"denied":return void("function"==typeof t&&t());default:o.logger.error("Received unexpected permission result "+r)}};let s=!1;if("default"!==window.Notification.permission)r(Notification.permission);else{const e=window.Notification.requestPermission(e=>{s&&r(e)});e?e.then(e=>{r(e)}):s=!0}}bu(e,i,t,r){const s={userVisibleOnly:!0};null!=i&&(s.applicationServerKey=i),e.pushManager.subscribe(s).then(e=>{o.logger.info("Device successfully subscribed to push."),this.yu(e,new Date,t)}).catch(e=>{n.default.isPushBlocked()?(o.logger.info("Permission for push notifications was denied."),"function"==typeof r&&r(!1)):(o.logger.error("Push subscription failed: "+e),"function"==typeof r&&r(!0))})}Du(){if(this.ou)return navigator.serviceWorker.getRegistration(this.su);const e=this.ru?{scope:this.ru}:void 0;return navigator.serviceWorker.register(this.su,e).then(()=>navigator.serviceWorker.ready.then(e=>(e&&"function"==typeof e.update&&e.update().catch(e=>{o.logger.info("ServiceWorker update failed: "+e)}),e)))}Su(e){this.ou||(e.unregister(),o.logger.info("Service worker successfully unregistered."))}subscribe(e,u){if(!n.default.isPushSupported())return o.logger.info(a.Au),void("function"==typeof u&&u(!1));if(this.hu){if(!this.ou&&null!=window.location){let e=this.su;-1===e.indexOf(window.location.host)&&(e=window.location.host+e),-1===e.indexOf(window.location.protocol)&&(e=window.location.protocol+"//"+e)}if(n.default.isPushBlocked())return void this.ku("Notifications from this site are blocked. This may be a temporary embargo or a permanent denial.",u);if(this.h&&!this.h.ju()&&0===this.h.Qt())return o.logger.info("Waiting for VAPID key from server config before subscribing to push."),void this.h.xu(()=>{this.subscribe(e,u)});const a=()=>{o.logger.info("Permission for push notifications was denied."),"function"==typeof u&&u(!1)},c=()=>{let e="Permission for push notifications was ignored.";n.default.isPushBlocked()&&(e+=" The browser has automatically blocked further permission requests for a period (probably 1 week)."),o.logger.info(e),"function"==typeof u&&u(!0)},h=n.default.isPushPermissionGranted(),l=()=>{!h&&this.iu&&this.iu.setPushNotificationSubscriptionType(s.User.NotificationSubscriptionTypes.OPTED_IN),this.Du().then(s=>{if(null==s)return o.logger.error("No service worker registration. Set the `manageServiceWorkerExternally` initialization option to false or ensure that your service worker is registered before calling registerPush."),void("function"==typeof u&&u(!0));s.pushManager.getSubscription().then(n=>{var a;let c=null;if(null!=(null===(a=this.h)||void 0===a?void 0:a.ju())&&(c=o.EncodingUtils.Nu(this.h.ju())),n){let a,h=null,l=null;if(this.j&&(a=this.j.St(r.STORAGE_KEYS.It.Uu)),a&&!(0,i.isArray)(a)){let e;try{e=t.default._u(a).Wu}catch(i){e=null}null==e||isNaN(e.getTime())||0===e.getTime()||(h=e,l=new Date(h),l.setMonth(h.getMonth()+6))}null!=c&&n.options&&n.options.applicationServerKey&&n.options.applicationServerKey.byteLength&&n.options.applicationServerKey.byteLength>0&&!(0,i.isEqual)(c,new Uint8Array(n.options.applicationServerKey))?(n.options.applicationServerKey.byteLength>12?o.logger.info("Device was already subscribed to push using a different VAPID provider, creating new subscription."):o.logger.info("Attempting to upgrade a gcm_sender_id-based push registration to VAPID - depen
127ding on the browser this may or may not result in the same gcm_sender_id-based subscription."),this.pu(n,s,c,e,u)):n.expirationTime&&new Date(n.expirationTime).valueOf()<=(new Date).valueOf()?(o.logger.info("Push subscription is expired, creating new subscription."),this.pu(n,s,c,e,u)):a&&(0,i.isArray)(a)?this.pu(n,s,c,e,u):null==l?(o.logger.info("No push subscription creation date found, creating new subscription."),this.pu(n,s,c,e,u)):l.valueOf()<=(new Date).valueOf()?(o.logger.info("Push subscription older than 6 months, creating new subscription."),this.pu(n,s,c,e,u)):(o.logger.info("Device already subscribed to push, sending existing subscription to backend."),this.yu(n,h,e))}else this.bu(s,c,e,u)}).catch(e=>{o.logger.error("Error checking current push subscriptions: "+e)})}).catch(e=>{o.logger.error("ServiceWorker registration failed: "+e)})};this.requestPermission(l,c,a)}else if(this.fu){if(null==this.nu||""===this.nu)return o.logger.error("You must supply the safariWebsitePushId initialization option in order to use registerPush on Safari"),void("function"==typeof u&&u(!0));const i=window.safari.pushNotification.permission(this.nu);this.Pu(this.nu,i,e,u)}}unsubscribe(e,i){if(!n.default.isPushSupported())return o.logger.info(a.Au),void("function"==typeof i&&i());this.hu?navigator.serviceWorker.getRegistration(this.su).then(t=>{t?t.pushManager.getSubscription().then(r=>{r?(this.vu(),r.unsubscribe().then(r=>{r?(o.logger.info("Device successfully unsubscribed from push."),"function"==typeof e&&e()):(o.logger.error("Failed to unsubscribe device from push."),"function"==typeof i&&i()),this.Su(t)}).catch(e=>{o.logger.error("Push unsubscription error: "+e),"function"==typeof i&&i()})):(o.logger.info("Device already unsubscribed from push."),"function"==typeof e&&e())}).catch(e=>{o.logger.error("Error unsubscribing from push: "+e),"function"==typeof i&&i()}):(o.logger.info("Device already unsubscribed from push."),"function"==typeof e&&e())}):this.fu&&(this.vu(),o.logger.info("Device unsubscribed from push."),"function"==typeof e&&e())}}a.Au="Push notifications are not supported in this browser."},4474,[4360,4472,4356,4359,4349,4385,4401]); 128__d(function(g,_r,_i,a,m,_e,d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return c}});var i=_r(d[0]),e=t(_r(d[1])),s=t(_r(d[2])),r=_r(d[3]),o=t(_r(d[4])),h=_r(d[5]),n=_r(d[6]),l=t(_r(d[7])),u=_r(d[8]),f=t(_r(d[9]));class c extends e.default{constructor(t,i,e,r){super(),this.h=t,this.B=i,this.j=e,this.C=r,this.Xr=[],this.Yr=0,this.h=t,this.B=i,this.j=e,this.C=r,this.Zr=null,this.ho=new o.default,this.D=10,this.N=null,this.F=null,s.default.S(this.ho)}q(t){var i;if((null===(i=this.h)||void 0===i?void 0:i.lo())&&null!=t&&t.feature_flags){this.Xr=[];for(const i of t.feature_flags){const t=(0,u.newFeatureFlagFromJson)(i);t&&this.Xr.push(t)}this.Yr=(new Date).getTime(),this.do(),this.ho.A(this.Xr)}}vo(){let t={};this.j&&(t=this.j.St(r.STORAGE_KEYS.It.Fo));const i={};for(const e in t){const s=(0,u.newFeatureFlagFromSerializedValue)(t[e]);s&&(i[s.id]=s)}return i}po(){var t;return(null===(t=this.j)||void 0===t?void 0:t.St(r.STORAGE_KEYS.It.jo))||{}}wo(t){this.j&&this.j.Pt(r.STORAGE_KEYS.It.jo,t)}Kt(t){return this.ho.Ut(t)}refreshFeatureFlags(t,i,e=!1,s=!0){const r=()=>{"function"==typeof i&&i(),this.ho.A(this.Xr)};if(!this.yo(e))return!this.Zr&&this.h&&(this.Zr=this.h.bo(()=>{this.refreshFeatureFlags(t,i)})),void r();const o=this.B;if(!o)return void r();s&&this.Y();const u=o.Z({},!0),c=o.tt(u,f.default.it.Co);let v=!1;o.et(u,(s=-1)=>{const o=this.B;if(!o)return void r();const F=(new Date).valueOf();f.default.nt(this.j,f.default.it.Co,F),-1!==s&&c.push(["X-Braze-Req-Tokens-Remaining",s.toString()]),l.default.ot({url:`${o.ht()}/feature_flags/sync`,headers:c,data:u,lt:i=>{if(!o.ut(u,i,c))return v=!0,void r();o.ct(),this.q(i),v=!1,"function"==typeof t&&t()},error:t=>{o.dt(t,"retrieving feature flags"),v=!0,r()},ft:(s,r)=>{var l,u,c;let F;if(v){const t=(null===(l=this.h)||void 0===l?void 0:l.vt())||n.REQUEST_BACKOFF_MIN_SLEEP_MS_DEFAULT,i=(null===(u=this.h)||void 0===u?void 0:u.gt())||n.REQUEST_BACKOFF_SCALE_FACTOR_DEFAULT,e=(null===(c=this.h)||void 0===c?void 0:c.bt())||n.REQUEST_BACKOFF_MAX_SLEEP_MS_DEFAULT;let s=this.N;(null==s||s<t)&&(s=t),F=Math.min(e,(0,h.randomInclusive)(t,s*i))}o.yt(r,()=>{this.refreshFeatureFlags(t,i,e,!0)},f.default.it.Co,t=>this.Bt(t),()=>this.Y(),F)}})},f.default.it.Co,i)}Y(){null!=this.F&&(clearTimeout(this.F),this.F=null)}Bt(t){this.Y(),this.F=t}yo(t){if(!this.h)return!1;if(!t){const t=this.h.Ro();if(null==t)return!1;let e=!1;if(!isNaN(t)){if(-1===t)return i.logger.info("Feature flag refreshes not allowed"),!1;e=(new Date).getTime()>=(this.Yr||0)+1e3*t}if(!e)return i.logger.info(`Feature flag refreshes were rate limited to ${t} seconds`),!1}return this.h.lo()}To(){var t;return(null===(t=this.j)||void 0===t?void 0:t.St(r.STORAGE_KEYS.It.Do))||null}Io(){var t,i;null===(t=this.j)||void 0===t||t.Pt(r.STORAGE_KEYS.It.Do,null===(i=this.C)||void 0===i?void 0:i.$t())}So(){var t;const i=null===(t=this.C)||void 0===t?void 0:t.$t(),e=this.To();return null==e||i===e}do(){if(!this.j)return;const t={};for(const i of this.Xr){const e=i.qt();t[i.id]=e}this.j.Pt(r.STORAGE_KEYS.It.Fo,t),this.j.Pt(r.STORAGE_KEYS.It.qo,this.Yr),this.Io()}changeUser(){this.Y()}clearData(){this.Y()}}},4475,[4356,4362,4355,4359,4353,4365,4352,4361,4476,4364]); 129__d(function(g,r,i,a,m,_e,d){"use strict";
129Object.defineProperty(_e,'__esModule',{value:!0}),_e.newFeatureFlagFromJson=function(e){if(e[f.default.ei.qs]&&"boolean"==typeof e[f.default.ei.Nr])return new f.default(e[f.default.ei.qs],e[f.default.ei.Nr],e[f.default.ei.Or],e[f.default.ei.Qr]);l.logger.info(`Unable to create feature flag from ${JSON.stringify(e,null,2)}`)},_e.newFeatureFlagFromSerializedValue=function(e){if(e[f.default.bs.qs]&&"boolean"==typeof e[f.default.bs.Nr])return new f.default(e[f.default.bs.qs],e[f.default.bs.Nr],e[f.default.bs.Or],e[f.default.bs.Qr]);l.logger.info(`Unable to deserialize feature flag from ${JSON.stringify(e,null,2)}`)};var e,l=r(d[0]),t=r(d[1]),f=(e=t)&&e.__esModule?e:{default:e}},4476,[4356,4386]); 130//# sourceMappingURL=/_expo/static/js/web/__common-c14e4c970bf819e2897b23607eb56d21.js.map 131//# debugId=06348a16-7a93-4608-8002-a5d09281700c
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.