PageSourceSearch

https://sweatpals.com/_next/static/chunks/2606.bb0a751f30c3d701.js

js sweatpals.com collected 2026-09-24 10:25:12 UTC 247,479 bytes, 1 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="74c94826-2fe5-4c4d-8a37-dbad6a1bc208",e._sentryDebugIdIdentifier="sentry-dbid-74c94826-2fe5-4c4d-8a37-dbad6a1bc208")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2606],{1698:(e,t,i)=>{i.d(t,{A:()=>r});var s=i(13e3),n=i(69472);class r extends n.A{constructor(e,t,i,s,r,a,o,l,u,h,c,d,p,m,b,f,g,v,A,y,w,x,E,S,k,C,T,N,B,I){super(e,t,void 0,i,s,r,a,o,l=l||n.A.DismissType.MANUAL,u,h,c,d,p,m,b,f,g,v,A,y,w,x,E,S,k=k||n.A.CropType.FIT_CENTER,void 0,C,T,N,B,I),this.Io=n.A.TextAlignment.CENTER}gt(){return super.gt(r.es)}static Zn(e){return new r(e[n.A.ss.pa],e[n.A.ss.ma],e[n.A.ss.xs],e[n.A.ss.ua],e[n.A.ss.ca],e[n.A.ss.URI],e[n.A.ss.fa],e[n.A.ss.da],e[n.A.ss.la],e[n.A.ss.ga],e[n.A.ss.ns],e[n.A.ss.ja],e[n.A.ss.xa],e[n.A.ss.za],e[n.A.ss.ha],e[n.A.ss.va],e[n.A.ss.wa],e[n.A.ss.ya],e[n.A.ss.Sa],e[n.A.ss.ba],e[n.A.ss.ka],e[n.A.ss.qa],e[n.A.ss.Aa],(0,s.x)(e[n.A.ss.Ba]),e[n.A.ss.Ca],e[n.A.ss.Ea],e[n.A.ss.CSS],e[n.A.ss.Fa],e[n.A.ss.LANGUAGE],e[n.A.ss.ks])}}r.es=n.A.Eo.ta},8149:(e,t,i)=>{i.d(t,{A:()=>s});let s={Bl:"invalid_api_key",zl:"blacklisted",jl:"no_device_identifier",Cl:"invalid_json_response",yl:"empty_response",__:"sdk_auth_error"}},9099:(e,t,i)=>{i.d(t,{DA:()=>c,EQ:()=>o,Jd:()=>h,S3:()=>u,UK:()=>n,YX:()=>r,Zo:()=>a,jU:()=>l});var s=i(68286);function n(e,t=!1){let i=e/1e3;return t&&(i=Math.floor(i)),i}function r(e){return 1e3*e}function a(e){if(null==e)return null;let t=parseInt(e.toString());return isNaN(t)?null:new Date(1e3*t)}function o(e){return null!=e&&(0,s.$P)(e)?e.toISOString().replace(/\.[0-9]{3}Z$/,""):e}function l(e){return null==e||""===e?null:new Date(e)}function u(e){return null==e||""===e?new Date().valueOf():e}function h(e){return(new Date().valueOf()-e.valueOf())/1e3}function c(e){return(e.valueOf()-new Date().valueOf())/1e3}},11457:(e,t,i)=>{i.d(t,{w:()=>s});let s={CustomEvent:"ce",Pr:"p",jd:"pc",ev:"ca",Fl:"i",wl:"ie",Xt:"cci",Zt:"ccic",Lt:"ccc",Qt:"ccd",Sm:"ss",hm:"se",wn:"si",zn:"sc",Sn:"sbc",tv:"sfe",om:"iec",yd:"lr",kd:"uae",Dd:"lcaa",Ad:"lcar",Zu:"inc",Qu:"add",Xu:"rem",Yu:"set",Vu:"ncam",$d:"sgu",xo:"ffi",ro:"bi",ut:"bc"}},11887:(e,t,i)=>{i.d(t,{A:()=>r});var s=i(13e3),n=i(69472);class r extends n.A{constructor(e,t,i,s,r,a,o,l,u,h,c,d,p,m,b,f,g,v,A,y,w,x,E,S,k,C,T,N,B,I,_){l=l||n.A.DismissType.MANUAL,C=C||n.A.Orientation.PORTRAIT,super(e,t,void 0,i,s,r,a,o,l,u,h,c,d,p,m,b,f,g,v,A,y,w,x,E,S,k=k||n.A.CropType.CENTER_CROP,C,T,N,B,I,_),this.Io=n.A.TextAlignment.CENTER}gt(){return super.gt(r.es)}static Zn(e){return new r(e[n.A.ss.pa],e[n.A.ss.ma],e[n.A.ss.xs],e[n.A.ss.ua],e[n.A.ss.ca],e[n.A.ss.URI],e[n.A.ss.fa],e[n.A.ss.da],e[n.A.ss.la],e[n.A.ss.ga],e[n.A.ss.ns],e[n.A.ss.ja],e[n.A.ss.xa],e[n.A.ss.za],e[n.A.ss.ha],e[n.A.ss.va],e[n.A.ss.wa],e[n.A.ss.ya],e[n.A.ss.Sa],e[n.A.ss.ba],e[n.A.ss.ka],e[n.A.ss.qa],e[n.A.ss.Aa],(0,s.x)(e[n.A.ss.Ba]),e[n.A.ss.Ca],e[n.A.ss.Da],e[n.A.ss.Ea],e[n.A.ss.CSS],e[n.A.ss.Fa],e[n.A.ss.LANGUAGE],e[n.A.ss.ks])}}r.es=n.A.Eo.Yn},13e3:(e,t,i)=>{i.d(t,{g:()=>c,x:()=>d});var s=i(69472),n=i(60634),r=i(11887),a=i(16208),o=i(41735),l=i(1698),u=i(59788),h=i(72071);function c(e){let t;if(!e)return null;if(e.is_control)return n.A.fromJson(e);let i=e.type;null!=i&&(i=i.toUpperCase());let c=e.message,d=e.text_align_message,p=e.slide_from,m=e.extras,b=e.trigger_id,f=e.click_action,g=e.uri,v=e.open_target,A=e.message_close,y=e.duration,w=e.icon,x=e.image_url,E=e.image_style,S=e.icon_color,k=e.icon_bg_color,C=e.bg_color,T=e.text_color,N=e.close_btn_color,B=e.header,I=e.text_align_header,_=e.header_text_color,O=e.frame_color,R=[],z=e.btns;null==z&&(z=[]);for(let e=0;e<z.length;e++)R.push(o.A.fromJson(z[e]));let D=e.crop_type,M=e.orientation,P=e.animate_in,L=e.animate_out,U=e.html_id,$=e.css;null!=U&&""!==U&&null!=$&&""!==$||(U=void 0,$=void 0);let F=e.message_extras,j=e.language,G=e.image_alt;if(i===l.A.es||i===s.A.Eo.Xo)t=new l.A(c,d,m,b,f,g,v,A,y,w,x,E,S,k,C,T,N,P,L,B,I,_,O,R,D,U,$,F,j,G);else if(i===r.A.es)t=new r.A(c,d,m,b,f,g,v,A,y,w,x,E,S,k,C,T,N,P,L,B,I,_,O,R,D,M,U,$,F,j,G);else if(i===u.A.es)t=new u.A(c,d,p,m,b,f,g,v,A,y,w,x,S,k,C,T,N,P,L,U,$,F,j,G);else{if(i!==a.A.es&&i!==s.A.Eo.Bo&&i!==s.A.Eo.Yo)return void h.A.error("Ignoring message with unknown type "+i);{let i=e.message_fields;(t=new a.A(c,m,b,A,y,P,L,O,U,$,i,F)).trusted=e.trusted||!1}}return t.ko=i,t}function d(e){let t=[];for(let i of e)t.push(new o.A(i.text,i.backgroundColor,i.textColor,i.borderColor,i.clickAction,i.uri,i.id));return t}},13875:(e,t,i)=>{i.d(t,{u:()=>s});let s=e=>e instanceof Error?e.message:String(e)},16208:(e,t,i)=>{i.d(t,{A:()=>n});var s=i(69472);class n extends s.A{constructor(e,t,i,n,r,a,o,l,u,h,c,d){super(e,void 0,void 0,t,i,void 0,void 0,void 0,n=n||s.A.DismissType.MANUAL,r,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,a,o,void 0,void 0,void 0,l,void 0,void 0,void 0,u,h,d,void 0,void 0),this.messageFields=c,this.messageFields=c}od(){return!1}$t(e){if(this.ko===s.A.Eo.Zo){if(this.dd)return!1;this.dd=!0}return this.ti.L(e),!0}gt(){let e=super.gt(n.es);return e[s.A.ss.ed]=this.messageFields,e}static Zn(e){return new n(e[s.A.ss.pa],e[s.A.ss.xs],e[s.A.ss.ua],e[s.A.ss.da],e[s.A.ss.la],e[s.A.ss.ya],e[s.A.ss.Sa],e[s.A.ss.Aa],e[s.A.ss.Ea],e[s.A.ss.CSS],e[s.A.ss.ed],e[s.A.ss.Fa])}}n.es=s.A.Eo.Zo},17129:(e,t,i)=>{i.d(t,{$k:()=>s,Fn:()=>a,MF:()=>c,RW:()=>n,T:()=>d,em:()=>p,et:()=>u,mO:()=>o,uR:()=>l,uy:()=>r,xm:()=>h});let s=100,n=500,r=30,a=30,o=72e5,l=15,u=1,h=1e4,c=3,d=3e5,p={ee:"Braze must be initialized before calling methods.",$e:"logCustomEvent",Ku:"setCustomUserAttribute"}},18120:(e,t,i)=>{i.d(t,{A:()=>T});var s=i(65098),n=i(84108),r=i(60634),a=i(16208),o=i(69472),l=i(41735),u=i(56183),h=i(13e3),c=i(96009),d=i(83748),p=i(11457),m=i(72071),b=i(18436),f=i(63682),g=i(77752),v=i(51533),A=i(41957),y=i(66541),w=i(56778),x=i(11887),E=i(1698),S=i(59788);class k{constructor(e,t,i,s){this.j=e,this.C=t,this.B=i,this.vs=s,this.j=e,this.C=t,this.B=i,this.vs=s,this.jn=new b.A,n.Ay.q(this.jn),this.vn=1e3,this.yn=6e4,this.bn=null,this.In=null,this.Mn=null}An(){return this.jn}Tn(e){return this.jn.Rt(e)}kn(){return this.bn}Dn(e){this.bn=e}lt(e,t,i,s){let n,o=new d.A;if(t===p.w.wn||e instanceof r.A){if(!e.Wt())return m.A.info("This in-app message has already received an impression. Ignoring analytics event."),o}else if((t===p.w.zn||e instanceof a.A&&t===p.w.Sn)&&!e.$t(s))return m.A.info("This in-app message has already received a click. Ignoring analytics event."),o;return null==(n=e instanceof r.A?{trigger_ids:[e.triggerId]}:this.Bn(e))?o:(e.messageExtras&&(n.message_extras=e.messageExtras),null!=i&&(n.bid=i),u.A.lt(t,n))}Rn(e,t){let i=new d.A;if(!e.$t())return m.A.info("This in-app message button has already received a click. Ignoring analytics event."),i;let s=this.Bn(t);return null==s?i:e.id===l.A._n?(m.A.info("This in-app message button does not have a tracking id. Not logging event to Braze servers."),i):(null!=e.id&&
1(s.bid=e.id),u.A.lt(p.w.Sn,s))}qn(e){let t=e.messageFields;return null!=t&&t.is_push_primer||!1}xn(e){let t;if(!(e instanceof o.A))return;let i=e=>{if(!e)return;let t=(0,v.jj)(e);if((0,v.qj)(t))return(0,v.$6)(v.mY.Pn,"In-App Message");if((0,v.dy)(t)){let e=A.A.En();if(!e.Gn)return A.A.Nn(e.reason,"In-App Message")}};if(this.qn(e)){let e=A.A.En();if(!e.Gn)return A.A.Nn(e.reason,"In-App Message")}for(let s of e.buttons||[])if(s.clickAction===o.A.ClickAction.URI&&s.uri&&g.nx.test(s.uri)&&(t=i(s.uri)))return t;return e.clickAction===o.A.ClickAction.URI&&e.uri&&g.nx.test(e.uri)?i(e.uri):void 0}$n(e,t){t!==this.Mn&&this.Cn(),this.In=e,this.Mn=t}Cn(){null!=this.In&&(clearTimeout(this.In),this.In=null,this.Mn=null)}Fn(e,t,i,n){let r=this.j;if(!r)return;this.Mn&&e.triggerId!==this.Mn&&(this.Cn(),y.A.fi(this.B,y.A.H.On));let a=r.Xn(!1),o=r.$(a);o.template={trigger_id:e.triggerId,trigger_event_type:t},null!=i&&(o.template.data=i.Hn());let l=r.A(o,y.A.H.On);r.J(o,(r=-1)=>{let a=this.j;if(!a)return;let u=new Date().valueOf();y.A.K(this.B,y.A.H.On,u),-1!==r&&l.push(["X-Braze-Req-Tokens-Remaining",r.toString()]);let d,p,b=!1;s.A.O({url:`${a.V()}/template/`,data:o,headers:l,W:t=>{if(!a.Y(o,t,l))return void("function"==typeof e.Jn&&e.Jn());if(a.Z(),null==t||null==t.templated_message)return;let i=t.templated_message;if(i.type!==f.A.Ln.Kn)return;let s=(0,h.g)(i.data);if(null==s)return;let n=this.xn(s);n?(m.A.error(n),"function"==typeof e.Jn&&e.Jn()):"function"==typeof e.Qn&&e.Qn(s)},error:t=>{b=!0,d=t,p=`getting user personalization for message ${e.triggerId}.`},tt:(s,r)=>{if(new Date().valueOf()-e.Un<e.Vn){let s=0;if(b){let t=Math.min(e.Vn,this.yn),i=this.vn;null==n&&(n=i),s=Math.min(t,(0,c.C)(i,3*n))}a.et(r,()=>{this.Fn(e,t,i,s)},y.A.H.On,t=>this.$n(t,e.triggerId),()=>this.Cn(),s)}b&&a._(d,p)}})},y.A.H.On)}Bn(e){if(null==e.triggerId)return m.A.info("The in-app message has no analytics id. Not logging event to Braze servers."),null;let t={};return null!=e.triggerId&&(t.trigger_ids=[e.triggerId]),t}fn(e){return!!this.B&&!(!(e&&e instanceof o.A&&e.constructor!==o.A)||e instanceof r.A)&&this.B.bt(w.d.ft.Wn,e.gt())}sa(){let e;if(!this.B)return null;let t=this.B.dt(w.d.ft.Wn);if(!t)return null;switch(t.type){case o.A.Eo.Yn:e=x.A.Zn(t);break;case o.A.Eo.Zo:case o.A.Eo.Bo:case o.A.Eo.Yo:e=a.A.Zn(t);break;case o.A.Eo.ta:case o.A.Eo.Xo:e=E.A.Zn(t);break;case o.A.Eo.ia:e=S.A.Zn(t)}return e&&this.oa(),e}oa(){this.B&&this.B.zt(w.d.ft.Wn)}}let C={na:null,i:!1,ra:()=>(C.t(),C.na||(C.na=new k(n.Ay.m(),n.Ay.u(),n.Ay.p(),n.Ay.ir())),C.na),t:()=>{C.i||(n.Ay.g(C),C.i=!0)},destroy:()=>{C.na=null,C.i=!1}},T=C},18436:(e,t,i)=>{i.d(t,{A:()=>n});var s=i(85142);class n{constructor(){this.jn={}}Rt(e){if("function"!=typeof e)return null;let t=s.A.se();return this.jn[t]=e,t}removeSubscription(e){delete this.jn[e]}removeAllSubscriptions(){this.jn={}}De(){return Object.keys(this.jn).length}L(e){let t=[];for(let i in this.jn){let s=this.jn[i];t.push(s(e))}return t}}},24205:(e,t,i)=>{i.r(t),i.d(t,{requestImmediateDataFlush:()=>n});var s=i(84108);function n(e){if(!s.Ay.rr())return;let t=s.Ay.nn();t&&t.requestImmediateDataFlush(e)}},24921:(e,t,i)=>{i.d(t,{A:()=>s});class s{N(e){}changeUser(e=!1){}clearData(e=!1){}}},28710:(e,t,i)=>{i.d(t,{A:()=>u});var s=i(68286);class n{ff(){}cf(){}rc(e){}static lf(e,t){if(e&&t){if(e=e.toLowerCase(),(0,s.cy)(t.uf)){for(let i=0;i<t.uf.length;i++)if(-1!==e.indexOf(t.uf[i].toLowerCase()))return t.identity}else if(-1!==e.indexOf(t.uf.toLowerCase()))return t.identity}}}var r=i(44245);class a extends n{constructor(){if(super(),this.userAgentData=navigator.userAgentData,this.browser=null,this.version=null,this.userAgentData){const e=this.hf();this.browser=e.browser||"Unknown Browser",this.version=e.version||"Unknown Version"}this.OS=null}ff(){return this.browser}cf(){return this.version}rc(e){if(this.OS)return Promise.resolve(this.OS);let t=t=>{for(let i=0;i<e.length;i++){let s=a.lf(t,e[i]);if(s)return this.OS=s,this.OS}return t};return this.userAgentData.platform?Promise.resolve(t(this.userAgentData.platform)):this.getHighEntropyValues().then(e=>e.platform?t(e.platform):navigator.platform).catch(()=>navigator.platform)}hf(){let e={},t=this.userAgentData.brands;if(t&&t.length)for(let i of t){let t=this.af(r.c),s=i.brand.match(t);if(s&&s.length>
10){e.browser=s[0],e.version=i.version;break}}return e}af(e){let t=[];for(let i in e)t.push(e[i]);return RegExp("("+t.join("|")+")","i")}getHighEntropyValues(){return this.userAgentData.getHighEntropyValues?this.userAgentData.getHighEntropyValues(["platform"]):Promise.reject()}}class o extends n{constructor(){super(),this.Vd=o.hf(navigator.userAgent||"")}ff(){return this.Vd[0]||"Unknown Browser"}cf(){return this.Vd[1]||"Unknown Version"}rc(e){for(let t=0;t<e.length;t++){let i=e[t].string,s=o.lf(i,e[t]);if(s)return s===r.u.Pg&&navigator.maxTouchPoints>1&&(s=r.u.co),Promise.resolve(s)}return Promise.resolve(navigator.platform)}static hf(e){let t,i=e.match(/(samsungbrowser|tizen|roku|konqueror|icab|crios|opera|ucbrowser|chatgptbrowser|chrome|safari|firefox|camino|msie|trident(?=\/))\/?\s*(\.?\d+(\.\d+)*)/i)||[];if(-1!==e.indexOf("(Web0S; Linux/SmartTV)"))return["LG Smart TV",null];if(-1!==e.indexOf("CrKey"))return["Chromecast",null];if(-1!==e.indexOf("BRAVIA")||-1!==e.indexOf("SonyCEBrowser")||-1!==e.indexOf("SonyDTV"))return["Sony Smart TV",null];if(-1!==e.indexOf("PhilipsTV"))return["Philips Smart TV",null];if(e.match(/\b(Roku)\b/))return["Roku",null];if(e.match(/\bAFTM\b/))return["Amazon Fire Stick",null];if(i[1]===r.c.rO){if(e.includes(r.c.Sg))return[r.c.Sg,i[2]];if(null!=(t=e.match(/\b(OPR|Edge|EdgA|Edg|UCBrowser)\/(\.?\d+(\.\d+)*)/)))return(t=t.slice(1))[0]=t[0].replace("OPR",r.c.oO),t[0]=t[0].replace("EdgA",r.c.eO),"Edg"===t[0]&&(t[0]=r.c.eO),[t[0],t[1]]}if(i[1]===r.c.Bg&&null!=(t=e.match(/\b(EdgiOS)\/(\.?\d+(\.\d+)*)/)))return(t=t.slice(1))[0]=t[0].replace("EdgiOS",r.c.eO),[t[0],t[1]];if((i=i[2]?[i[1],i[2]]:[null,null])[0]===r.c.Bg&&null!=(t=e.match(/version\/(\.?\d+(\.\d+)*)/i))&&i.splice(1,1,t[1]),null!=(t=e.match(/\b(UCBrowser)\/(\.?\d+(\.\d+)*)/))&&i.splice(1,1,t[2]),i[0]===r.c.oO&&null!=(t=e.match(/mini\/(\.?\d+(\.\d+)*)/i)))return["Opera Mini",t[1]||""];if(i[0]){let e=i[0].toLowerCase();"crios"===e&&(i[0]=r.c.rO),"tizen"===e&&(i[0]="Samsung Smart TV",i[1]=null),"samsungbrowser"===e&&(i[0]="Samsung Browser")}return i}}class l{constructor(){let e;e=navigator.userAgent.toLowerCase().includes(r.c.Sg.toLowerCase())||!navigator.userAgentData?o:a,this.vg=new e,this.userAgent=navigator.userAgent,this.browser=this.vg.ff(),this.version=this.vg.cf(),this.OS=null,this.rc().then(e=>this.OS=e);const t=navigator;this.language=(t.userLanguage||t.language||t.browserLanguage||t.systemLanguage||"").toLowerCase(),this.Il=l.xg(this.userAgent)}fE(){return this.browser===r.c.Bg}nc(){return this.OS||null}rc(){return this.OS?Promise.resolve(this.OS):this.vg.rc(l.Og).then(e=>(this.OS=e,e))}static xg(e){e=e.toLowerCase();let t=["bot","slurp","baiduspider","yandex","facebookexternalhit","sogou","ia_archiver","https://github.com/prerender/prerender","aolbuild","bingpreview","mediapartners-google","teoma","taiko","facebookexternalhit","facebookcatalog","meta-webindexer","meta-externalads","meta-externalagent","meta-externalfetcher"];for(let i=0;i<t.length;i++)if(-1!==e.indexOf(t[i]))return!0;return!1}}l.Og=[{string:navigator.platform,uf:"Win",identity:r.u.kg},{string:navigator.platform,uf:"Mac",identity:r.u.Pg},{string:navigator.platform,uf:"BlackBerry",identity:"BlackBerry"},{string:navigator.platform,uf:"FreeBSD",identity:"FreeBSD"},{string:navigator.platform,uf:"OpenBSD",identity:"OpenBSD"},{string:navigator.platform,uf:"Nintendo",identity:"Nintendo"},{string:navigator.platform,uf:"SunOS",identity:"SunOS"},{string:navigator.platform,uf:"PlayStation",identity:"PlayStation"},{string:navigator.platform,uf:"X11",identity:"X11"},{string:navigator.userAgent,uf:["iPhone","iPad","iPod"],identity:r.u.co},{string:navigator.platform,uf:"Pike v",identity:r.u.co},{string:navigator.userAgent,uf:["Web0S"],identity:"WebOS"},{string:navigator.userAgent,uf:"Tizen",identity:"Tizen"},{string:navigator.userAgent,uf:"Coolita",identity:"Other Smart TV"},{string:navigator.userAgent,uf:"WhaleTV",identity:"Other Smart TV"},{string:navigator.platform,uf:["Linux armv7l","Android"],identity:r.u.Dg},{string:navigator.userAgent,uf:["Android"],identity:r.u.Dg},{string:navigator.platform,uf:"Linux",identity:"Linux"}];let u=new l},29885:(e,t,i)=>{i.d(t,{A:()=>s});let s={OPEN:"open",Rr:"purchase",wr:"push_click",xe:"custom_event",rm:"iam_click",qs:"test"}},35817:(e,t,i)=>{i.d(t,{CF:()=>o,K:()=>h,Kz:()=>u,P4:()=>l,RJ:()=>p,X:()=>a,e0:()=>r,jp:()=>c,sr:()=>d});var s=i(72071),n=i(13875);let r={lp:null,td:function(e,t=!1,i=!1,s=!1){if(null==e)return!1;t=t||!1,i=i||!1;let n=e.getBoundingClientRect();return null!=n&&(n.top>=0&&n.top<=(window.innerHeight||document.documentElement.clientHeight)||!t)&&(n.left>=0||!s)&&(n.bottom>=0&&n.bottom<=(window.innerHeight||document.documentElement.clientHeight)||!i)&&(n.right<=(window.innerWidth||document.documentElement.clientWidth)||
1!s)}},a={Uo:"up",Vo:"down",de:"left",ce:"right"};function o(){if(null==r.lp){r.lp=!1;try{let e=Object.defineProperty({},"passive",{get:()=>{r.lp=!0}});window.addEventListener("testPassive",()=>{},e),window.removeEventListener("testPassive",()=>{},e)}catch(e){s.A.error((0,n.u)(e))}}return r.lp}function l(e,t,i=()=>{}){e.addEventListener(t,i,!!o()&&{passive:!0})}function u(e){return r.td(e,!0,!1,!1)}function h(e){return r.td(e,!1,!0,!1)}function c(e){if(e.onclick){let t=document.createEvent("MouseEvents");t.initEvent("click",!0,!0),e.onclick.apply(e,[t])}}function d(e,t,i){let s=null,n=null;l(e,"touchstart",e=>{s=e.touches[0].clientX,n=e.touches[0].clientY}),l(e,"touchmove",r=>{if(null==s||null==n)return;let o=s-r.touches[0].clientX,l=n-r.touches[0].clientY;Math.abs(o)>Math.abs(l)&&Math.abs(o)>=25?((o>0&&t===a.de||o<0&&t===a.ce)&&i(r),s=null,n=null):Math.abs(l)>=25&&((l>0&&t===a.Uo&&e.scrollTop===e.scrollHeight-e.offsetHeight||l<0&&t===a.Vo&&0===e.scrollTop)&&i(r),s=null,n=null)})}function p(e,t,i){let s="http://www.w3.org/2000/svg",n=document.createElementNS(s,"svg");n.setAttribute("viewBox",e),n.setAttribute("xmlns",s);let r=document.createElementNS(s,"path");return r.setAttribute("d",t),null!=i&&r.setAttribute("fill",i),n.appendChild(r),n}},37445:(e,t,i)=>{i.d(t,{c:()=>s});let s={Ho:32,Wo:9,Go:13,Ih:27}},41735:(e,t,i)=>{i.d(t,{A:()=>r});var s=i(69472),n=i(18436);class r{constructor(e,t,i,a,o,l,u){this.text=e,this.backgroundColor=t,this.textColor=i,this.borderColor=a,this.clickAction=o,this.uri=l,this.id=u,this.text=e||"",this.backgroundColor=t||s.A.th.sh,this.textColor=i||s.A.th.ih,this.borderColor=a||this.backgroundColor,this.clickAction=o||s.A.ClickAction.NONE,this.uri=l,null==u&&(u=r._n),this.id=u,this.dd=!1,this.ti=new n.A}subscribeToClickedEvent(e){return this.ti.Rt(e)}removeSubscription(e){this.ti.removeSubscription(e)}removeAllSubscriptions(){this.ti.removeAllSubscriptions()}$t(){return!this.dd&&(this.dd=!0,this.ti.L(),!0)}static fromJson(e){return new r(e.text,e.bg_color,e.text_color,e.border_color,e.click_action,e.uri,e.id)}}r._n=-1},41957:(e,t,i)=>{i.d(t,{A:()=>n});let s={cu:()=>"serviceWorker"in navigator&&"u">typeof ServiceWorkerRegistration&&"showNotification"in ServiceWorkerRegistration.prototype&&"PushManager"in window,lu:()=>"safari"in window&&"pushNotification"in window.safari&&"function"==typeof window.safari.pushNotification.permission&&"function"==typeof window.safari.pushNotification.requestPermission,isPushSupported:()=>s.cu()||s.lu(),isPushBlocked:()=>{let e=s.isPushSupported()&&"Notification"in window&&null!=window.Notification&&null!=window.Notification.permission&&"denied"===window.Notification.permission,t=s.isPushSupported()&&(!("Notification"in window)||null==window.Notification);return e||t},isPushPermissionGranted:()=>s.isPushSupported()&&"Notification"in window&&null!=window.Notification&&null!=window.Notification.permission&&"granted"===window.Notification.permission,En:()=>s.isPushBlocked()?{Gn:!1,reason:"blocked"}:s.isPushSupported()?s.isPushPermissionGranted()?{Gn:!1,reason:"permissionGranted"}:{Gn:!0}:{Gn:!1,reason:"unsupported"},Nn:(e,t)=>"blocked"===e?`${t} containing a push prompt is not being shown because the user has already declined push permission prompt.`:"unsupported"===e?`${t} containing a push prompt is not being shown because the browser doesn't support push notifications.`:`${t} containing a push prompt is not being shown because the user has already accepted the permission prompt.`},n=s},44245:(e,t,i)=>{i.d(t,{c:()=>s,u:()=>n});let s={rO:"Chrome",eO:"Edge",oO:"Opera",Bg:"Safari",OO:"Firefox",Sg:"ChatGPTBrowser"},n={Dg:"Android",co:"iOS",Pg:"Mac",kg:"Windows"}},48754:(e,t,i)=>{i.d(t,{N:()=>n,u:()=>r});var s=i(72071);function n(e){let t=e.length;for(let i=e.length-1;i>=0;i--){let s=e.charCodeAt(i);s>127&&s<=2047?t++:s>2047&&s<=65535&&(t+=2),s>=56320&&s<=57343&&i--}return t}function r(e){try{e=e.replace(/-/g,"+").replace(/_/g,"/");let t=window.atob(e),i=new Uint8Array(t.length);for(let e=0;e<t.length;e++)i[e]=t.charCodeAt(e);let s=new Uint16Array(i.buffer);return String.fromCharCode(...s)}catch(e){return s.A.error("Unable to decode Base64: "+e),null}}},51533:(e,t,i)=>{i.d(t,{$6:()=>u,V:()=>o,dy:()=>p,jj:()=>h,mY:()=>l,qj:()=>d});var s=i(72071),n=i(13875),r=i(48754),a=i(77752);let o={types:{io:"container",logCustomEvent:"logCustomEvent",setEmailNotificationSubscriptionType:"setEmailNotificationSubscriptionType",setPushNotificationSubscriptionType:"setPushNotificationSubscriptionType",setCustomUserAttribute:"setCustomUserAttribute",requestPushPermission:"requestPushPermission",addToSubscriptionGroup:"addToSubscriptionGroup",removeFromSubscriptionGroup:"removeFromSubscriptionGroup",addToCustomAttributeArray:"addToCustomAttributeArray",removeFromCustomAttributeArray:"removeFromCustomAttributeArray",mo:"openLink",uo:"openLinkInWebView"},properties:{type:"type",eo:"steps",so:"args"}},l={Pn:"unknownBrazeAction",cp:"noPushPrompt"},u=(e,t)=>
1e===l.Pn?`${t} contains an unknown braze action type and will not be displayed.`:"";function h(e){try{let t=e.match(a.nx),i=t?t[0].length:null,n=i?e.substring(i):null;if(null==i||i>e.length-1||!n)return void s.A.error(`Did not find base64 encoded brazeAction in url to process : ${e}`);let o=(0,r.u)(n);return o?JSON.parse(o):void s.A.error(`Failed to decode base64 encoded brazeAction: ${n}`)}catch(t){return void s.A.error(`Failed to process brazeAction URL ${e} : ${(0,n.u)(t)}`)}}function c(e,t){let i=!1;if(t){for(let s of t)if(i=i||e(s))return!0}return!1}function d(e){let t=o.properties.type,i=o.properties.eo;try{if(null==e)return!0;let s=e[t];return s===o.types.io?c(d,e[i]):!(0,a.To)(s)}catch(e){return!0}}function p(e){if(!e||!(0,a.xs)(e))return!1;let t=o.properties.type,i=o.properties.eo,s=e[t];return s===o.types.io?c(p,e[i]):s===o.types.requestPushPermission}},52362:(e,t,i)=>{i.r(t),i.d(t,{changeUser:()=>l});var s=i(84108),n=i(48754),r=i(72071),a=i(72573),o=i(77752);function l(e,t){if(!s.Ay.rr())return;if(null==e||0===e.length||e!=e)return void r.A.error("changeUser requires a non-empty userId.");if((0,n.N)(e)>a.A.mr)return void r.A.error(`Rejected user id "${e}" because it is longer than ${a.A.mr} bytes.`);if(null!=t&&!(0,o.rK)(t,"set signature for new user","signature"))return;let i=s.Ay.nn();i&&i.changeUser(e.toString(),s.Ay.gr(),t)}},55323:(e,t,i)=>{i.d(t,{A:()=>s});class s{constructor(e,t){this.database=e,this.Rd=t,this.parent="u"<typeof window?self:window,this.database=e,this.Rd=t}Ud(){if("indexedDB"in this.parent)return this.parent.indexedDB}isSupported(){var e;try{if(null==this.Ud())return!1;{let t=null==(e=this.Ud())?void 0:e.open("Braze IndexedDB Support Test");if(t&&(t.onupgradeneeded=()=>t.result.close(),t.onsuccess=()=>t.result.close()),"u">typeof window){let e=window,t=e.chrome||e.browser||e.Od;if(t&&t.runtime&&t.runtime.id)return this.Rd.info("Not using IndexedDB for storage because we are running inside an extension"),!1}return!0}}catch(e){return this.Rd.info("Not using IndexedDB for storage due to following error: "+e),!1}}Kd(e,t){var i;let s=null==(i=this.Ud())?void 0:i.open(this.database.Ld,this.database.VERSION);if(null==s)return"function"==typeof t&&t(),!1;let n=this;return s.onupgradeneeded=e=>{var t;n.Rd.info("Upgrading indexedDB "+n.database.Ld+" to v"+n.database.VERSION+"...");let i=null==(t=e.target)?void 0:t.result;for(let e in n.database.Fs)n.database.Fs.hasOwnProperty(e)&&!i.objectStoreNames.contains(n.database.Fs[e])&&i.createObjectStore(n.database.Fs[e])},s.onsuccess=i=>{var s;let r=null==(s=i.target)?void 0:s.result;r.onversionchange=()=>{r.close(),"function"==typeof t&&t(),n.Rd.error("Needed to close the database unexpectedly because of an upgrade in another tab")},e(r)},s.onerror=e=>{var i;return n.Rd.info("Could not open indexedDB "+n.database.Ld+" v"+n.database.VERSION+": "+(null==(i=e.target)?void 0:i.errorCode)),"function"==typeof t&&t(),!0},!0}setItem(e,t,i,s,n){if(!this.isSupported())return"function"==typeof n&&n(),!1;let r=this;return this.Kd(a=>{if(!a.objectStoreNames.contains(e))return r.Rd.error("Could not store object "+t+" in "+e+" on indexedDB "+r.database.Ld+" - "+e+" is not a valid objectStore"),"function"==typeof n&&n(),void a.close();let o=a.transaction([e],"readwrite");o.oncomplete=()=>a.close();let l=o.objectStore(e).put(i,t);l.onerror=()=>{r.Rd.error("Could not store object "+t+" in "+e+" on indexedDB "+r.database.Ld),"function"==typeof n&&n()},l.onsuccess=()=>{"function"==typeof s&&s()}},n)}getItem(e,t,i){if(!this.isSupported())return!1;let s=this;return this.Kd(n=>{if(!n.objectStoreNames.contains(e))return s.Rd.error("Could not retrieve object "+t+" in "+e+" on indexedDB "+s.database.Ld+" - "+e+" is not a valid objectStore"),void n.close();let r=n.transaction([e],"readonly");r.oncomplete=()=>n.close();let a=r.objectStore(e).get(t);a.onerror=()=>{s.Rd.error("Could not retrieve object "+t+" in "+e+" on indexedDB "+s.database.Ld)},a.onsuccess=e=>{var t;let s=null==(t=e.target)?void 0:t.result;null!=s&&i(s)}})}kr(e,t,i){if(!this.isSupported())return"function"==typeof i&&i(),!1;let s=this;return this.Kd(n=>{if(!n.objectStoreNames.contains(e))return s.Rd.error("Could not retrieve last record from "+e+" on indexedDB "+s.database.Ld+" - "+e+" is not a valid objectStore"),"function"==typeof i&&i(),void n.close();let r=n.transaction([e],"readonly");r.oncomplete=()=>n.close();let a=r.objectStore(e).openCursor(null,"prev");a.onerror=()=>{s.Rd.error("Could not open cursor for "+e+" on indexedDB "+s.database.Ld),"function"==typeof i&&i()},a.onsuccess=e=>{var s;let n=null==(s=e.target)?void 0:s.result;null!=n&&null!=n.value&&null!=n.key?t(n.key,n.value):"function"==typeof i&&i()}},i)}je(e,t){if(!this.isSupported())return!1;let i=this;return this.Kd(s=>{if(!s.objectStoreNames.contains(e))return i.Rd.error("Could not delete record "+t+" from "+e+" on indexedDB "+i.database.Ld+" - "+e+" is not a valid objectStore"),void s.close();let n=s.transaction([e],"readwrite");n.oncomplete=()=>s.close(),n.objectStore(e).delete(t).onerror=()=>{i.Rd.error("Could not delete record "+t+" from "+e+" on indexedDB "+i.database.Ld)}})}Ds(e,t){if(!this.isSupported())return!1;let i=this;return this.Kd(s=>{if(!s.objectStoreNames.contains(e))return i.Rd.error("Could not retrieve objects from "+e+" on indexedDB "+i.database.Ld+" - "+e+" is not a valid objectStore"),void s.close();let n=s.transaction([e],"readwrite");n.oncomplete=()=>s.close();let r=n.objectStore(e),a=r.openCursor(),o=[];a.onerror=()=>{o.length>0?(i.Rd.info("Cursor closed midway through for "+e+" on indexedDB "+i.database.Ld),t(o)):i.Rd.error("Could not open cursor for "+e+" on indexedDB "+i.database.Ld)},a.onsuccess=e=>{var i;let s=null==(i=e.target)?void 0:i.result;null!=s?(null!=s.value&&null!=s.key&&(r.delete(s.key).onsuccess=()=>{o.push(s.value)}),"function"==typeof s.continue&&s.continue()):o.length>0&&t(o)}})}clearData(){if(!this.isSupported())return!1;let e=[];for(let t in this.database.Fs)this.database.Fs.hasOwnProperty(t)&&this.database.Fs[t]!==this.database.Fs.be&&e.push(this.database.Fs[t]);let t=this;return this.Kd(function(i){let s=i.transaction(e,"readwrite");s.oncomplete=()=>i.close();for(let i=0;i<e.length;i++){let n=e[i];s.objectStore(n).clear().onerror=function(){t.Rd.error("Could not clear "+this.source.name+" on indexedDB "+t.database.Ld)}}s.onerror=function(){t.Rd.error("Could not clear object stores on indexedDB "+t.database.Ld)}})}}s.Us={Rs:{Ld:"AppboyServiceWorkerAsyncStorage",VERSION:6,Fs:{Ze:"data",vr:"pushClicks",Fu:"pushSubscribed",Gd:"fallbackDevice",As:"cardUpdates",be:"optOut",zr:"pendingData",qh:"sdkAuthenticationSignature"},fe:1}}},56183:(e,t,i)=>{i.d(t,{A:()=>
1o});var s=i(72071),n=i(84108),r=i(82728),a=i(83748);let o={lt:(e,t,i)=>{var o,l;let u=new a.A,h=n.Ay.u();if(!h)return s.A.info(`Not logging event with type "${e}" because the current session ID could not be found.`),u;let c=h.el();return u.Ee.push(new r.A(i||(null==(o=n.Ay.ir())?void 0:o.getUserId()),e,new Date().valueOf(),c,t)),u.W=(null==(l=n.Ay.p())?void 0:l.ol(u.Ee))||!1,u}}},56778:(e,t,i)=>{i.d(t,{A:()=>d,d:()=>c});var s=i(82728),n=i(60082),r=i(68286),a=i(11457),o=i(72071),l=i(72573),u=i(28710),h=i(13875);let c={Ou:{Cu:"ab.storage.userId",tl:"ab.storage.deviceId",um:"ab.storage.sessionId"},ft:{Qc:"ab.test",tE:"ab.storage.events",eE:"ab.storage.attributes",sE:"ab.storage.attributes.anonymous_user",ac:"ab.storage.device",Dl:"ab.storage.sdk_metadata",Tl:"ab.storage.session_id_for_cached_metadata",Uu:"ab.storage.pushToken",rE:"ab.storage.cardImpressions",jc:"ab.storage.serverConfig",oE:"ab.storage.triggers",nE:"ab.storage.triggers.ts",dm:"ab.storage.messagingSessionStart",Ps:"ab.storage.cc",Gs:"ab.storage.ccLastFullSync",Hs:"ab.storage.ccLastCardUpdated",uc:"ab.storage.globalRateLimitCurrentTokenCount",fc:"ab.storage.dynamicRateLimitCurrentTokenCount",Jt:"ab.storage.ccClicks",Vt:"ab.storage.ccImpressions",Pt:"ab.storage.ccDismissals",aE:"ab.storage.lastDisplayedTriggerTimesById",iE:"ab.storage.lastDisplayedTriggerTime",EE:"ab.storage.triggerFireInstancesById",xh:"ab.storage.signature",SE:"ab.storage.brazeSyncRetryCount",Qs:"ab.storage.sdkVersion",lo:"ab.storage.ff",vo:"ab.storage.ffImpressions",Do:"ab.storage.ffLastRefreshAt",Co:"ab.storage.ff.sessionId",lE:"ab.storage.lastReqToEndpoint",_E:"ab.storage.requestAttempts",Wn:"ab.storage.deferredIam",Jl:"ab.storage.lastSdkReq",uE:"ab.storage.alias",vt:"ab.storage.banners",Dt:"ab.storage.banners.impressions",Bt:"ab.storage.banners.sessionId",Ue:"ab.storage.dust.mite",Ne:"ab.storage.dust.host",Te:"ab.storage.dust.auth",ze:"ab.storage.dust.expiration"},pe:"ab.optOut"};class d{constructor(e,t){this.TE=e,this.cE=t,this.TE=e,this.cE=t}Sl(e){let t=(0,r.HP)(c.Ou),i=new d.le(e);for(let e of t)i.remove(c.Ou[e])}Iu(e,t){let i=null;null!=t&&t instanceof n.A&&(i=t.gt()),this.TE.store(e,i)}hE(e){let t=this.$u(e);null!=t&&(t.gm=new Date().valueOf(),this.Iu(e,t))}$u(e){let t,i=this.TE.jr(e),s=(e=>{let t;try{t=JSON.parse(e)}catch(e){t=null}return t})(i);if(s)(t=n.A._u(s)||null)&&this.Iu(e,t);else{let s=n.A.AE(i);t=n.A._u(s)||null,s!==i&&t&&this.Iu(e,t)}return t}xm(e){this.TE.remove(e)}Al(){let e;for(let t of(0,r.HP)(c.Ou))null!=(e=this.$u(c.Ou[t]))&&this.Iu(c.Ou[t],e)}ol(e){let t;if(null==e||0===e.length)return!1;t=(0,r.cy)(e)?e:[e];let i=this.cE.jr(c.ft.tE);null!=i&&(0,r.cy)(i)||(i=[]);for(let e=0;e<t.length;e++)i.push(t[e].gt());return this.cE.store(c.ft.tE,i)}wm(e){return null!=e&&this.ol([e])}RE(){let e=this.cE.jr(c.ft.tE);this.cE.remove(c.ft.tE),null==e&&(e=[]);let t=[],i=!1,n=null;if((0,r.cy)(e))for(let i=0;i<e.length;i++)s.A.gE(e[i])?t.push(s.A._u(e[i])):n=i;else i=!0;if(i||null!=n){let r="Stored events could not be deserialized as Events";i&&(r+=", was "+Object.prototype.toString.call(e)+" not an array"),null!=n&&(r+=", value at index "+n+" does not look like an event"),r+=", serialized values were of type "+typeof e+": "+JSON.stringify(e),t.push(new s.A(null,a.w.wl,new Date().valueOf(),null,{e:r}))}return t}bt(e,t){return!!(0,r.BY)(c.ft,e,"StorageManager cannot store object.","STORAGE_KEYS.OBJECTS")&&this.cE.store(e,t)}dt(e){return!!(0,r.BY)(c.ft,e,"StorageManager cannot retrieve object.","STORAGE_KEYS.OBJECTS")&&this.cE.jr(e)}zt(e){return!!(0,r.BY)(c.ft,e,"StorageManager cannot remove object.","STORAGE_KEYS.OBJECTS")&&(this.cE.remove(e),!0)}clearData(){let e=(0,r.HP)(c.Ou),t=(0,r.HP)(c.ft);for(let t=0;t<e.length;t++){let i=e[t];this.TE.remove(c.Ou[i])}for(let e=0;e<t.length;e++){let i=t[e];this.cE.remove(c.ft[i])}}OE(e){return e||c.ft.sE}Xl(e){let t=this.cE.jr(c.ft.eE);null==t&&(t={});let i=this.OE(e[l.A.Va]),s=t[i];for(let n in e)n!==l.A.Va&&(null==t[i]||s&&null==s[n])&&this.Eu(e[l.A.Va],n,e[n])}Eu(e,t,i){let s=this.cE.jr(c.ft.eE);null==s&&(s={});let n=this.OE(e),r=s[n];if(null==r&&(r={},null!=e&&(r[l.A.Va]=e)),t===l.A.Bu)for(let e in null==r[t]&&(r[t]={}),i)r[t][e]=i[e];else r[t]=i;return s[n]=r,this.cE.store(c.ft.eE,s)}IE(){let e=this.cE.jr(c.ft.eE);this.cE.remove(c.ft.eE);let t=[];for(let i in e)null!=e[i]&&t.push(e[i]);return t}Lu(e){let t=this.cE.jr(c.ft.eE);if(null!=t){let i=this.OE(null),s=t[i];null!=s&&(t[i]=void 0,this.cE.store(c.ft.eE,t),s[l.A.Va]=e,this.Xl(s))}let i=this.$u(c.Ou.um),s=null;null!=i&&(s=i.Tu);let n=this.RE();if(null!=n)for(let t=0;t<n.length;t++){let i=n[t];null==i.userId&&i.sessionId==s&&(i.userId=e),this.wm(i)}}dE(){return this.cE.bE}}d.Wc=class{constructor(e){this.tu=e,this.tu=e,this.bE=u.A.fE()?3:10}mE(e){return e+"."+this.tu}store(e,t){try{return localStorage.setItem(this.mE(e),JSON.stringify({v:t})),!0}catch(e){return o.A.info("Storage failure: "+(0,h.u)(e)),!1}}jr(e){try{let t=null,i=localStorage.getItem(this.mE(e));return null!=i&&(t=JSON.parse(i)),null==t?null:t.v}catch(e){return o.A.info("Storage retrieval failure: "+(0,h.u)(e)),null}}remove(e){try{localStorage.removeItem(this.mE(e))}catch(e){return o.A.info("Storage removal failure: "+(0,h.u)(e)),!1}}},d.Xc=class{constructor(){this.KE={},this.YE=5242880,this.bE=3}store(e,t){let i=this.NE(t);return i>this.YE?(o.A.info("Storage failure: object is ≈"+i+" bytes which is greater than the max of "+this.YE),!1):(this.KE[e]={value:t},!0)}NE(e){let t=[],i=[e],s=0;for(;i.length;){let e=i.pop();if("boolean"==typeof e)s+=4;else if("string"==typeof e)s+=2*e.length;else if("number"==typeof e)s+=8;else if("object"==typeof e&&-1===t.indexOf(e))for(let s in t.push(e),e)i.push(e[s])}return s}jr(e){let t=this.KE[e];return null==t?null:t.value}remove(e){this.KE[e]=null}},d.le=class{constructor(e,t){this.tu=e,this.DE=t,this.tu=e,this.GE=this.CE(),this.ME=576e3,this.DE=!!t}mE(e){return null!=this.tu?e+"."+this.tu:e}CE(){let e=0,t=document.location.hostname,i=t.split("."),s="ab._gd";
1for(;e<i.length-1&&-1===document.cookie.indexOf(s+"="+s);)e++,t="."+i.slice(-1-e).join("."),document.cookie=s+"="+s+";domain="+t+";";return document.cookie=s+"=;expires="+new Date(0).toUTCString()+";domain="+t+";",t}me(){let e=new Date;return e.setTime(e.getTime()+60*this.ME*1e3),e.getFullYear()}pE(){let e=(0,r.zu)(c.Ou),t=document.cookie.split(";");for(let i=0;i<t.length;i++){let s=t[i];for(;" "===s.charAt(0);)s=s.substring(1);let n=!1;for(let t=0;t<e.length;t++)if(0===s.indexOf(e[t])){n=!0;break}if(n){let e=s.split("=")[0];-1===e.indexOf("."+this.tu)&&this.UE(e)}}}store(e,t){let i;this.pE();let s=new Date;s.setTime(s.getTime()+60*this.ME*1e3);let n="expires="+s.toUTCString(),r="domain="+this.GE;i=this.DE?t:encodeURIComponent(t);let a=this.mE(e)+"="+i+";"+n+";"+r+";path=/";return a.length>=4093?(o.A.info("Storage failure: string is "+a.length+" chars which is too large to store as a cookie."),!1):(document.cookie=a,!0)}jr(e){let t=[],i=this.mE(e)+"=",s=document.cookie.split(";");for(let n=0;n<s.length;n++){let r=s[n];for(;" "===r.charAt(0);)r=r.substring(1);if(0===r.indexOf(i))try{let e;e=this.DE?r.substring(i.length,r.length):decodeURIComponent(r.substring(i.length,r.length)),t.push(e)}catch(t){return o.A.info("Storage retrieval failure: "+(0,h.u)(t)),this.remove(e),null}}return t.length>0?t[t.length-1]:null}remove(e){this.UE(this.mE(e))}UE(e){let t=e+"=;expires="+new Date(0).toUTCString();document.cookie=t,document.cookie=t+";path=/";let i=t+";domain="+this.GE;document.cookie=i,document.cookie=i+";path=/"}},d.Jc=class{constructor(e,t,i){this.tu=e,this.vE=[],t&&this.vE.push(new d.le(e)),i&&this.vE.push(new d.Wc(e)),this.vE.push(new d.Xc)}store(e,t){let i=!0;for(let s=0;s<this.vE.length;s++)i=this.vE[s].store(e,t)&&i;return i}jr(e){for(let t=0;t<this.vE.length;t++){let i=this.vE[t].jr(e);if(null!=i)return i}return null}remove(e){new d.le(this.tu).remove(e);for(let t=0;t<this.vE.length;t++)this.vE[t].remove(e)}}},57505:(e,t,i)=>{i.r(t),i.d(t,{default:()=>m});var s=i(84108),n=i(68286),r=i(91338),a=i(72071);let o=function(e){let t=atob((e+"=".repeat((4-e.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/")),i=new Uint8Array(t.length);for(let e=0;e<t.length;++e)i[e]=t.charCodeAt(e);return i};var l=i(56778),u=i(72573),h=i(41957),c=i(13875);class d{constructor(e,t,i,s,n,r,a,o,l,u,c){this.iu=e,this.tu=t,this.eu=i,this.su=n,this.ru=r,this.nu=a,this.h=o,this.ou=l,this.uu=u,this.B=c,this.iu=e,this.tu=t,this.eu=i,this.au=s+"/safari/"+t,this.su=n||"/service-worker.js",this.nu=a,this.h=o,this.ou=l||!1,this.uu=u||!1,this.B=c,this.hu=h.A.cu(),this.fu=h.A.lu()}du(){return this.uu}pu(e,t,i,s,n){e.unsubscribe().then(e=>{e?this.bu(t,i,s,n):(a.A.error("Failed to unsubscribe device from push."),"function"==typeof n&&n(!1))}).catch(e=>{a.A.error("Push unsubscription error: "+e),"function"==typeof n&&n(!1)})}yu(e,t,i){var s;let n,r=(e=>{if("string"==typeof e)return e;if(0!==e.endpoint.indexOf("https://android.googleapis.com/gcm/send"))return e.endpoint;let t=e.endpoint;return e.mu&&-1===e.endpoint.indexOf(e.mu)&&(t=e.endpoint+"/"+e.mu),t})(e),o=null,l=null;if(null!=e.getKey)try{let t=Array.from(new Uint8Array(e.getKey("p256dh"))),i=Array.from(new Uint8Array(e.getKey("auth")));o=btoa(String.fromCharCode.apply(null,t)),l=btoa(String.fromCharCode.apply(null,i))}catch(e){a.A.error((0,c.u)(e))}let u=e.options&&(n=e.options.applicationServerKey)&&n.byteLength&&n.byteLength>0?btoa(String.fromCharCode.apply(null,Array.from(new Uint8Array(n)))).replace(/\+/g,"-").replace(/\//g,"_"):null;null==(s=this.iu)||s.gu(r,t,o,l,u),r&&"function"==typeof i&&i(r,o,l)}vu(){var e;null==(e=this.iu)||e.wu(!0)}ku(e,t){var i;null==(i=this.iu)||i.wu(!1),a.A.info(e),"function"==typeof t&&t(!1)}Pu(e,t,i,s){var n;if("default"===t.permission)try{window.safari.pushNotification.requestPermission(this.au,e,{api_key:this.tu,device_id:(null==(n=this.eu)?void 0:n.ve().id)||""},t=>{"granted"===t.permission&&this.iu&&this.iu.setPushNotificationSubscriptionType(u.A.NotificationSubscriptionTypes.OPTED_IN),this.Pu(e,t,i,s)})}catch(e){this.ku("Could not request permission for push: "+e,s)}else"denied"===t.permission?this.ku("The user has blocked notifications from this site, or Safari push is not configured in the Braze dashboard.",s):"granted"===t.permission&&(a.A.info("Device successfully subscribed to push."),this.yu(t.deviceToken,new Date,i))}requestPermission(e,t,i){let s=s=>{switch(s){case"granted":return void("function"==typeof e&&e());case"default":return void("function"==typeof t&&t());case"denied":return void("function"==typeof i&&i());default:a.A.error("Received unexpected permission result "+s)}},n=!1;if("default"!==window.Notification.permission)s(Notification.permission);else{let e=window.Notification.requestPermission(e=>{n&&s(e)});e?e.then(e=>{s(e)}):n=!0}}bu(e,t,i,s){let n={userVisibleOnly:!0};null!=t&&(n.applicationServerKey=t),e.pushManager.subscribe(n).then(e=>{a.A.info("Device successfully subscribed to push."),this.yu(e,new Date,i)}).catch(e=>{h.A.isPushBlocked()?(a.A.info("Permission for push notifications was denied."),"function"==typeof s&&s(!1)):(a.A.error("Push subscription failed: "+e),"function"==typeof s&&s(!0))})}
1Du(){if(this.ou)return navigator.serviceWorker.getRegistration(this.su);let e=this.ru?{scope:this.ru}:void 0;return navigator.serviceWorker.register(this.su,e).then(()=>navigator.serviceWorker.ready.then(e=>(e&&"function"==typeof e.update&&e.update().catch(e=>{a.A.info("ServiceWorker update failed: "+e)}),e)))}Su(e){this.ou||(e.unregister(),a.A.info("Service worker successfully unregistered."))}subscribe(e,t){if(!h.A.isPushSupported())return a.A.info(d.Au),void("function"==typeof t&&t(!1));if(this.hu){if(!this.ou&&null!=window.location){let e=this.su;-1===e.indexOf(window.location.host)&&(e=window.location.host+e),-1===e.indexOf(window.location.protocol)&&(e=window.location.protocol+"//"+e)}if(h.A.isPushBlocked())return void this.ku("Notifications from this site are blocked. This may be a temporary embargo or a permanent denial.",t);if(this.h&&!this.h.ju()&&0===this.h.xt())return a.A.info("Waiting for VAPID key from server config before subscribing to push."),void this.h.xu(()=>{this.subscribe(e,t)});let i=h.A.isPushPermissionGranted(),s=()=>{!i&&this.iu&&this.iu.setPushNotificationSubscriptionType(u.A.NotificationSubscriptionTypes.OPTED_IN),this.Du().then(i=>{null==i?(a.A.error("No service worker registration. Set the `manageServiceWorkerExternally` initialization option to false or ensure that your service worker is registered before calling registerPush."),"function"==typeof t&&t(!0)):i.pushManager.getSubscription().then(s=>{var u;let h=null;if(null!=(null==(u=this.h)?void 0:u.ju())&&(h=o(this.h.ju())),s){let o,u=null,c=null;if(this.B&&(o=this.B.dt(l.d.ft.Uu)),o&&!(0,n.cy)(o)){let e;try{e=r.A._u(o).Wu}catch(t){e=null}null==e||isNaN(e.getTime())||0===e.getTime()||(c=new Date(u=e)).setMonth(u.getMonth()+6)}null!=h&&s.options&&s.options.applicationServerKey&&s.options.applicationServerKey.byteLength&&s.options.applicationServerKey.byteLength>0&&!(0,n.n4)(h,new Uint8Array(s.options.applicationServerKey))?(s.options.applicationServerKey.byteLength>12?a.A.info("Device was already subscribed to push using a different VAPID provider, creating new subscription."):a.A.info("Attempting to upgrade a gcm_sender_id-based push registration to VAPID - depending on the browser this may or may not result in the same gcm_sender_id-based subscription."),this.pu(s,i,h,e,t)):s.expirationTime&&new Date(s.expirationTime).valueOf()<=new Date().valueOf()?(a.A.info("Push subscription is expired, creating new subscription."),this.pu(s,i,h,e,t)):o&&(0,n.cy)(o)?this.pu(s,i,h,e,t):null==c?(a.A.info("No push subscription creation date found, creating new subscription."),this.pu(s,i,h,e,t)):c.valueOf()<=new Date().valueOf()?(a.A.info("Push subscription older than 6 months, creating new subscription."),this.pu(s,i,h,e,t)):(a.A.info("Device already subscribed to push, sending existing subscription to backend."),this.yu(s,u,e))}else this.bu(i,h,e,t)}).catch(e=>{a.A.error("Error checking current push subscriptions: "+e)})}).catch(e=>{a.A.error("ServiceWorker registration failed: "+e)})};this.requestPermission(s,()=>{let e="Permission for push notifications was ignored.";h.A.isPushBlocked()&&(e+=" The browser has automatically blocked further permission requests for a period (probably 1 week)."),a.A.info(e),"function"==typeof t&&t(!0)},()=>{a.A.info("Permission for push notifications was denied."),"function"==typeof t&&t(!1)})}else if(this.fu){if(null==this.nu||""===this.nu)return a.A.error("You must supply the safariWebsitePushId initialization option in order to use registerPush on Safari"),void("function"==typeof t&&t(!0));let i=window.safari.pushNotification.permission(this.nu);this.Pu(this.nu,i,e,t)}}unsubscribe(e,t){h.A.isPushSupported()?this.hu?navigator.serviceWorker.getRegistration(this.su).then(i=>{i?i.pushManager.getSubscription().then(s=>{s?(this.vu(),s.unsubscribe().then(s=>{s?(a.A.info("Device successfully unsubscribed from push."),"function"==typeof e&&e()):(a.A.error("Failed to unsubscribe device from push."),"function"==typeof t&&t()),this.Su(i)}).catch(e=>{a.A.error("Push unsubscription error: "+e),"function"==typeof t&&t()})):(a.A.info("Device already unsubscribed from push."),"function"==typeof e&&e())}).catch(e=>{a.A.error("Error unsubscribing from push: "+e),"function"==typeof t&&t()}):(a.A.info("Device already unsubscribed from push."),"function"==typeof e&&e())}):this.fu&&(this.vu(),a.A.info("Device unsubscribed from push."),"function"==typeof e&&e()):(a.A.info(d.Au),"function"==typeof t&&t())}}d.Au="Push notifications are not supported in this browser.";let p={i:!1,na:null,ra:()=>
1(p.t(),p.na||(p.na=new d(s.Ay.br(),s.Ay._a(),s.Ay.ue(),s.Ay.V(),s.Ay.re(s.lw.Ga),s.Ay.re(s.lw.Ha),s.Ay.re(s.lw.Ia),s.Ay.l(),s.Ay.re(s.lw.Ka),s.Ay.re(s.lw.La),s.Ay.p())),p.na),t:()=>{p.i||(s.Ay.g(p),p.i=!0)},destroy:()=>{p.na=null,p.i=!1}},m=p},59788:(e,t,i)=>{i.d(t,{A:()=>r});var s=i(69472),n=i(35817);class r extends s.A{constructor(e,t,i,n,r,a,o,l,u,h,c,d,p,m,b,f,g,v,A,y,w,x,E,S){f=f||s.A.th.Rh,b=b||s.A.th.Nh,super(e,t=t||s.A.TextAlignment.START,i,n,r,a,o,l,u,h,c,d,void 0,p,m,b,f,g,v,A,void 0,void 0,void 0,void 0,void 0,void 0,void 0,y,w,x,E,S),this.Io=s.A.TextAlignment.START}zo(){return!1}No(){let e=document.createElement("span");return e.appendChild(document.createTextNode(this.message||"")),e}ah(e){let t=e.getElementsByClassName("ab-in-app-message")[0];n.e0.td(t,!0,!0)||(this.slideFrom===s.A.SlideFrom.TOP?t.style.top="0px":t.style.bottom="0px"),super.ah(e)}gt(){return super.gt(r.es)}static Zn(e){return new r(e[s.A.ss.pa],e[s.A.ss.ma],e[s.A.ss._h],e[s.A.ss.xs],e[s.A.ss.ua],e[s.A.ss.ca],e[s.A.ss.URI],e[s.A.ss.fa],e[s.A.ss.da],e[s.A.ss.la],e[s.A.ss.ga],e[s.A.ss.ns],e[s.A.ss.xa],e[s.A.ss.za],e[s.A.ss.ha],e[s.A.ss.va],e[s.A.ss.wa],e[s.A.ss.ya],e[s.A.ss.Sa],e[s.A.ss.Ea],e[s.A.ss.CSS],e[s.A.ss.Fa],e[s.A.ss.LANGUAGE],e[s.A.ss.ks])}}r.es=s.A.Eo.ia},60082:(e,t,i)=>{i.d(t,{A:()=>o});var s=i(85142),n=i(72071),r=i(68286),a=i(13875);class o{constructor(e,t,i){this.Tu=e,null==e&&(e=s.A.se()),!i||isNaN(i)?this.lm=new Date().valueOf():this.lm=i,this.Tu=e,this.gm=new Date().valueOf(),this.pm=t}gt(){return`g:${encodeURIComponent(this.Tu)}|e:${this.pm}|c:${this.lm}|l:${this.gm}`}static AE(e){let t;if("string"!=typeof e)return null;let i=e.lastIndexOf("|e:"),s=e.substring(0,i),n=s.split("g:")[1];return t=/[|:]/.test(n)?encodeURIComponent(n):n,e=e.replace(s,`g:${t}`)}static _u(e){let t;if("string"==typeof e)try{let i=e.split("|");if(!(0,r.cy)(i)||4!==i.length)return null;let s=e=>e.split(":")[1],n=e=>{let t=parseInt(s(e));if(!isNaN(t))return t};(t=new o(decodeURIComponent(s(i[0])),n(i[1]),n(i[2]))).gm=n(i[3])}catch(t){n.A.info(`Unable to parse cookie string ${e}, failed with error: ${(0,a.u)(t)}`)}else{if(null==e||null==e.g)return null;(t=new o(e.g,e.e,e.c)).gm=e.l}return t}}},60634:(e,t,i)=>{i.d(t,{A:()=>s});class s{constructor(e,t){this.triggerId=e,this.messageExtras=t,this.triggerId=e,this.messageExtras=t,this.extras={},this.isControl=!0,this.Gt=!1}static fromJson(e){return new s(e.trigger_id,e.message_extras)}Wt(){return!this.Gt&&(this.Gt=!0,!0)}sm(){return this.Gt}}},63682:(e,t,i)=>{i.d(t,{A:()=>g});var s=i(9099),n=i(72071);class r{constructor(e){this.tf=e,this.tf=e}sf(e){return null==this.tf||this.tf===e[0]}static fromJson(e){return new r(e?e.event_name:null)}gt(){return this.tf}}var a=i(68286);class o{constructor(e,t,i,n){this.yE=e,this.HE=t,this.comparator=i,this.LE=n,this.yE=e,this.HE=t,this.comparator=i,this.LE=n,this.HE===o.XE.QE&&this.comparator!==o.BE.wE&&this.comparator!==o.BE.jE&&this.comparator!==o.BE.zE&&this.comparator!==o.BE.FE&&(this.LE=(0,s.Zo)(this.LE))}sf(e){let t=null;switch(null!=e&&(t=e[this.yE]),this.comparator){case o.BE.kE:return null!=t&&t.valueOf()===this.LE.valueOf();case o.BE.xE:return null==t||t.valueOf()!==this.LE.valueOf();case o.BE.JE:return null!=t&&typeof t==typeof this.LE&&t>this.LE;case o.BE.wE:return this.HE===o.XE.QE?null!=t&&(0,a.$P)(t)&&(0,s.Jd)(t)<=this.LE.valueOf():null!=t&&typeof t==typeof this.LE&&t>=this.LE;case o.BE.VE:return null!=t&&typeof t==typeof this.LE&&t<this.LE;case o.BE.jE:return this.HE===o.XE.QE?null!=t&&(0,a.$P)(t)&&(0,s.Jd)(t)>=this.LE.valueOf():null!=t&&typeof t==typeof this.LE&&t<=this.LE;case o.BE.qE:return null!=t&&"string"==typeof t&&typeof t==typeof this.LE&&null!=t.match(this.LE);case o.BE.PE:return null!=t;case o.BE.WE:return null==t;case o.BE.zE:return null!=t&&(0,a.$P)(t)&&(0,s.DA)(t)<this.LE;case o.BE.FE:return null!=t&&(0,a.$P)(t)&&(0,s.DA)(t)>this.LE;case o.BE.ZE:return null==t||typeof t!=typeof this.LE||"string"!=typeof t||null==t.match(this.LE)}return!1}static fromJson(e){return new o(e.property_key,e.property_type,e.comparator,e.property_value)}gt(){let e=this.LE;return(0,a.$P)(this.LE)&&(e=(0,s.UK)(e.valueOf())),{k:this.yE,t:this.HE,c:this.comparator,v:e}}static _u(e){return new o(e.k,e.t,e.c,e.v)}}o.XE={$E:"boolean",tT:"number",sT:"string",QE:"date"},o.BE={kE:1,xE:2,JE:3,wE:4,VE:5,jE:6,qE:10,PE:11,WE:12,zE:15,FE:16,ZE:17};class l{constructor(e){this.filters=e,this.filters=e}sf(e){let t=!0;for(let i=0;i<this.filters.length;i++){let s=this.filters[i],n=!1;for(let t=0;t<s.length;t++)if(s[t].sf(e)){n=!0;break}if(!n){t=!1;break}}return t}static fromJson(e){if(null==e||!(0,a.cy)(e))return null;let t=[];for(let i=0;i<e.length;i++){let s=[],n=e[i];for(let e=0;e<n.length;e++)s.push(o.fromJson(n[e]));t.push(s)}return new l(t)}gt(){let e=[];for(let t=0;t<this.filters.length;t++){let i=this.filters[t],s=[];for(let e=0;e<i.length;e++)s.push(i[e].gt());e.push(s)}return e}static _u(e){let t=[];for(let i=0;i<e.length;i++){let s=[],n=e[i];for(let e=0;e<n.length;e++)s.push(o._u(n[e]));t.push(s)}return new l(t)}}class u{constructor(e,t){this.tf=e,this.if=t,this.tf=e,this.if=t}sf(e){if(null==this.tf||null==this.if)return!1;let t=e[0],i=e[1];return t===this.tf&&this.if.sf(i)}static fromJson(e){return new u(e?e.event_name:null,e?l.fromJson(e.property_filters):null)}gt(){return{e:this.tf,pf:this.if?this.if.gt():null}}}class h{constructor(e,t){this.rf=e,this.nf=t,this.rf=e,this.nf=t}sf(e){if(null==this.rf)return!1;let t=f.ef(e[0],this.rf);if(!t)return!1;let i=null==this.nf||0===this.nf.length;if(null!=this.nf){for(let t=0;t<this.nf.length;t++)if(this.nf[t]===e[1]){i=!0;break}}return t&&i}static fromJson(e){return new h(e?e.id:null,e?e.buttons:null)}gt(){return this.rf}}class c{constructor(e){this.productId=e,this.productId=e}sf(e){return null==this.productId||e[0]===this.productId}static fromJson(e){return new c(e?e.product_id:null)}gt(){return this.productId}}class d{constructor(e,t){this.productId=e,this.if=t,this.productId=e,this.if=t}sf(e){if(null==this.productId||null==this.if)return!1;let t=e[0],i=e[1];return t===this.productId&&this.if.sf(i)}static fromJson(e){return new d(e?e.product_id:null,e?l.fromJson(e.property_filters):null)}gt(){return{id:this.productId,pf:this.if?this.if.gt():null}}}class p{constructor(e){this.rf=e,this.rf=e}sf(e){return null==this.rf||f.ef(e[0],this.rf)}static fromJson(e){return new p(e?e.campaign_id:null)}gt(){return this.rf}}var m=i(29885),b=i(13875);class f{constructor(e,t){this.type=e,this.data=t,this.type=e,this.data=t}km(e,t){return f._m[this.type]===e&&(null==this.data||this.data.sf(t))}static ef(e,t){let i=null;try{i=window.atob(e)}catch(t){return n.A.info("Failed to unencode analytics id "+e+": "+(0,b.u)(t)),!1}return t===i.split("_")[0]}static fromJson(e){let t=e.type,i=null;switch(t){case f.Ln.OPEN:case f.Ln.qs:break;case f.Ln.Rr:i=c.fromJson(e.data);break;case f.Ln.bm:i=d.fromJson(e.data);break;case f.Ln.wr:i=p.fromJson(e.data);break;case f.Ln.xe:i=r.fromJson(e.data);break;case f.Ln.Em:i=u.fromJson(e.data);break;case f.Ln.rm:i=h.fromJson(e.data)}
1return new f(t,i)}gt(){return{t:this.type,d:this.data?this.data.gt():null}}static _u(e){let t,i=null;switch(e.t){case f.Ln.OPEN:case f.Ln.qs:break;case f.Ln.Rr:i=new c(e.d);break;case f.Ln.bm:i=new d((t=e.d||{}).id,l._u(t.pf||[]));break;case f.Ln.wr:i=new p(e.d);break;case f.Ln.xe:i=new r(e.d);break;case f.Ln.Em:i=new u((t=e.d||{}).e,l._u(t.pf||[]));break;case f.Ln.rm:i=new h(e.d)}return new f(e.t,i)}}f.Ln={OPEN:"open",Rr:"purchase",bm:"purchase_property",wr:"push_click",xe:"custom_event",Em:"custom_event_property",rm:"iam_click",qs:"test"},f._m={},f._m[f.Ln.OPEN]=m.A.OPEN,f._m[f.Ln.Rr]=m.A.Rr,f._m[f.Ln.bm]=m.A.Rr,f._m[f.Ln.wr]=m.A.wr,f._m[f.Ln.xe]=m.A.xe,f._m[f.Ln.Em]=m.A.xe,f._m[f.Ln.rm]=m.A.rm,f._m[f.Ln.qs]=m.A.qs;class g{constructor(e,t=[],i,s,n=0,r,a,o=0,l=g.Td,u,h,c){this.id=e,this.Pd=t,this.startTime=i,this.endTime=s,this.priority=n,this.type=r,this.data=a,this.Ed=o,this.Nd=l,this.Vn=u,this._d=h,this.Id=c,this.id=e,this.Pd=t||[],void 0===i&&(i=null),this.startTime=i,void 0===s&&(s=null),this.endTime=s,this.priority=n||0,this.type=r,this.Ed=o||0,null==u&&(u=1e3*(this.Ed+30)),this.Vn=u,this.data=a,null!=l&&(this.Nd=l),this._d=h,this.Id=c||null}xd(e){return null==this.Id||this.Nd!==g.Td&&e-this.Id>=1e3*this.Nd}zd(e){this.Id=e}Md(e){return Math.max(e+1e3*this.Ed-new Date().valueOf(),0)}Bd(e){let t=new Date().valueOf()-e,i=null==e||isNaN(t)||null==this.Vn||t<this.Vn;return i||n.A.info(`Trigger action ${this.type} is no longer eligible for display - fired ${t}ms ago and has a timeout of ${this.Vn}ms.`),!i}static fromJson(e){let t=e.id,i=[];for(let t=0;t<e.trigger_condition.length;t++)i.push(f.fromJson(e.trigger_condition[t]));let n=(0,s.Zo)(e.start_time),r=(0,s.Zo)(e.end_time),o=e.priority,l=e.type,u=e.delay,h=e.re_eligibility,c=e.timeout,d=e.data,p=e.min_seconds_since_last_trigger;return(0,a.BY)(g.Ln,l,"Could not construct Trigger from server data","Trigger.Types")?new g(t,i,n,r,o,l,d,u,h,c,p):null}gt(){let e=[];for(let t=0;t<this.Pd.length;t++)e.push(this.Pd[t].gt());return{i:this.id,c:e,s:this.startTime,e:this.endTime,p:this.priority,t:this.type,da:this.data,d:this.Ed,r:this.Nd,tm:this.Vn,ss:this._d,ld:this.Id}}static _u(e){let t=[],i=e.c||[];for(let e=0;e<i.length;e++)t.push(f._u(i[e]));return new g(e.i,t,(0,s.jU)(e.s),(0,s.jU)(e.e),e.p,e.t,e.da,e.d,e.r,e.tm,e.ss,e.ld)}}g.Ln={Kn:"inapp",Cd:"templated_iam"},g.Td=-1},65098:(e,t,i)=>{i.d(t,{A:()=>o,s:()=>a});var s=i(72071),n=i(8149),r=i(13875);let a=e=>{let t,i,s={},n=e.toString().split("\r\n");if(!n)return s;for(let e of n)e&&(t=e.slice(0,e.indexOf(":")).toLowerCase().trim(),i=e.slice(e.indexOf(":")+1).trim(),s[t]=i);return s},o={O:e=>{let t,i;try{let r=!1;if(window.XMLHttpRequest&&(r=!0),!r)return void s.A.error("This browser does not have any supported ajax options!");t=new XMLHttpRequest;let a=i=>{"function"==typeof e.error&&e.error(t.status),"function"==typeof e.tt&&e.tt(!1,i)};for(let s of(t.onload=()=>{let i=!1;if(4!==t.readyState)return;i=t.status>=200&&t.status<300||304===t.status;let s=t.getAllResponseHeaders();if(i){if("function"==typeof e.W){let i;try{i=JSON.parse(t.responseText)}catch(r){let i={error:""===t.responseText?n.A.yl:n.A.Cl,response:t.responseText};(0,e.W)(i,s)}i&&e.W(i,s)}"function"==typeof e.tt&&e.tt(!0,s)}else a(s)},t.onerror=()=>{a(t.getAllResponseHeaders())},t.ontimeout=()=>{a()},i=JSON.stringify(e.data),t.open("POST",e.url,!0),t.setRequestHeader("Content-type","application/json"),t.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.headers||[]))t.setRequestHeader(s[0],s[1]);t.send(i)}catch(e){s.A.error(`Network request error: ${(0,r.u)(e)}`)}}}},65524:(e,t,i)=>{i.r(t),i.d(t,{unregisterPush:()=>r});var s=i(84108),n=i(57505);function r(e,t){if(s.Ay.rr())return n.default.ra().unsubscribe(e,t)}},66541:(e,t,i)=>{i.d(t,{A:()=>a});var s=i(17129),n=i(56778);let r={H:{Ze:"data",vi:"content_cards/sync",wo:"feature_flags/sync",On:"template",G:"banners/sync"},bc:e=>null==e?void 0:e.dt(n.d.ft.lE),Am:e=>null==e?void 0:e.dt(n.d.ft._E),Rm:(e,t)=>{null==e||e.bt(n.d.ft.lE,t)},qm:(e,t)=>{null==e||e.bt(n.d.ft._E,t)},Pl:(e,t)=>{if(!e||!t)return -1;let i=r.bc(e);if(null==i)return -1;let s=i[t];return null==s||isNaN(s)?-1:s},Ul:(e,t)=>{let i=s.et;if(!e||!t)return i;let n=r.Am(e);return null==n?i:null==(i=n[t])||isNaN(i)?s.et:i}
1,K:(e,t,i)=>{if(!e||!t)return;let s=r.bc(e);null==s&&(s={}),s[t]=i,r.Rm(e,s)},xl:(e,t,i)=>{if(!e||!t)return;let s=r.Am(e);null==s&&(s={}),s[t]=i,r.qm(e,s)},fi:(e,t)=>{e&&t&&r.xl(e,t,s.et)},Zl:(e,t)=>{if(!e||!t)return;let i=r.Ul(e,t);r.xl(e,t,i+1)}},a=r},68286:(e,t,i)=>{i.d(t,{$P:()=>o,BY:()=>r,Gv:()=>l,HP:()=>u,cy:()=>a,n4:()=>function e(t,i){if(t===i)return 0!==t||1/t==1/i;if(null==t||null==i)return t===i;let s=t.toString();if(s!==i.toString())return!1;switch(s){case"[object RegExp]":case"[object String]":return""+t==""+i;case"[object Number]":return+t!=+t?+i!=+i:0==+t?1/t==1/i:+t==+i;case"[object Date]":case"[object Boolean]":return+t==+i}let n="[object Array]"===s;if(!n){if("object"!=typeof t||"object"!=typeof i)return!1;let e=t.constructor,s=i.constructor;if(e!==s&&!("function"==typeof e&&e instanceof e&&"function"==typeof s&&s instanceof s)&&"constructor"in t&&"constructor"in i)return!1}let r=[],a=[],o=r.length;for(;o--;)if(r[o]===t)return a[o]===i;if(r.push(t),a.push(i),n){if((o=t.length)!==i.length)return!1;for(;o--;)if(!e(t[o],i[o]))return!1}else{let s,n=u(t);if(o=n.length,u(i).length!==o)return!1;for(;o--;)if(s=n[o],!Object.prototype.hasOwnProperty.call(i,s)||!e(t[s],i[s]))return!1}return r.pop(),a.pop(),!0},zu:()=>n});var s=i(72071);function n(e){let t=[];for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&void 0!==e[i]&&t.push(e[i]);return t}function r(e,t,i,r){let a=n(e);return -1!==a.indexOf(t)||(s.A.error(`${i} Valid values from ${r} are "${a.join('"/"')}".`),!1)}function a(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}function o(e){return"[object Date]"===Object.prototype.toString.call(e)}function l(e){return"[object Object]"===Object.prototype.toString.call(e)}function u(e){let t=[];for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.push(i);return t}},69472:(e,t,i)=>{i.d(t,{A:()=>h});var s=i(84108),n=i(28710),r=i(35817),a=i(37445),o=i(18436),l=i(80905),u=i(88849);class h{constructor(e,t,i,s,n,r,a,l,u,c,d,p,m,b,f,g,v,A,y,w,x,E,S,k,C,T,N,B,I,_,O,R){this.message=e,this.messageAlignment=t,this.slideFrom=i,this.extras=s,this.triggerId=n,this.clickAction=r,this.uri=a,this.openTarget=l,this.dismissType=u,this.duration=c,this.icon=d,this.imageUrl=p,this.imageStyle=m,this.iconColor=b,this.iconBackgroundColor=f,this.backgroundColor=g,this.textColor=v,this.closeButtonColor=A,this.animateIn=y,this.animateOut=w,this.header=x,this.headerAlignment=E,this.headerTextColor=S,this.frameColor=k,this.buttons=C,this.cropType=T,this.orientation=N,this.htmlId=B,this.css=I,this.messageExtras=_,this.language=O,this.altImageText=R,this.message=e,this.messageAlignment=t||h.TextAlignment.CENTER,this.duration=c||5e3,this.slideFrom=i||h.SlideFrom.BOTTOM,this.extras=s||{},this.triggerId=n,this.clickAction=r||h.ClickAction.NONE,this.uri=a,this.openTarget=l||h.OpenTarget.NONE,this.dismissType=u||h.DismissType.AUTO_DISMISS,this.icon=d,this.imageUrl=p,this.imageStyle=m||h.ImageStyle.TOP,this.iconColor=b||h.th.ih,this.iconBackgroundColor=f||h.th.sh,this.backgroundColor=g||h.th.ih,this.textColor=v||h.th.hh,this.closeButtonColor=A||h.th.eh,this.animateIn=y,null==this.animateIn&&(this.animateIn=!0),this.animateOut=w,null==this.animateOut&&(this.animateOut=!0),this.header=x,this.headerAlignment=E||h.TextAlignment.CENTER,this.headerTextColor=S||h.th.hh,this.frameColor=k||h.th.Eh,this.buttons=C||[],this.cropType=T||h.CropType.FIT_CENTER,this.orientation=N,this.htmlId=B,this.css=I,this.isControl=!1,this.messageExtras=_,this.language=O,this.altImageText=R,this.nh=!1,this.Gt=!1,this.dd=!1,this.Th=!1,this.qo=null,this.$o=null,this.ti=new o.A,this.oh=new o.A,this.Io=h.TextAlignment.CENTER}subscribeToClickedEvent(e){return this.ti.Rt(e)}subscribeToDismissedEvent(e){return this.oh.Rt(e)}removeSubscription(e){this.ti.removeSubscription(e),this.oh.removeSubscription(e)}removeAllSubscriptions(){this.ti.removeAllSubscriptions(),this.oh.removeAllSubscriptions()}closeMessage(){this.ll(this.qo)}zo(){return!0}od(){return this.zo()}_o(){return null!=this.htmlId&&this.htmlId.length>4}Mo(){return this._o()&&null!=this.css&&this.css.length>0}Oo(){if(this._o()&&this.Mo())return this.htmlId+"-css"}Wt(){return!this.Gt&&(this.Gt=!0,!0)}sm(){return this.Gt}$t(e){return!this.dd&&(this.dd=!0,this.ti.L(),!0)}Ot(){return!this.Th&&(this.Th=!0,this.oh.L(),!0)}hide(e){if(e&&e.parentNode){let t=e.closest(".ab-iam-root");
1if(null==t&&(t=e),this.zo()&&null!=t.parentNode){let e=t.parentNode.classList;e&&e.contains(u.i.eS)&&e.remove(u.i.eS),document.body.removeEventListener("touchmove",h.rh)}t.className=t.className.replace(h.lh,h.uh)}return this.animateOut||!1}ll(e,t){let i,s;if(null==e)return;this.qo=null;let r=!1;(i=-1===e.className.indexOf("ab-in-app-message")?e.getElementsByClassName("ab-in-app-message")[0]:e)&&(r=this.hide(i));let a=document.body;null!=a&&(s=a.scrollTop);let o=()=>{if(e&&e.parentNode){let t=e.closest(".ab-iam-root");null==t&&(t=e),t.parentNode&&t.parentNode.removeChild(t)}let i=this.Oo();if(null!=i){let e=document.getElementById(i);e&&e.parentNode&&e.parentNode.removeChild(e)}null!=a&&"Safari"===n.A.browser&&(a.scrollTop=s),t?t():this.Ot()};r?setTimeout(o,h.hr):o(),this.$o&&this.$o.focus()}No(){return document.createTextNode(this.message||"")}Jo(e){e.setAttribute("alt",this.altImageText||"")}static rh(e){if(e.targetTouches&&e.targetTouches.length>1)return;let t=e.target;t&&t.classList&&t.classList.contains("ab-message-text")&&t.scrollHeight>t.clientHeight||document.querySelector(`.${u.i.eS}`)&&e.cancelable&&e.preventDefault()}ah(e){let t=e.parentNode;this.zo()&&null!=t&&this.orientation!==h.Orientation.LANDSCAPE&&(null!=t.classList&&t.classList.add(u.i.eS),document.body.addEventListener("touchmove",h.rh,!!(0,r.CF)()&&{passive:!1})),e.className+=" "+h.lh}static Ah(e){if(e.keyCode===a.c.Ih&&!s.Ay.re(s.lw.Oh)&&document.querySelectorAll(".ab-modal-interactions").length>0){let e=document.getElementsByClassName("ab-html-message"),t=!1;for(let i of e){let e=null;(0,l.B)(i)&&i.contentWindow&&(e=i.contentWindow.document.getElementsByClassName("ab-programmatic-close-button")[0]),null!=e&&((0,r.jp)(e),t=!0)}if(!t){let e=document.querySelectorAll(".ab-modal-interactions > .ab-close-button")[0];null!=e&&(0,r.jp)(e)}}}Lh(){this.nh||s.Ay.re(s.lw.Oh)||(document.addEventListener("keydown",h.Ah,!1),s.Ay.mh(()=>{document.removeEventListener("keydown",h.Ah)}),this.nh=!0)}gt(e){let t={};return e&&(t[h.ss.pa]=this.message,t[h.ss.ma]=this.messageAlignment,t[h.ss._h]=this.slideFrom,t[h.ss.xs]=this.extras,t[h.ss.ua]=this.triggerId,t[h.ss.ca]=this.clickAction,t[h.ss.URI]=this.uri,t[h.ss.fa]=this.openTarget,t[h.ss.da]=this.dismissType,t[h.ss.la]=this.duration,t[h.ss.ga]=this.icon,t[h.ss.ns]=this.imageUrl,t[h.ss.ja]=this.imageStyle,t[h.ss.xa]=this.iconColor,t[h.ss.za]=this.iconBackgroundColor,t[h.ss.ha]=this.backgroundColor,t[h.ss.va]=this.textColor,t[h.ss.wa]=this.closeButtonColor,t[h.ss.ya]=this.animateIn,t[h.ss.Sa]=this.animateOut,t[h.ss.ba]=this.header,t[h.ss.ka]=this.headerAlignment,t[h.ss.qa]=this.headerTextColor,t[h.ss.Aa]=this.frameColor,t[h.ss.Ba]=this.buttons,t[h.ss.Ca]=this.cropType,t[h.ss.Da]=this.orientation,t[h.ss.Ea]=this.htmlId,t[h.ss.CSS]=this.css,t[h.ss.ts]=e,t[h.ss.Fa]=this.messageExtras,t[h.ss.LANGUAGE]=this.language,t[h.ss.ks]=this.altImageText),t}}h.th={hh:0xff333333,ih:0xffffffff,sh:0xff0073d5,Nh:0xffefefef,Rh:0xff555555,Eh:0xc0333333,eh:0xff9b9b9b},h.Ao={Sh:"hd",Lo:"ias",Mh:"of",Dh:"do",Ch:"umt",dh:"tf",Uh:"te"},h.SlideFrom={TOP:"TOP",BOTTOM:"BOTTOM"},h.ClickAction={URI:"URI",NONE:"NONE"},h.DismissType={AUTO_DISMISS:"AUTO_DISMISS",MANUAL:"SWIPE"},h.OpenTarget={NONE:"NONE",BLANK:"BLANK"},h.ImageStyle={TOP:"TOP",GRAPHIC:"GRAPHIC"},h.Orientation={PORTRAIT:"PORTRAIT",LANDSCAPE:"LANDSCAPE"},h.TextAlignment={START:"START",CENTER:"CENTER",END:"END"},h.CropType={CENTER_CROP:"CENTER_CROP",FIT_CENTER:"FIT_CENTER"},h.Eo={ia:"SLIDEUP",ta:"MODAL",Xo:"MODAL_STYLED",Yn:"FULL",Zo:"WEB_HTML",Bo:"HTML",Yo:"HTML_FULL"},h.hr=500,h.bh=200,h.lh="ab-show",h.uh="ab-hide",h.ss={pa:"m",ma:"ma",_h:"sf",xs:"e",ua:"ti",ca:"ca",URI:"u",fa:"oa",da:"dt",la:"d",ga:"i",ns:"iu",ja:"is",xa:"ic",za:"ibc",ha:"bc",va:"tc",wa:"cbc",ya:"ai",Sa:"ao",ba:"h",ka:"ha",qa:"htc",Aa:"fc",Ba:"b",Ca:"ct",Da:"o",Ea:"hi",CSS:"css",ts:"type",ed:"messageFields",Fa:"me",LANGUAGE:"l",ks:"ia"}},69796:(e,t,i)=>{function s(e){null==e&&(e="");let t=e.split("?").slice(1).join("?"),i={};if(null!=t){let e=t.split("&");for(let t=0;t<e.length;t++){let s=e[t].split("=");""!==s[0]&&(i[s[0]]=s[1])}}return i}function n(e){return!(!e||0!==(e=e.toString().toLowerCase()).lastIndexOf("javascript:",0)&&0!==e.lastIndexOf("data:",0))}i.d(t,{P:()=>n,y:()=>s})},71626:(e,t,i)=>{i.r(t),i.d(t,{default:()=>o,refreshFeatureFlags:()=>a});var s=i(84108),n=i(97652);function r(e,t,i=!1){if(s.Ay.rr())return n.A.o().refreshFeatureFlags(e,t,i)}function a(e,t){r(e,t)}let o=r},72071:(e,t,i)=>{i.d(t,{A:()=>n});let s={init:function(e){void 0===e&&void 0!==s.zg||(s.zg=!!e),s.i||(s.i=!0)},destroy:function(){s.i=!1,s.zg=void 0,s.Rd=void 0},setLogger:function(e){"function"==typeof e?(s.init(),s.Rd=e):s.info("Ignoring set
1Logger call since logger is not a function")},toggleLogging:function(){s.init(),s.zg?(console.log("Disabling Braze logging"),s.zg=!1):(console.log("Enabled Braze logging"),s.zg=!0)},info:function(e){if(s.zg){let t="Braze: "+e;null!=s.Rd?s.Rd(t):console.log(t)}},warn:function(e){if(s.zg){let t="Braze SDK Warning: "+e+" (v6.5.0)";null!=s.Rd?s.Rd(t):console.warn(t)}},error:function(e){if(s.zg){let t="Braze SDK Error: "+e+" (v6.5.0)";null!=s.Rd?s.Rd(t):console.error(t)}}},n=s},72573:(e,t,i)=>{i.d(t,{A:()=>u});var s=i(68286),n=i(72071),r=i(11457),a=i(77752),o=i(17129),l=i(9099);class u{constructor(e,t){this.vs=e,this.Ru=t,this.vs=e,this.Ru=t}getUserId(e){let t=this.vs.getUserId();if("function"!=typeof e)return t;n.A.warn("The callback for getUserId is deprecated. You can access its return value directly instead (e.g. `const id = braze.getUser().getUserId()`)"),e(t)}addAlias(e,t){return!(0,a.rK)(e,"add alias","the alias",!1)||e.length<=0?(n.A.error("addAlias requires a non-empty alias"),!1):!(0,a.rK)(t,"add alias","the label",!1)||t.length<=0?(n.A.error("addAlias requires a non-empty label"),!1):this.Ru.Gu(e,t).W}setFirstName(e){return!!(0,a.rK)(e,"set first name","the firstName",!0)&&this.vs.zu("first_name",e)}setLastName(e){return!!(0,a.rK)(e,"set last name","the lastName",!0)&&this.vs.zu("last_name",e)}setEmail(e){return null===e||(0,a.B9)(e)?this.vs.zu("email",e):(n.A.error(`Cannot set email address - "${e}" did not pass RFC-5322 validation.`),!1)}setGender(e){return"string"==typeof e&&(e=e.toLowerCase()),!(null!==e&&!(0,s.BY)(u.Genders,e,`Gender "${e}" is not a valid gender.`,"User.Genders"))&&this.vs.zu("gender",e)}setDateOfBirth(e,t,i){return null===e&&null===t&&null===i?this.vs.zu("dob",null):(e=null!=e?parseInt(e.toString()):null,t=null!=t?parseInt(t.toString()):null,i=null!=i?parseInt(i.toString()):null,null==e||null==t||null==i||isNaN(e)||isNaN(t)||isNaN(i)||t>12||t<1||i>31||i<1?(n.A.error("Cannot set date of birth - parameters should comprise a valid date e.g. setDateOfBirth(1776, 7, 4);"),!1):this.vs.zu("dob",`${e}-${t}-${i}`))}setCountry(e){return!!(0,a.rK)(e,"set country","the country",!0)&&this.vs.zu("country",e)}setHomeCity(e){return!!(0,a.rK)(e,"set home city","the homeCity",!0)&&this.vs.zu("home_city",e)}setLanguage(e){return!!(0,a.rK)(e,"set language","the language",!0)&&this.vs.zu("language",e)}setEmailNotificationSubscriptionType(e){return!!(0,s.BY)(u.NotificationSubscriptionTypes,e,`Email notification setting "${e}" is not a valid subscription type.`,"User.NotificationSubscriptionTypes")&&this.vs.zu("email_subscribe",e)}setPushNotificationSubscriptionType(e){return!!(0,s.BY)(u.NotificationSubscriptionTypes,e,`Push notification setting "${e}" is not a valid subscription type.`,"User.NotificationSubscriptionTypes")&&this.vs.zu("push_subscribe",e)}setPhoneNumber(e){return!!(0,a.rK)(e,"set phone number","the phoneNumber",!0)&&(null===e||e.match(u.Hu)?this.vs.zu("phone",e):(n.A.error(`Cannot set phone number - "${e}" did not pass validation.`),!1))}setLastKnownLocation(e,t,i,s,r){return null==e||null==t?(n.A.error("Cannot set last-known location - latitude and longitude are required."),!1):(e=parseFloat(e.toString()),t=parseFloat(t.toString()),null!=i&&(i=parseFloat(i.toString())),null!=s&&(s=parseFloat(s.toString())),null!=r&&(r=parseFloat(r.toString())),isNaN(e)||isNaN(t)||null!=i&&isNaN(i)||null!=s&&isNaN(s)||null!=r&&isNaN(r)?(n.A.error("Cannot set last-known location - all supplied parameters must be numeric."),!1):e>90||e<-90||t>180||t<-180?(n.A.error("Cannot set last-known location - latitude and longitude are bounded by \xb190 and \xb1180 respectively."),!1):null!=i&&i<0||null!=r&&r<0?(n.A.error("Cannot set last-known location - accuracy and altitudeAccuracy may not be negative."),!1):this.Ru.setLastKnownLocation(this.vs.getUserId(),e,t,s,i,r).W)}setCustomUserAttribute(e,t,i){if(!(0,a.ZJ)(e))return!1;let n=t=>{let[i]=(0,a.fB)(t,o.em.Ku,"attribute value",`set custom user attribute "${e}"`,"custom user attribute");return i};if((0,s.cy)(t)){let[i,s]=(0,a.Z2)(e,t);if(!i&&!s&&0!==t.length)return!1;if(i||0===t.length)return this.Ru.Mu(r.w.Yu,e,t).W;for(let e of t)if(!n(e))return!1}else if((0,s.Gv)(t)){if(!n(t))return!1;if(i)return this.Ru.Mu(r.w.Vu,e,t).W}else if(!(void 0!==t&&(0,a.uZ)(t))||((0,s.$P)(t)&&(t=(0,l.EQ)(t)),"string"==typeof t&&!(0,a.Dz)(t,`set custom user attribute "${e}"`,"the element in the given array")))return!1;return this.vs.setCustomUserAttribute(e,t)}addToCustomAttributeArray(e,t){return!!(0,a.Dz)(e,"add to custom user attribute array","the given key")&&!(null!=t&&!(0,a.Dz)(t,"add to custom user attribute array","the given value"))&&this.Ru.Mu(r.w.Qu,e,t).W}removeFromCustomAttributeArray(e,t){return!!(0,a.Dz)(e,"remove from custom user attribute array","the given key")&&!(null!=t&&!(0,a.Dz)(t,"remove from custom user attribute array","the given value"))&&this.Ru.Mu(r.w.Xu,e,t).W}incrementCustomUserAttribute(e,t){if(!(0,a.Dz)(e,"increment custom user attribute","the given key"))return!1;null==t&&(t=1);let i=parseInt(t.toString());return isNaN(i)||i!==parseFloat(t.toString())?(n.A.error(`Cannot increment custom user attribute because the given incrementValue "${t}" is not an integer.`),!1):this.Ru.Mu(r.w.Zu,e,i).W}setCustomLocationAttribute(e,t,i){return!!(0,a.Dz)(e,"set custom location attribute","the given key")&&((null!==t||null!==i)&&(t=null!=t?parseFloat(t.toString()):null,i=null!=i?parseFloat(i.toString()):null,null==t&&null!=i||null!=t&&null==i||null!=t&&(isNaN(t)||t>90||t<-90)||null!=i&&(isNaN(i)||i>
1180||i<-180))?(n.A.error("Received invalid values for latitude and/or longitude. Latitude and longitude are bounded by \xb190 and \xb1180 respectively, or must both be null for removal."),!1):this.Ru.Na(e,t,i).W)}addToSubscriptionGroup(e){return!(0,a.rK)(e,"add user to subscription group","subscription group ID",!1)||e.length<=0?(n.A.error("addToSubscriptionGroup requires a non-empty subscription group ID"),!1):this.Ru.Ra(e,u.Pa.SUBSCRIBED).W}removeFromSubscriptionGroup(e){return!(0,a.rK)(e,"remove user from subscription group","subscription group ID",!1)||e.length<=0?(n.A.error("removeFromSubscriptionGroup requires a non-empty subscription group ID"),!1):this.Ru.Ra(e,u.Pa.UNSUBSCRIBED).W}setLineId(e){return(0,a.rK)(e,"set LINE user ID","the ID",!0)&&0!==(null==e?void 0:e.length)?e&&e.length>u.Oa?(n.A.error(`Rejected LINE user ID ${e} because it is longer than ${u.Oa} characters.`),!1):this.vs.zu("native_line_id",e):(n.A.error("setLineId requires a non-empty ID"),!1)}gu(e,t,i,s,n){this.vs.gu(e,t,i,s,n),this.Ru.Ya()}wu(e){this.vs.wu(e)}}u.Genders={MALE:"m",FEMALE:"f",OTHER:"o",UNKNOWN:"u",NOT_APPLICABLE:"n",PREFER_NOT_TO_SAY:"p"},u.NotificationSubscriptionTypes={OPTED_IN:"opted_in",SUBSCRIBED:"subscribed",UNSUBSCRIBED:"unsubscribed"},u.Hu=/^[0-9 .\\(\\)\\+\\-]+$/,u.Pa={SUBSCRIBED:"subscribed",UNSUBSCRIBED:"unsubscribed"},u.Va="user_id",u.Bu="custom",u.mr=997,u.Oa=33},72606:(e,t,i)=>{i.r(t),i.d(t,{Banner:()=>tg,BrazeSdkMetadata:()=>ev,CaptionedImage:()=>u,Card:()=>o,ClassicCard:()=>h,ContentCards:()=>D,ControlCard:()=>c,ControlMessage:()=>eG.A,DeviceProperties:()=>ex.A,FeatureFlag:()=>tu.A,FullScreenMessage:()=>eq.A,HtmlMessage:()=>eH.A,ImageOnly:()=>l,InAppMessage:()=>eF.A,InAppMessageButton:()=>ej.A,ModalMessage:()=>eW.A,SlideUpMessage:()=>eK.A,User:()=>e3.A,WindowUtils:()=>q.uD,addSdkMetadata:()=>eA,automaticallyShowInAppMessages:()=>te,changeUser:()=>ey.changeUser,deferInAppMessage:()=>tt,destroy:()=>ew,disableSDK:()=>eE,enableSDK:()=>eS,getAllBanners:()=>tT,getAllFeatureFlags:()=>tp,getBanner:()=>tw,getCachedContentCards:()=>M,getDeferredInAppMessage:()=>ti,getDeviceId:()=>ek,getFeatureFlag:()=>td,getUser:()=>H,handleBrazeAction:()=>K,hideContentCards:()=>ed,initialize:()=>eC,insertBanner:()=>tB,isDisabled:()=>eT,isInitialized:()=>eN,isPushBlocked:()=>tn,isPushPermissionGranted:()=>tr,isPushSupported:()=>ta,logBannerClick:()=>tx,logBannerImpressions:()=>tk,logCardDismissal:()=>y,logContentCardClick:()=>E,logContentCardImpressions:()=>x,logCustomEvent:()=>eB.logCustomEvent,logFeatureFlagImpression:()=>tb,logInAppMessageButtonClick:()=>e7,logInAppMessageClick:()=>eQ,logInAppMessageHtmlClick:()=>e0,logInAppMessageImpression:()=>eZ,logPurchase:()=>eI.logPurchase,openSession:()=>eR,refreshFeatureFlags:()=>th.refreshFeatureFlags,removeAllSubscriptions:()=>ez,removeSubscription:()=>Q,requestBannersRefresh:()=>function e(t,i,s){if(!g.Ay.rr())return void a.A.warn(n.em.ee);let r=g.Ay.l();if(!r)return;if(!(0,w.cy)(t)||0===t.length)return void a.A.warn("placementIds should be a non-empty array.");if(!g.Ay.re(g.lw.te))return void a.A.error("Banners are disabled. Use the 'allowUserSuppliedJavascript' option for braze.initialize to enable these messages.");let o=tA.o();if(!1===r.kt()&&a.A.error(en),!o.k())return void r.P(()=>{e(t,i,s)});let l=r.oe();t.length>l&&(a.A.warn(`Number of placement IDs requested exceeds the max allowed. Trimming placementIds array from length ${t.length} to ${l} (max allowed).`),t=t.slice(0,l)),0!==(t=t.filter(e=>!!(0,G.L4)(e)||(a.A.warn(`Placement ID should be a valid utf8 string with no whitespaces, filtering out: ${e}`),!1))).length&&(a.A.info(`Requesting banners for placement IDs: ${JSON.stringify(t)}`),o.M(t,i,s))},requestContentCardsRefresh:()=>z,requestImmediateDataFlush:()=>eD.requestImmediateDataFlush,requestPushPermission:()=>to.requestPushPermission,setLogger:()=>eM,setSdkAuthenticationSignature:()=>eP,showContentCards:()=>ef,showInAppMessage:()=>e6,subscribeToBannersUpdates:()=>tN,subscribeToContentCardsUpdates:()=>ep,subscribeToFeatureFlagsUpdates:()=>tm,subscribeToInAppMessage:()=>e9,subscribeToSdkAuthenticationFailures:()=>eL,toggleContentCards:()=>eg,toggleLogging:()=>eU,unregisterPush:()=>tl.unregisterPush,wipeData:()=>e$});var s=i(9099),n=i(17129),r=i(18436),a=i(72071);class o{constructor(e,t,i,s,n,r,a,o,l,u,h,c,d,p,m,b){this.id=e,this.viewed=t,this.title=i,this.imageUrl=s,this.description=n,this.updated=r,this.expiresAt=a,this.url=o,this.linkText=l,this.aspectRatio=u,this.extras=h,this.pinned=c,this.dismissible=d,this.clicked=p,this.language=m,this.altImageText=b,this.id=e,this.viewed=t||!1,this.title=i||"",this.imageUrl=s,this.description=n||"",this.updated=r||null,this.expiresAt=a||null,this.url=o,this.linkText=l,null==u?this.aspectRatio=null:(u=parseFloat(u.toString()),this.aspectRatio=isNaN(u)?null:u),this.extras=h||{},this.pinned=c||!1,this.dismissible=d||!1,this.dismissed=!1,this.clicked=p||!1,this.isControl
1=!1,this.language=m||null,this.altImageText=b||null,this.test=!1,this.ti=null,this.ii=null,this.si=null}subscribeToClickedEvent(e){return this.hi().Rt(e)}subscribeToDismissedEvent(e){return this.li().Rt(e)}removeSubscription(e){this.hi().removeSubscription(e),this.li().removeSubscription(e)}removeAllSubscriptions(){this.hi().removeAllSubscriptions(),this.li().removeAllSubscriptions()}dismissCard(){if(!this.dismissible||this.dismissed)return;"function"==typeof this.logCardDismissal&&this.logCardDismissal();let e=this.ae;!e&&this.id&&(e=document.getElementById(this.id)),e&&(e.style.height=e.offsetHeight+"px",e.className=e.className+" ab-hide",setTimeout(function(){e&&e.parentNode&&(e.style.height="0",e.style.margin="0",setTimeout(function(){e&&e.parentNode&&e.parentNode.removeChild(e)},o.ni))},n.RW))}hi(){return null==this.ti&&(this.ti=new r.A),this.ti}li(){return null==this.ii&&(this.ii=new r.A),this.ii}Wt(){let e=new Date().valueOf();return!(null!=this.si&&e-this.si<o.ei)&&(this.si=e,this.viewed=!0,!0)}$t(){this.viewed=!0,this.clicked=!0,this.hi().L()}Ot(){return!(!this.dismissible||this.dismissed)&&(this.dismissed=!0,this.li().L(),!0)}ri(e){if(null==e||e[o.ui.rs]!==this.id)return!0;if(e[o.ui.Ei])return!1;if(null!=e[o.ui.ps]&&null!=this.updated&&parseInt(e[o.ui.ps])<(0,s.UK)(this.updated.valueOf()))return!0;if(e[o.ui.os]&&!this.viewed&&(this.viewed=!0),e[o.ui.js]&&!this.clicked&&(this.clicked=e[o.ui.js]),null!=e[o.ui.cs]&&(this.title=e[o.ui.cs]),null!=e[o.ui.ns]&&(this.imageUrl=e[o.ui.ns]),null!=e[o.ui.ds]&&(this.description=e[o.ui.ds]),null!=e[o.ui.ps]){let t=(0,s.Zo)(e[o.ui.ps]);null!=t&&(this.updated=t)}if(null!=e[o.ui.us]){let t;t=e[o.ui.us]===o.Ti?null:(0,s.Zo)(e[o.ui.us]),this.expiresAt=t}if(null!=e[o.ui.URL]&&(this.url=e[o.ui.URL]),null!=e[o.ui.ls]&&(this.linkText=e[o.ui.ls]),null!=e[o.ui.fs]){let t=parseFloat(e[o.ui.fs].toString());this.aspectRatio=isNaN(t)?null:t}return null!=e[o.ui.xs]&&(this.extras=e[o.ui.xs]),null!=e[o.ui.bs]&&(this.pinned=e[o.ui.bs]),null!=e[o.ui.gs]&&(this.dismissible=e[o.ui.gs]),null!=e[o.ui.zs]&&(this.language=e[o.ui.zs]),null!=e[o.ui.ks]&&(this.altImageText=e[o.ui.ks]),null!=e[o.ui.qs]&&(this.test=e[o.ui.qs]),!0}gt(){a.A.error("Must be implemented in a subclass")}}o.Ti=-1,o.ui={rs:"id",os:"v",gs:"db",Ei:"r",ps:"ca",bs:"p",us:"ea",xs:"e",ts:"tp",ns:"i",cs:"tt",ds:"ds",URL:"u",ls:"dm",fs:"ar",js:"cl",qs:"t",zs:"language",ks:"image_alt"},o.es={hs:"captioned_image",oi:"text_announcement",ai:"short_news",Ii:"banner_image",Ni:"control"},o.ss={rs:"id",os:"v",gs:"db",Ai:"cr",ps:"ca",bs:"p",ci:"t",us:"ea",xs:"e",ts:"tp",ns:"i",cs:"tt",ds:"ds",URL:"u",ls:"dm",fs:"ar",js:"cl",qs:"s",zs:"l",ks:"ia"},o.mi={Si:"ADVERTISING",Di:"ANNOUNCEMENTS",pi:"NEWS",di:"SOCIAL"},o.ni=400,o.ei=1e4;class l extends o{constructor(e,t,i,s,n,r,a,o,l,u,h,c,d){super(e,t,null,i,null,s,n,r,null,a,o,l,u,h,c,d),this.ie="ab-image-only",this.ne=!1,this.test=!1}gt(){let e={};return e[o.ss.ts]=o.es.Ii,e[o.ss.rs]=this.id,e[o.ss.os]=this.viewed,e[o.ss.ns]=this.imageUrl,e[o.ss.ps]=this.updated,e[o.ss.us]=this.expiresAt,e[o.ss.URL]=this.url,e[o.ss.fs]=this.aspectRatio,e[o.ss.xs]=this.extras,e[o.ss.bs]=this.pinned,e[o.ss.gs]=this.dismissible,e[o.ss.js]=this.clicked,e[o.ss.zs]=this.language,e[o.ss.ks]=this.altImageText,e[o.ss.qs]=this.test,e}}class u extends o{constructor(e,t,i,s,n,r,a,o,l,u,h,c,d,p,m,b){super(e,t,i,s,n,r,a,o,l,u,h,c,d,p,m,b),this.ie="ab-captioned-image",this.ne=!0,this.test=!1}gt(){let e={};return e[o.ss.ts]=o.es.hs,e[o.ss.rs]=this.id,e[o.ss.os]=this.viewed,e[o.ss.cs]=this.title,e[o.ss.ns]=this.imageUrl,e[o.ss.ds]=this.description,e[o.ss.ps]=this.updated,e[o.ss.us]=this.expiresAt,e[o.ss.URL]=this.url,e[o.ss.ls]=this.linkText,e[o.ss.fs]=this.aspectRatio,e[o.ss.xs]=this.extras,e[o.ss.bs]=this.pinned,e[o.ss.gs]=this.dismissible,e[o.ss.js]=this.clicked,e[o.ss.zs]=this.language,e[o.ss.ks]=this.altImageText,e[o.ss.qs]=this.test,e}}class h extends o{constructor(e,t,i,s,n,r,a,o,l,u,h,c,d,p,m,b){super(e,t,i,s,n,r,a,o,l,u,h,c,d,p,m,b),this.ie="ab-classic-card",this.ne=!0}gt(){let e={};return e[o.ss.ts]=o.es.ai,e[o.ss.rs]=this.id,e[o.ss.os]=this.viewed,e[o.ss.cs]=this.title,e[o.ss.ns]=this.imageUrl,e[o.ss.ds]=this.description,e[o.ss.ps]=this.updated,e[o.ss.us]=this.expiresAt,e[o.ss.URL]=this.url,e[o.ss.ls]=this.linkText,e[o.ss.fs]=this.aspectRatio,e[o.ss.xs]=this.extras,e[o.ss.bs]=this.pinned,e[o.ss.gs]=this.dismissible,e[o.ss.js]=this.clicked,e[o.ss.zs]=this.language,e[o.ss.ks]=this.altImageText,e[o.ss.qs]=this.test,e}}class c extends o{constructor(e,t,i,s,n,r){super(e,t,null,null,null,i,s,null,null,null,n,r),this.isControl
1=!0,this.ie="ab-control-card",this.ne=!1}gt(){let e={};return e[o.ss.ts]=o.es.Ni,e[o.ss.rs]=this.id,e[o.ss.os]=this.viewed,e[o.ss.ps]=this.updated,e[o.ss.us]=this.expiresAt,e[o.ss.xs]=this.extras,e[o.ss.bs]=this.pinned,e[o.ss.qs]=this.test,e}}var d=i(56183),p=i(83748),m=i(11457),b=i(56778);class f{constructor(e){this.B=e,this.B=e}logClick(e){let t=new p.A;if(e.$t(),null==e.url||""===e.url)return a.A.info(`Card ${e.id} has no url. Not logging click to Braze servers.`),t;if(e.id&&this.B){let t=this.B.dt(b.d.ft.Jt)||{};t[e.id]=!0,this.B.bt(b.d.ft.Jt,t)}let i=this.Kt([e]);if(null==i)return t;let s=m.w.Lt;return d.A.lt(s,i)}Mt(e){let t=new p.A;if(!e.Ot())return a.A.info(`Card ${e.id} refused this dismissal. Ignoring analytics event.`),t;if(e.id&&this.B){let t=this.B.dt(b.d.ft.Pt)||{};t[e.id]=!0,this.B.bt(b.d.ft.Pt,t)}let i=this.Kt([e]);return null==i?t:d.A.lt(m.w.Qt,i)}Ut(e){let t=new p.A(!0),i=[],s=[],n={};for(let t of(this.B&&(n=this.B.dt(b.d.ft.Vt)||{}),e))t.Wt()?(t instanceof c?s.push(t):i.push(t),t.id&&(n[t.id]=!0)):a.A.info(`Card ${t.id} logged an impression too recently. Ignoring analytics event.`);let r=this.Kt(i),o=this.Kt(s);if(null==r&&null==o)return t.W=!1,t;if(this.B&&this.B.bt(b.d.ft.Vt,n),null!=r){let e=m.w.Xt,i=d.A.lt(e,r);t.Yt(i)}if(null!=o){let e=d.A.lt(m.w.Zt,o);t.Yt(e)}return t}Kt(e){let t,i=null;for(let s=0;s<e.length;s++)null!=(t=e[s].id)&&""!==t&&((i=i||{}).ids=i.ids||[],i.ids.push(t));return i}}var g=i(84108);let v={i:!1,na:null,ra:()=>(v.t(),v.na||(v.na=new f(g.Ay.p())),v.na),t:()=>{v.i||(g.Ay.g(v),v.i=!0)},destroy:()=>{v.na=null,v.i=!1}},A="must be a Card object";function y(e){return!!g.Ay.rr()&&(e instanceof o?v.ra().Mt(e).W:(a.A.error("card "+A),!1))}var w=i(68286);function x(e){if(!g.Ay.rr())return!1;if(!(0,w.cy)(e))return a.A.error("cards must be an array"),!1;for(let t of e)if(!(t instanceof o))return a.A.error(`Each card in cards ${A}`),!1;return v.ra().Ut(e).W}function E(e){return!!g.Ay.rr()&&(e instanceof o?v.ra().logClick(e).W:(a.A.error("card "+A),!1))}var S=i(65098),k=i(24921),C=i(69796);function T(e,t,i,s,n,r,d,p,m,b,f,g,v,A,y,w,x,E){let S;if(t===o.es.oi||t===o.es.ai)S=new h(e,i,s,n,r,d,p,m,b,f,g,v,A,y,x,E);else if(t===o.es.hs)S=new u(e,i,s,n,r,d,p,m,b,f,g,v,A,y,x,E);else if(t===o.es.Ii)S=new l(e,i,n,d,p,m,f,g,v,A,y,x,E);else{if(t!==o.es.Ni)return a.A.error("Ignoring card with unknown type "+t),null;S=new c(e,i,d,p,g,v)}return w&&(S.test=w),S}function N(e){return e[o.ui.Ei]?null:T(e[o.ui.rs],e[o.ui.ts],e[o.ui.os],e[o.ui.cs],e[o.ui.ns],e[o.ui.ds],(0,s.Zo)(e[o.ui.ps]),e[o.ui.us]===o.Ti?null:(0,s.Zo)(e[o.ui.us]),e[o.ui.URL],e[o.ui.ls],e[o.ui.fs],e[o.ui.xs],e[o.ui.bs],e[o.ui.gs],e[o.ui.js],e[o.ui.qs]||!1,e[o.ui.zs],e[o.ui.ks])}var B=i(66541),I=i(96009),_=i(55323);class O extends k.A{constructor(e,t,i,s,n){super(),this.vs=e,this.B=t,this.h=i,this.Cs=s,this.j=n,this.vs=e,this.B=t,this.h=i,this.Cs=s,this.j=n,this.ws=new r.A,g.Ay.q(this.ws),this.ys=0,this.Ss=0,this.cards=[],this.Ts();const o=_.A.Us.Rs;new _.A(o,a.A).Ds(o.Fs.As,e=>{this.Ls(e)}),this.Ns=null,this.D=null,this.Js=null,this.Ms=null,this.$s=10}Bs(){return this.Ns}Es(e){this.Ns=e}St(){return this.D}wt(e){this.D=e}Ts(){if(!this.B)return;let e=this.B.dt(b.d.ft.Ps)||[],t=[];for(let n=0;n<e.length;n++){var i;let r=T((i=e[n])[o.ss.rs],i[o.ss.ts],i[o.ss.os],i[o.ss.cs],i[o.ss.ns],i[o.ss.ds],(0,s.jU)(i[o.ss.ps]),(0,s.jU)(i[o.ss.us]),i[o.ss.URL],i[o.ss.ls],i[o.ss.fs],i[o.ss.xs],i[o.ss.bs],i[o.ss.gs],i[o.ss.js],i[o.ss.qs]||!1,i[o.ss.zs],i[o.ss.ks])||void 0;null!=r&&t.push(r)}this.cards=this.Xs(this._s(t,!1)),this.ys=this.B.dt(b.d.ft.Gs)||this.ys,this.Ss=this.B.dt(b.d.ft.Hs)||this.Ss}Is(e,t=!1,i=0,s=0){let n;if(t)for(let e of(n=[],this.cards))e.test&&n.push(e);else n=this.cards.slice();for(let i=0;i<e.length;i++){let s=e[i],r=null;for(let e=0;e<this.cards.length;e++)if(s.id===this.cards[e].id){r=this.cards[e];break}if(t){let e=N(s);null!=r&&r.viewed&&e&&(e.viewed=!0),null!=e&&n.push(e)}else if(null==r){let e=N(s);null!=e&&n.push(e)}else if(!r.ri(s)){for(let e=0;e<n.length;e++)if(s.id===n[e].id){n.splice(e,1);break}}}this.cards=this.Xs(this._s(n,t)),this.Ks(),this.ys=i,this.Ss=s,this.B&&(this.B.bt(b.d.ft.Gs,this.ys),this.B.bt(b.d.ft.Hs,this.Ss))}N(e){if(this.Os()&&null!=e&&e.cards){this.B&&this.B.bt(b.d.ft.Qs,g.Ay.Vs());let t=e.full_sync;t||this.Ts(),this.Is(e.cards,t,e.last_full_sync_at,e.last_card_updated_at),this.ws.L(this.Ws(!0))}}Ys(e){this.Zs(),this.Js=e}Ls(e){var t;if(!this.Os())return;this.Ts();let i=this.cards.slice(),s=null;s=null==(t=this.vs)?void 0:t.getUserId();for(let t=0;t<e.length;t++)if(s===e[t].userId||null==s&&null==e[t].userId){let s=e[t].card,n=null;for(let e=0;e<this.cards.length;e++)if(s.id===this.cards[e].id){n=this.cards[e];break}if(null==n){let e=N(s);null!=e&&i.push(e)}else if(!n.ri(s)){for(let e=0;e<i.length;e++)if(s.id===i[e].id){i.splice(e,1);break}}}this.cards=this.Xs(this._s(i,!1)),this.Ks(),this.ws.L(this.Ws(!0))}_s(e,t){let i={},s={},n={};this.B&&(i=this.B.dt(b.d.ft.Jt)||{},s=this.B.dt(b.d.ft.Vt)||{},n=this.B.dt(b.d.ft.Pt)||{});let r={},a={},o={};for(let t=0;t<e.length;t++){let l=e[t].id;l&&(i[l]&&(e[t].clicked=!0,r[l]=!0),s[l]&&(e[t].viewed=!0,a[l]=!0),n[l]&&(e[t].dismissed=!0,o[l]=!0))}return t&&this.B&&(this.B.bt(b.d.ft.Jt,r),this.B.bt(b.d.ft.Vt,a),this.B.bt(b.d.ft.Pt,o)),e}Xs(e){let t=[],i=new Date,s={};this.B&&(s=this.B.dt(b.d.ft.Pt)||{});let n=!1;for(let r=0;r<e.length;r++){let o=e[r].url;if(!this.Cs&&o&&(0,C.P)(o)){a.A.error(`Card with url ${o} will not be displayed because Javascript URLs are disabled. Use the "allowUserSuppliedJavascript" option for braze.initialize to enable this card.`);continue}let l=e[r].expiresAt,u=!0;if(null!=l&&(u=l>=i),u=u&&!e[r].dismissed)t.push(e[r]);else{let t=e[r].id;t&&(s[t]=!0),n=!0}}return n&&this.B&&this.B.bt(b.d.ft.Pt,s),t}Ks(){var e;let t=[];for(let e=0;e<this.cards.length;e++)t.push(this.cards[e].gt());null==(e=this.B)||e.bt(b.d.ft.Ps,t)}Zs(){this.Js&&(clearTimeout(this.Js),this.Js=null)}ar(e,t,i=!1){var s;let r=this.j,a=this.B;if(!r||!a)return void("function"==typeof t&&t());if(i&&(B.A.fi(a,B.A.H.vi),this.Zs()),!this.Os())return void(null==(s=this.h)||s.Ci(()=>{this.ar(e,t,!0)}));let o=r.$({},!0);a.dt(b.d.ft.Qs)!==g.Ay.Vs()&&this.bi(),o.last_full_sync_at=this.ys,o.last_card_updated_at=this.Ss;let l=r.A(o,B.A.H.vi,i),u=!1;r.J(o,(i=-1)=>
1{if(this.B){let e=new Date().valueOf();B.A.K(this.B,B.A.H.vi,e)}-1!==i&&l.push(["X-Braze-Req-Tokens-Remaining",i.toString()]),S.A.O({url:`${r.V()}/content_cards/sync`,data:o,headers:l,W:i=>{r.Y(o,i,l)?(r.Z(),this.N(i),u=!1,"function"==typeof e&&e()):(u=!0,"function"==typeof t&&t())},error:e=>{r._(e,"retrieving content cards"),u=!0,"function"==typeof t&&t()},tt:(i,s)=>{var a,o,l;let h;if(u){let e=(null==(a=this.h)?void 0:a.st())||n.xm,t=(null==(o=this.h)?void 0:o.it())||n.MF,i=(null==(l=this.h)?void 0:l.nt())||n.T,s=this.Ms;(null==s||s<e)&&(s=e),h=Math.min(i,(0,I.C)(e,s*t))}r.et(s,()=>{this.ar(e,t,!1)},B.A.H.vi,e=>this.Ys(e),()=>this.Zs(),h)}})},B.A.H.vi,t)}Ws(e){e||this.Ts();let t=this.Xs(this.cards);t.sort((e,t)=>e.pinned&&!t.pinned?-1:t.pinned&&!e.pinned?1:e.updated&&t.updated&&e.updated>t.updated?-1:e.updated&&t.updated&&t.updated>e.updated?1:0);let i=Math.max(this.Ss||0,this.ys||0);return 0===i&&(i=void 0),this.B&&this.B.dt(b.d.ft.Hs)===this.Ss&&void 0===i&&(i=this.Ss),new D(t,(0,s.Zo)(i))}It(e){return this.ws.Rt(e)}bi(){this.ys=0,this.Ss=0,this.B&&(this.B.zt(b.d.ft.Gs),this.B.zt(b.d.ft.Hs))}changeUser(e){e||(this.cards=[],this.ws.L(new D(this.cards.slice(),null)),this.B&&(this.B.zt(b.d.ft.Ps),this.B.zt(b.d.ft.Jt),this.B.zt(b.d.ft.Vt),this.B.zt(b.d.ft.Pt))),this.Zs(),this.bi()}clearData(e){this.ys=0,this.Ss=0,this.cards=[],this.ws.L(new D(this.cards.slice(),null)),e&&this.B&&(this.B.zt(b.d.ft.Ps),this.B.zt(b.d.ft.Jt),this.B.zt(b.d.ft.Vt),this.B.zt(b.d.ft.Pt),this.B.zt(b.d.ft.Gs),this.B.zt(b.d.ft.Hs)),this.Zs()}Os(){return!!this.h&&(!!this.h.wi()||(0!==this.h.xt()&&this.gi(),!1))}gi(){this.ws.L(new D([],new Date)),this.B&&this.B.zt(b.d.ft.Ps)}}let R={i:!1,provider:null,o:()=>(R.t(),R.provider||(R.provider=new O(g.Ay.ir(),g.Ay.p(),g.Ay.l(),g.Ay.nr(),g.Ay.m()),g.Ay.v(R.provider),g.Ay.tr("ccr",()=>{var e;null==(e=R.provider)||e.ar()})),R.provider),t:()=>{R.i||(g.Ay.g(R),R.i=!0)},destroy:()=>{R.provider=null,R.i=!1}};function z(e,t){if(g.Ay.rr())return R.o().ar(e,t,!0)}class D{constructor(e,t){this.cards=e,this.lastUpdated=t,this.cards=e,this.lastUpdated=t}getUnviewedCardCount(){let e=0;for(let t of this.cards)t.viewed||t instanceof c||e++;return e}sr(e){x(e)}dr(e){return E(e)}ur(){z()}cr(){return!0}}function M(){if(g.Ay.rr())return R.o().Ws(!1)}D.Cr=6e4,D.hr=500,D.lr=1e4;var P=i(35817),L=i(37445);function U(e,t,i,s="ltr"){let n=document.createElement("button");n.setAttribute("aria-label",e),n.setAttribute("role","button"),n.dir=s,(0,P.P4)(n,"touchstart"),n.className="ab-close-button";let r=(0,P.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",t);return n.appendChild(r),r.setAttribute("aria-hidden","true"),n.addEventListener("keydown",e=>{e.keyCode!==L.c.Ho&&e.keyCode!==L.c.Go||(i(),e.stopPropagation())}),n.onclick=e=>{i(),e.stopPropagation()},n}var $=i(51533),F=i(28710),j=i(44245),G=i(77752),q=i(95887);function H(){if(g.Ay.rr())return g.Ay.br()}function W(e,t,s){if(g.Ay.rr())if(G.nx.test(e)){let t=(0,$.jj)(e);if(!t)return;let s=e=>{if(!(0,G.xs)(e))return void a.A.error(`Decoded Braze Action json is invalid: ${JSON.stringify(e,null,2)}`);let t=$.V.properties.type,r=$.V.properties.eo,o=$.V.properties.so,l=e[t];if(l===$.V.types.io)for(let t of e[r])s(t);else{let t,s,r=e[o];switch(l){case $.V.types.logCustomEvent:Promise.resolve().then(i.bind(i,98689)).then(({logCustomEvent:e})=>{g.Ay.ao()?e(...s=Array.prototype.slice.call(r)):a.A.error(n.em.ee)});break;case $.V.types.requestPushPermission:Promise.resolve().then(i.bind(i,91985)).then(({requestPushPermission:e})=>{g.Ay.ao()?"Safari"===F.A.browser&&F.A.OS===j.u.co?window.navigator.standalone&&e():e():a.A.error(n.em.ee)});break;case $.V.types.setEmailNotificationSubscriptionType:case $.V.types.setPushNotificationSubscriptionType:case $.V.types.setCustomUserAttribute:case $.V.types.addToSubscriptionGroup:case $.V.types.removeFromSubscriptionGroup:case $.V.types.addToCustomAttributeArray:case $.V.types.removeFromCustomAttributeArray:(t=H())&&t[l](...Array.prototype.slice.call(r));break;case $.V.types.mo:case $.V.types.uo:s=Array.prototype.slice.call(r),q.uD.openUri(...s);break;default:a.A.info(`Ignoring unknown Braze Action: ${l}`)}}};s(t)}else q.uD.openUri(e,t,s)}function K(e,t){W(e,t)}var V=i(85142);function X(e){if(null!=e){let t=e.querySelectorAll(".ab-unread-indicator")[0];null==t||t.classList.contains("read")||(t.className+=" read")}}let J={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\xedli pro v\xe1s nem\xe1me ž\xe1dn\xe9 aktualizace.<br/>Zkontrolujte pros\xedm znovu později.",FEED_TIMEOUT_MESSAGE:"Pros\xedm zkuste to znovu později."},da:{NO_CARDS_MESSAGE:"Vi har ingen updates.<br/>Pr\xf8v venligst senere.",FEED_TIMEOUT_MESSAGE:"Pr\xf8v venligst senere."},de:{NO_CARDS_MESSAGE:"Derzeit sind keine Updates verf\xfcgbar.<br/>Bitte sp\xe4ter noch einmal versuchen.",FEED_TIMEOUT_MESSAGE:"Bitte sp\xe4ter noch einmal versuchen."}
1,es:{NO_CARDS_MESSAGE:"No tenemos actualizaciones.<br/>Por favor compru\xe9belo m\xe1s tarde.",FEED_TIMEOUT_MESSAGE:"Por favor int\xe9ntelo m\xe1s tarde."},"es-mx":{NO_CARDS_MESSAGE:"No tenemos ninguna actualizaci\xf3n.<br/>Vuelva a verificar m\xe1s tarde.",FEED_TIMEOUT_MESSAGE:"Por favor, vuelva a intentarlo m\xe1s tarde."},et:{NO_CARDS_MESSAGE:"Uuendusi pole praegu saadaval.<br/>Proovige hiljem uuesti.",FEED_TIMEOUT_MESSAGE:"Palun proovige hiljem uuesti."},fi:{NO_CARDS_MESSAGE:"P\xe4ivityksi\xe4 ei ole saatavilla.<br/>Tarkista my\xf6hemmin uudelleen.",FEED_TIMEOUT_MESSAGE:"Yrit\xe4 my\xf6hemmin uudelleen."},fr:{NO_CARDS_MESSAGE:"Aucune mise \xe0 jour disponible.<br/>Veuillez v\xe9rifier ult\xe9rieurement.",FEED_TIMEOUT_MESSAGE:"Veuillez r\xe9essayer ult\xe9rieurement."},he:{NO_CARDS_MESSAGE:".אין לנו עדכונים. בבקשה בדוק שוב בקרוב",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\xf9 tardi.",FEED_TIMEOUT_MESSAGE:"Riprovare pi\xf9 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\xf8v igjen senere."},pl:{NO_CARDS_MESSAGE:"Brak aktualizacji.<br/>Proszę sprawdzić ponownie p\xf3źniej.",FEED_TIMEOUT_MESSAGE:"Proszę spr\xf3bować ponownie p\xf3źniej."},pt:{NO_CARDS_MESSAGE:"N\xe3o temos atualiza\xe7\xf5es.<br/>Por favor, verifique mais tarde.",FEED_TIMEOUT_MESSAGE:"Por favor, tente mais tarde."},"pt-br":{NO_CARDS_MESSAGE:"N\xe3o temos nenhuma atualiza\xe7\xe3o.<br/>Verifique novamente mais tarde.",FEED_TIMEOUT_MESSAGE:"Tente novamente mais tarde."},ru:{NO_CARDS_MESSAGE:"Обновления недоступны.<br/>Пожалуйста, проверьте снова позже.",FEED_TIMEOUT_MESSAGE:"Пожалуйста, повторите попытку позже."},sv:{NO_CARDS_MESSAGE:"Det finns inga uppdateringar.<br/>
1F\xf6rs\xf6k igen senare.",FEED_TIMEOUT_MESSAGE:"F\xf6rs\xf6k igen senare."},th:{NO_CARDS_MESSAGE:"เราไม่มีการอัพเดต กรุณาตรวจสอบภายหลัง.",FEED_TIMEOUT_MESSAGE:"กรุณาลองใหม่ภายหลัง."},uk:{NO_CARDS_MESSAGE:"Оновлення недоступні.<br/>ласка, перевірте знову пізніше.",FEED_TIMEOUT_MESSAGE:"Будь ласка, спробуйте ще раз пізніше."},vi:{NO_CARDS_MESSAGE:"Ch\xfang t\xf4i kh\xf4ng c\xf3 cập nhật n\xe0o.<br/>Vui l\xf2ng kiểm tra lại sau.",FEED_TIMEOUT_MESSAGE:"Vui l\xf2ng 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:"请稍候再试."}};class Y{constructor(e,t=!1){if(this.language=e,null!=e&&(e=e.toLowerCase()),null!=e&&null==J[e]){const t=e.indexOf("-");t>0&&(e=e.substring(0,t))}if(null==J[e]){const i="Braze does not yet have a localization for language "+e+", defaulting to English. Please contact us if you are willing and able to help us translate our SDK into this language.";t?a.A.error(i):a.A.info(i),e="en"}this.language=e}get(e){return J[this.language][e]}Ta(){switch(this.language){case"ar":case"he":case"fa":return"rtl";default:return"ltr"}}}let Z={i:!1,na:null,ra:()=>{if(Z.t(),!Z.na){let e=F.A.language,t=!1;g.Ay.re(g.lw.Wa)&&(e=g.Ay.re(g.lw.Wa),t=!0),Z.na=new Y(e,t)}return Z.na},t:()=>{Z.i||(g.Ay.g(Z),Z.i=!0)},destroy:()=>{Z.na=null,Z.i=!1}};function Q(e){g.Ay.rr()&&g.Ay.removeSubscription(e)}function ee(e){return null!=e&&!!e.getAttribute("data-ab-had-top-impression")}function et(e){null!=e&&e.setAttribute("data-ab-had-top-impression","true")}function ei(e){return null!=e&&!!e.getAttribute("data-ab-had-bottom-impression")}function es(e){null!=e&&e.setAttribute("data-ab-had-bottom-impression","true")}let en="Banners are disabled. Make sure you have at least one campaign and relaunch the app.",er="data-update-subscription-id",ea={};function eo(e){e&&(e.className=e.className.replace("ab-show","ab-hide"),setTimeout(()=>{e&&e.parentNode&&e.parentNode.removeChild(e)},D.hr));let t=e.getAttribute(er);null!=t&&Q(t);let i=e.getAttribute("data-listener-id");null!=i&&(window.removeEventListener("scroll",ea[i]),delete ea[i])}function el(e,t){let i=Z.ra(),s=document.createElement("div");if(s.className="ab-feed-body",s.setAttribute("aria-label","Feed"),s.setAttribute("role","feed"),null==e.lastUpdated){let e=document.createElement("div");e.className="ab-no-cards-message";let t=document.createElement("i");t.className="fa fa-spinner fa-spin fa-4x ab-initial-spinner",e.appendChild(t),s.appendChild(e)}else{let n=!1,r=t=>e.dr(t);for(let o of e.cards){let l=o instanceof c;!l||e.cr()?(s.appendChild(function(e,t,i,s="ltr"){let n=document.createElement("div");n.dir=s,e.language&&(n.lang=e.language),n.className="ab-card ab-effect-card "+e.ie,e.id&&(n.setAttribute("data-ab-card-id",e.id),n.setAttribute("id",e.id)),n.setAttribute("role","article");let r="",a=!1;e.url&&""!==e.url&&(r=e.url,a=!0);let o=s=>(X(n),a&&(t(e),W(r,i,s)),!1);if(e.pinned){let e=document.createElement("div");e.className="ab-pinned-indicator";let t=document.createElement("i");t.className="fa fa-star",e.appendChild(t),n.appendChild(e)}if(e.imageUrl&&""!==e.imageUrl){let t=document.createElement("div");t.dir=s,t.className="ab-image-area";let i=document.createElement("img");if(i.setAttribute("src",e.imageUrl),i.onload=()=>{n.style.height="auto"},i.setAttribute("alt",e.altImageText||""),t.appendChild(i),n.className+=" with-image",a&&!e.ne){let i=document.createElement("a");i.setAttribute("href",r),i.onclick=o,e.altImageText||(e.title?i.setAttribute("aria-label",e.title):i.setAttribute("aria-label","Feed Image")),i.appendChild(t),n.appendChild(i)}else n.appendChild(t)}let l=document.createElement("div");if(l.className="ab-card-body",l.dir=s,e.dismissible){e.logCardDismissal=()=>y(e);let t=U("Dismiss Card",void 0,e.dismissCard.bind(e),s);n.appendChild(t),(0,P.sr)(l,P.X.de,e=>{n.className+=" ab-swiped-left",t.onclick(e)}),(0,P.sr)(l,P.X.ce,e=>{n.className+=" ab-swiped-right",t.onclick(e)})}let u="",h=!1;if(e.title&&""!==e.title&&(u=e.title,h=!0),h){let e=document.createElement("h1");if(e.className="ab-title",e.id=V.A.se(),n.setAttribute("aria-labelledby",e.id),a){let t=document.createElement("a");t.setAttribute("href",r),t.onclick=o,t.appendChild(document.createTextNode(u)),e.appendChild(t)}
1else e.appendChild(document.createTextNode(u));l.appendChild(e)}let c=document.createElement("div");if(c.className=h?"ab-description":"ab-description ab-no-title",e.language&&(c.lang=e.language),e.description&&c.appendChild(document.createTextNode(e.description)),a){let t=document.createElement("div");t.className="ab-url-area";let i=document.createElement("a");i.setAttribute("href",r),e.linkText&&i.appendChild(document.createTextNode(e.linkText)),i.onclick=o,t.appendChild(i),c.appendChild(t)}l.appendChild(c),n.appendChild(l);let d=document.createElement("div");return d.className="ab-unread-indicator",e.viewed&&(d.className+=" read"),n.appendChild(d),e.ae=n,n}(o,r,t,i.Ta())),n=n||!l):a.A.error("Received a control card for a legacy news feed. Control cards are only supported with content cards.")}if(!n){let e=document.createElement("div");e.className="ab-no-cards-message",e.innerHTML=i.get("NO_CARDS_MESSAGE")||"",e.setAttribute("role","article"),s.appendChild(e)}}return s}function eu(e,t){if(null!=e&&null!=t){let i=[],s=t.querySelectorAll(".ab-card");e.Qa||(e.Qa={});for(let t=0;t<s.length;t++){let n=s[t].getAttribute("data-ab-card-id"),r=(0,P.Kz)(s[t]),a=(0,P.K)(s[t]);if(e.Qa[n]){r||a||X(s[t]);continue}let o=ee(s[t]),l=ei(s[t]),u=o,h=l;if(!o&&r&&(o=!0,et(s[t])),!l&&a&&(l=!0,es(s[t])),o&&l){if(u&&h)continue;for(let t of e.cards)if(t.id===n){e.Qa[t.id]=!0,i.push(t);break}}}i.length>0&&e.sr(i)}}function eh(e,t){if(null==e||null==t)return;t.setAttribute("aria-busy","true");let i=t.querySelectorAll(".ab-refresh-button")[0];null!=i&&(i.className+=" fa-spin");let s=new Date().valueOf().toString();t.setAttribute("data-last-requested-refresh",s),setTimeout(()=>{if(t.getAttribute("data-last-requested-refresh")===s){let e=t.querySelectorAll(".fa-spin");for(let t=0;t<e.length;t++)e[t].className=e[t].className.replace(/fa-spin/g,"");let i=t.querySelectorAll(".ab-initial-spinner")[0];if(null!=i){let e=document.createElement("span");e.innerHTML=Z.ra().get("FEED_TIMEOUT_MESSAGE")||"",null!=i.parentNode&&(i.parentNode.appendChild(e),i.parentNode.removeChild(i))}"true"===t.getAttribute("aria-busy")&&t.setAttribute("aria-busy","false")}},D.lr),e.ur()}function ec(e,t,i,s,n){if(!(0,w.cy)(t))return;let r=[];for(let e of t)if(e instanceof o){if(e.url&&G.nx.test(e.url)){let t=(0,$.jj)(e.url);if((0,$.qj)(t)){a.A.error((0,$.$6)($.mY.Pn,"Content Card"));continue}}r.push(e)}if(e.cards=r,e.lastUpdated=i,null!=s)if(s.setAttribute("aria-busy","false"),null==e.lastUpdated)eo(s);else{let t=s.querySelectorAll(".ab-feed-body")[0];if(null!=t){let i=el(e,n);t.parentNode&&t.parentNode.replaceChild(i,t),eu(e,i.parentNode)}}}function ed(e){if(!g.Ay.rr())return;let t=document.querySelectorAll(".ab-feed");for(let i=0;i<t.length;i++)(null==e||null!=e&&t[i].parentNode===e)&&eo(t[i])}function ep(e){if(!g.Ay.rr())return;let t=R.o(),i=t.It(e);if(!t.St()){let e=g.Ay.nn();if(e){let i=e.rn(()=>{t.ar(void 0,void 0,!0)});i&&t.wt(i)}}return i}function em(e,t,i){let s=e||document.querySelector("head"),n=`ab-${t}-css-definitions-${"6.5.0".replace(/\./g,"-")}`;if(!s)return;let r=s.ownerDocument||document;if(null==r.getElementById(n)){let e=r.createElement("style");e.innerHTML=i||"",e.id=n;let t=g.Ay.re(g.lw.er);null!=t&&e.setAttribute("nonce",t),s.appendChild(e)}}function eb(){if(g.Ay.re(g.lw.Za))return;let e="https://use.fontawesome.com/7f85a56ba4.css";if(null===document.querySelector('link[rel=stylesheet][href="'+e+'"]')){let t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),document.getElementsByTagName("head")[0].appendChild(t)}}function ef(e,t){var i,s;if(!g.Ay.rr())return;em(void 0,"feed","body>.ab-feed{position:fixed;top:0;right:0;bottom:0;width:421px;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}body>.ab-feed .ab-feed-body{position:absolute;top:0;left:0;right:0;border:none;border-left:1px solid #d0d0d0;padding-top:70px;min-height:100%}body>.ab-feed .ab-initial-spinner{float:none}body>.ab-feed .ab-no-cards-message{position:absolute;width:100%;margin-left:-20px;top:40%}.ab-feed{-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-box-shadow:0 1px 7px 1px rgba(66,82,113,.15);-moz-box-shadow:0 1px 7px 1px rgba(66,82,113,.15);box-shadow:0 1px 7px 1px rgba(66,82,113,.15);width:402px;background-color:#eee;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',s
1ans-serif;font-size:13px;line-height:130%;letter-spacing:normal;overflow-y:auto;overflow-x:visible;z-index:9011;-webkit-overflow-scrolling:touch}.ab-feed :focus,.ab-feed:focus{outline:0}.ab-feed .ab-feed-body{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;border:1px solid #d0d0d0;border-top:none;padding:20px 20px 0 20px}.ab-feed.ab-effect-slide{-webkit-transform:translateX(450px);-moz-transform:translateX(450px);-ms-transform:translateX(450px);transform:translateX(450px);-webkit-transition:transform .5s ease-in-out;-moz-transition:transform .5s ease-in-out;-o-transition:transform .5s ease-in-out;transition:transform .5s ease-in-out}.ab-feed.ab-effect-slide.ab-show{-webkit-transform:translateX(0);-moz-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}.ab-feed.ab-effect-slide.ab-hide{-webkit-transform:translateX(450px);-moz-transform:translateX(450px);-ms-transform:translateX(450px);transform:translateX(450px)}.ab-feed .ab-card{position:relative;-webkit-box-shadow:0 2px 3px 0 rgba(178,178,178,.5);-moz-box-shadow:0 2px 3px 0 rgba(178,178,178,.5);box-shadow:0 2px 3px 0 rgba(178,178,178,.5);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;width:100%;border:1px solid #d0d0d0;margin-bottom:20px;overflow:hidden;background-color:#fff;-webkit-transition:height .4s ease-in-out,margin .4s ease-in-out;-moz-transition:height .4s ease-in-out,margin .4s ease-in-out;-o-transition:height .4s ease-in-out,margin .4s ease-in-out;transition:height .4s ease-in-out,margin .4s ease-in-out}.ab-feed .ab-card .ab-pinned-indicator{position:absolute;right:0;top:0;margin-right:-1px;width:0;height:0;border-style:solid;border-width:0 24px 24px 0;border-color:transparent #1676d0 transparent transparent}.ab-feed .ab-card .ab-pinned-indicator .fa-star{position:absolute;right:-21px;top:2px;font-size:9px;color:#fff}.ab-feed .ab-card.ab-effect-card.ab-hide{-webkit-transition:all .5s ease-in-out;-moz-transition:all .5s ease-in-out;-o-transition:all .5s ease-in-out;transition:all .5s ease-in-out}.ab-feed .ab-card.ab-effect-card.ab-hide.ab-swiped-left{-webkit-transform:translateX(-450px);-moz-transform:translateX(-450px);-ms-transform:translateX(-450px);transform:translateX(-450px)}.ab-feed .ab-card.ab-effect-card.ab-hide.ab-swiped-right{-webkit-transform:translateX(450px);-moz-transform:translateX(450px);-ms-transform:translateX(450px);transform:translateX(450px)}.ab-feed .ab-card.ab-effect-card.ab-hide:not(.ab-swiped-left):not(.ab-swiped-right){opacity:0}.ab-feed .ab-card .ab-close-button{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;background-color:transparent;background-size:15px;border:none;width:15px;min-width:15px;height:15px;cursor:pointer;display:block;font-size:15px;line-height:0;padding-top:15px;padding-right:15px;padding-left:15px;padding-bottom:15px;position:absolute;top:0;z-index:9021;opacity:0;-webkit-transition:.5s;-moz-transition:.5s;-o-transition:.5s;transition:.5s}.ab-feed .ab-card .ab-close-button[dir=rtl]{left:0}.ab-feed .ab-card .ab-close-button[dir=ltr]{right:0}.ab-feed .ab-card .ab-close-button svg{-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease;fill:#9b9b9b;height:auto;width:100%}.ab-feed .ab-card .ab-close-button svg.ab-chevron{display:none}.ab-feed .ab-card .ab-close-button:active{background-color:transparent}.ab-feed .ab-card .ab-close-button:focus{background-color:transparent}.ab-feed .ab-card .ab-close-button:hover{background-color:transparent}.ab-feed .ab-card .ab-close-button:hover svg{fill-opacity:.8}.ab-feed .ab-card .ab-close-button:hover{opacity:1}.ab-feed .ab-card .ab-close-button:focus{opacity:1}.ab-feed .ab-card a{float:none;color:inherit;text-decoration:none}.ab-feed .ab-card a:hover{text-decoration:underline}.ab-feed .ab-card .ab-image-area{float:none;display:inline-block;vertical-align:top;line-height:0;overflow:hidden;width:100%;-webkit-box-sizing:initial;-moz-box-sizing:initial;box-sizing:initial}.ab-feed .ab-card .ab-image-area img{float:none;height:auto;width:100%}
1.ab-feed .ab-card.ab-image-only .ab-card-body{display:none}.ab-feed .ab-card .ab-card-body{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:inline-block;width:100%;position:relative}.ab-feed .ab-card .ab-unread-indicator{position:absolute;bottom:0;margin-right:-1px;width:100%;height:5px;background-color:#1676d0}.ab-feed .ab-card .ab-unread-indicator.read{background-color:transparent}.ab-feed .ab-card .ab-title{float:none;letter-spacing:0;margin:0;font-weight:700;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;display:block;overflow:hidden;word-wrap:break-word;text-overflow:ellipsis;font-size:18px;line-height:130%;padding:20px 25px 0 25px}.ab-feed .ab-card .ab-description{float:none;color:#545454;padding:15px 25px 20px 25px;word-wrap:break-word;white-space:pre-wrap}.ab-feed .ab-card .ab-description.ab-no-title{padding-top:20px}.ab-feed .ab-card .ab-url-area{float:none;color:#1676d0;margin-top:12px;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',s
1ans-serif}.ab-feed .ab-card.ab-classic-card .ab-card-body{min-height:40px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.ab-feed .ab-card.ab-classic-card.with-image .ab-card-body{min-height:100px}.ab-feed .ab-card.ab-classic-card.with-image .ab-card-body[dir=ltr]{padding-left:72px}.ab-feed .ab-card.ab-classic-card.with-image .ab-card-body[dir=rtl]{padding-right:72px}.ab-feed .ab-card.ab-classic-card.with-image .ab-image-area{width:60px;height:60px;padding:20px 0 25px 25px;position:absolute}.ab-feed .ab-card.ab-classic-card.with-image .ab-image-area[dir=rtl]{padding:20px 25px 25px 0}.ab-feed .ab-card.ab-classic-card.with-image .ab-image-area img{-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;max-width:100%;max-height:100%;width:auto;height:auto}.ab-feed .ab-card.ab-classic-card.with-image .ab-title{background-color:transparent;font-size:16px}.ab-feed .ab-card.ab-classic-card.with-image .ab-description{padding-top:10px}.ab-feed .ab-card.ab-control-card{height:0;width:0;margin:0;border:0}.ab-feed .ab-feed-buttons-wrapper{float:none;position:relative;background-color:#282828;height:50px;-webkit-box-shadow:0 2px 3px 0 rgba(178,178,178,.5);-moz-box-shadow:0 2px 3px 0 rgba(178,178,178,.5);box-shadow:0 2px 3px 0 rgba(178,178,178,.5);z-index:1}.ab-feed .ab-feed-buttons-wrapper .ab-close-button,.ab-feed .ab-feed-buttons-wrapper .ab-refresh-button{float:none;cursor:pointer;color:#fff;font-size:18px;padding:16px;-webkit-transition:.2s;-moz-transition:.2s;-o-transition:.2s;transition:.2s}.ab-feed .ab-feed-buttons-wrapper .ab-close-button:hover,.ab-feed .ab-feed-buttons-wrapper .ab-refresh-button:hover{font-size:22px}.ab-feed .ab-feed-buttons-wrapper .ab-close-button{float:right}.ab-feed .ab-feed-buttons-wrapper .ab-close-button:hover{padding-top:12px;padding-right:14px}.ab-feed .ab-feed-buttons-wrapper .ab-refresh-button{padding-left:17px}.ab-feed .ab-feed-buttons-wrapper .ab-refresh-button:hover{padding-top:13px;padding-left:14px}.ab-feed .ab-no-cards-message{text-align:center;margin-bottom:20px}@media (max-width:600px){body>.ab-feed{width:100%}}"),eb();let n=!1;null==e&&(e=document.body,n=!0);let r=g.Ay.re(g.lw.tn)||!1,o=R.o().Ws(!1);"function"==typeof t&&ec(o,t(o.cards.slice()),o.lastUpdated,null,r);let l=function(e,t,i){let s=document.createElement("div");s.className="ab-feed ab-hide ab-effect-slide",s.setAttribute("role","dialog"),s.setAttribute("aria-label","Feed"),s.setAttribute("tabindex","-1");let n=document.createElement("div");n.className="ab-feed-buttons-wrapper",n.setAttribute("role","group"),s.appendChild(n);let r=document.createElement("i");r.className="fa fa-times ab-close-button",r.setAttribute("aria-label","Close Feed"),r.setAttribute("tabindex","0"),r.setAttribute("role","button");let a=e=>{eo(s),e.stopPropagation()};r.addEventListener("keydown",e=>{e.keyCode!==L.c.Ho&&e.keyCode!==L.c.Go||a(e)}),r.onclick=a;let o=document.createElement("i");o.className="fa fa-refresh ab-refresh-button",e&&null==e.lastUpdated&&(o.className+=" fa-spin"),o.setAttribute("aria-label","Refresh Feed"),o.setAttribute("tabindex","0"),o.setAttribute("role","button");let l=t=>{eh(e,s),t.stopPropagation()};o.addEventListener("keydown",e=>{e.keyCode!==L.c.Ho&&e.keyCode!==L.c.Go||l(e)}),o.onclick=l,n.appendChild(o),n.appendChild(r),s.appendChild(el(e,t));let u=()=>eu(e,s);if(s.addEventListener("scroll",u),!i){window.addEventListener("scroll",u);let e=V.A.se();ea[e]=u,s.setAttribute("data-listener-id",e)}return s}(o,r,n),u=R.o(),h=u.Bs();(null==o.lastUpdated||new Date().valueOf()-o.lastUpdated.valueOf()>D.Cr)&&(null==h||new Date().valueOf()-h>D.Cr)&&(a.A.info(`Cached content cards were older than max TTL of ${D.Cr} ms, requesting an update from the server.`),eh(o,l),u.Es(new Date().valueOf()));let c=new Date().valueOf();s=ep(function(e){let i=l.querySelectorAll(".ab-refresh-button")[0];if(null!=i){let e,t=e=500-(new Date().valueOf()-c),s=l.getAttribute("data-last-requested-refresh");s&&(isNaN(t=parseInt(s))||(e-=new Date().valueOf()-t)),setTimeout(function(){i.className=i.className.replace(/fa-spin/g,"")},Math.max(e,0))}let s=e.cards;"function"==typeof t&&(s=t(s.slice())),ec(o,s,e.lastUpdated,l,r)}),s&&l.setAttribute(er,s);let d=function(e){let t=e.querySelectorAll(".ab-feed"),i=null;for(let s=0;s<t.length;s++)t[s].parentNode===e&&(i=t[s]);null!=i?(eo(i),null!=i.parentNode&&i.parentNode.replaceChild(l,i)):e.appendChild(l),setTimeout(function(){l.className=l.className.replace("ab-hide","ab-show")},0),n&&l.focus(),eu(o,l),function(e,t){let i=t.querySelectorAll(".ab-image-area"),s,n=0;for(let t of(i.length>0&&(n=i[0].offsetWidth),e))if((s=t.ae)&&t.imageUrl&&"number"==typeof t.aspectRatio){let e=n/t.aspectRatio;e&&(s.style.height=`${e}px`)}}(o.cards,e)};null!=e?d(e):window.onload=(i=window.onload,function(){"function"==typeof i&&i(new Event("oldLoad")),d(document.body)})}function eg(e,t){g.Ay.rr()&&(document.querySelectorAll(".ab-feed").length>0?ed():ef(e,t))}let ev={GOOGLE_TAG_MANAGER:"gg",MPARTICLE:"mp",SEGMENT:"sg",TEALIUM:"tl",MANUAL:"manu",NPM:"npm",CDN:"wcd",SHOPIFY:"shp"};function eA(e){if(!g.Ay.rr())return;let t=g.Ay.m();if(t){if(!(0,w.cy)(e))return a.A.error("Cannot set SDK metadata because metadata is not an array."),!1;for(let t of e)if(!(0,w.BY)(ev,t,"sdkMetadata contained an invali
1d value.","BrazeSdkMetadata"))return!1;return t.addSdkMetadata(e),!0}}var ey=i(52362);function ew(){a.A.info("Destroying Braze instance"),g.Ay.destroy(!0)}var ex=i(81642);function eE(){let e=g.Ay.nn();e&&e.requestImmediateDataFlush();let t=new b.A.le(null,!0),i="This-cookie-will-expire-in-"+t.me();t.store(b.d.pe,i);let s=_.A.Us.Rs;new _.A(s,a.A).setItem(s.Fs.be,s.fe,!0),a.A.info("disableSDK was called"),g.Ay.destroy(!1),g.Ay.ge(!0)}function eS(){new b.A.le(null,!0).remove(b.d.pe);let e=_.A.Us.Rs;new _.A(e,a.A).je(e.Fs.be,e.fe),a.A.info("enableSDK was called"),g.Ay.destroy(!1),g.Ay.ge(!1)}function ek(e){if(!g.Ay.rr())return;let t=g.Ay.ue();if(!t)return;let i=t.ve().id;if("function"!=typeof e)return i;a.A.warn("The callback for getDeviceId is deprecated. You can access its return value directly instead (e.g. `const id = braze.getDeviceId()`)"),e(i)}function eC(e,t){return g.Ay.initialize(e,t)}function eT(){return!!new b.A.le(null,!0).jr(b.d.pe)}function eN(){return g.Ay.ao()}var eB=i(98689),eI=i(79328),e_=i(29885),eO=i(98e3);function eR(){if(!g.Ay.rr())return;let e=g.Ay.nn();if(!e)return;e.openSession();let t=_.A.Us.Rs,i=new _.A(t,a.A);i.kr(t.Fs.vr,(s,n)=>{let r=n.lastClick,o=n.trackingString;a.A.info(`Firing push click trigger from ${o} push click at ${r}`);let l=e.$r(r,o),u=function(){eO.B.o().he(e_.A.wr,[o],l)};e.yr(u,u),i.je(t.Fs.vr,s)}),i.Ds(t.Fs.zr,function(t){e.Fr(t)})}function ez(){g.Ay.rr()&&g.Ay.removeAllSubscriptions()}var eD=i(24205);function eM(e){a.A.setLogger(e)}function eP(e){if(!g.Ay.rr()||""===e||!(0,G.rK)(e,"set signature","signature",!1))return!1;let t=g.Ay.Sr();return!!t&&(t.setSdkAuthenticationSignature(e),!0)}function eL(e){var t;if(g.Ay.rr())return null==(t=g.Ay.Sr())?void 0:t.subscribeToSdkAuthenticationFailures(e)}function eU(){a.A.toggleLogging()}function e$(){let e=g.Ay.p();if(null==e)return void a.A.warn(n.em.ee);e.clearData();let t=(0,w.HP)(_.A.Us);for(let e=0;e<t.length;e++){let i=t[e],s=_.A.Us[i];new _.A(s,a.A).clearData()}if(g.Ay.rr())for(let e of g.Ay.gr())e.clearData(!0);let i=g.Ay.m();i&&i.fo()}var eF=i(69472),ej=i(41735),eG=i(60634),eq=i(11887),eH=i(16208),eW=i(1698),eK=i(59788),eV=i(18120);function eX(){em(void 0,"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{position:absolute;top:0;right:0;bottom:0;left:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area .ab-center-cropped-img img,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area .ab-center-cropped-img img{width:100%;height:100%;object-fit:cover;object-position:center}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-icon,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-icon{margin-top:20px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic{padding:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-message-text{display:none}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-message-buttons,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-message-buttons{bottom:0;left:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area{float:none;height:auto;margin:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-image-area img,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area img{display:block;top:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none}.ab-iam-root.v3 .ab-in-app-message.ab-modal{padding-top:20px;width:450px;max-width:450px;max-height:720px}.ab-iam-root.v3 .ab-in-app-message.ab-modal.simulate-phone{max-width:91%;max-width:calc(100% - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal.simulate-phone.graphic .ab-image-area img{max-width:91vw;max-width:calc(100vw - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text{max-height:660px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-image{max-height:524.827
158621px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-icon{max-height:610px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons{margin-bottom:93px;max-height:587px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons.ab-with-image{max-height:451.82758621px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons.ab-with-icon{max-height:537px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area{margin-top:-20px;max-height:155.17241379px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area img{max-width:100%;max-height:155.17241379px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area.ab-icon-area{height:auto}.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic{width:auto;overflow:hidden}.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area{display:inline}.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area img{width:auto;max-height:720px;max-width:450px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen{width:450px;max-height:720px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape{width:720px;max-height:450px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape .ab-image-area{height:225px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape.graphic .ab-image-area{height:450px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape .ab-message-text{max-height:112px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-message-text{max-height:247px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-message-text.ab-with-buttons{margin-bottom:93px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area{height:360px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-image-area{height:720px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone{-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone:not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone:not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.graphic{display:block}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-html-message{background-color:transparent;border:none;height:100%;overflow:auto;position:relative;touch-action:auto;width:100%}.ab-iam-root.v3 .ab-in-app-message .ab-message-buttons{position:absolute;bottom:0;width:100%;padding:17px 25px 30px 25px;z-index:inherit;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ab-iam-root.v3 .ab-in-app-message .ab-message-button{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;cursor:pointer;display:inline-block;font-size:14px;font-weight:700;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',s
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)}}"),eb()}function eJ(e,t){return null==e||isNaN(e=parseInt(e.toString()))?"":(t&&!isNaN(parseFloat(t.toString()))||(t=1),"rgba("+[(0xff0000&(e>>>=0))>>>16,(65280&e)>>>8,255&e,((0xff000000&e)>>>24)/255*t].join(",")+")")}var eY=i(88849);function eZ(e){if(!g.Ay.rr())return!1;if(!(e instanceof eF.A||e instanceof eG.A))return a.A.error(eY.i.sS),!1;let t=e instanceof eG.A?m.w.om:m.w.wn;return eV.A.ra().lt(e,t).W}function eQ(e){if(!g.Ay.rr())return!1;if(!(e instanceof eF.A))return a.A.error(eY.i.sS),!1;let t=eV.A.ra().lt(e,m.w.zn);if(t){e.sm()||eZ(e);for(let i=0;i<t.Ee.length;i++)eO.B.o().he(e_.A.rm,[e.triggerId],t.Ee[i])}return t.W}function e0(e,t,i){if(!g.Ay.rr())return!1;if(!(e instanceof eH.A))return a.A.error("inAppMessage argument to logInAppMessageHtmlClick must be an HtmlMessage object."),!1;let s=m.w.zn;null!=t&&(s=m.w.Sn);let n=eV.A.ra().lt(e,s,t,i);if(n.W)for(let i=0;i<n.Ee.length;i++)eO.B.o().he(e_.A.rm,[e.triggerId,t],n.Ee[i]);return n.W}let e1=(e,t,i,s)=>{let n=i.getAttribute("href"),r=i.onclick;return a=>{if(null!=r&&"function"==typeof r&&!1===r.bind(i)(a))return;let o=(0,C.y)(n).abButtonId;if(null!=o&&""!==o||(o=i.getAttribute("id")||void 0),null!=n&&""!==n&&0!==n.indexOf("#")){let r="blank"===(i.getAttribute("target")||"").toLowerCase().replace("_",""),l=s||e.openTarget===eF.A.OpenTarget.BLANK||r,u=()=>{e0(e,o,n),q.uD.openUri(n,l,a)};l?u():e.ll(t,u)}else e0(e,o,n||void 0);return a.stopPropagation(),!1}};var e3=i(72573);let e5=(e,t)=>{let s={display:{},web:{}},r=function(){return function(){let e=arguments;Promise.resolve().then(i.bind(i,91985)).then(t=>{g.Ay.ao()?t.requestPushPermission(...Array.prototype.slice.call(e)):a.A.error(n.em.ee)})}},o={requestImmediateDataFlush:function(){let e=arguments;Promise.resolve().then(i.bind(i,24205)).then(({requestImmediateDataFlush:t})=>{g.Ay.ao()?t(...Array.prototype.slice.call(e)):a.A.error(n.em.ee)})},logCustomEvent:function(){let e=arguments;Promise.resolve().then(i.bind(i,98689)).then(({logCustomEvent:t})=>{g.Ay.ao()?t(...Array.prototype.slice.call(e)):a.A.error(n.em.ee)})},logPurchase:function(){let e=arguments;Promise.resolve().then(i.bind(i,79328)).then(({logPurchase:t})=>{g.Ay.ao()?t(...Array.prototype.slice.call(e)):a.A.error(n.em.ee)})},unregisterPush:function(){let e=arguments;Promise.resolve().then(i.bind(i,65524)).then(({unregisterPush:t})=>{g.Ay.ao()?t(...Array.prototype.slice.call(e)):a.A.error(n.em.ee)})},requestPushPermission:r(),changeUser:function(){let e=arguments;Promise.resolve().then(i.bind(i,52362)).then(({changeUser:t})=>{g.Ay.ao()?t(...Array.prototype.slice.call(e)):a.A.error(n.em.ee)})}},l=function(e){return function(){o[e](...Array.prototype.slice.call(arguments))}};for(let e of(0,w.HP)(o))s[e]=l(e);let u=["setFirstName","setLastName","setEmail","setGender","setDateOfBirth","setCountry","setHomeCity","setEmailNotificationSubscriptionType","setLanguage","addAlias","setPushNotificationSubscriptionType","setPhoneNumber","setCustomUserAttribute","addToCustomAttributeArray","removeFromCustomAttributeArray","incrementCustomUserAttribute","setCustomLocationAttribute","addToSubscriptionGroup","removeFromSubscriptionGroup","setLineId"],h=function(e){return function(){let t=H();t&&t[e](...Array.prototype.slice.call(arguments))}},c={};for(let e=0;e<u.length;e++)c[u[e]]=h(u[e]);s.getUser=function(){return c};let d={},p=function(i){return function(){let s=arguments;"function"!=typeof t?d[i](...Array.prototype.slice.call(s)):t(e,function(){d[i](...Array.prototype.slice.call(s))})}},m=s.display;for(let e of(0,w.HP)(d))m[e]=p(e);let b={registerAppboyPushMessages:r()},f=function(e){return function(){b[e](...Array.prototype.slice.call(arguments))}},v=s.web;for(let e of(0,w.HP)(b))v[e]=f(e);return s.NotificationSubscriptionTypes=e3.A.NotificationSubscriptionTypes,s},e2=(e,t,i)=>{let s=`([\\w]+)\\s*=\\s*document.createElement\\(['"]${i}['"]\\)`,n=e.match(new RegExp(s));if(n){let i=`${n[1]}.setAttribute("nonce", "${t}")`;return`${e.slice(0,n.index+n[0].length)};${i};${e.slice(n.index+n[0].length)}`}return null},e8=(e,t,i)=>{let s=null;if(null!=i){(s=document.createElement("html")).innerHTML=t||"";let e=s.getElementsByTagName("style");for(let t=0;t<e.length;t++)e[t].setAttribute("nonce",i);let n=s.getElementsByTagName("script");for(let e=0;e<n.length;e++){n[e].setAttribute("nonce",i),n[e].innerHTML=n[e].innerHTML.replace(/<style>/g,`<style nonce='${i}'>`);let t=e2(n[e].innerHTML,i,"script");t&&(n[e].innerHTML=t);let s=e2(n[e].innerHTML,i,"style");s&&(n[e].innerHTML=s)}}e.srcdoc=s?s.innerHTML:t||""};function e7(e,t){var i;if(!g.Ay.rr())return!1;if(!(e instanceof ej.A))return a.A.error("button must be an InAppMessageButton object"),!1;if(!(t instanceof eF.A))return a.A.error(eY.i.sS),!1;let s=eV.A.ra().Rn(e,t);if(s.W)for(let n=0;n<s.Ee.length;n++)eO.B.o().he(e_.A.rm,[t.triggerId,null==(i=e.id)?void 0:i.toString()],s.Ee[n]);return s.W}var e4=i(80905);function e6(e,t,i){let s;if(!g.Ay.rr())return;if(eX(),null==e)return!1;if(e instanceof eG.A)return a.A.info("User received control for a multivariate test, logging to Braze servers."),eZ(e),!0;if(!(e instanceof eF.A)||e.constructor===eF.A)return!1;
1e.Lh();let n=e instanceof eH.A;if(n&&!e.trusted&&!g.Ay.nr())return a.A.error('HTML in-app messages are disabled. Use the "allowUserSuppliedJavascript" option for braze.initialize to enable these messages.'),!1;if(null==t&&(t=document.body),e.zo()&&t.querySelectorAll(".ab-modal-interactions").length>0)return a.A.info(`Cannot show in-app message ${e.message} because another message is being shown.`),!1;if(q.uD.Ua()){let t=q.uD.Ma();if(t===q.j3.PORTRAIT&&e.orientation===eF.A.Orientation.LANDSCAPE||t===q.j3.LANDSCAPE&&e.orientation===eF.A.Orientation.PORTRAIT){let i=t===q.j3.PORTRAIT?"portrait":"landscape",s=e.orientation===eF.A.Orientation.PORTRAIT?"portrait":"landscape";return a.A.info(`Not showing ${s} in-app message ${e.message} because the screen is currently ${i}`),!1}}if(!g.Ay.nr()){let t=!1;if(e.buttons&&e.buttons.length>0){let i=e.buttons;for(let e=0;e<i.length;e++)if(i[e].clickAction===eF.A.ClickAction.URI){let s=i[e].uri;t=(0,C.P)(s)}}else e.clickAction===eF.A.ClickAction.URI&&(t=(0,C.P)(e.uri));if(t)return a.A.error('Javascript click actions are disabled. Use the "allowUserSuppliedJavascript" option for braze.initialize to enable these actions.'),!1}let r=document.createElement("div");if(r.className="ab-iam-root v3",r.className+=(s="",e.animateIn&&(s+=" ab-animate-in"),e.animateOut&&(s+=" ab-animate-out"),e instanceof eq.A?s+=" ab-effect-fullscreen":e instanceof eH.A?s+=" ab-effect-html":e instanceof eW.A?s+=" ab-effect-modal":e instanceof eK.A&&(s+=" ab-effect-slide"),s),e.language&&!n&&(r.lang=e.language),e._o()&&(r.id=e.htmlId),g.Ay.re(g.lw.$a)&&(r.style.zIndex=(g.Ay.re(g.lw.$a)+1).toString()),t.appendChild(r),e.Mo()){let t=document.createElement("style");t.innerHTML=e.css,t.id=e.Oo(),null!=g.Ay.re(g.lw.er)&&t.setAttribute("nonce",g.Ay.re(g.lw.er)),document.getElementsByTagName("head")[0].appendChild(t)}let o=e instanceof eK.A,l=function(e,t,i,s,n,r,o=document.body,l="ltr"){if(e.$o=document.activeElement,e instanceof eH.A){let i=document.createElement("iframe");if(i.setAttribute("title","Modal Message"),n&&(i.style.zIndex=(n+1).toString()),e8(i,e.message,r),i.onload=()=>{let n=i.contentWindow;n.focus();let a=n.document.getElementsByTagName("head")[0];if(null!=a){if(e.Mo()){let t=document.createElement("style");t.innerHTML=e.css||"",t.id=e.Oo()||"",null!=r&&t.setAttribute("nonce",r),a.appendChild(t)}let t=n.document.createElement("base");null!=t&&(t.setAttribute("target","_parent"),a.appendChild(t))}let o=n.document.getElementsByTagName("title");o&&o.length>0&&i.setAttribute("title",o[0].textContent||"");let l=Object.assign(Object.assign({},e5(i,(t,i)=>e.ll(t,i))),{closeMessage:function(){e.ll(i)},logClick:function(){e0(e,...arguments)}});if(n.appboyBridge=l,n.brazeBridge=l,e.ko!==eF.A.Eo.Bo){let t=n.document.getElementsByTagName("a");for(let n=0;n<t.length;n++)t[n].onclick=e1(e,i,t[n],s);let r=n.document.getElementsByTagName("button");for(let t=0;t<r.length;t++)r[t].onclick=e1(e,i,r[t],s)}let u=n.document.body;if(null!=u){e._o()&&(u.id=e.htmlId||"");let t=document.createElement("hidden");t.onclick=l.closeMessage,t.className="ab-programmatic-close-button",u.appendChild(t)}n.dispatchEvent(new CustomEvent("ab.BridgeReady")),-1!==i.className.indexOf("ab-start-hidden")&&(i.className=i.className.replace("ab-start-hidden",""),t(i))},i.className="ab-in-app-message ab-start-hidden ab-html-message ab-modal-interactions",F.A.OS===j.u.co){let t=document.createElement("div");return t.className="ab-ios-scroll-wrapper",t.appendChild(i),e.qo=t,t}return e.qo=i,i}let u=function(e,t,i,s,n,r=document.body,o="ltr"){var l;let u=null,h=document.createElement("div");h.dir=o,h.className="ab-in-app-message ab-start-hidden ab-background",n&&(h.style.zIndex=(n+1).toString()),e.zo()&&(h.className+=" ab-modal-interactions",h.setAttribute("tabindex","-1")),e.Mo()||(h.style.color=eJ(e.textColor),h.style.backgroundColor=eJ(e.backgroundColor),null==(l=e.backgroundColor)||isNaN(l=parseInt(l.toString()))||(0xff000000&l)>>>24!=0||(h.className+=" ab-no-shadow"));let c=()=>{-1!==h.className.indexOf("ab-start-hidden")&&(h.className=h.className.replace("ab-start-hidden",""),document.querySelectorAll(".ab-iam-img-loading").length>0?i(`Cannot show in-app message ${e.message} because another message is being shown.`,eF.A.Ao.Lo):t(h))},d=(t=!0)=>{let i=document.querySelectorAll(".ab-iam-root");i&&0!==i.length||(i=r.querySelectorAll(".ab-iam-root")),i&&i.length>0&&(i[0].classList.remove("ab-iam-img-loading"),u&&(clearTimeout(u),u=null),t?c():a.A.error(`Cannot show in-app message ${e.message} because the image failed to load.`))};if(e.imageStyle===eF.A.ImageStyle.GRAPHIC&&(h.className+=" graphic"),e.orientation===eF.A.Orientation.LANDSCAPE&&(h.className+=" landscape"),null!=e.buttons&&0===e.buttons.length){e.clickAction!==eF.A.ClickAction.NONE&&(h.className+=" ab-clickable");let t=t=>(e.ll(h,()=>{eQ(e),e.clickAction===eF.A.ClickAction.URI&&W(e.uri||"",s||e.openTarget===eF.A.OpenTarget.BLANK,t)}),t.stopPropagation(),!1);h.onclick=t,h.addEventListener("keydown",e=>{if(e.keyCode===L.c.Go||e.keyCode===L.c.Ho)return t(e)})}let p=U("Close Message",e.Mo()?void 0:eJ(e.closeButtonColor),()=>{e.ll(h)},o);h.appendChild(p),n&&(p.style.zIndex=(n+2).toString());let m=document.createElement("div");m.className="ab-message-text",m.dir=o,m.setAttribute("role","article");let b=(e.messageAlignment||e.Io).toLowerCase();m.className+=" "+b+"-aligned";let f=!1,g=document.createElement("div");if(g.className="ab-image-area",e.imageUrl){let t=document.createElement("img");if(t.setAttribute("src",e.imageUrl),e.Jo(t),0===document.querySelectorAll(".ab-iam-img-loading").length){f=!0;let e=document.querySelectorAll(".ab-iam-root");e&&e.length>0&&e[0].classList.add("ab-iam-img-loading"),u=window.setTimeout(()=>{d(!1)},6e4),t.onload=()=>{d()},t.onerror=()=>{d(!1)}}if(e.cropType===eF.A.CropType.CENTER_CROP){let e=document.createElement("div");e.className="ab-center-cropped-img",e.appendChild(t),g.appendChild(e)}else g.appendChild(t);h.appendChild(g),m.className+=" ab-with-image"}else if(e.icon){g.className+=" ab-icon-area";let t=document.createElement("span");t.className="ab-icon",e.Mo()||(t.style.backgroundColor=eJ(e.iconBackgroun
1dColor),t.style.color=eJ(e.iconColor));let i=document.createElement("i");i.className="fa",i.appendChild(document.createTextNode(e.icon)),i.setAttribute("aria-hidden","true"),t.appendChild(i),g.appendChild(t),h.appendChild(g),m.className+=" ab-with-icon"}if((0,P.P4)(m,"touchstart"),e.header&&e.header.length>0){let t=document.createElement("h1");t.className="ab-message-header",e.Ko=V.A.se(),t.id=e.Ko;let i=(e.headerAlignment||eF.A.TextAlignment.CENTER).toLowerCase();t.className+=" "+i+"-aligned",e.Mo()||(t.style.color=eJ(e.headerTextColor)),t.appendChild(document.createTextNode(e.header)),m.appendChild(t)}let v=e.No();return m.appendChild(v),h.appendChild(m),f||c(),e.qo=h,h}(e,t,i,s,n,o,l);if(e instanceof eq.A||e instanceof eW.A){var h,c;let t=e instanceof eq.A?"ab-fullscreen":"ab-modal";u.className+=` ${t} ab-centered`,((e,t,i)=>{if(e.buttons&&e.buttons.length>0){let s=document.createElement("div");s.className="ab-message-buttons",t.appendChild(s);let n=t.getElementsByClassName("ab-message-text")[0];null!=n&&(n.className+=" ab-with-buttons");let r=s=>n=>(e.ll(t,()=>{e7(s,e),s.clickAction===eF.A.ClickAction.URI&&W(s.uri||"",i||e.openTarget===eF.A.OpenTarget.BLANK,n)}),n.stopPropagation(),!1);for(let t=0;t<e.buttons.length;t++){let i=e.buttons[t],n=document.createElement("button");n.className="ab-message-button",n.setAttribute("type","button"),(0,P.P4)(n,"touchstart");let a=i.text;""===i.text&&(a="\xa0"),n.appendChild(document.createTextNode(a)),e.Mo()||(n.style.backgroundColor=eJ(i.backgroundColor),n.style.color=eJ(i.textColor),n.style.borderColor=eJ(i.borderColor)),n.onclick=r(i),s.appendChild(n)}}})(e,u,s),(e=>{let t=e.querySelectorAll(".ab-close-button, .ab-message-button");for(let e=0;e<t.length;e++)t[e].tabIndex=0;if(t.length>0){let i=t[0],s=t[t.length-1];e.addEventListener("keydown",t=>{let n=document.activeElement;t.keyCode===L.c.Wo&&(t.shiftKey||n!==s&&n!==e?t.shiftKey&&(n===i||n===e)&&(t.preventDefault(),s.focus()):(t.preventDefault(),i.focus()))})}})(u),h=e.Ko,(c=u).setAttribute("role","dialog"),c.setAttribute("aria-modal","true"),h?c.setAttribute("aria-labelledby",h):c.setAttribute("aria-label","Modal Message")}else if(e instanceof eK.A){let t,i;u.className+=" ab-slideup",u.setAttribute("tabindex","0"),u.setAttribute("role","alert");let s=u.getElementsByClassName("ab-close-button")[0];if(null!=s){let t=(0,P.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",e.Mo()?void 0:eJ(e.closeButtonColor));t.setAttribute("class",`ab-chevron ${l}`),s.appendChild(t)}(0,P.sr)(u,P.X.de,e=>{u.className+=" ab-swiped-left",null!=s&&null!=s.onclick&&s.onclick(e)}),(0,P.sr)(u,P.X.ce,e=>{u.className+=" ab-swiped-right",null!=s&&null!=s.onclick&&s.onclick(e)}),e.slideFrom===eF.A.SlideFrom.TOP?(t=P.X.Uo,i=" ab-swiped-up"):(t=P.X.Vo,i=" ab-swiped-down"),(0,P.sr)(u,t,e=>{u.className+=i,null!=s&&null!=s.onclick&&s.onclick(e)})}return u}(e,t=>{if(e.zo()&&e.od()){let i=document.createElement("div");if(i.className="ab-page-blocker",e.Mo()||(i.style.backgroundColor=eJ(e.frameColor)),g.Ay.re(g.lw.$a)&&(i.style.zIndex=g.Ay.re(g.lw.$a).toString()),r.appendChild(i),!g.Ay.re(g.lw.Oh)){let s=new Date().valueOf();i.onclick=i=>{new Date().valueOf()-s>eF.A.bh&&(e.ll(t),i.stopPropagation())}}r.appendChild(t),t.focus(),e.ah(r)}else if(o){let i=document.querySelectorAll(".ab-slideup"),s=null;for(let e=i.length-1;e>=0;e--)if(i[e]!==t){s=i[e];break}if(e.slideFrom===eF.A.SlideFrom.TOP){let e=0;null!=s&&(e=s.offsetTop+s.offsetHeight),t.style.top=Math.max(e,0)+"px"}else{let e=0;null!=s&&(e=(window.innerHeight||document.documentElement.clientHeight)-s.offsetTop),t.style.bottom=Math.max(e,0)+"px"}}else n&&!g.Ay.re(g.lw.Oh)&&(0,e4.B)(t)&&t.contentWindow&&t.contentWindow.addEventListener("keydown",function(t){t.keyCode===L.c.Ih&&e.closeMessage()});eZ(e),e.dismissType===eF.A.DismissType.AUTO_DISMISS&&setTimeout(()=>{r.contains(t)&&e.ll(t)},e.duration),"function"==typeof i&&i()},e=>{a.A.info(e)},g.Ay.re(g.lw.Ja),g.Ay.re(g.lw.$a),g.Ay.re(g.lw.er),t,Z.ra().Ta());return(n||o)&&(r.appendChild(l),e.ah(r)),!0}function e9(e){if(g.Ay.rr())return"function"!=typeof e?null:eV.A.ra().Tn(function(t){return e(t[0]),t.slice(1)})}function te(){if(!g.Ay.rr())return;eX();let e=eV.A.ra();if(null==e.kn()){let t=e9(e=>e6(e));e.Dn(t)}return e.kn()}function tt(e){if(g.Ay.rr())return e instanceof eG.A?(a.A.info("Not deferring since this is a ControlMessage."),!1):e instanceof eF.A?eV.A.ra().fn(e):(a.A.info("Not an instance of InAppMessage, ignoring."),!1)}
1function ti(){if(g.Ay.rr())return eV.A.ra().sa()}var ts=i(41957);function tn(){if(g.Ay.rr())return ts.A.isPushBlocked()}function tr(){if(g.Ay.rr())return ts.A.isPushPermissionGranted()}function ta(){if(g.Ay.rr())return ts.A.isPushSupported()}var to=i(91985),tl=i(65524),tu=i(87211),th=i(71626),tc=i(97652);function td(e){if(!g.Ay.rr())return;let t=g.Ay.l();if(t&&!t.Yr())return null;let i=tc.A.o().ho();return i[e]?i[e]:null}function tp(){if(!g.Ay.rr())return;let e=[],t=g.Ay.l();if(t&&!t.Yr())return e;let i=tc.A.o().ho();for(let t in i)e.push(i[t]);return e}function tm(e){if(!g.Ay.rr())return;let t=tc.A.o();if(t.To()){let t=tp();t&&"function"==typeof e&&e(t)}return t.It(e)}function tb(e){if(!g.Ay.rr())return;if(!e)return!1;let t="Not logging a feature flag impression. The feature flag was not part of any matching experiment.",i=tc.A.o().ho();if(!i[e])return a.A.info(t),!1;let s=i[e].trackingString;if(!s)return a.A.info(t),!1;let n=tc.A.o().do();return n[s]?(a.A.info("Not logging another feature flag impression. This ID was already logged this session."),!1):(n[s]=!0,tc.A.o().Fo(n),d.A.lt(m.w.xo,{fid:e,fts:s}).W)}var tf=i(97921);class tg extends tf.z{constructor(e,t,i,s=!1,n=!1,r=-1,a={}){super(a),this.id=e,this.placementId=t,this.html=i,this.At=s,this.isControl=n,this.Et=r,this.id=e,this.placementId=t,this.html=i,this.At=s,this.isControl=n,this.Et=r,this.Gt=!1}Ht(){return this.isControl}gt(){return{id:this.id,pid:this.placementId,html:this.html,its:this.At,ic:this.isControl,eat:this.Et,pr:this.properties}}}class tv extends k.A{constructor(e,t,i,s){super(),this.h=e,this.j=t,this.B=i,this.C=s,this.banners={},this.h=e,this.j=t,this.B=i,this.C=s,this.S=10,this.T=null,this.I=null,this.R=new r.A,g.Ay.q(this.R),this.D=null,this.F=null}N(e){if(this.k()&&null!=e&&e.banners){this.banners={};let i=e.banners;for(let e in i){var t;let s=i[e],n=null;null!=s&&null!=s.banner&&(n=new tg((t=s.banner).id,t.placement_id,t.html,t.is_test_send,t.is_control,t.expires_at,t.properties)),n&&(this.banners[e]=n)}this.U(),this.R.L(this.banners)}}M(e,t,i,s=!0){var r;let a=()=>{"function"==typeof i&&i()};if(!this.k())return void(null==(r=this.h)||r.P(()=>{this.M(e,t,i)}));let o=this.j;if(!o)return void a();s&&this.X();let l=o.$({},!0),u=[];for(let t of e)u.push({id:t});l.placements=u;let h=o.A(l,B.A.H.G),c=!1;o.J(l,(s=-1)=>{let r=this.j;if(!r)return void a();let o=new Date().valueOf();B.A.K(this.B,B.A.H.G,o),-1!==s&&h.push(["X-Braze-Req-Tokens-Remaining",s.toString()]),S.A.O({url:`${r.V()}/banners/sync`,headers:h,data:l,W:e=>{r.Y(l,e,h)?(r.Z(),this.N(e),c=!1,"function"==typeof t&&t()):(c=!0,a())},error:e=>{r._(e,"retrieving banners"),c=!0,a()},tt:(s,a)=>{var o,l,u;let h;if(this.F=e,c){let e=(null==(o=this.h)?void 0:o.st())||n.xm,t=(null==(l=this.h)?void 0:l.it())||n.MF,i=(null==(u=this.h)?void 0:u.nt())||n.T,s=this.T;(null==s||s<e)&&(s=e),h=Math.min(i,(0,I.C)(e,s*t))}r.et(a,()=>{this.M(e,t,i,!1)},B.A.H.G,e=>this.rt(e),()=>this.X(),h)}})},B.A.H.G,i)}ot(){return this.F}ht(e,t){let i={id:e.id};return t&&(i.bid=t),d.A.lt(m.w.ut,i).W}X(){null!=this.I&&(clearTimeout(this.I),this.I=null)}rt(e){this.X(),this.I=e}ct(){let e={};this.B&&(e=this.B.dt(b.d.ft.vt));let t={};for(let s in e){var i;let n=null;null!=e[s]&&(n=new tg((i=e[s]).id,i.pid,i.html,i.its,i.ic,i.eat,i.pr)),n&&(t[n.placementId]=n)}return t}U(){var e;if(!this.B)return;let t={};for(let i in this.banners){let s=(null==(e=this.banners[i])?void 0:e.gt())||null;t[i]=s}this.B.bt(b.d.ft.vt,t),this.jt()}jt(){var e,t;null==(e=this.B)||e.bt(b.d.ft.Bt,null==(t=this.C)?void 0:t.yt())}Ct(){var e;return(null==(e=this.B)?void 0:e.dt(b.d.ft.Bt))||null}St(){return this.D}wt(e){this.D=e}Tt(){var e;let t=null==(e=this.C)?void 0:e.yt(),i=this.Ct();return null==i||t===i}It(e){return this.R.Rt(e)}qt(){var e;return(null==(e=this.B)?void 0:e.dt(b.d.ft.Dt))||{}}Ft(e){this.B&&this.B.bt(b.d.ft.Dt,e)}changeUser(){this.Nt(),this.X()}clearData(){this.X()}k(){return!!this.h&&(!!this.h.kt()||(0!==this.h.xt()&&this.Nt(),!1))}Nt(){this.banners={},this.B&&(this.B.zt(b.d.ft.vt),this.B.zt(b.d.ft.Dt)),this.R.L({})}}let tA={i:!1,provider:null,o:()=>(tA.t(),tA.provider||(tA.provider=new tv(g.Ay.l(),g.Ay.m(),g.Ay.p(),g.Ay.u()),g.Ay.v(tA.provider)),tA.provider),t:()=>{tA.i||(g.Ay.g(tA),tA.i=!0)},destroy:()=>{tA.provider=null,tA.i=!1}};function ty(e,t){let i=e[t];if(!i)return null;let s=i.Et,n=new Date().valueOf();return -1!==s&&1e3*s<n?(a.A.info(`Banner with ID: ${i.id} and placement ID: ${t} has expired.`),null):i}function tw(e){var t;if(!g.Ay.rr())return;!1===(null==(t=g.Ay.l())?void 0:t.kt())&&a.A.error(en);let i=tA.o();return i.k()?ty(i.ct(),e):null}function tx(e,t){if(!g.Ay.rr())return;if(!(e instanceof tg))return a.A.error("Banner argument to logBannerClick must be an Banner object."),!1;let i=tA.o(),s=i.ct();return 0===(0,w.HP)(s).length?(a.A.info("Not logging banner click. No banners exist."),!1):s[e.placementId]?i.ht(e,t):(a.A.info(`Not logging banner click for ID ${e.placementId}. The placement ID did not correspond to any banner.`),!1)}let tE="data-ab-banner-placement-id";function tS(e,t){if(e.Ht()){let t;return(t=document.createElement("div")).id=e.id,t.className="ab-html-control-banner",t.setAttribute(tE,e.placementId),t}let i=document.createElement("iframe");return i.id=e.id,t&&i.setAttribute("nonce",t),i.className="ab-html-banner",i.setAttribute(tE,e.placementId),i.setAttribute("title","Banner"),e8(i,e.html,t),i.onload=()=>{let t=i.contentWindow,s=t.document.getElementsByTagName("title");s&&s.length>0&&i.setAttribute("title",s[0].textContent||"");let n=Object.assign(Object.assign({},e5(i)),{logClick:function(){tx(e,...arguments)},closeMessage:function(){},setBannerHeight:e=>{isNaN(e)||!isFinite(e)||e<0?a.A.warn(`Invalid banner height: ${e}`):i.style.height=`${e}px`}});t.brazeBridge=n,t.appboyBridge=n,t.dispatchEvent(new CustomEvent("ab.BridgeReady"))},i}function tk(e){if(!g.Ay.rr())return;if(!e||e.length<=0)return!1;let t=tA.o(),i=t.ct();if(0===(0,w.HP)(i).length)return a.A.info("Not logging banners impression. No banners exist."),!1;let s=t.qt(),n=[];for(let t of e){let e=i[t];e?s[e.placementId]?a.A.info(`Not logging banners impression for ID ${t}. This ID was already logged this session.`):(s[e.placementId]=!0,n.push(e.id)):a.A.info(`Not logging banners impression for ID ${t}. The placement ID did not correspond to any banner.`)}return 0!==n.length&&(t.Ft(s),d.A.lt(m.w.ro,{ids:n}).W)}function tC(){let e=document.querySelectorAll(".ab-html-banner, .ab-html-control-banner"),t=[];for(let i=0;i<e.length;i++){let s=e[i],n=s.getAttribute(tE);if(!n)continue;let r=ee(s),a=ei(s);if(r&&a)continue;let o=(0,P.Kz)(s),l=(0,P.K)(s);o&&!r&&et(s),l&&!a&&es(s),ee(s)&&ei(s)&&t.push(n)}t.length>0&&tk(t)}function tT(){if(!g.Ay.rr())return;let e={},t=g.Ay.l();if(!1===(null==t?void 0:t.kt())&&a.A.error(en),!(null==t?void 0:t.kt()))return e;let i=tA.o().ct();for(let t in i)e[t]=ty(i,t);return e}function tN(e){var t;if(!g.Ay.rr())return;let i=tA.o();if(i.Tt()){let t=tT();t&&"function"==typeof e&&e(t)}let s=i.It(e);if(!i.St()){let e=null==(t=g.Ay.nn())?void 0:t.rn(()=>{let e=i.ot();e&&e.length>0&&i.M(e)});e&&i.wt(e)}return s}function tB(e,t){if(!g.Ay.rr())return;if(!e)return void a.A.error("Not inserting banner: banner was not provided.");if(!t)return void a.A.error("Not inserting banner: parentNode was not provided.");if(!g.Ay.re(g.lw.te))return void a.A.error("Banners are disabled. Use the 'allowUserSuppliedJavascript' option for braze.initialize to enable these messages.");em(void 0,"banner",".ab-html-banner{width:100%;height:100%;border:none;display:block}.ab-html-control-banner{width:0;height:0;margin:0;border:none}");let i=tS(e,g.Ay.re(g.lw.er)),s=tN(s=>{let n,r=s[e.placementId];r?t.replaceChildren(tS(r,g.Ay.re(g.lw.er))):(null!=(n=i.getAttribute(er))&&Q(n),i&&i.parentNode&&i.parentNode.removeChild(i))});s&&i.setAttribute(er,s),t.replaceChildren(i),(0,P.P4)(window,"scroll",tC),tC()}},77752:(e,t,i)=>{i.d(t,{B9:()=>w,Dz:()=>b,L4:()=>S,To:()=>E,Z2:()=>y,ZJ:()=>f,fB:()=>A,nx:()=>p,rK:()=>v,uZ:()=>g,xs:()=>x});var s=i(68286),n=i(48754),r=i(72071),a=i(9099),o=i(51533),l=i(17129);let u=/^[^\x00-\x1F\x22]+$/,h=/[$.]/,c=["$add","$update","$remove","$identifier_key","$identifier_value","$new_object","$time","$google_ad_personalization","$google_ad_user_data"],d=/^[^@\s]+@[^@\s]+\.[^@\s]+$/,p=/^brazeActions:\/\/v\d+\//,m=/^[^\s]+$/;function b(e,t,i){let s=null!=e&&"string"==typeof e&&(""===e||null!=e.match(u));return s||r.A.error(`Cannot ${t} because ${i} "${e}
1" is invalid.`),s}function f(e){return null!=e&&e.match(h)&&-1===c.indexOf(e)&&r.A.warn("Custom attribute keys cannot contain '$' or '.'"),b(e,"set custom user attribute","the given key")}function g(e){let t=typeof e;return null==e||"number"===t||"boolean"===t||(0,s.$P)(e)||"string"===t}function v(e,t,i,s=!1){let n="string"==typeof e||null===e&&s;return n||r.A.error(`Cannot ${t} because ${i} "${e}" is invalid.`),n}function A(e,t,i,o,u){let h,c,d;if(null==e&&(e={}),"object"!=typeof e||(0,s.cy)(e))return r.A.error(`${t} requires that ${i} be an object. Ignoring ${u}.`),[!1,null];t===l.em.Ku?(h=76800,c="75KB"):(h=51200,c="50KB");let p=JSON.stringify(e);if((0,n.N)(p)>h)return r.A.error(`Could not ${o} because ${i} was greater than the max size of ${c}.`),[!1,null];try{d=JSON.parse(p)}catch(e){return r.A.error(`Could not ${o} because ${i} did not contain valid JSON.`),[!1,null]}for(let i in e){if(t===l.em.Ku&&!f(i)||!b(i,o,`the ${u} property name`))return[!1,null];let n=e[i];if(t!==l.em.Ku&&null==n){delete e[i],delete d[i];continue}if((0,s.$P)(n)&&(d[i]=(0,a.EQ)(n)),!function(e,t,i,n,o){let l;return(l=(0,s.Gv)(e)||(0,s.cy)(e)?function e(t,i,n){let o=-1!==n;if(o&&n>50)return r.A.error("Nested attributes cannot be more than 50 levels deep."),!1;let l=o?n+1:-1;if((0,s.cy)(t)&&(0,s.cy)(i)){for(let n=0;n<t.length&&n<i.length;n++)if((0,s.$P)(t[n])&&(i[n]=(0,a.EQ)(t[n])),!e(t[n],i[n],l))return!1}else{if(!(0,s.Gv)(t))return g(t);for(let n of(0,s.HP)(t)){let r=t[n];if(o&&!f(n)||((0,s.$P)(r)&&(i[n]=(0,a.EQ)(r)),!e(r,i[n],l)))return!1}}return!0}(e,t,o?1:-1):g(e))||r.A.error(`Cannot ${i} because ${n} "${e}" is invalid.`),l}(n,d[i],o,`the ${u} property "${i}"`,t===l.em.Ku))return[!1,null]}return[!0,d]}function y(e,t){let i=!1,n=!1,a=()=>{r.A.error("Custom attribute arrays must be either string arrays or object arrays.")};for(let r of t)if("string"==typeof r){if(n)return a(),[!1,!1];if(!b(r,`set custom user attribute "${e}"`,"the element in the given array"))return[!1,!1];i=!0}else{if(!(0,s.Gv)(r)||i)return a(),[!1,!1];if(!A(r,l.em.Ku,"attribute value",`set custom user attribute "${e}"`,"custom user attribute"))return[!1,!1];n=!0}return[i,n]}function w(e){if("string"!=typeof e)return!1;let t=e.length;return!(0===t||t>256)&&d.test(e.toLowerCase())}function x(e){if(!(o.V.properties.type in e))return!1;switch(e[o.V.properties.type]){case o.V.types.io:if(o.V.properties.eo in e)return!0;break;case o.V.types.logCustomEvent: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:case o.V.types.mo:case o.V.types.uo:if(o.V.properties.so in e)return!0;break;case o.V.types.requestPushPermission:return!0}return!1}function E(e){let t=!1;return Object.keys(o.V.types).forEach(i=>{o.V.types[i]!==e.toString()||(t=!0)}),t}function S(e){return m.test(e)}},79328:(e,t,i)=>{i.r(t),i.d(t,{logPurchase:()=>c});var s=i(84108),n=i(17129),r=i(72071),a=i(11457),o=i(29885),l=i(98e3),u=i(77752),h=i(56183);function c(e,t,i,c,d){if(!s.Ay.rr())return!1;if(null==i&&(i="USD"),null==c&&(c=1),null==e||e.length<=0)return r.A.error(`logPurchase requires a non-empty productId, got "${e}", ignoring.`),!1;if(!(0,u.Dz)(e,"log purchase","the purchase name"))return!1;if(null==t||isNaN(parseFloat(t.toString())))return r.A.error(`logPurchase requires a numeric price, got ${t}, ignoring.`),!1;let p=parseFloat(t.toString()).toFixed(2);if(null==c||isNaN(parseInt(c.toString())))return r.A.error(`logPurchase requires an integer quantity, got ${c}, ignoring.`),!1;let m=parseInt(c.toString());if(m<1||m>n.$k)return r.A.error(`logPurchase requires a quantity >1 and <${n.$k}, got ${m}, ignoring.`),!1;if(-1===["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BRL","BSD","BTC","BTN","BWP","BYR","BZD","CAD","CDF","CHF","CLF","CLP","CNY","COP","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EEK","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GGP","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","IMP","INR","IQD","IRR","ISK","JEP","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LTL","LVL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MTL","MUR","MVR","MWK","MXN","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","STD","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","UYU","UZS","VEF","VND","VUV","WST","XAF","XAG","XAU","XCD","XDR","XOF","XPD","XPF","XPT","YER","ZAR","ZMK","ZMW","ZWL"].indexOf(i=null!=i?i.toUpperCase():i))return r.A.error(`logPurchase requires a valid currencyCode, got ${i}, ignoring.`),!1;let[b,f]=(0,u.fB)(d,"logPurchase","purchaseProperties",`log purchase "${e}"`,"purchase");if(!b)return!1;let g=s.Ay.l();if(g&&g.Dr(e))return r.A.info(`Purchase "${e}" is blocklisted, ignoring.`),!1;let v=h.A.lt(a.w.Pr,{pid:e,c:i,p:p,q:m,pr:f});if(v.W)for(let t of(r.A.info(`Logged ${m} purchase${m>1?"s":""} of "${e}" for ${i} ${p}
1.`),v.Ee))l.B.o().he(o.A.Rr,[e,d],t);return v.W}},80905:(e,t,i)=>{i.d(t,{B:()=>s});let s=e=>null!==e&&"IFRAME"===e.tagName},81642:(e,t,i)=>{i.d(t,{A:()=>s});let s={BROWSER:"browser",BROWSER_VERSION:"browserVersion",OS:"os",RESOLUTION:"resolution",LANGUAGE:"language",TIME_ZONE:"timeZone",USER_AGENT:"userAgent"}},81904:(e,t,i)=>{i.d(t,{b:()=>n});var s=i(56778);function n(e){let t,i=null==e?void 0:e.dt(s.d.ft.uE);return i&&(t={label:i.l,name:i.a}),t}},82728:(e,t,i)=>{i.d(t,{A:()=>o});var s=i(84108),n=i(81904),r=i(68286),a=i(9099);class o{constructor(e,t,i,s,n){this.userId=e,this.type=t,this.time=i,this.sessionId=s,this.data=n,this.userId=e,this.type=t,this.time=(0,a.S3)(i),this.sessionId=s,this.data=n}Hn(){var e;let t={name:this.type,time:(0,a.UK)(this.time),data:this.data||{},session_id:this.sessionId};null!=this.userId&&(t.user_id=this.userId);let i=(null==(e=s.Ay.Sr())?void 0:e.wh())||!1;if(!t.user_id&&!i){let e=(0,n.b)(s.Ay.p());e&&(t.alias=e)}return t}gt(){return{u:this.userId,t:this.type,ts:this.time,s:this.sessionId,d:this.data}}static fromJson(e){return new o(e.user_id,e.name,e.time,e.session_id,e.data)}static gE(e){return null!=e&&(0,r.Gv)(e)&&null!=e.t&&""!==e.t}static _u(e){return new o(e.u,e.t,e.ts,e.s,e.d)}}},83748:(e,t,i)=>{i.d(t,{A:()=>s});class s{constructor(e=!1,t=[]){this.W=e,this.Ee=t,this.W=e,this.Ee=t}Yt(e){this.W=this.W&&e.W,this.Ee.push(...e.Ee)}}},84108:(e,t,i)=>{i.d(t,{lw:()=>V,Ay:()=>J});var s=i(56778),n=i(18436),r=i(55323),a=i(72071);class o{constructor(e,t,i){this.B=e,this.gh=t,this.ph=i,this.B=e,this.gh=t||!1,this.ph=i,this.Fh=new n.A,this.kh=0,this.fh=1}wh(){return this.gh}jh(){return this.B.dt(s.d.ft.xh)}setSdkAuthenticationSignature(e){let t=this.jh();this.B.bt(s.d.ft.xh,e);let i=r.A.Us.Rs;new r.A(i,a.A).setItem(i.Fs.qh,this.fh,e),t!==e&&this.Z()}yh(){this.B.zt(s.d.ft.xh);let e=r.A.Us.Rs;new r.A(e,a.A).je(e.Fs.qh,this.fh)}subscribeToSdkAuthenticationFailures(e){return this.ph.Rt(e)}Bh(e){this.ph.L(e)}Gh(){this.Fh.removeAllSubscriptions()}Hh(){this.kh+=1}Jh(){return this.kh}Z(){this.kh=0}}var l=i(24921),u=i(28710);class h{constructor(e){this.id=e,this.id=e}Hn(){let e={};return null!=this.browser&&(e.browser=this.browser),null!=this.ec&&(e.browser_version=this.ec),null!=this.os&&(e.os_version=this.os),null!=this.resolution&&(e.resolution=this.resolution),null!=this.language&&(e.locale=this.language),null!=this.timeZone&&(e.time_zone=this.timeZone),null!=this.userAgent&&(e.user_agent=this.userAgent),e}}var c=i(81642),d=i(60082),p=i(85142),m=i(68286),b=i(13875);class f{constructor(e,t){this.B=e,this.tc=t,this.B=e,null==t&&(t=(0,m.zu)(c.A)),this.tc=t}ve(e=!0){let t=this.B.$u(s.d.Ou.tl);null==t&&(t=new d.A(p.A.se()),e&&this.B.Iu(s.d.Ou.tl,t));let i=new h(t.Tu);for(let e=0;e<this.tc.length;e++)switch(this.tc[e]){case c.A.BROWSER:i.browser=u.A.browser;break;case c.A.BROWSER_VERSION:i.ec=u.A.version;break;case c.A.OS:i.os=this.rc();break;case c.A.RESOLUTION:i.sc=screen.width+"x"+screen.height;break;case c.A.LANGUAGE:i.language=u.A.language;break;case c.A.TIME_ZONE:i.timeZone=this.oc(new Date);break;case c.A.USER_AGENT:i.userAgent=u.A.userAgent}return i}rc(){if(u.A.nc())return u.A.nc();let e=this.B.dt(s.d.ft.ac);return e&&e.os_version?e.os_version:u.A.rc()}oc(e){let t=!1;if("u">typeof Intl&&"function"==typeof Intl.DateTimeFormat)try{if("function"==typeof Intl.DateTimeFormat().resolvedOptions){let e=Intl.DateTimeFormat().resolvedOptions().timeZone;if(null!=e&&""!==e)return e}}catch(e){a.A.info("Intl.DateTimeFormat threw an error, cannot detect user's time zone:"+(0,b.u)(e)),t=!0}if(t)return"";let i=e.getTimezoneOffset();return this.cc(i)}cc(e){let t=Math.trunc(e/60),i=Math.trunc(e%60),s="GMT";return 0!==e&&(s+=(e<0?"+":"-")+(("00"+Math.abs(t)).slice(-2)+":")+("00"+Math.abs(i)).slice(-2)),s}}var g=i(8149),v=i(82728),A=i(9099),y=i(56183),w=i(11457),x=i(66541),E=i(17129),S=i(81904),k=i(65098);class C{constructor(e,t,i,s,n,r,a,o,l,u,h,c){this.eu=e,this.B=t,this.hl=i,this.vs=s,this.C=n,this.h=r,this.tu=a,this.al=o,this.sl=l,this.rl=u,this.appVersion=h,this.vl=c,this.Rl=e=>null==e?"":`${e} `,this.eu=e,this.B=t,this.hl=i,this.vs=s,this.C=n,this.h=r,this.tu=a,this.al=o,this.sl=l,this.rl=u,this.appVersion=h,this.vl=c,this.bl=["npm"],this.ql={}}$(e,t=!1,i=!1){let n=this.eu.ve(!i),r=n.Hn(),a=this.B.dt(s.d.ft.ac);(0,m.n4)(a,r)||(e.device=r),e.api_key=this.tu,e.time=(0,A.UK)(new Date().valueOf(),!0);let o=this.B.dt(s.d.ft.Dl)||[],l=this.B.dt(s.d.ft.Tl)||"";this.bl.length>0&&(!(0,m.n4)(o,this.bl)||l!==this.C.yt())&&(e.sdk_metadata=this.bl),e.sdk_version=this.sl,this.rl&&(e.sdk_flavor=this.rl),e.app_version=this.appVersion,e.app_version_code=this.vl,e.device_id=n.id;let u=this.vs.getUserId();if(t&&null!==u&&(e.user_id=u),!u&&!this.hl.wh()){let t=(0,S.b)(this.B);t&&(e.alias=t)}return e}Y(e,t,i){let s=t.auth_error,n=t.error;if(!s&&!n)return!0;
1if(s){let t;this.hl.Hh();let n={errorCode:s.error_code};for(let e of i)(0,m.cy)(e)&&"X-Braze-Auth-Signature"===e[0]&&(n.signature=e[1]);e.respond_with&&e.respond_with.user_id?n.userId=e.respond_with.user_id:e.user_id&&(n.userId=e.user_id);let r=s.reason;return r?(n.reason=r,t=`due to ${r}`):t=`with error code ${s.error_code}.`,this.hl.wh()||(t+=' Please use the "enableSdkAuthentication" initialization option to enable authentication.'),a.A.error(`SDK Authentication failed ${t}`),this.kl(e.events||[],e.attributes||[]),this.hl.Bh(n),!1}if(n){let i,s=n;switch(s){case g.A.yl:return i="Received successful response with empty body.",y.A.lt(w.w.wl,{e:i}),a.A.info(i),!1;case g.A.Cl:return i="Received successful response with invalid JSON",y.A.lt(w.w.wl,{e:i+": "+t.response}),a.A.info(i),!1;case g.A.Bl:s=`The API key "${e.api_key}" is invalid for the baseUrl ${this.al}`;break;case g.A.zl:s="Sorry, we are not currently accepting your requests. If you think this is in error, please contact us.";break;case g.A.jl:s="No device identifier. Please contact [email protected]"}a.A.error("Backend error: "+s)}return!1}Ml(e,t,i){return!!(e&&0!==e.length||t&&0!==t.length||i)}$l(e,t,i,s=!1){let n=[],r=e=>e||"",a=r(this.vs.getUserId()),o=this.Xn(e),l=[],u=[],h,c=null;if(t.length>0){let e=[];for(let i of t){if(h=i.Hn(),this.hl.wh()){if(a&&!h.user_id){c||(c={}),c.events||(c.events=[]),c.events.push(h);continue}if(r(h.user_id)!==a){u.push(h);continue}}e.push(h)}e.length>0&&(o.events=e)}if(i.length>0){let e=[];for(let t of i)t&&(this.hl.wh()&&r(t.user_id)!==a?l.push(t):e.push(t));e.length>0&&(o.attributes=e)}if(this.kl(u,l),o=this.$(o,!1,s),c){let e={requestData:c=this.$(c,!1,s),headers:this.A(c,x.A.H.Ze)};n.push(e)}if(o&&!this.Ml(o.events,o.attributes,e))return c?n:null;let d={requestData:o,headers:this.A(o,x.A.H.Ze)};return n.push(d),n}kl(e,t){if(e){let t=[];for(let i of e){let e=v.A.fromJson(i);e.time=(0,A.YX)(e.time),t.push(e)}this.B.ol(t)}if(t)for(let e of t)this.B.Xl(e)}_(e,t){let i="HTTP error ";null!=e&&(i+=e+" "),i+=t,a.A.error(i)}Ll(e){return y.A.lt(w.w.Fl,{n:e})}Xn(e,t){let i={};e&&(i.triggers=!0);let s=null!=t?t:this.vs.getUserId();if(s&&(i.user_id=s),!i.user_id&&!this.hl.wh()){let e=(0,S.b)(this.B);e&&(i.alias=e)}return i.config={config_time:this.h.xt()},{respond_with:i}}Kl(e){let t=new Date().valueOf(),i=E.mO.toString(),s=x.A.Pl(this.B,e);return -1!==s&&(i=(t-s).toString()),i}A(e,t,i=!1){let s=[["X-Braze-Api-Key",this.tu]],n=this.Kl(t);s.push(["X-Braze-Last-Req-Ms-Ago",n]);let r=x.A.Ul(this.B,t).toString();s.push(["X-Braze-Req-Attempt",r]);let a=!1;if(null!=e.respond_with&&e.respond_with.triggers&&(s.push(["X-Braze-TriggersRequest","true"]),a=!0),t===x.A.H.vi){s.push(["X-Braze-ContentCardsRequest","true"]);let e=x.A.Ul(this.B,x.A.H.vi);e&&!i||(e=1,x.A.xl(this.B,x.A.H.vi,e));let t=Math.max(0,e-1);s.push(["BRAZE-SYNC-RETRY-COUNT",t.toString()]),a=!0}if(t===x.A.H.wo&&(s.push(["X-Braze-FeatureFlagsRequest","true"]),a=!0),a&&s.push(["X-Braze-DataRequest","true"]),this.hl.wh()){let e=this.hl.jh();null!=e&&s.push(["X-Braze-Auth-Signature",e])}return s}Hl(e,t,i,s){if(this.ql[s])return;let n=window.setTimeout(()=>{a.A.info(`Retrying rate limited ${this.Rl(s)}SDK request.`),this.J(t,i,s)},e);this.ql[s]=n}fo(){for(let e in this.ql){let t=this.ql[e];window.clearTimeout(t)}this.ql={}}J(e,t,i,n){if(!this.Ol(i))return a.A.info(`${this.Rl(i)}SDK request being rate limited.`),void("function"==typeof n&&n());let r=this.Gl();if(!r.Wl)return this.Hl(r.Yl,e,t,i),void a.A.info(`${this.Rl(i)}SDK request being rate limited. Request will be retried in ${Math.trunc(r.Yl/1e3)} seconds.`);this.B.bt(s.d.ft.Jl,new Date().valueOf());let o=e.device;o&&o.os_version instanceof Promise?o.os_version.then(i=>{e.device.os_version=i,t(r.Ql)}):t(r.Ql)}Vl(e){let t=e?(0,k.s)(e):null;if(!t||!t["retry-after"])return null;let i=t["retry-after"];return isNaN(i)&&!isNaN(Date.parse(i))?{type:"date",value:Date.parse(i)}:isNaN(parseFloat(i.toString()))?(y.A.lt(w.w.wl,{e:"Received unexpected value for retry-after header in /sync response: "+i}),null):{type:"timestamp",value:1e3*parseFloat(i.toString())}}et(e,t,i,s,n,r){let a;if(x.A.Ul(this.B,i)>=E.uR)return;r=r||0;let o=this.Vl(e);n();let l=e=>{s(window.setTimeout(()=>{t()},e)),x.A.Zl(this.B,i)};if(o&&!isNaN(o.value)){switch(o.type){case"date":(a=o.value-new Date().getTime()+r)<0&&t();break;case"timestamp":a=o.value+r}l(a)}else r?l(r):x.A.fi(this.B,i)}hc(e){var t;null==(t=this.B)||t.bt(s.d.ft.uc,e)}lc(e,t){let i=this.dc();null==i&&(i={}),i[e]=t,this.B.bt(s.d.ft.fc,i)}mc(){var e;return null==(e=this.B)?void 0:e.dt(s.d.ft.uc)}dc(){var e;return null==(e=this.B)?void 0:e.dt(s.d.ft.fc)}vc(e,t,i,s,n=""){let r;if(n){let e=this.dc();r=null==e||isNaN(e[n])?t:e[n]}else(null==(r=this.mc())||isNaN(r))&&(r=t);return Math.min(r+(e-s)/1e3/i,t)}Rc(e,t){return Math.max(0,(1-e)*t*1e3)}gc(e,t=""){var i,n,r,a,o;let l={Wl:!0,Ql:-1,Yl:0};if(null==e&&(e=!0),!e&&!t)return l;let u,h,c=null;if(e)c=null==(i=this.B)?void 0:i.dt(s.d.ft.Jl);else{let e=x.A.bc(this.B);if(null==e||null==e[t])return l;c=e[t]}if(null==c||isNaN(c)||(e?(u=(null==(n=this.h)?void 0:n.qc())||-1,h=(null==(r=this.h)?void 0:r.Ac())||-1):(u=(null==(a=this.h)?void 0:a.Dc(t))||-1,h=(null==(o=this.h)?void 0:o.Tc(t))||-1),-1===u||-1===h))return l;let d=new Date().valueOf(),p=this.vc(d,u,h,c,t);return p<1?(l.Wl=!1,l.Yl=this.Rc(p,h)):(l.Ql=p=Math.trunc(p)-1,e?this.hc(p
1):this.lc(t,p)),l}Gl(){return this.gc(!0)}Ol(e){let t=this.gc(!1,e);return!(t&&!t.Wl)}Z(){this.hl.Z()}V(){return this.al}addSdkMetadata(e){for(let t of e)-1===this.bl.indexOf(t)&&this.bl.push(t)}}var T=i(96009),N=i(83748),B=i(41957),I=i(88849);class _{constructor(e,t,i,s,r,a,o,l,u,h){this.tu=e,this.baseUrl=t,this.C=i,this.eu=s,this.vs=r,this.h=a,this.B=o,this.$c=l,this.hl=u,this.j=h,this.tu=e,this.baseUrl=t,this.Zc=0,this.bE=o.dE()||0,this.sd=null,this.C=i,this.eu=s,this.vs=r,this.h=a,this.B=o,this.hl=u,this.j=h,this.$c=l,this.hd=new n.A,this.nd=null,this.rd=50,this.ld=!1,this.ud=!1}ad(e,t){return!e&&!t&&this.hl.Jh()>=this.rd}md(e){let t=this.C.am();if(e.length>0){let i=this.vs.getUserId();for(let s of e){let e=!s.userId&&!i||s.userId===i;s.type===w.w.Sm&&e&&(t=!0)}}return t}fd(e=!1,t=!0,i,n,r,o=!1,l=!1){t&&this.gd();let u=this.B.RE(),h=this.B.IE(),c=!1,d=(e,a,o=-1)=>{let l=new Date().valueOf();x.A.K(this.B,x.A.H.Ze,l),-1!==o&&a.push(["X-Braze-Req-Tokens-Remaining",o.toString()]);let u=!1;k.A.O({url:this.baseUrl+"/data/",data:e,headers:a,W:t=>{null!=e.respond_with&&e.respond_with.triggers&&(this.Zc=Math.max(this.Zc-1,0)),this.j.Y(e,t,a)?(this.hl.Z(),this.h.Sc(t),null!=e.respond_with&&e.respond_with.user_id!=this.vs.getUserId()||(null!=e.device&&this.B.bt(s.d.ft.ac,e.device),null!=e.sdk_metadata&&(this.B.bt(s.d.ft.Dl,e.sdk_metadata),this.B.bt(s.d.ft.Tl,this.C.yt())),this.$c(t),x.A.xl(this.B,x.A.H.Ze,1),"function"==typeof i&&i())):t.auth_error&&(u=!0)},error:()=>{u=!0,null!=e.respond_with&&e.respond_with.triggers&&(this.Zc=Math.max(this.Zc-1,0)),this.j.kl(e.events,e.attributes),"function"==typeof n&&n()},tt:(e,i)=>{"function"==typeof r&&r(!u);let s=this.j.Vl(i),n=0;if(s)switch(s.type){case"date":n=Math.max(s.value-new Date().valueOf(),0);break;case"timestamp":n=s.value}if(t&&!c){if(u){x.A.Zl(this.B,x.A.H.Ze);let e=this.h.st(),t=this.h.it(),i=this.h.nt(),s=this.sd;(null==s||s<e)&&(s=e);let r=Math.min(i,(0,T.C)(e,s*t))+n;this.pd(r)}else this.pd(Math.max(1e3*this.bE,n));c=!0}}})},p=this.md(u),m=e||p;if(this.ad(o,p))return void a.A.info("Declining to flush data due to 50 consecutive authentication failures");if(t&&!this.j.Ml(u,h,m))return this.pd(),void("function"==typeof r&&r(!0));let b=this.j.$l(m,u,h,l);m&&this.Zc++;let f=!1;if(b)for(let e of b)this.j.J(e.requestData,t=>d(e.requestData,e.headers,t),x.A.H.Ze,n),f=!0;this.hl.wh()&&t&&!f?this.pd():p&&(a.A.info("Invoking new session subscriptions"),this.hd.L(),this.ud=!0)}vd(){return this.Zc>0}pd(e=1e3*this.bE){this.ld||(this.gd(),this.nd=window.setTimeout(()=>{if(document.hidden){let e="visibilitychange",t=()=>{document.hidden||(document.removeEventListener(e,t,!1),this.fd())};document.addEventListener(e,t,!1)}else this.fd()},e),this.sd=e)}gd(){null!=this.nd&&(clearTimeout(this.nd),this.nd=null)}initialize(){this.ld=!1,this.pd()}destroy(){this.hd.removeAllSubscriptions(),this.hl.Gh(),this.gd(),this.ld=!0,this.fd(void 0,!1,void 0,void 0,void 0,void 0,!0),this.nd=null,this.ud=!1}rn(e){return this.ud?(e(),null):this.hd.Rt(e)}openSession(){let e=this.C.yt()!==this.C.el();e&&(this.B.hE(s.d.Ou.tl),this.B.hE(s.d.Ou.Cu)),this.fd(!1,void 0,()=>{e&&(this.B.zt(s.d.ft.vo),this.B.zt(s.d.ft.Dt))}),this.Ya(),e&&Promise.resolve().then(i.bind(i,57505)).then(e=>{if(this.ld)return;let t=e.default.ra();if(null!=t&&(B.A.isPushPermissionGranted()||B.A.isPushBlocked())){let e=()=>{t.du()?a.A.info("Push token maintenance is disabled, not refreshing token for backend."):t.subscribe()},i=()=>{let t=this.B.dt(s.d.ft.Uu);(null==t||t)&&e()},n=r.A.Us.Rs;new r.A(n,a.A).kr(n.Fs.Fu,(t,i)=>{i&&e()},i)}})}bd(){this.B.zt(s.d.ft.lo),this.B.zt(s.d.ft.Ps),this.B.zt(s.d.ft.Wn)}wd(){var e,t;this.B.zt(s.d.ft.Jl),this.B.zt(s.d.ft.lE);let i=x.A.H;for(let t in i){let s=i[t];this.j.lc(s,null==(e=this.h)?void 0:e.Dc(s))}this.j.hc(null==(t=this.h)?void 0:t.qc())}changeUser(e,t,i){let n=this.vs.getUserId();if(n!==e){this.C.jm(),this.bd(),function(){let e=document.querySelectorAll(".ab-iam-root");for(let t=0;t<e.length;t++){let i=e[t];if(i.id){let e=i.id+"-css",t=document.getElementById(e);t&&t.parentNode&&t.parentNode.removeChild(t)}i.parentNode&&i.parentNode.removeChild(i)}let t=document.getElementsByClassName(I.i.eS);for(let e=0;e<t.length;e++){let i=t[e].classList;i.contains(I.i.eS)&&i.remove(I.i.eS)}}(),null!=n&&this.fd(void 0,!1,void 0,void 0,void 0),this.vs.Ju(e),i?this.hl.setSdkAuthenticationSignature(i):this.hl.yh();for(let e=0;e<t.length;e++)t[e].changeUser(null==n);this.j.fo(),null!=n&&this.B.zt(s.d.ft.rE),this.B.zt(s.d.ft.ac),this.B.zt(s.d.ft.uE),this.wd(),this.openSession(),a.A.
1info('Changed user to "'+e+'".')}else{let t="Doing nothing.";i&&this.hl.jh()!==i&&(this.hl.setSdkAuthenticationSignature(i),t="Updated SDK authentication signature"),a.A.info(`Current user is already ${e}. ${t}`)}}requestImmediateDataFlush(e){this.gd(),this.C.el(),this.fd(void 0,void 0,void 0,()=>{a.A.error("Failed to flush data, request will be retried automatically.")},e,!0)}yr(e,t){this.C.el(),a.A.info("Requesting explicit trigger refresh."),this.fd(!0,void 0,e,t)}Gu(e,t){let i=w.w.kd,n={a:e,l:t},r=y.A.lt(i,n);return r&&(a.A.info(`Logged alias ${e} with label ${t}`),this.B.bt(s.d.ft.uE,n)),r}Mu(e,t,i){if(this.h.qu(t))return a.A.info(`Custom Attribute "${t}" is blocklisted, ignoring.`),new N.A;let s=y.A.lt(e,{key:t,value:i});if(s){let e="object"==typeof i?JSON.stringify(i,null,2):i;a.A.info(`Logged custom attribute: ${t} with value: ${e}`)}return s}setLastKnownLocation(e,t,i,s,n,r){let o={latitude:t,longitude:i};null!=s&&(o.altitude=s),null!=n&&(o.ll_accuracy=n),null!=r&&(o.alt_accuracy=r);let l=y.A.lt(w.w.yd,o,e||void 0);return l&&a.A.info(`Set user last known location as ${JSON.stringify(o,null,2)}`),l}$r(e,t){let i=this.C.el();return new v.A(this.vs.getUserId(),w.w.jd,e,i,{cid:t})}Sd(e,t){return new r.A(e,t)}Ya(){let e=r.A.Us.Rs;this.Sd(e,a.A).setItem(e.Fs.Ze,1,{baseUrl:this.baseUrl,data:{api_key:this.tu,device_id:this.eu.ve().id},userId:this.vs.getUserId(),sdkAuthEnabled:this.hl.wh()})}Fr(e){for(let t of e)if(t.api_key===this.tu)this.j.kl(t.events,t.attributes);else{let e=r.A.Us.Rs;new r.A(e,a.A).setItem(e.Fs.zr,p.A.se(),t)}}Na(e,t,i){let s,n;return this.h.qu(e)?(a.A.info(`Custom Attribute "${e}" is blocklisted, ignoring.`),new N.A):(null===t&&null===i?(s=w.w.Ad,n={key:e}):(s=w.w.Dd,n={key:e,latitude:t,longitude:i}),y.A.lt(s,n))}Ra(e,t){return y.A.lt(w.w.$d,{group_id:e,status:t})}}class O{constructor(e=0,t=[],i=[],s=[],n=null,r=null,a={enabled:!1},o={enabled:!1,refresh_rate_limit:void 0},l={enabled:!0,capacity:E.uy,refill_rate:E.Fn,endpoint_overrides:{}},u=null,h=null,c=null){this.kc=e,this.Ic=t,this.Kc=i,this.Pc=s,this.Oc=n,this.xc=r,this.Gc=a,this.Xr=o,this.Nc=l,this.banners=u,this.dust=h,this.Hc=c,this.kc=e,this.Ic=t,this.Kc=i,this.Pc=s,this.Oc=n,this.xc=r,this.Gc=a,this.Xr=o,this.Nc=l,this.banners=u,this.dust=h,this.Hc=c}gt(){return{s:"6.5.0",l:this.kc,e:this.Ic,a:this.Kc,p:this.Pc,m:this.Oc,v:this.xc,c:this.Gc,f:this.Xr,grl:this.Nc,b:this.banners,d:this.dust,rb:this.Hc}}static _u(e){let t=e.l;return"6.5.0"!==e.s&&(t=0),new O(t,e.e,e.a,e.p,e.m,e.v,e.c,e.f,e.grl,e.b,e.d,e.rb)}}class R{constructor(e){this.B=e,this.B=e,this.Ec=new n.A,this.Bc=new n.A,this.wc=new n.A,this.Cc=new n.A,this.yc=new n.A,this.Fc=null,this.Lc=null}Mc(){if(null==this.Lc){let e=this.B.dt(s.d.ft.jc);this.Lc=null!=e?O._u(e):new O}return this.Lc}xt(){return this.Mc().kc}Sc(e){var t,i,n,r;if(null!=e&&null!=e.config){let a=e.config;if(a.time>this.Mc().kc){let e=e=>null==e?this.Mc().Nc:e,o=new O(a.time,a.events_blacklist,a.attributes_blacklist,a.purchases_blacklist,a.messaging_session_timeout,a.vapid_public_key,a.content_cards,a.feature_flags,e(a.global_request_rate_limit),a.banners,a.dust,a.request_backoff),l=!1;null!=o.xc&&this.ju()!==o.xc&&(l=!0);let u=!1;null!=o.Gc.enabled&&this.wi()!==o.Gc.enabled&&(u=!0);let h=!1;null!=o.Xr.enabled&&this.Yr()!==o.Xr.enabled&&(h=!0);let c=!1;null!=(null==(t=o.banners)?void 0:t.enabled)&&this.kt()!==(null==(i=o.banners)?void 0:i.enabled)&&(c=!0);let d=!1;null!=(null==(n=o.dust)?void 0:n.enabled)&&this.Ye()!==(null==(r=o.dust)?void 0:r.enabled)&&(d=!0),this.Lc=o,this.B.bt(s.d.ft.jc,o.gt()),l&&this.Ec.L(),u&&this.Bc.L(),h&&this.wc.L(),c&&this.Cc.L(),d&&this.yc.L()}}}xu(e){let t=this.Ec.Rt(e);return this.Fc&&this.Ec.removeSubscription(this.Fc),this.Fc=t,t}Ci(e){return this.Bc.Rt(e)}jo(e){return this.wc.Rt(e)}P(e){return this.Cc.Rt(e)}Tr(e){return this.yc.Rt(e)}Ce(e){return -1!==this.Mc().Ic.indexOf(e)}qu(e){return -1!==this.Mc().Kc.indexOf(e)}Dr(e){return -1!==this.Mc().Pc.indexOf(e)}_c(){return this.Mc().Oc}ju(){return this.Mc().xc}wi(){return this.Mc().Gc.enabled||!1}Vc(){let e=this.Mc().Nc;return!(!e||null==e.enabled)&&e.enabled}qc(){if(!this.Vc())return -1;let e=this.Mc().Nc;return null==e.capacity||e.capacity<10?-1:e.capacity}Ac(){if(!this.Vc())return -1;let e=this.Mc().Nc;return null==e.refill_rate||e.refill_rate<=0?-1:e.refill_rate}zc(e){let t=this.Mc().Nc.endpoint_overrides;return null==t?null:t[e]}Dc(e){let t=this.zc(e);return null==t||isNaN(t.capacity)||t.capacity<=0?-1:t.capacity}Tc(e){let t=this.zc(e);return null==t||isNaN(t.refill_rate)||t.refill_rate<=0?-1:t.refill_rate}Yr(){return this.Mc().Xr.enabled&&null==this.yo()?(y.A.lt(w.w.wl,{e:"Missing feature flag refresh_rate_limit."}),!1):this.Mc().Xr.enabled||!1}yo(){return this.Mc().Xr.refresh_rate_limit}kt(){var e;return(null==(e=this.Mc().banners)?void 0:e.enabled)||null}oe(){var e;return(null==(e=this.Mc().banners)?void 0:e.max_placements)||0}Ye(){var e;return(null==(e=this.Mc().dust)?void 0:e.enabled)||!1}st(){var e;let t=null==(e=this.Mc().Hc)?void 0:e.min_sleep_duration_ms;return null!=t?t:E.xm}it(){var e;let t=null==(e=this.Mc().Hc)?void 0:e.scale_factor;return null!=t?t:E.MF}nt(){var e;let t=null==(e=this.Mc().Hc)?void 0:e.max_sleep_duration_ms;return null!=t?t:E.T}}class z{constructor(e,t,i,s){this.B=e,this.vs=t,this.h=i,this.tm=s,this.B=e,this.vs=t,this.h=i,this.im=1e3,(null==s||isNaN(s))&&(s=1800),s<this.im/1e3&&(a.A.info("Specified session timeout of "+s+"s is too small, using the minimum session timeout of "+this.im/1e3+"s instead."),s=this.im/1e3),this.tm=s}nm(e,t){return new v.A(this.vs.getUserId(),w.w.hm,e,t.Tu,{d:(0,A.UK)(e-t.lm)})}yt(){let e=this.B.$u(s.d.Ou.um);return null==e?null:e.Tu}am(){let e=new Date().valueOf(),t=this.h._c();if(null==t)return!1;let i=this.B.dt(s.d.ft.dm),n=null==i||e-i>1e3*t;return n&&this.B.bt(s.d.ft.dm,e),n}fm(e,t){return null==t||null==t.pm||!(e-t.lm<this.im)&&t.pm<e}el(){let e=new Date().valueOf(),t=e+1e3*this.tm,i=this.B.$u(s.d.Ou.um);if(this.fm(e,i)){let n="Generating session start event with time "+e;if(null!=i){let e=i.gm;e-i.lm<this.im&&(e=i.lm+this.im),this.B.wm(this.nm(e,i)),n+=" (old session ended "+e+")"}n+=". Will expire "+t.valueOf(),a.A.info(n);let r=new d.A(p.A.se(),t);return this.B.wm(new v.A(this.vs.getUserId(),w.w.Sm,e,r.Tu)),this.B.Iu(s.d.Ou.um,r),null==this.B.dt(s.d.ft.dm)&&this.B.bt(s.d.ft.dm,e),r.Tu}if(null!=i)return i.gm=e,i.pm=t,this.B.Iu(s.d.Ou.um,i),i.Tu}jm(){let e=this.B.$u(s.d.Ou.um);null!=e&&(this.B.xm(s.d.Ou.um),this.B.wm(this.nm(new Date().valueOf(),e)))}}let D={_l:function(e,t=!1){let i,n=!1;try{if(localStorage&&localStorage.getItem)try{localStorage.setItem(s.d.ft.Qc,"true"),localStorage.getItem(s.d.ft.Qc)&&(localStorage.removeItem(s.d.ft.Qc),n=!0)}catch(e){if(!(e instanceof Error&&("QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&localStorage.length>0))throw e;n=!0}}catch(e){a.A.info("Local Storage not supported!")}let r=D.Uc(),o=new s.A.Jc(e,r&&!t,n);return i=n?new s.A.Wc(e):new s.A.Xc,new s.A(o,i)}
1,Uc:function(){return navigator.cookieEnabled||"cookie"in document&&(document.cookie.length>0||(document.cookie="test").indexOf.call(document.cookie,"test")>-1)}};var M=i(98e3);function P(){return"u">typeof SharedWorker}class L{constructor(e){this.Wr=null,this.Lr=null,this.isConnected=!1,this.Ir=null,this.Mr=null,this.we=e.we,this.ke=e.ke,this.Re=e.Re,this.Me=e.Me}initialize(){if(!P())return a.A.info("SharedWorker not supported, will use direct connection"),!1;try{let e=new Blob(['\n"use strict";\nconst workerSelf = self;\nlet eventSource = null;\nlet currentConfig = null;\nlet retryCount = 0;\nlet retryTimeoutId = null;\nlet connectionInProgress = false;\nconst maxRetries = 5;\nconst connectedPorts = new Map();\nlet lastSleepMs = null;\nlet currentRcs = null;\nlet ttlTimeoutId = null;\nlet leaderPortId = null;\nlet ddrTimeoutId = null;\nconst fn = {\n    startConnection: null,\n    handleMessage: null,\n};\nfunction broadcast(message) {\n    connectedPorts.forEach((portInfo, portId) => {\n        try {\n            portInfo.port.postMessage(message);\n        }\n        catch (_a) {\n            connectedPorts.delete(portId);\n        }\n    });\n}\nfunction randomInclusive(min, max) {\n    return Math.floor(Math.random() * (max - min + 1)) + min;\n}\nfunction electLeader() {\n    if (leaderPortId && connectedPorts.has(leaderPortId)) {\n        return;\n    }\n    const firstPortId = connectedPorts.keys().next().value;\n    leaderPortId = firstPortId || null;\n    if (leaderPortId) {\n        console.log("[Braze Real-Time] Elected leader port:", leaderPortId);\n    }\n}\nfunction promoteToLeader(portId) {\n    if (connectedPorts.has(portId) && leaderPortId !== portId) {\n        leaderPortId = portId;\n        console.log("[Braze Real-Time] Promoted to leader (tab became active):", portId);\n    }\n}\nfunction sendToLeader(message) {\n    electLeader();\n    if (!leaderPortId) {\n        console.warn("[Braze Real-Time] No leader to send message to");\n        return;\n    }\n    const leader = connectedPorts.get(leaderPortId);\n    if (leader) {\n        try {\n            leader.port.postMessage(message);\n        }\n        catch (_a) {\n            connectedPorts.delete(leaderPortId);\n            leaderPortId = null;\n            sendToLeader(message);\n        }\n    }\n}\nfunction closeConnection() {\n    connectionInProgress = false;\n    if (retryTimeoutId !== null) {\n        clearTimeout(retryTimeoutId);\n        retryTimeoutId = null;\n    }\n    if (ttlTimeoutId !== null) {\n        clearTimeout(ttlTimeoutId);\n        ttlTimeoutId = null;\n    }\n    if (ddrTimeoutId !== null) {\n        clearTimeout(ddrTimeoutId);\n        ddrTimeoutId = null;\n    }\n    if (eventSource) {\n        eventSource.close();\n        eventSource = null;\n        broadcast({ type: "disconnected" });\n    }\n}\nfunction retryWithBackoff() {\n    if (!currentConfig) {\n        return;\n    }\n    retryCount++;\n    const { minSleepMs, maxSleepMs, scaleFactor } = currentConfig.backoff;\n    let previousSleepMs = lastSleepMs;\n    if (previousSleepMs == null || previousSleepMs < minSleepMs) {\n        previousSleepMs = minSleepMs;\n    }\n    const backoffMs = Math.min(maxSleepMs, randomInclusive(minSleepMs, previousSleepMs * scaleFactor));\n    lastSleepMs = backoffMs;\n    console.log("[Braze Real-Time] Retrying in " + backoffMs + "ms (attempt " + retryCount + "/" + maxRetries + ")");\n    retryTimeoutId = setTimeout(function () {\n        retryTimeoutId = null;\n        fn.startConnection();\n    }, backoffMs);\n}\nfunction startConnection(oldEventSourceToClose) {\n    if (!currentConfig) {\n        return;\n    }\n    if (eventSource && !oldEventSourceToClose) {\n        console.warn("[Braze Real-Time] Connection already exists");\n        return;\n    }\n    if (connectionInProgress && !oldEventSourceToClose) {\n        console.warn("[Braze Real-Time] Connection attempt already in progress");\n        return;\n    }\n    connectionInProgress = true;\n    const { dustHost, mite, auth } = currentConfig;\n    const dustHostWithScheme = /^https?:\\/\\//i.test(dustHost) ? dustHost : "https://" + dustHost;\n    let queryString = "mite=" + encodeURIComponent(mite) + "&attempts=" + retryCount;
1\n    if (auth) {\n        queryString += "&auth=" + encodeURIComponent(auth);\n    }\n    if (currentRcs) {\n        queryString += "&rcs=" + encodeURIComponent(currentRcs);\n    }\n    const subscribeUrl = dustHostWithScheme + "/sse?" + queryString;\n    try {\n        const newEventSource = new EventSource(subscribeUrl);\n        newEventSource.onopen = function () {\n            if (oldEventSourceToClose) {\n                console.log("[Braze Real-Time] Gapless reconnection: new connection established, closing old connection");\n                oldEventSourceToClose.close();\n            }\n            else {\n                console.log("[Braze Real-Time] Connection established");\n            }\n            eventSource = newEventSource;\n            connectionInProgress = false;\n            retryCount = 0;\n            lastSleepMs = null;\n            broadcast({ type: "connected" });\n        };\n        newEventSource.addEventListener("msg", function (event) {\n            fn.handleMessage(event.data);\n        });\n        newEventSource.onerror = function () {\n            const readyState = newEventSource ? newEventSource.readyState : -1;\n            if (readyState === 0) {\n                console.log("[Braze Real-Time] Failed to connect");\n            }\n            else {\n                console.log("[Braze Real-Time] Connection lost");\n            }\n            if (oldEventSourceToClose && eventSource !== newEventSource) {\n                console.log("[Braze Real-Time] Gapless reconnection failed, keeping old connection");\n                newEventSource.close();\n                connectionInProgress = false;\n                if (retryCount < maxRetries) {\n                    retryWithBackoff();\n                }\n                return;\n            }\n            closeConnection();\n            if (retryCount < maxRetries) {\n                retryWithBackoff();\n            }\n            else {\n                console.error("[Braze Real-Time] Max retries reached");\n                broadcast({ type: "error", error: "Max retry attempts reached" });\n            }\n        };\n    }\n    catch (error) {\n        connectionInProgress = false;\n        console.error("[Braze Real-Time] Failed to create EventSource:", error);\n        broadcast({ type: "error", error: String(error) });\n    }\n}\nfunction handleTtlMessage(tMs, rcs) {\n    if (typeof tMs !== "number") {\n        return;\n    }\n    if (typeof rcs === "string") {\n        currentRcs = rcs;\n    }\n    console.log("[Braze Real-Time] TTL set to " + tMs + "ms, will perform gapless reconnection when expired");\n    if (ttlTimeoutId !== null) {\n        clearTimeout(ttlTimeoutId);\n    }\n    ttlTimeoutId = setTimeout(function () {\n        ttlTimeoutId = null;\n        console.log("[Braze Real-Time] TTL expired, performing gapless reconnection");\n        startConnection(eventSource || undefined);\n    }, tMs);\n}\nfunction handleDdrMessage(rMs, reason) {\n    if (typeof rMs !== "number") {\n        return;\n    }\n    const jitter = Math.random() * rMs * 0.3;\n    const waitMs = Math.round(rMs + jitter);\n    const reasonStr = reason ? " (" + reason + ")" : "";\n    console.log("[Braze Real-Time] Admin requested disconnect" + reasonStr + ", reconnecting in " + waitMs + "ms");\n    if (ddrTimeoutId !== null) {\n        clearTimeout(ddrTimeoutId);\n    }\n    closeConnection();\n    ddrTimeoutId = setTimeout(function () {\n        ddrTimeoutId = null;\n        fn.startConnection();\n    }, waitMs);\n}\nfunction handleMessage(data) {\n    try {\n        const message = JSON.parse(data);\n        if (!message.type) {\n            console.warn("[Braze Real-Time] Message without type:", message);\n            return;\n        }\n        if (message.type === "ttl" && message.body) {\n            handleTtlMessage(message.body.t_ms, message.body.rcs);\n            return;\n        }\n        if (message.type === "ddr" && message.body) {\n            handleDdrMessage(message.body.r_ms, message.body.e);\n            return;\n        }\n        console.log("[Braze Real-Time] Routing \'" + message.type + "\' message to leader");\n        sendToLeader({ type: "message", data: message });\n    }\n    catch (error) {\n        console.warn("[Braze Real-Time] Failed to parse message:", error);\n    }\n}\nfn.startConnection = startConnection;\nfn.handleMessage = handleMessage;\nfunction handlePortMessage(port, portId, message) {\n    switch (message.type) {\n        case "connect":\n            if (currentConfig &&\n                (currentConfig.mite !== message.config.mite || currentConfig.dustHost !== message.config.dustHost)) {\n                console.log("[Braze Real-Time] Config changed, reconnecting");\n                closeConnection();\n                retryCount = 0;\n                lastSleepMs = null;\n                currentRcs = null;\n            }\n            currentConfig = message.config;\n            electLeader();\n            if (!eventSource && !connectionInProgress) {\n                startConnection();\n            }\n            else if (eventSource) {\n                port.postMessage({ type: "connected" });\n            }\n            break;\n        case "disconnect":\n            connectedPorts.delete(portId);\n            if (portId === leaderPortId) {\n                leaderPortId = null;\n                electLeader();\n            }\n            if (connectedPorts.size === 0) {\n                console.log("[Braze Real-Time] No more ports, closing connection");\n                closeConnection();\n                currentConfig = null;\n                currentRcs = null;\n                leaderPortId = null;\n            }\n            break;\n        case "tab_active":\n            promoteToLeader(portId);\n            break;\n        case "ping":\n            port.postMessage({ type: "pong" });\n            break;\n        default:\n            console.warn("[Braze Real-Time] Unknown message type:", message.type);\n    }\n}\nworkerSelf.onconnect = function (event) {\n    const port = event.ports[0];\n    const portId = "port-" + Date.now() + "-" + Math.random().toString(36).substr(2, 9);\n    connectedPorts.set(portId, { port: port });\n    port.onmessage = function (messageEvent) {\n        try {\n            handlePortMessage(port, portId, messageEvent.data);\n        }\n        catch (error) {\n            console.error("[Braze Real-Time] Error handling message:", error);\n        }\n    };\n    port.onmessageerror = function () {\n        console.warn("[Braze Real-Time] Message error from port:", portId);\n        connectedPorts.delete(portId);\n    };\n    port.start();\n};\n'],{type:"application/javascript"});return this.Lr=URL.createObjectURL(e),this.Wr=new SharedWorker(this.Lr,{name:"braze-dust-worker"}),this.Wr.port.onmessage=e=>{this.Br(e.data)},this.Wr.port.onmessageerror=()=>{a.A.warn("Message error from real-time messaging worker")},this.Wr.onerror=e=>{var t;a.A.error(`Real-time messaging worker error: ${e.message||"unknown error"}`),null==(t=this.Me)||t.call(this,"SharedWorker error")},this.Wr.port.start(),this.Ur(),this.Vr(),a.A.info("Real-time messaging worker initialized"),!0}catch(e){return a.A.error(`Failed to create real-time messaging worker: ${e instanceof Error?e.message:String(e)}`),this.Er(),!1}}Br(e){var t,i,s;switch(e.type){case"connected":a.A.info("Real-time messaging connection established via SharedWorker"),this.isConnected=!0,null==(t=this.ke)||t.call(this);break;case"disconnected":a.A.info("Real-time messaging connection closed via SharedWorker"),this.isConnected=!1,null==(i=this.Re)||i.call(this);break;case"message":this.we(e.data);break;case"error":a.A.error(`Real-time messaging error: ${e.error}`),null==(s=this.Me)||s.call(this,e.error)}}Ur(){this.Ir=window.setInterval(()=>{this.Wr&&this._r({type:"ping"})},3e4)}qr(){null!==this.Ir&&(window.clearInterval(this.Ir),this.Ir=null)}Vr(){this.Mr=()=>{"visible"===document.visibilityState&&this.Wr&&this._r({type:"tab_active"})},document.addEventListener("visibilitychange",this.Mr)}Ar(){this.Mr&&(document.removeEventListener("visibilitychange",this.Mr),this.Mr=null)}_r(e){this.Wr&&this.Wr.port.postMessage(e)}connect(e){this.Wr?(this._r({type:"connect",pn:e}
1),a.A.info("Connecting to real-time messaging")):a.A.error("Cannot connect: real-time messaging worker not initialized")}disconnect(){this.Wr&&(this._r({type:"disconnect"}),this.isConnected=!1,a.A.info("Disconnecting from real-time messaging"))}Ie(){return this.isConnected}isInitialized(){return null!==this.Wr}Er(){this.qr(),this.Ar(),this.Wr&&(this.Wr.port.close(),this.Wr=null),this.Lr&&(URL.revokeObjectURL(this.Lr),this.Lr=null),this.isConnected=!1}destroy(){this.disconnect(),this.Er(),a.A.info("Real-time messaging worker destroyed")}}class U extends l.A{constructor(e,t,i,s,n=!0){super(),this.j=e,this.B=t,this.h=i,this.j=e,this.B=t,this.h=i,this.mite=null,this.ki=null,this.yi=null,this.$i=null,this.Ri=s||null,this.Mi=null,this.xi=null,this.D=null,this.ji=0,this.Wi=5,this.Fi=null,this.Ui=null,this.zi=!0,this.Bi=null,this.Gi=null,this.Pi=null,this.qi=null,this.Hi=!1,this.Ji=new Map,this.Li=null,this.Oi=null,this.Ki=null,this.Qi=this.Vi(n),this.Xi=!1,this.Yi=0,this.Zi()}Vi(e){return e?P()?"sharedworker":(a.A.info("SharedWorker not supported, using direct EventSource (multi-tab will gracefully degrade)"),"direct"):(a.A.info("Shared connection disabled, using direct EventSource"),"direct")}_i(){this.Ki=new L({we:e=>{this.Se(e)},ke:()=>{this.ye()},Re:()=>{},Me:e=>{a.A.error(`Real-time messaging SharedWorker error: ${e}`)}}),this.Ki.initialize()||(a.A.info("SharedWorker initialization failed, falling back to direct EventSource"),this.Qi="direct",this.Ki=null)}ye(){this.ji=0,this.Bi=null,this.zi=!0,this.Xi=!1,this.Yi=0}Se(e){if(!e.type)return void a.A.warn(`Received real-time message without type: ${JSON.stringify(e)}`);let t="sharedworker"===this.Qi?"SharedWorker":"Direct";a.A.info(`Received real-time message of type '${e.type}' via ${t}`);let i=this.Ji.get(e.type);if(i&&i.De()>0)try{i.L(e)}catch(t){a.A.error(`Error invoking subscription for message type '${e.type}': ${t}`)}else a.A.info(`No subscribers for real-time message type '${e.type}'`)}We(){return"sharedworker"===this.Qi}Fe(){return this.Qi}Zi(){if(this.B){let e=this.B.dt(s.d.ft.Ue),t=this.B.dt(s.d.ft.Ne),i=this.B.dt(s.d.ft.Te),n=this.B.dt(s.d.ft.ze);e&&t?(this.mite=e,this.ki=t,this.yi=i,this.$i=n,a.A.info("Restored real-time messaging configuration from storage")):(e||t)&&(a.A.warn("Incomplete real-time messaging configuration in storage, clearing"),this.Ae())}}Hr(){this.Li||this.Oi||(this.Li=this.Be("ddr",e=>{if(!e.body||"number"!=typeof e.body.Ge)return;let t=Math.random()*e.body.Ge*.3,i=Math.round(e.body.Ge+t),s=e.body.e?` (${e.body.e})`:"";a.A.info(`Admin requested disconnect${s}, reconnecting in ${i}ms`),this.Pe(),setTimeout(()=>this.qe(),i)}),this.Oi=this.Be("ttl",e=>{if(!e.body||"number"!=typeof e.body.He)return;let t=e.body.He;a.A.info(`Time to live set to ${t}ms, will reconnect when expired`),"sharedworker"!==this.Qi&&("string"==typeof e.body.Je&&(this.Mi=e.body.Je),null!==this.Ui&&window.clearTimeout(this.Ui),this.Ui=window.setTimeout(()=>{this.Ui=null,a.A.info("Time to live expired, performing gapless reconnection"),this.Le()},t))}))}Oe(){this.Gi||this.Pi||(this.qi=()=>{this.Hi=!0,this.zi=!1},window.addEventListener("beforeunload",this.qi),this.Gi=()=>{var e;this.Hi=!0,(this.xi||(null==(e=this.Ki)?void 0:e.Ie()))&&(a.A.info("Page unloading, closing real-time connection gracefully"),this.zi=!1,this.Pe())},window.addEventListener("pagehide",this.Gi),this.Pi=e=>{var t;let i=this.xi||(null==(t=this.Ki)?void 0:t.Ie());e.persisted&&this.Ke()&&!i&&(a.A.info("Page restored from bfcache, reconnecting"),this.Hi=!1,this.ye(),this.qe())},window.addEventListener("pageshow",this.Pi))}St(){return this.D}wt(e){this.D=e}Be(e,t){if("function"!=typeof t)return null;let i=this.Ji.get(e);return i||(i=new n.A,this.Ji.set(e,i),J.q(i)),i.Rt(t)}Qe(e,t){let i=this.Ji.get(e);i&&i.removeSubscription(t)}Ke(){return!!(this.mite&&this.ki)}Ve(){return!!this.$i&&Math.floor(new Date().valueOf()/1e3)>=this.$i}Ae(){this.mite=null,this.ki=null,this.yi=null,this.$i=null,this.Mi=null,this.B&&(this.B.zt(s.d.ft.Ue),this.B.zt(s.d.ft.Ne),this.B.zt(s.d.ft.Te),this.B.zt(s.d.ft.ze))}Xe(e,t){let i=()=>{"function"==typeof t&&t()},n=this.j,r=this.B;if(!n||!r)return a.A.error("NetworkManager or StorageManager not available"),void i();if(!this.h||!this.h.Ye())return a.A.info("Real-time messaging is not enabled, skipping refresh"),void i();this.Ke()?a.A.info("Refreshing real-time messaging configuration"):a.A.info("Fetching initial real-time messaging configuration");let o=n.$({},!0),l=n.A(o,x.A.H.Ze,!1),u=new Date().valueOf();x.A.K(r,x.A.H.Ze,u),k.A.O({url:`${n.V()}/dust/config`,headers:l,data:o,W:t=>{n.Y(o,t,l)?(n.Z(),t.mite&&t.host?(this.mite=t.mite,this.ki=t.host,this.yi=t.auth||null,this.$i=t.expiration||null,a.A.info("Received real-time messaging configuration from server"),r.bt(s.d.ft.Ue,t.mite),r.bt(s.d.ft.Ne,t.host),t.auth?r.bt(s.d.ft.Te,t.auth):r.zt(s.d.ft.Te),t.expiration?r.bt(s.d.ft.ze,t.expiration):r.zt(s.d.ft.ze),this.qe(),"function"==typeof e&&e()):(a.A.info("Real-time messaging configuration not available - this SDK version may not be supported"),this.Ae(),i())):(a.A.error("Failed to validate server response for real-time messaging configuration"),i())},error:e=>{n._(e,"retrieving DUST config"),i()}})}qe(){if(!this.h||!this.h.Ye())return;if(!this.Ke())return void a.A.error("Cannot start real-time subscription without configuration");if(this.Ve())return a.A.info("Real-time messaging auth token has expired, refreshing configuration"),void this.Xe(()=>{this.qe()},()=>{a.A.error("Failed to refresh expired real-time messaging configuration")});let e=this.mite,t=this.Ri||this.ki;if(e&&t)switch(this.Qi){case"sharedworker":this._e(e,t);break;case"direct":this.xi&&(a.A.info("Real-time connection already exists, closing before starting new subscription"),this.Pe()),this.sn()}}en(){var e,t,i;let s,n,r=this.mite,a=this.Ri||this.ki;return r&&a?(e=this.ji,t=this.yi||void 0,i=this.Mi||void 0,s=/^https?:\/\//i.test(a)?a:`https://${a}`,n=`mite=${encodeURIComponent(r)}&attempts=${e}`,t&&(n+=`&auth=${encodeURIComponent(t)}`),i&&(n+=`&rcs=${encodeURIComponent(i)}`),`${s}/sse?${n}`):null}_e(e,t){var i,s,n;if(this.Ki||this._i(),!this.Ki)return a.A.info("SharedWorker initialization failed, falling back to direct EventSource"),this.Qi="direct",void this.on();this.Ri&&a.A.info(`Using custom real-time messaging host: ${this.Ri}`),a.A.info("Starting real-time subscription via SharedWorker");let r=(null==(i=this.h)?void 0:i.st())||E.xm,o=(null==(s=this.h)?void 0:s.nt())||E.T,l=(null==(n=this.h)?void 0:n.it())||E.MF;this.Ki.connect({mite:e,ki:t,auth:this.yi||void 0,hn:{an:r,ln:o,cn:l}})}on(){this.xi&&(a.A.info("Real-time connection already exists, closing before starting new subscription"),this.un()),this.sn()}sn(e){let t=this.en();if(t){this.Ri&&a.A.info(`Using custom real-time messaging host: ${this.Ri}`);try{let i=new EventSource(t);i.onopen=()=>{e?(a.A.info("Gapless reconnection: new connection established, closing old connection"),e.close()):a.A.info("Real-time messaging connection established"),this.xi=i,this.ji=0,this.Bi=null,this.zi=!0,this.Xi=!0},i.addEventListener("msg",e=>{this.dn(e.data)}),i.onerror=()=>{let t=i.readyState;return this.Hi||(0===t?a.A.info("Real-time messaging failed to connect"):a.A.info("Real-time messaging connection lost")),e&&this.xi!==i?(a.A.info("Gapless reconnection failed, keeping old connection"),i.close(),void(this.zi&&this.ji<this.Wi&&this.gn())):(this.un(),this.Xi&&(this.Yi++,this.Yi>1)?(a.A.info("Real-time messaging connection lost twice after successful connect (likely multi-tab conflict), yielding to other tab"),void(this.zi=!1)):void(this.zi&&this.ji<this.Wi?this.gn():(this.ji>=this.Wi&&a.A.error(`Max retry attempts (${this.Wi}) reached for real-time messaging, giving up for current session`),this.zi=!1)))}}catch(e){a.A.error(`Failed to create real-time messaging connection: ${e instanceof Error?e.message:String(e)}`)}}}gn(){var e,t,i;this.ji++;let s=(null==(e=this.h)?void 0:e.st())||E.xm,n=(null==(t=this.h)?void 0:t.it())||E.MF,r=(null==(i=this.h)?void 0:i.nt())||E.T,o=this.Bi;(null==o||o<s)&&(o=s);let l=Math.min(r,(0,T.C)(s,o*n));this.Bi=l,a.A.info(`Retrying real-time messaging connection in ${l}ms (attempt ${this.ji}/${this.Wi})`),this.Fi=window.setTimeout(()=>{this.Fi=null,this.qe()},l)}Le(){if(this.Ke()){if(this.Ve())return a.A.info("Auth token expired during gapless reconnection, falling back to regular reconnection"),this.Pe(),void this.qe();null!==this.Ui&&(window.clearTimeout(this.Ui),this.Ui=null),this.sn(this.xi||void 0)}else a.A.error("Cannot perform gapless reconnection without configuration")}Pe(){var e;switch(this.Qi){case"sharedworker":null==(e=this.Ki)||e.disconnect();break;case"direct":this.un()}}un(){null!==this.Fi&&(window.clearTimeout(this.Fi),this.Fi=null),null!==this.Ui&&(window.clearTimeout(this.Ui),this.Ui=null),this.xi&&(this.xi.
1close(),this.xi=null,a.A.info("Real-time messaging connection closed"))}dn(e){try{let t=JSON.parse(e);this.Se(t)}catch(e){a.A.warn(`Failed to parse real-time message: ${e instanceof Error?e.message:String(e)}`)}}changeUser(e=!1){this.Pe(),e||(this.Ke()&&a.A.info("Clearing cached real-time messaging configuration for user change"),this.Ae()),this.ye()}clearData(e=!1){this.zi=!1,this.Pe(),e&&(this.Ke()&&a.A.info("Clearing cached real-time messaging configuration (wipeData)"),this.Ae()),this.ye()}destroy(){this.zi=!1,this.Pe(),this.Ae(),this.Ki&&(this.Ki.destroy(),this.Ki=null),this.Li&&(this.Qe("ddr",this.Li),this.Li=null),this.Oi&&(this.Qe("ttl",this.Oi),this.Oi=null),this.qi&&(window.removeEventListener("beforeunload",this.qi),this.qi=null),this.Gi&&(window.removeEventListener("pagehide",this.Gi),this.Gi=null),this.Pi&&(window.removeEventListener("pageshow",this.Pi),this.Pi=null),this.D&&(J.removeSubscription(this.D),this.D=null)}}let $={i:!1,provider:null,o:()=>{if($.t(),!$.provider){let e=J.re("dustHost");$.provider=new U(J.m(),J.p(),J.l(),e),J.v($.provider),$.provider.Hr()}return $.provider},t:()=>{$.i||(J.g($),$.i=!0)},destroy:()=>{$.provider&&$.provider.destroy(),$.provider=null,$.i=!1}};var F=i(48754),j=i(91338),G=i(72573);class q{constructor(e,t){this.h=e,this.B=t,this.h=e,this.B=t}getUserId(){let e=this.B.$u(s.d.Ou.Cu);if(null==e)return null;let t=e.Tu,i=(0,F.N)(t);if(i>G.A.mr){for(;i>G.A.mr;)t=t.slice(0,t.length-1),i=(0,F.N)(t);e.Tu=t,this.B.Iu(s.d.Ou.Cu,e)}return t}Ju(e){let t=null==this.getUserId();this.B.Iu(s.d.Ou.Cu,new d.A(e)),t&&this.B.Lu(e)}setCustomUserAttribute(e,t){if(this.h.qu(e))return a.A.info('Custom Attribute "'+e+'" is blocklisted, ignoring.'),!1;let i={};return i[e]=t,this.zu(G.A.Bu,i,!0)}zu(e,t,i=!1,s=!1){let n=this.B.Eu(this.getUserId(),e,t),r="",o=e,l=t;return i&&(r=" custom","object"==typeof t&&(o=Object.keys(t)[0],"object"==typeof(l=t[o])&&(l=JSON.stringify(l,null,2)))),!s&&n&&a.A.info(`Logged${r} attribute ${o} with value ${l}`),n}gu(e,t,i,n,o){this.zu("push_token",e,!1,!0),this.zu("custom_push_public_key",i,!1,!0),this.zu("custom_push_user_auth",n,!1,!0),this.zu("custom_push_vapid_public_key",o,!1,!0);let l=r.A.Us.Rs,u=new r.A(l,a.A),h=new j.A(e,t,i,n,o);this.B.bt(s.d.ft.Uu,h.gt()),u.setItem(l.Fs.Fu,l.fe,!0)}wu(e){if(this.zu("push_token",null,!1,!0),this.zu("custom_push_public_key",null,!1,!0),this.zu("custom_push_user_auth",null,!1,!0),this.zu("custom_push_vapid_public_key",null,!1,!0),e){let e=r.A.Us.Rs,t=new r.A(e,a.A);this.B.bt(s.d.ft.Uu,!1),t.setItem(e.Fs.Fu,e.fe,!1)}}}var H=i(69796),W=i(95887);let K={Ph:"allowCrawlerActivity",Wh:"baseUrl",Vh:"noCookies",Kh:"devicePropertyAllowlist",La:"disablePushTokenMaintenance",$h:"enableLogging",Yh:"enableSdkAuthentication",Ka:"manageServiceWorkerExternally",Xh:"minimumIntervalBetweenTriggerActionsInSeconds",Zh:"sessionTimeoutInSeconds",Qh:"appVersion",Xa:"appVersionNumber",Ga:"serviceWorkerLocation",Ia:"safariWebsitePushId",Wa:"localization",er:"contentSecurityNonce",te:"allowUserSuppliedJavascript",$a:"inAppMessageZIndex",Ja:"openInAppMessagesInNewTab",Oh:"requireExplicitInAppMessageDismissal",Za:"doNotLoadFontAwesome",tl:"deviceId",Ha:"serviceWorkerScope",Ne:"dustHost",il:"sdkFlavor",tn:"openCardsInNewTab"},V={Ph:"allowCrawlerActivity",Wh:"baseUrl",Vh:"noCookies",Kh:"devicePropertyAllowlist",La:"disablePushTokenMaintenance",$h:"enableLogging",Yh:"enableSdkAuthentication",Ka:"manageServiceWorkerExternally",Xh:"minimumIntervalBetweenTriggerActionsInSeconds",Zh:"sessionTimeoutInSeconds",Qh:"appVersion",Xa:"appVersionNumber",Ga:"serviceWorkerLocation",Ia:"safariWebsitePushId",Wa:"localization",er:"contentSecurityNonce",te:"allowUserSuppliedJavascript",$a:"inAppMessageZIndex",Ja:"openInAppMessagesInNewTab",tn:"openCardsInNewTab",Oh:"requireExplicitInAppMessageDismissal",Za:"doNotLoadFontAwesome",tl:"deviceId",Ha:"serviceWorkerScope",Ne:"dustHost",il:"sdkFlavor"};class X{constructor(){this.tu="",this.sl="",this.rl=void 0,this.hl=null,this.eu=null,this.j=null,this.Ru=null,this.h=null,this.C=null,this.B=null,this.vs=null,this.al="",this.isInitialized=!1,this.ul=!1,this.cl=new n.A,this.fl=new n.A,this.options={},this.ml=[],this.dl=[],this.jn=[],this.sl="6.5.0"}El(e){this.cl.Rt(e)}mh(e){this.fl.Rt(e)}initialize(e,t){if(this.ao())return a.A.info("Braze has already been initialized with an API key."),!0;this.options=t||{};let r=this.re(V.$h),l=(0,H.y)(W.uD.gl());
1if(l&&"true"===l.brazeLogging&&(r=!0),a.A.init(r),a.A.info(`Initialization Options: ${JSON.stringify(this.options,null,2)}`),null==e||""===e||"string"!=typeof e)return a.A.error("Braze requires a valid API key to be initialized."),!1;this.tu=e;let h=this.re(V.Wh);if(null==h||""===h||"string"!=typeof h)return a.A.error("Braze requires a valid baseUrl to be initialized."),!1;!1===/^https?:/.test(h)&&(h=`https://${h}`);let p=h;if((h=document.createElement("a")).href=p,"/"===h.pathname&&(h=`${h}api/v3`),this.al=h.toString(),u.A.Il&&!this.re(V.Ph))return a.A.info("Ignoring activity from crawler bot "+navigator.userAgent),this.ul=!0,!1;let b=this.re(V.Vh)||!1;if(this.B=D._l(e,b),b&&this.B.Sl(e),new s.A.le(null,!0).jr(s.d.pe))return a.A.info("Ignoring all activity due to previous opt out"),this.ul=!0,!1;for(let e of(0,m.HP)(this.options))-1===(0,m.zu)(K).indexOf(e)&&a.A.warn(`Ignoring unknown initialization option '${e}'.`);if(null!=this.re(V.il)){let e=this.re(V.il);-1!==["mparticle","wordpress","tealium"].indexOf(e)?this.rl=e:a.A.error("Invalid sdk flavor passed: "+e)}let g=this.re(K.Kh);if(null!=g)if((0,m.cy)(g)){let e=[];for(let t=0;t<g.length;t++)(0,m.BY)(c.A,g[t],"devicePropertyAllowlist contained an invalid value.","DeviceProperties")&&e.push(g[t]);g=e}else a.A.error("devicePropertyAllowlist must be an array. Defaulting to all properties."),g=null;let v=this.re(V.tl);if(v){let e=new d.A(v);this.B.Iu(s.d.Ou.tl,e)}this.eu=new f(this.B,g),this.h=new R(this.B),this.vs=new q(this.h,this.B),this.C=new z(this.B,this.vs,this.h,this.re(V.Zh));let A=new n.A;return this.hl=new o(this.B,this.re(V.Yh),A),this.q(A),this.j=new C(this.eu,this.B,this.hl,this.vs,this.C,this.h,this.tu,this.al,this.sl,this.rl||"",this.re(V.Qh),this.re(V.Xa)),this.Ru=new _(this.tu,this.al,this.C,this.eu,this.vs,this.h,this.B,e=>{if(this.ao())for(let t of this.gr())t.N(e)},this.hl,this.j),this.Ru.initialize(),b||this.B.Al(),a.A.info(`Initialized for the Braze backend at "${this.re(V.Wh)}" with API key "${this.tu}".`),M.B.t(),function(){let e=J.l(),t=J.nn();if(!e||!t)return;let i=$.o(),s=()=>
1{if(!i.St()){i.Oe();let s=t.rn(()=>{e.Ye()&&i.Xe()});return s&&i.wt(s),i.Ke()&&i.qe(),s}return i.St()};e.Tr(()=>{J.ao()&&(e.Ye()?(i.Xe(),s()):(i.Pe(),i.Ke()&&i.Ae()))}),e.Ye()&&s()}(),this.h.jo(()=>{var e;this.isInitialized&&(null==(e=this.h)?void 0:e.Yr())&&Promise.resolve().then(i.bind(i,71626)).then(e=>{this.isInitialized&&(0,e.default)()})}),this.Ru.rn(()=>{var e;this.isInitialized&&(null==(e=this.h)?void 0:e.Yr())&&Promise.resolve().then(i.bind(i,71626)).then(e=>{this.isInitialized&&(0,e.default)(void 0,void 0,!0)})}),this.cl.L(this.options),this.isInitialized=!0,window.dispatchEvent(new CustomEvent("braze.initialized")),!0}destroy(e){if(a.A.destroy(),this.ao()){for(let e of(this.fl.L(),this.fl.removeAllSubscriptions(),this.ml))e.destroy();for(let e of(this.ml=[],this.dl))e.clearData(!1);this.j&&this.j.fo(),this.dl=[],this.removeAllSubscriptions(),this.jn=[],null!=this.Ru&&this.Ru.destroy(),this.Ru=null,this.hl=null,this.eu=null,this.j=null,this.h=null,this.C=null,this.vs=null,this.options={},this.rl=void 0,this.isInitialized=!1,this.ul=!1,e&&(this.B=null)}}rr(){return!this.Nl()&&(!!this.ao()||(console.warn(E.em.ee),!1))}_a(){return this.tu}Sr(){return this.hl}V(){return this.al}ue(){return this.eu}m(){return this.j}re(e){return this.options[e]}gr(){return this.dl}nn(){return this.Ru}l(){return this.h}u(){return this.C}p(){return this.B}br(){if(this.vs&&this.Ru)return new G.A(this.vs,this.Ru)}ir(){return this.vs}nr(){return!0===this.re(V.te)}g(e){let t=!1;for(let i of this.ml)i===e&&(t=!0);t||this.ml.push(e)}v(e){let t=!1;for(let i of this.dl)i.constructor===e.constructor&&(t=!0);e instanceof l.A&&!t&&this.dl.push(e)}q(e){e instanceof n.A&&this.jn.push(e)}removeAllSubscriptions(){if(this.rr())for(let e of this.jn)e.removeAllSubscriptions()}removeSubscription(e){if(this.rr())for(let t of this.jn)t.removeSubscription(e)}ge(e){this.ul=e}ao(){return this.isInitialized}Nl(){return this.ul}tr(e,t){return this.rr()?$.o().Be(e,t):null}Vs(){return this.sl}}let J=new X},85142:(e,t,i)=>{i.d(t,{A:()=>s});let s={se:function(){if("u">typeof window&&window.crypto){if("function"==typeof window.crypto.randomUUID)return window.crypto.randomUUID();if("function"==typeof window.crypto.getRandomValues)try{let e=new Uint8Array(16);window.crypto.getRandomValues(e),e[6]=15&e[6]|64,e[8]=63&e[8]|128;let t=Array.from(e,e=>("0"+e.toString(16)).slice(-2));return[t.slice(0,4).join(""),t.slice(4,6).join(""),t.slice(6,8).join(""),t.slice(8,10).join(""),t.slice(10,16).join("")].join("-")}catch(e){}}let e=(e=!1)=>{let t=(Math.random().toString(16)+"000000000").substr(2,8);return e?"-"+t.substr(0,4)+"-"+t.substr(4,4):t};return e()+e(!0)+e(!0)+e()}}},87211:(e,t,i)=>{i.d(t,{A:()=>n});var s=i(97921);class n extends s.z{constructor(e,t=!1,i={},s){super(i),this.id=e,this.enabled=t,this.trackingString=s,this.id=e,this.enabled=t,this.trackingString=s}gt(){let e={};return e[n.ss.rs]=this.id,e[n.ss.Jr]=this.enabled,e[n.ss.Nr]=this.properties,e[n.ss.Or]=this.trackingString,e}}n.ss={rs:"id",Jr:"e",Nr:"pr",Or:"fts"},n.ui={rs:"id",Jr:"enabled",Nr:"properties",Or:"fts"}},88849:(e,t,i)=>{i.d(t,{i:()=>s});let s={sS:"inAppMessage must be an InAppMessage object",eS:"ab-pause-scrolling"}},91338:(e,t,i)=>{i.d(t,{A:()=>n});var s=i(9099);class n{constructor(e,t,i,s,n){this.endpoint=e,this.Wu=t,this.publicKey=i,this.Yc=s,this.xc=n,this.endpoint=e||null,this.Wu=t||null,this.publicKey=i||null,this.Yc=s||null,this.xc=n||null}gt(){return{e:this.endpoint,c:this.Wu,p:this.publicKey,u:this.Yc,v:this.xc}}static _u(e){return new n(e.e,(0,s.jU)(e.c),e.p,e.u,e.v)}}},91985:(e,t,i)=>{i.r(t),i.d(t,{requestPushPermission:()=>r});var s=i(84108),n=i(57505);function r(e,t){if(s.Ay.rr())return n.default.ra().subscribe((t,i,n)=>{let r=s.Ay.nn();r&&r.requestImmediateDataFlush(),"function"==typeof e&&e(t,i,n)},t)}},95887:(e,t,i)=>{i.d(t,{j3:()=>s,uD:()=>n});let s={PORTRAIT:0,LANDSCAPE:1},n={openUri:function(e,t,i){e&&(t||null!=i&&i.metaKey?window.open(e):window.location=e)},Ua:function(){return screen.width<=600},Ma:function(){if("orientation"in window)return 90===Math.abs(window.orientation)||270===window.orientation?s.LANDSCAPE:s.PORTRAIT;let e=window;if("screen"in e){let t=e.screen.orientation||screen.mozOrientation||screen.msOrientation;return null!=t&&"object"==typeof t&&(t=t.type),"landscape-primary"===t||"landscape-secondary"===t?s.LANDSCAPE:s.PORTRAIT}return s.PORTRAIT},gl:function(){return window.location.href}}},96009:(e,t,i)=>{i.d(t,{C:()=>s});let s=(e,t)=>
1(e=Math.ceil(e),Math.floor(Math.random()*((t=Math.floor(t))-e+1))+e)},97652:(e,t,i)=>{i.d(t,{A:()=>b});var s=i(84108),n=i(72071),r=i(24921),a=i(56778),o=i(18436),l=i(96009),u=i(17129),h=i(65098),c=i(87211),d=i(66541);class p extends r.A{constructor(e,t,i,n){super(),this.h=e,this.j=t,this.B=i,this.C=n,this.Xr=[],this.Gr=0,this.h=e,this.j=t,this.B=i,this.C=n,this.Kr=null,this.Qr=new o.A,this.S=10,this.T=null,this.I=null,s.Ay.q(this.Qr)}N(e){var t;if((null==(t=this.h)?void 0:t.Yr())&&null!=e&&e.feature_flags){for(let t of(this.Xr=[],e.feature_flags)){let e=function(e){if(e[c.A.ui.rs]&&"boolean"==typeof e[c.A.ui.Jr])return new c.A(e[c.A.ui.rs],e[c.A.ui.Jr],e[c.A.ui.Nr],e[c.A.ui.Or]);n.A.info(`Unable to create feature flag from ${JSON.stringify(e,null,2)}`)}(t);e&&this.Xr.push(e)}this.Gr=new Date().getTime(),this.Zr(),this.Qr.L(this.Xr)}}ho(){let e={};this.B&&(e=this.B.dt(a.d.ft.lo));let t={};for(let i in e){let s=function(e){if(e[c.A.ss.rs]&&"boolean"==typeof e[c.A.ss.Jr])return new c.A(e[c.A.ss.rs],e[c.A.ss.Jr],e[c.A.ss.Nr],e[c.A.ss.Or]);n.A.info(`Unable to deserialize feature flag from ${JSON.stringify(e,null,2)}`)}(e[i]);s&&(t[s.id]=s)}return t}do(){var e;return(null==(e=this.B)?void 0:e.dt(a.d.ft.vo))||{}}Fo(e){this.B&&this.B.bt(a.d.ft.vo,e)}It(e){return this.Qr.Rt(e)}refreshFeatureFlags(e,t,i=!1,s=!0){let n=()=>{"function"==typeof t&&t(),this.Qr.L(this.Xr)};if(!this.po(i))return!this.Kr&&this.h&&(this.Kr=this.h.jo(()=>{this.refreshFeatureFlags(e,t)})),void n();let r=this.j;if(!r)return void n();s&&this.X();let a=r.$({},!0),o=r.A(a,d.A.H.wo),c=!1;r.J(a,(s=-1)=>{let r=this.j;if(!r)return void n();let p=new Date().valueOf();d.A.K(this.B,d.A.H.wo,p),-1!==s&&o.push(["X-Braze-Req-Tokens-Remaining",s.toString()]),h.A.O({url:`${r.V()}/feature_flags/sync`,headers:o,data:a,W:t=>
1{r.Y(a,t,o)?(r.Z(),this.N(t),c=!1,"function"==typeof e&&e()):(c=!0,n())},error:e=>{r._(e,"retrieving feature flags"),c=!0,n()},tt:(s,n)=>{var a,o,h;let p;if(c){let e=(null==(a=this.h)?void 0:a.st())||u.xm,t=(null==(o=this.h)?void 0:o.it())||u.MF,i=(null==(h=this.h)?void 0:h.nt())||u.T,s=this.T;(null==s||s<e)&&(s=e),p=Math.min(i,(0,l.C)(e,s*t))}r.et(n,()=>{this.refreshFeatureFlags(e,t,i,!0)},d.A.H.wo,e=>this.rt(e),()=>this.X(),p)}})},d.A.H.wo,t)}X(){null!=this.I&&(clearTimeout(this.I),this.I=null)}rt(e){this.X(),this.I=e}po(e){if(!this.h)return!1;if(!e){let e=this.h.yo();if(null==e)return!1;let t=!1;if(!isNaN(e)){if(-1===e)return n.A.info("Feature flag refreshes not allowed"),!1;t=new Date().getTime()>=(this.Gr||0)+1e3*e}if(!t)return n.A.info(`Feature flag refreshes were rate limited to ${e} seconds`),!1}return this.h.Yr()}bo(){var e;return(null==(e=this.B)?void 0:e.dt(a.d.ft.Co))||null}Ro(){var e,t;null==(e=this.B)||e.bt(a.d.ft.Co,null==(t=this.C)?void 0:t.yt())}To(){var e;let t=null==(e=this.C)?void 0:e.yt(),i=this.bo();return null==i||t===i}Zr(){if(!this.B)return;let e={};for(let t of this.Xr){let i=t.gt();e[t.id]=i}this.B.bt(a.d.ft.lo,e),this.B.bt(a.d.ft.Do,this.Gr),this.Ro()}changeUser(){this.X()}clearData(){this.X()}}let m={i:!1,provider:null,o:()=>(m.t(),m.provider||(m.provider=new p(s.Ay.l(),s.Ay.m(),s.Ay.p(),s.Ay.u(
1)),s.Ay.v(m.provider)),m.provider),t:()=>{m.i||(s.Ay.g(m),m.i=!0)},destroy:()=>{m.provider=null,m.i=!1}},b=m},97921:(e,t,i)=>{i.d(t,{z:()=>n});var s=i(72071);class n{constructor(e){this.properties=e,this.properties=e||{}}tp(e,t,i){let s=this.properties[e];return null==s?(this.rp(e),null):t(s)?s.value:(this.ep(i),null)}getStringProperty(e){return this.tp(e,this.op,"string")}getNumberProperty(e){return this.tp(e,this.sp,"number")}getBooleanProperty(e){return this.tp(e,this.ip,"boolean")}getImageProperty(e){return this.tp(e,this.np,"image")}getJsonProperty(e){return this.tp(e,this.pp,"jsonobject")}getTimestampProperty(e){return this.tp(e,this.up,"datetime")}ep(e){s.A.info(`Property is not of type ${e}.`)}rp(e){s.A.info(`${e} not found in properties.`)}op(e){return"string"===e.type&&"string"==typeof e.value}sp(e){return"number"===e.type&&"number"==typeof e.value}ip(e){return"boolean"===e.type&&"boolean"==typeof e.value}np(e){return"image"===e.type&&"string"==typeof e.value}pp(e){return"jsonobject"===e.type&&"object"==typeof e.value&&e.value.constructor==Object}up(e){return"datetime"===e.type&&"number"==typeof e.value}}},98e3:(e,t,i)=>{i.d(t,{B:()=>b});var s=i(18120),n=i(84108),r=i(24921),a=i(13e3),o=i(82728),l=i(68286),u=i(56778);class h{constructor(e,t,i,s,n){this.triggerId=e,this.Qn=t,this.Jn=i,this.Un=s,this.Vn=n,this.triggerId=e,this.Qn=t,this.Jn=i,this.Un=s,this.Vn=n}static fromJson(e,t,i,s,n){return null==e||null==e.trigger_id?null:new h(e.trigger_id,t,i,s,n)}}var c=i(63682),d=i(29885),p=i(72071);class m extends r.A{constructor(e,t,i,s,n){super(),this.tg=e,this.ws=t,this.B=i,this.Ru=s,this.ig=n,this.tg=e,this.ws=t,this.B=i,this.Ru=s,this.ig=n,this.sg=[],this.eg=[],this.hg=null,this.ng={},this.og={},this.triggers=[],this.lg=0,this.ag(),this.gg()}fg(){if(this.B){this.hg=this.B.dt(u.d.ft.iE)||this.hg,this.ng=this.B.dt(u.d.ft.EE)||this.ng,this.og=this.B.dt(u.d.ft.aE)||this.og;for(let e=0;e<this.triggers.length;e++){let t=this.triggers[e];t.id&&null!=this.og[t.id]&&t.zd(this.og[t.id])}}}ag(){if(!this.B)return;this.lg=this.B.dt(u.d.ft.nE)||0;let e=this.B.dt(u.d.ft.oE)||[],t=[];for(let i=0;i<e.length;i++)t.push(c.A._u(e[i]));this.triggers=t,this.fg()}gg(){let e=this,t=function(t,i,s,n,r){return function(){e.cg(t,i,s,n,r)}},i={};for(let e of this.triggers)e.id&&(i[e.id]=e);let s=!1;for(let e=0;e<this.triggers.length;e++){let n=this.triggers[e];if(n.id&&null!=this.ng[n.id]){let e=this.ng[n.id],r=[];for(let s=0;s<e.length;s++){let a=e[s],u=n.Md(a.Un||0);if(u>0){let e,s;r.push(a),null!=a.ug&&(e=a.ug),null!=a.dg&&o.A.gE(a.dg)&&(s=o.A._u(a.dg));let h=[];if(a.pg&&(0,l.cy)(a.pg))for(let e=0;e<a.pg.length;e++){let t=i[a.pg[e]];null!=t&&h.push(t)}this.eg.push(window.setTimeout(t(n,a.Un||0,e,s,h),u))}}this.ng[n.id].length>r.length&&(this.ng[n.id]=r,s=!0,0===this.ng[n.id].length&&delete this.ng[n.id])}}s&&this.B&&this.B.bt(u.d.ft.EE,this.ng)}mg(){if(!this.B)return;let e=[];for(let t=0;t<this.triggers.length;t++)e.push(this.triggers[t].gt());this.lg=new Date().valueOf(),this.B.bt(u.d.ft.oE,e),this.B.bt(u.d.ft.nE,this.lg)}bg(){this.B&&((this.B.dt(u.d.ft.nE)||0)>this.lg?this.ag():this.fg())}N(e){let t=!1;if(null!=e&&e.triggers){let i;this.ig.oa(),this.fg();let s={},n={};this.triggers=[];for(let i=0;i<e.triggers.length;i++){let r=c.A.fromJson(e.triggers[i]);if(r){r.id&&null!=this.og[r.id]&&(r.zd(this.og[r.id]),s[r.id]=this.og[r.id]),r.id&&null!=this.ng[r.id]&&(n[r.id]=this.ng[r.id]);for(let e=0;e<r.Pd.length;e++)if(r.Pd[e].km(d.A.qs,null)){t=!0;break}this.triggers.push(r)}}(0,l.n4)(this.og,s)||(this.og=s,this.B&&this.B.bt(u.d.ft.aE,this.og)),(0,l.n4)(this.ng,n)||(this.ng=n,this.B&&this.B.bt(u.d.ft.EE,this.ng)),this.mg(),t&&(p.A.info("Trigger with test condition found, firing test."),this.he(d.A.qs)),this.he(d.A.OPEN);let r=this.sg;this.sg=[];for(let e=0;e<r.length;e++)i=Array.prototype.slice.call(r[e]),this.he(...i)}}cg(e,t,i,s,n){let r,o,l,u=s=>{this.fg();let n=new Date().valueOf();e.Bd(t)||(!1===navigator.onLine&&e.type===c.A.Ln.Kn&&s.imageUrl?p.A.info(`Not showing ${e.type} trigger action ${e.id} due to offline state.`):e.xd(n)&&this.wg(e,n,i)?0===this.ws.De()?p.A.
1info(`Not displaying trigger ${e.id} because neither automaticallyShowInAppMessages() nor subscribeToInAppMessage() were called.`):(this.ws.L([s]),this.yg(e,n)):p.A.info(`Not displaying trigger ${e.id} because display time fell outside of the acceptable time window.`))},d=()=>{this.fg();let r=n.pop();if(null!=r)if(this.Tg(r,t,i,s,n),r.Bd(t)){let e=`Server aborted in-app message display, but the timeout on fallback trigger ${r.id} has already elapsed.`;n.length>0&&(e+=" Continuing to fall back."),p.A.info(e),d()}else{p.A.info(`Server aborted in-app message display. Falling back to lower priority ${r.type} trigger action ${e.id}.`);let a=1e3*r.Ed-(new Date().valueOf()-t);a>0?this.eg.push(window.setTimeout(()=>{this.cg(r,t,i,s,n)},a)):this.cg(r,t,i,s,n)}};switch(e.type){case c.A.Ln.Kn:if(null==(r=(0,a.g)(e.data))){p.A.error(`Could not parse trigger data for trigger ${e.id}, ignoring.`);break}if(o=this.ig.xn(r)){p.A.error(o),d();break}u(r);break;case c.A.Ln.Cd:if(null==(l=h.fromJson(e.data,u,d,t,e.Vn||0))){p.A.error(`Could not parse trigger data for trigger ${e.id}, ignoring.`);break}this.ig.Fn(l,i,s);break;default:p.A.error(`Trigger ${e.id} was of unexpected type ${e.type}, ignoring.`)}}he(e,t=null,i){if(!(0,l.BY)(d.A,e,"Cannot fire trigger action.","TriggerEvents"))return;if(this.Ru&&this.Ru.vd())return p.A.info("Trigger sync is currently in progress, awaiting sync completion before firing trigger event."),void this.sg.push(arguments);this.bg();let s=new Date().valueOf(),n=s-(this.hg||0),r=!0,a=!0,o=[];for(let i=0;i<this.triggers.length;i++){let n=this.triggers[i],l=s+1e3*n.Ed;if(n.xd(l)&&(null==n.startTime||n.startTime.valueOf()<=s)&&(null==n.endTime||n.endTime.valueOf()>=s)){let i=!1;for(let s=0;s<n.Pd.length;s++)if(n.Pd[s].km(e,t)){i=!0;break}i&&(r=!1,this.wg(n,l,e)&&(a=!1,o.push(n)))}}if(r)return void p.A.info(`Trigger event ${e} did not match any trigger conditions.`);if(a)return void p.A.info(`Ignoring ${e} trigger event because a trigger was displayed ${n/1e3}s ago.`);o.sort((e,t)=>e.priority-t.priority);let u=o.pop();null!=u&&(p.A.info(`Firing ${u.type} trigger action ${u.id} from trigger event ${e}.`),this.Tg(u,s,e,i,o),0===u.Ed?this.cg(u,s,e,i,o):this.eg.push(window.setTimeout(()=>{this.cg(u,s,e,i,o)},1e3*u.Ed)))}changeUser(e=!1){if(this.triggers=[],this.B&&this.B.zt(u.d.ft.oE),!e){this.sg=[],this.hg=null,this.og={},this.ng={};for(let e=0;e<this.eg.length;e++)clearTimeout(this.eg[e]);this.eg=[],this.B&&(this.B.zt(u.d.ft.iE),this.B.zt(u.d.ft.aE),this.B.zt(u.d.ft.EE))}}clearData(){this.triggers=[],this.hg=null,this.og={},this.ng={};for(let e=0;e<this.eg.length;e++)clearTimeout(this.eg[e]);this.eg=[]}wg(e,t,i){if(null==this.hg)return!0;if(i===d.A.qs)return p.A.info("Ignoring minimum interval between trigger because it is a test type."),!0;let s=e._d;return null==s&&(s=this.tg),t-this.hg>=1e3*s}Tg(e,t,i,s,n){let r;this.fg(),e.id&&(this.ng[e.id]=this.ng[e.id]||[]);let a={};a.Un=t,a.ug=i,null!=s&&(r=s.gt()),a.dg=r;let o=[];for(let e of n)e.id&&o.push(e.id);a.pg=o,e.id&&this.ng[e.id].push(a),this.B&&this.B.bt(u.d.ft.EE,this.ng)}yg(e,t){this.fg(),e.zd(t),this.hg=t,e.id&&(this.og[e.id]=t),this.B&&(this.B.bt(u.d.ft.iE,t),this.B.bt(u.d.ft.aE,this.og))}}let b={i:!1,provider:null,o:()=>(b.t(),b.provider||b.rg(),b.provider),rg:()=>{if(!b.provider){let e=n.Ay.re(n.lw.Xh);b.provider=new m(null!=e?e:30,s.A.ra().An(),n.Ay.p(),n.Ay.nn(),s.A.ra()),n.Ay.v(b.provider)}},t:()=>{b.i||(b.rg(),n.Ay.g(b),b.i=!0)},destroy:()=>{b.provider=null,b.i=!1}}},98689:(e,t,i)=>{i.r(t),i.d(t,{logCustomEvent:()=>c});var s=i(84108),n=i(56183),r=i(72071),a=i(11457),o=i(29885),l=i(98e3),u=i(77752),h=i(17129);function c(e,t){if(!s.Ay.rr())return!1;if(null==e||e.length<=0)return r.A.error(`logCustomEvent requires a non-empty eventName, got "${e}". Ignoring event.`),!1;if(!(0,u.Dz)(e,"log custom event","the event name"))return!1;let[i,c]=(0,u.fB)(t,h.em.$e,"eventProperties",`log custom event "${e}"`,"event");if(!i)return!1;let d=s.Ay.l();if(d&&d.Ce(e))return r.A.info(`Custom Event "${e}" is blocklisted, ignoring.`),!1;let p=n.A.lt(a.w.CustomEvent,{n:e,p:c});if(p.W)for(let i of(r.A.info(`Logged custom event "${e}".`),p.Ee))l.B.o().he(o.A.xe,[e,t],i);return p.W}}}]);

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.