mergn-webapp-sdk 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function _0x255e(){const _0x22119a=['IMMEDIATELY','parse','access\x20private\x20method','pushState','campaignCustomerInstanceId','uniqueIdentity','appendChild','setItem','innerHTML','AxiosError:\x20','https://95sidwa5jk.execute-api.ap-southeast-1.amazonaws.com/Prod/sdk-management/api','Image\x20Click','status','value','view','scrollY','load','updateAPIKey','popup_container_','getItem','disableSDK','customer','Mergn\x20not\x20initialized!','then','HTTP\x20Status:\x20','MergnError','initialTime','15064IrpdXW','4488WsieZg','headers','init','data','Event\x20','offlineEvents','Popup','campaignEntryTimeValue','Error\x20setting\x20up\x20the\x20request:','innerHeight','record\x20event','platform','done','getOwnPropertyDescriptors','.u-close-button','Error\x20posting\x20attribute\x20record','Error\x20fetching\x20event\x20data','.u-popup-container\x20img','getOwnPropertyDescriptor','querySelectorAll','getPrototypeOf','Error\x20fetching\x20attribute\x20data','getTime','href','session','logout','eventProperty','addEventListener','submit','Mergn\x20is\x20offline!','isInitialized','Cannot\x20add\x20the\x20same\x20private\x20member\x20more\x20than\x20once','UTM\x20Key\x20Value','getOwnPropertyNames','page','brand','set','enumerable','error','AxiosError','offline','name','identity','online','forEach','location','[id^=\x22u_content_form_\x22]','Popup\x20Viewed','701700sasWQY','recordEvent','Campaign\x20Id','hostname','updateAttribute','push','Viewed\x20Web\x20Page','object','showErrorLog','has','Error\x20setting\x20identity','4kMLQzc','post','login','[id^=\x22u_content_button_\x22]','call','application/json','DELAY','preventDefault','\x20is\x20not\x20valid.','querySelector','campaignEntryTime','events','__esModule','documentElement','Cannot\x20','close','attributeProperty','apply','filter','Popup\x20Action','apiKey','Form\x20Submit','createElement','pathname','action','attributes','OriginateFrom:\x20','message','exports','function','2468335wwqDYR','263104EFwnCM','length','campaignId','create','defineProperties','Button\x20Click','SCROLL','prototype','click','response','getInstance','recordAttribute','MergnError:\x20','AxiosQueueManager','defineProperty','get','/attribute','scroll','remove','Mergn\x20SDK\x20is\x20disabled!','defaults','1105710sCCCrn','hasOwnProperty','next','URL','Unexpected\x20error:','body','map','keys','Response\x20Data:','scrollHeight','90bcZrMW','21pUouLO','isArray','Customer\x20Id','default','User\x20Logout','throw','request','write\x20to\x20private\x20field','ttl','605874FIjbcX','stringify','removeItem','join','className'];_0x255e=function(){return _0x22119a;};return _0x255e();}const _0x319bd5=_0x1006;(function(_0x164900,_0x2cf446){const _0x133680=_0x1006,_0x32f7d9=_0x164900();while(!![]){try{const _0x2d43ac=-parseInt(_0x133680(0xe1))/0x1+parseInt(_0x133680(0x98))/0x2+-parseInt(_0x133680(0xc1))/0x3*(parseInt(_0x133680(0x11d))/0x4)+-parseInt(_0x133680(0x97))/0x5+parseInt(_0x133680(0xad))/0x6+parseInt(_0x133680(0xb8))/0x7*(parseInt(_0x133680(0xe2))/0x8)+parseInt(_0x133680(0xb7))/0x9*(parseInt(_0x133680(0x112))/0xa);if(_0x2d43ac===_0x2cf446)break;else _0x32f7d9['push'](_0x32f7d9['shift']());}catch(_0x13c391){_0x32f7d9['push'](_0x32f7d9['shift']());}}}(_0x255e,0x4b533));var St=Object['create'],O=Object[_0x319bd5(0xa6)],yt=Object[_0x319bd5(0x9c)],ft=Object[_0x319bd5(0xf4)],Tt=Object[_0x319bd5(0xef)],wt=Object[_0x319bd5(0x103)],_e=Object['getOwnPropertySymbols'],bt=Object[_0x319bd5(0xf6)],Me=Object[_0x319bd5(0x9f)][_0x319bd5(0xae)],Rt=Object[_0x319bd5(0x9f)]['propertyIsEnumerable'],Ve=(_0x4c1bf9,_0x461bf1,_0x2aa8b2)=>_0x461bf1 in _0x4c1bf9?O(_0x4c1bf9,_0x461bf1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2aa8b2}):_0x4c1bf9[_0x461bf1]=_0x2aa8b2,H=(_0x5b72db,_0x4ffb4b)=>{const _0x59d86f=_0x319bd5;for(var _0x23f9a1 in _0x4ffb4b||(_0x4ffb4b={}))Me[_0x59d86f(0x121)](_0x4ffb4b,_0x23f9a1)&&Ve(_0x5b72db,_0x23f9a1,_0x4ffb4b[_0x23f9a1]);if(_e){for(var _0x23f9a1 of _e(_0x4ffb4b))Rt[_0x59d86f(0x121)](_0x4ffb4b,_0x23f9a1)&&Ve(_0x5b72db,_0x23f9a1,_0x4ffb4b[_0x23f9a1]);}return _0x5b72db;},Se=(_0x3e418d,_0x44c336)=>yt(_0x3e418d,Tt(_0x44c336)),Pt=(_0x5c3721,_0x1eab7f)=>{for(var _0x32968c in _0x1eab7f)O(_0x5c3721,_0x32968c,{'get':_0x1eab7f[_0x32968c],'enumerable':!0x0});},Be=(_0x2d1b43,_0x57cb02,_0x3cbe5a,_0x3a9d61)=>{const _0x147687=_0x319bd5;if(_0x57cb02&&typeof _0x57cb02==_0x147687(0x119)||typeof _0x57cb02==_0x147687(0x96)){for(let _0x182dd9 of wt(_0x57cb02))!Me[_0x147687(0x121)](_0x2d1b43,_0x182dd9)&&_0x182dd9!==_0x3cbe5a&&O(_0x2d1b43,_0x182dd9,{'get':()=>_0x57cb02[_0x182dd9],'enumerable':!(_0x3a9d61=ft(_0x57cb02,_0x182dd9))||_0x3a9d61[_0x147687(0x107)]});}return _0x2d1b43;},Fe=(_0x34d59c,_0xa296fd,_0x475a2b)=>(_0x475a2b=_0x34d59c!=null?St(bt(_0x34d59c)):{},Be(_0xa296fd||!_0x34d59c||!_0x34d59c[_0x319bd5(0x129)]?O(_0x475a2b,_0x319bd5(0xbb),{'value':_0x34d59c,'enumerable':!0x0}):_0x475a2b,_0x34d59c)),At=_0x67e183=>Be(O({},_0x319bd5(0x129),{'value':!0x0}),_0x67e183),ye=(_0x1af268,_0xb6acc9,_0x54e56b)=>{const _0x47195f=_0x319bd5;if(!_0xb6acc9[_0x47195f(0x11b)](_0x1af268))throw TypeError(_0x47195f(0x12b)+_0x54e56b);},u=(_0x115dcc,_0x196cb7,_0x5aeb12)=>(ye(_0x115dcc,_0x196cb7,'read\x20from\x20private\x20field'),_0x5aeb12?_0x5aeb12['call'](_0x115dcc):_0x196cb7[_0x319bd5(0xa7)](_0x115dcc)),i=(_0x4d9edc,_0x4487c7,_0x3ff2a3)=>{const _0x59a74e=_0x319bd5;if(_0x4487c7[_0x59a74e(0x11b)](_0x4d9edc))throw TypeError(_0x59a74e(0x101));_0x4487c7 instanceof WeakSet?_0x4487c7['add'](_0x4d9edc):_0x4487c7[_0x59a74e(0x106)](_0x4d9edc,_0x3ff2a3);},E=(_0x3955a6,_0x473fc1,_0x1a6baf,_0x2ef617)=>(ye(_0x3955a6,_0x473fc1,_0x319bd5(0xbf)),_0x2ef617?_0x2ef617[_0x319bd5(0x121)](_0x3955a6,_0x1a6baf):_0x473fc1[_0x319bd5(0x106)](_0x3955a6,_0x1a6baf),_0x1a6baf),$e=(_0x1eda40,_0x11a876,_0x1ce8c6,_0x3a0786)=>({set '_'(_0x5655a3){E(_0x1eda40,_0x11a876,_0x5655a3,_0x1ce8c6);},get '_'(){return u(_0x1eda40,_0x11a876,_0x3a0786);}}),o=(_0xee5d36,_0x4ef176,_0x1fbeba)=>(ye(_0xee5d36,_0x4ef176,_0x319bd5(0xc8)),_0x1fbeba),a=(_0x412d5f,_0x21d177,_0x22fd2d)=>new Promise((_0x3a174e,_0x2da3da)=>{const _0x26ee08=_0x319bd5;var _0x3bea3c=_0x47bb55=>{const _0x4b2939=_0x1006;try{_0x50f931(_0x22fd2d[_0x4b2939(0xaf)](_0x47bb55));}catch(_0x4d66b9){_0x2da3da(_0x4d66b9);}},_0x257fdd=_0x24c4c8=>{const _0x3c70dc=_0x1006;try{_0x50f931(_0x22fd2d[_0x3c70dc(0xbd)](_0x24c4c8));}catch(_0x5037ab){_0x2da3da(_0x5037ab);}},_0x50f931=_0x1e7f35=>_0x1e7f35[_0x26ee08(0xee)]?_0x3a174e(_0x1e7f35[_0x26ee08(0xd3)]):Promise['resolve'](_0x1e7f35[_0x26ee08(0xd3)])[_0x26ee08(0xdd)](_0x3bea3c,_0x257fdd);_0x50f931((_0x22fd2d=_0x22fd2d[_0x26ee08(0x8a)](_0x412d5f,_0x21d177))[_0x26ee08(0xaf)]());}),Ut={};Pt(Ut,{'default':()=>Ot}),module[_0x319bd5(0x95)]=At(Ut);var W=require('uuid'),U=_0x319bd5(0x8c),Je=_0x319bd5(0x111),ke=_0x319bd5(0xd0),fe=_0x319bd5(0xa8),Ke='/record-attribute',Te='/event',je='/record-event',Qe='/customer',qe='/set-identity',He=Fe(require('axios')),ze=require('axios-queue-js'),Ge=Fe(require('axios-retry')),Ye=require('axios'),l=class extends Error{constructor(_0x5bec58){const _0x3082d1=_0x319bd5;super(_0x5bec58),this[_0x3082d1(0x10b)]=_0x3082d1(0xdf);}};l[_0x319bd5(0xda)]=!0x1,l[_0x319bd5(0x10a)]=!navigator['onLine'],l[_0x319bd5(0x11a)]=!0x1,l[_0x319bd5(0x100)]=!0x1;var Lt=(_0x192326,_0x43a7ea)=>{const _0x2ac6e3=_0x319bd5;_0x43a7ea instanceof l?console[_0x2ac6e3(0x108)](_0x2ac6e3(0x93)+_0x192326,_0x2ac6e3(0xa4)+_0x43a7ea[_0x2ac6e3(0x94)]):_0x43a7ea instanceof Ye[_0x2ac6e3(0x109)]?(console[_0x2ac6e3(0x108)](_0x2ac6e3(0x93)+_0x192326,_0x2ac6e3(0xcf)+_0x43a7ea[_0x2ac6e3(0x94)]),_0x43a7ea[_0x2ac6e3(0xa1)]?(console[_0x2ac6e3(0x108)](_0x2ac6e3(0x93)+_0x192326,_0x2ac6e3(0xde)+_0x43a7ea[_0x2ac6e3(0xa1)][_0x2ac6e3(0xd2)]),console[_0x2ac6e3(0x108)](_0x2ac6e3(0x93)+_0x192326,_0x2ac6e3(0xb5),_0x43a7ea['response'][_0x2ac6e3(0xe5)])):_0x43a7ea[_0x2ac6e3(0xbe)]?console[_0x2ac6e3(0x108)](_0x2ac6e3(0x93)+_0x192326+'\x0aNo\x20response\x20received.\x20Check\x20network\x20connection\x20or\x20server\x20issues.'):console[_0x2ac6e3(0x108)]('OriginateFrom:\x20'+_0x192326,_0x2ac6e3(0xea),_0x43a7ea[_0x2ac6e3(0x94)])):_0x43a7ea instanceof Error?console[_0x2ac6e3(0x108)](_0x2ac6e3(0x93)+_0x192326,_0x2ac6e3(0xb1),_0x43a7ea[_0x2ac6e3(0x94)]):console['error'](_0x2ac6e3(0x93)+_0x192326,_0x2ac6e3(0xb1),String(_0x43a7ea));},f=(_0x1622ce,_0x50eae1,_0x5e904f)=>a(void 0x0,null,function*(){const _0x572a6a=_0x319bd5;try{if(l[_0x572a6a(0xda)])throw new l(_0x572a6a(0xab));if(_0x1622ce!==_0x572a6a(0xec)&&l[_0x572a6a(0x10a)])throw new l(_0x572a6a(0xff));if(_0x1622ce!==_0x572a6a(0xe4)&&!l['isInitialized'])throw new l(_0x572a6a(0xdc));return yield _0x50eae1();}catch(_0x41f570){return _0x5e904f?_0x5e904f(_0x41f570):l[_0x572a6a(0x11a)]&&Lt(_0x1622ce,_0x41f570),null;}}),T,N,x,C,z,D,be,G,We,d=class d{constructor(){const _0x1dae31=_0x319bd5;i(this,z,0x0);let _0x3998b6=He[_0x1dae31(0xbb)][_0x1dae31(0x9b)]({'baseURL':ke,'headers':{'Content-Type':_0x1dae31(0x122)}});E(d,N,_0x3998b6),E(d,x,new ze[(_0x1dae31(0xa5))]({'client':_0x3998b6,'queueSize':0xa})),(0x0,Ge[_0x1dae31(0xbb)])(_0x3998b6,{'onRetry':_0x39b31e=>{const _0x3e432b=_0x1dae31;_0x39b31e>=u(d,C)?(l[_0x3e432b(0x11a)]&&console['log']('Max\x20retries\x20reached.\x20Disabling\x20SDK.'),l[_0x3e432b(0xda)]=!0x0):$e(this,z)['_']++;},'retries':u(d,C),'retryDelay':_0x1f7451=>_0x1f7451*0x1388});}static[_0x319bd5(0xd7)](_0x3ad3fa){const _0x23de19=_0x319bd5;this[_0x23de19(0x8d)]=_0x3ad3fa,o(this,G,We)['call'](this)[_0x23de19(0xac)][_0x23de19(0xe3)]['common']['Authorization']=_0x3ad3fa;}static['get'](_0x39ae98){const _0x92dcb2=_0x319bd5;return o(this,D,be)[_0x92dcb2(0x121)](this)[_0x92dcb2(0xa7)](_0x39ae98);}static['post'](_0x28df96,_0x31f3d7){const _0x2bf2c5=_0x319bd5;return o(this,D,be)[_0x2bf2c5(0x121)](this)[_0x2bf2c5(0x11e)](_0x28df96,_0x31f3d7||{});}};T=new WeakMap(),N=new WeakMap(),x=new WeakMap(),C=new WeakMap(),z=new WeakMap(),D=new WeakSet(),be=function(){return u(d,T)||E(d,T,new d()),u(d,x);},G=new WeakSet(),We=function(){return u(d,T)||E(d,T,new d()),u(d,N);},i(d,D),i(d,G),i(d,T,void 0x0),i(d,N,void 0x0),i(d,x,void 0x0),i(d,C,0x2);var we=d,S=we,P,I,_,V,M,B,y,w,F,Pe,$,Ae,ee,Xe,te,Ze,re,et,oe,J,ne,ie,tt,se,rt,ae,ot,k,Le,ce,nt,A,X,le,it,K,Oe,ue,st,pe,at,ge,ct,L,Z,de,lt,Ee,ut,me,pt,ve,gt,j,Ue,Ie,dt,he,Et,Q,Ne,q,xe,Y,Ce,b=class b{constructor(){const _0x2bb654=_0x319bd5;i(this,y),i(this,F),i(this,$),i(this,ee),i(this,te),i(this,re),i(this,ie),i(this,se),i(this,ae),i(this,k),i(this,ce),i(this,A),i(this,le),i(this,K),i(this,ue),i(this,pe),i(this,ge),i(this,L),i(this,de),i(this,Ee),i(this,me),i(this,ve),i(this,j),i(this,Ie),i(this,he),i(this,Q),i(this,q),i(this,Y),i(this,I,''),i(this,_,void 0x0),i(this,V,void 0x0),i(this,M,void 0x0),i(this,B,null),i(this,oe,()=>{let _0x470b30=()=>{const _0x7c0c16=_0x1006;let _0x29e159=JSON[_0x7c0c16(0xc7)](localStorage[_0x7c0c16(0xd9)](_0x7c0c16(0x91))||'{}');Object[_0x7c0c16(0xb4)](_0x29e159)['forEach'](_0x1a140b=>{const _0x2b78c2=_0x7c0c16;_0x29e159[_0x1a140b][_0x2b78c2(0xe0)]=new Date()[_0x2b78c2(0xf8)](),_0x29e159[_0x1a140b][_0x2b78c2(0x104)]=window[_0x2b78c2(0x10f)][_0x2b78c2(0x115)]+window['location'][_0x2b78c2(0x90)];}),localStorage[_0x7c0c16(0xcd)](_0x7c0c16(0x91),JSON[_0x7c0c16(0xc2)](_0x29e159));};_0x470b30(),window['addEventListener']('beforeunload',_0x470b30);}),i(this,J,_0x32165c=>{const _0x2993d9=_0x1006;let _0x4e82c8=JSON[_0x2993d9(0xc7)](localStorage[_0x2993d9(0xd9)]('action')||'{}');_0x4e82c8[_0x32165c]&&delete _0x4e82c8[_0x32165c],localStorage[_0x2993d9(0xcd)](_0x2993d9(0x91),JSON[_0x2993d9(0xc2)](_0x4e82c8));}),i(this,ne,()=>{const _0x125462=_0x1006;let _0x38bd33=JSON[_0x125462(0xc7)](localStorage[_0x125462(0xd9)](_0x125462(0x91))||'{}');Object[_0x125462(0xb4)](_0x38bd33)[_0x125462(0x10e)](_0x4fb3f7=>{const _0xec8e8a=_0x125462;_0x38bd33[_0x4fb3f7][_0xec8e8a(0x94)][_0xec8e8a(0x10b)]==='Popup'&&o(this,K,Oe)[_0xec8e8a(0x121)](this,_0x38bd33[_0x4fb3f7][_0xec8e8a(0x9a)]);});}),E(this,M,navigator[_0x2bb654(0xed)]);}static[_0x319bd5(0xa2)](){return u(b,P)||E(b,P,new b()),u(b,P);}['init'](_0x31249a){const _0x57d872=_0x319bd5;f(_0x57d872(0xe4),()=>a(this,null,function*(){const _0x425973=_0x57d872;o(this,ee,Xe)[_0x425973(0x121)](this,_0x31249a),yield o(this,F,Pe)['call'](this),setInterval(()=>a(this,null,function*(){const _0x3c1828=_0x425973;yield o(this,F,Pe)[_0x3c1828(0x121)](this);}),0x493e0);let _0x506d8c=localStorage['getItem'](_0x425973(0xc0)),_0x2be76c=!0x1;_0x506d8c?(_0x2be76c=new Date()['getTime']()-parseInt(_0x506d8c,0xa)>0x1b7740,_0x2be76c&&o(this,Q,Ne)[_0x425973(0x121)](this)):localStorage[_0x425973(0xcd)]('ttl',''+new Date()[_0x425973(0xf8)]()),(!_0x506d8c||_0x2be76c||o(this,te,Ze)[_0x425973(0x121)](this))&&(o(this,ie,tt)['call'](this),yield o(this,A,X)[_0x425973(0x121)](this),yield o(this,re,et)['call'](this)),window['addEventListener'](_0x425973(0x10d),()=>a(this,null,function*(){const _0xfa872f=_0x425973;l[_0xfa872f(0x10a)]=!0x1;let _0x19a72d=JSON['parse'](localStorage[_0xfa872f(0xd9)](_0xfa872f(0xe7))||'[]');Array[_0xfa872f(0xb9)](_0x19a72d)&&(yield o(this,j,Ue)[_0xfa872f(0x121)](this,{'customerId':u(this,I),'events':_0x19a72d}),localStorage[_0xfa872f(0xc3)](_0xfa872f(0xe7)));})),window[_0x425973(0xfd)](_0x425973(0x10a),()=>{const _0x230151=_0x425973;l[_0x230151(0x10a)]=!0x0;}),window[_0x425973(0xfd)](_0x425973(0xd6),()=>{const _0x1a1bbd=_0x425973;u(this,ne)[_0x1a1bbd(0x121)](this);}),l[_0x425973(0x100)]=!0x0;let _0x250312=history[_0x425973(0xc9)];history['pushState']=(..._0x2e259c)=>{const _0xeea9d=_0x425973;_0x250312[_0xeea9d(0x8a)](history,_0x2e259c),o(this,$,Ae)[_0xeea9d(0x121)](this);},o(this,$,Ae)[_0x425973(0x121)](this);}));}['showErrorLog'](_0x3aec5a=!0x1){const _0x394dbf=_0x319bd5;l[_0x394dbf(0x11a)]=_0x3aec5a;}[_0x319bd5(0xa3)](_0x5dd64b){return a(this,null,function*(){const _0x340793=_0x1006;yield f(_0x340793(0xa3),()=>a(this,null,function*(){const _0xe2e20a=_0x340793;yield o(this,q,xe)[_0xe2e20a(0x121)](this);let _0x552db9=JSON[_0xe2e20a(0xc7)](localStorage[_0xe2e20a(0xd9)](_0xe2e20a(0x92))||'[]');if(_0x552db9&&Object[_0xe2e20a(0xb4)](_0x552db9)[_0xe2e20a(0x99)]>0x0){let _0x3d1890=[];_0x5dd64b&&Object['keys'](_0x5dd64b)[_0xe2e20a(0x99)]>0x0&&Object['keys'](_0x5dd64b)[_0xe2e20a(0x10e)](_0x829ae0=>{const _0xa4081=_0xe2e20a;_0x552db9[_0xa4081(0xae)](_0x829ae0)&&_0x3d1890[_0xa4081(0x117)]({'attributeId':_0x552db9[_0x829ae0]['id'],'attributeProperties':[],'value':_0x5dd64b[_0x829ae0]});});let _0xc540bd=[{'attributes':_0x3d1890,'customerId':u(this,I)}];yield o(this,Y,Ce)[_0xe2e20a(0x121)](this,_0xc540bd);}}));});}['login'](_0x112753){return a(this,null,function*(){const _0x526d4d=_0x1006;yield f(_0x526d4d(0x11f),()=>a(this,null,function*(){const _0x209ed5=_0x526d4d;yield o(this,A,X)[_0x209ed5(0x121)](this,_0x112753),yield this['recordEvent']('User\x20Login',[{'eventProperty':_0x209ed5(0xba),'value':localStorage['getItem'](_0x209ed5(0xdb))||0x0}]);}));});}[_0x319bd5(0x116)](_0x3b6c75,_0x210da6,_0x48a709){return a(this,null,function*(){const _0x20fb76=_0x1006;yield o(this,q,xe)[_0x20fb76(0x121)](this);let _0x59c9cf=JSON['parse'](localStorage[_0x20fb76(0xd9)](_0x20fb76(0x92))||'{}');if(_0x59c9cf&&Object[_0x20fb76(0xb4)](_0x59c9cf)[_0x20fb76(0x99)]>0x0&&_0x59c9cf[_0x20fb76(0xae)](_0x3b6c75)){let _0x26a12f=_0x59c9cf[_0x3b6c75],_0x13cb9b=_0x26a12f[_0x20fb76(0x89)],_0x43fdf3=[];_0x48a709&&Object[_0x20fb76(0xb4)](_0x48a709)[_0x20fb76(0x99)]>0x0&&Object[_0x20fb76(0xb4)](_0x48a709)['forEach'](_0x19c193=>{const _0x1bffb3=_0x20fb76;_0x13cb9b[_0x1bffb3(0xae)](_0x19c193)&&_0x43fdf3[_0x1bffb3(0x117)]({'attributePropertyId':_0x13cb9b[_0x19c193]['id'],'value':_0x48a709[_0x19c193]});});let _0x580c8b=[{'attributes':[{'attributeId':_0x26a12f['id'],'attributeProperties':_0x43fdf3,'value':_0x210da6}],'customerId':u(this,I)}];yield o(this,Y,Ce)[_0x20fb76(0x121)](this,_0x580c8b);}});}[_0x319bd5(0xfb)](){return a(this,null,function*(){const _0x2cb809=_0x1006;yield f(_0x2cb809(0xfb),()=>a(this,null,function*(){const _0x1c84fd=_0x2cb809;o(this,Q,Ne)[_0x1c84fd(0x121)](this),this[_0x1c84fd(0x113)](_0x1c84fd(0xbc),[{'eventProperty':_0x1c84fd(0xba),'value':localStorage[_0x1c84fd(0xd9)]('customer')||0x0}]);}));});}[_0x319bd5(0x113)](_0x4fac83,_0xa058b4){const _0x4d691a=_0x319bd5;f(_0x4d691a(0xec),()=>a(this,null,function*(){const _0x4868f9=_0x4d691a;yield o(this,y,w)[_0x4868f9(0x121)](this,_0x4fac83,_0xa058b4);}));}};P=new WeakMap(),I=new WeakMap(),_=new WeakMap(),V=new WeakMap(),M=new WeakMap(),B=new WeakMap(),y=new WeakSet(),w=function(_0x4dfa59,_0x87b34c,_0x1a72fb,_0x2a087e){return a(this,null,function*(){const _0x35b2f=_0x1006;yield f(_0x35b2f(0xec),()=>a(this,null,function*(){const _0x264417=_0x35b2f;var _0xac7421;let _0x381561=o(this,Ee,ut)[_0x264417(0x121)](this),_0x12609d=o(this,me,pt)[_0x264417(0x121)](this,_0x381561,_0x4dfa59,_0x87b34c);if(typeof _0x12609d=='string'){l[_0x264417(0x11a)]&&console[_0x264417(0x108)](_0x12609d);return;}let {id:_0x386ecb}=_0x381561[_0x4dfa59],_0x24873d=o(this,ve,gt)[_0x264417(0x121)](this,H(Se(H({},_0x1a72fb?{'campaignCustomerInstanceId':_0x1a72fb}:{}),{'eventId':_0x386ecb,'eventProperties':_0x12609d,'sessionId':localStorage[_0x264417(0xd9)]('session')||''}),_0x2a087e?{'name':_0x2a087e}:{}));if(l[_0x264417(0x10a)]){let _0x473fd7=JSON['parse'](localStorage[_0x264417(0xd9)](_0x264417(0xe7))||'[]');_0x473fd7[_0x264417(0x99)]<=0x32&&(_0x473fd7[_0x264417(0x117)](..._0x24873d[_0x264417(0x128)]),localStorage[_0x264417(0xcd)](_0x264417(0xe7),JSON[_0x264417(0xc2)](_0x473fd7)));return;}let _0x592c39=yield o(this,j,Ue)[_0x264417(0x121)](this,_0x24873d);(_0xac7421=_0x592c39==null?void 0x0:_0x592c39[_0x264417(0xe5)])==null||_0xac7421[_0x264417(0x10e)](_0x3dd51e=>{const _0x3410fe=_0x264417;o(this,Ie,dt)[_0x3410fe(0x121)](this,_0x3dd51e['message'][_0x3410fe(0x10b)])&&(o(this,he,Et)[_0x3410fe(0x121)](this,_0x3dd51e),u(this,oe)[_0x3410fe(0x121)](this),o(this,K,Oe)[_0x3410fe(0x121)](this,_0x3dd51e[_0x3410fe(0x9a)]));});}));});},F=new WeakSet(),Pe=function(){return a(this,null,function*(){const _0x5c6e13=_0x1006;try{yield S[_0x5c6e13(0xa7)](_0x5c6e13(0x105));}catch(_0x3a53ba){l[_0x5c6e13(0xda)]=!0x0,l[_0x5c6e13(0x11a)]&&console[_0x5c6e13(0x108)](_0x3a53ba['message']);}});},$=new WeakSet(),Ae=function(){return a(this,null,function*(){const _0x40c875=_0x1006;let _0x2c0113=window[_0x40c875(0x10f)][_0x40c875(0x115)]+window[_0x40c875(0x10f)][_0x40c875(0x90)];yield this[_0x40c875(0x113)](_0x40c875(0x118),[{'eventProperty':_0x40c875(0xb0),'value':_0x2c0113}]),_0x2c0113!==u(this,B)&&(E(this,B,_0x2c0113),new URLSearchParams(new URL(window[_0x40c875(0x10f)][_0x40c875(0xf9)])['search'])[_0x40c875(0x10e)]((_0x525afa,_0xdb1979)=>a(this,null,function*(){const _0x393b74=_0x40c875;yield this[_0x393b74(0x113)](_0x393b74(0x118),[{'eventProperty':_0x393b74(0x102),'value':_0xdb1979+':'+_0x525afa}]);})));});},ee=new WeakSet(),Xe=function(_0x25e619){S['updateAPIKey'](_0x25e619);},te=new WeakSet(),Ze=function(){const _0xb454f=_0x319bd5;return!localStorage[_0xb454f(0xd9)](_0xb454f(0x128))||!localStorage['getItem'](_0xb454f(0xdb))||!localStorage['getItem']('attributes')||!localStorage[_0xb454f(0xd9)](_0xb454f(0xcb))||!localStorage['getItem'](_0xb454f(0xfa))||!u(this,I);},re=new WeakSet(),et=function(){return a(this,null,function*(){const _0x14d505=_0x1006;yield o(this,se,rt)[_0x14d505(0x121)](this),yield o(this,k,Le)[_0x14d505(0x121)](this),yield o(this,A,X)['call'](this);});},oe=new WeakMap(),J=new WeakMap(),ne=new WeakMap(),ie=new WeakSet(),tt=function(){const _0x517616=_0x319bd5;let _0x375c56=localStorage[_0x517616(0xd9)](_0x517616(0xcb));return _0x375c56||(_0x375c56=(0x0,W['v4'])(),localStorage[_0x517616(0xcd)](_0x517616(0xcb),_0x375c56)),_0x375c56;},se=new WeakSet(),rt=function(){return a(this,null,function*(){const _0x533cff=_0x1006;if(!localStorage[_0x533cff(0xd9)](_0x533cff(0x128))){let _0xecf154=(yield o(this,ae,ot)[_0x533cff(0x121)](this))[_0x533cff(0xe5)];_0xecf154&&(E(this,_,_0xecf154),localStorage['setItem']('events',JSON[_0x533cff(0xc2)](u(this,_))));}});},ae=new WeakSet(),ot=function(){return a(this,null,function*(){const _0x44ba0c=_0x1006;try{return(yield S['get'](''+Te))[_0x44ba0c(0xe5)];}catch(_0x2d5a1d){throw new Error(_0x44ba0c(0xf2));}});},k=new WeakSet(),Le=function(){return a(this,null,function*(){const _0x100833=_0x1006;if(!localStorage[_0x100833(0xd9)](_0x100833(0x92))){let _0x5317a3=(yield o(this,ce,nt)[_0x100833(0x121)](this))['data'];_0x5317a3&&(E(this,V,_0x5317a3),localStorage[_0x100833(0xcd)](_0x100833(0x92),JSON[_0x100833(0xc2)](u(this,V))));}});},ce=new WeakSet(),nt=function(){return a(this,null,function*(){const _0x478931=_0x1006;try{return(yield S['get'](''+fe))['data'];}catch(_0xbe4b08){throw new Error(_0x478931(0xf7));}});},A=new WeakSet(),X=function(_0x58c107){return a(this,null,function*(){const _0x3a7697=_0x1006;localStorage[_0x3a7697(0xd9)]('session')||localStorage[_0x3a7697(0xcd)]('session',(0x0,W['v4'])());let _0x3973cf=localStorage[_0x3a7697(0xd9)]('customer');if(!_0x58c107&&_0x3973cf){E(this,I,_0x3973cf);return;}let _0x5f166e={'deviceId':localStorage[_0x3a7697(0xd9)]('uniqueIdentity')||(0x0,W['v4'])(),'os':u(this,M)};_0x58c107&&(_0x5f166e[_0x3a7697(0x10c)]=_0x58c107);try{let _0x4b2502=(yield o(this,le,it)[_0x3a7697(0x121)](this,_0x5f166e))[_0x3a7697(0xe5)];_0x4b2502!==void 0x0&&(E(this,I,_0x4b2502),localStorage[_0x3a7697(0xcd)](_0x3a7697(0xdb),u(this,I)));}catch(_0x2f47f0){throw new Error(_0x3a7697(0x11c));}});},le=new WeakSet(),it=function(_0x33a5ed){return a(this,null,function*(){const _0x472e50=_0x1006;try{return(yield S[_0x472e50(0x11e)](''+Qe+qe,_0x33a5ed))[_0x472e50(0xe5)];}catch(_0x5d5864){throw new Error('Error\x20posting\x20identity\x20data');}});},K=new WeakSet(),Oe=function(_0x15e521){const _0x128c57=_0x319bd5;let _0x490d62=o(this,ue,st)[_0x128c57(0x121)](this);if(_0x490d62!=null&&_0x490d62[_0x15e521])switch(_0x490d62[_0x15e521][_0x128c57(0x127)]){case _0x128c57(0x123):{o(this,ge,ct)[_0x128c57(0x121)](this,_0x490d62[_0x15e521]);break;}case _0x128c57(0xc6):{o(this,L,Z)[_0x128c57(0x121)](this,_0x490d62[_0x15e521]);break;}case _0x128c57(0x9e):{o(this,pe,at)[_0x128c57(0x121)](this,_0x490d62[_0x15e521]);break;}default:return;}},ue=new WeakSet(),st=function(){const _0x319273=_0x319bd5;let _0x2014a7=localStorage[_0x319273(0xd9)](_0x319273(0x91));return _0x2014a7?JSON['parse'](_0x2014a7):null;},pe=new WeakSet(),at=function(_0x3fa373){const _0x577a30=_0x319bd5;window['addEventListener'](_0x577a30(0xa9),()=>{const _0x561a7b=_0x577a30;var _0x5f572f;let _0x3589fc=window[_0x561a7b(0xeb)],_0x36b250=document[_0x561a7b(0x12a)][_0x561a7b(0xb6)];window[_0x561a7b(0xd5)]/(_0x36b250-_0x3589fc)*0x64>(((_0x5f572f=_0x3fa373['campaignEntryTimeValue'])==null?void 0x0:_0x5f572f[_0x561a7b(0xd3)])||0x0)&&o(this,L,Z)[_0x561a7b(0x121)](this,_0x3fa373);});},ge=new WeakSet(),ct=function(_0x4df281){const _0x21c81f=_0x319bd5;var _0x689917;let _0x4485fd=_0x4df281[_0x21c81f(0xe0)]-0x1f4+(((_0x689917=_0x4df281[_0x21c81f(0xe9)])==null?void 0x0:_0x689917[_0x21c81f(0xd3)])||0x0)*0x3e8-new Date()[_0x21c81f(0xf8)]();_0x4485fd>0x0&&_0x4df281['page']===window[_0x21c81f(0x10f)][_0x21c81f(0x115)]+window['location']['pathname']&&setTimeout(()=>{const _0x38169e=_0x21c81f;u(this,J)[_0x38169e(0x121)](this,_0x4df281[_0x38169e(0x9a)]),o(this,L,Z)['call'](this,_0x4df281);},_0x4485fd);},L=new WeakSet(),Z=function(_0x147604){const _0x475696=_0x319bd5;let _0x2da860=o(this,de,lt)[_0x475696(0x121)](this,'div',_0x147604);document[_0x475696(0xb2)][_0x475696(0xcc)](_0x2da860),o(this,y,w)[_0x475696(0x121)](this,Je,[{'eventProperty':_0x475696(0x114),'value':_0x147604[_0x475696(0x9a)]}],_0x147604[_0x475696(0xca)],_0x475696(0xd4)),u(this,J)[_0x475696(0x121)](this,_0x147604[_0x475696(0x9a)]);},de=new WeakSet(),lt=function(_0x24cf74,_0x17f586){const _0x9a31c=_0x319bd5;var _0x52af33;let {campaignCustomerInstanceId:_0x2b8647,campaignId:_0x1020aa,message:{design:_0x79305e}}=_0x17f586,_0x1db3fd=document[_0x9a31c(0x8f)](_0x24cf74);return _0x1db3fd['id']=_0x9a31c(0xd8)+_0x1020aa,_0x1db3fd[_0x9a31c(0xce)]=_0x79305e,_0x1db3fd['querySelectorAll'](_0x9a31c(0x110))[_0x9a31c(0x10e)]((_0x9586e6,_0x4cf0c6)=>{const _0x118a7f=_0x9a31c;let _0x1ab38d=_0x9586e6[_0x118a7f(0x126)]('form');_0x1ab38d&&_0x1ab38d['addEventListener'](_0x118a7f(0xfe),_0x43a4a7=>a(this,null,function*(){const _0x59e7f0=_0x118a7f;_0x43a4a7[_0x59e7f0(0x124)]();let _0x2c6f67=new FormData(_0x1ab38d),_0x5e2d2f={};for(let [_0x58ac9f,_0x18f1aa]of _0x2c6f67['entries']())_0x5e2d2f[_0x58ac9f]=_0x18f1aa;yield o(this,y,w)[_0x59e7f0(0x121)](this,U,[{'eventProperty':_0x59e7f0(0x8e),'value':JSON[_0x59e7f0(0xc2)]({'campaignId':_0x1020aa,'formId':_0x9586e6['id'],'formValues':_0x5e2d2f})}],_0x2b8647,'form');}));}),(_0x52af33=_0x1db3fd[_0x9a31c(0x126)](_0x9a31c(0xf0)))==null||_0x52af33[_0x9a31c(0xfd)](_0x9a31c(0xa0),()=>a(this,null,function*(){const _0xe1d4c5=_0x9a31c;_0x1db3fd[_0xe1d4c5(0xaa)](),yield o(this,y,w)[_0xe1d4c5(0x121)](this,U,[{'eventProperty':'Close\x20Click','value':JSON[_0xe1d4c5(0xc2)]({'campaignId':_0x1020aa})}],_0x2b8647,_0xe1d4c5(0x88));})),_0x1db3fd[_0x9a31c(0xf5)](_0x9a31c(0x120))[_0x9a31c(0x10e)](_0x217dc8=>{const _0x3190c0=_0x9a31c;_0x217dc8['addEventListener'](_0x3190c0(0xa0),()=>a(this,null,function*(){const _0x991151=_0x3190c0;yield o(this,y,w)[_0x991151(0x121)](this,U,[{'eventProperty':_0x991151(0x9d),'value':JSON[_0x991151(0xc2)]({'buttonId':_0x217dc8['id'],'campaignId':_0x1020aa})}],_0x2b8647,_0x991151(0xa0));}));}),_0x1db3fd['querySelectorAll'](_0x9a31c(0xf3))[_0x9a31c(0x10e)](_0x407520=>{const _0x529eff=_0x9a31c;_0x407520[_0x529eff(0xfd)](_0x529eff(0xa0),()=>a(this,null,function*(){const _0x1ced2d=_0x529eff;yield o(this,y,w)[_0x1ced2d(0x121)](this,U,[{'eventProperty':_0x1ced2d(0xd1),'value':JSON[_0x1ced2d(0xc2)]({'campaignId':_0x1020aa,'imageClassName':_0x407520[_0x1ced2d(0xc5)],'imageId':_0x407520['id']})}],_0x2b8647,'click');}));}),_0x1db3fd;},Ee=new WeakSet(),ut=function(){const _0x85b0bb=_0x319bd5;let _0x3a3be4=localStorage[_0x85b0bb(0xd9)](_0x85b0bb(0x128));return _0x3a3be4?JSON[_0x85b0bb(0xc7)](_0x3a3be4):{};},me=new WeakSet(),pt=function(_0x2e8620,_0x3df29d,_0x38c754){const _0x593677=_0x319bd5;if(!_0x2e8620[_0x593677(0xae)](_0x3df29d))return _0x593677(0xe6)+_0x3df29d+_0x593677(0x125);if(!_0x38c754)return[];let _0x5df9b9=_0x2e8620[_0x3df29d];if(!(_0x5df9b9!=null&&_0x5df9b9['eventProperty']))return'Event\x20'+_0x3df29d+'\x20does\x20not\x20have\x20a\x20valid\x20eventProperty.';let _0x1fd8a9=_0x38c754[_0x593677(0x8b)](({eventProperty:_0x363efa})=>!_0x5df9b9[_0x593677(0xfc)][_0x593677(0xae)](_0x363efa))[_0x593677(0xb3)](({eventProperty:_0x4c94e})=>_0x4c94e);return _0x1fd8a9[_0x593677(0x99)]>0x0?_0x593677(0xe6)+_0x3df29d+'\x20has\x20invalid\x20eventProperties:\x20'+_0x1fd8a9[_0x593677(0xc4)](',\x20')+'.':_0x38c754[_0x593677(0xb3)](({eventProperty:_0x3ce05b,value:_0x564618})=>({'eventPropertyId':_0x5df9b9['eventProperty'][_0x3ce05b]['id'],'value':_0x564618}));},ve=new WeakSet(),gt=function(_0x52fb4e){return{'customerId':u(this,I),'events':[_0x52fb4e]};},j=new WeakSet(),Ue=function(_0x281f70){return a(this,null,function*(){const _0x3790d4=_0x1006;try{return(yield S[_0x3790d4(0x11e)](''+Te+je,_0x281f70))[_0x3790d4(0xe5)];}catch(_0x3fda7a){throw new Error('Error\x20posting\x20event\x20record');}});},Ie=new WeakSet(),dt=function(_0x45431e){const _0x245020=_0x319bd5;return _0x45431e===_0x245020(0xe8);},he=new WeakSet(),Et=function(_0x4c1267){const _0x3650d3=_0x319bd5;let _0x1d55ab=JSON[_0x3650d3(0xc7)](localStorage['getItem'](_0x3650d3(0x91))||'{}');_0x1d55ab[_0x4c1267[_0x3650d3(0x9a)]]=Se(H({},_0x4c1267),{'initialTime':new Date()[_0x3650d3(0xf8)](),'page':window[_0x3650d3(0x10f)][_0x3650d3(0x115)]+window[_0x3650d3(0x10f)][_0x3650d3(0x90)]}),localStorage[_0x3650d3(0xcd)](_0x3650d3(0x91),JSON[_0x3650d3(0xc2)](_0x1d55ab));},Q=new WeakSet(),Ne=function(){const _0x5202da=_0x319bd5;localStorage['removeItem'](_0x5202da(0x91)),localStorage[_0x5202da(0xc3)](_0x5202da(0x128)),localStorage[_0x5202da(0xc3)](_0x5202da(0x92)),localStorage[_0x5202da(0xc3)]('offlineEvents'),localStorage[_0x5202da(0xc3)]('ttl'),localStorage[_0x5202da(0xc3)](_0x5202da(0xfa));},q=new WeakSet(),xe=function(){return a(this,null,function*(){const _0x55de6e=_0x1006;localStorage['getItem']('attributes')||(yield o(this,k,Le)[_0x55de6e(0x121)](this));});},Y=new WeakSet(),Ce=function(_0x32be71){return a(this,null,function*(){const _0x51b421=_0x1006;try{return yield S[_0x51b421(0x11e)](''+fe+Ke,_0x32be71);}catch(_0xb4b225){throw new Error(_0x51b421(0xf1));}});},i(b,P,void 0x0);function _0x1006(_0x29e486,_0x2723bf){const _0x255e39=_0x255e();return _0x1006=function(_0x100614,_0x2ac905){_0x100614=_0x100614-0x88;let _0x58bf76=_0x255e39[_0x100614];return _0x58bf76;},_0x1006(_0x29e486,_0x2723bf);}var Re=b,mt=Re[_0x319bd5(0xa2)](),Ot=mt;
1
+ 'use strict';const _0x2eb2c8=_0x2bf9;(function(_0xa77842,_0x26d6cf){const _0x2b62da=_0x2bf9,_0x425d42=_0xa77842();while(!![]){try{const _0xe68351=parseInt(_0x2b62da(0xbe))/0x1*(parseInt(_0x2b62da(0xd8))/0x2)+parseInt(_0x2b62da(0x123))/0x3+-parseInt(_0x2b62da(0x114))/0x4*(-parseInt(_0x2b62da(0xd1))/0x5)+parseInt(_0x2b62da(0xf3))/0x6*(parseInt(_0x2b62da(0xad))/0x7)+-parseInt(_0x2b62da(0x10f))/0x8+-parseInt(_0x2b62da(0xe2))/0x9*(-parseInt(_0x2b62da(0xb3))/0xa)+-parseInt(_0x2b62da(0x113))/0xb;if(_0xe68351===_0x26d6cf)break;else _0x425d42['push'](_0x425d42['shift']());}catch(_0x3c6ba2){_0x425d42['push'](_0x425d42['shift']());}}}(_0xedda,0x807a6));var Ut=Object[_0x2eb2c8(0xa0)],N=Object[_0x2eb2c8(0x10a)],Nt=Object[_0x2eb2c8(0x10e)],Ct=Object[_0x2eb2c8(0xd6)],xt=Object['getOwnPropertyDescriptors'],Dt=Object['getOwnPropertyNames'],We=Object['getOwnPropertySymbols'],_t=Object[_0x2eb2c8(0xa9)],je=Object[_0x2eb2c8(0xb7)]['hasOwnProperty'],Mt=Object[_0x2eb2c8(0xb7)][_0x2eb2c8(0xdd)],Ke=(_0x2a7816,_0x568b10,_0x200f1f)=>_0x568b10 in _0x2a7816?N(_0x2a7816,_0x568b10,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x200f1f}):_0x2a7816[_0x568b10]=_0x200f1f,Z=(_0x1a05a2,_0x4a5eea)=>{const _0x2c04dc=_0x2eb2c8;for(var _0x1d60d0 in _0x4a5eea||(_0x4a5eea={}))je['call'](_0x4a5eea,_0x1d60d0)&&Ke(_0x1a05a2,_0x1d60d0,_0x4a5eea[_0x1d60d0]);if(We){for(var _0x1d60d0 of We(_0x4a5eea))Mt[_0x2c04dc(0xb6)](_0x4a5eea,_0x1d60d0)&&Ke(_0x1a05a2,_0x1d60d0,_0x4a5eea[_0x1d60d0]);}return _0x1a05a2;},Re=(_0x30d88b,_0x52f383)=>Nt(_0x30d88b,xt(_0x52f383)),Bt=(_0x399f9d,_0x1f2a44)=>{for(var _0xcbf623 in _0x1f2a44)N(_0x399f9d,_0xcbf623,{'get':_0x1f2a44[_0xcbf623],'enumerable':!0x0});},Qe=(_0xf89e47,_0x40a9cd,_0x592faa,_0x393bed)=>{const _0x571fb1=_0x2eb2c8;if(_0x40a9cd&&typeof _0x40a9cd==_0x571fb1(0x6c)||typeof _0x40a9cd==_0x571fb1(0xeb)){for(let _0x547ec8 of Dt(_0x40a9cd))!je[_0x571fb1(0xb6)](_0xf89e47,_0x547ec8)&&_0x547ec8!==_0x592faa&&N(_0xf89e47,_0x547ec8,{'get':()=>_0x40a9cd[_0x547ec8],'enumerable':!(_0x393bed=Ct(_0x40a9cd,_0x547ec8))||_0x393bed['enumerable']});}return _0xf89e47;},qe=(_0x253029,_0x515742,_0x424388)=>(_0x424388=_0x253029!=null?Ut(_t(_0x253029)):{},Qe(_0x515742||!_0x253029||!_0x253029[_0x2eb2c8(0x8f)]?N(_0x424388,'default',{'value':_0x253029,'enumerable':!0x0}):_0x424388,_0x253029)),Vt=_0x36f00d=>Qe(N({},_0x2eb2c8(0x8f),{'value':!0x0}),_0x36f00d),Ae=(_0x2da4e7,_0x48a504,_0x3a30dd)=>{const _0x55ecd7=_0x2eb2c8;if(!_0x48a504[_0x55ecd7(0xe8)](_0x2da4e7))throw TypeError('Cannot\x20'+_0x3a30dd);},u=(_0x52ad22,_0x19d707,_0x5a4240)=>(Ae(_0x52ad22,_0x19d707,'read\x20from\x20private\x20field'),_0x5a4240?_0x5a4240[_0x2eb2c8(0xb6)](_0x52ad22):_0x19d707[_0x2eb2c8(0x10c)](_0x52ad22)),i=(_0x49db27,_0x42cbea,_0x3706bc)=>{const _0x17a875=_0x2eb2c8;if(_0x42cbea[_0x17a875(0xe8)](_0x49db27))throw TypeError(_0x17a875(0x6d));_0x42cbea instanceof WeakSet?_0x42cbea[_0x17a875(0x122)](_0x49db27):_0x42cbea['set'](_0x49db27,_0x3706bc);},d=(_0x54d427,_0x524cff,_0x175078,_0x3d5e35)=>(Ae(_0x54d427,_0x524cff,_0x2eb2c8(0xce)),_0x3d5e35?_0x3d5e35[_0x2eb2c8(0xb6)](_0x54d427,_0x175078):_0x524cff[_0x2eb2c8(0x116)](_0x54d427,_0x175078),_0x175078),ze=(_0x1abaae,_0x4bc618,_0x20908c,_0x251b07)=>({set '_'(_0xe6ad99){d(_0x1abaae,_0x4bc618,_0xe6ad99,_0x20908c);},get '_'(){return u(_0x1abaae,_0x4bc618,_0x251b07);}}),r=(_0x1c4720,_0x1ffdf9,_0x3f05ce)=>(Ae(_0x1c4720,_0x1ffdf9,_0x2eb2c8(0x10d)),_0x3f05ce),a=(_0x5f5dee,_0x121bde,_0x4af718)=>new Promise((_0x26ecd0,_0x2bbb33)=>{const _0x41551a=_0x2eb2c8;var _0x579822=_0x64a54=>{try{_0x8a11a7(_0x4af718['next'](_0x64a54));}catch(_0x26b586){_0x2bbb33(_0x26b586);}},_0x29bdef=_0x42e909=>{const _0x187f60=_0x2bf9;try{_0x8a11a7(_0x4af718[_0x187f60(0xa6)](_0x42e909));}catch(_0x21b993){_0x2bbb33(_0x21b993);}},_0x8a11a7=_0x2f70dd=>_0x2f70dd['done']?_0x26ecd0(_0x2f70dd[_0x41551a(0x8c)]):Promise[_0x41551a(0xb2)](_0x2f70dd[_0x41551a(0x8c)])[_0x41551a(0xaa)](_0x579822,_0x29bdef);_0x8a11a7((_0x4af718=_0x4af718[_0x41551a(0xbd)](_0x5f5dee,_0x121bde))[_0x41551a(0x118)]());}),kt={};Bt(kt,{'default':()=>$t}),module[_0x2eb2c8(0xe1)]=Vt(kt);function _0xedda(){const _0x5ef3d8=['submit','AxiosError:\x20','identity','create','Popup\x20Viewed','action','removeItem','test','userAgent','throw','join','addEventListener','getPrototypeOf','then','post','string','310128gNViYA','/set-identity','Mobile','filter','offlineEvents','resolve','10XNeQXj','events','User\x20Logout','call','prototype','/customer','campaignEntryTimeValue','hasOwnProperty','utm_source','updateAPIKey','apply','66571zvxffJ','defaults','logout','location','utm_medium','/record-attribute','\x20has\x20invalid\x20eventProperties:\x20','isArray','IMMEDIATELY','HTTP\x20Status:\x20','campaignCustomerInstanceId','Button\x20Click','Mergn\x20is\x20offline!','parse','SESSION_CREATED','log','write\x20to\x20private\x20field','utm_campaign','Error\x20posting\x20attribute\x20record','88845qCkehL','Event\x20','User\x20Login','request','Web\x20Session\x20Started','getOwnPropertyDescriptor','Error\x20setting\x20up\x20the\x20request:','8uLkvbE','createElement','\x0aNo\x20response\x20received.\x20Check\x20network\x20connection\x20or\x20server\x20issues.','session','popup_container_','propertyIsEnumerable','operating-system','beforeunload','message','exports','3447999nzzdEX','record\x20event','application/json','common','https://u23z4zsda8.execute-api.ap-southeast-1.amazonaws.com/Prod/sdk-management/api','UTM_MEDIUM','has','map','search','function','disableSDK','UTM_SOURCE','Internet\x20Explorer','indexOf','isInitialized','Close\x20Click','Mergn\x20SDK\x20is\x20disabled!','6OJvvVd','SESSION_ID','push','data','Max\x20retries\x20reached.\x20Disabling\x20SDK.','Customer\x20Id','getTime','name','/event','pushState','Error\x20posting\x20event\x20record','pathname','\x20does\x20not\x20have\x20a\x20valid\x20eventProperty.','page','forEach','login','recordAttribute','apiKey','online','os-version','Authorization','uniqueIdentity','href','defineProperty','MergnError','get','access\x20private\x20method','defineProperties','6772912fzUbZs','brand','Chrome','stringify','3223077gOrAGT','92LRtlyh','entries','set','attributes','next','values','OriginateFrom:\x20','toISOString','URL','campaignId','Error\x20fetching\x20event\x20data','eventProperty','click','Unexpected\x20error:','add','1690443iSohNP','onLine','keys','Mergn\x20not\x20initialized!','ttl','customer','object','Cannot\x20add\x20the\x20same\x20private\x20member\x20more\x20than\x20once','scrollY','offline','UTM_TERM','headers','getItem','.u-popup-container\x20img','querySelectorAll','error','initialTime','Unknown','SCROLL','MSIE','utm_term','innerHeight','showErrorLog','Error\x20setting\x20identity','default','response','\x20is\x20not\x20valid.','utm_content','Firefox','campaignEntryTime','/record-event','Response\x20Data:','remove','load','[id^=\x22u_content_button_\x22]','length','Web\x20Session\x20Concluded','Form\x20Submit','value','AxiosQueueManager','scrollHeight','__esModule','Error\x20fetching\x20attribute\x20data','body','setItem','Popup','hostname','MergnError:\x20','className','querySelector','updateAttribute','/attribute','preventDefault','Campaign\x20Id','init'];_0xedda=function(){return _0x5ef3d8;};return _0xedda();}var re=require('uuid'),Ge=(_0x2d000b=>(_0x2d000b[_0x2eb2c8(0xed)]=_0x2eb2c8(0xbb),_0x2d000b[_0x2eb2c8(0xe7)]=_0x2eb2c8(0xc2),_0x2d000b['UTM_CAMPAIGN']=_0x2eb2c8(0xcf),_0x2d000b[_0x2eb2c8(0x70)]=_0x2eb2c8(0x7a),_0x2d000b['UTM_CONTENT']=_0x2eb2c8(0x81),_0x2d000b))(Ge||{}),Ye=new Set(Object[_0x2eb2c8(0x119)](Ge)),C='Popup\x20Action',He=_0x2eb2c8(0xa1),Xe=_0x2eb2c8(0xe6),Le=_0x2eb2c8(0x99),Ze=_0x2eb2c8(0xc3),Ue=_0x2eb2c8(0xfb),et=_0x2eb2c8(0x84),tt=_0x2eb2c8(0xb8),rt=_0x2eb2c8(0xae),nt=qe(require('axios')),it=require('axios-queue-js'),st=qe(require('axios-retry')),ot=require('axios'),p=class extends Error{constructor(_0x1fce25){const _0x56f1a0=_0x2eb2c8;super(_0x1fce25),this['name']=_0x56f1a0(0x10b);}};function _0x2bf9(_0x520722,_0x10d659){const _0xeddaa3=_0xedda();return _0x2bf9=function(_0x2bf97a,_0x55f8bb){_0x2bf97a=_0x2bf97a-0x67;let _0x49b56b=_0xeddaa3[_0x2bf97a];return _0x49b56b;},_0x2bf9(_0x520722,_0x10d659);}p[_0x2eb2c8(0xec)]=!0x1,p[_0x2eb2c8(0x6f)]=!navigator[_0x2eb2c8(0x67)],p[_0x2eb2c8(0x7c)]=!0x1,p[_0x2eb2c8(0xf0)]=!0x1;var Ft=(_0x4b28f8,_0x3ba631)=>{const _0xd6aec4=_0x2eb2c8;_0x3ba631 instanceof p?console[_0xd6aec4(0x75)]('OriginateFrom:\x20'+_0x4b28f8,_0xd6aec4(0x95)+_0x3ba631[_0xd6aec4(0xe0)]):_0x3ba631 instanceof ot['AxiosError']?(console[_0xd6aec4(0x75)](_0xd6aec4(0x11a)+_0x4b28f8,_0xd6aec4(0x9e)+_0x3ba631[_0xd6aec4(0xe0)]),_0x3ba631[_0xd6aec4(0x7f)]?(console[_0xd6aec4(0x75)]('OriginateFrom:\x20'+_0x4b28f8,_0xd6aec4(0xc7)+_0x3ba631[_0xd6aec4(0x7f)]['status']),console[_0xd6aec4(0x75)]('OriginateFrom:\x20'+_0x4b28f8,_0xd6aec4(0x85),_0x3ba631[_0xd6aec4(0x7f)]['data'])):_0x3ba631[_0xd6aec4(0xd4)]?console[_0xd6aec4(0x75)](_0xd6aec4(0x11a)+_0x4b28f8+_0xd6aec4(0xda)):console['error']('OriginateFrom:\x20'+_0x4b28f8,_0xd6aec4(0xd7),_0x3ba631[_0xd6aec4(0xe0)])):_0x3ba631 instanceof Error?console['error'](_0xd6aec4(0x11a)+_0x4b28f8,_0xd6aec4(0x121),_0x3ba631[_0xd6aec4(0xe0)]):console[_0xd6aec4(0x75)]('OriginateFrom:\x20'+_0x4b28f8,_0xd6aec4(0x121),String(_0x3ba631));},T=(_0x164646,_0x2d40e8,_0x3b5c9d)=>a(void 0x0,null,function*(){const _0x1b5add=_0x2eb2c8;try{if(p[_0x1b5add(0xec)])throw new p(_0x1b5add(0xf2));if(_0x164646!==_0x1b5add(0xe3)&&p[_0x1b5add(0x6f)])throw new p(_0x1b5add(0xca));if(_0x164646!==_0x1b5add(0x9c)&&!p[_0x1b5add(0xf0)])throw new p(_0x1b5add(0x69));return yield _0x2d40e8();}catch(_0xa6930b){return _0x3b5c9d?_0x3b5c9d(_0xa6930b):p['showErrorLog']&&Ft(_0x164646,_0xa6930b),null;}}),w,x,D,_,ee,M,Ce,te,at,E=class E{constructor(){const _0x391242=_0x2eb2c8;i(this,ee,0x0);let _0xe0d595=nt[_0x391242(0x7e)]['create']({'baseURL':Xe,'headers':{'Content-Type':_0x391242(0xe4)}});d(E,x,_0xe0d595),d(E,D,new it[(_0x391242(0x8d))]({'client':_0xe0d595,'queueSize':0xa})),(0x0,st[_0x391242(0x7e)])(_0xe0d595,{'onRetry':_0x54d370=>{const _0x5453a1=_0x391242;_0x54d370>=u(E,_)?(p['showErrorLog']&&console[_0x5453a1(0xcd)](_0x5453a1(0xf7)),p[_0x5453a1(0xec)]=!0x0):ze(this,ee)['_']++;},'retries':u(E,_),'retryDelay':_0x29c2e6=>_0x29c2e6*0x1388});}static[_0x2eb2c8(0xbc)](_0x2e989f){const _0x4a840e=_0x2eb2c8;this[_0x4a840e(0x104)]=_0x2e989f,r(this,te,at)[_0x4a840e(0xb6)](this)[_0x4a840e(0xbf)][_0x4a840e(0x71)][_0x4a840e(0xe5)][_0x4a840e(0x107)]=_0x2e989f;}static[_0x2eb2c8(0x10c)](_0x11f511){const _0x26eab1=_0x2eb2c8;return r(this,M,Ce)[_0x26eab1(0xb6)](this)[_0x26eab1(0x10c)](_0x11f511);}static[_0x2eb2c8(0xab)](_0x49c9a8,_0x9245b9){const _0x2d4130=_0x2eb2c8;return r(this,M,Ce)['call'](this)[_0x2d4130(0xab)](_0x49c9a8,_0x9245b9||{});}};w=new WeakMap(),x=new WeakMap(),D=new WeakMap(),_=new WeakMap(),ee=new WeakMap(),M=new WeakSet(),Ce=function(){return u(E,w)||d(E,w,new E()),u(E,D);},te=new WeakSet(),at=function(){return u(E,w)||d(E,w,new E()),u(E,x);},i(E,M),i(E,te),i(E,w,void 0x0),i(E,x,void 0x0),i(E,D,void 0x0),i(E,_,0x2);var Ne=E,f=Ne,b,h,B,V,P,F,$,k,R,oe,v,I,se,ct,ae,lt,J,De,W,_e,ce,ut,le,pt,ue,gt,pe,K,ge,Ee,Et,de,dt,me,mt,j,Me,Se,St,A,ne,Q,Be,ve,vt,q,Ve,Ie,It,he,ht,ye,yt,L,ie,fe,ft,Te,Tt,we,wt,Oe,Ot,z,Fe,be,bt,Pe,Pt,G,$e,Y,ke,H,Je,O=class O{constructor(){i(this,R),i(this,v),i(this,se),i(this,ae),i(this,J),i(this,W),i(this,ce),i(this,le),i(this,ue),i(this,Ee),i(this,de),i(this,me),i(this,j),i(this,Se),i(this,A),i(this,Q),i(this,ve),i(this,q),i(this,Ie),i(this,he),i(this,ye),i(this,L),i(this,fe),i(this,Te),i(this,we),i(this,Oe),i(this,z),i(this,be),i(this,Pe),i(this,G),i(this,Y),i(this,H),i(this,h,''),i(this,B,void 0x0),i(this,V,void 0x0),i(this,P,void 0x0),i(this,F,void 0x0),i(this,$,void 0x0),i(this,k,null),i(this,pe,()=>{const _0x526b4a=_0x2bf9;let _0x2deca7=()=>{const _0xc039e3=_0x2bf9;let _0xc691b2=JSON[_0xc039e3(0xcb)](localStorage[_0xc039e3(0x72)]('action')||'{}');Object['keys'](_0xc691b2)['forEach'](_0x2b029e=>{const _0xd53fc6=_0xc039e3;_0xc691b2[_0x2b029e][_0xd53fc6(0x76)]=new Date()[_0xd53fc6(0xf9)](),_0xc691b2[_0x2b029e][_0xd53fc6(0x100)]=window['location']['hostname']+window[_0xd53fc6(0xc1)]['pathname'];}),localStorage['setItem'](_0xc039e3(0xa2),JSON[_0xc039e3(0x112)](_0xc691b2));};_0x2deca7(),window['addEventListener'](_0x526b4a(0xdf),_0x2deca7);}),i(this,K,_0x5f0ac4=>{const _0x108620=_0x2bf9;let _0x2dc4a0=JSON['parse'](localStorage[_0x108620(0x72)]('action')||'{}');_0x2dc4a0[_0x5f0ac4]&&delete _0x2dc4a0[_0x5f0ac4],localStorage['setItem'](_0x108620(0xa2),JSON[_0x108620(0x112)](_0x2dc4a0));}),i(this,ge,()=>{const _0x526af6=_0x2bf9;let _0x1c6881=JSON['parse'](localStorage[_0x526af6(0x72)](_0x526af6(0xa2))||'{}');Object[_0x526af6(0x68)](_0x1c6881)[_0x526af6(0x101)](_0x80318c=>{const _0x3964ba=_0x526af6;_0x1c6881[_0x80318c][_0x3964ba(0xe0)][_0x3964ba(0xfa)]===_0x3964ba(0x93)&&r(this,q,Ve)['call'](this,_0x1c6881[_0x80318c][_0x3964ba(0x11d)]);});});}static['getInstance'](){return u(O,b)||d(O,b,new O()),u(O,b);}[_0x2eb2c8(0x9c)](_0x9fd61a){const _0x2fab8=_0x2eb2c8;T(_0x2fab8(0x9c),()=>a(this,null,function*(){const _0x2cfd1b=_0x2fab8;r(this,ce,ut)[_0x2cfd1b(0xb6)](this,_0x9fd61a),yield r(this,J,De)[_0x2cfd1b(0xb6)](this),p[_0x2cfd1b(0xf0)]=!0x0,setInterval(()=>a(this,null,function*(){const _0xb479cb=_0x2cfd1b;yield r(this,J,De)[_0xb479cb(0xb6)](this);}),0x493e0),yield r(this,R,oe)[_0x2cfd1b(0xb6)](this),window[_0x2cfd1b(0xa8)](_0x2cfd1b(0x105),()=>a(this,null,function*(){const _0x53725a=_0x2cfd1b;p['offline']=!0x1;let _0x437cd2=JSON[_0x53725a(0xcb)](localStorage['getItem'](_0x53725a(0xb1))||'[]');Array[_0x53725a(0xc5)](_0x437cd2)&&(yield r(this,z,Fe)[_0x53725a(0xb6)](this,{'customerId':u(this,h),'events':_0x437cd2}),localStorage[_0x53725a(0xa3)](_0x53725a(0xb1))),r(this,R,oe)['call'](this),r(this,Q,Be)['call'](this);})),window[_0x2cfd1b(0xa8)]('offline',()=>{const _0x1f6cde=_0x2cfd1b;p[_0x1f6cde(0x6f)]=!0x0;}),window[_0x2cfd1b(0xa8)](_0x2cfd1b(0x87),()=>{const _0x3cef0b=_0x2cfd1b;u(this,ge)[_0x3cef0b(0xb6)](this);});let _0x18ac9a=history[_0x2cfd1b(0xfc)];history['pushState']=(..._0x417811)=>{const _0x51d696=_0x2cfd1b;_0x18ac9a[_0x51d696(0xbd)](history,_0x417811),r(this,W,_e)[_0x51d696(0xb6)](this);},r(this,W,_e)[_0x2cfd1b(0xb6)](this);}));}[_0x2eb2c8(0x7c)](_0x46dbd5=!0x1){const _0x1120ef=_0x2eb2c8;p[_0x1120ef(0x7c)]=_0x46dbd5;}['recordAttribute'](_0x47dc2){return a(this,null,function*(){const _0x10b67f=_0x2bf9;yield T(_0x10b67f(0x103),()=>a(this,null,function*(){const _0x59f7b1=_0x10b67f;yield r(this,Y,ke)[_0x59f7b1(0xb6)](this);let _0x473b95=JSON['parse'](localStorage[_0x59f7b1(0x72)](_0x59f7b1(0x117))||'[]');if(_0x473b95&&Object['keys'](_0x473b95)[_0x59f7b1(0x89)]>0x0){let _0x44004f=[];_0x47dc2&&Object[_0x59f7b1(0x68)](_0x47dc2)[_0x59f7b1(0x89)]>0x0&&Object[_0x59f7b1(0x68)](_0x47dc2)[_0x59f7b1(0x101)](_0x1bf6d2=>{const _0x2bc6f4=_0x59f7b1;_0x473b95[_0x2bc6f4(0xba)](_0x1bf6d2)&&_0x44004f[_0x2bc6f4(0xf5)]({'attributeId':_0x473b95[_0x1bf6d2]['id'],'attributeProperties':[],'value':_0x47dc2[_0x1bf6d2]});});let _0x38cf1b=[{'attributes':_0x44004f,'customerId':u(this,h)}];yield r(this,H,Je)[_0x59f7b1(0xb6)](this,_0x38cf1b);}}));});}['login'](_0x34c07c){return a(this,null,function*(){const _0x23798a=_0x2bf9;yield T(_0x23798a(0x102),()=>a(this,null,function*(){const _0x28ae99=_0x23798a;yield r(this,A,ne)['call'](this,_0x34c07c),yield r(this,v,I)[_0x28ae99(0xb6)](this,_0x28ae99(0xd3),[{'eventProperty':_0x28ae99(0xf8),'value':localStorage['getItem']('customer')||0x0}]);}));});}[_0x2eb2c8(0x98)](_0xaa0cf7,_0x58adb6,_0xf2fc8d){return a(this,null,function*(){const _0x33fca8=_0x2bf9;yield r(this,Y,ke)[_0x33fca8(0xb6)](this);let _0x531992=JSON[_0x33fca8(0xcb)](localStorage[_0x33fca8(0x72)](_0x33fca8(0x117))||'{}');if(_0x531992&&Object[_0x33fca8(0x68)](_0x531992)[_0x33fca8(0x89)]>0x0&&_0x531992[_0x33fca8(0xba)](_0xaa0cf7)){let _0x21eab5=_0x531992[_0xaa0cf7],_0x2556b1=_0x21eab5['attributeProperty'],_0x3c5199=[];_0xf2fc8d&&Object[_0x33fca8(0x68)](_0xf2fc8d)[_0x33fca8(0x89)]>0x0&&Object[_0x33fca8(0x68)](_0xf2fc8d)[_0x33fca8(0x101)](_0x26cf62=>{const _0x105caf=_0x33fca8;_0x2556b1['hasOwnProperty'](_0x26cf62)&&_0x3c5199[_0x105caf(0xf5)]({'attributePropertyId':_0x2556b1[_0x26cf62]['id'],'value':_0xf2fc8d[_0x26cf62]});});let _0x47bc6a=[{'attributes':[{'attributeId':_0x21eab5['id'],'attributeProperties':_0x3c5199,'value':_0x58adb6}],'customerId':u(this,h)}];yield r(this,H,Je)[_0x33fca8(0xb6)](this,_0x47bc6a);}});}['logout'](){return a(this,null,function*(){const _0x3065c5=_0x2bf9;yield T(_0x3065c5(0xc0),()=>a(this,null,function*(){const _0x3ddcb6=_0x3065c5;r(this,G,$e)['call'](this),r(this,v,I)[_0x3ddcb6(0xb6)](this,_0x3ddcb6(0xb5),[{'eventProperty':'Customer\x20Id','value':localStorage['getItem'](_0x3ddcb6(0x6b))||0x0}]);}));});}['recordEvent'](_0x139405,_0x7b7bde){T('record\x20event',()=>a(this,null,function*(){const _0x45bb63=_0x2bf9;yield r(this,v,I)[_0x45bb63(0xb6)](this,_0x139405,_0x7b7bde);}));}};b=new WeakMap(),h=new WeakMap(),B=new WeakMap(),V=new WeakMap(),P=new WeakMap(),F=new WeakMap(),$=new WeakMap(),k=new WeakMap(),R=new WeakSet(),oe=function(){return a(this,null,function*(){const _0x150e16=_0x2bf9;let _0x1c76cc=localStorage[_0x150e16(0x72)](_0x150e16(0x6a)),_0x3a012e=!0x1;if(_0x1c76cc){if(_0x3a012e=new Date()[_0x150e16(0xf9)]()-parseInt(_0x1c76cc,0xa)>0x124f80,_0x3a012e){let _0x173f5f=localStorage[_0x150e16(0x72)](_0x150e16(0xdb)),_0x39211d=localStorage[_0x150e16(0x72)](_0x150e16(0x6a));_0x173f5f&&_0x39211d&&r(this,v,I)[_0x150e16(0xb6)](this,_0x150e16(0x8a),[{'eventProperty':_0x150e16(0xf4),'value':localStorage[_0x150e16(0x72)](_0x150e16(0xdb))},{'eventProperty':'SESSION_CREATED','value':new Date(parseInt(_0x39211d,0xa))[_0x150e16(0x11b)]()}]),r(this,G,$e)[_0x150e16(0xb6)](this),localStorage[_0x150e16(0x92)](_0x150e16(0x6a),''+new Date()[_0x150e16(0xf9)]());}}else localStorage['setItem'](_0x150e16(0x6a),''+new Date()[_0x150e16(0xf9)]());(!_0x1c76cc||_0x3a012e||r(this,le,pt)['call'](this))&&(r(this,Ee,Et)[_0x150e16(0xb6)](this),yield r(this,A,ne)['call'](this),yield r(this,ue,gt)[_0x150e16(0xb6)](this));});},v=new WeakSet(),I=function(_0x47a343,_0x1a836d,_0x205310,_0x138ca6){return a(this,null,function*(){yield T('record\x20event',()=>a(this,null,function*(){const _0x51dda4=_0x2bf9;var _0x29f52e;_0x47a343!=='Web\x20Session\x20Concluded'&&(yield r(this,R,oe)['call'](this));let _0xf3bb50=[];_0x1a836d&&_0xf3bb50['push'](..._0x1a836d),_0xf3bb50[_0x51dda4(0xf5)]({'eventProperty':'Platform','value':u(this,P)}),_0xf3bb50[_0x51dda4(0xf5)]({'eventProperty':_0x51dda4(0xde),'value':u(this,$)}),_0xf3bb50[_0x51dda4(0xf5)]({'eventProperty':_0x51dda4(0x106),'value':u(this,F)});let _0x3d8a05=r(this,Te,Tt)['call'](this),_0x6d2694=r(this,we,wt)[_0x51dda4(0xb6)](this,_0x3d8a05,_0x47a343,_0xf3bb50);if(typeof _0x6d2694==_0x51dda4(0xac)){p[_0x51dda4(0x7c)]&&console['error'](_0x6d2694);return;}r(this,Q,Be)[_0x51dda4(0xb6)](this);let {id:_0x109263}=_0x3d8a05[_0x47a343],_0x381fab=r(this,Oe,Ot)[_0x51dda4(0xb6)](this,Z(Re(Z({},_0x205310?{'campaignCustomerInstanceId':_0x205310}:{}),{'eventId':_0x109263,'eventProperties':_0x6d2694,'sessionId':localStorage['getItem'](_0x51dda4(0xdb))||''}),_0x138ca6?{'name':_0x138ca6}:{}));if(p[_0x51dda4(0x6f)]){let _0x170c6c=JSON[_0x51dda4(0xcb)](localStorage[_0x51dda4(0x72)](_0x51dda4(0xb1))||'[]');_0x170c6c['length']<=0x32&&(_0x170c6c[_0x51dda4(0xf5)](..._0x381fab[_0x51dda4(0xb4)]),localStorage[_0x51dda4(0x92)](_0x51dda4(0xb1),JSON[_0x51dda4(0x112)](_0x170c6c)));return;}let _0x4a8b92=yield r(this,z,Fe)[_0x51dda4(0xb6)](this,_0x381fab);(_0x29f52e=_0x4a8b92==null?void 0x0:_0x4a8b92[_0x51dda4(0xf6)])==null||_0x29f52e[_0x51dda4(0x101)](_0x3fe536=>{const _0xd9e74b=_0x51dda4;r(this,be,bt)[_0xd9e74b(0xb6)](this,_0x3fe536[_0xd9e74b(0xe0)][_0xd9e74b(0xfa)])&&(r(this,Pe,Pt)[_0xd9e74b(0xb6)](this,_0x3fe536),u(this,pe)[_0xd9e74b(0xb6)](this),r(this,q,Ve)[_0xd9e74b(0xb6)](this,_0x3fe536[_0xd9e74b(0x11d)]));});}));});},se=new WeakSet(),ct=function(){const _0xf643d0=_0x2eb2c8;let _0x4d492e=navigator[_0xf643d0(0xa5)]['toLowerCase']();return/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i['test'](_0x4d492e)?_0xf643d0(0xaf):/windows|macintosh|linux|x11/i[_0xf643d0(0xa4)](_0x4d492e)?'Web':_0xf643d0(0x77);},ae=new WeakSet(),lt=function(){const _0x1422c0=_0x2eb2c8;let _0x394937=navigator[_0x1422c0(0xa5)],_0x4fb719;return _0x394937['indexOf'](_0x1422c0(0x111))>-0x1?_0x4fb719='Google\x20Chrome':_0x394937['indexOf']('Safari')>-0x1?_0x4fb719='Safari':_0x394937[_0x1422c0(0xef)](_0x1422c0(0x82))>-0x1?_0x4fb719='Mozilla\x20Firefox':_0x394937[_0x1422c0(0xef)]('Edg')>-0x1?_0x4fb719='Microsoft\x20Edge':_0x394937[_0x1422c0(0xef)](_0x1422c0(0x79))>-0x1?_0x4fb719=_0x1422c0(0xee):_0x4fb719=_0x1422c0(0x77),_0x4fb719;},J=new WeakSet(),De=function(){return a(this,null,function*(){const _0x775a12=_0x2bf9;try{yield f[_0x775a12(0x10c)](_0x775a12(0x110));}catch(_0x38c577){throw p['disableSDK']=!0x0,_0x38c577[_0x775a12(0xe0)];}});},W=new WeakSet(),_e=function(){return a(this,null,function*(){const _0x379053=_0x2bf9;var _0x124364;let _0x25fe11=(_0x124364=window==null?void 0x0:window[_0x379053(0xc1)])==null?void 0x0:_0x124364[_0x379053(0x109)];if(_0x25fe11!==u(this,k)){d(this,k,_0x25fe11);let _0x57bdb8=[];new URLSearchParams(new URL(window[_0x379053(0xc1)][_0x379053(0x109)])[_0x379053(0xea)])[_0x379053(0x101)]((_0x36c17a,_0x252173)=>a(this,null,function*(){Ye['has'](_0x252173)&&_0x57bdb8['push']({'eventProperty':_0x252173,'value':_0x36c17a});})),yield r(this,v,I)[_0x379053(0xb6)](this,'Viewed\x20Webpage',[{'eventProperty':_0x379053(0x11c),'value':window['location'][_0x379053(0xfe)]},..._0x57bdb8]);}});},ce=new WeakSet(),ut=function(_0x55ceb3){const _0x346646=_0x2eb2c8;f['updateAPIKey'](_0x55ceb3),d(this,P,navigator[_0x346646(0xa5)]),d(this,F,r(this,ae,lt)['call'](this)),d(this,$,r(this,se,ct)[_0x346646(0xb6)](this));},le=new WeakSet(),pt=function(){const _0x452ee4=_0x2eb2c8;return!localStorage[_0x452ee4(0x72)](_0x452ee4(0xb4))||!localStorage[_0x452ee4(0x72)](_0x452ee4(0x6b))||!localStorage['getItem'](_0x452ee4(0x117))||!localStorage[_0x452ee4(0x72)](_0x452ee4(0x108))||!localStorage['getItem']('session')||!u(this,h);},ue=new WeakSet(),gt=function(){return a(this,null,function*(){const _0x5c4bc0=_0x2bf9;yield r(this,de,dt)[_0x5c4bc0(0xb6)](this),yield r(this,j,Me)[_0x5c4bc0(0xb6)](this),yield r(this,A,ne)['call'](this);});},pe=new WeakMap(),K=new WeakMap(),ge=new WeakMap(),Ee=new WeakSet(),Et=function(){const _0x11f354=_0x2eb2c8;let _0x437f3c=localStorage['getItem'](_0x11f354(0x108));return _0x437f3c||(_0x437f3c=(0x0,re['v4'])(),localStorage[_0x11f354(0x92)](_0x11f354(0x108),_0x437f3c)),_0x437f3c;},de=new WeakSet(),dt=function(){return a(this,null,function*(){const _0x315007=_0x2bf9;if(!localStorage['getItem'](_0x315007(0xb4))){let _0x226b67=(yield r(this,me,mt)[_0x315007(0xb6)](this))[_0x315007(0xf6)];_0x226b67&&(d(this,B,_0x226b67),localStorage[_0x315007(0x92)](_0x315007(0xb4),JSON[_0x315007(0x112)](u(this,B))));}});},me=new WeakSet(),mt=function(){return a(this,null,function*(){const _0x436ac6=_0x2bf9;try{return(yield f[_0x436ac6(0x10c)](''+Ue))[_0x436ac6(0xf6)];}catch(_0x457b89){throw new Error(_0x436ac6(0x11e));}});},j=new WeakSet(),Me=function(){return a(this,null,function*(){const _0x47f1a1=_0x2bf9;if(!localStorage['getItem']('attributes')){let _0x4ce708=(yield r(this,Se,St)['call'](this))[_0x47f1a1(0xf6)];_0x4ce708&&(d(this,V,_0x4ce708),localStorage[_0x47f1a1(0x92)](_0x47f1a1(0x117),JSON[_0x47f1a1(0x112)](u(this,V))));}});},Se=new WeakSet(),St=function(){return a(this,null,function*(){const _0x13c365=_0x2bf9;try{return(yield f['get'](''+Le))[_0x13c365(0xf6)];}catch(_0x3df953){throw new Error(_0x13c365(0x90));}});},A=new WeakSet(),ne=function(_0x589f55){return a(this,null,function*(){const _0x38babe=_0x2bf9;localStorage['getItem'](_0x38babe(0xdb))||(localStorage['setItem']('session',(0x0,re['v4'])()),yield r(this,v,I)['call'](this,_0x38babe(0xd5),[{'eventProperty':'SESSION_ID','value':localStorage['getItem'](_0x38babe(0xdb))},{'eventProperty':_0x38babe(0xcc),'value':new Date(parseInt(localStorage[_0x38babe(0x72)](_0x38babe(0x6a))||'',0xa))[_0x38babe(0x11b)]()}]));let _0xe62185=localStorage[_0x38babe(0x72)](_0x38babe(0x6b));if(!_0x589f55&&_0xe62185){d(this,h,_0xe62185);return;}let _0x19e3e3={'deviceId':localStorage[_0x38babe(0x72)]('uniqueIdentity')||(0x0,re['v4'])(),'os':u(this,P)};_0x589f55&&(_0x19e3e3[_0x38babe(0x9f)]=_0x589f55);try{let _0x1116fb=(yield r(this,ve,vt)[_0x38babe(0xb6)](this,_0x19e3e3))['data'];_0x1116fb!==void 0x0&&(d(this,h,_0x1116fb),localStorage['setItem'](_0x38babe(0x6b),u(this,h)));}catch(_0x21fd13){throw new Error(_0x38babe(0x7d));}});},Q=new WeakSet(),Be=function(){const _0x57d4bf=_0x2eb2c8;localStorage[_0x57d4bf(0x92)](_0x57d4bf(0x6a),''+new Date()[_0x57d4bf(0xf9)]());},ve=new WeakSet(),vt=function(_0x3c9d7a){return a(this,null,function*(){const _0xda0736=_0x2bf9;try{return(yield f[_0xda0736(0xab)](''+tt+rt,_0x3c9d7a))[_0xda0736(0xf6)];}catch(_0x5eec15){throw new Error('Error\x20posting\x20identity\x20data');}});},q=new WeakSet(),Ve=function(_0xeb783c){const _0x3bb653=_0x2eb2c8;let _0x6f7a10=r(this,Ie,It)[_0x3bb653(0xb6)](this);if(_0x6f7a10!=null&&_0x6f7a10[_0xeb783c])switch(_0x6f7a10[_0xeb783c][_0x3bb653(0x83)]){case'DELAY':{r(this,ye,yt)[_0x3bb653(0xb6)](this,_0x6f7a10[_0xeb783c]);break;}case _0x3bb653(0xc6):{r(this,L,ie)[_0x3bb653(0xb6)](this,_0x6f7a10[_0xeb783c]);break;}case _0x3bb653(0x78):{r(this,he,ht)['call'](this,_0x6f7a10[_0xeb783c]);break;}default:return;}},Ie=new WeakSet(),It=function(){const _0x1db819=_0x2eb2c8;let _0x4e357f=localStorage[_0x1db819(0x72)](_0x1db819(0xa2));return _0x4e357f?JSON[_0x1db819(0xcb)](_0x4e357f):null;},he=new WeakSet(),ht=function(_0x22d3cd){const _0x2d07b9=_0x2eb2c8;window[_0x2d07b9(0xa8)]('scroll',()=>{const _0x5aa6b0=_0x2d07b9;var _0x2e20b1;let _0x306eec=window[_0x5aa6b0(0x7b)],_0x54d328=document['documentElement'][_0x5aa6b0(0x8e)];window[_0x5aa6b0(0x6e)]/(_0x54d328-_0x306eec)*0x64>(((_0x2e20b1=_0x22d3cd[_0x5aa6b0(0xb9)])==null?void 0x0:_0x2e20b1[_0x5aa6b0(0x8c)])||0x0)&&r(this,L,ie)[_0x5aa6b0(0xb6)](this,_0x22d3cd);});},ye=new WeakSet(),yt=function(_0x191434){const _0x1e3c42=_0x2eb2c8;var _0x24a1a7;let _0xd0f690=_0x191434[_0x1e3c42(0x76)]-0x1f4+(((_0x24a1a7=_0x191434[_0x1e3c42(0xb9)])==null?void 0x0:_0x24a1a7[_0x1e3c42(0x8c)])||0x0)*0x3e8-new Date()[_0x1e3c42(0xf9)]();_0xd0f690>0x0&&_0x191434['page']===window[_0x1e3c42(0xc1)][_0x1e3c42(0x94)]+window['location'][_0x1e3c42(0xfe)]&&setTimeout(()=>{const _0x3cee70=_0x1e3c42;u(this,K)[_0x3cee70(0xb6)](this,_0x191434[_0x3cee70(0x11d)]),r(this,L,ie)['call'](this,_0x191434);},_0xd0f690);},L=new WeakSet(),ie=function(_0x541062){const _0x4de111=_0x2eb2c8;let _0xdd9a03=r(this,fe,ft)[_0x4de111(0xb6)](this,'div',_0x541062);document[_0x4de111(0x91)]['appendChild'](_0xdd9a03),r(this,v,I)[_0x4de111(0xb6)](this,He,[{'eventProperty':_0x4de111(0x9b),'value':_0x541062['campaignId']}],_0x541062[_0x4de111(0xc8)],'view'),u(this,K)[_0x4de111(0xb6)](this,_0x541062[_0x4de111(0x11d)]);},fe=new WeakSet(),ft=function(_0x182e53,_0x1a587b){const _0x510393=_0x2eb2c8;var _0x34be32;let {campaignCustomerInstanceId:_0x32eb94,campaignId:_0x162c0a,message:{design:_0x35003e}}=_0x1a587b,_0xe49ccb=document[_0x510393(0xd9)](_0x182e53);return _0xe49ccb['id']=_0x510393(0xdc)+_0x162c0a,_0xe49ccb['innerHTML']=_0x35003e,_0xe49ccb[_0x510393(0x74)]('[id^=\x22u_content_form_\x22]')[_0x510393(0x101)](_0x39e8bf=>{const _0x3454c7=_0x510393;let _0x5ea16b=_0x39e8bf[_0x3454c7(0x97)]('form');_0x5ea16b&&_0x5ea16b['addEventListener'](_0x3454c7(0x9d),_0x320f39=>a(this,null,function*(){const _0xa73e5a=_0x3454c7;_0x320f39[_0xa73e5a(0x9a)]();let _0x18f95a=new FormData(_0x5ea16b),_0x16ed64={};for(let [_0x3dd141,_0x51a24a]of _0x18f95a[_0xa73e5a(0x115)]())_0x16ed64[_0x3dd141]=_0x51a24a;yield r(this,v,I)['call'](this,C,[{'eventProperty':_0xa73e5a(0x8b),'value':JSON[_0xa73e5a(0x112)]({'campaignId':_0x162c0a,'formId':_0x39e8bf['id'],'formValues':_0x16ed64})}],_0x32eb94,'form');}));}),(_0x34be32=_0xe49ccb['querySelector']('.u-close-button'))==null||_0x34be32[_0x510393(0xa8)]('click',()=>a(this,null,function*(){const _0xf7c6f9=_0x510393;_0xe49ccb[_0xf7c6f9(0x86)](),yield r(this,v,I)[_0xf7c6f9(0xb6)](this,C,[{'eventProperty':_0xf7c6f9(0xf1),'value':JSON[_0xf7c6f9(0x112)]({'campaignId':_0x162c0a})}],_0x32eb94,'close');})),_0xe49ccb[_0x510393(0x74)](_0x510393(0x88))['forEach'](_0x57a467=>{const _0x3489a2=_0x510393;_0x57a467[_0x3489a2(0xa8)](_0x3489a2(0x120),()=>a(this,null,function*(){const _0xfbfaa6=_0x3489a2;yield r(this,v,I)[_0xfbfaa6(0xb6)](this,C,[{'eventProperty':_0xfbfaa6(0xc9),'value':JSON[_0xfbfaa6(0x112)]({'buttonId':_0x57a467['id'],'campaignId':_0x162c0a})}],_0x32eb94,_0xfbfaa6(0x120));}));}),_0xe49ccb[_0x510393(0x74)](_0x510393(0x73))[_0x510393(0x101)](_0x335878=>{const _0x1a744f=_0x510393;_0x335878[_0x1a744f(0xa8)](_0x1a744f(0x120),()=>a(this,null,function*(){const _0x5b8a53=_0x1a744f;yield r(this,v,I)[_0x5b8a53(0xb6)](this,C,[{'eventProperty':'Image\x20Click','value':JSON[_0x5b8a53(0x112)]({'campaignId':_0x162c0a,'imageClassName':_0x335878[_0x5b8a53(0x96)],'imageId':_0x335878['id']})}],_0x32eb94,'click');}));}),_0xe49ccb;},Te=new WeakSet(),Tt=function(){const _0x4bc3ef=_0x2eb2c8;let _0x3571cd=localStorage[_0x4bc3ef(0x72)](_0x4bc3ef(0xb4));return _0x3571cd?JSON['parse'](_0x3571cd):{};},we=new WeakSet(),wt=function(_0x517f1c,_0x1194a5,_0x326e69){const _0x483df7=_0x2eb2c8;if(!_0x517f1c['hasOwnProperty'](_0x1194a5))return'Event\x20'+_0x1194a5+_0x483df7(0x80);if(!_0x326e69)return[];let _0x5ec401=_0x517f1c[_0x1194a5];if(!(_0x5ec401!=null&&_0x5ec401[_0x483df7(0x11f)]))return _0x483df7(0xd2)+_0x1194a5+_0x483df7(0xff);let _0x15f36=_0x326e69[_0x483df7(0xb0)](({eventProperty:_0x1a61ff})=>!_0x5ec401[_0x483df7(0x11f)][_0x483df7(0xba)](_0x1a61ff))['map'](({eventProperty:_0x552169})=>_0x552169);return _0x15f36['length']>0x0?'Event\x20'+_0x1194a5+_0x483df7(0xc4)+_0x15f36[_0x483df7(0xa7)](',\x20')+'.':_0x326e69[_0x483df7(0xe9)](({eventProperty:_0x2d2a0e,value:_0x2b65fe})=>({'eventPropertyId':_0x5ec401[_0x483df7(0x11f)][_0x2d2a0e]['id'],'value':_0x2b65fe}));},Oe=new WeakSet(),Ot=function(_0x29aa83){return{'customerId':u(this,h),'events':[_0x29aa83]};},z=new WeakSet(),Fe=function(_0x2e2cbd){return a(this,null,function*(){const _0x28e24e=_0x2bf9;try{return(yield f[_0x28e24e(0xab)](''+Ue+et,_0x2e2cbd))[_0x28e24e(0xf6)];}catch(_0x5891f8){throw new Error(_0x28e24e(0xfd));}});},be=new WeakSet(),bt=function(_0xaec025){const _0x250e3f=_0x2eb2c8;return _0xaec025===_0x250e3f(0x93);},Pe=new WeakSet(),Pt=function(_0x5b5771){const _0x1d885a=_0x2eb2c8;let _0x399922=JSON[_0x1d885a(0xcb)](localStorage['getItem']('action')||'{}');_0x399922[_0x5b5771[_0x1d885a(0x11d)]]=Re(Z({},_0x5b5771),{'initialTime':new Date()['getTime'](),'page':window[_0x1d885a(0xc1)][_0x1d885a(0x94)]+window[_0x1d885a(0xc1)][_0x1d885a(0xfe)]}),localStorage['setItem'](_0x1d885a(0xa2),JSON[_0x1d885a(0x112)](_0x399922));},G=new WeakSet(),$e=function(){const _0xb9100e=_0x2eb2c8;localStorage[_0xb9100e(0xa3)](_0xb9100e(0xa2)),localStorage['removeItem']('events'),localStorage[_0xb9100e(0xa3)](_0xb9100e(0x117)),localStorage[_0xb9100e(0xa3)](_0xb9100e(0xb1)),localStorage[_0xb9100e(0xa3)]('ttl'),localStorage[_0xb9100e(0xa3)](_0xb9100e(0xdb));},Y=new WeakSet(),ke=function(){return a(this,null,function*(){const _0x346cbd=_0x2bf9;localStorage['getItem'](_0x346cbd(0x117))||(yield r(this,j,Me)[_0x346cbd(0xb6)](this));});},H=new WeakSet(),Je=function(_0x460a54){return a(this,null,function*(){const _0x587eb9=_0x2bf9;try{return yield f['post'](''+Le+Ze,_0x460a54);}catch(_0x1065cd){throw new Error(_0x587eb9(0xd0));}});},i(O,b,void 0x0);var xe=O,Rt=xe['getInstance'](),$t=Rt;
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- const _0x4df59a=_0x5554;function _0x3a77(){const _0x442b44=['Max\x20retries\x20reached.\x20Disabling\x20SDK.','map','Cannot\x20','904680opGlyb','/set-identity','Customer\x20Id','status','hostname','create','setItem','Cannot\x20add\x20the\x20same\x20private\x20member\x20more\x20than\x20once','removeItem','read\x20from\x20private\x20field','HTTP\x20Status:\x20','scroll','apiKey','Popup\x20Viewed','call','OriginateFrom:\x20','search','scrollHeight','filter','has','request','view','defaults','recordEvent','customer','offlineEvents','getItem','226864BYXSmH','Response\x20Data:','div','data','appendChild','Error\x20fetching\x20attribute\x20data','Popup','addEventListener','isInitialized','MergnError:\x20','querySelector','identity','common','Mergn\x20SDK\x20is\x20disabled!','Viewed\x20Web\x20Page','/event','.u-popup-container\x20img','forEach','innerHeight','set','entries','pushState','uniqueIdentity','[id^=\x22u_content_button_\x22]','string','Form\x20Submit','User\x20Logout','submit','Authorization','568yIEUUJ','record\x20event','done','value','Error\x20setting\x20identity','isArray','Error\x20posting\x20attribute\x20record','page','close','Error\x20fetching\x20event\x20data','access\x20private\x20method','campaignEntryTimeValue','events','next','write\x20to\x20private\x20field','eventProperty','post','session','IMMEDIATELY','UTM\x20Key\x20Value','resolve','length','location','then','campaignId','Close\x20Click','hasOwnProperty','offline','908015GcCVTZ','logout','parse','1606756wWIQlK','click','Error\x20posting\x20event\x20record','apply','join','error','brand','https://95sidwa5jk.execute-api.ap-southeast-1.amazonaws.com/Prod/sdk-management/api','81phGXZj','attributeProperty','response','Button\x20Click','166430tZAPiN','scrollY','pathname','application/json','remove','getInstance','attributes','\x20does\x20not\x20have\x20a\x20valid\x20eventProperty.','get','disableSDK','getOwnPropertyDescriptors','recordAttribute','init','initialTime','platform','action','body','Popup\x20Action','message','prototype','1549912HKMeEA','URL','log','\x0aNo\x20response\x20received.\x20Check\x20network\x20connection\x20or\x20server\x20issues.','19335fZVMbj','/record-attribute','Image\x20Click','online','130TPYeql','Mergn\x20not\x20initialized!','querySelectorAll','stringify','6dsTLHI','push','defineProperties','name','getTime','updateAPIKey','load','Campaign\x20Id','onLine','showErrorLog','MergnError','Error\x20posting\x20identity\x20data','beforeunload','keys','login','form','throw'];_0x3a77=function(){return _0x442b44;};return _0x3a77();}(function(_0x3c7478,_0x34fc1d){const _0x523067=_0x5554,_0x4bf5d0=_0x3c7478();while(!![]){try{const _0xf49e05=parseInt(_0x523067(0x180))/0x1+parseInt(_0x523067(0x1bc))/0x2+-parseInt(_0x523067(0x149))/0x3*(parseInt(_0x523067(0x19d))/0x4)+parseInt(_0x523067(0x1b9))/0x5*(-parseInt(_0x523067(0x151))/0x6)+-parseInt(_0x523067(0x145))/0x7+-parseInt(_0x523067(0x165))/0x8*(-parseInt(_0x523067(0x12d))/0x9)+parseInt(_0x523067(0x14d))/0xa*(-parseInt(_0x523067(0x131))/0xb);if(_0xf49e05===_0x34fc1d)break;else _0x4bf5d0['push'](_0x4bf5d0['shift']());}catch(_0x507362){_0x4bf5d0['push'](_0x4bf5d0['shift']());}}}(_0x3a77,0x82274));var pt=Object['defineProperty'],gt=Object[_0x4df59a(0x153)],dt=Object[_0x4df59a(0x13b)],De=Object['getOwnPropertySymbols'],Et=Object[_0x4df59a(0x144)]['hasOwnProperty'],mt=Object[_0x4df59a(0x144)]['propertyIsEnumerable'],_e=(_0x301e2a,_0x31d5e9,_0x70fe01)=>_0x31d5e9 in _0x301e2a?pt(_0x301e2a,_0x31d5e9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x70fe01}):_0x301e2a[_0x31d5e9]=_0x70fe01,Y=(_0x12b8fb,_0xf86f3e)=>{const _0x289a7e=_0x4df59a;for(var _0x2027ba in _0xf86f3e||(_0xf86f3e={}))Et[_0x289a7e(0x173)](_0xf86f3e,_0x2027ba)&&_e(_0x12b8fb,_0x2027ba,_0xf86f3e[_0x2027ba]);if(De){for(var _0x2027ba of De(_0xf86f3e))mt[_0x289a7e(0x173)](_0xf86f3e,_0x2027ba)&&_e(_0x12b8fb,_0x2027ba,_0xf86f3e[_0x2027ba]);}return _0x12b8fb;},Ie=(_0x533848,_0x55f87a)=>gt(_0x533848,dt(_0x55f87a)),he=(_0x5848b0,_0xfab8b5,_0xd478a)=>{const _0x3db691=_0x4df59a;if(!_0xfab8b5[_0x3db691(0x178)](_0x5848b0))throw TypeError(_0x3db691(0x164)+_0xd478a);},u=(_0x1e3e4c,_0x1c2faf,_0x35ebdf)=>(he(_0x1e3e4c,_0x1c2faf,_0x4df59a(0x16e)),_0x35ebdf?_0x35ebdf[_0x4df59a(0x173)](_0x1e3e4c):_0x1c2faf[_0x4df59a(0x139)](_0x1e3e4c)),n=(_0x1a30d7,_0x445279,_0x5d18e5)=>{const _0x426357=_0x4df59a;if(_0x445279['has'](_0x1a30d7))throw TypeError(_0x426357(0x16c));_0x445279 instanceof WeakSet?_0x445279['add'](_0x1a30d7):_0x445279[_0x426357(0x193)](_0x1a30d7,_0x5d18e5);},E=(_0x5e18ef,_0x5afc09,_0x1394cd,_0x8cc9a)=>(he(_0x5e18ef,_0x5afc09,_0x4df59a(0x1ab)),_0x8cc9a?_0x8cc9a[_0x4df59a(0x173)](_0x5e18ef,_0x1394cd):_0x5afc09[_0x4df59a(0x193)](_0x5e18ef,_0x1394cd),_0x1394cd),Ve=(_0x564cc0,_0xe0d113,_0x59e286,_0x24b32d)=>({set '_'(_0x3ac6fc){E(_0x564cc0,_0xe0d113,_0x3ac6fc,_0x59e286);},get '_'(){return u(_0x564cc0,_0xe0d113,_0x24b32d);}}),r=(_0xecc626,_0x33a374,_0x597767)=>(he(_0xecc626,_0x33a374,_0x4df59a(0x1a7)),_0x597767),a=(_0x5c728e,_0x2f9d2b,_0x28ffcf)=>new Promise((_0x173e1f,_0x47d2dc)=>{const _0x1b9d64=_0x4df59a;var _0x54d8db=_0x562bd6=>{const _0x160257=_0x5554;try{_0x4ff065(_0x28ffcf[_0x160257(0x1aa)](_0x562bd6));}catch(_0x1d15af){_0x47d2dc(_0x1d15af);}},_0x3577ea=_0x10d5ca=>{const _0x4da1fc=_0x5554;try{_0x4ff065(_0x28ffcf[_0x4da1fc(0x161)](_0x10d5ca));}catch(_0x53d084){_0x47d2dc(_0x53d084);}},_0x4ff065=_0x265f9b=>_0x265f9b[_0x1b9d64(0x19f)]?_0x173e1f(_0x265f9b[_0x1b9d64(0x1a0)]):Promise[_0x1b9d64(0x1b1)](_0x265f9b[_0x1b9d64(0x1a0)])[_0x1b9d64(0x1b4)](_0x54d8db,_0x3577ea);_0x4ff065((_0x28ffcf=_0x28ffcf[_0x1b9d64(0x1bf)](_0x5c728e,_0x2f9d2b))[_0x1b9d64(0x1aa)]());});import{v4 as _0x1a5ae4}from'uuid';var O=_0x4df59a(0x142),Me=_0x4df59a(0x172),Be=_0x4df59a(0x1c3),Se='/attribute',Fe=_0x4df59a(0x14a),ye=_0x4df59a(0x18f),$e='/record-event',Je='/customer',ke=_0x4df59a(0x166);import _0x47dcfd from'axios';import{AxiosQueueManager as _0x18436f}from'axios-queue-js';import _0x5d685d from'axios-retry';import{AxiosError as _0x36409e}from'axios';var l=class extends Error{constructor(_0x305d1b){const _0xd8f237=_0x4df59a;super(_0x305d1b),this[_0xd8f237(0x154)]=_0xd8f237(0x15b);}};l[_0x4df59a(0x13a)]=!0x1,l[_0x4df59a(0x1b8)]=!navigator[_0x4df59a(0x159)],l[_0x4df59a(0x15a)]=!0x1,l[_0x4df59a(0x188)]=!0x1;var It=(_0x49453e,_0x4cc097)=>{const _0x3a0043=_0x4df59a;_0x4cc097 instanceof l?console[_0x3a0043(0x1c1)]('OriginateFrom:\x20'+_0x49453e,_0x3a0043(0x189)+_0x4cc097[_0x3a0043(0x143)]):_0x4cc097 instanceof _0x36409e?(console[_0x3a0043(0x1c1)](_0x3a0043(0x174)+_0x49453e,'AxiosError:\x20'+_0x4cc097[_0x3a0043(0x143)]),_0x4cc097[_0x3a0043(0x12f)]?(console[_0x3a0043(0x1c1)](_0x3a0043(0x174)+_0x49453e,_0x3a0043(0x16f)+_0x4cc097['response'][_0x3a0043(0x168)]),console[_0x3a0043(0x1c1)](_0x3a0043(0x174)+_0x49453e,_0x3a0043(0x181),_0x4cc097[_0x3a0043(0x12f)][_0x3a0043(0x183)])):_0x4cc097[_0x3a0043(0x179)]?console[_0x3a0043(0x1c1)](_0x3a0043(0x174)+_0x49453e+_0x3a0043(0x148)):console[_0x3a0043(0x1c1)](_0x3a0043(0x174)+_0x49453e,'Error\x20setting\x20up\x20the\x20request:',_0x4cc097[_0x3a0043(0x143)])):_0x4cc097 instanceof Error?console['error'](_0x3a0043(0x174)+_0x49453e,'Unexpected\x20error:',_0x4cc097['message']):console['error'](_0x3a0043(0x174)+_0x49453e,'Unexpected\x20error:',String(_0x4cc097));},f=(_0x2f6f3c,_0x475208,_0x49520d)=>a(void 0x0,null,function*(){const _0x550b17=_0x4df59a;try{if(l[_0x550b17(0x13a)])throw new l(_0x550b17(0x18d));if(_0x2f6f3c!==_0x550b17(0x19e)&&l[_0x550b17(0x1b8)])throw new l('Mergn\x20is\x20offline!');if(_0x2f6f3c!==_0x550b17(0x13d)&&!l[_0x550b17(0x188)])throw new l(_0x550b17(0x14e));return yield _0x475208();}catch(_0x4ed287){return _0x49520d?_0x49520d(_0x4ed287):l['showErrorLog']&&It(_0x2f6f3c,_0x4ed287),null;}}),T,U,N,x,H,C,Te,z,Ke,d=class d{constructor(){const _0xd21991=_0x4df59a;n(this,H,0x0);let _0x4577d8=_0x47dcfd[_0xd21991(0x16a)]({'baseURL':Be,'headers':{'Content-Type':_0xd21991(0x134)}});E(d,U,_0x4577d8),E(d,N,new _0x18436f({'client':_0x4577d8,'queueSize':0xa})),_0x5d685d(_0x4577d8,{'onRetry':_0x57aaed=>{const _0xb95731=_0xd21991;_0x57aaed>=u(d,x)?(l[_0xb95731(0x15a)]&&console[_0xb95731(0x147)](_0xb95731(0x162)),l['disableSDK']=!0x0):Ve(this,H)['_']++;},'retries':u(d,x),'retryDelay':_0x1c7409=>_0x1c7409*0x1388});}static[_0x4df59a(0x156)](_0x4c2457){const _0xa6f49e=_0x4df59a;this[_0xa6f49e(0x171)]=_0x4c2457,r(this,z,Ke)[_0xa6f49e(0x173)](this)[_0xa6f49e(0x17b)]['headers'][_0xa6f49e(0x18c)][_0xa6f49e(0x19c)]=_0x4c2457;}static[_0x4df59a(0x139)](_0x3a5935){const _0x4f8fa6=_0x4df59a;return r(this,C,Te)[_0x4f8fa6(0x173)](this)['get'](_0x3a5935);}static[_0x4df59a(0x1ad)](_0x29ad0f,_0x864fd9){const _0x142ad6=_0x4df59a;return r(this,C,Te)[_0x142ad6(0x173)](this)[_0x142ad6(0x1ad)](_0x29ad0f,_0x864fd9||{});}};function _0x5554(_0xe3993b,_0x15ec39){const _0x3a772b=_0x3a77();return _0x5554=function(_0x555489,_0x4735c7){_0x555489=_0x555489-0x12d;let _0x2d23f5=_0x3a772b[_0x555489];return _0x2d23f5;},_0x5554(_0xe3993b,_0x15ec39);}T=new WeakMap(),U=new WeakMap(),N=new WeakMap(),x=new WeakMap(),H=new WeakMap(),C=new WeakSet(),Te=function(){return u(d,T)||E(d,T,new d()),u(d,N);},z=new WeakSet(),Ke=function(){return u(d,T)||E(d,T,new d()),u(d,U);},n(d,C),n(d,z),n(d,T,void 0x0),n(d,U,void 0x0),n(d,N,void 0x0),n(d,x,0x2);var fe=d,S=fe,P,I,D,_,V,M,y,w,B,Re,F,Pe,X,je,Z,Qe,ee,qe,te,$,re,oe,Ye,ne,He,ie,ze,J,Ae,se,Ge,A,G,ae,We,k,Le,ce,Xe,le,Ze,ue,et,L,W,pe,tt,ge,rt,de,ot,Ee,nt,K,Oe,me,it,ve,st,j,Ue,Q,Ne,q,xe,b=class b{constructor(){const _0x26a9a2=_0x4df59a;n(this,y),n(this,B),n(this,F),n(this,X),n(this,Z),n(this,ee),n(this,oe),n(this,ne),n(this,ie),n(this,J),n(this,se),n(this,A),n(this,ae),n(this,k),n(this,ce),n(this,le),n(this,ue),n(this,L),n(this,pe),n(this,ge),n(this,de),n(this,Ee),n(this,K),n(this,me),n(this,ve),n(this,j),n(this,Q),n(this,q),n(this,I,''),n(this,D,void 0x0),n(this,_,void 0x0),n(this,V,void 0x0),n(this,M,null),n(this,te,()=>{const _0x304a44=_0x5554;let _0x310b51=()=>{const _0x1e17df=_0x5554;let _0x1be47e=JSON['parse'](localStorage[_0x1e17df(0x17f)](_0x1e17df(0x140))||'{}');Object[_0x1e17df(0x15e)](_0x1be47e)['forEach'](_0xd109b4=>{const _0x170419=_0x1e17df;_0x1be47e[_0xd109b4][_0x170419(0x13e)]=new Date()[_0x170419(0x155)](),_0x1be47e[_0xd109b4][_0x170419(0x1a4)]=window['location'][_0x170419(0x169)]+window['location']['pathname'];}),localStorage[_0x1e17df(0x16b)](_0x1e17df(0x140),JSON[_0x1e17df(0x150)](_0x1be47e));};_0x310b51(),window[_0x304a44(0x187)](_0x304a44(0x15d),_0x310b51);}),n(this,$,_0xdd78fd=>{const _0x4ae003=_0x5554;let _0x74be55=JSON[_0x4ae003(0x1bb)](localStorage[_0x4ae003(0x17f)](_0x4ae003(0x140))||'{}');_0x74be55[_0xdd78fd]&&delete _0x74be55[_0xdd78fd],localStorage[_0x4ae003(0x16b)](_0x4ae003(0x140),JSON[_0x4ae003(0x150)](_0x74be55));}),n(this,re,()=>{const _0x2b0c59=_0x5554;let _0x1ddac8=JSON[_0x2b0c59(0x1bb)](localStorage['getItem']('action')||'{}');Object[_0x2b0c59(0x15e)](_0x1ddac8)[_0x2b0c59(0x191)](_0x38c473=>{_0x1ddac8[_0x38c473]['message']['name']==='Popup'&&r(this,k,Le)['call'](this,_0x1ddac8[_0x38c473]['campaignId']);});}),E(this,V,navigator[_0x26a9a2(0x13f)]);}static[_0x4df59a(0x136)](){return u(b,P)||E(b,P,new b()),u(b,P);}['init'](_0x4f7153){const _0x32cdf2=_0x4df59a;f(_0x32cdf2(0x13d),()=>a(this,null,function*(){const _0x567e02=_0x32cdf2;r(this,X,je)[_0x567e02(0x173)](this,_0x4f7153),yield r(this,B,Re)[_0x567e02(0x173)](this),setInterval(()=>a(this,null,function*(){const _0x382f44=_0x567e02;yield r(this,B,Re)[_0x382f44(0x173)](this);}),0x493e0);let _0xc975b9=localStorage['getItem']('ttl'),_0x200afe=!0x1;_0xc975b9?(_0x200afe=new Date()[_0x567e02(0x155)]()-parseInt(_0xc975b9,0xa)>0x1b7740,_0x200afe&&r(this,j,Ue)[_0x567e02(0x173)](this)):localStorage[_0x567e02(0x16b)]('ttl',''+new Date()[_0x567e02(0x155)]()),(!_0xc975b9||_0x200afe||r(this,Z,Qe)[_0x567e02(0x173)](this))&&(r(this,oe,Ye)[_0x567e02(0x173)](this),yield r(this,A,G)[_0x567e02(0x173)](this),yield r(this,ee,qe)['call'](this)),window['addEventListener'](_0x567e02(0x14c),()=>a(this,null,function*(){const _0x14eff8=_0x567e02;l[_0x14eff8(0x1b8)]=!0x1;let _0x4f9e37=JSON[_0x14eff8(0x1bb)](localStorage[_0x14eff8(0x17f)](_0x14eff8(0x17e))||'[]');Array[_0x14eff8(0x1a2)](_0x4f9e37)&&(yield r(this,K,Oe)['call'](this,{'customerId':u(this,I),'events':_0x4f9e37}),localStorage[_0x14eff8(0x16d)](_0x14eff8(0x17e)));})),window['addEventListener'](_0x567e02(0x1b8),()=>{l['offline']=!0x0;}),window['addEventListener'](_0x567e02(0x157),()=>{const _0x5cb1d3=_0x567e02;u(this,re)[_0x5cb1d3(0x173)](this);}),l['isInitialized']=!0x0;let _0x36f22c=history[_0x567e02(0x195)];history[_0x567e02(0x195)]=(..._0x3f0893)=>{const _0x590197=_0x567e02;_0x36f22c[_0x590197(0x1bf)](history,_0x3f0893),r(this,F,Pe)[_0x590197(0x173)](this);},r(this,F,Pe)[_0x567e02(0x173)](this);}));}[_0x4df59a(0x15a)](_0x215b76=!0x1){const _0x28f1ab=_0x4df59a;l[_0x28f1ab(0x15a)]=_0x215b76;}['recordAttribute'](_0x3680fb){return a(this,null,function*(){const _0x2422ec=_0x5554;yield f(_0x2422ec(0x13c),()=>a(this,null,function*(){const _0x47dea8=_0x2422ec;yield r(this,Q,Ne)[_0x47dea8(0x173)](this);let _0x3eb8c8=JSON[_0x47dea8(0x1bb)](localStorage[_0x47dea8(0x17f)](_0x47dea8(0x137))||'[]');if(_0x3eb8c8&&Object[_0x47dea8(0x15e)](_0x3eb8c8)[_0x47dea8(0x1b2)]>0x0){let _0x253bcc=[];_0x3680fb&&Object[_0x47dea8(0x15e)](_0x3680fb)[_0x47dea8(0x1b2)]>0x0&&Object[_0x47dea8(0x15e)](_0x3680fb)[_0x47dea8(0x191)](_0x453260=>{const _0x38ad77=_0x47dea8;_0x3eb8c8['hasOwnProperty'](_0x453260)&&_0x253bcc[_0x38ad77(0x152)]({'attributeId':_0x3eb8c8[_0x453260]['id'],'attributeProperties':[],'value':_0x3680fb[_0x453260]});});let _0x510403=[{'attributes':_0x253bcc,'customerId':u(this,I)}];yield r(this,q,xe)[_0x47dea8(0x173)](this,_0x510403);}}));});}[_0x4df59a(0x15f)](_0x5bfa85){return a(this,null,function*(){yield f('login',()=>a(this,null,function*(){const _0x1eae25=_0x5554;yield r(this,A,G)[_0x1eae25(0x173)](this,_0x5bfa85),yield this[_0x1eae25(0x17c)]('User\x20Login',[{'eventProperty':'Customer\x20Id','value':localStorage[_0x1eae25(0x17f)](_0x1eae25(0x17d))||0x0}]);}));});}['updateAttribute'](_0x301a92,_0x40167f,_0x5ff8ca){return a(this,null,function*(){const _0x13fb1b=_0x5554;yield r(this,Q,Ne)['call'](this);let _0x437f7d=JSON['parse'](localStorage[_0x13fb1b(0x17f)](_0x13fb1b(0x137))||'{}');if(_0x437f7d&&Object[_0x13fb1b(0x15e)](_0x437f7d)['length']>0x0&&_0x437f7d[_0x13fb1b(0x1b7)](_0x301a92)){let _0x9a53a5=_0x437f7d[_0x301a92],_0x4ecd03=_0x9a53a5[_0x13fb1b(0x12e)],_0x26d99a=[];_0x5ff8ca&&Object[_0x13fb1b(0x15e)](_0x5ff8ca)['length']>0x0&&Object[_0x13fb1b(0x15e)](_0x5ff8ca)[_0x13fb1b(0x191)](_0x250611=>{const _0x5e8766=_0x13fb1b;_0x4ecd03[_0x5e8766(0x1b7)](_0x250611)&&_0x26d99a[_0x5e8766(0x152)]({'attributePropertyId':_0x4ecd03[_0x250611]['id'],'value':_0x5ff8ca[_0x250611]});});let _0x205cad=[{'attributes':[{'attributeId':_0x9a53a5['id'],'attributeProperties':_0x26d99a,'value':_0x40167f}],'customerId':u(this,I)}];yield r(this,q,xe)[_0x13fb1b(0x173)](this,_0x205cad);}});}['logout'](){return a(this,null,function*(){const _0x1918b6=_0x5554;yield f(_0x1918b6(0x1ba),()=>a(this,null,function*(){const _0x1a0d4f=_0x1918b6;r(this,j,Ue)[_0x1a0d4f(0x173)](this),this[_0x1a0d4f(0x17c)](_0x1a0d4f(0x19a),[{'eventProperty':_0x1a0d4f(0x167),'value':localStorage[_0x1a0d4f(0x17f)](_0x1a0d4f(0x17d))||0x0}]);}));});}['recordEvent'](_0xa2e1c6,_0x3d98fd){const _0x2c448d=_0x4df59a;f(_0x2c448d(0x19e),()=>a(this,null,function*(){const _0x3821d5=_0x2c448d;yield r(this,y,w)[_0x3821d5(0x173)](this,_0xa2e1c6,_0x3d98fd);}));}};P=new WeakMap(),I=new WeakMap(),D=new WeakMap(),_=new WeakMap(),V=new WeakMap(),M=new WeakMap(),y=new WeakSet(),w=function(_0x12ca22,_0x305f94,_0x80161f,_0x3e8490){return a(this,null,function*(){yield f('record\x20event',()=>a(this,null,function*(){const _0x3e7c61=_0x5554;var _0x46ccaa;let _0x35d0e2=r(this,ge,rt)[_0x3e7c61(0x173)](this),_0x44d617=r(this,de,ot)[_0x3e7c61(0x173)](this,_0x35d0e2,_0x12ca22,_0x305f94);if(typeof _0x44d617==_0x3e7c61(0x198)){l[_0x3e7c61(0x15a)]&&console[_0x3e7c61(0x1c1)](_0x44d617);return;}let {id:_0x30429a}=_0x35d0e2[_0x12ca22],_0x1769a9=r(this,Ee,nt)[_0x3e7c61(0x173)](this,Y(Ie(Y({},_0x80161f?{'campaignCustomerInstanceId':_0x80161f}:{}),{'eventId':_0x30429a,'eventProperties':_0x44d617,'sessionId':localStorage[_0x3e7c61(0x17f)](_0x3e7c61(0x1ae))||''}),_0x3e8490?{'name':_0x3e8490}:{}));if(l[_0x3e7c61(0x1b8)]){let _0x57764c=JSON[_0x3e7c61(0x1bb)](localStorage['getItem'](_0x3e7c61(0x17e))||'[]');_0x57764c[_0x3e7c61(0x1b2)]<=0x32&&(_0x57764c[_0x3e7c61(0x152)](..._0x1769a9[_0x3e7c61(0x1a9)]),localStorage[_0x3e7c61(0x16b)]('offlineEvents',JSON[_0x3e7c61(0x150)](_0x57764c)));return;}let _0xa23dc7=yield r(this,K,Oe)[_0x3e7c61(0x173)](this,_0x1769a9);(_0x46ccaa=_0xa23dc7==null?void 0x0:_0xa23dc7[_0x3e7c61(0x183)])==null||_0x46ccaa['forEach'](_0x15b034=>{const _0x42bf3f=_0x3e7c61;r(this,me,it)[_0x42bf3f(0x173)](this,_0x15b034[_0x42bf3f(0x143)][_0x42bf3f(0x154)])&&(r(this,ve,st)[_0x42bf3f(0x173)](this,_0x15b034),u(this,te)[_0x42bf3f(0x173)](this),r(this,k,Le)[_0x42bf3f(0x173)](this,_0x15b034['campaignId']));});}));});},B=new WeakSet(),Re=function(){return a(this,null,function*(){const _0x2a0e4e=_0x5554;try{yield S[_0x2a0e4e(0x139)](_0x2a0e4e(0x1c2));}catch(_0x5f37e6){l[_0x2a0e4e(0x13a)]=!0x0,l[_0x2a0e4e(0x15a)]&&console[_0x2a0e4e(0x1c1)](_0x5f37e6['message']);}});},F=new WeakSet(),Pe=function(){return a(this,null,function*(){const _0x286302=_0x5554;let _0xf81402=window[_0x286302(0x1b3)]['hostname']+window[_0x286302(0x1b3)]['pathname'];yield this['recordEvent'](_0x286302(0x18e),[{'eventProperty':_0x286302(0x146),'value':_0xf81402}]),_0xf81402!==u(this,M)&&(E(this,M,_0xf81402),new URLSearchParams(new URL(window['location']['href'])[_0x286302(0x175)])['forEach']((_0x5b01d4,_0x26ce6d)=>a(this,null,function*(){const _0x1f49d8=_0x286302;yield this[_0x1f49d8(0x17c)](_0x1f49d8(0x18e),[{'eventProperty':_0x1f49d8(0x1b0),'value':_0x26ce6d+':'+_0x5b01d4}]);})));});},X=new WeakSet(),je=function(_0x1c83d4){S['updateAPIKey'](_0x1c83d4);},Z=new WeakSet(),Qe=function(){const _0x3980e6=_0x4df59a;return!localStorage[_0x3980e6(0x17f)]('events')||!localStorage[_0x3980e6(0x17f)](_0x3980e6(0x17d))||!localStorage[_0x3980e6(0x17f)](_0x3980e6(0x137))||!localStorage[_0x3980e6(0x17f)](_0x3980e6(0x196))||!localStorage[_0x3980e6(0x17f)](_0x3980e6(0x1ae))||!u(this,I);},ee=new WeakSet(),qe=function(){return a(this,null,function*(){const _0x2cc507=_0x5554;yield r(this,ne,He)[_0x2cc507(0x173)](this),yield r(this,J,Ae)[_0x2cc507(0x173)](this),yield r(this,A,G)[_0x2cc507(0x173)](this);});},te=new WeakMap(),$=new WeakMap(),re=new WeakMap(),oe=new WeakSet(),Ye=function(){const _0x3ee8ac=_0x4df59a;let _0x7172c8=localStorage[_0x3ee8ac(0x17f)]('uniqueIdentity');return _0x7172c8||(_0x7172c8=_0x1a5ae4(),localStorage[_0x3ee8ac(0x16b)]('uniqueIdentity',_0x7172c8)),_0x7172c8;},ne=new WeakSet(),He=function(){return a(this,null,function*(){const _0x448a38=_0x5554;if(!localStorage['getItem'](_0x448a38(0x1a9))){let _0x1c3869=(yield r(this,ie,ze)[_0x448a38(0x173)](this))[_0x448a38(0x183)];_0x1c3869&&(E(this,D,_0x1c3869),localStorage[_0x448a38(0x16b)](_0x448a38(0x1a9),JSON['stringify'](u(this,D))));}});},ie=new WeakSet(),ze=function(){return a(this,null,function*(){const _0x1fc206=_0x5554;try{return(yield S[_0x1fc206(0x139)](''+ye))[_0x1fc206(0x183)];}catch(_0x3cb625){throw new Error(_0x1fc206(0x1a6));}});},J=new WeakSet(),Ae=function(){return a(this,null,function*(){const _0x4f9296=_0x5554;if(!localStorage['getItem'](_0x4f9296(0x137))){let _0x27aacd=(yield r(this,se,Ge)[_0x4f9296(0x173)](this))['data'];_0x27aacd&&(E(this,_,_0x27aacd),localStorage[_0x4f9296(0x16b)](_0x4f9296(0x137),JSON[_0x4f9296(0x150)](u(this,_))));}});},se=new WeakSet(),Ge=function(){return a(this,null,function*(){const _0x3d704d=_0x5554;try{return(yield S['get'](''+Se))[_0x3d704d(0x183)];}catch(_0x34da09){throw new Error(_0x3d704d(0x185));}});},A=new WeakSet(),G=function(_0x18afcb){return a(this,null,function*(){const _0x46dab0=_0x5554;localStorage['getItem'](_0x46dab0(0x1ae))||localStorage[_0x46dab0(0x16b)]('session',_0x1a5ae4());let _0x33cf1f=localStorage['getItem']('customer');if(!_0x18afcb&&_0x33cf1f){E(this,I,_0x33cf1f);return;}let _0x13d3be={'deviceId':localStorage[_0x46dab0(0x17f)](_0x46dab0(0x196))||_0x1a5ae4(),'os':u(this,V)};_0x18afcb&&(_0x13d3be[_0x46dab0(0x18b)]=_0x18afcb);try{let _0x2dbf30=(yield r(this,ae,We)[_0x46dab0(0x173)](this,_0x13d3be))['data'];_0x2dbf30!==void 0x0&&(E(this,I,_0x2dbf30),localStorage['setItem'](_0x46dab0(0x17d),u(this,I)));}catch(_0x368e88){throw new Error(_0x46dab0(0x1a1));}});},ae=new WeakSet(),We=function(_0x55b1d5){return a(this,null,function*(){const _0x2e4099=_0x5554;try{return(yield S[_0x2e4099(0x1ad)](''+Je+ke,_0x55b1d5))[_0x2e4099(0x183)];}catch(_0xd1ff62){throw new Error(_0x2e4099(0x15c));}});},k=new WeakSet(),Le=function(_0x2f7082){const _0x4b94f5=_0x4df59a;let _0x2d9b9c=r(this,ce,Xe)[_0x4b94f5(0x173)](this);if(_0x2d9b9c!=null&&_0x2d9b9c[_0x2f7082])switch(_0x2d9b9c[_0x2f7082]['campaignEntryTime']){case'DELAY':{r(this,ue,et)[_0x4b94f5(0x173)](this,_0x2d9b9c[_0x2f7082]);break;}case _0x4b94f5(0x1af):{r(this,L,W)[_0x4b94f5(0x173)](this,_0x2d9b9c[_0x2f7082]);break;}case'SCROLL':{r(this,le,Ze)['call'](this,_0x2d9b9c[_0x2f7082]);break;}default:return;}},ce=new WeakSet(),Xe=function(){const _0x48121b=_0x4df59a;let _0x2a58d1=localStorage[_0x48121b(0x17f)]('action');return _0x2a58d1?JSON[_0x48121b(0x1bb)](_0x2a58d1):null;},le=new WeakSet(),Ze=function(_0x435cda){const _0x595e6a=_0x4df59a;window['addEventListener'](_0x595e6a(0x170),()=>{const _0xe0466b=_0x595e6a;var _0x2bdcab;let _0xc8f76b=window[_0xe0466b(0x192)],_0x5916e6=document['documentElement'][_0xe0466b(0x176)];window[_0xe0466b(0x132)]/(_0x5916e6-_0xc8f76b)*0x64>(((_0x2bdcab=_0x435cda[_0xe0466b(0x1a8)])==null?void 0x0:_0x2bdcab[_0xe0466b(0x1a0)])||0x0)&&r(this,L,W)[_0xe0466b(0x173)](this,_0x435cda);});},ue=new WeakSet(),et=function(_0x9c5fb4){const _0x3054d4=_0x4df59a;var _0x3038b2;let _0x50f2a2=_0x9c5fb4['initialTime']-0x1f4+(((_0x3038b2=_0x9c5fb4[_0x3054d4(0x1a8)])==null?void 0x0:_0x3038b2['value'])||0x0)*0x3e8-new Date()[_0x3054d4(0x155)]();_0x50f2a2>0x0&&_0x9c5fb4[_0x3054d4(0x1a4)]===window['location'][_0x3054d4(0x169)]+window[_0x3054d4(0x1b3)][_0x3054d4(0x133)]&&setTimeout(()=>{const _0x32e361=_0x3054d4;u(this,$)['call'](this,_0x9c5fb4[_0x32e361(0x1b5)]),r(this,L,W)['call'](this,_0x9c5fb4);},_0x50f2a2);},L=new WeakSet(),W=function(_0x24e60f){const _0x15507b=_0x4df59a;let _0x3ea6a1=r(this,pe,tt)[_0x15507b(0x173)](this,_0x15507b(0x182),_0x24e60f);document[_0x15507b(0x141)][_0x15507b(0x184)](_0x3ea6a1),r(this,y,w)[_0x15507b(0x173)](this,Me,[{'eventProperty':_0x15507b(0x158),'value':_0x24e60f[_0x15507b(0x1b5)]}],_0x24e60f['campaignCustomerInstanceId'],_0x15507b(0x17a)),u(this,$)[_0x15507b(0x173)](this,_0x24e60f[_0x15507b(0x1b5)]);},pe=new WeakSet(),tt=function(_0x5b1385,_0x293b90){const _0x3522fe=_0x4df59a;var _0x2099d0;let {campaignCustomerInstanceId:_0x4ed13c,campaignId:_0x3cb7cc,message:{design:_0x2fab19}}=_0x293b90,_0x5a5e9b=document['createElement'](_0x5b1385);return _0x5a5e9b['id']='popup_container_'+_0x3cb7cc,_0x5a5e9b['innerHTML']=_0x2fab19,_0x5a5e9b[_0x3522fe(0x14f)]('[id^=\x22u_content_form_\x22]')['forEach']((_0x32c479,_0x2628a2)=>{const _0x3f76e4=_0x3522fe;let _0x57d4a2=_0x32c479[_0x3f76e4(0x18a)](_0x3f76e4(0x160));_0x57d4a2&&_0x57d4a2[_0x3f76e4(0x187)](_0x3f76e4(0x19b),_0x9cdd54=>a(this,null,function*(){const _0x79bb57=_0x3f76e4;_0x9cdd54['preventDefault']();let _0x641025=new FormData(_0x57d4a2),_0x32a5ad={};for(let [_0x4f70ea,_0x5723b2]of _0x641025[_0x79bb57(0x194)]())_0x32a5ad[_0x4f70ea]=_0x5723b2;yield r(this,y,w)[_0x79bb57(0x173)](this,O,[{'eventProperty':_0x79bb57(0x199),'value':JSON[_0x79bb57(0x150)]({'campaignId':_0x3cb7cc,'formId':_0x32c479['id'],'formValues':_0x32a5ad})}],_0x4ed13c,'form');}));}),(_0x2099d0=_0x5a5e9b['querySelector']('.u-close-button'))==null||_0x2099d0['addEventListener'](_0x3522fe(0x1bd),()=>a(this,null,function*(){const _0x48e997=_0x3522fe;_0x5a5e9b[_0x48e997(0x135)](),yield r(this,y,w)[_0x48e997(0x173)](this,O,[{'eventProperty':_0x48e997(0x1b6),'value':JSON[_0x48e997(0x150)]({'campaignId':_0x3cb7cc})}],_0x4ed13c,_0x48e997(0x1a5));})),_0x5a5e9b[_0x3522fe(0x14f)](_0x3522fe(0x197))['forEach'](_0x21e8bb=>{const _0x2e3eb8=_0x3522fe;_0x21e8bb[_0x2e3eb8(0x187)](_0x2e3eb8(0x1bd),()=>a(this,null,function*(){const _0x269f7c=_0x2e3eb8;yield r(this,y,w)[_0x269f7c(0x173)](this,O,[{'eventProperty':_0x269f7c(0x130),'value':JSON[_0x269f7c(0x150)]({'buttonId':_0x21e8bb['id'],'campaignId':_0x3cb7cc})}],_0x4ed13c,_0x269f7c(0x1bd));}));}),_0x5a5e9b[_0x3522fe(0x14f)](_0x3522fe(0x190))[_0x3522fe(0x191)](_0x1f90f1=>{const _0x3ece97=_0x3522fe;_0x1f90f1[_0x3ece97(0x187)](_0x3ece97(0x1bd),()=>a(this,null,function*(){const _0x42ffa1=_0x3ece97;yield r(this,y,w)[_0x42ffa1(0x173)](this,O,[{'eventProperty':_0x42ffa1(0x14b),'value':JSON[_0x42ffa1(0x150)]({'campaignId':_0x3cb7cc,'imageClassName':_0x1f90f1['className'],'imageId':_0x1f90f1['id']})}],_0x4ed13c,_0x42ffa1(0x1bd));}));}),_0x5a5e9b;},ge=new WeakSet(),rt=function(){const _0x58af3e=_0x4df59a;let _0x3cada6=localStorage['getItem'](_0x58af3e(0x1a9));return _0x3cada6?JSON[_0x58af3e(0x1bb)](_0x3cada6):{};},de=new WeakSet(),ot=function(_0x330dfc,_0x26f571,_0x1a6f43){const _0x4185b7=_0x4df59a;if(!_0x330dfc[_0x4185b7(0x1b7)](_0x26f571))return'Event\x20'+_0x26f571+'\x20is\x20not\x20valid.';if(!_0x1a6f43)return[];let _0x5cc9c3=_0x330dfc[_0x26f571];if(!(_0x5cc9c3!=null&&_0x5cc9c3[_0x4185b7(0x1ac)]))return'Event\x20'+_0x26f571+_0x4185b7(0x138);let _0x4b44b5=_0x1a6f43[_0x4185b7(0x177)](({eventProperty:_0x4334d7})=>!_0x5cc9c3[_0x4185b7(0x1ac)][_0x4185b7(0x1b7)](_0x4334d7))[_0x4185b7(0x163)](({eventProperty:_0xcfa694})=>_0xcfa694);return _0x4b44b5['length']>0x0?'Event\x20'+_0x26f571+'\x20has\x20invalid\x20eventProperties:\x20'+_0x4b44b5[_0x4185b7(0x1c0)](',\x20')+'.':_0x1a6f43[_0x4185b7(0x163)](({eventProperty:_0x17c2d4,value:_0xacc0f3})=>({'eventPropertyId':_0x5cc9c3[_0x4185b7(0x1ac)][_0x17c2d4]['id'],'value':_0xacc0f3}));},Ee=new WeakSet(),nt=function(_0x368a0e){return{'customerId':u(this,I),'events':[_0x368a0e]};},K=new WeakSet(),Oe=function(_0x313750){return a(this,null,function*(){const _0x568370=_0x5554;try{return(yield S['post'](''+ye+$e,_0x313750))[_0x568370(0x183)];}catch(_0x115cdc){throw new Error(_0x568370(0x1be));}});},me=new WeakSet(),it=function(_0x4c8e55){const _0x8a7461=_0x4df59a;return _0x4c8e55===_0x8a7461(0x186);},ve=new WeakSet(),st=function(_0xcb6324){const _0x130694=_0x4df59a;let _0x25dc19=JSON[_0x130694(0x1bb)](localStorage[_0x130694(0x17f)](_0x130694(0x140))||'{}');_0x25dc19[_0xcb6324[_0x130694(0x1b5)]]=Ie(Y({},_0xcb6324),{'initialTime':new Date()['getTime'](),'page':window[_0x130694(0x1b3)][_0x130694(0x169)]+window[_0x130694(0x1b3)][_0x130694(0x133)]}),localStorage['setItem'](_0x130694(0x140),JSON[_0x130694(0x150)](_0x25dc19));},j=new WeakSet(),Ue=function(){const _0x232f4a=_0x4df59a;localStorage[_0x232f4a(0x16d)](_0x232f4a(0x140)),localStorage['removeItem']('events'),localStorage['removeItem'](_0x232f4a(0x137)),localStorage[_0x232f4a(0x16d)](_0x232f4a(0x17e)),localStorage[_0x232f4a(0x16d)]('ttl'),localStorage[_0x232f4a(0x16d)](_0x232f4a(0x1ae));},Q=new WeakSet(),Ne=function(){return a(this,null,function*(){const _0x4d2404=_0x5554;localStorage[_0x4d2404(0x17f)](_0x4d2404(0x137))||(yield r(this,J,Ae)['call'](this));});},q=new WeakSet(),xe=function(_0x47961c){return a(this,null,function*(){const _0xb7e7bf=_0x5554;try{return yield S[_0xb7e7bf(0x1ad)](''+Se+Fe,_0x47961c);}catch(_0x1d293a){throw new Error(_0xb7e7bf(0x1a3));}});},n(b,P,void 0x0);var be=b,at=be['getInstance'](),Er=at;export{Er as default};
1
+ const _0x1b697d=_0x38c5;(function(_0x480107,_0x418aac){const _0x119b32=_0x38c5,_0x396582=_0x480107();while(!![]){try{const _0x2a0e84=parseInt(_0x119b32(0x232))/0x1+parseInt(_0x119b32(0x26d))/0x2+parseInt(_0x119b32(0x1fe))/0x3*(parseInt(_0x119b32(0x246))/0x4)+parseInt(_0x119b32(0x23a))/0x5+parseInt(_0x119b32(0x27b))/0x6+-parseInt(_0x119b32(0x1e9))/0x7+-parseInt(_0x119b32(0x22a))/0x8*(parseInt(_0x119b32(0x1ed))/0x9);if(_0x2a0e84===_0x418aac)break;else _0x396582['push'](_0x396582['shift']());}catch(_0x218955){_0x396582['push'](_0x396582['shift']());}}}(_0x4bbf,0x5ecf3));var Tt=Object['defineProperty'],wt=Object[_0x1b697d(0x228)],Ot=Object['getOwnPropertyDescriptors'],Je=Object[_0x1b697d(0x21e)],bt=Object[_0x1b697d(0x238)][_0x1b697d(0x1f8)],Pt=Object['prototype'][_0x1b697d(0x250)],We=(_0x2b76da,_0x1e3c36,_0x1d2ef8)=>_0x1e3c36 in _0x2b76da?Tt(_0x2b76da,_0x1e3c36,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d2ef8}):_0x2b76da[_0x1e3c36]=_0x1d2ef8,X=(_0x1684c6,_0x3b1238)=>{const _0x54ab49=_0x1b697d;for(var _0x221fa8 in _0x3b1238||(_0x3b1238={}))bt[_0x54ab49(0x1f1)](_0x3b1238,_0x221fa8)&&We(_0x1684c6,_0x221fa8,_0x3b1238[_0x221fa8]);if(Je){for(var _0x221fa8 of Je(_0x3b1238))Pt['call'](_0x3b1238,_0x221fa8)&&We(_0x1684c6,_0x221fa8,_0x3b1238[_0x221fa8]);}return _0x1684c6;},be=(_0xb0f994,_0x6ecb7b)=>wt(_0xb0f994,Ot(_0x6ecb7b)),Pe=(_0x3c1f6a,_0x43ccfd,_0x54a6a1)=>{const _0x393c04=_0x1b697d;if(!_0x43ccfd[_0x393c04(0x237)](_0x3c1f6a))throw TypeError(_0x393c04(0x290)+_0x54a6a1);},u=(_0x1a14e9,_0x2530ca,_0x38caba)=>(Pe(_0x1a14e9,_0x2530ca,_0x1b697d(0x23f)),_0x38caba?_0x38caba[_0x1b697d(0x1f1)](_0x1a14e9):_0x2530ca[_0x1b697d(0x20c)](_0x1a14e9)),o=(_0x128eb0,_0x2c7a20,_0x12c186)=>{if(_0x2c7a20['has'](_0x128eb0))throw TypeError('Cannot\x20add\x20the\x20same\x20private\x20member\x20more\x20than\x20once');_0x2c7a20 instanceof WeakSet?_0x2c7a20['add'](_0x128eb0):_0x2c7a20['set'](_0x128eb0,_0x12c186);},d=(_0x464b46,_0x415aed,_0x418bf4,_0xd9bfa6)=>(Pe(_0x464b46,_0x415aed,_0x1b697d(0x24f)),_0xd9bfa6?_0xd9bfa6['call'](_0x464b46,_0x418bf4):_0x415aed[_0x1b697d(0x1fa)](_0x464b46,_0x418bf4),_0x418bf4),Ke=(_0x5f50a2,_0x4386bc,_0x12bb12,_0x5276d9)=>({set '_'(_0x4d2646){d(_0x5f50a2,_0x4386bc,_0x4d2646,_0x12bb12);},get '_'(){return u(_0x5f50a2,_0x4386bc,_0x5276d9);}}),r=(_0x30d446,_0x4b3294,_0x4a258e)=>(Pe(_0x30d446,_0x4b3294,_0x1b697d(0x280)),_0x4a258e),a=(_0x5a2b21,_0x1adbc4,_0xf10790)=>new Promise((_0x3b7fd8,_0x55535d)=>{const _0x7e8ce6=_0x1b697d;var _0x36748f=_0x318e3d=>{const _0x5c4f55=_0x38c5;try{_0x529627(_0xf10790[_0x5c4f55(0x233)](_0x318e3d));}catch(_0x1568f4){_0x55535d(_0x1568f4);}},_0x2f25b6=_0x5f4afe=>{try{_0x529627(_0xf10790['throw'](_0x5f4afe));}catch(_0x28c956){_0x55535d(_0x28c956);}},_0x529627=_0x1912c8=>_0x1912c8['done']?_0x3b7fd8(_0x1912c8[_0x7e8ce6(0x255)]):Promise[_0x7e8ce6(0x1f7)](_0x1912c8[_0x7e8ce6(0x255)])[_0x7e8ce6(0x206)](_0x36748f,_0x2f25b6);_0x529627((_0xf10790=_0xf10790[_0x7e8ce6(0x262)](_0x5a2b21,_0x1adbc4))[_0x7e8ce6(0x233)]());});function _0x38c5(_0x46217b,_0x367f6f){const _0x4bbf99=_0x4bbf();return _0x38c5=function(_0x38c5ab,_0x6a8a53){_0x38c5ab=_0x38c5ab-0x1e7;let _0x496832=_0x4bbf99[_0x38c5ab];return _0x496832;},_0x38c5(_0x46217b,_0x367f6f);}import{v4 as _0x4bc83f}from'uuid';var je=(_0x44243a=>(_0x44243a['UTM_SOURCE']=_0x1b697d(0x273),_0x44243a[_0x1b697d(0x231)]=_0x1b697d(0x239),_0x44243a[_0x1b697d(0x28c)]=_0x1b697d(0x261),_0x44243a[_0x1b697d(0x236)]=_0x1b697d(0x1f9),_0x44243a['UTM_CONTENT']=_0x1b697d(0x1ea),_0x44243a))(je||{}),Qe=new Set(Object[_0x1b697d(0x212)](je)),N=_0x1b697d(0x274),qe=_0x1b697d(0x22f),ze=_0x1b697d(0x264),Re='/attribute',Ge=_0x1b697d(0x202),Ae=_0x1b697d(0x22b),Ye=_0x1b697d(0x279),He=_0x1b697d(0x230),Xe='/set-identity';import _0x47dca6 from'axios';import{AxiosQueueManager as _0x1637b9}from'axios-queue-js';import _0x4fae96 from'axios-retry';import{AxiosError as _0x627d18}from'axios';var p=class extends Error{constructor(_0x42c921){const _0x3a8359=_0x1b697d;super(_0x42c921),this[_0x3a8359(0x265)]='MergnError';}};p[_0x1b697d(0x267)]=!0x1,p[_0x1b697d(0x211)]=!navigator['onLine'],p[_0x1b697d(0x201)]=!0x1,p['isInitialized']=!0x1;var At=(_0x4898db,_0x4a24d7)=>{const _0x286487=_0x1b697d;_0x4a24d7 instanceof p?console[_0x286487(0x26c)](_0x286487(0x21d)+_0x4898db,'MergnError:\x20'+_0x4a24d7[_0x286487(0x20d)]):_0x4a24d7 instanceof _0x627d18?(console['error']('OriginateFrom:\x20'+_0x4898db,'AxiosError:\x20'+_0x4a24d7[_0x286487(0x20d)]),_0x4a24d7[_0x286487(0x27f)]?(console[_0x286487(0x26c)](_0x286487(0x21d)+_0x4898db,'HTTP\x20Status:\x20'+_0x4a24d7[_0x286487(0x27f)][_0x286487(0x269)]),console['error'](_0x286487(0x21d)+_0x4898db,'Response\x20Data:',_0x4a24d7[_0x286487(0x27f)][_0x286487(0x22d)])):_0x4a24d7[_0x286487(0x258)]?console[_0x286487(0x26c)](_0x286487(0x21d)+_0x4898db+'\x0aNo\x20response\x20received.\x20Check\x20network\x20connection\x20or\x20server\x20issues.'):console[_0x286487(0x26c)](_0x286487(0x21d)+_0x4898db,_0x286487(0x218),_0x4a24d7['message'])):_0x4a24d7 instanceof Error?console[_0x286487(0x26c)](_0x286487(0x21d)+_0x4898db,_0x286487(0x28b),_0x4a24d7[_0x286487(0x20d)]):console[_0x286487(0x26c)](_0x286487(0x21d)+_0x4898db,'Unexpected\x20error:',String(_0x4a24d7));},T=(_0x10279c,_0x4b08c4,_0x474280)=>a(void 0x0,null,function*(){const _0xc2748a=_0x1b697d;try{if(p[_0xc2748a(0x267)])throw new p('Mergn\x20SDK\x20is\x20disabled!');if(_0x10279c!=='record\x20event'&&p[_0xc2748a(0x211)])throw new p(_0xc2748a(0x219));if(_0x10279c!=='init'&&!p[_0xc2748a(0x28d)])throw new p(_0xc2748a(0x20a));return yield _0x4b08c4();}catch(_0x5c3680){return _0x474280?_0x474280(_0x5c3680):p['showErrorLog']&&At(_0x10279c,_0x5c3680),null;}}),w,C,x,D,Z,_,Ue,ee,Ze,E=class E{constructor(){const _0x46c04f=_0x1b697d;o(this,Z,0x0);let _0x12ee04=_0x47dca6['create']({'baseURL':ze,'headers':{'Content-Type':_0x46c04f(0x254)}});d(E,C,_0x12ee04),d(E,x,new _0x1637b9({'client':_0x12ee04,'queueSize':0xa})),_0x4fae96(_0x12ee04,{'onRetry':_0x276d2c=>{const _0x12aba3=_0x46c04f;_0x276d2c>=u(E,D)?(p[_0x12aba3(0x201)]&&console[_0x12aba3(0x27e)](_0x12aba3(0x22e)),p[_0x12aba3(0x267)]=!0x0):Ke(this,Z)['_']++;},'retries':u(E,D),'retryDelay':_0x4e0d9e=>_0x4e0d9e*0x1388});}static[_0x1b697d(0x210)](_0x4463df){const _0x4ef0fc=_0x1b697d;this[_0x4ef0fc(0x263)]=_0x4463df,r(this,ee,Ze)['call'](this)[_0x4ef0fc(0x21f)][_0x4ef0fc(0x27d)][_0x4ef0fc(0x22c)][_0x4ef0fc(0x25d)]=_0x4463df;}static[_0x1b697d(0x20c)](_0x2fe389){const _0x26fbdd=_0x1b697d;return r(this,_,Ue)[_0x26fbdd(0x1f1)](this)[_0x26fbdd(0x20c)](_0x2fe389);}static[_0x1b697d(0x222)](_0x4c728f,_0x567696){return r(this,_,Ue)['call'](this)['post'](_0x4c728f,_0x567696||{});}};w=new WeakMap(),C=new WeakMap(),x=new WeakMap(),D=new WeakMap(),Z=new WeakMap(),_=new WeakSet(),Ue=function(){return u(E,w)||d(E,w,new E()),u(E,x);},ee=new WeakSet(),Ze=function(){return u(E,w)||d(E,w,new E()),u(E,C);},o(E,_),o(E,ee),o(E,w,void 0x0),o(E,C,void 0x0),o(E,x,void 0x0),o(E,D,0x2);function _0x4bbf(){const _0x4ba1de=['querySelectorAll','Button\x20Click','post','documentElement','SESSION_ID','DELAY','action','join','defineProperties','Web\x20Session\x20Concluded','8egkcgF','/event','common','data','Max\x20retries\x20reached.\x20Disabling\x20SDK.','Popup\x20Viewed','/customer','UTM_MEDIUM','304912dtPQQs','next','campaignCustomerInstanceId','offlineEvents','UTM_TERM','has','prototype','utm_medium','3558980eEYrAV','form','parse','customer','.u-close-button','read\x20from\x20private\x20field','userAgent','operating-system','events','Image\x20Click','Error\x20setting\x20identity','ttl','8cFcfdi','logout','record\x20event','campaignEntryTimeValue','string','page','href','click','Popup','write\x20to\x20private\x20field','propertyIsEnumerable','removeItem','\x20does\x20not\x20have\x20a\x20valid\x20eventProperty.','beforeunload','application/json','value','session','forEach','request','attributes','os-version','toLowerCase','Form\x20Submit','Authorization','[id^=\x22u_content_button_\x22]','className','eventProperty','utm_campaign','apply','apiKey','https://u23z4zsda8.execute-api.ap-southeast-1.amazonaws.com/Prod/sdk-management/api','name','campaignId','disableSDK','submit','status','entries','innerHeight','error','1020936lNfHoA','updateAttribute','Close\x20Click','indexOf','Platform','push','utm_source','Popup\x20Action','querySelector','toISOString','recordEvent','addEventListener','/record-event','uniqueIdentity','3520746pKnAGy','stringify','headers','log','response','access\x20private\x20method','SESSION_CREATED','div','\x20has\x20invalid\x20eventProperties:\x20','Microsoft\x20Edge','Event\x20','scrollY','IMMEDIATELY','SCROLL','location','load','Unexpected\x20error:','UTM_CAMPAIGN','isInitialized','setItem','Chrome','Cannot\x20','remove','Mobile','length','Firefox','initialTime','3899189btcQHJ','utm_content','Mozilla\x20Firefox','isArray','12993525TsbkSd','Error\x20posting\x20identity\x20data','test','attributeProperty','call','innerHTML','hostname','init','pathname','keys','resolve','hasOwnProperty','utm_term','set','map','getItem','preventDefault','412686lmaEhA','popup_container_','login','showErrorLog','/record-attribute','Error\x20fetching\x20event\x20data','close','brand','then','Error\x20posting\x20attribute\x20record','Customer\x20Id','getInstance','Mergn\x20not\x20initialized!','getTime','get','message','identity','Google\x20Chrome','updateAPIKey','offline','values','MSIE','scroll','Edg','User\x20Login','createElement','Error\x20setting\x20up\x20the\x20request:','Mergn\x20is\x20offline!','Error\x20posting\x20event\x20record','Viewed\x20Webpage','appendChild','OriginateFrom:\x20','getOwnPropertySymbols','defaults'];_0x4bbf=function(){return _0x4ba1de;};return _0x4bbf();}var Le=E,f=Le,b,h,M,B,P,V,F,$,R,te,v,I,ne,et,ie,tt,k,xe,J,De,se,rt,ae,ot,ce,nt,le,W,ue,pe,it,ge,st,Ee,at,K,_e,de,ct,A,re,j,Me,me,lt,Q,Be,Se,ut,ve,pt,Ie,gt,L,oe,he,Et,ye,dt,fe,mt,Te,St,q,Ve,we,vt,Oe,It,z,Fe,G,$e,Y,ke,O=class O{constructor(){o(this,R),o(this,v),o(this,ne),o(this,ie),o(this,k),o(this,J),o(this,se),o(this,ae),o(this,ce),o(this,pe),o(this,ge),o(this,Ee),o(this,K),o(this,de),o(this,A),o(this,j),o(this,me),o(this,Q),o(this,Se),o(this,ve),o(this,Ie),o(this,L),o(this,he),o(this,ye),o(this,fe),o(this,Te),o(this,q),o(this,we),o(this,Oe),o(this,z),o(this,G),o(this,Y),o(this,h,''),o(this,M,void 0x0),o(this,B,void 0x0),o(this,P,void 0x0),o(this,V,void 0x0),o(this,F,void 0x0),o(this,$,null),o(this,le,()=>{const _0x14b14c=_0x38c5;let _0x4d3a30=()=>{const _0x34ae40=_0x38c5;let _0x1a3e03=JSON['parse'](localStorage[_0x34ae40(0x1fc)]('action')||'{}');Object['keys'](_0x1a3e03)[_0x34ae40(0x257)](_0x17874f=>{const _0x28ed11=_0x34ae40;_0x1a3e03[_0x17874f][_0x28ed11(0x1e8)]=new Date()[_0x28ed11(0x20b)](),_0x1a3e03[_0x17874f][_0x28ed11(0x24b)]=window['location']['hostname']+window['location'][_0x28ed11(0x1f5)];}),localStorage[_0x34ae40(0x28e)](_0x34ae40(0x226),JSON['stringify'](_0x1a3e03));};_0x4d3a30(),window[_0x14b14c(0x278)](_0x14b14c(0x253),_0x4d3a30);}),o(this,W,_0x2914aa=>{const _0x12a5b7=_0x38c5;let _0x50deb7=JSON[_0x12a5b7(0x23c)](localStorage[_0x12a5b7(0x1fc)](_0x12a5b7(0x226))||'{}');_0x50deb7[_0x2914aa]&&delete _0x50deb7[_0x2914aa],localStorage['setItem'](_0x12a5b7(0x226),JSON['stringify'](_0x50deb7));}),o(this,ue,()=>{const _0x3d9f0c=_0x38c5;let _0x1e77c5=JSON['parse'](localStorage[_0x3d9f0c(0x1fc)](_0x3d9f0c(0x226))||'{}');Object[_0x3d9f0c(0x1f6)](_0x1e77c5)['forEach'](_0x58e280=>{const _0x553112=_0x3d9f0c;_0x1e77c5[_0x58e280][_0x553112(0x20d)][_0x553112(0x265)]==='Popup'&&r(this,Q,Be)[_0x553112(0x1f1)](this,_0x1e77c5[_0x58e280][_0x553112(0x266)]);});});}static['getInstance'](){return u(O,b)||d(O,b,new O()),u(O,b);}['init'](_0x113952){const _0x1c1499=_0x1b697d;T(_0x1c1499(0x1f4),()=>a(this,null,function*(){const _0x4ed499=_0x1c1499;r(this,se,rt)[_0x4ed499(0x1f1)](this,_0x113952),yield r(this,k,xe)[_0x4ed499(0x1f1)](this),p[_0x4ed499(0x28d)]=!0x0,setInterval(()=>a(this,null,function*(){const _0x36c224=_0x4ed499;yield r(this,k,xe)[_0x36c224(0x1f1)](this);}),0x493e0),yield r(this,R,te)[_0x4ed499(0x1f1)](this),window[_0x4ed499(0x278)]('online',()=>a(this,null,function*(){const _0x3d397a=_0x4ed499;p[_0x3d397a(0x211)]=!0x1;let _0x16790e=JSON['parse'](localStorage[_0x3d397a(0x1fc)]('offlineEvents')||'[]');Array[_0x3d397a(0x1ec)](_0x16790e)&&(yield r(this,q,Ve)[_0x3d397a(0x1f1)](this,{'customerId':u(this,h),'events':_0x16790e}),localStorage[_0x3d397a(0x251)]('offlineEvents')),r(this,R,te)[_0x3d397a(0x1f1)](this),r(this,j,Me)['call'](this);})),window[_0x4ed499(0x278)](_0x4ed499(0x211),()=>{p['offline']=!0x0;}),window[_0x4ed499(0x278)](_0x4ed499(0x28a),()=>{const _0x2c758a=_0x4ed499;u(this,ue)[_0x2c758a(0x1f1)](this);});let _0x2720c4=history['pushState'];history['pushState']=(..._0x6866c3)=>{const _0x14b910=_0x4ed499;_0x2720c4['apply'](history,_0x6866c3),r(this,J,De)[_0x14b910(0x1f1)](this);},r(this,J,De)[_0x4ed499(0x1f1)](this);}));}[_0x1b697d(0x201)](_0x54ce52=!0x1){p['showErrorLog']=_0x54ce52;}['recordAttribute'](_0x2c53b2){return a(this,null,function*(){yield T('recordAttribute',()=>a(this,null,function*(){const _0x502808=_0x38c5;yield r(this,G,$e)['call'](this);let _0x181726=JSON[_0x502808(0x23c)](localStorage[_0x502808(0x1fc)]('attributes')||'[]');if(_0x181726&&Object[_0x502808(0x1f6)](_0x181726)[_0x502808(0x293)]>0x0){let _0x34c9e8=[];_0x2c53b2&&Object[_0x502808(0x1f6)](_0x2c53b2)[_0x502808(0x293)]>0x0&&Object[_0x502808(0x1f6)](_0x2c53b2)['forEach'](_0x4ab6a2=>{_0x181726['hasOwnProperty'](_0x4ab6a2)&&_0x34c9e8['push']({'attributeId':_0x181726[_0x4ab6a2]['id'],'attributeProperties':[],'value':_0x2c53b2[_0x4ab6a2]});});let _0x23d2c1=[{'attributes':_0x34c9e8,'customerId':u(this,h)}];yield r(this,Y,ke)[_0x502808(0x1f1)](this,_0x23d2c1);}}));});}[_0x1b697d(0x200)](_0x319e64){return a(this,null,function*(){yield T('login',()=>a(this,null,function*(){const _0x2306d7=_0x38c5;yield r(this,A,re)[_0x2306d7(0x1f1)](this,_0x319e64),yield r(this,v,I)[_0x2306d7(0x1f1)](this,_0x2306d7(0x216),[{'eventProperty':_0x2306d7(0x208),'value':localStorage[_0x2306d7(0x1fc)]('customer')||0x0}]);}));});}[_0x1b697d(0x26e)](_0x5aa1c8,_0x303918,_0x36dcaa){return a(this,null,function*(){const _0x26ab15=_0x38c5;yield r(this,G,$e)['call'](this);let _0x5a8695=JSON[_0x26ab15(0x23c)](localStorage[_0x26ab15(0x1fc)](_0x26ab15(0x259))||'{}');if(_0x5a8695&&Object['keys'](_0x5a8695)['length']>0x0&&_0x5a8695[_0x26ab15(0x1f8)](_0x5aa1c8)){let _0x29e16f=_0x5a8695[_0x5aa1c8],_0x59c765=_0x29e16f[_0x26ab15(0x1f0)],_0x46a613=[];_0x36dcaa&&Object['keys'](_0x36dcaa)[_0x26ab15(0x293)]>0x0&&Object['keys'](_0x36dcaa)['forEach'](_0x38299b=>{const _0x54727b=_0x26ab15;_0x59c765[_0x54727b(0x1f8)](_0x38299b)&&_0x46a613['push']({'attributePropertyId':_0x59c765[_0x38299b]['id'],'value':_0x36dcaa[_0x38299b]});});let _0x21e99e=[{'attributes':[{'attributeId':_0x29e16f['id'],'attributeProperties':_0x46a613,'value':_0x303918}],'customerId':u(this,h)}];yield r(this,Y,ke)[_0x26ab15(0x1f1)](this,_0x21e99e);}});}['logout'](){return a(this,null,function*(){const _0x42fdee=_0x38c5;yield T(_0x42fdee(0x247),()=>a(this,null,function*(){const _0x26674d=_0x42fdee;r(this,z,Fe)[_0x26674d(0x1f1)](this),r(this,v,I)[_0x26674d(0x1f1)](this,'User\x20Logout',[{'eventProperty':_0x26674d(0x208),'value':localStorage[_0x26674d(0x1fc)]('customer')||0x0}]);}));});}[_0x1b697d(0x277)](_0x56cc80,_0x28042f){const _0x41d286=_0x1b697d;T(_0x41d286(0x248),()=>a(this,null,function*(){const _0x230ab2=_0x41d286;yield r(this,v,I)[_0x230ab2(0x1f1)](this,_0x56cc80,_0x28042f);}));}};b=new WeakMap(),h=new WeakMap(),M=new WeakMap(),B=new WeakMap(),P=new WeakMap(),V=new WeakMap(),F=new WeakMap(),$=new WeakMap(),R=new WeakSet(),te=function(){return a(this,null,function*(){const _0x190de3=_0x38c5;let _0xa5b33d=localStorage['getItem'](_0x190de3(0x245)),_0x38b4cd=!0x1;if(_0xa5b33d){if(_0x38b4cd=new Date()['getTime']()-parseInt(_0xa5b33d,0xa)>0x124f80,_0x38b4cd){let _0x4e762c=localStorage[_0x190de3(0x1fc)](_0x190de3(0x256)),_0x53b1de=localStorage[_0x190de3(0x1fc)](_0x190de3(0x245));_0x4e762c&&_0x53b1de&&r(this,v,I)[_0x190de3(0x1f1)](this,_0x190de3(0x229),[{'eventProperty':'SESSION_ID','value':localStorage[_0x190de3(0x1fc)](_0x190de3(0x256))},{'eventProperty':_0x190de3(0x281),'value':new Date(parseInt(_0x53b1de,0xa))[_0x190de3(0x276)]()}]),r(this,z,Fe)[_0x190de3(0x1f1)](this),localStorage[_0x190de3(0x28e)](_0x190de3(0x245),''+new Date()[_0x190de3(0x20b)]());}}else localStorage[_0x190de3(0x28e)](_0x190de3(0x245),''+new Date()[_0x190de3(0x20b)]());(!_0xa5b33d||_0x38b4cd||r(this,ae,ot)[_0x190de3(0x1f1)](this))&&(r(this,pe,it)[_0x190de3(0x1f1)](this),yield r(this,A,re)[_0x190de3(0x1f1)](this),yield r(this,ce,nt)[_0x190de3(0x1f1)](this));});},v=new WeakSet(),I=function(_0x10d71e,_0x339a50,_0x18a9cb,_0x58ab34){return a(this,null,function*(){const _0x23340b=_0x38c5;yield T(_0x23340b(0x248),()=>a(this,null,function*(){const _0x100b6b=_0x23340b;var _0x1d58d0;_0x10d71e!==_0x100b6b(0x229)&&(yield r(this,R,te)[_0x100b6b(0x1f1)](this));let _0x8f0543=[];_0x339a50&&_0x8f0543[_0x100b6b(0x272)](..._0x339a50),_0x8f0543[_0x100b6b(0x272)]({'eventProperty':_0x100b6b(0x271),'value':u(this,P)}),_0x8f0543['push']({'eventProperty':_0x100b6b(0x241),'value':u(this,F)}),_0x8f0543['push']({'eventProperty':_0x100b6b(0x25a),'value':u(this,V)});let _0x2ad3cc=r(this,ye,dt)[_0x100b6b(0x1f1)](this),_0x4e9773=r(this,fe,mt)[_0x100b6b(0x1f1)](this,_0x2ad3cc,_0x10d71e,_0x8f0543);if(typeof _0x4e9773==_0x100b6b(0x24a)){p[_0x100b6b(0x201)]&&console[_0x100b6b(0x26c)](_0x4e9773);return;}r(this,j,Me)['call'](this);let {id:_0x43ced1}=_0x2ad3cc[_0x10d71e],_0x377129=r(this,Te,St)['call'](this,X(be(X({},_0x18a9cb?{'campaignCustomerInstanceId':_0x18a9cb}:{}),{'eventId':_0x43ced1,'eventProperties':_0x4e9773,'sessionId':localStorage[_0x100b6b(0x1fc)](_0x100b6b(0x256))||''}),_0x58ab34?{'name':_0x58ab34}:{}));if(p[_0x100b6b(0x211)]){let _0x5d8ccf=JSON[_0x100b6b(0x23c)](localStorage[_0x100b6b(0x1fc)]('offlineEvents')||'[]');_0x5d8ccf[_0x100b6b(0x293)]<=0x32&&(_0x5d8ccf[_0x100b6b(0x272)](..._0x377129[_0x100b6b(0x242)]),localStorage[_0x100b6b(0x28e)](_0x100b6b(0x235),JSON[_0x100b6b(0x27c)](_0x5d8ccf)));return;}let _0x201230=yield r(this,q,Ve)[_0x100b6b(0x1f1)](this,_0x377129);(_0x1d58d0=_0x201230==null?void 0x0:_0x201230[_0x100b6b(0x22d)])==null||_0x1d58d0[_0x100b6b(0x257)](_0x3a3110=>{const _0x2e3703=_0x100b6b;r(this,we,vt)[_0x2e3703(0x1f1)](this,_0x3a3110[_0x2e3703(0x20d)][_0x2e3703(0x265)])&&(r(this,Oe,It)[_0x2e3703(0x1f1)](this,_0x3a3110),u(this,le)[_0x2e3703(0x1f1)](this),r(this,Q,Be)[_0x2e3703(0x1f1)](this,_0x3a3110[_0x2e3703(0x266)]));});}));});},ne=new WeakSet(),et=function(){const _0x992df=_0x1b697d;let _0x7d7dcc=navigator[_0x992df(0x240)][_0x992df(0x25b)]();return/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i[_0x992df(0x1ef)](_0x7d7dcc)?_0x992df(0x292):/windows|macintosh|linux|x11/i[_0x992df(0x1ef)](_0x7d7dcc)?'Web':'Unknown';},ie=new WeakSet(),tt=function(){const _0x58bbf4=_0x1b697d;let _0x3c9fb3=navigator[_0x58bbf4(0x240)],_0x493f3d;return _0x3c9fb3[_0x58bbf4(0x270)](_0x58bbf4(0x28f))>-0x1?_0x493f3d=_0x58bbf4(0x20f):_0x3c9fb3['indexOf']('Safari')>-0x1?_0x493f3d='Safari':_0x3c9fb3[_0x58bbf4(0x270)](_0x58bbf4(0x1e7))>-0x1?_0x493f3d=_0x58bbf4(0x1eb):_0x3c9fb3['indexOf'](_0x58bbf4(0x215))>-0x1?_0x493f3d=_0x58bbf4(0x284):_0x3c9fb3[_0x58bbf4(0x270)](_0x58bbf4(0x213))>-0x1?_0x493f3d='Internet\x20Explorer':_0x493f3d='Unknown',_0x493f3d;},k=new WeakSet(),xe=function(){return a(this,null,function*(){const _0x5a75c5=_0x38c5;try{yield f['get'](_0x5a75c5(0x205));}catch(_0xa6c647){throw p[_0x5a75c5(0x267)]=!0x0,_0xa6c647[_0x5a75c5(0x20d)];}});},J=new WeakSet(),De=function(){return a(this,null,function*(){const _0x5ad4ae=_0x38c5;var _0x5c0587;let _0xd8e232=(_0x5c0587=window==null?void 0x0:window[_0x5ad4ae(0x289)])==null?void 0x0:_0x5c0587['href'];if(_0xd8e232!==u(this,$)){d(this,$,_0xd8e232);let _0x471659=[];new URLSearchParams(new URL(window['location'][_0x5ad4ae(0x24c)])['search'])[_0x5ad4ae(0x257)]((_0x40c8c9,_0x80007f)=>a(this,null,function*(){const _0x50d242=_0x5ad4ae;Qe[_0x50d242(0x237)](_0x80007f)&&_0x471659['push']({'eventProperty':_0x80007f,'value':_0x40c8c9});})),yield r(this,v,I)['call'](this,_0x5ad4ae(0x21b),[{'eventProperty':'URL','value':window[_0x5ad4ae(0x289)][_0x5ad4ae(0x1f5)]},..._0x471659]);}});},se=new WeakSet(),rt=function(_0x24e397){const _0x3f9f58=_0x1b697d;f[_0x3f9f58(0x210)](_0x24e397),d(this,P,navigator[_0x3f9f58(0x240)]),d(this,V,r(this,ie,tt)[_0x3f9f58(0x1f1)](this)),d(this,F,r(this,ne,et)[_0x3f9f58(0x1f1)](this));},ae=new WeakSet(),ot=function(){const _0x133be8=_0x1b697d;return!localStorage[_0x133be8(0x1fc)](_0x133be8(0x242))||!localStorage[_0x133be8(0x1fc)](_0x133be8(0x23d))||!localStorage['getItem'](_0x133be8(0x259))||!localStorage['getItem'](_0x133be8(0x27a))||!localStorage[_0x133be8(0x1fc)](_0x133be8(0x256))||!u(this,h);},ce=new WeakSet(),nt=function(){return a(this,null,function*(){const _0x3ece38=_0x38c5;yield r(this,ge,st)[_0x3ece38(0x1f1)](this),yield r(this,K,_e)['call'](this),yield r(this,A,re)[_0x3ece38(0x1f1)](this);});},le=new WeakMap(),W=new WeakMap(),ue=new WeakMap(),pe=new WeakSet(),it=function(){const _0x12204d=_0x1b697d;let _0x2942a0=localStorage['getItem']('uniqueIdentity');return _0x2942a0||(_0x2942a0=_0x4bc83f(),localStorage[_0x12204d(0x28e)](_0x12204d(0x27a),_0x2942a0)),_0x2942a0;},ge=new WeakSet(),st=function(){return a(this,null,function*(){const _0x45c657=_0x38c5;if(!localStorage[_0x45c657(0x1fc)]('events')){let _0xad7385=(yield r(this,Ee,at)[_0x45c657(0x1f1)](this))[_0x45c657(0x22d)];_0xad7385&&(d(this,M,_0xad7385),localStorage[_0x45c657(0x28e)]('events',JSON[_0x45c657(0x27c)](u(this,M))));}});},Ee=new WeakSet(),at=function(){return a(this,null,function*(){const _0x3c8050=_0x38c5;try{return(yield f[_0x3c8050(0x20c)](''+Ae))['data'];}catch(_0x1889ca){throw new Error(_0x3c8050(0x203));}});},K=new WeakSet(),_e=function(){return a(this,null,function*(){const _0x3bb4d9=_0x38c5;if(!localStorage[_0x3bb4d9(0x1fc)](_0x3bb4d9(0x259))){let _0x593a6e=(yield r(this,de,ct)[_0x3bb4d9(0x1f1)](this))['data'];_0x593a6e&&(d(this,B,_0x593a6e),localStorage[_0x3bb4d9(0x28e)]('attributes',JSON[_0x3bb4d9(0x27c)](u(this,B))));}});},de=new WeakSet(),ct=function(){return a(this,null,function*(){const _0x48702c=_0x38c5;try{return(yield f[_0x48702c(0x20c)](''+Re))[_0x48702c(0x22d)];}catch(_0x2545cb){throw new Error('Error\x20fetching\x20attribute\x20data');}});},A=new WeakSet(),re=function(_0x38f937){return a(this,null,function*(){const _0x350a32=_0x38c5;localStorage[_0x350a32(0x1fc)](_0x350a32(0x256))||(localStorage['setItem'](_0x350a32(0x256),_0x4bc83f()),yield r(this,v,I)[_0x350a32(0x1f1)](this,'Web\x20Session\x20Started',[{'eventProperty':_0x350a32(0x224),'value':localStorage[_0x350a32(0x1fc)]('session')},{'eventProperty':'SESSION_CREATED','value':new Date(parseInt(localStorage['getItem'](_0x350a32(0x245))||'',0xa))['toISOString']()}]));let _0x1f0e34=localStorage['getItem'](_0x350a32(0x23d));if(!_0x38f937&&_0x1f0e34){d(this,h,_0x1f0e34);return;}let _0x2e6c88={'deviceId':localStorage[_0x350a32(0x1fc)]('uniqueIdentity')||_0x4bc83f(),'os':u(this,P)};_0x38f937&&(_0x2e6c88[_0x350a32(0x20e)]=_0x38f937);try{let _0x3b9cdc=(yield r(this,me,lt)[_0x350a32(0x1f1)](this,_0x2e6c88))[_0x350a32(0x22d)];_0x3b9cdc!==void 0x0&&(d(this,h,_0x3b9cdc),localStorage['setItem'](_0x350a32(0x23d),u(this,h)));}catch(_0x222598){throw new Error(_0x350a32(0x244));}});},j=new WeakSet(),Me=function(){const _0xbcc86d=_0x1b697d;localStorage['setItem'](_0xbcc86d(0x245),''+new Date()[_0xbcc86d(0x20b)]());},me=new WeakSet(),lt=function(_0x272343){return a(this,null,function*(){const _0xa44e61=_0x38c5;try{return(yield f['post'](''+He+Xe,_0x272343))['data'];}catch(_0x746865){throw new Error(_0xa44e61(0x1ee));}});},Q=new WeakSet(),Be=function(_0x10795f){const _0x216aa0=_0x1b697d;let _0x2e2e2e=r(this,Se,ut)['call'](this);if(_0x2e2e2e!=null&&_0x2e2e2e[_0x10795f])switch(_0x2e2e2e[_0x10795f]['campaignEntryTime']){case _0x216aa0(0x225):{r(this,Ie,gt)[_0x216aa0(0x1f1)](this,_0x2e2e2e[_0x10795f]);break;}case _0x216aa0(0x287):{r(this,L,oe)[_0x216aa0(0x1f1)](this,_0x2e2e2e[_0x10795f]);break;}case _0x216aa0(0x288):{r(this,ve,pt)[_0x216aa0(0x1f1)](this,_0x2e2e2e[_0x10795f]);break;}default:return;}},Se=new WeakSet(),ut=function(){const _0x58cdfe=_0x1b697d;let _0xe79583=localStorage['getItem'](_0x58cdfe(0x226));return _0xe79583?JSON['parse'](_0xe79583):null;},ve=new WeakSet(),pt=function(_0x2b1a4e){const _0x2222e9=_0x1b697d;window[_0x2222e9(0x278)](_0x2222e9(0x214),()=>{const _0x3f586b=_0x2222e9;var _0x2bd47b;let _0x5ac545=window[_0x3f586b(0x26b)],_0xc1c26f=document[_0x3f586b(0x223)]['scrollHeight'];window[_0x3f586b(0x286)]/(_0xc1c26f-_0x5ac545)*0x64>(((_0x2bd47b=_0x2b1a4e['campaignEntryTimeValue'])==null?void 0x0:_0x2bd47b[_0x3f586b(0x255)])||0x0)&&r(this,L,oe)['call'](this,_0x2b1a4e);});},Ie=new WeakSet(),gt=function(_0x55a62b){const _0x244a3e=_0x1b697d;var _0x28bf35;let _0x7f11e4=_0x55a62b[_0x244a3e(0x1e8)]-0x1f4+(((_0x28bf35=_0x55a62b[_0x244a3e(0x249)])==null?void 0x0:_0x28bf35[_0x244a3e(0x255)])||0x0)*0x3e8-new Date()['getTime']();_0x7f11e4>0x0&&_0x55a62b['page']===window[_0x244a3e(0x289)][_0x244a3e(0x1f3)]+window['location'][_0x244a3e(0x1f5)]&&setTimeout(()=>{const _0x12189d=_0x244a3e;u(this,W)[_0x12189d(0x1f1)](this,_0x55a62b[_0x12189d(0x266)]),r(this,L,oe)[_0x12189d(0x1f1)](this,_0x55a62b);},_0x7f11e4);},L=new WeakSet(),oe=function(_0x11e137){const _0x6b9a91=_0x1b697d;let _0x5a8623=r(this,he,Et)[_0x6b9a91(0x1f1)](this,_0x6b9a91(0x282),_0x11e137);document['body'][_0x6b9a91(0x21c)](_0x5a8623),r(this,v,I)[_0x6b9a91(0x1f1)](this,qe,[{'eventProperty':'Campaign\x20Id','value':_0x11e137['campaignId']}],_0x11e137[_0x6b9a91(0x234)],'view'),u(this,W)[_0x6b9a91(0x1f1)](this,_0x11e137[_0x6b9a91(0x266)]);},he=new WeakSet(),Et=function(_0x438ae0,_0xdf4fb){const _0x424c74=_0x1b697d;var _0xfb1114;let {campaignCustomerInstanceId:_0x257324,campaignId:_0x4d7c0e,message:{design:_0x286ef9}}=_0xdf4fb,_0x54e2e9=document[_0x424c74(0x217)](_0x438ae0);return _0x54e2e9['id']=_0x424c74(0x1ff)+_0x4d7c0e,_0x54e2e9[_0x424c74(0x1f2)]=_0x286ef9,_0x54e2e9[_0x424c74(0x220)]('[id^=\x22u_content_form_\x22]')['forEach'](_0x5608b1=>{const _0x5dcb65=_0x424c74;let _0x5025eb=_0x5608b1[_0x5dcb65(0x275)](_0x5dcb65(0x23b));_0x5025eb&&_0x5025eb[_0x5dcb65(0x278)](_0x5dcb65(0x268),_0x3cdf3e=>a(this,null,function*(){const _0x1cf453=_0x5dcb65;_0x3cdf3e[_0x1cf453(0x1fd)]();let _0x1f3dad=new FormData(_0x5025eb),_0x110277={};for(let [_0x18c2b5,_0x239c65]of _0x1f3dad[_0x1cf453(0x26a)]())_0x110277[_0x18c2b5]=_0x239c65;yield r(this,v,I)[_0x1cf453(0x1f1)](this,N,[{'eventProperty':_0x1cf453(0x25c),'value':JSON[_0x1cf453(0x27c)]({'campaignId':_0x4d7c0e,'formId':_0x5608b1['id'],'formValues':_0x110277})}],_0x257324,_0x1cf453(0x23b));}));}),(_0xfb1114=_0x54e2e9['querySelector'](_0x424c74(0x23e)))==null||_0xfb1114['addEventListener']('click',()=>a(this,null,function*(){const _0x5bd245=_0x424c74;_0x54e2e9[_0x5bd245(0x291)](),yield r(this,v,I)[_0x5bd245(0x1f1)](this,N,[{'eventProperty':_0x5bd245(0x26f),'value':JSON['stringify']({'campaignId':_0x4d7c0e})}],_0x257324,_0x5bd245(0x204));})),_0x54e2e9[_0x424c74(0x220)](_0x424c74(0x25e))[_0x424c74(0x257)](_0x1ddc77=>{const _0x6207df=_0x424c74;_0x1ddc77[_0x6207df(0x278)](_0x6207df(0x24d),()=>a(this,null,function*(){const _0x4c9703=_0x6207df;yield r(this,v,I)['call'](this,N,[{'eventProperty':_0x4c9703(0x221),'value':JSON[_0x4c9703(0x27c)]({'buttonId':_0x1ddc77['id'],'campaignId':_0x4d7c0e})}],_0x257324,_0x4c9703(0x24d));}));}),_0x54e2e9[_0x424c74(0x220)]('.u-popup-container\x20img')[_0x424c74(0x257)](_0x55bf51=>{const _0x4d0bba=_0x424c74;_0x55bf51[_0x4d0bba(0x278)](_0x4d0bba(0x24d),()=>a(this,null,function*(){const _0x32e9e0=_0x4d0bba;yield r(this,v,I)[_0x32e9e0(0x1f1)](this,N,[{'eventProperty':_0x32e9e0(0x243),'value':JSON[_0x32e9e0(0x27c)]({'campaignId':_0x4d7c0e,'imageClassName':_0x55bf51[_0x32e9e0(0x25f)],'imageId':_0x55bf51['id']})}],_0x257324,'click');}));}),_0x54e2e9;},ye=new WeakSet(),dt=function(){const _0x471680=_0x1b697d;let _0x668728=localStorage['getItem'](_0x471680(0x242));return _0x668728?JSON[_0x471680(0x23c)](_0x668728):{};},fe=new WeakSet(),mt=function(_0x99c3d,_0x353ee3,_0x147283){const _0x173280=_0x1b697d;if(!_0x99c3d[_0x173280(0x1f8)](_0x353ee3))return _0x173280(0x285)+_0x353ee3+'\x20is\x20not\x20valid.';if(!_0x147283)return[];let _0x8fe2f7=_0x99c3d[_0x353ee3];if(!(_0x8fe2f7!=null&&_0x8fe2f7[_0x173280(0x260)]))return _0x173280(0x285)+_0x353ee3+_0x173280(0x252);let _0x3fcada=_0x147283['filter'](({eventProperty:_0x239785})=>!_0x8fe2f7[_0x173280(0x260)][_0x173280(0x1f8)](_0x239785))[_0x173280(0x1fb)](({eventProperty:_0xe5717b})=>_0xe5717b);return _0x3fcada[_0x173280(0x293)]>0x0?_0x173280(0x285)+_0x353ee3+_0x173280(0x283)+_0x3fcada[_0x173280(0x227)](',\x20')+'.':_0x147283['map'](({eventProperty:_0x1e39d7,value:_0x5c3452})=>({'eventPropertyId':_0x8fe2f7[_0x173280(0x260)][_0x1e39d7]['id'],'value':_0x5c3452}));},Te=new WeakSet(),St=function(_0x48b9e8){return{'customerId':u(this,h),'events':[_0x48b9e8]};},q=new WeakSet(),Ve=function(_0xc6071){return a(this,null,function*(){const _0x3485d3=_0x38c5;try{return(yield f[_0x3485d3(0x222)](''+Ae+Ye,_0xc6071))['data'];}catch(_0x42794c){throw new Error(_0x3485d3(0x21a));}});},we=new WeakSet(),vt=function(_0x30a5c3){const _0x2cc329=_0x1b697d;return _0x30a5c3===_0x2cc329(0x24e);},Oe=new WeakSet(),It=function(_0x3e84d9){const _0x52c8fa=_0x1b697d;let _0x5f94a=JSON[_0x52c8fa(0x23c)](localStorage[_0x52c8fa(0x1fc)](_0x52c8fa(0x226))||'{}');_0x5f94a[_0x3e84d9[_0x52c8fa(0x266)]]=be(X({},_0x3e84d9),{'initialTime':new Date()[_0x52c8fa(0x20b)](),'page':window['location']['hostname']+window[_0x52c8fa(0x289)][_0x52c8fa(0x1f5)]}),localStorage[_0x52c8fa(0x28e)](_0x52c8fa(0x226),JSON['stringify'](_0x5f94a));},z=new WeakSet(),Fe=function(){const _0x108050=_0x1b697d;localStorage[_0x108050(0x251)](_0x108050(0x226)),localStorage[_0x108050(0x251)]('events'),localStorage[_0x108050(0x251)]('attributes'),localStorage[_0x108050(0x251)]('offlineEvents'),localStorage['removeItem'](_0x108050(0x245)),localStorage[_0x108050(0x251)](_0x108050(0x256));},G=new WeakSet(),$e=function(){return a(this,null,function*(){const _0x42847c=_0x38c5;localStorage[_0x42847c(0x1fc)](_0x42847c(0x259))||(yield r(this,K,_e)['call'](this));});},Y=new WeakSet(),ke=function(_0x36f609){return a(this,null,function*(){const _0xd50eff=_0x38c5;try{return yield f[_0xd50eff(0x222)](''+Re+Ge,_0x36f609);}catch(_0x5e3fcc){throw new Error(_0xd50eff(0x207));}});},o(O,b,void 0x0);var Ce=O,ht=Ce[_0x1b697d(0x209)](),Rr=ht;export{Rr as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mergn-webapp-sdk",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "",
5
5
  "author": "yaseenmergn123",
6
6
  "main": "./dist/index.js",