/* * Braze Web SDK v3.4.1 * (c) Braze, Inc. 2021 - http://braze.com * License available at https://github.com/Appboy/appboy-web-sdk/blob/master/LICENSE * Compiled on 2021-10-07 */ (function(){(function(b,a){if("function"===typeof define&&define.amd)define([],a);else if("object"===typeof module&&module.exports){var e = a();module.exports=e;module.exports.default=e}else if(b.appboy){var d=a(),c;for(c in d)b.appboy[c]=d[c]}else b.appboy=a()})("undefined"!==typeof self?self:this,function(){var appboyInterface={};var p;function aa(a){var b=0;return function(){return bb||1342177279>>=1)c+=c;return d}}); ha("Promise",function(a){function b(g){this.Pb=0;this.Pd=void 0;this.qb=[];var h=this.xd();try{g(h.resolve,h.reject)}catch(k){h.reject(k)}}function c(){this.Ha=null}function d(g){return g instanceof b?g:new b(function(h){h(g)})}if(a)return a;c.prototype.Pe=function(g){if(null==this.Ha){this.Ha=[];var h=this;this.Qe(function(){h.Yg()})}this.Ha.push(g)};var e=fa.setTimeout;c.prototype.Qe=function(g){e(g,0)};c.prototype.Yg=function(){for(;this.Ha&&this.Ha.length;){var g=this.Ha;this.Ha=[];for(var h= 0;h=d?b++:2047=d&&(b+=2);56320<=d&&57343>=d&&c--}return b};function Qa(a,b,c,d){(d="string"===typeof a||null===a&&d)||w.error("Cannot "+b+" because "+c+' "'+a+'" is invalid.');return d}function Ra(a,b,c){var d=null!=a&&"string"===typeof a&&(""===a||a.match(Sa));d||w.error("Cannot "+b+" because "+c+' "'+a+'" is invalid.');return d} function Ta(a,b,c,d,e){null==a&&(a={});if("object"!==typeof a||Ca(a))return w.error(b+" requires that "+c+" be an object. Ignoring "+e+"."),[!1,null];b=JSON.stringify(a);if(Pa(b)>Ua)return w.error("Could not "+d+" because "+c+" was greater than the max size of "+Va+"."),[!1,null];try{var f=JSON.parse(b)}catch(l){return w.error("Could not "+d+" because "+c+" did not contain valid JSON."),[!1,null]}for(var g in a){if(!Ra(g,d,"the "+e+" property name"))return[!1,null];c=a[g];if(null==c)delete a[g],delete f[g]; else{Da(c)&&(f[g]=Ka(c));var h=d,k="the "+e+' property "'+g+'"';(b=Ea(c)||Ca(c)?Xa(c,f[g]):Ya(c))||w.error("Cannot "+h+" because "+k+' "'+c+'" is invalid.');if(!b)return[!1,null]}}return[!0,f]}function Xa(a,b){if(Ca(a)&&Ca(b))for(var c=0;c=a.length)return w.error("addAlias requires a non-empty alias"),!1;if(!Qa(b,"add alias","the label",!1)||0>=b.length)return w.error("addAlias requires a non-empty label"),!1;var c=this.G,d=new $a,e=ab(c.F),f=x.zf;d.j.push(new E(c.f.o(),f,(new Date).valueOf(),e,{a:a,l:b}));d.h=bb(c.b,d.j);return d.h};p.wh=function(a){return Qa(a,"set first name","the firstName",!0)?cb(this.f,"first_name",a):!1}; p.Bh=function(a){return Qa(a,"set last name","the lastName",!0)?cb(this.f,"last_name",a):!1};p.uh=function(a){return null===a||"string"===typeof a&&null!=a.toLowerCase().match(Za)?cb(this.f,"email",a):(w.error('Cannot set email address - "'+a+'" did not pass RFC-5322 validation.'),!1)};p.xh=function(a){"string"===typeof a&&(a=a.toLowerCase());return null===a||Aa(db,a,'Gender "'+a+'" is not a valid gender.',"User.Genders")?cb(this.f,"gender",a):!1}; p.sh=function(a,b,c){if(null===a&&null===b&&null===c)return cb(this.f,"dob",null);a=parseInt(a);b=parseInt(b);c=parseInt(c);return isNaN(a)||isNaN(b)||isNaN(c)||12b||31c?(w.error("Cannot set date of birth - parameters should comprise a valid date e.g. setDateOfBirth(1776, 7, 4);"),!1):cb(this.f,"dob",""+a+"-"+b+"-"+c)};p.qh=function(a){return Qa(a,"set country","the country",!0)?cb(this.f,"country",a):!1}; p.yh=function(a){return Qa(a,"set home city","the homeCity",!0)?cb(this.f,"home_city",a):!1};p.Ah=function(a){return Qa(a,"set language","the language",!0)?cb(this.f,"language",a):!1};p.vh=function(a){return Aa(eb,a,'Email notification setting "'+a+'" is not a valid subscription type.',"User.NotificationSubscriptionTypes")?cb(this.f,"email_subscribe",a):!1}; p.Sd=function(a){return Aa(eb,a,'Push notification setting "'+a+'" is not a valid subscription type.',"User.NotificationSubscriptionTypes")?cb(this.f,"push_subscribe",a):!1};p.Ch=function(a){return Qa(a,"set phone number","the phoneNumber",!0)?null===a||a.match(fb)?cb(this.f,"phone",a):(w.error('Cannot set phone number - "'+a+'" did not pass validation.'),!1):!1};p.ph=function(a){return cb(this.f,"image_url",a)}; p.Kc=function(a,b,c,d,e){if(null==a||null==b)return w.error("Cannot set last-known location - latitude and longitude are required."),!1;a=parseFloat(a);b=parseFloat(b);null!=c&&(c=parseFloat(c));null!=d&&(d=parseFloat(d));null!=e&&(e=parseFloat(e));return isNaN(a)||isNaN(b)||null!=c&&isNaN(c)||null!=d&&isNaN(d)||null!=e&&isNaN(e)?(w.error("Cannot set last-known location - all supplied parameters must be numeric."),!1):90a||180b?(w.error("Cannot set last-known location - latitude and longitude are bounded by \u00b190 and \u00b1180 respectively."), !1):null!=c&&0>c||null!=e&&0>e?(w.error("Cannot set last-known location - accuracy and altitudeAccuracy may not be negative."),!1):this.G.Kc(this.f.o(),a,b,d,c,e).h}; p.Qd=function(a,b){if(!Ra(a,"set custom user attribute","the given key"))return!1;var c=typeof b,d=Da(b),e=Ca(b);if("number"!==c&&"boolean"!==c&&!d&&!e&&null!==b&&!Ra(b,'set custom user attribute "'+a+'"',"the given value"))return!1;d&&(b=Ka(b));if(e){for(c=0;cb||isNaN(c)||180c)return w.error("Received invalid values for latitude and/or longitude. Latitude and longitude are bounded by \u00b190 and \u00b1180 respectively, or must both be null for removal."),!1;var d=this.G,e=c;c=new $a;if(ib(d.J,a))w.info('Custom Attribute "'+a+'" is blocklisted, ignoring.'),c.h=!1;else{var f=ab(d.F); if(null===b&&null===e){var g=x.gg;a={key:a}}else g=x.fg,a={key:a,latitude:b,longitude:e};c.j.push(new E(d.f.o(),g,(new Date).valueOf(),f,a));c.h=bb(d.b,c.j)}return c.h};p.Ng=function(a){return!Qa(a,"add user to subscription group","subscription group ID",!1)||0>=a.length?(w.error("addToSubscriptionGroup requires a non-empty subscription group ID"),!1):jb(this.G,a,kb).h}; p.kh=function(a){return!Qa(a,"remove user from subscription group","subscription group ID",!1)||0>=a.length?(w.error("removeFromSubscriptionGroup requires a non-empty subscription group ID"),!1):jb(this.G,a,lb).h};var fb=/^[0-9 .\\(\\)\\+\\-]+$/,db={MALE:"m",FEMALE:"f",OTHER:"o",UNKNOWN:"u",NOT_APPLICABLE:"n",PREFER_NOT_TO_SAY:"p"},eb={OPTED_IN:"opted_in",SUBSCRIBED:"subscribed",UNSUBSCRIBED:"unsubscribed"},kb="subscribed",lb="unsubscribed";I.User=M;I.User.Genders=db; I.User.NotificationSubscriptionTypes=eb;I.User.prototype.getUserId=M.prototype.o;I.User.prototype.setFirstName=M.prototype.wh;I.User.prototype.setLastName=M.prototype.Bh;I.User.prototype.setEmail=M.prototype.uh;I.User.prototype.setGender=M.prototype.xh;I.User.prototype.setDateOfBirth=M.prototype.sh;I.User.prototype.setCountry=M.prototype.qh;I.User.prototype.setHomeCity=M.prototype.yh;I.User.prototype.setLanguage=M.prototype.Ah;I.User.prototype.setEmailNotificationSubscriptionType=M.prototype.vh; I.User.prototype.setPushNotificationSubscriptionType=M.prototype.Sd;I.User.prototype.setPhoneNumber=M.prototype.Ch;I.User.prototype.setAvatarImageUrl=M.prototype.ph;I.User.prototype.setLastKnownLocation=M.prototype.Kc;I.User.prototype.setCustomUserAttribute=M.prototype.Qd;I.User.prototype.addToCustomAttributeArray=M.prototype.Mg;I.User.prototype.removeFromCustomAttributeArray=M.prototype.jh;I.User.prototype.incrementCustomUserAttribute=M.prototype.eh;I.User.prototype.addAlias=M.prototype.Lg; I.User.prototype.setCustomLocationAttribute=M.prototype.rh;I.User.prototype.addToSubscriptionGroup=M.prototype.Ng;I.User.prototype.removeFromSubscriptionGroup=M.prototype.kh;function mb(){}mb.prototype.Bd=function(){};mb.prototype.Dd=function(){};mb.prototype.ob=function(){};function nb(a,b){if(a&&b)if(a=a.toLowerCase(),Ca(b.O))for(var c=0;cthis.Ge)return w.info("Storage failure: object is \u2248"+d+" bytes which is greater than the max of "+this.Ge),!1;this.sd[a]=c;return!0};Lb.prototype.Z=function(a){a=this.sd[a];return null==a?null:a.value}; Lb.prototype.remove=function(a){this.sd[a]=null};function Mb(a,b,c){this.ma=[];b&&this.ma.push(new Ib(a));c&&this.ma.push(new Hb(a));this.ma.push(new Lb)}Mb.prototype.store=function(a,b){for(var c=!0,d=0;dMath.abs(h)&&25<=Math.abs(g)?(0g&&b===Xb&&c(f),e=d=null):25<=Math.abs(h)&&(0h&&b===Zb&&0===a.scrollTop&&c(f),e=d=null)}})} function $b(a,b,c){var d=document.createElementNS("http://www.w3.org/2000/svg","svg");d.setAttribute("viewBox",a);d.setAttribute("xmlns","http://www.w3.org/2000/svg");a=document.createElementNS("http://www.w3.org/2000/svg","path");a.setAttribute("d",b);null!=c&&a.setAttribute("fill",c);d.appendChild(a);return d}var Rb=null,Yb="up",Zb="down",Wb="left",Xb="right";function ac(a,b,c){var d=document.createElement("button");d.setAttribute("aria-label",a);d.setAttribute("tabindex","0");d.setAttribute("role","button");Sb(d,"touchstart",function(){});d.className="ab-close-button";a=$b("0 0 15 15","M15 1.5L13.5 0l-6 6-6-6L0 1.5l6 6-6 6L1.5 15l6-6 6 6 1.5-1.5-6-6 6-6z",b);d.appendChild(a);d.addEventListener("keydown",function(e){if(32===e.keyCode||13===e.keyCode)c(),e.stopPropagation()});d.onclick=function(e){c();e.stopPropagation()};return d};var bc={gh:function(){return 600>=screen.width},ah:function(){if("orientation"in window)return 90===Math.abs(window.orientation)||270===window.orientation?bc.Sa.Wc:bc.Sa.dc;if("screen"in window){var a=window.screen.orientation||screen.Wh||screen.Yh;null!=a&&"object"===typeof a&&(a=a.type);if("landscape-primary"===a||"landscape-secondary"===a)return bc.Sa.Wc}return bc.Sa.dc},hh:function(a,b,c){c||null!=b&&b.metaKey?window.open(a):window.location=a},Sa:{dc:0,Wc:1}};I.WindowUtils=bc; I.WindowUtils.openUri=bc.hh;function cc(a,b,c,d,e,f,g,h,k,l,m,t,q,v,r,z){this.id=a;this.viewed=b||!1;this.title=c||"";this.imageUrl=d;this.description=e||"";this.created=f||null;this.updated=g||null;this.categories=h||[];this.expiresAt=k||null;this.url=l;this.linkText=m;t=parseFloat(t);this.aspectRatio=isNaN(t)?null:t;this.extras=q;this.pinned=v||!1;this.dismissible=r||!1;this.dismissed=!1;this.clicked=z||!1;this.test=!1;this.nd=this.W=null}function dc(a){null==a.W&&(a.W=new Nb);return a.W} function ec(a){null==a.nd&&(a.nd=new Nb);return a.nd}p=cc.prototype;p.Qb=function(a){return Ob(dc(this),a)};p.Ud=function(a){return Ob(ec(this),a)};p.N=function(a){dc(this).N(a);ec(this).N(a)};p.K=function(){dc(this).K();ec(this).K()};p.Md=function(){this.viewed=!0};p.fb=function(){this.clicked=this.viewed=!0;Pb(dc(this))};p.Ld=function(){return this.dismissible&&!this.dismissed?(this.dismissed=!0,Pb(ec(this)),!0):!1}; function fc(a,b){if(null==b||b[U.wa]!==a.id)return!0;if(b[U.ne])return!1;if(null!=b[U.ca]&&null!=a.updated&&b[U.ca]>>24}function sc(a){a=parseInt(a);if(isNaN(a))return"";var b=parseFloat(b);isNaN(b)&&(b=1);a>>>=0;var c=a&255,d=(a&65280)>>>8,e=(a&16711680)>>>16;return(vb.Ya===ob.Zb?8>>24)/255*b].join()+")":"rgb("+[e,d,c].join()+")"};function W(a,b,c,d,e,f,g,h,k,l,m,t,q,v,r,z,H,D,F,K,A,L,J,G,T,Q,n,u,y,B,P){this.message=a;this.messageAlignment=b||tc;this.duration=t||5E3;this.slideFrom=c||uc;this.extras=d||{};this.campaignId=e;this.cardId=f;this.triggerId=g;this.clickAction=h||vc;this.uri=k;this.openTarget=l||wc;this.dismissType=m||xc;this.icon=q;this.imageUrl=v;this.imageStyle=r||yc;this.iconColor=z||zc.kd;this.iconBackgroundColor=H||zc.Yd;this.backgroundColor=D||zc.kd;this.textColor=F||zc.ae;this.closeButtonColor=K||zc.Of;this.animateIn= A;null==this.animateIn&&(this.animateIn=!0);this.animateOut=L;null==this.animateOut&&(this.animateOut=!0);this.header=J;this.headerAlignment=G||tc;this.headerTextColor=T||zc.ae;this.frameColor=Q||zc.rg;this.buttons=n||[];this.cropType=u||Ac;this.orientation=y;this.htmlId=B;this.css=P;this.Be=this.Wa=this.Ce=!1;this.W=new Nb;this.jc=new Nb}p=W.prototype;p.Ja=function(){return!0};p.tf=function(){return this.Ja()};function Bc(a){return null!=a.htmlId&&4a.target.clientHeight||a.preventDefault()} p.Gc=function(a){this.Ja()&&null!=a.parentNode&&this.orientation!==Zc&&(null!=a.parentNode.classList&&a.parentNode.classList.add(Sc),document.body.addEventListener("touchmove",Tc,Qb()?{passive:!1}:!1));a.className+=" "+Uc};p.oa=function(){var a="";this.animateIn&&(a+=" ab-animate-in");this.animateOut&&(a+=" ab-animate-out");return a}; var zc={ae:4281545523,kd:4294967295,Yd:4278219733,Pf:4293914607,Qf:4283782485,rg:3224580915,Of:4288387995},dd={ee:"hd",xf:"ias",ng:"of",Rf:"do",xb:"umt",vb:"tf",fe:"te"},uc="BOTTOM",ed={TOP:"TOP",BOTTOM:uc},bd="NEWS_FEED",$c="URI",vc="NONE",fd={NEWS_FEED:bd,URI:$c,NONE:vc},xc="AUTO_DISMISS",gd={AUTO_DISMISS:xc,MANUAL:"SWIPE"},wc="NONE",ad="BLANK",hd={NONE:wc,BLANK:ad},yc="TOP",Yc="GRAPHIC",id={TOP:yc,GRAPHIC:Yc},Zc="LANDSCAPE",jd={PORTRAIT:"PORTRAIT",LANDSCAPE:Zc},tc="CENTER",kd={START:"START",CENTER:tc, END:"END"},cd="CENTER_CROP",Ac="FIT_CENTER",ld={CENTER_CROP:cd,FIT_CENTER:Ac},Mc="SLIDEUP",Hc="MODAL",Ic="MODAL_STYLED",Kc="FULL",Oc="WEB_HTML",Pc="HTML",Xc=500,Uc="ab-show",Vc="ab-hide",Sc="ab-pause-scrolling";I.InAppMessage=W;I.InAppMessage.SlideFrom=ed;I.InAppMessage.ClickAction=fd;I.InAppMessage.DismissType=gd;I.InAppMessage.OpenTarget=hd;I.InAppMessage.ImageStyle=id;I.InAppMessage.TextAlignment=kd;I.InAppMessage.Orientation=jd;I.InAppMessage.CropType=ld;I.InAppMessage.fromJson=Ec; I.InAppMessage.prototype.subscribeToClickedEvent=W.prototype.Qb;I.InAppMessage.prototype.subscribeToDismissedEvent=W.prototype.Ud;I.InAppMessage.prototype.removeSubscription=W.prototype.N;I.InAppMessage.prototype.removeAllSubscriptions=W.prototype.K;I.InAppMessage.prototype.closeMessage=W.prototype.Ue;function Gc(a,b,c,d,e,f,g){this.text=a||"";this.backgroundColor=b||zc.Yd;this.textColor=c||zc.kd;this.borderColor=d||this.backgroundColor;this.clickAction=e||vc;this.uri=f;null==g&&(g=md);this.id=g;this.Wa=!1;this.W=new Nb}Gc.prototype.Qb=function(a){return Ob(this.W,a)};Gc.prototype.N=function(a){this.W.N(a)};Gc.prototype.K=function(){this.W.K()};Gc.prototype.fb=function(){return this.Wa?!1:(this.Wa=!0,Pb(this.W),!0)};var md=-1;I.InAppMessageButton=Gc; I.InAppMessageButton.prototype.subscribeToClickedEvent=Gc.prototype.Qb;I.InAppMessageButton.prototype.removeSubscription=Gc.prototype.N;I.InAppMessageButton.prototype.removeAllSubscriptions=Gc.prototype.K;function Fc(a){this.triggerId=a}I.ControlMessage=Fc;function nd(a){var b=a.querySelectorAll(".ab-close-button, .ab-message-button");if(0Please check again later.",FEED_TIMEOUT_MESSAGE:"Sorry, this refresh timed out.
Please try again later."},ar:{NO_CARDS_MESSAGE:"\u0644\u064a\u0633 \u0644\u062f\u064a\u0646\u0627 \u0623\u064a \u062a\u062d\u062f\u064a\u062b. \u064a\u0631\u062c\u0649 \u0627\u0644\u062a\u062d\u0642\u0642 \u0645\u0631\u0629 \u0623\u062e\u0631\u0649 \u0644\u0627\u062d\u0642\u0627\u064b",FEED_TIMEOUT_MESSAGE:"\u064a\u0631\u062c\u0649 \u062a\u0643\u0631\u0627\u0631 \u0627\u0644\u0645\u062d\u0627\u0648\u0644\u0629 \u0644\u0627\u062d\u0642\u0627"}, cs:{NO_CARDS_MESSAGE:"V tuto chv\u00edli pro v\u00e1s nem\u00e1me \u017e\u00e1dn\u00e9 aktualizace.
Zkontrolujte pros\u00edm znovu pozd\u011bji.",FEED_TIMEOUT_MESSAGE:"Pros\u00edm zkuste to znovu pozd\u011bji."},da:{NO_CARDS_MESSAGE:"Vi har ingen updates.
Pr\u00f8v venligst senere.",FEED_TIMEOUT_MESSAGE:"Pr\u00f8v venligst senere."},de:{NO_CARDS_MESSAGE:"Derzeit sind keine Updates verf\u00fcgbar.
Bitte sp\u00e4ter noch einmal versuchen.",FEED_TIMEOUT_MESSAGE:"Bitte sp\u00e4ter noch einmal versuchen."}, es:{NO_CARDS_MESSAGE:"No tenemos actualizaciones.
Por favor compru\u00e9belo m\u00e1s tarde.",FEED_TIMEOUT_MESSAGE:"Por favor int\u00e9ntelo m\u00e1s tarde."},"es-mx":{NO_CARDS_MESSAGE:"No tenemos ninguna actualizaci\u00f3n.
Vuelva a verificar m\u00e1s tarde.",FEED_TIMEOUT_MESSAGE:"Por favor, vuelva a intentarlo m\u00e1s tarde."},et:{NO_CARDS_MESSAGE:"Uuendusi pole praegu saadaval.
Proovige hiljem uuesti.",FEED_TIMEOUT_MESSAGE:"Palun proovige hiljem uuesti."},fi:{NO_CARDS_MESSAGE:"P\u00e4ivityksi\u00e4 ei ole saatavilla.
Tarkista my\u00f6hemmin uudelleen.", FEED_TIMEOUT_MESSAGE:"Yrit\u00e4 my\u00f6hemmin uudelleen."},fr:{NO_CARDS_MESSAGE:"Aucune mise \u00e0 jour disponible.
Veuillez v\u00e9rifier ult\u00e9rieurement.",FEED_TIMEOUT_MESSAGE:"Veuillez r\u00e9essayer ult\u00e9rieurement."},he:{NO_CARDS_MESSAGE:".\u05d0\u05d9\u05df \u05dc\u05e0\u05d5 \u05e2\u05d3\u05db\u05d5\u05e0\u05d9\u05dd. \u05d1\u05d1\u05e7\u05e9\u05d4 \u05d1\u05d3\u05d5\u05e7 \u05e9\u05d5\u05d1 \u05d1\u05e7\u05e8\u05d5\u05d1",FEED_TIMEOUT_MESSAGE:".\u05d1\u05d1\u05e7\u05e9\u05d4 \u05e0\u05e1\u05d4 \u05e9\u05d5\u05d1 \u05d1\u05e7\u05e8\u05d5\u05d1"}, hi:{NO_CARDS_MESSAGE:"\u0939\u092e\u093e\u0930\u0947 \u092a\u093e\u0938 \u0915\u094b\u0908 \u0905\u092a\u0921\u0947\u091f \u0928\u0939\u0940\u0902 \u0939\u0948\u0902\u0964 \u0915\u0943\u092a\u092f\u093e \u092c\u093e\u0926 \u092e\u0947\u0902 \u092b\u093f\u0930 \u0938\u0947 \u091c\u093e\u0901\u091a \u0915\u0930\u0947\u0902.\u0964",FEED_TIMEOUT_MESSAGE:"\u0915\u0943\u092a\u092f\u093e \u092c\u093e\u0926 \u092e\u0947\u0902 \u0926\u094b\u092c\u093e\u0930\u093e \u092a\u094d\u0930\u092f\u093e\u0938 \u0915\u0930\u0947\u0902\u0964."}, id:{NO_CARDS_MESSAGE:"Kami tidak memiliki pembaruan. Coba lagi nanti.",FEED_TIMEOUT_MESSAGE:"Coba lagi nanti."},it:{NO_CARDS_MESSAGE:"Non ci sono aggiornamenti.
Ricontrollare pi\u00f9 tardi.",FEED_TIMEOUT_MESSAGE:"Riprovare pi\u00f9 tardi."},ja:{NO_CARDS_MESSAGE:"\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306f\u3042\u308a\u307e\u305b\u3093\u3002
\u5f8c\u3067\u3082\u3046\u4e00\u5ea6\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002",FEED_TIMEOUT_MESSAGE:"\u5f8c\u3067\u3082\u3046\u4e00\u5ea6\u8a66\u3057\u3066\u304f\u3060\u3055\u3044\u3002"}, ko:{NO_CARDS_MESSAGE:"\uc5c5\ub370\uc774\ud2b8\uac00 \uc5c6\uc2b5\ub2c8\ub2e4. \ub2e4\uc74c\uc5d0 \ub2e4\uc2dc \ud655\uc778\ud574 \uc8fc\uc2ed\uc2dc\uc624.",FEED_TIMEOUT_MESSAGE:"\ub098\uc911\uc5d0 \ub2e4\uc2dc \uc2dc\ub3c4\ud574 \uc8fc\uc2ed\uc2dc\uc624."},ms:{NO_CARDS_MESSAGE:"Tiada kemas kini. Sila periksa kemudian.",FEED_TIMEOUT_MESSAGE:"Sila cuba kemudian."},nl:{NO_CARDS_MESSAGE:"Er zijn geen updates.
Probeer het later opnieuw.",FEED_TIMEOUT_MESSAGE:"Probeer het later opnieuw."},no:{NO_CARDS_MESSAGE:"Vi har ingen oppdateringer.
Vennligst sjekk igjen senere.", FEED_TIMEOUT_MESSAGE:"Vennligst pr\u00f8v igjen senere."},pl:{NO_CARDS_MESSAGE:"Brak aktualizacji.
Prosz\u0119 sprawdzi\u0107 ponownie p\u00f3\u017aniej.",FEED_TIMEOUT_MESSAGE:"Prosz\u0119 spr\u00f3bowa\u0107 ponownie p\u00f3\u017aniej."},pt:{NO_CARDS_MESSAGE:"N\u00e3o temos atualiza\u00e7\u00f5es.
Por favor, verifique mais tarde.",FEED_TIMEOUT_MESSAGE:"Por favor, tente mais tarde."},"pt-br":{NO_CARDS_MESSAGE:"N\u00e3o temos nenhuma atualiza\u00e7\u00e3o.
Verifique novamente mais tarde.", FEED_TIMEOUT_MESSAGE:"Tente novamente mais tarde."},ru:{NO_CARDS_MESSAGE:"\u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b.
\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0441\u043d\u043e\u0432\u0430 \u043f\u043e\u0437\u0436\u0435.",FEED_TIMEOUT_MESSAGE:"\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435."}, sv:{NO_CARDS_MESSAGE:"Det finns inga uppdateringar.
F\u00f6rs\u00f6k igen senare.",FEED_TIMEOUT_MESSAGE:"F\u00f6rs\u00f6k igen senare."},th:{NO_CARDS_MESSAGE:"\u0e40\u0e23\u0e32\u0e44\u0e21\u0e48\u0e21\u0e35\u0e01\u0e32\u0e23\u0e2d\u0e31\u0e1e\u0e40\u0e14\u0e15 \u0e01\u0e23\u0e38\u0e13\u0e32\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e20\u0e32\u0e22\u0e2b\u0e25\u0e31\u0e07.",FEED_TIMEOUT_MESSAGE:"\u0e01\u0e23\u0e38\u0e13\u0e32\u0e25\u0e2d\u0e07\u0e43\u0e2b\u0e21\u0e48\u0e20\u0e32\u0e22\u0e2b\u0e25\u0e31\u0e07."}, uk:{NO_CARDS_MESSAGE:"\u041e\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044f \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0456.
\u043b\u0430\u0441\u043a\u0430, \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u0442\u0435 \u0437\u043d\u043e\u0432\u0443 \u043f\u0456\u0437\u043d\u0456\u0448\u0435.",FEED_TIMEOUT_MESSAGE:"\u0411\u0443\u0434\u044c \u043b\u0430\u0441\u043a\u0430, \u0441\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0449\u0435 \u0440\u0430\u0437 \u043f\u0456\u0437\u043d\u0456\u0448\u0435."}, vi:{NO_CARDS_MESSAGE:"Ch\u00fang t\u00f4i kh\u00f4ng c\u00f3 c\u1eadp nh\u1eadt n\u00e0o.
Vui l\u00f2ng ki\u1ec3m tra l\u1ea1i sau.",FEED_TIMEOUT_MESSAGE:"Vui l\u00f2ng th\u1eed l\u1ea1i sau."},"zh-hk":{NO_CARDS_MESSAGE:"\u66ab\u6642\u6c92\u6709\u66f4\u65b0.
\u8acb\u7a0d\u5019\u518d\u8a66.",FEED_TIMEOUT_MESSAGE:"\u8acb\u7a0d\u5019\u518d\u8a66."},"zh-hans":{NO_CARDS_MESSAGE:"\u6682\u65f6\u6ca1\u6709\u66f4\u65b0.
\u8bf7\u7a0d\u540e\u518d\u8bd5.",FEED_TIMEOUT_MESSAGE:"\u8bf7\u7a0d\u5019\u518d\u8bd5."}, "zh-hant":{NO_CARDS_MESSAGE:"\u66ab\u6642\u6c92\u6709\u66f4\u65b0.
\u8acb\u7a0d\u5019\u518d\u8a66.",FEED_TIMEOUT_MESSAGE:"\u8acb\u7a0d\u5019\u518d\u8a66."},"zh-tw":{NO_CARDS_MESSAGE:"\u66ab\u6642\u6c92\u6709\u66f4\u65b0.
\u8acb\u7a0d\u5019\u518d\u8a66.",FEED_TIMEOUT_MESSAGE:"\u8acb\u7a0d\u5019\u518d\u8a66."},zh:{NO_CARDS_MESSAGE:"\u6682\u65f6\u6ca1\u6709\u66f4\u65b0.
\u8bf7\u7a0d\u540e\u518d\u8bd5.",FEED_TIMEOUT_MESSAGE:"\u8bf7\u7a0d\u5019\u518d\u8bd5."}};null!=a&&(a=a.toLowerCase()); if(null!=a&&null==ud[a]){var c=a.indexOf("-");0this.I;case Jd:return this.Ic===Id?null!=b&&Da(b)&&((new Date).valueOf()-b.valueOf())/1E3<=this.I:typeof b===typeof this.I&&b>=this.I;case Qd:return typeof b===typeof this.I&&b=this.I: typeof b===typeof this.I&&b<=this.I;case Rd:return null!=b&&"string"===typeof b&&typeof b===typeof this.I&&null!=b.match(this.I);case Sd:return null!=b;case Td:return null==b;case Ld:return null!=b&&Da(b)&&(b.valueOf()-(new Date).valueOf())/1E3this.I;case Ud:return null==b||typeof b!==typeof this.I||"string"!==typeof b||null==b.match(this.I)}return!1}; Hd.prototype.A=function(){var a=this.I;Da(this.I)&&(a=Ia(a.valueOf()));return{k:this.gf,t:this.Ic,c:this.lb,v:a}};var Nd=1,Od=2,Pd=3,Jd=4,Qd=5,Kd=6,Rd=10,Sd=11,Td=12,Ld=15,Md=16,Ud=17,Id="date";function Vd(a){this.filters=a}Vd.prototype.ea=function(a){for(var b=!0,c=0;cb.status||304===b.status}if(h){if("function"=== typeof a.h){try{var k=JSON.parse(b.responseText)}catch(l){a.h({error:""===b.responseText?"empty_response":"invalid_json_response",response:b.responseText})}k&&a.h(k)}"function"===typeof a.vc&&a.vc(!0)}else d()};b.onerror=function(){d()};b.ontimeout=function(){d()};var e=JSON.stringify(a.data);if(c)b.onprogress=function(){},b.open("post",a.url);else{b.open("POST",a.url,!0);b.setRequestHeader("Content-type","application/json");b.setRequestHeader("X-Requested-With","XMLHttpRequest");for(var f=a.headers|| [],g=0;g=a.wg)w.info("Declining to flush data due to 50 consecutive authentication failures");else if(h=c||m,!d||0!==k.length||0!==l.length||b||h){var z=!1,H=function(A,L){var J=!1;xe({url:""+a.yb+"/data/",data:A,headers:L,h:function(G){null!=A.respond_with&&A.respond_with.triggers&& (a.jb=Math.max(a.jb-1,0));if(Ce(a,A,G,L)){a.Va=0;var T=a.J;if(null!=G&&null!=G.config){var Q=G.config;if(Q.time>Ie(T).Ib){Q=new Je(Q.time,Q.events_blacklist,Q.attributes_blacklist,Q.purchases_blacklist,Q.messaging_session_timeout,Q.vapid_public_key,Q.content_cards);var n=!1;null!=Q.ra&&Ie(T).ra!==Q.ra&&(n=!0);var u=!1;null!=Q.Db.enabled&&(Ie(T).Db.enabled||!1)!==Q.Db.enabled&&(u=!0);T.qc=Q;O(T.b,N.qe,Q.A());n&&Pb(T.vd);u&&Pb(T.we)}}if(null==A.respond_with||A.respond_with.user_id==a.f.o())null!=A.device&& O(a.b,N.Yb,A.device),a.zg(G),"function"===typeof e&&e()}else G.auth_error&&(J=!0)},error:function(){null!=A.respond_with&&A.respond_with.triggers&&(a.jb=Math.max(a.jb-1,0));Ee(a,A);"function"===typeof f&&f()},vc:function(G){"function"===typeof g&&g(G);if(d&&!z){if(G&&!J)Ke(a);else{G=a.Ee;if(null==G||G<1E3*a.lc)G=1E3*a.lc;Ke(a,Math.min(3E5,we(1E3*a.lc,3*G)))}z=!0}}})},D=function(A){return null!=A?A:""},F={};c=D(a.f.o());if(b||h)F[c]=Le(a,b,h),h&&a.jb++;b=function(A,L){var J=D(L.user_id);F[J]||(F[J]= Le(a,!1,!1,J));F[J][A]||(F[J][A]=[]);F[J][A].push(L)};k=ba(k);for(h=k.next();!h.done;h=k.next())b("events",h.value.wc());l=ba(l);for(k=l.next();!k.done;k=l.next())b("attributes",k.value);l=!1;k={};for(var K in F)a.aa.Ab&&K!==c?Ee(a,F[K]):(k.rb=Ae(a,F[K]),k.Mc=Me(a,k.rb),Ne(k.rb,function(A){return function(){return H(A.rb,A.Mc)}}(k)),l=!0),k={rb:k.rb,Mc:k.Mc};d&&!l?Ke(a):m&&(w.info("Invoking new session subscriptions"),Pb(a.qd))}else Ke(a),"function"===typeof g&&g(!0)} function Ne(a,b){var c=a.device;c&&c.os_version instanceof Promise?c.os_version.then(function(d){a.device.os_version=d;b()}):b()}function Ee(a,b){if(b.events){for(var c=[],d=ba(b.events),e=d.next();!e.done;e=d.next())e=e.value,e=new E(e.user_id,e.name,e.time,e.session_id,e.data),e.time*=1E3,c.push(e);bb(a.b,c)}if(b.attributes)for(b=ba(b.attributes),c=b.next();!c.done;c=b.next())Eb(a.b,c.value)}function Oe(a,b){var c="HTTP error ";null!=a&&(c+=a+" ");w.error(c+b)} function Pe(a,b,c,d,e){var f=Le(a,!1,!1);f=Ae(a,f);f.template={trigger_id:b.Pa,trigger_event_type:c};null!=d&&(f.template.data=d.wc());var g=Me(a,f);Ne(f,function(){xe({url:""+a.yb+"/template/",data:f,headers:g,h:function(h){Ce(a,f,h,g)?(a.Va=0,null==h||null==h.templated_message?a.M(b.Pa,dd.vb):(h=h.templated_message,h.type!==ve.Uc?a.M(b.Pa,dd.xb):(h=Ec(h.data),null==h?a.M(b.Pa,dd.xb):"function"===typeof b.vf?b.vf(h):a.M(b.Pa,dd.vb)))):(a.M(b.Pa,dd.vb),"function"===typeof b.uf&&b.uf())},error:function(h){var k= "getting user personalization for message "+b.Pa;if((new Date).valueOf()-b.Ac>b.Oa)a.M(b.Pa,dd.vb);else{var l=Math.min(b.Oa,a.xg),m=a.yg;null==e&&(e=m);var t=Math.min(l,we(m,3*e));k+=". Retrying in "+t+"ms";setTimeout(function(){Pe(a,b,c,d,t)},t)}Oe(h,k)}})})}p=ye.prototype; p.Na=function(a,b,c,d,e){var f=this,g=Ae(this,{});g.last_full_sync_at=a;g.last_card_updated_at=b;a=this.f.o();null!=a&&(g.user_id=a);var h=[["X-Braze-Api-Key",this.Y],["X-Braze-DataRequest","true"],["X-Braze-ContentCardsRequest","true"]];this.aa.Ab&&(a=S(this.aa.b,N.ub),null!=a&&h.push(["X-Braze-Auth-Signature",a]));Ne(g,function(){xe({url:""+f.yb+"/content_cards/sync",data:g,headers:h,h:function(k){Ce(f,g,k,h)?(f.Va=0,c(k),"function"===typeof d&&d()):"function"===typeof e&&e()},error:function(k){Oe(k, "retrieving content cards");"function"===typeof e&&e()}})})};function Le(a,b,c,d){var e={};b&&(e.feed=!0);c&&(e.triggers=!0);(b=null!=d?d:a.f.o())&&(e.user_id=b);e.config={config_time:Ie(a.J).Ib};return{respond_with:e}} function Me(a,b){var c=[["X-Braze-Api-Key",a.Y]],d=!1;null!=b.respond_with&&b.respond_with.triggers&&(c.push(["X-Braze-TriggersRequest","true"]),d=!0);null!=b.respond_with&&b.respond_with.feed&&(c.push(["X-Braze-FeedRequest","true"]),d=!0);d&&c.push(["X-Braze-DataRequest","true"]);a.aa.Ab&&(a=S(a.aa.b,N.ub),null!=a&&c.push(["X-Braze-Auth-Signature",a]));return c} function Qe(a){if(null==a.campaignId&&null==a.cardId&&null==a.triggerId)return w.info("The in-app message has no analytics id. Not logging event to Braze servers."),null;var b={};null!=a.cardId&&(b.card_ids=[a.cardId]);null!=a.campaignId&&(b.campaign_ids=[a.campaignId]);null!=a.triggerId&&(b.trigger_ids=[a.triggerId]);return b}function Re(a){for(var b=null,c=0;cg?"+":"-")+(("00"+Math.abs(e)).slice(-2)+":"+("00"+Math.abs(h)).slice(-2)));g=k}b[d]=g;break;case "userAgent":b[d]= vb.userAgent}}return b};function $e(a){this.Fa=a;this.sc=null;this.Ne="geolocation"in navigator}$e.prototype.Jg=function(a){var b=this;if(document.hidden){af(this);var c=function(){document.hidden||(document.removeEventListener("visibilitychange",c,!1),b.watchPosition())};document.addEventListener("visibilitychange",c,!1)}this.Fa.Kc(a.coords.latitude,a.coords.longitude,a.coords.accuracy,a.coords.altitude,a.coords.altitudeAccuracy)}; $e.prototype.Ig=function(a){a.code===a.PERMISSION_DENIED?w.info(a.message):w.error("Could not detect user location: "+a.code+" - "+a.message)};$e.prototype.watchPosition=function(){this.Ne?(af(this),this.sc=navigator.geolocation.watchPosition(this.Jg.bind(this),this.Ig.bind(this)),w.info("Requested Geolocation")):w.info(this.bd)};function af(a){a.Ne?null!=a.sc&&(navigator.geolocation.clearWatch(a.sc),a.sc=null,w.info("Stopped watching Geolocation")):w.info(a.bd)};function bf(a,b,c,d,e){this.endpoint=a||null;this.Ve=b||null;this.publicKey=c||null;this.Ph=d||null;this.ra=e||null}bf.prototype.A=function(){return{e:this.endpoint,c:this.Ve,p:this.publicKey,u:this.Ph,v:this.ra}};function cf(a,b,c,d,e,f,g,h,k,l){this.Fa=a;this.Y=b;this.ic=c;this.Fg=d;this.Le=e||"/service-worker.js";this.Je=f;this.J=g;this.pd=h||!1;this.Dg=k||!1;this.b=l;this.rc="serviceWorker"in navigator&&"undefined"!==typeof ServiceWorkerRegistration&&"showNotification"in ServiceWorkerRegistration.prototype&&"PushManager"in window;this.td="safari"in window&&"pushNotification"in window.safari}p=cf.prototype;p.qa=function(){return this.rc||this.td}; p.Ka=function(){var a=this.qa()&&"Notification"in window&&null!=window.Notification&&null!=window.Notification.permission&&"denied"===window.Notification.permission,b=this.qa()&&(!("Notification"in window)||null==window.Notification);return a||b};p.Hb=function(){return this.qa()&&"Notification"in window&&null!=window.Notification&&null!=window.Notification.permission&&"granted"===window.Notification.permission}; p.Gd=function(a,b,c){var d=this;c=this.Je||c;this.qa()?this.rc?df(this).then(function(e){d.Ka()?b():null==e?b():e.pushManager.getSubscription().then(function(f){f?a():b()}).catch(function(){b()})}).catch(function(){b()}):null==c||""===c?w.error("You must supply the safariWebsitePushId argument in order to use isPushGranted on Safari"):"granted"===window.safari.pushNotification.permission(c).permission?a():b():b()}; function ef(a,b,c,d,e,f){b.unsubscribe().then(function(g){g?ff(a,c,d,e,f):(w.error("Failed to unsubscribe device from push."),"function"===typeof f&&f(!1))}).catch(function(g){w.error("Push unsubscription error: "+g);"function"===typeof f&&f(!1)})} function gf(a,b,c,d){var e=function(h){if("string"===typeof h)return h;if(0!==h.endpoint.indexOf("https://android.googleapis.com/gcm/send"))return h.endpoint;var k=h.endpoint;h.subscriptionId&&-1===h.endpoint.indexOf(h.subscriptionId)&&(k=h.endpoint+"/"+h.subscriptionId);return k}(b),f=null,g=null;if(null!=b.getKey)try{f=btoa(String.fromCharCode.apply(null,new Uint8Array(b.getKey("p256dh")))),g=btoa(String.fromCharCode.apply(null,new Uint8Array(b.getKey("auth"))))}catch(h){if("invalid arguments"!== h.message)throw h;}b=function(h){var k;return h.options&&(k=h.options.applicationServerKey)&&k.byteLength&&01E3*c)&&O(a.b,N.bc,b);return c} function ab(a){var b=(new Date).valueOf(),c=b+1E3*a.Hg,d=zb(a.b,Cb.Ta);if(null==d||(b-d.Eb=d)&&!b[g].dismissed?c.push(b[g]):f=e[b[g].id]=!0}f&&O(a.b,N.ua,e);return c}p.uc=function(){for(var a=[],b=0;bd.updated?-1:d.updated>c.updated?1:0});var b=Math.max(this.Aa||0,this.Da||0);0===b&&(b=void 0);return new Ad(a,Ja(b))}; p.$a=function(a){a||(this.B=[],Pb(this.ha,new Ad(this.B.slice(),null)),Bb(this.b,N.tb),Bb(this.b,N.hb),Bb(this.b,N.ib),Bb(this.b,N.ua));this.Aa=this.Da=0;Bb(this.b,N.Wb);Bb(this.b,N.Vb)};p.clearData=function(a){this.Aa=this.Da=0;this.B=[];Pb(this.ha,new Ad(this.B.slice(),null));a&&(Bb(this.b,N.tb),Bb(this.b,N.hb),Bb(this.b,N.ib),Bb(this.b,N.ua),Bb(this.b,N.Wb),Bb(this.b,N.Vb))}; function wf(a){return Ie(a.J).Db.enabled?!0:(0!==Ie(a.J).Ib&&(Pb(a.ha,new Ad([],(new Date).valueOf())),Bb(a.b,N.tb)),!1)};function yf(a,b){this.ha=a;this.b=b;this.Ga()}na(yf,sf);p=yf.prototype;p.Ga=function(){for(var a=S(this.b,N.ad)||[],b=[],c=0;c=b)&&a.push(this.B[c]);return new wd(a,this.kb)};p.clearData=function(a){null==a&&(a=!1);this.B=[];this.kb=null;a&&(Bb(this.b,N.ad),Bb(this.b,N.Zc));Pb(this.ha,new wd(this.B.slice(),this.kb))};function zf(a,b,c,d,e){this.Pa=a;this.vf=b;this.uf=c;this.Ac=d;this.Oa=e}function Af(a,b,c,d,e){return null==a||null==a.trigger_id?null:new zf(a.trigger_id,b,c,d,e)};function Bf(a,b,c,d){this.Eg=a;this.ha=b;this.b=c;this.G=d;this.kc=[];this.na=[];this.Ba=null;this.L={};this.X={};Cf(this);Df(this)}na(Bf,sf);function Ef(a){a.Ba=S(a.b,N.Yc)||a.Ba;a.L=S(a.b,N.wb)||a.L;a.X=S(a.b,N.ac)||a.X;for(var b=0;bh.length&&(a.L[f.id]=h,d=!0,0===a.L[f.id].length&&delete a.L[f.id])}}d&&O(a.b,N.wb,a.L)} Bf.prototype.Gb=function(a){var b=!1;if(null!=a&&a.triggers){Ef(this);var c={},d={};this.T=[];for(var e=0;e=1E3*b.Mb)&&Hf(a,b,m,d)?(Pb(a.ha,[l]),Ef(a),b.Ca=m,a.Ba=m,O(a.b,N.Yc,m),a.X[b.id]=m,O(a.b,N.ac,a.X)):w.info("Not displaying trigger "+b.id+" because display time fell outside of the acceptable time window.")} switch(b.type){case ve.Uc:var k=Ec(b.data);if(null==k){w.error("Could not parse trigger data for trigger "+b.id+", ignoring.");a.G.M(b.id,dd.xb);break}h(k);break;case ve.se:k=Af(b.data,h,g,c,b.Oa);if(null==k){w.error("Could not parse trigger data for trigger "+b.id+", ignoring.");a.G.M(b.id,dd.xb);break}Pe(a.G,k,d,e);break;default:w.error("Trigger "+b.id+" was of unexpected type "+b.type+", ignoring."),a.G.M(b.id,dd.xb)}} Bf.prototype.pa=function(a,b,c){var d=this;if(Aa(de,a,"Cannot fire trigger action.","TriggerEvents"))if(0this.ud?Cf(this):Ef(this);for(var e=(new Date).valueOf(),f=e-this.Ba,g=!0,h=!0,k=[],l=0;l=1E3*m.Mb)&&(null==m.startTime||m.startTime<=e)&&(null==m.endTime|| m.endTime>=e)){for(var q=!1,v=0;v=1E3*b}function Gf(a,b,c,d,e,f){Ef(a);a.L[b.id]=a.L[b.id]||[];var g={};g.Ac=c;g.sf=d;var h;null!=e&&(h=e.A());g.wd=h;c=[];for(d=0;d=n.length)return w.error('logCustomEvent requires a non-empty eventName, got "'+n+'". Ignoring event.'),!1;if(!Ra(n,"log custom event","the event name"))return!1;var y=ba(Ta(u,"logCustomEvent","eventProperties",'log custom event "'+n+'"',"event")),B=y.next().value;y=y.next().value;if(!B)return!1;B=l.Hd(n,y);if(B.h)for(w.info('Logged custom event "'+n+'".'),y=0;y=n.length)return w.error('logPurchase requires a non-empty productId, got "'+n+'", ignoring.'),!1;if(!Ra(n,"log purchase","the purchase name"))return!1;var R=parseFloat(u);if(isNaN(R))return w.error("logPurchase requires a numeric price, got "+u+", ignoring."),!1;R=R.toFixed(2);u=parseInt(B);if(isNaN(u))return w.error("logPurchase requires an integer quantity, got "+B+", ignoring."),!1;if(1>u||1001 and <100, got "+u+", ignoring."), !1;y=y.toUpperCase();if(-1==="AED AFN ALL AMD ANG AOA ARS AUD AWG AZN BAM BBD BDT BGN BHD BIF BMD BND BOB BRL BSD BTC BTN BWP BYR BZD CAD CDF CHF CLF CLP CNY COP CRC CUC CUP CVE CZK DJF DKK DOP DZD EEK EGP ERN ETB EUR FJD FKP GBP GEL GGP GHS GIP GMD GNF GTQ GYD HKD HNL HRK HTG HUF IDR ILS IMP INR IQD IRR ISK JEP JMD JOD JPY KES KGS KHR KMF KPW KRW KWD KYD KZT LAK LBP LKR LRD LSL LTL LVL LYD MAD MDL MGA MKD MMK MNT MOP MRO MTL MUR MVR MWK MXN MYR MZN NAD NGN NIO NOK NPR NZD OMR PAB PEN PGK PHP PKR PLN PYG QAR RON RSD RUB RWF SAR SBD SCR SDG SEK SGD SHP SLL SOS SRD STD SVC SYP SZL THB TJS TMT TND TOP TRY TTD TWD TZS UAH UGX USD UYU UZS VEF VND VUV WST XAF XAG XAU XCD XDR XOF XPD XPF XPT YER ZAR ZMK ZMW ZWL".split(" ").indexOf(y))return w.error("logPurchase requires a valid currencyCode, got "+ y+", ignoring."),!1;var Y=ba(Ta(P,"logPurchase","purchaseProperties",'log purchase "'+n+'"',"purchase"));B=Y.next().value;Y=Y.next().value;if(!B)return!1;B=l.Id(n,R,y,u,Y);if(B.h)for(w.info("Logged "+u+" purchase"+(1 .ab-close-button")[0], null!=v&&Ub(v))}}c=m[C.lg]||!1;d=m[C.kg]||m[C.mg]||!1;e=m[C.pg]||!1;f=m[C.ce]||!1;!0===m[C.Xd]&&(f=!0);g=null;k=m[C.$d]||null;l=m[C.Yf]||null;m[C.Tf]||null!==document.querySelector('link[rel=stylesheet][href="https://use.fontawesome.com/7f85a56ba4.css"]')||(m=document.createElement("link"),m.setAttribute("rel","stylesheet"),m.setAttribute("href","https://use.fontawesome.com/7f85a56ba4.css"),document.getElementsByTagName("head")[0].appendChild(m));m="ab-css-definitions-"+"3.4.1".replace(/\./g, "-");if(null==document.getElementById(m)){var q=document.createElement("style");q.innerHTML=qd.We;q.id=m;null!=k&&q.setAttribute("nonce",k);document.getElementsByTagName("head")[0].appendChild(q)}e||(document.addEventListener("keydown",t,!1),a.Gh(function(){document.removeEventListener("keydown",t)}))});return{Pg:function(){null==g&&(g=a.rf(function(m){a.display.mf(m)}));return g},mf:function(m,t,q){if(null==m)return!1;if(m instanceof Fc)return w.info("User received control for a multivariate test, logging to Braze servers."), a.Lb(m),!0;if(!(m instanceof W))return!1;var v=m instanceof Qc;if(v&&!m.Mh&&!f)return w.error('HTML in-app messages are disabled. Use the "allowUserSuppliedJavascript" option for appboy.initialize to enable these messages.'),a.M(m,dd.ee),!1;null==t&&(t=document.body);if(m.Ja()&&0