mergn-webapp-sdk 1.0.2 → 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.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function _0x55ec(_0x16c685,_0x2b5834){const _0x3239fe=_0x3239();return _0x55ec=function(_0x55ec32,_0x58a0e4){_0x55ec32=_0x55ec32-0x103;let _0x13156c=_0x3239fe[_0x55ec32];return _0x13156c;},_0x55ec(_0x16c685,_0x2b5834);}const _0x4df8fc=_0x55ec;(function(_0x584f51,_0x48894f){const _0x3396c8=_0x55ec,_0x630832=_0x584f51();while(!![]){try{const _0x5d130f=-parseInt(_0x3396c8(0x14e))/0x1+-parseInt(_0x3396c8(0x15d))/0x2*(-parseInt(_0x3396c8(0x13f))/0x3)+-parseInt(_0x3396c8(0x15c))/0x4+-parseInt(_0x3396c8(0x140))/0x5*(parseInt(_0x3396c8(0x120))/0x6)+-parseInt(_0x3396c8(0x189))/0x7*(-parseInt(_0x3396c8(0x138))/0x8)+parseInt(_0x3396c8(0x15a))/0x9*(-parseInt(_0x3396c8(0x17e))/0xa)+-parseInt(_0x3396c8(0x15e))/0xb*(-parseInt(_0x3396c8(0x131))/0xc);if(_0x5d130f===_0x48894f)break;else _0x630832['push'](_0x630832['shift']());}catch(_0x4117fc){_0x630832['push'](_0x630832['shift']());}}}(_0x3239,0x76604));var de=Object[_0x4df8fc(0x115)],P=Object[_0x4df8fc(0x137)],pe=Object[_0x4df8fc(0x15f)],ge=Object[_0x4df8fc(0x19c)],Ee=Object['getOwnPropertyDescriptors'],me=Object['getOwnPropertyNames'],Lt=Object[_0x4df8fc(0x19b)],he=Object[_0x4df8fc(0x13d)],Dt=Object['prototype'][_0x4df8fc(0x122)],ye=Object[_0x4df8fc(0x107)][_0x4df8fc(0x16f)],xt=(_0x1fe49d,_0x3a3fda,_0x2ba9df)=>_0x3a3fda in _0x1fe49d?P(_0x1fe49d,_0x3a3fda,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2ba9df}):_0x1fe49d[_0x3a3fda]=_0x2ba9df,gt=(_0x2e4410,_0x718998)=>{for(var _0x528e7 in _0x718998||(_0x718998={}))Dt['call'](_0x718998,_0x528e7)&&xt(_0x2e4410,_0x528e7,_0x718998[_0x528e7]);if(Lt){for(var _0x528e7 of Lt(_0x718998))ye['call'](_0x718998,_0x528e7)&&xt(_0x2e4410,_0x528e7,_0x718998[_0x528e7]);}return _0x2e4410;},Et=(_0x3b40a8,_0x30a070)=>pe(_0x3b40a8,Ee(_0x30a070)),ve=(_0x51b479,_0x321e89)=>{for(var _0x6633c6 in _0x321e89)P(_0x51b479,_0x6633c6,{'get':_0x321e89[_0x6633c6],'enumerable':!0x0});},Ct=(_0x2d8146,_0x556993,_0x3bb896,_0x14f5b3)=>{const _0x56eda7=_0x4df8fc;if(_0x556993&&typeof _0x556993==_0x56eda7(0x130)||typeof _0x556993==_0x56eda7(0x165)){for(let _0x51d807 of me(_0x556993))!Dt['call'](_0x2d8146,_0x51d807)&&_0x51d807!==_0x3bb896&&P(_0x2d8146,_0x51d807,{'get':()=>_0x556993[_0x51d807],'enumerable':!(_0x14f5b3=ge(_0x556993,_0x51d807))||_0x14f5b3['enumerable']});}return _0x2d8146;},_t=(_0x5c6d6f,_0x357dd3,_0x22063a)=>(_0x22063a=_0x5c6d6f!=null?de(he(_0x5c6d6f)):{},Ct(_0x357dd3||!_0x5c6d6f||!_0x5c6d6f[_0x4df8fc(0x19d)]?P(_0x22063a,_0x4df8fc(0x18e),{'value':_0x5c6d6f,'enumerable':!0x0}):_0x22063a,_0x5c6d6f)),fe=_0x3679cd=>Ct(P({},_0x4df8fc(0x19d),{'value':!0x0}),_0x3679cd),mt=(_0x249f69,_0x33a34b,_0x411589)=>{const _0x231087=_0x4df8fc;if(!_0x33a34b[_0x231087(0x185)](_0x249f69))throw TypeError(_0x231087(0x13a)+_0x411589);},u=(_0x2645c1,_0x158347,_0x20808e)=>(mt(_0x2645c1,_0x158347,'read\x20from\x20private\x20field'),_0x20808e?_0x20808e[_0x4df8fc(0x19f)](_0x2645c1):_0x158347['get'](_0x2645c1)),i=(_0x114ff4,_0x1d53a2,_0x3ce04f)=>{const _0x30cd38=_0x4df8fc;if(_0x1d53a2[_0x30cd38(0x185)](_0x114ff4))throw TypeError(_0x30cd38(0x170));_0x1d53a2 instanceof WeakSet?_0x1d53a2[_0x30cd38(0x169)](_0x114ff4):_0x1d53a2[_0x30cd38(0x173)](_0x114ff4,_0x3ce04f);},m=(_0x31680b,_0x4008ea,_0x27d88f,_0x185e0b)=>(mt(_0x31680b,_0x4008ea,'write\x20to\x20private\x20field'),_0x185e0b?_0x185e0b[_0x4df8fc(0x19f)](_0x31680b,_0x27d88f):_0x4008ea[_0x4df8fc(0x173)](_0x31680b,_0x27d88f),_0x27d88f),$t=(_0x907f9b,_0x240e47,_0x310212,_0x19c019)=>({set '_'(_0x91b4f2){m(_0x907f9b,_0x240e47,_0x91b4f2,_0x310212);},get '_'(){return u(_0x907f9b,_0x240e47,_0x19c019);}}),s=(_0x4728ca,_0x25a58f,_0x1dff4c)=>(mt(_0x4728ca,_0x25a58f,_0x4df8fc(0x134)),_0x1dff4c),a=(_0xab7535,_0x330086,_0x5b16f1)=>new Promise((_0x40ca80,_0x5c7f6d)=>{const _0x5e64cf=_0x4df8fc;var _0x25b492=_0x1abe45=>{try{_0x525003(_0x5b16f1['next'](_0x1abe45));}catch(_0x4020ac){_0x5c7f6d(_0x4020ac);}},_0x4cbce5=_0x48e948=>{try{_0x525003(_0x5b16f1['throw'](_0x48e948));}catch(_0x299760){_0x5c7f6d(_0x299760);}},_0x525003=_0x454d71=>_0x454d71[_0x5e64cf(0x108)]?_0x40ca80(_0x454d71[_0x5e64cf(0x14d)]):Promise[_0x5e64cf(0x127)](_0x454d71[_0x5e64cf(0x14d)])[_0x5e64cf(0x139)](_0x25b492,_0x4cbce5);_0x525003((_0x5b16f1=_0x5b16f1[_0x5e64cf(0x17c)](_0xab7535,_0x330086))[_0x5e64cf(0x12f)]());}),Se={};ve(Se,{'default':()=>Te}),module[_0x4df8fc(0x129)]=fe(Se);var ft=require('uuid'),Vt='https://95sidwa5jk.execute-api.ap-southeast-1.amazonaws.com/Prod/sdk-management/api',ht=_0x4df8fc(0x171),Bt=_0x4df8fc(0x16b),q=_0x4df8fc(0x10b),Ft='/record-event',Mt=_0x4df8fc(0x11e),kt=_0x4df8fc(0x153),Jt=_0x4df8fc(0x10d),jt=_t(require('axios')),qt=require('axios-queue-js'),zt=_t(require('axios-retry')),Qt=require('axios'),c=class extends Error{constructor(_0x3a5d63){const _0x23db35=_0x4df8fc;super(_0x3a5d63),this[_0x23db35(0x198)]=_0x23db35(0x195);}};c[_0x4df8fc(0x147)]=!0x1,c[_0x4df8fc(0x16a)]=!navigator[_0x4df8fc(0x17d)],c[_0x4df8fc(0x18b)]=!0x1,c[_0x4df8fc(0x12c)]=!0x1;var Ie=(_0x388813,_0x5b469c)=>{const _0x4e5bb9=_0x4df8fc;_0x5b469c instanceof c?console['error'](_0x4e5bb9(0x126)+_0x388813,_0x4e5bb9(0x12d)+_0x5b469c['message']):_0x5b469c instanceof Qt[_0x4e5bb9(0x167)]?(console['error']('OriginateFrom:\x20'+_0x388813,_0x4e5bb9(0x14c)+_0x5b469c[_0x4e5bb9(0x146)]),_0x5b469c[_0x4e5bb9(0x157)]?(console[_0x4e5bb9(0x10a)](_0x4e5bb9(0x126)+_0x388813,'HTTP\x20Status:\x20'+_0x5b469c[_0x4e5bb9(0x157)]['status']),console[_0x4e5bb9(0x10a)](_0x4e5bb9(0x126)+_0x388813,_0x4e5bb9(0x19e),_0x5b469c[_0x4e5bb9(0x157)]['data'])):_0x5b469c[_0x4e5bb9(0x1a0)]?console['error'](_0x4e5bb9(0x126)+_0x388813+'\x0aNo\x20response\x20received.\x20Check\x20network\x20connection\x20or\x20server\x20issues.'):console[_0x4e5bb9(0x10a)](_0x4e5bb9(0x126)+_0x388813,_0x4e5bb9(0x181),_0x5b469c['message'])):_0x5b469c instanceof Error?console[_0x4e5bb9(0x10a)](_0x4e5bb9(0x126)+_0x388813,'Unexpected\x20error:',_0x5b469c[_0x4e5bb9(0x146)]):console[_0x4e5bb9(0x10a)]('OriginateFrom:\x20'+_0x388813,_0x4e5bb9(0x196),String(_0x5b469c));},S=(_0xa6ba36,_0x18a460,_0x24a1ca)=>a(void 0x0,null,function*(){const _0x70b2cb=_0x4df8fc;try{if(c['disableSDK'])throw new c(_0x70b2cb(0x10e));if(_0xa6ba36!==_0x70b2cb(0x169)&&c[_0x70b2cb(0x16a)])throw new c(_0x70b2cb(0x18a));if(_0xa6ba36!==_0x70b2cb(0x16c)&&!c[_0x70b2cb(0x12c)])throw new c(_0x70b2cb(0x154));return yield _0x18a460();}catch(_0xabe5ea){return _0x24a1ca?_0x24a1ca(_0xabe5ea):c['showErrorLog']&&Ie(_0xa6ba36,_0xabe5ea),null;}}),f,A,U,O,z,N,vt,K,Kt,p=class p{constructor(){const _0x3938e3=_0x4df8fc;i(this,z,0x0);let _0x5100c0=jt['default'][_0x3938e3(0x115)]({'baseURL':Vt,'headers':{'Content-Type':_0x3938e3(0x180)}});m(p,A,_0x5100c0),m(p,U,new qt[(_0x3938e3(0x199))]({'client':_0x5100c0,'queueSize':0xa})),(0x0,zt['default'])(_0x5100c0,{'onRetry':_0x5afc23=>{const _0x3ceb31=_0x3938e3;_0x5afc23>=u(p,O)?(c[_0x3ceb31(0x18b)]&&console[_0x3ceb31(0x163)](_0x3ceb31(0x175)),c[_0x3ceb31(0x147)]=!0x0):$t(this,z)['_']++;},'retries':u(p,O),'retryDelay':_0x155d97=>_0x155d97*0x1388});}static[_0x4df8fc(0x143)](_0x29e257){const _0x20fe8b=_0x4df8fc;this[_0x20fe8b(0x12a)]=_0x29e257,s(this,K,Kt)[_0x20fe8b(0x19f)](this)[_0x20fe8b(0x152)]['headers'][_0x20fe8b(0x161)][_0x20fe8b(0x145)]=_0x29e257;}static[_0x4df8fc(0x125)](_0x424659){const _0x313915=_0x4df8fc;return s(this,N,vt)[_0x313915(0x19f)](this)[_0x313915(0x125)](_0x424659);}static[_0x4df8fc(0x179)](_0x22505b,_0x33881a){const _0x3010f1=_0x4df8fc;return s(this,N,vt)[_0x3010f1(0x19f)](this)['post'](_0x22505b,_0x33881a||{});}};f=new WeakMap(),A=new WeakMap(),U=new WeakMap(),O=new WeakMap(),z=new WeakMap(),N=new WeakSet(),vt=function(){return u(p,f)||m(p,f,new p()),u(p,U);},K=new WeakSet(),Kt=function(){return u(p,f)||m(p,f,new p()),u(p,A);},i(p,N),i(p,K),i(p,f,void 0x0),i(p,A,void 0x0),i(p,U,void 0x0),i(p,O,0x3);var yt=p,y=yt,w,v,L,x,D,C,_,Tt,$,St,H,Yt,W,Ht,G,Wt,X,V,Z,tt,Gt,et,Xt,rt,Zt,B,wt,ot,te,b,Y,it,ee,F,bt,nt,re,st,oe,M,Rt,at,ie,ct,ne,lt,se,k,Pt,ut,ae,dt,ce,pt,le,J,At,Q,Ut,j,Ot,I=class I{constructor(){const _0x567048=_0x4df8fc;i(this,_),i(this,$),i(this,H),i(this,W),i(this,G),i(this,tt),i(this,et),i(this,rt),i(this,B),i(this,ot),i(this,b),i(this,it),i(this,F),i(this,nt),i(this,st),i(this,M),i(this,at),i(this,ct),i(this,lt),i(this,k),i(this,ut),i(this,dt),i(this,pt),i(this,J),i(this,Q),i(this,j),i(this,v,''),i(this,L,void 0x0),i(this,x,void 0x0),i(this,D,void 0x0),i(this,C,null),i(this,X,()=>{const _0x2b85e4=_0x55ec;let _0x1ad5de=()=>{const _0x455a23=_0x55ec;let _0x15abaa=JSON[_0x455a23(0x119)](localStorage[_0x455a23(0x104)](_0x455a23(0x142)));_0x15abaa&&localStorage[_0x455a23(0x186)](_0x455a23(0x142),JSON[_0x455a23(0x164)](Et(gt({},_0x15abaa),{'initialTime':''+new Date()[_0x455a23(0x123)](),'page':window[_0x455a23(0x11d)]['hostname']+window[_0x455a23(0x11d)][_0x455a23(0x128)]})));};_0x1ad5de(),window['addEventListener'](_0x2b85e4(0x187),_0x1ad5de);}),i(this,V,()=>{const _0x36b3a8=_0x55ec;localStorage['removeItem'](_0x36b3a8(0x142));}),i(this,Z,()=>{const _0x12f44f=_0x55ec;let _0x31f6a1=JSON[_0x12f44f(0x119)](localStorage[_0x12f44f(0x104)]('action')||'{}');(_0x31f6a1==null?void 0x0:_0x31f6a1['name'])==='Popup'&&s(this,F,bt)['call'](this);}),m(this,D,navigator[_0x567048(0x160)]);}static[_0x4df8fc(0x13c)](){return u(I,w)||m(I,w,new I()),u(I,w);}[_0x4df8fc(0x16c)](_0xcf40df){const _0x5bafa9=_0x4df8fc;S(_0x5bafa9(0x16c),()=>a(this,null,function*(){const _0x2021e5=_0x5bafa9;s(this,H,Yt)[_0x2021e5(0x19f)](this,_0xcf40df),yield s(this,_,Tt)[_0x2021e5(0x19f)](this),setInterval(()=>a(this,null,function*(){const _0x1f3cab=_0x2021e5;yield s(this,_,Tt)[_0x1f3cab(0x19f)](this);}),0x493e0);let _0x21ec86=localStorage['getItem'](_0x2021e5(0x11a)),_0x4ce69e=!0x1;_0x21ec86&&(_0x4ce69e=new Date()[_0x2021e5(0x123)]()-parseInt(_0x21ec86,0xa)>0x1b7740,_0x4ce69e&&s(this,J,At)[_0x2021e5(0x19f)](this)),(!_0x21ec86||_0x4ce69e||s(this,W,Ht)[_0x2021e5(0x19f)](this))&&(s(this,tt,Gt)[_0x2021e5(0x19f)](this),yield s(this,b,Y)['call'](this),yield s(this,G,Wt)['call'](this)),window[_0x2021e5(0x182)]('online',()=>a(this,null,function*(){const _0x38a445=_0x2021e5;c[_0x38a445(0x16a)]=!0x1;let _0x4798f0=JSON[_0x38a445(0x119)](localStorage[_0x38a445(0x104)](_0x38a445(0x12e))||'[]');Array[_0x38a445(0x13b)](_0x4798f0)&&(yield y[_0x38a445(0x179)](''+q+Mt,[{'customerId':u(this,v),'events':_0x4798f0}]),localStorage[_0x38a445(0x193)](_0x38a445(0x12e)));})),window[_0x2021e5(0x182)](_0x2021e5(0x16a),()=>{c['offline']=!0x0;}),window[_0x2021e5(0x182)](_0x2021e5(0x191),()=>{u(this,Z)['call'](this);}),c['isInitialized']=!0x0;let _0x43d9d6=history[_0x2021e5(0x192)];history[_0x2021e5(0x192)]=(..._0x298ab2)=>{_0x43d9d6['apply'](history,_0x298ab2),s(this,$,St)['call'](this);},s(this,$,St)[_0x2021e5(0x19f)](this);}));}['showErrorLog'](_0x1f02e6=!0x1){const _0x1640e4=_0x4df8fc;c[_0x1640e4(0x18b)]=_0x1f02e6;}['recordAttribute'](_0x11e2ca){return a(this,null,function*(){yield S('recordAttribute',()=>a(this,null,function*(){const _0x2a8ed3=_0x55ec;yield s(this,Q,Ut)[_0x2a8ed3(0x19f)](this);let _0x35c1cd=JSON['parse'](localStorage['getItem']('attributes')||'[]');if(_0x35c1cd&&Object['keys'](_0x35c1cd)[_0x2a8ed3(0x184)]>0x0){let _0x34bf01=[];_0x11e2ca&&Object[_0x2a8ed3(0x183)](_0x11e2ca)[_0x2a8ed3(0x184)]>0x0&&Object['keys'](_0x11e2ca)[_0x2a8ed3(0x162)](_0x42ef9e=>{const _0xc6c03e=_0x2a8ed3;_0x35c1cd[_0xc6c03e(0x122)](_0x42ef9e)&&_0x34bf01[_0xc6c03e(0x110)]({'attributeId':_0x35c1cd[_0x42ef9e]['id'],'attributeProperties':[],'value':_0x11e2ca[_0x42ef9e]});});let _0x8a2390=[{'attributes':_0x34bf01,'customerId':u(this,v)}];yield s(this,j,Ot)[_0x2a8ed3(0x19f)](this,_0x8a2390);}}));});}[_0x4df8fc(0x141)](_0x24372d){return a(this,null,function*(){const _0x5082f7=_0x55ec;yield S(_0x5082f7(0x141),()=>a(this,null,function*(){const _0x51bd8f=_0x5082f7;yield s(this,b,Y)[_0x51bd8f(0x19f)](this,_0x24372d),yield this['recordEvent'](_0x51bd8f(0x112),[{'eventProperty':_0x51bd8f(0x156),'value':localStorage['getItem'](_0x51bd8f(0x194))||0x0}]);}));});}['updateAttribute'](_0x7d0130,_0x348eee,_0x46992f){return a(this,null,function*(){const _0xd8ca6b=_0x55ec;yield s(this,Q,Ut)[_0xd8ca6b(0x19f)](this);let _0x400374=JSON[_0xd8ca6b(0x119)](localStorage[_0xd8ca6b(0x104)](_0xd8ca6b(0x132))||'{}');if(_0x400374&&Object['keys'](_0x400374)[_0xd8ca6b(0x184)]>0x0&&_0x400374[_0xd8ca6b(0x122)](_0x7d0130)){let _0x56975d=_0x400374[_0x7d0130],_0x58fb1f=_0x56975d[_0xd8ca6b(0x168)],_0x593ea6=[];_0x46992f&&Object['keys'](_0x46992f)[_0xd8ca6b(0x184)]>0x0&&Object['keys'](_0x46992f)[_0xd8ca6b(0x162)](_0x188ec4=>{const _0x2e7028=_0xd8ca6b;_0x58fb1f[_0x2e7028(0x122)](_0x188ec4)&&_0x593ea6[_0x2e7028(0x110)]({'attributePropertyId':_0x58fb1f[_0x188ec4]['id'],'value':_0x46992f[_0x188ec4]});});let _0x5de779=[{'attributes':[{'attributeId':_0x56975d['id'],'attributeProperties':_0x593ea6,'value':_0x348eee}],'customerId':u(this,v)}];yield s(this,j,Ot)['call'](this,_0x5de779);}});}[_0x4df8fc(0x176)](){return a(this,null,function*(){const _0x10a032=_0x55ec;yield S(_0x10a032(0x176),()=>a(this,null,function*(){const _0x5d8248=_0x10a032;s(this,J,At)[_0x5d8248(0x19f)](this),this['recordEvent']('User\x20Logout',[{'eventProperty':'Customer\x20Id','value':localStorage['getItem'](_0x5d8248(0x194))||0x0}]);}));});}['recordEvent'](_0x260751,_0x219ed0){return a(this,null,function*(){const _0x289b55=_0x55ec;yield S(_0x289b55(0x169),()=>a(this,null,function*(){const _0x12f35a=_0x289b55;var _0x512db4,_0x265061;let _0x420ff7=s(this,ct,ne)['call'](this),_0x153155=s(this,lt,se)[_0x12f35a(0x19f)](this,_0x420ff7,_0x260751,_0x219ed0);if(typeof _0x153155==_0x12f35a(0x18c)){c[_0x12f35a(0x18b)]&&console['error'](_0x153155);return;}let {id:_0x2314e9}=_0x420ff7[_0x260751];if(c[_0x12f35a(0x16a)]){let _0x26cf8e=JSON['parse'](localStorage[_0x12f35a(0x104)](_0x12f35a(0x12e))||'[]');if(_0x26cf8e['length']<=0x32){let _0x10f76f={'eventId':_0x2314e9};_0x219ed0&&(_0x10f76f[_0x12f35a(0x113)]=_0x153155),_0x26cf8e[_0x12f35a(0x110)](_0x10f76f),localStorage[_0x12f35a(0x186)](_0x12f35a(0x12e),JSON[_0x12f35a(0x164)](_0x26cf8e));}return;}let _0x572a77=_0x219ed0?s(this,k,Pt)['call'](this,_0x2314e9,_0x153155):s(this,k,Pt)[_0x12f35a(0x19f)](this,_0x2314e9),_0xd320f0=yield s(this,ut,ae)['call'](this,_0x572a77);s(this,dt,ce)['call'](this,(_0x512db4=_0xd320f0==null?void 0x0:_0xd320f0[_0x12f35a(0x105)])==null?void 0x0:_0x512db4['data'])&&(s(this,pt,le)[_0x12f35a(0x19f)](this,(_0x265061=_0xd320f0==null?void 0x0:_0xd320f0['data'])==null?void 0x0:_0x265061[_0x12f35a(0x105)]),u(this,X)[_0x12f35a(0x19f)](this),s(this,F,bt)['call'](this));}));});}};function _0x3239(){const _0x395803=['Max\x20retries\x20reached.\x20Disabling\x20SDK.','logout','\x20Values','delay','post','createElement','remove','apply','onLine','10LKUVXE','design','application/json','Error\x20setting\x20up\x20the\x20request:','addEventListener','keys','length','has','setItem','beforeunload','Error\x20posting\x20event\x20record','14yfztLG','Mergn\x20is\x20offline!','showErrorLog','string','\x20does\x20not\x20have\x20a\x20valid\x20eventProperty.','default','campaignId','brand','load','pushState','removeItem','customer','MergnError','Unexpected\x20error:','initialTime','name','AxiosQueueManager','identity','getOwnPropertySymbols','getOwnPropertyDescriptor','__esModule','Response\x20Data:','call','request','URL','getItem','data','.u-popup-container\x20img','prototype','done','map','error','/event','page','/set-identity','Mergn\x20SDK\x20is\x20disabled!','join','push','submit','User\x20Login','eventProperties','.u-close-button','create','eventProperty','Error\x20posting\x20identity\x20data','form','parse','ttl','Popup\x20Button\x20Clicked','Error\x20posting\x20attribute\x20record','location','/record-bulk-event','Error\x20fetching\x20attribute\x20data','30lHQdpK','Form\x20Submit','hasOwnProperty','getTime','Error\x20fetching\x20event\x20data','get','OriginateFrom:\x20','resolve','pathname','exports','apiKey','div','isInitialized','MergnError:\x20','offlineEvents','next','object','17652NtyvQT','attributes','search','access\x20private\x20method','popup_container_','\x20is\x20not\x20valid.','defineProperty','96840jAQisX','then','Cannot\x20','isArray','getInstance','getPrototypeOf','querySelectorAll','234cxxvFM','137285ecoOuw','login','action','updateAPIKey','Campaign\x20Id','Authorization','message','disableSDK','Popup','Viewed\x20Web\x20Page','filter','Popup\x20Image\x20Clicked','AxiosError:\x20','value','624910wyGWUi','hostname','href','recordEvent','defaults','/customer','Mergn\x20not\x20initialized!','click','Customer\x20Id','response','Event\x20',',\x20Value:\x20','6780825iMsNGk','innerHTML','3057264GIYVCi','15128CiejQo','16082MdLLLk','defineProperties','platform','common','forEach','log','stringify','function','body','AxiosError','attributeProperty','add','offline','/record-attribute','init','\x20has\x20invalid\x20eventProperties:\x20','uniqueIdentity','propertyIsEnumerable','Cannot\x20add\x20the\x20same\x20private\x20member\x20more\x20than\x20once','/attribute','[id^=\x22u_content_button_\x22]','set','events'];_0x3239=function(){return _0x395803;};return _0x3239();}w=new WeakMap(),v=new WeakMap(),L=new WeakMap(),x=new WeakMap(),D=new WeakMap(),C=new WeakMap(),_=new WeakSet(),Tt=function(){return a(this,null,function*(){const _0xc7e680=_0x55ec;try{yield y[_0xc7e680(0x125)](_0xc7e680(0x190));}catch(_0x5e25c6){c[_0xc7e680(0x147)]=!0x0,c['showErrorLog']&&console[_0xc7e680(0x10a)](_0x5e25c6[_0xc7e680(0x146)]);}});},$=new WeakSet(),St=function(){return a(this,null,function*(){const _0x40e64d=_0x55ec;let _0x334d6b=window[_0x40e64d(0x11d)][_0x40e64d(0x14f)]+window['location']['pathname'];yield this[_0x40e64d(0x151)](_0x40e64d(0x149),[{'eventProperty':_0x40e64d(0x103),'value':_0x334d6b}]),_0x334d6b!==u(this,C)&&(m(this,C,_0x334d6b),new URLSearchParams(new URL(window[_0x40e64d(0x11d)][_0x40e64d(0x150)])[_0x40e64d(0x133)])[_0x40e64d(0x162)]((_0x50fecc,_0x4cb4bc)=>a(this,null,function*(){const _0x4fdb68=_0x40e64d;yield this[_0x4fdb68(0x151)](_0x4fdb68(0x149),[{'eventProperty':'UTM\x20Key\x20Value','value':_0x4cb4bc+':'+_0x50fecc}]);})));});},H=new WeakSet(),Yt=function(_0x2b3292){const _0x3be596=_0x4df8fc;y[_0x3be596(0x143)](_0x2b3292);},W=new WeakSet(),Ht=function(){const _0x64f9cd=_0x4df8fc;return!localStorage[_0x64f9cd(0x104)](_0x64f9cd(0x174))||!localStorage[_0x64f9cd(0x104)](_0x64f9cd(0x194))||!localStorage[_0x64f9cd(0x104)]('attributes')||!localStorage[_0x64f9cd(0x104)](_0x64f9cd(0x16e));},G=new WeakSet(),Wt=function(){return a(this,null,function*(){const _0x17d47a=_0x55ec;yield s(this,et,Xt)[_0x17d47a(0x19f)](this),yield s(this,B,wt)[_0x17d47a(0x19f)](this),yield s(this,b,Y)[_0x17d47a(0x19f)](this);});},X=new WeakMap(),V=new WeakMap(),Z=new WeakMap(),tt=new WeakSet(),Gt=function(){const _0x4efceb=_0x4df8fc;let _0x802109=localStorage['getItem'](_0x4efceb(0x16e));return _0x802109||(_0x802109=(0x0,ft['v4'])(),localStorage[_0x4efceb(0x186)](_0x4efceb(0x16e),_0x802109)),_0x802109;},et=new WeakSet(),Xt=function(){return a(this,null,function*(){const _0x596c87=_0x55ec;if(!localStorage['getItem'](_0x596c87(0x174))){let _0x28ef81=(yield s(this,rt,Zt)['call'](this))['data'];_0x28ef81&&(m(this,L,_0x28ef81),localStorage['setItem'](_0x596c87(0x174),JSON[_0x596c87(0x164)](u(this,L))));}});},rt=new WeakSet(),Zt=function(){return a(this,null,function*(){const _0x1d9653=_0x55ec;try{return(yield y[_0x1d9653(0x125)](''+q))[_0x1d9653(0x105)];}catch(_0x57f90a){throw new Error(_0x1d9653(0x124));}});},B=new WeakSet(),wt=function(){return a(this,null,function*(){const _0x2c1e9e=_0x55ec;if(!localStorage[_0x2c1e9e(0x104)]('attributes')){let _0x5568b0=(yield s(this,ot,te)[_0x2c1e9e(0x19f)](this))[_0x2c1e9e(0x105)];_0x5568b0&&(m(this,x,_0x5568b0),localStorage[_0x2c1e9e(0x186)](_0x2c1e9e(0x132),JSON[_0x2c1e9e(0x164)](u(this,x))));}});},ot=new WeakSet(),te=function(){return a(this,null,function*(){const _0x38978e=_0x55ec;try{return(yield y['get'](''+ht))[_0x38978e(0x105)];}catch(_0x4e2679){throw new Error(_0x38978e(0x11f));}});},b=new WeakSet(),Y=function(_0x29dd5e){return a(this,null,function*(){const _0x5c134f=_0x55ec;if(!_0x29dd5e){let _0x348e39=localStorage[_0x5c134f(0x104)](_0x5c134f(0x194));if(_0x348e39){m(this,v,_0x348e39);return;}}let _0x4c3676={'deviceId':localStorage[_0x5c134f(0x104)](_0x5c134f(0x16e))||(0x0,ft['v4'])(),'os':u(this,D)};_0x29dd5e&&(_0x4c3676[_0x5c134f(0x19a)]=_0x29dd5e);try{let _0x397447=(yield s(this,it,ee)[_0x5c134f(0x19f)](this,_0x4c3676))[_0x5c134f(0x105)];_0x397447!==void 0x0&&(m(this,v,_0x397447),localStorage[_0x5c134f(0x186)](_0x5c134f(0x194),u(this,v)));}catch(_0x5dd099){throw new Error('Error\x20setting\x20identity');}});},it=new WeakSet(),ee=function(_0x5c6c0b){return a(this,null,function*(){const _0x1c598f=_0x55ec;try{return(yield y['post'](''+kt+Jt,_0x5c6c0b))[_0x1c598f(0x105)];}catch(_0x30af88){throw new Error(_0x1c598f(0x117));}});},F=new WeakSet(),bt=function(){const _0x13a7ce=_0x4df8fc;let _0x4c3ab3=s(this,nt,re)['call'](this);if(_0x4c3ab3){let _0x15c113=_0x4c3ab3[_0x13a7ce(0x17f)],_0x1b4e9e=_0x4c3ab3[_0x13a7ce(0x18f)];_0x4c3ab3[_0x13a7ce(0x178)]?s(this,st,oe)[_0x13a7ce(0x19f)](this,_0x4c3ab3,_0x15c113,_0x1b4e9e):s(this,M,Rt)[_0x13a7ce(0x19f)](this,_0x15c113,_0x1b4e9e);}},nt=new WeakSet(),re=function(){const _0x31daa6=_0x4df8fc;let _0x161b9f=localStorage[_0x31daa6(0x104)](_0x31daa6(0x142));return _0x161b9f?JSON['parse'](_0x161b9f):null;},st=new WeakSet(),oe=function(_0xb27ac5,_0x272194,_0x598403){const _0x2933d7=_0x4df8fc;let _0x3a279d=parseInt(_0xb27ac5[_0x2933d7(0x197)],0xa)+_0xb27ac5['delay']-new Date()[_0x2933d7(0x123)]();_0x3a279d>0x0&&_0xb27ac5[_0x2933d7(0x10c)]===window[_0x2933d7(0x11d)][_0x2933d7(0x14f)]+window[_0x2933d7(0x11d)][_0x2933d7(0x128)]&&setTimeout(()=>{const _0x53342e=_0x2933d7;u(this,V)['call'](this),s(this,M,Rt)[_0x53342e(0x19f)](this,_0x272194,_0x598403);},_0x3a279d);},M=new WeakSet(),Rt=function(_0x74a14,_0x7feba7){const _0x290a13=_0x4df8fc;let _0x3518ea=s(this,at,ie)['call'](this,_0x290a13(0x12b),_0x74a14,_0x7feba7);document[_0x290a13(0x166)]['appendChild'](_0x3518ea),u(this,V)['call'](this);},at=new WeakSet(),ie=function(_0x104306,_0xb8f588,_0x3bda79){const _0x325a61=_0x4df8fc;var _0x1c98d1;let _0x4abb20=document[_0x325a61(0x17a)](_0x104306);return _0x4abb20['id']=_0x325a61(0x135)+_0x3bda79,_0x4abb20[_0x325a61(0x15b)]=_0xb8f588,_0x4abb20[_0x325a61(0x13e)](_0x325a61(0x118))[_0x325a61(0x162)]((_0x1f026d,_0x16c2ea)=>{const _0x98eb3b=_0x325a61;_0x1f026d[_0x98eb3b(0x182)](_0x98eb3b(0x111),_0xef80f8=>a(this,null,function*(){const _0xf88b7c=_0x98eb3b;_0xef80f8['preventDefault']();let _0x4a8cfa=new FormData(_0x1f026d),_0x29dc13={};for(let [_0x275e19,_0x375dcb]of _0x4a8cfa['entries']())_0x29dc13[_0x275e19]=_0x375dcb,console['log']('Name:\x20'+_0x275e19+_0xf88b7c(0x159)+_0x375dcb);yield this[_0xf88b7c(0x151)](_0xf88b7c(0x121),[{'eventProperty':_0xf88b7c(0x144),'value':_0x3bda79},{'eventProperty':'Form\x20'+(_0x16c2ea+0x1)+_0xf88b7c(0x177),'value':_0x29dc13}]);}));}),(_0x1c98d1=_0x4abb20['querySelector'](_0x325a61(0x114)))==null||_0x1c98d1['addEventListener'](_0x325a61(0x155),()=>a(this,null,function*(){const _0x2bb713=_0x325a61;_0x4abb20[_0x2bb713(0x17b)](),yield this[_0x2bb713(0x151)](_0x2bb713(0x11b),[{'eventProperty':_0x2bb713(0x144),'value':_0x3bda79}]);})),_0x4abb20['querySelectorAll'](_0x325a61(0x172))[_0x325a61(0x162)](_0xe7875=>{const _0x4fba87=_0x325a61;_0xe7875['addEventListener'](_0x4fba87(0x155),()=>a(this,null,function*(){const _0x5d98aa=_0x4fba87;yield this['recordEvent'](_0x5d98aa(0x11b),[{'eventProperty':_0x5d98aa(0x144),'value':_0x3bda79}]);}));}),_0x4abb20[_0x325a61(0x13e)](_0x325a61(0x106))['forEach'](_0x1c5934=>{const _0x4833c6=_0x325a61;_0x1c5934[_0x4833c6(0x182)](_0x4833c6(0x155),()=>a(this,null,function*(){const _0x3c733a=_0x4833c6;yield this['recordEvent'](_0x3c733a(0x14b),[{'eventProperty':_0x3c733a(0x144),'value':_0x3bda79}]);}));}),_0x4abb20;},ct=new WeakSet(),ne=function(){const _0x3dfea5=_0x4df8fc;let _0x23bfbb=localStorage[_0x3dfea5(0x104)]('events');return _0x23bfbb?JSON[_0x3dfea5(0x119)](_0x23bfbb):{};},lt=new WeakSet(),se=function(_0x379c66,_0x27c040,_0x2a1f58){const _0xcd4adb=_0x4df8fc;if(!_0x379c66['hasOwnProperty'](_0x27c040))return _0xcd4adb(0x158)+_0x27c040+_0xcd4adb(0x136);if(!_0x2a1f58)return[];let _0x839444=_0x379c66[_0x27c040];if(!(_0x839444!=null&&_0x839444[_0xcd4adb(0x116)]))return _0xcd4adb(0x158)+_0x27c040+_0xcd4adb(0x18d);let _0x3c270c=_0x2a1f58[_0xcd4adb(0x14a)](({eventProperty:_0x46ccc7})=>!_0x839444[_0xcd4adb(0x116)][_0xcd4adb(0x122)](_0x46ccc7))[_0xcd4adb(0x109)](({eventProperty:_0x1f55d6})=>_0x1f55d6);return _0x3c270c[_0xcd4adb(0x184)]>0x0?_0xcd4adb(0x158)+_0x27c040+_0xcd4adb(0x16d)+_0x3c270c[_0xcd4adb(0x10f)](',\x20')+'.':_0x2a1f58[_0xcd4adb(0x109)](({eventProperty:_0x1424da,value:_0x2d5ef7})=>({'eventPropertyId':_0x839444[_0xcd4adb(0x116)][_0x1424da]['id'],'value':_0x2d5ef7}));},k=new WeakSet(),Pt=function(_0x355a14,_0x5def48){const _0x2121df=_0x4df8fc;let _0x185210=[{'customerId':localStorage[_0x2121df(0x104)](_0x2121df(0x194))||'0','events':[{'eventId':_0x355a14}]}];return _0x5def48&&(_0x185210[0x0]['events'][0x0]['eventProperties']=_0x5def48),_0x185210;},ut=new WeakSet(),ae=function(_0x22298f){return a(this,null,function*(){const _0x538470=_0x55ec;try{return yield y[_0x538470(0x179)](''+q+Ft,_0x22298f);}catch(_0x1c2461){throw new Error(_0x538470(0x188));}});},dt=new WeakSet(),ce=function(_0x4bee84){const _0x59ed29=_0x4df8fc;return(_0x4bee84==null?void 0x0:_0x4bee84[_0x59ed29(0x198)])===_0x59ed29(0x148);},pt=new WeakSet(),le=function(_0x3ce6f5){const _0x364abb=_0x4df8fc;localStorage[_0x364abb(0x186)](_0x364abb(0x142),JSON[_0x364abb(0x164)](Et(gt({},_0x3ce6f5),{'initialTime':''+new Date()['getTime']()})));},J=new WeakSet(),At=function(){const _0x50708c=_0x4df8fc;localStorage['removeItem'](_0x50708c(0x142)),localStorage['removeItem'](_0x50708c(0x174)),localStorage['removeItem'](_0x50708c(0x132)),localStorage['removeItem'](_0x50708c(0x12e));},Q=new WeakSet(),Ut=function(){return a(this,null,function*(){const _0x475076=_0x55ec;localStorage[_0x475076(0x104)]('attributes')||(yield s(this,B,wt)[_0x475076(0x19f)](this));});},j=new WeakSet(),Ot=function(_0x5ac031){return a(this,null,function*(){const _0x3c9227=_0x55ec;try{return yield y[_0x3c9227(0x179)](''+ht+Bt,_0x5ac031);}catch(_0x13c230){throw new Error(_0x3c9227(0x11c));}});},i(I,w,void 0x0);var It=I,ue=It['getInstance'](),Te=ue;
|
|
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 _0x2f5ce2=_0x32e9;(function(_0x316e95,_0x56d29c){const _0x1a1536=_0x32e9,_0x193f83=_0x316e95();while(!![]){try{const _0x3e0616=parseInt(_0x1a1536(0x1ff))/0x1*(-parseInt(_0x1a1536(0x267))/0x2)+parseInt(_0x1a1536(0x205))/0x3+parseInt(_0x1a1536(0x1ee))/0x4*(parseInt(_0x1a1536(0x22f))/0x5)+parseInt(_0x1a1536(0x21f))/0x6*(parseInt(_0x1a1536(0x225))/0x7)+-parseInt(_0x1a1536(0x250))/0x8+parseInt(_0x1a1536(0x24f))/0x9*(parseInt(_0x1a1536(0x1f9))/0xa)+-parseInt(_0x1a1536(0x25a))/0xb;if(_0x3e0616===_0x56d29c)break;else _0x193f83['push'](_0x193f83['shift']());}catch(_0x337191){_0x193f83['push'](_0x193f83['shift']());}}}(_0x1232,0xb84dd));var oe=Object[_0x2f5ce2(0x249)],ie=Object[_0x2f5ce2(0x268)],ne=Object[_0x2f5ce2(0x1fd)],Ot=Object[_0x2f5ce2(0x239)],se=Object[_0x2f5ce2(0x242)][_0x2f5ce2(0x241)],ae=Object['prototype'][_0x2f5ce2(0x21d)],Nt=(_0x3fb9d8,_0x9df29a,_0xe1bdd1)=>_0x9df29a in _0x3fb9d8?oe(_0x3fb9d8,_0x9df29a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe1bdd1}):_0x3fb9d8[_0x9df29a]=_0xe1bdd1,pt=(_0x1ef20d,_0x1bc852)=>{const _0x49c012=_0x2f5ce2;for(var _0x5aff4c in _0x1bc852||(_0x1bc852={}))se[_0x49c012(0x245)](_0x1bc852,_0x5aff4c)&&Nt(_0x1ef20d,_0x5aff4c,_0x1bc852[_0x5aff4c]);if(Ot){for(var _0x5aff4c of Ot(_0x1bc852))ae[_0x49c012(0x245)](_0x1bc852,_0x5aff4c)&&Nt(_0x1ef20d,_0x5aff4c,_0x1bc852[_0x5aff4c]);}return _0x1ef20d;},gt=(_0x5ebde2,_0x3ae757)=>ie(_0x5ebde2,ne(_0x3ae757)),Et=(_0x13144f,_0x113f4d,_0x44d548)=>{const _0x480f6b=_0x2f5ce2;if(!_0x113f4d['has'](_0x13144f))throw TypeError(_0x480f6b(0x22c)+_0x44d548);},u=(_0x294225,_0x3c48c7,_0x5c6410)=>(Et(_0x294225,_0x3c48c7,_0x2f5ce2(0x1ea)),_0x5c6410?_0x5c6410[_0x2f5ce2(0x245)](_0x294225):_0x3c48c7['get'](_0x294225)),i=(_0x4c39d7,_0x35ea5d,_0x6431e3)=>{const _0x45aad2=_0x2f5ce2;if(_0x35ea5d['has'](_0x4c39d7))throw TypeError(_0x45aad2(0x1e8));_0x35ea5d instanceof WeakSet?_0x35ea5d[_0x45aad2(0x1fe)](_0x4c39d7):_0x35ea5d['set'](_0x4c39d7,_0x6431e3);},m=(_0x265d8c,_0x17fb2a,_0x2e5b57,_0x10f569)=>(Et(_0x265d8c,_0x17fb2a,_0x2f5ce2(0x22b)),_0x10f569?_0x10f569[_0x2f5ce2(0x245)](_0x265d8c,_0x2e5b57):_0x17fb2a[_0x2f5ce2(0x22e)](_0x265d8c,_0x2e5b57),_0x2e5b57),Lt=(_0x41f618,_0x29cf62,_0x5a6a62,_0x271de7)=>({set '_'(_0x3088cb){m(_0x41f618,_0x29cf62,_0x3088cb,_0x5a6a62);},get '_'(){return u(_0x41f618,_0x29cf62,_0x271de7);}}),n=(_0x287cfa,_0x1db845,_0xabfc62)=>(Et(_0x287cfa,_0x1db845,_0x2f5ce2(0x23c)),_0xabfc62),a=(_0x13752f,_0xe48650,_0x245f27)=>new Promise((_0x1b2226,_0x27beb9)=>{const _0x40dd58=_0x2f5ce2;var _0xd2a8cd=_0x24093a=>{const _0x15d6c3=_0x32e9;try{_0x25752b(_0x245f27[_0x15d6c3(0x227)](_0x24093a));}catch(_0x96cba2){_0x27beb9(_0x96cba2);}},_0x626676=_0x196b0b=>{const _0x13a9ef=_0x32e9;try{_0x25752b(_0x245f27[_0x13a9ef(0x217)](_0x196b0b));}catch(_0x265f42){_0x27beb9(_0x265f42);}},_0x25752b=_0x68a3b2=>_0x68a3b2[_0x40dd58(0x230)]?_0x1b2226(_0x68a3b2['value']):Promise[_0x40dd58(0x20c)](_0x68a3b2['value'])[_0x40dd58(0x26a)](_0xd2a8cd,_0x626676);_0x25752b((_0x245f27=_0x245f27[_0x40dd58(0x261)](_0x13752f,_0xe48650))[_0x40dd58(0x227)]());});import{v4 as _0x1c8958}from'uuid';var xt=_0x2f5ce2(0x272),mt='/attribute',Dt=_0x2f5ce2(0x264),j='/event',Ct=_0x2f5ce2(0x224),_t='/record-bulk-event',$t=_0x2f5ce2(0x1f7),Vt=_0x2f5ce2(0x223);import _0x56519a from'axios';import{AxiosQueueManager as _0x5ba107}from'axios-queue-js';import _0x176ab3 from'axios-retry';import{AxiosError as _0x41720f}from'axios';var c=class extends Error{constructor(_0x523577){const _0x5a1bbb=_0x2f5ce2;super(_0x523577),this[_0x5a1bbb(0x271)]=_0x5a1bbb(0x262);}};c[_0x2f5ce2(0x212)]=!0x1,c['offline']=!navigator[_0x2f5ce2(0x20b)],c['showErrorLog']=!0x1,c['isInitialized']=!0x1;var le=(_0x57768d,_0xf7cfc9)=>{const _0x183489=_0x2f5ce2;_0xf7cfc9 instanceof c?console['error'](_0x183489(0x1fa)+_0x57768d,_0x183489(0x1e9)+_0xf7cfc9['message']):_0xf7cfc9 instanceof _0x41720f?(console[_0x183489(0x1f5)](_0x183489(0x1fa)+_0x57768d,'AxiosError:\x20'+_0xf7cfc9[_0x183489(0x1f1)]),_0xf7cfc9[_0x183489(0x23b)]?(console[_0x183489(0x1f5)](_0x183489(0x1fa)+_0x57768d,'HTTP\x20Status:\x20'+_0xf7cfc9[_0x183489(0x23b)][_0x183489(0x253)]),console[_0x183489(0x1f5)](_0x183489(0x1fa)+_0x57768d,_0x183489(0x24a),_0xf7cfc9[_0x183489(0x23b)]['data'])):_0xf7cfc9[_0x183489(0x273)]?console[_0x183489(0x1f5)](_0x183489(0x1fa)+_0x57768d+_0x183489(0x265)):console['error'](_0x183489(0x1fa)+_0x57768d,_0x183489(0x232),_0xf7cfc9[_0x183489(0x1f1)])):_0xf7cfc9 instanceof Error?console[_0x183489(0x1f5)](_0x183489(0x1fa)+_0x57768d,_0x183489(0x214),_0xf7cfc9['message']):console[_0x183489(0x1f5)](_0x183489(0x1fa)+_0x57768d,'Unexpected\x20error:',String(_0xf7cfc9));},S=(_0x188a6c,_0x5c1fbf,_0x46749c)=>a(void 0x0,null,function*(){const _0x4e877d=_0x2f5ce2;try{if(c[_0x4e877d(0x212)])throw new c(_0x4e877d(0x257));if(_0x188a6c!==_0x4e877d(0x1fe)&&c[_0x4e877d(0x1ed)])throw new c(_0x4e877d(0x20a));if(_0x188a6c!==_0x4e877d(0x243)&&!c[_0x4e877d(0x1f3)])throw new c('Mergn\x20not\x20initialized!');return yield _0x5c1fbf();}catch(_0x47ea94){return _0x46749c?_0x46749c(_0x47ea94):c[_0x4e877d(0x201)]&&le(_0x188a6c,_0x47ea94),null;}}),f,P,A,U,q,O,yt,z,Bt,p=class p{constructor(){const _0x5bcc05=_0x2f5ce2;i(this,q,0x0);let _0x11aaff=_0x56519a[_0x5bcc05(0x234)]({'baseURL':xt,'headers':{'Content-Type':_0x5bcc05(0x20f)}});m(p,P,_0x11aaff),m(p,A,new _0x5ba107({'client':_0x11aaff,'queueSize':0xa})),_0x176ab3(_0x11aaff,{'onRetry':_0x3a5f11=>{const _0x122a9a=_0x5bcc05;_0x3a5f11>=u(p,U)?(c[_0x122a9a(0x201)]&&console[_0x122a9a(0x25d)]('Max\x20retries\x20reached.\x20Disabling\x20SDK.'),c[_0x122a9a(0x212)]=!0x0):Lt(this,q)['_']++;},'retries':u(p,U),'retryDelay':_0x5281e8=>_0x5281e8*0x1388});}static[_0x2f5ce2(0x270)](_0x3e76f5){const _0x293eb7=_0x2f5ce2;this[_0x293eb7(0x25f)]=_0x3e76f5,n(this,z,Bt)[_0x293eb7(0x245)](this)[_0x293eb7(0x213)][_0x293eb7(0x25b)][_0x293eb7(0x24e)]['Authorization']=_0x3e76f5;}static[_0x2f5ce2(0x22d)](_0x4315f8){const _0x3f6577=_0x2f5ce2;return n(this,O,yt)['call'](this)[_0x3f6577(0x22d)](_0x4315f8);}static[_0x2f5ce2(0x22a)](_0x21e32f,_0x1198c2){const _0x4c3412=_0x2f5ce2;return n(this,O,yt)[_0x4c3412(0x245)](this)[_0x4c3412(0x22a)](_0x21e32f,_0x1198c2||{});}};f=new WeakMap(),P=new WeakMap(),A=new WeakMap(),U=new WeakMap(),q=new WeakMap(),O=new WeakSet(),yt=function(){return u(p,f)||m(p,f,new p()),u(p,A);},z=new WeakSet(),Bt=function(){return u(p,f)||m(p,f,new p()),u(p,P);},i(p,O),i(p,z),i(p,f,void 0x0),i(p,P,void 0x0),i(p,A,void 0x0),i(p,U,0x3);function _0x1232(){const _0x3466d3=['string','forEach','throw','Popup','User\x20Logout','href','map','addEventListener','propertyIsEnumerable','length','7464IRAPxw','entries','keys','delay','/set-identity','/record-event','6258ZyEjNF','data','next','join','Popup\x20Button\x20Clicked','post','write\x20to\x20private\x20field','Cannot\x20','get','set','2906505ynEoOx','done','getItem','Error\x20setting\x20up\x20the\x20request:','online','create','User\x20Login','location','initialTime','eventProperty','getOwnPropertySymbols','Error\x20posting\x20identity\x20data','response','access\x20private\x20method','events','\x20does\x20not\x20have\x20a\x20valid\x20eventProperty.','getInstance','Event\x20','hasOwnProperty','prototype','init','[id^=\x22u_content_button_\x22]','call','parse','recordEvent','offlineEvents','defineProperty','Response\x20Data:','login','\x20has\x20invalid\x20eventProperties:\x20','querySelectorAll','common','27vuGXbh','9499424SfmxxE','action','eventProperties','status','.u-close-button','uniqueIdentity','Viewed\x20Web\x20Page','Mergn\x20SDK\x20is\x20disabled!','body','pushState','5902919adPJBe','headers','UTM\x20Key\x20Value','log','design','apiKey','Campaign\x20Id','apply','MergnError','stringify','/record-attribute','\x0aNo\x20response\x20received.\x20Check\x20network\x20connection\x20or\x20server\x20issues.','Customer\x20Id','12652RMoKmQ','defineProperties','removeItem','then','submit','page','form','customer','logout','updateAPIKey','name','https://95sidwa5jk.execute-api.ap-southeast-1.amazonaws.com/Prod/sdk-management/api','request','remove','createElement','popup_container_','filter','recordAttribute','innerHTML','Cannot\x20add\x20the\x20same\x20private\x20member\x20more\x20than\x20once','MergnError:\x20','read\x20from\x20private\x20field','getTime','setItem','offline','4UXdBpS','Form\x20Submit','hostname','message','div','isInitialized','click','error','push','/customer','brand','404070Gjglua','OriginateFrom:\x20','ttl','URL','getOwnPropertyDescriptors','add','35jCCWel','beforeunload','showErrorLog','campaignId','Popup\x20Image\x20Clicked','isArray','2657154sWLyGe','updateAttribute','querySelector','attributes','Error\x20setting\x20identity','Mergn\x20is\x20offline!','onLine','resolve',',\x20Value:\x20','attributeProperty','application/json','appendChild','search','disableSDK','defaults','Unexpected\x20error:'];_0x1232=function(){return _0x3466d3;};return _0x1232();}var ht=p,y=ht,w,v,N,L,x,D,C,ft,_,It,Y,Mt,H,kt,W,Jt,G,$,X,Z,Qt,tt,jt,et,qt,V,Tt,rt,zt,b,K,ot,Kt,B,St,it,Yt,nt,Ht,F,wt,st,Wt,at,Gt,ct,Xt,M,bt,lt,Zt,ut,te,dt,ee,k,Rt,J,Pt,Q,At,I=class I{constructor(){i(this,C),i(this,_),i(this,Y),i(this,H),i(this,W),i(this,Z),i(this,tt),i(this,et),i(this,V),i(this,rt),i(this,b),i(this,ot),i(this,B),i(this,it),i(this,nt),i(this,F),i(this,st),i(this,at),i(this,ct),i(this,M),i(this,lt),i(this,ut),i(this,dt),i(this,k),i(this,J),i(this,Q),i(this,v,''),i(this,N,void 0x0),i(this,L,void 0x0),i(this,x,void 0x0),i(this,D,null),i(this,G,()=>{const _0x44f3c1=_0x32e9;let _0x5a8e34=()=>{const _0x57cc36=_0x32e9;let _0x52c91c=JSON[_0x57cc36(0x246)](localStorage[_0x57cc36(0x231)](_0x57cc36(0x251)));_0x52c91c&&localStorage[_0x57cc36(0x1ec)](_0x57cc36(0x251),JSON[_0x57cc36(0x263)](gt(pt({},_0x52c91c),{'initialTime':''+new Date()['getTime'](),'page':window['location']['hostname']+window[_0x57cc36(0x236)]['pathname']})));};_0x5a8e34(),window[_0x44f3c1(0x21c)](_0x44f3c1(0x200),_0x5a8e34);}),i(this,$,()=>{const _0x58dffb=_0x32e9;localStorage[_0x58dffb(0x269)](_0x58dffb(0x251));}),i(this,X,()=>{const _0x1d5926=_0x32e9;let _0x270ec4=JSON['parse'](localStorage[_0x1d5926(0x231)](_0x1d5926(0x251))||'{}');(_0x270ec4==null?void 0x0:_0x270ec4['name'])===_0x1d5926(0x218)&&n(this,B,St)[_0x1d5926(0x245)](this);}),m(this,x,navigator['platform']);}static[_0x2f5ce2(0x23f)](){return u(I,w)||m(I,w,new I()),u(I,w);}[_0x2f5ce2(0x243)](_0x504fc7){const _0x842cb5=_0x2f5ce2;S(_0x842cb5(0x243),()=>a(this,null,function*(){const _0x291f54=_0x842cb5;n(this,Y,Mt)['call'](this,_0x504fc7),yield n(this,C,ft)[_0x291f54(0x245)](this),setInterval(()=>a(this,null,function*(){const _0x42f9d4=_0x291f54;yield n(this,C,ft)[_0x42f9d4(0x245)](this);}),0x493e0);let _0x46bc65=localStorage['getItem'](_0x291f54(0x1fb)),_0x1d039a=!0x1;_0x46bc65&&(_0x1d039a=new Date()[_0x291f54(0x1eb)]()-parseInt(_0x46bc65,0xa)>0x1b7740,_0x1d039a&&n(this,k,Rt)[_0x291f54(0x245)](this)),(!_0x46bc65||_0x1d039a||n(this,H,kt)['call'](this))&&(n(this,Z,Qt)[_0x291f54(0x245)](this),yield n(this,b,K)[_0x291f54(0x245)](this),yield n(this,W,Jt)['call'](this)),window[_0x291f54(0x21c)](_0x291f54(0x233),()=>a(this,null,function*(){const _0x4dc089=_0x291f54;c['offline']=!0x1;let _0x51af41=JSON['parse'](localStorage['getItem']('offlineEvents')||'[]');Array[_0x4dc089(0x204)](_0x51af41)&&(yield y[_0x4dc089(0x22a)](''+j+_t,[{'customerId':u(this,v),'events':_0x51af41}]),localStorage[_0x4dc089(0x269)](_0x4dc089(0x248)));})),window[_0x291f54(0x21c)](_0x291f54(0x1ed),()=>{const _0x1fc95f=_0x291f54;c[_0x1fc95f(0x1ed)]=!0x0;}),window[_0x291f54(0x21c)]('load',()=>{const _0x43dbbf=_0x291f54;u(this,X)[_0x43dbbf(0x245)](this);}),c['isInitialized']=!0x0;let _0x1e2c9a=history['pushState'];history[_0x291f54(0x259)]=(..._0x5908ba)=>{const _0x3b340c=_0x291f54;_0x1e2c9a[_0x3b340c(0x261)](history,_0x5908ba),n(this,_,It)[_0x3b340c(0x245)](this);},n(this,_,It)['call'](this);}));}[_0x2f5ce2(0x201)](_0x35dc0f=!0x1){const _0x1a6019=_0x2f5ce2;c[_0x1a6019(0x201)]=_0x35dc0f;}['recordAttribute'](_0x43ef66){return a(this,null,function*(){const _0xb1a36e=_0x32e9;yield S(_0xb1a36e(0x278),()=>a(this,null,function*(){const _0x394521=_0xb1a36e;yield n(this,J,Pt)['call'](this);let _0x379cd2=JSON[_0x394521(0x246)](localStorage['getItem']('attributes')||'[]');if(_0x379cd2&&Object[_0x394521(0x221)](_0x379cd2)[_0x394521(0x21e)]>0x0){let _0x24784b=[];_0x43ef66&&Object[_0x394521(0x221)](_0x43ef66)[_0x394521(0x21e)]>0x0&&Object['keys'](_0x43ef66)['forEach'](_0x21d2d4=>{const _0x53da88=_0x394521;_0x379cd2[_0x53da88(0x241)](_0x21d2d4)&&_0x24784b[_0x53da88(0x1f6)]({'attributeId':_0x379cd2[_0x21d2d4]['id'],'attributeProperties':[],'value':_0x43ef66[_0x21d2d4]});});let _0x185681=[{'attributes':_0x24784b,'customerId':u(this,v)}];yield n(this,Q,At)[_0x394521(0x245)](this,_0x185681);}}));});}[_0x2f5ce2(0x24b)](_0x5325d8){return a(this,null,function*(){const _0xce1c14=_0x32e9;yield S(_0xce1c14(0x24b),()=>a(this,null,function*(){const _0x90ead8=_0xce1c14;yield n(this,b,K)['call'](this,_0x5325d8),yield this[_0x90ead8(0x247)](_0x90ead8(0x235),[{'eventProperty':_0x90ead8(0x266),'value':localStorage['getItem'](_0x90ead8(0x26e))||0x0}]);}));});}[_0x2f5ce2(0x206)](_0x4deef0,_0x185ee8,_0x4e5a88){return a(this,null,function*(){const _0x1306f9=_0x32e9;yield n(this,J,Pt)['call'](this);let _0x375e5f=JSON[_0x1306f9(0x246)](localStorage[_0x1306f9(0x231)](_0x1306f9(0x208))||'{}');if(_0x375e5f&&Object[_0x1306f9(0x221)](_0x375e5f)['length']>0x0&&_0x375e5f[_0x1306f9(0x241)](_0x4deef0)){let _0x42bc3c=_0x375e5f[_0x4deef0],_0x11427a=_0x42bc3c[_0x1306f9(0x20e)],_0x507aa7=[];_0x4e5a88&&Object[_0x1306f9(0x221)](_0x4e5a88)[_0x1306f9(0x21e)]>0x0&&Object[_0x1306f9(0x221)](_0x4e5a88)[_0x1306f9(0x216)](_0x56f2fc=>{const _0x569d7e=_0x1306f9;_0x11427a['hasOwnProperty'](_0x56f2fc)&&_0x507aa7[_0x569d7e(0x1f6)]({'attributePropertyId':_0x11427a[_0x56f2fc]['id'],'value':_0x4e5a88[_0x56f2fc]});});let _0x5023ae=[{'attributes':[{'attributeId':_0x42bc3c['id'],'attributeProperties':_0x507aa7,'value':_0x185ee8}],'customerId':u(this,v)}];yield n(this,Q,At)[_0x1306f9(0x245)](this,_0x5023ae);}});}['logout'](){return a(this,null,function*(){const _0x4afcfe=_0x32e9;yield S(_0x4afcfe(0x26f),()=>a(this,null,function*(){const _0x30d497=_0x4afcfe;n(this,k,Rt)[_0x30d497(0x245)](this),this[_0x30d497(0x247)](_0x30d497(0x219),[{'eventProperty':_0x30d497(0x266),'value':localStorage[_0x30d497(0x231)]('customer')||0x0}]);}));});}[_0x2f5ce2(0x247)](_0x2fa96b,_0x3a8469){return a(this,null,function*(){yield S('add',()=>a(this,null,function*(){const _0x20d1f3=_0x32e9;var _0x392205,_0x1c9c1c;let _0x181bb9=n(this,at,Gt)[_0x20d1f3(0x245)](this),_0x1a4a14=n(this,ct,Xt)['call'](this,_0x181bb9,_0x2fa96b,_0x3a8469);if(typeof _0x1a4a14==_0x20d1f3(0x215)){c['showErrorLog']&&console[_0x20d1f3(0x1f5)](_0x1a4a14);return;}let {id:_0x1c4a33}=_0x181bb9[_0x2fa96b];if(c[_0x20d1f3(0x1ed)]){let _0x4d13af=JSON[_0x20d1f3(0x246)](localStorage[_0x20d1f3(0x231)](_0x20d1f3(0x248))||'[]');if(_0x4d13af[_0x20d1f3(0x21e)]<=0x32){let _0x5140c={'eventId':_0x1c4a33};_0x3a8469&&(_0x5140c['eventProperties']=_0x1a4a14),_0x4d13af[_0x20d1f3(0x1f6)](_0x5140c),localStorage[_0x20d1f3(0x1ec)](_0x20d1f3(0x248),JSON[_0x20d1f3(0x263)](_0x4d13af));}return;}let _0x805c48=_0x3a8469?n(this,M,bt)['call'](this,_0x1c4a33,_0x1a4a14):n(this,M,bt)['call'](this,_0x1c4a33),_0x550fca=yield n(this,lt,Zt)[_0x20d1f3(0x245)](this,_0x805c48);n(this,ut,te)[_0x20d1f3(0x245)](this,(_0x392205=_0x550fca==null?void 0x0:_0x550fca['data'])==null?void 0x0:_0x392205[_0x20d1f3(0x226)])&&(n(this,dt,ee)[_0x20d1f3(0x245)](this,(_0x1c9c1c=_0x550fca==null?void 0x0:_0x550fca['data'])==null?void 0x0:_0x1c9c1c['data']),u(this,G)[_0x20d1f3(0x245)](this),n(this,B,St)[_0x20d1f3(0x245)](this));}));});}};w=new WeakMap(),v=new WeakMap(),N=new WeakMap(),L=new WeakMap(),x=new WeakMap(),D=new WeakMap(),C=new WeakSet(),ft=function(){return a(this,null,function*(){const _0x5269b6=_0x32e9;try{yield y[_0x5269b6(0x22d)](_0x5269b6(0x1f8));}catch(_0x19ac50){c[_0x5269b6(0x212)]=!0x0,c[_0x5269b6(0x201)]&&console['error'](_0x19ac50['message']);}});},_=new WeakSet(),It=function(){return a(this,null,function*(){const _0x650363=_0x32e9;let _0x7d15a9=window[_0x650363(0x236)]['hostname']+window['location']['pathname'];yield this[_0x650363(0x247)](_0x650363(0x256),[{'eventProperty':_0x650363(0x1fc),'value':_0x7d15a9}]),_0x7d15a9!==u(this,D)&&(m(this,D,_0x7d15a9),new URLSearchParams(new URL(window[_0x650363(0x236)][_0x650363(0x21a)])[_0x650363(0x211)])[_0x650363(0x216)]((_0x38362a,_0x3e366c)=>a(this,null,function*(){const _0x52c0d4=_0x650363;yield this[_0x52c0d4(0x247)](_0x52c0d4(0x256),[{'eventProperty':_0x52c0d4(0x25c),'value':_0x3e366c+':'+_0x38362a}]);})));});},Y=new WeakSet(),Mt=function(_0x4cb812){const _0x86999f=_0x2f5ce2;y[_0x86999f(0x270)](_0x4cb812);},H=new WeakSet(),kt=function(){const _0x4b51be=_0x2f5ce2;return!localStorage[_0x4b51be(0x231)]('events')||!localStorage[_0x4b51be(0x231)](_0x4b51be(0x26e))||!localStorage[_0x4b51be(0x231)](_0x4b51be(0x208))||!localStorage['getItem']('uniqueIdentity');},W=new WeakSet(),Jt=function(){return a(this,null,function*(){const _0x37c27e=_0x32e9;yield n(this,tt,jt)['call'](this),yield n(this,V,Tt)[_0x37c27e(0x245)](this),yield n(this,b,K)['call'](this);});},G=new WeakMap(),$=new WeakMap(),X=new WeakMap(),Z=new WeakSet(),Qt=function(){const _0x4ac6c6=_0x2f5ce2;let _0x3b3d4d=localStorage[_0x4ac6c6(0x231)]('uniqueIdentity');return _0x3b3d4d||(_0x3b3d4d=_0x1c8958(),localStorage['setItem'](_0x4ac6c6(0x255),_0x3b3d4d)),_0x3b3d4d;},tt=new WeakSet(),jt=function(){return a(this,null,function*(){const _0x3d50bd=_0x32e9;if(!localStorage[_0x3d50bd(0x231)]('events')){let _0x129324=(yield n(this,et,qt)[_0x3d50bd(0x245)](this))[_0x3d50bd(0x226)];_0x129324&&(m(this,N,_0x129324),localStorage[_0x3d50bd(0x1ec)](_0x3d50bd(0x23d),JSON['stringify'](u(this,N))));}});},et=new WeakSet(),qt=function(){return a(this,null,function*(){try{return(yield y['get'](''+j))['data'];}catch(_0x3d75b4){throw new Error('Error\x20fetching\x20event\x20data');}});},V=new WeakSet(),Tt=function(){return a(this,null,function*(){const _0x18b4ad=_0x32e9;if(!localStorage[_0x18b4ad(0x231)]('attributes')){let _0x2bb122=(yield n(this,rt,zt)[_0x18b4ad(0x245)](this))[_0x18b4ad(0x226)];_0x2bb122&&(m(this,L,_0x2bb122),localStorage['setItem'](_0x18b4ad(0x208),JSON[_0x18b4ad(0x263)](u(this,L))));}});},rt=new WeakSet(),zt=function(){return a(this,null,function*(){const _0x57284b=_0x32e9;try{return(yield y[_0x57284b(0x22d)](''+mt))[_0x57284b(0x226)];}catch(_0x560115){throw new Error('Error\x20fetching\x20attribute\x20data');}});},b=new WeakSet(),K=function(_0x41b6c3){return a(this,null,function*(){const _0x3f21d4=_0x32e9;if(!_0x41b6c3){let _0x3a3a8c=localStorage[_0x3f21d4(0x231)](_0x3f21d4(0x26e));if(_0x3a3a8c){m(this,v,_0x3a3a8c);return;}}let _0x5229de={'deviceId':localStorage[_0x3f21d4(0x231)](_0x3f21d4(0x255))||_0x1c8958(),'os':u(this,x)};_0x41b6c3&&(_0x5229de['identity']=_0x41b6c3);try{let _0x26a261=(yield n(this,ot,Kt)[_0x3f21d4(0x245)](this,_0x5229de))[_0x3f21d4(0x226)];_0x26a261!==void 0x0&&(m(this,v,_0x26a261),localStorage['setItem'](_0x3f21d4(0x26e),u(this,v)));}catch(_0x48ec6e){throw new Error(_0x3f21d4(0x209));}});},ot=new WeakSet(),Kt=function(_0x85d5c8){return a(this,null,function*(){const _0x181a4a=_0x32e9;try{return(yield y[_0x181a4a(0x22a)](''+$t+Vt,_0x85d5c8))[_0x181a4a(0x226)];}catch(_0x3327f0){throw new Error(_0x181a4a(0x23a));}});},B=new WeakSet(),St=function(){const _0x2a8222=_0x2f5ce2;let _0x2c2ed0=n(this,it,Yt)[_0x2a8222(0x245)](this);if(_0x2c2ed0){let _0x1ed3fd=_0x2c2ed0[_0x2a8222(0x25e)],_0x6663f1=_0x2c2ed0[_0x2a8222(0x202)];_0x2c2ed0[_0x2a8222(0x222)]?n(this,nt,Ht)[_0x2a8222(0x245)](this,_0x2c2ed0,_0x1ed3fd,_0x6663f1):n(this,F,wt)[_0x2a8222(0x245)](this,_0x1ed3fd,_0x6663f1);}},it=new WeakSet(),Yt=function(){const _0x5caad1=_0x2f5ce2;let _0x135b96=localStorage['getItem'](_0x5caad1(0x251));return _0x135b96?JSON[_0x5caad1(0x246)](_0x135b96):null;},nt=new WeakSet(),Ht=function(_0x3356f5,_0x40f0fb,_0x5339db){const _0x5ace7d=_0x2f5ce2;let _0x321f3b=parseInt(_0x3356f5[_0x5ace7d(0x237)],0xa)+_0x3356f5[_0x5ace7d(0x222)]-new Date()[_0x5ace7d(0x1eb)]();_0x321f3b>0x0&&_0x3356f5[_0x5ace7d(0x26c)]===window['location'][_0x5ace7d(0x1f0)]+window[_0x5ace7d(0x236)]['pathname']&&setTimeout(()=>{u(this,$)['call'](this),n(this,F,wt)['call'](this,_0x40f0fb,_0x5339db);},_0x321f3b);},F=new WeakSet(),wt=function(_0x144b20,_0x32c40c){const _0xe19872=_0x2f5ce2;let _0x501784=n(this,st,Wt)[_0xe19872(0x245)](this,_0xe19872(0x1f2),_0x144b20,_0x32c40c);document[_0xe19872(0x258)][_0xe19872(0x210)](_0x501784),u(this,$)['call'](this);},st=new WeakSet(),Wt=function(_0x580bec,_0x29c926,_0x495541){const _0x2b4f30=_0x2f5ce2;var _0x37c404;let _0x3cf70c=document[_0x2b4f30(0x275)](_0x580bec);return _0x3cf70c['id']=_0x2b4f30(0x276)+_0x495541,_0x3cf70c[_0x2b4f30(0x1e7)]=_0x29c926,_0x3cf70c[_0x2b4f30(0x24d)](_0x2b4f30(0x26d))[_0x2b4f30(0x216)]((_0x40714d,_0x382baf)=>{const _0x2bd16c=_0x2b4f30;_0x40714d['addEventListener'](_0x2bd16c(0x26b),_0x3b5e8f=>a(this,null,function*(){const _0x595647=_0x2bd16c;_0x3b5e8f['preventDefault']();let _0x1c8b8d=new FormData(_0x40714d),_0x16570e={};for(let [_0x50b1a9,_0x168923]of _0x1c8b8d[_0x595647(0x220)]())_0x16570e[_0x50b1a9]=_0x168923,console[_0x595647(0x25d)]('Name:\x20'+_0x50b1a9+_0x595647(0x20d)+_0x168923);yield this['recordEvent'](_0x595647(0x1ef),[{'eventProperty':_0x595647(0x260),'value':_0x495541},{'eventProperty':'Form\x20'+(_0x382baf+0x1)+'\x20Values','value':_0x16570e}]);}));}),(_0x37c404=_0x3cf70c[_0x2b4f30(0x207)](_0x2b4f30(0x254)))==null||_0x37c404[_0x2b4f30(0x21c)](_0x2b4f30(0x1f4),()=>a(this,null,function*(){const _0x16848f=_0x2b4f30;_0x3cf70c[_0x16848f(0x274)](),yield this['recordEvent']('Popup\x20Button\x20Clicked',[{'eventProperty':_0x16848f(0x260),'value':_0x495541}]);})),_0x3cf70c['querySelectorAll'](_0x2b4f30(0x244))[_0x2b4f30(0x216)](_0x29891c=>{const _0x46ba35=_0x2b4f30;_0x29891c['addEventListener'](_0x46ba35(0x1f4),()=>a(this,null,function*(){const _0x1e4e50=_0x46ba35;yield this['recordEvent'](_0x1e4e50(0x229),[{'eventProperty':_0x1e4e50(0x260),'value':_0x495541}]);}));}),_0x3cf70c['querySelectorAll']('.u-popup-container\x20img')[_0x2b4f30(0x216)](_0xfcfff5=>{const _0x374988=_0x2b4f30;_0xfcfff5['addEventListener'](_0x374988(0x1f4),()=>a(this,null,function*(){const _0x14304c=_0x374988;yield this[_0x14304c(0x247)](_0x14304c(0x203),[{'eventProperty':_0x14304c(0x260),'value':_0x495541}]);}));}),_0x3cf70c;},at=new WeakSet(),Gt=function(){const _0x1a8bb5=_0x2f5ce2;let _0x178962=localStorage[_0x1a8bb5(0x231)](_0x1a8bb5(0x23d));return _0x178962?JSON[_0x1a8bb5(0x246)](_0x178962):{};},ct=new WeakSet(),Xt=function(_0x243776,_0x58ec05,_0x55cb16){const _0xb7c9c6=_0x2f5ce2;if(!_0x243776[_0xb7c9c6(0x241)](_0x58ec05))return _0xb7c9c6(0x240)+_0x58ec05+'\x20is\x20not\x20valid.';if(!_0x55cb16)return[];let _0x4d9394=_0x243776[_0x58ec05];if(!(_0x4d9394!=null&&_0x4d9394[_0xb7c9c6(0x238)]))return _0xb7c9c6(0x240)+_0x58ec05+_0xb7c9c6(0x23e);let _0x3899ad=_0x55cb16[_0xb7c9c6(0x277)](({eventProperty:_0x1f5479})=>!_0x4d9394['eventProperty'][_0xb7c9c6(0x241)](_0x1f5479))[_0xb7c9c6(0x21b)](({eventProperty:_0x44a616})=>_0x44a616);return _0x3899ad[_0xb7c9c6(0x21e)]>0x0?_0xb7c9c6(0x240)+_0x58ec05+_0xb7c9c6(0x24c)+_0x3899ad[_0xb7c9c6(0x228)](',\x20')+'.':_0x55cb16[_0xb7c9c6(0x21b)](({eventProperty:_0xb4cad4,value:_0x59d00e})=>({'eventPropertyId':_0x4d9394['eventProperty'][_0xb4cad4]['id'],'value':_0x59d00e}));},M=new WeakSet(),bt=function(_0x1ed566,_0x406930){const _0x4f203f=_0x2f5ce2;let _0x32ca2a=[{'customerId':localStorage[_0x4f203f(0x231)](_0x4f203f(0x26e))||'0','events':[{'eventId':_0x1ed566}]}];return _0x406930&&(_0x32ca2a[0x0][_0x4f203f(0x23d)][0x0][_0x4f203f(0x252)]=_0x406930),_0x32ca2a;},lt=new WeakSet(),Zt=function(_0x1afa1b){return a(this,null,function*(){try{return yield y['post'](''+j+Ct,_0x1afa1b);}catch(_0x2f86d4){throw new Error('Error\x20posting\x20event\x20record');}});},ut=new WeakSet(),te=function(_0x2c4484){const _0x53ce2a=_0x2f5ce2;return(_0x2c4484==null?void 0x0:_0x2c4484[_0x53ce2a(0x271)])===_0x53ce2a(0x218);},dt=new WeakSet(),ee=function(_0x3e26b5){const _0x46a98c=_0x2f5ce2;localStorage['setItem'](_0x46a98c(0x251),JSON[_0x46a98c(0x263)](gt(pt({},_0x3e26b5),{'initialTime':''+new Date()['getTime']()})));},k=new WeakSet(),Rt=function(){const _0x33b66a=_0x2f5ce2;localStorage[_0x33b66a(0x269)](_0x33b66a(0x251)),localStorage[_0x33b66a(0x269)](_0x33b66a(0x23d)),localStorage[_0x33b66a(0x269)](_0x33b66a(0x208)),localStorage['removeItem'](_0x33b66a(0x248));},J=new WeakSet(),Pt=function(){return a(this,null,function*(){const _0x448aaa=_0x32e9;localStorage[_0x448aaa(0x231)]('attributes')||(yield n(this,V,Tt)[_0x448aaa(0x245)](this));});},Q=new WeakSet(),At=function(_0x2b1a44){return a(this,null,function*(){const _0x27b032=_0x32e9;try{return yield y[_0x27b032(0x22a)](''+mt+Dt,_0x2b1a44);}catch(_0x41fbcc){throw new Error('Error\x20posting\x20attribute\x20record');}});},i(I,w,void 0x0);function _0x32e9(_0x4fa784,_0x9f58db){const _0x123219=_0x1232();return _0x32e9=function(_0x32e998,_0x1035b4){_0x32e998=_0x32e998-0x1e7;let _0x4bedc5=_0x123219[_0x32e998];return _0x4bedc5;},_0x32e9(_0x4fa784,_0x9f58db);}var vt=I,re=vt['getInstance'](),Me=re;export{Me 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};
|