@mparticle/web-braze-kit 3.0.3 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,294 +1,451 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
 
3
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
4
-
5
- function createCommonjsModule(fn, module) {
6
- return module = { exports: {} }, fn(module, module.exports), module.exports;
3
+ function getAugmentedNamespace(n) {
4
+ var f = n.default;
5
+ if (typeof f == "function") {
6
+ var a = function () {
7
+ return f.apply(this, arguments);
8
+ };
9
+ a.prototype = f.prototype;
10
+ } else a = {};
11
+ Object.defineProperty(a, '__esModule', {value: true});
12
+ Object.keys(n).forEach(function (k) {
13
+ var d = Object.getOwnPropertyDescriptor(n, k);
14
+ Object.defineProperty(a, k, d.get ? d : {
15
+ enumerable: true,
16
+ get: function () {
17
+ return n[k];
18
+ }
19
+ });
20
+ });
21
+ return a;
7
22
  }
8
23
 
9
- var appboy_min = createCommonjsModule(function (module) {
10
- /*
11
- * Braze Web SDK v3.5.0
12
- * (c) Braze, Inc. 2022 - http://braze.com
13
- * License available at https://github.com/Appboy/appboy-web-sdk/blob/master/LICENSE
14
- * Compiled on 2022-02-02
15
- */
16
- (function(){(function(b,a){if(module.exports){var e = a();module.exports=e;module.exports.default=e;}else if(b.appboy){var d=a(),c;for(c in d)b.appboy[c]=d[c];}else b.appboy=a();})("undefined"!==typeof self?self:this,function(){var appboyInterface={};var p;function aa(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}function ba(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:aa(a)}}var ca="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},da="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};
17
- function ea(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof commonjsGlobal&&commonjsGlobal];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");}var fa=ea(this);function ha(a,b){if(b)a:{var c=fa;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e];}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&da(c,a,{configurable:!0,writable:!0,value:b});}}var ia;
18
- if("function"==typeof Object.setPrototypeOf)ia=Object.setPrototypeOf;else{var ja;a:{var ka={Og:!0},la={};try{la.__proto__=ka;ja=la.Og;break a}catch(a){}ja=!1;}ia=ja?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null;}var ma=ia;
19
- function na(a,b){a.prototype=ca(b.prototype);a.prototype.constructor=a;if(ma)ma(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d);}else a[c]=b[c];a.gi=b.prototype;}
20
- ha("String.prototype.repeat",function(a){return a?a:function(b){if(null==this)throw new TypeError("The 'this' value for String.prototype.repeat must not be null or undefined");var c=this+"";if(0>b||1342177279<b)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});
21
- ha("Promise",function(a){function b(g){this.Ub=0;this.Rd=void 0;this.sb=[];var h=this.Ad();try{g(h.resolve,h.reject);}catch(l){h.reject(l);}}function c(){this.Ha=null;}function d(g){return g instanceof b?g:new b(function(h){h(g);})}if(a)return a;c.prototype.Te=function(g){if(null==this.Ha){this.Ha=[];var h=this;this.Ue(function(){h.eh();});}this.Ha.push(g);};var e=fa.setTimeout;c.prototype.Ue=function(g){e(g,0);};c.prototype.eh=function(){for(;this.Ha&&this.Ha.length;){var g=this.Ha;this.Ha=[];for(var h=
22
- 0;h<g.length;++h){var l=g[h];g[h]=null;try{l();}catch(k){this.Sg(k);}}}this.Ha=null;};c.prototype.Sg=function(g){this.Ue(function(){throw g;});};b.prototype.Ad=function(){function g(k){return function(m){l||(l=!0,k.call(h,m));}}var h=this,l=!1;return {resolve:g(this.uh),reject:g(this.Qd)}};b.prototype.uh=function(g){if(g===this)this.Qd(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof b)this.Kh(g);else{a:switch(typeof g){case "object":var h=null!=g;break a;case "function":h=!0;break a;
23
- default:h=!1;}h?this.sh(g):this.ef(g);}};b.prototype.sh=function(g){var h=void 0;try{h=g.then;}catch(l){this.Qd(l);return}"function"==typeof h?this.Lh(h,g):this.ef(g);};b.prototype.Qd=function(g){this.qf(2,g);};b.prototype.ef=function(g){this.qf(1,g);};b.prototype.qf=function(g,h){if(0!=this.Ub)throw Error("Cannot settle("+g+", "+h+"): Promise already settled in state"+this.Ub);this.Ub=g;this.Rd=h;this.fh();};b.prototype.fh=function(){if(null!=this.sb){for(var g=0;g<this.sb.length;++g)f.Te(this.sb[g]);this.sb=
24
- null;}};var f=new c;b.prototype.Kh=function(g){var h=this.Ad();g.Cc(h.resolve,h.reject);};b.prototype.Lh=function(g,h){var l=this.Ad();try{g.call(h,l.resolve,l.reject);}catch(k){l.reject(k);}};b.prototype.then=function(g,h){function l(v,t){return "function"==typeof v?function(w){try{k(v(w));}catch(r){m(r);}}:t}var k,m,q=new b(function(v,t){k=v;m=t;});this.Cc(l(g,k),l(h,m));return q};b.prototype.catch=function(g){return this.then(void 0,g)};b.prototype.Cc=function(g,h){function l(){switch(k.Ub){case 1:g(k.Rd);
25
- break;case 2:h(k.Rd);break;default:throw Error("Unexpected state: "+k.Ub);}}var k=this;null==this.sb?f.Te(l):this.sb.push(l);};b.resolve=d;b.reject=function(g){return new b(function(h,l){l(g);})};b.race=function(g){return new b(function(h,l){for(var k=ba(g),m=k.next();!m.done;m=k.next())d(m.value).Cc(h,l);})};b.all=function(g){var h=ba(g),l=h.next();return l.done?d([]):new b(function(k,m){function q(w){return function(r){v[w]=r;t--;0==t&&k(v);}}var v=[],t=0;do v.push(void 0),t++,d(l.value).Cc(q(v.length-
26
- 1),m),l=h.next();while(!l.done)})};return b});var oa={Vh:function(a){var b="=".repeat((4-a.length%4)%4);a=(a+b).replace(/\-/g,"+").replace(/_/g,"/");a=atob(a);b=new Uint8Array(a.length);for(var c=0;c<a.length;++c)b[c]=a.charCodeAt(c);return b}};var pa={Ia:function(){function a(b){var c=(Math.random().toString(16)+"000000000").substr(2,8);return b?"-"+c.substr(0,4)+"-"+c.substr(4,4):c}return a()+a(!0)+a(!0)+a()}};function qa(a){var b=x;this.Le="undefined"===typeof window?self:window;this.C=a;this.F=b;}function ra(a){if("indexedDB"in a.Le)return a.Le.indexedDB}
27
- function sa(a){try{if(null==ra(a))return !1;ra(a).open("Braze IndexedDB Support Test");if("undefined"!==typeof window){var b=window.bi||window.Ya||window.di;if(b&&b.wh&&b.wh.id)return a.F.info("Not using IndexedDB for storage because we are running inside an extension"),!1}return !0}catch(c){return a.F.info("Not using IndexedDB for storage due to following error: "+c),!1}}
28
- function ta(a,b,c){var d=ra(a).open(a.C.P,a.C.VERSION);if(null==d)return "function"===typeof c&&c(),!1;d.onupgradeneeded=function(e){a.F.info("Upgrading indexedDB "+a.C.P+" to v"+a.C.VERSION+"...");e=e.target.result;for(var f in a.C.G)a.C.G.hasOwnProperty(f)&&!e.objectStoreNames.contains(a.C.G[f])&&e.createObjectStore(a.C.G[f]);};d.onsuccess=function(e){var f=e.target.result;f.onversionchange=function(){f.close();"function"===typeof c&&c();a.F.error("Needed to close the database unexpectedly because of an upgrade in another tab");};
29
- b(f);};d.onerror=function(e){a.F.info("Could not open indexedDB "+a.C.P+" v"+a.C.VERSION+": "+e.target.errorCode);"function"===typeof c&&c();return !0};return !0}
30
- qa.prototype.setItem=function(a,b,c,d,e){if(!sa(this))return "function"===typeof e&&e(),!1;var f=this;return ta(this,function(g){g.objectStoreNames.contains(a)?(g=g.transaction([a],"readwrite").objectStore(a).put(c,b),g.onerror=function(){f.F.error("Could not store object "+b+" in "+a+" on indexedDB "+f.C.P);"function"===typeof e&&e();},g.onsuccess=function(){"function"===typeof d&&d();}):(f.F.error("Could not store object "+b+" in "+a+" on indexedDB "+f.C.P+" - "+a+" is not a valid objectStore"),"function"===
31
- typeof e&&e());},e)};qa.prototype.getItem=function(a,b,c){if(!sa(this))return !1;var d=this;return ta(this,function(e){e.objectStoreNames.contains(a)?(e=e.transaction([a],"readonly").objectStore(a).get(b),e.onerror=function(){d.F.error("Could not retrieve object "+b+" in "+a+" on indexedDB "+d.C.P);},e.onsuccess=function(f){f=f.target.result;null!=f&&c(f);}):d.F.error("Could not retrieve object "+b+" in "+a+" on indexedDB "+d.C.P+" - "+a+" is not a valid objectStore");})};
32
- function ua(a,b,c,d){sa(a)?ta(a,function(e){e.objectStoreNames.contains(b)?(e=e.transaction([b],"readonly").objectStore(b).openCursor(null,"prev"),e.onerror=function(){a.F.error("Could not open cursor for "+b+" on indexedDB "+a.C.P);"function"===typeof d&&d();},e.onsuccess=function(f){f=f.target.result;null!=f&&null!=f.value&&null!=f.key?c(f.key,f.value):"function"===typeof d&&d();}):(a.F.error("Could not retrieve last record from "+b+" on indexedDB "+a.C.P+" - "+b+" is not a valid objectStore"),"function"===
33
- typeof d&&d());},d):"function"===typeof d&&d();}function va(a,b,c){sa(a)&&ta(a,function(d){d.objectStoreNames.contains(b)?d.transaction([b],"readwrite").objectStore(b)["delete"](c).onerror=function(){a.F.error("Could not delete record "+c+" from "+b+" on indexedDB "+a.C.P);}:a.F.error("Could not delete record "+c+" from "+b+" on indexedDB "+a.C.P+" - "+b+" is not a valid objectStore");});}
34
- function wa(a,b,c){sa(a)&&ta(a,function(d){if(d.objectStoreNames.contains(b)){var e=d.transaction([b],"readwrite").objectStore(b);d=e.openCursor();var f=[];d.onerror=function(){0<f.length?(a.F.info("Cursor closed midway through for "+b+" on indexedDB "+a.C.P),c(f)):a.F.error("Could not open cursor for "+b+" on indexedDB "+a.C.P);};d.onsuccess=function(g){var h=g.target.result;null!=h?(null!=h.value&&null!=h.key&&(e["delete"](h.key).onsuccess=function(){f.push(h.value);}),h.continue()):0<f.length&&c(f);};}else a.F.error("Could not retrieve objects from "+
35
- b+" on indexedDB "+a.C.P+" - "+b+" is not a valid objectStore");});}
36
- qa.prototype.clearData=function(){if(!sa(this))return !1;var a=[],b;for(b in this.C.G)this.C.G.hasOwnProperty(b)&&this.C.G[b]!==this.C.G.xb&&a.push(this.C.G[b]);var c=this;return ta(this,function(d){d=d.transaction(a,"readwrite");for(var e=0;e<a.length;e++)d.objectStore(a[e]).clear().onerror=function(){c.F.error("Could not clear "+this.source.name+" on indexedDB "+c.C.P);};d.onerror=function(){c.F.error("Could not clear object stores on indexedDB "+c.C.P);};})};var xa={Gd:function(a){if(void 0!==a||void 0===xa.Ea)xa.Ea=!!a;xa.He||(xa.He=!0);},Jb:function(){xa.He=!1;xa.Ea=void 0;xa.F=void 0;},Td:function(a){"function"!==typeof a?xa.info("Ignoring setLogger call since logger is not a function"):(xa.Gd(),xa.F=a);},Yd:function(){xa.Gd();xa.Ea?(console.log("Disabling Appboy logging"),xa.Ea=!1):(console.log("Enabled Appboy logging"),xa.Ea=!0);},info:function(a){xa.Ea&&(a="Appboy: "+a,null!=xa.F?xa.F(a):console.log(a));},warn:function(a){xa.Ea&&(a="Appboy SDK Warning: "+
37
- a+" (v3.5.0)",null!=xa.F?xa.F(a):console.warn(a));},error:function(a){xa.Ea&&(a="Appboy SDK Error: "+a+" (v3.5.0)",null!=xa.F?xa.F(a):console.error(a));}};var z={CustomEvent:"ce",eg:"p",sg:"pc",$h:"ca",fg:"i",Yc:"ie",Jf:"cci",Lf:"ccic",Hf:"ccc",If:"ccd",ve:"ss",yg:"se",dg:"si",ke:"sc",je:"sbc",cg:"sfe",Mf:"iec",lg:"lr",Df:"uae",Gf:"ci",Ff:"cc",jg:"lcaa",kg:"lcar",Of:"inc",Nf:"add",Pf:"rem",Qf:"set",zg:"sgu"},ya={$f:"feed_displayed",Kf:"content_cards_displayed"},za={ba:{P:"AppboyServiceWorkerAsyncStorage",VERSION:6,G:{Rf:"data",oe:"pushClicks",gd:"pushSubscribed",Yh:"fallbackDevice",Ef:"cardUpdates",xb:"optOut",me:"pendingData",qe:"sdkAuthenticationSignature"},
38
- kb:1}},x=xa,C={Af:"allowCrawlerActivity",Rc:"baseUrl",ng:"noCookies",ee:"devicePropertyAllowlist",Vc:"devicePropertyWhitelist",Wf:"disablePushTokenMaintenance",Yf:"enableLogging",Zf:"enableSdkAuthentication",mg:"manageServiceWorkerExternally",ag:"minimumIntervalBetweenTriggerActionsInSeconds",xg:"sessionTimeoutInSeconds",Cf:"appVersion",wg:"serviceWorkerLocation",ug:"safariWebsitePushId",cd:"localization",be:"contentSecurityNonce",fe:"enableHtmlInAppMessages",Zd:"allowUserSuppliedJavascript",bg:"inAppMessageZIndex",
39
- pg:"openInAppMessagesInNewTab",qg:"openNewsFeedCardsInNewTab",tg:"requireExplicitInAppMessageDismissal",Xf:"doNotLoadFontAwesome",re:"sdkFlavor",$c:"language",og:"openCardsInNewTab"};function Aa(a,b,c,d){a=Ba(a);return -1===a.indexOf(b)?(x.error(c+" Valid values from "+d+' are "'+a.join('"/"')+'".'),!1):!0}function Ca(a){return Array.isArray?Array.isArray(a):"[object Array]"===Object.prototype.toString.call(a)}function Da(a){return "[object Date]"===Object.prototype.toString.call(a)}function Ea(a){return "[object Object]"===Object.prototype.toString.call(a)}
40
- function Fa(a){null==a&&(a=[]);for(var b=[],c=arguments.length,d=0,e=a.length;d<e;d++){var f=a[d];if(-1===b.indexOf(f)){var g;for(g=1;g<c&&-1!==arguments[g].indexOf(f);g++);g===c&&b.push(f);}}return b}function Ga(a){var b=[],c;for(c in a)a.hasOwnProperty(c)&&b.push(c);return b}function Ba(a){var b=[],c;for(c in a)a.hasOwnProperty(c)&&void 0!==a[c]&&b.push(a[c]);return b}
41
- function Ha(a,b){if(a===b)return 0!==a||1/a===1/b;if(null==a||null==b)return a===b;var c=a.toString();if(c!==b.toString())return !1;switch(c){case "[object RegExp]":case "[object String]":return ""+a===""+b;case "[object Number]":return +a!==+a?+b!==+b:0===+a?1/+a===1/b:+a===+b;case "[object Date]":case "[object Boolean]":return +a===+b}c="[object Array]"===c;if(!c){if("object"!==typeof a||"object"!==typeof b)return !1;var d=a.constructor,e=b.constructor;if(d!==e&&!("function"===typeof d&&d instanceof
42
- d&&"function"===typeof e&&e instanceof e)&&"constructor"in a&&"constructor"in b)return !1}d=[];e=[];for(var f=d.length;f--;)if(d[f]===a)return e[f]===b;d.push(a);e.push(b);if(c){f=a.length;if(f!==b.length)return !1;for(;f--;)if(!Ha(a[f],b[f]))return !1}else{c=Ga(a);f=c.length;if(Ga(b).length!==f)return !1;for(;f--;){var g=c[f];if(!b.hasOwnProperty(g)||!Ha(a[g],b[g]))return !1}}d.pop();e.pop();return !0}function Ia(a,b){a/=1E3;b&&(a=Math.floor(a));return a}function Ja(a){var b=parseInt(a);return null==a||isNaN(b)?null:new Date(1E3*b)}function Ka(a){return null!=a&&Da(a)?a.toISOString().replace(/\.[0-9]{3}Z$/,""):a}function La(a){return null==a||""===a?null:new Date(a)}function E(a,b,c,d,e){this.gb=a;this.type=b;this.time=null==c||""===c?(new Date).valueOf():c;this.sessionId=d;this.data=e;}E.prototype.Ac=function(){var a={name:this.type,time:Ia(this.time),data:this.data||{},session_id:this.sessionId};null!=this.gb&&(a.user_id=this.gb);return a};E.prototype.A=function(){return {u:this.gb,t:this.type,ts:this.time,s:this.sessionId,d:this.data}};function Ma(a){return null!=a&&Ea(a)&&null!=a.t&&""!==a.t}function Na(a){return new E(a.u,a.t,a.ts,a.s,a.d)}function Oa(a,b,c){null==a&&(a=pa.Ia());c=parseInt(c);if(isNaN(c)||0===c)c=(new Date).valueOf();this.ia=a;this.Ib=c;this.Ob=(new Date).valueOf();this.Cd=b;}Oa.prototype.A=function(){return {g:this.ia,e:this.Cd,c:this.Ib,l:this.Ob}};function Pa(a){for(var b=a.length,c=a.length-1;0<=c;c--){var d=a.charCodeAt(c);127<d&&2047>=d?b++:2047<d&&65535>=d&&(b+=2);56320<=d&&57343>=d&&c--;}return b}function Qa(a,b,c,d){(d="string"===typeof a||null===a&&d)||x.error("Cannot "+b+" because "+c+' "'+a+'" is invalid.');return d}function Ra(a,b,c){var d=null!=a&&"string"===typeof a&&(""===a||a.match(Sa));d||x.error("Cannot "+b+" because "+c+' "'+a+'" is invalid.');return d}
43
- function Ta(a,b,c,d,e){null==a&&(a={});if("object"!==typeof a||Ca(a))return x.error(b+" requires that "+c+" be an object. Ignoring "+e+"."),[!1,null];b=JSON.stringify(a);if(Pa(b)>Ua)return x.error("Could not "+d+" because "+c+" was greater than the max size of "+Va+"."),[!1,null];try{var f=JSON.parse(b);}catch(k){return x.error("Could not "+d+" because "+c+" did not contain valid JSON."),[!1,null]}for(var g in a){if(!Ra(g,d,"the "+e+" property name"))return [!1,null];c=a[g];if(null==c)delete a[g],delete f[g];
44
- else{Da(c)&&(f[g]=Ka(c));var h=d,l="the "+e+' property "'+g+'"';(b=Ea(c)||Ca(c)?Wa(c,f[g]):Ya(c))||x.error("Cannot "+h+" because "+l+' "'+c+'" is invalid.');if(!b)return [!1,null]}}return [!0,f]}function Wa(a,b){if(Ca(a)&&Ca(b))for(var c=0;c<a.length&&c<b.length;c++){if(Da(a[c])&&(b[c]=Ka(a[c])),!Wa(a[c],b[c]))return !1}else if(Ea(a)){c=ba(Ga(a));for(var d=c.next();!d.done;d=c.next())if(d=d.value,Da(a[d])&&(b[d]=Ka(a[d])),!Wa(a[d],b[d]))return !1}else return Ya(a);return !0}
45
- function Ya(a){var b=typeof a;return null==a||"number"===b||"boolean"===b||Da(a)||"string"===b}var Sa=/^[^\x00-\x1F\x22]+$/,Za=new RegExp(/^.+@.+\..+$/),Ua=51200,Va="50KB";var J={};function K(a,b){this.f=a;this.H=b;}p=K.prototype;p.o=function(a){null==a&&x.error("getUserId must be supplied with a callback. e.g., appboy.getUser().getUserId(function(userId) {console.log('the user id is ' + userId)})");"function"===typeof a&&a(this.f.o());};
46
- p.Pg=function(a,b){if(!Qa(a,"add alias","the alias",!1)||0>=a.length)return x.error("addAlias requires a non-empty alias"),!1;if(!Qa(b,"add alias","the label",!1)||0>=b.length)return x.error("addAlias requires a non-empty label"),!1;var c=this.H,d=new $a,e=ab(c.D),f=z.Df;d.j.push(new E(c.f.o(),f,(new Date).valueOf(),e,{a:a,l:b}));d.h=bb(c.b,d.j);return d.h};p.Eh=function(a){return Qa(a,"set first name","the firstName",!0)?cb(this.f,"first_name",a):!1};
47
- p.Ih=function(a){return Qa(a,"set last name","the lastName",!0)?cb(this.f,"last_name",a):!1};p.Ch=function(a){return null===a||"string"===typeof a&&null!=a.toLowerCase().match(Za)?cb(this.f,"email",a):(x.error('Cannot set email address - "'+a+'" did not pass RFC-5322 validation.'),!1)};p.Fh=function(a){"string"===typeof a&&(a=a.toLowerCase());return null===a||Aa(db,a,'Gender "'+a+'" is not a valid gender.',"User.Genders")?cb(this.f,"gender",a):!1};
48
- p.Bh=function(a,b,c){if(null===a&&null===b&&null===c)return cb(this.f,"dob",null);a=parseInt(a);b=parseInt(b);c=parseInt(c);return isNaN(a)||isNaN(b)||isNaN(c)||12<b||1>b||31<c||1>c?(x.error("Cannot set date of birth - parameters should comprise a valid date e.g. setDateOfBirth(1776, 7, 4);"),!1):cb(this.f,"dob",""+a+"-"+b+"-"+c)};p.yh=function(a){return Qa(a,"set country","the country",!0)?cb(this.f,"country",a):!1};
49
- p.Gh=function(a){return Qa(a,"set home city","the homeCity",!0)?cb(this.f,"home_city",a):!1};p.Hh=function(a){return Qa(a,"set language","the language",!0)?cb(this.f,"language",a):!1};p.Dh=function(a){return Aa(eb,a,'Email notification setting "'+a+'" is not a valid subscription type.',"User.NotificationSubscriptionTypes")?cb(this.f,"email_subscribe",a):!1};
50
- p.Ud=function(a){return Aa(eb,a,'Push notification setting "'+a+'" is not a valid subscription type.',"User.NotificationSubscriptionTypes")?cb(this.f,"push_subscribe",a):!1};p.Jh=function(a){return Qa(a,"set phone number","the phoneNumber",!0)?null===a||a.match(fb)?cb(this.f,"phone",a):(x.error('Cannot set phone number - "'+a+'" did not pass validation.'),!1):!1};p.xh=function(a){return cb(this.f,"image_url",a)};
51
- p.Oc=function(a,b,c,d,e){if(null==a||null==b)return x.error("Cannot set last-known location - latitude and longitude are required."),!1;a=parseFloat(a);b=parseFloat(b);null!=c&&(c=parseFloat(c));null!=d&&(d=parseFloat(d));null!=e&&(e=parseFloat(e));return isNaN(a)||isNaN(b)||null!=c&&isNaN(c)||null!=d&&isNaN(d)||null!=e&&isNaN(e)?(x.error("Cannot set last-known location - all supplied parameters must be numeric."),!1):90<a||-90>a||180<b||-180>b?(x.error("Cannot set last-known location - latitude and longitude are bounded by \u00b190 and \u00b1180 respectively."),
52
- !1):null!=c&&0>c||null!=e&&0>e?(x.error("Cannot set last-known location - accuracy and altitudeAccuracy may not be negative."),!1):this.H.Oc(this.f.o(),a,b,d,c,e).h};
53
- p.Sd=function(a,b){if(!Ra(a,"set custom user attribute","the given key"))return !1;var c=typeof b,d=Da(b),e=Ca(b);if("number"!==c&&"boolean"!==c&&!d&&!e&&null!==b&&!Ra(b,'set custom user attribute "'+a+'"',"the given value"))return !1;d&&(b=Ka(b));if(e){for(c=0;c<b.length;c++)if(!Ra(b[c],'set custom user attribute "'+a+'"',"the element in the given array"))return !1;return gb(this.H,z.Qf,a,b).h}return this.f.Sd(a,b)};
54
- p.Qg=function(a,b){return !Ra(a,"add to custom user attribute array","the given key")||null!=b&&!Ra(b,"add to custom user attribute array","the given value")?!1:gb(this.H,z.Nf,a,b).h};p.qh=function(a,b){return !Ra(a,"remove from custom user attribute array","the given key")||null!=b&&!Ra(b,"remove from custom user attribute array","the given value")?!1:gb(this.H,z.Pf,a,b).h};
55
- p.kh=function(a,b){if(!Ra(a,"increment custom user attribute","the given key"))return !1;null==b&&(b=1);var c=parseInt(b);return isNaN(c)||c!==parseFloat(b)?(x.error('Cannot increment custom user attribute because the given incrementValue "'+b+'" is not an integer.'),!1):gb(this.H,z.Of,a,c).h};p.Pd=function(a,b,c,d,e){this.f.Pd(a,b,c,d,e);hb(this.H);};p.Sb=function(a){this.f.Sb(a);};
56
- p.Ah=function(a,b,c){if(!Ra(a,"set custom location attribute","the given key"))return !1;if(null!==b||null!==c)if(b=parseFloat(b),c=parseFloat(c),isNaN(b)||90<b||-90>b||isNaN(c)||180<c||-180>c)return x.error("Received invalid values for latitude and/or longitude. Latitude and longitude are bounded by \u00b190 and \u00b1180 respectively, or must both be null for removal."),!1;var d=this.H,e=c;c=new $a;if(ib(d.J,a))x.info('Custom Attribute "'+a+'" is blocklisted, ignoring.'),c.h=!1;else{var f=ab(d.D);
57
- if(null===b&&null===e){var g=z.kg;a={key:a};}else g=z.jg,a={key:a,latitude:b,longitude:e};c.j.push(new E(d.f.o(),g,(new Date).valueOf(),f,a));c.h=bb(d.b,c.j);}return c.h};p.Rg=function(a){return !Qa(a,"add user to subscription group","subscription group ID",!1)||0>=a.length?(x.error("addToSubscriptionGroup requires a non-empty subscription group ID"),!1):jb(this.H,a,kb).h};
58
- p.rh=function(a){return !Qa(a,"remove user from subscription group","subscription group ID",!1)||0>=a.length?(x.error("removeFromSubscriptionGroup requires a non-empty subscription group ID"),!1):jb(this.H,a,lb).h};var fb=/^[0-9 .\\(\\)\\+\\-]+$/,db={MALE:"m",FEMALE:"f",OTHER:"o",UNKNOWN:"u",NOT_APPLICABLE:"n",PREFER_NOT_TO_SAY:"p"},eb={OPTED_IN:"opted_in",SUBSCRIBED:"subscribed",UNSUBSCRIBED:"unsubscribed"},kb="subscribed",lb="unsubscribed";J.User=K;J.User.Genders=db;
59
- J.User.NotificationSubscriptionTypes=eb;J.User.prototype.getUserId=K.prototype.o;J.User.prototype.setFirstName=K.prototype.Eh;J.User.prototype.setLastName=K.prototype.Ih;J.User.prototype.setEmail=K.prototype.Ch;J.User.prototype.setGender=K.prototype.Fh;J.User.prototype.setDateOfBirth=K.prototype.Bh;J.User.prototype.setCountry=K.prototype.yh;J.User.prototype.setHomeCity=K.prototype.Gh;J.User.prototype.setLanguage=K.prototype.Hh;J.User.prototype.setEmailNotificationSubscriptionType=K.prototype.Dh;
60
- J.User.prototype.setPushNotificationSubscriptionType=K.prototype.Ud;J.User.prototype.setPhoneNumber=K.prototype.Jh;J.User.prototype.setAvatarImageUrl=K.prototype.xh;J.User.prototype.setLastKnownLocation=K.prototype.Oc;J.User.prototype.setCustomUserAttribute=K.prototype.Sd;J.User.prototype.addToCustomAttributeArray=K.prototype.Qg;J.User.prototype.removeFromCustomAttributeArray=K.prototype.qh;J.User.prototype.incrementCustomUserAttribute=K.prototype.kh;J.User.prototype.addAlias=K.prototype.Pg;
61
- J.User.prototype.setCustomLocationAttribute=K.prototype.Ah;J.User.prototype.addToSubscriptionGroup=K.prototype.Rg;J.User.prototype.removeFromSubscriptionGroup=K.prototype.rh;function mb(){}mb.prototype.Ed=function(){};mb.prototype.Fd=function(){};mb.prototype.qb=function(){};function nb(a,b){if(a&&b)if(a=a.toLowerCase(),Ca(b.O))for(var c=0;c<b.O.length;c++){if(-1!==a.indexOf(b.O[c].toLowerCase()))return b.S}else if(-1!==a.indexOf(b.O.toLowerCase()))return b.S}var ob={ae:"Chrome",Wc:"Edge",dc:"Internet Explorer",le:"Opera",hd:"Safari",Zh:"Firefox"};function pb(){if(this.userAgentData=navigator.userAgentData){var a=this.userAgentData.brands;if(a&&a.length){a=ba(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=void 0,d=[];for(c in ob)ob[c]!==ob.dc&&d.push(ob[c]);if((c=b.brand.match(new RegExp("("+d.join("|")+")","i")))&&0<c.length){var e=c[0];var f=b.version;break}}}this.Ya=e||"Unknown Browser";this.version=f||"Unknown Version";}}na(pb,mb);pb.prototype.Ed=function(){return this.Ya};pb.prototype.Fd=function(){return this.version};
62
- pb.prototype.qb=function(a){var b=this;return this.ga?Promise.resolve(this.ga):(this.userAgentData.getHighEntropyValues?this.userAgentData.getHighEntropyValues(["platform"]):Promise.reject()).then(function(c){c=c.platform;for(var d=0;d<a.length;d++){var e=nb(c,a[d]);if(e)return b.ga=e,b.ga}return c}).catch(function(){return navigator.platform})};function qb(){this.We=rb();}na(qb,mb);qb.prototype.Ed=function(){return this.We[0]||"Unknown Browser"};qb.prototype.Fd=function(){return this.We[1]||"Unknown Version"};qb.prototype.qb=function(a){for(var b=0;b<a.length;b++){var c=nb(a[b].U,a[b]);if(c)return "Mac"===c&&1<navigator.maxTouchPoints&&(c="iOS"),Promise.resolve(c)}return Promise.resolve(navigator.platform)};
63
- function rb(){var a=navigator.userAgent||"",b=a.match(/(samsungbrowser|tizen|roku|konqueror|icab|crios|opera|ucbrowser|chrome|safari|firefox|camino|msie|trident(?=\/))\/?\s*(\.?\d+(\.\d+)*)/i)||[];if(/trident/i.test(b[1])){var c=/\brv[ :]+(\.?\d+(\.\d+)*)/g.exec(a)||[];return [ob.dc,c[1]||""]}if(-1!==a.indexOf("(Web0S; Linux/SmartTV)"))return ["LG Smart TV",null];if(-1!==a.indexOf("CrKey"))return ["Chromecast",null];if(-1!==a.indexOf("BRAVIA")||-1!==a.indexOf("SonyCEBrowser")||-1!==a.indexOf("SonyDTV"))return ["Sony Smart TV",
64
- null];if(-1!==a.indexOf("PhilipsTV"))return ["Philips Smart TV",null];if(a.match(/\b(Roku)\b/))return ["Roku",null];if(a.match(/\bAFTM\b/))return ["Amazon Fire Stick",null];if(b[1]===ob.ae&&(c=a.match(/\b(OPR|Edge|EdgA|Edg|UCBrowser)\/(\.?\d+(\.\d+)*)/),null!=c))return c=c.slice(1),c[0]=c[0].replace("OPR",ob.le),c[0]=c[0].replace("EdgA",ob.Wc),"Edg"===c[0]&&(c[0]=ob.Wc),[c[0],c[1]];if(b[1]===ob.hd&&(c=a.match(/\b(EdgiOS)\/(\.?\d+(\.\d+)*)/),null!=c))return c=c.slice(1),c[0]=c[0].replace("EdgiOS",ob.Wc),
65
- [c[0],c[1]];b=b[2]?[b[1],b[2]]:[null,null];b[0]===ob.hd&&null!=(c=a.match(/version\/(\.?\d+(\.\d+)*)/i))&&b.splice(1,1,c[1]);null!=(c=a.match(/\b(UCBrowser)\/(\.?\d+(\.\d+)*)/))&&b.splice(1,1,c[2]);if(b[0]===ob.le&&null!=(c=a.match(/mini\/(\.?\d+(\.\d+)*)/i)))return ["Opera Mini",c[1]||""];b[0]&&(a=b[0].toLowerCase(),"msie"===a&&(b[0]=ob.dc),"crios"===a&&(b[0]=ob.ae),"tizen"===a&&(b[0]="Samsung Smart TV",b[1]=null),"samsungbrowser"===a&&(b[0]="Samsung Browser"));return b}function sb(){var a=this;this.Md=new (navigator.userAgentData?pb:qb);this.userAgent=navigator.userAgent;this.Ya=this.Md.Ed();this.version=this.Md.Fd();this.qb().then(function(b){return a.ga=b});this.language=(navigator.ji||navigator.language||navigator.browserLanguage||navigator.ii||"").toLowerCase();this.lh=tb(this.userAgent);}sb.prototype.qb=function(){var a=this;return this.ga?Promise.resolve(this.ga):this.Md.qb(ub).then(function(b){return a.ga=b})};
66
- function tb(a){a=a.toLowerCase();for(var b="googlebot bingbot slurp duckduckbot baiduspider yandex facebookexternalhit sogou ia_archiver https://github.com/prerender/prerender aolbuild bingpreview msnbot adsbot mediapartners-google teoma".split(" "),c=0;c<b.length;c++)if(-1!==a.indexOf(b[c]))return !0;return !1}
67
- var ub=[{U:navigator.platform,O:"Win",S:"Windows"},{U:navigator.platform,O:"Mac",S:"Mac"},{U:navigator.platform,O:"BlackBerry",S:"BlackBerry"},{U:navigator.platform,O:"FreeBSD",S:"FreeBSD"},{U:navigator.platform,O:"OpenBSD",S:"OpenBSD"},{U:navigator.platform,O:"Nintendo",S:"Nintendo"},{U:navigator.platform,O:"SunOS",S:"SunOS"},{U:navigator.platform,O:"PlayStation",S:"PlayStation"},{U:navigator.platform,O:"X11",S:"X11"},{U:navigator.userAgent,O:["iPhone","iPad","iPod"],S:"iOS"},{U:navigator.platform,
68
- O:"Pike v",S:"iOS"},{U:navigator.userAgent,O:["Web0S"],S:"WebOS"},{U:navigator.platform,O:["Linux armv7l","Android"],S:"Android"},{U:navigator.userAgent,O:["Android"],S:"Android"},{U:navigator.platform,O:"Linux",S:"Linux"}],vb=new sb;function wb(a,b){this.rc=a;this.R=b;}function xb(a,b,c){var d=c;null!=c&&c instanceof Oa&&(d=c.A());a.rc.store(b,d);}function yb(a,b){var c=zb(a,b);null!=c&&(c.Ob=(new Date).valueOf(),xb(a,b,c));}function zb(a,b){a=a.rc.Z(b);null==a||null==a.g?a=null:(b=new Oa(a.g,a.e,a.c),b.Ob=a.l,a=b);return a}function bb(a,b){if(null==b||0===b.length)return !1;Ca(b)||(b=[b]);var c=a.R.Z(M.Wb);null!=c&&Ca(c)||(c=[]);for(var d=0;d<b.length;d++)c.push(b[d].A());return a.R.store(M.Wb,c)}
69
- function Ab(a){var b=a.R.Z(M.Wb);a.R.remove(M.Wb);null==b&&(b=[]);a=[];var c=!1,d=null;if(Ca(b))for(var e=0;e<b.length;e++)Ma(b[e])?a.push(Na(b[e])):d=e;else c=!0;if(c||null!=d)e="Stored events could not be deserialized as Events",c&&(e+=", was "+Object.prototype.toString.call(b)+" not an array"),null!=d&&(e+=", value at index "+d+" does not look like an event"),e+=", serialized values were of type "+typeof b+": "+JSON.stringify(b),a.push(new E(null,z.Yc,(new Date).valueOf(),null,{e:e}));return a}
70
- function O(a,b,c){Aa(M,b,"StorageManager cannot store object.","StorageManager.KEYS.OBJECTS")&&a.R.store(b,c);}function S(a,b){return Aa(M,b,"StorageManager cannot retrieve object.","StorageManager.KEYS.OBJECTS")?a.R.Z(b):!1}function Bb(a,b){Aa(M,b,"StorageManager cannot remove object.","StorageManager.KEYS.OBJECTS")&&a.R.remove(b);}wb.prototype.clearData=function(){for(var a=Ga(Cb),b=Ga(M),c=0;c<a.length;c++)this.rc.remove(Cb[a[c]]);for(a=0;a<b.length;a++)this.R.remove(M[b[a]]);};
71
- function Eb(a,b){var c=a.R.Z(M.Qa);null==c&&(c={});var d=b.user_id||M.Qc,e;for(e in b)"user_id"===e||null!=c[d]&&null!=c[d][e]||Fb(a,b.user_id,e,b[e]);}function Fb(a,b,c,d){var e=a.R.Z(M.Qa);null==e&&(e={});var f=b||M.Qc,g=e[f];null==g&&(g={},null!=b&&(g.user_id=b));if("custom"===c){null==g[c]&&(g[c]={});for(var h in d)g[c][h]=d[h];}else g[c]=d;e[f]=g;return a.R.store(M.Qa,e)}function Gb(a){var b=a.R.Z(M.Qa);a.R.remove(M.Qa);a=[];for(var c in b)null!=b[c]&&a.push(b[c]);return a}
72
- var Cb={lc:"ab.storage.userId",Uc:"ab.storage.deviceId",Ta:"ab.storage.sessionId"},M={jd:"ab.test",Wb:"ab.storage.events",Qa:"ab.storage.attributes",Qc:"ab.storage.attributes.anonymous_user",cc:"ab.storage.device",se:"ab.storage.sdk_metadata",ue:"ab.storage.session_id_for_cached_metadata",kc:"ab.storage.pushToken",dd:"ab.storage.newsFeed",bd:"ab.storage.lastNewsFeedRefresh",vb:"ab.storage.cardImpressions",te:"ab.storage.serverConfig",kd:"ab.storage.triggers",md:"ab.storage.triggers.ts",hg:"ab.storage.lastTriggeredTime",
73
- gg:"ab.storage.lastTriggeredTimesById",ig:"ab.storage.lastTriggerEventDataById",hc:"ab.storage.messagingSessionStart",wb:"ab.storage.cc",ac:"ab.storage.ccLastFullSync",$b:"ab.storage.ccLastCardUpdated",hb:"ab.storage.ccClicks",ib:"ab.storage.ccImpressions",ua:"ab.storage.ccDismissals",fc:"ab.storage.lastDisplayedTriggerTimesById",ad:"ab.storage.lastDisplayedTriggerTime",zb:"ab.storage.triggerFireInstancesById",jb:"ab.storage.signature"};function Hb(a){this.$=a;this.df=vb.Ya===ob.hd?3:10;}
74
- Hb.prototype.Xa=function(a){return a+"."+this.$};Hb.prototype.store=function(a,b){b={v:b};try{return localStorage.setItem(this.Xa(a),JSON.stringify(b)),!0}catch(c){return x.info("Storage failure: "+c.message),!1}};Hb.prototype.Z=function(a){try{var b=JSON.parse(localStorage.getItem(this.Xa(a)));return null==b?null:b.v}catch(c){return x.info("Storage retrieval failure: "+c.message),null}};
75
- Hb.prototype.remove=function(a){try{localStorage.removeItem(this.Xa(a));}catch(b){return x.info("Storage removal failure: "+b.message),!1}};function Ib(a,b){this.$=a;a=0;for(var c=document.location.hostname,d=c.split(".");a<d.length-1&&-1===document.cookie.indexOf("ab._gd=ab._gd");)a++,c="."+d.slice(-1-a).join("."),document.cookie="ab._gd=ab._gd;domain="+c+";";document.cookie="ab._gd=;expires="+(new Date(0)).toGMTString()+";domain="+c+";";this.Me=c;this.Ee=525949;this.Qe=!!b;}
76
- Ib.prototype.Xa=function(a){return null!=this.$?a+"."+this.$:a};function Jb(a){var b=new Date;b.setTime(b.getTime()+6E4*a.Ee);return b.getFullYear()}
77
- Ib.prototype.store=function(a,b){for(var c=Ba(Cb),d=document.cookie.split(";"),e=0;e<d.length;e++){for(var f=d[e];" "===f.charAt(0);)f=f.substring(1);for(var g=!1,h=0;h<c.length;h++)if(0===f.indexOf(c[h])){g=!0;break}g&&(f=f.split("=")[0],-1===f.indexOf("."+this.$)&&Kb(this,f));}c=new Date;c.setTime(c.getTime()+6E4*this.Ee);c="expires="+c.toUTCString();d="domain="+this.Me;b=this.Qe?b:encodeURIComponent(JSON.stringify(b));a=this.Xa(a)+"="+b+";"+c+";"+d+";path=/";if(4093<=a.length)return x.info("Storage failure: string is "+
78
- a.length+" chars which is too large to store as a cookie."),!1;document.cookie=a;return !0};
79
- Ib.prototype.Z=function(a){for(var b=[],c=this.Xa(a)+"=",d=document.cookie.split(";"),e=0;e<d.length;e++){for(var f=d[e];" "===f.charAt(0);)f=f.substring(1);if(0===f.indexOf(c))try{var g=void 0;g=this.Qe?f.substring(c.length,f.length):JSON.parse(decodeURIComponent(f.substring(c.length,f.length)));b.push(g);}catch(h){return x.info("Storage retrieval failure: "+h.message),this.remove(a),null}}return 0<b.length?b[b.length-1]:null};Ib.prototype.remove=function(a){Kb(this,this.Xa(a));};
80
- function Kb(a,b){b=b+"=;expires="+(new Date(0)).toGMTString();document.cookie=b;document.cookie=b+";path=/";document.cookie=b+";path="+document.location.pathname;a=b+";domain="+a.Me;document.cookie=a;document.cookie=a+";path=/";document.cookie=a+";path="+document.location.pathname;}function Lb(){this.ud={};this.Ke=5242880;this.df=3;}
81
- Lb.prototype.store=function(a,b){var c={value:b};var d=[];b=[b];for(var e=0;b.length;){var f=b.pop();if("boolean"===typeof f)e+=4;else if("string"===typeof f)e+=2*f.length;else if("number"===typeof f)e+=8;else if("object"===typeof f&&-1===d.indexOf(f)){d.push(f);for(var g in f)b.push(f[g]);}}d=e;if(d>this.Ke)return x.info("Storage failure: object is \u2248"+d+" bytes which is greater than the max of "+this.Ke),!1;this.ud[a]=c;return !0};Lb.prototype.Z=function(a){a=this.ud[a];return null==a?null:a.value};
82
- Lb.prototype.remove=function(a){this.ud[a]=null;};function Mb(a,b,c){this.ma=[];b&&this.ma.push(new Ib(a));c&&this.ma.push(new Hb(a));this.ma.push(new Lb);}Mb.prototype.store=function(a,b){for(var c=!0,d=0;d<this.ma.length;d++)c=this.ma[d].store(a,b)&&c;return c};Mb.prototype.Z=function(a){for(var b=0;b<this.ma.length;b++){var c=this.ma[b].Z(a);if(null!=c)return c}return null};Mb.prototype.remove=function(a){for(var b=0;b<this.ma.length;b++)this.ma[b].remove(a);};function Nb(){this.Fb={};}function Ob(a,b){if("function"!==typeof b)return null;var c=pa.Ia();a.Fb[c]=b;return c}Nb.prototype.N=function(a){delete this.Fb[a];};Nb.prototype.K=function(){this.Fb={};};function Pb(a,b){var c=[],d;for(d in a.Fb)c.push(a.Fb[d](b));}function Qb(){if(null==Rb){Rb=!1;try{var a=Object.defineProperty({},"passive",{get:function(){Rb=!0;}});window.addEventListener("testPassive",null,a);window.removeEventListener("testPassive",null,a);}catch(b){}}return Rb}function Sb(a,b,c){a.addEventListener(b,c,Qb()?{passive:!0}:!1);}
83
- function Tb(a,b,c,d){if(null==a)return !1;b=b||!1;c=c||!1;a=a.getBoundingClientRect();return null==a?!1:(0<=a.top&&a.top<=(window.innerHeight||document.documentElement.clientHeight)||!b)&&(0<=a.left||!d)&&(0<=a.bottom&&a.bottom<=(window.innerHeight||document.documentElement.clientHeight)||!c)&&(a.right<=(window.innerWidth||document.documentElement.clientWidth)||!d)}function Ub(a){if(a.onclick){var b=document.createEvent("MouseEvents");b.initEvent("click",!0,!0);a.onclick.apply(a,[b]);}}
84
- function Vb(a,b,c){var d=null,e=null;Sb(a,"touchstart",function(f){d=f.touches[0].clientX;e=f.touches[0].clientY;});Sb(a,"touchmove",function(f){if(null!=d&&null!=e){var g=d-f.touches[0].clientX,h=e-f.touches[0].clientY;Math.abs(g)>Math.abs(h)&&25<=Math.abs(g)?(0<g&&b===Wb?c(f):0>g&&b===Xb&&c(f),e=d=null):25<=Math.abs(h)&&(0<h&&b===Yb&&a.scrollTop===a.scrollHeight-a.offsetHeight?c(f):0>h&&b===Zb&&0===a.scrollTop&&c(f),e=d=null);}});}
85
- function $b(a,b,c){var d=document.createElementNS("http://www.w3.org/2000/svg","svg");d.setAttribute("viewBox",a);d.setAttribute("xmlns","http://www.w3.org/2000/svg");a=document.createElementNS("http://www.w3.org/2000/svg","path");a.setAttribute("d",b);null!=c&&a.setAttribute("fill",c);d.appendChild(a);return d}var Rb=null,Yb="up",Zb="down",Wb="left",Xb="right";function ac(a,b,c){var d=document.createElement("button");d.setAttribute("aria-label",a);d.setAttribute("tabindex","0");d.setAttribute("role","button");Sb(d,"touchstart",function(){});d.className="ab-close-button";a=$b("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",b);d.appendChild(a);d.addEventListener("keydown",function(e){if(32===e.keyCode||13===e.keyCode)c(),e.stopPropagation();});d.onclick=function(e){c();e.stopPropagation();};return d}var bc={nh:function(){return 600>=screen.width},hh:function(){if("orientation"in window)return 90===Math.abs(window.orientation)||270===window.orientation?bc.Sa.Zc:bc.Sa.jc;if("screen"in window){var a=window.screen.orientation||screen.ci||screen.ei;null!=a&&"object"===typeof a&&(a=a.type);if("landscape-primary"===a||"landscape-secondary"===a)return bc.Sa.Zc}return bc.Sa.jc},oh:function(a,b,c){c||null!=b&&b.metaKey?window.open(a):window.location=a;},Sa:{jc:0,Zc:1}};J.WindowUtils=bc;
86
- J.WindowUtils.openUri=bc.oh;function cc(a,b,c,d,e,f,g,h,l,k,m,q,v,t,w,r){this.id=a;this.viewed=b||!1;this.title=c||"";this.imageUrl=d;this.description=e||"";this.created=f||null;this.updated=g||null;this.categories=h||[];this.expiresAt=l||null;this.url=k;this.linkText=m;q=parseFloat(q);this.aspectRatio=isNaN(q)?null:q;this.extras=v;this.pinned=t||!1;this.dismissible=w||!1;this.dismissed=!1;this.clicked=r||!1;this.test=!1;this.pd=this.X=null;}function dc(a){null==a.X&&(a.X=new Nb);return a.X}
87
- function ec(a){null==a.pd&&(a.pd=new Nb);return a.pd}p=cc.prototype;p.Vb=function(a){return Ob(dc(this),a)};p.Wd=function(a){return Ob(ec(this),a)};p.N=function(a){dc(this).N(a);ec(this).N(a);};p.K=function(){dc(this).K();ec(this).K();};p.Od=function(){this.viewed=!0;};p.fb=function(){this.clicked=this.viewed=!0;Pb(dc(this));};p.Nd=function(){return this.dismissible&&!this.dismissed?(this.dismissed=!0,Pb(ec(this)),!0):!1};
88
- function fc(a,b){if(null==b||b[T.wa]!==a.id)return !0;if(b[T.pe])return !1;if(null!=b[T.ea]&&null!=a.updated&&b[T.ea]<Ia(a.updated.valueOf()))return !0;b[T.za]&&!a.viewed&&(a.viewed=!0);b[T.ta]&&!a.clicked&&(a.clicked=b[T.ta]);null!=b[T.Ua]&&(a.title=b[T.Ua]);null!=b[T.xa]&&(a.imageUrl=b[T.xa]);null!=b[T.Ra]&&(a.description=b[T.Ra]);if(null!=b[T.ea]){var c=Ja(b[T.ea]);null!=c&&(a.updated=c);}null!=b[T.ca]&&(a.expiresAt=b[T.ca]===gc?null:Ja(b[T.ca]));null!=b[T.URL]&&(a.url=b[T.URL]);null!=b[T.ya]&&(a.linkText=
89
- b[T.ya]);null!=b[T.sa]&&(c=parseFloat(b[T.sa]),a.aspectRatio=isNaN(c)?null:c);null!=b[T.ka]&&(a.extras=b[T.ka]);null!=b[T.la]&&(a.pinned=b[T.la]);null!=b[T.va]&&(a.dismissible=b[T.va]);null!=b[T.V]&&(a.test=b[T.V]);return !0}
90
- function hc(a){if(a[T.pe])return null;var b=a[T.wa],c=a[T.TYPE],d=a[T.za],e=a[T.Ua],f=a[T.xa],g=a[T.Ra],h=Ja(a[T.ea]);var l=a[T.ca]===gc?null:Ja(a[T.ca]);var k=a[T.URL],m=a[T.ya],q=a[T.sa],v=a[T.ka],t=a[T.la],w=a[T.va],r=a[T.ta];a=a[T.V]||!1;if(c===ic.xe||c===ic.ic)b=new jc(b,d,e,f,g,null,h,null,l,k,m,q,v,t,w,r);else if(c===ic.Yb)b=new kc(b,d,e,f,g,null,h,null,l,k,m,q,v,t,w,r);else if(c===ic.Xb)b=new lc(b,d,f,null,h,null,l,k,m,q,v,t,w,r);else if(c===ic.Sc)b=new mc(b,d,h,l,v,t);else return x.error("Ignoring card with unknown type "+
91
- c),null;b.test=a;return b}function nc(a){var b=a[U.wa],c=a[U.TYPE],d=a[U.za],e=a[U.Ua],f=a[U.xa],g=a[U.Ra],h=La(a[U.bc]),l=La(a[U.ea]),k=a[U.Zb],m=La(a[U.ca]),q=a[U.URL],v=a[U.ya],t=a[U.sa],w=a[U.ka],r=a[U.la],F=a[U.va],D=a[U.ta];a=a[U.V]||!1;if(c===ic.ic)b=new jc(b,d,e,f,g,h,l,k,m,q,v,t,w,r,F,D);else if(c===ic.Yb)b=new kc(b,d,e,f,g,h,l,k,m,q,v,t,w,r,F,D);else if(c===ic.Xb)b=new lc(b,d,f,h,l,k,m,q,v,t,w,r,F,D);else if(c===ic.Sc)b=new mc(b,d,l,m,w,r);else return;b.test=a;return b}
92
- function oc(a){null!=a&&(a=a.querySelectorAll(".ab-unread-indicator")[0],null!=a&&(a.className+=" read"));}
93
- p.aa=function(a,b,c){function d(q){oc(f);g&&(a(e),bc.openUri(e.url,q,c));return !1}var e=this,f=document.createElement("div");f.className="ab-card ab-effect-card "+this.Dc;f.setAttribute("data-ab-card-id",this.id);f.setAttribute("role","article");f.setAttribute("tabindex","0");var g=this.url&&""!==this.url;if(this.pinned){var h=document.createElement("div");h.className="ab-pinned-indicator";var l=document.createElement("i");l.className="fa fa-star";h.appendChild(l);f.appendChild(h);}this.imageUrl&&
94
- ""!==this.imageUrl&&(h=document.createElement("div"),h.className="ab-image-area",l=document.createElement("img"),l.setAttribute("src",this.imageUrl),this.xc(l),h.appendChild(l),f.className+=" with-image",g&&!this.Gc?(l=document.createElement("a"),l.setAttribute("href",this.url),l.onclick=d,l.appendChild(h),f.appendChild(l)):f.appendChild(h));h=document.createElement("div");h.className="ab-card-body";if(this.dismissible){this.Je=b;var k=ac("Dismiss Card",void 0,this.bf.bind(this));f.appendChild(k);
95
- Vb(h,Wb,function(q){f.className+=" ab-swiped-left";k.onclick(q);});Vb(h,Xb,function(q){f.className+=" ab-swiped-right";k.onclick(q);});}if(b=this.title&&""!==this.title){l=document.createElement("h1");l.className="ab-title";l.id=pa.Ia();f.setAttribute("aria-labelledby",l.id);if(g){var m=document.createElement("a");m.setAttribute("href",this.url);m.onclick=d;m.appendChild(document.createTextNode(this.title));l.appendChild(m);}else l.appendChild(document.createTextNode(this.title));h.appendChild(l);}l=document.createElement("div");
96
- l.className=b?"ab-description":"ab-description ab-no-title";l.id=pa.Ia();f.setAttribute("aria-describedby",l.id);l.appendChild(document.createTextNode(this.description));g&&(b=document.createElement("div"),b.className="ab-url-area",m=document.createElement("a"),m.setAttribute("href",this.url),m.appendChild(document.createTextNode(this.linkText)),m.onclick=d,b.appendChild(m),l.appendChild(b));h.appendChild(l);f.appendChild(h);h=document.createElement("div");h.className="ab-unread-indicator";this.viewed&&
97
- (h.className+=" read");f.appendChild(h);return this.Gg=f};p.xc=function(a){var b="";this.title||this.description||(b="Feed Image");a.setAttribute("alt",b);};p.bf=function(){if(this.dismissible&&!this.dismissed){this.Je&&this.Je(this);var a=this.Gg;a&&(a.style.height=a.offsetHeight+"px",a.className+=" ab-hide",setTimeout(function(){a&&a.parentNode&&(a.style.height="0",a.style.margin="0",setTimeout(function(){a&&a.parentNode&&a.parentNode.removeChild(a);},pc));},qc));}};
98
- var gc=-1,ic={Yb:"captioned_image",xe:"text_announcement",ic:"short_news",Xb:"banner_image",Sc:"control"},T={wa:"id",za:"v",va:"db",pe:"r",ea:"ca",la:"p",ca:"ea",ka:"e",TYPE:"tp",xa:"i",Ua:"tt",Ra:"ds",URL:"u",ya:"dm",sa:"ar",ta:"cl",V:"t"},U={wa:"id",za:"v",va:"db",bc:"cr",ea:"ca",la:"p",Zb:"t",ca:"ea",ka:"e",TYPE:"tp",xa:"i",Ua:"tt",Ra:"ds",URL:"u",ya:"dm",sa:"ar",ta:"cl",V:"s"},pc=400;J.Card=cc;J.Card.fromContentCardsJson=hc;J.Card.prototype.dismissCard=cc.prototype.bf;
99
- J.Card.prototype.subscribeToClickedEvent=cc.prototype.Vb;J.Card.prototype.subscribeToDismissedEvent=cc.prototype.Wd;J.Card.prototype.removeSubscription=cc.prototype.N;J.Card.prototype.removeAllSubscriptions=cc.prototype.K;function lc(a,b,c,d,e,f,g,h,l,k,m,q,v,t){cc.call(this,a,b,null,c,null,d,e,f,g,h,l,k,m,q,v,t);this.Dc="ab-banner";this.Gc=!1;}na(lc,cc);lc.prototype.A=function(){var a={};a[U.TYPE]=ic.Xb;a[U.wa]=this.id;a[U.za]=this.viewed;a[U.xa]=this.imageUrl;a[U.ea]=this.updated;a[U.bc]=this.created;a[U.Zb]=this.categories;a[U.ca]=this.expiresAt;a[U.URL]=this.url;a[U.ya]=this.linkText;a[U.sa]=this.aspectRatio;a[U.ka]=this.extras;a[U.la]=this.pinned;a[U.va]=this.dismissible;a[U.ta]=this.clicked;a[U.V]=this.test;return a};
100
- J.Banner=lc;function kc(a,b,c,d,e,f,g,h,l,k,m,q,v,t,w,r){cc.call(this,a,b,c,d,e,f,g,h,l,k,m,q,v,t,w,r);this.Dc="ab-captioned-image";this.Gc=!0;}na(kc,cc);
101
- kc.prototype.A=function(){var a={};a[U.TYPE]=ic.Yb;a[U.wa]=this.id;a[U.za]=this.viewed;a[U.Ua]=this.title;a[U.xa]=this.imageUrl;a[U.Ra]=this.description;a[U.ea]=this.updated;a[U.bc]=this.created;a[U.Zb]=this.categories;a[U.ca]=this.expiresAt;a[U.URL]=this.url;a[U.ya]=this.linkText;a[U.sa]=this.aspectRatio;a[U.ka]=this.extras;a[U.la]=this.pinned;a[U.va]=this.dismissible;a[U.ta]=this.clicked;a[U.V]=this.test;return a};J.CaptionedImage=kc;function jc(a,b,c,d,e,f,g,h,l,k,m,q,v,t,w,r){cc.call(this,a,b,c,d,e,f,g,h,l,k,m,q,v,t,w,r);this.Dc="ab-classic-card";this.Gc=!0;}na(jc,cc);
102
- jc.prototype.A=function(){var a={};a[U.TYPE]=ic.ic;a[U.wa]=this.id;a[U.za]=this.viewed;a[U.Ua]=this.title;a[U.xa]=this.imageUrl;a[U.Ra]=this.description;a[U.ea]=this.updated;a[U.bc]=this.created;a[U.Zb]=this.categories;a[U.ca]=this.expiresAt;a[U.URL]=this.url;a[U.ya]=this.linkText;a[U.sa]=this.aspectRatio;a[U.ka]=this.extras;a[U.la]=this.pinned;a[U.va]=this.dismissible;a[U.ta]=this.clicked;a[U.V]=this.test;return a};J.ClassicCard=jc;function mc(a,b,c,d,e,f){cc.call(this,a,b,null,null,null,null,c,null,d,null,null,null,e,f,null);this.Dc="ab-control-card";this.Gc=!1;}na(mc,cc);mc.prototype.A=function(){var a={};a[U.TYPE]=ic.Sc;a[U.wa]=this.id;a[U.za]=this.viewed;a[U.ea]=this.updated;a[U.ca]=this.expiresAt;a[U.ka]=this.extras;a[U.la]=this.pinned;a[U.V]=this.test;return a};J.ControlCard=mc;function rc(a){a=parseInt(a);return !isNaN(a)&&0===(a&4278190080)>>>24}function sc(a){a=parseInt(a);if(isNaN(a))return "";var b=parseFloat(b);isNaN(b)&&(b=1);a>>>=0;var c=a&255,d=(a&65280)>>>8,e=(a&16711680)>>>16;return (vb.Ya===ob.dc?8<vb.version:1)?"rgba("+[e,d,c,((a&4278190080)>>>24)/255*b].join()+")":"rgb("+[e,d,c].join()+")"}function W(a,b,c,d,e,f,g,h,l,k,m,q,v,t,w,r,F,D,G,H,A,N,L,I,V,Q,n,u,y,B,P){this.message=a;this.messageAlignment=b||tc;this.duration=q||5E3;this.slideFrom=c||uc;this.extras=d||{};this.campaignId=e;this.cardId=f;this.triggerId=g;this.clickAction=h||vc;this.uri=l;this.openTarget=k||wc;this.dismissType=m||xc;this.icon=v;this.imageUrl=t;this.imageStyle=w||yc;this.iconColor=r||zc.nd;this.iconBackgroundColor=F||zc.$d;this.backgroundColor=D||zc.nd;this.textColor=G||zc.ce;this.closeButtonColor=H||zc.Sf;this.animateIn=
103
- A;null==this.animateIn&&(this.animateIn=!0);this.animateOut=N;null==this.animateOut&&(this.animateOut=!0);this.header=L;this.headerAlignment=I||tc;this.headerTextColor=V||zc.ce;this.frameColor=Q||zc.vg;this.buttons=n||[];this.cropType=u||Ac;this.orientation=y;this.htmlId=B;this.css=P;this.Fe=this.Wa=this.Ge=!1;this.X=new Nb;this.nc=new Nb;}p=W.prototype;p.Ja=function(){return !0};p.xf=function(){return this.Ja()};function Bc(a){return null!=a.htmlId&&4<a.htmlId.length}
104
- function Cc(a){return Bc(a)&&null!=a.css&&0<a.css.length}function Dc(a){if(Bc(a)&&Cc(a))return a.htmlId+"-css"}p.Vb=function(a){return Ob(this.X,a)};p.Wd=function(a){return Ob(this.nc,a)};p.N=function(a){this.X.N(a);this.nc.N(a);};p.K=function(){this.X.K();this.nc.K();};p.Od=function(){return this.Ge?!1:this.Ge=!0};p.fb=function(){return this.Wa?!1:(this.Wa=!0,Pb(this.X),!0)};p.Nd=function(){return this.Fe?!1:(this.Fe=!0,Pb(this.nc),!0)};
105
- function Ec(a){if(a.is_control)return new Fc(a.trigger_id);var b=a.type;null!=b&&(b=b.toUpperCase());var c=a.message,d=a.text_align_message,e=a.slide_from,f=a.extras,g=a.campaign_id,h=a.card_id,l=a.trigger_id,k=a.click_action,m=a.uri,q=a.open_target,v=a.message_close,t=a.duration,w=a.icon,r=a.image_url,F=a.image_style,D=a.icon_color,G=a.icon_bg_color,H=a.bg_color,A=a.text_color,N=a.close_btn_color,L=a.header,I=a.text_align_header,V=a.header_text_color,Q=a.frame_color,n=[],u=a.btns;null==u&&(u=[]);
106
- for(var y=0;y<u.length;y++){var B=u[y];n.push(new Gc(B.text,B.bg_color,B.text_color,B.border_color,B.click_action,B.uri,B.id));}u=a.crop_type;y=a.orientation;B=a.animate_in;var P=a.animate_out,R=a.html_id,Y=a.css;if(null==R||""===R||null==Y||""===Y)Y=R=void 0;if(b===Hc||b===Ic)c=new Jc(c,d,f,g,h,l,k,m,q,v,t,w,r,F,D,G,H,A,N,B,P,L,I,V,Q,n,u,R,Y);else if(b===Kc)c=new Lc(c,d,f,g,h,l,k,m,q,v,t,w,r,F,D,G,H,A,N,B,P,L,I,V,Q,n,u,y,R,Y);else if(b===Mc)c=new Nc(c,d,e,f,g,h,l,k,m,q,v,t,w,r,D,G,H,A,N,B,P,R,Y);
107
- else if(b===Oc||b===Pc)c=new Qc(c,f,g,h,l,v,t,B,P,Q,R,Y,a.message_fields),c.Th=a.trusted||!1;else{x.error("Ignoring message with unknown type "+b);return}c.nf=b;return c}function Rc(a,b){if(b&&b.parentNode){var c=b.closest(".ab-iam-root");null==c&&(c=b);a.Ja()&&null!=c.parentNode&&((b=c.parentNode.classList)&&b.contains(Sc)&&b.remove(Sc),document.body.removeEventListener("touchmove",Tc));c.className=c.className.replace(Uc,Vc);}return a.animateOut}
108
- function Wc(a,b,c){if(null!=b){a.sc=null;var d=-1===b.className.indexOf("ab-in-app-message")?b.getElementsByClassName("ab-in-app-message")[0]:b;var e=!1;d&&(e=Rc(a,d));var f=document.body;if(null!=f)var g=f.scrollTop;d=function(){if(b&&b.parentNode){var h=b.closest(".ab-iam-root");null==h&&(h=b);h.parentNode&&h.parentNode.removeChild(h);}null!=Dc(a)&&(h=document.getElementById(Dc(a)))&&h.parentNode&&h.parentNode.removeChild(h);null!=f&&"Safari"===vb.Ya&&(f.scrollTop=g);c?c():a.Nd();};e?setTimeout(d,
109
- Xc):d();a.tc&&a.tc.focus();}}p.Ye=function(){Wc(this,this.sc);};
110
- p.aa=function(a,b,c,d,e){function f(){-1!==h.className.indexOf("ab-start-hidden")&&(h.className=h.className.replace("ab-start-hidden",""),c(h));}var g=this,h=document.createElement("div");h.className="ab-in-app-message ab-start-hidden ab-background";e&&(h.style.zIndex=e+1);this.Ja()&&(h.className+=" ab-modal-interactions",h.setAttribute("tabindex","-1"));Cc(this)||(h.style.color=sc(this.textColor),h.style.backgroundColor=sc(this.backgroundColor),rc(this.backgroundColor)&&(h.className+=" ab-no-shadow"));
111
- this.imageStyle===Yc&&(h.className+=" graphic");this.orientation===Zc&&(h.className+=" landscape");0===this.buttons.length&&(this.clickAction!==vc&&(h.className+=" ab-clickable"),h.onclick=function(v){Wc(g,h,function(){a.Jc(g);g.clickAction===$c?bc.openUri(g.uri,v,d||g.openTarget===ad):g.clickAction===bd&&b();});v.stopPropagation();return !1});var l=ac("Close Message",Cc(this)?void 0:sc(this.closeButtonColor),function(){Wc(g,h);});h.appendChild(l);e&&(l.style.zIndex=e+2);e=document.createElement("div");
112
- e.className="ab-message-text";e.className+=" "+(this.messageAlignment||this.Bd).toLowerCase()+"-aligned";l=!1;var k=document.createElement("div");k.className="ab-image-area";if(this.imageUrl){if(this.cropType===cd){var m=document.createElement("span");m.className="ab-center-cropped-img";m.style.backgroundImage="url("+this.imageUrl+")";m.setAttribute("role","img");m.setAttribute("aria-label","Modal Image");this.xc(m);k.appendChild(m);}else m=document.createElement("img"),m.setAttribute("src",this.imageUrl),
113
- this.xc(m),l=!0,m.onload=f,setTimeout(f,1E3),k.appendChild(m);h.appendChild(k);e.className+=" ab-with-image";}else if(this.icon){k.className+=" ab-icon-area";m=document.createElement("span");m.className="ab-icon";Cc(this)||(m.style.backgroundColor=sc(this.iconBackgroundColor),m.style.color=sc(this.iconColor));var q=document.createElement("i");q.className="fa";q.appendChild(document.createTextNode(this.icon));q.setAttribute("aria-hidden",!0);m.appendChild(q);k.appendChild(m);h.appendChild(k);e.className+=
114
- " ab-with-icon";}Sb(e,"touchstart",function(){});this.header&&0<this.header.length&&(k=document.createElement("h1"),k.className="ab-message-header",this.qd=pa.Ia(),k.id=this.qd,k.className+=" "+(this.headerAlignment||tc).toLowerCase()+"-aligned",Cc(this)||(k.style.color=sc(this.headerTextColor)),k.appendChild(document.createTextNode(this.header)),e.appendChild(k));e.appendChild(this.Xe());h.appendChild(e);l||f();return this.sc=h};p.Xe=function(){return document.createTextNode(this.message)};
115
- p.xc=function(a){var b="";this.message||this.header||!this.Ja()||(b="Modal Image");a.setAttribute("alt",b);};function Tc(a){a.targetTouches&&1<a.targetTouches.length||a.target.classList&&a.target.classList.contains("ab-message-text")&&a.target.scrollHeight>a.target.clientHeight||document.querySelector("."+Sc)&&a.preventDefault();}
116
- p.Kc=function(a){this.Ja()&&null!=a.parentNode&&this.orientation!==Zc&&(null!=a.parentNode.classList&&a.parentNode.classList.add(Sc),document.body.addEventListener("touchmove",Tc,Qb()?{passive:!1}:!1));a.className+=" "+Uc;};p.oa=function(){var a="";this.animateIn&&(a+=" ab-animate-in");this.animateOut&&(a+=" ab-animate-out");return a};
117
- var zc={ce:4281545523,nd:4294967295,$d:4278219733,Tf:4293914607,Uf:4283782485,vg:3224580915,Sf:4288387995},dd={ge:"hd",Bf:"ias",rg:"of",Vf:"do",Ab:"umt",yb:"tf",ie:"te"},uc="BOTTOM",ed={TOP:"TOP",BOTTOM:uc},bd="NEWS_FEED",$c="URI",vc="NONE",fd={NEWS_FEED:bd,URI:$c,NONE:vc},xc="AUTO_DISMISS",gd={AUTO_DISMISS:xc,MANUAL:"SWIPE"},wc="NONE",ad="BLANK",hd={NONE:wc,BLANK:ad},yc="TOP",Yc="GRAPHIC",id={TOP:yc,GRAPHIC:Yc},Zc="LANDSCAPE",jd={PORTRAIT:"PORTRAIT",LANDSCAPE:Zc},tc="CENTER",kd={START:"START",CENTER:tc,
118
- END:"END"},cd="CENTER_CROP",Ac="FIT_CENTER",ld={CENTER_CROP:cd,FIT_CENTER:Ac},Mc="SLIDEUP",Hc="MODAL",Ic="MODAL_STYLED",Kc="FULL",Oc="WEB_HTML",Pc="HTML",Xc=500,Uc="ab-show",Vc="ab-hide",Sc="ab-pause-scrolling";J.InAppMessage=W;J.InAppMessage.SlideFrom=ed;J.InAppMessage.ClickAction=fd;J.InAppMessage.DismissType=gd;J.InAppMessage.OpenTarget=hd;J.InAppMessage.ImageStyle=id;J.InAppMessage.TextAlignment=kd;J.InAppMessage.Orientation=jd;J.InAppMessage.CropType=ld;J.InAppMessage.fromJson=Ec;
119
- J.InAppMessage.prototype.subscribeToClickedEvent=W.prototype.Vb;J.InAppMessage.prototype.subscribeToDismissedEvent=W.prototype.Wd;J.InAppMessage.prototype.removeSubscription=W.prototype.N;J.InAppMessage.prototype.removeAllSubscriptions=W.prototype.K;J.InAppMessage.prototype.closeMessage=W.prototype.Ye;function Gc(a,b,c,d,e,f,g){this.text=a||"";this.backgroundColor=b||zc.$d;this.textColor=c||zc.nd;this.borderColor=d||this.backgroundColor;this.clickAction=e||vc;this.uri=f;null==g&&(g=md);this.id=g;this.Wa=!1;this.X=new Nb;}Gc.prototype.Vb=function(a){return Ob(this.X,a)};Gc.prototype.N=function(a){this.X.N(a);};Gc.prototype.K=function(){this.X.K();};Gc.prototype.fb=function(){return this.Wa?!1:(this.Wa=!0,Pb(this.X),!0)};var md=-1;J.InAppMessageButton=Gc;
120
- J.InAppMessageButton.prototype.subscribeToClickedEvent=Gc.prototype.Vb;J.InAppMessageButton.prototype.removeSubscription=Gc.prototype.N;J.InAppMessageButton.prototype.removeAllSubscriptions=Gc.prototype.K;function Fc(a){this.triggerId=a;}J.ControlMessage=Fc;function nd(a){for(var b=a.querySelectorAll(".ab-close-button, .ab-message-text, .ab-message-button"),c=0;c<b.length;c++)b[c].tabIndex=0;if(0<b.length){var d=b[0],e=b[b.length-1];a.addEventListener("keydown",function(f){var g=document.activeElement;9===f.keyCode&&(f.shiftKey||g!==e&&g!==a?!f.shiftKey||g!==d&&g!==a||(f.preventDefault(),e.focus()):(f.preventDefault(),d.focus()));});}}
121
- function od(a,b){b.setAttribute("role","dialog");b.setAttribute("aria-modal",!0);b.setAttribute("aria-label","Modal Message");a&&b.setAttribute("aria-labelledby",a);}
122
- function pd(a,b,c,d,e){if(0<a.buttons.length){var f=document.createElement("div");f.className="ab-message-buttons";d.appendChild(f);var g=d.getElementsByClassName("ab-message-text")[0];null!=g&&(g.className+=" ab-with-buttons");g=function(q){return function(v){Wc(a,d,function(){b.Ic(q,a);q.clickAction===$c?bc.openUri(q.uri,v,e||a.openTarget===ad):q.clickAction===bd&&c();});v.stopPropagation();return !1}};for(var h=0;h<a.buttons.length;h++){var l=a.buttons[h],k=document.createElement("button");k.className=
123
- "ab-message-button";k.setAttribute("type","button");Sb(k,"touchstart",function(){});var m=l.text;""===l.text&&(m="\u00a0");k.appendChild(document.createTextNode(m));Cc(a)||(k.style.backgroundColor=sc(l.backgroundColor),k.style.color=sc(l.textColor),k.style.borderColor=sc(l.borderColor));k.onclick=g(l);f.appendChild(k);}}}function Lc(a,b,c,d,e,f,g,h,l,k,m,q,v,t,w,r,F,D,G,H,A,N,L,I,V,Q,n,u,y,B){n=n||cd;W.call(this,a,b,null,c,d,e,f,g,h,l,k||"SWIPE",m,q,v,t,w,r,F,D,G,H,A,N,L,I,V,Q,n,u||"PORTRAIT",y,B);}na(Lc,W);Lc.prototype.aa=function(a,b,c,d,e,f){this.tc=document.activeElement;b=W.prototype.aa.call(this,a,c,d,e,f);b.className+=" ab-fullscreen ab-centered";pd(this,a,c,b,e);nd(b);od(this.qd,b);return b};Lc.prototype.oa=function(){return W.prototype.oa.call(this)+" ab-effect-fullscreen"};
124
- fa.Object.defineProperties(Lc.prototype,{Bd:{configurable:!0,enumerable:!0,get:function(){return tc}}});J.FullScreenMessage=Lc;var qd=new function(){this.$e=".ab-pause-scrolling,body.ab-pause-scrolling,html.ab-pause-scrolling{overflow:hidden;touch-action:none}.ab-centering-div,.ab-iam-root.v3{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:1050;-webkit-tap-highlight-color:transparent}.ab-centering-div:focus,.ab-iam-root.v3:focus{outline:0}.ab-centering-div.ab-effect-fullscreen,.ab-centering-div.ab-effect-html,.ab-centering-div.ab-effect-modal,.ab-iam-root.v3.ab-effect-fullscreen,.ab-iam-root.v3.ab-effect-html,.ab-iam-root.v3.ab-effect-modal{opacity:0}.ab-centering-div.ab-effect-fullscreen.ab-show,.ab-centering-div.ab-effect-html.ab-show,.ab-centering-div.ab-effect-modal.ab-show,.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-centering-div.ab-effect-fullscreen.ab-show.ab-animate-in,.ab-centering-div.ab-effect-html.ab-show.ab-animate-in,.ab-centering-div.ab-effect-modal.ab-show.ab-animate-in,.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-centering-div.ab-effect-fullscreen.ab-hide,.ab-centering-div.ab-effect-html.ab-hide,.ab-centering-div.ab-effect-modal.ab-hide,.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-centering-div.ab-effect-fullscreen.ab-hide.ab-animate-out,.ab-centering-div.ab-effect-html.ab-hide.ab-animate-out,.ab-centering-div.ab-effect-modal.ab-hide.ab-animate-out,.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-centering-div.ab-effect-slide .ab-in-app-message,.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-centering-div.ab-effect-slide.ab-show .ab-in-app-message,.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-centering-div.ab-effect-slide.ab-show.ab-animate-in .ab-in-app-message,.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-centering-div.ab-effect-slide.ab-hide .ab-in-app-message,.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-centering-div.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-left,.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-centering-div.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-up,.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-centering-div.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-down,.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-centering-div.ab-effect-slide.ab-hide.ab-animate-out .ab-in-app-message,.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-centering-div .ab-ios-scroll-wrapper,.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-centering-div .ab-in-app-message,.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',sans-serif;z-index:1050;max-width:100%;overflow:hidden;display:inline-block;pointer-events:all;color:#333}.ab-centering-div .ab-in-app-message.ab-no-shadow,.ab-iam-root.v3 .ab-in-app-message.ab-no-shadow{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.ab-centering-div .ab-in-app-message :focus,.ab-centering-div .ab-in-app-message:focus,.ab-iam-root.v3 .ab-in-app-message :focus,.ab-iam-root.v3 .ab-in-app-message:focus{outline:0}.ab-centering-div .ab-in-app-message.ab-clickable,.ab-iam-root.v3 .ab-in-app-message.ab-clickable{cursor:pointer}.ab-centering-div .ab-in-app-message.ab-background,.ab-iam-root.v3 .ab-in-app-message.ab-background{background-color:#fff}.ab-centering-div .ab-in-app-message .ab-close-button,.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;right:0;top:0;z-index:1060}.ab-centering-div .ab-in-app-message .ab-close-button svg,.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}.ab-centering-div .ab-in-app-message .ab-close-button svg.ab-chevron,.ab-iam-root.v3 .ab-in-app-message .ab-close-button svg.ab-chevron{display:none}.ab-centering-div .ab-in-app-message .ab-close-button:active,.ab-iam-root.v3 .ab-in-app-message .ab-close-button:active{background-color:transparent}.ab-centering-div .ab-in-app-message .ab-close-button:focus,.ab-iam-root.v3 .ab-in-app-message .ab-close-button:focus{background-color:transparent}.ab-centering-div .ab-in-app-message .ab-close-button:hover,.ab-iam-root.v3 .ab-in-app-message .ab-close-button:hover{background-color:transparent}.ab-centering-div .ab-in-app-message .ab-close-button:hover svg,.ab-iam-root.v3 .ab-in-app-message .ab-close-button:hover svg{fill-opacity:.8}.ab-centering-div .ab-in-app-message .ab-message-text,.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',sans-serif}.ab-centering-div .ab-in-app-message .ab-message-text.start-aligned,.ab-iam-root.v3 .ab-in-app-message .ab-message-text.start-aligned{text-align:left;text-align:start}.ab-centering-div .ab-in-app-message .ab-message-text.end-aligned,.ab-iam-root.v3 .ab-in-app-message .ab-message-text.end-aligned{text-align:right;text-align:end}.ab-centering-div .ab-in-app-message .ab-message-text.center-aligned,.ab-iam-root.v3 .ab-in-app-message .ab-message-text.center-aligned{text-align:center}.ab-centering-div .ab-in-app-message .ab-message-text::-webkit-scrollbar,.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar{-webkit-appearance:none;width:14px}.ab-centering-div .ab-in-app-message .ab-message-text::-webkit-scrollbar-thumb,.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-centering-div .ab-in-app-message .ab-message-text::-webkit-scrollbar-button,.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar-button{width:0;height:0;display:none}.ab-centering-div .ab-in-app-message .ab-message-text::-webkit-scrollbar-corner,.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar-corner{background-color:transparent}.ab-centering-div .ab-in-app-message .ab-message-header,.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-centering-div .ab-in-app-message .ab-message-header.start-aligned,.ab-iam-root.v3 .ab-in-app-message .ab-message-header.start-aligned{text-align:left;text-align:start}.ab-centering-div .ab-in-app-message .ab-message-header.end-aligned,.ab-iam-root.v3 .ab-in-app-message .ab-message-header.end-aligned{text-align:right;text-align:end}.ab-centering-div .ab-in-app-message .ab-message-header.center-aligned,.ab-iam-root.v3 .ab-in-app-message .ab-message-header.center-aligned{text-align:center}.ab-centering-div .ab-in-app-message.ab-fullscreen,.ab-centering-div .ab-in-app-message.ab-modal,.ab-centering-div .ab-in-app-message.ab-slideup,.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-centering-div .ab-in-app-message.ab-slideup,.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-centering-div .ab-in-app-message.ab-slideup.simulate-phone,.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-centering-div .ab-in-app-message.ab-slideup.simulate-phone .ab-close-button,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-close-button{display:none}.ab-centering-div .ab-in-app-message.ab-slideup.simulate-phone .ab-close-button svg:not(.ab-chevron),.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-close-button svg:not(.ab-chevron){display:none}.ab-centering-div .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-close-button,.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-centering-div .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-close-button svg.ab-chevron,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-close-button svg.ab-chevron{display:inline}.ab-centering-div .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-message-text{border-right-width:40px}.ab-centering-div .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text{max-width:100%;border-right-width:10px}.ab-centering-div .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text span,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text span{max-height:66px}.ab-centering-div .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text.ab-with-icon,.ab-centering-div .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text.ab-with-image,.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-centering-div .ab-in-app-message.ab-slideup.simulate-phone .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-image-area{width:50px;height:50px}.ab-centering-div .ab-in-app-message.ab-slideup.simulate-phone .ab-image-area img,.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-centering-div .ab-in-app-message.ab-slideup.ab-clickable:active .ab-message-text,.ab-centering-div .ab-in-app-message.ab-slideup.ab-clickable:focus .ab-message-text,.ab-centering-div .ab-in-app-message.ab-slideup.ab-clickable:hover .ab-message-text,.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-centering-div .ab-in-app-message.ab-slideup.ab-clickable:active .ab-close-button svg.ab-chevron,.ab-centering-div .ab-in-app-message.ab-slideup.ab-clickable:focus .ab-close-button svg.ab-chevron,.ab-centering-div .ab-in-app-message.ab-slideup.ab-clickable:hover .ab-close-button svg.ab-chevron,.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-centering-div .ab-in-app-message.ab-slideup .ab-message-text,.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-centering-div .ab-in-app-message.ab-slideup .ab-message-text span,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text span{display:block;max-height:150px;overflow:auto}.ab-centering-div .ab-in-app-message.ab-slideup .ab-message-text.ab-with-icon,.ab-centering-div .ab-in-app-message.ab-slideup .ab-message-text.ab-with-image,.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-centering-div .ab-in-app-message.ab-slideup .ab-close-button,.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;right:0;top:0;z-index:1060}.ab-centering-div .ab-in-app-message.ab-slideup .ab-close-button svg,.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}.ab-centering-div .ab-in-app-message.ab-slideup .ab-close-button svg.ab-chevron,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button svg.ab-chevron{display:none}.ab-centering-div .ab-in-app-message.ab-slideup .ab-close-button:active,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:active{background-color:transparent}.ab-centering-div .ab-in-app-message.ab-slideup .ab-close-button:focus,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:focus{background-color:transparent}.ab-centering-div .ab-in-app-message.ab-slideup .ab-close-button:hover,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:hover{background-color:transparent}.ab-centering-div .ab-in-app-message.ab-slideup .ab-close-button:hover svg,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:hover svg{fill-opacity:.8}.ab-centering-div .ab-in-app-message.ab-slideup .ab-image-area,.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-centering-div .ab-in-app-message.ab-slideup .ab-image-area.ab-icon-area,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area.ab-icon-area{width:auto}.ab-centering-div .ab-in-app-message.ab-slideup .ab-image-area img,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area img{float:none;width:100%}.ab-centering-div .ab-in-app-message.ab-fullscreen,.ab-centering-div .ab-in-app-message.ab-modal,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen,.ab-iam-root.v3 .ab-in-app-message.ab-modal{font-size:14px}.ab-centering-div .ab-in-app-message.ab-fullscreen .ab-image-area,.ab-centering-div .ab-in-app-message.ab-modal .ab-image-area,.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-centering-div .ab-in-app-message.ab-fullscreen .ab-image-area .ab-center-cropped-img,.ab-centering-div .ab-in-app-message.ab-modal .ab-image-area .ab-center-cropped-img,.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{background-size:cover;background-repeat:no-repeat;background-position:50% 50%;position:absolute;top:0;right:0;bottom:0;left:0}.ab-centering-div .ab-in-app-message.ab-fullscreen .ab-icon,.ab-centering-div .ab-in-app-message.ab-modal .ab-icon,.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-centering-div .ab-in-app-message.ab-fullscreen.graphic,.ab-centering-div .ab-in-app-message.ab-modal.graphic,.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-centering-div .ab-in-app-message.ab-fullscreen.graphic .ab-message-text,.ab-centering-div .ab-in-app-message.ab-modal.graphic .ab-message-text,.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-centering-div .ab-in-app-message.ab-fullscreen.graphic .ab-message-buttons,.ab-centering-div .ab-in-app-message.ab-modal.graphic .ab-message-buttons,.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-centering-div .ab-in-app-message.ab-fullscreen.graphic .ab-image-area,.ab-centering-div .ab-in-app-message.ab-modal.graphic .ab-image-area,.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-centering-div .ab-in-app-message.ab-fullscreen.graphic .ab-image-area img,.ab-centering-div .ab-in-app-message.ab-modal.graphic .ab-image-area img,.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-centering-div .ab-in-app-message.ab-modal,.ab-iam-root.v3 .ab-in-app-message.ab-modal{padding-top:20px;width:450px;max-width:450px;max-height:720px}.ab-centering-div .ab-in-app-message.ab-modal.simulate-phone,.ab-iam-root.v3 .ab-in-app-message.ab-modal.simulate-phone{max-width:91%;max-width:calc(100% - 30px)}.ab-centering-div .ab-in-app-message.ab-modal.simulate-phone.graphic .ab-image-area img,.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-centering-div .ab-in-app-message.ab-modal .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text{max-height:660px}.ab-centering-div .ab-in-app-message.ab-modal .ab-message-text.ab-with-image,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-image{max-height:524.82758621px}.ab-centering-div .ab-in-app-message.ab-modal .ab-message-text.ab-with-icon,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-icon{max-height:610px}.ab-centering-div .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons{margin-bottom:93px;max-height:587px}.ab-centering-div .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons.ab-with-image,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons.ab-with-image{max-height:451.82758621px}.ab-centering-div .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons.ab-with-icon,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons.ab-with-icon{max-height:537px}.ab-centering-div .ab-in-app-message.ab-modal .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area{margin-top:-20px;max-height:155.17241379px}.ab-centering-div .ab-in-app-message.ab-modal .ab-image-area img,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area img{max-width:100%;max-height:155.17241379px}.ab-centering-div .ab-in-app-message.ab-modal .ab-image-area.ab-icon-area,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area.ab-icon-area{height:auto}.ab-centering-div .ab-in-app-message.ab-modal.graphic,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic{width:auto;overflow:hidden}.ab-centering-div .ab-in-app-message.ab-modal.graphic .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area{display:inline}.ab-centering-div .ab-in-app-message.ab-modal.graphic .ab-image-area img,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area img{max-height:720px;max-width:450px}.ab-centering-div .ab-in-app-message.ab-fullscreen,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen{width:450px;max-height:720px}.ab-centering-div .ab-in-app-message.ab-fullscreen.landscape,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape{width:720px;max-height:450px}.ab-centering-div .ab-in-app-message.ab-fullscreen.landscape .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape .ab-image-area{height:225px}.ab-centering-div .ab-in-app-message.ab-fullscreen.landscape.graphic .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape.graphic .ab-image-area{height:450px}.ab-centering-div .ab-in-app-message.ab-fullscreen.landscape .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape .ab-message-text{max-height:112px}.ab-centering-div .ab-in-app-message.ab-fullscreen .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-message-text{max-height:247px}.ab-centering-div .ab-in-app-message.ab-fullscreen .ab-message-text.ab-with-buttons,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-message-text.ab-with-buttons{margin-bottom:93px}.ab-centering-div .ab-in-app-message.ab-fullscreen .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area{height:360px}.ab-centering-div .ab-in-app-message.ab-fullscreen.graphic .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-image-area{height:720px}.ab-centering-div .ab-in-app-message.ab-fullscreen.simulate-phone,.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-centering-div .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-close-button,.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-centering-div .ab-in-app-message.ab-fullscreen.simulate-phone .ab-image-area,.ab-centering-div .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-image-area,.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-centering-div .ab-in-app-message.ab-fullscreen.simulate-phone .ab-message-text,.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-centering-div .ab-in-app-message.ab-fullscreen.simulate-phone .ab-message-text.ab-with-buttons,.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-centering-div .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-message-text.ab-with-buttons,.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-centering-div .ab-in-app-message.ab-fullscreen.simulate-phone:not(.graphic),.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-centering-div .ab-in-app-message.ab-fullscreen.simulate-phone:not(.graphic) .ab-message-buttons,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone:not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-centering-div .ab-in-app-message.ab-fullscreen.simulate-phone.graphic,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.graphic{display:block}.ab-centering-div .ab-in-app-message.ab-fullscreen.simulate-phone.graphic .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.graphic .ab-image-area{height:100%}.ab-centering-div .ab-in-app-message.ab-fullscreen.simulate-phone.graphic .ab-message-button,.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-centering-div .ab-in-app-message.ab-html-message,.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-centering-div .ab-in-app-message .ab-message-buttons,.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-centering-div .ab-in-app-message .ab-message-button,.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',sans-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-centering-div .ab-in-app-message .ab-message-button:first-of-type,.ab-iam-root.v3 .ab-in-app-message .ab-message-button:first-of-type{float:left;background-color:#fff;color:#1b78cf}.ab-centering-div .ab-in-app-message .ab-message-button:last-of-type,.ab-iam-root.v3 .ab-in-app-message .ab-message-button:last-of-type{float:right;background-color:#1b78cf;color:#fff}.ab-centering-div .ab-in-app-message .ab-message-button:first-of-type:last-of-type,.ab-iam-root.v3 .ab-in-app-message .ab-message-button:first-of-type:last-of-type{float:none;width:auto}.ab-centering-div .ab-in-app-message .ab-message-button:after,.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-centering-div .ab-in-app-message .ab-message-button:after,.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-centering-div .ab-in-app-message .ab-message-button:hover,.ab-iam-root.v3 .ab-in-app-message .ab-message-button:hover{opacity:.8}.ab-centering-div .ab-in-app-message .ab-message-button:active:after,.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-centering-div .ab-in-app-message .ab-message-button:focus:after,.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-centering-div .ab-in-app-message .ab-message-button a,.ab-iam-root.v3 .ab-in-app-message .ab-message-button a{color:inherit;text-decoration:inherit}.ab-centering-div .ab-in-app-message img,.ab-iam-root.v3 .ab-in-app-message img{float:none;display:inline-block}.ab-centering-div .ab-in-app-message .ab-icon,.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-centering-div .ab-in-app-message .ab-icon .fa,.ab-iam-root.v3 .ab-in-app-message .ab-icon .fa{float:none;font-size:30px;width:30px}.ab-centering-div .ab-start-hidden,.ab-iam-root.v3 .ab-start-hidden{visibility:hidden}.ab-centering-div .ab-centered,.ab-centering-div.ab-centering-div .ab-modal,.ab-iam-root.v3 .ab-centered,.ab-iam-root.v3.ab-centering-div .ab-modal{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-email-capture,.ab-iam-root.v3{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.ab-email-capture .ab-page-blocker,.ab-iam-root.v3 .ab-page-blocker{position:fixed;top:0;left:0;width:100%;height:100%;z-index:1040;pointer-events:all;background-color:rgba(51,51,51,.75)}.ab-email-capture .ab-in-app-message.ab-modal .ab-email-capture-input{margin-bottom:30px}.ab-email-capture .ab-in-app-message.ab-modal .ab-message-buttons~.ab-message-text{max-height:541px;margin-bottom:160px}.ab-email-capture .ab-in-app-message.ab-modal .ab-message-buttons~.ab-message-text.with-explanatory-link{max-height:513px;margin-bottom:188px}.ab-email-capture .ab-in-app-message.ab-modal .ab-image-area~.ab-message-text{max-height:385.82758621px}.ab-email-capture .ab-in-app-message.ab-modal .ab-image-area~.ab-message-text.with-explanatory-link{max-height:357.82758621px}.ab-email-capture .ab-in-app-message.ab-modal .ab-email-validation-error{margin-top:62px}.ab-email-capture .ab-in-app-message.ab-modal .ab-explanatory-link{display:block}.ab-email-capture .ab-in-app-message.ab-modal .ab-background,.ab-email-capture .ab-in-app-message.ab-modal .ab-mask{position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1}.ab-email-capture .ab-in-app-message.ab-modal .ab-close-button{line-height:normal}.ab-email-capture .ab-in-app-message.ab-modal .ab-html-close-button{right:3px;top:-1px;font-size:34px;padding-top:0}@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-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-email-capture .ab-in-app-message.ab-modal:not(.force-desktop),.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop){max-width:91%;max-width:calc(100% - 30px)}.ab-email-capture .ab-in-app-message.ab-modal:not(.force-desktop).graphic .ab-image-area img,.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-email-capture .ab-in-app-message.ab-modal:not(.force-desktop),.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop){max-height:91%;max-height:calc(100% - 30px)}.ab-email-capture .ab-in-app-message.ab-modal:not(.force-desktop).graphic .ab-image-area img,.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-email-capture .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text,.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-email-capture .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-image,.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-email-capture .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-icon,.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-email-capture .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons,.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-email-capture .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons.ab-with-image,.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-email-capture .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons.ab-with-icon,.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%}.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)}}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',sans-serif;font-size:13px;line-height:130%;letter-spacing:normal;overflow-y:auto;overflow-x:visible;z-index:1050;-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;right:0;top:0;z-index:1060;opacity:0;-webkit-transition:.5s;-moz-transition:.5s;-o-transition:.5s;transition:.5s}.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}.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%}.ab-feed .ab-card.ab-banner .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',sans-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;padding-left: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 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%}}";};function rd(a){null==a&&(a="");var b=a.split("?").slice(1).join("?");a={};if(null!=b){b=b.split("&");for(var c=0;c<b.length;c++){var d=b[c].split("=");""!==d[0]&&(a[d[0]]=d[1]);}}return a}function sd(a){return a&&(a=a.toString().toLowerCase(),0===a.lastIndexOf("javascript:",0)||0===a.lastIndexOf("data:",0))?!0:!1}function Qc(a,b,c,d,e,f,g,h,l,k,m,q,v){null!=a&&0<a.length&&0<a.indexOf('"ab-in-app-message ab-html-message ab-email-capture"')&&0<a.indexOf('"ab-in-app-message ab-show ab-modal ab-effect-modal"')&&(l=h=!0);W.call(this,a,null,null,b,c,d,e,null,null,null,f||"SWIPE",g,null,null,null,null,null,null,null,null,h,l,null,null,null,k,void 0,void 0,void 0,m,q);this.messageFields=v;}na(Qc,W);Qc.prototype.xf=function(){return !1};
125
- Qc.prototype.fb=function(a){if(this.nf===Oc){if(this.Wa)return !1;this.Wa=!0;}Pb(this.X,a);return !0};
126
- Qc.prototype.aa=function(a,b,c,d,e,f){function g(m,q,v){return (v=m.match(new RegExp("([\\w]+)\\s*=\\s*document.createElement\\(['\"]"+v+"['\"]\\)")))?m.slice(0,v.index+v[0].length)+";"+(v[1]+'.setAttribute("nonce", "'+q+'");')+m.slice(v.index+v[0].length):null}function h(m){var q=m.getAttribute("href"),v=m.onclick;return function(t){if(null==v||"function"!==typeof v||!1!==v()){var w=rd(q).abButtonId;if(null==w||""===w)w=m.getAttribute("id");if(null!=q&&""!==q&&0!==q.indexOf("#")){var r="blank"===
127
- (m.getAttribute("target")||"").toLowerCase().replace("_",""),F=e||l.openTarget===ad||r;r=function(){a.Pb(l,w,q);bc.openUri(q,t,F);};F?r():Wc(l,k,r);}else a.Pb(l,w,q);t.stopPropagation();return !1}}}var l=this;this.tc=document.activeElement;var k=document.createElement("iframe");k.setAttribute("title","Modal Message");f&&(k.style.zIndex=f+1);k.onload=function(){function m(H){return function(){var A=arguments;Wc(l,k,function(){b.display[H].apply(b.display,Array.prototype.slice.call(A));});}}function q(H){return function(){var A=
128
- b.getUser();A[H].apply(A,Array.prototype.slice.call(arguments));}}function v(H){return function(){b[H].apply(b,Array.prototype.slice.call(arguments));}}var t=null,w=a.ih();if(null!=w){t=document.createElement("html");t.innerHTML=l.message;for(var r=t.getElementsByTagName("style"),F=0;F<r.length;F++)r[F].setAttribute("nonce",w);r=t.getElementsByTagName("script");for(F=0;F<r.length;F++){r[F].setAttribute("nonce",w);r[F].innerHTML=r[F].innerHTML.replace(/<style>/g,"<style nonce='"+w+"'>");var D=g(r[F].innerHTML,
129
- w,"script");D&&(r[F].innerHTML=D);if(D=g(r[F].innerHTML,w,"style"))r[F].innerHTML=D;}}k.contentWindow.focus();k.contentWindow.document.write(t?t.innerHTML:l.message);t=k.contentWindow.document.getElementsByTagName("head")[0];null!=t&&(r=document.createElement("style"),r.innerHTML=qd.$e,null!=w&&r.setAttribute("nonce",w),t.appendChild(r),Cc(l)&&(r=document.createElement("style"),r.innerHTML=l.css,r.id=Dc(l),null!=w&&r.setAttribute("nonce",w),t.appendChild(r)),w=k.contentWindow.document.createElement("base"),
130
- w.setAttribute("target","_parent"),t.appendChild(w));w=k.contentWindow.document.getElementsByTagName("title");0<w.length&&k.setAttribute("title",w[0].textContent);w={closeMessage:function(){Wc(l,k);},logClick:function(){var H=[l];0<arguments.length&&H.push(arguments[0]);b.logInAppMessageHtmlClick.apply(b,H);},display:{},web:{}};t=["requestImmediateDataFlush","logCustomEvent","logPurchase","unregisterAppboyPushMessages"];for(r=0;r<t.length;r++)w[t[r]]=v(t[r]);t="setFirstName setLastName setEmail setGender setDateOfBirth setCountry setHomeCity setEmailNotificationSubscriptionType setLanguage addAlias setPushNotificationSubscriptionType setPhoneNumber setCustomUserAttribute addToCustomAttributeArray removeFromCustomAttributeArray incrementCustomUserAttribute setCustomLocationAttribute addToSubscriptionGroup removeFromSubscriptionGroup".split(" ");
131
- var G={};for(r=0;r<t.length;r++)G[t[r]]=q(t[r]);w.getUser=function(){return G};t=["showFeed"];for(r=0;r<t.length;r++)w.display[t[r]]=m(t[r]);t=["registerAppboyPushMessages","trackLocation"];for(r=0;r<t.length;r++)w.web[t[r]]=v(t[r]);k.contentWindow.appboyBridge=w;k.contentWindow.brazeBridge=w;if(l.nf!==Pc){t=k.contentWindow.document.getElementsByTagName("a");for(r=0;r<t.length;r++)t[r].onclick=h(t[r]);t=k.contentWindow.document.getElementsByTagName("button");for(r=0;r<t.length;r++)t[r].onclick=h(t[r]);}t=
132
- k.contentWindow.document.body;null!=t&&(Bc(l)&&(t.id=l.htmlId),r=document.createElement("hidden"),r.onclick=w.closeMessage,r.className="ab-programmatic-close-button",t.appendChild(r));k.contentWindow.dispatchEvent(new CustomEvent("ab.BridgeReady"));-1!==k.className.indexOf("ab-start-hidden")&&(k.className=k.className.replace("ab-start-hidden",""),d(k));document.activeElement!==k&&k.focus();};k.className="ab-in-app-message ab-start-hidden ab-html-message ab-modal-interactions";return "iOS"===vb.ga?(c=
133
- document.createElement("div"),c.className="ab-ios-scroll-wrapper",c.appendChild(k),this.sc=c):this.sc=k};Qc.prototype.oa=function(){return W.prototype.oa.call(this)+" ab-effect-html"};J.HtmlMessage=Qc;function Jc(a,b,c,d,e,f,g,h,l,k,m,q,v,t,w,r,F,D,G,H,A,N,L,I,V,Q,n,u,y){n=n||Ac;W.call(this,a,b,null,c,d,e,f,g,h,l,k||"SWIPE",m,q,v,t,w,r,F,D,G,H,A,N,L,I,V,Q,n,void 0,u,y);}na(Jc,W);Jc.prototype.aa=function(a,b,c,d,e,f){this.tc=document.activeElement;b=W.prototype.aa.call(this,a,c,d,e,f);b.className+=" ab-modal ab-centered";pd(this,a,c,b,e);nd(b);od(this.qd,b);return b};Jc.prototype.oa=function(){return W.prototype.oa.call(this)+" ab-effect-modal"};
134
- fa.Object.defineProperties(Jc.prototype,{Bd:{configurable:!0,enumerable:!0,get:function(){return tc}}});J.ModalMessage=Jc;function Nc(a,b,c,d,e,f,g,h,l,k,m,q,v,t,w,r,F,D,G,H,A,N,L){D=D||zc.Uf;F=F||zc.Tf;W.call(this,a,b||"START",c,d,e,f,g,h,l,k,m,q,v,t,null,w,r,F,D,G,H,A,void 0,void 0,void 0,void 0,void 0,void 0,void 0,N,L);}na(Nc,W);p=Nc.prototype;p.Ja=function(){return !1};
135
- p.aa=function(a,b,c,d,e,f){var g=W.prototype.aa.call(this,a,c,d,e,f);g.className+=" ab-slideup";var h=g.getElementsByClassName("ab-close-button")[0];null!=h&&(a=$b("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",Cc(this)?void 0:sc(this.closeButtonColor)),a.setAttribute("class","ab-chevron"),h.appendChild(a));Vb(g,Wb,function(k){g.className+=" ab-swiped-left";h.onclick(k);});Vb(g,Xb,function(k){g.className+=" ab-swiped-right";h.onclick(k);});if("TOP"===this.slideFrom){a=
136
- Yb;var l=" ab-swiped-up";}else a=Zb,l=" ab-swiped-down";Vb(g,a,function(k){g.className+=l;h.onclick(k);});return g};p.Xe=function(){var a=document.createElement("span");a.appendChild(document.createTextNode(this.message));return a};p.Kc=function(a){var b=a.getElementsByClassName("ab-in-app-message")[0];Tb(b,!0,!0)||("TOP"===this.slideFrom?b.style.top="0px":b.style.bottom="0px");W.prototype.Kc.call(this,a);};p.oa=function(){return W.prototype.oa.call(this)+" ab-effect-slide"};
137
- fa.Object.defineProperties(Nc.prototype,{Bd:{configurable:!0,enumerable:!0,get:function(){return "START"}}});J.SlideUpMessage=Nc;function td(a,b){ud={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"},
138
- cs:{NO_CARDS_MESSAGE:"V tuto chv\u00edli pro v\u00e1s nem\u00e1me \u017e\u00e1dn\u00e9 aktualizace.<br/>Zkontrolujte pros\u00edm znovu pozd\u011bji.",FEED_TIMEOUT_MESSAGE:"Pros\u00edm zkuste to znovu pozd\u011bji."},da:{NO_CARDS_MESSAGE:"Vi har ingen updates.<br/>Pr\u00f8v venligst senere.",FEED_TIMEOUT_MESSAGE:"Pr\u00f8v venligst senere."},de:{NO_CARDS_MESSAGE:"Derzeit sind keine Updates verf\u00fcgbar.<br/>Bitte sp\u00e4ter noch einmal versuchen.",FEED_TIMEOUT_MESSAGE:"Bitte sp\u00e4ter noch einmal versuchen."},
139
- es:{NO_CARDS_MESSAGE:"No tenemos actualizaciones.<br/>Por favor compru\u00e9belo m\u00e1s tarde.",FEED_TIMEOUT_MESSAGE:"Por favor int\u00e9ntelo m\u00e1s tarde."},"es-mx":{NO_CARDS_MESSAGE:"No tenemos ninguna actualizaci\u00f3n.<br/>Vuelva a verificar m\u00e1s tarde.",FEED_TIMEOUT_MESSAGE:"Por favor, vuelva a intentarlo m\u00e1s 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\u00e4ivityksi\u00e4 ei ole saatavilla.<br/>Tarkista my\u00f6hemmin uudelleen.",
140
- FEED_TIMEOUT_MESSAGE:"Yrit\u00e4 my\u00f6hemmin uudelleen."},fr:{NO_CARDS_MESSAGE:"Aucune mise \u00e0 jour disponible.<br/>Veuillez v\u00e9rifier ult\u00e9rieurement.",FEED_TIMEOUT_MESSAGE:"Veuillez r\u00e9essayer ult\u00e9rieurement."},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"},
141
- 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."},
142
- 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\u00f9 tardi.",FEED_TIMEOUT_MESSAGE:"Riprovare pi\u00f9 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"},
143
- 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.",
144
- FEED_TIMEOUT_MESSAGE:"Vennligst pr\u00f8v igjen senere."},pl:{NO_CARDS_MESSAGE:"Brak aktualizacji.<br/>Prosz\u0119 sprawdzi\u0107 ponownie p\u00f3\u017aniej.",FEED_TIMEOUT_MESSAGE:"Prosz\u0119 spr\u00f3bowa\u0107 ponownie p\u00f3\u017aniej."},pt:{NO_CARDS_MESSAGE:"N\u00e3o temos atualiza\u00e7\u00f5es.<br/>Por favor, verifique mais tarde.",FEED_TIMEOUT_MESSAGE:"Por favor, tente mais tarde."},"pt-br":{NO_CARDS_MESSAGE:"N\u00e3o temos nenhuma atualiza\u00e7\u00e3o.<br/>Verifique novamente mais tarde.",
145
- 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."},
146
- sv:{NO_CARDS_MESSAGE:"Det finns inga uppdateringar.<br/>F\u00f6rs\u00f6k igen senare.",FEED_TIMEOUT_MESSAGE:"F\u00f6rs\u00f6k 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."},
147
- 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."},
148
- vi:{NO_CARDS_MESSAGE:"Ch\u00fang t\u00f4i kh\u00f4ng c\u00f3 c\u1eadp nh\u1eadt n\u00e0o.<br/>Vui l\u00f2ng ki\u1ec3m tra l\u1ea1i sau.",FEED_TIMEOUT_MESSAGE:"Vui l\u00f2ng 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."},
149
- "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."}};null!=a&&(a=a.toLowerCase());
150
- if(null!=a&&null==ud[a]){var c=a.indexOf("-");0<c&&(a=a.substring(0,c));}null==ud[a]&&(a="Braze does not yet have a localization for language "+a+", defaulting to English. Please contact us if you are willing and able to help us translate our SDK into this language.",b?x.error(a):x.info(a),a="en");vd=a;}var ud,vd;function wd(a,b){this.cards=a;this.lastUpdated=b;}p=wd.prototype;p.ff=function(){for(var a=0,b=0;b<this.cards.length;b++)this.cards[b].viewed||this.cards[b]instanceof mc||a++;return a};function xd(a,b){b&&(b.className=b.className.replace("ab-show","ab-hide"),setTimeout(function(){b&&b.parentNode&&b.parentNode.removeChild(b);},qc));var c=b.getAttribute(yd);null!=c&&a.N(c);}p.Ma=function(a,b){a.Ma(b);};p.La=function(a,b){a.La(b);};
151
- function zd(a,b,c){var d=document.createElement("div");d.className="ab-feed-body";d.setAttribute("aria-label","Feed");d.setAttribute("role","feed");if(null==a.lastUpdated){c=document.createElement("div");c.className="ab-no-cards-message";var e=document.createElement("i");e.className="fa fa-spinner fa-spin fa-4x ab-initial-spinner";c.appendChild(e);d.appendChild(c);}else{e=!1;for(var f=function(k){a.La(b,k);},g=function(k){b.Hc(k);},h=0;h<a.cards.length;h++){var l=a.cards[h]instanceof mc;!l||a instanceof
152
- Ad?(d.appendChild(a.cards[h].aa(f,g,c)),e=e||!l):x.error("Received a control card for a legacy news feed. Control cards are only supported with content cards.");}e||(c=document.createElement("div"),c.className="ab-no-cards-message",c.innerHTML=ud[vd].NO_CARDS_MESSAGE,c.setAttribute("role","article"),d.appendChild(c));}return d}
153
- function Bd(a,b,c){if(null!=c){var d=[];c=c.querySelectorAll(".ab-card");a.od||(a.od={});for(var e=0;e<c.length;e++){var f=c[e].getAttribute("data-ab-card-id");if(!a.od[f]){var g=c[e];g=null!=g&&!!g.getAttribute("data-ab-had-top-impression");var h=c[e];h=null!=h&&!!h.getAttribute("data-ab-had-bottom-impression");var l=g,k=h,m=Tb(c[e],!0,!1,!1),q=Tb(c[e],!1,!0,!1);if(!g&&m){g=!0;var v=c[e];null!=v&&v.setAttribute("data-ab-had-top-impression",!0);}!h&&q&&(h=!0,v=c[e],null!=v&&v.setAttribute("data-ab-had-bottom-impression",
154
- !0));if(g&&h&&(m||q||oc(c[e]),!l||!k))for(g=0;g<a.cards.length;g++)if(a.cards[e].id===f){a.od[a.cards[e].id]=!0;d.push(a.cards[e]);break}}}0<d.length&&a.Ma(b,d);}}p.Se=function(a){a.Nc();};
155
- function Cd(a,b,c){c.setAttribute("aria-busy","true");var d=c.querySelectorAll(".ab-refresh-button")[0];null!=d&&(d.className+=" fa-spin");var e=(new Date).valueOf().toString();c.setAttribute(Dd,e);setTimeout(function(){if(c.getAttribute(Dd)===e){for(var f=c.querySelectorAll(".fa-spin"),g=0;g<f.length;g++)f[g].className=f[g].className.replace(/fa-spin/g,"");f=c.querySelectorAll(".ab-initial-spinner")[0];null!=f&&(g=document.createElement("span"),g.innerHTML=ud[vd].FEED_TIMEOUT_MESSAGE,f.parentNode.appendChild(g),
156
- f.parentNode.removeChild(f));"true"===c.getAttribute("aria-busy")&&c.setAttribute("aria-busy","false");}},Ed);a.Se(b);}
157
- p.aa=function(a,b){function c(k){Cd(e,a,f);k.stopPropagation();}function d(k){xd(a,f);k.stopPropagation();}var e=this,f=document.createElement("div");f.className="ab-feed ab-hide ab-effect-slide";f.setAttribute("role","dialog");f.setAttribute("tabindex","-1");var g=document.createElement("div");g.className="ab-feed-buttons-wrapper";g.setAttribute("role","group");f.appendChild(g);var h=document.createElement("i");h.className="fa fa-times ab-close-button";h.setAttribute("aria-label","Close Feed");h.setAttribute("tabindex",
158
- "0");h.setAttribute("role","button");h.addEventListener("keydown",function(k){32!==k.keyCode&&13!==k.keyCode||d(k);});h.onclick=d;var l=document.createElement("i");l.className="fa fa-refresh ab-refresh-button";null==this.lastUpdated&&(l.className+=" fa-spin");l.setAttribute("aria-label","Refresh Feed");l.setAttribute("tabindex","0");l.setAttribute("role","button");l.addEventListener("keydown",function(k){32!==k.keyCode&&13!==k.keyCode||c(k);});l.onclick=c;g.appendChild(l);g.appendChild(h);f.appendChild(zd(this,
159
- a,b));f.onscroll=function(){Bd(e,a,f);};return f};function Fd(a,b,c,d,e,f){if(Ca(b)){for(var g=[],h=0;h<b.length;h++)b[h]instanceof cc&&g.push(b[h]);a.cards=g;a.lastUpdated=c;null!=d&&(d.setAttribute("aria-busy","false"),null==a.lastUpdated?xd(e,d):(b=d.querySelectorAll(".ab-feed-body")[0],null!=b&&(f=zd(a,e,f),b.parentNode.replaceChild(f,b),Bd(a,e,f.parentNode))));}}var qc=500,yd="data-update-subscription-id",Dd="data-last-requested-refresh",Ed=1E4;J.Feed=wd;J.Feed.prototype.getUnreadCardCount=wd.prototype.ff;function Ad(a,b){wd.call(this,a,b);}na(Ad,wd);Ad.prototype.jh=function(){return wd.prototype.ff.call(this)};Ad.prototype.Ma=function(a,b){a.Ma(b,!0);};Ad.prototype.La=function(a,b){a.La(b,!0);};Ad.prototype.Se=function(a){a.Na();};J.ContentCards=Ad;J.ContentCards.prototype.getUnviewedCardCount=Ad.prototype.jh;function $a(){this.h=!1;this.j=[];}function Gd(a){this.bb=a;}Gd.prototype.fa=function(a){return null==this.bb||this.bb===a[0]};Gd.prototype.A=function(){return this.bb};function Hd(a,b,c,d){this.lf=a;this.Mc=b;this.nb=c;this.I=d;this.Mc===Id&&this.nb!==Jd&&this.nb!==Kd&&this.nb!==Ld&&this.nb!==Md&&(this.I=Ja(this.I));}
160
- Hd.prototype.fa=function(a){var b=null;null!=a&&(b=a[this.lf]);switch(this.nb){case Nd:return null!=b&&b.valueOf()===this.I.valueOf();case Od:return null==b||b.valueOf()!==this.I.valueOf();case Pd:return typeof b===typeof this.I&&b>this.I;case Jd:return this.Mc===Id?null!=b&&Da(b)&&((new Date).valueOf()-b.valueOf())/1E3<=this.I:typeof b===typeof this.I&&b>=this.I;case Qd:return typeof b===typeof this.I&&b<this.I;case Kd:return this.Mc===Id?null!=b&&Da(b)&&((new Date).valueOf()-b.valueOf())/1E3>=this.I:
161
- typeof b===typeof this.I&&b<=this.I;case Rd:return null!=b&&"string"===typeof b&&typeof b===typeof this.I&&null!=b.match(this.I);case Sd:return null!=b;case Td:return null==b;case Ld:return null!=b&&Da(b)&&(b.valueOf()-(new Date).valueOf())/1E3<this.I;case Md:return null!=b&&Da(b)&&(b.valueOf()-(new Date).valueOf())/1E3>this.I;case Ud:return null==b||typeof b!==typeof this.I||"string"!==typeof b||null==b.match(this.I)}return !1};
162
- Hd.prototype.A=function(){var a=this.I;Da(this.I)&&(a=Ia(a.valueOf()));return {k:this.lf,t:this.Mc,c:this.nb,v:a}};var Nd=1,Od=2,Pd=3,Jd=4,Qd=5,Kd=6,Rd=10,Sd=11,Td=12,Ld=15,Md=16,Ud=17,Id="date";function Vd(a){this.filters=a;}Vd.prototype.fa=function(a){for(var b=!0,c=0;c<this.filters.length;c++){for(var d=this.filters[c],e=!1,f=0;f<d.length;f++)if(d[f].fa(a)){e=!0;break}if(!e){b=!1;break}}return b};function Wd(a){if(null==a||!Ca(a))return null;for(var b=[],c=0;c<a.length;c++){for(var d=[],e=a[c],f=0;f<e.length;f++){var g=e[f];d.push(new Hd(g.property_key,g.property_type,g.comparator,g.property_value));}b.push(d);}return new Vd(b)}
163
- Vd.prototype.A=function(){for(var a=[],b=0;b<this.filters.length;b++){for(var c=this.filters[b],d=[],e=0;e<c.length;e++)d.push(c[e].A());a.push(d);}return a};function Xd(a){for(var b=[],c=0;c<a.length;c++){for(var d=[],e=a[c],f=0;f<e.length;f++){var g=e[f];d.push(new Hd(g.k,g.t,g.c,g.v));}b.push(d);}return new Vd(b)}function Yd(a,b){this.bb=a;this.eb=b;}Yd.prototype.fa=function(a){if(null==this.bb||null==this.eb)return !1;var b=a[1];return a[0]===this.bb&&this.eb.fa(b)};Yd.prototype.A=function(){return {e:this.bb,pf:this.eb.A()}};function Zd(a,b){this.Za=a;this.Gb=b;}Zd.prototype.fa=function(a){if(null==this.Za)return !1;var b=$d(a[0],this.Za);if(!b)return !1;var c=null==this.Gb||0===this.Gb.length;if(null!=this.Gb)for(var d=0;d<this.Gb.length;d++)if(this.Gb[d]===a[1]){c=!0;break}return b&&c};Zd.prototype.A=function(){return this.Za};function ae(a){this.cb=a;}ae.prototype.fa=function(a){return null==this.cb||a[0]===this.cb};ae.prototype.A=function(){return this.cb};function be(a,b){this.cb=a;this.eb=b;}be.prototype.fa=function(a){if(null==this.cb||null==this.eb)return !1;var b=a[1];return a[0]===this.cb&&this.eb.fa(b)};be.prototype.A=function(){return {id:this.cb,pf:this.eb.A()}};function ce(a){this.Za=a;}ce.prototype.fa=function(a){return null==this.Za?!0:$d(a[0],this.Za)};ce.prototype.A=function(){return this.Za};var de={OPEN:"open",fd:"purchase",ne:"push_click",Tc:"custom_event",ec:"iam_click",V:"test"};function ee(a,b){this.type=a;this.data=b;}function fe(a,b,c){return ge[a.type]===b&&(null==a.data||a.data.fa(c))}function $d(a,b){var c=null;try{c=window.atob(a);}catch(d){return x.info("Failed to unencode analytics id "+a+": "+d.message),!1}return b===c.split("_")[0]}
164
- function he(a){var b=a.type;switch(b){case ie:var c=null;break;case je:a=a.data;c=new ae(a?a.product_id:null);break;case ke:a=a.data;c=new be(a?a.product_id:null,a?Wd(a.property_filters):null);break;case le:a=a.data;c=new ce(a?a.campaign_id:null);break;case me:a=a.data;c=new Gd(a?a.event_name:null);break;case ne:a=a.data;c=new Yd(a?a.event_name:null,a?Wd(a.property_filters):null);break;case oe:a=a.data;c=new Zd(a?a.id:null,a?a.buttons:null);break;case pe:c=null;}return new ee(b,c)}
165
- ee.prototype.A=function(){return {t:this.type,d:this.data?this.data.A():null}};function qe(a){switch(a.t){case ie:var b=null;break;case je:b=new ae(a.d);break;case ke:b=a.d||{};b=new be(b.id,Xd(b.pf||[]));break;case le:b=new ce(a.d);break;case me:b=new Gd(a.d);break;case ne:b=a.d||{};b=new Yd(b.e,Xd(b.pf||[]));break;case oe:b=new Zd(a.d);break;case pe:b=null;}return new ee(a.t,b)}
166
- var ie="open",je="purchase",ke="purchase_property",le="push_click",me="custom_event",ne="custom_event_property",oe="iam_click",pe="test",ge={};ge[ie]=de.OPEN;ge[je]=de.fd;ge[ke]=de.fd;ge[le]=de.ne;ge[me]=de.Tc;ge[ne]=de.Tc;ge[oe]=de.ec;ge[pe]=de.V;function re(a,b,c,d,e,f,g,h,l,k,m,q){this.id=a;this.ob=b||[];void 0===c&&(c=null);this.startTime=c;void 0===d&&(d=null);this.endTime=d;this.priority=e||0;this.type=f;this.ab=h||0;null==k&&(k=1E3*(this.ab+30));this.Oa=k;this.data=g;null==l&&(l=se);this.Rb=l;this.kf=m;this.Ca=q||null;}
167
- function te(a,b){var c=(new Date).valueOf()-b;(b=null==b||isNaN(c)||null==a.Oa||c<a.Oa)||x.info("Trigger action "+a.type+" is no longer eligible for display - fired "+c+"ms ago and has a timeout of "+a.Oa+"ms");return !b}re.prototype.A=function(){for(var a=[],b=0;b<this.ob.length;b++)a.push(this.ob[b].A());return {i:this.id,c:a,s:this.startTime,e:this.endTime,p:this.priority,t:this.type,da:this.data,d:this.ab,r:this.Rb,tm:this.Oa,ss:this.kf,ld:this.Ca}};
168
- function ue(a){for(var b=[],c=0;c<a.c.length;c++)b.push(qe(a.c[c]));return new re(a.i,b,La(a.s),La(a.e),a.p,a.t,a.da,a.d,a.r,a.tm,a.ss,a.ld)}var se=-1,ve={Xc:"inapp",we:"templated_iam"};function we(a,b){a=Math.ceil(a);b=Math.floor(b);return Math.floor(Math.random()*(b-a+1))+a}function xe(a){var b,c=!1;try{if(window.XMLHttpRequest&&(b=new XMLHttpRequest)&&"undefined"!==typeof b.withCredentials||("undefined"!==typeof XDomainRequest?(b=new XDomainRequest,c=b.async=!0):x.error("This browser does not have any supported ajax options!")),null!=b){var d=function(){"function"===typeof a.error&&a.error(b.status);"function"===typeof a.zc&&a.zc(!1);};b.onload=function(){if(c)var h=!0;else{if(4!==b.readyState)return;h=200<=b.status&&300>b.status||304===b.status;}if(h){if("function"===
169
- typeof a.h){try{var l=JSON.parse(b.responseText);}catch(k){a.h({error:""===b.responseText?"empty_response":"invalid_json_response",response:b.responseText});}l&&a.h(l);}"function"===typeof a.zc&&a.zc(!0);}else d();};b.onerror=function(){d();};b.ontimeout=function(){d();};var e=JSON.stringify(a.data);if(c)b.onprogress=function(){},b.open("post",a.url);else{b.open("POST",a.url,!0);b.setRequestHeader("Content-type","application/json");b.setRequestHeader("X-Requested-With","XMLHttpRequest");for(var f=a.headers||
170
- [],g=0;g<f.length;g++)b.setRequestHeader(f[g][0],f[g][1]);}b.send(e);}}catch(h){x.error("Network request error: "+h.message);}}function ye(a,b,c,d,e,f,g,h,l,k,m,q){var v=this;this.$=a;this.Kg=b;this.Oe=c;this.Fg=d;this.Bb=e;this.lb=0;this.pc=k.R.df;this.Ie=null;this.D=f;this.mc=g;this.f=h;this.J=l;this.b=k;this.W=q;this.Dg=m;this.sd=new Nb;this.Eb=["npm"];this.Ag=50;this.Va=0;ze(this.W,function(){v.Va=0;});this.Cg=1E3;this.Bg=6E4;}
171
- function Ae(a,b){var c=Be(a.mc),d=c.Ac(),e=S(a.b,M.cc);Ha(e,d)||(b.device=d);b.api_key=a.$;b.time=Ia((new Date).valueOf(),!0);b.sdk_version=a.Kg;a.Oe&&(b.sdk_flavor=a.Oe);b.app_version=a.Fg;b.device_id=c.id;c=S(a.b,M.se)||[];d=S(a.b,M.ue)||"";0<a.Eb.length&&(!Ha(c,a.Eb)||d!==a.D.Kb())&&(b.sdk_metadata=a.Eb);return b}
172
- function Ce(a,b,c,d){var e=c.auth_error,f=c.error;if(!e&&!f)return !0;if(e){a.Va+=1;c={errorCode:e.error_code};d=ba(d);for(f=d.next();!f.done;f=d.next())f=f.value,Ca(f)&&"X-Braze-Auth-Signature"===f[0]&&(c.signature=f[1]);b.respond_with&&b.respond_with.user_id?c.userId=b.respond_with.user_id:b.user_id&&(c.userId=b.user_id);(d=e.reason)?(c.reason=d,e="due to "+d):e="with error code "+e.error_code+".";a.W.Db||(e+=' Please use the "enableSdkAuthentication" initialization option to enable authentication.');
173
- x.error("SDK Authentication failed "+e);De(a,b);Pb(a.W.ze,c);return !1}if(f){e=f;switch(e){case "empty_response":return bb(a.b,[new E(a.f.o(),z.Yc,(new Date).valueOf(),a.D.Kb,{e:"Received successful response with empty body."})]),x.info("Received successful response with empty body."),!1;case "invalid_json_response":return bb(a.b,[new E(a.f.o(),z.Yc,(new Date).valueOf(),a.D.Kb,{e:"Received successful response with invalid JSON: "+c.response})]),x.info("Received successful response with invalid JSON"),
174
- !1;case "invalid_api_key":e='The API key "'+b.api_key+'" is invalid for the baseUrl '+a.Bb;break;case "blacklisted":e="Sorry, we are not currently accepting your requests. If you think this is in error, please contact us.";break;case "no_device_identifier":e="No device identifier. Please contact support@braze.com";}x.error("Backend error: "+e);}return !1}
175
- function Fe(a,b,c,d,e,f,g,h){null==d&&(d=!0);d&&Ge(a);var l=Ab(a.b),k=Gb(a.b),m=He(a.D);if(0<l.length)for(var q=a.f.o(),v=ba(l),t=v.next();!t.done;t=v.next()){t=t.value;var w=null==t.gb&&null==q||t.gb===q;t.type===z.ve&&w&&(m=!0);}if(!h&&!m&&a.Va>=a.Ag)x.info("Declining to flush data due to 50 consecutive authentication failures");else if(h=c||m,!d||0!==l.length||0!==k.length||b||h){var r=!1,F=function(A,N){var L=!1;xe({url:""+a.Bb+"/data/",data:A,headers:N,h:function(I){null!=A.respond_with&&A.respond_with.triggers&&
176
- (a.lb=Math.max(a.lb-1,0));if(Ce(a,A,I,N)){a.Va=0;var V=a.J;if(null!=I&&null!=I.config){var Q=I.config;if(Q.time>Ie(V).Nb){Q=new Je(Q.time,Q.events_blacklist,Q.attributes_blacklist,Q.purchases_blacklist,Q.messaging_session_timeout,Q.vapid_public_key,Q.content_cards);var n=!1;null!=Q.ra&&Ie(V).ra!==Q.ra&&(n=!0);var u=!1;null!=Q.Hb.enabled&&(Ie(V).Hb.enabled||!1)!==Q.Hb.enabled&&(u=!0);V.uc=Q;O(V.b,M.te,Q.A());n&&Pb(V.xd);u&&Pb(V.Ae);}}if(null==A.respond_with||A.respond_with.user_id==a.f.o())null!=A.device&&
177
- O(a.b,M.cc,A.device),null!=A.sdk_metadata&&(O(a.b,M.se,A.sdk_metadata),O(a.b,M.ue,a.D.Kb())),a.Dg(I),"function"===typeof e&&e();}else I.auth_error&&(L=!0);},error:function(){null!=A.respond_with&&A.respond_with.triggers&&(a.lb=Math.max(a.lb-1,0));De(a,A);"function"===typeof f&&f();},zc:function(I){"function"===typeof g&&g(I);if(d&&!r){if(I&&!L)Ke(a);else{I=a.Ie;if(null==I||I<1E3*a.pc)I=1E3*a.pc;Ke(a,Math.min(3E5,we(1E3*a.pc,3*I)));}r=!0;}}});},D=function(A){return null!=A?A:""},G={};c=D(a.f.o());if(b||
178
- h)G[c]=Le(a,b,h),h&&a.lb++;b=function(A,N){var L=D(N.user_id);G[L]||(G[L]=Le(a,!1,!1,L));G[L][A]||(G[L][A]=[]);G[L][A].push(N);};l=ba(l);for(h=l.next();!h.done;h=l.next())b("events",h.value.Ac());k=ba(k);for(l=k.next();!l.done;l=k.next())b("attributes",l.value);k=!1;l={};for(var H in G)a.W.Db&&H!==c?De(a,G[H]):(l.ub=Ae(a,G[H]),l.Pc=Me(a,l.ub),Ne(l.ub,function(A){return function(){return F(A.ub,A.Pc)}}(l)),k=!0),l={ub:l.ub,Pc:l.Pc};d&&!k?Ke(a):m&&(x.info("Invoking new session subscriptions"),Pb(a.sd));}else Ke(a),
179
- "function"===typeof g&&g(!0);}function Ne(a,b){var c=a.device;c&&c.os_version instanceof Promise?c.os_version.then(function(d){a.device.os_version=d;b();}):b();}function De(a,b){if(b.events){for(var c=[],d=ba(b.events),e=d.next();!e.done;e=d.next())e=e.value,e=new E(e.user_id,e.name,e.time,e.session_id,e.data),e.time*=1E3,c.push(e);bb(a.b,c);}if(b.attributes)for(b=ba(b.attributes),c=b.next();!c.done;c=b.next())Eb(a.b,c.value);}function Oe(a,b){var c="HTTP error ";null!=a&&(c+=a+" ");x.error(c+b);}
180
- function Pe(a,b,c,d,e){var f=Le(a,!1,!1);f=Ae(a,f);f.template={trigger_id:b.Pa,trigger_event_type:c};null!=d&&(f.template.data=d.Ac());var g=Me(a,f);Ne(f,function(){xe({url:""+a.Bb+"/template/",data:f,headers:g,h:function(h){Ce(a,f,h,g)?(a.Va=0,null==h||null==h.templated_message?a.M(b.Pa,dd.yb):(h=h.templated_message,h.type!==ve.Xc?a.M(b.Pa,dd.Ab):(h=Ec(h.data),null==h?a.M(b.Pa,dd.Ab):"function"===typeof b.zf?b.zf(h):a.M(b.Pa,dd.yb)))):(a.M(b.Pa,dd.yb),"function"===typeof b.yf&&b.yf());},error:function(h){var l=
181
- "getting user personalization for message "+b.Pa;if((new Date).valueOf()-b.Ec>b.Oa)a.M(b.Pa,dd.yb);else{var k=Math.min(b.Oa,a.Bg),m=a.Cg;null==e&&(e=m);var q=Math.min(k,we(m,3*e));l+=". Retrying in "+q+"ms";setTimeout(function(){Pe(a,b,c,d,q);},q);}Oe(h,l);}});});}p=ye.prototype;
182
- p.Na=function(a,b,c,d,e){var f=this,g=Ae(this,{});g.last_full_sync_at=a;g.last_card_updated_at=b;a=this.f.o();null!=a&&(g.user_id=a);var h=[["X-Braze-Api-Key",this.$],["X-Braze-DataRequest","true"],["X-Braze-ContentCardsRequest","true"]];this.W.Db&&(a=S(this.W.b,M.jb),null!=a&&h.push(["X-Braze-Auth-Signature",a]));Ne(g,function(){xe({url:""+f.Bb+"/content_cards/sync",data:g,headers:h,h:function(l){Ce(f,g,l,h)?(f.Va=0,c(l),"function"===typeof d&&d()):"function"===typeof e&&e();},error:function(l){Oe(l,
183
- "retrieving content cards");"function"===typeof e&&e();}});});};function Le(a,b,c,d){var e={};b&&(e.feed=!0);c&&(e.triggers=!0);(b=null!=d?d:a.f.o())&&(e.user_id=b);e.config={config_time:Ie(a.J).Nb};return {respond_with:e}}
184
- function Me(a,b){var c=[["X-Braze-Api-Key",a.$]],d=!1;null!=b.respond_with&&b.respond_with.triggers&&(c.push(["X-Braze-TriggersRequest","true"]),d=!0);null!=b.respond_with&&b.respond_with.feed&&(c.push(["X-Braze-FeedRequest","true"]),d=!0);d&&c.push(["X-Braze-DataRequest","true"]);a.W.Db&&(a=S(a.W.b,M.jb),null!=a&&c.push(["X-Braze-Auth-Signature",a]));return c}
185
- function Qe(a){if(null==a.campaignId&&null==a.cardId&&null==a.triggerId)return x.info("The in-app message has no analytics id. Not logging event to Braze servers."),null;var b={};null!=a.cardId&&(b.card_ids=[a.cardId]);null!=a.campaignId&&(b.campaign_ids=[a.campaignId]);null!=a.triggerId&&(b.trigger_ids=[a.triggerId]);return b}function Re(a){for(var b=null,c=0;c<a.length;c++)null!=a[c].id&&""!==a[c].id&&(b=b||{},b.ids=b.ids||[],b.ids.push(a[c].id));return b}
186
- function Ke(a,b){a.Ce||(null==b&&(b=1E3*a.pc),Ge(a),a.qc=setTimeout(function(){if(document.hidden){var c=function(){document.hidden||(document.removeEventListener("visibilitychange",c,!1),Fe(a));};document.addEventListener("visibilitychange",c,!1);}else Fe(a);},b),a.Ie=b);}function Ge(a){null!=a.qc&&(clearTimeout(a.qc),a.qc=null);}p.Hd=function(){this.Ce=!1;Ke(this);};p.Jb=function(){this.sd.K();this.W.td.K();Ge(this);this.Ce=!0;Fe(this,null,null,!1);this.qc=null;};function Se(a,b){Ob(a.sd,b);}
187
- p.Lc=function(a){var b=this,c=this.D.Kb(),d=ab(this.D);if(c=c!==d)yb(this.b,Cb.Uc),yb(this.b,Cb.lc);Fe(this,null,!1,null,null,null);hb(this);if(c&&null!=a&&(a.Mb()||a.Ka())){var e=function(){a.Hg?x.info("Push token maintenance is disabled, not refreshing token for backend."):a.subscribe();};c=za.ba;ua(new qa(c),c.G.gd,function(f,g){g&&e();},function(){var f=S(b.b,M.kc);(null==f||f)&&e();});}};
188
- p.$a=function(a,b,c,d){var e=this.f.o();if(e!==a){var f=this.D,g=zb(f.b,Cb.Ta);null!=g&&(f.b.rc.remove(Cb.Ta),g=Te(f,(new Date).valueOf(),g),null==g||bb(f.b,[g]));null!=e&&Fe(this,null,!1,null,null,null);f=this.f;g=null==f.o();xb(f.b,Cb.lc,new Oa(a));if(g){f=f.b;g=f.R.Z(M.Qa);if(null!=g){var h=M.Qc,l=g[h];null!=l&&(g[h]=void 0,f.R.store(M.Qa,g),l.user_id=a,Eb(f,l));}h=zb(f,Cb.Ta);g=null;null!=h&&(g=h.ia);h=Ab(f);if(null!=h)for(l=0;l<h.length;l++){var k=h[l];null==k.gb&&k.sessionId==g&&(k.gb=a);null==
189
- k||bb(f,[k]);}}d?this.W.Tb(d):(d=this.W,Bb(d.b,M.jb),f=za.ba,va(new qa(f),f.G.qe,d.ye));for(d=0;d<b.length;d++)b[d].$a(null==e);null!=e&&Bb(this.b,M.vb);Bb(this.b,M.cc);this.Lc(c);x.info('Changed user to "'+a+'".');}else b="Doing nothing.",d&&S(this.W.b,M.jb)!==d&&(this.W.Tb(d),b="Updated SDK authentication signature"),x.info("Current user is already "+a+". "+b);};p.rb=function(){return new K(this.f,this)};p.tb=function(a){Ge(this);ab(this.D);Fe(this,null,null,null,null,null,a,!0);};
190
- p.Nc=function(){ab(this.D);Fe(this,!0);};function Ue(a,b,c){ab(a.D);x.info("Requesting explicit trigger refresh.");Fe(a,null,!0,null,b,c);}p.Jd=function(a,b){var c=new $a,d=ab(this.D);if(-1!==Ie(this.J).cf.indexOf(a))return x.info('Custom Event "'+a+'" is blocklisted, ignoring.'),c;c.j.push(new E(this.f.o(),z.CustomEvent,(new Date).valueOf(),d,{n:a,p:b}));c.h=bb(this.b,c.j);return c};
191
- function gb(a,b,c,d){var e=new $a,f=ab(a.D);if(ib(a.J,c))return x.info('Custom Attribute "'+c+'" is blocklisted, ignoring.'),e;e.j.push(new E(a.f.o(),b,(new Date).valueOf(),f,{key:c,value:d}));e.h=bb(a.b,e.j);return e}p.Kd=function(a,b,c,d,e){var f=new $a,g=ab(this.D);if(-1!==Ie(this.J).mf.indexOf(a))return x.info('Purchase "'+a+'" is blocklisted, ignoring.'),f;f.j.push(new E(this.f.o(),z.eg,(new Date).valueOf(),g,{pid:a,c:c,p:b,q:d,pr:e}));f.h=bb(this.b,f.j);return f};
192
- p.Oc=function(a,b,c,d,e,f){var g=new $a,h=ab(this.D);b={latitude:b,longitude:c};null!=d&&(b.altitude=d);null!=e&&(b.ll_accuracy=e);null!=f&&(b.alt_accuracy=f);g.j.push(new E(a,z.lg,(new Date).valueOf(),h,b));g.h=bb(this.b,g.j);return g};
193
- p.Qb=function(a){var b=new $a,c=ab(this.D);if(a instanceof Fc)b.j.push(new E(this.f.o(),z.Mf,(new Date).valueOf(),c,{trigger_ids:[a.triggerId]}));else{if(!a.Od())return x.info("This in-app message has already received an impression. Ignoring analytics event."),b;a=Qe(a);if(null==a)return b;b.j.push(new E(this.f.o(),z.dg,(new Date).valueOf(),c,a));}b.h=bb(this.b,b.j);return b};
194
- p.Jc=function(a){var b=new $a,c=ab(this.D);if(!a.fb())return x.info("This in-app message has already received a click. Ignoring analytics event."),b;a=Qe(a);if(null==a)return b;b.j.push(new E(this.f.o(),z.ke,(new Date).valueOf(),c,a));b.h=bb(this.b,b.j);return b};
195
- p.Ic=function(a,b){var c=new $a,d=ab(this.D);if(!a.fb())return x.info("This in-app message button has already received a click. Ignoring analytics event."),c;b=Qe(b);if(null==b)return c;if(a.id===md)return x.info("This in-app message button does not have a tracking id. Not logging event to Braze servers."),c;null!=a.id&&(b.bid=a.id);c.j.push(new E(this.f.o(),z.je,(new Date).valueOf(),d,b));c.h=bb(this.b,c.j);return c};
196
- p.Pb=function(a,b,c){var d=new $a,e=ab(this.D);if(!a.fb(c))return x.info("This in-app message has already received a click. Ignoring analytics event."),d;a=Qe(a);if(null==a)return d;c=z.ke;null!=b&&(a.bid=b,c=z.je);d.j.push(new E(this.f.o(),c,(new Date).valueOf(),e,a));d.h=bb(this.b,d.j);return d};p.M=function(a,b){var c=new $a,d=ab(this.D);a={trigger_ids:[a],error_code:b};c.j.push(new E(this.f.o(),z.cg,(new Date).valueOf(),d,a));c.h=bb(this.b,c.j);return c};
197
- p.Ma=function(a,b){var c=new $a,d=ab(this.D),e=[],f=[];var g=b?S(this.b,M.ib)||{}:S(this.b,M.vb)||{};for(var h=0;h<a.length;h++)a[h].Od(),a[h]instanceof mc?f.push(a[h]):e.push(a[h]),g[a[h].id]=!0;a=Re(e);f=Re(f);if(null==a&&null==f)return c;b?O(this.b,M.ib,g):O(this.b,M.vb,g);null!=a&&c.j.push(new E(this.f.o(),b?z.Jf:z.Gf,(new Date).valueOf(),d,a));null!=f&&b&&c.j.push(new E(this.f.o(),z.Lf,(new Date).valueOf(),d,f));c.h=bb(this.b,c.j);return c};
198
- p.La=function(a,b){var c=new $a,d=ab(this.D);a.fb();if(null==a.url||""===a.url)return x.info("Card "+a.id+" has no url. Not logging click to Braze servers."),c;if(b){var e=S(this.b,M.hb)||{};e[a.id]=!0;O(this.b,M.hb,e);}a=Re([a]);if(null==a)return c;c.j.push(new E(this.f.o(),b?z.Hf:z.Ff,(new Date).valueOf(),d,a));c.h=bb(this.b,c.j);return c};
199
- p.Hc=function(a){var b=new $a,c=ab(this.D);if(!a.Nd())return x.info("Card "+a.id+" refused this dismissal. Ignoring analytics event."),b;var d=S(this.b,M.ua)||{};d[a.id]=!0;O(this.b,M.ua,d);a=Re([a]);if(null==a)return b;b.j.push(new E(this.f.o(),z.If,(new Date).valueOf(),c,a));b.h=bb(this.b,b.j);return b};function Ve(a,b){var c=new $a,d=ab(a.D);c.j.push(new E(a.f.o(),z.fg,(new Date).valueOf(),d,{n:b}));c.h=bb(a.b,c.j);return c}
200
- function We(a,b,c){var d=ab(a.D);return new E(a.f.o(),z.sg,b,d,{cid:c})}function hb(a){var b=za.ba;(new qa(b)).setItem(b.G.Rf,1,{baseUrl:a.Bb,data:{api_key:a.$,device_id:Be(a.mc).id},userId:a.f.o(),sdkAuthEnabled:a.W.Db});}function jb(a,b,c){var d=new $a,e=ab(a.D);b={group_id:b,status:c};d.j.push(new E(a.f.o(),z.zg,(new Date).valueOf(),e,b));d.h=bb(a.b,d.j);return d}p.zd=function(a){a=ba(a);for(var b=a.next();!b.done;b=a.next())b=b.value,-1===this.Eb.indexOf(b)&&this.Eb.push(b);};var Xe={BROWSER:"browser",BROWSER_VERSION:"browserVersion",OS:"os",RESOLUTION:"resolution",LANGUAGE:"language",TIME_ZONE:"timeZone",USER_AGENT:"userAgent"};J.DeviceProperties=Xe;function Ye(a){this.id=a;}Ye.prototype.Ac=function(){var a={};null!=this.browser&&(a.browser=this.browser);null!=this.browserVersion&&(a.browser_version=this.browserVersion);null!=this.os&&(a.os_version=this.os);null!=this.resolution&&(a.resolution=this.resolution);null!=this.language&&(a.locale=this.language);null!=this.timeZone&&(a.time_zone=this.timeZone);null!=this.userAgent&&(a.user_agent=this.userAgent);return a};function Ze(a,b){this.b=a;null==b&&(b=Ba(Xe));this.De=b;}
201
- function Be(a){var b=zb(a.b,Cb.Uc);null==b&&(b=new Oa(pa.Ia()),xb(a.b,Cb.Uc,b));b=new Ye(b.ia);for(var c=0;c<a.De.length;c++){var d=a.De[c];switch(d){case "browser":b[d]=vb.Ya;break;case "browserVersion":b[d]=vb.version;break;case "os":var e=vb.ga?vb.ga||null:(e=S(a.b,M.cc))&&e.os_version?e.os_version:vb.qb();b[d]=e;break;case "resolution":b[d]=screen.width+"x"+screen.height;break;case "language":b[d]=vb.language;break;case "timeZone":a:{e=new Date;if("undefined"!==typeof Intl&&"function"===typeof Intl.DateTimeFormat)try{if("function"===
202
- typeof Intl.DateTimeFormat().resolvedOptions){var f=Intl.DateTimeFormat().resolvedOptions().timeZone;if(null!=f&&""!==f){var g=f;break a}}}catch(k){x.info("Intl.DateTimeFormat threw an error, probably https://bugs.chromium.org/p/chromium/issues/detail?id=811403, falling back to GTM offset: "+k.message);}g=e.getTimezoneOffset();e=parseInt(g/60);var h=parseInt(g%60),l="GMT";0!==g&&(l=l+(0>g?"+":"-")+(("00"+Math.abs(e)).slice(-2)+":"+("00"+Math.abs(h)).slice(-2)));g=l;}b[d]=g;break;case "userAgent":b[d]=
203
- vb.userAgent;}}return b}function $e(a){this.Fa=a;this.wc=null;this.Re="geolocation"in navigator;}$e.prototype.Ng=function(a){var b=this;if(document.hidden){af(this);var c=function(){document.hidden||(document.removeEventListener("visibilitychange",c,!1),b.watchPosition());};document.addEventListener("visibilitychange",c,!1);}this.Fa.Oc(a.coords.latitude,a.coords.longitude,a.coords.accuracy,a.coords.altitude,a.coords.altitudeAccuracy);};
204
- $e.prototype.Mg=function(a){a.code===a.PERMISSION_DENIED?x.info(a.message):x.error("Could not detect user location: "+a.code+" - "+a.message);};$e.prototype.watchPosition=function(){this.Re?(af(this),this.wc=navigator.geolocation.watchPosition(this.Ng.bind(this),this.Mg.bind(this)),x.info("Requested Geolocation")):x.info(this.ed);};function af(a){a.Re?null!=a.wc&&(navigator.geolocation.clearWatch(a.wc),a.wc=null,x.info("Stopped watching Geolocation")):x.info(a.ed);}function bf(a,b,c,d,e){this.endpoint=a||null;this.Ze=b||null;this.publicKey=c||null;this.Wh=d||null;this.ra=e||null;}bf.prototype.A=function(){return {e:this.endpoint,c:this.Ze,p:this.publicKey,u:this.Wh,v:this.ra}};function cf(a,b,c,d,e,f,g,h,l,k){this.Fa=a;this.$=b;this.mc=c;this.Jg=d;this.Pe=e||"/service-worker.js";this.Ne=f;this.J=g;this.rd=h||!1;this.Hg=l||!1;this.b=k;this.vc="serviceWorker"in navigator&&"undefined"!==typeof ServiceWorkerRegistration&&"showNotification"in ServiceWorkerRegistration.prototype&&"PushManager"in window;this.vd="safari"in window&&"pushNotification"in window.safari;}p=cf.prototype;p.qa=function(){return this.vc||this.vd};
205
- p.Ka=function(){var a=this.qa()&&"Notification"in window&&null!=window.Notification&&null!=window.Notification.permission&&"denied"===window.Notification.permission,b=this.qa()&&(!("Notification"in window)||null==window.Notification);return a||b};p.Mb=function(){return this.qa()&&"Notification"in window&&null!=window.Notification&&null!=window.Notification.permission&&"granted"===window.Notification.permission};
206
- p.Id=function(a,b,c){var d=this;c=this.Ne||c;this.qa()?this.vc?df(this).then(function(e){d.Ka()?b():null==e?b():e.pushManager.getSubscription().then(function(f){f?a():b();}).catch(function(){b();});}).catch(function(){b();}):null==c||""===c?x.error("You must supply the safariWebsitePushId argument in order to use isPushGranted on Safari"):"granted"===window.safari.pushNotification.permission(c).permission?a():b():b();};
207
- function ef(a,b,c,d,e,f){b.unsubscribe().then(function(g){g?ff(a,c,d,e,f):(x.error("Failed to unsubscribe device from push."),"function"===typeof f&&f(!1));}).catch(function(g){x.error("Push unsubscription error: "+g);"function"===typeof f&&f(!1);});}
208
- function gf(a,b,c,d){var e=function(h){if("string"===typeof h)return h;if(0!==h.endpoint.indexOf("https://android.googleapis.com/gcm/send"))return h.endpoint;var l=h.endpoint;h.subscriptionId&&-1===h.endpoint.indexOf(h.subscriptionId)&&(l=h.endpoint+"/"+h.subscriptionId);return l}(b),f=null,g=null;if(null!=b.getKey)try{f=btoa(String.fromCharCode.apply(null,new Uint8Array(b.getKey("p256dh")))),g=btoa(String.fromCharCode.apply(null,new Uint8Array(b.getKey("auth"))));}catch(h){if("invalid arguments"!==
209
- h.message)throw h;}b=function(h){var l;return h.options&&(l=h.options.applicationServerKey)&&l.byteLength&&0<l.byteLength?btoa(String.fromCharCode.apply(null,new Uint8Array(l))).replace(/\+/g,"-").replace(/\//g,"_"):null}(b);a.Fa.Pd(e,d,f,g,b);e&&"function"===typeof c&&c(e,f,g);}function hf(a,b,c){a.Fa.Sb(!1);x.info(b);"function"===typeof c&&c(!1);}
210
- function jf(a,b,c,d,e){if("default"===c.permission)try{window.safari.pushNotification.requestPermission(a.Jg,b,{api_key:a.$,device_id:Be(a.mc).id},function(f){"granted"===f.permission&&a.Fa.Ud("opted_in");jf(a,b,f,d,e);});}catch(f){hf(a,"Could not request permission for push: "+f,e);}else"denied"===c.permission?hf(a,"The user has blocked notifications from this site, or Safari push is not configured in the Braze dashboard.",e):"granted"===c.permission&&(x.info("Device successfully subscribed to push."),
211
- gf(a,c.deviceToken,d,new Date));}function kf(a,b,c){function d(g){switch(g){case "granted":"function"===typeof a&&a();break;case "default":"function"===typeof b&&b();break;case "denied":"function"===typeof c&&c();break;default:x.error("Received unexpected permission result "+g);}}var e=!1,f=window.Notification.requestPermission(function(g){e&&d(g);});f?f.then(function(g){d(g);}):e=!0;}
212
- function ff(a,b,c,d,e){var f={userVisibleOnly:!0};null!=c&&(f.applicationServerKey=c);b.pushManager.subscribe(f).then(function(g){x.info("Device successfully subscribed to push.");gf(a,g,d,new Date);}).catch(function(g){a.Ka()?(x.info("Permission for push notifications was denied."),"function"===typeof e&&e(!1)):x.error("Push subscription failed: "+g);});}
213
- function df(a){return a.rd?navigator.serviceWorker.getRegistration():navigator.serviceWorker.register(a.Pe).then(function(){return navigator.serviceWorker.ready.then(function(b){b&&"function"===typeof b.update&&b.update().catch(function(c){x.info("ServiceWorker update failed: "+c);});return b})})}
214
- p.subscribe=function(a,b,c){var d=this;a=this.Ne||a;if(this.qa())if(this.vc){if(!this.rd&&null!=window.location){var e=this.Pe;-1===e.indexOf(window.location.host)&&(e=window.location.host+e);-1===e.indexOf(window.location.protocol)&&(e=window.location.protocol+"//"+e);if(0!==window.location.href.indexOf(e.substr(0,e.lastIndexOf("/")+1))){x.error("Cannot subscribe to push from a path higher than the service worker location (tried to subscribe from "+window.location.pathname+" but service worker is at "+
215
- e+")");return}}if(this.Ka())hf(this,"Notifications from this site are blocked. This may be a temporary embargo or a permanent denial.",c);else if(this.J&&!Ie(this.J).ra&&0===Ie(this.J).Nb)x.info("Waiting for VAPID key from server config before subscribing to push."),lf(this.J,function(){d.subscribe(a,b,c);});else{var f=this.Mb();kf(function(){f||d.Fa.Ud("opted_in");df(d).then(function(g){null==g?(x.error("No service worker registration. Set the `manageServiceWorkerExternally` initialization option to false or ensure that your service worker is registered before calling registerAppboyPushMessages."),
216
- "function"===typeof c&&c()):g.pushManager.getSubscription().then(function(h){var l=null;d.J&&null!=Ie(d.J).ra&&(l=oa.Vh(Ie(d.J).ra));if(h){var k=null,m=null,q=S(d.b,M.kc);if(q&&!Ca(q)){try{var v=(new bf(q.e,La(q.c),q.p,q.u,q.v)).Ze;}catch(t){v=null;}null==v||isNaN(v.getTime())||0===v.getTime()||(k=v,m=new Date(k),m.setMonth(k.getMonth()+6));}null!=l&&h.options&&h.options.applicationServerKey&&h.options.applicationServerKey.byteLength&&0<h.options.applicationServerKey.byteLength&&!Ha(l,new Uint8Array(h.options.applicationServerKey))?
217
- (12<h.options.applicationServerKey.byteLength?x.info("Device was already subscribed to push using a different VAPID provider, creating new subscription."):x.info("Attempting to upgrade a gcm_sender_id-based push registration to VAPID - depending on the browser this may or may not result in the same gcm_sender_id-based subscription."),ef(d,h,g,l,b,c)):h.expirationTime&&new Date(h.expirationTime)<=(new Date).valueOf()?(x.info("Push subscription is expired, creating new subscription."),ef(d,h,g,l,b,
218
- c)):q&&Ca(q)?ef(d,h,g,l,b,c):null==m?(x.info("No push subscription creation date found, creating new subscription."),ef(d,h,g,l,b,c)):m<=(new Date).valueOf()?(x.info("Push subscription older than 6 months, creating new subscription."),ef(d,h,g,l,b,c)):(x.info("Device already subscribed to push, sending existing subscription to backend."),gf(d,h,b,k));}else ff(d,g,l,b,c);}).catch(function(h){x.error("Error checking current push subscriptions: "+h);});}).catch(function(g){x.error("ServiceWorker registration failed: "+
219
- g);});},function(){var g="Permission for push notifications was ignored.";d.Ka()&&(g+=" The browser has automatically blocked further permission requests for a period (probably 1 week).");x.info(g);"function"===typeof c&&c(!0);},function(){x.info("Permission for push notifications was denied.");"function"===typeof c&&c(!1);});}}else this.vd&&(null==a||""===a?x.error("You must supply the safariWebsitePushId argument in order to use registerAppboyPushMessages on Safari"):(e=window.safari.pushNotification.permission(a),
220
- jf(this,a,e,b,c)));else x.info(this.ed);};
221
- p.unsubscribe=function(a,b){var c=this;this.qa()?this.vc?navigator.serviceWorker.getRegistration().then(function(d){d&&d.pushManager.getSubscription().then(function(e){e&&(c.Fa.Sb(!0),e.unsubscribe().then(function(f){f?(x.info("Device successfully unsubscribed from push."),"function"===typeof a&&a()):(x.error("Failed to unsubscribe device from push."),"function"===typeof b&&b());c.rd||(d.unregister(),x.info("Service worker successfully unregistered."));}).catch(function(f){x.error("Push unsubscription error: "+f);
222
- "function"===typeof b&&b();}));}).catch(function(e){x.error("Error unsubscribing from push: "+e);"function"===typeof b&&b();});}):this.vd&&(this.Fa.Sb(!0),x.info("Device unsubscribed from push."),"function"===typeof a&&a()):x.info(this.ed);};function Je(a,b,c,d,e,f,g){this.Nb=a||0;this.cf=b||[];this.Ve=c||[];this.mf=d||[];this.Ld=e;if(null==e||""===e)this.Ld=null;this.ra=f||null;this.Hb=g||{};}Je.prototype.A=function(){return {s:"3.5.0",l:this.Nb,e:this.cf,a:this.Ve,p:this.mf,m:this.Ld,v:this.ra,c:this.Hb}};function mf(a){this.b=a;this.xd=new Nb;this.Ae=new Nb;this.uc=null;}function Ie(a){if(null==a.uc){var b=S(a.b,M.te);if(null!=b){var c=b.l;"3.5.0"!==b.s&&(c=0);b=new Je(c,b.e,b.a,b.p,b.m,b.v,b.c);}else b=new Je;a.uc=b;}return a.uc}function lf(a,b){b=Ob(a.xd,b);a.Be&&a.xd.N(a.Be);a.Be=b;}function nf(a,b){Ob(a.Ae,b);}function ib(a,b){return -1!==Ie(a).Ve.indexOf(b)}function of(a,b,c,d){this.b=a;this.f=b;this.J=c;this.Cb=1E3;d=parseFloat(d);isNaN(d)&&(d=1800);d<this.Cb/1E3&&(x.info("Specified session timeout of "+d+"s is too small, using the minimum session timeout of "+this.Cb/1E3+"s instead."),d=this.Cb/1E3);this.Lg=d;}function Te(a,b,c){return new E(a.f.o(),z.yg,b,c.ia,{d:Ia(b-c.Ib)})}of.prototype.Kb=function(){var a=zb(this.b,Cb.Ta);return null==a?null:a.ia};
223
- function He(a){var b=(new Date).valueOf(),c=Ie(a.J).Ld,d=S(a.b,M.hc);if(null!=d&&null==c)return !1;(c=null==d||b-d>1E3*c)&&O(a.b,M.hc,b);return c}
224
- function ab(a){var b=(new Date).valueOf(),c=b+1E3*a.Lg,d=zb(a.b,Cb.Ta);if(null==d||(b-d.Ib<a.Cb?0:d.Cd<b)){var e="Generating session start event with time "+b;if(null!=d){var f=d.Ob;f-d.Ib<a.Cb&&(f=d.Ib+a.ai);d=Te(a,f,d);null==d||bb(a.b,[d]);e+=" (old session ended "+f+")";}e+=". Will expire "+c.valueOf();x.info(e);c=new Oa(pa.Ia(),c);e=new E(a.f.o(),z.ve,b,c.ia);null==e||bb(a.b,[e]);xb(a.b,Cb.Ta,c);null==S(a.b,M.hc)&&O(a.b,M.hc,b);return c.ia}d.Ob=b;d.Cd=c;xb(a.b,Cb.Ta,d);return d.ia}function pf(a,b){var c=!1;try{if(localStorage&&localStorage.getItem)try{localStorage.setItem(M.jd,!0),localStorage.getItem(M.jd)&&(localStorage.removeItem(M.jd),c=!0);}catch(e){if(("QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&0<localStorage.length)c=!0;else throw e;}}catch(e){x.info("Local Storage not supported!");}var d=navigator.cookieEnabled||"cookie"in document&&(0<document.cookie.length||-1<(document.cookie="test").indexOf.call(document.cookie,"test"));b=new Mb(a,d&&!b,
225
- c);return new wb(b,c?new Hb(a):new Lb)}function qf(a,b){this.J=a;this.b=b;}qf.prototype.o=function(){var a=zb(this.b,Cb.lc);if(null==a)return null;var b=a.ia,c=Pa(b);if(997<c){for(;997<c;)b=b.slice(0,b.length-1),c=Pa(b);a.ia=b;xb(this.b,Cb.lc,a);}return b};qf.prototype.Sd=function(a,b){if(ib(this.J,a))return x.info('Custom Attribute "'+a+'" is blocklisted, ignoring.'),!1;var c={};c[a]=b;return cb(this,"custom",c)};function cb(a,b,c){return Fb(a.b,a.o(),b,c)}
226
- qf.prototype.Pd=function(a,b,c,d,e){cb(this,"push_token",a);cb(this,"custom_push_public_key",c);cb(this,"custom_push_user_auth",d);cb(this,"custom_push_vapid_public_key",e);var f=za.ba,g=new qa(f);O(this.b,M.kc,(new bf(a,b,c,d,e)).A());g.setItem(f.G.gd,f.kb,!0);};
227
- qf.prototype.Sb=function(a){cb(this,"push_token",null);cb(this,"custom_push_public_key",null);cb(this,"custom_push_user_auth",null);cb(this,"custom_push_vapid_public_key",null);if(a){a=za.ba;var b=new qa(a);O(this.b,M.kc,!1);b.setItem(a.G.gd,a.kb,!1);}};function rf(a,b,c){this.b=a;this.Db=b||!1;this.ze=c;this.td=new Nb;this.ye=1;}rf.prototype.Tb=function(a){var b=S(this.b,M.jb);O(this.b,M.jb,a);var c=za.ba;(new qa(c)).setItem(c.G.qe,this.ye,a);b!==a&&Pb(this.td);};rf.prototype.Xd=function(a){return Ob(this.ze,a)};function ze(a,b){Ob(a.td,b);}function sf(){}sf.prototype.Lb=function(){};sf.prototype.$a=function(){};sf.prototype.clearData=function(){};function tf(a,b,c,d,e){this.ha=a;this.H=b;this.b=c;this.J=d;this.Eg=e;this.Aa=this.Da=0;this.Ga();}na(tf,sf);p=tf.prototype;p.Ga=function(){for(var a=S(this.b,M.wb)||[],b=[],c=0;c<a.length;c++){var d=nc(a[c]);null!=d&&b.push(d);}this.B=uf(this,vf(this,b,!1));this.Da=S(this.b,M.ac)||this.Da;this.Aa=S(this.b,M.$b)||this.Aa;};
228
- p.Lb=function(a){if(wf(this)&&null!=a&&a.cards){var b=a.full_sync;b||this.Ga();var c=a.cards,d=a.last_full_sync_at;a=a.last_card_updated_at;if(b){var e=[];for(var f=ba(this.B),g=f.next();!g.done;g=f.next())g=g.value,g.test&&e.push(g);}else e=this.B.slice();for(f=0;f<c.length;f++){g=c[f];for(var h=null,l=0;l<this.B.length;l++)if(g.id===this.B[l].id){h=this.B[l];break}if(b)g=hc(g),null!=h&&h.viewed&&(g.viewed=!0),null!=g&&e.push(g);else if(null==h)g=hc(g),null!=g&&e.push(g);else if(!fc(h,g))for(h=0;h<
229
- e.length;h++)if(g.id===e[h].id){e.splice(h,1);break}}this.B=uf(this,vf(this,e,b));this.yc();this.Da=d||0;O(this.b,M.ac,this.Da);this.Aa=a||0;O(this.b,M.$b,this.Aa);Pb(this.ha,this.pb(!0));}};
230
- function xf(a,b){if(wf(a)){a.Ga();var c=a.B.slice();a.H.rb().o(function(d){for(var e=0;e<b.length;e++)if(d===b[e].userId||null==d&&null==b[e].userId){for(var f=b[e].card,g=null,h=0;h<a.B.length;h++)if(f.id===a.B[h].id){g=a.B[h];break}if(null==g)f=hc(f),null!=f&&c.push(f);else if(!fc(g,f))for(g=0;g<c.length;g++)if(f.id===c[g].id){c.splice(g,1);break}}a.B=uf(a,vf(a,c,!1));a.yc();Pb(a.ha,a.pb(!0));});}}
231
- function vf(a,b,c){for(var d=S(a.b,M.hb)||{},e=S(a.b,M.ib)||{},f=S(a.b,M.ua)||{},g={},h={},l={},k=0;k<b.length;k++)d[b[k].id]&&(b[k].clicked=!0,g[b[k].id]=!0),e[b[k].id]&&(b[k].viewed=!0,h[b[k].id]=!0),f[b[k].id]&&(b[k].dismissed=!0,l[b[k].id]=!0);c&&(O(a.b,M.hb,g),O(a.b,M.ib,h),O(a.b,M.ua,l));return b}
232
- function uf(a,b){for(var c=[],d=new Date,e=S(a.b,M.ua)||{},f=!1,g=0;g<b.length;g++){var h=b[g].url;!a.Eg&&h&&sd(h)?x.error('Card with url "'+h+'" will not be displayed because Javascript URLs are disabled. Use the "allowUserSuppliedJavascript" option for appboy.initialize to enable this card.'):(null==b[g].expiresAt||b[g].expiresAt>=d)&&!b[g].dismissed?c.push(b[g]):f=e[b[g].id]=!0;}f&&O(a.b,M.ua,e);return c}p.yc=function(){for(var a=[],b=0;b<this.B.length;b++)a.push(this.B[b].A());O(this.b,M.wb,a);};
233
- p.Na=function(a,b){if(wf(this))return this.H.Na(this.Da,this.Aa,this.Lb.bind(this),a,b)};p.pb=function(a){a||this.Ga();a=uf(this,this.B);a.sort(function(c,d){return c.pinned&&!d.pinned?-1:d.pinned&&!c.pinned?1:c.updated>d.updated?-1:d.updated>c.updated?1:0});var b=Math.max(this.Aa||0,this.Da||0);0===b&&(b=void 0);return new Ad(a,Ja(b))};
234
- p.$a=function(a){a||(this.B=[],Pb(this.ha,new Ad(this.B.slice(),null)),Bb(this.b,M.wb),Bb(this.b,M.hb),Bb(this.b,M.ib),Bb(this.b,M.ua));this.Aa=this.Da=0;Bb(this.b,M.ac);Bb(this.b,M.$b);};p.clearData=function(a){this.Aa=this.Da=0;this.B=[];Pb(this.ha,new Ad(this.B.slice(),null));a&&(Bb(this.b,M.wb),Bb(this.b,M.hb),Bb(this.b,M.ib),Bb(this.b,M.ua),Bb(this.b,M.ac),Bb(this.b,M.$b));};
235
- function wf(a){return Ie(a.J).Hb.enabled?!0:(0!==Ie(a.J).Nb&&(Pb(a.ha,new Ad([],(new Date).valueOf())),Bb(a.b,M.wb)),!1)}function yf(a,b){this.ha=a;this.b=b;this.Ga();}na(yf,sf);p=yf.prototype;p.Ga=function(){for(var a=S(this.b,M.dd)||[],b=[],c=0;c<a.length;c++){var d=nc(a[c]);null!=d&&b.push(d);}this.B=b;this.mb=La(S(this.b,M.bd));};p.yc=function(){for(var a=[],b=0;b<this.B.length;b++)a.push(this.B[b].A());O(this.b,M.dd,a);};
236
- p.Lb=function(a){if(null!=a&&a.feed){this.Ga();a=a.feed;for(var b=[],c,d=S(this.b,M.vb)||{},e={},f=0;f<a.length;f++){c=a[f];var g=c.id,h=c.type,l=c.viewed,k=c.title,m=c.image,q=c.description,v=Ja(c.created),t=Ja(c.updated),w=c.categories,r=Ja(c.expires_at),F=c.url,D=c.domain,G=c.aspect_ratio;c=c.extras;g=h===ic.xe||h===ic.ic?new jc(g,l,k,m,q,v,t,w,r,F,D,G,c,!1,!1):h===ic.Yb?new kc(g,l,k,m,q,v,t,w,r,F,D,G,c,!1,!1):h===ic.Xb?new lc(g,l,m,v,t,w,r,F,D,G,c,!1,!1):null;null!=g&&(d[g.id]&&(g.viewed=!0,e[g.id]=
237
- !0),b.push(g));}O(this.b,M.vb,e);this.B=b;this.yc();this.mb=new Date;O(this.b,M.bd,this.mb);Pb(this.ha,new wd(this.B.slice(),this.mb));}};p.Fc=function(){this.Ga();for(var a=[],b=new Date,c=0;c<this.B.length;c++)(null==this.B[c].expiresAt||this.B[c].expiresAt>=b)&&a.push(this.B[c]);return new wd(a,this.mb)};p.clearData=function(a){null==a&&(a=!1);this.B=[];this.mb=null;a&&(Bb(this.b,M.dd),Bb(this.b,M.bd));Pb(this.ha,new wd(this.B.slice(),this.mb));};function zf(a,b,c,d,e){this.Pa=a;this.zf=b;this.yf=c;this.Ec=d;this.Oa=e;}function Af(a,b,c,d,e){return null==a||null==a.trigger_id?null:new zf(a.trigger_id,b,c,d,e)}function Bf(a,b,c,d){this.Ig=a;this.ha=b;this.b=c;this.H=d;this.oc=[];this.na=[];this.Ba=null;this.L={};this.Y={};Cf(this);Df(this);}na(Bf,sf);function Ef(a){a.Ba=S(a.b,M.ad)||a.Ba;a.L=S(a.b,M.zb)||a.L;a.Y=S(a.b,M.fc)||a.Y;for(var b=0;b<a.T.length;b++){var c=a.T[b];null!=a.Y[c.id]&&(c.Ca=a.Y[c.id]);}}function Cf(a){a.wd=S(a.b,M.md)||0;for(var b=S(a.b,M.kd)||[],c=[],d=0;d<b.length;d++)c.push(ue(b[d]));a.T=c;Ef(a);}
238
- function Df(a){function b(F,D,G,H,A){return function(){Ff(a,F,D,G,H,A);}}for(var c={},d=0;d<a.T.length;d++)c[a.T[d].id]=a.T[d];d=!1;for(var e=0;e<a.T.length;e++){var f=a.T[e];if(null!=a.L[f.id]){for(var g=a.L[f.id],h=[],l=0;l<g.length;l++){var k=g[l],m=Math.max(k.Ec+1E3*f.ab-(new Date).valueOf(),0);if(0<m){h.push(k);var q=void 0,v=void 0;null!=k.wf&&(q=k.wf);null!=k.yd&&Ma(k.yd)&&(v=Na(k.yd));var t=[];if(Ca(k.Dd))for(var w=0;w<k.Dd.length;w++){var r=c[k.Dd[w]];null!=r&&t.push(r);}a.na.push(setTimeout(b(f,
239
- k.Ec,q,v,t),m));}}a.L[f.id].length>h.length&&(a.L[f.id]=h,d=!0,0===a.L[f.id].length&&delete a.L[f.id]);}}d&&O(a.b,M.zb,a.L);}
240
- Bf.prototype.Lb=function(a){var b=!1;if(null!=a&&a.triggers){Ef(this);var c={},d={};this.T=[];for(var e=0;e<a.triggers.length;e++){for(var f=a.triggers[e],g=f.id,h=[],l=0;l<f.trigger_condition.length;l++)h.push(he(f.trigger_condition[l]));l=Ja(f.start_time);var k=Ja(f.end_time),m=f.priority,q=f.type,v=f.delay,t=f.re_eligibility,w=f.timeout,r=f.data;f=f.min_seconds_since_last_trigger;g=Aa(ve,q,"Could not construct Trigger from server data","Trigger.Types")?new re(g,h,l,k,m,q,r,v,t,w,f):null;null!=
241
- this.Y[g.id]&&(g.Ca=this.Y[g.id],c[g.id]=this.Y[g.id]);null!=this.L[g.id]&&(d[g.id]=this.L[g.id]);for(h=0;h<g.ob.length;h++)if(fe(g.ob[h],de.V,null)){b=!0;break}null!=g&&this.T.push(g);}Ha(this.Y,c)||(this.Y=c,O(this.b,M.fc,this.Y));Ha(this.L,d)||(this.L=d,O(this.b,M.zb,this.L));a=[];for(c=0;c<this.T.length;c++)a.push(this.T[c].A());this.wd=(new Date).valueOf();O(this.b,M.kd,a);O(this.b,M.md,this.wd);b&&(x.info("Trigger with test condition found, firing test."),this.pa(de.V));this.pa(de.OPEN);b=this.oc;
242
- this.oc=[];for(a=0;a<b.length;a++)this.pa.apply(this,b[a]);}};
243
- function Ff(a,b,c,d,e,f){function g(){Ef(a);var k=f.pop();if(null!=k)if(Gf(a,k,c,d,e,f),te(k,c)){var m="Server aborted in-app message display, but the timeout on fallback trigger "+k.id+"has already elapsed.";0<f.length&&(m+=" Continuing to fall back.");x.info(m);a.H.M(k.id,dd.ie);g();}else x.info("Server aborted in-app message display. Falling back to lower priority "+k.type+" trigger action "+k.id),m=1E3*k.ab-((new Date).valueOf()-c),0<m?a.na.push(setTimeout(function(){Ff(a,k,c,d,e,f);},m)):Ff(a,
244
- k,c,d,e,f);}function h(k){Ef(a);var m=(new Date).valueOf();te(b,c)?b.type===ve.we?a.H.M(b.id,dd.yb):a.H.M(b.id,dd.ie):!1===navigator.onLine&&b.type===ve.Xc&&k.imageUrl?(x.info("Not showing "+b.type+" trigger action "+b.id+" due to offline state."),a.H.M(b.id,dd.Vf)):(null==b.Ca||b.Rb!==se&&m-b.Ca>=1E3*b.Rb)&&Hf(a,b,m,d)?(Pb(a.ha,[k]),Ef(a),b.Ca=m,a.Ba=m,O(a.b,M.ad,m),a.Y[b.id]=m,O(a.b,M.fc,a.Y)):x.info("Not displaying trigger "+b.id+" because display time fell outside of the acceptable time window.");}
245
- switch(b.type){case ve.Xc:var l=Ec(b.data);if(null==l){x.error("Could not parse trigger data for trigger "+b.id+", ignoring.");a.H.M(b.id,dd.Ab);break}h(l);break;case ve.we:l=Af(b.data,h,g,c,b.Oa);if(null==l){x.error("Could not parse trigger data for trigger "+b.id+", ignoring.");a.H.M(b.id,dd.Ab);break}Pe(a.H,l,d,e);break;default:x.error("Trigger "+b.id+" was of unexpected type "+b.type+", ignoring."),a.H.M(b.id,dd.Ab);}}
246
- Bf.prototype.pa=function(a,b,c){var d=this;if(Aa(de,a,"Cannot fire trigger action.","TriggerEvents"))if(0<this.H.lb)x.info("Trigger sync is currently in progress, awaiting sync completion before firing trigger event."),this.oc.push(arguments);else{(S(this.b,M.md)||0)>this.wd?Cf(this):Ef(this);for(var e=(new Date).valueOf(),f=e-this.Ba,g=!0,h=!0,l=[],k=0;k<this.T.length;k++){var m=this.T[k],q=e+1E3*m.ab;if((null==m.Ca||m.Rb!==se&&q-m.Ca>=1E3*m.Rb)&&(null==m.startTime||m.startTime<=e)&&(null==m.endTime||
247
- m.endTime>=e)){for(var v=!1,t=0;t<m.ob.length;t++)if(fe(m.ob[t],a,b)){v=!0;break}v&&(g=!1,Hf(this,m,q,a)&&(h=!1,l.push(m)));}}if(g)x.info("Trigger event "+a+" did not match any trigger conditions.");else if(h)x.info("Ignoring "+a+" trigger event because a trigger was displayed "+f/1E3+"s ago.");else{l.sort(function(r,F){return r.priority-F.priority});var w=l.pop();null!=w&&(x.info("Firing "+w.type+" trigger action "+w.id+" from trigger event "+a+"."),Gf(this,w,e,a,c,l),0===w.ab?Ff(this,w,e,a,c,l):
248
- this.na.push(setTimeout(function(){Ff(d,w,e,a,c,l);},1E3*w.ab)));}}};Bf.prototype.$a=function(a){this.T=[];Bb(this.b,M.kd);if(!a){this.oc=[];this.Ba=null;this.Y={};this.L={};for(a=0;a<this.na.length;a++)clearTimeout(this.na[a]);this.na=[];Bb(this.b,M.ad);Bb(this.b,M.fc);Bb(this.b,M.zb);Bb(this.b,M.hg);Bb(this.b,M.gg);Bb(this.b,M.ig);}};Bf.prototype.clearData=function(){this.T=[];this.Ba=null;this.Y={};this.L={};for(var a=0;a<this.na.length;a++)clearTimeout(this.na[a]);this.na=[];};
249
- function Hf(a,b,c,d){if(null==a.Ba)return !0;if(d===de.V)return x.info("Ignoring minimum interval between trigger because it is a test type."),!0;b=b.kf;null==b&&(b=a.Ig);return c-a.Ba>=1E3*b}function Gf(a,b,c,d,e,f){Ef(a);a.L[b.id]=a.L[b.id]||[];var g={};g.Ec=c;g.wf=d;var h;null!=e&&(h=e.A());g.yd=h;c=[];for(d=0;d<f.length;d++)c.push(f[d].id);g.Dd=c;a.L[b.id].push(g);O(a.b,M.zb,a.L);}var If={GOOGLE_TAG_MANAGER:"gg",MPARTICLE:"mp",SEGMENT:"sg",TEALIUM:"tl",MANUAL:"manu",NPM:"npm",CDN:"wcd"};J.BrazeSdkMetadata=If;"undefined"===typeof console&&(window.console={log:function(){}});var Jf=window.Element.prototype;"function"!==typeof Jf.matches&&(Jf.matches=Jf.msMatchesSelector||Jf.mozMatchesSelector||Jf.webkitMatchesSelector||function(a){a=(this.document||this.ownerDocument).querySelectorAll(a);for(var b=0;a[b]&&a[b]!==this;)++b;return !!a[b]});
250
- Element.prototype.closest||(Element.prototype.closest=function(a){var b=this;if(!document.documentElement.contains(b))return null;do{if(b.matches(a))return b;b=b.parentElement||b.parentNode;}while(null!==b&&1===b.nodeType);return null});
251
- if("function"!==typeof window.CustomEvent){var Kf=function(a,b){b=b||{bubbles:!1,cancelable:!1,detail:null};var c=document.createEvent("CustomEvent");c.initCustomEvent(a,b.bubbles,b.cancelable,b.detail);return c};Kf.prototype=window.Event.prototype;window.CustomEvent=Kf;}var Lf;module.exports?Lf=module.exports:(window.appboy||(window.appboy={}),Lf=window.appboy);var Mf=Lf;var X=new function(a){function b(n,u,y){n="The '"+n+"' "+u+" is deprecated.";y&&(n+=" Please use '"+y+"' instead.");x.warn(n);}function c(){x.Jb();V&&(Pb(L),L.K(),w.clearData(!1),w=null,D.clearData(!1),D=null,t.K(),t=null,G.K(),G=null,r.K(),r=null,q.K(),q=null,k.Jb(),H=k=null,af(A),m=f=h=A=null,I=[],l=null);Q=V=!1;}function d(){if(Q)return !1;if(!V)throw Error("Appboy must be initialized before calling methods.");return !0}var e={Ug:function(n,u,y){return new rf(n,u,y)},Wg:function(n,u){return new Ze(n,
252
- u)},$g:function(n,u,y,B,P,R,Y,Db,Xa,Rf){null==P&&(P={});var Ee=new qf(Xa,Y),Sf=new of(Y,Ee,Xa,P[C.xg]);return new ye(n,y,B,P[C.Cf],u,Sf,Db,Ee,Xa,Y,R,Rf)},Bc:function(){return new Nb},Xg:function(n,u){return new yf(n,u)},Vg:function(n,u,y,B){return new tf(n,u,y,B)},ah:function(n,u,y,B){return new Bf(n,u,y,B)},Zg:function(n,u,y,B,P,R,Y){null==P&&(P={});return new cf(n,u,y,B+"/safari/"+u,P[C.wg],P[C.ug],R,P[C.mg],P[C.Wf],Y)},Yg:function(n){return new $e(n)}};null==a&&(a=e);var f,g,h,l,k,m,q,v,t,w,r,
253
- F,D,G,H,A,N=new Nb,L=new Nb,I=[],V=!1,Q=!1;return {Oh:function(n){return Ob(N,n)},Nh:function(n){return Ob(L,n)},Hd:function(n,u){if(V)return x.info("Braze has already been initialized with an API key."),!0;x.Gd(null!=u&&u[C.Yf]);if(null==n||""===n||"string"!==typeof n)return x.error("Braze requires a valid API key to be initialized."),!1;f=n;h=u||{};if(vb.lh&&!h[C.Af])return x.info("Ignoring activity from crawler bot "+navigator.userAgent),Q=!0,!1;g=u=pf(n,h[C.ng]||!1);var y=new Ib(null,!0);if(y.Z("ab.optOut"))return x.info("Ignoring all activity due to previous opt out"),
254
- y.store("ab.optOut","This-cookie-will-expire-in-"+Jb(y)),Q=!0,!1;y=ba(Ga(h));for(var B=y.next();!B.done;B=y.next())B=B.value,-1===Ba(C).indexOf(B)&&x.warn("Ignoring unknown initialization option '"+B+"'.");y=["mparticle","wordpress","tealium"];null!=h[C.re]&&(B=h[C.re],-1!==y.indexOf(B)?l=B:x.error("Invalid sdk flavor passed: "+B));var P=[];t=a.Bc();I.push(t);w=a.Xg(t,u);P.push(w);G=a.Bc();I.push(G);y=h[C.Rc];if(null==y||""===y||"string"!==typeof y)return x.error("Braze requires a valid SDK Endpoint to be initialized. Please set the 'baseUrl' initialization option to the value of your SDK Endpoint."),
255
- !1;y=y.replace(/(\.[a-z]+)[^\.]*$/i,"$1/api/v3");0!==y.indexOf("http")&&(y="https://"+y);B=h[C.ee]||h[C.Vc];h[C.Vc]&&b(C.Vc,"initialization option",C.ee);if(null!=B)if(Ca(B)){for(var R=[],Y=0;Y<B.length;Y++)Aa(Xe,B[Y],"devicePropertyAllowlist contained an invalid value.","DeviceProperties")&&R.push(B[Y]);B=R;}else x.error("devicePropertyAllowlist must be an array. Defaulting to all properties."),B=null;v=a.Wg(u,B);B=new mf(u);q=a.Bc();m=a.Ug(u,h[C.Zf],q);I.push(q);k=a.$g(f,y,"3.5.0",l,h,
256
- function(Db){if(V)for(var Xa=0;Xa<P.length;Xa++)P[Xa].Lb(Db);},u,v,B,m);R=h[C.ag];null==R&&(R=30);D=a.ah(R,G,u,k);P.push(D);R=!0===h[C.Zd]||!0===h[C.fe];null!=h.enableHtmlInAppMessages&&b("enableHtmlInAppMessages","initialization option","allowUserSuppliedJavascript");r=a.Bc();I.push(r);F=a.Vg(r,k,u,B,R);P.push(F);nf(B,function(){F.Na();});Se(k,function(){F.Na();});k.Hd();H=a.Zg(k.rb(),f,v,y,h,B,u);A=a.Yg(k.rb());u="Initialized ";h&&h[C.Rc]&&(u+='for the Braze backend at "'+h[C.Rc]+'" ');x.info(u+('with API key "'+
257
- n+'".'));n=vb.language;u=!1;h&&(h[C.$c]&&(b(C.$c,"initialization option",C.cd),n=h[C.$c],u=!0),h[C.cd]&&(n=h[C.cd],u=!0));td(n,u);Pb(N,h);return V=!0},Jb:function(){x.info("Destroying appboy instance");g=null;c();},gh:function(n){d()&&(null==n&&x.error("getDeviceId must be supplied with a callback. e.g., appboy.getDeviceId(function(deviceId) {console.log('the device id is ' + deviceId)})"),"function"===typeof n&&n(Be(v).id));},Yd:function(){x.Yd();},Td:function(n){x.Td(n);},Lc:function(){if(d()){k.Lc(H);
258
- var n=za.ba,u=new qa(n);ua(u,n.G.oe,function(y,B){function P(){D.pa(de.ne,[Y],Db);}var R=B.lastClick,Y=B.trackingString;x.info("Firing push click trigger from "+Y+" push click at "+R);var Db=We(k,R,Y);Ue(k,P,P);va(u,n.G.oe,y);});wa(u,n.G.Ef,function(y){xf(F,y);});wa(u,n.G.me,function(y){var B=k;y=ba(y);for(var P=y.next();!P.done;P=y.next())if(P=P.value,P.api_key!==B.$){var R=za.ba;(new qa(R)).setItem(R.G.me,pa.Ia(),P);}else De(B,P);});}},$a:function(n,u){if(d())if(null==n||0===n.length||n!==n)x.error("changeUser requires a non-empty userId.");
259
- else if(997<Pa(n))x.error('Rejected user id "'+n+'" because it is longer than 997 bytes.');else{if(null!=u&&!Qa(u,"set signature for new user","signature",!1))return !1;k.$a(n.toString(),[w,F,D],H,u);}},rb:function(){if(d())return k.rb()},ih:function(){if(d())return h[C.be]},tb:function(n){d()&&k.tb(n);},Nc:function(){d()&&k.Nc();},uf:function(n){if(d())return Ob(t,n)},Fc:function(){if(d())return w.Fc()},Na:function(n,u){if(d())return F.Na(n,u)},tf:function(n){if(d())return Ob(r,n)},pb:function(){if(d())return F.pb(!1)},
260
- Ph:function(n){if(d())return b("subscribeToNewInAppMessages","method","subscribeToInAppMessage"),Ob(G,n)},vf:function(n){if(d())return "function"!==typeof n?null:Ob(G,function(u){n(u[0]);return u.slice(1)})},Qb:function(n){if(d())return n instanceof W||n instanceof Fc?k.Qb(n).h:(x.error("inAppMessage must be an InAppMessage object"),!1)},Jc:function(n){if(d()){if(!(n instanceof W))return x.error("inAppMessage must be an InAppMessage object"),!1;var u=k.Jc(n);if(u.h)for(var y=0;y<u.j.length;y++)D.pa(de.ec,
261
- [n.triggerId],u.j[y]);return u.h}},Ic:function(n,u){if(d()){if(!(n instanceof Gc))return x.error("button must be an InAppMessageButton object"),!1;if(!(u instanceof W))return x.error("inAppMessage must be an InAppMessage object"),!1;var y=k.Ic(n,u);if(y.h)for(var B=0;B<y.j.length;B++)D.pa(de.ec,[u.triggerId,n.id],y.j[B]);return y.h}},Pb:function(n,u,y){if(d()){if(!(n instanceof Qc))return x.error("inAppMessage argument to logInAppMessageHtmlClick must be an HtmlMessage object."),!1;y=k.Pb(n,u,y);
262
- if(y.h)for(var B=0;B<y.j.length;B++)D.pa(de.ec,[n.triggerId,u],y.j[B]);return y.h}},M:function(n,u){if(d())return n instanceof W||n instanceof Fc?Aa(dd,u,u+" is not a valid in-app message display failure","InAppMessage.DisplayFailures")?k.M(n.triggerId,u).h:!1:(x.error("inAppMessage must be an InAppMessage object"),!1)},Ma:function(n,u){if(d()){if(!Ca(n))return x.error("cards must be an array"),!1;for(var y=0;y<n.length;y++)if(!(n[y]instanceof cc))return x.error("Each card in cards must be a Card object"),
263
- !1;return k.Ma(n,u).h}},La:function(n,u){if(d())return n instanceof cc?k.La(n,u).h:(x.error("card must be a Card object"),!1)},Hc:function(n){if(d())return n instanceof cc?k.Hc(n).h:(x.error("card must be a Card object"),!1)},jf:function(){if(d())return Ve(k,ya.$f).h},hf:function(){if(d())return Ve(k,ya.Kf).h},N:function(n){if(d()){for(var u=ba(I),y=u.next();!y.done;y=u.next())y.value.N(n);N.N(n);L.N(n);}},K:function(){if(d())for(var n=ba(I),u=n.next();!u.done;u=n.next())u.value.K();},Jd:function(n,
264
- u){if(d()){if(null==n||0>=n.length)return x.error('logCustomEvent requires a non-empty eventName, got "'+n+'". Ignoring event.'),!1;if(!Ra(n,"log custom event","the event name"))return !1;var y=ba(Ta(u,"logCustomEvent","eventProperties",'log custom event "'+n+'"',"event")),B=y.next().value;y=y.next().value;if(!B)return !1;B=k.Jd(n,y);if(B.h)for(x.info('Logged custom event "'+n+'".'),y=0;y<B.j.length;y++)D.pa(de.Tc,[n,u],B.j[y]);return B.h}},Kd:function(n,u,y,B,P){if(d()){null==y&&(y="USD");null==B&&
265
- (B=1);if(null==n||0>=n.length)return x.error('logPurchase requires a non-empty productId, got "'+n+'", ignoring.'),!1;if(!Ra(n,"log purchase","the purchase name"))return !1;var R=parseFloat(u);if(isNaN(R))return x.error("logPurchase requires a numeric price, got "+u+", ignoring."),!1;R=R.toFixed(2);u=parseInt(B);if(isNaN(u))return x.error("logPurchase requires an integer quantity, got "+B+", ignoring."),!1;if(1>u||100<u)return x.error("logPurchase requires a quantity >1 and <100, got "+u+", ignoring."),
266
- !1;y=y.toUpperCase();if(-1==="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".split(" ").indexOf(y))return x.error("logPurchase requires a valid currencyCode, got "+
267
- y+", ignoring."),!1;var Y=ba(Ta(P,"logPurchase","purchaseProperties",'log purchase "'+n+'"',"purchase"));B=Y.next().value;Y=Y.next().value;if(!B)return !1;B=k.Kd(n,R,y,u,Y);if(B.h)for(x.info("Logged "+u+" purchase"+(1<u?"s":"")+' of "'+n+'" for '+y+" "+R+"."),y=0;y<B.j.length;y++)D.pa(de.fd,[n,P],B.j[y]);return B.h}},qa:function(){if(d())return H.qa()},Ka:function(){if(d())return H.Ka()},Id:function(n,u,y){d()&&(b("isPushGranted","method","isPushPermissionGranted"),H.Id(n,u,y));},Mb:function(){if(d())return H.Mb()},
268
- ph:function(n,u,y){if(d())return H.subscribe(y,function(B,P,R){k.tb();"function"===typeof n&&n(B,P,R);},u)},Uh:function(n,u){if(d())return H.unsubscribe(n,u)},Tb:function(n){if(d()){if(""===n||!Qa(n,"set signature","signature",!1))return !1;m.Tb(n);return !0}},Xd:function(n){if(d())return m.Xd(n)},Sh:function(){d()&&(b("trackLocation","method"),A.watchPosition());},zd:function(n){if(d()){if(!Ca(n))return x.error("Cannot set SDK metadata because metadata is not an array."),!1;for(var u=ba(n),y=u.next();!y.done;y=
269
- u.next())if(!Aa(If,y.value,"sdkMetadata contained an invalid value.","BrazeSdkMetadata"))return !1;k.zd(n);return !0}},Mh:function(){b("stopWebTracking","method","disableSDK");null!=k&&k.tb();var n=new Ib(null,!0);n.store("ab.optOut","This-cookie-will-expire-in-"+Jb(n));n=za.ba;(new qa(n)).setItem(n.G.xb,n.kb,!0);c();Q=!0;},bh:function(){null!=k&&k.tb();var n=new Ib(null,!0);n.store("ab.optOut","This-cookie-will-expire-in-"+Jb(n));n=za.ba;(new qa(n)).setItem(n.G.xb,n.kb,!0);c();Q=!0;},vh:function(){b("resumeWebTracking",
270
- "method","enableSDK");(new Ib(null,!0)).remove("ab.optOut");var n=za.ba;va(new qa(n),n.G.xb,n.kb);c();},dh:function(){(new Ib(null,!0)).remove("ab.optOut");var n=za.ba;va(new qa(n),n.G.xb,n.kb);c();},mh:function(){return !!(new Ib(null,!0)).Z("ab.optOut")},Xh:function(){if(null==g)throw Error("Appboy must be initialized before calling methods.");g.clearData();for(var n=Ga(za),u=0;u<n.length;u++)(new qa(za[n[u]])).clearData();V&&(w.clearData(!0),D.clearData(!0));}}},Z={},Nf;for(Nf in J)Z[Nf]=J[Nf];
271
- Z.initialize=X.Hd;Z.destroy=X.Jb;Z.getDeviceId=X.gh;Z.toggleAppboyLogging=X.Yd;Z.setLogger=X.Td;Z.openSession=X.Lc;Z.changeUser=X.$a;Z.getUser=X.rb;Z.requestImmediateDataFlush=X.tb;Z.requestFeedRefresh=X.Nc;Z.getCachedFeed=X.Fc;Z.subscribeToFeedUpdates=X.uf;Z.requestContentCardsRefresh=X.Na;Z.getCachedContentCards=X.pb;Z.subscribeToContentCardsUpdates=X.tf;Z.logCardImpressions=X.Ma;Z.logCardClick=X.La;Z.logCardDismissal=X.Hc;Z.logFeedDisplayed=X.jf;Z.logContentCardsDisplayed=X.hf;
272
- Z.logInAppMessageImpression=X.Qb;Z.logInAppMessageClick=X.Jc;Z.logInAppMessageButtonClick=X.Ic;Z.logInAppMessageHtmlClick=X.Pb;Z.subscribeToNewInAppMessages=X.Ph;Z.subscribeToInAppMessage=X.vf;Z.removeSubscription=X.N;Z.removeAllSubscriptions=X.K;Z.logCustomEvent=X.Jd;Z.logPurchase=X.Kd;Z.isPushSupported=X.qa;Z.isPushBlocked=X.Ka;Z.isPushGranted=X.Id;Z.isPushPermissionGranted=X.Mb;Z.registerAppboyPushMessages=X.ph;Z.unregisterAppboyPushMessages=X.Uh;Z.setSdkAuthenticationSignature=X.Tb;
273
- Z.subscribeToSdkAuthenticationFailures=X.Xd;Z.trackLocation=X.Sh;Z.addSdkMetadata=X.zd;Z.stopWebTracking=X.Mh;Z.disableSDK=X.bh;Z.resumeWebTracking=X.vh;Z.enableSDK=X.dh;Z.wipeData=X.Xh;Z.isDisabled=X.mh;for(var Of in Z)"object"===typeof appboyInterface?appboyInterface[Of]=Z[Of]:Mf[Of]=Z[Of];var Pf="object"===typeof appboyInterface?appboyInterface:Mf,Qf=new function(a,b){var c=!1,d=!1,e=!1,f=!1,g=null,h=null,l=null,k=null;a.Oh(function(m){function q(t){if(27===t.keyCode&&!e&&0<document.querySelectorAll(".ab-modal-interactions").length){t=document.getElementsByClassName("ab-html-message");for(var w=!1,r=0;r<t.length;r++){var F=t[r].contentWindow.document.getElementsByClassName("ab-programmatic-close-button")[0];null!=F&&(Ub(F),w=!0);}w||(t=document.querySelectorAll(".ab-modal-interactions > .ab-close-button")[0],
274
- null!=t&&Ub(t));}}c=m[C.pg]||!1;d=m[C.og]||m[C.qg]||!1;e=m[C.tg]||!1;f=m[C.fe]||!1;!0===m[C.Zd]&&(f=!0);g=null;l=m[C.be]||null;k=m[C.bg]||null;m[C.Xf]||null!==document.querySelector('link[rel=stylesheet][href="https://use.fontawesome.com/7f85a56ba4.css"]')||(m=document.createElement("link"),m.setAttribute("rel","stylesheet"),m.setAttribute("href","https://use.fontawesome.com/7f85a56ba4.css"),document.getElementsByTagName("head")[0].appendChild(m));m="ab-css-definitions-"+"3.5.0".replace(/\./g,
275
- "-");if(null==document.getElementById(m)){var v=document.createElement("style");v.innerHTML=qd.$e;v.id=m;null!=l&&v.setAttribute("nonce",l);document.getElementsByTagName("head")[0].appendChild(v);}e||(document.addEventListener("keydown",q,!1),a.Nh(function(){document.removeEventListener("keydown",q);}));});return {Tg:function(){null==g&&(g=a.vf(function(m){a.display.sf(m);}));return g},sf:function(m,q,v){if(null==m)return !1;if(m instanceof Fc)return x.info("User received control for a multivariate test, logging to Braze servers."),
276
- a.Qb(m),!0;if(!(m instanceof W))return !1;var t=m instanceof Qc;if(t&&!m.Th&&!f)return x.error('HTML in-app messages are disabled. Use the "allowUserSuppliedJavascript" option for appboy.initialize to enable these messages.'),a.M(m,dd.ge),!1;null==q&&(q=document.body);if(m.Ja()&&0<q.querySelectorAll(".ab-modal-interactions").length)return x.info("Cannot show in-app message '"+m.message+"' because another message is being shown."),a.M(m,dd.Bf),!1;if(bc.nh()){var w=bc.hh();if(w===bc.Sa.jc&&m.orientation===
277
- Zc||w===bc.Sa.Zc&&"PORTRAIT"===m.orientation)return x.info("Not showing "+("PORTRAIT"===m.orientation?"portrait":"landscape")+" in-app message '"+m.message+"' because the screen is currently "+(w===bc.Sa.jc?"portrait":"landscape")),a.M(m,dd.rg),!1}if(!f){w=!1;if(m.buttons&&0<m.buttons.length)for(var r=m.buttons,F=0;F<r.length;F++)r[F].clickAction===$c&&(w=sd(r[F].uri));else m.clickAction===$c&&(w=sd(m.uri));if(w)return x.error('Javascript click actions are disabled. Use the "allowUserSuppliedJavascript" option for appboy.initialize to enable these actions.'),
278
- a.M(m,dd.ge),!1}var D=document.createElement("div");D.className="ab-iam-root v3";D.className+=m.oa();D.setAttribute("role","complementary");Bc(m)&&(D.id=m.htmlId);k&&(D.style.zIndex=k+1);q.appendChild(D);Cc(m)&&(q=document.createElement("style"),q.innerHTML=m.css,q.id=Dc(m),null!=l&&q.setAttribute("nonce",l),document.getElementsByTagName("head")[0].appendChild(q));var G=m instanceof Nc;q=m.aa(a,b,function(){a.display.Vd();},function(H){if(m.Ja()&&m.xf()){var A=document.createElement("div");A.className=
279
- "ab-page-blocker";Cc(m)||(A.style.backgroundColor=sc(m.frameColor));k&&(A.style.zIndex=k);D.appendChild(A);if(!e){var N=(new Date).valueOf();A.onclick=function(V){200<(new Date).valueOf()-N&&(Wc(m,H),V.stopPropagation());};}D.appendChild(H);H.focus();m.Kc(D);}else if(G){var L=document.querySelectorAll(".ab-slideup");A=null;for(var I=L.length-1;0<=I;I--)if(L[I]!==H){A=L[I];break}"TOP"===m.slideFrom?(L=0,null!=A&&(L=A.offsetTop+A.offsetHeight),H.style.top=Math.max(L,0)+"px"):(L=0,null!=A&&(L=(window.innerHeight||
280
- document.documentElement.clientHeight)-A.offsetTop),H.style.bottom=Math.max(L,0)+"px");}else t&&!e&&H.contentWindow.addEventListener("keydown",function(V){27===V.keyCode&&m.Ye();});a.Qb(m);m.dismissType===xc&&setTimeout(function(){D.contains(H)&&Wc(m,H);},m.duration);"function"===typeof v&&v();},c,k);if(t||G)D.appendChild(q),m.Kc(D);return !0},Vd:function(m,q,v){function t(A){for(var N=A.querySelectorAll(".ab-feed"),L=null,I=0;I<N.length;I++)N[I].parentNode===A&&(L=N[I]);null!=L?(xd(a,L),L.parentNode.replaceChild(G,
281
- L)):A.appendChild(G);setTimeout(function(){G.className=G.className.replace("ab-hide","ab-show");},0);r&&G.focus();a.jf();Bd(D,a,G);}function w(A,N){if(null==N)return A;for(var L=[],I=0;I<N.length;I++)L.push(N[I].toLowerCase());N=[];for(I=0;I<A.length;I++){for(var V=[],Q=0;Q<A[I].categories.length;Q++)V.push(A[I].categories[Q].toLowerCase());0<Fa(V,L).length&&N.push(A[I]);}return N}var r=!1;null==m&&(m=document.body,r=!0);var F=!1,D=null;null==q?(D=a.Fc(),Fd(D,w(D.cards,v),D.lastUpdated,null,a,d),F=!0):
282
- D=new wd(w(q,v),new Date);var G=D.aa(a,d);if(F){if(null==D.lastUpdated||6E4<(new Date).valueOf()-D.lastUpdated.valueOf())x.info("Cached feed was older than max TTL of 60000 ms, requesting an update from the server."),Cd(D,a,G);var H=(new Date).valueOf();q=a.uf(function(A){var N=G.querySelectorAll(".ab-refresh-button")[0];if(null!=N){var L=500,I=parseInt(G.getAttribute(Dd));L=isNaN(I)?L-((new Date).valueOf()-H):L-((new Date).valueOf()-I);setTimeout(function(){N.className=N.className.replace(/fa-spin/g,
283
- "");},Math.max(L,0));}Fd(D,w(A.cards,v),A.lastUpdated,G,a,d);});G.setAttribute(yd,q);}null!=m?t(m):window.onload=function(A){return function(){"function"===typeof A&&A();t(document.body);}}(window.onload);},af:function(){for(var m=document.querySelectorAll(".ab-feed"),q=0;q<m.length;q++)xd(a,m[q]);},Rh:function(m,q,v){0<document.querySelectorAll(".ab-feed").length?a.display.af():a.display.Vd(m,q,v);},rf:function(m,q){function v(G){for(var H=G.querySelectorAll(".ab-feed"),A=null,N=0;N<H.length;N++)H[N].parentNode===
284
- G&&(A=H[N]);null!=A?(xd(a,A),A.parentNode.replaceChild(r,A)):G.appendChild(r);setTimeout(function(){r.className=r.className.replace("ab-hide","ab-show");},0);t&&r.focus();a.hf();Bd(w,a,r);}var t=!1;null==m&&(m=document.body,t=!0);var w=null;w=a.pb();"function"===typeof q&&Fd(w,q(w.cards.slice()),w.lastUpdated,null,a,d);var r=w.aa(a,d);(null==w.lastUpdated||6E4<(new Date).valueOf()-w.lastUpdated.valueOf())&&(null==h||6E4<(new Date).valueOf()-h.valueOf())&&(x.info("Cached content cards were older than max TTL of 60000 ms, requesting a sync from the server."),
285
- Cd(w,a,r),h=(new Date).valueOf());var F=(new Date).valueOf(),D=a.tf(function(G){var H=r.querySelectorAll(".ab-refresh-button")[0];if(null!=H){var A=500,N=parseInt(r.getAttribute(Dd));A=isNaN(N)?A-((new Date).valueOf()-F):A-((new Date).valueOf()-N);setTimeout(function(){H.className=H.className.replace(/fa-spin/g,"");},Math.max(A,0));}A=G.cards;"function"===typeof q&&(A=q(A.slice()));Fd(w,A,G.lastUpdated,r,a,d);});r.setAttribute(yd,D);null!=m?v(m):window.onload=function(G){return function(){"function"===
286
- typeof G&&G();v(document.body);}}(window.onload);},gf:function(m){for(var q=document.querySelectorAll(".ab-feed"),v=0;v<q.length;v++)(null==m||null!=m&&q[v].parentNode===m)&&xd(a,q[v]);},Qh:function(m,q){0<document.querySelectorAll(".ab-feed").length?a.display.gf():a.display.rf(m,q);}}}(X,Pf);Pf.display={};Pf.display.automaticallyShowNewInAppMessages=Qf.Tg;Pf.display.showInAppMessage=Qf.sf;Pf.display.showFeed=Qf.Vd;Pf.display.destroyFeed=Qf.af;Pf.display.toggleFeed=Qf.Rh;Pf.display.showContentCards=Qf.rf;
287
- Pf.display.hideContentCards=Qf.gf;Pf.display.toggleContentCards=Qf.Qh;X.display=Qf;return appboyInterface});}).call(window);
24
+ const je={pn:function(t){const r=(t+"=".repeat((4-t.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),n=atob(r),o=new Uint8Array(n.length);for(let t=0;t<n.length;++t)o[t]=n.charCodeAt(t);return o}};
25
+
26
+ const ve={CustomEvent:"ce",Pr:"p",Sl:"pc",oc:"ca",Ra:"i",qs:"ie",T:"cci",W:"ccic",_:"ccc",L:"ccd",Wh:"ss",bh:"se",Je:"si",Re:"sc",He:"sbc",Pe:"sfe",ro:"iec",vl:"lr",yl:"uae",U:"ci",F:"cc",Al:"lcaa",$l:"lcar",En:"inc",An:"add",Un:"rem",Sn:"set",Cl:"sgu"},De={Fr:"feed_displayed",ac:"content_cards_displayed"};
27
+
28
+ const Be={nt:()=>{const t=t=>{const e=(Math.random().toString(16)+"000000000").substr(2,8);return t?"-"+e.substr(0,4)+"-"+e.substr(4,4):e};return t()+t(!0)+t(!0)+t()}};
29
+
30
+ class Ae{constructor(t,e){this.td="undefined"==typeof window?self:window,this.ed=t,this.nd=e;}od(){if("indexedDB"in this.td)return this.td.indexedDB}rd(){try{if(null==this.od())return !1;if(this.od().open("Braze IndexedDB Support Test"),"undefined"!=typeof window){const t=window.chrome||window.browser||window.msBrowser;if(t&&t.runtime&&t.runtime.id)return this.nd.info("Not using IndexedDB for storage because we are running inside an extension"),!1}return !0}catch(t){return this.nd.info("Not using IndexedDB for storage due to following error: "+t),!1}}dd(t,e){const n=this.od().open(this.ed.sd,this.ed.VERSION);if(null==n)return "function"==typeof e&&e(),!1;const o=this;return n.onupgradeneeded=t=>{o.nd.info("Upgrading indexedDB "+o.ed.sd+" to v"+o.ed.VERSION+"...");const e=t.target.result;for(const t in o.ed.$t)o.ed.$t.hasOwnProperty(t)&&!e.objectStoreNames.contains(o.ed.$t[t])&&e.createObjectStore(o.ed.$t[t]);},n.onsuccess=n=>{const i=n.target.result;i.onversionchange=()=>{i.close(),"function"==typeof e&&e(),o.nd.error("Needed to close the database unexpectedly because of an upgrade in another tab");},t(i);},n.onerror=t=>(o.nd.info("Could not open indexedDB "+o.ed.sd+" v"+o.ed.VERSION+": "+t.target.errorCode),"function"==typeof e&&e(),!0),!0}setItem(t,e,n,o,i){if(!this.rd())return "function"==typeof i&&i(),!1;const r=this;return this.dd((d=>{if(!d.objectStoreNames.contains(t))return r.nd.error("Could not store object "+e+" in "+t+" on indexedDB "+r.ed.sd+" - "+t+" is not a valid objectStore"),void("function"==typeof i&&i());const s=d.transaction([t],"readwrite").objectStore(t).put(n,e);s.onerror=()=>{r.nd.error("Could not store object "+e+" in "+t+" on indexedDB "+r.ed.sd),"function"==typeof i&&i();},s.onsuccess=()=>{"function"==typeof o&&o();};}),i)}getItem(t,e,n){if(!this.rd())return !1;const o=this;return this.dd((i=>{if(!i.objectStoreNames.contains(t))return void o.nd.error("Could not retrieve object "+e+" in "+t+" on indexedDB "+o.ed.sd+" - "+t+" is not a valid objectStore");const r=i.transaction([t],"readonly").objectStore(t).get(e);r.onerror=()=>{o.nd.error("Could not retrieve object "+e+" in "+t+" on indexedDB "+o.ed.sd);},r.onsuccess=t=>{const e=t.target.result;null!=e&&n(e);};}))}hr(t,e,n){if(!this.rd())return "function"==typeof n&&n(),!1;const o=this;return this.dd((i=>{if(!i.objectStoreNames.contains(t))return o.nd.error("Could not retrieve last record from "+t+" on indexedDB "+o.ed.sd+" - "+t+" is not a valid objectStore"),void("function"==typeof n&&n());const r=i.transaction([t],"readonly").objectStore(t).openCursor(null,"prev");r.onerror=()=>{o.nd.error("Could not open cursor for "+t+" on indexedDB "+o.ed.sd),"function"==typeof n&&n();},r.onsuccess=t=>{const o=t.target.result;null!=o&&null!=o.value&&null!=o.key?e(o.key,o.value):"function"==typeof n&&n();};}),n)}br(t,e){if(!this.rd())return !1;const n=this;return this.dd((o=>{if(!o.objectStoreNames.contains(t))return void n.nd.error("Could not delete record "+e+" from "+t+" on indexedDB "+n.ed.sd+" - "+t+" is not a valid objectStore");o.transaction([t],"readwrite").objectStore(t).delete(e).onerror=()=>{n.nd.error("Could not delete record "+e+" from "+t+" on indexedDB "+n.ed.sd);};}))}Jt(t,e){if(!this.rd())return !1;const n=this;return this.dd((o=>{if(!o.objectStoreNames.contains(t))return void n.nd.error("Could not retrieve objects from "+t+" on indexedDB "+n.ed.sd+" - "+t+" is not a valid objectStore");const i=o.transaction([t],"readwrite").objectStore(t),r=i.openCursor(),d=[];r.onerror=()=>{d.length>0?(n.nd.info("Cursor closed midway through for "+t+" on indexedDB "+n.ed.sd),e(d)):n.nd.error("Could not open cursor for "+t+" on indexedDB "+n.ed.sd);},r.onsuccess=t=>{const n=t.target.result;if(null!=n){if(null!=n.value&&null!=n.key){i.delete(n.key).onsuccess=()=>{d.push(n.value);};}n.continue();}else d.length>0&&e(d);};}))}clearData(){if(!this.rd())return !1;const t=[];for(const e in this.ed.$t)this.ed.$t.hasOwnProperty(e)&&this.ed.$t[e]!==this.ed.$t.oe&&t.push(this.ed.$t[e]);const e=this;return this.dd((function(n){const o=n.transaction(t,"readwrite");for(let n=0;n<t.length;n++){const i=t[n];o.objectStore(i).clear().onerror=function(){e.nd.error("Could not clear "+this.source.name+" on indexedDB "+e.ed.sd);};}o.onerror=function(){e.nd.error("Could not clear object stores on indexedDB "+e.ed.sd);};}))}}Ae.ep={Ft:{sd:"AppboyServiceWorkerAsyncStorage",VERSION:6,$t:{jl:"data",jr:"pushClicks",pu:"pushSubscribed",ud:"fallbackDevice",Mt:"cardUpdates",oe:"optOut",$r:"pendingData",Kn:"sdkAuthenticationSignature"},se:1}};
31
+
32
+ const Ge={init:function(n){void 0===n&&void 0!==Ge.zg||(Ge.zg=!!n),Ge.Dg||(Ge.Dg=!0);},destroy:function(){Ge.Dg=!1,Ge.zg=void 0,Ge.nd=void 0;},setLogger:function(n){"function"==typeof n?(Ge.init(),Ge.nd=n):Ge.info("Ignoring setLogger call since logger is not a function");},toggleLogging:function(){Ge.init(),Ge.zg?(console.log("Disabling Braze logging"),Ge.zg=!1):(console.log("Enabled Braze logging"),Ge.zg=!0);},info:function(n){if(Ge.zg){const o="Braze: "+n;null!=Ge.nd?Ge.nd(o):console.log(o);}},warn:function(n){if(Ge.zg){const o="Braze SDK Warning: "+n+" (v4.2.1)";null!=Ge.nd?Ge.nd(o):console.warn(o);}},error:function(n){if(Ge.zg){const o="Braze SDK Error: "+n+" (v4.2.1)";null!=Ge.nd?Ge.nd(o):console.error(o);}}};
33
+
34
+ var Oe = {Rn:"allowCrawlerActivity",Wn:"baseUrl",Vn:"noCookies",Yn:"devicePropertyAllowlist",ta:"disablePushTokenMaintenance",Xn:"enableLogging",Zn:"enableSdkAuthentication",ia:"manageServiceWorkerExternally",ho:"minimumIntervalBetweenTriggerActionsInSeconds",po:"sessionTimeoutInSeconds",Eo:"appVersion",na:"serviceWorkerLocation",ra:"safariWebsitePushId",jn:"localization",ao:"contentSecurityNonce",_o:"enableHtmlInAppMessages",Io:"allowUserSuppliedJavascript",no:"inAppMessageZIndex",lo:"openInAppMessagesInNewTab",en:"openNewsFeedCardsInNewTab",Ui:"requireExplicitInAppMessageDismissal",Ao:"doNotLoadFontAwesome",So:"sdkFlavor",tn:"openCardsInNewTab"};
35
+
36
+ const r={bn:je,A:ve,qr:De,it:Be,qt:Ae,xt:Ae.ep,D:Ge,zo:Oe};var r$1 = r;
37
+
38
+ function values(t){const e=[];for(let r in t)t.hasOwnProperty(r)&&void 0!==t[r]&&e.push(t[r]);return e}function validateValueIsFromEnum(t,e,n,o){const c=values(t);return -1!==c.indexOf(e)||(r$1.D.error(`${n} Valid values from ${o} are "${c.join('"/"')}".`),!1)}function isArray(t){return Array.isArray?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)}function isDate(t){return "[object Date]"===Object.prototype.toString.call(t)}function isObject$1(t){return "[object Object]"===Object.prototype.toString.call(t)}function intersection(t){null==t&&(t=[]);const e=[],r=arguments.length;for(let n=0,o=t.length;n<o;n++){const o=t[n];if(-1!==e.indexOf(o))continue;let c=1;for(c=1;c<r&&-1!==arguments[c].indexOf(o);c++);c===r&&e.push(o);}return e}function keys(t){const e=[];for(let r in t)t.hasOwnProperty(r)&&e.push(r);return e}function isEqual(t,e){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return t===e;const r=t.toString();if(r!==e.toString())return !1;switch(r){case"[object RegExp]":case"[object String]":return ""+t==""+e;case"[object Number]":return +t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return +t==+e}const n="[object Array]"===r;if(!n){if("object"!=typeof t||"object"!=typeof e)return !1;const r=t.constructor,n=e.constructor;if(r!==n&&!("function"==typeof r&&r instanceof r&&"function"==typeof n&&n instanceof n)&&"constructor"in t&&"constructor"in e)return !1}const o=[],c=[];let i=o.length;for(;i--;)if(o[i]===t)return c[i]===e;if(o.push(t),c.push(e),n){if(i=t.length,i!==e.length)return !1;for(;i--;)if(!isEqual(t[i],e[i]))return !1}else {let r,n=keys(t);if(i=n.length,keys(e).length!==i)return !1;for(;i--;)if(r=n[i],!e.hasOwnProperty(r)||!isEqual(t[r],e[r]))return !1}return o.pop(),c.pop(),!0}
39
+
40
+ function convertMsToSeconds(e,n){let t=e/1e3;return n&&(t=Math.floor(t)),t}function convertSecondsToMs(e){return 1e3*e}function dateFromUnixTimestamp(e){const n=parseInt(e);return null==e||isNaN(n)?null:new Date(1e3*n)}function toValidBackendTimeString(e){return null!=e&&isDate(e)?e.toISOString().replace(/\.[0-9]{3}Z$/,""):e}function rehydrateDateAfterJsonization(e){return null==e||""===e?null:new Date(e)}function timestampOrNow(e){return null==e||""===e?(new Date).valueOf():e}function secondsAgo(e){return ((new Date).valueOf()-e.valueOf())/1e3}function secondsInTheFuture(e){return (e.valueOf()-(new Date).valueOf())/1e3}
41
+
42
+ const MAX_PURCHASE_QUANTITY=100;const MUST_BE_IN_APP_MESSAGE_WARNING="inAppMessage must be an InAppMessage object";const MUST_BE_CARD_WARNING_SUFFIX="must be a Card object";const FEED_ANIMATION_DURATION=500;
43
+
44
+ class u{constructor(){this.De={};}ut(t){if("function"!=typeof t)return null;const i=r$1.it.nt();return this.De[i]=t,i}removeSubscription(t){delete this.De[t];}removeAllSubscriptions(){this.De={};}St(t){const i=[];for(let r in this.De)i.push(this.De[r](t));return i}}
45
+
46
+ class Card{constructor(t,i,s,n,l,h,e,r,E,u,T,o,I,a,N,S){this.id=t,this.viewed=i||!1,this.title=s||"",this.imageUrl=n,this.description=l||"",this.created=h||null,this.updated=e||null,this.categories=r||[],this.expiresAt=E||null,this.url=u,this.linkText=T,o=parseFloat(o),this.aspectRatio=isNaN(o)?null:o,this.extras=I,this.pinned=a||!1,this.dismissible=N||!1,this.dismissed=!1,this.clicked=S||!1,this.test=!1,this.lt=null,this.Et=null;}subscribeToClickedEvent(t){return this.Tt().ut(t)}subscribeToDismissedEvent(t){return this.It().ut(t)}removeSubscription(t){this.Tt().removeSubscription(t),this.It().removeSubscription(t);}removeAllSubscriptions(){this.Tt().removeAllSubscriptions(),this.It().removeAllSubscriptions();}dismissCard(){if(this.dismissible&&!this.dismissed){this.tt&&this.tt(this);var t=this.X;t&&(t.style.height=t.offsetHeight+"px",t.className=t.className+" ab-hide",setTimeout((function(){t&&t.parentNode&&(t.style.height="0",t.style.margin="0",setTimeout((function(){t&&t.parentNode&&t.parentNode.removeChild(t);}),Card.Nt));}),FEED_ANIMATION_DURATION));}}Tt(){return null==this.lt&&(this.lt=new u),this.lt}It(){return null==this.Et&&(this.Et=new u),this.Et}R(){this.viewed=!0;}k(){this.viewed=!0,this.clicked=!0,this.Tt().St();}J(){return !(!this.dismissible||this.dismissed)&&(this.dismissed=!0,this.It().St(),!0)}ct(t){if(null==t||t[Card.At.ns]!==this.id)return !0;if(t[Card.At.Dt])return !1;if(null!=t[Card.At.us]&&null!=this.updated&&t[Card.At.us]<convertMsToSeconds(this.updated.valueOf()))return !0;if(t[Card.At.ls]&&!this.viewed&&(this.viewed=!0),t[Card.At.gs]&&!this.clicked&&(this.clicked=t[Card.At.gs]),null!=t[Card.At.ht]&&(this.title=t[Card.At.ht]),null!=t[Card.At.os]&&(this.imageUrl=t[Card.At.os]),null!=t[Card.At.rt]&&(this.description=t[Card.At.rt]),null!=t[Card.At.us]){const i=dateFromUnixTimestamp(t[Card.At.us]);null!=i&&(this.updated=i);}if(null!=t[Card.At.ps]){let i;i=t[Card.At.ps]===Card.Ct?null:dateFromUnixTimestamp(t[Card.At.ps]),this.expiresAt=i;}if(null!=t[Card.At.URL]&&(this.url=t[Card.At.URL]),null!=t[Card.At.bs]&&(this.linkText=t[Card.At.bs]),null!=t[Card.At.fs]){const i=parseFloat(t[Card.At.fs]);this.aspectRatio=isNaN(i)?null:i;}return null!=t[Card.At.xs]&&(this.extras=t[Card.At.xs]),null!=t[Card.At.js]&&(this.pinned=t[Card.At.js]),null!=t[Card.At.zs]&&(this.dismissible=t[Card.At.zs]),null!=t[Card.At.ks]&&(this.test=t[Card.At.ks]),!0}}Card.Ct=-1,Card.es={st:"captioned_image",dt:"text_announcement",Rt:"short_news",rs:"banner_image",_t:"control"},Card.At={ns:"id",ls:"v",zs:"db",Dt:"r",us:"ca",js:"p",ps:"ea",xs:"e",ts:"tp",os:"i",ht:"tt",rt:"ds",URL:"u",bs:"dm",fs:"ar",gs:"cl",ks:"t"},Card.hs={ns:"id",ls:"v",zs:"db",cs:"cr",us:"ca",js:"p",ds:"t",ps:"ea",xs:"e",ts:"tp",os:"i",ht:"tt",rt:"ds",URL:"u",bs:"dm",fs:"ar",gs:"cl",ks:"s"},Card.Lt={Ot:"ADVERTISING",bt:"ANNOUNCEMENTS",ft:"NEWS",Pt:"SOCIAL"},Card.Nt=400;
47
+
48
+ class Banner extends Card{constructor(s,t,i,h,r,e,n,l,a,o,u,c,d,p){super(s,t,null,i,null,h,r,e,n,l,a,o,u,c,d,p),this.Y="ab-banner",this.Z=!1;}ss(){const s={};return s[Card.hs.ts]=Card.es.rs,s[Card.hs.ns]=this.id,s[Card.hs.ls]=this.viewed,s[Card.hs.os]=this.imageUrl,s[Card.hs.us]=this.updated,s[Card.hs.cs]=this.created,s[Card.hs.ds]=this.categories,s[Card.hs.ps]=this.expiresAt,s[Card.hs.URL]=this.url,s[Card.hs.bs]=this.linkText,s[Card.hs.fs]=this.aspectRatio,s[Card.hs.xs]=this.extras,s[Card.hs.js]=this.pinned,s[Card.hs.zs]=this.dismissible,s[Card.hs.gs]=this.clicked,s[Card.hs.ks]=this.test,s}}
49
+
50
+ class CaptionedImage extends Card{constructor(t,s,i,h,e,r,a,o,c,n,d,p,u,l,m,f){super(t,s,i,h,e,r,a,o,c,n,d,p,u,l,m,f),this.Y="ab-captioned-image",this.Z=!0;}ss(){const t={};return t[Card.hs.ts]=Card.es.st,t[Card.hs.ns]=this.id,t[Card.hs.ls]=this.viewed,t[Card.hs.ht]=this.title,t[Card.hs.os]=this.imageUrl,t[Card.hs.rt]=this.description,t[Card.hs.us]=this.updated,t[Card.hs.cs]=this.created,t[Card.hs.ds]=this.categories,t[Card.hs.ps]=this.expiresAt,t[Card.hs.URL]=this.url,t[Card.hs.bs]=this.linkText,t[Card.hs.fs]=this.aspectRatio,t[Card.hs.xs]=this.extras,t[Card.hs.js]=this.pinned,t[Card.hs.zs]=this.dismissible,t[Card.hs.gs]=this.clicked,t[Card.hs.ks]=this.test,t}}
51
+
52
+ class ClassicCard extends Card{constructor(s,t,i,h,r,c,e,a,o,d,l,n,u,p,f,m){super(s,t,i,h,r,c,e,a,o,d,l,n,u,p,f,m),this.Y="ab-classic-card",this.Z=!0;}ss(){const s={};return s[Card.hs.ts]=Card.es.Rt,s[Card.hs.ns]=this.id,s[Card.hs.ls]=this.viewed,s[Card.hs.ht]=this.title,s[Card.hs.os]=this.imageUrl,s[Card.hs.rt]=this.description,s[Card.hs.us]=this.updated,s[Card.hs.cs]=this.created,s[Card.hs.ds]=this.categories,s[Card.hs.ps]=this.expiresAt,s[Card.hs.URL]=this.url,s[Card.hs.bs]=this.linkText,s[Card.hs.fs]=this.aspectRatio,s[Card.hs.xs]=this.extras,s[Card.hs.js]=this.pinned,s[Card.hs.zs]=this.dismissible,s[Card.hs.gs]=this.clicked,s[Card.hs.ks]=this.test,s}}
53
+
54
+ class ControlCard extends Card{constructor(l,t,s,n,u,i){super(l,t,null,null,null,null,s,null,n,null,null,null,u,i,null),this.Y="ab-control-card",this.Z=!1;}ss(){const l={};return l[Card.hs.ts]=Card.es._t,l[Card.hs.ns]=this.id,l[Card.hs.ls]=this.viewed,l[Card.hs.us]=this.updated,l[Card.hs.ps]=this.expiresAt,l[Card.hs.xs]=this.extras,l[Card.hs.js]=this.pinned,l[Card.hs.ks]=this.test,l}}
55
+
56
+ class Zt{constructor(){}tf(){}ef(){}Ko(t){}static rf(t,e){if(t&&e)if(t=t.toLowerCase(),isArray(e.if)){for(let r=0;r<e.if.length;r++)if(-1!==t.indexOf(e.if[r].toLowerCase()))return e.identity}else if(-1!==t.indexOf(e.if.toLowerCase()))return e.identity}}
57
+
58
+ const Browsers={rE:"Chrome",eE:"Edge",vg:"Internet Explorer",EE:"Opera",yg:"Safari",oE:"Firefox"};const OperatingSystems={Og:"Android",ln:"iOS",Bg:"Mac",mg:"Windows"};
59
+
60
+ class ti extends Zt{constructor(){if(super(),this.userAgentData=navigator.userAgentData,this.userAgentData){const t=this.sc();this.browser=t.browser||"Unknown Browser",this.version=t.version||"Unknown Version";}}tf(){return this.browser}ef(){return this.version}Ko(t){if(this.OS)return Promise.resolve(this.OS);const r=r=>{for(let s=0;s<t.length;s++){const e=ti.rf(r,t[s]);if(e)return this.OS=e,this.OS}return r};return this.userAgentData.platform?Promise.resolve(r(this.userAgentData.platform)):this.ic().then((t=>r(t.platform))).catch((()=>navigator.platform))}sc(){const t={},r=this.userAgentData.brands;if(r&&r.length)for(const s of r){const r=this.nc(Browsers),e=s.brand.match(r);if(e&&e.length>0){t.browser=e[0],t.version=s.version;break}}return t}nc(t){const r=[];for(const s in t)t[s]!==Browsers.vg&&r.push(t[s]);return new RegExp("("+r.join("|")+")","i")}ic(){return this.userAgentData.getHighEntropyValues?this.userAgentData.getHighEntropyValues(["platform"]):Promise.reject()}}
61
+
62
+ class ni extends Zt{constructor(){super(),this.au=ni.du(navigator.userAgent||"");}tf(){return this.au[0]||"Unknown Browser"}ef(){return this.au[1]||"Unknown Version"}Ko(r){for(let e=0;e<r.length;e++){let n=r[e].string,i=ni.rf(n,r[e]);if(i)return i===OperatingSystems.Bg&&navigator.maxTouchPoints>1&&(i=OperatingSystems.ln),Promise.resolve(i)}return Promise.resolve(navigator.platform)}static du(r){let e,n=r.match(/(samsungbrowser|tizen|roku|konqueror|icab|crios|opera|ucbrowser|chrome|safari|firefox|camino|msie|trident(?=\/))\/?\s*(\.?\d+(\.\d+)*)/i)||[];if(/trident/i.test(n[1]))return e=/\brv[ :]+(\.?\d+(\.\d+)*)/g.exec(r)||[],[Browsers.vg,e[1]||""];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]===Browsers.rE&&(e=r.match(/\b(OPR|Edge|EdgA|Edg|UCBrowser)\/(\.?\d+(\.\d+)*)/),null!=e))return e=e.slice(1),e[0]=e[0].replace("OPR",Browsers.EE),e[0]=e[0].replace("EdgA",Browsers.eE),"Edg"===e[0]&&(e[0]=Browsers.eE),[e[0],e[1]];if(n[1]===Browsers.yg&&(e=r.match(/\b(EdgiOS)\/(\.?\d+(\.\d+)*)/),null!=e))return e=e.slice(1),e[0]=e[0].replace("EdgiOS",Browsers.eE),[e[0],e[1]];if(n=n[2]?[n[1],n[2]]:[null,null],n[0]===Browsers.yg&&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]===Browsers.EE&&null!=(e=r.match(/mini\/(\.?\d+(\.\d+)*)/i)))return ["Opera Mini",e[1]||""];if(n[0]){const r=n[0].toLowerCase();"msie"===r&&(n[0]=Browsers.vg),"crios"===r&&(n[0]=Browsers.rE),"tizen"===r&&(n[0]="Samsung Smart TV",n[1]=null),"samsungbrowser"===r&&(n[0]="Samsung Browser");}return n}}
63
+
64
+ class si{constructor(){const t=navigator.userAgentData?ti:ni;this.dg=new t,this.userAgent=navigator.userAgent,this.browser=this.dg.tf(),this.version=this.dg.ef(),this.Ko().then((t=>this.OS=t)),this.language=(navigator.userLanguage||navigator.language||navigator.browserLanguage||navigator.systemLanguage||"").toLowerCase(),this.Do=si.Sg(this.userAgent);}bg(){return this.browser!==Browsers.vg||this.version>8}La(){return this.browser===Browsers.yg}qo(){return this.OS||null}Ko(){return this.OS?Promise.resolve(this.OS):this.dg.Ko(si.pg).then((t=>(this.OS=t,t)))}static Sg(t){t=t.toLowerCase();const i=["googlebot","bingbot","slurp","duckduckbot","baiduspider","yandex","facebookexternalhit","sogou","ia_archiver","https://github.com/prerender/prerender","aolbuild","bingpreview","msnbot","adsbot","mediapartners-google","teoma"];for(let n=0;n<i.length;n++)if(-1!==t.indexOf(i[n]))return !0;return !1}}si.pg=[{string:navigator.platform,if:"Win",identity:OperatingSystems.mg},{string:navigator.platform,if:"Mac",identity:OperatingSystems.Bg},{string:navigator.platform,if:"BlackBerry",identity:"BlackBerry"},{string:navigator.platform,if:"FreeBSD",identity:"FreeBSD"},{string:navigator.platform,if:"OpenBSD",identity:"OpenBSD"},{string:navigator.platform,if:"Nintendo",identity:"Nintendo"},{string:navigator.platform,if:"SunOS",identity:"SunOS"},{string:navigator.platform,if:"PlayStation",identity:"PlayStation"},{string:navigator.platform,if:"X11",identity:"X11"},{string:navigator.userAgent,if:["iPhone","iPad","iPod"],identity:OperatingSystems.ln},{string:navigator.platform,if:"Pike v",identity:OperatingSystems.ln},{string:navigator.userAgent,if:["Web0S"],identity:"WebOS"},{string:navigator.platform,if:["Linux armv7l","Android"],identity:OperatingSystems.Og},{string:navigator.userAgent,if:["Android"],identity:OperatingSystems.Og},{string:navigator.platform,if:"Linux",identity:"Linux"}];const et=new si;
65
+
66
+ class ue{constructor(t,i,s,r,e){this.userId=t,this.type=i,this.time=timestampOrNow(s),this.sessionId=r,this.data=e;}li(){const t={name:this.type,time:convertMsToSeconds(this.time),data:this.data||{},session_id:this.sessionId};return null!=this.userId&&(t.user_id=this.userId),t}ss(){return {u:this.userId,t:this.type,ts:this.time,s:this.sessionId,d:this.data}}static fromJson(t){return new ue(t.user_id,t.name,t.time,t.session_id,t.data)}static Ma(t){return null!=t&&isObject$1(t)&&null!=t.t&&""!==t.t}static yn(t){return new ue(t.u,t.t,t.ts,t.s,t.d)}}
67
+
68
+ class _t{constructor(t,e,s){null==t&&(t=r$1.it.nt()),s=parseInt(s),(isNaN(s)||0===s)&&(s=(new Date).valueOf()),this.eu=t,this.xh=s,this._h=(new Date).valueOf(),this.Nh=e;}ss(){return {g:this.eu,e:this.Nh,c:this.xh,l:this._h}}static yn(t){if(null==t||null==t.g)return null;const e=new _t(t.g,t.e,t.c);return e._h=t.l,e}}
69
+
70
+ function getByteLength(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}function decodeBrazeActions(e){try{e=e.replace(/-/g,"+").replace(/_/g,"/");let t=window.atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);let n=new Uint16Array(r.buffer);return String.fromCharCode(...n)}catch(e){return r$1.D.error("Unable to decode Base64: "+e),null}}
71
+
72
+ const BRAZE_ACTIONS={types:{ue:"container",logCustomEvent:"logCustomEvent",setEmailNotificationSubscriptionType:"setEmailNotificationSubscriptionType",setPushNotificationSubscriptionType:"setPushNotificationSubscriptionType",setCustomUserAttribute:"setCustomUserAttribute",requestPushPermission:"requestPushPermission",addToSubscriptionGroup:"addToSubscriptionGroup",removeFromSubscriptionGroup:"removeFromSubscriptionGroup",addToCustomAttributeArray:"addToCustomAttributeArray",removeFromCustomAttributeArray:"removeFromCustomAttributeArray",de:"openLink",pe:"openLinkInWebView"},properties:{type:"type",me:"steps",fe:"args"}};const INELIGIBLE_BRAZE_ACTION_URL_ERROR_TYPES={We:"unknownBrazeAction",Ye:"noPushPrompt"};const ineligibleBrazeActionURLErrorMessage=(t,o)=>{switch(t){case INELIGIBLE_BRAZE_ACTION_URL_ERROR_TYPES.We:return `${o} contains an unknown braze action type and will not be displayed.`;case INELIGIBLE_BRAZE_ACTION_URL_ERROR_TYPES.Ye:return `${o} contains a push prompt braze action, but is not eligible for a push prompt. Ignoring.`;default:return ""}};function getDecodedBrazeAction(t){try{let o=t.match(BRAZE_ACTION_URI_REGEX)[0].length;const e=t.substring(o);if(o>t.length-1||!e)return void r$1.D.error(`Did not find base64 encoded brazeAction in url to process : ${t}`);const n=decodeBrazeActions(e);return n?JSON.parse(n):void r$1.D.error(`Failed to decode base64 encoded brazeAction: ${e}`)}catch(o){return void r$1.D.error(`Failed to process brazeAction URL ${t} : ${o.message}`)}}function oo(t,o){let r=!1;for(const e of o)if(r=r||t(e),r)return !0;return !1}function containsUnknownBrazeAction(t){try{const o=t[BRAZE_ACTIONS.properties.type];return o===BRAZE_ACTIONS.types.ue?oo(containsUnknownBrazeAction,t[BRAZE_ACTIONS.properties.me]):!isValidBrazeActionType(o)}catch(t){return !0}}function containsPushPrimerBrazeAction(t){if(!isValidBrazeActionJson(t))return !1;const o=t[BRAZE_ACTIONS.properties.type];return o===BRAZE_ACTIONS.types.ue?oo(containsPushPrimerBrazeAction,t[BRAZE_ACTIONS.properties.me]):o===BRAZE_ACTIONS.types.requestPushPermission}
73
+
74
+ const CUSTOM_DATA_REGEX=/^[^\x00-\x1F\x22]+$/;const EMAIL_ADDRESS_REGEX=new RegExp(/^.+@.+\..+$/);const BRAZE_ACTION_URI_REGEX=/^brazeActions:\/\/v\d+\//;function _validatePropertyType(e){const t=typeof e;return null==e||"number"===t||"boolean"===t||isDate(e)||"string"===t}function _validateNestedProperties(e,t){if(isArray(e)&&isArray(t)){for(let r=0;r<e.length&&r<t.length;r++)if(isDate(e[r])&&(t[r]=toValidBackendTimeString(e[r])),!_validateNestedProperties(e[r],t[r]))return !1}else {if(!isObject$1(e))return _validatePropertyType(e);for(const r of keys(e))if(isDate(e[r])&&(t[r]=toValidBackendTimeString(e[r])),!_validateNestedProperties(e[r],t[r]))return !1}return !0}function _validateEventPropertyValue(e,t,n,o){let i;return i=isObject$1(e)||isArray(e)?_validateNestedProperties(e,t):_validatePropertyType(e),i||r$1.D.error(`Cannot ${n} because ${o} "${e}" is invalid.`),i}function validateStandardString(e,t,n,o){const i="string"==typeof e||null===e&&o;return i||r$1.D.error(`Cannot ${t} because ${n} "${e}" is invalid.`),i}function validateCustomString(e,t,n){const o=null!=e&&"string"==typeof e&&(""===e||e.match(CUSTOM_DATA_REGEX));return o||r$1.D.error(`Cannot ${t} because ${n} "${e}" is invalid.`),o}function validateCustomProperties(e,t,n,o,i){if(null==e&&(e={}),"object"!=typeof e||isArray(e))return r$1.D.error(`${t} requires that ${n} be an object. Ignoring ${i}.`),[!1,null];const a=JSON.stringify(e);if(getByteLength(a)>51200)return r$1.D.error(`Could not ${o} because ${n} was greater than the max size of 50KB.`),[!1,null];let s;try{s=JSON.parse(a);}catch(e){return r$1.D.error(`Could not ${o} because ${n} did not contain valid JSON.`),[!1,null]}for(let t in e){if(!validateCustomString(t,o,`the ${i} property name`))return [!1,null];const r=e[t];if(null==r){delete e[t],delete s[t];continue}isDate(r)&&(s[t]=toValidBackendTimeString(r));if(!_validateEventPropertyValue(r,s[t],o,`the ${i} property "${t}"`))return [!1,null]}return [!0,s]}function isValidEmail(e){return "string"==typeof e&&null!=e.toLowerCase().match(EMAIL_ADDRESS_REGEX)}function isValidBrazeActionJson(e){if(!(BRAZE_ACTIONS.properties.type in e))return !1;switch(e[BRAZE_ACTIONS.properties.type]){case BRAZE_ACTIONS.types.ue:if(BRAZE_ACTIONS.properties.me in e)return !0;break;case BRAZE_ACTIONS.types.logCustomEvent:case BRAZE_ACTIONS.types.setEmailNotificationSubscriptionType:case BRAZE_ACTIONS.types.setPushNotificationSubscriptionType:case BRAZE_ACTIONS.types.setCustomUserAttribute:case BRAZE_ACTIONS.types.addToSubscriptionGroup:case BRAZE_ACTIONS.types.removeFromSubscriptionGroup:case BRAZE_ACTIONS.types.addToCustomAttributeArray:case BRAZE_ACTIONS.types.removeFromCustomAttributeArray:case BRAZE_ACTIONS.types.de:case BRAZE_ACTIONS.types.pe:if(BRAZE_ACTIONS.properties.fe in e)return !0;break;case BRAZE_ACTIONS.types.requestPushPermission:return !0;default:return !1}return !1}function isValidBrazeActionType(e){let t=!1;return Object.keys(BRAZE_ACTIONS.types).forEach((r=>{BRAZE_ACTIONS.types[r]!==e.toString()||(t=!0);})),t}
75
+
76
+ class User{constructor(t,e){this.v=t,this.si=e;}getUserId(t){null==t&&r$1.D.error("getUserId must be supplied with a callback. e.g., braze.getUser().getUserId(function(userId) {console.log('the user id is ' + userId)})"),"function"==typeof t&&t(this.v.getUserId());}addAlias(t,e){return !validateStandardString(t,"add alias","the alias",!1)||t.length<=0?(r$1.D.error("addAlias requires a non-empty alias"),!1):!validateStandardString(e,"add alias","the label",!1)||e.length<=0?(r$1.D.error("addAlias requires a non-empty label"),!1):this.si.Nn(t,e).S}setFirstName(t){return !!validateStandardString(t,"set first name","the firstName",!0)&&this.v.nu("first_name",t)}setLastName(t){return !!validateStandardString(t,"set last name","the lastName",!0)&&this.v.nu("last_name",t)}setEmail(t){return null===t||isValidEmail(t)?this.v.nu("email",t):(r$1.D.error(`Cannot set email address - "${t}" did not pass RFC-5322 validation.`),!1)}setGender(t){return "string"==typeof t&&(t=t.toLowerCase()),!(null!==t&&!validateValueIsFromEnum(User.Genders,t,`Gender "${t}" is not a valid gender.`,"User.Genders"))&&this.v.nu("gender",t)}setDateOfBirth(t,e,s){return null===t&&null===e&&null===s?this.v.nu("dob",null):(t=parseInt(t),e=parseInt(e),s=parseInt(s),isNaN(t)||isNaN(e)||isNaN(s)||e>12||e<1||s>31||s<1?(r$1.D.error("Cannot set date of birth - parameters should comprise a valid date e.g. setDateOfBirth(1776, 7, 4);"),!1):this.v.nu("dob",`${t}-${e}-${s}`))}setCountry(t){return !!validateStandardString(t,"set country","the country",!0)&&this.v.nu("country",t)}setHomeCity(t){return !!validateStandardString(t,"set home city","the homeCity",!0)&&this.v.nu("home_city",t)}setLanguage(t){return !!validateStandardString(t,"set language","the language",!0)&&this.v.nu("language",t)}setEmailNotificationSubscriptionType(t){return !!validateValueIsFromEnum(User.NotificationSubscriptionTypes,t,`Email notification setting "${t}" is not a valid subscription type.`,"User.NotificationSubscriptionTypes")&&this.v.nu("email_subscribe",t)}setPushNotificationSubscriptionType(t){return !!validateValueIsFromEnum(User.NotificationSubscriptionTypes,t,`Push notification setting "${t}" is not a valid subscription type.`,"User.NotificationSubscriptionTypes")&&this.v.nu("push_subscribe",t)}setPhoneNumber(t){return !!validateStandardString(t,"set phone number","the phoneNumber",!0)&&(null===t||t.match(User.Cn)?this.v.nu("phone",t):(r$1.D.error(`Cannot set phone number - "${t}" did not pass validation.`),!1))}setLastKnownLocation(t,e,s,i,n){return null==t||null==e?(r$1.D.error("Cannot set last-known location - latitude and longitude are required."),!1):(t=parseFloat(t),e=parseFloat(e),null!=s&&(s=parseFloat(s)),null!=i&&(i=parseFloat(i)),null!=n&&(n=parseFloat(n)),isNaN(t)||isNaN(e)||null!=s&&isNaN(s)||null!=i&&isNaN(i)||null!=n&&isNaN(n)?(r$1.D.error("Cannot set last-known location - all supplied parameters must be numeric."),!1):t>90||t<-90||e>180||e<-180?(r$1.D.error("Cannot set last-known location - latitude and longitude are bounded by ±90 and ±180 respectively."),!1):null!=s&&s<0||null!=n&&n<0?(r$1.D.error("Cannot set last-known location - accuracy and altitudeAccuracy may not be negative."),!1):this.si.setLastKnownLocation(this.v.getUserId(),t,e,i,s,n).S)}setCustomUserAttribute(t,e){if(!validateCustomString(t,"set custom user attribute","the given key"))return !1;const s=typeof e,i=isDate(e),n=isArray(e);if("number"!==s&&"boolean"!==s&&!i&&!n&&null!==e&&!validateCustomString(e,`set custom user attribute "${t}"`,"the given value"))return !1;if(i&&(e=toValidBackendTimeString(e)),n){for(let s=0;s<e.length;s++){const r=e[s];if(!validateCustomString(r,`set custom user attribute "${t}"`,"the element in the given array"))return !1}return this.si.In(r$1.A.Sn,t,e).S}return this.v.setCustomUserAttribute(t,e)}addToCustomAttributeArray(t,e){return !!validateCustomString(t,"add to custom user attribute array","the given key")&&(!(null!=e&&!validateCustomString(e,"add to custom user attribute array","the given value"))&&this.si.In(r$1.A.An,t,e).S)}removeFromCustomAttributeArray(t,e){return !!validateCustomString(t,"remove from custom user attribute array","the given key")&&(!(null!=e&&!validateCustomString(e,"remove from custom user attribute array","the given value"))&&this.si.In(r$1.A.Un,t,e).S)}incrementCustomUserAttribute(t,e){if(!validateCustomString(t,"increment custom user attribute","the given key"))return !1;null==e&&(e=1);const s=parseInt(e);return isNaN(s)||s!==parseFloat(e)?(r$1.D.error(`Cannot increment custom user attribute because the given incrementValue "${e}" is not an integer.`),!1):this.si.In(r$1.A.En,t,s).S}setCustomLocationAttribute(t,e,s){return !!validateCustomString(t,"set custom location attribute","the given key")&&((null!==e||null!==s)&&(e=parseFloat(e),s=parseFloat(s),isNaN(e)||e>90||e<-90||isNaN(s)||s>180||s<-180)?(r$1.D.error("Received invalid values for latitude and/or longitude. Latitude and longitude are bounded by ±90 and ±180 respectively, or must both be null for removal."),!1):this.si.Fn(t,e,s).S)}addToSubscriptionGroup(t){return !validateStandardString(t,"add user to subscription group","subscription group ID",!1)||t.length<=0?(r$1.D.error("addToSubscriptionGroup requires a non-empty subscription group ID"),!1):this.si.Tn(t,User.kn.SUBSCRIBED).S}removeFromSubscriptionGroup(t){return !validateStandardString(t,"remove user from subscription group","subscription group ID",!1)||t.length<=0?(r$1.D.error("removeFromSubscriptionGroup requires a non-empty subscription group ID"),!1):this.si.Tn(t,User.kn.UNSUBSCRIBED).S}Gr(t,e,s,r,i){this.v.Gr(t,e,s,r,i),this.si.$n();}Jr(t){this.v.Jr(t);}}User.Cn=/^[0-9 .\\(\\)\\+\\-]+$/,User.Genders={MALE:"m",FEMALE:"f",OTHER:"o",UNKNOWN:"u",NOT_APPLICABLE:"n",PREFER_NOT_TO_SAY:"p"},User.NotificationSubscriptionTypes={OPTED_IN:"opted_in",SUBSCRIBED:"subscribed",UNSUBSCRIBED:"unsubscribed"},User.kn={SUBSCRIBED:"subscribed",UNSUBSCRIBED:"unsubscribed"},User._n="user_id",User.lu="custom",User.ee=997;
77
+
78
+ const STORAGE_KEYS={iu:{su:"ab.storage.userId",Go:"ab.storage.deviceId",Dh:"ab.storage.sessionId"},q:{ga:"ab.test",Ta:"ab.storage.events",Aa:"ab.storage.attributes",Oa:"ab.storage.attributes.anonymous_user",Ho:"ab.storage.device",Yo:"ab.storage.sdk_metadata",Zo:"ab.storage.session_id_for_cached_metadata",gn:"ab.storage.pushToken",ei:"ab.storage.newsFeed",hi:"ab.storage.lastNewsFeedRefresh",P:"ab.storage.cardImpressions",nh:"ab.storage.serverConfig",ba:"ab.storage.triggers",Ia:"ab.storage.triggers.ts",Ch:"ab.storage.messagingSessionStart",Yt:"ab.storage.cc",vs:"ab.storage.ccLastFullSync",ys:"ab.storage.ccLastCardUpdated",$:"ab.storage.ccClicks",O:"ab.storage.ccImpressions",K:"ab.storage.ccDismissals",Ka:"ab.storage.lastDisplayedTriggerTimesById",Ya:"ab.storage.lastDisplayedTriggerTime",Da:"ab.storage.triggerFireInstancesById",Jn:"ab.storage.signature",As:"ab.storage.brazeSyncRetryCount",_s:"ab.storage.sdkVersion"},ae:"ab.optOut"};class G{constructor(t,e){this.Ga=t,this.Na=e;}ru(t,e){let s=e;null!=e&&e instanceof _t&&(s=e.ss()),this.Ga.store(t,s);}va(t){const e=this.tu(t);null!=e&&(e._h=(new Date).valueOf(),this.ru(t,e));}tu(t){return _t.yn(this.Ga.lr(t))}qh(t){this.Ga.remove(t);}bo(t){if(null==t||0===t.length)return !1;isArray(t)||(t=[t]);let e=this.Na.lr(STORAGE_KEYS.q.Ta);null!=e&&isArray(e)||(e=[]);for(let s=0;s<t.length;s++)e.push(t[s].ss());return this.Na.store(STORAGE_KEYS.q.Ta,e)}Hh(t){return null!=t&&this.bo([t])}Ca(){let t=this.Na.lr(STORAGE_KEYS.q.Ta);this.Na.remove(STORAGE_KEYS.q.Ta),null==t&&(t=[]);const e=[];let s=!1,o=null;if(isArray(t))for(let s=0;s<t.length;s++)ue.Ma(t[s])?e.push(ue.yn(t[s])):o=s;else s=!0;if(s||null!=o){let n="Stored events could not be deserialized as Events";s&&(n+=", was "+Object.prototype.toString.call(t)+" not an array"),null!=o&&(n+=", value at index "+o+" does not look like an event"),n+=", serialized values were of type "+typeof t+": "+JSON.stringify(t),e.push(new ue(null,r$1.A.qs,(new Date).valueOf(),null,{e:n}));}return e}B(t,e){return !!validateValueIsFromEnum(STORAGE_KEYS.q,t,"StorageManager cannot store object.","STORAGE_KEYS.OBJECTS")&&this.Na.store(t,e)}I(t){return !!validateValueIsFromEnum(STORAGE_KEYS.q,t,"StorageManager cannot retrieve object.","STORAGE_KEYS.OBJECTS")&&this.Na.lr(t)}Xs(t){return !!validateValueIsFromEnum(STORAGE_KEYS.q,t,"StorageManager cannot remove object.","STORAGE_KEYS.OBJECTS")&&(this.Na.remove(t),!0)}clearData(){const t=keys(STORAGE_KEYS.iu),e=keys(STORAGE_KEYS.q);for(let e=0;e<t.length;e++){const s=t[e];this.Ga.remove(STORAGE_KEYS.iu[s]);}for(let t=0;t<e.length;t++){const s=e[t];this.Na.remove(STORAGE_KEYS.q[s]);}}ya(t){return t||STORAGE_KEYS.q.Oa}pa(t){let e=this.Na.lr(STORAGE_KEYS.q.Aa);null==e&&(e={});const s=this.ya(t[User._n]);for(let r in t)r===User._n||null!=e[s]&&null!=e[s][r]||this.mu(t[User._n],r,t[r]);}mu(t,e,s){let r=this.Na.lr(STORAGE_KEYS.q.Aa);null==r&&(r={});const o=this.ya(t);let n=r[o];if(null==n&&(n={},null!=t&&(n[User._n]=t)),e===User.lu){null==n[e]&&(n[e]={});for(let t in s)n[e][t]=s[t];}else n[e]=s;return r[o]=n,this.Na.store(STORAGE_KEYS.q.Aa,r)}Ua(){const t=this.Na.lr(STORAGE_KEYS.q.Aa);this.Na.remove(STORAGE_KEYS.q.Aa);const e=[];for(let s in t)null!=t[s]&&e.push(t[s]);return e}ou(t){const e=this.Na.lr(STORAGE_KEYS.q.Aa);if(null!=e){const s=this.ya(null),r=e[s];null!=r&&(e[s]=void 0,this.Na.store(STORAGE_KEYS.q.Aa,e),r[User._n]=t,this.pa(r));}const s=this.tu(STORAGE_KEYS.iu.Dh);let r=null;null!=s&&(r=s.eu);const o=this.Ca();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.Hh(s);}}Ba(){return this.Na.Fa}}G.wa=class{constructor(t){this.Ji=t,this.Fa=et.La()?3:10;}Pa(t){return t+"."+this.Ji}store(t,e){const s={v:e};try{return localStorage.setItem(this.Pa(t),JSON.stringify(s)),!0}catch(t){return r$1.D.info("Storage failure: "+t.message),!1}}lr(t){try{const e=JSON.parse(localStorage.getItem(this.Pa(t)));return null==e?null:e.v}catch(t){return r$1.D.info("Storage retrieval failure: "+t.message),null}}remove(t){try{localStorage.removeItem(this.Pa(t));}catch(t){return r$1.D.info("Storage removal failure: "+t.message),!1}}};G.ne=class{constructor(t,e){this.Ji=t,this.xa=this.Ja(),this.ka=576e3,this.Va=!!e;}Pa(t){return null!=this.Ji?t+"."+this.Ji:t}Ja(){let t=0,e=document.location.hostname;const s=e.split("."),r="ab._gd";for(;t<s.length-1&&-1===document.cookie.indexOf(r+"="+r);)t++,e="."+s.slice(-1-t).join("."),document.cookie=r+"="+r+";domain="+e+";";return document.cookie=r+"=;expires="+new Date(0).toGMTString()+";domain="+e+";",e}ie(){const t=new Date;return t.setTime(t.getTime()+60*this.ka*1e3),t.getFullYear()}za(){const t=values(STORAGE_KEYS.iu),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.Ji)&&this.Qa(t);}}}store(t,e){this.za();const s=new Date;s.setTime(s.getTime()+60*this.ka*1e3);const o="expires="+s.toUTCString(),n="domain="+this.xa;let i;i=this.Va?e:encodeURIComponent(JSON.stringify(e));const a=this.Pa(t)+"="+i+";"+o+";"+n+";path=/";return a.length>=4093?(r$1.D.info("Storage failure: string is "+a.length+" chars which is too large to store as a cookie."),!1):(document.cookie=a,!0)}lr(t){const e=[],s=this.Pa(t)+"=",o=document.cookie.split(";");for(let n=0;n<o.length;n++){let i=o[n];for(;" "===i.charAt(0);)i=i.substring(1);if(0===i.indexOf(s))try{let t;t=this.Va?i.substring(s.length,i.length):JSON.parse(decodeURIComponent(i.substring(s.length,i.length))),e.push(t);}catch(e){return r$1.D.info("Storage retrieval failure: "+e.message),this.remove(t),null}}return e.length>0?e[e.length-1]:null}remove(t){this.Qa(this.Pa(t));}Qa(t){const e=t+"=;expires="+new Date(0).toGMTString();document.cookie=e,document.cookie=e+";path=/";const s=e+";domain="+this.xa;document.cookie=s,document.cookie=s+";path=/";}};G._a=class{constructor(){this.Ha={},this.Wa=5242880,this.Fa=3;}store(t,e){const s={value:e},o=this.Xa(e);return o>this.Wa?(r$1.D.info("Storage failure: object is ≈"+o+" bytes which is greater than the max of "+this.Wa),!1):(this.Ha[t]=s,!0)}Xa(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)){e.push(t);for(let e in t)s.push(t[e]);}}return r}lr(t){const e=this.Ha[t];return null==e?null:e.value}remove(t){this.Ha[t]=null;}};G.Ea=class{constructor(t,e,s){this.Za=[],e&&this.Za.push(new G.ne(t)),s&&this.Za.push(new G.wa(t)),this.Za.push(new G._a(t));}store(t,e){let s=!0;for(let r=0;r<this.Za.length;r++)s=this.Za[r].store(t,e)&&s;return s}lr(t){for(let e=0;e<this.Za.length;e++){const s=this.Za[e].lr(t);if(null!=s)return s}return null}remove(t){for(let e=0;e<this.Za.length;e++)this.Za[e].remove(t);}};
79
+
80
+ class St{constructor(t,i,s){this.h=t,this.xn=i||!1,this.zn=s,this.qn=new u,this.Bn=0,this.Dn=1;}Gn(){return this.xn}Hn(){return this.h.I(STORAGE_KEYS.q.Jn)}setSdkAuthenticationSignature(t){const i=this.Hn();this.h.B(STORAGE_KEYS.q.Jn,t);const s=r$1.xt.Ft;new r$1.qt(s,r$1.D).setItem(s.$t.Kn,this.Dn,t),i!==t&&this.Qs();}Ln(){this.h.Xs(STORAGE_KEYS.q.Jn);const t=r$1.xt.Ft;new r$1.qt(t,r$1.D).br(t.$t.Kn,this.Dn);}subscribeToSdkAuthenticationFailures(t){return this.zn.ut(t)}Mn(t){this.zn.St(t);}On(){this.qn.removeAllSubscriptions();}Pn(){this.Bn+=1;}Qn(){return this.Bn}Qs(){this.Bn=0;}}
81
+
82
+ class y{constructor(){}Rs(){}changeUser(a){}clearData(){}}
83
+
84
+ var DeviceProperties = {BROWSER:"browser",BROWSER_VERSION:"browserVersion",OS:"os",RESOLUTION:"resolution",LANGUAGE:"language",TIME_ZONE:"timeZone",USER_AGENT:"userAgent"};
85
+
86
+ class Ie{constructor(s){this.id=s;}li(){const s={};return null!=this[DeviceProperties.BROWSER]&&(s.browser=this[DeviceProperties.BROWSER]),null!=this[DeviceProperties.BROWSER_VERSION]&&(s.browser_version=this[DeviceProperties.BROWSER_VERSION]),null!=this[DeviceProperties.OS]&&(s.os_version=this[DeviceProperties.OS]),null!=this[DeviceProperties.RESOLUTION]&&(s.resolution=this[DeviceProperties.RESOLUTION]),null!=this[DeviceProperties.LANGUAGE]&&(s.locale=this[DeviceProperties.LANGUAGE]),null!=this[DeviceProperties.TIME_ZONE]&&(s.time_zone=this[DeviceProperties.TIME_ZONE]),null!=this[DeviceProperties.USER_AGENT]&&(s.user_agent=this[DeviceProperties.USER_AGENT]),s}}
87
+
88
+ class It{constructor(e,t){this.h=e,null==t&&(t=values(DeviceProperties)),this.xo=t;}te(){let e=this.h.tu(STORAGE_KEYS.iu.Go);null==e&&(e=new _t(r$1.it.nt()),this.h.ru(STORAGE_KEYS.iu.Go,e));const t=new Ie(e.eu);for(let e=0;e<this.xo.length;e++){const r=this.xo[e];switch(r){case DeviceProperties.BROWSER:t[r]=et.browser;break;case DeviceProperties.BROWSER_VERSION:t[r]=et.version;break;case DeviceProperties.OS:t[r]=this.Fo();break;case DeviceProperties.RESOLUTION:t[r]=screen.width+"x"+screen.height;break;case DeviceProperties.LANGUAGE:t[r]=et.language;break;case DeviceProperties.TIME_ZONE:t[r]=this.Jo(new Date);break;case DeviceProperties.USER_AGENT:t[r]=et.userAgent;}}return t}Fo(){if(et.qo())return et.qo();const e=this.h.I(STORAGE_KEYS.q.Ho);return e&&e.os_version?e.os_version:et.Ko()}Jo(e){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){r$1.D.info("Intl.DateTimeFormat threw an error, probably https://bugs.chromium.org/p/chromium/issues/detail?id=811403, falling back to GTM offset: "+e.message);}const t=e.getTimezoneOffset();return this.Qo(t)}Qo(e){const t=parseInt(e/60),r=parseInt(e%60);let s="GMT";return 0!==e&&(s+=e<0?"+":"-",s+=("00"+Math.abs(t)).slice(-2)+":"+("00"+Math.abs(r)).slice(-2)),s}}
89
+
90
+ function logDeprecationWarning(e,a,i){let s=`The '${e}' ${a} is deprecated.`;i&&(s+=` Please use '${i}' instead.`),r$1.D.warn(s);}
91
+
92
+ var qt = {ua:"invalid_api_key",ca:"blacklisted",la:"no_device_identifier",ha:"invalid_json_response",oa:"empty_response",__:"sdk_auth_error"};
93
+
94
+ class wt{constructor(t,e,s,i,r,o,n,a,h,u,c){this.Qi=t,this.h=e,this.Bo=s,this.v=i,this.j=r,this.gt=o,this.Ji=n,this.yo=a,this.Po=h,this.Uo=u,this.Xo=c,this.$o=["npm"];}Ps(t,e){const s=this.Qi.te(),i=s.li(),r=this.h.I(STORAGE_KEYS.q.Ho);isEqual(r,i)||(t.device=i),t.api_key=this.Ji,t.time=convertMsToSeconds((new Date).valueOf(),!0);const n=this.h.I(STORAGE_KEYS.q.Yo)||[],a=this.h.I(STORAGE_KEYS.q.Zo)||"";if(this.$o.length>0&&(!isEqual(n,this.$o)||a!==this.j.Vo())&&(t.sdk_metadata=this.$o),t.sdk_version=this.Po,this.Uo&&(t.sdk_flavor=this.Uo),t.app_version=this.Xo,t.device_id=s.id,e){const e=this.v.getUserId();null!=e&&(t.user_id=e);}return t}Os(t,e,i){const o=e.auth_error,n=e.error;if(!o&&!n)return !0;if(o){let e;this.Bo.Pn();const s={errorCode:o.error_code};for(const t of i)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 n=o.reason;return n?(s.reason=n,e=`due to ${n}`):e=`with error code ${o.error_code}.`,this.Bo.Gn()||(e+=' Please use the "enableSdkAuthentication" initialization option to enable authentication.'),r$1.D.error(`SDK Authentication failed ${e}`),this.sa(t.events,t.attributes),this.Bo.Mn(s),!1}if(n){let i=n;switch(i){case qt.oa:const o="Received successful response with empty body.";return s$1.G(r$1.A.qs,{e:o}),r$1.D.info(o),!1;case qt.ha:const n="Received successful response with invalid JSON";return s$1.G(r$1.A.qs,{e:n+": "+e.response}),r$1.D.info(n),!1;case qt.ua:i=`The API key "${t.api_key}" is invalid for the baseUrl ${this.yo}`;break;case qt.ca:i="Sorry, we are not currently accepting your requests. If you think this is in error, please contact us.";break;case qt.la:i="No device identifier. Please contact support@braze.com";}r$1.D.error("Backend error: "+i);}return !1}fa(t,e,s,i){return !!(t&&0!==t.length||e&&0!==e.length||s||i)}ma(t,e,s,i){const r=[],o=t=>t||"",n=o(this.v.getUserId());let a,h,u,c,l=this.ni(t,e);if(s.length>0){const t=[];for(const e of s){if(a=e.li(),this.Bo.Gn()){if(n&&!a.user_id){c||(c={},c.events=[]),c.events.push(a);continue}if(o(a.user_id)!==n){h||(h=[]),h.push(a);continue}}t.push(a);}t.length>0&&(l.events=t);}if(i.length>0){const t=[];for(const e of i)this.Bo.Gn()&&o(e.user_id)!==n?(u||(u=[]),u.push(e)):t.push(e);t.length>0&&(l.attributes=t);}if(this.sa(h,u),l=this.Ps(l,!0),c){c=this.Ps(c,!1);const t={requestData:c,headers:this.Bs(c)};r.push(t);}if(l&&!this.fa(l.events,l.attributes,t,e))return c?r:null;const f={requestData:l,headers:this.Bs(l)};return r.push(f),r}sa(t,e){if(t){const e=[];for(const s of t){const t=ue.fromJson(s);t.time=convertSecondsToMs(t.time),e.push(t);}this.h.bo(e);}if(e)for(const t of e)this.h.pa(t);}Vs(t,e){let s="HTTP error ";null!=t&&(s+=t+" "),s+=e,r$1.D.error(s);}yr(t){return s$1.G(r$1.A.Ra,{n:t})}ni(t,e,s){const i={};t&&(i.feed=!0),e&&(i.triggers=!0);const r=null!=s?s:this.v.getUserId();return r&&(i.user_id=r),i.config={config_time:this.gt.Zs()},{respond_with:i}}Bs(t,e,s){const i=[["X-Braze-Api-Key",this.Ji]];let r=!1;if(null!=t.respond_with&&t.respond_with.triggers&&(i.push(["X-Braze-TriggersRequest","true"]),r=!0),null!=t.respond_with&&t.respond_with.feed&&(i.push(["X-Braze-FeedRequest","true"]),r=!0),e){i.push(["X-Braze-ContentCardsRequest","true"]);let t=this.h.I(STORAGE_KEYS.q.As);t&&s||(t=0,this.h.B(STORAGE_KEYS.q.As,t)),i.push(["BRAZE-SYNC-RETRY-COUNT",t.toString()]),r=!0;}if(r&&i.push(["X-Braze-DataRequest","true"]),this.Bo.Gn()){const t=this.Bo.Hn();null!=t&&i.push(["X-Braze-Auth-Signature",t]);}return i}Gs(t,e){const s=t.device;s&&s.os_version instanceof Promise?s.os_version.then((s=>{t.device.os_version=s,e();})):e();}Qs(){this.Bo.Qs();}Ks(){return this.yo}addSdkMetadata(t){for(const e of t)-1===this.$o.indexOf(e)&&this.$o.push(e);}}
95
+
96
+ const b={Hs:t=>{let e,o;try{const n=()=>{r$1.D.error("This browser does not have any supported ajax options!");};if(window.XMLHttpRequest?(e=new XMLHttpRequest,e||n()):n(),null!=e){const r=()=>{"function"==typeof t.error&&t.error(e.status),"function"==typeof t.fl&&t.fl(!1);};e.onload=()=>{let o=!1;if(4===e.readyState)if(o=e.status>=200&&e.status<300||304===e.status,o){if("function"==typeof t.S){let o,r;try{o=JSON.parse(e.responseText),r=e.getAllResponseHeaders();}catch(o){const n={error:""===e.responseText?qt.oa:qt.ha,response:e.responseText};t.S(n,r);}o&&t.S(o,r);}"function"==typeof t.fl&&t.fl(!0);}else r();},e.onerror=()=>{r();},e.ontimeout=()=>{r();},o=JSON.stringify(t.data),e.open("POST",t.url,!0),e.setRequestHeader("Content-type","application/json"),e.setRequestHeader("X-Requested-With","XMLHttpRequest");const n=t.headers||[];for(const t of n)e.setRequestHeader(t[0],t[1]);e.send(o);}}catch(t){r$1.D.error(`Network request error: ${t.message}`);}}};const readResponseHeaders=t=>{let e={};const o=t.toString().split("\r\n");if(!o)return e;let r,n;for(const t of o)t&&(r=t.slice(0,t.indexOf(":")).toLowerCase().trim(),n=t.slice(t.indexOf(":")+1).trim(),e[r]=n);return e};
97
+
98
+ const randomInclusive=(t,a)=>(t=Math.ceil(t),a=Math.floor(a),Math.floor(Math.random()*(a-t+1))+t);
99
+
100
+ class t{constructor(t,s){this.S=!!t,this.ve=s||[];}V(t){this.S=this.S&&t.S,this.ve.push(...t.ve);}}
101
+
102
+ const ht={Ir:()=>"serviceWorker"in navigator&&"undefined"!=typeof ServiceWorkerRegistration&&"showNotification"in ServiceWorkerRegistration.prototype&&"PushManager"in window,Cr:()=>"safari"in window&&"pushNotification"in window.safari&&"function"==typeof window.safari.pushNotification.permission&&"function"==typeof window.safari.pushNotification.requestPermission,isPushSupported:()=>ht.Ir()||ht.Cr(),isPushBlocked:()=>{const i=ht.isPushSupported()&&"Notification"in window&&null!=window.Notification&&null!=window.Notification.permission&&"denied"===window.Notification.permission,n=ht.isPushSupported()&&(!("Notification"in window)||null==window.Notification);return i||n},isPushPermissionGranted:()=>ht.isPushSupported()&&"Notification"in window&&null!=window.Notification&&null!=window.Notification.permission&&"granted"===window.Notification.permission,Xe:()=>!ht.isPushBlocked()&&ht.isPushSupported()&&!ht.isPushPermissionGranted()};var ht$1 = ht;
103
+
104
+ class Ot{constructor(t,s,i,e,n,l,h,o,r,a){this.Ji=t,this.yo=s,this.sl=0,this.il=h.Ba(),this.hl=null,this.j=i,this.Qi=e,this.v=n,this.gt=l,this.h=h,this.Bo=r,this.vt=a,this.ol=o,this.rl=new u,this.ul=50;}al(t,s){return !t&&!s&&this.Bo.Qn()>=this.ul}cl(t){let s=this.j.Eh();if(t.length>0){const i=this.v.getUserId();for(const e of t){const t=!e.userId&&!i||e.userId===i;e.type===r$1.A.Wh&&t&&(s=!0);}}return s}ml(t,s,i,e,n,l,h){null==i&&(i=!0),i&&this.dl();const u=this.h.Ca(),a=this.h.Ua();let c=!1;const m=(t,s)=>{let h=!1;b.Hs({url:this.yo+"/data/",data:t,headers:s,S:i=>{null!=t.respond_with&&t.respond_with.triggers&&(this.sl=Math.max(this.sl-1,0)),this.vt.Os(t,i,s)?(this.Bo.Qs(),this.gt.lh(i),null!=t.respond_with&&t.respond_with.user_id!=this.v.getUserId()||(null!=t.device&&this.h.B(STORAGE_KEYS.q.Ho,t.device),null!=t.sdk_metadata&&(this.h.B(STORAGE_KEYS.q.Yo,t.sdk_metadata),this.h.B(STORAGE_KEYS.q.Zo,this.j.Vo())),this.ol(i),"function"==typeof e&&e())):i.auth_error&&(h=!0);},error:()=>{null!=t.respond_with&&t.respond_with.triggers&&(this.sl=Math.max(this.sl-1,0)),this.vt.sa(t.events,t.attributes),"function"==typeof n&&n();},fl:t=>{if("function"==typeof l&&l(t),i&&!c){if(t&&!h)this.gl();else {let t=this.hl;(null==t||t<1e3*this.il)&&(t=1e3*this.il),this.gl(Math.min(3e5,randomInclusive(1e3*this.il,3*t)));}c=!0;}}});},d=this.cl(u),f=s||d;if(this.al(h,d))return void r$1.D.info("Declining to flush data due to 50 consecutive authentication failures");if(i&&!this.vt.fa(u,a,t,f))return this.gl(),void("function"==typeof l&&l(!0));const g=this.vt.ma(t,f,u,a);f&&this.sl++;let p=!1;if(g)for(const t of g)this.vt.Gs(t.requestData,(()=>m(t.requestData,t.headers))),p=!0;this.Bo.Gn()&&i&&!p?this.gl():d&&(r$1.D.info("Invoking new session subscriptions"),this.rl.St());}bl(){return this.sl>0}gl(t){this.kl||(null==t&&(t=1e3*this.il),this.dl(),this.wl=setTimeout((()=>{if(document.hidden){const t="visibilitychange",s=()=>{document.hidden||(document.removeEventListener(t,s,!1),this.ml());};document.addEventListener(t,s,!1);}else this.ml();}),t),this.hl=t);}dl(){null!=this.wl&&(clearTimeout(this.wl),this.wl=null);}initialize(){this.kl=!1,this.gl();}destroy(){this.rl.removeAllSubscriptions(),this.Bo.On(),this.dl(),this.kl=!0,this.ml(null,null,!1),this.wl=null;}cr(t){return this.rl.ut(t)}openSession(){const t=this.j.Vo()!==this.j.mo();t&&(this.h.va(STORAGE_KEYS.iu.Go),this.h.va(STORAGE_KEYS.iu.su)),this.ml(null,!1,null,null,null),this.$n(),t&&Promise.resolve().then(function () { return pushManagerFactory; }).then((t=>{if(this.kl)return;const s=t.default.aa();if(null!=s&&(ht$1.isPushPermissionGranted()||ht$1.isPushBlocked())){const t=()=>{s.Er()?r$1.D.info("Push token maintenance is disabled, not refreshing token for backend."):s.subscribe();},i=(s,i)=>{i&&t();},e=()=>{const s=this.h.I(STORAGE_KEYS.q.gn);(null==s||s)&&t();},n=r$1.xt.Ft;new r$1.qt(n,r$1.D).hr(n.$t.pu,i,e);}}));}changeUser(t,s,i){const e=this.v.getUserId();if(e!==t){this.j.kh(),null!=e&&this.ml(null,!1,null,null,null),this.v.uu(t),i?this.Bo.setSdkAuthenticationSignature(i):this.Bo.Ln();for(let t=0;t<s.length;t++)s[t].changeUser(null==e);null!=e&&this.h.Xs(STORAGE_KEYS.q.P),this.h.Xs(STORAGE_KEYS.q.Ho),this.openSession(),r$1.D.info('Changed user to "'+t+'".');}else {let s="Doing nothing.";i&&this.Bo.Hn()!==i&&(this.Bo.setSdkAuthenticationSignature(i),s="Updated SDK authentication signature"),r$1.D.info(`Current user is already ${t}. ${s}`);}}requestImmediateDataFlush(t){this.dl(),this.j.mo(),this.ml(null,null,null,null,null,t,!0);}requestFeedRefresh(){this.j.mo(),this.ml(!0);}zr(t,s){this.j.mo(),r$1.D.info("Requesting explicit trigger refresh."),this.ml(null,!0,null,t,s);}Nn(t,i){const e=r$1.A.yl,n={a:t,l:i},l=s$1.G(e,n);return l&&r$1.D.info(`Logged alias ${t} with label ${i}`),l}In(i,e,n){if(this.gt.hu(e))return r$1.D.info(`Custom Attribute "${e}" is blocklisted, ignoring.`),new t;const l={key:e,value:n},h=s$1.G(i,l);return h&&r$1.D.info(`Logged custom attribute: ${e} with value: ${n}`),h}setLastKnownLocation(t,i,e,n,l,h){const o={latitude:i,longitude:e};null!=n&&(o.altitude=n),null!=l&&(o.ll_accuracy=l),null!=h&&(o.alt_accuracy=h);const u=s$1.G(r$1.A.vl,o,t);return u&&r$1.D.info(`Set user last known location as ${JSON.stringify(o,null,2)}`),u}kr(t,s){const i=this.j.mo();return new ue(this.v.getUserId(),r$1.A.Sl,t,i,{cid:s})}$n(){const t=r$1.xt.Ft;new r$1.qt(t,r$1.D).setItem(t.$t.jl,1,{baseUrl:this.yo,data:{api_key:this.Ji,device_id:this.Qi.te().id},userId:this.v.getUserId(),sdkAuthEnabled:this.Bo.Gn()});}wr(t){for(const s of t)if(s.api_key===this.Ji)this.vt.sa(s.events,s.attributes);else {const t=r$1.xt.Ft;new r$1.qt(t,r$1.D).setItem(t.$t.$r,r$1.it.nt(),s);}}Fn(i,e,n){if(this.gt.hu(i))return r$1.D.info(`Custom Attribute "${i}" is blocklisted, ignoring.`),new t;let l,h;return null===e&&null===n?(l=r$1.A.$l,h={key:i}):(l=r$1.A.Al,h={key:i,latitude:e,longitude:n}),s$1.G(l,h)}Tn(t,i){const e={group_id:t,status:i};return s$1.G(r$1.A.Cl,e)}}
105
+
106
+ class jt{constructor(t,s,i,h,l,e,r){this.hh=t||0,this.gh=s||[],this.mh=i||[],this.fh=h||[],this.ph=l,null!=l&&""!==l||(this.ph=null),this.oh=e||null,this.uh=r||{};}ss(){return {s:"4.2.1",l:this.hh,e:this.gh,a:this.mh,p:this.fh,m:this.ph,v:this.oh,c:this.uh}}static yn(t){let s=t.l;return "4.2.1"!==t.s&&(s=0),new jt(s,t.e,t.a,t.p,t.m,t.v,t.c)}}
107
+
108
+ class Ct{constructor(t){this.h=t,this.sh=new u,this.eh=new u,this.ih=null;}rh(){if(null==this.ih){const t=this.h.I(STORAGE_KEYS.q.nh);this.ih=null!=t?jt.yn(t):new jt;}return this.ih}Zs(){return this.rh().hh}lh(t){if(null!=t&&null!=t.config){const s=t.config;if(s.time>this.rh().hh){const t=new jt(s.time,s.events_blacklist,s.attributes_blacklist,s.purchases_blacklist,s.messaging_session_timeout,s.vapid_public_key,s.content_cards);let e=!1;null!=t.oh&&this.fn()!==t.oh&&(e=!0);let i=!1;null!=t.uh.enabled&&this.Ys()!==t.uh.enabled&&(i=!0),this.ih=t,this.h.B(STORAGE_KEYS.q.nh,t.ss()),e&&this.sh.St(),i&&this.eh.St();}}}dn(t){let s=this.sh.ut(t);return this.ah&&this.sh.removeSubscription(this.ah),this.ah=s,s}Ms(t){return this.eh.ut(t)}ge(t){return -1!==this.rh().gh.indexOf(t)}hu(t){return -1!==this.rh().mh.indexOf(t)}Dr(t){return -1!==this.rh().fh.indexOf(t)}dh(){return this.rh().ph}fn(){return this.rh().oh}Ys(){return this.rh().uh.enabled||!1}}
109
+
110
+ class Lt{constructor(s,t,e,i){this.h=s,this.v=t,this.gt=e,this.wh=1e3,i=parseFloat(i),isNaN(i)&&(i=1800),i<this.wh/1e3&&(r$1.D.info("Specified session timeout of "+i+"s is too small, using the minimum session timeout of "+this.wh/1e3+"s instead."),i=this.wh/1e3),this.Sh=i;}jh(s,t){return new ue(this.v.getUserId(),r$1.A.bh,s,t.eu,{d:convertMsToSeconds(s-t.xh)})}Vo(){const s=this.h.tu(STORAGE_KEYS.iu.Dh);return null==s?null:s.eu}Eh(){const s=(new Date).valueOf(),t=this.gt.dh(),e=this.h.I(STORAGE_KEYS.q.Ch);if(null!=e&&null==t)return !1;const i=null==e||s-e>1e3*t;return i&&this.h.B(STORAGE_KEYS.q.Ch,s),i}Gh(s,t){return null==t||!(s-t.xh<this.wh)&&t.Nh<s}mo(){const s=(new Date).valueOf(),t=s+1e3*this.Sh,e=this.h.tu(STORAGE_KEYS.iu.Dh);if(this.Gh(s,e)){let i="Generating session start event with time "+s;if(null!=e){let s=e._h;s-e.xh<this.wh&&(s=e.xh+this.Fh),this.h.Hh(this.jh(s,e)),i+=" (old session ended "+s+")";}i+=". Will expire "+t.valueOf(),r$1.D.info(i);const n=new _t(r$1.it.nt(),t);this.h.Hh(new ue(this.v.getUserId(),r$1.A.Wh,s,n.eu)),this.h.ru(STORAGE_KEYS.iu.Dh,n);return null==this.h.I(STORAGE_KEYS.q.Ch)&&this.h.B(STORAGE_KEYS.q.Ch,s),n.eu}return e._h=s,e.Nh=t,this.h.ru(STORAGE_KEYS.iu.Dh,e),e.eu}kh(){const s=this.h.tu(STORAGE_KEYS.iu.Dh);null!=s&&(this.h.qh(STORAGE_KEYS.iu.Dh),this.h.Hh(this.jh((new Date).valueOf(),s)));}}
111
+
112
+ const Pt={jo:(e,t)=>{let a=!1;try{if(localStorage&&localStorage.getItem)try{localStorage.setItem(STORAGE_KEYS.q.ga,!0),localStorage.getItem(STORAGE_KEYS.q.ga)&&(localStorage.removeItem(STORAGE_KEYS.q.ga),a=!0);}catch(e){if("QuotaExceededError"!==e.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==e.name||!(localStorage.length>0))throw e;a=!0;}}catch(e){r$1.D.info("Local Storage not supported!");}const l=Pt.Sa(),c=new G.Ea(e,l&&!t,a);let n=null;return n=a?new G.wa(e):new G._a,new G(c,n)},Sa:()=>navigator.cookieEnabled||"cookie"in document&&(document.cookie.length>0||(document.cookie="test").indexOf.call(document.cookie,"test")>-1)};
113
+
114
+ class ControlMessage{constructor(t){this.triggerId=t;}static fromJson(t){return new ControlMessage(t.trigger_id)}}
115
+
116
+ function _isInView(t,n,e,s){if(null==t)return !1;n=n||!1,e=e||!1;const i=t.getBoundingClientRect();return null!=i&&((i.top>=0&&i.top<=(window.innerHeight||document.documentElement.clientHeight)||!n)&&(i.left>=0||!s)&&(i.bottom>=0&&i.bottom<=(window.innerHeight||document.documentElement.clientHeight)||!e)&&(i.right<=(window.innerWidth||document.documentElement.clientWidth)||!s))}const DOMUtils={cu:null,eo:_isInView};const DIRECTIONS={Te:"up",$e:"down",ot:"left",et:"right"};function supportsPassive(){if(null==DOMUtils.cu){DOMUtils.cu=!1;try{const t=Object.defineProperty({},"passive",{get:()=>{DOMUtils.cu=!0;}});window.addEventListener("testPassive",null,t),window.removeEventListener("testPassive",null,t);}catch(t){}}return DOMUtils.cu}function addPassiveEventListener(t,n,e){t.addEventListener(n,e,!!supportsPassive()&&{passive:!0});}function topIsInView(t){return DOMUtils.eo(t,!0,!1,!1)}function bottomIsInView(t){return DOMUtils.eo(t,!1,!0,!1)}function clickElement(t){if(t.onclick){const n=document.createEvent("MouseEvents");n.initEvent("click",!0,!0),t.onclick.apply(t,[n]);}}function detectSwipe(t,n,e){let s=null,i=null;addPassiveEventListener(t,"touchstart",(t=>{s=t.touches[0].clientX,i=t.touches[0].clientY;})),addPassiveEventListener(t,"touchmove",(o=>{if(null==s||null==i)return;const l=s-o.touches[0].clientX,u=i-o.touches[0].clientY;Math.abs(l)>Math.abs(u)&&Math.abs(l)>=25?((l>0&&n===DIRECTIONS.ot||l<0&&n===DIRECTIONS.et)&&e(o),s=null,i=null):Math.abs(u)>=25&&((u>0&&n===DIRECTIONS.Te&&t.scrollTop===t.scrollHeight-t.offsetHeight||u<0&&n===DIRECTIONS.$e&&0===t.scrollTop)&&e(o),s=null,i=null);}));}function buildSvg(t,n,e){const s="http://www.w3.org/2000/svg",i=document.createElementNS(s,"svg");i.setAttribute("viewBox",t),i.setAttribute("xmlns",s);const o=document.createElementNS(s,"path");return o.setAttribute("d",n),null!=e&&o.setAttribute("fill",e),i.appendChild(o),i}
117
+
118
+ const KeyCodes={fo:32,oo:9,co:13,Ci:27};
119
+
120
+ class InAppMessage{constructor(t,s,i,e,h,n,r,o,l,E,T,a,m,c,I,A,N,_,L,d,O,S,D,M,R,b,P,C,U){this.message=t,this.messageAlignment=s||InAppMessage.TextAlignment.CENTER,this.duration=E||5e3,this.slideFrom=i||InAppMessage.SlideFrom.BOTTOM,this.extras=e||{},this.triggerId=h,this.clickAction=n||InAppMessage.ClickAction.NONE,this.uri=r,this.openTarget=o||InAppMessage.OpenTarget.NONE,this.dismissType=l||InAppMessage.DismissType.AUTO_DISMISS,this.icon=T,this.imageUrl=a,this.imageStyle=m||InAppMessage.ImageStyle.TOP,this.iconColor=c||InAppMessage.ji.ki,this.iconBackgroundColor=I||InAppMessage.ji.bi,this.backgroundColor=A||InAppMessage.ji.ki,this.textColor=N||InAppMessage.ji.Ei,this.closeButtonColor=_||InAppMessage.ji.Ti,this.animateIn=L,null==this.animateIn&&(this.animateIn=!0),this.animateOut=d,null==this.animateOut&&(this.animateOut=!0),this.header=O,this.headerAlignment=S||InAppMessage.TextAlignment.CENTER,this.headerTextColor=D||InAppMessage.ji.Ei,this.frameColor=M||InAppMessage.ji.Ii,this.buttons=R||[],this.cropType=b||InAppMessage.CropType.FIT_CENTER,this.orientation=P,this.htmlId=C,this.css=U,this.Ai=!1,this.nl=!1,this.Ni=!1,this.lt=new u,this._i=new u;}subscribeToClickedEvent(t){return this.lt.ut(t)}subscribeToDismissedEvent(t){return this._i.ut(t)}removeSubscription(t){this.lt.removeSubscription(t),this._i.removeSubscription(t);}removeAllSubscriptions(){this.lt.removeAllSubscriptions(),this._i.removeAllSubscriptions();}closeMessage(){this.on(this.mn);}we(){return !0}ll(){return this.we()}an(){return null!=this.htmlId&&this.htmlId.length>4}sn(){return this.an()&&null!=this.css&&this.css.length>0}rn(){if(this.an()&&this.sn())return this.htmlId+"-css"}R(){return !this.Ai&&(this.Ai=!0,!0)}k(){return !this.nl&&(this.nl=!0,this.lt.St(),!0)}J(){return !this.Ni&&(this.Ni=!0,this._i.St(),!0)}Li(t){if(t&&t.parentNode){let s=t.closest(".ab-iam-root");if(null==s&&(s=t),this.we()&&null!=s.parentNode){const t=s.parentNode.classList;t&&t.contains(InAppMessage.Oi)&&t.remove(InAppMessage.Oi),document.body.removeEventListener("touchmove",InAppMessage.Si);}s.className=s.className.replace(InAppMessage.Di,InAppMessage._);}return this.animateOut}on(t,s){if(null==t)return;let i;this.mn=null,i=-1===t.className.indexOf("ab-in-app-message")?t.getElementsByClassName("ab-in-app-message")[0]:t;let e=!1;i&&(e=this.Li(i));const h=document.body;if(null!=h)var n=h.scrollTop;const r=()=>{if(t&&t.parentNode){let s=t.closest(".ab-iam-root");null==s&&(s=t),s.parentNode&&s.parentNode.removeChild(s);}if(null!=this.rn()){const t=document.getElementById(this.rn());t&&t.parentNode&&t.parentNode.removeChild(t);}null!=h&&"Safari"===et.browser&&(h.scrollTop=n),s?s():this.J();};e?setTimeout(r,InAppMessage.Mi):r(),this.he&&this.he.focus();}Me(){return document.createTextNode(this.message)}xe(t){let s="";this.message||this.header||!this.we()||(s="Modal Image"),t.setAttribute("alt",s);}static Si(t){t.targetTouches&&t.targetTouches.length>1||t.target.classList&&t.target.classList.contains("ab-message-text")&&t.target.scrollHeight>t.target.clientHeight||document.querySelector(`.${InAppMessage.Oi}`)&&t.preventDefault();}Ri(t){this.we()&&null!=t.parentNode&&this.orientation!==InAppMessage.Orientation.LANDSCAPE&&(null!=t.parentNode.classList&&t.parentNode.classList.add(InAppMessage.Oi),document.body.addEventListener("touchmove",InAppMessage.Si,!!supportsPassive()&&{passive:!1})),t.className+=" "+InAppMessage.Di;}static Pi(t){if(t.keyCode===KeyCodes.Ci&&!e.nn(T.Ui)&&document.querySelectorAll(".ab-modal-interactions").length>0){const t=document.getElementsByClassName("ab-html-message");let s=!1;for(let i=0;i<t.length;i++){const e=t[i].contentWindow.document.getElementsByClassName("ab-programmatic-close-button")[0];null!=e&&(clickElement(e),s=!0);}if(!s){const t=document.querySelectorAll(".ab-modal-interactions > .ab-close-button")[0];null!=t&&clickElement(t);}}}Hi(){this.Fi||e.nn(T.Ui)||(document.addEventListener("keydown",InAppMessage.Pi,!1),e.Bi((()=>{document.removeEventListener("keydown",InAppMessage.Pi);})),this.Fi=!0);}}InAppMessage.ji={Ei:4281545523,ki:4294967295,bi:4278219733,Gi:4293914607,Wi:4283782485,Ii:3224580915,Ti:4288387995},InAppMessage.Oe={wi:"hd",yi:"ias",xi:"of",Ki:"do",ci:"umt",ui:"tf",Yi:"te"},InAppMessage.SlideFrom={TOP:"TOP",BOTTOM:"BOTTOM"},InAppMessage.ClickAction={NEWS_FEED:"NEWS_FEED",URI:"URI",NONE:"NONE"},InAppMessage.DismissType={AUTO_DISMISS:"AUTO_DISMISS",MANUAL:"SWIPE"},InAppMessage.OpenTarget={NONE:"NONE",BLANK:"BLANK"},InAppMessage.ImageStyle={TOP:"TOP",GRAPHIC:"GRAPHIC"},InAppMessage.Orientation={PORTRAIT:"PORTRAIT",LANDSCAPE:"LANDSCAPE"},InAppMessage.TextAlignment={START:"START",CENTER:"CENTER",END:"END"},InAppMessage.CropType={CENTER_CROP:"CENTER_CROP",FIT_CENTER:"FIT_CENTER"},InAppMessage.es={Xi:"SLIDEUP",zi:"MODAL",ye:"MODAL_STYLED",Tr:"FULL",el:"WEB_HTML",cn:"HTML"},InAppMessage.Mi=500,InAppMessage.Vi=200,InAppMessage.Di="ab-show",InAppMessage.$i="ab-hide",InAppMessage.Oi="ab-pause-scrolling";
121
+
122
+ class HtmlMessage extends InAppMessage{constructor(l,e,n,u,s,a,t,i,r,o,m){u=u||InAppMessage.DismissType.MANUAL,null!=l&&l.length>0&&l.indexOf('"ab-in-app-message ab-html-message ab-email-capture"')>0&&l.indexOf('"ab-in-app-message ab-show ab-modal ab-effect-modal"')>0&&(a=!0,t=!0),super(l,null,null,e,n,null,null,null,u,s,null,null,null,null,null,null,null,null,a,t,null,null,null,i,void 0,void 0,void 0,r,o),this.messageFields=m;}ll(){return !1}k(l){if(this.un===InAppMessage.es.el){if(this.nl)return !1;this.nl=!0;}return this.lt.St(l),!0}}HtmlMessage.es=InAppMessage.es.el;
123
+
124
+ class InAppMessageButton{constructor(s,t,i,r,e,h,n){this.text=s||"",this.backgroundColor=t||InAppMessage.ji.bi,this.textColor=i||InAppMessage.ji.ki,this.borderColor=r||this.backgroundColor,this.clickAction=e||InAppMessage.ClickAction.NONE,this.uri=h,null==n&&(n=InAppMessageButton.Ue),this.id=n,this.nl=!1,this.lt=new u;}subscribeToClickedEvent(s){return this.lt.ut(s)}removeSubscription(s){this.lt.removeSubscription(s);}removeAllSubscriptions(){this.lt.removeAllSubscriptions();}k(){return !this.nl&&(this.nl=!0,this.lt.St(),!0)}static fromJson(s){return new InAppMessageButton(s.text,s.bg_color,s.text_color,s.border_color,s.click_action,s.uri,s.id)}}InAppMessageButton.Ue=-1;
125
+
126
+ class FullScreenMessage extends InAppMessage{constructor(e,t,r,s,n,l,u,a,o,p,m,c,d,f,g,i,x,j,A,T,b,h,k,q,v,w,y,z){a=a||InAppMessage.DismissType.MANUAL,w=w||InAppMessage.Orientation.PORTRAIT,super(e,t,null,r,s,n,l,u,a,o,p,m,c,d,f,g,i,x,j,A,T,b,h,k,q,v=v||InAppMessage.CropType.CENTER_CROP,w,y,z);}get ke(){return InAppMessage.TextAlignment.CENTER}}FullScreenMessage.es=InAppMessage.es.Tr;
127
+
128
+ class ModalMessage extends InAppMessage{constructor(e,t,r,s,n,l,o,u,a,p,d,i,m,c,f,g,x,j,v,A,T,b,h,k,q,w,y){super(e,t,null,r,s,n,l,o,u=u||InAppMessage.DismissType.MANUAL,a,p,d,i,m,c,f,g,x,j,v,A,T,b,h,k,q=q||InAppMessage.CropType.FIT_CENTER,void 0,w,y);}get ke(){return InAppMessage.TextAlignment.CENTER}}ModalMessage.es=InAppMessage.es.zi;
129
+
130
+ class SlideUpMessage extends InAppMessage{constructor(t,e,o,s,n,i,r,d,u,a,p,l,m,c,v,x,g,f,h,I,M){x=x||InAppMessage.ji.Wi,v=v||InAppMessage.ji.Gi,super(t,e=e||InAppMessage.TextAlignment.START,o,s,n,i,r,d,u,a,p,l,null,m,c,v,x,g,f,h,void 0,void 0,void 0,void 0,void 0,void 0,void 0,I,M);}we(){return !1}get ke(){return InAppMessage.TextAlignment.START}Me(){const t=document.createElement("span");return t.appendChild(document.createTextNode(this.message)),t}Ri(t){const e=t.getElementsByClassName("ab-in-app-message")[0];DOMUtils.eo(e,!0,!0)||(this.slideFrom===InAppMessage.SlideFrom.TOP?e.style.top="0px":e.style.bottom="0px"),super.Ri(t);}}SlideUpMessage.es=InAppMessage.es.Xi;
131
+
132
+ function newInAppMessageFromJson(e){if(e.is_control)return ControlMessage.fromJson(e);let s=e.type;null!=s&&(s=s.toUpperCase());const o=e.message,m=e.text_align_message,l=e.slide_from,n=e.extras,t=e.trigger_id,i=e.click_action,p=e.uri,f=e.open_target,a=e.message_close,d=e.duration,u=e.icon,g=e.image_url,j=e.image_style,w=e.icon_color,c=e.icon_bg_color,b=e.bg_color,h=e.text_color,v=e.close_btn_color,I=e.header,k=e.text_align_header,x=e.header_text_color,y=e.frame_color,z=[];let A=e.btns;null==A&&(A=[]);for(let e=0;e<A.length;e++)z.push(InAppMessageButton.fromJson(A[e]));const F=e.crop_type,J=e.orientation,M=e.animate_in,q=e.animate_out;let B,C=e.html_id,D=e.css;if(null!=C&&""!==C&&null!=D&&""!==D||(C=void 0,D=void 0),s===ModalMessage.es||s===InAppMessage.es.ye)B=new ModalMessage(o,m,n,t,i,p,f,a,d,u,g,j,w,c,b,h,v,M,q,I,k,x,y,z,F,C,D);else if(s===FullScreenMessage.es)B=new FullScreenMessage(o,m,n,t,i,p,f,a,d,u,g,j,w,c,b,h,v,M,q,I,k,x,y,z,F,J,C,D);else if(s===SlideUpMessage.es)B=new SlideUpMessage(o,m,l,n,t,i,p,f,a,d,u,g,w,c,b,h,v,M,q,C,D);else {if(s!==HtmlMessage.es&&s!==InAppMessage.es.cn)return void r$1.D.error("Ignoring message with unknown type "+s);{const s=e.message_fields;B=new HtmlMessage(o,n,t,a,d,M,q,y,C,D,s),B.trusted=e.trusted||!1;}}return B.un=s,B}
133
+
134
+ class xt{constructor(t){this.xl=t;}zl(t){return null==this.xl||this.xl===t[0]}static fromJson(t){return new xt(t?t.event_name:null)}ss(){return this.xl}}
135
+
136
+ class kt{constructor(t,s,e,i){this.El=t,this.Tl=s,this.comparator=e,this._l=i,this.Tl===kt.Ml.Nl&&this.comparator!==kt.Hl.Rl&&this.comparator!==kt.Hl.Ll&&this.comparator!==kt.Hl.Il&&this.comparator!==kt.Hl.Ol&&(this._l=dateFromUnixTimestamp(this._l));}zl(t){let s=null;switch(null!=t&&(s=t[this.El]),this.comparator){case kt.Hl.Ul:return null!=s&&s.valueOf()===this._l.valueOf();case kt.Hl.Dl:return null==s||s.valueOf()!==this._l.valueOf();case kt.Hl.Ql:return typeof s==typeof this._l&&s>this._l;case kt.Hl.Rl:return this.Tl===kt.Ml.Nl?null!=s&&isDate(s)&&secondsAgo(s)<=this._l:typeof s==typeof this._l&&s>=this._l;case kt.Hl.Xl:return typeof s==typeof this._l&&s<this._l;case kt.Hl.Ll:return this.Tl===kt.Ml.Nl?null!=s&&isDate(s)&&secondsAgo(s)>=this._l:typeof s==typeof this._l&&s<=this._l;case kt.Hl.Gl:return null!=s&&"string"==typeof s&&typeof s==typeof this._l&&null!=s.match(this._l);case kt.Hl.Fl:return null!=s;case kt.Hl.Jl:return null==s;case kt.Hl.Il:return null!=s&&isDate(s)&&secondsInTheFuture(s)<this._l;case kt.Hl.Ol:return null!=s&&isDate(s)&&secondsInTheFuture(s)>this._l;case kt.Hl.Vl:return null==s||typeof s!=typeof this._l||"string"!=typeof s||null==s.match(this._l)}return !1}static fromJson(t){return new kt(t.property_key,t.property_type,t.comparator,t.property_value)}ss(){let t=this._l;return isDate(this._l)&&(t=convertMsToSeconds(t.valueOf())),{k:this.El,t:this.Tl,c:this.comparator,v:t}}static yn(t){return new kt(t.k,t.t,t.c,t.v)}}kt.Hl={Ul:1,Dl:2,Ql:3,Rl:4,Xl:5,Ll:6,Gl:10,Fl:11,Jl:12,Il:15,Ol:16,Vl:17},kt.Ml={ql:"boolean",Kl:"number",Pl:"string",Nl:"date"};
137
+
138
+ class Bt{constructor(t){this.filters=t;}zl(t){let r=!0;for(let e=0;e<this.filters.length;e++){const o=this.filters[e];let s=!1;for(let r=0;r<o.length;r++)if(o[r].zl(t)){s=!0;break}if(!s){r=!1;break}}return r}static fromJson(t){if(null==t||!isArray(t))return null;const r=[];for(let e=0;e<t.length;e++){const o=[],s=t[e];for(let t=0;t<s.length;t++)o.push(kt.fromJson(s[t]));r.push(o);}return new Bt(r)}ss(){const t=[];for(let r=0;r<this.filters.length;r++){const e=this.filters[r],o=[];for(let t=0;t<e.length;t++)o.push(e[t].ss());t.push(o);}return t}static yn(t){const r=[];for(let e=0;e<t.length;e++){const o=[],s=t[e];for(let t=0;t<s.length;t++)o.push(kt.yn(s[t]));r.push(o);}return new Bt(r)}}
139
+
140
+ class Mt{constructor(t,s){this.xl=t,this.Bl=s;}zl(t){if(null==this.xl||null==this.Bl)return !1;const s=t[0],r=t[1];return s===this.xl&&this.Bl.zl(r)}static fromJson(t){return new Mt(t?t.event_name:null,t?Bt.fromJson(t.property_filters):null)}ss(){return {e:this.xl,pf:this.Bl.ss()}}}
141
+
142
+ class Gt{constructor(t,i){this.Wl=t,this.Yl=i;}zl(t){if(null==this.Wl)return !1;const i=Ft.Zl(t[0],this.Wl);if(!i)return !1;let r=null==this.Yl||0===this.Yl.length;if(null!=this.Yl)for(let i=0;i<this.Yl.length;i++)if(this.Yl[i]===t[1]){r=!0;break}return i&&r}static fromJson(t){return new Gt(t?t.id:null,t?t.buttons:null)}ss(){return this.Wl}}
143
+
144
+ class Kt{constructor(t){this.productId=t;}zl(t){return null==this.productId||t[0]===this.productId}static fromJson(t){return new Kt(t?t.product_id:null)}ss(){return this.productId}}
145
+
146
+ class Qt{constructor(t,s){this.productId=t,this.Bl=s;}zl(t){if(null==this.productId||null==this.Bl)return !1;const s=t[0],i=t[1];return s===this.productId&&this.Bl.zl(i)}static fromJson(t){return new Qt(t?t.product_id:null,t?Bt.fromJson(t.property_filters):null)}ss(){return {id:this.productId,pf:this.Bl.ss()}}}
147
+
148
+ class Wt{constructor(t){this.Wl=t;}zl(t){return null==this.Wl||Ft.Zl(t[0],this.Wl)}static fromJson(t){return new Wt(t?t.campaign_id:null)}ss(){return this.Wl}}
149
+
150
+ var V = {OPEN:"open",Rr:"purchase",vr:"push_click",be:"custom_event",Ar:"iam_click",ks:"test"};
151
+
152
+ class Ft{constructor(e,t){this.type=e,this.data=t;}qa(e,t){return Ft.$a[this.type]===e&&(null==this.data||this.data.zl(t))}static Zl(e,t){let a=null;try{a=window.atob(e);}catch(t){return r$1.D.info("Failed to unencode analytics id "+e+": "+t.message),!1}return t===a.split("_")[0]}static fromJson(e){const t=e.type;let r;switch(t){case Ft.ec.OPEN:r=null;break;case Ft.ec.Rr:r=Kt.fromJson(e.data);break;case Ft.ec.tc:r=Qt.fromJson(e.data);break;case Ft.ec.vr:r=Wt.fromJson(e.data);break;case Ft.ec.be:r=xt.fromJson(e.data);break;case Ft.ec.rc:r=Mt.fromJson(e.data);break;case Ft.ec.Ar:r=Gt.fromJson(e.data);break;case Ft.ec.ks:r=null;}return new Ft(t,r)}ss(){return {t:this.type,d:this.data?this.data.ss():null}}static yn(e){let t,r;switch(e.t){case Ft.ec.OPEN:t=null;break;case Ft.ec.Rr:t=new Kt(e.d);break;case Ft.ec.tc:r=e.d||{},t=new Qt(r.id,Bt.yn(r.pf||[]));break;case Ft.ec.vr:t=new Wt(e.d);break;case Ft.ec.be:t=new xt(e.d);break;case Ft.ec.rc:r=e.d||{},t=new Mt(r.e,Bt.yn(r.pf||[]));break;case Ft.ec.Ar:t=new Gt(e.d);break;case Ft.ec.ks:t=null;}return new Ft(e.t,t)}}Ft.ec={OPEN:"open",Rr:"purchase",tc:"purchase_property",vr:"push_click",be:"custom_event",rc:"custom_event_property",Ar:"iam_click",ks:"test"},Ft.$a={},Ft.$a[Ft.ec.OPEN]=V.OPEN,Ft.$a[Ft.ec.Rr]=V.Rr,Ft.$a[Ft.ec.tc]=V.Rr,Ft.$a[Ft.ec.vr]=V.vr,Ft.$a[Ft.ec.be]=V.be,Ft.$a[Ft.ec.rc]=V.be,Ft.$a[Ft.ec.Ar]=V.Ar,Ft.$a[Ft.ec.ks]=V.ks;
153
+
154
+ class ut{constructor(t,i,s,e,r,l,o,n,h,a,u,d){this.id=t,this.Th=i||[],void 0===s&&(s=null),this.startTime=s,void 0===e&&(e=null),this.endTime=e,this.priority=r||0,this.type=l,this.Ph=n||0,null==a&&(a=1e3*(this.Ph+30)),this.vi=a,this.data=o,null==h&&(h=ut.yh),this.Ah=h,this.Ih=u,this.$h=d||null;}Mh(t){return null==this.$h||this.Ah!==ut.yh&&t-this.$h>=1e3*this.Ah}Bh(t){this.$h=t;}Jh(t){const i=t+1e3*this.Ph;return Math.max(i-(new Date).valueOf(),0)}Lh(t){const i=(new Date).valueOf()-t,s=null==t||isNaN(i)||null==this.vi||i<this.vi;return s||r$1.D.info(`Trigger action ${this.type} is no longer eligible for display - fired ${i}ms ago and has a timeout of ${this.vi}ms.`),!s}static fromJson(t){const i=t.id,s=[];for(let i=0;i<t.trigger_condition.length;i++)s.push(Ft.fromJson(t.trigger_condition[i]));const e=dateFromUnixTimestamp(t.start_time),r=dateFromUnixTimestamp(t.end_time),l=t.priority,o=t.type,n=t.delay,a=t.re_eligibility,u=t.timeout,d=t.data,m=t.min_seconds_since_last_trigger;return validateValueIsFromEnum(ut.gi,o,"Could not construct Trigger from server data","Trigger.Types")?new ut(i,s,e,r,l,o,d,n,a,u,m):null}ss(){const t=[];for(let i=0;i<this.Th.length;i++)t.push(this.Th[i].ss());return {i:this.id,c:t,s:this.startTime,e:this.endTime,p:this.priority,t:this.type,da:this.data,d:this.Ph,r:this.Ah,tm:this.vi,ss:this.Ih,ld:this.$h}}static yn(t){const i=[];for(let s=0;s<t.c.length;s++)i.push(Ft.yn(t.c[s]));return new ut(t.i,i,rehydrateDateAfterJsonization(t.s),rehydrateDateAfterJsonization(t.e),t.p,t.t,t.da,t.d,t.r,t.tm,t.ss,t.ld)}}ut.yh=-1,ut.gi={mi:"inapp",Rh:"templated_iam"};
155
+
156
+ class ge{constructor(t,s,i,r){this.vt=t,this.j=s,this.h=i,this.v=r,this.De=new u,e.jt(this.De),this._e=1e3,this.Se=6e4;}Be(){return this.De}Ee(t){return this.De.ut(t)}Fe(){return this.Ge}Ne(t){this.Ge=t;}qe(e,i){if(!validateValueIsFromEnum(InAppMessage.Oe,i,`${i} is not a valid in-app message display failure`,"InAppMessage.DisplayFailures"))return new t;const n={trigger_ids:[e],error_code:i};return s$1.G(r$1.A.Pe,n)}G(e,i,n,o){const a=new t;let l;if(e instanceof ControlMessage)l={trigger_ids:[e.triggerId]};else {if(i===r$1.A.Re||e instanceof HtmlMessage&&i===r$1.A.He){if(!e.k(o))return r$1.D.info("This in-app message has already received a click. Ignoring analytics event."),a}else if(i===r$1.A.Je){if(!e.R())return r$1.D.info("This in-app message has already received an impression. Ignoring analytics event."),a}l=this.Ke(e);}return null==l?a:(null!=n&&(l.bid=n),s$1.G(i,l))}Qe(e,i){const n=new t;if(!e.k())return r$1.D.info("This in-app message button has already received a click. Ignoring analytics event."),n;const o=this.Ke(i);return null==o?n:e.id===InAppMessageButton.Ue?(r$1.D.info("This in-app message button does not have a tracking id. Not logging event to Braze servers."),n):(null!=e.id&&(o.bid=e.id),s$1.G(r$1.A.He,o))}Ve(t){if(!(t instanceof InAppMessage))return;const s=t=>{const s=getDecodedBrazeAction(t);return containsUnknownBrazeAction(s)?ineligibleBrazeActionURLErrorMessage(INELIGIBLE_BRAZE_ACTION_URL_ERROR_TYPES.We,"In-App Message"):containsPushPrimerBrazeAction(s)&&!ht$1.Xe()?ineligibleBrazeActionURLErrorMessage(INELIGIBLE_BRAZE_ACTION_URL_ERROR_TYPES.Ye,"In-App Message"):void 0},e=t.buttons;let i;for(const t of e)if(t.clickAction===InAppMessage.ClickAction.URI&&BRAZE_ACTION_URI_REGEX.test(t.uri)&&(i=s(t.uri),i))return i;return t.clickAction===InAppMessage.ClickAction.URI&&BRAZE_ACTION_URI_REGEX.test(t.uri)?s(t.uri):void 0}Ze(t,s,e,i){let n=this.vt.ni(!1,!1);n=this.vt.Ps(n),n.template={trigger_id:t.triggerId,trigger_event_type:s},null!=e&&(n.template.data=e.li());const o=this.vt.Bs(n);this.vt.Gs(n,(()=>{b.Hs({url:`${this.vt.Ks()}/template/`,data:n,headers:o,S:async s=>{if(!this.vt.Os(n,s,o))return this.qe(t.triggerId,InAppMessage.Oe.ui),void("function"==typeof t.pi&&t.pi());if(this.vt.Qs(),null==s||null==s.templated_message)return void this.qe(t.triggerId,InAppMessage.Oe.ui);const e=s.templated_message;if(e.type!==ut.gi.mi)return void this.qe(t.triggerId,InAppMessage.Oe.ci);const i=newInAppMessageFromJson(e.data);if(null==i)return void this.qe(t.triggerId,InAppMessage.Oe.ci);let a=this.Ve(i);if(a)return r$1.D.error(a),void("function"==typeof t.pi&&t.pi());"function"==typeof t.fi?t.fi(i):this.qe(t.triggerId,InAppMessage.Oe.ui);},error:r=>{let n=`getting user personalization for message ${t.triggerId}`;if((new Date).valueOf()-t.di>t.vi)this.qe(t.triggerId,InAppMessage.Oe.ui);else {const r=Math.min(t.vi,this.Se),o=this._e;null==i&&(i=o);const a=Math.min(r,randomInclusive(o,3*i));n+=`. Retrying in ${a} ms`,setTimeout((()=>{this.Ze(t,s,e,a);}),a);}this.vt.Vs(r,n);}});}));}Ke(t){if(null==t.triggerId)return r$1.D.info("The in-app message has no analytics id. Not logging event to Braze servers."),null;const s={};return null!=t.triggerId&&(s.trigger_ids=[t.triggerId]),s}}
157
+
158
+ const pe={Ae:null,t:!1,m:()=>(pe.o(),pe.Ae||(pe.Ae=new ge(e.nr(),e.g(),e.l(),e.p())),pe.Ae),o:()=>{pe.t||(e.u(pe),pe.t=!0);},destroy:()=>{pe.Ae=null,pe.t=!1;}};var pe$1 = pe;
159
+
160
+ function attachCSS(n,t,o){const c=n||document.querySelector("head"),s=`ab-${t}-css-definitions-${"4.2.1".replace(/\./g,"-")}`,a=c.ownerDocument||document;if(null==a.getElementById(s)){const n=a.createElement("style");n.innerHTML=o,n.id=s;const t=e.nn(T.ao);null!=t&&n.setAttribute("nonce",t),c.appendChild(n);}}
161
+
162
+ function loadFontAwesome(){if(e.nn(T.Ao))return;const t="https://use.fontawesome.com/7f85a56ba4.css";if(!(null!==document.querySelector('link[rel=stylesheet][href="'+t+'"]'))){const e=document.createElement("link");e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),document.getElementsByTagName("head")[0].appendChild(e);}}
163
+
164
+ function attachFeedCSS(t){attachCSS(t,"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',sans-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;right:0;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 svg{-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease;fill:#9b9b9b}.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%}.ab-feed .ab-card.ab-banner .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',sans-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;padding-left: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 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%}}");}function setupFeedUI(){attachFeedCSS(),loadFontAwesome();}
165
+
166
+ function attachInAppMessageCSS(t){attachCSS(t,"iam",".ab-pause-scrolling,body.ab-pause-scrolling,html.ab-pause-scrolling{overflow:hidden;touch-action:none}.ab-centering-div,.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-centering-div:focus,.ab-iam-root.v3:focus{outline:0}.ab-centering-div.ab-effect-fullscreen,.ab-centering-div.ab-effect-html,.ab-centering-div.ab-effect-modal,.ab-iam-root.v3.ab-effect-fullscreen,.ab-iam-root.v3.ab-effect-html,.ab-iam-root.v3.ab-effect-modal{opacity:0}.ab-centering-div.ab-effect-fullscreen.ab-show,.ab-centering-div.ab-effect-html.ab-show,.ab-centering-div.ab-effect-modal.ab-show,.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-centering-div.ab-effect-fullscreen.ab-show.ab-animate-in,.ab-centering-div.ab-effect-html.ab-show.ab-animate-in,.ab-centering-div.ab-effect-modal.ab-show.ab-animate-in,.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-centering-div.ab-effect-fullscreen.ab-hide,.ab-centering-div.ab-effect-html.ab-hide,.ab-centering-div.ab-effect-modal.ab-hide,.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-centering-div.ab-effect-fullscreen.ab-hide.ab-animate-out,.ab-centering-div.ab-effect-html.ab-hide.ab-animate-out,.ab-centering-div.ab-effect-modal.ab-hide.ab-animate-out,.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-centering-div.ab-effect-slide .ab-in-app-message,.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-centering-div.ab-effect-slide.ab-show .ab-in-app-message,.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-centering-div.ab-effect-slide.ab-show.ab-animate-in .ab-in-app-message,.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-centering-div.ab-effect-slide.ab-hide .ab-in-app-message,.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-centering-div.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-left,.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-centering-div.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-up,.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-centering-div.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-down,.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-centering-div.ab-effect-slide.ab-hide.ab-animate-out .ab-in-app-message,.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-centering-div .ab-ios-scroll-wrapper,.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-centering-div .ab-in-app-message,.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',sans-serif;z-index:9011;max-width:100%;overflow:hidden;display:inline-block;pointer-events:all;color:#333}.ab-centering-div .ab-in-app-message.ab-no-shadow,.ab-iam-root.v3 .ab-in-app-message.ab-no-shadow{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.ab-centering-div .ab-in-app-message :focus,.ab-centering-div .ab-in-app-message:focus,.ab-iam-root.v3 .ab-in-app-message :focus,.ab-iam-root.v3 .ab-in-app-message:focus{outline:0}.ab-centering-div .ab-in-app-message.ab-clickable,.ab-iam-root.v3 .ab-in-app-message.ab-clickable{cursor:pointer}.ab-centering-div .ab-in-app-message.ab-background,.ab-iam-root.v3 .ab-in-app-message.ab-background{background-color:#fff}.ab-centering-div .ab-in-app-message .ab-close-button,.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;right:0;top:0;z-index:9021}.ab-centering-div .ab-in-app-message .ab-close-button svg,.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}.ab-centering-div .ab-in-app-message .ab-close-button svg.ab-chevron,.ab-iam-root.v3 .ab-in-app-message .ab-close-button svg.ab-chevron{display:none}.ab-centering-div .ab-in-app-message .ab-close-button:active,.ab-iam-root.v3 .ab-in-app-message .ab-close-button:active{background-color:transparent}.ab-centering-div .ab-in-app-message .ab-close-button:focus,.ab-iam-root.v3 .ab-in-app-message .ab-close-button:focus{background-color:transparent}.ab-centering-div .ab-in-app-message .ab-close-button:hover,.ab-iam-root.v3 .ab-in-app-message .ab-close-button:hover{background-color:transparent}.ab-centering-div .ab-in-app-message .ab-close-button:hover svg,.ab-iam-root.v3 .ab-in-app-message .ab-close-button:hover svg{fill-opacity:.8}.ab-centering-div .ab-in-app-message .ab-message-text,.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',sans-serif}.ab-centering-div .ab-in-app-message .ab-message-text.start-aligned,.ab-iam-root.v3 .ab-in-app-message .ab-message-text.start-aligned{text-align:left;text-align:start}.ab-centering-div .ab-in-app-message .ab-message-text.end-aligned,.ab-iam-root.v3 .ab-in-app-message .ab-message-text.end-aligned{text-align:right;text-align:end}.ab-centering-div .ab-in-app-message .ab-message-text.center-aligned,.ab-iam-root.v3 .ab-in-app-message .ab-message-text.center-aligned{text-align:center}.ab-centering-div .ab-in-app-message .ab-message-text::-webkit-scrollbar,.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar{-webkit-appearance:none;width:14px}.ab-centering-div .ab-in-app-message .ab-message-text::-webkit-scrollbar-thumb,.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-centering-div .ab-in-app-message .ab-message-text::-webkit-scrollbar-button,.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar-button{width:0;height:0;display:none}.ab-centering-div .ab-in-app-message .ab-message-text::-webkit-scrollbar-corner,.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar-corner{background-color:transparent}.ab-centering-div .ab-in-app-message .ab-message-header,.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-centering-div .ab-in-app-message .ab-message-header.start-aligned,.ab-iam-root.v3 .ab-in-app-message .ab-message-header.start-aligned{text-align:left;text-align:start}.ab-centering-div .ab-in-app-message .ab-message-header.end-aligned,.ab-iam-root.v3 .ab-in-app-message .ab-message-header.end-aligned{text-align:right;text-align:end}.ab-centering-div .ab-in-app-message .ab-message-header.center-aligned,.ab-iam-root.v3 .ab-in-app-message .ab-message-header.center-aligned{text-align:center}.ab-centering-div .ab-in-app-message.ab-fullscreen,.ab-centering-div .ab-in-app-message.ab-modal,.ab-centering-div .ab-in-app-message.ab-slideup,.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-centering-div .ab-in-app-message.ab-slideup,.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-centering-div .ab-in-app-message.ab-slideup.simulate-phone,.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-centering-div .ab-in-app-message.ab-slideup.simulate-phone .ab-close-button,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-close-button{display:none}.ab-centering-div .ab-in-app-message.ab-slideup.simulate-phone .ab-close-button svg:not(.ab-chevron),.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-close-button svg:not(.ab-chevron){display:none}.ab-centering-div .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-close-button,.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-centering-div .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-close-button svg.ab-chevron,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-close-button svg.ab-chevron{display:inline}.ab-centering-div .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-message-text{border-right-width:40px}.ab-centering-div .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text{max-width:100%;border-right-width:10px}.ab-centering-div .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text span,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text span{max-height:66px}.ab-centering-div .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text.ab-with-icon,.ab-centering-div .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text.ab-with-image,.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-centering-div .ab-in-app-message.ab-slideup.simulate-phone .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-image-area{width:50px;height:50px}.ab-centering-div .ab-in-app-message.ab-slideup.simulate-phone .ab-image-area img,.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-centering-div .ab-in-app-message.ab-slideup.ab-clickable:active .ab-message-text,.ab-centering-div .ab-in-app-message.ab-slideup.ab-clickable:focus .ab-message-text,.ab-centering-div .ab-in-app-message.ab-slideup.ab-clickable:hover .ab-message-text,.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-centering-div .ab-in-app-message.ab-slideup.ab-clickable:active .ab-close-button svg.ab-chevron,.ab-centering-div .ab-in-app-message.ab-slideup.ab-clickable:focus .ab-close-button svg.ab-chevron,.ab-centering-div .ab-in-app-message.ab-slideup.ab-clickable:hover .ab-close-button svg.ab-chevron,.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-centering-div .ab-in-app-message.ab-slideup .ab-message-text,.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-centering-div .ab-in-app-message.ab-slideup .ab-message-text span,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text span{display:block;max-height:150px;overflow:auto}.ab-centering-div .ab-in-app-message.ab-slideup .ab-message-text.ab-with-icon,.ab-centering-div .ab-in-app-message.ab-slideup .ab-message-text.ab-with-image,.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-centering-div .ab-in-app-message.ab-slideup .ab-close-button,.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;right:0;top:0;z-index:9021}.ab-centering-div .ab-in-app-message.ab-slideup .ab-close-button svg,.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}.ab-centering-div .ab-in-app-message.ab-slideup .ab-close-button svg.ab-chevron,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button svg.ab-chevron{display:none}.ab-centering-div .ab-in-app-message.ab-slideup .ab-close-button:active,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:active{background-color:transparent}.ab-centering-div .ab-in-app-message.ab-slideup .ab-close-button:focus,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:focus{background-color:transparent}.ab-centering-div .ab-in-app-message.ab-slideup .ab-close-button:hover,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:hover{background-color:transparent}.ab-centering-div .ab-in-app-message.ab-slideup .ab-close-button:hover svg,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:hover svg{fill-opacity:.8}.ab-centering-div .ab-in-app-message.ab-slideup .ab-image-area,.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-centering-div .ab-in-app-message.ab-slideup .ab-image-area.ab-icon-area,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area.ab-icon-area{width:auto}.ab-centering-div .ab-in-app-message.ab-slideup .ab-image-area img,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area img{float:none;width:100%}.ab-centering-div .ab-in-app-message.ab-fullscreen,.ab-centering-div .ab-in-app-message.ab-modal,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen,.ab-iam-root.v3 .ab-in-app-message.ab-modal{font-size:14px}.ab-centering-div .ab-in-app-message.ab-fullscreen .ab-image-area,.ab-centering-div .ab-in-app-message.ab-modal .ab-image-area,.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-centering-div .ab-in-app-message.ab-fullscreen .ab-image-area .ab-center-cropped-img,.ab-centering-div .ab-in-app-message.ab-modal .ab-image-area .ab-center-cropped-img,.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{background-size:cover;background-repeat:no-repeat;background-position:50% 50%;position:absolute;top:0;right:0;bottom:0;left:0}.ab-centering-div .ab-in-app-message.ab-fullscreen .ab-icon,.ab-centering-div .ab-in-app-message.ab-modal .ab-icon,.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-centering-div .ab-in-app-message.ab-fullscreen.graphic,.ab-centering-div .ab-in-app-message.ab-modal.graphic,.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-centering-div .ab-in-app-message.ab-fullscreen.graphic .ab-message-text,.ab-centering-div .ab-in-app-message.ab-modal.graphic .ab-message-text,.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-centering-div .ab-in-app-message.ab-fullscreen.graphic .ab-message-buttons,.ab-centering-div .ab-in-app-message.ab-modal.graphic .ab-message-buttons,.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-centering-div .ab-in-app-message.ab-fullscreen.graphic .ab-image-area,.ab-centering-div .ab-in-app-message.ab-modal.graphic .ab-image-area,.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-centering-div .ab-in-app-message.ab-fullscreen.graphic .ab-image-area img,.ab-centering-div .ab-in-app-message.ab-modal.graphic .ab-image-area img,.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-centering-div .ab-in-app-message.ab-modal,.ab-iam-root.v3 .ab-in-app-message.ab-modal{padding-top:20px;width:450px;max-width:450px;max-height:720px}.ab-centering-div .ab-in-app-message.ab-modal.simulate-phone,.ab-iam-root.v3 .ab-in-app-message.ab-modal.simulate-phone{max-width:91%;max-width:calc(100% - 30px)}.ab-centering-div .ab-in-app-message.ab-modal.simulate-phone.graphic .ab-image-area img,.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-centering-div .ab-in-app-message.ab-modal .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text{max-height:660px}.ab-centering-div .ab-in-app-message.ab-modal .ab-message-text.ab-with-image,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-image{max-height:524.82758621px}.ab-centering-div .ab-in-app-message.ab-modal .ab-message-text.ab-with-icon,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-icon{max-height:610px}.ab-centering-div .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons{margin-bottom:93px;max-height:587px}.ab-centering-div .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons.ab-with-image,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons.ab-with-image{max-height:451.82758621px}.ab-centering-div .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons.ab-with-icon,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons.ab-with-icon{max-height:537px}.ab-centering-div .ab-in-app-message.ab-modal .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area{margin-top:-20px;max-height:155.17241379px}.ab-centering-div .ab-in-app-message.ab-modal .ab-image-area img,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area img{max-width:100%;max-height:155.17241379px}.ab-centering-div .ab-in-app-message.ab-modal .ab-image-area.ab-icon-area,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area.ab-icon-area{height:auto}.ab-centering-div .ab-in-app-message.ab-modal.graphic,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic{width:auto;overflow:hidden}.ab-centering-div .ab-in-app-message.ab-modal.graphic .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area{display:inline}.ab-centering-div .ab-in-app-message.ab-modal.graphic .ab-image-area img,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area img{max-height:720px;max-width:450px}.ab-centering-div .ab-in-app-message.ab-fullscreen,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen{width:450px;max-height:720px}.ab-centering-div .ab-in-app-message.ab-fullscreen.landscape,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape{width:720px;max-height:450px}.ab-centering-div .ab-in-app-message.ab-fullscreen.landscape .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape .ab-image-area{height:225px}.ab-centering-div .ab-in-app-message.ab-fullscreen.landscape.graphic .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape.graphic .ab-image-area{height:450px}.ab-centering-div .ab-in-app-message.ab-fullscreen.landscape .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape .ab-message-text{max-height:112px}.ab-centering-div .ab-in-app-message.ab-fullscreen .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-message-text{max-height:247px}.ab-centering-div .ab-in-app-message.ab-fullscreen .ab-message-text.ab-with-buttons,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-message-text.ab-with-buttons{margin-bottom:93px}.ab-centering-div .ab-in-app-message.ab-fullscreen .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area{height:360px}.ab-centering-div .ab-in-app-message.ab-fullscreen.graphic .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-image-area{height:720px}.ab-centering-div .ab-in-app-message.ab-fullscreen.simulate-phone,.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-centering-div .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-close-button,.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-centering-div .ab-in-app-message.ab-fullscreen.simulate-phone .ab-image-area,.ab-centering-div .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-image-area,.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-centering-div .ab-in-app-message.ab-fullscreen.simulate-phone .ab-message-text,.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-centering-div .ab-in-app-message.ab-fullscreen.simulate-phone .ab-message-text.ab-with-buttons,.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-centering-div .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-message-text.ab-with-buttons,.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-centering-div .ab-in-app-message.ab-fullscreen.simulate-phone:not(.graphic),.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-centering-div .ab-in-app-message.ab-fullscreen.simulate-phone:not(.graphic) .ab-message-buttons,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone:not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-centering-div .ab-in-app-message.ab-fullscreen.simulate-phone.graphic,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.graphic{display:block}.ab-centering-div .ab-in-app-message.ab-fullscreen.simulate-phone.graphic .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.graphic .ab-image-area{height:100%}.ab-centering-div .ab-in-app-message.ab-fullscreen.simulate-phone.graphic .ab-message-button,.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-centering-div .ab-in-app-message.ab-html-message,.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-centering-div .ab-in-app-message .ab-message-buttons,.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-centering-div .ab-in-app-message .ab-message-button,.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',sans-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-centering-div .ab-in-app-message .ab-message-button:first-of-type,.ab-iam-root.v3 .ab-in-app-message .ab-message-button:first-of-type{float:left;background-color:#fff;color:#1b78cf}.ab-centering-div .ab-in-app-message .ab-message-button:last-of-type,.ab-iam-root.v3 .ab-in-app-message .ab-message-button:last-of-type{float:right;background-color:#1b78cf;color:#fff}.ab-centering-div .ab-in-app-message .ab-message-button:first-of-type:last-of-type,.ab-iam-root.v3 .ab-in-app-message .ab-message-button:first-of-type:last-of-type{float:none;width:auto}.ab-centering-div .ab-in-app-message .ab-message-button:after,.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-centering-div .ab-in-app-message .ab-message-button:after,.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-centering-div .ab-in-app-message .ab-message-button:hover,.ab-iam-root.v3 .ab-in-app-message .ab-message-button:hover{opacity:.8}.ab-centering-div .ab-in-app-message .ab-message-button:active:after,.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-centering-div .ab-in-app-message .ab-message-button:focus:after,.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-centering-div .ab-in-app-message .ab-message-button a,.ab-iam-root.v3 .ab-in-app-message .ab-message-button a{color:inherit;text-decoration:inherit}.ab-centering-div .ab-in-app-message img,.ab-iam-root.v3 .ab-in-app-message img{float:none;display:inline-block}.ab-centering-div .ab-in-app-message .ab-icon,.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-centering-div .ab-in-app-message .ab-icon .fa,.ab-iam-root.v3 .ab-in-app-message .ab-icon .fa{float:none;font-size:30px;width:30px}.ab-centering-div .ab-start-hidden,.ab-iam-root.v3 .ab-start-hidden{visibility:hidden}.ab-centering-div .ab-centered,.ab-centering-div.ab-centering-div .ab-modal,.ab-iam-root.v3 .ab-centered,.ab-iam-root.v3.ab-centering-div .ab-modal{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-email-capture,.ab-iam-root.v3{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.ab-email-capture .ab-page-blocker,.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)}.ab-email-capture .ab-in-app-message.ab-modal .ab-email-capture-input{margin-bottom:30px}.ab-email-capture .ab-in-app-message.ab-modal .ab-message-buttons~.ab-message-text{max-height:541px;margin-bottom:160px}.ab-email-capture .ab-in-app-message.ab-modal .ab-message-buttons~.ab-message-text.with-explanatory-link{max-height:513px;margin-bottom:188px}.ab-email-capture .ab-in-app-message.ab-modal .ab-image-area~.ab-message-text{max-height:385.82758621px}.ab-email-capture .ab-in-app-message.ab-modal .ab-image-area~.ab-message-text.with-explanatory-link{max-height:357.82758621px}.ab-email-capture .ab-in-app-message.ab-modal .ab-email-validation-error{margin-top:62px}.ab-email-capture .ab-in-app-message.ab-modal .ab-explanatory-link{display:block}.ab-email-capture .ab-in-app-message.ab-modal .ab-background,.ab-email-capture .ab-in-app-message.ab-modal .ab-mask{position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1}.ab-email-capture .ab-in-app-message.ab-modal .ab-close-button{line-height:normal}.ab-email-capture .ab-in-app-message.ab-modal .ab-html-close-button{right:3px;top:-1px;font-size:34px;padding-top:0}@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-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-email-capture .ab-in-app-message.ab-modal:not(.force-desktop),.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop){max-width:91%;max-width:calc(100% - 30px)}.ab-email-capture .ab-in-app-message.ab-modal:not(.force-desktop).graphic .ab-image-area img,.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-email-capture .ab-in-app-message.ab-modal:not(.force-desktop),.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop){max-height:91%;max-height:calc(100% - 30px)}.ab-email-capture .ab-in-app-message.ab-modal:not(.force-desktop).graphic .ab-image-area img,.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-email-capture .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text,.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-email-capture .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-image,.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-email-capture .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-icon,.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-email-capture .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons,.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-email-capture .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons.ab-with-image,.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-email-capture .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons.ab-with-icon,.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%}.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)}}");}function setupInAppMessageUI(){attachInAppMessageCSS(),loadFontAwesome();}
167
+
168
+ function se(e){let s="";return e.animateIn&&(s+=" ab-animate-in"),e.animateOut&&(s+=" ab-animate-out"),e instanceof FullScreenMessage?s+=" ab-effect-fullscreen":e instanceof HtmlMessage?s+=" ab-effect-html":e instanceof ModalMessage?s+=" ab-effect-modal":e instanceof SlideUpMessage&&(s+=" ab-effect-slide"),s}
169
+
170
+ function createCloseButton(t,o,e){const n=document.createElement("button");n.setAttribute("aria-label",t),n.setAttribute("tabindex","0"),n.setAttribute("role","button"),addPassiveEventListener(n,"touchstart",(()=>{})),n.className="ab-close-button";const r=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",o);return n.appendChild(r),n.addEventListener("keydown",(t=>{t.keyCode!==KeyCodes.fo&&t.keyCode!==KeyCodes.co||(e(),t.stopPropagation());})),n.onclick=t=>{e(),t.stopPropagation();},n}
171
+
172
+ function isTransparent(r){return r=parseInt(r),!isNaN(r)&&(4278190080&r)>>>24==0}function toRgba(r,t){if(r=parseInt(r),isNaN(r))return "";t=parseFloat(t),isNaN(t)&&(t=1);const n=255&(r>>>=0),e=(65280&r)>>>8,o=(16711680&r)>>>16,a=((4278190080&r)>>>24)/255;return et.bg()?"rgba("+[o,e,n,a*t].join(",")+")":"rgb("+[o,e,n].join(",")+")"}
173
+
174
+ function logInAppMessageClick(o){if(!e.rr())return !1;if(!(o instanceof InAppMessage))return r$1.D.error(MUST_BE_IN_APP_MESSAGE_WARNING),!1;const s=pe$1.m().G(o,r$1.A.Re);if(s)for(let r=0;r<s.ve.length;r++)TriggersProviderFactory.er().je(V.Ar,[o.triggerId],s.ve[r]);return s.S}
175
+
176
+ const ORIENTATION={PORTRAIT:0,LANDSCAPE:1};function _isPhone(){return screen.width<=600}function _getOrientation(){if("orientation"in window)return 90===Math.abs(window.orientation)||270===window.orientation?ORIENTATION.LANDSCAPE:ORIENTATION.PORTRAIT;if("screen"in window){let n=window.screen.orientation||screen.mozOrientation||screen.msOrientation;return null!=n&&"object"==typeof n&&(n=n.type),"landscape-primary"===n||"landscape-secondary"===n?ORIENTATION.LANDSCAPE:ORIENTATION.PORTRAIT}return ORIENTATION.PORTRAIT}function _openUri(n,e,r){e||null!=r&&r.metaKey?window.open(n):window.location=n;}function _getCurrentUrl(){return window.location.href}const WindowUtils={openUri:_openUri,so:_isPhone,io:_getOrientation,hn:_getCurrentUrl};
177
+
178
+ function getUser(){if(e.rr())return e.gr()}
179
+
180
+ function _handleBrazeAction(a,s,i){if(e.rr())if(BRAZE_ACTION_URI_REGEX.test(a)){const e=getDecodedBrazeAction(a);if(!e)return;const s=async e=>{if(!isValidBrazeActionJson(e))return void r$1.D.error(`Decoded Braze Action json is invalid: ${JSON.stringify(e,null,2)}`);const a=e[BRAZE_ACTIONS.properties.type];if(a===BRAZE_ACTIONS.types.ue)for(const r of e[BRAZE_ACTIONS.properties.me])s(r);else {const s=e[BRAZE_ACTIONS.properties.fe];let i,o;switch(a){case BRAZE_ACTIONS.types.logCustomEvent:i=await Promise.resolve().then(function () { return logCustomEvent$1; }),i.logCustomEvent.apply(null,Array.prototype.slice.call(s));break;case BRAZE_ACTIONS.types.requestPushPermission:i=await Promise.resolve().then(function () { return requestPushPermission$1; }),i.requestPushPermission();break;case BRAZE_ACTIONS.types.setEmailNotificationSubscriptionType:case BRAZE_ACTIONS.types.setPushNotificationSubscriptionType:case BRAZE_ACTIONS.types.setCustomUserAttribute:case BRAZE_ACTIONS.types.addToSubscriptionGroup:case BRAZE_ACTIONS.types.removeFromSubscriptionGroup:case BRAZE_ACTIONS.types.addToCustomAttributeArray:case BRAZE_ACTIONS.types.removeFromCustomAttributeArray:o=getUser(),o[a].apply(o,Array.prototype.slice.call(s));break;case BRAZE_ACTIONS.types.de:case BRAZE_ACTIONS.types.pe:WindowUtils.openUri.apply(null,Array.prototype.slice.call(s));break;default:r$1.D.info(`Ignoring unknown Braze Action: ${a}`);}}};s(e);}else WindowUtils.openUri(a,i,s);}function handleBrazeAction(e,r){_handleBrazeAction(e,r);}
181
+
182
+ function logInAppMessageHtmlClick(s,t,o){if(!e.rr())return !1;if(!(s instanceof HtmlMessage))return r$1.D.error("inAppMessage argument to logInAppMessageHtmlClick must be an HtmlMessage object."),!1;let m=r$1.A.Re;null!=t&&(m=r$1.A.He);const i=pe$1.m().G(s,m,t,o);if(i.S)for(let r=0;r<i.ve.length;r++)TriggersProviderFactory.er().je(V.Ar,[s.triggerId,t],i.ve[r]);return i.S}
183
+
184
+ function parseQueryStringKeyValues(t){null==t&&(t="");const r=t.split("?").slice(1).join("?"),n={};if(null!=r){const t=r.split("&");for(let r=0;r<t.length;r++){const a=t[r].split("=");""!==a[0]&&(n[a[0]]=a[1]);}}return n}function isURIJavascriptOrData(t){return !(!t||0!==(t=t.toString().toLowerCase()).lastIndexOf("javascript:",0)&&0!==t.lastIndexOf("data:",0))}
185
+
186
+ function rt(t,n,e,o,s,r){const i=document.createElement("iframe");i.setAttribute("title","Modal Message"),s&&(i.style.zIndex=s+1);const u=n=>{const e=n.getAttribute("href"),s=n.onclick;return r=>{if(null!=s&&"function"==typeof s&&!1===s())return;let u=parseQueryStringKeyValues(e).abButtonId;if(null!=u&&""!==u||(u=n.getAttribute("id")),null!=e&&""!==e&&0!==e.indexOf("#")){const s="blank"===(n.getAttribute("target")||"").toLowerCase().replace("_",""),c=o||t.openTarget===InAppMessage.OpenTarget.BLANK||s,a=()=>{logInAppMessageHtmlClick(t,u,e),WindowUtils.openUri(e,c,r);};c?a():t.on(i,a);}else logInAppMessageHtmlClick(t,u,e);return r.stopPropagation(),!1}},c=(t,n,e)=>{const o=`([\\w]+)\\s*=\\s*document.createElement\\(['"]${e}['"]\\)`,s=t.match(new RegExp(o));if(s){const e=`${s[1]}.setAttribute("nonce", "${n}")`;return `${t.slice(0,s.index+s[0].length)};${e};${t.slice(s.index+s[0].length)}`}return null};if(i.onload=()=>{let o=null;if(null!=r){o=document.createElement("html"),o.innerHTML=t.message;const n=o.getElementsByTagName("style");for(let t=0;t<n.length;t++)n[t].setAttribute("nonce",r);const e=o.getElementsByTagName("script");for(let t=0;t<e.length;t++){e[t].setAttribute("nonce",r),e[t].innerHTML=e[t].innerHTML.replace(/<style>/g,`<style nonce='${r}'>`);const n=c(e[t].innerHTML,r,"script");n&&(e[t].innerHTML=n);const o=c(e[t].innerHTML,r,"style");o&&(e[t].innerHTML=o);}}i.contentWindow.focus(),i.contentWindow.document.write(o?o.innerHTML:t.message);const s=i.contentWindow.document.getElementsByTagName("head")[0];if(null!=s){if(attachInAppMessageCSS(s),t.sn()){const n=document.createElement("style");n.innerHTML=t.css,n.id=t.rn(),null!=r&&n.setAttribute("nonce",r),s.appendChild(n);}const n=i.contentWindow.document.createElement("base");n.setAttribute("target","_parent"),s.appendChild(n);}const a=i.contentWindow.document.getElementsByTagName("title");a.length>0&&i.setAttribute("title",a[0].textContent);const l={closeMessage:function(){t.on(i);},logClick:function(){const n=[t,...arguments];logInAppMessageHtmlClick.apply(t,Array.prototype.slice.call(n));},display:{},web:{}},requestPushPermission=function(){return function(){const t=arguments;Promise.resolve().then(function () { return requestPushPermission$1; }).then((n=>{n.requestPushPermission.apply(null,Array.prototype.slice.call(t));}));}},m={requestImmediateDataFlush:async function(){const t=arguments,n=await Promise.resolve().then(function () { return requestImmediateDataFlush$1; });n.requestImmediateDataFlush.apply(null,Array.prototype.slice.call(t));},logCustomEvent:async function(){const t=arguments,n=await Promise.resolve().then(function () { return logCustomEvent$1; });n.logCustomEvent.apply(null,Array.prototype.slice.call(t));},logPurchase:async function(){const t=arguments,n=await Promise.resolve().then(function () { return logPurchase$1; });n.logPurchase.apply(null,Array.prototype.slice.call(t));},unregisterPush:async function(){const t=arguments,n=await Promise.resolve().then(function () { return unregisterPush$1; });n.unregisterPush.apply(null,Array.prototype.slice.call(t));},requestPushPermission:requestPushPermission()},f=function(t){return function(){m[t].apply(null,Array.prototype.slice.call(arguments));}};for(const t of keys(m))l[t]=f(t);const p=["setFirstName","setLastName","setEmail","setGender","setDateOfBirth","setCountry","setHomeCity","setEmailNotificationSubscriptionType","setLanguage","addAlias","setPushNotificationSubscriptionType","setPhoneNumber","setCustomUserAttribute","addToCustomAttributeArray","removeFromCustomAttributeArray","incrementCustomUserAttribute","setCustomLocationAttribute","addToSubscriptionGroup","removeFromSubscriptionGroup"],d=function(t){return function(){const n=getUser();n[t].apply(n,Array.prototype.slice.call(arguments));}},y={};for(let t=0;t<p.length;t++)y[p[t]]=d(p[t]);l.getUser=function(){return y};const b={showFeed:n},g=function(n){return function(){const e=arguments;t.on(i,(function(){b[n].apply(null,Array.prototype.slice.call(e));}));}};for(const t of keys(b))l.display[t]=g(t);const h={registerAppboyPushMessages:requestPushPermission()},A=function(t){return function(){h[t].apply(null,Array.prototype.slice.call(arguments));}};for(const t of keys(h))l.web[t]=A(t);if(i.contentWindow.appboyBridge=l,i.contentWindow.brazeBridge=l,t.un!==InAppMessage.es.cn){const t=i.contentWindow.document.getElementsByTagName("a");for(let n=0;n<t.length;n++)t[n].onclick=u(t[n]);const n=i.contentWindow.document.getElementsByTagName("button");for(let t=0;t<n.length;t++)n[t].onclick=u(n[t]);}const j=i.contentWindow.document.body;if(null!=j){t.an()&&(j.id=t.htmlId);const n=document.createElement("hidden");n.onclick=l.closeMessage,n.className="ab-programmatic-close-button",j.appendChild(n);}i.contentWindow.dispatchEvent(new CustomEvent("ab.BridgeReady")),-1!==i.className.indexOf("ab-start-hidden")&&(i.className=i.className.replace("ab-start-hidden",""),e(i)),document.activeElement!==i&&i.focus();},i.className="ab-in-app-message ab-start-hidden ab-html-message ab-modal-interactions",et.OS===OperatingSystems.ln){const n=document.createElement("div");return n.className="ab-ios-scroll-wrapper",n.appendChild(i),t.mn=n,n}return t.mn=i,i}
187
+
188
+ function logInAppMessageButtonClick(t,o){if(!e.rr())return !1;if(!(t instanceof InAppMessageButton))return r$1.D.error("button must be an InAppMessageButton object"),!1;if(!(o instanceof InAppMessage))return r$1.D.error(MUST_BE_IN_APP_MESSAGE_WARNING),!1;const s=pe$1.m().Qe(t,o);if(s.S)for(let r=0;r<s.ve.length;r++)TriggersProviderFactory.er().je(V.Ar,[o.triggerId,t.id],s.ve[r]);return s.S}
189
+
190
+ const me={Le:t=>{const o=t.querySelectorAll(".ab-close-button, .ab-message-text, .ab-message-button");for(let t=0;t<o.length;t++)o[t].tabIndex=0;if(o.length>0){const e=o[0],s=o[o.length-1];t.addEventListener("keydown",(o=>{var a=document.activeElement;o.keyCode===KeyCodes.oo&&(o.shiftKey||a!==s&&a!==t?!o.shiftKey||a!==e&&a!==t||(o.preventDefault(),s.focus()):(o.preventDefault(),e.focus()));}));}},Ie:(t,o)=>{o.setAttribute("role","dialog"),o.setAttribute("aria-modal",!0),o.setAttribute("aria-label","Modal Message"),t&&o.setAttribute("aria-labelledby",t);},Ce:(t,o,e,s)=>{if(t.buttons.length>0){const a=document.createElement("div");a.className="ab-message-buttons",e.appendChild(a);const l=e.getElementsByClassName("ab-message-text")[0];null!=l&&(l.className+=" ab-with-buttons");const n=a=>l=>(t.on(e,(()=>{logInAppMessageButtonClick(a,t),a.clickAction===InAppMessage.ClickAction.URI?_handleBrazeAction(a.uri,l,s||t.openTarget===InAppMessage.OpenTarget.BLANK):a.clickAction===InAppMessage.ClickAction.NEWS_FEED&&o();})),l.stopPropagation(),!1);for(let o=0;o<t.buttons.length;o++){const e=t.buttons[o],s=document.createElement("button");s.className="ab-message-button",s.setAttribute("type","button"),addPassiveEventListener(s,"touchstart",(function(){}));let l=e.text;""===e.text&&(l=" "),s.appendChild(document.createTextNode(l)),t.sn()||(s.style.backgroundColor=toRgba(e.backgroundColor),s.style.color=toRgba(e.textColor),s.style.borderColor=toRgba(e.borderColor)),s.onclick=n(e),a.appendChild(s);}}}};
191
+
192
+ function ce(e,o,s,t,a,n){if(e.he=document.activeElement,e instanceof HtmlMessage)return rt(e,o,s,t,a,n);const l=function(e,o,s,t,a){const n=document.createElement("div");n.className="ab-in-app-message ab-start-hidden ab-background",a&&(n.style.zIndex=a+1),e.we()&&(n.className+=" ab-modal-interactions",n.setAttribute("tabindex","-1")),e.sn()||(n.style.color=toRgba(e.textColor),n.style.backgroundColor=toRgba(e.backgroundColor),isTransparent(e.backgroundColor)&&(n.className+=" ab-no-shadow"));const c=()=>{-1!==n.className.indexOf("ab-start-hidden")&&(n.className=n.className.replace("ab-start-hidden",""),s(n));};e.imageStyle===InAppMessage.ImageStyle.GRAPHIC&&(n.className+=" graphic"),e.orientation===InAppMessage.Orientation.LANDSCAPE&&(n.className+=" landscape"),0===e.buttons.length&&(e.clickAction!==InAppMessage.ClickAction.NONE&&(n.className+=" ab-clickable"),n.onclick=s=>(e.on(n,(()=>{logInAppMessageClick(e),e.clickAction===InAppMessage.ClickAction.URI?_handleBrazeAction(e.uri,s,t||e.openTarget===InAppMessage.OpenTarget.BLANK):e.clickAction===InAppMessage.ClickAction.NEWS_FEED&&o();})),s.stopPropagation(),!1));const l=createCloseButton("Close Message",e.sn()?void 0:toRgba(e.closeButtonColor),(()=>{e.on(n);}));n.appendChild(l),a&&(l.style.zIndex=a+2);const d=document.createElement("div");d.className="ab-message-text";const u=(e.messageAlignment||e.ke).toLowerCase();d.className+=" "+u+"-aligned";let b=!1;const f=document.createElement("div");if(f.className="ab-image-area",e.imageUrl){if(e.cropType===InAppMessage.CropType.CENTER_CROP){const o=document.createElement("span");o.className="ab-center-cropped-img",o.style.backgroundImage="url("+e.imageUrl+")",o.setAttribute("role","img"),o.setAttribute("aria-label","Modal Image"),e.xe(o),f.appendChild(o);}else {const o=document.createElement("img");o.setAttribute("src",e.imageUrl),e.xe(o),b=!0,o.onload=c,setTimeout(c,1e3),f.appendChild(o);}n.appendChild(f),d.className+=" ab-with-image";}else if(e.icon){f.className+=" ab-icon-area";const o=document.createElement("span");o.className="ab-icon",e.sn()||(o.style.backgroundColor=toRgba(e.iconBackgroundColor),o.style.color=toRgba(e.iconColor));const s=document.createElement("i");s.className="fa",s.appendChild(document.createTextNode(e.icon)),s.setAttribute("aria-hidden",!0),o.appendChild(s),f.appendChild(o),n.appendChild(f),d.className+=" ab-with-icon";}if(addPassiveEventListener(d,"touchstart",(function(){})),e.header&&e.header.length>0){const o=document.createElement("h1");o.className="ab-message-header",e.ze=r$1.it.nt(),o.id=e.ze;const s=(e.headerAlignment||InAppMessage.TextAlignment.CENTER).toLowerCase();o.className+=" "+s+"-aligned",e.sn()||(o.style.color=toRgba(e.headerTextColor)),o.appendChild(document.createTextNode(e.header)),d.appendChild(o);}return d.appendChild(e.Me()),n.appendChild(d),b||c(),e.mn=n,n}(e,o,s,t,a);if(e instanceof FullScreenMessage||e instanceof ModalMessage){const s=e instanceof FullScreenMessage?"ab-fullscreen":"ab-modal";l.className+=` ${s} ab-centered`,me.Ce(e,o,l,t),me.Le(l),me.Ie(e.ze,l);}else if(e instanceof SlideUpMessage){l.className+=" ab-slideup";const o=l.getElementsByClassName("ab-close-button")[0];if(null!=o){const s=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.sn()?void 0:toRgba(e.closeButtonColor));s.setAttribute("class","ab-chevron"),o.appendChild(s);}let s,t;detectSwipe(l,DIRECTIONS.ot,(e=>{l.className+=" ab-swiped-left",o.onclick(e);})),detectSwipe(l,DIRECTIONS.et,(e=>{l.className+=" ab-swiped-right",o.onclick(e);})),e.slideFrom===InAppMessage.SlideFrom.TOP?(s=DIRECTIONS.Te,t=" ab-swiped-up"):(s=DIRECTIONS.$e,t=" ab-swiped-down"),detectSwipe(l,s,(e=>{l.className+=t,o.onclick(e);}));}return l}
193
+
194
+ function logInAppMessageImpression(o){if(!e.rr())return !1;if(!(o instanceof InAppMessage||o instanceof ControlMessage))return r$1.D.error(MUST_BE_IN_APP_MESSAGE_WARNING),!1;const s=o instanceof ControlMessage?r$1.A.ro:r$1.A.Je;return pe$1.m().G(o,s).S}
195
+
196
+ function showInAppMessage(t,s,o){if(!e.rr())return;if(setupInAppMessageUI(),null==t)return !1;if(t instanceof ControlMessage)return r$1.D.info("User received control for a multivariate test, logging to Braze servers."),logInAppMessageImpression(t),!0;if(!(t instanceof InAppMessage))return !1;const i=pe$1.m();t.Hi();const n=t instanceof HtmlMessage;if(n&&!t.trusted&&!e.tr())return r$1.D.error('HTML in-app messages are disabled. Use the "allowUserSuppliedJavascript" option for braze.initialize to enable these messages.'),i.qe(t.triggerId,InAppMessage.Oe.wi),!1;if(null==s&&(s=document.body),t.we()){if(s.querySelectorAll(".ab-modal-interactions").length>0)return r$1.D.info(`Cannot show in-app message ${t.message} because another message is being shown.`),i.qe(t.triggerId,InAppMessage.Oe.yi),!1}if(WindowUtils.so()){const e=WindowUtils.io();if(e===ORIENTATION.PORTRAIT&&t.orientation===InAppMessage.Orientation.LANDSCAPE||e===ORIENTATION.LANDSCAPE&&t.orientation===InAppMessage.Orientation.PORTRAIT){const s=e===ORIENTATION.PORTRAIT?"portrait":"landscape",o=t.orientation===InAppMessage.Orientation.PORTRAIT?"portrait":"landscape";return r$1.D.info(`Not showing ${o} in-app message ${t.message} because the screen is currently ${s}`),i.qe(t.triggerId,InAppMessage.Oe.xi),!1}}if(!e.tr()){let e=!1;if(t.buttons&&t.buttons.length>0){const s=t.buttons;for(let t=0;t<s.length;t++)if(s[t].clickAction===InAppMessage.ClickAction.URI){const o=s[t].uri;e=isURIJavascriptOrData(o);}}else t.clickAction===InAppMessage.ClickAction.URI&&(e=isURIJavascriptOrData(t.uri));if(e)return r$1.D.error('Javascript click actions are disabled. Use the "allowUserSuppliedJavascript" option for braze.initialize to enable these actions.'),i.qe(t.triggerId,InAppMessage.Oe.wi),!1}const a=document.createElement("div");if(a.className="ab-iam-root v3",a.className+=se(t),a.setAttribute("role","complementary"),t.an()&&(a.id=t.htmlId),e.nn(T.no)&&(a.style.zIndex=e.nn(T.no)+1),s.appendChild(a),t.sn()){const s=document.createElement("style");s.innerHTML=t.css,s.id=t.rn(),null!=e.nn(T.ao)&&s.setAttribute("nonce",e.nn(T.ao)),document.getElementsByTagName("head")[0].appendChild(s);}const l=t instanceof SlideUpMessage,m=ce(t,(()=>{Promise.resolve().then(function () { return showFeed$1; }).then((e=>e.showFeed()));}),(s=>{if(t.we()&&t.ll()){const o=document.createElement("div");if(o.className="ab-page-blocker",t.sn()||(o.style.backgroundColor=toRgba(t.frameColor)),e.nn(T.no)&&(o.style.zIndex=e.nn(T.no)),a.appendChild(o),!e.nn(T.Ui)){const e=(new Date).valueOf();o.onclick=o=>{(new Date).valueOf()-e>InAppMessage.Vi&&(t.on(s),o.stopPropagation());};}a.appendChild(s),s.focus(),t.Ri(a);}else if(l){const e=document.querySelectorAll(".ab-slideup");let o=null;for(let t=e.length-1;t>=0;t--)if(e[t]!==s){o=e[t];break}if(t.slideFrom===InAppMessage.SlideFrom.TOP){let e=0;null!=o&&(e=o.offsetTop+o.offsetHeight),s.style.top=Math.max(e,0)+"px";}else {let e=0;null!=o&&(e=(window.innerHeight||document.documentElement.clientHeight)-o.offsetTop),s.style.bottom=Math.max(e,0)+"px";}}else if(n&&!e.nn(T.Ui)){const e=t;s.contentWindow.addEventListener("keydown",(function(t){t.keyCode===KeyCodes.Ci&&e.closeMessage();}));}logInAppMessageImpression(t),t.dismissType===InAppMessage.DismissType.AUTO_DISMISS&&setTimeout((()=>{a.contains(s)&&t.on(s);}),t.duration),"function"==typeof o&&o();}),e.nn(T.lo),e.nn(T.no),e.nn(T.ao));return (n||l)&&(a.appendChild(m),t.Ri(a)),!0}
197
+
198
+ function subscribeToInAppMessage(n){if(e.rr())return "function"!=typeof n?null:pe$1.m().Ee((function(r){return n(r[0]),r.slice(1)}))}
199
+
200
+ function automaticallyShowInAppMessages(){if(!e.rr())return;setupInAppMessageUI();const s=pe$1.m();if(null==s.Fe()){const r=subscribeToInAppMessage((s=>showInAppMessage(s)));s.Ne(r);}return s.Fe()}
201
+
202
+ class ft{constructor(t,s,l,n,i){this.triggerId=t,this.fi=s,this.pi=l,this.di=n,this.vi=i;}static fromJson(t,s,l,n,i){return null==t||null==t.trigger_id?null:new ft(t.trigger_id,s,l,n,i)}}
203
+
204
+ class ir extends y{constructor(t,i,s,e,r){super(),this.Oh=t,this.yt=i,this.h=s,this.si=e,this.Uh=r,this.Kh=[],this.Qh=[],this.Vh=null,this.Xh={},this.Yh={},this.Zh(),this.tg();}ig(){this.Vh=this.h.I(STORAGE_KEYS.q.Ya)||this.Vh,this.Xh=this.h.I(STORAGE_KEYS.q.Da)||this.Xh,this.Yh=this.h.I(STORAGE_KEYS.q.Ka)||this.Yh;for(let t=0;t<this.sg.length;t++){const i=this.sg[t];null!=this.Yh[i.id]&&i.Bh(this.Yh[i.id]);}}Zh(){this.eg=this.h.I(STORAGE_KEYS.q.Ia)||0;const t=this.h.I(STORAGE_KEYS.q.ba)||[],i=[];for(let s=0;s<t.length;s++)i.push(ut.yn(t[s]));this.sg=i,this.ig();}tg(){const t=this,i=function(i,s,e,r,h){return function(){t.hg(i,s,e,r,h);}},s={};for(let t=0;t<this.sg.length;t++)s[this.sg[t].id]=this.sg[t];let e=!1;for(let t=0;t<this.sg.length;t++){const r=this.sg[t];if(null!=this.Xh[r.id]){const t=this.Xh[r.id],h=[];for(let e=0;e<t.length;e++){const o=t[e],n=r.Jh(o.di);if(n>0){let t,e;h.push(o),null!=o.og&&(t=o.og),null!=o.ng&&ue.Ma(o.ng)&&(e=ue.yn(o.ng));const l=[];if(isArray(o.lg))for(let t=0;t<o.lg.length;t++){const i=s[o.lg[t]];null!=i&&l.push(i);}this.Qh.push(setTimeout(i(r,o.di,t,e,l),n));}}this.Xh[r.id].length>h.length&&(this.Xh[r.id]=h,e=!0,0===this.Xh[r.id].length&&delete this.Xh[r.id]);}}e&&this.h.B(STORAGE_KEYS.q.Da,this.Xh);}ag(){const t=[];for(let i=0;i<this.sg.length;i++)t.push(this.sg[i].ss());this.eg=(new Date).valueOf(),this.h.B(STORAGE_KEYS.q.ba,t),this.h.B(STORAGE_KEYS.q.Ia,this.eg);}gg(){(this.h.I(STORAGE_KEYS.q.Ia)||0)>this.eg?this.Zh():this.ig();}Rs(t){let i=!1;if(null!=t&&t.triggers){this.ig();const s={},e={};this.sg=[];for(let r=0;r<t.triggers.length;r++){const h=ut.fromJson(t.triggers[r]);null!=this.Yh[h.id]&&(h.Bh(this.Yh[h.id]),s[h.id]=this.Yh[h.id]),null!=this.Xh[h.id]&&(e[h.id]=this.Xh[h.id]);for(let t=0;t<h.Th.length;t++)if(h.Th[t].qa(V.ks,null)){i=!0;break}null!=h&&this.sg.push(h);}isEqual(this.Yh,s)||(this.Yh=s,this.h.B(STORAGE_KEYS.q.Ka,this.Yh)),isEqual(this.Xh,e)||(this.Xh=e,this.h.B(STORAGE_KEYS.q.Da,this.Xh)),this.ag(),i&&(r$1.D.info("Trigger with test condition found, firing test."),this.je(V.ks)),this.je(V.OPEN);const h=this.Kh;this.Kh=[];for(let t=0;t<h.length;t++)this.je.apply(this,h[t]);}}async hg(t,i,s,e,h){const o=e=>{this.ig();const h=(new Date).valueOf();if(!t.Lh(i))return !1===navigator.onLine&&t.type===ut.gi.mi&&e.imageUrl?(r$1.D.info(`Not showing ${t.type} trigger action ${t.id} due to offline state.`),void this.Uh.qe(t.id,InAppMessage.Oe.Ki)):void(t.Mh(h)&&this.fg(t,h,s)?(this.yt.St([e]),this.cg(t,h)):r$1.D.info(`Not displaying trigger ${t.id} because display time fell outside of the acceptable time window.`));t.type===ut.gi.Rh?this.Uh.qe(t.id,InAppMessage.Oe.ui):this.Uh.qe(t.id,InAppMessage.Oe.Yi);},n=()=>{this.ig();const o=h.pop();if(null!=o)if(this.ug(o,i,s,e,h),o.Lh(i)){let t=`Server aborted in-app message display, but the timeout on fallback trigger ${o.id} has already elapsed.`;h.length>0&&(t+=" Continuing to fall back."),r$1.D.info(t),this.Uh.qe(o.id,InAppMessage.Oe.Yi),n();}else {r$1.D.info(`Server aborted in-app message display. Falling back to lower priority ${o.type} trigger action ${t.id}.`);const n=1e3*o.Ph-((new Date).valueOf()-i);n>0?this.Qh.push(setTimeout((()=>{this.hg(o,i,s,e,h);}),n)):this.hg(o,i,s,e,h);}};switch(t.type){case ut.gi.mi:const h=newInAppMessageFromJson(t.data);if(null==h){r$1.D.error(`Could not parse trigger data for trigger ${t.id}, ignoring.`),this.Uh.qe(t.id,InAppMessage.Oe.ci);break}let l=this.Uh.Ve(h);if(l){r$1.D.error(l),n();break}o(h);break;case ut.gi.Rh:const a=ft.fromJson(t.data,o,n,i,t.vi);if(null==a){r$1.D.error(`Could not parse trigger data for trigger ${t.id}, ignoring.`),this.Uh.qe(t.id,InAppMessage.Oe.ci);break}this.Uh.Ze(a,s,e);break;default:r$1.D.error(`Trigger ${t.id} was of unexpected type ${t.type}, ignoring.`),this.Uh.qe(t.id,InAppMessage.Oe.ci);}}je(t,i,s){if(!validateValueIsFromEnum(V,t,"Cannot fire trigger action.","TriggerEvents"))return;if(this.si.bl())return r$1.D.info("Trigger sync is currently in progress, awaiting sync completion before firing trigger event."),void this.Kh.push(arguments);this.gg();const e=(new Date).valueOf(),h=e-this.Vh;let o=!0,n=!0;const l=[];for(let s=0;s<this.sg.length;s++){const r=this.sg[s],h=e+1e3*r.Ph;if(r.Mh(h)&&(null==r.startTime||r.startTime<=e)&&(null==r.endTime||r.endTime>=e)){let s=!1;for(let e=0;e<r.Th.length;e++)if(r.Th[e].qa(t,i)){s=!0;break}s&&(o=!1,this.fg(r,h,t)&&(n=!1,l.push(r)));}}if(o)return void r$1.D.info(`Trigger event ${t} did not match any trigger conditions.`);if(n)return void r$1.D.info(`Ignoring ${t} trigger event because a trigger was displayed ${h/1e3}s ago.`);l.sort(((t,i)=>t.priority-i.priority));const a=l.pop();null!=a&&(r$1.D.info(`Firing ${a.type} trigger action ${a.id} from trigger event ${t}.`),this.ug(a,e,t,s,l),0===a.Ph?this.hg(a,e,t,s,l):this.Qh.push(setTimeout((()=>{this.hg(a,e,t,s,l);}),1e3*a.Ph)));}changeUser(t){if(this.sg=[],this.h.Xs(STORAGE_KEYS.q.ba),!t){this.Kh=[],this.Vh=null,this.Yh={},this.Xh={};for(let t=0;t<this.Qh.length;t++)clearTimeout(this.Qh[t]);this.Qh=[],this.h.Xs(STORAGE_KEYS.q.Ya),this.h.Xs(STORAGE_KEYS.q.Ka),this.h.Xs(STORAGE_KEYS.q.Da);}}clearData(){this.sg=[],this.Vh=null,this.Yh={},this.Xh={};for(let t=0;t<this.Qh.length;t++)clearTimeout(this.Qh[t]);this.Qh=[];}fg(t,i,s){if(null==this.Vh)return !0;if(s===V.ks)return r$1.D.info("Ignoring minimum interval between trigger because it is a test type."),!0;let e=t.Ih;return null==e&&(e=this.Oh),i-this.Vh>=1e3*e}ug(t,i,s,e,r){this.ig(),this.Xh[t.id]=this.Xh[t.id]||[];const h={};let n;h.di=i,h.og=s,null!=e&&(n=e.ss()),h.ng=n;const l=[];for(let t=0;t<r.length;t++)l.push(r[t].id);h.lg=l,this.Xh[t.id].push(h),this.h.B(STORAGE_KEYS.q.Da,this.Xh);}cg(t,i){this.ig(),t.Bh(i),this.Vh=i,this.h.B(STORAGE_KEYS.q.Ya,i),this.Yh[t.id]=i,this.h.B(STORAGE_KEYS.q.Ka,this.Yh);}}
205
+
206
+ const TriggersProviderFactory={t:!1,provider:null,er:()=>(TriggersProviderFactory.init(),TriggersProviderFactory.provider),rg:()=>{if(!TriggersProviderFactory.provider){const r=e.nn(T.ho);TriggersProviderFactory.provider=new ir(null!=r?r:30,pe$1.m().Be(),e.l(),e.mr(),pe$1.m()),e.ar(TriggersProviderFactory.provider);}},init:()=>{TriggersProviderFactory.t||(TriggersProviderFactory.rg(),e.u(TriggersProviderFactory),TriggersProviderFactory.t=!0);},destroy:()=>{TriggersProviderFactory.provider=null,TriggersProviderFactory.t=!1;}};
207
+
208
+ class ei{constructor(t,i,l,s,u){this.endpoint=t||null,this.wn=i||null,this.publicKey=l||null,this.tl=s||null,this.oh=u||null;}ss(){return {e:this.endpoint,c:this.wn,p:this.publicKey,u:this.tl,v:this.oh}}static yn(t){return new ei(t.e,rehydrateDateAfterJsonization(t.c),t.p,t.u,t.v)}}
209
+
210
+ class bt{constructor(t,s){this.gt=t,this.h=s;}getUserId(){const t=this.h.tu(STORAGE_KEYS.iu.su);if(null==t)return null;let s=t.eu,i=getByteLength(s);if(i>User.ee){for(;i>User.ee;)s=s.slice(0,s.length-1),i=getByteLength(s);t.eu=s,this.h.ru(STORAGE_KEYS.iu.su,t);}return s}uu(t){const s=null==this.getUserId();this.h.ru(STORAGE_KEYS.iu.su,new _t(t)),s&&this.h.ou(t);}setCustomUserAttribute(t,s){if(this.gt.hu(t))return r$1.D.info('Custom Attribute "'+t+'" is blocklisted, ignoring.'),!1;const i={};return i[t]=s,this.nu(User.lu,i,!0)}nu(t,s,i,e){const u=this.h.mu(this.getUserId(),t,s);return !e&&u&&r$1.D.info(`Logged${i?" custom":""} attribute ${t} with value ${s}`),u}Gr(t,s,i,e,u){this.nu("push_token",t,!1,!0),this.nu("custom_push_public_key",i,!1,!0),this.nu("custom_push_user_auth",e,!1,!0),this.nu("custom_push_vapid_public_key",u,!1,!0);const h=r$1.xt.Ft,n=new r$1.qt(h,r$1.D),l=new ei(t,s,i,e,u);this.h.B(STORAGE_KEYS.q.gn,l.ss()),n.setItem(h.$t.pu,h.se,!0);}Jr(t){if(this.nu("push_token",null,!1,!0),this.nu("custom_push_public_key",null,!1,!0),this.nu("custom_push_user_auth",null,!1,!0),this.nu("custom_push_vapid_public_key",null,!1,!0),t){const t=r$1.xt.Ft,s=new r$1.qt(t,r$1.D);this.h.B(STORAGE_KEYS.q.gn,!1),s.setItem(t.$t.pu,t.se,!1);}}}
211
+
212
+ const T={Rn:"allowCrawlerActivity",Wn:"baseUrl",Vn:"noCookies",Yn:"devicePropertyAllowlist",ta:"disablePushTokenMaintenance",Xn:"enableLogging",Zn:"enableSdkAuthentication",ia:"manageServiceWorkerExternally",ho:"minimumIntervalBetweenTriggerActionsInSeconds",po:"sessionTimeoutInSeconds",Eo:"appVersion",na:"serviceWorkerLocation",ra:"safariWebsitePushId",jn:"localization",ao:"contentSecurityNonce",_o:"enableHtmlInAppMessages",Io:"allowUserSuppliedJavascript",no:"inAppMessageZIndex",lo:"openInAppMessagesInNewTab",tn:"openCardsInNewTab",en:"openNewsFeedCardsInNewTab",Ui:"requireExplicitInAppMessageDismissal",Ao:"doNotLoadFontAwesome",So:"sdkFlavor"};class Rt{constructor(){this.No=!1,this.wo=!1,this.To=new u,this.Oo=new u,this.vo={},this.Co=[],this.Lo=[],this.De=[],this.Po="4.2.1";}Ro(t){this.To.ut(t);}Bi(t){this.Oo.ut(t);}initialize(t,i){if(this.Mo())return r$1.D.info("Braze has already been initialized with an API key."),!0;this.vo=i||{};let s=this.nn(T.Xn);const e=parseQueryStringKeyValues(WindowUtils.hn());if(e&&"true"===e.brazeLogging&&(s=!0),r$1.D.init(s),r$1.D.info(`Initialization Options: ${JSON.stringify(this.vo,null,2)}`),null==t||""===t||"string"!=typeof t)return r$1.D.error("Braze requires a valid API key to be initialized."),!1;this.Ji=t;let n=this.nn(T.Wn);if(null==n||""===n||"string"!=typeof n)return r$1.D.error("Braze requires a valid baseUrl to be initialized."),!1;if(n=n.replace(/(\.[a-z]+)[^\.]*$/i,"$1/api/v3"),0!==n.indexOf("http")&&(n="https://"+n),this.yo=n,et.Do&&!this.nn(T.Rn))return r$1.D.info("Ignoring activity from crawler bot "+navigator.userAgent),this.wo=!0,!1;const a=this.nn(Rt.Vn)||!1;if(this.h=Pt.jo(t,a),new G.ne(null,!0).lr(STORAGE_KEYS.ae))return r$1.D.info("Ignoring all activity due to previous opt out"),this.wo=!0,!1;for(const t of keys(this.vo))-1===values(r$1.zo).indexOf(t)&&r$1.D.warn(`Ignoring unknown initialization option '${t}'.`);const h=["mparticle","wordpress","tealium"];if(null!=this.nn(T.So)){const t=this.nn(T.So);-1!==h.indexOf(t)?this.Uo=t:r$1.D.error("Invalid sdk flavor passed: "+t);}let l=this.nn(r$1.zo.Yn);if(null!=l)if(isArray(l)){const t=[];for(let i=0;i<l.length;i++)validateValueIsFromEnum(DeviceProperties,l[i],"devicePropertyAllowlist contained an invalid value.","DeviceProperties")&&t.push(l[i]);l=t;}else r$1.D.error("devicePropertyAllowlist must be an array. Defaulting to all properties."),l=null;this.Qi=new It(this.h,l),this.gt=new Ct(this.h),this.v=new bt(this.gt,this.h),this.j=new Lt(this.h,this.v,this.gt,this.nn(T.po));const c=new u;return this.Bo=new St(this.h,this.nn(T.Zn),c),this.jt(c),this.vt=new wt(this.Qi,this.h,this.Bo,this.v,this.j,this.gt,this.Ji,this.yo,this.Po,this.Uo,this.nn(T.Eo)),this.si=new Ot(this.Ji,this.yo,this.j,this.Qi,this.v,this.gt,this.h,(t=>{if(this.Mo())for(const i of this.re())i.Rs(t);}),this.Bo,this.vt),this.si.initialize(),r$1.D.info(`Initialized for the Braze backend at "${this.nn(T.Wn)}" with API key "${this.Ji}".`),null!=this.nn(T._o)&&logDeprecationWarning("enableHtmlInAppMessages","initialization option","allowUserSuppliedJavascript"),TriggersProviderFactory.init(),this.To.St(this.vo),this.No=!0,!0}destroy(t){if(r$1.D.destroy(),this.Mo()){this.Oo.St(),this.Oo.removeAllSubscriptions();for(const t of this.Co)t.destroy();this.Co=[];for(const t of this.Lo)t.clearData(!1);this.Lo=[],this.removeAllSubscriptions(),this.De=[],this.si.destroy(),this.si=null,this.Bo=null,this.Qi=null,this.vt=null,this.gt=null,this.j=null,this.v=null,this.vo={},this.Uo=void 0,this.No=!1,this.wo=!1,t&&(this.h=null);}}rr(){if(this.Wo())return !1;if(!this.Mo())throw new Error("Braze must be initialized before calling methods.");return !0}ea(){return this.Ji}ii(){return this.Bo}Ks(){return this.yo}ce(){return this.Qi}nr(){return this.vt}nn(t){return this.vo[t]}re(){return this.Lo}mr(){return this.si}ir(){return this.gt}g(){return this.j}l(){return this.h}gr(){if(this.v&&this.si)return new User(this.v,this.si)}p(){return this.v}tr(){return !0===this.nn(T.Io)||!0===this.nn(T._o)}u(t){let i=!1;for(const s of this.Co)s===t&&(i=!0);i||this.Co.push(t);}ar(t){let i=!1;for(const s of this.Lo)s.constructor===t.constructor&&(i=!0);t instanceof y&&!i&&this.Lo.push(t);}jt(t){t instanceof u&&this.De.push(t);}removeAllSubscriptions(){if(this.rr())for(const t of this.De)t.removeAllSubscriptions();}removeSubscription(t){if(this.rr())for(const i of this.De)i.removeSubscription(t);}le(t){this.wo=t;}Mo(){return this.No}Wo(){return this.wo}Ds(){return this.Po}}const e=new Rt;
213
+
214
+ const s={G:(o,n,s)=>{const a=new t,i=e.g();if(!i)return r$1.D.info(`Not logging event with type "${o}" because the current session ID could not be found.`),a;const m=i.mo();return a.ve.push(new ue(s||e.p().getUserId(),o,(new Date).valueOf(),m,n)),a.S=e.l().bo(a.ve),a}};var s$1 = s;
215
+
216
+ class a{constructor(s,t,r){this.h=s,this.j=t,this.v=r;}C(n,i){const e=new t;if(n.k(),null==n.url||""===n.url)return r$1.D.info(`Card ${n.id} has no url. Not logging click to Braze servers.`),e;if(i){const s=this.h.I(STORAGE_KEYS.q.$)||{};s[n.id]=!0,this.h.B(STORAGE_KEYS.q.$,s);}const l=this.N([n]);if(null==l)return e;const u=i?r$1.A._:r$1.A.F;return s$1.G(u,l)}H(n){const i=new t;if(!n.J())return r$1.D.info(`Card ${n.id} refused this dismissal. Ignoring analytics event.`),i;const e=this.h.I(STORAGE_KEYS.q.K)||{};e[n.id]=!0,this.h.B(STORAGE_KEYS.q.K,e);const l=this.N([n]);return null==l?i:s$1.G(r$1.A.L,l)}M(n,i){const e=new t(!0),l=[],u=[];let a;a=i?this.h.I(STORAGE_KEYS.q.O)||{}:this.h.I(STORAGE_KEYS.q.P)||{};for(const s of n)s.R(),s instanceof ControlCard?u.push(s):l.push(s),a[s.id]=!0;const c=this.N(l),h=this.N(u);if(null==c&&null==h)return e.S=!1,e;if(i?this.h.B(STORAGE_KEYS.q.O,a):this.h.B(STORAGE_KEYS.q.P,a),null!=c){const t=i?r$1.A.T:r$1.A.U,n=s$1.G(t,c);e.V(n);}if(null!=h&&i){const t=s$1.G(r$1.A.W,h);e.V(t);}return e}N(s){let t=null;for(let r=0;r<s.length;r++)null!=s[r].id&&""!==s[r].id&&(t=t||{},t.ids=t.ids||[],t.ids.push(s[r].id));return t}}
217
+
218
+ const n={t:!1,i:null,m:()=>(n.o(),n.i||(n.i=new a(e.l(),e.g(),e.p())),n.i),o:()=>{n.t||(e.u(n),n.t=!0);},destroy:()=>{n.i=null,n.t=!1;}};var n$1 = n;
219
+
220
+ function logCardClick(o,a){return !!e.rr()&&(o instanceof Card?n$1.m().C(o,a).S:(r$1.D.error("card "+MUST_BE_CARD_WARNING_SUFFIX),!1))}
221
+
222
+ function logCardDismissal(o){return !!e.rr()&&(o instanceof Card?n$1.m().H(o).S:(r$1.D.error("card "+MUST_BE_CARD_WARNING_SUFFIX),!1))}
223
+
224
+ function logCardImpressions(o,s){if(!e.rr())return !1;if(!isArray(o))return r$1.D.error("cards must be an array"),!1;for(const s of o)if(!(s instanceof Card))return r$1.D.error(`Each card in cards ${MUST_BE_CARD_WARNING_SUFFIX}`),!1;return n$1.m().M(o,s).S}
225
+
226
+ function logContentCardImpressions(o){return logCardImpressions(o,!0)}
227
+
228
+ class x{constructor(e,r){this.cards=e,this.lastUpdated=r;}getUnreadCardCount(){let e=0;for(const r of this.cards)r.viewed||r instanceof ControlCard||e++;return e}dr(){throw new Error("Must be implemented in a subclass")}logCardImpressions(){throw new Error("Must be implemented in subclass")}logCardClick(){throw new Error("Must be implemented in subclass")}sr(){throw new Error("Must be implemented in subclass")}}x.ur=6e4,x.Mi=500,x.uo=1e4;
229
+
230
+ function newCard(e,n,t,o,i,l,u,d,a,s,w,f,m,C,p,c,x,F){let b;if(n===Card.es.dt||n===Card.es.Rt)b=new ClassicCard(e,t,o,i,l,u,d,a,s,w,f,m,C,p,c,x);else if(n===Card.es.st)b=new CaptionedImage(e,t,o,i,l,u,d,a,s,w,f,m,C,p,c,x);else if(n===Card.es.rs)b=new Banner(e,t,i,u,d,a,s,w,f,m,C,p,c,x);else {if(n!==Card.es._t)return r$1.D.error("Ignoring card with unknown type "+n),null;b=new ControlCard(e,t,d,s,C,p);}return F&&(b.test=F),b}function newCardFromContentCardsJson(e){if(e[Card.At.Dt])return null;const n=e[Card.At.ns],r=e[Card.At.ts],t=e[Card.At.ls],o=e[Card.At.ht],i=e[Card.At.os],l=e[Card.At.rt],u=dateFromUnixTimestamp(e[Card.At.us]),d=u;let a;a=e[Card.At.ps]===Card.Ct?null:dateFromUnixTimestamp(e[Card.At.ps]);return newCard(n,r,t,o,i,l,d,u,null,a,e[Card.At.URL],e[Card.At.bs],e[Card.At.fs],e[Card.At.xs],e[Card.At.js],e[Card.At.zs],e[Card.At.gs],e[Card.At.ks]||!1)}function newCardFromFeedJson(e){return newCard(e.id,e.type,e.viewed,e.title,e.image,e.description,dateFromUnixTimestamp(e.created),dateFromUnixTimestamp(e.updated),e.categories,dateFromUnixTimestamp(e.expires_at),e.url,e.domain,e.aspect_ratio,e.extras,!1,!1)}function newCardFromSerializedValue(e){return newCard(e[Card.hs.ns],e[Card.hs.ts],e[Card.hs.ls],e[Card.hs.ht],e[Card.hs.os],e[Card.hs.rt],rehydrateDateAfterJsonization(e[Card.hs.cs]),rehydrateDateAfterJsonization(e[Card.hs.us]),e[Card.hs.ds],rehydrateDateAfterJsonization(e[Card.hs.ps]),e[Card.hs.URL],e[Card.hs.bs],e[Card.hs.fs],e[Card.hs.xs],e[Card.hs.js],e[Card.hs.zs],e[Card.hs.gs],e[Card.hs.ks]||!1)||void 0}
231
+
232
+ class v extends y{constructor(t,s,i,h,n){super(),this.v=t,this.h=s,this.gt=i,this.wt=h,this.vt=n,this.yt=new u,e.jt(this.yt),this.Ut=0,this.kt=0,this.zt();const o=r$1.xt.Ft;new r$1.qt(o,r$1.D).Jt(o.$t.Mt,(t=>{this.Bt(t);})),this.Gt=null;}Ht(){return this.Kt}Qt(t){this.Kt=t;}Vt(){return this.Wt}Xt(t){this.Wt=t;}zt(){const t=this.h.I(STORAGE_KEYS.q.Yt)||[],s=[];for(let i=0;i<t.length;i++){const e=newCardFromSerializedValue(t[i]);null!=e&&s.push(e);}this.Zt=this.Cs(this.ws(s,!1)),this.Ut=this.h.I(STORAGE_KEYS.q.vs)||this.Ut,this.kt=this.h.I(STORAGE_KEYS.q.ys)||this.kt;}Ns(t,s,i,e){let h;if(s){h=[];for(const t of this.Zt)t.test&&h.push(t);}else h=this.Zt.slice();for(let i=0;i<t.length;i++){const e=t[i];let r=null;for(let t=0;t<this.Zt.length;t++)if(e.id===this.Zt[t].id){r=this.Zt[t];break}if(s){const t=newCardFromContentCardsJson(e);null!=r&&r.viewed&&(t.viewed=!0),null!=t&&h.push(t);}else if(null==r){const t=newCardFromContentCardsJson(e);null!=t&&h.push(t);}else {if(!r.ct(e))for(let t=0;t<h.length;t++)if(e.id===h[t].id){h.splice(t,1);break}}}this.Zt=this.Cs(this.ws(h,s)),this.Ss(),this.Ut=i||0,this.h.B(STORAGE_KEYS.q.vs,this.Ut),this.kt=e||0,this.h.B(STORAGE_KEYS.q.ys,this.kt);}Rs(t){if(this.Ts()&&null!=t&&t.cards){this.h.B(STORAGE_KEYS.q._s,e.Ds());const s=t.full_sync;s||this.zt(),this.Ns(t.cards,s,t.last_full_sync_at,t.last_card_updated_at),this.yt.St(this.Us(!0));}}Fs(t){this.h.B(STORAGE_KEYS.q.As,t);}Ls(t,i,e){const h=()=>{this.Is(i,e,!0);},n=readResponseHeaders(t);let a,l;if(this.Js(),!n["retry-after"])return void this.Fs(0);if(a=n["retry-after"],isNaN(a)&&!isNaN(Date.parse(a)))l=Date.parse(a)-(new Date).getTime(),l<0&&h();else {if(isNaN(parseFloat(a))){const t="Received unexpected value for retry-after header in /sync response";return s$1.G(r$1.A.qs,{e:t+": "+a}),void this.Fs(0)}l=1e3*a;}this.Gt=setTimeout((()=>{h();}),l);let c=this.h.I(STORAGE_KEYS.q.As);c&&!isNaN(parseInt(c))||(c=0),this.Fs(parseInt(c)+1);}Bt(t){if(!this.Ts())return;this.zt();const s=this.Zt.slice(),i=this.v.getUserId();for(let e=0;e<t.length;e++)if(i===t[e].userId||null==i&&null==t[e].userId){const i=t[e].card;let h=null;for(let t=0;t<this.Zt.length;t++)if(i.id===this.Zt[t].id){h=this.Zt[t];break}if(null==h){const t=newCardFromContentCardsJson(i);null!=t&&s.push(t);}else {if(!h.ct(i))for(let t=0;t<s.length;t++)if(i.id===s[t].id){s.splice(t,1);break}}}this.Zt=this.Cs(this.ws(s,!1)),this.Ss(),this.yt.St(this.Us(!0));}ws(t,s){const i=this.h.I(STORAGE_KEYS.q.$)||{},e=this.h.I(STORAGE_KEYS.q.O)||{},h=this.h.I(STORAGE_KEYS.q.K)||{},r={},n={},a={};for(let s=0;s<t.length;s++)i[t[s].id]&&(t[s].clicked=!0,r[t[s].id]=!0),e[t[s].id]&&(t[s].viewed=!0,n[t[s].id]=!0),h[t[s].id]&&(t[s].dismissed=!0,a[t[s].id]=!0);return s&&(this.h.B(STORAGE_KEYS.q.$,r),this.h.B(STORAGE_KEYS.q.O,n),this.h.B(STORAGE_KEYS.q.K,a)),t}Cs(t){const s=[],i=new Date,e=this.h.I(STORAGE_KEYS.q.K)||{};let h=!1;for(let n=0;n<t.length;n++){const o=t[n].url;!this.wt&&o&&isURIJavascriptOrData(o)?r$1.D.error(`Card with url ${o} will not be displayed because Javascript URLs are disabled. Use the "allowUserSuppliedJavascript" option for braze.initialize to enable this card.`):(null==t[n].expiresAt||t[n].expiresAt>=i)&&!t[n].dismissed?s.push(t[n]):(e[t[n].id]=!0,h=!0);}return h&&this.h.B(STORAGE_KEYS.q.K,e),s}Ss(){const t=[];for(let s=0;s<this.Zt.length;s++)t.push(this.Zt[s].ss());this.h.B(STORAGE_KEYS.q.Yt,t);}Js(){this.Gt&&(clearTimeout(this.Gt),this.Gt=null);}Is(t,s,i){if(i||(this.Js(),this.Fs(0)),!this.Ts())return void(this.Es||(this.Es=this.gt.Ms((()=>{this.Is(t,s);}))));const h=this.vt.Ps({},!0);this.h.I(STORAGE_KEYS.q._s)!==e.Ds()&&this.$s(),h.last_full_sync_at=this.Ut,h.last_card_updated_at=this.kt;const r=this.vt.Bs(h,!0,i);this.vt.Gs(h,(()=>{b.Hs({url:this.vt.Ks()+"/content_cards/sync",data:h,headers:r,S:(i,e)=>{this.vt.Os(h,i,r)?(this.vt.Qs(),this.Ls(e,t,s),this.Rs(i),"function"==typeof t&&t()):"function"==typeof s&&s();},error:t=>{this.vt.Vs(t,"retrieving content cards"),"function"==typeof s&&s();}});}));}Us(t){t||this.zt();const s=this.Cs(this.Zt);s.sort(((t,s)=>t.pinned&&!s.pinned?-1:s.pinned&&!t.pinned?1:t.updated>s.updated?-1:s.updated>t.updated?1:0));let i=Math.max(this.kt||0,this.Ut||0);return 0===i&&(i=void 0),this.h.I(STORAGE_KEYS.q.ys)===this.kt&&void 0===i&&(i=this.kt),new ContentCards(s,dateFromUnixTimestamp(i))}Ws(t){return this.yt.ut(t)}$s(){this.Ut=0,this.kt=0,this.h.Xs(STORAGE_KEYS.q.vs),this.h.Xs(STORAGE_KEYS.q.ys);}changeUser(t){t||(this.Zt=[],this.yt.St(new ContentCards(this.Zt.slice(),null)),this.h.Xs(STORAGE_KEYS.q.Yt),this.h.Xs(STORAGE_KEYS.q.$),this.h.Xs(STORAGE_KEYS.q.O),this.h.Xs(STORAGE_KEYS.q.K)),this.$s();}clearData(t){this.Ut=0,this.kt=0,this.Zt=[],this.yt.St(new ContentCards(this.Zt.slice(),null)),t&&(this.h.Xs(STORAGE_KEYS.q.Yt),this.h.Xs(STORAGE_KEYS.q.$),this.h.Xs(STORAGE_KEYS.q.O),this.h.Xs(STORAGE_KEYS.q.K),this.h.Xs(STORAGE_KEYS.q.vs),this.h.Xs(STORAGE_KEYS.q.ys));}Ts(){return !!this.gt.Ys()||(0!==this.gt.Zs()&&this.ti(),!1)}ti(){this.yt.St(new ContentCards([],(new Date).valueOf())),this.h.Xs(STORAGE_KEYS.q.Yt);}}
233
+
234
+ const g={t:!1,provider:null,er:()=>(g.o(),g.provider||(g.provider=new v(e.p(),e.l(),e.ir(),e.tr(),e.nr()),e.ar(g.provider)),g.provider),o:()=>{g.t||(e.u(g),g.t=!0);},destroy:()=>{g.provider=null,g.t=!1;}};var g$1 = g;
235
+
236
+ function requestContentCardsRefresh(r,t){if(e.rr())return g$1.er().Is(r,t)}
237
+
238
+ class ContentCards extends x{constructor(r,e){super(r,e);}getUnviewedCardCount(){return super.getUnreadCardCount()}logCardImpressions(r){logCardImpressions(r,!0);}logCardClick(r){logCardClick(r,!0);}sr(){requestContentCardsRefresh();}dr(){return !0}}ContentCards.ur=6e4;
239
+
240
+ function getCachedContentCards(){if(e.rr())return g$1.er().Us(!1)}
241
+
242
+ function topHadImpression(t){return null!=t&&!!t.getAttribute("data-ab-had-top-impression")}function impressOnTop(t){null!=t&&t.setAttribute("data-ab-had-top-impression",!0);}function bottomHadImpression(t){return null!=t&&!!t.getAttribute("data-ab-had-bottom-impression")}function impressOnBottom(t){null!=t&&t.setAttribute("data-ab-had-bottom-impression",!0);}function markCardAsRead(t){if(null!=t){const o=t.querySelectorAll(".ab-unread-indicator")[0];null!=o&&(o.className+=" read");}}function getCardId(t){return t.getAttribute("data-ab-card-id")}function _setImageAltText(t,o){let a="";t.title||t.description||(a="Feed Image"),o.setAttribute("alt",a);}function setCardHeight(t,o){const a=o.querySelectorAll(".ab-image-area");let e,n=0;a.length>0&&(n=a[0].offsetWidth);for(const o of t)if(e=o.X,e&&o.imageUrl&&!isNaN(o.aspectRatio)){const t=n/o.aspectRatio;t&&(e.style.height=`${t}px`);}}function cardToHtml(t,logCardClick,o){const a=document.createElement("div");a.className="ab-card ab-effect-card "+t.Y,a.setAttribute("data-ab-card-id",t.id),a.setAttribute("role","article"),a.setAttribute("tabindex","0");const e=t.url&&""!==t.url,n=n=>(markCardAsRead(a),e&&(logCardClick(t),_handleBrazeAction(t.url,n,o)),!1);if(t.pinned){const t=document.createElement("div");t.className="ab-pinned-indicator";const o=document.createElement("i");o.className="fa fa-star",t.appendChild(o),a.appendChild(t);}if(t.imageUrl&&""!==t.imageUrl){const o=document.createElement("div");o.className="ab-image-area";const i=document.createElement("img");if(i.setAttribute("src",t.imageUrl),i.onload=()=>{a.style.height="auto";},_setImageAltText(t,i),o.appendChild(i),a.className+=" with-image",e&&!t.Z){const e=document.createElement("a");e.setAttribute("href",t.url),e.onclick=n,e.appendChild(o),a.appendChild(e);}else a.appendChild(o);}const s=document.createElement("div");if(s.className="ab-card-body",t.dismissible){t.tt=()=>logCardDismissal(t);const o=createCloseButton("Dismiss Card",void 0,t.dismissCard.bind(t));a.appendChild(o),detectSwipe(s,DIRECTIONS.ot,(t=>{a.className+=" ab-swiped-left",o.onclick(t);})),detectSwipe(s,DIRECTIONS.et,(t=>{a.className+=" ab-swiped-right",o.onclick(t);}));}const u=t.title&&""!==t.title;if(u){const o=document.createElement("h1");if(o.className="ab-title",o.id=r$1.it.nt(),a.setAttribute("aria-labelledby",o.id),e){const a=document.createElement("a");a.setAttribute("href",t.url),a.onclick=n,a.appendChild(document.createTextNode(t.title)),o.appendChild(a);}else o.appendChild(document.createTextNode(t.title));s.appendChild(o);}const p=document.createElement("div");if(p.className=u?"ab-description":"ab-description ab-no-title",p.id=r$1.it.nt(),a.setAttribute("aria-describedby",p.id),p.appendChild(document.createTextNode(t.description)),e){const o=document.createElement("div");o.className="ab-url-area";const a=document.createElement("a");a.setAttribute("href",t.url),a.appendChild(document.createTextNode(t.linkText)),a.onclick=n,o.appendChild(a),p.appendChild(o);}s.appendChild(p),a.appendChild(s);const b=document.createElement("div");return b.className="ab-unread-indicator",t.viewed&&(b.className+=" read"),a.appendChild(b),t.X=a,a}
243
+
244
+ var zt = {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:"ليس لدينا أي تحديث. يرجى التحقق مرة أخرى لاحقاً",FEED_TIMEOUT_MESSAGE:"يرجى تكرار المحاولة لاحقا"},cs:{NO_CARDS_MESSAGE:"V tuto chvíli pro vás nemáme žádné aktualizace.<br/>Zkontrolujte prosím znovu později.",FEED_TIMEOUT_MESSAGE:"Prosím zkuste to znovu později."},da:{NO_CARDS_MESSAGE:"Vi har ingen updates.<br/>Prøv venligst senere.",FEED_TIMEOUT_MESSAGE:"Prøv venligst senere."},de:{NO_CARDS_MESSAGE:"Derzeit sind keine Updates verfügbar.<br/>Bitte später noch einmal versuchen.",FEED_TIMEOUT_MESSAGE:"Bitte später noch einmal versuchen."},es:{NO_CARDS_MESSAGE:"No tenemos actualizaciones.<br/>Por favor compruébelo más tarde.",FEED_TIMEOUT_MESSAGE:"Por favor inténtelo más tarde."},"es-mx":{NO_CARDS_MESSAGE:"No tenemos ninguna actualización.<br/>Vuelva a verificar más tarde.",FEED_TIMEOUT_MESSAGE:"Por favor, vuelva a intentarlo más 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äivityksiä ei ole saatavilla.<br/>Tarkista myöhemmin uudelleen.",FEED_TIMEOUT_MESSAGE:"Yritä myöhemmin uudelleen."},fr:{NO_CARDS_MESSAGE:"Aucune mise à jour disponible.<br/>Veuillez vérifier ultérieurement.",FEED_TIMEOUT_MESSAGE:"Veuillez réessayer ultérieurement."},he:{NO_CARDS_MESSAGE:".אין לנו עדכונים. בבקשה בדוק שוב בקרוב",FEED_TIMEOUT_MESSAGE:".בבקשה נסה שוב בקרוב"},hi:{NO_CARDS_MESSAGE:"हमारे पास कोई अपडेट नहीं हैं। कृपया बाद में फिर से जाँच करें.।",FEED_TIMEOUT_MESSAGE:"कृपया बाद में दोबारा प्रयास करें।."},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ù tardi.",FEED_TIMEOUT_MESSAGE:"Riprovare più tardi."},ja:{NO_CARDS_MESSAGE:"アップデートはありません。<br/>後でもう一度確認してください。",FEED_TIMEOUT_MESSAGE:"後でもう一度試してください。"},ko:{NO_CARDS_MESSAGE:"업데이트가 없습니다. 다음에 다시 확인해 주십시오.",FEED_TIMEOUT_MESSAGE:"나중에 다시 시도해 주십시오."},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øv igjen senere."},pl:{NO_CARDS_MESSAGE:"Brak aktualizacji.<br/>Proszę sprawdzić ponownie później.",FEED_TIMEOUT_MESSAGE:"Proszę spróbować ponownie później."},pt:{NO_CARDS_MESSAGE:"Não temos atualizações.<br/>Por favor, verifique mais tarde.",FEED_TIMEOUT_MESSAGE:"Por favor, tente mais tarde."},"pt-br":{NO_CARDS_MESSAGE:"Não temos nenhuma atualização.<br/>Verifique novamente mais tarde.",FEED_TIMEOUT_MESSAGE:"Tente novamente mais tarde."},ru:{NO_CARDS_MESSAGE:"Обновления недоступны.<br/>Пожалуйста, проверьте снова позже.",FEED_TIMEOUT_MESSAGE:"Пожалуйста, повторите попытку позже."},sv:{NO_CARDS_MESSAGE:"Det finns inga uppdateringar.<br/>Försök igen senare.",FEED_TIMEOUT_MESSAGE:"Försök igen senare."},th:{NO_CARDS_MESSAGE:"เราไม่มีการอัพเดต กรุณาตรวจสอบภายหลัง.",FEED_TIMEOUT_MESSAGE:"กรุณาลองใหม่ภายหลัง."},uk:{NO_CARDS_MESSAGE:"Оновлення недоступні.<br/>ласка, перевірте знову пізніше.",FEED_TIMEOUT_MESSAGE:"Будь ласка, спробуйте ще раз пізніше."},vi:{NO_CARDS_MESSAGE:"Chúng tôi không có cập nhật nào.<br/>Vui lòng kiểm tra lại sau.",FEED_TIMEOUT_MESSAGE:"Vui lòng thử lại sau."},"zh-hk":{NO_CARDS_MESSAGE:"暫時沒有更新.<br/>請稍候再試.",FEED_TIMEOUT_MESSAGE:"請稍候再試."},"zh-hans":{NO_CARDS_MESSAGE:"暂时没有更新.<br/>请稍后再试.",FEED_TIMEOUT_MESSAGE:"请稍候再试."},"zh-hant":{NO_CARDS_MESSAGE:"暫時沒有更新.<br/>請稍候再試.",FEED_TIMEOUT_MESSAGE:"請稍候再試."},"zh-tw":{NO_CARDS_MESSAGE:"暫時沒有更新.<br/>請稍候再試.",FEED_TIMEOUT_MESSAGE:"請稍候再試."},zh:{NO_CARDS_MESSAGE:"暂时没有更新.<br/>请稍后再试.",FEED_TIMEOUT_MESSAGE:"请稍候再试."}};
245
+
246
+ class er{constructor(t,l){if(null!=t&&(t=t.toLowerCase()),null!=t&&null==zt[t]){const l=t.indexOf("-");l>0&&(t=t.substring(0,l));}if(null==zt[t]){const a="Braze does not yet have a localization for language "+t+", defaulting to English. Please contact us if you are willing and able to help us translate our SDK into this language.";l?r$1.D.error(a):r$1.D.info(a),t="en";}this.language=t;}get(t){return zt[this.language][t]}}
247
+
248
+ const Ee={t:!1,i:null,m:()=>{if(Ee.o(),!Ee.i){let r=et.language,t=!1;e.nn(T.jn)&&(r=e.nn(T.jn),t=!0),Ee.i=new er(r,t);}return Ee.i},o:()=>{Ee.t||(e.u(Ee),Ee.t=!0);},destroy:()=>{Ee.i=null,Ee.t=!1;}};
249
+
250
+ function removeSubscription(r){e.rr()&&e.removeSubscription(r);}
251
+
252
+ const LAST_REQUESTED_REFRESH_DATA_ATTRIBUTE="data-last-requested-refresh";function destroyFeedHtml(e){e&&(e.className=e.className.replace("ab-show","ab-hide"),setTimeout((()=>{e&&e.parentNode&&e.parentNode.removeChild(e);}),x.Mi));const t=e.getAttribute("data-update-subscription-id");null!=t&&removeSubscription(t);}function _generateFeedBody(e,t){const o=document.createElement("div");if(o.className="ab-feed-body",o.setAttribute("aria-label","Feed"),o.setAttribute("role","feed"),null==e.lastUpdated){const e=document.createElement("div");e.className="ab-no-cards-message";const t=document.createElement("i");t.className="fa fa-spinner fa-spin fa-4x ab-initial-spinner",e.appendChild(t),o.appendChild(e);}else {let s=!1;const logCardClick=t=>{e.logCardClick(t);};for(const n of e.cards){const a=n instanceof ControlCard;!a||e.dr()?(o.appendChild(cardToHtml(n,logCardClick,t)),s=s||!a):r$1.D.error("Received a control card for a legacy news feed. Control cards are only supported with content cards.");}if(!s){const e=document.createElement("div");e.className="ab-no-cards-message",e.innerHTML=Ee.m().get("NO_CARDS_MESSAGE"),e.setAttribute("role","article"),o.appendChild(e);}}return o}function detectFeedImpressions(e,t){if(null!=t){const o=[],r=t.querySelectorAll(".ab-card");e.do||(e.do={});for(let t=0;t<r.length;t++){const s=getCardId(r[t]);if(e.do[s])continue;let n=topHadImpression(r[t]),a=bottomHadImpression(r[t]);const i=n,d=a,f=topIsInView(r[t]),c=bottomIsInView(r[t]);if(!n&&f&&(n=!0,impressOnTop(r[t])),!a&&c&&(a=!0,impressOnBottom(r[t])),n&&a){if(f||c||markCardAsRead(r[t]),i&&d)continue;for(const t of e.cards)if(t.id===s){e.do[t.id]=!0,o.push(t);break}}}o.length>0&&e.logCardImpressions(o);}}function refreshFeed(e,t){t.setAttribute("aria-busy","true");const o=t.querySelectorAll(".ab-refresh-button")[0];null!=o&&(o.className+=" fa-spin");const r=(new Date).valueOf().toString();t.setAttribute("data-last-requested-refresh",r),setTimeout((()=>{if(t.getAttribute("data-last-requested-refresh")===r){const e=t.querySelectorAll(".fa-spin");for(let t=0;t<e.length;t++)e[t].className=e[t].className.replace(/fa-spin/g,"");const o=t.querySelectorAll(".ab-initial-spinner")[0];if(null!=o){const e=document.createElement("span");e.innerHTML=Ee.m().get("FEED_TIMEOUT_MESSAGE"),o.parentNode.appendChild(e),o.parentNode.removeChild(o);}"true"===t.getAttribute("aria-busy")&&t.setAttribute("aria-busy","false");}}),x.uo),e.sr();}function feedToHtml(e,t){const o=document.createElement("div");o.className="ab-feed ab-hide ab-effect-slide",o.setAttribute("role","dialog"),o.setAttribute("aria-label","Feed"),o.setAttribute("tabindex","-1");const r=document.createElement("div");r.className="ab-feed-buttons-wrapper",r.setAttribute("role","group"),o.appendChild(r);const s=document.createElement("i");s.className="fa fa-times ab-close-button",s.setAttribute("aria-label","Close Feed"),s.setAttribute("tabindex","0"),s.setAttribute("role","button");const n=e=>{destroyFeedHtml(o),e.stopPropagation();};s.addEventListener("keydown",(e=>{e.keyCode!==KeyCodes.fo&&e.keyCode!==KeyCodes.co||n(e);})),s.onclick=n;const a=document.createElement("i");a.className="fa fa-refresh ab-refresh-button",null==e.lastUpdated&&(a.className+=" fa-spin"),a.setAttribute("aria-label","Refresh Feed"),a.setAttribute("tabindex","0"),a.setAttribute("role","button");const i=t=>{refreshFeed(e,o),t.stopPropagation();};return a.addEventListener("keydown",(e=>{e.keyCode!==KeyCodes.fo&&e.keyCode!==KeyCodes.co||i(e);})),a.onclick=i,r.appendChild(a),r.appendChild(s),o.appendChild(_generateFeedBody(e,t)),o.onscroll=()=>{detectFeedImpressions(e,o);},o}function updateFeedCards(e,t,o,s,n){if(!isArray(t))return;const a=[];for(const e of t)if(e instanceof Card){if(e.url&&BRAZE_ACTION_URI_REGEX.test(e.url)){let t=getDecodedBrazeAction(e.url);if(containsUnknownBrazeAction(t)){r$1.D.error(ineligibleBrazeActionURLErrorMessage(INELIGIBLE_BRAZE_ACTION_URL_ERROR_TYPES.We,"Content Card"));continue}}a.push(e);}if(e.cards=a,e.lastUpdated=o,null!=s)if(s.setAttribute("aria-busy","false"),null==e.lastUpdated)destroyFeedHtml(s);else {const t=s.querySelectorAll(".ab-feed-body")[0];if(null!=t){const o=_generateFeedBody(e,n);t.parentNode.replaceChild(o,t),detectFeedImpressions(e,o.parentNode);}}}function registerFeedSubscriptionId(e,t){t.setAttribute("data-update-subscription-id",e);}
253
+
254
+ function hideContentCards(n){if(!e.rr())return;const o=document.querySelectorAll(".ab-feed");for(let e=0;e<o.length;e++)(null==n||null!=n&&o[e].parentNode===n)&&destroyFeedHtml(o[e]);}
255
+
256
+ function logContentCardsDisplayed(){if(e.rr())return logDeprecationWarning("logContentCardsDisplayed","method"),!0}
257
+
258
+ function showContentCards(n,t){if(!e.rr())return;setupFeedUI();let o=!1;null==n&&(n=document.body,o=!0);const a=e.nn(T.tn)||e.nn(T.en)||!1;let i=g$1.er().Us(!1);"function"==typeof t&&updateFeedCards(i,t(i.cards.slice()),i.lastUpdated,null,a);const s=feedToHtml(i,a),f=g$1.er();(null==i.lastUpdated||(new Date).valueOf()-i.lastUpdated.valueOf()>ContentCards.ur)&&(null==f.Ht()||(new Date).valueOf()-f.Ht()>ContentCards.ur)&&(r$1.D.info(`Cached content cards were older than max TTL of ${ContentCards.ur} ms, requesting an update from the server.`),refreshFeed(i,s),f.Qt((new Date).valueOf()));const l=(new Date).valueOf(),c=subscribeToContentCardsUpdates((function(n){const e=s.querySelectorAll(".ab-refresh-button")[0];if(null!=e){let n=500;const t=parseInt(s.getAttribute(LAST_REQUESTED_REFRESH_DATA_ATTRIBUTE));isNaN(t)?n-=(new Date).valueOf()-l:n-=(new Date).valueOf()-t,setTimeout((function(){e.className=e.className.replace(/fa-spin/g,"");}),Math.max(n,0));}let o=n.cards;"function"==typeof t&&(o=t(o.slice())),updateFeedCards(i,o,n.lastUpdated,s,a);}));registerFeedSubscriptionId(c,s);const u=function(n){const t=n.querySelectorAll(".ab-feed");let e=null;for(let o=0;o<t.length;o++)t[o].parentNode===n&&(e=t[o]);null!=e?(destroyFeedHtml(e),e.parentNode.replaceChild(s,e)):n.appendChild(s),setTimeout((function(){s.className=s.className.replace("ab-hide","ab-show");}),0),o&&s.focus(),detectFeedImpressions(i,s),setCardHeight(i.cards,n);};var m;null!=n?u(n):window.onload=(m=window.onload,function(){"function"==typeof m&&m(),u(document.body);});}
259
+
260
+ function subscribeToContentCardsUpdates(r){if(!e.rr())return;const t=g$1.er(),n=t.Ws(r);if(!t.Vt()){const r=e.mr().cr((()=>{t.Is();}));t.Xt(r);}return n}
261
+
262
+ function toggleContentCards(n,o){e.rr()&&(document.querySelectorAll(".ab-feed").length>0?hideContentCards():showContentCards(n,o));}
263
+
264
+ var BrazeSdkMetadata = {GOOGLE_TAG_MANAGER:"gg",MPARTICLE:"mp",SEGMENT:"sg",TEALIUM:"tl",MANUAL:"manu",NPM:"npm",CDN:"wcd",SHOPIFY:"shp"};
265
+
266
+ function addSdkMetadata(a){if(e.rr()){if(!isArray(a))return r$1.D.error("Cannot set SDK metadata because metadata is not an array."),!1;for(const t of a)if(!validateValueIsFromEnum(BrazeSdkMetadata,t,"sdkMetadata contained an invalid value.","BrazeSdkMetadata"))return !1;return e.nr().addSdkMetadata(a),!0}}
267
+
268
+ function changeUser(s,i){return !!e.rr()&&(null==s||0===s.length||s!=s?(r$1.D.error("changeUser requires a non-empty userId."),!1):getByteLength(s)>User.ee?(r$1.D.error(`Rejected user id "${s}" because it is longer than ${User.ee} bytes.`),!1):!(null!=i&&!validateStandardString(i,"set signature for new user","signature"))&&void e.mr().changeUser(s.toString(),e.re(),i))}
269
+
270
+ function destroy(){r$1.D.info("Destroying Braze instance"),e.destroy(!0);}
271
+
272
+ function disableSDK(){null!=e.mr()&&e.mr().requestImmediateDataFlush();const n=new G.ne(null,!0);n.store(STORAGE_KEYS.ae,"This-cookie-will-expire-in-"+n.ie());const a=r$1.xt.Ft;new r$1.qt(a,r$1.D).setItem(a.$t.oe,a.se,!0),e.destroy(!1),e.le(!0);}
273
+
274
+ function enableSDK(){new G.ne(null,!0).remove(STORAGE_KEYS.ae);const a=r$1.xt.Ft;new r$1.qt(a,r$1.D).br(a.$t.oe,a.se),e.destroy(!1),e.le(!1);}
275
+
276
+ function getDeviceId(i){e.rr()&&(null==i&&r$1.D.error("getDeviceId must be supplied with a callback. e.g., braze.getDeviceId(function(deviceId) {console.log('the device id is ' + deviceId)})"),"function"==typeof i&&i(e.ce().te().id));}
277
+
278
+ function initialize(i,n){return e.initialize(i,n)}
279
+
280
+ function isDisabled(){return !!new G.ne(null,!0).lr(STORAGE_KEYS.ae)}
281
+
282
+ function logCustomEvent(t,o){if(!e.rr())return !1;if(null==t||t.length<=0)return r$1.D.error(`logCustomEvent requires a non-empty eventName, got "${t}". Ignoring event.`),!1;if(!validateCustomString(t,"log custom event","the event name"))return !1;const[n,i]=validateCustomProperties(o,"logCustomEvent","eventProperties",`log custom event "${t}"`,"event");if(!n)return !1;if(e.ir().ge(t))return r$1.D.info(`Custom Event "${t}" is blocklisted, ignoring.`),!1;const m=s$1.G(r$1.A.CustomEvent,{n:t,p:i});if(m.S){r$1.D.info(`Logged custom event "${t}".`);for(const e of m.ve)TriggersProviderFactory.er().je(V.be,[t,o],e);}return m.S}
283
+
284
+ var logCustomEvent$1 = /*#__PURE__*/Object.freeze({
285
+ __proto__: null,
286
+ logCustomEvent: logCustomEvent
287
+ });
288
+
289
+ function logPurchase(o,i,t,n,D){if(!e.rr())return !1;if(null==t&&(t="USD"),null==n&&(n=1),null==o||o.length<=0)return r$1.D.error(`logPurchase requires a non-empty productId, got "${o}", ignoring.`),!1;if(!validateCustomString(o,"log purchase","the purchase name"))return !1;let a=parseFloat(i);if(isNaN(a))return r$1.D.error(`logPurchase requires a numeric price, got ${i}, ignoring.`),!1;a=a.toFixed(2);const g=parseInt(n);if(isNaN(g))return r$1.D.error(`logPurchase requires an integer quantity, got ${n}, ignoring.`),!1;if(g<1||g>MAX_PURCHASE_QUANTITY)return r$1.D.error(`logPurchase requires a quantity >1 and <${MAX_PURCHASE_QUANTITY}, got ${g}, ignoring.`),!1;t=t.toUpperCase();if(-1===["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"].indexOf(t))return r$1.D.error(`logPurchase requires a valid currencyCode, got ${t}, ignoring.`),!1;const[u,P]=validateCustomProperties(D,"logPurchase","purchaseProperties",`log purchase "${o}"`,"purchase");if(!u)return !1;if(e.ir().Dr(o))return r$1.D.info(`Purchase "${o}" is blocklisted, ignoring.`),!1;const R=s$1.G(r$1.A.Pr,{pid:o,c:t,p:a,q:g,pr:P});if(R.S){r$1.D.info(`Logged ${g} purchase${g>1?"s":""} of "${o}" for ${t} ${a}.`);for(const r of R.ve)TriggersProviderFactory.er().je(V.Rr,[o,D],r);}return R.S}
290
+
291
+ var logPurchase$1 = /*#__PURE__*/Object.freeze({
292
+ __proto__: null,
293
+ logPurchase: logPurchase
294
+ });
295
+
296
+ function openSession(){if(!e.rr())return;e.mr().openSession();const i=r$1.xt.Ft,o=new r$1.qt(i,r$1.D);o.hr(i.$t.jr,(function(t,n){const s=n.lastClick,c=n.trackingString;r$1.D.info(`Firing push click trigger from ${c} push click at ${s}`);const g=e.mr().kr(s,c),f=function(){TriggersProviderFactory.er().je(V.vr,[c],g);};e.mr().zr(f,f),o.br(i.$t.jr,t);})),o.Jt(i.$t.$r,(function(r){e.mr().wr(r);}));}
297
+
298
+ function removeAllSubscriptions(){e.rr()&&e.removeAllSubscriptions();}
299
+
300
+ function requestImmediateDataFlush(a){e.rr()&&e.mr().requestImmediateDataFlush(a);}
301
+
302
+ var requestImmediateDataFlush$1 = /*#__PURE__*/Object.freeze({
303
+ __proto__: null,
304
+ requestImmediateDataFlush: requestImmediateDataFlush
288
305
  });
289
306
 
307
+ function setLogger(e){r$1.D.setLogger(e);}
308
+
309
+ function setSdkAuthenticationSignature(t){return !!e.rr()&&(!(""===t||!validateStandardString(t,"set signature","signature",!1))&&(e.ii().setSdkAuthenticationSignature(t),!0))}
310
+
311
+ function subscribeToSdkAuthenticationFailures(r){if(e.rr())return e.ii().subscribeToSdkAuthenticationFailures(r)}
312
+
313
+ function toggleLogging(){r$1.D.toggleLogging();}
314
+
315
+ function wipeData(){if(null==e.l())throw new Error("Braze must be initialized before calling methods.");e.l().clearData();const o=keys(r$1.xt);for(let e=0;e<o.length;e++){const i=o[e],t=r$1.xt[i];new r$1.qt(t,r$1.D).clearData();}if(e.rr())for(const r of e.re())r.clearData(!0);}
316
+
317
+ class ee extends y{constructor(t,s){super(),this.h=t,this.si=s,this.yt=new u,e.jt(this.yt),this.zt();}zt(){const t=this.h.I(STORAGE_KEYS.q.ei)||[],s=[];for(let i=0;i<t.length;i++){const e=newCardFromSerializedValue(t[i]);null!=e&&s.push(e);}this.Zt=s,this.ri=rehydrateDateAfterJsonization(this.h.I(STORAGE_KEYS.q.hi));}oi(t){const s=[];let i=null;const e=this.h.I(STORAGE_KEYS.q.P)||{},r={};for(let h=0;h<t.length;h++){i=t[h];const o=newCardFromFeedJson(i);null!=o&&(e[o.id]&&(o.viewed=!0,r[o.id]=!0),s.push(o));}this.h.B(STORAGE_KEYS.q.P,r),this.Zt=s,this.Ss(),this.ri=new Date,this.h.B(STORAGE_KEYS.q.hi,this.ri);}Ss(){const t=[];for(let s=0;s<this.Zt.length;s++)t.push(this.Zt[s].ss());this.h.B(STORAGE_KEYS.q.ei,t);}Rs(t){null!=t&&t.feed&&(this.zt(),this.oi(t.feed),this.yt.St(new Feed(this.Zt.slice(),this.ri)));}ai(){this.zt();const t=[],s=new Date;for(let i=0;i<this.Zt.length;i++)(null==this.Zt[i].expiresAt||this.Zt[i].expiresAt>=s)&&t.push(this.Zt[i]);return new Feed(t,this.ri)}Is(){this.si.requestFeedRefresh();}Ws(t){return this.yt.ut(t)}clearData(t){null==t&&(t=!1),this.Zt=[],this.ri=null,t&&(this.h.Xs(STORAGE_KEYS.q.ei),this.h.Xs(STORAGE_KEYS.q.hi)),this.yt.St(new Feed(this.Zt.slice(),this.ri));}}
318
+
319
+ const re={t:!1,provider:null,er:()=>(re.o(),re.provider||(re.provider=new ee(e.l(),e.mr()),e.ar(re.provider)),re.provider),o:()=>{re.t||(e.u(re),re.t=!0);},destroy:()=>{re.provider=null,re.t=!1;}};var re$1 = re;
320
+
321
+ function requestFeedRefresh(){if(e.rr())return re$1.er().Is()}
322
+
323
+ class Feed extends x{constructor(r,e){super(r,e);}logCardImpressions(r){logCardImpressions(r,!1);}logCardClick(r){logCardClick(r,!1);}sr(){requestFeedRefresh();}dr(){return !1}}
324
+
325
+ function getCachedFeed(){if(e.rr())return re$1.er().ai()}
326
+
327
+ function destroyFeed(){if(!e.rr())return;const o=document.querySelectorAll(".ab-feed");for(let e=0;e<o.length;e++)destroyFeedHtml(o[e]);}
328
+
329
+ function logFeedDisplayed(){if(e.rr())return e.nr().yr(r$1.qr.Fr).S}
330
+
331
+ function showFeed(t,n,o){if(!e.rr())return;setupFeedUI();const s=(e,t)=>{if(null==t)return e;const n=[];for(let e=0;e<t.length;e++)n.push(t[e].toLowerCase());const o=[];for(let t=0;t<e.length;t++){const r=[];for(let n=0;n<e[t].categories.length;n++)r.push(e[t].categories[n].toLowerCase());intersection(r,n).length>0&&o.push(e[t]);}return o},i=e.nn(T.tn)||e.nn(T.en)||!1;let l=!1;null==t&&(t=document.body,l=!0);let a=!1,f=null;null==n?(f=re$1.er().ai(),updateFeedCards(f,s(f.cards,o),f.lastUpdated,null,i),a=!0):f=new Feed(s(n,o),new Date);const u=feedToHtml(f,i);if(a){(null==f.lastUpdated||(new Date).valueOf()-f.lastUpdated.valueOf()>Feed.ur)&&(r$1.D.info(`Cached feed was older than max TTL of ${Feed.ur} ms, requesting an update from the server.`),refreshFeed(f,u));const e=(new Date).valueOf(),t=subscribeToFeedUpdates((function(t){const n=u.querySelectorAll(".ab-refresh-button")[0];if(null!=n){let t=500;const o=parseInt(u.getAttribute(LAST_REQUESTED_REFRESH_DATA_ATTRIBUTE));isNaN(o)?t-=(new Date).valueOf()-e:t-=(new Date).valueOf()-o,setTimeout((function(){n.className=n.className.replace(/fa-spin/g,"");}),Math.max(t,0));}updateFeedCards(f,s(t.cards,o),t.lastUpdated,u,i);}));registerFeedSubscriptionId(t,u);}const m=e=>{const t=e.querySelectorAll(".ab-feed");let n=null;for(let o=0;o<t.length;o++)t[o].parentNode===e&&(n=t[o]);null!=n?(destroyFeedHtml(n),n.parentNode.replaceChild(u,n)):e.appendChild(u),setTimeout((function(){u.className=u.className.replace("ab-hide","ab-show");}),0),l&&u.focus(),logFeedDisplayed(),detectFeedImpressions(f,u),setCardHeight(f.cards,e);};var c;null!=t?m(t):window.onload=(c=window.onload,function(){"function"==typeof c&&c(),m(document.body);});}
332
+
333
+ var showFeed$1 = /*#__PURE__*/Object.freeze({
334
+ __proto__: null,
335
+ showFeed: showFeed
336
+ });
337
+
338
+ function subscribeToFeedUpdates(r){if(e.rr())return re$1.er().Ws(r)}
339
+
340
+ function toggleFeed(o,n,r){e.rr()&&(document.querySelectorAll(".ab-feed").length>0?destroyFeed():showFeed(o,n,r));}
341
+
342
+ function isPushBlocked(){if(e.rr())return ht$1.isPushBlocked()}
343
+
344
+ function isPushPermissionGranted(){if(e.rr())return ht$1.isPushPermissionGranted()}
345
+
346
+ function isPushSupported(){if(e.rr())return ht$1.isPushSupported()}
347
+
348
+ class aa{constructor(i,e,t,s,r,n,o,u,a,h){this.qi=i,this.Ji=e,this.Qi=t,this.Zi=s+"/safari/"+e,this.Sr=r||"/service-worker.js",this._r=n,this.gt=o,this.Ur=u||!1,this.Wr=a||!1,this.h=h,this.Nr=ht$1.Ir(),this.Vr=ht$1.Cr();}Er(){return this.Wr}Or(i,e,t,s,n){i.unsubscribe().then((i=>{i?this.Br(e,t,s,n):(r$1.D.error("Failed to unsubscribe device from push."),"function"==typeof n&&n(!1));})).catch((i=>{r$1.D.error("Push unsubscription error: "+i),"function"==typeof n&&n(!1);}));}Mr(i,e,t){const s=(i=>{if("string"==typeof i)return i;if(0!==i.endpoint.indexOf("https://android.googleapis.com/gcm/send"))return i.endpoint;let e=i.endpoint;return i.Yr&&-1===i.endpoint.indexOf(i.Yr)&&(e=i.endpoint+"/"+i.Yr),e})(i);let r=null,n=null;if(null!=i.getKey)try{r=btoa(String.fromCharCode.apply(null,new Uint8Array(i.getKey("p256dh")))),n=btoa(String.fromCharCode.apply(null,new Uint8Array(i.getKey("auth"))));}catch(i){if("invalid arguments"!==i.message)throw i}const o=(i=>{let e;return i.options&&(e=i.options.applicationServerKey)&&e.byteLength&&e.byteLength>0?btoa(String.fromCharCode.apply(null,new Uint8Array(e))).replace(/\+/g,"-").replace(/\//g,"_"):null})(i);this.qi.Gr(s,t,r,n,o),s&&"function"==typeof e&&e(s,r,n);}Hr(){this.qi.Jr(!0);}Kr(i,e){this.qi.Jr(!1),r$1.D.info(i),"function"==typeof e&&e(!1);}Lr(i,e,t,s){if("default"===e.permission)try{window.safari.pushNotification.requestPermission(this.Zi,i,{api_key:this.Ji,device_id:this.Qi.te().id},(e=>{"granted"===e.permission&&this.qi.setPushNotificationSubscriptionType(User.NotificationSubscriptionTypes.OPTED_IN),this.Lr(i,e,t,s);}));}catch(i){this.Kr("Could not request permission for push: "+i,s);}else "denied"===e.permission?this.Kr("The user has blocked notifications from this site, or Safari push is not configured in the Braze dashboard.",s):"granted"===e.permission&&(r$1.D.info("Device successfully subscribed to push."),this.Mr(e.deviceToken,t,new Date));}Qr(i,e,t){const s=s=>{switch(s){case"granted":return void("function"==typeof i&&i());case"default":return void("function"==typeof e&&e());case"denied":return void("function"==typeof t&&t());default:r$1.D.error("Received unexpected permission result "+s);}};let n=!1;const o=window.Notification.requestPermission((i=>{n&&s(i);}));o?o.then((i=>{s(i);})):n=!0;}Br(i,e,t,s){const n={userVisibleOnly:!0};null!=e&&(n.applicationServerKey=e),i.pushManager.subscribe(n).then((i=>{r$1.D.info("Device successfully subscribed to push."),this.Mr(i,t,new Date);})).catch((i=>{ht$1.isPushBlocked()?(r$1.D.info("Permission for push notifications was denied."),"function"==typeof s&&s(!1)):r$1.D.error("Push subscription failed: "+i);}));}Xr(){return this.Ur?navigator.serviceWorker.getRegistration():navigator.serviceWorker.register(this.Sr).then((()=>navigator.serviceWorker.ready.then((i=>(i&&"function"==typeof i.update&&i.update().catch((i=>{r$1.D.info("ServiceWorker update failed: "+i);})),i)))))}Zr(i){this.Ur||(i.unregister(),r$1.D.info("Service worker successfully unregistered."));}subscribe(i,e){if(ht$1.isPushSupported()){if(this.Nr){if(!this.Ur&&null!=window.location){let i=this.Sr;-1===i.indexOf(window.location.host)&&(i=window.location.host+i),-1===i.indexOf(window.location.protocol)&&(i=window.location.protocol+"//"+i);const e=i.substr(0,i.lastIndexOf("/")+1);if(0!==WindowUtils.hn().indexOf(e))return void r$1.D.error("Cannot subscribe to push from a path higher than the service worker location (tried to subscribe from "+window.location.pathname+" but service worker is at "+i+")")}if(ht$1.isPushBlocked())return void this.Kr("Notifications from this site are blocked. This may be a temporary embargo or a permanent denial.",e);if(this.gt&&!this.gt.fn()&&0===this.gt.Zs())return r$1.D.info("Waiting for VAPID key from server config before subscribing to push."),void this.gt.dn((()=>{this.subscribe(i,e);}));const t=()=>{r$1.D.info("Permission for push notifications was denied."),"function"==typeof e&&e(!1);},s=()=>{let i="Permission for push notifications was ignored.";ht$1.isPushBlocked()&&(i+=" The browser has automatically blocked further permission requests for a period (probably 1 week)."),r$1.D.info(i),"function"==typeof e&&e(!0);},n=ht$1.isPushPermissionGranted(),u=()=>{n||this.qi.setPushNotificationSubscriptionType(User.NotificationSubscriptionTypes.OPTED_IN),this.Xr().then((t=>{if(null==t)return r$1.D.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 e&&e());t.pushManager.getSubscription().then((s=>{let n=null;if(this.gt&&null!=this.gt.fn()&&(n=r$1.bn.pn(this.gt.fn())),s){let u=null,a=null;const h=this.h.I(STORAGE_KEYS.q.gn);if(h&&!isArray(h)){let i;try{i=ei.yn(h).wn;}catch(e){i=null;}null==i||isNaN(i.getTime())||0===i.getTime()||(u=i,a=new Date(u),a.setMonth(u.getMonth()+6));}null!=n&&s.options&&s.options.applicationServerKey&&s.options.applicationServerKey.byteLength&&s.options.applicationServerKey.byteLength>0&&!isEqual(n,new Uint8Array(s.options.applicationServerKey))?(s.options.applicationServerKey.byteLength>12?r$1.D.info("Device was already subscribed to push using a different VAPID provider, creating new subscription."):r$1.D.info("Attempting to upgrade a gcm_sender_id-based push registration to VAPID - depending on the browser this may or may not result in the same gcm_sender_id-based subscription."),this.Or(s,t,n,i,e)):s.expirationTime&&new Date(s.expirationTime)<=(new Date).valueOf()?(r$1.D.info("Push subscription is expired, creating new subscription."),this.Or(s,t,n,i,e)):h&&isArray(h)?this.Or(s,t,n,i,e):null==a?(r$1.D.info("No push subscription creation date found, creating new subscription."),this.Or(s,t,n,i,e)):a<=(new Date).valueOf()?(r$1.D.info("Push subscription older than 6 months, creating new subscription."),this.Or(s,t,n,i,e)):(r$1.D.info("Device already subscribed to push, sending existing subscription to backend."),this.Mr(s,i,u));}else this.Br(t,n,i,e);})).catch((i=>{r$1.D.error("Error checking current push subscriptions: "+i);}));})).catch((i=>{r$1.D.error("ServiceWorker registration failed: "+i);}));};this.Qr(u,s,t);}else if(this.Vr){if(null==this._r||""===this._r)return void r$1.D.error("You must supply the safariWebsitePushId initialization option in order to use registerPush on Safari");const t=window.safari.pushNotification.permission(this._r);this.Lr(this._r,t,i,e);}}else r$1.D.info(this.vn);}unsubscribe(i,e){ht$1.isPushSupported()?this.Nr?navigator.serviceWorker.getRegistration().then((t=>{t?t.pushManager.getSubscription().then((s=>{s&&(this.Hr(),s.unsubscribe().then((s=>{s?(r$1.D.info("Device successfully unsubscribed from push."),"function"==typeof i&&i()):(r$1.D.error("Failed to unsubscribe device from push."),"function"==typeof e&&e()),this.Zr(t);})).catch((i=>{r$1.D.error("Push unsubscription error: "+i),"function"==typeof e&&e();})));})).catch((i=>{r$1.D.error("Error unsubscribing from push: "+i),"function"==typeof e&&e();})):(r$1.D.info("Device already unsubscribed from push."),"function"==typeof i&&i());})):this.Vr&&(this.Hr(),r$1.D.info("Device unsubscribed from push."),"function"==typeof i&&i()):r$1.D.info(this.vn);}}aa.vn="Push notifications are not supported in this browser.";
349
+
350
+ const ea={t:!1,pushManager:null,aa:()=>(ea.o(),ea.pushManager||(ea.pushManager=new aa(e.gr(),e.ea(),e.ce(),e.Ks(),e.nn(T.na),e.nn(T.ra),e.ir(),e.nn(T.ta),e.nn(T.ia),e.l())),ea.pushManager),o:()=>{ea.t||(e.u(ea),ea.t=!0);},destroy:()=>{ea.pushManager=null,ea.t=!1;}};var ea$1 = ea;
351
+
352
+ var pushManagerFactory = /*#__PURE__*/Object.freeze({
353
+ __proto__: null,
354
+ 'default': ea$1
355
+ });
356
+
357
+ function requestPushPermission(r,n){if(e.rr())return ea$1.aa().subscribe(((n,o,t)=>{e.mr().requestImmediateDataFlush(),"function"==typeof r&&r(n,o,t);}),n)}
358
+
359
+ var requestPushPermission$1 = /*#__PURE__*/Object.freeze({
360
+ __proto__: null,
361
+ requestPushPermission: requestPushPermission
362
+ });
363
+
364
+ function unregisterPush(r,n){if(e.rr())return ea$1.aa().unsubscribe(r,n)}
365
+
366
+ var unregisterPush$1 = /*#__PURE__*/Object.freeze({
367
+ __proto__: null,
368
+ unregisterPush: unregisterPush
369
+ });
370
+
371
+ var src = /*#__PURE__*/Object.freeze({
372
+ __proto__: null,
373
+ WindowUtils: WindowUtils,
374
+ logCardClick: logCardClick,
375
+ logCardDismissal: logCardDismissal,
376
+ logCardImpressions: logCardImpressions,
377
+ logContentCardImpressions: logContentCardImpressions,
378
+ Card: Card,
379
+ Banner: Banner,
380
+ CaptionedImage: CaptionedImage,
381
+ ClassicCard: ClassicCard,
382
+ ControlCard: ControlCard,
383
+ ContentCards: ContentCards,
384
+ getCachedContentCards: getCachedContentCards,
385
+ hideContentCards: hideContentCards,
386
+ logContentCardsDisplayed: logContentCardsDisplayed,
387
+ requestContentCardsRefresh: requestContentCardsRefresh,
388
+ showContentCards: showContentCards,
389
+ subscribeToContentCardsUpdates: subscribeToContentCardsUpdates,
390
+ toggleContentCards: toggleContentCards,
391
+ addSdkMetadata: addSdkMetadata,
392
+ changeUser: changeUser,
393
+ destroy: destroy,
394
+ BrazeSdkMetadata: BrazeSdkMetadata,
395
+ DeviceProperties: DeviceProperties,
396
+ disableSDK: disableSDK,
397
+ enableSDK: enableSDK,
398
+ getDeviceId: getDeviceId,
399
+ getUser: getUser,
400
+ initialize: initialize,
401
+ isDisabled: isDisabled,
402
+ logCustomEvent: logCustomEvent,
403
+ logPurchase: logPurchase,
404
+ openSession: openSession,
405
+ removeAllSubscriptions: removeAllSubscriptions,
406
+ removeSubscription: removeSubscription,
407
+ requestImmediateDataFlush: requestImmediateDataFlush,
408
+ setLogger: setLogger,
409
+ setSdkAuthenticationSignature: setSdkAuthenticationSignature,
410
+ subscribeToSdkAuthenticationFailures: subscribeToSdkAuthenticationFailures,
411
+ toggleLogging: toggleLogging,
412
+ wipeData: wipeData,
413
+ handleBrazeAction: handleBrazeAction,
414
+ Feed: Feed,
415
+ getCachedFeed: getCachedFeed,
416
+ destroyFeed: destroyFeed,
417
+ logFeedDisplayed: logFeedDisplayed,
418
+ requestFeedRefresh: requestFeedRefresh,
419
+ showFeed: showFeed,
420
+ subscribeToFeedUpdates: subscribeToFeedUpdates,
421
+ toggleFeed: toggleFeed,
422
+ InAppMessage: InAppMessage,
423
+ InAppMessageButton: InAppMessageButton,
424
+ ControlMessage: ControlMessage,
425
+ FullScreenMessage: FullScreenMessage,
426
+ HtmlMessage: HtmlMessage,
427
+ ModalMessage: ModalMessage,
428
+ SlideUpMessage: SlideUpMessage,
429
+ automaticallyShowInAppMessages: automaticallyShowInAppMessages,
430
+ logInAppMessageButtonClick: logInAppMessageButtonClick,
431
+ logInAppMessageClick: logInAppMessageClick,
432
+ logInAppMessageHtmlClick: logInAppMessageHtmlClick,
433
+ logInAppMessageImpression: logInAppMessageImpression,
434
+ showInAppMessage: showInAppMessage,
435
+ subscribeToInAppMessage: subscribeToInAppMessage,
436
+ isPushBlocked: isPushBlocked,
437
+ isPushPermissionGranted: isPushPermissionGranted,
438
+ isPushSupported: isPushSupported,
439
+ requestPushPermission: requestPushPermission,
440
+ unregisterPush: unregisterPush,
441
+ User: User
442
+ });
443
+
444
+ var require$$0 = /*@__PURE__*/getAugmentedNamespace(src);
445
+
290
446
  /* eslint-disable no-undef */
291
- window.appboy = appboy_min;
447
+
448
+ window.braze = require$$0;
292
449
  // Copyright 2015 mParticle, Inc.
293
450
  //
294
451
  // Licensed under the Apache License, Version 2.0 (the "License");
@@ -303,9 +460,10 @@ window.appboy = appboy_min;
303
460
  // See the License for the specific language governing permissions and
304
461
  // limitations under the License.
305
462
 
463
+ // This should remain Appboy and not Braze until the core SDK is able to parse the moduleID and not the name (go.mparticle.com/work/SQDSDKS-4655)
306
464
  var name = 'Appboy',
307
465
  moduleId = 28,
308
- version = '3.0.3',
466
+ version = '4.0.0',
309
467
  MessageType = {
310
468
  PageView: 3,
311
469
  PageEvent: 4,
@@ -324,7 +482,7 @@ var clusterMapping = {
324
482
  EU02: 'sdk.fra-02.braze.eu',
325
483
  };
326
484
 
327
- var constructor = function() {
485
+ var constructor = function () {
328
486
  var self = this,
329
487
  forwarderSettings,
330
488
  options = {},
@@ -351,14 +509,13 @@ var constructor = function() {
351
509
  email_subscribe: 'setEmailNotificationSubscriptionType',
352
510
  push_subscribe: 'setPushNotificationSubscriptionType',
353
511
  phone: 'setPhoneNumber',
354
- image_url: 'setAvatarImageUrl',
355
512
  dob: 'setDateOfBirth',
356
513
  };
357
514
 
358
515
  function logPurchaseEvent(event) {
359
516
  var reportEvent = false;
360
517
  if (event.ProductAction.ProductList) {
361
- event.ProductAction.ProductList.forEach(function(product) {
518
+ event.ProductAction.ProductList.forEach(function (product) {
362
519
  if (product.Attributes == null) {
363
520
  product.Attributes = {};
364
521
  }
@@ -366,18 +523,21 @@ var constructor = function() {
366
523
 
367
524
  var sanitizedProductName;
368
525
  if (forwarderSettings.forwardSkuAsProductName === 'True') {
369
- sanitizedProductName = getSanitizedValueForAppboy(
526
+ sanitizedProductName = getSanitizedValueForBraze(
370
527
  String(product.Sku)
371
528
  );
372
529
  } else {
373
- sanitizedProductName = getSanitizedValueForAppboy(
530
+ sanitizedProductName = getSanitizedValueForBraze(
374
531
  String(product.Name)
375
532
  );
376
533
  }
377
534
 
378
- var sanitizedProperties = getSanitizedCustomProperties(
379
- product.Attributes
380
- );
535
+ var productAttributes = mergeObjects(product.Attributes, {
536
+ 'Transaction Id': event.ProductAction.TransactionId,
537
+ });
538
+
539
+ var sanitizedProperties =
540
+ getSanitizedCustomProperties(productAttributes);
381
541
 
382
542
  if (sanitizedProperties == null) {
383
543
  return (
@@ -388,7 +548,7 @@ var constructor = function() {
388
548
  var price = parseFloat(product.Price);
389
549
 
390
550
  kitLogger(
391
- 'appboy.logPurchase',
551
+ 'braze.logPurchase',
392
552
  sanitizedProductName,
393
553
  price,
394
554
  event.CurrencyCode,
@@ -396,7 +556,7 @@ var constructor = function() {
396
556
  sanitizedProperties
397
557
  );
398
558
 
399
- reportEvent = appboy.logPurchase(
559
+ reportEvent = braze.logPurchase(
400
560
  sanitizedProductName,
401
561
  price,
402
562
  event.CurrencyCode,
@@ -408,7 +568,7 @@ var constructor = function() {
408
568
  return reportEvent === true;
409
569
  }
410
570
 
411
- function logAppboyPageViewEvent(event) {
571
+ function logBrazePageViewEvent(event) {
412
572
  var sanitizedEventName,
413
573
  sanitizedAttrs,
414
574
  eventName,
@@ -422,12 +582,12 @@ var constructor = function() {
422
582
  } else {
423
583
  eventName = window.location.pathname;
424
584
  }
425
- sanitizedEventName = getSanitizedValueForAppboy(eventName);
585
+ sanitizedEventName = getSanitizedValueForBraze(eventName);
426
586
  sanitizedAttrs = getSanitizedCustomProperties(attrs);
427
587
 
428
- kitLogger('appboy.logCustomEvent', sanitizedEventName, sanitizedAttrs);
588
+ kitLogger('braze.logCustomEvent', sanitizedEventName, sanitizedAttrs);
429
589
 
430
- var reportEvent = appboy.logCustomEvent(
590
+ var reportEvent = braze.logCustomEvent(
431
591
  sanitizedEventName,
432
592
  sanitizedAttrs
433
593
  );
@@ -444,13 +604,13 @@ var constructor = function() {
444
604
  );
445
605
  } else {
446
606
  kitLogger(
447
- 'appoy.getUser().setDateOfBirth',
607
+ 'braze.getUser().setDateOfBirth',
448
608
  value.getFullYear(),
449
609
  value.getMonth() + 1,
450
610
  value.getDate()
451
611
  );
452
612
 
453
- appboy
613
+ braze
454
614
  .getUser()
455
615
  .setDateOfBirth(
456
616
  value.getFullYear(),
@@ -462,9 +622,9 @@ var constructor = function() {
462
622
  if (typeof value === 'number') {
463
623
  var year = new Date().getFullYear() - value;
464
624
 
465
- kitLogger('appboy.getUser().setDateOfBirth', year, 1, 1);
625
+ kitLogger('braze.getUser().setDateOfBirth', year, 1, 1);
466
626
 
467
- appboy.getUser().setDateOfBirth(year, 1, 1);
627
+ braze.getUser().setDateOfBirth(year, 1, 1);
468
628
  } else {
469
629
  return '$Age must be a number';
470
630
  }
@@ -483,11 +643,12 @@ var constructor = function() {
483
643
  params.push(value);
484
644
 
485
645
  kitLogger(
486
- 'appboy.getUser().' + DefaultAttributeMethods[key],
646
+ 'braze.getUser().' + DefaultAttributeMethods[key],
487
647
  params
488
648
  );
489
649
 
490
- var u = appboy.getUser();
650
+ var u = braze.getUser();
651
+
491
652
  //This method uses the setLastName, setFirstName, setEmail, setCountry, setHomeCity, setPhoneNumber, setAvatarImageUrl, setDateOfBirth, setGender, setEmailNotificationSubscriptionType, and setPushNotificationSubscriptionType methods
492
653
  if (!u[DefaultAttributeMethods[key]].apply(u, params)) {
493
654
  return (
@@ -499,8 +660,8 @@ var constructor = function() {
499
660
  }
500
661
  }
501
662
 
502
- function logAppboyEvent(event) {
503
- var sanitizedEventName = getSanitizedValueForAppboy(event.EventName);
663
+ function logBrazeEvent(event) {
664
+ var sanitizedEventName = getSanitizedValueForBraze(event.EventName);
504
665
  var sanitizedProperties = getSanitizedCustomProperties(
505
666
  event.EventAttributes
506
667
  );
@@ -512,12 +673,12 @@ var constructor = function() {
512
673
  }
513
674
 
514
675
  kitLogger(
515
- 'appboy.logCustomEvent',
676
+ 'braze.logCustomEvent',
516
677
  sanitizedEventName,
517
678
  sanitizedProperties
518
679
  );
519
680
 
520
- var reportEvent = appboy.logCustomEvent(
681
+ var reportEvent = braze.logCustomEvent(
521
682
  sanitizedEventName,
522
683
  sanitizedProperties
523
684
  );
@@ -537,15 +698,14 @@ var constructor = function() {
537
698
  ) {
538
699
  reportEvent = logPurchaseEvent(event);
539
700
  } else if (event.EventDataType == MessageType.Commerce) {
540
- var listOfPageEvents = mParticle.eCommerce.expandCommerceEvent(
541
- event
542
- );
701
+ var listOfPageEvents =
702
+ mParticle.eCommerce.expandCommerceEvent(event);
543
703
  if (listOfPageEvents != null) {
544
704
  for (var i = 0; i < listOfPageEvents.length; i++) {
545
- // finalLoopResult keeps track of if any logAppBoyEvent in this loop returns true or not
705
+ // finalLoopResult keeps track of if any logBrazeEvent in this loop returns true or not
546
706
  var finalLoopResult = false;
547
707
  try {
548
- reportEvent = logAppboyEvent(listOfPageEvents[i]);
708
+ reportEvent = logBrazeEvent(listOfPageEvents[i]);
549
709
  if (reportEvent === true) {
550
710
  finalLoopResult = true;
551
711
  }
@@ -556,10 +716,10 @@ var constructor = function() {
556
716
  reportEvent = finalLoopResult === true;
557
717
  }
558
718
  } else if (event.EventDataType == MessageType.PageEvent) {
559
- reportEvent = logAppboyEvent(event);
719
+ reportEvent = logBrazeEvent(event);
560
720
  } else if (event.EventDataType == MessageType.PageView) {
561
721
  if (forwarderSettings.forwardScreenViews == 'True') {
562
- reportEvent = logAppboyPageViewEvent(event);
722
+ reportEvent = logBrazePageViewEvent(event);
563
723
  }
564
724
  } else {
565
725
  return (
@@ -576,15 +736,15 @@ var constructor = function() {
576
736
 
577
737
  function removeUserAttribute(key) {
578
738
  if (!(key in DefaultAttributeMethods)) {
579
- var sanitizedKey = getSanitizedValueForAppboy(key);
739
+ var sanitizedKey = getSanitizedValueForBraze(key);
580
740
 
581
741
  kitLogger(
582
- 'appboy.getUser().setCustomUserAttribute',
742
+ 'braze.getUser().setCustomUserAttribute',
583
743
  sanitizedKey,
584
744
  null
585
745
  );
586
746
 
587
- appboy.getUser().setCustomUserAttribute(sanitizedKey, null);
747
+ braze.getUser().setCustomUserAttribute(sanitizedKey, null);
588
748
  } else {
589
749
  return setDefaultAttribute(key, null);
590
750
  }
@@ -592,19 +752,19 @@ var constructor = function() {
592
752
 
593
753
  function setUserAttribute(key, value) {
594
754
  if (!(key in DefaultAttributeMethods)) {
595
- var sanitizedKey = getSanitizedValueForAppboy(key);
596
- var sanitizedValue = getSanitizedValueForAppboy(value);
755
+ var sanitizedKey = getSanitizedValueForBraze(key);
756
+ var sanitizedValue = getSanitizedValueForBraze(value);
597
757
  if (value != null && sanitizedValue == null) {
598
758
  return 'Value did not pass validation for ' + key;
599
759
  }
600
760
 
601
761
  kitLogger(
602
- 'appboy.getUser().setCustomUserAttribute',
762
+ 'braze.getUser().setCustomUserAttribute',
603
763
  sanitizedKey,
604
764
  sanitizedValue
605
765
  );
606
766
 
607
- appboy
767
+ braze
608
768
  .getUser()
609
769
  .setCustomUserAttribute(sanitizedKey, sanitizedValue);
610
770
  } else {
@@ -617,13 +777,13 @@ var constructor = function() {
617
777
  // Other versions use onUserIdentified, which is called after setUserIdentity from core SDK
618
778
  if (window.mParticle.getVersion().split('.')[0] === '1') {
619
779
  if (type == window.mParticle.IdentityType.CustomerId) {
620
- kitLogger('appboy.changeUser', id);
780
+ kitLogger('braze.changeUser', id);
621
781
 
622
- appboy.changeUser(id);
782
+ braze.changeUser(id);
623
783
  } else if (type == window.mParticle.IdentityType.Email) {
624
- kitLogger('appboy.getUser().setEmail', id);
784
+ kitLogger('braze.getUser().setEmail', id);
625
785
 
626
- appboy.getUser().setEmail(id);
786
+ braze.getUser().setEmail(id);
627
787
  } else {
628
788
  return (
629
789
  "Can't call setUserIdentity on forwarder " +
@@ -636,37 +796,37 @@ var constructor = function() {
636
796
 
637
797
  // onUserIdentified is not used in version 1 so there is no need to check for version number
638
798
  function onUserIdentified(user) {
639
- var appboyUserIDType,
799
+ var brazeUserIDType,
640
800
  userIdentities = user.getUserIdentities().userIdentities;
641
801
 
642
802
  if (forwarderSettings.userIdentificationType === 'MPID') {
643
- appboyUserIDType = user.getMPID();
803
+ brazeUserIDType = user.getMPID();
644
804
  } else {
645
- appboyUserIDType =
805
+ brazeUserIDType =
646
806
  userIdentities[
647
807
  forwarderSettings.userIdentificationType.toLowerCase()
648
808
  ];
649
809
  }
650
810
 
651
- kitLogger('appboy.changeUser', appboyUserIDType);
811
+ kitLogger('braze.changeUser', brazeUserIDType);
652
812
 
653
- appboy.changeUser(appboyUserIDType);
813
+ braze.changeUser(brazeUserIDType);
654
814
 
655
815
  if (userIdentities.email) {
656
- kitLogger('appboy.getUser().setEmail', userIdentities.email);
816
+ kitLogger('braze.getUser().setEmail', userIdentities.email);
657
817
 
658
- appboy.getUser().setEmail(userIdentities.email);
818
+ braze.getUser().setEmail(userIdentities.email);
659
819
  }
660
820
  }
661
821
 
662
- function primeAppBoyWebPush() {
822
+ function primeBrazeWebPush() {
663
823
  // The following code block is based on Braze's best practice for implementing
664
824
  // their push primer. We only modify it to include pushPrimer and register_inapp settings.
665
825
  // https://www.braze.com/docs/developer_guide/platform_integration_guides/web/push_notifications/integration/#soft-push-prompts
666
- appboy.subscribeToInAppMessage(function(inAppMessage) {
826
+ braze.subscribeToInAppMessage(function (inAppMessage) {
667
827
  var shouldDisplay = true;
668
828
  var pushPrimer = false;
669
- if (inAppMessage instanceof appboy.InAppMessage) {
829
+ if (inAppMessage instanceof braze.InAppMessage) {
670
830
  // Read the key-value pair for msg-id
671
831
  var msgId = inAppMessage.extras['msg-id'];
672
832
 
@@ -676,9 +836,9 @@ var constructor = function() {
676
836
  // We don't want to display the soft push prompt to users on browsers that don't support push, or if the user
677
837
  // has already granted/blocked permission
678
838
  if (
679
- !appboy.isPushSupported() ||
680
- appboy.isPushPermissionGranted() ||
681
- appboy.isPushBlocked()
839
+ !braze.isPushSupported() ||
840
+ braze.isPushPermissionGranted() ||
841
+ braze.isPushBlocked()
682
842
  ) {
683
843
  shouldDisplay = false;
684
844
  }
@@ -686,7 +846,7 @@ var constructor = function() {
686
846
  // Prompt the user when the first button is clicked
687
847
  inAppMessage.buttons[0].subscribeToClickedEvent(
688
848
  function() {
689
- appboy.registerAppboyPushMessages();
849
+ braze.requestPushPermission();
690
850
  }
691
851
  );
692
852
  }
@@ -698,20 +858,20 @@ var constructor = function() {
698
858
  (pushPrimer && shouldDisplay) ||
699
859
  (!pushPrimer && forwarderSettings.register_inapp === 'True')
700
860
  ) {
701
- appboy.display.showInAppMessage(inAppMessage);
861
+ braze.showInAppMessage(inAppMessage);
702
862
  }
703
863
  });
704
864
  }
705
865
 
706
866
  function openSession(forwarderSettings) {
707
- appboy.openSession();
867
+ braze.openSession();
708
868
  if (forwarderSettings.softPushCustomEventName) {
709
869
  kitLogger(
710
- 'appboy.logCustomEvent',
870
+ 'braze.logCustomEvent',
711
871
  forwarderSettings.softPushCustomEventName
712
872
  );
713
873
 
714
- appboy.logCustomEvent(forwarderSettings.softPushCustomEventName);
874
+ braze.logCustomEvent(forwarderSettings.softPushCustomEventName);
715
875
  }
716
876
  }
717
877
 
@@ -730,7 +890,7 @@ var constructor = function() {
730
890
  if (!self.logger) {
731
891
  // create a logger
732
892
  self.logger = {
733
- verbose: function() {},
893
+ verbose: function () {},
734
894
  };
735
895
  }
736
896
  // eslint-disable-line no-unused-vars
@@ -738,7 +898,7 @@ var constructor = function() {
738
898
  try {
739
899
  forwarderSettings = settings;
740
900
  reportingService = service;
741
- // 30 min is Appboy default
901
+ // 30 min is Braze default
742
902
  options.sessionTimeoutInSeconds =
743
903
  forwarderSettings.ABKSessionTimeoutKey || 1800;
744
904
  options.sdkFlavor = 'mparticle';
@@ -778,13 +938,13 @@ var constructor = function() {
778
938
  }
779
939
 
780
940
  if (testMode !== true) {
781
- appboy.initialize(forwarderSettings.apiKey, options);
782
- finishAppboyInitialization(forwarderSettings);
941
+ braze.initialize(forwarderSettings.apiKey, options);
942
+ finishBrazeInitialization(forwarderSettings);
783
943
  } else {
784
- if (!appboy.initialize(forwarderSettings.apiKey, options)) {
944
+ if (!braze.initialize(forwarderSettings.apiKey, options)) {
785
945
  return 'Failed to initialize: ' + name;
786
946
  }
787
- finishAppboyInitialization(forwarderSettings);
947
+ finishBrazeInitialization(forwarderSettings);
788
948
  }
789
949
  return 'Successfully initialized: ' + name;
790
950
  } catch (e) {
@@ -794,9 +954,9 @@ var constructor = function() {
794
954
  }
795
955
  }
796
956
 
797
- function finishAppboyInitialization(forwarderSettings) {
798
- appboy.addSdkMetadata(['mp']);
799
- primeAppBoyWebPush();
957
+ function finishBrazeInitialization(forwarderSettings) {
958
+ braze.addSdkMetadata(['mp']);
959
+ primeBrazeWebPush();
800
960
  openSession(forwarderSettings);
801
961
  }
802
962
 
@@ -815,13 +975,13 @@ var constructor = function() {
815
975
  }
816
976
  } catch (e) {
817
977
  console.log(
818
- 'Unable to configure custom Appboy cluster: ' + e.toString()
978
+ 'Unable to configure custom Braze cluster: ' + e.toString()
819
979
  );
820
980
  }
821
981
  }
822
982
  }
823
983
 
824
- function getSanitizedStringForAppboy(value) {
984
+ function getSanitizedStringForBraze(value) {
825
985
  if (typeof value === 'string') {
826
986
  if (value.substr(0, 1) === '$') {
827
987
  return value.replace(/^\$+/g, '');
@@ -832,16 +992,16 @@ var constructor = function() {
832
992
  return null;
833
993
  }
834
994
 
835
- function getSanitizedValueForAppboy(value) {
995
+ function getSanitizedValueForBraze(value) {
836
996
  if (typeof value === 'string') {
837
- return getSanitizedStringForAppboy(value);
997
+ return getSanitizedStringForBraze(value);
838
998
  }
839
999
 
840
1000
  if (Array.isArray(value)) {
841
1001
  var sanitizedArray = [];
842
1002
  for (var i in value) {
843
1003
  var element = value[i];
844
- var sanitizedElement = getSanitizedStringForAppboy(element);
1004
+ var sanitizedElement = getSanitizedStringForBraze(element);
845
1005
  if (sanitizedElement == null) {
846
1006
  return null;
847
1007
  }
@@ -868,10 +1028,10 @@ var constructor = function() {
868
1028
 
869
1029
  for (var propertyName in customProperties) {
870
1030
  value = customProperties[propertyName];
871
- sanitizedPropertyName = getSanitizedValueForAppboy(propertyName);
1031
+ sanitizedPropertyName = getSanitizedValueForBraze(propertyName);
872
1032
  sanitizedValue =
873
1033
  typeof value === 'string'
874
- ? getSanitizedValueForAppboy(value)
1034
+ ? getSanitizedValueForBraze(value)
875
1035
  : value;
876
1036
  sanitizedProperties[sanitizedPropertyName] = sanitizedValue;
877
1037
  }
@@ -890,7 +1050,7 @@ var constructor = function() {
890
1050
  with a SKU of iphoneSku that cost $999 with a product attribute of
891
1051
  color: blue would be:
892
1052
  mParticle - Braze Web Kit log:
893
- appboy.logPurchase:
1053
+ braze.logPurchase:
894
1054
  iphone,
895
1055
  999,
896
1056
  USD,
@@ -903,7 +1063,7 @@ var constructor = function() {
903
1063
  var nonMethodArguments = Array.prototype.slice.call(arguments, 1);
904
1064
  msg += '\n' + method + ':\n';
905
1065
 
906
- nonMethodArguments.forEach(function(arg) {
1066
+ nonMethodArguments.forEach(function (arg) {
907
1067
  if (isObject(arg) || Array.isArray(arg)) {
908
1068
  msg += JSON.stringify(arg);
909
1069
  } else {
@@ -958,6 +1118,18 @@ if (window && window.mParticle && window.mParticle.addForwarder) {
958
1118
  });
959
1119
  }
960
1120
 
1121
+ function mergeObjects() {
1122
+ var resObj = {};
1123
+ for (var i = 0; i < arguments.length; i += 1) {
1124
+ var obj = arguments[i],
1125
+ keys = Object.keys(obj);
1126
+ for (var j = 0; j < keys.length; j += 1) {
1127
+ resObj[keys[j]] = obj[keys[j]];
1128
+ }
1129
+ }
1130
+ return resObj;
1131
+ }
1132
+
961
1133
  function isObject(val) {
962
1134
  return (
963
1135
  val != null && typeof val === 'object' && Array.isArray(val) === false
@@ -966,13 +1138,9 @@ function isObject(val) {
966
1138
 
967
1139
  var BrazeKitDev = {
968
1140
  register: register,
969
- getVersion: function() {
1141
+ getVersion: function () {
970
1142
  return version;
971
1143
  },
972
1144
  };
973
- var BrazeKitDev_1 = BrazeKitDev.register;
974
- var BrazeKitDev_2 = BrazeKitDev.getVersion;
975
1145
 
976
- exports.default = BrazeKitDev;
977
- exports.getVersion = BrazeKitDev_2;
978
- exports.register = BrazeKitDev_1;
1146
+ exports["default"] = BrazeKitDev;