PageSourceSearch

https://www.theglobeandmail.com/pf/dist/components/combinations/brazeSDKinit.chunk.js?d=961&mxId=00000000

js theglobeandmail.com collected 2026-09-24 06:43:15 UTC 166,921 bytes, 1 lines download raw bytes

1"use strict";(this.webpackChunkFusion_components=this.webpackChunkFusion_components||[]).push([[9023],{34133:function(t,e,n){n.d(e,{j:function(){return s},w:function(){return i}});const i={CustomEvent:"ce",Pr:"p",wc:"pc",Ac:"ca",Su:"i",qu:"ie",ts:"cci",rs:"ccic",Mt:"ccc",Wt:"ccd",Fl:"ss",Dl:"se",Ki:"si",Li:"sc",Qi:"sbc",Mc:"sfe",Do:"iec",bc:"lr",vc:"uae",ss:"ci",Ot:"cc",Sc:"lcaa",yc:"lcar",Hn:"inc",On:"add",Gn:"rem",$n:"set",Bn:"ncam",jc:"sgu",yr:"ffi",ro:"bi",ct:"bc"},s={Fr:"feed_displayed",Dc:"content_cards_displayed"}},5084:function(t,e){const n={ce:function(){const t=(t=!1)=>{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()}};e.A=n},82505:function(t,e,n){n.d(e,{A:function(){return i}});class i{constructor(t,e){this.database=t,this.vd=e,this.parent="undefined"==typeof window?self:window,this.database=t,this.vd=e}Dd(){if("indexedDB"in this.parent)return this.parent.indexedDB}isSupported(){var t;try{if(null==this.Dd())return!1;{const e=null===(t=this.Dd())||void 0===t?void 0:t.open("Braze IndexedDB Support Test");if(e&&(e.onupgradeneeded=()=>e.result.close(),e.onsuccess=()=>e.result.close()),"undefined"!=typeof window){const t=window,e=t.chrome||t.browser||t.pd;if(e&&e.runtime&&e.runtime.id)return this.vd.info("Not using IndexedDB for storage because we are running inside an extension"),!1}return!0}}catch(t){return this.vd.info("Not using IndexedDB for storage due to following error: "+t),!1}}Bd(t,e){var n;const i=null===(n=this.Dd())||void 0===n?void 0:n.open(this.database.Sd,this.database.VERSION);if(null==i)return"function"==typeof e&&e(),!1;const s=this;return i.onupgradeneeded=t=>{var e;s.vd.info("Upgrading indexedDB "+s.database.Sd+" to v"+s.database.VERSION+"...");const n=null===(e=t.target)||void 0===e?void 0:e.result;for(const t in s.database.Ms){const e=t;s.database.Ms.hasOwnProperty(t)&&!n.objectStoreNames.contains(s.database.Ms[e])&&n.createObjectStore(s.database.Ms[e])}},i.onsuccess=n=>{var i;const a=null===(i=n.target)||void 0===i?void 0:i.result;a.onversionchange=()=>{a.close(),"function"==typeof e&&e(),s.vd.error("Needed to close the database unexpectedly because of an upgrade in another tab")},t(a)},i.onerror=t=>{var n;const i=t;return s.vd.info("Could not open indexedDB "+s.database.Sd+" v"+s.database.VERSION+": "+(null===(n=i.target)||void 0===n?void 0:n.errorCode)),"function"==typeof e&&e(),!0},!0}setItem(t,e,n,i,s){if(!this.isSupported())return"function"==typeof s&&s(),!1;const a=this;return this.Bd(o=>{if(!o.objectStoreNames.contains(t))return a.vd.error("Could not store object "+e+" in "+t+" on indexedDB "+a.database.Sd+" - "+t+" is not a valid objectStore"),"function"==typeof s&&s(),void o.close();const r=o.transaction([t],"readwrite");r.oncomplete=()=>o.close();const l=r.objectStore(t).put(n,e);l.onerror=()=>{a.vd.error("Could not store object "+e+" in "+t+" on indexedDB "+a.database.Sd),"function"==typeof s&&s()},l.onsuccess=()=>{"function"==typeof i&&i()}},s)}getItem(t,e,n){if(!this.isSupported())return!1;const i=this;return this.Bd(s=>{if(!s.objectStoreNames.contains(t))return i.vd.error("Could not retrieve object "+e+" in "+t+" on indexedDB "+i.database.Sd+" - "+t+" is not a valid objectStore"),void s.close();const a=s.transaction([t],"readonly");a.oncomplete=()=>s.close();const o=a.objectStore(t).get(e);o.onerror=()=>{i.vd.error("Could not retrieve object "+e+" in "+t+" on indexedDB "+i.database.Sd)},o.onsuccess=t=>{var e;const i=null===(e=t.target)||void 0===e?void 0:e.result;null!=i&&n(i)}})}cr(t,e,n){if(!this.isSupported())return"function"==typeof n&&n(),!1;const i=this;return this.Bd(s=>{if(!s.objectStoreNames.contains(t))return i.vd.error("Could not retrieve last record from "+t+" on indexedDB "+i.database.Sd+" - "+t+" is not a valid objectStore"),"function"==typeof n&&n(),void s.close();const a=s.transaction([t],"readonly");a.oncomplete=()=>s.close();const o=a.objectStore(t).openCursor(null,"prev");o.onerror=()=>{i.vd.error("Could not open cursor for "+t+" on indexedDB "+i.database.Sd),"function"==typeof n&&n()},o.onsuccess=t=>{var i;const s=null===(i=t.target)||void 0===i?void 0:i.result;null!=s&&null!=s.value&&null!=s.key?e(s.key,s.value):"function"==typeof n&&n()}},n)}ge(t,e){if(!this.isSupported())return!1;const n=this;return this.Bd(i=>{if(!i.objectStoreNames.contains(t))return n.vd.error("Could not delete record "+e+" from "+t+" on indexedDB "+n.database.Sd+" - "+t+" is not a valid objectStore"),void i.close();const s=i.transaction([t],"readwrite");s.oncomplete=()=>i.close(),s.objectStore(t).delete(e).onerror=()=>{n.vd.error("Could not delete record "+e+" from "+t+" on indexedDB "+n.database.Sd)}})}Ns(t,e){if(!this.isSupported())return!1;const n=this;return this.Bd(i=>{if(!i.objectStoreNames.contains(t))return n.vd.error("Could not retrieve objects from "+t+" on indexedDB "+n.database.Sd+" - "+t+" is not a valid objectStore"),void i.close();const s=i.transaction([t],"readwrite");s.oncomplete=()=>i.close();const a=s.objectStore(t),o=a.openCursor(),r=[];o.onerror=()=>{r.length>0?(n.vd.info("Cursor closed midway through for "+t+" on indexedDB "+n.database.Sd),e(r)):n.vd.error("Could not open cursor for "+t+" on indexedDB "+n.database.Sd)},o.onsuccess=t=>{var n;const i=null===(n=t.target)||void 0===n?void 0:n.result;null!=i?(null!=i.value&&null!=i.key&&(a.delete(i.key).onsuccess=()=>{r.push(i.value)}),"function"==typeof i.continue&&i.continue()):r.length>0&&e(r)}})}clearData(){if(!this.isSupported())return!1;const t=[];for(const e in this.database.Ms){const n=e;this.database.Ms.hasOwnProperty(e)&&this.database.Ms[n]!==this.database.Ms.pe&&t.push(this.database.Ms[n])}const e=this;return this.Bd(function(n){const i=n.transaction(t,"readwrite");i.oncomplete=()=>n.close();for(let n=0;n<t.length;n++){const s=t[n];i.objectStore(s).clear().onerror=function(){e.vd.error("Could not clear "+this.source.name+" on indexedDB "+e.database.Sd)}}i.onerror=function(){e.vd.error("Could not clear object stores on indexedDB "+e.database.Sd)}})}}i.Ls={Fs:{Sd:"AppboyServiceWorkerAsyncStorage",VERSION:6,Ms:{Nu:"data",jr:"pushClicks",cu:"pushSubscribed",Cd:"fallbackDevice",Js:"cardUpdates",pe:"optOut",kr:"pendingData",yh:"sdkAuthenticationSignature"},be:1}}},12397:function(t,e){const n={init:function(t){void 0===t&&void 0!==n.zg||(n.zg=!!t),n.l||(n.l=!0)},destroy:function(){n.l=!1,n.zg=void 0,n.vd=void 0},setLogger:function(t){"function"==typeof t?(n.init(),n.vd=t):n.info("Ignoring set
1Logger call since logger is not a function")},toggleLogging:function(){n.init(),n.zg?(console.log("Disabling Braze logging"),n.zg=!1):(console.log("Enabled Braze logging"),n.zg=!0)},info:function(t){if(n.zg){const e="Braze: "+t;null!=n.vd?n.vd(e):console.log(e)}},warn:function(t){if(n.zg){const e="Braze SDK Warning: "+t+" (v5.9.1)";null!=n.vd?n.vd(e):console.warn(e)}},error:function(t){if(n.zg){const e="Braze SDK Error: "+t+" (v5.9.1)";null!=n.vd?n.vd(e):console.error(e)}}};e.A=n},81946:function(t,e,n){n.d(e,{changeUser:function(){return l}});var i=n(3234),s=n(70932),a=n(12397),o=n(33779),r=n(2490);function l(t,e){if(!i.Ay.rr())return;if(null==t||0===t.length||t!=t)return void a.A.error("changeUser requires a non-empty userId.");if((0,s.N)(t)>o.A.ur)return void a.A.error(`Rejected user id "${t}" because it is longer than ${o.A.ur} bytes.`);if(null!=e&&!(0,r.rK)(e,"set signature for new user","signature"))return;const n=i.Ay.rn();n&&n.changeUser(t.toString(),i.Ay.ar(),e)}},51072:function(t,e,n){n.d(e,{w:function(){return s}});var i=n(3234);function s(){if(i.Ay.rr())return i.Ay.mr()}},67520:function(t,e,n){n.d(e,{U:function(){return d}});var i=n(12397),s=n(22937),a=n(3234),o=n(29157),r=n(42806),l=n(45851),u=n(2490),c=n(67597),h=n(51072);function d(t,e,d){if(a.Ay.rr())if(u.nx.test(t)){const e=(0,o.jj)(t);if(!e)return;const d=t=>{if(!(0,u.xs)(t))return void i.A.error(`Decoded Braze Action json is invalid: ${JSON.stringify(t,null,2)}`);const e=o.V.properties.type,p=o.V.properties.eo,b=o.V.properties.so,g=t[e];if(g===o.V.types.io){const e=t[p];for(const t of e)d(t)}else{const e=t[b];let u,d;switch(g){case o.V.types.logCustomEvent:Promise.resolve().then(n.bind(n,81003)).then(({logCustomEvent:t})=>{a.Ay.nn()?(d=Array.prototype.slice.call(e),t(...d)):i.A.error(s.xE)});break;case o.V.types.requestPushPermission:n.e(7597).then(n.bind(n,17597)).then(({requestPushPermission:t})=>{a.Ay.nn()?"Safari"===r.A.browser&&r.A.OS===l.u.ao?window.navigator.standalone&&t():t():i.A.error(s.xE)});break;case o.V.types.setEmailNotificationSubscriptionType:case o.V.types.setPushNotificationSubscriptionType:case o.V.types.setCustomUserAttribute:case o.V.types.addToSubscriptionGroup:case o.V.types.removeFromSubscriptionGroup:case o.V.types.addToCustomAttributeArray:case o.V.types.removeFromCustomAttributeArray:u=(0,h.w)(),u&&u[g](...Array.prototype.slice.call(e));break;case o.V.types.co:case o.V.types.mo:d=Array.prototype.slice.call(e),c.uD.openUri(...d);break;default:i.A.info(`Ignoring unknown Braze Action: ${g}`)}}};d(e)}else c.uD.openUri(t,e,d)}},81003:function(t,e,n){n.d(e,{logCustomEvent:function(){return h}});var i=n(3234),s=n(81694),a=n(12397),o=n(34133),r=n(77069),l=n(53261),u=n(2490),c=n(22937);function h(t,e){if(!i.Ay.rr())return!1;if(null==t||t.length<=0)return a.A.error(`logCustomEvent requires a non-empty eventName, got "${t}". Ignoring event.`),!1;if(!(0,u.Dz)(t,"log custom event","the event name"))return!1;const[n,h]=(0,u.fB)(e,c.aV,"eventProperties",`log custom event "${t}"`,"event");if(!n)return!1;const d=i.Ay.v();if(d&&d.je(t))return a.A.info(`Custom Event "${t}" is blocklisted, ignoring.`),!1;const p=s.A.ut(o.w.CustomEvent,{n:t,p:h});if(p.tt){a.A.info(`Logged custom event "${t}".`);for(const n of p.$e)l.B.m().Ce(r.A.Ee,[t,e],n)}return p.tt}},11726:function(t,e,n){n.d(e,{g:function(){return h},x:function(){return d}});var i=n(53124),s=n(37020),a=n(27637),o=n(98004),r=n(78881),l=n(12520),u=n(52084),c=n(12397);function h(t){if(!t)return null;if(t.is_control)return s.A.fromJson(t);let e=t.type;null!=e&&(e=e.toUpperCase());const n=t.message,h=t.text_align_message,d=t.slide_from,p=t.extras,b=t.trigger_id,g=t.click_action,m=t.uri,f=t.open_target,v=t.message_close,A=t.duration,w=t.icon,E=t.image_url,y=t.image_style,x=t.icon_color,S=t.icon_bg_color,C=t.bg_color,k=t.text_color,_=t.close_btn_color,T=t.header,N=t.text_align_header,O=t.header_text_color,I=t.frame_color,D=[];let M=t.btns;null==M&&(M=[]);for(let t=0;t<M.length;t++)D.push(r.A.fromJson(M[t]));const z=t.crop_type,B=t.orientation,P=t.animate_in,R=t.animate_out;let U=t.html_id,L=t.css;null!=U&&""!==U&&null!=L&&""!==L||(U=void 0,L=void 0);const $=t.message_extras;let F;if(e===l.A.cs||e===i.A.bo.Fo)F=new l.A(n,h,p,b,g,m,f,v,A,w,E,y,x,S,C,k,_,P,R,T,N,O,I,D,z,U,L,$);else if(e===a.A.cs)F=new a.A(n,h,p,b,g,m,f,v,A,w,E,y,x,S,C,k,_,P,R,T,N,O,I,D,z,B,U,L,$);else if(e===u.A.cs)F=new u.A(n,h,d,p,b,g,m,f,v,A,w,E,x,S,C,k,_,P,R,U,L,$);else{if(e!==o.A.cs&&e!==i.A.bo.po&&e!==i.A.bo.Jo)return void c.A.error("Ignoring message with unknown type "+e);{const e=t.message_fields;F=new o.A(n,p,b,v,A,P,R,I,U,L,e,$),F.trusted=t.trusted||!1}}return F.uo=e,F}function d(t){const e=[];for(const n of t)e.push(new r.A(n.text,n.backgroundColor,n.textColor,n.borderColor,n.clickAction,n.uri,n.id));return e}},57193:function(t,e,n){n.d(e,{A:function(){return _}});var i=n(5126),s=n(3234),a=n(37020),o=n(98004),r=n(53124),l=n(78881),u=n(81694),c=n(11726),h=n(83543),d=n(25810),p=n(34133),b=n(12397),g=n(9314),m=n(48393),f=n(2490),v=n(29157),A=n(26903),w=n(11504),E=n(70226),y=n(27637),x=n(12520),S=n(52084);class C{constructor(t,e,n,i){this.S=t,this.T=e,this.C=n,this.Cs=i,this.S=t,this.T=e,this.C=n,this.Cs=i,this.Mi=new g.A,s.Ay.F(this.Mi),this.Bi=1e3,this._i=6e4,this.Pi=null,this.Gi=null,this.$i=null}Oi(){return this.Mi}Xi(t){return this.Mi.Dt(t)}Hi(){return this.Pi}Ji(t){this.Pi=t}ut(t,e,n,i){const s=new d.A;let r;if(e===p.w.Ki||t instanceof a.A){if(!t._t())return b.A.info("This in-app message has already received an impression. Ignoring analytics event."),s}else if((e===p.w.Li||t instanceof o.A&&e===p.w.Qi)&&!t.$t(i))return b.A.info("This in-app message has already received a click. Ignoring analytics event."),s;return r=t instanceof a.A?{trigger_ids:[t.triggerId]}:this.Vi(t),null==r?s:(t.messageExtras&&(r.message_extras=t.messageExtras),null!=n&&(r.bid=n),u.A.ut(e,r))}Wi(t,e){const n=new d.A;if(!t.$t())return b.A.info("This in-app message button has already received a click. Ignoring analytics event."),n;const i=this.Vi(e);
1return null==i?n:t.id===l.A.Yi?(b.A.info("This in-app message button does not have a tracking id. Not logging event to Braze servers."),n):(null!=t.id&&(i.bid=t.id),u.A.ut(p.w.Qi,i))}Zi(t){const e=t.messageFields;return null!=e&&e.is_push_primer||!1}Ir(t){if(!(t instanceof r.A))return;const e=t=>{if(!t)return;const e=(0,v.jj)(t);return(0,v.qj)(e)?(0,v.$6)(v.mY.Mr,"In-App Message"):(0,v.dy)(e)&&!A.A.Tr()?(0,v.$6)(v.mY.wr,"In-App Message"):void 0};if(this.Zi(t)&&!A.A.Tr())return"In-App Message contains a push prompt, but is not eligible for a push prompt. Ignoring.";const n=t.buttons||[];let i;for(const t of n)if(t.clickAction===r.A.ClickAction.URI&&t.uri&&f.nx.test(t.uri)&&(i=e(t.uri),i))return i;return t.clickAction===r.A.ClickAction.URI&&t.uri&&f.nx.test(t.uri)?e(t.uri):void 0}Br(t,e){e!==this.$i&&this._r(),this.Gi=t,this.$i=e}_r(){null!=this.Gi&&(clearTimeout(this.Gi),this.Gi=null,this.$i=null)}qr(t,e,n,s){const a=this.S;if(!a)return;this.$i&&t.triggerId!==this.$i&&(this._r(),w.A.vi(this.C,w.A.O.Er));const o=a.Gr(!1,!1),r=a.H(o);r.template={trigger_id:t.triggerId,trigger_event_type:e},null!=n&&(r.template.data=n.Nr());const l=a.J(r,w.A.O.Er);a.V(r,(a=-1)=>{const o=this.S;if(!o)return;const u=(new Date).valueOf();w.A.W(this.C,w.A.O.Er,u),-1!==a&&l.push(["X-Braze-Req-Tokens-Remaining",a.toString()]);let d,p,g=!1;i.A.Y({url:`${o.Z()}/template/`,data:r,headers:l,tt:e=>{if(!o.st(r,e,l))return void("function"==typeof t.$r&&t.$r());if(o.it(),null==e||null==e.templated_message)return;const n=e.templated_message;if(n.type!==m.A.Or.Cr)return;const i=(0,c.g)(n.data);if(null==i)return;const s=this.Ir(i);if(s)return b.A.error(s),void("function"==typeof t.$r&&t.$r());"function"==typeof t.Xr&&t.Xr(i)},error:e=>{g=!0,d=e,p=`getting user personalization for message ${t.triggerId}.`},nt:(i,a)=>{if((new Date).valueOf()-t.Hr<t.Jr){let i=0;if(g){const e=Math.min(t.Jr,this._i),n=this.Bi;null==s&&(s=n),i=Math.min(e,(0,h.C)(n,3*s))}o.rt(a,()=>{this.qr(t,e,n,i)},w.A.O.Er,e=>this.Br(e,t.triggerId),()=>this._r(),i)}g&&o.et(d,p)}})},w.A.O.Er)}Vi(t){if(null==t.triggerId)return b.A.info("The in-app message has no analytics id. Not logging event to Braze servers."),null;const e={};return null!=t.triggerId&&(e.trigger_ids=[t.triggerId]),e}sn(t){return!!this.C&&!(!(t&&t instanceof r.A&&t.constructor!==r.A)||t instanceof a.A)&&this.C.Bt(E.d.gt.Kr,t.bt())}Ar(){if(!this.C)return null;const t=this.C.ft(E.d.gt.Kr);if(!t)return null;let e;switch(t.type){case r.A.bo.Lr:e=y.A.Qr(t);break;case r.A.bo.Ur:case r.A.bo.po:case r.A.bo.Jo:e=o.A.Qr(t);break;case r.A.bo.Vr:case r.A.bo.Fo:e=x.A.Qr(t);break;case r.A.bo.Wr:e=S.A.Qr(t)}return e&&this.Yr(),e}Yr(){this.C&&this.C.Ut(E.d.gt.Kr)}}const k={aa:null,l:!1,ea:()=>(k.p(),k.aa||(k.aa=new C(s.Ay.g(),s.Ay.P(),s.Ay.j(),s.Ay.ir())),k.aa),p:()=>{k.l||(s.Ay.h(k),k.l=!0)},destroy:()=>{k.aa=null,k.l=!1}};var _=k},37020:function(t,e,n){n.d(e,{A:function(){return i}});class i{constructor(t,e){this.triggerId=t,this.messageExtras=e,this.triggerId=t,this.messageExtras=e,this.extras={},this.isControl=!0,this.Ht=!1}static fromJson(t){return new i(t.trigger_id,t.message_extras)}_t(){return!this.Ht&&(this.Ht=!0,!0)}Bo(){return this.Ht}}},27637:function(t,e,n){n.d(e,{A:function(){return a}});var i=n(11726),s=n(53124);class a extends s.A{constructor(t,e,n,i,a,o,r,l,u,c,h,d,p,b,g,m,f,v,A,w,E,y,x,S,C,k,_,T,N){l=l||s.A.DismissType.MANUAL,k=k||s.A.Orientation.PORTRAIT,super(t,e,void 0,n,i,a,o,r,l,u,c,h,d,p,b,g,m,f,v,A,w,E,y,x,S,C=C||s.A.CropType.CENTER_CROP,k,_,T,N),this.$o=s.A.TextAlignment.CENTER}bt(){return super.bt(a.cs)}static Qr(t){return new a(t[s.A.es.ra],t[s.A.es.sa],t[s.A.es.qs],t[s.A.es.ta],t[s.A.es.ia],t[s.A.es.URI],t[s.A.es.oa],t[s.A.es.pa],t[s.A.es.ma],t[s.A.es.na],t[s.A.es.ls],t[s.A.es.ua],t[s.A.es.ca],t[s.A.es.fa],t[s.A.es.da],t[s.A.es.la],t[s.A.es.ga],t[s.A.es.ja],t[s.A.es.xa],t[s.A.es.za],t[s.A.es.ha],t[s.A.es.va],t[s.A.es.wa],(0,i.x)(t[s.A.es.ya]),t[s.A.es.Sa],t[s.A.es.ba],t[s.A.es.ka],t[s.A.es.CSS],t[s.A.es.qa])}}a.cs=s.A.bo.Lr},98004:function(t,e,n){n.d(e,{A:function(){return s}});var i=n(53124);class s extends i.A{constructor(t,e,n,s,a,o,r,l,u,c,h,d){super(t,void 0,void 0,e,n,void 0,void 0,void 0,s=s||i.A.DismissType.MANUAL,a,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,o,r,void 0,void 0,void 0,l,void 0,void 0,void 0,u,c,d),this.messageFields=h,this.messageFields=h}Po(){return!1}$t(t){if(this.uo===i.A.bo.Ur){if(this.So)return!1;this.So=!0}return this.ti.X(t),!0}bt(){const t=super.bt(s.cs);return t[i.A.es.Eo]=this.messageFields,t}static Qr(t){return new s(t[i.A.es.ra],t[i.A.es.qs],t[i.A.es.ta],t[i.A.es.pa],t[i.A.es.ma],t[i.A.es.ja],t[i.A.es.xa],t[i.A.es.wa],t[i.A.es.ka],t[i.A.es.CSS],t[i.A.es.Eo],t[i.A.es.qa])}}s.cs=i.A.bo.Ur},78881:function(t,e,n){n.d(e,{A:function(){return a}});var i=n(53124),s=n(9314);class a{constructor(t,e,n,o,r,l,u){this.text=t,this.backgroundColor=e,this.textColor=n,this.borderColor=o,this.clickAction=r,this.uri=l,this.id=u,this.text=t||"",this.backgroundColor=e||i.A.th.sh,this.textColor=n||i.A.th.ih,this.borderColor=o||this.backgroundColor,this.clickAction=r||i.A.ClickAction.NONE,this.uri=l,null==u&&(u=a.Yi),this.id=u,this.So=!1,this.ti=new s.A}subscribeToClickedEvent(t){return this.ti.Dt(t)}removeSubscription(t){this.ti.removeSubscription(t)}removeAllSubscriptions(){this.ti.removeAllSubscriptions()}$t(){return!this.So&&(this.So=!0,this.ti.X(),!0)}static fromJson(t){return new a(t.text,t.bg_color,t.text_color,t.border_color,t.click_action,t.uri,t.id)}}a.Yi=-1},53124:function(t,e,n){n.d(e,{A:function(){return u}});var i=n(3234),s=n(42806),a=n(16546),o=n(44217),r=n(9314),l=n(94647);class u{constructor(t,e,n,i,s,a,o,l,c,h,d,p,b,g,m,f,v,A,w,E,y,x,S,C,k,_,T,N,O,I){this.message=t,this.messageAlignment=e,this.slideFrom=n,this.extras=i,this.triggerId=s,this.clickAction=a,this.uri=o,this.openTarget=l,this.dismissType=c,this.duration=h,this.icon=d,this.imageUrl=p,this.imageStyle=b,this.iconColor=g,this.iconBackgroun
1dColor=m,this.backgroundColor=f,this.textColor=v,this.closeButtonColor=A,this.animateIn=w,this.animateOut=E,this.header=y,this.headerAlignment=x,this.headerTextColor=S,this.frameColor=C,this.buttons=k,this.cropType=_,this.orientation=T,this.htmlId=N,this.css=O,this.messageExtras=I,this.message=t,this.messageAlignment=e||u.TextAlignment.CENTER,this.duration=h||5e3,this.slideFrom=n||u.SlideFrom.BOTTOM,this.extras=i||{},this.triggerId=s,this.clickAction=a||u.ClickAction.NONE,this.uri=o,this.openTarget=l||u.OpenTarget.NONE,this.dismissType=c||u.DismissType.AUTO_DISMISS,this.icon=d,this.imageUrl=p,this.imageStyle=b||u.ImageStyle.TOP,this.iconColor=g||u.th.ih,this.iconBackgroundColor=m||u.th.sh,this.backgroundColor=f||u.th.ih,this.textColor=v||u.th.hh,this.closeButtonColor=A||u.th.eh,this.animateIn=w,null==this.animateIn&&(this.animateIn=!0),this.animateOut=E,null==this.animateOut&&(this.animateOut=!0),this.header=y,this.headerAlignment=x||u.TextAlignment.CENTER,this.headerTextColor=S||u.th.hh,this.frameColor=C||u.th.Eh,this.buttons=k||[],this.cropType=_||u.CropType.FIT_CENTER,this.orientation=T,this.htmlId=N,this.css=O,this.isControl=!1,this.messageExtras=I,this.nh=!1,this.Ht=!1,this.So=!1,this.Th=!1,this.jo=null,this.wo=null,this.ti=new r.A,this.oh=new r.A,this.$o=u.TextAlignment.CENTER}subscribeToClickedEvent(t){return this.ti.Dt(t)}subscribeToDismissedEvent(t){return this.oh.Dt(t)}removeSubscription(t){this.ti.removeSubscription(t),this.oh.removeSubscription(t)}removeAllSubscriptions(){this.ti.removeAllSubscriptions(),this.oh.removeAllSubscriptions()}closeMessage(){this.ll(this.jo)}vo(){return!0}Po(){return this.vo()}ho(){return null!=this.htmlId&&this.htmlId.length>4}lo(){return this.ho()&&null!=this.css&&this.css.length>0}do(){if(this.ho()&&this.lo())return this.htmlId+"-css"}_t(){return!this.Ht&&(this.Ht=!0,!0)}Bo(){return this.Ht}$t(t){return!this.So&&(this.So=!0,this.ti.X(),!0)}Qt(){return!this.Th&&(this.Th=!0,this.oh.X(),!0)}hide(t){if(t&&t.parentNode){let e=t.closest(".ab-iam-root");if(null==e&&(e=t),this.vo()&&null!=e.parentNode){const t=e.parentNode.classList;t&&t.contains(u.rh)&&t.remove(u.rh),document.body.removeEventListener("touchmove",u.lh)}e.className=e.className.replace(u.uh,u.ah)}return this.animateOut||!1}ll(t,e){if(null==t)return;let n;this.jo=null,n=-1===t.className.indexOf("ab-in-app-message")?t.getElementsByClassName("ab-in-app-message")[0]:t;let i=!1;n&&(i=this.hide(n));const a=document.body;let o;null!=a&&(o=a.scrollTop);const r=()=>{if(t&&t.parentNode){let e=t.closest(".ab-iam-root");null==e&&(e=t),e.parentNode&&e.parentNode.removeChild(e)}const n=this.do();if(null!=n){const t=document.getElementById(n);t&&t.parentNode&&t.parentNode.removeChild(t)}null!=a&&"Safari"===s.A.browser&&(a.scrollTop=o),e?e():this.Qt()};i?setTimeout(r,u.Ih):r(),this.wo&&this.wo.focus()}zo(){return document.createTextNode(this.message||"")}ko(t){let e="";this.message||this.header||!this.vo()||(e="Modal Image"),t.setAttribute("alt",e)}static lh(t){if(t.targetTouches&&t.targetTouches.length>1)return;const e=t.target;e&&e.classList&&e.classList.contains("ab-message-text")&&e.scrollHeight>e.clientHeight||document.querySelector(`.${u.rh}`)&&t.cancelable&&t.preventDefault()}Ah(t){const e=t.parentNode;this.vo()&&null!=e&&this.orientation!==u.Orientation.LANDSCAPE&&(null!=e.classList&&e.classList.add(u.rh),document.body.addEventListener("touchmove",u.lh,!!(0,a.CF)()&&{passive:!1})),t.className+=" "+u.uh}static Oh(t){if(t.keyCode===o.c._h&&!i.Ay.ee(i.lw.mh)&&document.querySelectorAll(".ab-modal-interactions").length>0){const t=document.getElementsByClassName("ab-html-message");let e=!1;for(const n of t){let t=null;(0,l.B)(n)&&n.contentWindow&&(t=n.contentWindow.document.getElementsByClassName("ab-programmatic-close-button")[0]),null!=t&&((0,a.jp)(t),e=!0)}if(!e){const t=document.querySelectorAll(".ab-modal-interactions > .ab-close-button")[0];null!=t&&(0,a.jp)(t)}}}Lh(){this.nh||i.Ay.ee(i.lw.mh)||(document.addEventListener("keydown",u.Oh,!1),i.Ay.Nh(()=>{document.removeEventListener("keydown",u.Oh)}),this.nh=!0)}bt(t){const e={};return t?(e[u.es.ra]=this.message,e[u.es.sa]=this.messageAlignment,e[u.es.Sh]=this.slideFrom,e[u.es.qs]=this.extras,e[u.es.ta]=this.triggerId,e[u.es.ia]=this.clickAction,e[u.es.URI]=this.uri,e[u.es.oa]=this.openTarget,e[u.es.pa]=this.dismissType,e[u.es.ma]=this.duration,e[u.es.na]=this.icon,e[u.es.ls]=this.imageUrl,e[u.es.ua]=this.imageStyle,e[u.es.ca]=this.iconColor,e[u.es.fa]=this.iconBackgroun
1dColor,e[u.es.da]=this.backgroundColor,e[u.es.la]=this.textColor,e[u.es.ga]=this.closeButtonColor,e[u.es.ja]=this.animateIn,e[u.es.xa]=this.animateOut,e[u.es.za]=this.header,e[u.es.ha]=this.headerAlignment,e[u.es.va]=this.headerTextColor,e[u.es.wa]=this.frameColor,e[u.es.ya]=this.buttons,e[u.es.Sa]=this.cropType,e[u.es.ba]=this.orientation,e[u.es.ka]=this.htmlId,e[u.es.CSS]=this.css,e[u.es.hs]=t,e[u.es.qa]=this.messageExtras,e):e}}u.th={hh:4281545523,ih:4294967295,sh:4278219733,Rh:4293914607,Mh:4283782485,Eh:3224580915,eh:4288387995},u.Co={Dh:"hd",xo:"ias",Ch:"of",dh:"do",Uh:"umt",bh:"tf",Ph:"te"},u.SlideFrom={TOP:"TOP",BOTTOM:"BOTTOM"},u.ClickAction={NEWS_FEED:"NEWS_FEED",URI:"URI",NONE:"NONE"},u.DismissType={AUTO_DISMISS:"AUTO_DISMISS",MANUAL:"SWIPE"},u.OpenTarget={NONE:"NONE",BLANK:"BLANK"},u.ImageStyle={TOP:"TOP",GRAPHIC:"GRAPHIC"},u.Orientation={PORTRAIT:"PORTRAIT",LANDSCAPE:"LANDSCAPE"},u.TextAlignment={START:"START",CENTER:"CENTER",END:"END"},u.CropType={CENTER_CROP:"CENTER_CROP",FIT_CENTER:"FIT_CENTER"},u.bo={Wr:"SLIDEUP",Vr:"MODAL",Fo:"MODAL_STYLED",Lr:"FULL",Ur:"WEB_HTML",po:"HTML",Jo:"HTML_FULL"},u.Ih=500,u.ph=200,u.uh="ab-show",u.ah="ab-hide",u.rh="ab-pause-scrolling",u.es={ra:"m",sa:"ma",Sh:"sf",qs:"e",ta:"ti",ia:"ca",URI:"u",oa:"oa",pa:"dt",ma:"d",na:"i",ls:"iu",ua:"is",ca:"ic",fa:"ibc",da:"bc",la:"tc",ga:"cbc",ja:"ai",xa:"ao",za:"h",ha:"ha",va:"htc",wa:"fc",ya:"b",Sa:"ct",ba:"o",ka:"hi",CSS:"css",hs:"type",Eo:"messageFields",qa:"me"}},12520:function(t,e,n){n.d(e,{A:function(){return a}});var i=n(11726),s=n(53124);class a extends s.A{constructor(t,e,n,i,a,o,r,l,u,c,h,d,p,b,g,m,f,v,A,w,E,y,x,S,C,k,_,T){super(t,e,void 0,n,i,a,o,r,l=l||s.A.DismissType.MANUAL,u,c,h,d,p,b,g,m,f,v,A,w,E,y,x,S,C=C||s.A.CropType.FIT_CENTER,void 0,k,_,T),this.$o=s.A.TextAlignment.CENTER}bt(){return super.bt(a.cs)}static Qr(t){return new a(t[s.A.es.ra],t[s.A.es.sa],t[s.A.es.qs],t[s.A.es.ta],t[s.A.es.ia],t[s.A.es.URI],t[s.A.es.oa],t[s.A.es.pa],t[s.A.es.ma],t[s.A.es.na],t[s.A.es.ls],t[s.A.es.ua],t[s.A.es.ca],t[s.A.es.fa],t[s.A.es.da],t[s.A.es.la],t[s.A.es.ga],t[s.A.es.ja],t[s.A.es.xa],t[s.A.es.za],t[s.A.es.ha],t[s.A.es.va],t[s.A.es.wa],(0,i.x)(t[s.A.es.ya]),t[s.A.es.Sa],t[s.A.es.ka],t[s.A.es.CSS],t[s.A.es.qa])}}a.cs=s.A.bo.Vr},52084:function(t,e,n){n.d(e,{A:function(){return a}});var i=n(53124),s=n(16546);class a extends i.A{constructor(t,e,n,s,a,o,r,l,u,c,h,d,p,b,g,m,f,v,A,w,E,y){m=m||i.A.th.Mh,g=g||i.A.th.Rh,super(t,e=e||i.A.TextAlignment.START,n,s,a,o,r,l,u,c,h,d,void 0,p,b,g,m,f,v,A,void 0,void 0,void 0,void 0,void 0,void 0,void 0,w,E,y),this.$o=i.A.TextAlignment.START}vo(){return!1}zo(){const t=document.createElement("span");return t.appendChild(document.createTextNode(this.message||"")),t}Ah(t){const e=t.getElementsByClassName("ab-in-app-message")[0];s.e0.Ho(e,!0,!0)||(this.slideFrom===i.A.SlideFrom.TOP?e.style.top="0px":e.style.bottom="0px"),super.Ah(t)}bt(){return super.bt(a.cs)}static Qr(t){return new a(t[i.A.es.ra],t[i.A.es.sa],t[i.A.es.Sh],t[i.A.es.qs],t[i.A.es.ta],t[i.A.es.ia],t[i.A.es.URI],t[i.A.es.oa],t[i.A.es.pa],t[i.A.es.ma],t[i.A.es.na],t[i.A.es.ls],t[i.A.es.ca],t[i.A.es.fa],t[i.A.es.da],t[i.A.es.la],t[i.A.es.ga],t[i.A.es.ja],t[i.A.es.xa],t[i.A.es.ka],t[i.A.es.CSS],t[i.A.es.qa])}}a.cs=i.A.bo.Wr},94647:function(t,e,n){n.d(e,{B:function(){return i}});const i=t=>null!==t&&"IFRAME"===t.tagName},26903:function(t,e){const n={mn:()=>"serviceWorker"in navigator&&"undefined"!=typeof ServiceWorkerRegistration&&"showNotification"in ServiceWorkerRegistration.prototype&&"PushManager"in window,vn:()=>"safari"in window&&"pushNotification"in window.safari&&"function"==typeof window.safari.pushNotification.permission&&"function"==typeof window.safari.pushNotification.requestPermission,isPushSupported:()=>n.mn()||n.vn(),isPushBlocked:()=>{const t=n.isPushSupported()&&"Notification"in window&&null!=window.Notification&&null!=window.Notification.permission&&"denied"===window.Notification.permission,e=n.isPushSupported()&&(!("Notification"in window)||null==window.Notification);return t||e},isPushPermissionGranted:()=>n.isPushSupported()&&"Notification"in window&&null!=window.Notification&&null!=window.Notification.permission&&"granted"===window.Notification.permission,Tr:()=>
1!n.isPushBlocked()&&n.isPushSupported()&&!n.isPushPermissionGranted()};e.A=n},33779:function(t,e,n){n.d(e,{A:function(){return u}});var i=n(3312),s=n(12397),a=n(34133),o=n(2490),r=n(22937),l=n(8037);class u{constructor(t,e){this.Cs=t,this.Fi=e,this.Cs=t,this.Fi=e}getUserId(t){const e=this.Cs.getUserId();if("function"!=typeof t)return e;s.A.warn("The callback for getUserId is deprecated. You can access its return value directly instead (e.g. `const id = braze.getUser().getUserId()`)"),t(e)}addAlias(t,e){return!(0,o.rK)(t,"add alias","the alias",!1)||t.length<=0?(s.A.error("addAlias requires a non-empty alias"),!1):!(0,o.rK)(e,"add alias","the label",!1)||e.length<=0?(s.A.error("addAlias requires a non-empty label"),!1):this.Fi.Cn(t,e).tt}setFirstName(t){return!!(0,o.rK)(t,"set first name","the firstName",!0)&&this.Cs.nu("first_name",t)}setLastName(t){return!!(0,o.rK)(t,"set last name","the lastName",!0)&&this.Cs.nu("last_name",t)}setEmail(t){return null===t||(0,o.B9)(t)?this.Cs.nu("email",t):(s.A.error(`Cannot set email address - "${t}" did not pass RFC-5322 validation.`),!1)}setGender(t){return"string"==typeof t&&(t=t.toLowerCase()),!(null!==t&&!(0,i.BY)(u.Genders,t,`Gender "${t}" is not a valid gender.`,"User.Genders"))&&this.Cs.nu("gender",t)}setDateOfBirth(t,e,n){return null===t&&null===e&&null===n?this.Cs.nu("dob",null):(t=null!=t?parseInt(t.toString()):null,e=null!=e?parseInt(e.toString()):null,n=null!=n?parseInt(n.toString()):null,null==t||null==e||null==n||isNaN(t)||isNaN(e)||isNaN(n)||e>12||e<1||n>31||n<1?(s.A.error("Cannot set date of birth - parameters should comprise a valid date e.g. setDateOfBirth(1776, 7, 4);"),!1):this.Cs.nu("dob",`${t}-${e}-${n}`))}setCountry(t){return!!(0,o.rK)(t,"set country","the country",!0)&&this.Cs.nu("country",t)}setHomeCity(t){return!!(0,o.rK)(t,"set home city","the homeCity",!0)&&this.Cs.nu("home_city",t)}setLanguage(t){return!!(0,o.rK)(t,"set language","the language",!0)&&this.Cs.nu("language",t)}setEmailNotificationSubscriptionType(t){return!!(0,i.BY)(u.NotificationSubscriptionTypes,t,`Email notification setting "${t}" is not a valid subscription type.`,"User.NotificationSubscriptionTypes")&&this.Cs.nu("email_subscribe",t)}setPushNotificationSubscriptionType(t){return!!(0,i.BY)(u.NotificationSubscriptionTypes,t,`Push notification setting "${t}" is not a valid subscription type.`,"User.NotificationSubscriptionTypes")&&this.Cs.nu("push_subscribe",t)}setPhoneNumber(t){return!!(0,o.rK)(t,"set phone number","the phoneNumber",!0)&&(null===t||t.match(u.Fn)?this.Cs.nu("phone",t):(s.A.error(`Cannot set phone number - "${t}" did not pass validation.`),!1))}setLastKnownLocation(t,e,n,i,a){return null==t||null==e?(s.A.error("Cannot set last-known location - latitude and longitude are required."),!1):(t=parseFloat(t.toString()),e=parseFloat(e.toString()),null!=n&&(n=parseFloat(n.toString())),null!=i&&(i=parseFloat(i.toString())),null!=a&&(a=parseFloat(a.toString())),isNaN(t)||isNaN(e)||null!=n&&isNaN(n)||null!=i&&isNaN(i)||null!=a&&isNaN(a)?(s.A.error("Cannot set last-known location - all supplied parameters must be numeric."),!1):t>90||t<-90||e>180||e<-180?(s.A.error("Cannot set last-known location - latitude and longitude are bounded by ±90 and ±180 respectively."),!1):null!=n&&n<0||null!=a&&a<0?(s.A.error("Cannot set last-known location - accuracy and altitudeAccuracy may not be negative."),!1):this.Fi.setLastKnownLocation(this.Cs.getUserId(),t,e,i,n,a).tt)}setCustomUserAttribute(t,e,n){if(!(0,o.ZJ)(t))return!1;const s=e=>{const[n]=(0,o.fB)(e,r.KG,"attribute value",`set custom user attribute "${t}"`,"custom user attribute");return n};if((0,i.cy)(e)){const[n,i]=(0,o.Z2)(t,e);if(!n&&!i&&0!==e.length)return!1;if(n||0===e.length)return this.Fi.Ln(a.w.$n,t,e).tt;for(const t of e)if(!s(t))return!1}else if((0,i.Gv)(e)){if(!s(e))return!1;if(n)return this.Fi.Ln(a.w.Bn,t,e).tt}else{if(void 0===e||!(0,o.uZ)(e))return!1;if((0,i.$P)(e)&&(e=(0,l.EQ)(e)),"string"==typeof e&&!(0,o.Dz)(e,`set custom user attribute "${t}"`,"the element in the given array"))return!1}return this.Cs.setCustomUserAttribute(t,e)}addToCustomAttributeArray(t,e){return!!(0,o.Dz)(t,"add to custom user attribute array","the given key")&&!(null!=e&&!(0,o.Dz)(e,"add to custom user attribute array","the given value"))&&this.Fi.Ln(a.w.On,t,e).tt}removeFromCustomAttributeArray(t,e){return!!(0,o.Dz)(t,"remove from custom user attribute array","the given key")&&!(null!=e&&!(0,o.Dz)(e,"remove from custom user attribute array","the given value"))&&this.Fi.Ln(a.w.Gn,t,e).tt}incrementCustomUserAttribute(t,e){if(!(0,o.Dz)(t,"increment custom user attribute","the given key"))return!1;null==e&&(e=1);const n=parseInt(e.toString());return isNaN(n)||n!==parseFloat(e.toString())?(s.A.error(`Cannot increment custom user attribute because the given incrementValue "${e}" is not an integer.`),!1):this.Fi.Ln(a.w.Hn,t,n).tt}setCustomLocationAttribute(t,e,n){return!!(0,o.Dz)(t,"set custom location attribute","the given key")&&((null!==e||null!==n)&&(e=null!=e?parseFloat(e.toString()):null,n=null!=n?parseFloat(n.toString()):null,null==e&&null!=n||null!=e&&null==n||null!=e&&(isNaN(e)||e>90||e<-90)||null!=n&&(isNaN(n)||n>
1180||n<-180))?(s.A.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.Fi.Kn(t,e,n).tt)}addToSubscriptionGroup(t){return!(0,o.rK)(t,"add user to subscription group","subscription group ID",!1)||t.length<=0?(s.A.error("addToSubscriptionGroup requires a non-empty subscription group ID"),!1):this.Fi.Mn(t,u.Yn.SUBSCRIBED).tt}removeFromSubscriptionGroup(t){return!(0,o.rK)(t,"remove user from subscription group","subscription group ID",!1)||t.length<=0?(s.A.error("removeFromSubscriptionGroup requires a non-empty subscription group ID"),!1):this.Fi.Mn(t,u.Yn.UNSUBSCRIBED).tt}setLineId(t){return(0,o.rK)(t,"set LINE user ID","the ID",!0)&&0!==(null==t?void 0:t.length)?t&&t.length>u.Jn?(s.A.error(`Rejected LINE user ID ${t} because it is longer than ${u.Jn} characters.`),!1):this.Cs.nu("native_line_id",t):(s.A.error("setLineId requires a non-empty ID"),!1)}An(t,e,n,i,s){this.Cs.An(t,e,n,i,s),this.Fi.Qn()}xn(t){this.Cs.xn(t)}}u.Genders={MALE:"m",FEMALE:"f",OTHER:"o",UNKNOWN:"u",NOT_APPLICABLE:"n",PREFER_NOT_TO_SAY:"p"},u.NotificationSubscriptionTypes={OPTED_IN:"opted_in",SUBSCRIBED:"subscribed",UNSUBSCRIBED:"unsubscribed"},u.Fn=/^[0-9 .\\(\\)\\+\\-]+$/,u.Yn={SUBSCRIBED:"subscribed",UNSUBSCRIBED:"unsubscribed"},u.Xn="user_id",u.lu="custom",u.ur=997,u.Jn=33},72765:function(t,e,n){n.d(e,{A:function(){return i}});class i{constructor(){}U(t){}changeUser(t=!1){}clearData(t=!1){}}},22937:function(t,e,n){n.d(e,{$k:function(){return i},Fn:function(){return h},KG:function(){return l},RW:function(){return o},aV:function(){return r},et:function(){return b},fX:function(){return s},mO:function(){return d},og:function(){return g},s1:function(){return a},uR:function(){return p},uy:function(){return c},xE:function(){return u}});const i=100,s="inAppMessage must be an InAppMessage object",a="must be a Card object",o=500,r="logCustomEvent",l="setCustomUserAttribute",u="Braze must be initialized before calling methods.",c=30,h=30,d=72e5,p=15,b=1,g="data-update-subscription-id"},81694:function(t,e,n){var i=n(12397),s=n(3234),a=n(78644),o=n(25810);const r={ut:(t,e,n)=>{var r,l;const u=new o.A,c=s.Ay.P();if(!c)return i.A.info(`Not logging event with type "${t}" because the current session ID could not be found.`),u;const h=c.Qo();return u.$e.push(new a.A(n||(null===(r=s.Ay.ir())||void 0===r?void 0:r.getUserId()),t,(new Date).valueOf(),h,e)),u.tt=(null===(l=s.Ay.j())||void 0===l?void 0:l.Vo(u.$e))||!1,u}};e.A=r},36403:function(t,e,n){n.d(e,{changeUser:function(){return i.changeUser},getUser:function(){return s.w},initialize:function(){return o},logCustomEvent:function(){return r.logCustomEvent},openSession:function(){return d},setLogger:function(){return p},showInAppMessage:function(){return K},subscribeToInAppMessage:function(){return Y},wipeData:function(){return m}});var i=n(81946),s=n(51072),a=n(3234);function o(t,e){return a.Ay.initialize(t,e)}var r=n(81003),l=n(82505),u=n(12397),c=n(77069),h=n(53261);function d(){if(!a.Ay.rr())return;const t=a.Ay.rn();if(!t)return;t.openSession();const e=l.A.Ls.Fs,n=new l.A(e,u.A);n.cr(e.Ms.jr,(i,s)=>{const a=s.lastClick,o=s.trackingString;u.A.info(`Firing push click trigger from ${o} push click at ${a}`);const r=t.lr(a,o),l=function(){h.B.m().Ce(c.A.hr,[o],r)};t.br(l,l),n.ge(e.Ms.jr,i)}),n.Ns(e.Ms.kr,function(e){t.vr(e)})}function p(t){u.A.setLogger(t)}var b=n(3312),g=n(22937);function m(){const t=a.Ay.j();if(null==t)return void u.A.warn(g.xE);t.clearData();const e=(0,b.HP)(l.A.Ls);for(let t=0;t<e.length;t++){const n=e[t],i=l.A.Ls[n];new l.A(i,u.A).clearData()}if(a.Ay.rr())for(const t of a.Ay.ar())t.clearData(!0);const n=a.Ay.g();n&&n.fo()}var f=n(37020),v=n(98004),A=n(53124),w=n(52084),E=n(27637),y=n(12520);var x=n(16546),S=n(31242);function C(t,e){return null==t?"":(t=parseInt(t.toString()),isNaN(t)?"":(e&&!isNaN(parseFloat(e.toString()))||(e=1),"rgba("+[(16711680&(t>>>=0))>>>16,(65280&t)>>>8,255&t,((4278190080&t)>>>24)/255*e].join(",")+")"))}var k=n(57193),_=n(34133);function T(t){if(!a.Ay.rr())return!1;if(!(t instanceof A.A||t instanceof f.A))return u.A.error(g.fX),!1;const e=t instanceof f.A?_.w.Do:_.w.Ki;return k.A.ea().ut(t,e).tt}var N=n(67520),O=n(42806);function I(t,e,n){if(!a.Ay.rr())return!1;if(!(t instanceof v.A))return u.A.error("inAppMessage argument to logInAppMessageHtmlClick must be an HtmlMessage object."),!1;let i=_.w.Li;null!=e&&(i=_.w.Qi);const s=k.A.ea().ut(t,i,e,n);if(s.tt)for(let n=0;n<s.$e.length;n++)h.B.m().Ce(c.A.Zr,[t.triggerId,e],s.$e[n]);return s.tt}var D=n(45851),M=n(52532),z=n(67597);const B=(t,e,n,i)=>{const s=n.getAttribute("href"),a=n.onclick;return o=>{if(null!=a&&"function"==typeof a&&!1===a.bind(n)(o))return;let r=(0,M.y)(s).abButtonId;if(null!=r&&""!==r||(r=n.getAttribute("id")||void 0),null!=s&&""!==s&&0!==s.indexOf("#")){const a="blank"===(n.getAttribute("target")||"").toLowerCase().replace("_",""),l=i||t.openTarget===A.A.OpenTarget.BLANK||a,u=()=>{I(t,r,s),z.uD.openUri(s,l,o)};l?u():t.ll(e,u)}else I(t,r,s||void 0);return o.stopPropagation(),!1}},P=(t,e,i)=>{const o={display:{},web:{}},r=function(){return function(){const t=arguments;n.e(7597).then(n.bind(n,17597)).then(e=>{a.Ay.nn()?e.requestPushPermission(...Array.prototype.slice.call(t)):u.A.error(g.xE)})}},l={requestImmediateDataFlush:function(){const t=arguments;n.e(9819).then(n.bind(n,59819)).then(({requestImmediateDataFlush:e})=>{a.Ay.nn()?e(...Array.prototype.slice.call(t)):u.A.error(g.xE)})},logCustomEvent:function(){const t=arguments;Promise.resolve().then(n.bind(n,81003)).then(({logCustomEvent:e})=>{a.Ay.nn()?e(...Array.prototype.slice.call(t)):u.A.error(g.xE)})},logPurchase:function(){const t=arguments;n.e(9826).then(n.bind(n,79826)).then(({logPurchase:e})=>{a.Ay.nn()?e(...Array.prototype.slice.call(t)):u.A.error(g.xE)})},unregisterPush:function(){const t=arguments;n.e(512).then(n.bind(n,20512)).then(({unregisterPush:e})=>{a.Ay.nn()?e(...Array.prototype.slice.call(t)):u.A.error(g.xE)})},requestPushPermission:r(),changeUser:function(){const t=arguments;Promise.resolve().then(n.bind(n,81946)).then(({changeUser:e})=>{a.Ay.nn()?e(...Array.prototype.slice.call(t)):u.A.error(g.xE)})}},c=function(t){return function(){l[t](...Array.prototype.slice.call(arguments))}};for(const t of(0,b.HP)(l))o[t]=c(t);const h=["setFirstName","setLastName","setEmail","setGender","setDateOfBirth","setCountry","setHomeCity","setEmailNotificationSubscriptionType","setLanguage","addAlias","setPushNotificationSubscriptionType","setPhoneNumber","setCustomUserAttribute","addToCustomAttributeArray","removeFromCustomAttributeArray","incrementCustomUserAttribute","setCustomLocationAttribute","addToSubscriptionGroup","removeFromSubscriptionGroup","setLineId"],d=function(t){return function(){const e=(0,s.w)();e&&e[t](...Array.prototype.slice.call(arguments))}},p={};for(let t=0;t<h.length;t++)p[h[t]]=d(h[t]);o.getUser=function(){return p};const m={showFeed:e},f=function(e){return function(){const n=arguments;"function"!=typeof i?m[e](...Array.prototype.slice.call(n)):i(t,function(){m[e](...Array.prototype.slice.call(n))})}},v=o.display;for(const t of(0,b.HP)(m))v[t]=f(t);const A={registerAppboyPushMessages:r()},w=function(t){return function(){A[t](...Array.prototype.slice.call(arguments))}},E=o.web;for(const t of(0,b.HP)(A))E[t]=w(t);return o},R=(t,e,n)=>{const i=`([\\w]+)\\s*=\\s*document.createElement\\(['"]${n}['"]\\)`,s=t.match(new RegExp(i));if(s){const n=`${s[1]}.setAttribute("nonce", "${e}")`;return`${t.slice(0,s.index+s[0].length)};${n};${t.slice(s.index+s[0].length)}`}return null},U=(t,e,n)=>{let i=null;if(null!=n){i=document.createElement("html"),i.innerHTML=e||"";const t=i.getElementsByTagName("style");for(let e=0;e<t.length;e++)t[e].setAttribute("nonce",n);const s=i.getElementsByTagName("script");for(let t=0;t<s.length;t++){s[t].setAttribute("nonce",n),s[t].innerHTML=s[t].innerHTML.replace(/<style>/g,`<style nonce='${n}'>`);const e=R(s[t].innerHTML,n,"script");e&&(s[t].innerHTML=e);const i=R(s[t].innerHTML,n,"style");
1i&&(s[t].innerHTML=i)}}t.srcdoc=i?i.innerHTML:e||""};var L=n(78881);var $=n(44217);var F={Io:t=>{const e=t.querySelectorAll(".ab-close-button, .ab-message-text, .ab-message-button");let n;for(let t=0;t<e.length;t++)n=e[t],n.tabIndex=0;if(e.length>0){const n=e[0],i=e[e.length-1];t.addEventListener("keydown",e=>{const s=document.activeElement;e.keyCode===$.c.Ao&&(e.shiftKey||s!==i&&s!==t?!e.shiftKey||s!==n&&s!==t||(e.preventDefault(),i.focus()):(e.preventDefault(),n.focus()))})}},To:(t,e)=>{e.setAttribute("role","dialog"),e.setAttribute("aria-modal","true"),e.setAttribute("aria-label","Modal Message"),t&&e.setAttribute("aria-labelledby",t)},Lo:(t,e,n,i)=>{if(t.buttons&&t.buttons.length>0){const s=document.createElement("div");s.className="ab-message-buttons",n.appendChild(s);const o=n.getElementsByClassName("ab-message-text")[0];null!=o&&(o.className+=" ab-with-buttons");const r=s=>o=>(t.ll(n,()=>{(function(t,e){var n;if(!a.Ay.rr())return!1;if(!(t instanceof L.A))return u.A.error("button must be an InAppMessageButton object"),!1;if(!(e instanceof A.A))return u.A.error(g.fX),!1;const i=k.A.ea().Wi(t,e);if(i.tt)for(let s=0;s<i.$e.length;s++)h.B.m().Ce(c.A.Zr,[e.triggerId,null===(n=t.id)||void 0===n?void 0:n.toString()],i.$e[s]);i.tt})(s,t),s.clickAction===A.A.ClickAction.URI?(0,N.U)(s.uri||"",i||t.openTarget===A.A.OpenTarget.BLANK,o):s.clickAction===A.A.ClickAction.NEWS_FEED&&e()}),o.stopPropagation(),!1);for(let e=0;e<t.buttons.length;e++){const n=t.buttons[e],i=document.createElement("button");i.className="ab-message-button",i.setAttribute("type","button"),(0,x.P4)(i,"touchstart");let a=n.text;""===n.text&&(a=" "),i.appendChild(document.createTextNode(a)),t.lo()||(i.style.backgroundColor=C(n.backgroundColor),i.style.color=C(n.textColor),i.style.borderColor=C(n.borderColor)),i.onclick=r(n),s.appendChild(i)}}}},j=n(5084);function G(t,e,n,i,s,o,r,l=document.body,d="ltr"){if(t.wo=document.activeElement,t instanceof v.A)return function(t,e,n,i,s,a){const o=document.createElement("iframe");if(o.setAttribute("title","Modal Message"),s&&(o.style.zIndex=(s+1).toString()),U(o,t.message,a),o.onload=()=>{const s=o.contentWindow;s.focus();const r=s.document.getElementsByTagName("head")[0];if(null!=r){if(t.lo()){const e=document.createElement("style");e.innerHTML=t.css||"",e.id=t.do()||"",null!=a&&e.setAttribute("nonce",a),r.appendChild(e)}const e=s.document.createElement("base");null!=e&&(e.setAttribute("target","_parent"),r.appendChild(e))}const l=s.document.getElementsByTagName("title");l&&l.length>0&&o.setAttribute("title",l[0].textContent||"");const u=Object.assign(Object.assign({},P(o,e,(e,n)=>t.ll(e,n))),{closeMessage:function(){t.ll(o)},logClick:function(){I(t,...arguments)}});if(s.appboyBridge=u,s.brazeBridge=u,t.uo!==A.A.bo.po){const e=s.document.getElementsByTagName("a");for(let n=0;n<e.length;n++)e[n].onclick=B(t,o,e[n],i);const n=s.document.getElementsByTagName("button");for(let e=0;e<n.length;e++)n[e].onclick=B(t,o,n[e],i)}const c=s.document.body;if(null!=c){t.ho()&&(c.id=t.htmlId||"");const e=document.createElement("hidden");e.onclick=u.closeMessage,e.className="ab-programmatic-close-button",c.appendChild(e)}s.dispatchEvent(new CustomEvent("ab.BridgeReady")),-1!==o.className.indexOf("ab-start-hidden")&&(o.className=o.className.replace("ab-start-hidden",""),n(o))},o.className="ab-in-app-message ab-start-hidden ab-html-message ab-modal-interactions",O.A.OS===D.u.ao){const e=document.createElement("div");return e.className="ab-ios-scroll-wrapper",e.appendChild(o),t.jo=e,e}return t.jo=o,o}(t,e,n,s,o,r);const p=function(t,e,n,i,s,o,r=document.body,l="ltr"){let d=null;const p=document.createElement("div");p.dir=l,p.className="ab-in-app-message ab-start-hidden ab-background",o&&(p.style.zIndex=(o+1).toString()),t.vo()&&(p.className+=" ab-modal-interactions",p.setAttribute("tabindex","-1")),t.lo()||(p.style.color=C(t.textColor),p.style.backgroundColor=C(t.backgroundColor),function(t){return null!=t&&(t=parseInt(t.toString()),!isNaN(t)&&(4278190080&t)>>>24==0)}(t.backgroundColor)&&(p.className+=" ab-no-shadow"));const b=()=>{-1!==p.className.indexOf("ab-start-hidden")&&(p.className=p.className.replace("ab-start-hidden",""),document.querySelectorAll(".ab-iam-img-loading").length>0?i(`Cannot show in-app message ${t.message} because another message is being shown.`,A.A.Co.xo):n(p))},m=(e=!0)=>{let n=document.querySelectorAll(".ab-iam-root");n&&0!==n.length||(n=r.querySelectorAll(".ab-iam-root")),n&&n.length>0&&(n[0].classList.remove("ab-iam-img-loading"),d&&(clearTimeout(d),d=null),e?b():u.A.error(`Cannot show in-app message ${t.message} because the image failed to load.`))};t.imageStyle===A.A.ImageStyle.GRAPHIC&&(p.className+=" graphic"),t.orientation===A.A.Orientation.LANDSCAPE&&(p.className+=" landscape"),null!=t.buttons&&0===t.buttons.length&&(t.clickAction!==A.A.ClickAction.NONE&&(p.className+=" ab-clickable"),p.onclick=n=>(t.ll(p,()=>{(function(t){if(!a.Ay.rr())return!1;if(!(t instanceof A.A))return u.A.error(g.fX),!1;const e=k.A.ea().ut(t,_.w.Li);if(e){t.Bo()||T(t);for(let n=0;n<e.$e.length;n++)h.B.m().Ce(c.A.Zr,[t.triggerId],e.$e[n])}e.tt})(t),t.clickAction===A.A.ClickAction.URI?(0,N.U)(t.uri||"",s||t.openTarget===A.A.OpenTarget.BLANK,n):t.clickAction===A.A.ClickAction.NEWS_FEED&&e()}),n.stopPropagation(),!1));const f=(0,S.p)("Close Message",t.lo()?void 0:C(t.closeButtonColor),()=>{t.ll(p)},l);p.appendChild(f),o&&(f.style.zIndex=(o+2).toString());const v=document.createElement("div");v.className="ab-message-text",v.dir=l;const w=(t.messageAlignment||t.$o).toLowerCase();v.className+=" "+w+"-aligned";let E=!1;const y=document.createElement("div");if(y.className="ab-image-area",t.imageUrl){if(t.cropType===A.A.CropType.CENTER_CROP){const e=document.createElement("span");e.className="ab-center-cropped-img",e.style.backgroundImage="url("+t.imageUrl+")",e.setAttribute("role","img"),e.setAttribute("aria-label","Modal Image"),t.ko(e),y.appendChild(e)}else{const e=document.createElement("img");if(e.setAttribute("src",t.imageUrl),t.ko(e),0===document.querySelectorAll(".ab-iam-img-loading").length){E=!0;const t=document.querySelectorAll(".ab-iam-root");t&&t.length>0&&t[0].classList.add("ab-iam-img-loading"),d=window.setTimeout(()=>{m(!1)},6e4),e.onload=()=>{m()},e.onerror=()=>{m(!1)}}y.appendChild(e)}p.appendChild(y),v.className+=" ab-with-image"}else if(t.icon){y.className+=" ab-icon-area";const e=document.createElement("span");e.className="ab-icon",t.lo()||(e.style.backgroundColor=C(t.iconBackgroun
1dColor),e.style.color=C(t.iconColor));const n=document.createElement("i");n.className="fa",n.appendChild(document.createTextNode(t.icon)),n.setAttribute("aria-hidden","true"),e.appendChild(n),y.appendChild(e),p.appendChild(y),v.className+=" ab-with-icon"}if((0,x.P4)(v,"touchstart"),t.header&&t.header.length>0){const e=document.createElement("h1");e.className="ab-message-header",t.Mo=j.A.ce(),e.id=t.Mo;const n=(t.headerAlignment||A.A.TextAlignment.CENTER).toLowerCase();e.className+=" "+n+"-aligned",t.lo()||(e.style.color=C(t.headerTextColor)),e.appendChild(document.createTextNode(t.header)),v.appendChild(e)}return v.appendChild(t.zo()),p.appendChild(v),E||b(),t.jo=p,p}(t,e,n,i,s,o,l,d);if(t instanceof E.A||t instanceof y.A){const n=t instanceof E.A?"ab-fullscreen":"ab-modal";p.className+=` ${n} ab-centered`,F.Lo(t,e,p,s),F.Io(p),F.To(t.Mo,p)}else if(t instanceof w.A){p.className+=" ab-slideup";const e=p.getElementsByClassName("ab-close-button")[0];if(null!=e){const n=(0,x.RJ)("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",t.lo()?void 0:C(t.closeButtonColor));n.setAttribute("class",`ab-chevron ${d}`),e.appendChild(n)}let n,i;(0,x.sr)(p,x.X.ie,t=>{p.className+=" ab-swiped-left",null!=e&&null!=e.onclick&&e.onclick(t)}),(0,x.sr)(p,x.X.de,t=>{p.className+=" ab-swiped-right",null!=e&&null!=e.onclick&&e.onclick(t)}),t.slideFrom===A.A.SlideFrom.TOP?(n=x.X.qo,i=" ab-swiped-up"):(n=x.X.yo,i=" ab-swiped-down"),(0,x.sr)(p,n,t=>{p.className+=i,null!=e&&null!=e.onclick&&e.onclick(t)})}return p}var H=n(98824),q=n(54559);function V(){var t;(0,H.n)(t,"iam",".ab-pause-scrolling,body.ab-pause-scrolling,html.ab-pause-scrolling{overflow:hidden;touch-action:none}.ab-iam-root.v3{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:9011;-webkit-tap-highlight-color:transparent}.ab-iam-root.v3:focus{outline:0}.ab-iam-root.v3.ab-effect-fullscreen,.ab-iam-root.v3.ab-effect-html,.ab-iam-root.v3.ab-effect-modal{opacity:0}.ab-iam-root.v3.ab-effect-fullscreen.ab-show,.ab-iam-root.v3.ab-effect-html.ab-show,.ab-iam-root.v3.ab-effect-modal.ab-show{opacity:1}.ab-iam-root.v3.ab-effect-fullscreen.ab-show.ab-animate-in,.ab-iam-root.v3.ab-effect-html.ab-show.ab-animate-in,.ab-iam-root.v3.ab-effect-modal.ab-show.ab-animate-in{-webkit-transition:opacity .5s;-moz-transition:opacity .5s;-o-transition:opacity .5s;transition:opacity .5s}.ab-iam-root.v3.ab-effect-fullscreen.ab-hide,.ab-iam-root.v3.ab-effect-html.ab-hide,.ab-iam-root.v3.ab-effect-modal.ab-hide{opacity:0}.ab-iam-root.v3.ab-effect-fullscreen.ab-hide.ab-animate-out,.ab-iam-root.v3.ab-effect-html.ab-hide.ab-animate-out,.ab-iam-root.v3.ab-effect-modal.ab-hide.ab-animate-out{-webkit-transition:opacity .5s;-moz-transition:opacity .5s;-o-transition:opacity .5s;transition:opacity .5s}.ab-iam-root.v3.ab-effect-slide .ab-in-app-message{-webkit-transform:translateX(535px);-moz-transform:translateX(535px);-ms-transform:translateX(535px);transform:translateX(535px)}.ab-iam-root.v3.ab-effect-slide.ab-show .ab-in-app-message{-webkit-transform:translateX(0);-moz-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}.ab-iam-root.v3.ab-effect-slide.ab-show.ab-animate-in .ab-in-app-message{-webkit-transition:transform .5s ease-in-out;-moz-transition:transform .5s ease-in-out;-o-transition:transform .5s ease-in-out;transition:transform .5s ease-in-out}.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message{-webkit-transform:translateX(535px);-moz-transform:translateX(535px);-ms-transform:translateX(535px);transform:translateX(535px)}.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-left{-webkit-transform:translateX(-535px);-moz-transform:translateX(-535px);-ms-transform:translateX(-535px);transform:translateX(-535px)}.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-up{-webkit-transform:translateY(-535px);-moz-transform:translateY(-535px);-ms-transform:translateY(-535px);transform:translateY(-535px)}.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-down{-webkit-transform:translateY(535px);-moz-transform:translateY(535px);-ms-transform:translateY(535px);transform:translateY(535px)}.ab-iam-root.v3.ab-effect-slide.ab-hide.ab-animate-out .ab-in-app-message{-webkit-transition:transform .5s ease-in-out;-moz-transition:transform .5s ease-in-out;-o-transition:transform .5s ease-in-out;transition:transform .5s ease-in-out}.ab-iam-root.v3 .ab-ios-scroll-wrapper{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto;pointer-events:all;touch-action:auto;-webkit-overflow-scrolling:touch}.ab-iam-root.v3 .ab-in-app-message{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:fixed;text-align:center;-webkit-box-shadow:0 0 4px rgba(0,0,0,.3);-moz-box-shadow:0 0 4px rgba(0,0,0,.3);box-shadow:0 0 4px rgba(0,0,0,.3);line-height:normal;letter-spacing:normal;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',s
1ans-serif;z-index:9011;max-width:100%;overflow:hidden;display:inline-block;pointer-events:all;color:#333;color-scheme:normal}.ab-iam-root.v3 .ab-in-app-message.ab-no-shadow{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.ab-iam-root.v3 .ab-in-app-message :focus,.ab-iam-root.v3 .ab-in-app-message:focus{outline:0}.ab-iam-root.v3 .ab-in-app-message.ab-clickable{cursor:pointer}.ab-iam-root.v3 .ab-in-app-message.ab-background{background-color:#fff}.ab-iam-root.v3 .ab-in-app-message .ab-close-button{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;background-color:transparent;background-size:15px;border:none;width:15px;min-width:15px;height:15px;cursor:pointer;display:block;font-size:15px;line-height:0;padding-top:15px;padding-right:15px;padding-left:15px;padding-bottom:15px;position:absolute;top:0;z-index:9021}.ab-iam-root.v3 .ab-in-app-message .ab-close-button[dir=rtl]{left:0}.ab-iam-root.v3 .ab-in-app-message .ab-close-button[dir=ltr]{right:0}.ab-iam-root.v3 .ab-in-app-message .ab-close-button svg{-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease;fill:#9b9b9b;height:auto;width:100%}.ab-iam-root.v3 .ab-in-app-message .ab-close-button svg.ab-chevron{display:none}.ab-iam-root.v3 .ab-in-app-message .ab-close-button:active{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message .ab-close-button:focus{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message .ab-close-button:hover{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message .ab-close-button:hover svg{fill-opacity:.8}.ab-iam-root.v3 .ab-in-app-message .ab-message-text{float:none;line-height:1.5;margin:20px 25px;max-width:100%;overflow:hidden;overflow-y:auto;vertical-align:text-bottom;word-wrap:break-word;white-space:pre-wrap;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',s
1ans-serif}.ab-iam-root.v3 .ab-in-app-message .ab-message-text.start-aligned{text-align:start}.ab-iam-root.v3 .ab-in-app-message .ab-message-text.end-aligned{text-align:end}.ab-iam-root.v3 .ab-in-app-message .ab-message-text.center-aligned{text-align:center}.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar{-webkit-appearance:none;width:14px}.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar-thumb{-webkit-appearance:none;border:4px solid transparent;background-clip:padding-box;-webkit-border-radius:7px;-moz-border-radius:7px;border-radius:7px;background-color:rgba(0,0,0,.2)}.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar-button{width:0;height:0;display:none}.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar-corner{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message .ab-message-header{float:none;letter-spacing:0;margin:0;font-weight:700;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;display:block;font-size:20px;margin-bottom:10px;line-height:1.3}.ab-iam-root.v3 .ab-in-app-message .ab-message-header.start-aligned{text-align:start}.ab-iam-root.v3 .ab-in-app-message .ab-message-header.end-aligned{text-align:end}.ab-iam-root.v3 .ab-in-app-message .ab-message-header.center-aligned{text-align:center}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen,.ab-iam-root.v3 .ab-in-app-message.ab-modal,.ab-iam-root.v3 .ab-in-app-message.ab-slideup{-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;cursor:pointer;overflow:hidden;word-wrap:break-word;text-overflow:ellipsis;font-size:14px;font-weight:700;margin:20px;margin-top:calc(constant(safe-area-inset-top,0) + 20px);margin-right:calc(constant(safe-area-inset-right,0) + 20px);margin-bottom:calc(constant(safe-area-inset-bottom,0) + 20px);margin-left:calc(constant(safe-area-inset-left,0) + 20px);margin-top:calc(env(safe-area-inset-top,0) + 20px);margin-right:calc(env(safe-area-inset-right,0) + 20px);margin-bottom:calc(env(safe-area-inset-bottom,0) + 20px);margin-left:calc(env(safe-area-inset-left,0) + 20px);max-height:150px;padding:10px;right:0;background-color:#efefef}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone{max-height:66px;margin:10px;margin-top:calc(constant(safe-area-inset-top,0) + 10px);margin-right:calc(constant(safe-area-inset-right,0) + 10px);margin-bottom:calc(constant(safe-area-inset-bottom,0) + 10px);margin-left:calc(constant(safe-area-inset-left,0) + 10px);margin-top:calc(env(safe-area-inset-top,0) + 10px);margin-right:calc(env(safe-area-inset-right,0) + 10px);margin-bottom:calc(env(safe-area-inset-bottom,0) + 10px);margin-left:calc(env(safe-area-inset-left,0) + 10px);max-width:90%;max-width:calc(100% - 40px);min-width:90%;min-width:calc(100% - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-close-button{display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-close-button svg:not(.ab-chevron){display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-close-button{display:block;height:20px;padding:0 20px 0 18px;pointer-events:none;top:50%;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:12px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-close-button svg.ab-chevron{display:inline}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-close-button svg.ab-chevron.rtl{-webkit-transform:scaleX(-1);-moz-transform:scaleX(-1);-ms-transform:scaleX(-1);transform:scaleX(-1)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-message-text{border-right-width:40px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text{max-width:100%;border-right-width:10px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text span{max-height:66px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text.ab-with-icon,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text.ab-with-image{max-width:80%;max-width:calc(100% - 50px - 5px - 10px - 25px)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-image-area{width:50px;height:50px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-image-area img{max-width:100%;max-height:100%;width:auto;height:auto}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:active .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:focus .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:hover .ab-message-text{opacity:.8}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:active .ab-close-button svg.ab-chevron,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:focus .ab-close-button svg.ab-chevron,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:hover .ab-close-button svg.ab-chevron{fill-opacity:.8}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:table-cell;border-color:transparent;border-style:solid;border-width:5px 25px 5px 10px;max-width:430px;vertical-align:middle;margin:0}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text[dir=rtl]{border-width:5px 10px 5px 25px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text span{dis
1play:block;max-height:150px;overflow:auto}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text.ab-with-icon,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text.ab-with-image{max-width:365px;border-top:0;border-bottom:0}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;background-color:transparent;background-size:15px;border:none;width:15px;min-width:15px;height:15px;cursor:pointer;display:block;font-size:15px;line-height:0;padding-top:15px;padding-right:15px;padding-left:15px;padding-bottom:15px;position:absolute;top:0;z-index:9021}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button[dir=rtl]{left:0}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button[dir=ltr]{right:0}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button svg{-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease;fill:#9b9b9b;height:auto;width:100%}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button svg.ab-chevron{display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:active{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:focus{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:hover{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:hover svg{fill-opacity:.8}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area{float:none;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:table-cell;border-color:transparent;border-style:solid;border-width:5px 0 5px 5px;vertical-align:top;width:60px;margin:0}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area.ab-icon-area{width:auto}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area img{float:none;width:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen,.ab-iam-root.v3 .ab-in-app-message.ab-modal{font-size:14px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area{float:none;position:relative;display:block;overflow:hidden}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area .ab-center-cropped-img,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area .ab-center-cropped-img{background-size:cover;background-repeat:no-repeat;background-position:50% 50%;position:absolute;top:0;right:0;bottom:0;left:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-icon,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-icon{margin-top:20px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic{padding:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-message-text{display:none}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-message-buttons,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-message-buttons{bottom:0;left:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area{float:none;height:auto;margin:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-image-area img,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area img{display:block;top:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none}.ab-iam-root.v3 .ab-in-app-message.ab-modal{padding-top:20px;width:450px;max-width:450px;max-height:720px}.ab-iam-root.v3 .ab-in-app-message.ab-modal.simulate-phone{max-width:91%;max-width:calc(100% - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal.simulate-phone.graphic .ab-image-area img{max-width:91vw;max-width:calc(100vw - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text{max-height:660px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-image{max-height:524.82758621px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-icon{max-height:610px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons{margin-bottom:93px;max-height:587px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons.ab-with-image{max-height:451.82758621px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons.ab-with-icon{max-height:537px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area{margin-top:-20px;max-height:155.17241379px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area img{max-width:100%;max-height:155.17241379px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area.ab-icon-area{height:auto}.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic{width:auto;overflow:hidden}.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area{display:inline}.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area img{width:auto;max-height:720px;max-width:450px}
1.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen{width:450px;max-height:720px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape{width:720px;max-height:450px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape .ab-image-area{height:225px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape.graphic .ab-image-area{height:450px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape .ab-message-text{max-height:112px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-message-text{max-height:247px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-message-text.ab-with-buttons{margin-bottom:93px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area{height:360px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-image-area{height:720px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone{-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone:not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone:not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.graphic{display:block}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-html-message{background-color:transparent;border:none;height:100%;overflow:auto;position:relative;touch-action:auto;width:100%}.ab-iam-root.v3 .ab-in-app-message .ab-message-buttons{position:absolute;bottom:0;width:100%;padding:17px 25px 30px 25px;z-index:inherit;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ab-iam-root.v3 .ab-in-app-message .ab-message-button{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;cursor:pointer;display:inline-block;font-size:14px;font-weight:700;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',s
1ans-serif;height:44px;line-height:normal;letter-spacing:normal;margin:0;max-width:100%;min-width:80px;padding:0 12px;position:relative;text-transform:none;width:48%;width:calc(50% - 5px);border:1px solid #1b78cf;-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease;overflow:hidden;word-wrap:break-word;text-overflow:ellipsis;word-wrap:normal;white-space:nowrap}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:first-of-type{float:left;background-color:#fff;color:#1b78cf}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:last-of-type{float:right;background-color:#1b78cf;color:#fff}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:first-of-type:last-of-type{float:none;width:auto}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:transparent}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:after{-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:hover{opacity:.8}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:active:after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.08)}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:focus:after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.15)}.ab-iam-root.v3 .ab-in-app-message .ab-message-button a{color:inherit;text-decoration:inherit}.ab-iam-root.v3 .ab-in-app-message img{float:none;display:inline-block}.ab-iam-root.v3 .ab-in-app-message .ab-icon{float:none;display:inline-block;padding:10px;-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px}.ab-iam-root.v3 .ab-in-app-message .ab-icon .fa{float:none;font-size:30px;width:30px}.ab-iam-root.v3 .ab-start-hidden{visibility:hidden}.ab-iam-root.v3 .ab-centered{margin:auto;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-moz-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ab-iam-root.v3{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.ab-iam-root.v3 .ab-page-blocker{position:fixed;top:0;left:0;width:100%;height:100%;z-index:9001;pointer-events:all;background-color:rgba(51,51,51,.75)}@media (max-width:600px){.ab-iam-root.v3 .ab-in-app-message.ab-slideup{max-height:66px;margin:10px;margin-top:calc(constant(safe-area-inset-top,0) + 10px);margin-right:calc(constant(safe-area-inset-right,0) + 10px);margin-bottom:calc(constant(safe-area-inset-bottom,0) + 10px);margin-left:calc(constant(safe-area-inset-left,0) + 10px);margin-top:calc(env(safe-area-inset-top,0) + 10px);margin-right:calc(env(safe-area-inset-right,0) + 10px);margin-bottom:calc(env(safe-area-inset-bottom,0) + 10px);margin-left:calc(env(safe-area-inset-left,0) + 10px);max-width:90%;max-width:calc(100% - 40px);min-width:90%;min-width:calc(100% - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button{display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button svg:not(.ab-chevron){display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable .ab-close-button{display:block;height:20px;padding:0 20px 0 18px;pointer-events:none;top:50%;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:12px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable .ab-close-button svg.ab-chevron{display:inline}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable .ab-close-button svg.ab-chevron.rtl{-webkit-transform:scaleX(-1);-moz-transform:scaleX(-1);-ms-transform:scaleX(-1);transform:scaleX(-1)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable .ab-message-text{border-right-width:40px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text{max-width:100%;border-right-width:10px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text span{max-height:66px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text.ab-with-icon,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text.ab-with-image{max-width:80%;max-width:calc(100% - 50px - 5px - 10px - 25px)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area{width:50px;height:50px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area img{max-width:100%;max-height:100%;width:auto;height:auto}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape{-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-close-button,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen .ab-image-area,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-image-area,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen .ab-message-text,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen .ab-message-text.ab-with-buttons,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-message-text.ab-with-buttons,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape:not(.graphic),.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen:not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape:not(.graphic) .ab-message-buttons,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen:not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.graphic,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.graphic{display:block}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.graphic .ab-image-area,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.graphic .ab-message-button,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}}@media (max-width:480px){.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop){max-width:91%;max-width:calc(100% - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop).graphic .ab-image-area img{max-width:91vw;max-width:calc(100vw - 30px)}}@media (max-height:750px){.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop){max-height:91%;max-height:calc(100% - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop).graphic .ab-image-area img{max-height:91vh;max-height:calc(100vh - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text{max-height:65vh;max-height:calc(100vh - 30px - 60px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-image{max-height:45vh;max-height:calc(100vh - 30px - 155.17241379310346px - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-icon{max-height:45vh;max-height:calc(100vh - 30px - 70px - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons{max-height:50vh;max-height:calc(100vh - 30px - 93px - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons.ab-with-image{max-height:30vh;max-height:calc(100vh - 30px - 155.17241379310346px - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons.ab-with-icon{max-height:30vh;max-height:calc(100vh - 30px - 70px - 93px - 20px)}}@media (min-width:601px){.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area img{max-height:100%;max-width:100%}}@media (max-height:750px) and (min-width:601px){.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop){-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important;width:450px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop) .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop) .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop) .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop):not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop):not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).graphic{display:block}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}}@media (max-height:480px){.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop){-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop):not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop):not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic{display:block}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}}@media (max-width:750px){.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop){-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop):not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop):not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic{display:block}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic .ab-image-area{height:100
1%}.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)}}"),(0,q.N)()}var X=n(94647),J=n(78937);function K(t,e,i){if(!a.Ay.rr())return;if(V(),null==t)return!1;if(t instanceof f.A)return u.A.info("User received control for a multivariate test, logging to Braze servers."),T(t),!0;if(!(t instanceof A.A))return!1;if(t.constructor===A.A)return!1;t.Lh();const s=t instanceof v.A;if(s&&!t.trusted&&!a.Ay.tr())return u.A.error('HTML in-app messages are disabled. Use the "allowUserSuppliedJavascript" option for braze.initialize to enable these messages.'),!1;if(null==e&&(e=document.body),t.vo()&&e.querySelectorAll(".ab-modal-interactions").length>0)return u.A.info(`Cannot show in-app message ${t.message} because another message is being shown.`),!1;if(z.uD.Uo()){const e=z.uD.No();if(e===z.j3.PORTRAIT&&t.orientation===A.A.Orientation.LANDSCAPE||e===z.j3.LANDSCAPE&&t.orientation===A.A.Orientation.PORTRAIT){const n=e===z.j3.PORTRAIT?"portrait":"landscape",i=t.orientation===A.A.Orientation.PORTRAIT?"portrait":"landscape";return u.A.info(`Not showing ${i} in-app message ${t.message} because the screen is currently ${n}`),!1}}if(!a.Ay.tr()){let e=!1;if(t.buttons&&t.buttons.length>0){const n=t.buttons;for(let t=0;t<n.length;t++)if(n[t].clickAction===A.A.ClickAction.URI){const i=n[t].uri;e=(0,M.P)(i)}}else t.clickAction===A.A.ClickAction.URI&&(e=(0,M.P)(t.uri));if(e)return u.A.error('Javascript click actions are disabled. Use the "allowUserSuppliedJavascript" option for braze.initialize to enable these actions.'),!1}const o=document.createElement("div");if(o.className="ab-iam-root v3",o.className+=function(t){let e="";return t.animateIn&&(e+=" ab-animate-in"),t.animateOut&&(e+=" ab-animate-out"),t instanceof E.A?e+=" ab-effect-fullscreen":t instanceof v.A?e+=" ab-effect-html":t instanceof y.A?e+=" ab-effect-modal":t instanceof w.A&&(e+=" ab-effect-slide"),e}(t),o.setAttribute("role","complementary"),t.ho()&&(o.id=t.htmlId),a.Ay.ee(a.lw.Go)&&(o.style.zIndex=(a.Ay.ee(a.lw.Go)+1).toString()),e.appendChild(o),t.lo()){const e=document.createElement("style");e.innerHTML=t.css,e.id=t.do(),null!=a.Ay.ee(a.lw.er)&&e.setAttribute("nonce",a.Ay.ee(a.lw.er)),document.getElementsByTagName("head")[0].appendChild(e)}const r=t instanceof w.A,l=G(t,()=>{n.e(3724).then(n.bind(n,23724)).then(t=>{a.Ay.nn()?t.showFeed():u.A.error(g.xE)})},e=>{if(t.vo()&&t.Po()){const n=document.createElement("div");if(n.className="ab-page-blocker",t.lo()||(n.style.backgroundColor=C(t.frameColor)),a.Ay.ee(a.lw.Go)&&(n.style.zIndex=a.Ay.ee(a.lw.Go).toString()),o.appendChild(n),!a.Ay.ee(a.lw.mh)){const i=(new Date).valueOf();n.onclick=n=>{(new Date).valueOf()-i>A.A.ph&&(t.ll(e),n.stopPropagation())}}o.appendChild(e),e.focus(),t.Ah(o)}else if(r){const n=document.querySelectorAll(".ab-slideup");let i=null;for(let t=n.length-1;t>=0;t--)if(n[t]!==e){i=n[t];break}if(t.slideFrom===A.A.SlideFrom.TOP){let t=0;null!=i&&(t=i.offsetTop+i.offsetHeight),e.style.top=Math.max(t,0)+"px"}else{let t=0;null!=i&&(t=(window.innerHeight||document.documentElement.clientHeight)-i.offsetTop),e.style.bottom=Math.max(t,0)+"px"}}else if(s&&!a.Ay.ee(a.lw.mh)){const n=t;(0,X.B)(e)&&e.contentWindow&&e.contentWindow.addEventListener("keydown",function(t){t.keyCode===$.c._h&&n.closeMessage()})}T(t),t.dismissType===A.A.DismissType.AUTO_DISMISS&&setTimeout(()=>{o.contains(e)&&t.ll(e)},t.duration),"function"==typeof i&&i()},t=>{u.A.info(t)},a.Ay.ee(a.lw.Ko),a.Ay.ee(a.lw.Go),a.Ay.ee(a.lw.er),e,J.A.ea().Oo());return(s||r)&&(o.appendChild(l),t.Ah(o)),!0}function Y(t){if(a.Ay.rr())return"function"!=typeof t?null:k.A.ea().Xi(function(e){return t(e[0]),e.slice(1)})}},78937:function(t,e,n){n.d(e,{A:function(){return u}});var i=n(3234),s=n(42806),a=n(12397),o={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/>
1Bitte 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:"请稍候再试."}};
1class r{constructor(t,e=!1){if(this.language=t,null!=t&&(t=t.toLowerCase()),null!=t&&null==o[t]){const e=t.indexOf("-");e>0&&(t=t.substring(0,e))}if(null==o[t]){const n="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.";e?a.A.error(n):a.A.info(n),t="en"}this.language=t}get(t){return o[this.language][t]}Oo(){switch(this.language){case"ar":case"he":case"fa":return"rtl";default:return"ltr"}}}const l={l:!1,aa:null,ea:()=>{if(l.p(),!l.aa){let t=s.A.language,e=!1;i.Ay.ee(i.lw.Zn)&&(t=i.Ay.ee(i.lw.Zn),e=!0),l.aa=new r(t,e)}return l.aa},p:()=>{l.l||(i.Ay.h(l),l.l=!0)},destroy:()=>{l.aa=null,l.l=!1}};var u=l},3234:function(t,e,n){n.d(e,{lw:function(){return H},Ay:function(){return q}});var i=n(70226),s=n(9314),a=n(82505),o=n(12397);class r{constructor(t,e,n){this.C=t,this.gh=e,this.Fh=n,this.C=t,this.gh=e||!1,this.Fh=n,this.kh=new s.A,this.fh=0,this.wh=1}jh(){return this.gh}xh(){return this.C.ft(i.d.gt.qh)}setSdkAuthenticationSignature(t){const e=this.xh();this.C.Bt(i.d.gt.qh,t);const n=a.A.Ls.Fs;new a.A(n,o.A).setItem(n.Ms.yh,this.wh,t),e!==t&&this.it()}Bh(){this.C.Ut(i.d.gt.qh);const t=a.A.Ls.Fs;new a.A(t,o.A).ge(t.Ms.yh,this.wh)}subscribeToSdkAuthenticationFailures(t){return this.Fh.Dt(t)}Gh(t){this.Fh.X(t)}Hh(){this.kh.removeAllSubscriptions()}Jh(){this.fh+=1}Kh(){return this.fh}it(){this.fh=0}}var l=n(72765),u=n(42806);class c{constructor(t){this.id=t,this.id=t}Nr(){const t={};return null!=this.browser&&(t.browser=this.browser),null!=this.tc&&(t.browser_version=this.tc),null!=this.os&&(t.os_version=this.os),null!=this.resolution&&(t.resolution=this.resolution),null!=this.language&&(t.locale=this.language),null!=this.timeZone&&(t.time_zone=this.timeZone),null!=this.userAgent&&(t.user_agent=this.userAgent),t}}var h={BROWSER:"browser",BROWSER_VERSION:"browserVersion",OS:"os",RESOLUTION:"resolution",LANGUAGE:"language",TIME_ZONE:"timeZone",USER_AGENT:"userAgent"},d=n(29628),p=n(5084),b=n(3312),g=n(97779);class m{constructor(t,e){this.C=t,this.Qa=e,this.C=t,null==e&&(e=(0,b.zu)(h)),this.Qa=e}ve(t=!0){let e=this.C.tu(i.d.iu.Na);null==e&&(e=new d.A(p.A.ce()),t&&this.C.uu(i.d.iu.Na,e));const n=new c(e.eu);for(let t=0;t<this.Qa.length;t++)switch(this.Qa[t]){case h.BROWSER:n.browser=u.A.browser;break;case h.BROWSER_VERSION:n.tc=u.A.version;break;case h.OS:n.os=this.ec();break;case h.RESOLUTION:n.rc=screen.width+"x"+screen.height;break;case h.LANGUAGE:n.language=u.A.language;break;case h.TIME_ZONE:n.timeZone=this.sc(new Date);break;case h.USER_AGENT:n.userAgent=u.A.userAgent}return n}ec(){if(u.A.ic())return u.A.ic();const t=this.C.ft(i.d.gt.oc);return t&&t.os_version?t.os_version:u.A.ec()}sc(t){let e=!1;if("undefined"!=typeof Intl&&"function"==typeof Intl.DateTimeFormat)try{if("function"==typeof Intl.DateTimeFormat().resolvedOptions){const t=Intl.DateTimeFormat().resolvedOptions().timeZone;if(null!=t&&""!==t)return t}}catch(t){o.A.info("Intl.DateTimeFormat threw an error, cannot detect user's time zone:"+(0,g.u)(t)),e=!0}if(e)return"";const n=t.getTimezoneOffset();return this.nc(n)}nc(t){const e=Math.trunc(t/60),n=Math.trunc(t%60);let i="GMT";return 0!==t&&(i+=t<0?"+":"-",i+=("00"+Math.abs(e)).slice(-2)+":"+("00"+Math.abs(n)).slice(-2)),i}}var f=n(48655),v=n(78644),A=n(8037),w=n(81694),E=n(34133),y=n(11504),x=n(22937),S=n(35056),C=n(5126);class k{constructor(t,e,n,i,s,a,o,r,l,u,c,h){this.hn=t,this.C=e,this.Pa=n,this.Cs=i,this.T=s,this.B=a,this.an=o,this.La=r,this.Ta=l,this.Ra=u,this.appVersion=c,this.au=h,this.du=t=>null==t?"":`${t} `,this.hn=t,this.C=e,this.Pa=n,this.Cs=i,this.T=s,this.B=a,this.an=o,this.La=r,this.Ta=l,this.Ra=u,this.appVersion=c,this.au=h,this.fu=["npm"],this.vu=[]}H(t,e=!1,n=!1){const s=this.hn.ve(!n),a=s.Nr(),o=this.C.ft(i.d.gt.oc);(0,b.n4)(o,a)||(t.device=a),t.api_key=this.an,t.time=(0,A.UK)((new Date).valueOf(),!0);const r=this.C.ft(i.d.gt.pu)||[],l=this.C.ft(i.d.gt.Ru)||"";this.fu.length>0&&(!(0,b.n4)(r,this.fu)||l!==this.T.St())&&(t.sdk_metadata=this.fu),t.sdk_version=this.Ta,this.Ra&&(t.sdk_flavor=this.Ra),t.app_version=this.appVersion,t.app_version_code=this.au,t.device_id=s.id;const u=this.Cs.getUserId();if(e&&null!==u&&(t.user_id=u),!u&&!this.Pa.jh()){const e=(0,S.b)(this.C);e&&(t.alias=e)}return t}st(t,e,n){const i=e.auth_error,s=e.error;if(!i&&!s)return!0;
1if(i){let e;this.Pa.Jh();const s={errorCode:i.error_code};for(const t of n)(0,b.cy)(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 a=i.reason;return a?(s.reason=a,e=`due to ${a}`):e=`with error code ${i.error_code}.`,this.Pa.jh()||(e+=' Please use the "enableSdkAuthentication" initialization option to enable authentication.'),o.A.error(`SDK Authentication failed ${e}`),this.gu(t.events||[],t.attributes||[]),this.Pa.Gh(s),!1}if(s){let n,i=s;switch(i){case f.A.bu:return n="Received successful response with empty body.",w.A.ut(E.w.qu,{e:n}),o.A.info(n),!1;case f.A.Au:return n="Received successful response with invalid JSON",w.A.ut(E.w.qu,{e:n+": "+e.response}),o.A.info(n),!1;case f.A.Du:i=`The API key "${t.api_key}" is invalid for the baseUrl ${this.La}`;break;case f.A.Tu:i="Sorry, we are not currently accepting your requests. If you think this is in error, please contact us.";break;case f.A.ku:i="No device identifier. Please contact [email protected]"}o.A.error("Backend error: "+i)}return!1}yu(t,e,n,i){return!!(t&&0!==t.length||e&&0!==e.length||n||i)}wu(t,e,n,i,s=!1){const a=[],o=t=>t||"",r=o(this.Cs.getUserId());let l=this.Gr(t,e);const u=[],c=[];let h,d=null;if(n.length>0){const t=[];for(const e of n){if(h=e.Nr(),this.Pa.jh()){if(r&&!h.user_id){d||(d={}),d.events||(d.events=[]),d.events.push(h);continue}if(o(h.user_id)!==r){c.push(h);continue}}t.push(h)}t.length>0&&(l.events=t)}if(i.length>0){const t=[];for(const e of i)e&&(this.Pa.jh()&&o(e.user_id)!==r?u.push(e):t.push(e));t.length>0&&(l.attributes=t)}if(this.gu(c,u),l=this.H(l,!1,s),d){d=this.H(d,!1,s);const t={requestData:d,headers:this.J(d,y.A.O.Nu)};a.push(t)}if(l&&!this.yu(l.events,l.attributes,t,e))return d?a:null;const p={requestData:l,headers:this.J(l,y.A.O.Nu)};return a.push(p),a}gu(t,e){if(t){const e=[];for(const n of t){const t=v.A.fromJson(n);t.time=(0,A.YX)(t.time),e.push(t)}this.C.Vo(e)}if(e)for(const t of e)this.C.Cu(t)}et(t,e){let n="HTTP error ";null!=t&&(n+=t+" "),n+=e,o.A.error(n)}zr(t){return w.A.ut(E.w.Su,{n:t})}Gr(t,e,n){const i={};t&&(i.feed=!0),e&&(i.triggers=!0);const s=null!=n?n:this.Cs.getUserId();if(s&&(i.user_id=s),!i.user_id&&!this.Pa.jh()){const t=(0,S.b)(this.C);t&&(i.alias=t)}return i.config={config_time:this.B.Et()},{respond_with:i}}Bu(t){const e=(new Date).valueOf();let n=x.mO.toString();const i=y.A.zu(this.C,t);return-1!==i&&(n=(e-i).toString()),n}J(t,e,n=!1){const i=[["X-Braze-Api-Key",this.an]],s=this.Bu(e);i.push(["X-Braze-Last-Req-Ms-Ago",s]);const a=y.A.ju(this.C,e).toString();i.push(["X-Braze-Req-Attempt",a]);let o=!1;if(null!=t.respond_with&&t.respond_with.triggers&&(i.push(["X-Braze-TriggersRequest","true"]),o=!0),null!=t.respond_with&&t.respond_with.feed&&(i.push(["X-Braze-FeedRequest","true"]),o=!0),e===y.A.O.wi){i.push(["X-Braze-ContentCardsRequest","true"]);let t=y.A.ju(this.C,y.A.O.wi);t&&!n||(t=1,y.A.Mu(this.C,y.A.O.wi,t));const e=Math.max(0,t-1);i.push(["BRAZE-SYNC-RETRY-COUNT",e.toString()]),o=!0}if(e===y.A.O.Le&&(i.push(["X-Braze-FeatureFlagsRequest","true"]),o=!0),o&&i.push(["X-Braze-DataRequest","true"]),this.Pa.jh()){const t=this.Pa.xh();null!=t&&i.push(["X-Braze-Auth-Signature",t])}return i}Xu(t,e,n,i){const s=window.setTimeout(()=>{o.A.info(`Retrying rate limited ${this.du(i)}SDK request.`),this.V(e,n,i)},t);this.vu.push(s)}fo(){for(const t of this.vu)window.clearTimeout(t);this.vu=[]}V(t,e,n,s){if(!this.$u(n))return o.A.info(`${this.du(n)}SDK request being rate limited.`),void("function"==typeof s&&s());const a=this.Fu();if(!a.Lu)return o.A.info(`${this.du(n)}SDK request being rate limited. Request will be retried in ${Math.trunc(a.Eu/1e3)} seconds.`),void this.Xu(a.Eu,t,e,n);this.C.Bt(i.d.gt.Ku,(new Date).valueOf());const r=t.device;r&&r.os_version instanceof Promise?r.os_version.then(n=>{t.device.os_version=n,e(a.Iu)}):e(a.Iu)}Pu(t){const e=t?(0,C.s)(t):null;if(!e||!e["retry-after"])return null;const n=e["retry-after"];if(isNaN(n)&&!isNaN(Date.parse(n)))return{type:"date",value:Date.parse(n)};if(!isNaN(parseFloat(n.toString())))return{type:"timestamp",value:1e3*parseFloat(n.toString())};{const t="Received unexpected value for retry-after header in /sync response";w.A.ut(E.w.qu,{e:t+": "+n})}return null}rt(t,e,n,i,s,a){if(y.A.ju(this.C,n)>=x.uR)return;let o;a=a||0;const r=this.Pu(t);s();const l=t=>{const s=window.setTimeout(()=>{e()},t);i(s),y.A.Uu(this.C,n)};if(r&&!isNaN(r.value)){switch(r.type){case"date":o=r.value-(new Date).getTime()+a,o<0&&e();break;case"timestamp":o=r.value+a}l(o)}else a?l(a):y.A.vi(this.C,n)}xu(t){var e;null===(e=this.C)||void 0===e||e.Bt(i.d.gt.Hu,t)}Ou(t,e){let n=this.Gu();null==n&&(n={}),n[t]=e,this.C.Bt(i.d.gt._u,n)}Wu(){var t;return null===(t=this.C)||void 0===t?void 0:t.ft(i.d.gt.Hu)}Gu(){var t;return null===(t=this.C)||void 0===t?void 0:t.ft(i.d.gt._u)}Yu(t,e,n,i,s=""){let a;if(s){const t=this.Gu();a=null==t||isNaN(t[s])?e:t[s]}else a=this.Wu(),(null==a||isNaN(a))&&(a=e);const o=(t-i)/1e3;return a=Math.min(a+o/n,e),a}Ju(t,e){return Math.max(0,(1-t)*e*1e3)}Qu(t,e=""){var n,s,a,o,r;const l={Lu:!0,Iu:-1,Eu:0};if(null==t&&(t=!0),!t&&!e)return l;let u,c,h=null;if(t)h=null===(n=this.C)||void 0===n?void 0:n.ft(i.d.gt.Ku);else{const t=y.A.Vu(this.C);if(null==t||null==t[e])return l;h=t[e]}if(null==h||isNaN(h))return l;if(t?(u=(null===(s=this.B)||void 0===s?void 0:s.Zu())||-1,c=(null===(a=this.B)||void 0===a?void 0:a.tl())||-1):(u=(null===(o=this.B)||void 0===o?void 0:o.el(e))||-1,c=(null===(r=this.B)||void 0===r?void 0:r.il(e))||-1),-1===u||-1===c)return l;const d=(new Date).valueOf();let p=this.Yu(d,u,c,h,e);
1return p<1?(l.Lu=!1,l.Eu=this.Ju(p,c),l):(p=Math.trunc(p)-1,l.Iu=p,t?this.xu(p):this.Ou(e,p),l)}Fu(){return this.Qu(!0)}$u(t){const e=this.Qu(!1,t);return!(e&&!e.Lu)}it(){this.Pa.it()}Z(){return this.La}addSdkMetadata(t){for(const e of t)-1===this.fu.indexOf(e)&&this.fu.push(e)}}var _=n(83543),T=n(25810),N=n(26903);class O{constructor(t,e,n,i,a,o,r,l,u,c){this.an=t,this.baseUrl=e,this.T=n,this.hn=i,this.Cs=a,this.B=o,this.C=r,this.$l=l,this.Pa=u,this.S=c,this.an=t,this.baseUrl=e,this.Tl=0,this.dE=r.IE()||0,this.Ml=null,this.T=n,this.hn=i,this.Cs=a,this.B=o,this.C=r,this.Pa=u,this.S=c,this.$l=l,this.Pl=new s.A,this.Ol=null,this.Ul=50,this._l=!1}Kl(t,e){return!t&&!e&&this.Pa.Kh()>=this.Ul}Xl(t){let e=this.T.zl();if(t.length>0){const n=this.Cs.getUserId();for(const i of t){const t=!i.userId&&!n||i.userId===n;i.type===E.w.Fl&&t&&(e=!0)}}return e}Ql(t=!1,e=!1,n=!0,s,a,r,l=!1,u=!1){n&&this.Yl();const c=this.C.AE(),h=this.C.OE();let d=!1;const p=(t,e,o=-1)=>{const l=(new Date).valueOf();y.A.W(this.C,y.A.O.Nu,l),-1!==o&&e.push(["X-Braze-Req-Tokens-Remaining",o.toString()]);let u=!1;C.A.Y({url:this.baseUrl+"/data/",data:t,headers:e,tt:n=>{null!=t.respond_with&&t.respond_with.triggers&&(this.Tl=Math.max(this.Tl-1,0)),this.S.st(t,n,e)?(this.Pa.it(),this.B.gl(n),null!=t.respond_with&&t.respond_with.user_id!=this.Cs.getUserId()||(null!=t.device&&this.C.Bt(i.d.gt.oc,t.device),null!=t.sdk_metadata&&(this.C.Bt(i.d.gt.pu,t.sdk_metadata),this.C.Bt(i.d.gt.Ru,this.T.St())),this.$l(n),y.A.Mu(this.C,y.A.O.Nu,1),"function"==typeof s&&s())):n.auth_error&&(u=!0)},error:()=>{u=!0,null!=t.respond_with&&t.respond_with.triggers&&(this.Tl=Math.max(this.Tl-1,0)),this.S.gu(t.events,t.attributes),"function"==typeof a&&a()},nt:(t,e)=>{"function"==typeof r&&r(!u);const i=this.S.Pu(e);let s=0;if(i)switch(i.type){case"date":s=Math.max(i.value-(new Date).valueOf(),0);break;case"timestamp":s=i.value}if(n&&!d){if(u){y.A.Uu(this.C,y.A.O.Nu);let t=this.Ml;(null==t||t<1e3*this.dE)&&(t=1e3*this.dE);const e=Math.min(3e5,(0,_.C)(1e3*this.dE,3*t))+s;this.Zl(e)}else this.Zl(Math.max(1e3*this.dE,s));d=!0}}})},b=this.Xl(c),g=e||b;if(this.Kl(l,b))return void o.A.info("Declining to flush data due to 50 consecutive authentication failures");if(n&&!this.S.yu(c,h,t,g))return this.Zl(),void("function"==typeof r&&r(!0));const m=this.S.wu(t,g,c,h,u);g&&this.Tl++;let f=!1;if(m)for(const t of m)this.S.V(t.requestData,e=>p(t.requestData,t.headers,e),y.A.O.Nu,a),f=!0;this.Pa.jh()&&n&&!f?this.Zl():b&&(o.A.info("Invoking new session subscriptions"),this.Pl.X())}dc(){return this.Tl>0}Zl(t=1e3*this.dE){this._l||(this.Yl(),this.Ol=window.setTimeout(()=>{if(document.hidden){const t="visibilitychange",e=()=>{document.hidden||(document.removeEventListener(t,e,!1),this.Ql())};document.addEventListener(t,e,!1)}else this.Ql()},t),this.Ml=t)}Yl(){null!=this.Ol&&(clearTimeout(this.Ol),this.Ol=null)}initialize(){this._l=!1,this.Zl()}destroy(){this.Pl.removeAllSubscriptions(),this.Pa.Hh(),this.Yl(),this._l=!0,this.Ql(void 0,void 0,!1,void 0,void 0,void 0,void 0,!0),this.Ol=null}on(t){return this.Pl.Dt(t)}openSession(){const t=this.T.St()!==this.T.Qo();t&&(this.C.TE(i.d.iu.Na),this.C.TE(i.d.iu.su)),this.Ql(void 0,!1,void 0,()=>{this.C.Ut(i.d.gt.Ge)}),this.Qn(),t&&n.e(1279).then(n.bind(n,61279)).then(t=>{if(this._l)return;const e=t.default.ea();if(null!=e&&(N.A.isPushPermissionGranted()||N.A.isPushBlocked())){const t=()=>{e.wn()?o.A.info("Push token maintenance is disabled, not refreshing token for backend."):e.subscribe()},n=(e,n)=>{n&&t()},s=()=>{const e=this.C.ft(i.d.gt.zn);(null==e||e)&&t()},r=a.A.Ls.Fs;new a.A(r,o.A).cr(r.Ms.cu,n,s)}})}mc(){this.C.Ut(i.d.gt.Xe),this.C.Ut(i.d.gt.Hs),this.C.Ut(i.d.gt.Kr)}fc(){var t,e;this.C.Ut(i.d.gt.Ku),this.C.Ut(i.d.gt.lE);const n=y.A.O;for(const e in n){const i=n[e];this.S.Ou(i,null===(t=this.B)||void 0===t?void 0:t.el(i))}this.S.xu(null===(e=this.B)||void 0===e?void 0:e.Zu())}changeUser(t,e,n){const s=this.Cs.getUserId();if(s!==t){this.T.Il(),this.mc(),null!=s&&this.Ql(void 0,!1,void 0,void 0,void 0),this.Cs.ou(t),n?this.Pa.setSdkAuthenticationSignature(n):this.Pa.Bh();for(let t=0;t<e.length;t++)e[t].changeUser(null==s);this.S.fo(),null!=s&&this.C.Ut(i.d.gt.Zt),this.C.Ut(i.d.gt.oc),this.C.Ut(i.d.gt._E),this.fc(),this.openSession(),o.A.info('Changed user to "'+t+'".')}else{let e="Doing nothing.";n&&this.Pa.xh()!==n&&(this.Pa.setSdkAuthenticationSignature(n),e="Updated SDK authentication signature"),o.A.info(`Current user is already ${t}. ${e}`)}}requestImmediateDataFlush(t){this.Yl(),this.T.Qo(),this.Ql(void 0,void 0,void 0,void 0,()=>{o.A.error("Failed to flush data, request will be retried automatically.")},t,!0)}requestFeedRefresh(){this.T.Qo(),this.Ql(!0)}
1br(t,e){this.T.Qo(),o.A.info("Requesting explicit trigger refresh."),this.Ql(void 0,!0,void 0,t,e)}Cn(t,e){const n=E.w.vc,s={a:t,l:e},a=w.A.ut(n,s);return a&&(o.A.info(`Logged alias ${t} with label ${e}`),this.C.Bt(i.d.gt._E,s)),a}Ln(t,e,n){if(this.B.hu(e))return o.A.info(`Custom Attribute "${e}" is blocklisted, ignoring.`),new T.A;const i={key:e,value:n},s=w.A.ut(t,i);if(s){const t="object"==typeof n?JSON.stringify(n,null,2):n;o.A.info(`Logged custom attribute: ${e} with value: ${t}`)}return s}setLastKnownLocation(t,e,n,i,s,a){const r={latitude:e,longitude:n};null!=i&&(r.altitude=i),null!=s&&(r.ll_accuracy=s),null!=a&&(r.alt_accuracy=a);const l=w.A.ut(E.w.bc,r,t||void 0);return l&&o.A.info(`Set user last known location as ${JSON.stringify(r,null,2)}`),l}lr(t,e){const n=this.T.Qo();return new v.A(this.Cs.getUserId(),E.w.wc,t,n,{cid:e})}kc(t,e){return new a.A(t,e)}Qn(){const t=a.A.Ls.Fs;this.kc(t,o.A).setItem(t.Ms.Nu,1,{baseUrl:this.baseUrl,data:{api_key:this.an,device_id:this.hn.ve().id},userId:this.Cs.getUserId(),sdkAuthEnabled:this.Pa.jh()})}vr(t){for(const e of t)if(e.api_key===this.an)this.S.gu(e.events,e.attributes);else{const t=a.A.Ls.Fs;new a.A(t,o.A).setItem(t.Ms.kr,p.A.ce(),e)}}Kn(t,e,n){if(this.B.hu(t))return o.A.info(`Custom Attribute "${t}" is blocklisted, ignoring.`),new T.A;let i,s;return null===e&&null===n?(i=E.w.yc,s={key:t}):(i=E.w.Sc,s={key:t,latitude:e,longitude:n}),w.A.ut(i,s)}Mn(t,e){const n={group_id:t,status:e};return w.A.ut(E.w.jc,n)}}class I{constructor(t=0,e=[],n=[],i=[],s=null,a=null,o={enabled:!1},r={enabled:!1,refresh_rate_limit:void 0},l={enabled:!0,capacity:x.uy,refill_rate:x.Fn,endpoint_overrides:{}},u=null){this.dl=t,this.Rl=e,this.Cl=n,this.El=i,this.yl=s,this.fl=a,this.vl=o,this.De=r,this.bl=l,this.banners=u,this.dl=t,this.Rl=e,this.Cl=n,this.El=i,this.yl=s,this.fl=a,this.vl=o,this.De=r,this.bl=l,this.banners=u}bt(){return{s:"5.9.1",l:this.dl,e:this.Rl,a:this.Cl,p:this.El,m:this.yl,v:this.fl,c:this.vl,f:this.De,grl:this.bl,b:this.banners}}static Rn(t){let e=t.l;return"5.9.1"!==t.s&&(e=0),new I(e,t.e,t.a,t.p,t.m,t.v,t.c,t.f,t.grl,t.b)}}class D{constructor(t){this.C=t,this.C=t,this.sl=new s.A,this.rl=new s.A,this.ul=new s.A,this.al=new s.A,this.hl=null,this.ol=null}cl(){if(null==this.ol){const t=this.C.ft(i.d.gt.ml);this.ol=null!=t?I.Rn(t):new I}return this.ol}Et(){return this.cl().dl}gl(t){var e,n;if(null!=t&&null!=t.config){const s=t.config;if(s.time>this.cl().dl){const t=t=>null==t?this.cl().bl:t,a=new I(s.time,s.events_blacklist,s.attributes_blacklist,s.purchases_blacklist,s.messaging_session_timeout,s.vapid_public_key,s.content_cards,s.feature_flags,t(s.global_request_rate_limit),s.banners);let o=!1;null!=a.fl&&this.In()!==a.fl&&(o=!0);let r=!1;null!=a.vl.enabled&&this.yi()!==a.vl.enabled&&(r=!0);let l=!1;null!=a.De.enabled&&this.ke()!==a.De.enabled&&(l=!0);let u=!1;null!=(null===(e=a.banners)||void 0===e?void 0:e.enabled)&&this.zt()!==(null===(n=a.banners)||void 0===n?void 0:n.enabled)&&(u=!0),this.ol=a,this.C.Bt(i.d.gt.ml,a.bt()),o&&this.sl.X(),r&&this.rl.X(),l&&this.ul.X(),u&&this.al.X()}}}Vn(t){const e=this.sl.Dt(t);return this.hl&&this.sl.removeSubscription(this.hl),this.hl=e,e}gi(t){return this.rl.Dt(t)}Ke(t){return this.ul.Dt(t)}A(t){return this.al.Dt(t)}je(t){return-1!==this.cl().Rl.indexOf(t)}hu(t){return-1!==this.cl().Cl.indexOf(t)}Dr(t){return-1!==this.cl().El.indexOf(t)}wl(){return this.cl().yl}In(){return this.cl().fl}yi(){return this.cl().vl.enabled||!1}Ll(){const t=this.cl().bl;return!(!t||null==t.enabled)&&t.enabled}Zu(){if(!this.Ll())return-1;const t=this.cl().bl;return null==t.capacity||t.capacity<10?-1:t.capacity}tl(){if(!this.Ll())return-1;const t=this.cl().bl;return null==t.refill_rate||t.refill_rate<=0?-1:t.refill_rate}Bl(t){const e=this.cl().bl.endpoint_overrides;return null==e?null:e[t]}el(t){const e=this.Bl(t);return null==e||isNaN(e.capacity)||e.capacity<=0?-1:e.capacity}il(t){const e=this.Bl(t);return null==e||isNaN(e.refill_rate)||e.refill_rate<=0?-1:e.refill_rate}ke(){return this.cl().De.enabled&&null==this.Oe()?(w.A.ut(E.w.qu,{e:"Missing feature flag refresh_rate_limit."}),!1):this.cl().De.enabled||!1}Oe(){return this.cl().De.refresh_rate_limit}zt(){var t;return(null===(t=this.cl().banners)||void 0===t?void 0:t.enabled)||null}ne(){var t;return(null===(t=this.cl().banners)||void 0===t?void 0:t.max_placements)||0}}class M{constructor(t,e,n,i){this.C=t,this.Cs=e,this.B=n,this.Sl=i,this.C=t,this.Cs=e,this.B=n,this.jl=1e3,(null==i||isNaN(i))&&(i=1800),i<this.jl/1e3&&(o.A.info("Specified session timeout of "+i+"s is too small, using the minimum session timeout of "+this.jl/1e3+"s instead."),i=this.jl/1e3),this.Sl=i}xl(t,e){return new v.A(this.Cs.getUserId(),E.w.Dl,t,e.eu,{d:(0,A.UK)(t-e.Gl)})}St(){const t=this.C.tu(i.d.iu.Nl);return null==t?null:t.eu}zl(){const t=(new Date).valueOf(),e=this.B.wl();if(null==e)return!1;const n=this.C.ft(i.d.gt.Hl),s=null==n||t-n>1e3*e;return s&&this.C.Bt(i.d.gt.Hl,t),s}Wl(t,e){return null==e||null==e.kl||!(t-e.Gl<this.jl)&&e.kl<t}Qo(){const t=(new Date).valueOf(),e=t+1e3*this.Sl,n=this.C.tu(i.d.iu.Nl);
1if(this.Wl(t,n)){let s="Generating session start event with time "+t;if(null!=n){let t=n.ql;t-n.Gl<this.jl&&(t=n.Gl+this.jl),this.C.Al(this.xl(t,n)),s+=" (old session ended "+t+")"}s+=". Will expire "+e.valueOf(),o.A.info(s);const a=new d.A(p.A.ce(),e);return this.C.Al(new v.A(this.Cs.getUserId(),E.w.Fl,t,a.eu)),this.C.uu(i.d.iu.Nl,a),null==this.C.ft(i.d.gt.Hl)&&this.C.Bt(i.d.gt.Hl,t),a.eu}if(null!=n)return n.ql=t,n.kl=e,this.C.uu(i.d.iu.Nl,n),n.eu}Il(){const t=this.C.tu(i.d.iu.Nl);null!=t&&(this.C.Jl(i.d.iu.Nl),this.C.Al(this.xl((new Date).valueOf(),t)))}}const z={Ya:function(t,e=!1){let n=!1;try{if(localStorage&&localStorage.getItem)try{localStorage.setItem(i.d.gt.ac,"true"),localStorage.getItem(i.d.gt.ac)&&(localStorage.removeItem(i.d.gt.ac),n=!0)}catch(t){if(!(t instanceof Error&&("QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&localStorage.length>0))throw t;n=!0}}catch(t){o.A.info("Local Storage not supported!")}const s=z.cc(),a=new i.A.lc(t,s&&!e,n);let r;return r=n?new i.A.gc(t):new i.A.uc,new i.A(a,r)},cc:function(){return navigator.cookieEnabled||"cookie"in document&&(document.cookie.length>0||(document.cookie="test").indexOf.call(document.cookie,"test")>-1)}};var B=z,P=n(53261),R=n(70932),U=n(28603),L=n(33779);class ${constructor(t,e){this.B=t,this.C=e,this.B=t,this.C=e}getUserId(){const t=this.C.tu(i.d.iu.su);if(null==t)return null;let e=t.eu,n=(0,R.N)(e);if(n>L.A.ur){for(;n>L.A.ur;)e=e.slice(0,e.length-1),n=(0,R.N)(e);t.eu=e,this.C.uu(i.d.iu.su,t)}return e}ou(t){const e=null==this.getUserId();this.C.uu(i.d.iu.su,new d.A(t)),e&&this.C.ru(t)}setCustomUserAttribute(t,e){if(this.B.hu(t))return o.A.info('Custom Attribute "'+t+'" is blocklisted, ignoring.'),!1;const n={};return n[t]=e,this.nu(L.A.lu,n,!0)}nu(t,e,n=!1,i=!1){const s=this.C.mu(this.getUserId(),t,e);let a="",r=t,l=e;return n&&(a=" custom","object"==typeof e&&(r=Object.keys(e)[0],l=e[r],"object"==typeof l&&(l=JSON.stringify(l,null,2)))),!i&&s&&o.A.info(`Logged${a} attribute ${r} with value ${l}`),s}An(t,e,n,s,r){this.nu("push_token",t,!1,!0),this.nu("custom_push_public_key",n,!1,!0),this.nu("custom_push_user_auth",s,!1,!0),this.nu("custom_push_vapid_public_key",r,!1,!0);const l=a.A.Ls.Fs,u=new a.A(l,o.A),c=new U.A(t,e,n,s,r);this.C.Bt(i.d.gt.zn,c.bt()),u.setItem(l.Ms.cu,l.be,!0)}xn(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=a.A.Ls.Fs,e=new a.A(t,o.A);this.C.Bt(i.d.gt.zn,!1),e.setItem(t.Ms.cu,t.be,!1)}}}var F=n(52532),j=n(67597),G={Yo:"allowCrawlerActivity",Zo:"baseUrl",Wh:"noCookies",Vh:"devicePropertyAllowlist",Da:"disablePushTokenMaintenance",$h:"enableLogging",Yh:"enableSdkAuthentication",Ca:"manageServiceWorkerExternally",Xh:"minimumIntervalBetweenTriggerActionsInSeconds",Zh:"sessionTimeoutInSeconds",Qh:"appVersion",Ea:"appVersionNumber",_a:"serviceWorkerLocation",Ba:"safariWebsitePushId",Zn:"localization",er:"contentSecurityNonce",re:"allowUserSuppliedJavascript",Go:"inAppMessageZIndex",Ko:"openInAppMessagesInNewTab",en:"openNewsFeedCardsInNewTab",mh:"requireExplicitInAppMessageDismissal",Ia:"doNotLoadFontAwesome",Na:"deviceId",Aa:"serviceWorkerScope",Oa:"sdkFlavor",tn:"openCardsInNewTab"};const H={Yo:"allowCrawlerActivity",Zo:"baseUrl",Wh:"noCookies",Vh:"devicePropertyAllowlist",Da:"disablePushTokenMaintenance",$h:"enableLogging",Yh:"enableSdkAuthentication",Ca:"manageServiceWorkerExternally",Xh:"minimumIntervalBetweenTriggerActionsInSeconds",Zh:"sessionTimeoutInSeconds",Qh:"appVersion",Ea:"appVersionNumber",_a:"serviceWorkerLocation",Ba:"safariWebsitePushId",Zn:"localization",er:"contentSecurityNonce",re:"allowUserSuppliedJavascript",Go:"inAppMessageZIndex",Ko:"openInAppMessagesInNewTab",tn:"openCardsInNewTab",en:"openNewsFeedCardsInNewTab",mh:"requireExplicitInAppMessageDismissal",Ia:"doNotLoadFontAwesome",Na:"deviceId",Aa:"serviceWorkerScope",Oa:"sdkFlavor"};const q=new class{constructor(){this.an="",this.Ta="",this.Ra=void 0,this.Pa=null,this.hn=null,this.S=null,this.Fi=null,this.B=null,this.T=null,this.C=null,this.Cs=null,this.La="",this.isInitialized=!1,this.Ua=!1,this.Wa=new s.A,this.Va=new s.A,this.options={},this.Fa=[],this.Ka=[],this.Mi=[],this.Ta="5.9.1"}Ga(t){this.Wa.Dt(t)}Nh(t){this.Va.Dt(t)}initialize(t,e){if(this.nn())return o.A.info("Braze has already been initialized with an API key."),!0;this.options=e||{};let a=this.ee(H.$h);const l=(0,F.y)(j.uD.$a());if(l&&"true"===l.brazeLogging&&(a=!0),o.A.init(a),o.A.info(`Initialization Options: ${JSON.stringify(this.options,null,2)}`),null==t||""===t||"string"!=typeof t)return o.A.error("Braze requires a valid API key to be initialized."),!1;this.an=t;
1let c=this.ee(H.Zo);if(null==c||""===c||"string"!=typeof c)return o.A.error("Braze requires a valid baseUrl to be initialized."),!1;!1===/^https?:/.test(c)&&(c=`https://${c}`);const p=c;if(c=document.createElement("a"),c.href=p,"/"===c.pathname&&(c=`${c}api/v3`),this.La=c.toString(),u.A.Ja&&!this.ee(H.Yo))return o.A.info("Ignoring activity from crawler bot "+navigator.userAgent),this.Ua=!0,!1;const g=this.ee(H.Wh)||!1;if(this.C=B.Ya(t,g),g&&this.C.Ha(t),new i.A.se(null,!0).gr(i.d.me))return o.A.info("Ignoring all activity due to previous opt out"),this.Ua=!0,!1;for(const t of(0,b.HP)(this.options))-1===(0,b.zu)(G).indexOf(t)&&o.A.warn(`Ignoring unknown initialization option '${t}'.`);const f=["mparticle","wordpress","tealium"];if(null!=this.ee(H.Oa)){const t=this.ee(H.Oa);-1!==f.indexOf(t)?this.Ra=t:o.A.error("Invalid sdk flavor passed: "+t)}let v=this.ee(G.Vh);if(null!=v)if((0,b.cy)(v)){const t=[];for(let e=0;e<v.length;e++)(0,b.BY)(h,v[e],"devicePropertyAllowlist contained an invalid value.","DeviceProperties")&&t.push(v[e]);v=t}else o.A.error("devicePropertyAllowlist must be an array. Defaulting to all properties."),v=null;const A=this.ee(H.Na);if(A){const t=new d.A(A);this.C.uu(i.d.iu.Na,t)}this.hn=new m(this.C,v),this.B=new D(this.C),this.Cs=new $(this.B,this.C),this.T=new M(this.C,this.Cs,this.B,this.ee(H.Zh));const w=new s.A;return this.Pa=new r(this.C,this.ee(H.Yh),w),this.F(w),this.S=new k(this.hn,this.C,this.Pa,this.Cs,this.T,this.B,this.an,this.La,this.Ta,this.Ra||"",this.ee(H.Qh),this.ee(H.Ea)),this.Fi=new O(this.an,this.La,this.T,this.hn,this.Cs,this.B,this.C,t=>{if(this.nn())for(const e of this.ar())e.U(t)},this.Pa,this.S),this.Fi.initialize(),g||this.C.Xa(),o.A.info(`Initialized for the Braze backend at "${this.ee(H.Zo)}" with API key "${this.an}".`),P.B.p(),this.B.Ke(()=>{var t;this.isInitialized&&(null===(t=this.B)||void 0===t?void 0:t.ke())&&n.e(2188).then(n.bind(n,52188)).then(t=>{this.isInitialized&&(0,t.default)()})}),this.Fi.on(()=>{var t;this.isInitialized&&(null===(t=this.B)||void 0===t?void 0:t.ke())&&n.e(2188).then(n.bind(n,52188)).then(t=>{this.isInitialized&&(0,t.default)(void 0,void 0,!0)})}),this.Wa.X(this.options),this.isInitialized=!0,window.dispatchEvent(new CustomEvent("braze.initialized")),!0}destroy(t){if(o.A.destroy(),this.nn()){this.Va.X(),this.Va.removeAllSubscriptions();for(const t of this.Fa)t.destroy();this.Fa=[];for(const t of this.Ka)t.clearData(!1);this.S&&this.S.fo(),this.Ka=[],this.removeAllSubscriptions(),this.Mi=[],null!=this.Fi&&this.Fi.destroy(),this.Fi=null,this.Pa=null,this.hn=null,this.S=null,this.B=null,this.T=null,this.Cs=null,this.options={},this.Ra=void 0,this.isInitialized=!1,this.Ua=!1,t&&(this.C=null)}}rr(){return!(this.Za()||!this.nn()&&(console.warn(x.xE),1))}Ma(){return this.an}Sr(){return this.Pa}Z(){return this.La}ue(){return this.hn}g(){return this.S}ee(t){return this.options[t]}ar(){return this.Ka}rn(){return this.Fi}v(){return this.B}P(){return this.T}j(){return this.C}mr(){if(this.Cs&&this.Fi)return new L.A(this.Cs,this.Fi)}ir(){return this.Cs}tr(){return!0===this.ee(H.re)}h(t){let e=!1;for(const n of this.Fa)n===t&&(e=!0);e||this.Fa.push(t)}_(t){let e=!1;for(const n of this.Ka)n.constructor===t.constructor&&(e=!0);t instanceof l.A&&!e&&this.Ka.push(t)}F(t){t instanceof s.A&&this.Mi.push(t)}removeAllSubscriptions(){if(this.rr())for(const t of this.Mi)t.removeAllSubscriptions()}removeSubscription(t){if(this.rr())for(const e of this.Mi)e.removeSubscription(t)}fe(t){this.Ua=t}nn(){return this.isInitialized}Za(){return this.Ua}fi(){return this.Ta}}},70226:function(t,e,n){n.d(e,{A:function(){return d},d:function(){return h}});var i=n(78644),s=n(29628),a=n(3312),o=n(12397),r=n(34133),l=n(33779),u=n(42806),c=n(97779);const h={iu:{su:"ab.storage.userId",Na:"ab.storage.deviceId",Nl:"ab.storage.sessionId"},gt:{ac:"ab.test",tE:"ab.storage.events",eE:"ab.storage.attributes",sE:"ab.storage.attributes.anonymous_user",oc:"ab.storage.device",pu:"ab.storage.sdk_metadata",Ru:"ab.storage.session_id_for_cached_metadata",zn:"ab.storage.pushToken",qi:"ab.storage.newsFeed",zi:"ab.storage.lastNewsFeedRefresh",Zt:"ab.storage.cardImpressions",ml:"ab.storage.serverConfig",rE:"ab.storage.triggers",oE:"ab.storage.triggers.ts",Hl:"ab.storage.messagingSessionStart",Hs:"ab.storage.cc",Os:"ab.storage.ccLastFullSync",Qs:"ab.storage.ccLastCardUpdated",Hu:"ab.storage.globalRateLimitCurrentTokenCount",_u:"ab.storage.dynamicRateLimitCurrentTokenCount",Kt:"ab.storage.ccClicks",Yt:"ab.storage.ccImpressions",Vt:"ab.storage.ccDismissals",nE:"ab.storage.lastDisplayedTriggerTimesById",aE:"ab.storage.lastDisplayedTriggerTime",iE:"ab.storage.triggerFireInstancesById",qh:"ab.storage.signature",EE:"ab.storage.brazeSyncRetryCount",Zs:"ab.storage.sdkVersion",Xe:"ab.storage.ff",Ge:"ab.storage.ffImpressions",Ze:"ab.storage.ff
1LastRefreshAt",Ve:"ab.storage.ff.sessionId",lE:"ab.storage.lastReqToEndpoint",SE:"ab.storage.requestAttempts",Kr:"ab.storage.deferredIam",Ku:"ab.storage.lastSdkReq",_E:"ab.storage.alias",vt:"ab.storage.banners",Nt:"ab.storage.banners.impressions",yt:"ab.storage.banners.sessionId"},me:"ab.optOut"};class d{constructor(t,e){this.uE=t,this.cE=e,this.uE=t,this.cE=e}Ha(t){const e=(0,a.HP)(h.iu),n=new d.se(t);for(const t of e)n.remove(h.iu[t])}uu(t,e){let n=null;null!=e&&e instanceof s.A&&(n=e.bt()),this.uE.store(t,n)}TE(t){const e=this.tu(t);null!=e&&(e.ql=(new Date).valueOf(),this.uu(t,e))}tu(t){const e=this.uE.gr(t),n=(t=>{let e;try{e=JSON.parse(t)}catch(t){e=null}return e})(e);let i;if(n)i=s.A.Rn(n)||null,i&&this.uu(t,i);else{const n=s.A.hE(e);i=s.A.Rn(n)||null,n!==e&&i&&this.uu(t,i)}return i}Jl(t){this.uE.remove(t)}Xa(){const t=(0,a.HP)(h.iu);let e;for(const n of t)e=this.tu(h.iu[n]),null!=e&&this.uu(h.iu[n],e)}Vo(t){let e;if(null==t||0===t.length)return!1;e=(0,a.cy)(t)?t:[t];let n=this.cE.gr(h.gt.tE);null!=n&&(0,a.cy)(n)||(n=[]);for(let t=0;t<e.length;t++)n.push(e[t].bt());return this.cE.store(h.gt.tE,n)}Al(t){return null!=t&&this.Vo([t])}AE(){let t=this.cE.gr(h.gt.tE);this.cE.remove(h.gt.tE),null==t&&(t=[]);const e=[];let n=!1,s=null;if((0,a.cy)(t))for(let n=0;n<t.length;n++)i.A.RE(t[n])?e.push(i.A.Rn(t[n])):s=n;else n=!0;if(n||null!=s){let a="Stored events could not be deserialized as Events";n&&(a+=", was "+Object.prototype.toString.call(t)+" not an array"),null!=s&&(a+=", value at index "+s+" does not look like an event"),a+=", serialized values were of type "+typeof t+": "+JSON.stringify(t),e.push(new i.A(null,r.w.qu,(new Date).valueOf(),null,{e:a}))}return e}Bt(t,e){return!!(0,a.BY)(h.gt,t,"StorageManager cannot store object.","STORAGE_KEYS.OBJECTS")&&this.cE.store(t,e)}ft(t){return!!(0,a.BY)(h.gt,t,"StorageManager cannot retrieve object.","STORAGE_KEYS.OBJECTS")&&this.cE.gr(t)}Ut(t){return!!(0,a.BY)(h.gt,t,"StorageManager cannot remove object.","STORAGE_KEYS.OBJECTS")&&(this.cE.remove(t),!0)}clearData(){const t=(0,a.HP)(h.iu),e=(0,a.HP)(h.gt);for(let e=0;e<t.length;e++){const n=t[e];this.uE.remove(h.iu[n])}for(let t=0;t<e.length;t++){const n=e[t];this.cE.remove(h.gt[n])}}gE(t){return t||h.gt.sE}Cu(t){let e=this.cE.gr(h.gt.eE);null==e&&(e={});const n=this.gE(t[l.A.Xn]),i=e[n];for(const s in t)s!==l.A.Xn&&(null==e[n]||i&&null==i[s])&&this.mu(t[l.A.Xn],s,t[
1s])}mu(t,e,n){let i=this.cE.gr(h.gt.eE);null==i&&(i={});const s=this.gE(t);let a=i[s];if(null==a&&(a={},null!=t&&(a[l.A.Xn]=t)),e===l.A.lu){null==a[e]&&(a[e]={});for(const t in n)a[e][t]=n[t]}else a[e]=n;return i[s]=a,this.cE.store(h.gt.eE,i)}OE(){const t=this.cE.gr(h.gt.eE);this.cE.remove(h.gt.eE);const e=[];for(const n in t)null!=t[n]&&e.push(t[n]);return e}ru(t){const e=this.cE.gr(h.gt.eE);if(null!=e){const n=this.gE(null),i=e[n];null!=i&&(e[n]=void 0,this.cE.store(h.gt.eE,e),i[l.A.Xn]=t,this.Cu(i))}const n=this.tu(h.iu.Nl);let i=null;null!=n&&(i=n.eu);const s=this.AE();if(null!=s)for(let e=0;e<s.length;e++){const n=s[e];null==n.userId&&n.sessionId==i&&(n.userId=t),this.Al(n)}}IE(){return this.cE.dE}}d.gc=class{constructor(t){this.an=t,this.an=t,this.dE=u.A.fE()?3:10}bE(t){return t+"."+this.an}store(t,e){const n={v:e};try{return localStorage.setItem(this.bE(t),JSON.stringify(n)),!0}catch(t){return o.A.info("Storage failure: "+(0,c.u)(t)),!1}}gr(t){try{let e=null;const n=localStorage.getItem(this.bE(t));return null!=n&&(e=JSON.parse(n)),null==e?null:e.v}catch(t){return o.A.info("Storage retrieval failure: "+(0,c.u)(t)),null}}remove(t){try{localStorage.removeItem(this.bE(t))}catch(t){return o.A.info("Storage removal failure: "+(0,c.u)(t)),!1}}},d.uc=class{constructor(){this.KE={},this.mE=5242880,this.dE=3}store(t,e){const n={value:e},i=this.YE(e);return i>this.mE?(o.A.info("Storage failure: object is ≈"+i+" bytes which is greater than the max of "+this.mE),!1):(this.KE[t]=n,!0)}YE(t){const e=[],n=[t];let i=0;for(;n.length;){const t=n.pop();if("boolean"==typeof t)i+=4;else if("string"==typeof t)i+=2*t.length;else if("number"==typeof t)i+=8;else if("object"==typeof t&&-1===e.indexOf(t)){let i,s;e.push(t);for(const e in t)s=t,i=e,n.push(s[i])}}return i}gr(t){const e=this.KE[t];return null==e?null:e.value}remove(t){this.KE[t]=null}},d.se=class{constructor(t,e){this.an=t,this.NE=e,this.an=t,this.GE=this.DE(),this.CE=576e3,this.NE=!!e}bE(t){return null!=this.an?t+"."+this.an:t}DE(){let t=0,e=document.location.hostname;const n=e.split("."),i="ab._gd";for(;t<n.length-1&&-1===document.cookie.indexOf(i+"="+i);)t++,e="."+n.slice(-1-t).join("."),document.cookie=i+"="+i+";domain="+e+";";return document.cookie=i+"=;expires="+new Date(0).toUTCString()+";domain="+e+";",e}le(){const t=new Date;return t.setTime(t.getTime()+60*this.CE*1e3),t.getFullYear()}ME(){const t=(0,a.zu)(h.iu),e=document.cookie.split(";");for(let n=0;n<e.length;n++){let i=e[n];for(;" "===i.charAt(0);)i=i.substring(1);let s=!1;for(let e=0;e<t.length;e++)if(0===i.indexOf(t[e])){s=!0;break}if(s){const t=i.split("=")[0];-1===t.indexOf("."+this.an)&&this.pE(t)}}}store(t,e){this.ME();const n=new Date;n.setTime(n.getTime()+60*this.CE*1e3);const i="expires="+n.toUTCString(),s="domain="+this.GE;let a;a=this.NE?e:encodeURIComponent(e);const r=this.bE(t)+"="+a+";"+i+";"+s+";path=/";return r.length>=4093?(o.A.info("Storage failure: string is "+r.length+" chars which is too large to store as a cookie."),!1):(document.cookie=r,!0)}gr(t){const e=[],n=this.bE(t)+"=",i=document.cookie.split(";");for(let s=0;s<i.length;s++){let a=i[s];for(;" "===a.charAt(0);)a=a.substring(1);if(0===a.indexOf(n))try{let t;t=this.NE?a.substring(n.length,a.length):decodeURIComponent(a.substring(n.length,a.length)),e.push(t)}catch(e){return o.A.info("Storage retrieval failure: "+(0,c.u)(e)),this.remove(t),null}}return e.length>0?e[e.length-1]:null}remove(t){this.pE(this.bE(t))}pE(t){const e=t+"=;expires="+new Date(0).toUTCString();document.cookie=e,document.cookie=e+";path=/";const n=e+";domain="+this.GE;document.cookie=n,document.cookie=n+";path=/"}},d.lc=class{constructor(t,e,n){this.an=t,this.vE=[],e&&this.vE.push(new d.se(t)),n&&this.vE.push(new d.gc(t)),this.vE.push(new d.uc)}store(t,e){let n=!0;for(let i=0;i<this.vE.length;i++)n=this.vE[i].store(t,e)&&n;return n}gr(t){for(let e=0;e<this.vE.length;e++){const n=this.vE[e].gr(t);if(null!=n)return n}return null}remove(t){new d.se(this.an).remove(t);for(let e=0;e<this.vE.length;e++)this.vE[e].remove(t)}}},9314:function(t,e,n){n.d(e,{A:function(){return s}});var i=n(5084);class s{constructor(){this.Mi={}}Dt(t){if("function"!=typeof t)return null;const e=i.A.ce();return this.Mi[e]=t,e}removeSubscription(t){delete this.Mi[t]}removeAllSubscriptions(){this.Mi={}}hc(){return Object.keys(this.Mi).length}X(t){const e=[];for(const n in this.Mi){const i=this.Mi[n];e.push(i(t))}return e}}},35056:function(t,e,n){n.d(e,{b:function(){return s}});var i=n(70226);function s(t){const e=null==t?void 0:t.ft(i.d.gt._E);let n;return e&&(n={label:e.l,name:e.a}
1),n}},48655:function(t,e){e.A={Du:"invalid_api_key",Tu:"blacklisted",ku:"no_device_identifier",Au:"invalid_json_response",bu:"empty_response",__:"sdk_auth_error"}},78644:function(t,e,n){n.d(e,{A:function(){return r}});var i=n(3234),s=n(35056),a=n(3312),o=n(8037);class r{constructor(t,e,n,i,s){this.userId=t,this.type=e,this.time=n,this.sessionId=i,this.data=s,this.userId=t,this.type=e,this.time=(0,o.S3)(n),this.sessionId=i,this.data=s}Nr(){var t;const e={name:this.type,time:(0,o.UK)(this.time),data:this.data||{},session_id:this.sessionId};null!=this.userId&&(e.user_id=this.userId);const n=(null===(t=i.Ay.Sr())||void 0===t?void 0:t.jh())||!1;if(!e.user_id&&!n){const t=(0,s.b)(i.Ay.j());t&&(e.alias=t)}return e}bt(){return{u:this.userId,t:this.type,ts:this.time,s:this.sessionId,d:this.data}}static fromJson(t){return new r(t.user_id,t.name,t.time,t.session_id,t.data)}static RE(t){return null!=t&&(0,a.Gv)(t)&&null!=t.t&&""!==t.t}static Rn(t){return new r(t.u,t.t,t.ts,t.s,t.d)}}},29628:function(t,e,n){n.d(e,{A:function(){return r}});var i=n(12397),s=n(5084),a=n(3312),o=n(97779);class r{constructor(t,e,n){this.eu=t,null==t&&(t=s.A.ce()),!n||isNaN(n)?this.Gl=(new Date).valueOf():this.Gl=n,this.eu=t,this.ql=(new Date).valueOf(),this.kl=e}bt(){return`g:${encodeURIComponent(this.eu)}|e:${this.kl}|c:${this.Gl}|l:${this.ql}`}static hE(t){if("string"!=typeof t)return null;const e=t.lastIndexOf("|e:"),n=t.substring(0,e),i=n.split("g:")[1];let s;return s=/[|:]/.test(i)?encodeURIComponent(i):i,t.replace(n,`g:${s}`)}static Rn(t){let e;if("string"==typeof t)try{const n=t.split("|");if(!(0,a.cy)(n)||4!==n.length)return null;const i=t=>t.split(":")[1],s=t=>{const e=parseInt(i(t));if(!isNaN(e))return e};e=new r(decodeURIComponent(i(n[0])),s(n[1]),s(n[2])),e.ql=s(n[3])}catch(e){i.A.info(`Unable to parse cookie string ${t}, failed with error: ${(0,o.u)(e)}`)}else{if(null==t||null==t.g)return null;e=new r(t.g,t.e,t.c),e.ql=t.l}return e}}},28603:function(t,e,n){n.d(e,{A:function(){return s}});var i=n(8037);class s{constructor(t,e,n,i,s){this.endpoint=t,this.En=e,this.publicKey=n,this.Vl=i,this.fl=s,this.endpoint=t||null,this.En=e||null,this.publicKey=n||null,this.Vl=i||null,this.fl=s||null}bt(){return{e:this.endpoint,c:this.En,p:this.publicKey,u:this.Vl,v:this.fl}}static Rn(t){return new s(t.e,(0,i.jU)(t.c),t.p,t.u,t.v)}}},25810:function(t,e,n){n.d(e,{A:function(){return i}});class i{constructor(t=!1,e=[]){this.tt=t,this.$e=e,this.tt=t,this.$e=e}ns(t){this.tt=this.tt&&t.tt,this.$e.push(...t.$e)}}},77069:function(t,e){e.A={OPEN:"open",Rr:"purchase",hr:"push_click",Ee:"custom_event",Zr:"iam_click",As:"test"}},48393:function(t,e,n){n.d(e,{A:function(){return f}});var i=n(8037),s=n(12397);class a{constructor(t){this.xc=t,this.xc=t}zc(t){return null==this.xc||this.xc===t[0]}static fromJson(t){return new a(t?t.event_name:null)}bt(){return this.xc}}var o=n(3312);class r{constructor(t,e,n,s){this.yE=t,this.HE=e,this.comparator=n,this.LE=s,this.yE=t,this.HE=e,this.comparator=n,this.LE=s,this.HE===r.QE.UE&&this.comparator!==r.wE.XE&&this.comparator!==r.wE.BE&&this.comparator!==r.wE.jE&&this.comparator!==r.wE.zE&&(this.LE=(0,i.Zo)(this.LE))}zc(t){let e=null;switch(null!=t&&(e=t[this.yE]),this.comparator){case r.wE.FE:return null!=e&&e.valueOf()===this.LE.valueOf();case r.wE.kE:return null==e||e.valueOf()!==this.LE.valueOf();case r.wE.xE:return null!=e&&typeof e==typeof this.LE&&e>this.LE;case r.wE.XE:return this.HE===r.QE.UE?null!=e&&(0,o.$P)(e)&&(0,i.Jd)(e)<=this.LE.valueOf():null!=e&&typeof e==typeof this.LE&&e>=this.LE;case r.wE.JE:return null!=e&&typeof e==typeof this.LE&&e<this.LE;case r.wE.BE:return this.HE===r.QE.UE?null!=e&&(0,o.$P)(e)&&(0,i.Jd)(e)>=this.LE.valueOf():null!=e&&typeof e==typeof this.LE&&e<=this.LE;case r.wE.VE:return null!=e&&"string"==typeof e&&typeof e==typeof this.LE&&null!=e.match(this.LE);case r.wE.qE:return null!=e;case r.wE.PE:return null==e;case r.wE.jE:return null!=e&&(0,o.$P)(e)&&(0,i.DA)(e)<this.LE;case r.wE.zE:return null!=e&&(0,o.$P)(e)&&(0,i.DA)(e)>this.LE;case r.wE.WE:return null==e||typeof e!=typeof this.LE||"string"!=typeof e||null==e.match(this.LE)}return!1}static fromJson(t){return new r(t.property_key,t.property_type,t.comparator,t.property_value)}bt(){let t=this.LE;return(0,o.$P)(this.LE)&&(t=(0,i.UK)(t.valueOf())),{k:this.yE,t:this.HE,c:this.comparator,v:t}}static Rn(t){return new r(t.k,t.t,t.c,t.v)}}r.QE={ZE:"boolean",$E:"number",tT:"string",UE:"date"},r.wE={FE:1,kE:2,xE:3,XE:4,JE:5,BE:6,VE:10,qE:11,PE:12,jE:15,zE:16,WE:17};class l{constructor(t){this.filters=t,this.filters=t}zc(t){let e=!0;for(let n=0;n<this.filters.length;n++){const i=this.filters[n];let s=!1;for(let e=0;e<i.length;e++)if(i[e].zc(t)){s=!0;break}if(!s){e=!1;break}}return e}static fromJson(t){if(null==t||!(0,o.cy)(t))return null;const e=[];for(let n=0;n<t.length;n++){const i=[],s=t[n];for(let t=0;t<s.length;t++)i.push(r.fromJson(s[t]));e.push(i)}return new l(e)}bt(){const t=[];for(let e=0;e<this.filters.length;e++){const n=this.filters[e],i=[];for(let t=0;t<n.length;t++)i.push(n[t].bt());t.push(i)}return t}static Rn(t){const e=[];for(let n=0;n<t.length;n++){const i=[],s=t[n];for(let t=0;t<s.length;t++)i.push(r.Rn(s[t]));e.push(i)}return new l(e)}}class u{constructor(t,e){this.xc=t,this.tf=e,this.xc=t,this.tf=e}zc(t){if(null==this.xc||null==this.tf)return!1;const e=t[0],n=t[1];return e===this.xc&&this.tf.zc(n)}static fromJson(t){return new u(t?t.event_name:null,t?l.fromJson(t.property_filters):null)}bt(){return{e:this.xc,pf:this.tf?this.tf.bt():null}}}class c{constructor(t,e){this.if=t,this.rf=e,this.if=t,this.rf=e}zc(t){if(null==this.if)return!1;const e=m.sf(t[0],this.if);if(!e)return!1;let n=null==this.rf||0===this.rf.length;if(null!=this.rf)for(let e=0;e<this.rf.length;e++)if(this.rf[e]===t[1]){n=!0;break}return e&&n}static fromJson(t){return new c(t?t.id:null,t?t.buttons:null)}bt(){return this.if}}class h{constructor(t){this.productId=t,this.productId=t}zc(t){return null==this.productId||t[0]===this.productId}static fromJson(t){return new h(t?t.product_id:null)}bt(){return this.productId}}class d{constructor(t,e){this.productId=t,this.tf=e,this.productId=t,this.tf=e}zc(t){if(null==this.productId||null==this.tf)return!1;const e=t[0],n=t[1];return e===this.productId&&this.tf.zc(n)}static fromJson(t){return new d(t?t.product_id:null,t?l.fromJson(t.property_filters):null)}bt(){return{id:this.productId,pf:this.tf?this.tf.bt():null}}}class p{constructor(t){this.if=t,this.if=t}zc(t){return null==this.if||m.sf(t[0],this.if)}static fromJson(t){return new p(t?t.campaign_id:null)}bt(){return this.if}}var b=n(77069),g=n(97779);class m{constructor(t,e){this.type=t,this.data=e,this.type=t,this.data=e}_c(t,e){return m.Ec[this.type]===t&&(null==this.data||this.data.zc(e))}static sf(t,e){let n=null;try{n=window.atob(t)}catch(e){return s.A.info("Failed to unencode analytics id "+t+": "+(0,g.u)(e)),!1}return e===n.split("_")[0]}static fromJson(t){const e=t.type;let n=null;switch(e){case m.Or.OPEN:case m.Or.As:break;case m.Or.Rr:n=h.fromJson(t.data);break;case m.Or.Cc:n=d.fromJson(t.data);break;case m.Or.hr:n=p.fromJson(t.data);break;case m.Or.Ee:n=a.fromJson(t.data);break;case m.Or.Pc:n=u.fromJson(t.data);break;case m.Or.Zr:n=c.fromJson(t.data)}return new m(e,n)}
1bt(){return{t:this.type,d:this.data?this.data.bt():null}}static Rn(t){let e,n=null;switch(t.t){case m.Or.OPEN:case m.Or.As:break;case m.Or.Rr:n=new h(t.d);break;case m.Or.Cc:e=t.d||{},n=new d(e.id,l.Rn(e.pf||[]));break;case m.Or.hr:n=new p(t.d);break;case m.Or.Ee:n=new a(t.d);break;case m.Or.Pc:e=t.d||{},n=new u(e.e,l.Rn(e.pf||[]));break;case m.Or.Zr:n=new c(t.d)}return new m(t.t,n)}}m.Or={OPEN:"open",Rr:"purchase",Cc:"purchase_property",hr:"push_click",Ee:"custom_event",Pc:"custom_event_property",Zr:"iam_click",As:"test"},m.Ec={},m.Ec[m.Or.OPEN]=b.A.OPEN,m.Ec[m.Or.Rr]=b.A.Rr,m.Ec[m.Or.Cc]=b.A.Rr,m.Ec[m.Or.hr]=b.A.hr,m.Ec[m.Or.Ee]=b.A.Ee,m.Ec[m.Or.Pc]=b.A.Ee,m.Ec[m.Or.Zr]=b.A.Zr,m.Ec[m.Or.As]=b.A.As;class f{constructor(t,e=[],n,i,s=0,a,o,r=0,l=f.td,u,c,h){this.id=t,this.sd=e,this.startTime=n,this.endTime=i,this.priority=s,this.type=a,this.data=o,this.ed=r,this.rd=l,this.Jr=u,this.hd=c,this.od=h,this.id=t,this.sd=e||[],void 0===n&&(n=null),this.startTime=n,void 0===i&&(i=null),this.endTime=i,this.priority=s||0,this.type=a,this.ed=r||0,null==u&&(u=1e3*(this.ed+30)),this.Jr=u,this.data=o,null!=l&&(this.rd=l),this.hd=c,this.od=h||null}nd(t){return null==this.od||this.rd!==f.td&&t-this.od>=1e3*this.rd}ad(t){this.od=t}ud(t){const e=t+1e3*this.ed;return Math.max(e-(new Date).valueOf(),0)}dd(t){const e=(new Date).valueOf()-t,n=null==t||isNaN(e)||null==this.Jr||e<this.Jr;return n||s.A.info(`Trigger action ${this.type} is no longer eligible for display - fired ${e}ms ago and has a timeout of ${this.Jr}ms.`),!n}static fromJson(t){const e=t.id,n=[];for(let e=0;e<t.trigger_condition.length;e++)n.push(m.fromJson(t.trigger_condition[e]));const s=(0,i.Zo)(t.start_time),a=(0,i.Zo)(t.end_time),r=t.priority,l=t.type,u=t.delay,c=t.re_eligibility,h=t.timeout,d=t.data,p=t.min_seconds_since_last_trigger;return(0,o.BY)(f.Or,l,"Could not construct Trigger from server data","Trigger.Types")?new f(e,n,s,a,r,l,d,u,c,h,p):null}bt(){const t=[];for(let e=0;e<this.sd.length;e++)t.push(this.sd[e].bt());return{i:this.id,c:t,s:this.startTime,e:this.endTime,p:this.priority,t:this.type,da:this.data,d:this.ed,r:this.rd,tm:this.Jr,ss:this.hd,ld:this.od}}static Rn(t){const e=[],n=t.c||[];for(let t=0;t<n.length;t++)e.push(m.Rn(n[t]));return new f(t.i,e,(0,i.jU)(t.s),(0,i.jU)(t.e),t.p,t.t,t.da,t.d,t.r,t.tm,t.ss,t.ld)}}f.Or={Cr:"inapp",md:"templated_iam"},f.td=-1},53261:function(t,e,n){n.d(e,{B:function(){return g}});var i=n(57193),s=n(3234),a=n(72765),o=n(11726),r=n(78644),l=n(3312),u=n(70226);class c{constructor(t,e,n,i,s){this.triggerId=t,this.Xr=e,this.$r=n,this.Hr=i,this.Jr=s,this.triggerId=t,this.Xr=e,this.$r=n,this.Hr=i,this.Jr=s}static fromJson(t,e,n,i,s){return null==t||null==t.trigger_id?null:new c(t.trigger_id,e,n,i,s)}}var h=n(48393),d=n(77069),p=n(12397);class b extends a.A{constructor(t,e,n,i,s){super(),this.tg=t,this.Ts=e,this.C=n,this.Fi=i,this.ig=s,this.tg=t,this.Ts=e,this.C=n,this.Fi=i,this.ig=s,this.sg=[],this.eg=[],this.hg=null,this.ng={},this.og={},this.triggers=[],this.lg=0,this.ag(),this.gg()}fg(){if(this.C){this.hg=this.C.ft(u.d.gt.aE)||this.hg,this.ng=this.C.ft(u.d.gt.iE)||this.ng,this.og=this.C.ft(u.d.gt.nE)||this.og;for(let t=0;t<this.triggers.length;t++){const e=this.triggers[t];e.id&&null!=this.og[e.id]&&e.ad(this.og[e.id])}}}ag(){if(!this.C)return;this.lg=this.C.ft(u.d.gt.oE)||0;const t=this.C.ft(u.d.gt.rE)||[],e=[];for(let n=0;n<t.length;n++)e.push(h.A.Rn(t[n]));this.triggers=e,this.fg()}gg(){const t=this,e=function(e,n,i,s,a){return function(){t.cg(e,n,i,s,a)}},n={};for(const t of this.triggers)t.id&&(n[t.id]=t);let i=!1;for(let t=0;t<this.triggers.length;t++){const s=this.triggers[t];if(s.id&&null!=this.ng[s.id]){const t=this.ng[s.id],a=[];for(let i=0;i<t.length;i++){const o=t[i],u=s.ud(o.Hr||0);if(u>0){let t,i;a.push(o),null!=o.ug&&(t=o.ug),null!=o.dg&&r.A.RE(o.dg)&&(i=r.A.Rn(o.dg));const c=[];if(o.pg&&(0,l.cy)(o.pg))for(let t=0;t<o.pg.length;t++){const e=n[o.pg[t]];null!=e&&c.push(e)}this.eg.push(window.setTimeout(e(s,o.Hr||0,t,i,c),u))}}this.ng[s.id].length>a.length&&(this.ng[s.id]=a,i=!0,0===this.ng[s.id].length&&delete this.ng[s.id])}}i&&this.C&&this.C.Bt(u.d.gt.iE,this.ng)}mg(){if(!this.C)return;const t=[];for(let e=0;e<this.triggers.length;
1e++)t.push(this.triggers[e].bt());this.lg=(new Date).valueOf(),this.C.Bt(u.d.gt.rE,t),this.C.Bt(u.d.gt.oE,this.lg)}bg(){this.C&&((this.C.ft(u.d.gt.oE)||0)>this.lg?this.ag():this.fg())}U(t){let e=!1;if(null!=t&&t.triggers){this.ig.Yr(),this.fg();const n={},i={};this.triggers=[];for(let s=0;s<t.triggers.length;s++){const a=h.A.fromJson(t.triggers[s]);if(a){a.id&&null!=this.og[a.id]&&(a.ad(this.og[a.id]),n[a.id]=this.og[a.id]),a.id&&null!=this.ng[a.id]&&(i[a.id]=this.ng[a.id]);for(let t=0;t<a.sd.length;t++)if(a.sd[t]._c(d.A.As,null)){e=!0;break}this.triggers.push(a)}}(0,l.n4)(this.og,n)||(this.og=n,this.C&&this.C.Bt(u.d.gt.nE,this.og)),(0,l.n4)(this.ng,i)||(this.ng=i,this.C&&this.C.Bt(u.d.gt.iE,this.ng)),this.mg(),e&&(p.A.info("Trigger with test condition found, firing test."),this.Ce(d.A.As)),this.Ce(d.A.OPEN);const s=this.sg;let a;this.sg=[];for(let t=0;t<s.length;t++)a=Array.prototype.slice.call(s[t]),this.Ce(...a)}}cg(t,e,n,i,s){const a=i=>{this.fg();const s=(new Date).valueOf();t.dd(e)||(!1===navigator.onLine&&t.type===h.A.Or.Cr&&i.imageUrl?p.A.info(`Not showing ${t.type} trigger action ${t.id} due to offline state.`):t.nd(s)&&this.wg(t,s,n)?0===this.Ts.hc()?p.A.info(`Not displaying trigger ${t.id} because neither automaticallyShowInAppMessages() nor subscribeToInAppMessage() were called.`):(this.Ts.X([i]),this.yg(t,s)):p.A.info(`Not displaying trigger ${t.id} because display time fell outside of the acceptable time window.`))},r=()=>{this.fg();const a=s.pop();if(null!=a)if(this.Tg(a,e,n,i,s),a.dd(e)){let t=`Server aborted in-app message display, but the timeout on fallback trigger ${a.id} has already elapsed.`;s.length>0&&(t+=" Continuing to fall back."),p.A.info(t),r()}else{p.A.info(`Server aborted in-app message display. Falling back to lower priority ${a.type} trigger action ${t.id}.`);const o=1e3*a.ed-((new Date).valueOf()-e);o>0?this.eg.push(window.setTimeout(()=>{this.cg(a,e,n,i,s)},o)):this.cg(a,e,n,i,s)}};let l,u,d;switch(t.type){case h.A.Or.Cr:if(l=(0,o.g)(t.data),null==l){p.A.error(`Could not parse trigger data for trigger ${t.id}, ignoring.`);break}if(u=this.ig.Ir(l),u){p.A.error(u),r();break}a(l);break;case h.A.Or.md:if(d=c.fromJson(t.data,a,r,e,t.Jr||0),null==d){p.A.error(`Could not parse trigger data for trigger ${t.id}, ignoring.`);break}this.ig.qr(d,n,i);break;default:p.A.error(`Trigger ${t.id} was of unexpected type ${t.type}, ignoring.`)}}Ce(t,e=null,n){if(!(0,l.BY)(d.A,t,"Cannot fire trigger action.","TriggerEvents"))return;if(this.Fi&&this.Fi.dc())return p.A.info("Trigger sync is currently in progress, awaiting sync completion before firing trigger event."),void this.sg.push(arguments);this.bg();const i=(new Date).valueOf(),s=i-(this.hg||0);let a=!0,o=!0;const r=[];for(let n=0;n<this.triggers.length;n++){const s=this.triggers[n],l=i+1e3*s.ed;if(s.nd(l)&&(null==s.startTime||s.startTime.valueOf()<=i)&&(null==s.endTime||s.endTime.valueOf()>=i)){let n=!1;for(let i=0;i<s.sd.length;i++)if(s.sd[i]._c(t,e)){n=!0;break}n&&(a=!1,this.wg(s,l,t)&&(o=!1,r.push(s)))}}if(a)return void p.A.info(`Trigger event ${t} did not match any trigger conditions.`);if(o)return void p.A.info(`Ignoring ${t} trigger event because a trigger was displayed ${s/1e3}s ago.`);r.sort((t,e)=>t.priority-e.priority);const u=r.pop();null!=u&&(p.A.info(`Firing ${u.type} trigger action ${u.id} from trigger event ${t}.`),this.Tg(u,i,t,n,r),0===u.ed?this.cg(u,i,t,n,r):this.eg.push(window.setTimeout(()=>{this.cg(u,i,t,n,r)},1e3*u.ed)))}changeUser(t=!1){if(this.triggers=[],this.C&&this.C.Ut(u.d.gt.rE),!t){this.sg=[],this.hg=null,this.og={},this.ng={};for(let t=0;t<this.eg.length;t++)clearTimeout(this.eg[t]);this.eg=[],this.C&&(this.C.Ut(u.d.gt.aE),this.C.Ut(u.d.gt.nE),this.C.Ut(u.d.gt.iE))}}clearData(){this.triggers=[],this.hg=null,this.og={},this.ng={};for(let t=0;t<this.eg.length;t++)clearTimeout(this.eg[t]);this.eg=[]}wg(t,e,n){if(null==this.hg)return!0;if(n===d.A.As)return p.A.info("Ignoring minimum interval between trigger because it is a test type."),!0;let i=t.hd;return null==i&&(i=this.tg),e-this.hg>=1e3*i}Tg(t,e,n,i,s){this.fg(),t.id&&(this.ng[t.id]=this.ng[t.id]||[]);const a={};let o;a.Hr=e,a.ug=n,null!=i&&(o=i.bt()),a.dg=o;const r=[];for(const t of s)t.id&&r.push(t.id);a.pg=r,t.id&&this.ng[t.id].push(a),this.C&&this.C.Bt(u.d.gt.iE,this.ng)}yg(t,e){this.fg(),t.ad(e),this.hg=e,t.id&&(this.og[t.id]=e),this.C&&(this.C.Bt(u.d.gt.aE,e),this.C.Bt(u.d.gt.nE,this.og))}}const g={l:!1,provider:null,m:()=>(g.p(),g.provider||g.rg(),g.provider),rg:()=>{if(!g.provider){const t=s.Ay.ee(s.lw.Xh);g.provider=new b(null!=t?t:30,i.A.ea().Oi(),s.Ay.j(),s.Ay.rn(),i.A.ea()),s.Ay._(g.provider)}},p:()=>{g.l||(g.rg(),s.Ay.h(g),g.l=!0)},destroy:()=>{g.provider=null,g.l=!1}}},98824:function(t,e,n){n.d(e,{n:function(){return s}});var i=n(3234);function s(t,e,n){const s=t||document.querySelector("head"),a=`ab-${e}-css-definitions-${"5.9.1".replace(/\./g,"-")}`;if(!s)return;const o=s.ownerDocument||document;if(null==o.getElementById(a)){const t=o.createElement("style");t.innerHTML=n||"",t.id=a;const e=i.Ay.ee(i.lw.er);null!=e&&t.setAttribute("nonce",e),s.appendChild(t)}}},54559:function(t,e,n){n.d(e,{N:function(){return s}});var i=n(3234);function s(){if(i.Ay.ee(i.lw.Ia))return;const t="https://use.fontawesome.com/7f85a56ba4.css";if(null===document.querySelector('link[rel=stylesheet][href="'+t+'"]')){const e=document.createElement("link");
1e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),document.getElementsByTagName("head")[0].appendChild(e)}}},29157:function(t,e,n){n.d(e,{$6:function(){return u},V:function(){return r},dy:function(){return p},jj:function(){return c},mY:function(){return l},qj:function(){return d}});var i=n(12397),s=n(97779),a=n(70932),o=n(2490);const r={types:{io:"container",logCustomEvent:"logCustomEvent",setEmailNotificationSubscriptionType:"setEmailNotificationSubscriptionType",setPushNotificationSubscriptionType:"setPushNotificationSubscriptionType",setCustomUserAttribute:"setCustomUserAttribute",requestPushPermission:"requestPushPermission",addToSubscriptionGroup:"addToSubscriptionGroup",removeFromSubscriptionGroup:"removeFromSubscriptionGroup",addToCustomAttributeArray:"addToCustomAttributeArray",removeFromCustomAttributeArray:"removeFromCustomAttributeArray",co:"openLink",mo:"openLinkInWebView"},properties:{type:"type",eo:"steps",so:"args"}},l={Mr:"unknownBrazeAction",wr:"noPushPrompt"},u=(t,e)=>{switch(t){case l.Mr:return`${e} contains an unknown braze action type and will not be displayed.`;case l.wr:return`${e} contains a push prompt braze action, but is not eligible for a push prompt. Ignoring.`;default:return""}};function c(t){try{const e=t.match(o.nx),n=e?e[0].length:null,s=n?t.substring(n):null;if(null==n||n>t.length-1||!s)return void i.A.error(`Did not find base64 encoded brazeAction in url to process : ${t}`);const r=(0,a.u)(s);return r?JSON.parse(r):void i.A.error(`Failed to decode base64 encoded brazeAction: ${s}`)}catch(e){return void i.A.error(`Failed to process brazeAction URL ${t} : ${(0,s.u)(e)}`)}}function h(t,e){let n=!1;if(e)for(const i of e)if(n=n||t(i),n)return!0;return!1}function d(t){const e=r.properties.type,n=r.properties.eo;try{if(null==t)return!0;const i=t[e];return i===r.types.io?h(d,t[n]):!(0,o.To)(i)}catch(t){return!0}}function p(t){if(!t||!(0,o.xs)(t))return!1;const e=r.properties.type,n=r.properties.eo,i=t[e];return i===r.types.io?h(p,t[n]):i===r.types.requestPushPermission}},42806:function(t,e,n){n.d(e,{A:function(){return u}});var i=n(3312);class s{constructor(){}ef(){}ff(){}ec(t){}static nf(t,e){if(t&&e)if(t=t.toLowerCase(),(0,i.cy)(e.cf)){for(let n=0;n<e.cf.length;n++)if(-1!==t.indexOf(e.cf[n].toLowerCase()))return e.identity}else if(-1!==t.indexOf(e.cf.toLowerCase()))return e.identity}}var a=n(45851);class o extends s{constructor(){if(super(),this.userAgentData=navigator.userAgentData,this.browser=null,this.version=null,this.userAgentData){const t=this.Bc();this.browser=t.browser||"Unknown Browser",this.version=t.version||"Unknown Version"}this.OS=null}ef(){return this.browser}ff(){return this.version}ec(t){if(this.OS)return Promise.resolve(this.OS);const e=e=>{for(let n=0;n<t.length;n++){const i=o.nf(e,t[n]);if(i)return this.OS=i,this.OS}return e};return this.userAgentData.platform?Promise.resolve(e(this.userAgentData.platform)):this.getHighEntropyValues().then(t=>t.platform?e(t.platform):navigator.platform).catch(()=>navigator.platform)}Bc(){const t={},e=this.userAgentData.brands;if(e&&e.length)for(const n of e){const e=this.Vc(a.c),i=n.brand.match(e);if(i&&i.length>0){t.browser=i[0],t.version=n.version;break}}return t}Vc(t){const e=[];for(const n in t){const i=n;e.push(t[i])}return new RegExp("("+e.join("|")+")","i")}getHighEntropyValues(){return this.userAgentData.getHighEntropyValues?this.userAgentData.getHighEntropyValues(["platform"]):Promise.reject()}}class r extends s{constructor(){super(),this.fd=r.Bc(navigator.userAgent||"")}ef(){return this.fd[0]||"Unknown Browser"}ff(){return this.fd[1]||"Unknown Version"}ec(t){for(let e=0;e<t.length;e++){const n=t[e].string;let i=r.nf(n,t[e]);if(i)return i===a.u.Pg&&navigator.maxTouchPoints>1&&(i=a.u.ao),Promise.resolve(i)}return Promise.resolve(navigator.platform)}static Bc(t){let e,n=t.match(/(samsungbrowser|tizen|roku|konqueror|icab|crios|opera|ucbrowser|chrome|safari|firefox|camino|msie|trident(?=\/))\/?\s*(\.?\d+(\.\d+)*)/i)||[];if(-1!==t.indexOf("(Web0S; Linux/SmartTV)"))return["LG Smart TV",null];if(-1!==t.indexOf("CrKey"))return["Chromecast",null];if(-1!==t.indexOf("BRAVIA")||-1!==t.indexOf("SonyCEBrowser")||-1!==t.indexOf("SonyDTV"))return["Sony Smart TV",null];if(-1!==t.indexOf("PhilipsTV"))return["Philips Smart TV",null];if(t.match(/\b(Roku)\b/))return["Roku",null];if(t.match(/\bAFTM\b/))return["Amazon Fire Stick",null];if(n[1]===a.c.rO&&(e=t.match(/\b(OPR|Edge|EdgA|Edg|UCBrowser)\/(\.?\d+(\.\d+)*)/),null!=e))return e=e.slice(1),e[0]=e[0].replace("OPR",a.c.oO),e[0]=e[0].replace("EdgA",a.
1c.eO),"Edg"===e[0]&&(e[0]=a.c.eO),[e[0],e[1]];if(n[1]===a.c.Bg&&(e=t.match(/\b(EdgiOS)\/(\.?\d+(\.\d+)*)/),null!=e))return e=e.slice(1),e[0]=e[0].replace("EdgiOS",a.c.eO),[e[0],e[1]];if(n=n[2]?[n[1],n[2]]:[null,null],n[0]===a.c.Bg&&null!=(e=t.match(/version\/(\.?\d+(\.\d+)*)/i))&&n.splice(1,1,e[1]),null!=(e=t.match(/\b(UCBrowser)\/(\.?\d+(\.\d+)*)/))&&n.splice(1,1,e[2]),n[0]===a.c.oO&&null!=(e=t.match(/mini\/(\.?\d+(\.\d+)*)/i)))return["Opera Mini",e[1]||""];if(n[0]){const t=n[0].toLowerCase();"crios"===t&&(n[0]=a.c.rO),"tizen"===t&&(n[0]="Samsung Smart TV",n[1]=null),"samsungbrowser"===t&&(n[0]="Samsung Browser")}return n}}class l{constructor(){const t=navigator.userAgentData?o:r;this.Sg=new t,this.userAgent=navigator.userAgent,this.browser=this.Sg.ef(),this.version=this.Sg.ff(),this.OS=null,this.ec().then(t=>this.OS=t);const e=navigator;this.language=(e.userLanguage||e.language||e.browserLanguage||e.systemLanguage||"").toLowerCase(),this.Ja=l.vg(this.userAgent)}fE(){return this.browser===a.c.Bg}ic(){return this.OS||null}ec(){return this.OS?Promise.resolve(this.OS):this.Sg.ec(l.kg).then(t=>(this.OS=t,t))}static vg(t){t=t.toLowerCase();const e=["googlebot","bingbot","slurp","duckduckbot","baiduspider","yandex","facebookexternalhit","sogou","ia_archiver","https://github.com/prerender/prerender","aolbuild","bingpreview","msnbot","adsbot","mediapartners-google","teoma","taiko"];for(let n=0;n<e.length;n++)if(-1!==t.indexOf(e[n]))return!0;return!1}}l.kg=[{string:navigator.platform,cf:"Win",identity:a.u.Og},{string:navigator.platform,cf:"Mac",identity:a.u.Pg},{string:navigator.platform,cf:"BlackBerry",identity:"BlackBerry"},{string:navigator.platform,cf:"FreeBSD",identity:"FreeBSD"},{string:navigator.platform,cf:"OpenBSD",identity:"OpenBSD"},{string:navigator.platform,cf:"Nintendo",identity:"Nintendo"},{string:navigator.platform,cf:"SunOS",identity:"SunOS"},{string:navigator.platform,cf:"PlayStation",identity:"PlayStation"},{string:navigator.platform,cf:"X11",identity:"X11"},{string:navigator.userAgent,cf:["iPhone","iPad","iPod"],identity:a.u.ao},{string:navigator.platform,cf:"Pike v",identity:a.u.ao},{string:navigator.userAgent,cf:["Web0S"],identity:"WebOS"},{string:navigator.userAgent,cf:"Tizen",identity:"Tizen"},{string:navigator.platform,cf:["Linux armv7l","Android"],identity:a.u.xg},{string:navigator.userAgent,cf:["Android"],identity:a.u.xg},{string:navigator.platform,cf:"Linux",identity:"Linux"}];const u=new l},3312:function(t,e,n){n.d(e,{$P:function(){return r},BY:function(){return a},E$:function(){return u},Gv:function(){return l},HP:function(){return c},cy:function(){return o},n4:function(){return h},zu:function(){return s}});var i=n(12397);function s(t){const e=[];let n;for(const i in t)n=i,Object.prototype.hasOwnProperty.call(t,n)&&void 0!==t[n]&&e.push(t[n]);return e}function a(t,e,n,a){const o=s(t);return-1!==o.indexOf(e)||(i.A.error(`${n} Valid values from ${a} are "${o.join('"/"')}".`),!1)}function o(t){return Array.isArray?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)}function r(t){return"[object Date]"===Object.prototype.toString.call(t)}function l(t){return"[object Object]"===Object.prototype.toString.call(t)}function u(t,...e){null==t&&(t=[]);const n=[],i=arguments.length;for(let e=0,s=t.length;e<s;e++){const s=t[e];if(-1!==n.indexOf(s))continue;let a=1;for(a=1;a<i&&-1!==arguments[a].indexOf(s);a++);a===i&&n.push(s)}return n}function c(t){const e=[];for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push(n);return e}function h(t,e){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return t===e;const n=t.toString();if(n!==e.toString())return!1;switch(n){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 i="[object Array]"===n;if(!i){if("object"!=typeof t||"object"!=typeof e)return!1;const n=t.constructor,i=e.constructor;if(n!==i&&!("function"==typeof n&&n instanceof n&&"function"==typeof i&&i instanceof i)&&"constructor"in t&&"constructor"in e)return!1}const s=[],a=[];let o=s.length;for(;o--;)if(s[o]===t)return a[o]===e;
1if(s.push(t),a.push(e),i){if(o=t.length,o!==e.length)return!1;for(;o--;)if(!h(t[o],e[o]))return!1}else{const n=c(t);let i;if(o=n.length,c(e).length!==o)return!1;for(;o--;)if(i=n[o],!Object.prototype.hasOwnProperty.call(e,i)||!h(t[i],e[i]))return!1}return s.pop(),a.pop(),!0}},31242:function(t,e,n){n.d(e,{p:function(){return a}});var i=n(16546),s=n(44217);function a(t,e,n,a="ltr"){const o=document.createElement("button");o.setAttribute("aria-label",t),o.setAttribute("tabindex","0"),o.setAttribute("role","button"),o.dir=a,(0,i.P4)(o,"touchstart"),o.className="ab-close-button";const r=(0,i.RJ)("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",e);return o.appendChild(r),o.addEventListener("keydown",t=>{t.keyCode!==s.c.Wo&&t.keyCode!==s.c.Xo||(n(),t.stopPropagation())}),o.onclick=t=>{n(),t.stopPropagation()},o}},8037:function(t,e,n){n.d(e,{DA:function(){return h},EQ:function(){return r},Jd:function(){return c},S3:function(){return u},UK:function(){return s},YX:function(){return a},Zo:function(){return o},jU:function(){return l}});var i=n(3312);function s(t,e=!1){let n=t/1e3;return e&&(n=Math.floor(n)),n}function a(t){return 1e3*t}function o(t){if(null==t)return null;const e=parseInt(t.toString());return isNaN(e)?null:new Date(1e3*e)}function r(t){return null!=t&&(0,i.$P)(t)?t.toISOString().replace(/\.[0-9]{3}Z$/,""):t}function l(t){return null==t||""===t?null:new Date(t)}function u(t){return null==t||""===t?(new Date).valueOf():t}function c(t){return((new Date).valueOf()-t.valueOf())/1e3}function h(t){return(t.valueOf()-(new Date).valueOf())/1e3}},45851:function(t,e,n){n.d(e,{c:function(){return i},u:function(){return s}});const i={rO:"Chrome",eO:"Edge",oO:"Opera",Bg:"Safari",OO:"Firefox"},s={xg:"Android",ao:"iOS",Pg:"Mac",Og:"Windows"}},16546:function(t,e,n){n.d(e,{CF:function(){return r},K:function(){return c},Kz:function(){return u},P4:function(){return l},RJ:function(){return p},X:function(){return o},e0:function(){return a},jp:function(){return h},sr:function(){return d}});var i=n(12397),s=n(97779);const a={Ic:null,Ho:function(t,e=!1,n=!1,i=!1){if(null==t)return!1;e=e||!1,n=n||!1;const s=t.getBoundingClientRect();return null!=s&&(s.top>=0&&s.top<=(window.innerHeight||document.documentElement.clientHeight)||!e)&&(s.left>=0||!i)&&(s.bottom>=0&&s.bottom<=(window.innerHeight||document.documentElement.clientHeight)||!n)&&(s.right<=(window.innerWidth||document.documentElement.clientWidth)||!i)}},o={qo:"up",yo:"down",ie:"left",de:"right"};function r(){if(null==a.Ic){a.Ic=!1;try{const t=Object.defineProperty({},"passive",{get:()=>{a.Ic=!0}});window.addEventListener("testPassive",()=>{},t),window.removeEventListener("testPassive",()=>{},t)}catch(t){i.A.error((0,s.u)(t))}}return a.Ic}function l(t,e,n=()=>{}){t.addEventListener(e,n,!!r()&&{passive:!0})}function u(t){return a.Ho(t,!0,!1,!1)}function c(t){return a.Ho(t,!1,!0,!1)}function h(t){if(t.onclick){const e=document.createEvent("MouseEvents");e.initEvent("click",!0,!0),t.onclick.apply(t,[e])}}function d(t,e,n){let i=null,s=null;l(t,"touchstart",t=>{i=t.touches[0].clientX,s=t.touches[0].clientY}),l(t,"touchmove",a=>{if(null==i||null==s)return;const r=i-a.touches[0].clientX,l=s-a.touches[0].clientY;Math.abs(r)>Math.abs(l)&&Math.abs(r)>=25?((r>0&&e===o.ie||r<0&&e===o.de)&&n(a),i=null,s=null):Math.abs(l)>=25&&((l>0&&e===o.qo&&t.scrollTop===t.scrollHeight-t.offsetHeight||l<0&&e===o.yo&&0===t.scrollTop)&&n(a),i=null,s=null)})}function p(t,e,n){const i="http://www.w3.org/2000/svg",s=document.createElementNS(i,"svg");s.setAttribute("viewBox",t),s.setAttribute("xmlns",i);const a=document.createElementNS(i,"path");return a.setAttribute("d",e),null!=n&&a.setAttribute("fill",n),s.appendChild(a),s}},97779:function(t,e,n){n.d(e,{u:function(){return i}});const i=t=>t instanceof Error?t.message:String(t)},44217:function(t,e,n){n.d(e,{c:function(){return i}});const i={Wo:32,Ao:9,Xo:13,_h:27}},83543:function(t,e,n){n.d(e,{C:function(){return i}});const i=(t,e)=>(t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1))+t)},5126:function(t,e,n){n.d(e,{s:function(){return r}});var i=n(12397),s=n(48655),a=n(97779);const o={Y:t=>{let e,n;try{const a=()=>
1{i.A.error("This browser does not have any supported ajax options!")};let o=!1;if(window.XMLHttpRequest&&(o=!0),!o)return void a();e=new XMLHttpRequest;const r=n=>{"function"==typeof t.error&&t.error(e.status),"function"==typeof t.nt&&t.nt(!1,n)};e.onload=()=>{let n=!1;if(4!==e.readyState)return;n=e.status>=200&&e.status<300||304===e.status;const i=e.getAllResponseHeaders();if(n){if("function"==typeof t.tt){let a;try{a=JSON.parse(e.responseText)}catch(n){const a={error:""===e.responseText?s.A.bu:s.A.Au,response:e.responseText};(0,t.tt)(a,i)}a&&t.tt(a,i)}"function"==typeof t.nt&&t.nt(!0,i)}else r(i)},e.onerror=()=>{r(e.getAllResponseHeaders())},e.ontimeout=()=>{r()},n=JSON.stringify(t.data),e.open("POST",t.url,!0),e.setRequestHeader("Content-type","application/json"),e.setRequestHeader("X-Requested-With","XMLHttpRequest");const l=t.headers||[];for(const t of l)e.setRequestHeader(t[0],t[1]);e.send(n)}catch(t){i.A.error(`Network request error: ${(0,a.u)(t)}`)}}},r=t=>{const e={},n=t.toString().split("\r\n");if(!n)return e;let i,s;for(const t of n)t&&(i=t.slice(0,t.indexOf(":")).toLowerCase().trim(),s=t.slice(t.indexOf(":")+1).trim(),e[i]=s);return e};e.A=o},11504:function(t,e,n){var i=n(22937),s=n(70226);const a={O:{Nu:"data",wi:"content_cards/sync",Le:"feature_flags/sync",Er:"template",K:"banners/sync"},Vu:t=>null==t?void 0:t.ft(s.d.gt.lE),sm:t=>null==t?void 0:t.ft(s.d.gt.SE),nm:(t,e)=>{null==t||t.Bt(s.d.gt.lE,e)},rm:(t,e)=>{null==t||t.Bt(s.d.gt.SE,e)},zu:(t,e)=>{if(!t||!e)return-1;const n=a.Vu(t);if(null==n)return-1;const i=n[e];return null==i||isNaN(i)?-1:i},ju:(t,e)=>{let n=i.et;if(!t||!e)return n;const s=a.sm(t);return null==s?n:(n=s[e],null==n||isNaN(n)?i.et:n)},W:(t,e,n)=>{if(!t||!e)return;let i=a.Vu(t);null==i&&(i={}),i[e]=n,a.nm(t,i)},Mu:(t,e,n)=>{if(!t||!e)return;let i=a.sm(t);null==i&&(i={}),i[e]=n,a.rm(t,i)},vi:(t,e)=>{t&&e&&a.Mu(t,e,i.et)},Uu:(t,e)=>{if(!t||!e)return;const n=a.ju(t,e);a.Mu(t,e,n+1)}};e.A=a},70932:function(t,e,n){n.d(e,{N:function(){return s},u:function(){return a}});var i=n(12397);function s(t){let e=t.length;for(let n=t.length-1;n>=0;n--){const i=t.charCodeAt(n);i>127&&i<=2047?e++:i>2047&&i<=65535&&(e+=2),i>=56320&&i<=57343&&n--}return e}function a(t){try{t=t.replace(/-/g,"+").replace(/_/g,"/");const e=window.atob(t),n=new Uint8Array(e.length);for(let t=0;t<e.length;t++)n[t]=e.charCodeAt(t);const i=new Uint16Array(n.buffer);return String.fromCharCode(...i)}catch(t){return i.A.error("Unable to decode Base64: "+t),null}}},52532:function(t,e,n){function i(t){null==t&&(t="");const e=t.split("?").slice(1).join("?"),n={};if(null!=e){const t=e.split("&");for(let e=0;e<t.length;e++){const i=t[e].split("=");""!==i[0]&&(n[i[0]]=i[1])}}return n}function s(t){return!(!t||0!==(t=t.toString().toLowerCase()).lastIndexOf("javascript:",0)&&0!==t.lastIndexOf("data:",0))}n.d(e,{P:function(){return s},y:function(){return i}})},2490:function(t,e,n){n.d(e,{B9:function(){return y},Dz:function(){return b},To:function(){return S},Z2:function(){return E},ZJ:function(){return g},fB:function(){return w},nx:function(){return p},rK:function(){return A},uZ:function(){return m},xs:function(){return x}});var i=n(3312),s=n(70932),a=n(12397),o=n(8037),r=n(29157),l=n(22937);const u=/^[^\x00-\x1F\x22]+$/,c=/[$.]/,h=["$add","$update","$remove","$identifier_key","$identifier_value","$new_object","$time","$google_ad_personalization","$google_ad_user_data"],d=new RegExp(/^.+@.+\..+$/),p=/^brazeActions:\/\/v\d+\//;function b(t,e,n){const i=null!=t&&"string"==typeof t&&(""===t||null!=t.match(u));return i||a.A.error(`Cannot ${e} because ${n} "${t}" is invalid.`),i}function g(t){return null!=t&&t.match(c)&&-1===h.indexOf(t)&&a.A.warn("Custom attribute keys cannot contain '$' or '.'"),b(t,"set custom user attribute","the given key")}function m(t){const e=typeof t;return null==t||"number"===e||"boolean"===e||(0,i.$P)(t)||"string"===e}function f(t,e,n){const s=-1!==n;if(s&&n>50)return a.A.error("Nested attributes cannot be more than 50 levels deep."),!1;const r=s?n+1:-1;if((0,i.cy)(t)&&(0,i.cy)(e)){for(let n=0;n<t.length&&n<e.length;n++)if((0,i.$P)(t[n])&&(e[n]=(0,o.EQ)(t[n])),!f(t[n],e[n],r))return!1}else{if(!(0,i.Gv)(t))return m(t);for(const n of(0,i.HP)(t)){const a=t[n];if(s&&!g(n))return!1;if((0,i.$P)(a)&&(e[n]=(0,o.EQ)(a)),!f(a,e[n],r))return!1}}return!0}function v(t,e,n,s,o){let r;return r=(0,i.Gv)(t)||(0,i.cy)(t)?f(t,e,o?1:-1):m(t),r||a.A.error(`Cannot ${n} because ${s} "${t}
1" is invalid.`),r}function A(t,e,n,i=!1){const s="string"==typeof t||null===t&&i;return s||a.A.error(`Cannot ${e} because ${n} "${t}" is invalid.`),s}function w(t,e,n,r,u){if(null==t&&(t={}),"object"!=typeof t||(0,i.cy)(t))return a.A.error(`${e} requires that ${n} be an object. Ignoring ${u}.`),[!1,null];let c,h;e===l.KG?(c=76800,h="75KB"):(c=51200,h="50KB");const d=JSON.stringify(t);if((0,s.N)(d)>c)return a.A.error(`Could not ${r} because ${n} was greater than the max size of ${h}.`),[!1,null];let p;try{p=JSON.parse(d)}catch(t){return a.A.error(`Could not ${r} because ${n} did not contain valid JSON.`),[!1,null]}for(const n in t){if(e===l.KG&&!g(n))return[!1,null];if(!b(n,r,`the ${u} property name`))return[!1,null];const s=t[n];if(e===l.KG||null!=s){if((0,i.$P)(s)&&(p[n]=(0,o.EQ)(s)),!v(s,p[n],r,`the ${u} property "${n}"`,e===l.KG))return[!1,null]}else delete t[n],delete p[n]}return[!0,p]}function E(t,e){let n=!1,s=!1;const o=()=>{a.A.error("Custom attribute arrays must be either string arrays or object arrays.")};for(const a of e)if("string"==typeof a){if(s)return o(),[!1,!1];if(!b(a,`set custom user attribute "${t}"`,"the element in the given array"))return[!1,!1];n=!0}else{if(!(0,i.Gv)(a))return o(),[!1,!1];if(n)return o(),[!1,!1];if(!w(a,l.KG,"attribute value",`set custom user attribute "${t}"`,"custom user attribute"))return[!1,!1];s=!0}return[n,s]}function y(t){return"string"==typeof t&&null!=t.toLowerCase().match(d)}function x(t){if(!(r.V.properties.type in t))return!1;switch(t[r.V.properties.type]){case r.V.types.io:if(r.V.properties.eo in t)return!0;break;case r.V.types.logCustomEvent:case r.V.types.setEmailNotificationSubscriptionType:case r.V.types.setPushNotificationSubscriptionType:case r.V.types.setCustomUserAttribute:case r.V.types.addToSubscriptionGroup:case r.V.types.removeFromSubscriptionGroup:case r.V.types.addToCustomAttributeArray:case r.V.types.removeFromCustomAttributeArray:case r.V.types.co:case r.V.types.mo:if(r.V.properties.so in t)return!0;break;case r.V.types.requestPushPermission:return!0;default:return!1}return!1}function S(t){let e=!1;return Object.keys(r.V.types).forEach(n=>{r.V.types[n]!==t.toString()||(e=!0)}),e}},67597:function(t,e,n){n.d(e,{j3:function(){return i},uD:function(){return s}});const i={PORTRAIT:0,LANDSCAPE:1};const s={openUri:function(t,e,n){t&&(e||null!=n&&n.metaKey?window.open(t):window.location=t)},Uo:function(){return screen.width<=600},No:function(){if("orientation"in window)return 90===Math.abs(window.orientation)||270===window.orientation?i.LANDSCAPE:i.PORTRAIT;const t=window;if("screen"in t){let e=t.screen.orientation||screen.mozOrientation||screen.msOrientation;return null!=e&&"object"==typeof e&&(e=e.type),"landscape-primary"===e||"landscape-secondary"===e?i.LANDSCAPE:i.PORTRAIT}return i.PORTRAIT},$a:function(){return window.location.href}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.