mergn-webapp-sdk 1.0.1 → 1.0.2
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/README.md +12 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Mergn Web SDK
|
|
2
2
|
|
|
3
|
-

|
|
3
|
+
[](https://www.npmjs.com/package/mergn-webapp-sdk)
|
|
4
4
|
[](https://www.npmjs.com/package/mergn-webapp-sdk)
|
|
5
5
|
|
|
6
6
|
## Installation
|
|
@@ -35,6 +35,17 @@ mergn.recordEvent('Product viewed');
|
|
|
35
35
|
mergn.recordEvent('Product viewed', [{ eventProperty: 'Mens Accessories', value: 59.99 }]);
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
+
### Attribute Record
|
|
39
|
+
|
|
40
|
+
Records or updates the attributes of user such as name, age or address.
|
|
41
|
+
|
|
42
|
+
```javascript
|
|
43
|
+
mergn.recordAttribute({
|
|
44
|
+
name: 'John Smith',
|
|
45
|
+
age: 5,
|
|
46
|
+
});
|
|
47
|
+
```
|
|
48
|
+
|
|
38
49
|
### User Login
|
|
39
50
|
|
|
40
51
|
Use this method where user is logged in successfully to record login event.
|
package/dist/index.d.mts
CHANGED
|
@@ -8,10 +8,10 @@ declare class MergnService {
|
|
|
8
8
|
login(identity: string): Promise<void>;
|
|
9
9
|
updateAttribute(attributeName: string, attributeValue: string, data?: Record<string, any>): Promise<void>;
|
|
10
10
|
logout(): Promise<void>;
|
|
11
|
-
recordEvent(eventName: string, eventProperties?:
|
|
11
|
+
recordEvent(eventName: string, eventProperties?: {
|
|
12
12
|
eventProperty: string;
|
|
13
13
|
value: any;
|
|
14
|
-
}]): Promise<void>;
|
|
14
|
+
}[]): Promise<void>;
|
|
15
15
|
}
|
|
16
16
|
declare const _default: MergnService;
|
|
17
17
|
|
package/dist/index.d.ts
CHANGED
|
@@ -8,10 +8,10 @@ declare class MergnService {
|
|
|
8
8
|
login(identity: string): Promise<void>;
|
|
9
9
|
updateAttribute(attributeName: string, attributeValue: string, data?: Record<string, any>): Promise<void>;
|
|
10
10
|
logout(): Promise<void>;
|
|
11
|
-
recordEvent(eventName: string, eventProperties?:
|
|
11
|
+
recordEvent(eventName: string, eventProperties?: {
|
|
12
12
|
eventProperty: string;
|
|
13
13
|
value: any;
|
|
14
|
-
}]): Promise<void>;
|
|
14
|
+
}[]): Promise<void>;
|
|
15
15
|
}
|
|
16
16
|
declare const _default: MergnService;
|
|
17
17
|
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x4dcc7d=_0x5bf7;(function(_0x43bbf0,_0x4d7119){const _0x5bf9c4=_0x5bf7,_0x493755=_0x43bbf0();while(!![]){try{const _0x1cd02a=-parseInt(_0x5bf9c4(0x12e))/0x1*(-parseInt(_0x5bf9c4(0x18e))/0x2)+parseInt(_0x5bf9c4(0x171))/0x3+-parseInt(_0x5bf9c4(0x161))/0x4*(-parseInt(_0x5bf9c4(0x132))/0x5)+parseInt(_0x5bf9c4(0x150))/0x6+-parseInt(_0x5bf9c4(0x19a))/0x7*(parseInt(_0x5bf9c4(0x14b))/0x8)+-parseInt(_0x5bf9c4(0x147))/0x9+-parseInt(_0x5bf9c4(0x155))/0xa*(-parseInt(_0x5bf9c4(0x190))/0xb);if(_0x1cd02a===_0x4d7119)break;else _0x493755['push'](_0x493755['shift']());}catch(_0x571606){_0x493755['push'](_0x493755['shift']());}}}(_0x37c3,0xaf077));function _0x37c3(){const _0x57f274=['events','enumerable','Event\x20','offline','MergnError:\x20','uniqueIdentity','[id^=\x22u_content_button_\x22]','getOwnPropertyDescriptors','create','call','Error\x20posting\x20attribute\x20record','popup_container_','status','join','querySelectorAll','map','object','getTime','pushState','querySelector','onLine','getOwnPropertyDescriptor','init','hostname','value','set','12626oQrYDq','offlineEvents','4007047tRfJwO','application/json','recordAttribute','add','.u-popup-container\x20img','\x20has\x20invalid\x20eventProperties:\x20','Mergn\x20is\x20offline!','https://95sidwa5jk.execute-api.ap-southeast-1.amazonaws.com/Prod/sdk-management/api','propertyIsEnumerable','click','84868xjkqSw','updateAttribute','AxiosError','AxiosError:\x20','name','showErrorLog','getOwnPropertyNames','stringify','MergnError','response','forEach','Campaign\x20Id','addEventListener','Error\x20setting\x20up\x20the\x20request:','HTTP\x20Status:\x20','beforeunload','isInitialized','common','Error\x20fetching\x20event\x20data','search','get','online','Error\x20posting\x20identity\x20data','/record-event','logout','Cannot\x20add\x20the\x20same\x20private\x20member\x20more\x20than\x20once','remove','write\x20to\x20private\x20field','updateAPIKey','href','next','done','defaults','post','/record-bulk-event','attributes','setItem','37nKbTLc','/attribute','Customer\x20Id','data','30hCUNpB','\x0aNo\x20response\x20received.\x20Check\x20network\x20connection\x20or\x20server\x20issues.','action','attributeProperty','/record-attribute','Cannot\x20','Error\x20posting\x20event\x20record','message','brand','Popup','Error\x20fetching\x20attribute\x20data','page','getItem','eventProperty','parse','getPrototypeOf','User\x20Login','Max\x20retries\x20reached.\x20Disabling\x20SDK.','isArray','getInstance','push','11743839cTiFco','has','createElement','prototype','832hTgfxz','location','defineProperty','error','/set-identity','5570064eXKKea','apiKey','hasOwnProperty','__esModule','headers','10bIvnFb','recordEvent','removeItem','resolve','OriginateFrom:\x20','div','/event','access\x20private\x20method','URL','exports','disableSDK','appendChild','604628GZOaQF','apply','Viewed\x20Web\x20Page','customer','load','default','.u-close-button','campaignId','pathname','identity','Unexpected\x20error:','login','length','AxiosQueueManager','keys','UTM\x20Key\x20Value','2548626iwjYwf','eventProperties','Popup\x20Image\x20Clicked'];_0x37c3=function(){return _0x57f274;};return _0x37c3();}var ue=Object[_0x4dcc7d(0x17c)],b=Object[_0x4dcc7d(0x14d)],de=Object['defineProperties'],pe=Object[_0x4dcc7d(0x189)],ge=Object[_0x4dcc7d(0x17b)],Ee=Object[_0x4dcc7d(0x1a0)],Nt=Object['getOwnPropertySymbols'],he=Object[_0x4dcc7d(0x141)],xt=Object['prototype']['hasOwnProperty'],me=Object[_0x4dcc7d(0x14a)][_0x4dcc7d(0x198)],Lt=(_0x1fd9b2,_0xf453c3,_0x2ef897)=>_0xf453c3 in _0x1fd9b2?b(_0x1fd9b2,_0xf453c3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2ef897}):_0x1fd9b2[_0xf453c3]=_0x2ef897,pt=(_0x3db4ec,_0x3abe4c)=>{const _0x325b7c=_0x4dcc7d;for(var _0x35a9a1 in _0x3abe4c||(_0x3abe4c={}))xt[_0x325b7c(0x17d)](_0x3abe4c,_0x35a9a1)&&Lt(_0x3db4ec,_0x35a9a1,_0x3abe4c[_0x35a9a1]);if(Nt){for(var _0x35a9a1 of Nt(_0x3abe4c))me[_0x325b7c(0x17d)](_0x3abe4c,_0x35a9a1)&&Lt(_0x3db4ec,_0x35a9a1,_0x3abe4c[_0x35a9a1]);}return _0x3db4ec;},gt=(_0x38b140,_0x4c9688)=>de(_0x38b140,ge(_0x4c9688)),ye=(_0x5cb89b,_0x283a3e)=>{for(var _0x41f466 in _0x283a3e)b(_0x5cb89b,_0x41f466,{'get':_0x283a3e[_0x41f466],'enumerable':!0x0});},Dt=(_0x3c2919,_0x31a317,_0x3e4834,_0x2087e2)=>{const _0xc987ef=_0x4dcc7d;if(_0x31a317&&typeof _0x31a317==_0xc987ef(0x184)||typeof _0x31a317=='function'){for(let _0x4afd1d of Ee(_0x31a317))!xt[_0xc987ef(0x17d)](_0x3c2919,_0x4afd1d)&&_0x4afd1d!==_0x3e4834&&b(_0x3c2919,_0x4afd1d,{'get':()=>_0x31a317[_0x4afd1d],'enumerable':!(_0x2087e2=pe(_0x31a317,_0x4afd1d))||_0x2087e2[_0xc987ef(0x175)]});}return _0x3c2919;},_t=(_0x37acc5,_0xb5da7b,_0x1c84b6)=>(_0x1c84b6=_0x37acc5!=null?ue(he(_0x37acc5)):{},Dt(_0xb5da7b||!_0x37acc5||!_0x37acc5['__esModule']?b(_0x1c84b6,_0x4dcc7d(0x166),{'value':_0x37acc5,'enumerable':!0x0}):_0x1c84b6,_0x37acc5)),ve=_0x4735f3=>Dt(b({},_0x4dcc7d(0x153),{'value':!0x0}),_0x4735f3),Et=(_0x3316e1,_0x50b39a,_0x45fc2c)=>{const _0x3b0afe=_0x4dcc7d;if(!_0x50b39a[_0x3b0afe(0x148)](_0x3316e1))throw TypeError(_0x3b0afe(0x137)+_0x45fc2c);},u=(_0x3c7737,_0x15b7e6,_0xbefca6)=>(Et(_0x3c7737,_0x15b7e6,'read\x20from\x20private\x20field'),_0xbefca6?_0xbefca6[_0x4dcc7d(0x17d)](_0x3c7737):_0x15b7e6[_0x4dcc7d(0x11d)](_0x3c7737)),i=(_0x4cdb3c,_0x53194e,_0x543bf4)=>{const _0x30c397=_0x4dcc7d;if(_0x53194e[_0x30c397(0x148)](_0x4cdb3c))throw TypeError(_0x30c397(0x122));_0x53194e instanceof WeakSet?_0x53194e[_0x30c397(0x193)](_0x4cdb3c):_0x53194e['set'](_0x4cdb3c,_0x543bf4);},E=(_0xa22eae,_0xfc7747,_0x275220,_0x24f60b)=>(Et(_0xa22eae,_0xfc7747,_0x4dcc7d(0x124)),_0x24f60b?_0x24f60b['call'](_0xa22eae,_0x275220):_0xfc7747[_0x4dcc7d(0x18d)](_0xa22eae,_0x275220),_0x275220),Ct=(_0x1e8d88,_0x11eaa3,_0x4daf0d,_0x541acf)=>({set '_'(_0x1c22ac){E(_0x1e8d88,_0x11eaa3,_0x1c22ac,_0x4daf0d);},get '_'(){return u(_0x1e8d88,_0x11eaa3,_0x541acf);}}),n=(_0xdf3320,_0x381829,_0x445878)=>(Et(_0xdf3320,_0x381829,_0x4dcc7d(0x15c)),_0x445878),a=(_0x27be3c,_0x28dcbd,_0x3d6365)=>new Promise((_0x67998a,_0x4f8500)=>{const _0x487c52=_0x4dcc7d;var _0x221dcf=_0x10e17f=>{const _0x5e88e5=_0x5bf7;try{_0x55f154(_0x3d6365[_0x5e88e5(0x127)](_0x10e17f));}catch(_0x41ed22){_0x4f8500(_0x41ed22);}},_0x2ddafb=_0x545219=>{try{_0x55f154(_0x3d6365['throw'](_0x545219));}catch(_0x3f41ed){_0x4f8500(_0x3f41ed);}},_0x55f154=_0x35ec90=>_0x35ec90[_0x487c52(0x128)]?_0x67998a(_0x35ec90['value']):Promise[_0x487c52(0x158)](_0x35ec90[_0x487c52(0x18c)])['then'](_0x221dcf,_0x2ddafb);_0x55f154((_0x3d6365=_0x3d6365['apply'](_0x27be3c,_0x28dcbd))['next']());}),fe={};ye(fe,{'default':()=>Te}),module[_0x4dcc7d(0x15e)]=ve(fe);var vt=require('uuid'),$t=_0x4dcc7d(0x197),ht=_0x4dcc7d(0x12f),Vt=_0x4dcc7d(0x136),Q=_0x4dcc7d(0x15b),Bt=_0x4dcc7d(0x120),Ft=_0x4dcc7d(0x12b),Mt='/customer',kt=_0x4dcc7d(0x14f),Qt=_t(require('axios')),jt=require('axios-queue-js'),qt=_t(require('axios-retry')),Jt=require('axios'),c=class extends Error{constructor(_0x120e61){const _0xb1cebe=_0x4dcc7d;super(_0x120e61),this['name']=_0xb1cebe(0x1a2);}};c['disableSDK']=!0x1,c[_0x4dcc7d(0x177)]=!navigator[_0x4dcc7d(0x188)],c[_0x4dcc7d(0x19f)]=!0x1,c[_0x4dcc7d(0x119)]=!0x1;var Ie=(_0x2ad227,_0x3db410)=>{const _0x86f1f8=_0x4dcc7d;_0x3db410 instanceof c?console['error'](_0x86f1f8(0x159)+_0x2ad227,_0x86f1f8(0x178)+_0x3db410[_0x86f1f8(0x139)]):_0x3db410 instanceof Jt[_0x86f1f8(0x19c)]?(console[_0x86f1f8(0x14e)]('OriginateFrom:\x20'+_0x2ad227,_0x86f1f8(0x19d)+_0x3db410[_0x86f1f8(0x139)]),_0x3db410[_0x86f1f8(0x1a3)]?(console['error'](_0x86f1f8(0x159)+_0x2ad227,_0x86f1f8(0x117)+_0x3db410['response'][_0x86f1f8(0x180)]),console['error'](_0x86f1f8(0x159)+_0x2ad227,'Response\x20Data:',_0x3db410[_0x86f1f8(0x1a3)][_0x86f1f8(0x131)])):_0x3db410['request']?console['error'](_0x86f1f8(0x159)+_0x2ad227+_0x86f1f8(0x133)):console['error']('OriginateFrom:\x20'+_0x2ad227,_0x86f1f8(0x116),_0x3db410[_0x86f1f8(0x139)])):_0x3db410 instanceof Error?console[_0x86f1f8(0x14e)](_0x86f1f8(0x159)+_0x2ad227,_0x86f1f8(0x16b),_0x3db410[_0x86f1f8(0x139)]):console[_0x86f1f8(0x14e)](_0x86f1f8(0x159)+_0x2ad227,_0x86f1f8(0x16b),String(_0x3db410));},f=(_0x10712a,_0x17db37,_0x39d89e)=>a(void 0x0,null,function*(){const _0x3850b1=_0x4dcc7d;try{if(c[_0x3850b1(0x15f)])throw new c('Mergn\x20SDK\x20is\x20disabled!');if(_0x10712a!==_0x3850b1(0x193)&&c[_0x3850b1(0x177)])throw new c(_0x3850b1(0x196));if(_0x10712a!=='init'&&!c[_0x3850b1(0x119)])throw new c('Mergn\x20not\x20initialized!');return yield _0x17db37();}catch(_0x34fea1){return _0x39d89e?_0x39d89e(_0x34fea1):c['showErrorLog']&&Ie(_0x10712a,_0x34fea1),null;}}),I,R,P,A,j,U,yt,q,zt,d=class d{constructor(){const _0x3f7aa4=_0x4dcc7d;i(this,j,0x0);let _0x74dfed=Qt[_0x3f7aa4(0x166)]['create']({'baseURL':$t,'headers':{'Content-Type':_0x3f7aa4(0x191)}});E(d,R,_0x74dfed),E(d,P,new jt[(_0x3f7aa4(0x16e))]({'client':_0x74dfed,'queueSize':0xa})),(0x0,qt[_0x3f7aa4(0x166)])(_0x74dfed,{'onRetry':_0x54aa53=>{const _0x181583=_0x3f7aa4;_0x54aa53>=u(d,A)?(c[_0x181583(0x19f)]&&console['log'](_0x181583(0x143)),c[_0x181583(0x15f)]=!0x0):Ct(this,j)['_']++;},'retries':u(d,A),'retryDelay':_0x39ae5c=>_0x39ae5c*0x1388});}static[_0x4dcc7d(0x125)](_0x18a165){const _0x243b0a=_0x4dcc7d;this[_0x243b0a(0x151)]=_0x18a165,n(this,q,zt)['call'](this)[_0x243b0a(0x129)][_0x243b0a(0x154)][_0x243b0a(0x11a)]['Authorization']=_0x18a165;}static[_0x4dcc7d(0x11d)](_0x537f60){const _0x4991d1=_0x4dcc7d;return n(this,U,yt)[_0x4991d1(0x17d)](this)[_0x4991d1(0x11d)](_0x537f60);}static[_0x4dcc7d(0x12a)](_0x4e270d,_0x2a8a45){const _0x35e82a=_0x4dcc7d;return n(this,U,yt)[_0x35e82a(0x17d)](this)[_0x35e82a(0x12a)](_0x4e270d,_0x2a8a45||{});}};function _0x5bf7(_0xf925df,_0xb161cf){const _0x37c3bd=_0x37c3();return _0x5bf7=function(_0x5bf74a,_0x2821c7){_0x5bf74a=_0x5bf74a-0x116;let _0x3cef13=_0x37c3bd[_0x5bf74a];return _0x3cef13;},_0x5bf7(_0xf925df,_0xb161cf);}I=new WeakMap(),R=new WeakMap(),P=new WeakMap(),A=new WeakMap(),j=new WeakMap(),U=new WeakSet(),yt=function(){return u(d,I)||E(d,I,new d()),u(d,P);},q=new WeakSet(),zt=function(){return u(d,I)||E(d,I,new d()),u(d,R);},i(d,U),i(d,q),i(d,I,void 0x0),i(d,R,void 0x0),i(d,P,void 0x0),i(d,A,0x3);var mt=d,y=mt,S,v,O,N,L,x,D,Tt,_,ft,K,Kt,Y,Yt,H,Ht,W,C,G,X,Wt,Z,Gt,tt,Xt,$,St,et,Zt,w,z,rt,te,V,wt,ot,ee,it,re,B,bt,nt,oe,st,ie,at,ne,F,Rt,ct,se,lt,ae,ut,ce,M,Pt,k,At,J,Ut,T=class T{constructor(){i(this,D),i(this,_),i(this,K),i(this,Y),i(this,H),i(this,X),i(this,Z),i(this,tt),i(this,$),i(this,et),i(this,w),i(this,rt),i(this,V),i(this,ot),i(this,it),i(this,B),i(this,nt),i(this,st),i(this,at),i(this,F),i(this,ct),i(this,lt),i(this,ut),i(this,M),i(this,k),i(this,J),i(this,v,''),i(this,O,void 0x0),i(this,N,void 0x0),i(this,L,void 0x0),i(this,x,null),i(this,W,()=>{const _0x15410e=_0x5bf7;let _0x49dfbf=()=>{const _0x32f68a=_0x5bf7;let _0x24dd49=JSON[_0x32f68a(0x140)](localStorage[_0x32f68a(0x13e)](_0x32f68a(0x134)));_0x24dd49&&localStorage[_0x32f68a(0x12d)](_0x32f68a(0x134),JSON[_0x32f68a(0x1a1)](gt(pt({},_0x24dd49),{'initialTime':''+new Date()['getTime'](),'page':window[_0x32f68a(0x14c)]['hostname']+window[_0x32f68a(0x14c)][_0x32f68a(0x169)]})));};_0x49dfbf(),window[_0x15410e(0x1a6)](_0x15410e(0x118),_0x49dfbf);}),i(this,C,()=>{const _0x19822a=_0x5bf7;localStorage['removeItem'](_0x19822a(0x134));}),i(this,G,()=>{const _0x2d8699=_0x5bf7;let _0x41c957=JSON[_0x2d8699(0x140)](localStorage[_0x2d8699(0x13e)]('action')||'{}');(_0x41c957==null?void 0x0:_0x41c957[_0x2d8699(0x19e)])===_0x2d8699(0x13b)&&n(this,V,wt)[_0x2d8699(0x17d)](this);}),E(this,L,navigator['platform']);}static['getInstance'](){return u(T,S)||E(T,S,new T()),u(T,S);}[_0x4dcc7d(0x18a)](_0x318944){const _0x2e61a0=_0x4dcc7d;f(_0x2e61a0(0x18a),()=>a(this,null,function*(){const _0x482615=_0x2e61a0;n(this,K,Kt)['call'](this,_0x318944),yield n(this,D,Tt)[_0x482615(0x17d)](this),setInterval(()=>a(this,null,function*(){const _0x220fae=_0x482615;yield n(this,D,Tt)[_0x220fae(0x17d)](this);}),0x493e0);let _0x5c4c40=localStorage[_0x482615(0x13e)]('ttl'),_0x26579a=!0x1;_0x5c4c40&&(_0x26579a=new Date()[_0x482615(0x185)]()-parseInt(_0x5c4c40,0xa)>0x1b7740,_0x26579a&&n(this,M,Pt)[_0x482615(0x17d)](this)),(!_0x5c4c40||_0x26579a||n(this,Y,Yt)[_0x482615(0x17d)](this))&&(n(this,X,Wt)[_0x482615(0x17d)](this),yield n(this,w,z)[_0x482615(0x17d)](this),yield n(this,H,Ht)[_0x482615(0x17d)](this)),window[_0x482615(0x1a6)](_0x482615(0x11e),()=>a(this,null,function*(){const _0x383d4e=_0x482615;c[_0x383d4e(0x177)]=!0x1;let _0x3c57b9=JSON[_0x383d4e(0x140)](localStorage[_0x383d4e(0x13e)](_0x383d4e(0x18f))||'[]');Array[_0x383d4e(0x144)](_0x3c57b9)&&(yield y['post'](''+Q+Ft,[{'customerId':u(this,v),'events':_0x3c57b9}]),localStorage['removeItem'](_0x383d4e(0x18f)));})),window[_0x482615(0x1a6)](_0x482615(0x177),()=>{const _0x385630=_0x482615;c[_0x385630(0x177)]=!0x0;}),window['addEventListener'](_0x482615(0x165),()=>{const _0x17e484=_0x482615;u(this,G)[_0x17e484(0x17d)](this);}),c[_0x482615(0x119)]=!0x0;let _0x191770=history[_0x482615(0x186)];history[_0x482615(0x186)]=(..._0x2c00d5)=>{const _0x36a61d=_0x482615;_0x191770[_0x36a61d(0x162)](history,_0x2c00d5),n(this,_,ft)[_0x36a61d(0x17d)](this);},n(this,_,ft)[_0x482615(0x17d)](this);}));}['showErrorLog'](_0x2fa05d=!0x1){const _0x1abf4c=_0x4dcc7d;c[_0x1abf4c(0x19f)]=_0x2fa05d;}[_0x4dcc7d(0x192)](_0x1866a8){return a(this,null,function*(){const _0x242cbd=_0x5bf7;yield f(_0x242cbd(0x192),()=>a(this,null,function*(){const _0x3c64bc=_0x242cbd;yield n(this,k,At)['call'](this);let _0x91e896=JSON['parse'](localStorage[_0x3c64bc(0x13e)](_0x3c64bc(0x12c))||'{}');if(_0x91e896&&Object[_0x3c64bc(0x16f)](_0x91e896)[_0x3c64bc(0x16d)]>0x0){let _0x34427=[];_0x1866a8&&Object[_0x3c64bc(0x16f)](_0x1866a8)[_0x3c64bc(0x16d)]>0x0&&Object[_0x3c64bc(0x16f)](_0x1866a8)[_0x3c64bc(0x1a4)](_0x31581a=>{const _0x58a76e=_0x3c64bc;_0x91e896[_0x58a76e(0x152)](_0x31581a)&&_0x34427[_0x58a76e(0x146)]({'attributeId':_0x91e896[_0x31581a]['id'],'attributeProperties':[],'value':_0x1866a8[_0x31581a]});});let _0x32b76d=[{'attributes':_0x34427,'customerId':u(this,v)}];yield n(this,J,Ut)[_0x3c64bc(0x17d)](this,_0x32b76d);}}));});}[_0x4dcc7d(0x16c)](_0x36c829){return a(this,null,function*(){const _0x588cff=_0x5bf7;yield f(_0x588cff(0x16c),()=>a(this,null,function*(){const _0x24d60a=_0x588cff;yield n(this,w,z)[_0x24d60a(0x17d)](this,_0x36c829),yield this[_0x24d60a(0x156)](_0x24d60a(0x142),[{'eventProperty':_0x24d60a(0x130),'value':localStorage[_0x24d60a(0x13e)](_0x24d60a(0x164))||0x0}]);}));});}[_0x4dcc7d(0x19b)](_0x5688e9,_0x267190,_0x12a91c){return a(this,null,function*(){const _0x4e4d3c=_0x5bf7;yield n(this,k,At)[_0x4e4d3c(0x17d)](this);let _0x963986=JSON['parse'](localStorage[_0x4e4d3c(0x13e)](_0x4e4d3c(0x12c))||'{}');if(_0x963986&&Object[_0x4e4d3c(0x16f)](_0x963986)[_0x4e4d3c(0x16d)]>0x0&&_0x963986[_0x4e4d3c(0x152)](_0x5688e9)){let _0x1c8a48=_0x963986[_0x5688e9],_0x18ae2a=_0x1c8a48[_0x4e4d3c(0x135)],_0x423916=[];_0x12a91c&&Object['keys'](_0x12a91c)['length']>0x0&&Object[_0x4e4d3c(0x16f)](_0x12a91c)[_0x4e4d3c(0x1a4)](_0x2dcaa5=>{const _0x52644a=_0x4e4d3c;_0x18ae2a['hasOwnProperty'](_0x2dcaa5)&&_0x423916[_0x52644a(0x146)]({'attributePropertyId':_0x18ae2a[_0x2dcaa5]['id'],'value':_0x12a91c[_0x2dcaa5]});});let _0x4e685d=[{'attributes':[{'attributeId':_0x1c8a48['id'],'attributeProperties':_0x423916,'value':_0x267190}],'customerId':u(this,v)}];yield n(this,J,Ut)[_0x4e4d3c(0x17d)](this,_0x4e685d);}});}[_0x4dcc7d(0x121)](){return a(this,null,function*(){yield f('logout',()=>a(this,null,function*(){const _0x2e0996=_0x5bf7;n(this,M,Pt)[_0x2e0996(0x17d)](this),this['recordEvent']('User\x20Logout',[{'eventProperty':_0x2e0996(0x130),'value':localStorage[_0x2e0996(0x13e)](_0x2e0996(0x164))||0x0}]);}));});}[_0x4dcc7d(0x156)](_0xb66f7,_0x1f6bf4){return a(this,null,function*(){const _0x30dfd5=_0x5bf7;yield f(_0x30dfd5(0x193),()=>a(this,null,function*(){const _0x443fac=_0x30dfd5;var _0x526509,_0x28ea03;let _0x11e53e=n(this,st,ie)[_0x443fac(0x17d)](this),_0x440149=n(this,at,ne)[_0x443fac(0x17d)](this,_0x11e53e,_0xb66f7,_0x1f6bf4);if(typeof _0x440149=='string'){c[_0x443fac(0x19f)]&&console[_0x443fac(0x14e)](_0x440149);return;}let {id:_0x25345d}=_0x11e53e[_0xb66f7];if(c[_0x443fac(0x177)]){let _0xe6883a=JSON[_0x443fac(0x140)](localStorage[_0x443fac(0x13e)]('offlineEvents')||'[]');if(_0xe6883a['length']<=0x32){let _0x5e6211={'eventId':_0x25345d};_0x1f6bf4&&(_0x5e6211[_0x443fac(0x172)]=_0x440149),_0xe6883a['push'](_0x5e6211),localStorage[_0x443fac(0x12d)](_0x443fac(0x18f),JSON[_0x443fac(0x1a1)](_0xe6883a));}return;}let _0x647dd7=_0x1f6bf4?n(this,F,Rt)[_0x443fac(0x17d)](this,_0x25345d,_0x440149):n(this,F,Rt)[_0x443fac(0x17d)](this,_0x25345d),_0x13ad0f=yield n(this,ct,se)[_0x443fac(0x17d)](this,_0x647dd7);n(this,lt,ae)['call'](this,(_0x526509=_0x13ad0f==null?void 0x0:_0x13ad0f['data'])==null?void 0x0:_0x526509[_0x443fac(0x131)])&&(n(this,ut,ce)[_0x443fac(0x17d)](this,(_0x28ea03=_0x13ad0f==null?void 0x0:_0x13ad0f['data'])==null?void 0x0:_0x28ea03[_0x443fac(0x131)]),u(this,W)[_0x443fac(0x17d)](this),n(this,V,wt)[_0x443fac(0x17d)](this));}));});}};S=new WeakMap(),v=new WeakMap(),O=new WeakMap(),N=new WeakMap(),L=new WeakMap(),x=new WeakMap(),D=new WeakSet(),Tt=function(){return a(this,null,function*(){const _0x55a1f4=_0x5bf7;try{yield y[_0x55a1f4(0x11d)](_0x55a1f4(0x13a));}catch(_0xc7592){c[_0x55a1f4(0x15f)]=!0x0,c['showErrorLog']&&console[_0x55a1f4(0x14e)](_0xc7592['message']);}});},_=new WeakSet(),ft=function(){return a(this,null,function*(){const _0x1be2c6=_0x5bf7;let _0x486e2e=window[_0x1be2c6(0x14c)][_0x1be2c6(0x18b)]+window[_0x1be2c6(0x14c)]['pathname'];yield this[_0x1be2c6(0x156)](_0x1be2c6(0x163),[{'eventProperty':_0x1be2c6(0x15d),'value':_0x486e2e}]),_0x486e2e!==u(this,x)&&(E(this,x,_0x486e2e),new URLSearchParams(new URL(window[_0x1be2c6(0x14c)][_0x1be2c6(0x126)])[_0x1be2c6(0x11c)])[_0x1be2c6(0x1a4)]((_0x2511cb,_0x277691)=>a(this,null,function*(){const _0x43d7ed=_0x1be2c6;yield this[_0x43d7ed(0x156)]('Viewed\x20Web\x20Page',[{'eventProperty':_0x43d7ed(0x170),'value':_0x277691+':'+_0x2511cb}]);})));});},K=new WeakSet(),Kt=function(_0xd795a5){const _0x1cea50=_0x4dcc7d;y[_0x1cea50(0x125)](_0xd795a5);},Y=new WeakSet(),Yt=function(){const _0x58ca53=_0x4dcc7d;return!localStorage['getItem'](_0x58ca53(0x174))||!localStorage[_0x58ca53(0x13e)](_0x58ca53(0x164))||!localStorage[_0x58ca53(0x13e)]('attributes')||!localStorage[_0x58ca53(0x13e)](_0x58ca53(0x179));},H=new WeakSet(),Ht=function(){return a(this,null,function*(){const _0x566c69=_0x5bf7;yield n(this,Z,Gt)[_0x566c69(0x17d)](this),yield n(this,$,St)[_0x566c69(0x17d)](this),yield n(this,w,z)[_0x566c69(0x17d)](this);});},W=new WeakMap(),C=new WeakMap(),G=new WeakMap(),X=new WeakSet(),Wt=function(){const _0x4ce3f3=_0x4dcc7d;let _0x1f5d38=localStorage['getItem'](_0x4ce3f3(0x179));return _0x1f5d38||(_0x1f5d38=(0x0,vt['v4'])(),localStorage[_0x4ce3f3(0x12d)]('uniqueIdentity',_0x1f5d38)),_0x1f5d38;},Z=new WeakSet(),Gt=function(){return a(this,null,function*(){const _0x500f9b=_0x5bf7;if(!localStorage[_0x500f9b(0x13e)](_0x500f9b(0x174))){let _0x27b9e1=(yield n(this,tt,Xt)['call'](this))[_0x500f9b(0x131)];_0x27b9e1&&(E(this,O,_0x27b9e1),localStorage[_0x500f9b(0x12d)](_0x500f9b(0x174),JSON[_0x500f9b(0x1a1)](u(this,O))));}});},tt=new WeakSet(),Xt=function(){return a(this,null,function*(){const _0x4fad10=_0x5bf7;try{return(yield y[_0x4fad10(0x11d)](''+Q))[_0x4fad10(0x131)];}catch(_0x2e2ded){throw new Error(_0x4fad10(0x11b));}});},$=new WeakSet(),St=function(){return a(this,null,function*(){const _0x1ad01c=_0x5bf7;if(!localStorage[_0x1ad01c(0x13e)](_0x1ad01c(0x12c))){let _0x2ad737=(yield n(this,et,Zt)['call'](this))[_0x1ad01c(0x131)];_0x2ad737&&(E(this,N,_0x2ad737),localStorage[_0x1ad01c(0x12d)](_0x1ad01c(0x12c),JSON[_0x1ad01c(0x1a1)](u(this,N))));}});},et=new WeakSet(),Zt=function(){return a(this,null,function*(){const _0x1240c1=_0x5bf7;try{return(yield y[_0x1240c1(0x11d)](''+ht))[_0x1240c1(0x131)];}catch(_0x4569ac){throw new Error(_0x1240c1(0x13c));}});},w=new WeakSet(),z=function(_0x2a08a6){return a(this,null,function*(){const _0x2de40c=_0x5bf7;if(!_0x2a08a6){let _0x520d73=localStorage[_0x2de40c(0x13e)](_0x2de40c(0x164));if(_0x520d73){E(this,v,_0x520d73);return;}}let _0x2a95f8={'deviceId':localStorage[_0x2de40c(0x13e)](_0x2de40c(0x179))||(0x0,vt['v4'])(),'os':u(this,L)};_0x2a08a6&&(_0x2a95f8[_0x2de40c(0x16a)]=_0x2a08a6);try{let _0x365d75=(yield n(this,rt,te)[_0x2de40c(0x17d)](this,_0x2a95f8))[_0x2de40c(0x131)];_0x365d75!==void 0x0&&(E(this,v,_0x365d75),localStorage[_0x2de40c(0x12d)]('customer',u(this,v)));}catch(_0x2e0918){throw new Error('Error\x20setting\x20identity');}});},rt=new WeakSet(),te=function(_0x593866){return a(this,null,function*(){const _0x5cfc7f=_0x5bf7;try{return(yield y[_0x5cfc7f(0x12a)](''+Mt+kt,_0x593866))[_0x5cfc7f(0x131)];}catch(_0x2cea43){throw new Error(_0x5cfc7f(0x11f));}});},V=new WeakSet(),wt=function(){const _0x5875f0=_0x4dcc7d;let _0x4f3a6f=n(this,ot,ee)[_0x5875f0(0x17d)](this);if(_0x4f3a6f){let _0x3d3af3=_0x4f3a6f['design'],_0x5119c8=_0x4f3a6f[_0x5875f0(0x168)];_0x4f3a6f['delay']?n(this,it,re)[_0x5875f0(0x17d)](this,_0x4f3a6f,_0x3d3af3,_0x5119c8):n(this,B,bt)[_0x5875f0(0x17d)](this,_0x3d3af3,_0x5119c8);}},ot=new WeakSet(),ee=function(){const _0x288eea=_0x4dcc7d;let _0x56cee8=localStorage['getItem'](_0x288eea(0x134));return _0x56cee8?JSON[_0x288eea(0x140)](_0x56cee8):null;},it=new WeakSet(),re=function(_0xae8036,_0x497262,_0x297e8c){const _0x20b88a=_0x4dcc7d;let _0xb844ec=parseInt(_0xae8036['initialTime'],0xa)+_0xae8036['delay']-new Date()['getTime']();_0xb844ec>0x0&&_0xae8036[_0x20b88a(0x13d)]===window[_0x20b88a(0x14c)][_0x20b88a(0x18b)]+window['location']['pathname']&&setTimeout(()=>{const _0x4969a5=_0x20b88a;u(this,C)[_0x4969a5(0x17d)](this),n(this,B,bt)[_0x4969a5(0x17d)](this,_0x497262,_0x297e8c);},_0xb844ec);},B=new WeakSet(),bt=function(_0x3b5669,_0x3bcb96){const _0xe91f14=_0x4dcc7d;let _0x54f814=n(this,nt,oe)[_0xe91f14(0x17d)](this,_0xe91f14(0x15a),_0x3b5669,_0x3bcb96);document['body'][_0xe91f14(0x160)](_0x54f814),u(this,C)[_0xe91f14(0x17d)](this);},nt=new WeakSet(),oe=function(_0x497d5c,_0x59c86b,_0x5bfb26){const _0x5a33d9=_0x4dcc7d;var _0x6c9826;let _0x366656=document[_0x5a33d9(0x149)](_0x497d5c);return _0x366656['id']=_0x5a33d9(0x17f)+_0x5bfb26,_0x366656['innerHTML']=_0x59c86b,(_0x6c9826=_0x366656[_0x5a33d9(0x187)](_0x5a33d9(0x167)))==null||_0x6c9826[_0x5a33d9(0x1a6)]('click',()=>a(this,null,function*(){const _0x3adbc5=_0x5a33d9;_0x366656[_0x3adbc5(0x123)](),yield this[_0x3adbc5(0x156)]('Popup\x20Button\x20Clicked',[{'eventProperty':_0x3adbc5(0x1a5),'value':_0x5bfb26}]);})),_0x366656[_0x5a33d9(0x182)](_0x5a33d9(0x17a))[_0x5a33d9(0x1a4)](_0x3c87cd=>{const _0xe8498d=_0x5a33d9;_0x3c87cd[_0xe8498d(0x1a6)](_0xe8498d(0x199),()=>a(this,null,function*(){yield this['recordEvent']('Popup\x20Button\x20Clicked',[{'eventProperty':'Campaign\x20Id','value':_0x5bfb26}]);}));}),_0x366656[_0x5a33d9(0x182)](_0x5a33d9(0x194))[_0x5a33d9(0x1a4)](_0x544fc0=>{const _0x182013=_0x5a33d9;_0x544fc0[_0x182013(0x1a6)](_0x182013(0x199),()=>a(this,null,function*(){const _0x394770=_0x182013;yield this[_0x394770(0x156)](_0x394770(0x173),[{'eventProperty':_0x394770(0x1a5),'value':_0x5bfb26}]);}));}),_0x366656;},st=new WeakSet(),ie=function(){const _0xc03322=_0x4dcc7d;let _0xe5aa11=localStorage[_0xc03322(0x13e)](_0xc03322(0x174));return _0xe5aa11?JSON[_0xc03322(0x140)](_0xe5aa11):{};},at=new WeakSet(),ne=function(_0x2a91df,_0x126a3a,_0x5d978f){const _0x5eb3b2=_0x4dcc7d;if(!_0x2a91df[_0x5eb3b2(0x152)](_0x126a3a))return _0x5eb3b2(0x176)+_0x126a3a+'\x20is\x20not\x20valid.';if(!_0x5d978f)return[];let _0x12c760=_0x2a91df[_0x126a3a];if(!(_0x12c760!=null&&_0x12c760['eventProperty']))return _0x5eb3b2(0x176)+_0x126a3a+'\x20does\x20not\x20have\x20a\x20valid\x20eventProperty.';let _0x462cd9=_0x5d978f['filter'](({eventProperty:_0x2b6434})=>!_0x12c760[_0x5eb3b2(0x13f)][_0x5eb3b2(0x152)](_0x2b6434))['map'](({eventProperty:_0x48943a})=>_0x48943a);return _0x462cd9[_0x5eb3b2(0x16d)]>0x0?_0x5eb3b2(0x176)+_0x126a3a+_0x5eb3b2(0x195)+_0x462cd9[_0x5eb3b2(0x181)](',\x20')+'.':_0x5d978f[_0x5eb3b2(0x183)](({eventProperty:_0x10a130,value:_0x3ddb03})=>({'eventPropertyId':_0x12c760[_0x5eb3b2(0x13f)][_0x10a130]['id'],'value':_0x3ddb03}));},F=new WeakSet(),Rt=function(_0x395f1a,_0x3754d8){const _0x12e5ee=_0x4dcc7d;let _0xc6a82e=[{'customerId':localStorage[_0x12e5ee(0x13e)](_0x12e5ee(0x164))||'0','events':[{'eventId':_0x395f1a}]}];return _0x3754d8&&(_0xc6a82e[0x0][_0x12e5ee(0x174)][0x0][_0x12e5ee(0x172)]=_0x3754d8),_0xc6a82e;},ct=new WeakSet(),se=function(_0xe9023c){return a(this,null,function*(){const _0x350062=_0x5bf7;try{return yield y[_0x350062(0x12a)](''+Q+Bt,_0xe9023c);}catch(_0x2612a6){throw new Error(_0x350062(0x138));}});},lt=new WeakSet(),ae=function(_0x1f3a6d){const _0x194864=_0x4dcc7d;return(_0x1f3a6d==null?void 0x0:_0x1f3a6d[_0x194864(0x19e)])===_0x194864(0x13b);},ut=new WeakSet(),ce=function(_0x8839bd){const _0x50ac44=_0x4dcc7d;localStorage[_0x50ac44(0x12d)](_0x50ac44(0x134),JSON[_0x50ac44(0x1a1)](gt(pt({},_0x8839bd),{'initialTime':''+new Date()[_0x50ac44(0x185)]()})));},M=new WeakSet(),Pt=function(){const _0x434c3b=_0x4dcc7d;localStorage[_0x434c3b(0x157)](_0x434c3b(0x134)),localStorage[_0x434c3b(0x157)](_0x434c3b(0x174)),localStorage['removeItem']('attributes'),localStorage[_0x434c3b(0x157)](_0x434c3b(0x18f));},k=new WeakSet(),At=function(){return a(this,null,function*(){const _0xa2c954=_0x5bf7;localStorage[_0xa2c954(0x13e)](_0xa2c954(0x12c))||(yield n(this,$,St)['call'](this));});},J=new WeakSet(),Ut=function(_0x54beac){return a(this,null,function*(){const _0xbe3fd6=_0x5bf7;try{return yield y[_0xbe3fd6(0x12a)](''+ht+Vt,_0x54beac);}catch(_0x2c2ef0){throw new Error(_0xbe3fd6(0x17e));}});},i(T,S,void 0x0);var It=T,le=It[_0x4dcc7d(0x145)](),Te=le;
|
|
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;
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x472ce2=_0x2dd1;(function(_0x17cd64,_0x2a40f4){const _0x587edb=_0x2dd1,_0x21add1=_0x17cd64();while(!![]){try{const _0xbb7c7a=parseInt(_0x587edb(0x88))/0x1+-parseInt(_0x587edb(0xae))/0x2+-parseInt(_0x587edb(0xc5))/0x3+-parseInt(_0x587edb(0x10e))/0x4*(-parseInt(_0x587edb(0x10a))/0x5)+-parseInt(_0x587edb(0x109))/0x6+parseInt(_0x587edb(0x9c))/0x7+parseInt(_0x587edb(0xfc))/0x8*(parseInt(_0x587edb(0x108))/0x9);if(_0xbb7c7a===_0x2a40f4)break;else _0x21add1['push'](_0x21add1['shift']());}catch(_0x148352){_0x21add1['push'](_0x21add1['shift']());}}}(_0x1b63,0x97403));var re=Object[_0x472ce2(0xd2)],oe=Object['defineProperties'],ie=Object[_0x472ce2(0x8b)],Ut=Object[_0x472ce2(0xfe)],ne=Object[_0x472ce2(0xc2)]['hasOwnProperty'],se=Object['prototype'][_0x472ce2(0x100)],Ot=(_0x1d87d2,_0x47ec65,_0x208b70)=>_0x47ec65 in _0x1d87d2?re(_0x1d87d2,_0x47ec65,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x208b70}):_0x1d87d2[_0x47ec65]=_0x208b70,dt=(_0x1dd562,_0x3bbcff)=>{const _0x163c19=_0x472ce2;for(var _0x584833 in _0x3bbcff||(_0x3bbcff={}))ne[_0x163c19(0x10f)](_0x3bbcff,_0x584833)&&Ot(_0x1dd562,_0x584833,_0x3bbcff[_0x584833]);if(Ut){for(var _0x584833 of Ut(_0x3bbcff))se[_0x163c19(0x10f)](_0x3bbcff,_0x584833)&&Ot(_0x1dd562,_0x584833,_0x3bbcff[_0x584833]);}return _0x1dd562;},pt=(_0x1cf860,_0x2db831)=>oe(_0x1cf860,ie(_0x2db831)),gt=(_0x2136ff,_0x7784c5,_0x42f4b9)=>{const _0x5807c6=_0x472ce2;if(!_0x7784c5[_0x5807c6(0xa9)](_0x2136ff))throw TypeError(_0x5807c6(0xa6)+_0x42f4b9);},u=(_0x1076b9,_0x3b9f64,_0x4964c3)=>(gt(_0x1076b9,_0x3b9f64,_0x472ce2(0xc9)),_0x4964c3?_0x4964c3[_0x472ce2(0x10f)](_0x1076b9):_0x3b9f64[_0x472ce2(0xd0)](_0x1076b9)),i=(_0x5ef3e,_0x5653e1,_0x35da2d)=>{const _0xb8dbd8=_0x472ce2;if(_0x5653e1[_0xb8dbd8(0xa9)](_0x5ef3e))throw TypeError(_0xb8dbd8(0xb9));_0x5653e1 instanceof WeakSet?_0x5653e1['add'](_0x5ef3e):_0x5653e1['set'](_0x5ef3e,_0x35da2d);},E=(_0x11b219,_0xa150f8,_0x412963,_0x3b754a)=>(gt(_0x11b219,_0xa150f8,_0x472ce2(0xf0)),_0x3b754a?_0x3b754a[_0x472ce2(0x10f)](_0x11b219,_0x412963):_0xa150f8[_0x472ce2(0xef)](_0x11b219,_0x412963),_0x412963),Nt=(_0x440185,_0x166119,_0x48cc8b,_0x2245e7)=>({set '_'(_0x34c824){E(_0x440185,_0x166119,_0x34c824,_0x48cc8b);},get '_'(){return u(_0x440185,_0x166119,_0x2245e7);}}),n=(_0x489732,_0x4990f3,_0x36610c)=>(gt(_0x489732,_0x4990f3,_0x472ce2(0x113)),_0x36610c),a=(_0x3c1794,_0x151bc6,_0x2f4127)=>new Promise((_0x107ac9,_0x63c5f8)=>{const _0x399190=_0x472ce2;var _0x5800eb=_0x1b8c52=>{const _0x435976=_0x2dd1;try{_0x591617(_0x2f4127[_0x435976(0xa7)](_0x1b8c52));}catch(_0x1d4e4e){_0x63c5f8(_0x1d4e4e);}},_0x10a45c=_0x243543=>{const _0x45fed5=_0x2dd1;try{_0x591617(_0x2f4127[_0x45fed5(0x8d)](_0x243543));}catch(_0x4c1cee){_0x63c5f8(_0x4c1cee);}},_0x591617=_0x369c2c=>_0x369c2c[_0x399190(0xe0)]?_0x107ac9(_0x369c2c['value']):Promise[_0x399190(0xf1)](_0x369c2c[_0x399190(0xf8)])[_0x399190(0xd7)](_0x5800eb,_0x10a45c);_0x591617((_0x2f4127=_0x2f4127[_0x399190(0xf4)](_0x3c1794,_0x151bc6))['next']());});import{v4 as _0xaee0aa}from'uuid';var Lt=_0x472ce2(0xea),Et=_0x472ce2(0xc6),xt=_0x472ce2(0xc0),J=_0x472ce2(0x9f),Dt=_0x472ce2(0x101),_t='/record-bulk-event',Ct=_0x472ce2(0x90),$t='/set-identity';import _0x53d2d2 from'axios';import{AxiosQueueManager as _0x58cf58}from'axios-queue-js';import _0x55142e from'axios-retry';import{AxiosError as _0x45f5ff}from'axios';var c=class extends Error{constructor(_0x4cd9fa){const _0x1e7d2e=_0x472ce2;super(_0x4cd9fa),this[_0x1e7d2e(0xeb)]=_0x1e7d2e(0xc4);}};c[_0x472ce2(0xa0)]=!0x1,c['offline']=!navigator[_0x472ce2(0x112)],c[_0x472ce2(0xdd)]=!0x1,c['isInitialized']=!0x1;var ce=(_0x384ec2,_0x3c825b)=>{const _0x4edcd4=_0x472ce2;_0x3c825b instanceof c?console[_0x4edcd4(0xb5)](_0x4edcd4(0xe5)+_0x384ec2,_0x4edcd4(0xb3)+_0x3c825b[_0x4edcd4(0xb1)]):_0x3c825b instanceof _0x45f5ff?(console['error'](_0x4edcd4(0xe5)+_0x384ec2,_0x4edcd4(0x93)+_0x3c825b[_0x4edcd4(0xb1)]),_0x3c825b[_0x4edcd4(0xc7)]?(console[_0x4edcd4(0xb5)](_0x4edcd4(0xe5)+_0x384ec2,_0x4edcd4(0xad)+_0x3c825b[_0x4edcd4(0xc7)][_0x4edcd4(0xbd)]),console['error']('OriginateFrom:\x20'+_0x384ec2,_0x4edcd4(0xaa),_0x3c825b[_0x4edcd4(0xc7)][_0x4edcd4(0x106)])):_0x3c825b[_0x4edcd4(0x9a)]?console[_0x4edcd4(0xb5)](_0x4edcd4(0xe5)+_0x384ec2+_0x4edcd4(0xe9)):console['error']('OriginateFrom:\x20'+_0x384ec2,_0x4edcd4(0xa4),_0x3c825b[_0x4edcd4(0xb1)])):_0x3c825b instanceof Error?console['error'](_0x4edcd4(0xe5)+_0x384ec2,_0x4edcd4(0xee),_0x3c825b['message']):console[_0x4edcd4(0xb5)](_0x4edcd4(0xe5)+_0x384ec2,_0x4edcd4(0xee),String(_0x3c825b));},f=(_0x2b58d0,_0x22c3a3,_0x360c42)=>a(void 0x0,null,function*(){const _0x2e7604=_0x472ce2;try{if(c[_0x2e7604(0xa0)])throw new c(_0x2e7604(0xf6));if(_0x2b58d0!==_0x2e7604(0x103)&&c[_0x2e7604(0xb4)])throw new c(_0x2e7604(0xd8));if(_0x2b58d0!==_0x2e7604(0xc8)&&!c['isInitialized'])throw new c(_0x2e7604(0xc1));return yield _0x22c3a3();}catch(_0x42bed3){return _0x360c42?_0x360c42(_0x42bed3):c['showErrorLog']&&ce(_0x2b58d0,_0x42bed3),null;}}),I,b,R,P,Q,A,mt,j,Vt,d=class d{constructor(){const _0x3d60db=_0x472ce2;i(this,Q,0x0);let _0x56e086=_0x53d2d2[_0x3d60db(0xdc)]({'baseURL':Lt,'headers':{'Content-Type':_0x3d60db(0xff)}});E(d,b,_0x56e086),E(d,R,new _0x58cf58({'client':_0x56e086,'queueSize':0xa})),_0x55142e(_0x56e086,{'onRetry':_0x139cbe=>{const _0x4da273=_0x3d60db;_0x139cbe>=u(d,P)?(c[_0x4da273(0xdd)]&&console['log'](_0x4da273(0xfd)),c[_0x4da273(0xa0)]=!0x0):Nt(this,Q)['_']++;},'retries':u(d,P),'retryDelay':_0x531328=>_0x531328*0x1388});}static['updateAPIKey'](_0x1ba692){const _0xcb009f=_0x472ce2;this[_0xcb009f(0x10b)]=_0x1ba692,n(this,j,Vt)[_0xcb009f(0x10f)](this)[_0xcb009f(0xe1)][_0xcb009f(0xd3)][_0xcb009f(0x111)][_0xcb009f(0x9b)]=_0x1ba692;}static['get'](_0x43bde2){const _0x4f42e6=_0x472ce2;return n(this,A,mt)[_0x4f42e6(0x10f)](this)[_0x4f42e6(0xd0)](_0x43bde2);}static[_0x472ce2(0x9e)](_0x4aa89b,_0xa80ce4){const _0x5d1f99=_0x472ce2;return n(this,A,mt)[_0x5d1f99(0x10f)](this)[_0x5d1f99(0x9e)](_0x4aa89b,_0xa80ce4||{});}};I=new WeakMap(),b=new WeakMap(),R=new WeakMap(),P=new WeakMap(),Q=new WeakMap(),A=new WeakSet(),mt=function(){return u(d,I)||E(d,I,new d()),u(d,R);},j=new WeakSet(),Vt=function(){return u(d,I)||E(d,I,new d()),u(d,b);},i(d,A),i(d,j),i(d,I,void 0x0),i(d,b,void 0x0),i(d,R,void 0x0),i(d,P,0x3);var ht=d,y=ht,S,v,U,O,N,L,x,vt,D,It,z,Ft,K,Mt,Y,kt,H,_,W,G,Jt,X,Qt,Z,jt,C,Tt,tt,qt,w,q,et,zt,$,ft,rt,Kt,ot,Yt,V,St,it,Ht,nt,Wt,st,Gt,B,wt,at,Xt,ct,Zt,lt,te,F,bt,M,Rt,k,Pt,T=class T{constructor(){const _0x19f2f9=_0x472ce2;i(this,x),i(this,D),i(this,z),i(this,K),i(this,Y),i(this,G),i(this,X),i(this,Z),i(this,C),i(this,tt),i(this,w),i(this,et),i(this,$),i(this,rt),i(this,ot),i(this,V),i(this,it),i(this,nt),i(this,st),i(this,B),i(this,at),i(this,ct),i(this,lt),i(this,F),i(this,M),i(this,k),i(this,v,''),i(this,U,void 0x0),i(this,O,void 0x0),i(this,N,void 0x0),i(this,L,null),i(this,H,()=>{let _0x4202b9=()=>{const _0x553a3a=_0x2dd1;let _0x40300b=JSON[_0x553a3a(0x92)](localStorage[_0x553a3a(0x94)]('action'));_0x40300b&&localStorage[_0x553a3a(0x10c)](_0x553a3a(0xf9),JSON['stringify'](pt(dt({},_0x40300b),{'initialTime':''+new Date()['getTime'](),'page':window[_0x553a3a(0x104)][_0x553a3a(0xac)]+window['location'][_0x553a3a(0xd4)]})));};_0x4202b9(),window['addEventListener']('beforeunload',_0x4202b9);}),i(this,_,()=>{const _0x182921=_0x2dd1;localStorage[_0x182921(0x102)](_0x182921(0xf9));}),i(this,W,()=>{const _0x18c285=_0x2dd1;let _0x529fe8=JSON['parse'](localStorage[_0x18c285(0x94)]('action')||'{}');(_0x529fe8==null?void 0x0:_0x529fe8[_0x18c285(0xeb)])===_0x18c285(0xda)&&n(this,$,ft)[_0x18c285(0x10f)](this);}),E(this,N,navigator[_0x19f2f9(0x89)]);}static['getInstance'](){return u(T,S)||E(T,S,new T()),u(T,S);}[_0x472ce2(0xc8)](_0x511ab2){const _0x1233eb=_0x472ce2;f(_0x1233eb(0xc8),()=>a(this,null,function*(){const _0x370076=_0x1233eb;n(this,z,Ft)[_0x370076(0x10f)](this,_0x511ab2),yield n(this,x,vt)['call'](this),setInterval(()=>a(this,null,function*(){const _0x4cc1e1=_0x370076;yield n(this,x,vt)[_0x4cc1e1(0x10f)](this);}),0x493e0);let _0xec730b=localStorage[_0x370076(0x94)]('ttl'),_0x49fb3b=!0x1;_0xec730b&&(_0x49fb3b=new Date()[_0x370076(0x10d)]()-parseInt(_0xec730b,0xa)>0x1b7740,_0x49fb3b&&n(this,F,bt)[_0x370076(0x10f)](this)),(!_0xec730b||_0x49fb3b||n(this,K,Mt)[_0x370076(0x10f)](this))&&(n(this,G,Jt)[_0x370076(0x10f)](this),yield n(this,w,q)[_0x370076(0x10f)](this),yield n(this,Y,kt)['call'](this)),window['addEventListener'](_0x370076(0xf5),()=>a(this,null,function*(){const _0x504356=_0x370076;c['offline']=!0x1;let _0x13c3f7=JSON[_0x504356(0x92)](localStorage[_0x504356(0x94)](_0x504356(0xcb))||'[]');Array[_0x504356(0x98)](_0x13c3f7)&&(yield y['post'](''+J+_t,[{'customerId':u(this,v),'events':_0x13c3f7}]),localStorage[_0x504356(0x102)]('offlineEvents'));})),window['addEventListener']('offline',()=>{const _0x55fbd3=_0x370076;c[_0x55fbd3(0xb4)]=!0x0;}),window[_0x370076(0xb2)](_0x370076(0x105),()=>{const _0x190cf6=_0x370076;u(this,W)[_0x190cf6(0x10f)](this);}),c[_0x370076(0xb6)]=!0x0;let _0x17f138=history[_0x370076(0xbc)];history[_0x370076(0xbc)]=(..._0x2319b5)=>{const _0x28a2ed=_0x370076;_0x17f138[_0x28a2ed(0xf4)](history,_0x2319b5),n(this,D,It)['call'](this);},n(this,D,It)['call'](this);}));}[_0x472ce2(0xdd)](_0x4b7fc2=!0x1){const _0x15247a=_0x472ce2;c[_0x15247a(0xdd)]=_0x4b7fc2;}[_0x472ce2(0xa2)](_0x2043e6){return a(this,null,function*(){const _0x56c007=_0x2dd1;yield f(_0x56c007(0xa2),()=>a(this,null,function*(){const _0x541b0b=_0x56c007;yield n(this,M,Rt)[_0x541b0b(0x10f)](this);let _0x18555a=JSON[_0x541b0b(0x92)](localStorage[_0x541b0b(0x94)](_0x541b0b(0xba))||'{}');if(_0x18555a&&Object['keys'](_0x18555a)['length']>0x0){let _0xf48906=[];_0x2043e6&&Object[_0x541b0b(0xbb)](_0x2043e6)[_0x541b0b(0xaf)]>0x0&&Object[_0x541b0b(0xbb)](_0x2043e6)[_0x541b0b(0xde)](_0x84fa78=>{_0x18555a['hasOwnProperty'](_0x84fa78)&&_0xf48906['push']({'attributeId':_0x18555a[_0x84fa78]['id'],'attributeProperties':[],'value':_0x2043e6[_0x84fa78]});});let _0x199a53=[{'attributes':_0xf48906,'customerId':u(this,v)}];yield n(this,k,Pt)[_0x541b0b(0x10f)](this,_0x199a53);}}));});}[_0x472ce2(0x8e)](_0x47b8b3){return a(this,null,function*(){const _0x20eb1e=_0x2dd1;yield f(_0x20eb1e(0x8e),()=>a(this,null,function*(){const _0x431350=_0x20eb1e;yield n(this,w,q)[_0x431350(0x10f)](this,_0x47b8b3),yield this[_0x431350(0xfa)](_0x431350(0xe7),[{'eventProperty':'Customer\x20Id','value':localStorage[_0x431350(0x94)](_0x431350(0xe8))||0x0}]);}));});}[_0x472ce2(0xcd)](_0x30ce74,_0x17baea,_0x1ff0dd){return a(this,null,function*(){const _0x14cf8e=_0x2dd1;yield n(this,M,Rt)[_0x14cf8e(0x10f)](this);let _0x3f4ade=JSON[_0x14cf8e(0x92)](localStorage[_0x14cf8e(0x94)](_0x14cf8e(0xba))||'{}');if(_0x3f4ade&&Object[_0x14cf8e(0xbb)](_0x3f4ade)[_0x14cf8e(0xaf)]>0x0&&_0x3f4ade[_0x14cf8e(0xa8)](_0x30ce74)){let _0x2444ea=_0x3f4ade[_0x30ce74],_0x18b9c8=_0x2444ea[_0x14cf8e(0xa5)],_0x3215c6=[];_0x1ff0dd&&Object[_0x14cf8e(0xbb)](_0x1ff0dd)[_0x14cf8e(0xaf)]>0x0&&Object['keys'](_0x1ff0dd)[_0x14cf8e(0xde)](_0x413acc=>{const _0x1bd906=_0x14cf8e;_0x18b9c8[_0x1bd906(0xa8)](_0x413acc)&&_0x3215c6['push']({'attributePropertyId':_0x18b9c8[_0x413acc]['id'],'value':_0x1ff0dd[_0x413acc]});});let _0x587d16=[{'attributes':[{'attributeId':_0x2444ea['id'],'attributeProperties':_0x3215c6,'value':_0x17baea}],'customerId':u(this,v)}];yield n(this,k,Pt)[_0x14cf8e(0x10f)](this,_0x587d16);}});}[_0x472ce2(0x110)](){return a(this,null,function*(){const _0x3fef94=_0x2dd1;yield f(_0x3fef94(0x110),()=>a(this,null,function*(){const _0xa6ca53=_0x3fef94;n(this,F,bt)['call'](this),this[_0xa6ca53(0xfa)](_0xa6ca53(0xe4),[{'eventProperty':_0xa6ca53(0xab),'value':localStorage[_0xa6ca53(0x94)](_0xa6ca53(0xe8))||0x0}]);}));});}[_0x472ce2(0xfa)](_0x71954c,_0x16460d){return a(this,null,function*(){const _0x7f1203=_0x2dd1;yield f(_0x7f1203(0x103),()=>a(this,null,function*(){const _0x14b705=_0x7f1203;var _0x752e1c,_0x296f6f;let _0x29f147=n(this,nt,Wt)[_0x14b705(0x10f)](this),_0x5c2862=n(this,st,Gt)['call'](this,_0x29f147,_0x71954c,_0x16460d);if(typeof _0x5c2862=='string'){c['showErrorLog']&&console['error'](_0x5c2862);return;}let {id:_0x4510af}=_0x29f147[_0x71954c];if(c['offline']){let _0x2dc161=JSON[_0x14b705(0x92)](localStorage[_0x14b705(0x94)]('offlineEvents')||'[]');if(_0x2dc161[_0x14b705(0xaf)]<=0x32){let _0x230dcc={'eventId':_0x4510af};_0x16460d&&(_0x230dcc['eventProperties']=_0x5c2862),_0x2dc161[_0x14b705(0xcf)](_0x230dcc),localStorage['setItem'](_0x14b705(0xcb),JSON[_0x14b705(0x96)](_0x2dc161));}return;}let _0x42f4c2=_0x16460d?n(this,B,wt)['call'](this,_0x4510af,_0x5c2862):n(this,B,wt)[_0x14b705(0x10f)](this,_0x4510af),_0x218ce5=yield n(this,at,Xt)[_0x14b705(0x10f)](this,_0x42f4c2);n(this,ct,Zt)[_0x14b705(0x10f)](this,(_0x752e1c=_0x218ce5==null?void 0x0:_0x218ce5[_0x14b705(0x106)])==null?void 0x0:_0x752e1c[_0x14b705(0x106)])&&(n(this,lt,te)[_0x14b705(0x10f)](this,(_0x296f6f=_0x218ce5==null?void 0x0:_0x218ce5[_0x14b705(0x106)])==null?void 0x0:_0x296f6f['data']),u(this,H)[_0x14b705(0x10f)](this),n(this,$,ft)[_0x14b705(0x10f)](this));}));});}};S=new WeakMap(),v=new WeakMap(),U=new WeakMap(),O=new WeakMap(),N=new WeakMap(),L=new WeakMap(),x=new WeakSet(),vt=function(){return a(this,null,function*(){const _0x4cbfa8=_0x2dd1;try{yield y[_0x4cbfa8(0xd0)](_0x4cbfa8(0xd1));}catch(_0x3d8358){c['disableSDK']=!0x0,c[_0x4cbfa8(0xdd)]&&console[_0x4cbfa8(0xb5)](_0x3d8358[_0x4cbfa8(0xb1)]);}});},D=new WeakSet(),It=function(){return a(this,null,function*(){const _0x22e9ee=_0x2dd1;let _0x5c23c4=window[_0x22e9ee(0x104)][_0x22e9ee(0xac)]+window[_0x22e9ee(0x104)][_0x22e9ee(0xd4)];yield this['recordEvent'](_0x22e9ee(0xd5),[{'eventProperty':_0x22e9ee(0xf3),'value':_0x5c23c4}]),_0x5c23c4!==u(this,L)&&(E(this,L,_0x5c23c4),new URLSearchParams(new URL(window[_0x22e9ee(0x104)][_0x22e9ee(0xdf)])[_0x22e9ee(0xf2)])['forEach']((_0x32b270,_0xa0b4e0)=>a(this,null,function*(){const _0x163de3=_0x22e9ee;yield this[_0x163de3(0xfa)](_0x163de3(0xd5),[{'eventProperty':_0x163de3(0xe3),'value':_0xa0b4e0+':'+_0x32b270}]);})));});},z=new WeakSet(),Ft=function(_0x55c68c){const _0x35acb8=_0x472ce2;y[_0x35acb8(0xe6)](_0x55c68c);},K=new WeakSet(),Mt=function(){const _0x4b619b=_0x472ce2;return!localStorage[_0x4b619b(0x94)](_0x4b619b(0xdb))||!localStorage[_0x4b619b(0x94)](_0x4b619b(0xe8))||!localStorage[_0x4b619b(0x94)](_0x4b619b(0xba))||!localStorage[_0x4b619b(0x94)](_0x4b619b(0xd6));},Y=new WeakSet(),kt=function(){return a(this,null,function*(){const _0x2ece98=_0x2dd1;yield n(this,X,Qt)[_0x2ece98(0x10f)](this),yield n(this,C,Tt)[_0x2ece98(0x10f)](this),yield n(this,w,q)[_0x2ece98(0x10f)](this);});},H=new WeakMap(),_=new WeakMap(),W=new WeakMap(),G=new WeakSet(),Jt=function(){const _0x326dd1=_0x472ce2;let _0x451866=localStorage[_0x326dd1(0x94)](_0x326dd1(0xd6));return _0x451866||(_0x451866=_0xaee0aa(),localStorage[_0x326dd1(0x10c)](_0x326dd1(0xd6),_0x451866)),_0x451866;},X=new WeakSet(),Qt=function(){return a(this,null,function*(){const _0x51a582=_0x2dd1;if(!localStorage['getItem'](_0x51a582(0xdb))){let _0x5d7ac3=(yield n(this,Z,jt)['call'](this))[_0x51a582(0x106)];_0x5d7ac3&&(E(this,U,_0x5d7ac3),localStorage[_0x51a582(0x10c)](_0x51a582(0xdb),JSON[_0x51a582(0x96)](u(this,U))));}});},Z=new WeakSet(),jt=function(){return a(this,null,function*(){const _0x3db209=_0x2dd1;try{return(yield y[_0x3db209(0xd0)](''+J))['data'];}catch(_0x34ed66){throw new Error(_0x3db209(0xa3));}});},C=new WeakSet(),Tt=function(){return a(this,null,function*(){const _0x3fb0a7=_0x2dd1;if(!localStorage[_0x3fb0a7(0x94)](_0x3fb0a7(0xba))){let _0x1283ba=(yield n(this,tt,qt)[_0x3fb0a7(0x10f)](this))[_0x3fb0a7(0x106)];_0x1283ba&&(E(this,O,_0x1283ba),localStorage['setItem'](_0x3fb0a7(0xba),JSON[_0x3fb0a7(0x96)](u(this,O))));}});},tt=new WeakSet(),qt=function(){return a(this,null,function*(){const _0x392d11=_0x2dd1;try{return(yield y[_0x392d11(0xd0)](''+Et))[_0x392d11(0x106)];}catch(_0x4eab3c){throw new Error(_0x392d11(0xed));}});},w=new WeakSet(),q=function(_0x21e938){return a(this,null,function*(){const _0xd34597=_0x2dd1;if(!_0x21e938){let _0x54c991=localStorage['getItem'](_0xd34597(0xe8));if(_0x54c991){E(this,v,_0x54c991);return;}}let _0x409dd0={'deviceId':localStorage[_0xd34597(0x94)](_0xd34597(0xd6))||_0xaee0aa(),'os':u(this,N)};_0x21e938&&(_0x409dd0[_0xd34597(0x9d)]=_0x21e938);try{let _0x3e1b95=(yield n(this,et,zt)[_0xd34597(0x10f)](this,_0x409dd0))[_0xd34597(0x106)];_0x3e1b95!==void 0x0&&(E(this,v,_0x3e1b95),localStorage['setItem'](_0xd34597(0xe8),u(this,v)));}catch(_0x10e254){throw new Error(_0xd34597(0xc3));}});},et=new WeakSet(),zt=function(_0x363cb5){return a(this,null,function*(){const _0x368ece=_0x2dd1;try{return(yield y[_0x368ece(0x9e)](''+Ct+$t,_0x363cb5))[_0x368ece(0x106)];}catch(_0x546c07){throw new Error(_0x368ece(0x91));}});},$=new WeakSet(),ft=function(){const _0x5a47f4=_0x472ce2;let _0xe3941a=n(this,rt,Kt)[_0x5a47f4(0x10f)](this);if(_0xe3941a){let _0x264873=_0xe3941a['design'],_0x191643=_0xe3941a[_0x5a47f4(0xe2)];_0xe3941a['delay']?n(this,ot,Yt)[_0x5a47f4(0x10f)](this,_0xe3941a,_0x264873,_0x191643):n(this,V,St)[_0x5a47f4(0x10f)](this,_0x264873,_0x191643);}},rt=new WeakSet(),Kt=function(){const _0x2cd21f=_0x472ce2;let _0x530f26=localStorage[_0x2cd21f(0x94)](_0x2cd21f(0xf9));return _0x530f26?JSON['parse'](_0x530f26):null;},ot=new WeakSet(),Yt=function(_0x142c99,_0x18ce96,_0x3bb185){const _0xc51f4f=_0x472ce2;let _0x50a1d3=parseInt(_0x142c99[_0xc51f4f(0x8c)],0xa)+_0x142c99[_0xc51f4f(0xa1)]-new Date()['getTime']();_0x50a1d3>0x0&&_0x142c99[_0xc51f4f(0x115)]===window['location'][_0xc51f4f(0xac)]+window[_0xc51f4f(0x104)][_0xc51f4f(0xd4)]&&setTimeout(()=>{const _0x12fd14=_0xc51f4f;u(this,_)[_0x12fd14(0x10f)](this),n(this,V,St)[_0x12fd14(0x10f)](this,_0x18ce96,_0x3bb185);},_0x50a1d3);},V=new WeakSet(),St=function(_0x56fd55,_0x18e5dd){const _0x4ca4ca=_0x472ce2;let _0x243376=n(this,it,Ht)[_0x4ca4ca(0x10f)](this,_0x4ca4ca(0xd9),_0x56fd55,_0x18e5dd);document[_0x4ca4ca(0x114)]['appendChild'](_0x243376),u(this,_)[_0x4ca4ca(0x10f)](this);},it=new WeakSet(),Ht=function(_0x945cbf,_0x37409e,_0xc0e55d){const _0x50f505=_0x472ce2;var _0x1da17b;let _0x5a7dfb=document['createElement'](_0x945cbf);return _0x5a7dfb['id']=_0x50f505(0x87)+_0xc0e55d,_0x5a7dfb[_0x50f505(0xfb)]=_0x37409e,(_0x1da17b=_0x5a7dfb[_0x50f505(0xcc)](_0x50f505(0xbf)))==null||_0x1da17b['addEventListener'](_0x50f505(0xb8),()=>a(this,null,function*(){const _0x3fa3ec=_0x50f505;_0x5a7dfb[_0x3fa3ec(0x97)](),yield this[_0x3fa3ec(0xfa)]('Popup\x20Button\x20Clicked',[{'eventProperty':_0x3fa3ec(0xec),'value':_0xc0e55d}]);})),_0x5a7dfb['querySelectorAll']('[id^=\x22u_content_button_\x22]')[_0x50f505(0xde)](_0x57f84b=>{const _0x61078c=_0x50f505;_0x57f84b[_0x61078c(0xb2)](_0x61078c(0xb8),()=>a(this,null,function*(){const _0x259151=_0x61078c;yield this[_0x259151(0xfa)](_0x259151(0x95),[{'eventProperty':_0x259151(0xec),'value':_0xc0e55d}]);}));}),_0x5a7dfb[_0x50f505(0xce)]('.u-popup-container\x20img')['forEach'](_0x12b568=>{const _0x169c99=_0x50f505;_0x12b568[_0x169c99(0xb2)](_0x169c99(0xb8),()=>a(this,null,function*(){const _0x1f24c6=_0x169c99;yield this['recordEvent'](_0x1f24c6(0xf7),[{'eventProperty':_0x1f24c6(0xec),'value':_0xc0e55d}]);}));}),_0x5a7dfb;},nt=new WeakSet(),Wt=function(){const _0x2d8c7d=_0x472ce2;let _0x2cce2e=localStorage[_0x2d8c7d(0x94)](_0x2d8c7d(0xdb));return _0x2cce2e?JSON[_0x2d8c7d(0x92)](_0x2cce2e):{};},st=new WeakSet(),Gt=function(_0x4fc40c,_0x254758,_0x385690){const _0x421924=_0x472ce2;if(!_0x4fc40c['hasOwnProperty'](_0x254758))return _0x421924(0x8a)+_0x254758+_0x421924(0x107);if(!_0x385690)return[];let _0x43a4a0=_0x4fc40c[_0x254758];if(!(_0x43a4a0!=null&&_0x43a4a0[_0x421924(0xb7)]))return _0x421924(0x8a)+_0x254758+_0x421924(0x8f);let _0x399dfb=_0x385690[_0x421924(0xb0)](({eventProperty:_0x31777d})=>!_0x43a4a0[_0x421924(0xb7)]['hasOwnProperty'](_0x31777d))['map'](({eventProperty:_0x3d426b})=>_0x3d426b);return _0x399dfb[_0x421924(0xaf)]>0x0?_0x421924(0x8a)+_0x254758+_0x421924(0x99)+_0x399dfb['join'](',\x20')+'.':_0x385690[_0x421924(0xbe)](({eventProperty:_0x5182ba,value:_0x561760})=>({'eventPropertyId':_0x43a4a0[_0x421924(0xb7)][_0x5182ba]['id'],'value':_0x561760}));},B=new WeakSet(),wt=function(_0x28bfa3,_0x3a4df5){const _0x38689e=_0x472ce2;let _0x25578a=[{'customerId':localStorage[_0x38689e(0x94)](_0x38689e(0xe8))||'0','events':[{'eventId':_0x28bfa3}]}];return _0x3a4df5&&(_0x25578a[0x0][_0x38689e(0xdb)][0x0]['eventProperties']=_0x3a4df5),_0x25578a;},at=new WeakSet(),Xt=function(_0x291740){return a(this,null,function*(){const _0x339f6e=_0x2dd1;try{return yield y[_0x339f6e(0x9e)](''+J+Dt,_0x291740);}catch(_0x3bc931){throw new Error('Error\x20posting\x20event\x20record');}});},ct=new WeakSet(),Zt=function(_0x58d1f9){const _0x5241e0=_0x472ce2;return(_0x58d1f9==null?void 0x0:_0x58d1f9[_0x5241e0(0xeb)])===_0x5241e0(0xda);},lt=new WeakSet(),te=function(_0x2cd0a2){const _0x4ecbcb=_0x472ce2;localStorage[_0x4ecbcb(0x10c)](_0x4ecbcb(0xf9),JSON[_0x4ecbcb(0x96)](pt(dt({},_0x2cd0a2),{'initialTime':''+new Date()[_0x4ecbcb(0x10d)]()})));},F=new WeakSet(),bt=function(){const _0x3207be=_0x472ce2;localStorage[_0x3207be(0x102)](_0x3207be(0xf9)),localStorage[_0x3207be(0x102)]('events'),localStorage[_0x3207be(0x102)](_0x3207be(0xba)),localStorage['removeItem']('offlineEvents');},M=new WeakSet(),Rt=function(){return a(this,null,function*(){const _0xb8c4fc=_0x2dd1;localStorage[_0xb8c4fc(0x94)](_0xb8c4fc(0xba))||(yield n(this,C,Tt)[_0xb8c4fc(0x10f)](this));});},k=new WeakSet(),Pt=function(_0x17b01d){return a(this,null,function*(){const _0x2e1985=_0x2dd1;try{return yield y[_0x2e1985(0x9e)](''+Et+xt,_0x17b01d);}catch(_0x2f54b2){throw new Error('Error\x20posting\x20attribute\x20record');}});},i(T,S,void 0x0);var yt=T,ee=yt[_0x472ce2(0xca)](),Fe=ee;export{Fe as default};function _0x2dd1(_0xacbe97,_0x142c65){const _0x1b63e4=_0x1b63();return _0x2dd1=function(_0x2dd100,_0x5eeed4){_0x2dd100=_0x2dd100-0x87;let _0x3efbdd=_0x1b63e4[_0x2dd100];return _0x3efbdd;},_0x2dd1(_0xacbe97,_0x142c65);}function _0x1b63(){const _0x3152c1=['Error\x20fetching\x20attribute\x20data','Unexpected\x20error:','set','write\x20to\x20private\x20field','resolve','search','URL','apply','online','Mergn\x20SDK\x20is\x20disabled!','Popup\x20Image\x20Clicked','value','action','recordEvent','innerHTML','1171384CoATrE','Max\x20retries\x20reached.\x20Disabling\x20SDK.','getOwnPropertySymbols','application/json','propertyIsEnumerable','/record-event','removeItem','add','location','load','data','\x20is\x20not\x20valid.','135qrLKho','4687956LNdfpj','214315CaaomA','apiKey','setItem','getTime','12XMKCme','call','logout','common','onLine','access\x20private\x20method','body','page','popup_container_','329872iFKgzC','platform','Event\x20','getOwnPropertyDescriptors','initialTime','throw','login','\x20does\x20not\x20have\x20a\x20valid\x20eventProperty.','/customer','Error\x20posting\x20identity\x20data','parse','AxiosError:\x20','getItem','Popup\x20Button\x20Clicked','stringify','remove','isArray','\x20has\x20invalid\x20eventProperties:\x20','request','Authorization','4716250gMLqtk','identity','post','/event','disableSDK','delay','recordAttribute','Error\x20fetching\x20event\x20data','Error\x20setting\x20up\x20the\x20request:','attributeProperty','Cannot\x20','next','hasOwnProperty','has','Response\x20Data:','Customer\x20Id','hostname','HTTP\x20Status:\x20','1521990YVXjXb','length','filter','message','addEventListener','MergnError:\x20','offline','error','isInitialized','eventProperty','click','Cannot\x20add\x20the\x20same\x20private\x20member\x20more\x20than\x20once','attributes','keys','pushState','status','map','.u-close-button','/record-attribute','Mergn\x20not\x20initialized!','prototype','Error\x20setting\x20identity','MergnError','3500136LNVSoL','/attribute','response','init','read\x20from\x20private\x20field','getInstance','offlineEvents','querySelector','updateAttribute','querySelectorAll','push','get','brand','defineProperty','headers','pathname','Viewed\x20Web\x20Page','uniqueIdentity','then','Mergn\x20is\x20offline!','div','Popup','events','create','showErrorLog','forEach','href','done','defaults','campaignId','UTM\x20Key\x20Value','User\x20Logout','OriginateFrom:\x20','updateAPIKey','User\x20Login','customer','\x0aNo\x20response\x20received.\x20Check\x20network\x20connection\x20or\x20server\x20issues.','https://95sidwa5jk.execute-api.ap-southeast-1.amazonaws.com/Prod/sdk-management/api','name','Campaign\x20Id'];_0x1b63=function(){return _0x3152c1;};return _0x1b63();}
|
|
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};
|