mergn-webapp-sdk 1.0.3 → 1.0.4
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 +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x19d8fe=_0x47b9;(function(_0x4d332d,_0x4e0307){const _0x216d95=_0x47b9,_0x3ad2f6=_0x4d332d();while(!![]){try{const _0x5420e8=parseInt(_0x216d95(0xfc))/0x1*(-parseInt(_0x216d95(0xec))/0x2)+-parseInt(_0x216d95(0xb2))/0x3*(parseInt(_0x216d95(0x12b))/0x4)+parseInt(_0x216d95(0x11c))/0x5+parseInt(_0x216d95(0xf4))/0x6+-parseInt(_0x216d95(0xa7))/0x7*(parseInt(_0x216d95(0x133))/0x8)+parseInt(_0x216d95(0xe0))/0x9+-parseInt(_0x216d95(0x96))/0xa;if(_0x5420e8===_0x4e0307)break;else _0x3ad2f6['push'](_0x3ad2f6['shift']());}catch(_0xaccfa6){_0x3ad2f6['push'](_0x3ad2f6['shift']());}}}(_0x4ed9,0xbe831));var St=Object[_0x19d8fe(0x11d)],O=Object[_0x19d8fe(0xf3)],yt=Object[_0x19d8fe(0x123)],ft=Object[_0x19d8fe(0xa8)],Tt=Object[_0x19d8fe(0xfb)],wt=Object['getOwnPropertyNames'],_e=Object[_0x19d8fe(0xee)],bt=Object[_0x19d8fe(0x120)],Me=Object[_0x19d8fe(0x9b)][_0x19d8fe(0x106)],Rt=Object['prototype']['propertyIsEnumerable'],Ve=(_0x93be69,_0x5cb9c8,_0x2d4845)=>_0x5cb9c8 in _0x93be69?O(_0x93be69,_0x5cb9c8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2d4845}):_0x93be69[_0x5cb9c8]=_0x2d4845,Y=(_0x5c59be,_0x1a8320)=>{const _0x279a32=_0x19d8fe;for(var _0x23af58 in _0x1a8320||(_0x1a8320={}))Me['call'](_0x1a8320,_0x23af58)&&Ve(_0x5c59be,_0x23af58,_0x1a8320[_0x23af58]);if(_e){for(var _0x23af58 of _e(_0x1a8320))Rt[_0x279a32(0xff)](_0x1a8320,_0x23af58)&&Ve(_0x5c59be,_0x23af58,_0x1a8320[_0x23af58]);}return _0x5c59be;},Se=(_0x311bfa,_0x400731)=>yt(_0x311bfa,Tt(_0x400731)),Pt=(_0x5e436c,_0x452f4e)=>{for(var _0x4307ff in _0x452f4e)O(_0x5e436c,_0x4307ff,{'get':_0x452f4e[_0x4307ff],'enumerable':!0x0});},Be=(_0x3574c2,_0x514b22,_0x1e5315,_0x833709)=>{const _0x466da7=_0x19d8fe;if(_0x514b22&&typeof _0x514b22==_0x466da7(0x94)||typeof _0x514b22==_0x466da7(0x9e)){for(let _0x23173f of wt(_0x514b22))!Me['call'](_0x3574c2,_0x23173f)&&_0x23173f!==_0x1e5315&&O(_0x3574c2,_0x23173f,{'get':()=>_0x514b22[_0x23173f],'enumerable':!(_0x833709=ft(_0x514b22,_0x23173f))||_0x833709[_0x466da7(0xd7)]});}return _0x3574c2;},Fe=(_0x5a0408,_0x497cfc,_0x2c6763)=>(_0x2c6763=_0x5a0408!=null?St(bt(_0x5a0408)):{},Be(_0x497cfc||!_0x5a0408||!_0x5a0408[_0x19d8fe(0xc4)]?O(_0x2c6763,_0x19d8fe(0xcd),{'value':_0x5a0408,'enumerable':!0x0}):_0x2c6763,_0x5a0408)),At=_0xff9a01=>Be(O({},'__esModule',{'value':!0x0}),_0xff9a01),ye=(_0xc64ae4,_0x489e38,_0x1a03fa)=>{const _0xc3601c=_0x19d8fe;if(!_0x489e38['has'](_0xc64ae4))throw TypeError(_0xc3601c(0xcc)+_0x1a03fa);},u=(_0x1a1a3b,_0x28c2b6,_0x11621f)=>(ye(_0x1a1a3b,_0x28c2b6,_0x19d8fe(0xfd)),_0x11621f?_0x11621f[_0x19d8fe(0xff)](_0x1a1a3b):_0x28c2b6[_0x19d8fe(0xa9)](_0x1a1a3b)),i=(_0x171188,_0x173158,_0x3e2859)=>{const _0x16a76b=_0x19d8fe;if(_0x173158[_0x16a76b(0x128)](_0x171188))throw TypeError(_0x16a76b(0xd6));_0x173158 instanceof WeakSet?_0x173158['add'](_0x171188):_0x173158[_0x16a76b(0x108)](_0x171188,_0x3e2859);},E=(_0x3b26ae,_0x1b0ddf,_0x20b690,_0x4a437f)=>(ye(_0x3b26ae,_0x1b0ddf,_0x19d8fe(0x104)),_0x4a437f?_0x4a437f[_0x19d8fe(0xff)](_0x3b26ae,_0x20b690):_0x1b0ddf[_0x19d8fe(0x108)](_0x3b26ae,_0x20b690),_0x20b690),$e=(_0x592b6f,_0x4d0019,_0x1d3df3,_0x51dc11)=>({set '_'(_0x45c54f){E(_0x592b6f,_0x4d0019,_0x45c54f,_0x1d3df3);},get '_'(){return u(_0x592b6f,_0x4d0019,_0x51dc11);}}),o=(_0x19419d,_0x4b4e97,_0x5254f4)=>(ye(_0x19419d,_0x4b4e97,_0x19d8fe(0x114)),_0x5254f4),a=(_0x451ad4,_0x55802c,_0x55ccf8)=>new Promise((_0x4c3933,_0x187e9f)=>{const _0x190533=_0x19d8fe;var _0x10f27a=_0x2a82bd=>{const _0x3823d0=_0x47b9;try{_0xc1b41a(_0x55ccf8[_0x3823d0(0xb5)](_0x2a82bd));}catch(_0x4b5fcb){_0x187e9f(_0x4b5fcb);}},_0x582b8b=_0x156b1b=>{try{_0xc1b41a(_0x55ccf8['throw'](_0x156b1b));}catch(_0x29f7aa){_0x187e9f(_0x29f7aa);}},_0xc1b41a=_0x335b40=>_0x335b40[_0x190533(0x12f)]?_0x4c3933(_0x335b40[_0x190533(0xe1)]):Promise[_0x190533(0x100)](_0x335b40[_0x190533(0xe1)])['then'](_0x10f27a,_0x582b8b);_0xc1b41a((_0x55ccf8=_0x55ccf8[_0x190533(0xa6)](_0x451ad4,_0x55802c))['next']());}),Ut={};Pt(Ut,{'default':()=>Ot}),module[_0x19d8fe(0x127)]=At(Ut);function _0x4ed9(){const _0x36c0af=['object','response','5704670ntXUbc','name','keys','getTime','log','prototype','stringify','popup_container_','function','getItem','recordEvent','Popup\x20Action','error','querySelector','Error\x20setting\x20identity','status','apply','2164106HIlnhF','getOwnPropertyDescriptor','get','push','entries','innerHeight','ttl','isInitialized','application/json','join','load','6rLxGIQ','div','eventProperty','next','Error\x20posting\x20attribute\x20record','parse','disableSDK','brand','OriginateFrom:\x20','DELAY','post','/record-event','customer','record\x20event','/event','removeItem','User\x20Login','close','__esModule','Error\x20posting\x20identity\x20data','search','forEach','Unexpected\x20error:','offlineEvents','Close\x20Click','identity','Cannot\x20','default','location','https://u23z4zsda8.execute-api.ap-southeast-1.amazonaws.com/Prod','AxiosError:\x20','Authorization','createElement','Button\x20Click','setItem','AxiosError','Cannot\x20add\x20the\x20same\x20private\x20member\x20more\x20than\x20once','enumerable','Mergn\x20SDK\x20is\x20disabled!','initialTime','remove','string','pathname','/customer','logout','updateAPIKey','6369210tLBNtl','value','platform','IMMEDIATELY','page','events','.u-close-button','MergnError','\x20is\x20not\x20valid.','Max\x20retries\x20reached.\x20Disabling\x20SDK.','Error\x20fetching\x20event\x20data','filter','1846copUJB','attributeProperty','getOwnPropertySymbols','querySelectorAll','click','Viewed\x20Web\x20Page','hostname','defineProperty','4805052jFnaDD','common','preventDefault','campaignEntryTimeValue','AxiosQueueManager','\x0aNo\x20response\x20received.\x20Check\x20network\x20connection\x20or\x20server\x20issues.','Customer\x20Id','getOwnPropertyDescriptors','1066wFtcIy','read\x20from\x20private\x20field','message','call','resolve','uniqueIdentity','[id^=\x22u_content_button_\x22]','campaignId','write\x20to\x20private\x20field','appendChild','hasOwnProperty','Response\x20Data:','set','href','Event\x20','headers','offline','[id^=\x22u_content_form_\x22]','data','.u-popup-container\x20img','form','className','attributes','onLine','access\x20private\x20method','Campaign\x20Id','UTM\x20Key\x20Value','login','showErrorLog','submit','Popup\x20Viewed','/attribute','7296640MsWtKX','create','\x20does\x20not\x20have\x20a\x20valid\x20eventProperty.','recordAttribute','getPrototypeOf','pushState','length','defineProperties','scroll','init','scrollY','exports','has','campaignEntryTime','Mergn\x20not\x20initialized!','647960VFejID','getInstance','Popup','beforeunload','done','session','action','addEventListener','8PlZAjj','HTTP\x20Status:\x20','view'];_0x4ed9=function(){return _0x36c0af;};return _0x4ed9();}var W=require('uuid'),U=_0x19d8fe(0xa1),Je=_0x19d8fe(0x11a),ke=_0x19d8fe(0xcf),fe=_0x19d8fe(0x11b),Ke='/record-attribute',Te=_0x19d8fe(0xc0),Qe=_0x19d8fe(0xbd),je=_0x19d8fe(0xdd),qe='/set-identity',Ye=Fe(require('axios')),He=require('axios-queue-js'),Ge=Fe(require('axios-retry')),ze=require('axios'),l=class extends Error{constructor(_0x111ecf){const _0x3d7000=_0x19d8fe;super(_0x111ecf),this[_0x3d7000(0x97)]=_0x3d7000(0xe7);}};l[_0x19d8fe(0xb8)]=!0x1,l['offline']=!navigator[_0x19d8fe(0x113)],l[_0x19d8fe(0x118)]=!0x1,l[_0x19d8fe(0xae)]=!0x1;var Lt=(_0x4b10d0,_0x3388cc)=>{const _0x339c80=_0x19d8fe;_0x3388cc instanceof l?console['error'](_0x339c80(0xba)+_0x4b10d0,'MergnError:\x20'+_0x3388cc[_0x339c80(0xfe)]):_0x3388cc instanceof ze[_0x339c80(0xd5)]?(console['error']('OriginateFrom:\x20'+_0x4b10d0,_0x339c80(0xd0)+_0x3388cc[_0x339c80(0xfe)]),_0x3388cc[_0x339c80(0x95)]?(console[_0x339c80(0xa2)](_0x339c80(0xba)+_0x4b10d0,_0x339c80(0x92)+_0x3388cc['response'][_0x339c80(0xa5)]),console['error'](_0x339c80(0xba)+_0x4b10d0,_0x339c80(0x107),_0x3388cc[_0x339c80(0x95)]['data'])):_0x3388cc['request']?console[_0x339c80(0xa2)](_0x339c80(0xba)+_0x4b10d0+_0x339c80(0xf9)):console[_0x339c80(0xa2)](_0x339c80(0xba)+_0x4b10d0,'Error\x20setting\x20up\x20the\x20request:',_0x3388cc['message'])):_0x3388cc instanceof Error?console[_0x339c80(0xa2)](_0x339c80(0xba)+_0x4b10d0,_0x339c80(0xc8),_0x3388cc['message']):console[_0x339c80(0xa2)]('OriginateFrom:\x20'+_0x4b10d0,_0x339c80(0xc8),String(_0x3388cc));},f=(_0x3e5984,_0xa7c85,_0x5f5129)=>a(void 0x0,null,function*(){const _0x84f0f3=_0x19d8fe;try{if(l[_0x84f0f3(0xb8)])throw new l(_0x84f0f3(0xd8));if(_0x3e5984!=='record\x20event'&&l['offline'])throw new l('Mergn\x20is\x20offline!');if(_0x3e5984!=='init'&&!l['isInitialized'])throw new l(_0x84f0f3(0x12a));return yield _0xa7c85();}catch(_0x1d703d){return _0x5f5129?_0x5f5129(_0x1d703d):l[_0x84f0f3(0x118)]&&Lt(_0x3e5984,_0x1d703d),null;}}),T,N,x,C,H,D,be,G,We,d=class d{constructor(){const _0x19c16f=_0x19d8fe;i(this,H,0x0);let _0x304903=Ye[_0x19c16f(0xcd)][_0x19c16f(0x11d)]({'baseURL':ke,'headers':{'Content-Type':_0x19c16f(0xaf)}});E(d,N,_0x304903),E(d,x,new He[(_0x19c16f(0xf8))]({'client':_0x304903,'queueSize':0xa})),(0x0,Ge['default'])(_0x304903,{'onRetry':_0x745599=>{const _0x8eedd8=_0x19c16f;_0x745599>=u(d,C)?(l[_0x8eedd8(0x118)]&&console[_0x8eedd8(0x9a)](_0x8eedd8(0xe9)),l[_0x8eedd8(0xb8)]=!0x0):$e(this,H)['_']++;},'retries':u(d,C),'retryDelay':_0x19b1d6=>_0x19b1d6*0x1388});}static[_0x19d8fe(0xdf)](_0x22178e){const _0x17f881=_0x19d8fe;this['apiKey']=_0x22178e,o(this,G,We)[_0x17f881(0xff)](this)['defaults'][_0x17f881(0x10b)][_0x17f881(0xf5)][_0x17f881(0xd1)]=_0x22178e;}static[_0x19d8fe(0xa9)](_0x45d29f){const _0xb8603f=_0x19d8fe;return o(this,D,be)[_0xb8603f(0xff)](this)[_0xb8603f(0xa9)](_0x45d29f);}static['post'](_0x44e2a5,_0x5eefdc){return o(this,D,be)['call'](this)['post'](_0x44e2a5,_0x5eefdc||{});}};T=new WeakMap(),N=new WeakMap(),x=new WeakMap(),C=new WeakMap(),H=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);function _0x47b9(_0x4b6574,_0x28c5c6){const _0x4ed95d=_0x4ed9();return _0x47b9=function(_0x47b9a9,_0x1d5220){_0x47b9a9=_0x47b9a9-0x92;let _0x154a39=_0x4ed95d[_0x47b9a9];return _0x154a39;},_0x47b9(_0x4b6574,_0x28c5c6);}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,Q,Ue,Ie,dt,he,Et,j,Ne,q,xe,z,Ce,b=class b{constructor(){const _0x1c97b1=_0x19d8fe;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,Q),i(this,Ie),i(this,he),i(this,j),i(this,q),i(this,z),i(this,I,''),i(this,_,void 0x0),i(this,V,void 0x0),i(this,M,void 0x0),i(this,B,null),i(this,oe,()=>{const _0x2cfb59=_0x47b9;let _0x14d42b=()=>{const _0x528577=_0x47b9;let _0x5e75d2=JSON[_0x528577(0xb7)](localStorage[_0x528577(0x9f)]('action')||'{}');Object[_0x528577(0x98)](_0x5e75d2)[_0x528577(0xc7)](_0x3b07b7=>{const _0x293113=_0x528577;_0x5e75d2[_0x3b07b7][_0x293113(0xd9)]=new Date()[_0x293113(0x99)](),_0x5e75d2[_0x3b07b7][_0x293113(0xe4)]=window[_0x293113(0xce)][_0x293113(0xf2)]+window[_0x293113(0xce)][_0x293113(0xdc)];}),localStorage['setItem'](_0x528577(0x131),JSON['stringify'](_0x5e75d2));};_0x14d42b(),window['addEventListener'](_0x2cfb59(0x12e),_0x14d42b);}),i(this,J,_0x147dca=>{const _0x43243c=_0x47b9;let _0xb7f728=JSON[_0x43243c(0xb7)](localStorage[_0x43243c(0x9f)](_0x43243c(0x131))||'{}');_0xb7f728[_0x147dca]&&delete _0xb7f728[_0x147dca],localStorage[_0x43243c(0xd4)]('action',JSON[_0x43243c(0x9c)](_0xb7f728));}),i(this,ne,()=>{const _0x4cc27d=_0x47b9;let _0x3d804d=JSON['parse'](localStorage[_0x4cc27d(0x9f)]('action')||'{}');Object[_0x4cc27d(0x98)](_0x3d804d)[_0x4cc27d(0xc7)](_0x4ff0bd=>{const _0xafee6b=_0x4cc27d;_0x3d804d[_0x4ff0bd][_0xafee6b(0xfe)][_0xafee6b(0x97)]==='Popup'&&o(this,K,Oe)[_0xafee6b(0xff)](this,_0x3d804d[_0x4ff0bd][_0xafee6b(0x103)]);});}),E(this,M,navigator[_0x1c97b1(0xe2)]);}static[_0x19d8fe(0x12c)](){return u(b,P)||E(b,P,new b()),u(b,P);}[_0x19d8fe(0x125)](_0x2cbf83){f('init',()=>a(this,null,function*(){const _0x120e0a=_0x47b9;o(this,ee,Xe)[_0x120e0a(0xff)](this,_0x2cbf83),yield o(this,F,Pe)[_0x120e0a(0xff)](this),setInterval(()=>a(this,null,function*(){const _0x14e117=_0x120e0a;yield o(this,F,Pe)[_0x14e117(0xff)](this);}),0x493e0);let _0xf702d9=localStorage['getItem'](_0x120e0a(0xad)),_0x7ae630=!0x1;_0xf702d9?(_0x7ae630=new Date()[_0x120e0a(0x99)]()-parseInt(_0xf702d9,0xa)>0x1b7740,_0x7ae630&&o(this,j,Ne)['call'](this)):localStorage[_0x120e0a(0xd4)](_0x120e0a(0xad),''+new Date()['getTime']()),(!_0xf702d9||_0x7ae630||o(this,te,Ze)['call'](this))&&(o(this,ie,tt)[_0x120e0a(0xff)](this),yield o(this,A,X)[_0x120e0a(0xff)](this),yield o(this,re,et)[_0x120e0a(0xff)](this)),window[_0x120e0a(0x132)]('online',()=>a(this,null,function*(){const _0x516dcf=_0x120e0a;l[_0x516dcf(0x10c)]=!0x1;let _0x112ee5=JSON[_0x516dcf(0xb7)](localStorage[_0x516dcf(0x9f)](_0x516dcf(0xc9))||'[]');Array['isArray'](_0x112ee5)&&(yield o(this,Q,Ue)[_0x516dcf(0xff)](this,{'customerId':u(this,I),'events':_0x112ee5}),localStorage['removeItem'](_0x516dcf(0xc9)));})),window['addEventListener'](_0x120e0a(0x10c),()=>{const _0x1a5440=_0x120e0a;l[_0x1a5440(0x10c)]=!0x0;}),window[_0x120e0a(0x132)](_0x120e0a(0xb1),()=>{const _0x35edd3=_0x120e0a;u(this,ne)[_0x35edd3(0xff)](this);}),l['isInitialized']=!0x0;let _0x46b6ab=history[_0x120e0a(0x121)];history[_0x120e0a(0x121)]=(..._0x5005ff)=>{const _0x39d0eb=_0x120e0a;_0x46b6ab['apply'](history,_0x5005ff),o(this,$,Ae)[_0x39d0eb(0xff)](this);},o(this,$,Ae)['call'](this);}));}['showErrorLog'](_0x56a45e=!0x1){l['showErrorLog']=_0x56a45e;}[_0x19d8fe(0x11f)](_0x1e62b7){return a(this,null,function*(){const _0xf5df3c=_0x47b9;yield f(_0xf5df3c(0x11f),()=>a(this,null,function*(){const _0x440b15=_0xf5df3c;yield o(this,q,xe)[_0x440b15(0xff)](this);let _0x5b087e=JSON['parse'](localStorage['getItem'](_0x440b15(0x112))||'[]');if(_0x5b087e&&Object[_0x440b15(0x98)](_0x5b087e)[_0x440b15(0x122)]>0x0){let _0xed5878=[];_0x1e62b7&&Object[_0x440b15(0x98)](_0x1e62b7)[_0x440b15(0x122)]>0x0&&Object['keys'](_0x1e62b7)[_0x440b15(0xc7)](_0x152ada=>{const _0x11fefe=_0x440b15;_0x5b087e['hasOwnProperty'](_0x152ada)&&_0xed5878[_0x11fefe(0xaa)]({'attributeId':_0x5b087e[_0x152ada]['id'],'attributeProperties':[],'value':_0x1e62b7[_0x152ada]});});let _0x5cb3dd=[{'attributes':_0xed5878,'customerId':u(this,I)}];yield o(this,z,Ce)[_0x440b15(0xff)](this,_0x5cb3dd);}}));});}['login'](_0x2f3d97){return a(this,null,function*(){const _0x22845b=_0x47b9;yield f(_0x22845b(0x117),()=>a(this,null,function*(){const _0x145bfc=_0x22845b;yield o(this,A,X)['call'](this,_0x2f3d97),yield this[_0x145bfc(0xa0)](_0x145bfc(0xc2),[{'eventProperty':_0x145bfc(0xfa),'value':localStorage['getItem'](_0x145bfc(0xbe))||0x0}]);}));});}['updateAttribute'](_0xdef4c6,_0x3be7ed,_0x25e2fe){return a(this,null,function*(){const _0x173c71=_0x47b9;yield o(this,q,xe)['call'](this);let _0x5830bb=JSON[_0x173c71(0xb7)](localStorage[_0x173c71(0x9f)](_0x173c71(0x112))||'{}');if(_0x5830bb&&Object[_0x173c71(0x98)](_0x5830bb)[_0x173c71(0x122)]>0x0&&_0x5830bb['hasOwnProperty'](_0xdef4c6)){let _0x5a46c0=_0x5830bb[_0xdef4c6],_0x5e4c16=_0x5a46c0[_0x173c71(0xed)],_0x2598e4=[];_0x25e2fe&&Object[_0x173c71(0x98)](_0x25e2fe)['length']>0x0&&Object[_0x173c71(0x98)](_0x25e2fe)[_0x173c71(0xc7)](_0x2907fa=>{const _0x78540c=_0x173c71;_0x5e4c16[_0x78540c(0x106)](_0x2907fa)&&_0x2598e4[_0x78540c(0xaa)]({'attributePropertyId':_0x5e4c16[_0x2907fa]['id'],'value':_0x25e2fe[_0x2907fa]});});let _0x291cb1=[{'attributes':[{'attributeId':_0x5a46c0['id'],'attributeProperties':_0x2598e4,'value':_0x3be7ed}],'customerId':u(this,I)}];yield o(this,z,Ce)['call'](this,_0x291cb1);}});}[_0x19d8fe(0xde)](){return a(this,null,function*(){const _0x44d3f2=_0x47b9;yield f(_0x44d3f2(0xde),()=>a(this,null,function*(){const _0x35e0e7=_0x44d3f2;o(this,j,Ne)[_0x35e0e7(0xff)](this),this[_0x35e0e7(0xa0)]('User\x20Logout',[{'eventProperty':_0x35e0e7(0xfa),'value':localStorage[_0x35e0e7(0x9f)](_0x35e0e7(0xbe))||0x0}]);}));});}[_0x19d8fe(0xa0)](_0x1b71e2,_0x52eadc){const _0x223124=_0x19d8fe;f(_0x223124(0xbf),()=>a(this,null,function*(){const _0x14f42f=_0x223124;yield o(this,y,w)[_0x14f42f(0xff)](this,_0x1b71e2,_0x52eadc);}));}};P=new WeakMap(),I=new WeakMap(),_=new WeakMap(),V=new WeakMap(),M=new WeakMap(),B=new WeakMap(),y=new WeakSet(),w=function(_0x534516,_0x2f46f3,_0xb4863b,_0x45853c){return a(this,null,function*(){const _0x5bc6aa=_0x47b9;yield f(_0x5bc6aa(0xbf),()=>a(this,null,function*(){const _0x2d6812=_0x5bc6aa;var _0x5d4bb8;let _0x24cc33=o(this,Ee,ut)[_0x2d6812(0xff)](this),_0x2f2f43=o(this,me,pt)['call'](this,_0x24cc33,_0x534516,_0x2f46f3);if(typeof _0x2f2f43==_0x2d6812(0xdb)){l[_0x2d6812(0x118)]&&console[_0x2d6812(0xa2)](_0x2f2f43);return;}let {id:_0x54c9e7}=_0x24cc33[_0x534516],_0x37c9f5=o(this,ve,gt)[_0x2d6812(0xff)](this,Y(Se(Y({},_0xb4863b?{'campaignCustomerInstanceId':_0xb4863b}:{}),{'eventId':_0x54c9e7,'eventProperties':_0x2f2f43,'sessionId':localStorage[_0x2d6812(0x9f)]('session')||''}),_0x45853c?{'name':_0x45853c}:{}));if(l[_0x2d6812(0x10c)]){let _0x36868c=JSON[_0x2d6812(0xb7)](localStorage[_0x2d6812(0x9f)]('offlineEvents')||'[]');_0x36868c[_0x2d6812(0x122)]<=0x32&&(_0x36868c['push'](..._0x37c9f5[_0x2d6812(0xe5)]),localStorage['setItem'](_0x2d6812(0xc9),JSON[_0x2d6812(0x9c)](_0x36868c)));return;}let _0x20323a=yield o(this,Q,Ue)['call'](this,_0x37c9f5);(_0x5d4bb8=_0x20323a==null?void 0x0:_0x20323a[_0x2d6812(0x10e)])==null||_0x5d4bb8[_0x2d6812(0xc7)](_0x55f371=>{const _0x4b189f=_0x2d6812;o(this,Ie,dt)[_0x4b189f(0xff)](this,_0x55f371[_0x4b189f(0xfe)][_0x4b189f(0x97)])&&(o(this,he,Et)[_0x4b189f(0xff)](this,_0x55f371),u(this,oe)[_0x4b189f(0xff)](this),o(this,K,Oe)['call'](this,_0x55f371[_0x4b189f(0x103)]));});}));});},F=new WeakSet(),Pe=function(){return a(this,null,function*(){const _0x329d51=_0x47b9;try{yield S[_0x329d51(0xa9)](_0x329d51(0xb9));}catch(_0x39cf27){l[_0x329d51(0xb8)]=!0x0,l[_0x329d51(0x118)]&&console['error'](_0x39cf27['message']);}});},$=new WeakSet(),Ae=function(){return a(this,null,function*(){const _0x521ecc=_0x47b9;let _0x31e3cc=window[_0x521ecc(0xce)][_0x521ecc(0xf2)]+window[_0x521ecc(0xce)][_0x521ecc(0xdc)];yield this[_0x521ecc(0xa0)]('Viewed\x20Web\x20Page',[{'eventProperty':'URL','value':_0x31e3cc}]),_0x31e3cc!==u(this,B)&&(E(this,B,_0x31e3cc),new URLSearchParams(new URL(window[_0x521ecc(0xce)][_0x521ecc(0x109)])[_0x521ecc(0xc6)])[_0x521ecc(0xc7)]((_0x2aa753,_0x5f53c1)=>a(this,null,function*(){const _0x3793d3=_0x521ecc;yield this['recordEvent'](_0x3793d3(0xf1),[{'eventProperty':_0x3793d3(0x116),'value':_0x5f53c1+':'+_0x2aa753}]);})));});},ee=new WeakSet(),Xe=function(_0x8045da){const _0x48c393=_0x19d8fe;S[_0x48c393(0xdf)](_0x8045da);},te=new WeakSet(),Ze=function(){const _0x31ca83=_0x19d8fe;return!localStorage[_0x31ca83(0x9f)]('events')||!localStorage[_0x31ca83(0x9f)](_0x31ca83(0xbe))||!localStorage[_0x31ca83(0x9f)](_0x31ca83(0x112))||!localStorage[_0x31ca83(0x9f)](_0x31ca83(0x101))||!localStorage[_0x31ca83(0x9f)](_0x31ca83(0x130))||!u(this,I);},re=new WeakSet(),et=function(){return a(this,null,function*(){const _0x33d0a8=_0x47b9;yield o(this,se,rt)[_0x33d0a8(0xff)](this),yield o(this,k,Le)[_0x33d0a8(0xff)](this),yield o(this,A,X)[_0x33d0a8(0xff)](this);});},oe=new WeakMap(),J=new WeakMap(),ne=new WeakMap(),ie=new WeakSet(),tt=function(){const _0xa9f650=_0x19d8fe;let _0x51899a=localStorage[_0xa9f650(0x9f)]('uniqueIdentity');return _0x51899a||(_0x51899a=(0x0,W['v4'])(),localStorage['setItem'](_0xa9f650(0x101),_0x51899a)),_0x51899a;},se=new WeakSet(),rt=function(){return a(this,null,function*(){const _0x128a26=_0x47b9;if(!localStorage[_0x128a26(0x9f)](_0x128a26(0xe5))){let _0x2044a3=(yield o(this,ae,ot)['call'](this))[_0x128a26(0x10e)];_0x2044a3&&(E(this,_,_0x2044a3),localStorage[_0x128a26(0xd4)](_0x128a26(0xe5),JSON[_0x128a26(0x9c)](u(this,_))));}});},ae=new WeakSet(),ot=function(){return a(this,null,function*(){const _0x2aea3=_0x47b9;try{return(yield S['get'](''+Te))[_0x2aea3(0x10e)];}catch(_0x237ba8){throw new Error(_0x2aea3(0xea));}});},k=new WeakSet(),Le=function(){return a(this,null,function*(){const _0x2003e3=_0x47b9;if(!localStorage[_0x2003e3(0x9f)](_0x2003e3(0x112))){let _0x32dc59=(yield o(this,ce,nt)[_0x2003e3(0xff)](this))[_0x2003e3(0x10e)];_0x32dc59&&(E(this,V,_0x32dc59),localStorage['setItem'](_0x2003e3(0x112),JSON[_0x2003e3(0x9c)](u(this,V))));}});},ce=new WeakSet(),nt=function(){return a(this,null,function*(){const _0x26a565=_0x47b9;try{return(yield S[_0x26a565(0xa9)](''+fe))[_0x26a565(0x10e)];}catch(_0x570319){throw new Error('Error\x20fetching\x20attribute\x20data');}});},A=new WeakSet(),X=function(_0x4e0c73){return a(this,null,function*(){const _0x37b4c7=_0x47b9;localStorage[_0x37b4c7(0x9f)](_0x37b4c7(0x130))||localStorage[_0x37b4c7(0xd4)](_0x37b4c7(0x130),(0x0,W['v4'])());let _0x5a60a7=localStorage[_0x37b4c7(0x9f)]('customer');if(!_0x4e0c73&&_0x5a60a7){E(this,I,_0x5a60a7);return;}let _0x49a1b7={'deviceId':localStorage[_0x37b4c7(0x9f)](_0x37b4c7(0x101))||(0x0,W['v4'])(),'os':u(this,M)};_0x4e0c73&&(_0x49a1b7[_0x37b4c7(0xcb)]=_0x4e0c73);try{let _0x409b69=(yield o(this,le,it)[_0x37b4c7(0xff)](this,_0x49a1b7))[_0x37b4c7(0x10e)];_0x409b69!==void 0x0&&(E(this,I,_0x409b69),localStorage[_0x37b4c7(0xd4)]('customer',u(this,I)));}catch(_0xe3f87){throw new Error(_0x37b4c7(0xa4));}});},le=new WeakSet(),it=function(_0x1f02ed){return a(this,null,function*(){const _0x1bd731=_0x47b9;try{return(yield S[_0x1bd731(0xbc)](''+je+qe,_0x1f02ed))[_0x1bd731(0x10e)];}catch(_0x2b7502){throw new Error(_0x1bd731(0xc5));}});},K=new WeakSet(),Oe=function(_0x5b721c){const _0x45879b=_0x19d8fe;let _0x99c814=o(this,ue,st)[_0x45879b(0xff)](this);if(_0x99c814!=null&&_0x99c814[_0x5b721c])switch(_0x99c814[_0x5b721c][_0x45879b(0x129)]){case _0x45879b(0xbb):{o(this,ge,ct)[_0x45879b(0xff)](this,_0x99c814[_0x5b721c]);break;}case _0x45879b(0xe3):{o(this,L,Z)[_0x45879b(0xff)](this,_0x99c814[_0x5b721c]);break;}case'SCROLL':{o(this,pe,at)[_0x45879b(0xff)](this,_0x99c814[_0x5b721c]);break;}default:return;}},ue=new WeakSet(),st=function(){const _0x1f48e9=_0x19d8fe;let _0x4c284c=localStorage[_0x1f48e9(0x9f)](_0x1f48e9(0x131));return _0x4c284c?JSON[_0x1f48e9(0xb7)](_0x4c284c):null;},pe=new WeakSet(),at=function(_0x2b7abd){const _0x2db24d=_0x19d8fe;window[_0x2db24d(0x132)](_0x2db24d(0x124),()=>{const _0x5af92c=_0x2db24d;var _0xb2ab0e;let _0x2689e6=window[_0x5af92c(0xac)],_0x2805f9=document['documentElement']['scrollHeight'];window[_0x5af92c(0x126)]/(_0x2805f9-_0x2689e6)*0x64>(((_0xb2ab0e=_0x2b7abd[_0x5af92c(0xf7)])==null?void 0x0:_0xb2ab0e['value'])||0x0)&&o(this,L,Z)[_0x5af92c(0xff)](this,_0x2b7abd);});},ge=new WeakSet(),ct=function(_0xb9b57d){const _0x29ba70=_0x19d8fe;var _0x510dab;let _0x2dc1fe=_0xb9b57d[_0x29ba70(0xd9)]-0x1f4+(((_0x510dab=_0xb9b57d[_0x29ba70(0xf7)])==null?void 0x0:_0x510dab['value'])||0x0)*0x3e8-new Date()[_0x29ba70(0x99)]();_0x2dc1fe>0x0&&_0xb9b57d[_0x29ba70(0xe4)]===window[_0x29ba70(0xce)][_0x29ba70(0xf2)]+window[_0x29ba70(0xce)][_0x29ba70(0xdc)]&&setTimeout(()=>{const _0x2f2125=_0x29ba70;u(this,J)['call'](this,_0xb9b57d[_0x2f2125(0x103)]),o(this,L,Z)[_0x2f2125(0xff)](this,_0xb9b57d);},_0x2dc1fe);},L=new WeakSet(),Z=function(_0x36fabd){const _0x21b659=_0x19d8fe;let _0xa17d53=o(this,de,lt)[_0x21b659(0xff)](this,_0x21b659(0xb3),_0x36fabd);document['body'][_0x21b659(0x105)](_0xa17d53),o(this,y,w)['call'](this,Je,[{'eventProperty':_0x21b659(0x115),'value':_0x36fabd[_0x21b659(0x103)]}],_0x36fabd['campaignCustomerInstanceId'],_0x21b659(0x93)),u(this,J)[_0x21b659(0xff)](this,_0x36fabd[_0x21b659(0x103)]);},de=new WeakSet(),lt=function(_0x12ad75,_0x3c7057){const _0xf33568=_0x19d8fe;var _0x99af87;let {campaignCustomerInstanceId:_0x11cccf,campaignId:_0x52fbee,message:{design:_0x5ef774}}=_0x3c7057,_0x42c3d0=document[_0xf33568(0xd2)](_0x12ad75);return _0x42c3d0['id']=_0xf33568(0x9d)+_0x52fbee,_0x42c3d0['innerHTML']=_0x5ef774,_0x42c3d0[_0xf33568(0xef)](_0xf33568(0x10d))[_0xf33568(0xc7)]((_0x39516f,_0x37c2a2)=>{const _0x3c2b4e=_0xf33568;let _0x1b5d12=_0x39516f[_0x3c2b4e(0xa3)]('form');_0x1b5d12&&_0x1b5d12[_0x3c2b4e(0x132)](_0x3c2b4e(0x119),_0x2bbb6a=>a(this,null,function*(){const _0x2dd967=_0x3c2b4e;_0x2bbb6a[_0x2dd967(0xf6)]();let _0x2d72d0=new FormData(_0x1b5d12),_0x224275={};for(let [_0x5754ff,_0x5c587f]of _0x2d72d0[_0x2dd967(0xab)]())_0x224275[_0x5754ff]=_0x5c587f;yield o(this,y,w)[_0x2dd967(0xff)](this,U,[{'eventProperty':'Form\x20Submit','value':JSON[_0x2dd967(0x9c)]({'campaignId':_0x52fbee,'formId':_0x39516f['id'],'formValues':_0x224275})}],_0x11cccf,_0x2dd967(0x110));}));}),(_0x99af87=_0x42c3d0['querySelector'](_0xf33568(0xe6)))==null||_0x99af87[_0xf33568(0x132)](_0xf33568(0xf0),()=>a(this,null,function*(){const _0x45c566=_0xf33568;_0x42c3d0[_0x45c566(0xda)](),yield o(this,y,w)[_0x45c566(0xff)](this,U,[{'eventProperty':_0x45c566(0xca),'value':JSON[_0x45c566(0x9c)]({'campaignId':_0x52fbee})}],_0x11cccf,_0x45c566(0xc3));})),_0x42c3d0['querySelectorAll'](_0xf33568(0x102))[_0xf33568(0xc7)](_0x357a31=>{const _0x10a6d7=_0xf33568;_0x357a31[_0x10a6d7(0x132)](_0x10a6d7(0xf0),()=>a(this,null,function*(){const _0x58b583=_0x10a6d7;yield o(this,y,w)['call'](this,U,[{'eventProperty':_0x58b583(0xd3),'value':JSON[_0x58b583(0x9c)]({'buttonId':_0x357a31['id'],'campaignId':_0x52fbee})}],_0x11cccf,_0x58b583(0xf0));}));}),_0x42c3d0[_0xf33568(0xef)](_0xf33568(0x10f))[_0xf33568(0xc7)](_0xe4ccde=>{const _0x560fa3=_0xf33568;_0xe4ccde[_0x560fa3(0x132)](_0x560fa3(0xf0),()=>a(this,null,function*(){const _0x1c7e7d=_0x560fa3;yield o(this,y,w)[_0x1c7e7d(0xff)](this,U,[{'eventProperty':'Image\x20Click','value':JSON[_0x1c7e7d(0x9c)]({'campaignId':_0x52fbee,'imageClassName':_0xe4ccde[_0x1c7e7d(0x111)],'imageId':_0xe4ccde['id']})}],_0x11cccf,'click');}));}),_0x42c3d0;},Ee=new WeakSet(),ut=function(){const _0x1409cf=_0x19d8fe;let _0x54d69d=localStorage[_0x1409cf(0x9f)](_0x1409cf(0xe5));return _0x54d69d?JSON[_0x1409cf(0xb7)](_0x54d69d):{};},me=new WeakSet(),pt=function(_0x4ca91b,_0x927d90,_0x4239fd){const _0x20c3c7=_0x19d8fe;if(!_0x4ca91b['hasOwnProperty'](_0x927d90))return _0x20c3c7(0x10a)+_0x927d90+_0x20c3c7(0xe8);if(!_0x4239fd)return[];let _0x33a383=_0x4ca91b[_0x927d90];if(!(_0x33a383!=null&&_0x33a383[_0x20c3c7(0xb4)]))return _0x20c3c7(0x10a)+_0x927d90+_0x20c3c7(0x11e);let _0x16cf67=_0x4239fd[_0x20c3c7(0xeb)](({eventProperty:_0xf5b168})=>!_0x33a383[_0x20c3c7(0xb4)][_0x20c3c7(0x106)](_0xf5b168))['map'](({eventProperty:_0x4c89a0})=>_0x4c89a0);return _0x16cf67[_0x20c3c7(0x122)]>0x0?_0x20c3c7(0x10a)+_0x927d90+'\x20has\x20invalid\x20eventProperties:\x20'+_0x16cf67[_0x20c3c7(0xb0)](',\x20')+'.':_0x4239fd['map'](({eventProperty:_0x5e5c78,value:_0x3e18d2})=>({'eventPropertyId':_0x33a383[_0x20c3c7(0xb4)][_0x5e5c78]['id'],'value':_0x3e18d2}));},ve=new WeakSet(),gt=function(_0x430f29){return{'customerId':u(this,I),'events':[_0x430f29]};},Q=new WeakSet(),Ue=function(_0x11400b){return a(this,null,function*(){const _0x4b363b=_0x47b9;try{return(yield S[_0x4b363b(0xbc)](''+Te+Qe,_0x11400b))[_0x4b363b(0x10e)];}catch(_0x1358f3){throw new Error('Error\x20posting\x20event\x20record');}});},Ie=new WeakSet(),dt=function(_0x1b847d){const _0x402e81=_0x19d8fe;return _0x1b847d===_0x402e81(0x12d);},he=new WeakSet(),Et=function(_0x35ccd1){const _0x288c3a=_0x19d8fe;let _0x30d1eb=JSON[_0x288c3a(0xb7)](localStorage[_0x288c3a(0x9f)](_0x288c3a(0x131))||'{}');_0x30d1eb[_0x35ccd1[_0x288c3a(0x103)]]=Se(Y({},_0x35ccd1),{'initialTime':new Date()[_0x288c3a(0x99)](),'page':window[_0x288c3a(0xce)]['hostname']+window[_0x288c3a(0xce)][_0x288c3a(0xdc)]}),localStorage[_0x288c3a(0xd4)](_0x288c3a(0x131),JSON['stringify'](_0x30d1eb));},j=new WeakSet(),Ne=function(){const _0x264cf9=_0x19d8fe;localStorage['removeItem']('action'),localStorage[_0x264cf9(0xc1)](_0x264cf9(0xe5)),localStorage[_0x264cf9(0xc1)](_0x264cf9(0x112)),localStorage[_0x264cf9(0xc1)]('offlineEvents'),localStorage[_0x264cf9(0xc1)](_0x264cf9(0xad)),localStorage[_0x264cf9(0xc1)]('session');},q=new WeakSet(),xe=function(){return a(this,null,function*(){const _0x3b429e=_0x47b9;localStorage[_0x3b429e(0x9f)](_0x3b429e(0x112))||(yield o(this,k,Le)[_0x3b429e(0xff)](this));});},z=new WeakSet(),Ce=function(_0x10b994){return a(this,null,function*(){const _0xc17935=_0x47b9;try{return yield S[_0xc17935(0xbc)](''+fe+Ke,_0x10b994);}catch(_0x497399){throw new Error(_0xc17935(0xb6));}});},i(b,P,void 0x0);var Re=b,mt=Re[_0x19d8fe(0x12c)](),Ot=mt;
|
|
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;
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x54fc34=_0x2687;(function(_0x258433,_0x7fc046){const _0x39965c=_0x2687,_0x400d08=_0x258433();while(!![]){try{const _0x419eb6=parseInt(_0x39965c(0x13f))/0x1*(-parseInt(_0x39965c(0x120))/0x2)+-parseInt(_0x39965c(0x125))/0x3+parseInt(_0x39965c(0x147))/0x4*(-parseInt(_0x39965c(0x101))/0x5)+-parseInt(_0x39965c(0x177))/0x6*(-parseInt(_0x39965c(0x10f))/0x7)+parseInt(_0x39965c(0x148))/0x8*(-parseInt(_0x39965c(0x16b))/0x9)+-parseInt(_0x39965c(0x10a))/0xa*(parseInt(_0x39965c(0x106))/0xb)+parseInt(_0x39965c(0x121))/0xc;if(_0x419eb6===_0x7fc046)break;else _0x400d08['push'](_0x400d08['shift']());}catch(_0x329969){_0x400d08['push'](_0x400d08['shift']());}}}(_0x4751,0x6ac82));var pt=Object['defineProperty'],gt=Object[_0x54fc34(0x17e)],dt=Object[_0x54fc34(0x136)],De=Object['getOwnPropertySymbols'],Et=Object[_0x54fc34(0x132)][_0x54fc34(0x140)],mt=Object[_0x54fc34(0x132)][_0x54fc34(0x11c)],_e=(_0x49b188,_0x14966d,_0xfe254a)=>_0x14966d in _0x49b188?pt(_0x49b188,_0x14966d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xfe254a}):_0x49b188[_0x14966d]=_0xfe254a,z=(_0x513efe,_0x206f91)=>{const _0x257d51=_0x54fc34;for(var _0x5af9c3 in _0x206f91||(_0x206f91={}))Et[_0x257d51(0x16d)](_0x206f91,_0x5af9c3)&&_e(_0x513efe,_0x5af9c3,_0x206f91[_0x5af9c3]);if(De){for(var _0x5af9c3 of De(_0x206f91))mt[_0x257d51(0x16d)](_0x206f91,_0x5af9c3)&&_e(_0x513efe,_0x5af9c3,_0x206f91[_0x5af9c3]);}return _0x513efe;},Ie=(_0x3d1434,_0x5ea505)=>gt(_0x3d1434,dt(_0x5ea505)),he=(_0x366afc,_0x2f6f3a,_0x44165d)=>{if(!_0x2f6f3a['has'](_0x366afc))throw TypeError('Cannot\x20'+_0x44165d);},u=(_0xff25c6,_0x4a3594,_0x554aaf)=>(he(_0xff25c6,_0x4a3594,_0x54fc34(0xf8)),_0x554aaf?_0x554aaf[_0x54fc34(0x16d)](_0xff25c6):_0x4a3594[_0x54fc34(0x149)](_0xff25c6)),n=(_0x25c6cc,_0x3e0b8c,_0x4917d1)=>{const _0x5ae98c=_0x54fc34;if(_0x3e0b8c[_0x5ae98c(0x11e)](_0x25c6cc))throw TypeError(_0x5ae98c(0x163));_0x3e0b8c instanceof WeakSet?_0x3e0b8c[_0x5ae98c(0x116)](_0x25c6cc):_0x3e0b8c['set'](_0x25c6cc,_0x4917d1);},E=(_0x3a8973,_0x54cf4c,_0x17bf11,_0x11cd81)=>(he(_0x3a8973,_0x54cf4c,_0x54fc34(0x143)),_0x11cd81?_0x11cd81[_0x54fc34(0x16d)](_0x3a8973,_0x17bf11):_0x54cf4c[_0x54fc34(0x103)](_0x3a8973,_0x17bf11),_0x17bf11),Ve=(_0x2d3c3e,_0x4a41d3,_0x119884,_0x3c7178)=>({set '_'(_0x45312d){E(_0x2d3c3e,_0x4a41d3,_0x45312d,_0x119884);},get '_'(){return u(_0x2d3c3e,_0x4a41d3,_0x3c7178);}}),r=(_0x8fe9d4,_0x1e5681,_0x4a9d0d)=>(he(_0x8fe9d4,_0x1e5681,_0x54fc34(0x152)),_0x4a9d0d),a=(_0x38bb97,_0x584764,_0x2a5f71)=>new Promise((_0x58cab4,_0x18e178)=>{const _0x368e9c=_0x54fc34;var _0x51c78f=_0x4fdaa9=>{const _0x35e4bb=_0x2687;try{_0x2498b5(_0x2a5f71[_0x35e4bb(0x119)](_0x4fdaa9));}catch(_0x403d76){_0x18e178(_0x403d76);}},_0x17d6d3=_0x383dad=>{const _0x389c03=_0x2687;try{_0x2498b5(_0x2a5f71[_0x389c03(0x138)](_0x383dad));}catch(_0x4c989c){_0x18e178(_0x4c989c);}},_0x2498b5=_0x23b943=>_0x23b943[_0x368e9c(0x13c)]?_0x58cab4(_0x23b943['value']):Promise[_0x368e9c(0x16a)](_0x23b943['value'])[_0x368e9c(0x15a)](_0x51c78f,_0x17d6d3);_0x2498b5((_0x2a5f71=_0x2a5f71[_0x368e9c(0xf9)](_0x38bb97,_0x584764))[_0x368e9c(0x119)]());});import{v4 as _0x4647b9}from'uuid';var O=_0x54fc34(0x157),Me=_0x54fc34(0x115),Be=_0x54fc34(0x137),Se=_0x54fc34(0x129),Fe=_0x54fc34(0x12d),ye=_0x54fc34(0x146),$e=_0x54fc34(0x179),Je='/customer',ke=_0x54fc34(0xe8);import _0x2c9336 from'axios';import{AxiosQueueManager as _0x13587a}from'axios-queue-js';function _0x2687(_0x4c72ed,_0x544822){const _0x47514c=_0x4751();return _0x2687=function(_0x2687ff,_0x2c709b){_0x2687ff=_0x2687ff-0xe8;let _0x1cf92d=_0x47514c[_0x2687ff];return _0x1cf92d;},_0x2687(_0x4c72ed,_0x544822);}function _0x4751(){const _0x363167=['post','Popup\x20Viewed','add','HTTP\x20Status:\x20','popup_container_','next','preventDefault','URL','propertyIsEnumerable','getItem','has','platform','130MjIFDF','17775180pSeIAH','Viewed\x20Web\x20Page','AxiosError:\x20','response','791631OHpjdp','recordAttribute','setItem','getTime','/attribute','showErrorLog','filter','length','/record-attribute','[id^=\x22u_content_form_\x22]','offline','addEventListener','keys','prototype','Image\x20Click','updateAttribute','Max\x20retries\x20reached.\x20Disabling\x20SDK.','getOwnPropertyDescriptors','https://u23z4zsda8.execute-api.ap-southeast-1.amazonaws.com/Prod','throw','recordEvent','Form\x20Submit','scrollHeight','done','create','campaignId','2918ixVvtl','hasOwnProperty','record\x20event','documentElement','write\x20to\x20private\x20field','SCROLL','Error\x20setting\x20identity','/event','8qkRpLh','15832TKSvDm','get','.u-popup-container\x20img','eventProperty','OriginateFrom:\x20','Error\x20posting\x20attribute\x20record','map','session','common','pathname','access\x20private\x20method','click','init','Customer\x20Id','campaignEntryTimeValue','Popup\x20Action','push','campaignCustomerInstanceId','then','onLine','online','disableSDK','close','customer','\x20has\x20invalid\x20eventProperties:\x20','updateAPIKey','parse','Cannot\x20add\x20the\x20same\x20private\x20member\x20more\x20than\x20once','createElement','value','offlineEvents','innerHeight','isInitialized','events','resolve','1701mWKZhc','User\x20Logout','call','Error\x20fetching\x20attribute\x20data','application/json','load','location','appendChild','message','action','forEach','join','186sqHgbZ','beforeunload','/record-event','error','log','name','DELAY','defineProperties','uniqueIdentity','hostname','querySelectorAll','/set-identity','request','string','Mergn\x20is\x20offline!','MergnError:\x20','User\x20Login','ttl','logout','\x0aNo\x20response\x20received.\x20Check\x20network\x20connection\x20or\x20server\x20issues.','campaignEntryTime','Error\x20fetching\x20event\x20data','removeItem','IMMEDIATELY','data','remove','scrollY','read\x20from\x20private\x20field','apply','initialTime','brand','stringify','defaults','\x20is\x20not\x20valid.','scroll','Error\x20setting\x20up\x20the\x20request:','1311955dbzlLb','MergnError','set','Campaign\x20Id','Close\x20Click','24035fCmKxe','Authorization','identity','apiKey','1700aGRTPn','pushState','UTM\x20Key\x20Value','[id^=\x22u_content_button_\x22]','Event\x20','153531NebDss','search','attributes','page','form'];_0x4751=function(){return _0x363167;};return _0x4751();}import _0xc82a33 from'axios-retry';import{AxiosError as _0x3066b3}from'axios';var l=class extends Error{constructor(_0x5049a7){const _0x2d1259=_0x54fc34;super(_0x5049a7),this[_0x2d1259(0x17c)]=_0x2d1259(0x102);}};l[_0x54fc34(0x15d)]=!0x1,l[_0x54fc34(0x12f)]=!navigator[_0x54fc34(0x15b)],l[_0x54fc34(0x12a)]=!0x1,l[_0x54fc34(0x168)]=!0x1;var It=(_0x28c043,_0x23fbad)=>{const _0x5e71fd=_0x54fc34;_0x23fbad instanceof l?console['error'](_0x5e71fd(0x14c)+_0x28c043,_0x5e71fd(0xec)+_0x23fbad[_0x5e71fd(0x173)]):_0x23fbad instanceof _0x3066b3?(console[_0x5e71fd(0x17a)]('OriginateFrom:\x20'+_0x28c043,_0x5e71fd(0x123)+_0x23fbad[_0x5e71fd(0x173)]),_0x23fbad['response']?(console[_0x5e71fd(0x17a)](_0x5e71fd(0x14c)+_0x28c043,_0x5e71fd(0x117)+_0x23fbad[_0x5e71fd(0x124)]['status']),console[_0x5e71fd(0x17a)](_0x5e71fd(0x14c)+_0x28c043,'Response\x20Data:',_0x23fbad['response'][_0x5e71fd(0xf5)])):_0x23fbad[_0x5e71fd(0xe9)]?console[_0x5e71fd(0x17a)](_0x5e71fd(0x14c)+_0x28c043+_0x5e71fd(0xf0)):console[_0x5e71fd(0x17a)](_0x5e71fd(0x14c)+_0x28c043,_0x5e71fd(0x100),_0x23fbad[_0x5e71fd(0x173)])):_0x23fbad instanceof Error?console[_0x5e71fd(0x17a)](_0x5e71fd(0x14c)+_0x28c043,'Unexpected\x20error:',_0x23fbad['message']):console[_0x5e71fd(0x17a)](_0x5e71fd(0x14c)+_0x28c043,'Unexpected\x20error:',String(_0x23fbad));},f=(_0x35e646,_0x2b7147,_0x4d73f1)=>a(void 0x0,null,function*(){const _0x2324cf=_0x54fc34;try{if(l['disableSDK'])throw new l('Mergn\x20SDK\x20is\x20disabled!');if(_0x35e646!==_0x2324cf(0x141)&&l[_0x2324cf(0x12f)])throw new l(_0x2324cf(0xeb));if(_0x35e646!=='init'&&!l[_0x2324cf(0x168)])throw new l('Mergn\x20not\x20initialized!');return yield _0x2b7147();}catch(_0x8af526){return _0x4d73f1?_0x4d73f1(_0x8af526):l[_0x2324cf(0x12a)]&&It(_0x35e646,_0x8af526),null;}}),T,U,N,x,Y,C,Te,H,Ke,d=class d{constructor(){const _0x291864=_0x54fc34;n(this,Y,0x0);let _0x56a28d=_0x2c9336[_0x291864(0x13d)]({'baseURL':Be,'headers':{'Content-Type':_0x291864(0x16f)}});E(d,U,_0x56a28d),E(d,N,new _0x13587a({'client':_0x56a28d,'queueSize':0xa})),_0xc82a33(_0x56a28d,{'onRetry':_0x13bdc5=>{const _0x322873=_0x291864;_0x13bdc5>=u(d,x)?(l[_0x322873(0x12a)]&&console[_0x322873(0x17b)](_0x322873(0x135)),l[_0x322873(0x15d)]=!0x0):Ve(this,Y)['_']++;},'retries':u(d,x),'retryDelay':_0x5eb6c7=>_0x5eb6c7*0x1388});}static['updateAPIKey'](_0x298fee){const _0x46520b=_0x54fc34;this[_0x46520b(0x109)]=_0x298fee,r(this,H,Ke)[_0x46520b(0x16d)](this)[_0x46520b(0xfd)]['headers'][_0x46520b(0x150)][_0x46520b(0x107)]=_0x298fee;}static[_0x54fc34(0x149)](_0x5d9b6e){const _0x2a6bf6=_0x54fc34;return r(this,C,Te)[_0x2a6bf6(0x16d)](this)['get'](_0x5d9b6e);}static['post'](_0x34cd50,_0x10ba4e){const _0x5e6dac=_0x54fc34;return r(this,C,Te)['call'](this)[_0x5e6dac(0x114)](_0x34cd50,_0x10ba4e||{});}};T=new WeakMap(),U=new WeakMap(),N=new WeakMap(),x=new WeakMap(),Y=new WeakMap(),C=new WeakSet(),Te=function(){return u(d,T)||E(d,T,new d()),u(d,N);},H=new WeakSet(),Ke=function(){return u(d,T)||E(d,T,new d()),u(d,U);},n(d,C),n(d,H),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,Qe,Z,je,ee,qe,te,$,re,oe,ze,ne,Ye,ie,He,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,Q,Ue,j,Ne,q,xe,b=class b{constructor(){const _0x369dc2=_0x54fc34;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,Q),n(this,j),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 _0x2d658b=_0x2687;let _0x5ba24b=()=>{const _0x392967=_0x2687;let _0x1e9347=JSON[_0x392967(0x162)](localStorage[_0x392967(0x11d)](_0x392967(0x174))||'{}');Object[_0x392967(0x131)](_0x1e9347)[_0x392967(0x175)](_0x3a3d2c=>{const _0x39a4de=_0x392967;_0x1e9347[_0x3a3d2c]['initialTime']=new Date()[_0x39a4de(0x128)](),_0x1e9347[_0x3a3d2c][_0x39a4de(0x112)]=window[_0x39a4de(0x171)]['hostname']+window['location'][_0x39a4de(0x151)];}),localStorage[_0x392967(0x127)](_0x392967(0x174),JSON['stringify'](_0x1e9347));};_0x5ba24b(),window[_0x2d658b(0x130)](_0x2d658b(0x178),_0x5ba24b);}),n(this,$,_0x3f88bb=>{const _0x3eb4a7=_0x2687;let _0x45a1c1=JSON[_0x3eb4a7(0x162)](localStorage['getItem'](_0x3eb4a7(0x174))||'{}');_0x45a1c1[_0x3f88bb]&&delete _0x45a1c1[_0x3f88bb],localStorage[_0x3eb4a7(0x127)](_0x3eb4a7(0x174),JSON[_0x3eb4a7(0xfc)](_0x45a1c1));}),n(this,re,()=>{const _0x156056=_0x2687;let _0x233d77=JSON[_0x156056(0x162)](localStorage['getItem'](_0x156056(0x174))||'{}');Object[_0x156056(0x131)](_0x233d77)[_0x156056(0x175)](_0x28381e=>{const _0x15c136=_0x156056;_0x233d77[_0x28381e][_0x15c136(0x173)]['name']==='Popup'&&r(this,k,Le)[_0x15c136(0x16d)](this,_0x233d77[_0x28381e][_0x15c136(0x13e)]);});}),E(this,V,navigator[_0x369dc2(0x11f)]);}static['getInstance'](){return u(b,P)||E(b,P,new b()),u(b,P);}[_0x54fc34(0x154)](_0x2876b8){const _0x22a752=_0x54fc34;f(_0x22a752(0x154),()=>a(this,null,function*(){const _0x18249a=_0x22a752;r(this,X,Qe)['call'](this,_0x2876b8),yield r(this,B,Re)['call'](this),setInterval(()=>a(this,null,function*(){yield r(this,B,Re)['call'](this);}),0x493e0);let _0x156892=localStorage['getItem'](_0x18249a(0xee)),_0x2ccd04=!0x1;_0x156892?(_0x2ccd04=new Date()[_0x18249a(0x128)]()-parseInt(_0x156892,0xa)>0x1b7740,_0x2ccd04&&r(this,Q,Ue)[_0x18249a(0x16d)](this)):localStorage[_0x18249a(0x127)]('ttl',''+new Date()[_0x18249a(0x128)]()),(!_0x156892||_0x2ccd04||r(this,Z,je)[_0x18249a(0x16d)](this))&&(r(this,oe,ze)['call'](this),yield r(this,A,G)[_0x18249a(0x16d)](this),yield r(this,ee,qe)['call'](this)),window[_0x18249a(0x130)](_0x18249a(0x15c),()=>a(this,null,function*(){const _0x23889e=_0x18249a;l[_0x23889e(0x12f)]=!0x1;let _0x176970=JSON[_0x23889e(0x162)](localStorage[_0x23889e(0x11d)](_0x23889e(0x166))||'[]');Array['isArray'](_0x176970)&&(yield r(this,K,Oe)[_0x23889e(0x16d)](this,{'customerId':u(this,I),'events':_0x176970}),localStorage[_0x23889e(0xf3)]('offlineEvents'));})),window[_0x18249a(0x130)](_0x18249a(0x12f),()=>{const _0x12477b=_0x18249a;l[_0x12477b(0x12f)]=!0x0;}),window[_0x18249a(0x130)](_0x18249a(0x170),()=>{u(this,re)['call'](this);}),l[_0x18249a(0x168)]=!0x0;let _0x2f362a=history[_0x18249a(0x10b)];history[_0x18249a(0x10b)]=(..._0x2de1a4)=>{_0x2f362a['apply'](history,_0x2de1a4),r(this,F,Pe)['call'](this);},r(this,F,Pe)[_0x18249a(0x16d)](this);}));}[_0x54fc34(0x12a)](_0xe7fc76=!0x1){const _0x527084=_0x54fc34;l[_0x527084(0x12a)]=_0xe7fc76;}[_0x54fc34(0x126)](_0x28c4d7){return a(this,null,function*(){const _0xb945c2=_0x2687;yield f(_0xb945c2(0x126),()=>a(this,null,function*(){const _0x480c86=_0xb945c2;yield r(this,j,Ne)[_0x480c86(0x16d)](this);let _0x3f219e=JSON[_0x480c86(0x162)](localStorage[_0x480c86(0x11d)](_0x480c86(0x111))||'[]');if(_0x3f219e&&Object[_0x480c86(0x131)](_0x3f219e)['length']>0x0){let _0x2c5a69=[];_0x28c4d7&&Object[_0x480c86(0x131)](_0x28c4d7)[_0x480c86(0x12c)]>0x0&&Object[_0x480c86(0x131)](_0x28c4d7)['forEach'](_0x31126e=>{_0x3f219e['hasOwnProperty'](_0x31126e)&&_0x2c5a69['push']({'attributeId':_0x3f219e[_0x31126e]['id'],'attributeProperties':[],'value':_0x28c4d7[_0x31126e]});});let _0x4328c8=[{'attributes':_0x2c5a69,'customerId':u(this,I)}];yield r(this,q,xe)[_0x480c86(0x16d)](this,_0x4328c8);}}));});}['login'](_0x533464){return a(this,null,function*(){yield f('login',()=>a(this,null,function*(){const _0x2c1cd6=_0x2687;yield r(this,A,G)[_0x2c1cd6(0x16d)](this,_0x533464),yield this[_0x2c1cd6(0x139)](_0x2c1cd6(0xed),[{'eventProperty':_0x2c1cd6(0x155),'value':localStorage[_0x2c1cd6(0x11d)](_0x2c1cd6(0x15f))||0x0}]);}));});}[_0x54fc34(0x134)](_0x523aa6,_0x826b39,_0x5ee60b){return a(this,null,function*(){const _0x259a27=_0x2687;yield r(this,j,Ne)[_0x259a27(0x16d)](this);let _0x279f05=JSON[_0x259a27(0x162)](localStorage[_0x259a27(0x11d)](_0x259a27(0x111))||'{}');if(_0x279f05&&Object['keys'](_0x279f05)[_0x259a27(0x12c)]>0x0&&_0x279f05['hasOwnProperty'](_0x523aa6)){let _0x3fe3fd=_0x279f05[_0x523aa6],_0x389767=_0x3fe3fd['attributeProperty'],_0x174213=[];_0x5ee60b&&Object[_0x259a27(0x131)](_0x5ee60b)[_0x259a27(0x12c)]>0x0&&Object[_0x259a27(0x131)](_0x5ee60b)[_0x259a27(0x175)](_0x45416d=>{const _0x14ebfc=_0x259a27;_0x389767['hasOwnProperty'](_0x45416d)&&_0x174213[_0x14ebfc(0x158)]({'attributePropertyId':_0x389767[_0x45416d]['id'],'value':_0x5ee60b[_0x45416d]});});let _0x1a5371=[{'attributes':[{'attributeId':_0x3fe3fd['id'],'attributeProperties':_0x174213,'value':_0x826b39}],'customerId':u(this,I)}];yield r(this,q,xe)['call'](this,_0x1a5371);}});}[_0x54fc34(0xef)](){return a(this,null,function*(){yield f('logout',()=>a(this,null,function*(){const _0x25ab05=_0x2687;r(this,Q,Ue)[_0x25ab05(0x16d)](this),this[_0x25ab05(0x139)](_0x25ab05(0x16c),[{'eventProperty':_0x25ab05(0x155),'value':localStorage['getItem']('customer')||0x0}]);}));});}['recordEvent'](_0x21c22c,_0x3b7307){const _0x2ef4a4=_0x54fc34;f(_0x2ef4a4(0x141),()=>a(this,null,function*(){yield r(this,y,w)['call'](this,_0x21c22c,_0x3b7307);}));}};P=new WeakMap(),I=new WeakMap(),D=new WeakMap(),_=new WeakMap(),V=new WeakMap(),M=new WeakMap(),y=new WeakSet(),w=function(_0x132d6e,_0x328034,_0x434e96,_0x1f2c1b){return a(this,null,function*(){const _0x5e4d3=_0x2687;yield f(_0x5e4d3(0x141),()=>a(this,null,function*(){const _0x19afc6=_0x5e4d3;var _0x4e43e0;let _0x9b5044=r(this,ge,rt)[_0x19afc6(0x16d)](this),_0x1463be=r(this,de,ot)[_0x19afc6(0x16d)](this,_0x9b5044,_0x132d6e,_0x328034);if(typeof _0x1463be==_0x19afc6(0xea)){l[_0x19afc6(0x12a)]&&console[_0x19afc6(0x17a)](_0x1463be);return;}let {id:_0x5aef4a}=_0x9b5044[_0x132d6e],_0x259261=r(this,Ee,nt)[_0x19afc6(0x16d)](this,z(Ie(z({},_0x434e96?{'campaignCustomerInstanceId':_0x434e96}:{}),{'eventId':_0x5aef4a,'eventProperties':_0x1463be,'sessionId':localStorage[_0x19afc6(0x11d)](_0x19afc6(0x14f))||''}),_0x1f2c1b?{'name':_0x1f2c1b}:{}));if(l[_0x19afc6(0x12f)]){let _0x567e8d=JSON['parse'](localStorage[_0x19afc6(0x11d)](_0x19afc6(0x166))||'[]');_0x567e8d[_0x19afc6(0x12c)]<=0x32&&(_0x567e8d[_0x19afc6(0x158)](..._0x259261[_0x19afc6(0x169)]),localStorage[_0x19afc6(0x127)](_0x19afc6(0x166),JSON[_0x19afc6(0xfc)](_0x567e8d)));return;}let _0x1a3fb7=yield r(this,K,Oe)['call'](this,_0x259261);(_0x4e43e0=_0x1a3fb7==null?void 0x0:_0x1a3fb7[_0x19afc6(0xf5)])==null||_0x4e43e0[_0x19afc6(0x175)](_0xc1a374=>{const _0x647092=_0x19afc6;r(this,me,it)[_0x647092(0x16d)](this,_0xc1a374[_0x647092(0x173)][_0x647092(0x17c)])&&(r(this,ve,st)['call'](this,_0xc1a374),u(this,te)['call'](this),r(this,k,Le)[_0x647092(0x16d)](this,_0xc1a374[_0x647092(0x13e)]));});}));});},B=new WeakSet(),Re=function(){return a(this,null,function*(){const _0x20c677=_0x2687;try{yield S[_0x20c677(0x149)](_0x20c677(0xfb));}catch(_0x30121b){l[_0x20c677(0x15d)]=!0x0,l[_0x20c677(0x12a)]&&console['error'](_0x30121b[_0x20c677(0x173)]);}});},F=new WeakSet(),Pe=function(){return a(this,null,function*(){const _0x2715df=_0x2687;let _0x580f73=window[_0x2715df(0x171)][_0x2715df(0x180)]+window['location'][_0x2715df(0x151)];yield this['recordEvent'](_0x2715df(0x122),[{'eventProperty':_0x2715df(0x11b),'value':_0x580f73}]),_0x580f73!==u(this,M)&&(E(this,M,_0x580f73),new URLSearchParams(new URL(window[_0x2715df(0x171)]['href'])[_0x2715df(0x110)])[_0x2715df(0x175)]((_0x2a4bae,_0x2823a5)=>a(this,null,function*(){const _0x538863=_0x2715df;yield this[_0x538863(0x139)](_0x538863(0x122),[{'eventProperty':_0x538863(0x10c),'value':_0x2823a5+':'+_0x2a4bae}]);})));});},X=new WeakSet(),Qe=function(_0x143e72){const _0x1ed665=_0x54fc34;S[_0x1ed665(0x161)](_0x143e72);},Z=new WeakSet(),je=function(){const _0x3e7fa3=_0x54fc34;return!localStorage['getItem']('events')||!localStorage[_0x3e7fa3(0x11d)]('customer')||!localStorage['getItem'](_0x3e7fa3(0x111))||!localStorage[_0x3e7fa3(0x11d)](_0x3e7fa3(0x17f))||!localStorage[_0x3e7fa3(0x11d)](_0x3e7fa3(0x14f))||!u(this,I);},ee=new WeakSet(),qe=function(){return a(this,null,function*(){const _0x2a360e=_0x2687;yield r(this,ne,Ye)['call'](this),yield r(this,J,Ae)[_0x2a360e(0x16d)](this),yield r(this,A,G)[_0x2a360e(0x16d)](this);});},te=new WeakMap(),$=new WeakMap(),re=new WeakMap(),oe=new WeakSet(),ze=function(){const _0x457f65=_0x54fc34;let _0x5c7006=localStorage[_0x457f65(0x11d)](_0x457f65(0x17f));return _0x5c7006||(_0x5c7006=_0x4647b9(),localStorage[_0x457f65(0x127)](_0x457f65(0x17f),_0x5c7006)),_0x5c7006;},ne=new WeakSet(),Ye=function(){return a(this,null,function*(){const _0x3a78ca=_0x2687;if(!localStorage[_0x3a78ca(0x11d)]('events')){let _0x5242be=(yield r(this,ie,He)['call'](this))[_0x3a78ca(0xf5)];_0x5242be&&(E(this,D,_0x5242be),localStorage['setItem']('events',JSON[_0x3a78ca(0xfc)](u(this,D))));}});},ie=new WeakSet(),He=function(){return a(this,null,function*(){const _0x2ec5f9=_0x2687;try{return(yield S[_0x2ec5f9(0x149)](''+ye))[_0x2ec5f9(0xf5)];}catch(_0x39a172){throw new Error(_0x2ec5f9(0xf2));}});},J=new WeakSet(),Ae=function(){return a(this,null,function*(){const _0x49d519=_0x2687;if(!localStorage[_0x49d519(0x11d)](_0x49d519(0x111))){let _0x3b30ba=(yield r(this,se,Ge)[_0x49d519(0x16d)](this))[_0x49d519(0xf5)];_0x3b30ba&&(E(this,_,_0x3b30ba),localStorage['setItem'](_0x49d519(0x111),JSON[_0x49d519(0xfc)](u(this,_))));}});},se=new WeakSet(),Ge=function(){return a(this,null,function*(){const _0x2180c3=_0x2687;try{return(yield S[_0x2180c3(0x149)](''+Se))['data'];}catch(_0x46002a){throw new Error(_0x2180c3(0x16e));}});},A=new WeakSet(),G=function(_0x5106ea){return a(this,null,function*(){const _0x57833c=_0x2687;localStorage[_0x57833c(0x11d)](_0x57833c(0x14f))||localStorage['setItem']('session',_0x4647b9());let _0x4aba7a=localStorage[_0x57833c(0x11d)](_0x57833c(0x15f));if(!_0x5106ea&&_0x4aba7a){E(this,I,_0x4aba7a);return;}let _0x1e9324={'deviceId':localStorage[_0x57833c(0x11d)](_0x57833c(0x17f))||_0x4647b9(),'os':u(this,V)};_0x5106ea&&(_0x1e9324[_0x57833c(0x108)]=_0x5106ea);try{let _0x188d14=(yield r(this,ae,We)[_0x57833c(0x16d)](this,_0x1e9324))[_0x57833c(0xf5)];_0x188d14!==void 0x0&&(E(this,I,_0x188d14),localStorage['setItem'](_0x57833c(0x15f),u(this,I)));}catch(_0x21a38b){throw new Error(_0x57833c(0x145));}});},ae=new WeakSet(),We=function(_0x5e3822){return a(this,null,function*(){try{return(yield S['post'](''+Je+ke,_0x5e3822))['data'];}catch(_0x1b87dd){throw new Error('Error\x20posting\x20identity\x20data');}});},k=new WeakSet(),Le=function(_0x2900b8){const _0x27a5da=_0x54fc34;let _0x381d98=r(this,ce,Xe)[_0x27a5da(0x16d)](this);if(_0x381d98!=null&&_0x381d98[_0x2900b8])switch(_0x381d98[_0x2900b8][_0x27a5da(0xf1)]){case _0x27a5da(0x17d):{r(this,ue,et)[_0x27a5da(0x16d)](this,_0x381d98[_0x2900b8]);break;}case _0x27a5da(0xf4):{r(this,L,W)['call'](this,_0x381d98[_0x2900b8]);break;}case _0x27a5da(0x144):{r(this,le,Ze)[_0x27a5da(0x16d)](this,_0x381d98[_0x2900b8]);break;}default:return;}},ce=new WeakSet(),Xe=function(){const _0x387c91=_0x54fc34;let _0x10a0d0=localStorage['getItem'](_0x387c91(0x174));return _0x10a0d0?JSON['parse'](_0x10a0d0):null;},le=new WeakSet(),Ze=function(_0x3f5904){const _0x4ef238=_0x54fc34;window[_0x4ef238(0x130)](_0x4ef238(0xff),()=>{const _0x54cbf4=_0x4ef238;var _0x8c520d;let _0x2b4998=window[_0x54cbf4(0x167)],_0x3b74ac=document[_0x54cbf4(0x142)][_0x54cbf4(0x13b)];window[_0x54cbf4(0xf7)]/(_0x3b74ac-_0x2b4998)*0x64>(((_0x8c520d=_0x3f5904[_0x54cbf4(0x156)])==null?void 0x0:_0x8c520d[_0x54cbf4(0x165)])||0x0)&&r(this,L,W)[_0x54cbf4(0x16d)](this,_0x3f5904);});},ue=new WeakSet(),et=function(_0x490576){const _0x49b9be=_0x54fc34;var _0x3713de;let _0x435cd4=_0x490576[_0x49b9be(0xfa)]-0x1f4+(((_0x3713de=_0x490576['campaignEntryTimeValue'])==null?void 0x0:_0x3713de[_0x49b9be(0x165)])||0x0)*0x3e8-new Date()[_0x49b9be(0x128)]();_0x435cd4>0x0&&_0x490576[_0x49b9be(0x112)]===window[_0x49b9be(0x171)]['hostname']+window[_0x49b9be(0x171)][_0x49b9be(0x151)]&&setTimeout(()=>{const _0x518b12=_0x49b9be;u(this,$)['call'](this,_0x490576[_0x518b12(0x13e)]),r(this,L,W)['call'](this,_0x490576);},_0x435cd4);},L=new WeakSet(),W=function(_0x225056){const _0x134b3d=_0x54fc34;let _0x56631e=r(this,pe,tt)[_0x134b3d(0x16d)](this,'div',_0x225056);document['body'][_0x134b3d(0x172)](_0x56631e),r(this,y,w)[_0x134b3d(0x16d)](this,Me,[{'eventProperty':_0x134b3d(0x104),'value':_0x225056[_0x134b3d(0x13e)]}],_0x225056[_0x134b3d(0x159)],'view'),u(this,$)['call'](this,_0x225056[_0x134b3d(0x13e)]);},pe=new WeakSet(),tt=function(_0x35551c,_0x4ccee5){const _0x182226=_0x54fc34;var _0x5708b9;let {campaignCustomerInstanceId:_0x3a3a93,campaignId:_0x4ddc9f,message:{design:_0x407cf0}}=_0x4ccee5,_0x511338=document[_0x182226(0x164)](_0x35551c);return _0x511338['id']=_0x182226(0x118)+_0x4ddc9f,_0x511338['innerHTML']=_0x407cf0,_0x511338['querySelectorAll'](_0x182226(0x12e))['forEach']((_0x2f697b,_0x1f3d78)=>{const _0x5bfca2=_0x182226;let _0x52883e=_0x2f697b['querySelector'](_0x5bfca2(0x113));_0x52883e&&_0x52883e[_0x5bfca2(0x130)]('submit',_0x1395a0=>a(this,null,function*(){const _0x2126c4=_0x5bfca2;_0x1395a0[_0x2126c4(0x11a)]();let _0x129494=new FormData(_0x52883e),_0x4942df={};for(let [_0x23f220,_0x1acf58]of _0x129494['entries']())_0x4942df[_0x23f220]=_0x1acf58;yield r(this,y,w)[_0x2126c4(0x16d)](this,O,[{'eventProperty':_0x2126c4(0x13a),'value':JSON[_0x2126c4(0xfc)]({'campaignId':_0x4ddc9f,'formId':_0x2f697b['id'],'formValues':_0x4942df})}],_0x3a3a93,_0x2126c4(0x113));}));}),(_0x5708b9=_0x511338['querySelector']('.u-close-button'))==null||_0x5708b9['addEventListener'](_0x182226(0x153),()=>a(this,null,function*(){const _0x466b48=_0x182226;_0x511338[_0x466b48(0xf6)](),yield r(this,y,w)[_0x466b48(0x16d)](this,O,[{'eventProperty':_0x466b48(0x105),'value':JSON[_0x466b48(0xfc)]({'campaignId':_0x4ddc9f})}],_0x3a3a93,_0x466b48(0x15e));})),_0x511338[_0x182226(0x181)](_0x182226(0x10d))[_0x182226(0x175)](_0x36e936=>{const _0x209f9e=_0x182226;_0x36e936[_0x209f9e(0x130)](_0x209f9e(0x153),()=>a(this,null,function*(){const _0x2aa01c=_0x209f9e;yield r(this,y,w)['call'](this,O,[{'eventProperty':'Button\x20Click','value':JSON['stringify']({'buttonId':_0x36e936['id'],'campaignId':_0x4ddc9f})}],_0x3a3a93,_0x2aa01c(0x153));}));}),_0x511338[_0x182226(0x181)](_0x182226(0x14a))['forEach'](_0x4c1557=>{const _0x6d6d6c=_0x182226;_0x4c1557['addEventListener'](_0x6d6d6c(0x153),()=>a(this,null,function*(){const _0x528e1f=_0x6d6d6c;yield r(this,y,w)[_0x528e1f(0x16d)](this,O,[{'eventProperty':_0x528e1f(0x133),'value':JSON[_0x528e1f(0xfc)]({'campaignId':_0x4ddc9f,'imageClassName':_0x4c1557['className'],'imageId':_0x4c1557['id']})}],_0x3a3a93,_0x528e1f(0x153));}));}),_0x511338;},ge=new WeakSet(),rt=function(){const _0x3b9caf=_0x54fc34;let _0x4959ac=localStorage['getItem'](_0x3b9caf(0x169));return _0x4959ac?JSON[_0x3b9caf(0x162)](_0x4959ac):{};},de=new WeakSet(),ot=function(_0xf196b3,_0x4f0aa3,_0x290bb2){const _0x5c08f8=_0x54fc34;if(!_0xf196b3['hasOwnProperty'](_0x4f0aa3))return'Event\x20'+_0x4f0aa3+_0x5c08f8(0xfe);if(!_0x290bb2)return[];let _0x56cd26=_0xf196b3[_0x4f0aa3];if(!(_0x56cd26!=null&&_0x56cd26['eventProperty']))return'Event\x20'+_0x4f0aa3+'\x20does\x20not\x20have\x20a\x20valid\x20eventProperty.';let _0x13a5ff=_0x290bb2[_0x5c08f8(0x12b)](({eventProperty:_0x2f24d3})=>!_0x56cd26['eventProperty']['hasOwnProperty'](_0x2f24d3))['map'](({eventProperty:_0x3c3b51})=>_0x3c3b51);return _0x13a5ff[_0x5c08f8(0x12c)]>0x0?_0x5c08f8(0x10e)+_0x4f0aa3+_0x5c08f8(0x160)+_0x13a5ff[_0x5c08f8(0x176)](',\x20')+'.':_0x290bb2[_0x5c08f8(0x14e)](({eventProperty:_0x24a2e0,value:_0xe757be})=>({'eventPropertyId':_0x56cd26[_0x5c08f8(0x14b)][_0x24a2e0]['id'],'value':_0xe757be}));},Ee=new WeakSet(),nt=function(_0x1aae2b){return{'customerId':u(this,I),'events':[_0x1aae2b]};},K=new WeakSet(),Oe=function(_0x359d08){return a(this,null,function*(){const _0x144c6a=_0x2687;try{return(yield S[_0x144c6a(0x114)](''+ye+$e,_0x359d08))['data'];}catch(_0x4d16a9){throw new Error('Error\x20posting\x20event\x20record');}});},me=new WeakSet(),it=function(_0x533f1e){return _0x533f1e==='Popup';},ve=new WeakSet(),st=function(_0x2e3743){const _0x3d5ba9=_0x54fc34;let _0x498de5=JSON[_0x3d5ba9(0x162)](localStorage[_0x3d5ba9(0x11d)]('action')||'{}');_0x498de5[_0x2e3743[_0x3d5ba9(0x13e)]]=Ie(z({},_0x2e3743),{'initialTime':new Date()[_0x3d5ba9(0x128)](),'page':window[_0x3d5ba9(0x171)][_0x3d5ba9(0x180)]+window['location'][_0x3d5ba9(0x151)]}),localStorage[_0x3d5ba9(0x127)]('action',JSON[_0x3d5ba9(0xfc)](_0x498de5));},Q=new WeakSet(),Ue=function(){const _0x37493=_0x54fc34;localStorage['removeItem'](_0x37493(0x174)),localStorage[_0x37493(0xf3)](_0x37493(0x169)),localStorage[_0x37493(0xf3)]('attributes'),localStorage[_0x37493(0xf3)]('offlineEvents'),localStorage[_0x37493(0xf3)](_0x37493(0xee)),localStorage['removeItem'](_0x37493(0x14f));},j=new WeakSet(),Ne=function(){return a(this,null,function*(){const _0x59cdbb=_0x2687;localStorage[_0x59cdbb(0x11d)](_0x59cdbb(0x111))||(yield r(this,J,Ae)[_0x59cdbb(0x16d)](this));});},q=new WeakSet(),xe=function(_0x238d3a){return a(this,null,function*(){const _0x2b919a=_0x2687;try{return yield S[_0x2b919a(0x114)](''+Se+Fe,_0x238d3a);}catch(_0x3f2ef5){throw new Error(_0x2b919a(0x14d));}});},n(b,P,void 0x0);var be=b,at=be['getInstance'](),Er=at;export{Er as default};
|
|
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};
|