turbolink-ai 1.0.0
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 +127 -0
- package/dist/index.cjs.js +6 -0
- package/dist/index.es.js +6 -0
- package/index.d.ts +69 -0
- package/package.json +24 -0
package/README.md
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
# 目的
|
|
2
|
+
|
|
3
|
+
智链引擎事件上报工具方法
|
|
4
|
+
|
|
5
|
+
# 安装
|
|
6
|
+
|
|
7
|
+
```js
|
|
8
|
+
npm install turbolinkAi_cn
|
|
9
|
+
|
|
10
|
+
//或
|
|
11
|
+
yarn add turbolinkAi_cn
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
# 参数说明
|
|
15
|
+
|
|
16
|
+
### init方法参数
|
|
17
|
+
|
|
18
|
+
| 参数 | 说明 | 类型 | 必需 | 默认值 |
|
|
19
|
+
| ------------ | -------------------- | ---------------- | ---- | ------ |
|
|
20
|
+
| appKey | AppkKey | String | 是 | 无 |
|
|
21
|
+
| appSecret | AppSecret | String | 是 | 无 |
|
|
22
|
+
| projectId | 项目 id | String | 是 | 无 |
|
|
23
|
+
| uid | 用户 id | String | Number | 否 | 无 |
|
|
24
|
+
| jump | 上报成功是否自动跳转 | Boolean | 否 | true |
|
|
25
|
+
|
|
26
|
+
### 上报自定义事件参数
|
|
27
|
+
|
|
28
|
+
| 参数 | 说明 | 类型 | 必需 | 默认值 |
|
|
29
|
+
| ---------- | -------------- | ------ | ---- | ------ |
|
|
30
|
+
| event | 事件名称 | String | 是 | 无 |
|
|
31
|
+
| customData | 自定义事件参数 | any | 否 | 无 |
|
|
32
|
+
|
|
33
|
+
# 方法说明
|
|
34
|
+
|
|
35
|
+
| 方法名 | 说明 | 类型 | 参数 | 返回值 |
|
|
36
|
+
| ----------- | ------------------------ | -------- | --------------------------- | ------- |
|
|
37
|
+
| init | SDK 初始化 | Function | (init 方法参数,()=>{}) | Promise |
|
|
38
|
+
| setIdentity | 设置用户(如有用户体系) | Function | (用户 id,()=>{}) | Promise |
|
|
39
|
+
| install | 上报安装事件 | Function | ((data)=>{}) | Promise |
|
|
40
|
+
| open | 上报打开事件 | Function | ((data)=>{}) | Promise |
|
|
41
|
+
| customEvent | 上报自定义事件 | Function | (自定义事件参数,(data)=>{}) | Promise |
|
|
42
|
+
|
|
43
|
+
# 使用
|
|
44
|
+
|
|
45
|
+
```js
|
|
46
|
+
<script type="text/javascript" src="path/to/script.js"></script>
|
|
47
|
+
<script type="text/javascript">
|
|
48
|
+
turbolinkAi.init({
|
|
49
|
+
"appKey": "your assess token",
|
|
50
|
+
"appSecret": "your assess secret",
|
|
51
|
+
"projectId": "your projectId"
|
|
52
|
+
}).then(() => {
|
|
53
|
+
console.log("初始化成功、可调用上报方法")
|
|
54
|
+
}).catch((e) => {
|
|
55
|
+
console.log("初始化失败", data.msg)
|
|
56
|
+
})
|
|
57
|
+
</script>
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
```js
|
|
61
|
+
//1.引入
|
|
62
|
+
import turbolinkAi from 'turbolinkAi_cn';
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
//2.初始化(必须先初始化后再调用上报方法)
|
|
66
|
+
const params = {
|
|
67
|
+
"appKey": "your assess token",
|
|
68
|
+
"appSecret": "your assess secret",
|
|
69
|
+
"projectId": "your projectId"
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
turbolinkAi.init(params).then(() => {
|
|
73
|
+
console.log("初始化成功、可调用上报方法")
|
|
74
|
+
}).catch(error => {
|
|
75
|
+
console.log("初始化失败", error)
|
|
76
|
+
})
|
|
77
|
+
|
|
78
|
+
//或
|
|
79
|
+
turbolinkAi.init(params,(data) => {
|
|
80
|
+
if(data.state == "success"){
|
|
81
|
+
console.log("初始化成功、可调用上报方法")
|
|
82
|
+
}else{
|
|
83
|
+
console.log("初始化失败", data.msg)
|
|
84
|
+
}
|
|
85
|
+
})
|
|
86
|
+
|
|
87
|
+
//设置用户(如有用户体系)
|
|
88
|
+
turbolinkAi.setIdentity("userId").then(()=>{
|
|
89
|
+
console.log("用户成功")
|
|
90
|
+
})
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
//3.调用
|
|
94
|
+
|
|
95
|
+
//上报安装事件
|
|
96
|
+
turbolinkAi.install().then((data) => {
|
|
97
|
+
console.log("上报成功", data)
|
|
98
|
+
}).catch(error => {
|
|
99
|
+
console.log("上报失败", error)
|
|
100
|
+
})
|
|
101
|
+
|
|
102
|
+
//上报打开事件
|
|
103
|
+
turbolinkAi.open().then((data) => {
|
|
104
|
+
console.log("上报成功", data)
|
|
105
|
+
}).catch(error => {
|
|
106
|
+
console.log("上报失败", error)
|
|
107
|
+
})
|
|
108
|
+
|
|
109
|
+
//上报自定义事件
|
|
110
|
+
const params = {
|
|
111
|
+
"event": "Event name",
|
|
112
|
+
"customData": [{"key": "自定义事件参数键","value": "自定义事件参数值"}]
|
|
113
|
+
}
|
|
114
|
+
turbolinkAi.customEvent(params).then((data) => {
|
|
115
|
+
console.log("上报成功", data)
|
|
116
|
+
}).catch(error => {
|
|
117
|
+
console.log("上报失败", error)
|
|
118
|
+
})
|
|
119
|
+
|
|
120
|
+
//或
|
|
121
|
+
|
|
122
|
+
turbolinkAi.customEvent("Event name").then((data) => {
|
|
123
|
+
console.log("上报成功", data)
|
|
124
|
+
}).catch(error => {
|
|
125
|
+
console.log("上报失败", error)
|
|
126
|
+
})
|
|
127
|
+
```
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";var t=Object.defineProperty,e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,o=(e,n,r)=>n in e?t(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,i=(t,e,n)=>new Promise(((r,o)=>{var i=t=>{try{c(n.next(t))}catch(t){o(t)}},a=t=>{try{c(n.throw(t))}catch(t){o(t)}},c=t=>t.done?r(t.value):Promise.resolve(t.value).then(i,a);c((n=n.apply(t,e)).next())}));let a="https://www.allapp.link";const c=({url:t,method:i="POST",headers:c,params:s})=>new Promise(((u,l)=>{const d=((t,i)=>{for(var a in i||(i={}))n.call(i,a)&&o(t,a,i[a]);if(e)for(var a of e(i))r.call(i,a)&&o(t,a,i[a]);return t})({"Content-Type":"application/json;charset=utf-8"},c);ae.appKey&&(d.Authorization="Bearer "+ae.appKey),fetch(a+t,{method:i,headers:d,body:JSON.stringify(s)}).then((t=>{if(t.ok)return t.json();throw new Error("Network response was not ok.")})).then((t=>{u(t)})).catch((t=>{l(t)}))}));var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var u={exports:{}};var l={exports:{}};const d=function(t){if(t.__esModule)return t;var e=t.default;if("function"==typeof e){var n=function t(){return this instanceof t?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach((function(e){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,r.get?r:{enumerable:!0,get:function(){return t[e]}})})),n}(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var f,m,h,v,p,y,g,b,w;function L(){return f||(f=1,l.exports=(t=t||function(t,e){var n;if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==s&&s.crypto&&(n=s.crypto),!n)try{n=d}catch(t){}var r=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function t(){}return function(e){var n;return t.prototype=e,n=new t,t.prototype=null,n}}(),i={},a=i.lib={},c=a.Base={extend:function(t){var e=o(this);return t&&e.mixIn(t),(!e.hasOwnProperty("init")||this.init===e.init)&&(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},u=a.WordArray=c.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:4*t.length},toString:function(t){return(t||f).stringify(this)},concat:function(t){var e=this.words,n=t.words,r=this.sigBytes,o=t.sigBytes;if(this.clamp(),r%4)for(var i=0;i<o;i++){var a=n[i>>>2]>>>24-i%4*8&255;e[r+i>>>2]|=a<<24-(r+i)%4*8}else for(var c=0;c<o;c+=4)e[r+c>>>2]=n[c>>>2];return this.sigBytes+=o,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=c.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],n=0;n<t;n+=4)e.push(r());return new u.init(e,t)}}),l=i.enc={},f=l.Hex={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],o=0;o<n;o++){var i=e[o>>>2]>>>24-o%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r+=2)n[r>>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new u.init(n,e/2)}},m=l.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],o=0;o<n;o++){var i=e[o>>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(i))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r++)n[r>>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new u.init(n,e)}},h=l.Utf8={stringify:function(t){try{return decodeURIComponent(escape(m.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return m.parse(unescape(encodeURIComponent(t)))}},v=a.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=h.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n,r=this._data,o=r.words,i=r.sigBytes,a=this.blockSize,c=i/(4*a),s=(c=e?t.ceil(c):t.max((0|c)-this._minBufferSize,0))*a,l=t.min(4*s,i);if(s){for(var d=0;d<s;d+=a)this._doProcessBlock(o,d);n=o.splice(0,s),r.sigBytes-=l}return new u.init(n,l)},clone:function(){var t=c.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});a.Hasher=v.extend({cfg:c.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){v.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,n){return new t.init(n).finalize(e)}},_createHmacHelper:function(t){return function(e,n){return new p.HMAC.init(t,n).finalize(e)}}});var p=i.algo={};return i}(Math),t)),l.exports;var t}u.exports=(w=L(),h=(m=w).lib,v=h.WordArray,p=h.Hasher,y=m.algo,g=[],b=y.SHA1=p.extend({_doReset:function(){this._hash=new v.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],a=n[3],c=n[4],s=0;s<80;s++){if(s<16)g[s]=0|t[e+s];else{var u=g[s-3]^g[s-8]^g[s-14]^g[s-16];g[s]=u<<1|u>>>31}var l=(r<<5|r>>>27)+c+g[s];l+=s<20?1518500249+(o&i|~o&a):s<40?1859775393+(o^i^a):s<60?(o&i|o&a|i&a)-1894007588:(o^i^a)-899497514,c=a,a=i,i=o<<30|o>>>2,o=r,r=l}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+a|0,n[4]=n[4]+c|0},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;return e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),e[15+(r+64>>>9<<4)]=n,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=p.clone.call(this);return t._hash=this._hash.clone(),t}}),m.SHA1=p._createHelper(b),m.HmacSHA1=p._createHmacHelper(b),w.SHA1);const k=(S=u.exports)&&S.__esModule&&Object.prototype.hasOwnProperty.call(S,"default")?S.default:S;var S,x=function(){return x=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},x.apply(this,arguments)};function V(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{s(r.next(t))}catch(t){i(t)}}function c(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){t.done?o(t.value):function(t){return t instanceof n?t:new n((function(e){e(t)}))}(t.value).then(a,c)}s((r=r.apply(t,e||[])).next())}))}function _(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(s){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(6===c[0]&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(t){c=[6,t],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,s])}}}function W(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)(r||!(o in e))&&(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}var M="4.1.0";function Z(t,e){return new Promise((function(n){return setTimeout(n,t,e)}))}function P(){return Z(0)}function j(t){return!!t&&"function"==typeof t.then}function I(t,e){try{var n=t();j(n)?n.then((function(t){return e(!0,t)}),(function(t){return e(!1,t)})):e(!0,n)}catch(t){e(!1,t)}}function R(t,e,n){return void 0===n&&(n=16),V(this,void 0,void 0,(function(){var r,o,i,a;return _(this,(function(c){switch(c.label){case 0:r=Array(t.length),o=Date.now(),i=0,c.label=1;case 1:return i<t.length?(r[i]=e(t[i],i),(a=Date.now())>=o+n?(o=a,[4,Z(0)]):[3,3]):[3,4];case 2:c.sent(),c.label=3;case 3:return++i,[3,1];case 4:return[2,r]}}))}))}function A(t){t.then(void 0,(function(){}))}function C(t){return parseInt(t)}function F(t){return parseFloat(t)}function E(t,e){return"number"==typeof t&&isNaN(t)?e:t}function G(t){return t.reduce((function(t,e){return t+(e?1:0)}),0)}function H(t,e){if(void 0===e&&(e=1),Math.abs(e)>=1)return Math.round(t/e)*e;var n=1/e;return Math.round(t*n)/n}function Y(t,e){var n=t[0]>>>16,r=65535&t[0],o=t[1]>>>16,i=65535&t[1],a=e[0]>>>16,c=65535&e[0],s=e[1]>>>16,u=0,l=0,d=0,f=0;d+=(f+=i+(65535&e[1]))>>>16,f&=65535,l+=(d+=o+s)>>>16,d&=65535,u+=(l+=r+c)>>>16,l&=65535,u+=n+a,u&=65535,t[0]=u<<16|l,t[1]=d<<16|f}function X(t,e){var n=t[0]>>>16,r=65535&t[0],o=t[1]>>>16,i=65535&t[1],a=e[0]>>>16,c=65535&e[0],s=e[1]>>>16,u=65535&e[1],l=0,d=0,f=0,m=0;f+=(m+=i*u)>>>16,m&=65535,d+=(f+=o*u)>>>16,f&=65535,d+=(f+=i*s)>>>16,f&=65535,l+=(d+=r*u)>>>16,d&=65535,l+=(d+=o*s)>>>16,d&=65535,l+=(d+=i*c)>>>16,d&=65535,l+=n*u+r*s+o*c+i*a,l&=65535,t[0]=l<<16|d,t[1]=f<<16|m}function O(t,e){var n=t[0];32===(e%=64)?(t[0]=t[1],t[1]=n):e<32?(t[0]=n<<e|t[1]>>>32-e,t[1]=t[1]<<e|n>>>32-e):(e-=32,t[0]=t[1]<<e|n>>>32-e,t[1]=n<<e|t[1]>>>32-e)}function B(t,e){0!==(e%=64)&&(e<32?(t[0]=t[1]>>>32-e,t[1]=t[1]<<e):(t[0]=t[1]<<e-32,t[1]=0))}function N(t,e){t[0]^=e[0],t[1]^=e[1]}var D=[4283543511,3981806797],J=[3301882366,444984403];function T(t){var e=[0,t[0]>>>1];N(t,e),X(t,D),e[1]=t[0]>>>1,N(t,e),X(t,J),e[1]=t[0]>>>1,N(t,e)}var z=[2277735313,289559509],U=[1291169091,658871167],Q=[0,5],K=[0,1390208809],$=[0,944331445];function q(t,e){var n=function(t){for(var e=new Uint8Array(t.length),n=0;n<t.length;n++){var r=t.charCodeAt(n);if(r<0||r>127)return(new TextEncoder).encode(t);e[n]=r}return e}(t);e=e||0;var r,o=[0,n.length],i=o[1]%16,a=o[1]-i,c=[0,e],s=[0,e],u=[0,0],l=[0,0];for(r=0;r<a;r+=16)u[0]=n[r+4]|n[r+5]<<8|n[r+6]<<16|n[r+7]<<24,u[1]=n[r]|n[r+1]<<8|n[r+2]<<16|n[r+3]<<24,l[0]=n[r+12]|n[r+13]<<8|n[r+14]<<16|n[r+15]<<24,l[1]=n[r+8]|n[r+9]<<8|n[r+10]<<16|n[r+11]<<24,X(u,z),O(u,31),X(u,U),N(c,u),O(c,27),Y(c,s),X(c,Q),Y(c,K),X(l,U),O(l,33),X(l,z),N(s,l),O(s,31),Y(s,c),X(s,Q),Y(s,$);u[0]=0,u[1]=0,l[0]=0,l[1]=0;var d=[0,0];switch(i){case 15:d[1]=n[r+14],B(d,48),N(l,d);case 14:d[1]=n[r+13],B(d,40),N(l,d);case 13:d[1]=n[r+12],B(d,32),N(l,d);case 12:d[1]=n[r+11],B(d,24),N(l,d);case 11:d[1]=n[r+10],B(d,16),N(l,d);case 10:d[1]=n[r+9],B(d,8),N(l,d);case 9:d[1]=n[r+8],N(l,d),X(l,U),O(l,33),X(l,z),N(s,l);case 8:d[1]=n[r+7],B(d,56),N(u,d);case 7:d[1]=n[r+6],B(d,48),N(u,d);case 6:d[1]=n[r+5],B(d,40),N(u,d);case 5:d[1]=n[r+4],B(d,32),N(u,d);case 4:d[1]=n[r+3],B(d,24),N(u,d);case 3:d[1]=n[r+2],B(d,16),N(u,d);case 2:d[1]=n[r+1],B(d,8),N(u,d);case 1:d[1]=n[r],N(u,d),X(u,z),O(u,31),X(u,U),N(c,u)}return N(c,o),N(s,o),Y(c,s),Y(s,c),T(c),T(s),Y(c,s),Y(s,c),("00000000"+(c[0]>>>0).toString(16)).slice(-8)+("00000000"+(c[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}function tt(t,e,n){var r=Object.keys(t).filter((function(t){return function(t,e){return!function(t,e){for(var n=0,r=t.length;n<r;++n)if(t[n]===e)return!0;return!1}(t,e)}(n,t)})),o=R(r,(function(n){return function(t,e){var n=new Promise((function(n){var r=Date.now();I(t.bind(null,e),(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var o=Date.now()-r;if(!t[0])return n((function(){return{error:t[1],duration:o}}));var i=t[1];if(function(t){return"function"!=typeof t}(i))return n((function(){return{value:i,duration:o}}));n((function(){return new Promise((function(t){var e=Date.now();I(i,(function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=o+Date.now()-e;if(!n[0])return t({error:n[1],duration:i});t({value:n[1],duration:i})}))}))}))}))}));return A(n),function(){return n.then((function(t){return t()}))}}(t[n],e)}));return A(o),function(){return V(this,void 0,void 0,(function(){var t,e,n,i;return _(this,(function(a){switch(a.label){case 0:return[4,o];case 1:return[4,R(a.sent(),(function(t){var e=t();return A(e),e}))];case 2:return t=a.sent(),[4,Promise.all(t)];case 3:for(e=a.sent(),n={},i=0;i<r.length;++i)n[r[i]]=e[i];return[2,n]}}))}))}}function et(){var t=window,e=navigator;return G(["MSCSSMatrix"in t,"msSetImmediate"in t,"msIndexedDB"in t,"msMaxTouchPoints"in e,"msPointerEnabled"in e])>=4}function nt(){var t=window,e=navigator;return G(["webkitPersistentStorage"in e,"webkitTemporaryStorage"in e,0===e.vendor.indexOf("Google"),"webkitResolveLocalFileSystemURL"in t,"BatteryManager"in t,"webkitMediaStream"in t,"webkitSpeechGrammar"in t])>=5}function rt(){var t=window,e=navigator;return G(["ApplePayError"in t,"CSSPrimitiveValue"in t,"Counter"in t,0===e.vendor.indexOf("Apple"),"getStorageUpdates"in e,"WebKitMediaKeys"in t])>=4}function ot(){var t=window,e=t.HTMLElement,n=t.Document;return G(["safari"in t,!("ongestureend"in t),!("TouchEvent"in t),!("orientation"in t),e&&!("autocapitalize"in e.prototype),n&&"pointerLockElement"in n.prototype])>=4}function it(){var t=window;return!!function(t){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(t))}(t.print)&&G(["[object WebPageNamespace]"===String(t.browser),"MicrodataExtractor"in t])>=1}function at(){var t,e,n=window;return G(["buildID"in navigator,"MozAppearance"in(null!==(e=null===(t=document.documentElement)||void 0===t?void 0:t.style)&&void 0!==e?e:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function ct(){var t=window,e=navigator,n=t.CSS,r=t.HTMLButtonElement;return G([!("getStorageUpdates"in e),r&&"popover"in r.prototype,"CSSCounterStyleRule"in t,n.supports("font-size-adjust: ex-height 0.5"),n.supports("text-transform: full-width")])>=4}function st(){var t=document;return(t.exitFullscreen||t.msExitFullscreen||t.mozCancelFullScreen||t.webkitExitFullscreen).call(t)}function ut(){var t=nt(),e=at();if(!t&&!e)return!1;var n=window;return G(["onorientationchange"in n,"orientation"in n,t&&!("SharedWorker"in n),e&&/android/i.test(navigator.appVersion)])>=2}function lt(t){var e=new Error(t);return e.name=t,e}function dt(t,e,n){var r,o,i;return void 0===n&&(n=50),V(this,void 0,void 0,(function(){var a,c;return _(this,(function(s){switch(s.label){case 0:a=document,s.label=1;case 1:return a.body?[3,3]:[4,Z(n)];case 2:return s.sent(),[3,1];case 3:c=a.createElement("iframe"),s.label=4;case 4:return s.trys.push([4,,10,11]),[4,new Promise((function(t,n){var r=!1,o=function(){r=!0,t()};c.onload=o,c.onerror=function(t){r=!0,n(t)};var i=c.style;i.setProperty("display","block","important"),i.position="absolute",i.top="0",i.left="0",i.visibility="hidden",e&&"srcdoc"in c?c.srcdoc=e:c.src="about:blank",a.body.appendChild(c);var s=function(){var t,e;r||("complete"===(null===(e=null===(t=c.contentWindow)||void 0===t?void 0:t.document)||void 0===e?void 0:e.readyState)?o():setTimeout(s,10))};s()}))];case 5:s.sent(),s.label=6;case 6:return null!==(o=null===(r=c.contentWindow)||void 0===r?void 0:r.document)&&void 0!==o&&o.body?[3,8]:[4,Z(n)];case 7:return s.sent(),[3,6];case 8:return[4,t(c,c.contentWindow)];case 9:return[2,s.sent()];case 10:return null===(i=c.parentNode)||void 0===i||i.removeChild(c),[7];case 11:return[2]}}))}))}function ft(t){for(var e=function(t){for(var e,n,r="Unexpected syntax '".concat(t,"'"),o=/^\s*([a-z-]*)(.*)$/i.exec(t),i=o[1]||void 0,a={},c=/([.:#][\w-]+|\[.+?\])/gi,s=function(t,e){a[t]=a[t]||[],a[t].push(e)};;){var u=c.exec(o[2]);if(!u)break;var l=u[0];switch(l[0]){case".":s("class",l.slice(1));break;case"#":s("id",l.slice(1));break;case"[":var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(l);if(!d)throw new Error(r);s(d[1],null!==(n=null!==(e=d[4])&&void 0!==e?e:d[5])&&void 0!==n?n:"");break;default:throw new Error(r)}}return[i,a]}(t),n=e[0],r=e[1],o=document.createElement(null!=n?n:"div"),i=0,a=Object.keys(r);i<a.length;i++){var c=a[i],s=r[c].join(" ");"style"===c?mt(o.style,s):o.setAttribute(c,s)}return o}function mt(t,e){for(var n=0,r=e.split(";");n<r.length;n++){var o=r[n],i=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(o);if(i){var a=i[1],c=i[2],s=i[4];t.setProperty(a,c,s||"")}}}var ht=["monospace","sans-serif","serif"],vt=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function pt(t,e){return V(this,void 0,void 0,(function(){var n,r,o;return _(this,(function(i){switch(i.label){case 0:return function(t,e){t.width=240,t.height=60,e.textBaseline="alphabetic",e.fillStyle="#f60",e.fillRect(100,1,62,20),e.fillStyle="#069",e.font='11pt "Times New Roman"';var n="Cwm fjordbank gly ".concat(String.fromCharCode(55357,56835));e.fillText(n,2,15),e.fillStyle="rgba(102, 204, 0, 0.2)",e.font="18pt Arial",e.fillText(n,4,45)}(t,e),[4,P()];case 1:return i.sent(),n=yt(t),r=yt(t),n!==r?[2,["unstable","unstable"]]:(function(t,e){t.width=122,t.height=110,e.globalCompositeOperation="multiply";for(var n=0,r=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];n<r.length;n++){var o=r[n],i=o[0],a=o[1],c=o[2];e.fillStyle=i,e.beginPath(),e.arc(a,c,40,0,2*Math.PI,!0),e.closePath(),e.fill()}e.fillStyle="#f9c",e.arc(60,60,60,0,2*Math.PI,!0),e.arc(60,60,20,0,2*Math.PI,!0),e.fill("evenodd")}(t,e),[4,P()]);case 2:return i.sent(),o=yt(t),[2,[n,o]]}}))}))}function yt(t){return t.toDataURL()}var gt,bt,wt=2500;function Lt(){var t=this;return function(){if(void 0===bt){var t=function(){var e=kt();St(e)?bt=setTimeout(t,wt):(gt=e,bt=void 0)};t()}}(),function(){return V(t,void 0,void 0,(function(){var t;return _(this,(function(e){switch(e.label){case 0:return St(t=kt())?gt?[2,W([],gt,!0)]:function(){var t=document;return t.fullscreenElement||t.msFullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||null}()?[4,st()]:[3,2]:[3,2];case 1:e.sent(),t=kt(),e.label=2;case 2:return St(t)||(gt=t),[2,t]}}))}))}}function kt(){var t=screen;return[E(F(t.availTop),null),E(F(t.width)-F(t.availWidth)-E(F(t.availLeft),0),null),E(F(t.height)-F(t.availHeight)-E(F(t.availTop),0),null),E(F(t.availLeft),null)]}function St(t){for(var e=0;e<4;++e)if(t[e])return!1;return!0}function xt(t){var e;return V(this,void 0,void 0,(function(){var n,r,o,i,a,c,s;return _(this,(function(u){switch(u.label){case 0:for(n=document,r=n.createElement("div"),o=new Array(t.length),i={},Vt(r),s=0;s<t.length;++s)"DIALOG"===(a=ft(t[s])).tagName&&a.show(),Vt(c=n.createElement("div")),c.appendChild(a),r.appendChild(c),o[s]=a;u.label=1;case 1:return n.body?[3,3]:[4,Z(50)];case 2:return u.sent(),[3,1];case 3:return n.body.appendChild(r),[4,P()];case 4:u.sent();try{for(s=0;s<t.length;++s)o[s].offsetParent||(i[t[s]]=!0)}finally{null===(e=r.parentNode)||void 0===e||e.removeChild(r)}return[2,i]}}))}))}function Vt(t){t.style.setProperty("visibility","hidden","important"),t.style.setProperty("display","block","important")}function _t(t){return matchMedia("(inverted-colors: ".concat(t,")")).matches}function Wt(t){return matchMedia("(forced-colors: ".concat(t,")")).matches}function Mt(t){return matchMedia("(prefers-contrast: ".concat(t,")")).matches}function Zt(t){return matchMedia("(prefers-reduced-motion: ".concat(t,")")).matches}function Pt(t){return matchMedia("(dynamic-range: ".concat(t,")")).matches}var jt=Math,It=function(){return 0};var Rt={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};var At=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),Ct=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),Ft=["FRAGMENT_SHADER","VERTEX_SHADER"],Et=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],Gt="WEBGL_debug_renderer_info";function Ht(t){if(t.webgl)return t.webgl.context;var e,n=document.createElement("canvas");n.addEventListener("webglCreateContextError",(function(){return e=void 0}));for(var r=0,o=["webgl","experimental-webgl"];r<o.length;r++){var i=o[r];try{e=n.getContext(i)}catch(t){}if(e)break}return t.webgl={context:e},e}function Yt(t,e,n){var r=t.getShaderPrecisionFormat(t[e],t[n]);return r?[r.rangeMin,r.rangeMax,r.precision]:[]}function Xt(t){return Object.keys(t.__proto__).filter(Ot)}function Ot(t){return"string"==typeof t&&!t.match(/[^A-Z0-9_x]/)}function Bt(){return at()}function Nt(t){return"function"==typeof t.getParameter}var Dt={fonts:function(){var t=this;return dt((function(e,n){var r=n.document;return V(t,void 0,void 0,(function(){var t,e,n,o,i,a,c,s,u,l,d;return _(this,(function(f){switch(f.label){case 0:return(t=r.body).style.fontSize="48px",(e=r.createElement("div")).style.setProperty("visibility","hidden","important"),n={},o={},i=function(t){var n=r.createElement("span"),o=n.style;return o.position="absolute",o.top="0",o.left="0",o.fontFamily=t,n.textContent="mmMwWLliI0O&1",e.appendChild(n),n},a=function(t,e){return i("'".concat(t,"',").concat(e))},c=function(){for(var t={},e=function(e){t[e]=ht.map((function(t){return a(e,t)}))},n=0,r=vt;n<r.length;n++){e(r[n])}return t},s=function(t){return ht.some((function(e,r){return t[r].offsetWidth!==n[e]||t[r].offsetHeight!==o[e]}))},u=function(){return ht.map(i)}(),l=c(),t.appendChild(e),[4,P()];case 1:for(f.sent(),d=0;d<ht.length;d++)n[ht[d]]=u[d].offsetWidth,o[ht[d]]=u[d].offsetHeight;return[2,vt.filter((function(t){return s(l[t])}))]}}))}))}))},domBlockers:function(t){var e=(void 0===t?{}:t).debug;return V(this,void 0,void 0,(function(){var t,n,r,o,i;return _(this,(function(a){switch(a.label){case 0:return rt()||ut()?(t=function(){var t=atob;return{abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',t("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",t("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",t("LnNwb25zb3JpdA=="),".ylamainos",t("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),t("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",t("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",t("LmhlYWRlci1ibG9ja2VkLWFk"),t("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",t("I2FkXzMwMFgyNTA="),t("I2Jhbm5lcmZsb2F0MjI="),t("I2NhbXBhaWduLWJhbm5lcg=="),t("I0FkLUNvbnRlbnQ=")],adGuardChinese:[t("LlppX2FkX2FfSA=="),t("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",t("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),t("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",t("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",t("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",t("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),t("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),t("LmFkZ29vZ2xl"),t("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[t("YW1wLWF1dG8tYWRz"),t("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",t("I2FkX2ludmlld19hcmVh")],adGuardRussian:[t("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),t("LnJlY2xhbWE="),'div[id^="smi2adblock"]',t("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[t("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),t("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",t("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),t("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),t("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",t("I3Jla2xhbWk="),t("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),t("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),t("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[t("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",t("LndpZGdldF9wb19hZHNfd2lkZ2V0"),t("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",t("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[t("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),t("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",t("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",t("I3Jla2xhbW5pLWJveA=="),t("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",t("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[t("I2FkdmVydGVudGll"),t("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",t("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",t("LnNwb25zb3JsaW5rZ3J1ZW4="),t("I3dlcmJ1bmdza3k="),t("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),t("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[t("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",t("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),t("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),t("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[t("LnJla2xhbW9zX3RhcnBhcw=="),t("LnJla2xhbW9zX251b3JvZG9z"),t("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),t("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),t("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[t("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[t("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),t("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",t("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[t("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),t("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),t("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",t("LmFkX19tYWlu"),t("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[t("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[t("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),t("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[t("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),t("I2xpdmVyZUFkV3JhcHBlcg=="),t("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),t("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[t("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",t("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),t("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),t("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[t("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),t("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),t("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",t("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),t("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),t("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),t("ZGl2I3NrYXBpZWNfYWQ=")],ro:[t("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),t("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),t("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),t("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[t("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),t("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),t("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",t("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),t("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",t("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]}}(),n=Object.keys(t),[4,xt((i=[]).concat.apply(i,n.map((function(e){return t[e]}))))]):[2,void 0];case 1:return r=a.sent(),e&&function(t,e){for(var n="DOM blockers debug:\n```",r=0,o=Object.keys(t);r<o.length;r++){var i=o[r];n+="\n".concat(i,":");for(var a=0,c=t[i];a<c.length;a++){var s=c[a];n+="\n ".concat(e[s]?"🚫":"➡️"," ").concat(s)}}console.log("".concat(n,"\n```"))}(t,r),(o=n.filter((function(e){var n=t[e];return G(n.map((function(t){return r[t]})))>.6*n.length}))).sort(),[2,o]}}))}))},fontPreferences:function(){return function(t,e){return void 0===e&&(e=4e3),dt((function(n,r){var o=r.document,i=o.body,a=i.style;a.width="".concat(e,"px"),a.webkitTextSizeAdjust=a.textSizeAdjust="none",nt()?i.style.zoom="".concat(1/r.devicePixelRatio):rt()&&(i.style.zoom="reset");var c=o.createElement("div");return c.textContent=W([],Array(e/20<<0),!0).map((function(){return"word"})).join(" "),i.appendChild(c),t(o,i)}),'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}((function(t,e){for(var n={},r={},o=0,i=Object.keys(Rt);o<i.length;o++){var a=i[o],c=Rt[a],s=c[0],u=void 0===s?{}:s,l=c[1],d=void 0===l?"mmMwWLliI0fiflO&1":l,f=t.createElement("span");f.textContent=d,f.style.whiteSpace="nowrap";for(var m=0,h=Object.keys(u);m<h.length;m++){var v=h[m],p=u[v];void 0!==p&&(f.style[v]=p)}n[a]=f,e.appendChild(t.createElement("br")),e.appendChild(f)}for(var y=0,g=Object.keys(Rt);y<g.length;y++){r[a=g[y]]=n[a].getBoundingClientRect().width}return r}))},audio:function(){return rt()&&ct()&&it()?-4:function(){var t=window,e=t.OfflineAudioContext||t.webkitOfflineAudioContext;if(!e)return-2;if(rt()&&!ot()&&!function(){var t=window;return G(["DOMRectList"in t,"RTCPeerConnectionIceEvent"in t,"SVGGeometryElement"in t,"ontransitioncancel"in t])>=3}())return-1;var n=4500,r=5e3,o=new e(1,r,44100),i=o.createOscillator();i.type="triangle",i.frequency.value=1e4;var a=o.createDynamicsCompressor();a.threshold.value=-50,a.knee.value=40,a.ratio.value=12,a.attack.value=0,a.release.value=.25,i.connect(a),a.connect(o.destination),i.start(0);var c=function(t){var e=3,n=500,r=500,o=5e3,i=function(){},a=new Promise((function(a,c){var s=!1,u=0,l=0;t.oncomplete=function(t){return a(t.renderedBuffer)};var d=function(){setTimeout((function(){return c(lt("timeout"))}),Math.min(r,l+o-Date.now()))},f=function(){try{var r=t.startRendering();switch(j(r)&&A(r),t.state){case"running":l=Date.now(),s&&d();break;case"suspended":document.hidden||u++,s&&u>=e?c(lt("suspended")):setTimeout(f,n)}}catch(t){c(t)}};f(),i=function(){s||(s=!0,l>0&&d())}}));return[a,i]}(o),s=c[0],u=c[1],l=s.then((function(t){return function(t){for(var e=0,n=0;n<t.length;++n)e+=Math.abs(t[n]);return e}(t.getChannelData(0).subarray(n))}),(function(t){if("timeout"===t.name||"suspended"===t.name)return-3;throw t}));return A(l),function(){return u(),l}}()},screenFrame:function(){var t=this;if(rt()&&ct()&&it())return function(){return Promise.resolve(void 0)};var e=Lt();return function(){return V(t,void 0,void 0,(function(){var t,n;return _(this,(function(r){switch(r.label){case 0:return[4,e()];case 1:return t=r.sent(),n=function(t){return null===t?null:H(t,10)},[2,[n(t[0]),n(t[1]),n(t[2]),n(t[3])]]}}))}))}},canvas:function(){return function(t){return V(this,void 0,void 0,(function(){var e,n,r,o,i,a,c;return _(this,(function(s){switch(s.label){case 0:return e=!1,o=function(){var t=document.createElement("canvas");return t.width=1,t.height=1,[t,t.getContext("2d")]}(),i=o[0],a=o[1],function(t,e){return!(!e||!t.toDataURL)}(i,a)?[3,1]:(n=r="unsupported",[3,4]);case 1:return e=function(t){return t.rect(0,0,10,10),t.rect(2,2,6,6),!t.isPointInPath(5,5,"evenodd")}(a),t?(n=r="skipped",[3,4]):[3,2];case 2:return[4,pt(i,a)];case 3:c=s.sent(),n=c[0],r=c[1],s.label=4;case 4:return[2,{winding:e,geometry:n,text:r}]}}))}))}(rt()&&ct()&&it())},osCpu:function(){return navigator.oscpu},languages:function(){var t=navigator,e=[],n=t.language||t.userLanguage||t.browserLanguage||t.systemLanguage;if(void 0!==n&&e.push([n]),Array.isArray(t.languages))nt()&&function(){var t=window;return G([!("MediaSettingsRange"in t),"RTCEncodedAudioFrame"in t,""+t.Intl=="[object Intl]",""+t.Reflect=="[object Reflect]"])>=3}()||e.push(t.languages);else if("string"==typeof t.languages){var r=t.languages;r&&e.push(r.split(","))}return e},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return E(F(navigator.deviceMemory),void 0)},screenResolution:function(){if(!(rt()&&ct()&&it()))return function(){var t=screen,e=function(t){return E(C(t),null)},n=[e(t.width),e(t.height)];return n.sort().reverse(),n}()},hardwareConcurrency:function(){return E(C(navigator.hardwareConcurrency),void 0)},timezone:function(){var t,e=null===(t=window.Intl)||void 0===t?void 0:t.DateTimeFormat;if(e){var n=(new e).resolvedOptions().timeZone;if(n)return n}var r=-function(){var t=(new Date).getFullYear();return Math.max(F(new Date(t,0,1).getTimezoneOffset()),F(new Date(t,6,1).getTimezoneOffset()))}();return"UTC".concat(r>=0?"+":"").concat(Math.abs(r))},sessionStorage:function(){try{return!!window.sessionStorage}catch(t){return!0}},localStorage:function(){try{return!!window.localStorage}catch(t){return!0}},indexedDB:function(){if(!et()&&!function(){var t=window,e=navigator;return G(["msWriteProfilerMark"in t,"MSStream"in t,"msLaunchUri"in e,"msSaveBlob"in e])>=3&&!et()}())try{return!!window.indexedDB}catch(t){return!0}},openDatabase:function(){return!!window.openDatabase},cpuClass:function(){return navigator.cpuClass},platform:function(){var t=navigator.platform;return"MacIntel"===t&&rt()&&!ot()?function(){if("iPad"===navigator.platform)return!0;var t=screen,e=t.width/t.height;return G(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,e>.65&&e<1.53])>=2}()?"iPad":"iPhone":t},plugins:function(){var t=navigator.plugins;if(t){for(var e=[],n=0;n<t.length;++n){var r=t[n];if(r){for(var o=[],i=0;i<r.length;++i){var a=r[i];o.push({type:a.type,suffixes:a.suffixes})}e.push({name:r.name,description:r.description,mimeTypes:o})}}return e}},touchSupport:function(){var t,e=navigator,n=0;void 0!==e.maxTouchPoints?n=C(e.maxTouchPoints):void 0!==e.msMaxTouchPoints&&(n=e.msMaxTouchPoints);try{document.createEvent("TouchEvent"),t=!0}catch(e){t=!1}return{maxTouchPoints:n,touchEvent:t,touchStart:"ontouchstart"in window}},vendor:function(){return navigator.vendor||""},vendorFlavors:function(){for(var t=[],e=0,n=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];e<n.length;e++){var r=n[e],o=window[r];o&&"object"==typeof o&&t.push(r)}return t.sort()},cookiesEnabled:function(){var t=document;try{t.cookie="cookietest=1; SameSite=Strict;";var e=-1!==t.cookie.indexOf("cookietest=");return t.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",e}catch(t){return!1}},colorGamut:function(){for(var t=0,e=["rec2020","p3","srgb"];t<e.length;t++){var n=e[t];if(matchMedia("(color-gamut: ".concat(n,")")).matches)return n}},invertedColors:function(){return!!_t("inverted")||!_t("none")&&void 0},forcedColors:function(){return!!Wt("active")||!Wt("none")&&void 0},monochrome:function(){if(matchMedia("(min-monochrome: 0)").matches){for(var t=0;t<=100;++t)if(matchMedia("(max-monochrome: ".concat(t,")")).matches)return t;throw new Error("Too high value")}},contrast:function(){return Mt("no-preference")?0:Mt("high")||Mt("more")?1:Mt("low")||Mt("less")?-1:Mt("forced")?10:void 0},reducedMotion:function(){return!!Zt("reduce")||!Zt("no-preference")&&void 0},hdr:function(){return!!Pt("high")||!Pt("standard")&&void 0},math:function(){var t,e=jt.acos||It,n=jt.acosh||It,r=jt.asin||It,o=jt.asinh||It,i=jt.atanh||It,a=jt.atan||It,c=jt.sin||It,s=jt.sinh||It,u=jt.cos||It,l=jt.cosh||It,d=jt.tan||It,f=jt.tanh||It,m=jt.exp||It,h=jt.expm1||It,v=jt.log1p||It;return{acos:e(.12312423423423424),acosh:n(1e308),acoshPf:(t=1e154,jt.log(t+jt.sqrt(t*t-1))),asin:r(.12312423423423424),asinh:o(1),asinhPf:function(t){return jt.log(t+jt.sqrt(t*t+1))}(1),atanh:i(.5),atanhPf:function(t){return jt.log((1+t)/(1-t))/2}(.5),atan:a(.5),sin:c(-1e300),sinh:s(1),sinhPf:function(t){return jt.exp(t)-1/jt.exp(t)/2}(1),cos:u(10.000000000123),cosh:l(1),coshPf:function(t){return(jt.exp(t)+1/jt.exp(t))/2}(1),tan:d(-1e300),tanh:f(1),tanhPf:function(t){return(jt.exp(2*t)-1)/(jt.exp(2*t)+1)}(1),exp:m(1),expm1:h(1),expm1Pf:function(t){return jt.exp(t)-1}(1),log1p:v(10),log1pPf:function(t){return jt.log(1+t)}(10),powPI:function(t){return jt.pow(jt.PI,t)}(-100)}},pdfViewerEnabled:function(){return navigator.pdfViewerEnabled},architecture:function(){var t=new Float32Array(1),e=new Uint8Array(t.buffer);return t[0]=1/0,t[0]=t[0]-t[0],e[3]},applePay:function(){var t=window.ApplePaySession;if("function"!=typeof(null==t?void 0:t.canMakePayments))return-1;try{return t.canMakePayments()?1:0}catch(t){return function(t){if(t instanceof Error){if("InvalidAccessError"===t.name){if(/\bfrom\b.*\binsecure\b/i.test(t.message))return-2;if(/\bdifferent\b.*\borigin\b.*top.level\b.*\bframe\b/i.test(t.message))return-3}if("SecurityError"===t.name&&/\bthird.party iframes?.*\bnot.allowed\b/i.test(t.message))return-3}throw t}(t)}},privateClickMeasurement:function(){var t,e=document.createElement("a"),n=null!==(t=e.attributionSourceId)&&void 0!==t?t:e.attributionsourceid;return void 0===n?void 0:String(n)},webGlBasics:function(t){var e,n,r,o,i,a,c=Ht(t.cache);if(!c)return-1;if(!Nt(c))return-2;var s=Bt()?null:c.getExtension(Gt);return{version:(null===(e=c.getParameter(c.VERSION))||void 0===e?void 0:e.toString())||"",vendor:(null===(n=c.getParameter(c.VENDOR))||void 0===n?void 0:n.toString())||"",vendorUnmasked:s?null===(r=c.getParameter(s.UNMASKED_VENDOR_WEBGL))||void 0===r?void 0:r.toString():"",renderer:(null===(o=c.getParameter(c.RENDERER))||void 0===o?void 0:o.toString())||"",rendererUnmasked:s?null===(i=c.getParameter(s.UNMASKED_RENDERER_WEBGL))||void 0===i?void 0:i.toString():"",shadingLanguageVersion:(null===(a=c.getParameter(c.SHADING_LANGUAGE_VERSION))||void 0===a?void 0:a.toString())||""}},webGlExtensions:function(t){var e=Ht(t.cache);if(!e)return-1;if(!Nt(e))return-2;var n=e.getSupportedExtensions(),r=e.getContextAttributes(),o=[],i=[],a=[],c=[];if(r)for(var s=0,u=Object.keys(r);s<u.length;s++){var l=u[s];o.push("".concat(l,"=").concat(r[l]))}for(var d=0,f=Xt(e);d<f.length;d++){var m=e[w=f[d]];i.push("".concat(w,"=").concat(m).concat(At.has(m)?"=".concat(e.getParameter(m)):""))}if(n)for(var h=0,v=n;h<v.length;h++){var p=v[h];if(p!==Gt||!Bt()){var y=e.getExtension(p);if(y)for(var g=0,b=Xt(y);g<b.length;g++){var w;m=y[w=b[g]];a.push("".concat(w,"=").concat(m).concat(Ct.has(m)?"=".concat(e.getParameter(m)):""))}}}for(var L=0,k=Ft;L<k.length;L++)for(var S=k[L],x=0,V=Et;x<V.length;x++){var _=V[x],W=Yt(e,S,_);c.push("".concat(S,".").concat(_,"=").concat(W.join(",")))}return a.sort(),i.sort(),{contextAttributes:o,parameters:i,shaderPrecisions:c,extensions:n,extensionParameters:a}}};var Jt="$ if upgrade to Pro: https://fpjs.dev/pro";function Tt(t){var e=function(t){if(ut())return.4;if(rt())return!ot()||ct()&&it()?.3:.5;var e="value"in t.platform?t.platform.value:"";return/^Win/.test(e)?.6:/^Mac/.test(e)?.5:.7}(t),n=function(t){return H(.99+.01*t,1e-4)}(e);return{score:e,comment:Jt.replace(/\$/g,"".concat(n))}}function zt(t){return JSON.stringify(t,(function(t,e){return e instanceof Error?function(t){var e;return x({name:t.name,message:t.message,stack:null===(e=t.stack)||void 0===e?void 0:e.split("\n")},t)}(e):e}),2)}function Ut(t){return q(function(t){for(var e="",n=0,r=Object.keys(t).sort();n<r.length;n++){var o=r[n],i=t[o],a="error"in i?"error":JSON.stringify(i.value);e+="".concat(e?"|":"").concat(o.replace(/([:|\\])/g,"\\$1"),":").concat(a)}return e}(t))}function Qt(t){return void 0===t&&(t=50),function(t,e){void 0===e&&(e=1/0);var n=window.requestIdleCallback;return n?new Promise((function(t){return n.call(window,(function(){return t()}),{timeout:e})})):Z(Math.min(t,e))}(t,2*t)}function Kt(t,e){var n=Date.now();return{get:function(r){return V(this,void 0,void 0,(function(){var o,i,a;return _(this,(function(c){switch(c.label){case 0:return o=Date.now(),[4,t()];case 1:return i=c.sent(),a=function(t){var e;return{get visitorId(){return void 0===e&&(e=Ut(this.components)),e},set visitorId(t){e=t},confidence:Tt(t),components:t,version:M}}(i),(e||null!=r&&r.debug)&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(a.version,"\nuserAgent: ").concat(navigator.userAgent,"\ntimeBetweenLoadAndGet: ").concat(o-n,"\nvisitorId: ").concat(a.visitorId,"\ncomponents: ").concat(zt(i),"\n```")),[2,a]}}))}))}}}var $t={load:function(t){var e;return void 0===t&&(t={}),V(this,void 0,void 0,(function(){var n,r,o;return _(this,(function(i){switch(i.label){case 0:return(!(null!==(e=t.monitoring)&&void 0!==e)||e)&&function(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var t=new XMLHttpRequest;t.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(M,"/npm-monitoring"),!0),t.send()}catch(t){console.error(t)}}(),n=t.delayFallback,r=t.debug,[4,Qt(n)];case 1:return i.sent(),o=function(t){return tt(Dt,t,[])}({cache:{},debug:r}),[2,Kt(o,r)]}}))}))},hashComponents:Ut,componentsToDebugString:zt};const qt="bn_cookieId";class te{constructor(t=!0){this.storage=t?localStorage:sessionStorage}set(t,e){this.storage.setItem(t,JSON.stringify(e))}get(t){const e=this.storage.getItem(t);if(e)return JSON.parse(e)}remove(t){return this.storage.removeItem(t)}clear(){this.storage.clear()}}var ee={exports:{}};
|
|
2
|
+
/*!
|
|
3
|
+
* md5js v1.0.7
|
|
4
|
+
* (c) 2017-2018 penyuying
|
|
5
|
+
* Released under the MIT License.
|
|
6
|
+
*/!function(t){t.md5=function(t,e){function n(t,e){return t<<e|t>>>32-e}function r(t,e){var n,r,o,i,a;return o=2147483648&t,i=2147483648&e,a=(1073741823&t)+(1073741823&e),(n=1073741824&t)&(r=1073741824&e)?2147483648^a^o^i:n|r?1073741824&a?3221225472^a^o^i:1073741824^a^o^i:a^o^i}function o(t,e,o,i,a,c,s){return t=r(t,r(r((u=e)&o|~u&i,a),s)),r(n(t,c),e);var u}function i(t,e,o,i,a,c,s){return t=r(t,r(r(e&(u=i)|o&~u,a),s)),r(n(t,c),e);var u}function a(t,e,o,i,a,c,s){return t=r(t,r(r(e^o^i,a),s)),r(n(t,c),e)}function c(t,e,o,i,a,c,s){return t=r(t,r(r(o^(e|~i),a),s)),r(n(t,c),e)}function s(t){var e,n="",r="";for(e=0;e<=3;e++)n+=(r="0"+(t>>>8*e&255).toString(16)).substr(r.length-2,2);return n}var u,l,d,f,m,h,v,p,y,g=t,b=Array();for(b=function(t){for(var e,n=t.length,r=n+8,o=16*((r-r%64)/64+1),i=Array(o-1),a=0,c=0;c<n;)a=c%4*8,i[e=(c-c%4)/4]=i[e]|t.charCodeAt(c)<<a,c++;return a=c%4*8,i[e=(c-c%4)/4]=i[e]|128<<a,i[o-2]=n<<3,i[o-1]=n>>>29,i}(g),h=1732584193,v=4023233417,p=2562383102,y=271733878,u=0;u<b.length;u+=16)l=h,d=v,f=p,m=y,v=c(v=c(v=c(v=c(v=a(v=a(v=a(v=a(v=i(v=i(v=i(v=i(v=o(v=o(v=o(v=o(v,p=o(p,y=o(y,h=o(h,v,p,y,b[u+0],7,3614090360),v,p,b[u+1],12,3905402710),h,v,b[u+2],17,606105819),y,h,b[u+3],22,3250441966),p=o(p,y=o(y,h=o(h,v,p,y,b[u+4],7,4118548399),v,p,b[u+5],12,1200080426),h,v,b[u+6],17,2821735955),y,h,b[u+7],22,4249261313),p=o(p,y=o(y,h=o(h,v,p,y,b[u+8],7,1770035416),v,p,b[u+9],12,2336552879),h,v,b[u+10],17,4294925233),y,h,b[u+11],22,2304563134),p=o(p,y=o(y,h=o(h,v,p,y,b[u+12],7,1804603682),v,p,b[u+13],12,4254626195),h,v,b[u+14],17,2792965006),y,h,b[u+15],22,1236535329),p=i(p,y=i(y,h=i(h,v,p,y,b[u+1],5,4129170786),v,p,b[u+6],9,3225465664),h,v,b[u+11],14,643717713),y,h,b[u+0],20,3921069994),p=i(p,y=i(y,h=i(h,v,p,y,b[u+5],5,3593408605),v,p,b[u+10],9,38016083),h,v,b[u+15],14,3634488961),y,h,b[u+4],20,3889429448),p=i(p,y=i(y,h=i(h,v,p,y,b[u+9],5,568446438),v,p,b[u+14],9,3275163606),h,v,b[u+3],14,4107603335),y,h,b[u+8],20,1163531501),p=i(p,y=i(y,h=i(h,v,p,y,b[u+13],5,2850285829),v,p,b[u+2],9,4243563512),h,v,b[u+7],14,1735328473),y,h,b[u+12],20,2368359562),p=a(p,y=a(y,h=a(h,v,p,y,b[u+5],4,4294588738),v,p,b[u+8],11,2272392833),h,v,b[u+11],16,1839030562),y,h,b[u+14],23,4259657740),p=a(p,y=a(y,h=a(h,v,p,y,b[u+1],4,2763975236),v,p,b[u+4],11,1272893353),h,v,b[u+7],16,4139469664),y,h,b[u+10],23,3200236656),p=a(p,y=a(y,h=a(h,v,p,y,b[u+13],4,681279174),v,p,b[u+0],11,3936430074),h,v,b[u+3],16,3572445317),y,h,b[u+6],23,76029189),p=a(p,y=a(y,h=a(h,v,p,y,b[u+9],4,3654602809),v,p,b[u+12],11,3873151461),h,v,b[u+15],16,530742520),y,h,b[u+2],23,3299628645),p=c(p,y=c(y,h=c(h,v,p,y,b[u+0],6,4096336452),v,p,b[u+7],10,1126891415),h,v,b[u+14],15,2878612391),y,h,b[u+5],21,4237533241),p=c(p,y=c(y,h=c(h,v,p,y,b[u+12],6,1700485571),v,p,b[u+3],10,2399980690),h,v,b[u+10],15,4293915773),y,h,b[u+1],21,2240044497),p=c(p,y=c(y,h=c(h,v,p,y,b[u+8],6,1873313359),v,p,b[u+15],10,4264355552),h,v,b[u+6],15,2734768916),y,h,b[u+13],21,1309151649),p=c(p,y=c(y,h=c(h,v,p,y,b[u+4],6,4149444226),v,p,b[u+11],10,3174756917),h,v,b[u+2],15,718787259),y,h,b[u+9],21,3951481745),h=r(h,l),v=r(v,d),p=r(p,f),y=r(y,m);return 32==e?s(h)+s(v)+s(p)+s(y):s(v)+s(p)},Object.defineProperty(t,"__esModule",{value:!0})}(ee.exports);var ne=ee.exports;const re=t=>i(exports,null,(function*(){const e=t||function(){};try{$t.load().then((t=>t.get())).then((t=>i(exports,null,(function*(){e(t)})))).catch((t=>{e(t)}))}catch(t){e(t)}})),oe=()=>Math.floor(window.screen.width*window.devicePixelRatio),ie=()=>Math.floor(window.screen.height*window.devicePixelRatio);let ae={appKey:"",appSecret:"",projectId:""},ce="",se=!0;const ue=(t,e)=>new Promise(((n,r)=>{try{const{appKey:o,appSecret:a,projectId:s}=ae||{};if(""===o||!o||""===a||!a||""===s||!s)throw new Error("Please call the init method first");if(!t||""===t)throw new Error("Event name cannot be empty");(t=>{const e=t||function(){};try{const t=new te(!1);let n=t.get(qt);""!==n&&n?e(n):re((r=>i(exports,null,(function*(){const{visitorId:o,components:i}=r||{},{fonts:a,videoCard:s}=i||{},u=a&&a.value.join(",")||"",l=ne.md5(u,32),d=navigator.language,f=oe(),m=ie(),h=s&&JSON.stringify(s.value)||"",v=yield c({url:"/ecl/bs/check",params:{bfp:o,font:l,language:d,screen_width:f,screen_height:m,video_card:h}}),{code:p,data:y}=v||{};200===p&&y&&(n=y.cookie_id,t.set(qt,n)),e(n)}))))}catch(t){e("1")}})((o=>i(exports,null,(function*(){const u=oe(),l=ie(),d=(new Date).valueOf(),f=d.toString(),m=k(`${s}_${f}_${d}_${a}`).toString(),h=(()=>{const t=navigator.userAgent.toLowerCase();let e="Android";return/android/.test(t)?e="Android":/iphone|ipad|ipod/.test(t)?e="iOS":/win/.test(t)?e="Windows":/mac/.test(t)?e="macOS":/linux/.test(t)&&(e="Linux"),e})(),v=yield i(exports,null,(function*(){const t=navigator.userAgent.toLowerCase();let e="";try{if(/android/.test(t))if(navigator.userAgent.indexOf("(Linux; Android 10; K)")>-1&&navigator.userAgentData){const t=yield navigator.userAgentData.getHighEntropyValues(["platformVersion","model"]);e=t&&t.platformVersion}else e=t.match(/android\s([0-9.]+)/)[1];else/iphone|ipad|ipod/.test(t)?e=t.match(/os\s([\d_]+)/)[1].replace(/_/g,"."):/win/.test(t)?e=t.match(/windows\snt\s([\d.]+)/)[1]:/mac/.test(t)?e=t.match(/os x\s([\d_]+)/)[1].replace(/_/g,"."):/linux/.test(t)&&(e="Unknown")}catch(t){console.error(t)}return e})),p=yield i(exports,null,(function*(){const t=navigator.userAgent;let e="Windows";try{if(t.includes("iPhone"))e="iPhone";else if(t.includes("iPad"))e="iPad";else if(t.includes("Android"))if(t.indexOf("(Linux; Android 10; K)")>-1&&navigator.userAgentData){const t=yield navigator.userAgentData.getHighEntropyValues(["platformVersion","model"]);e=t&&t.model||"Windows"}else if(t.includes("Build")){const n=t.match(/Android.*; ?(.*(?= Build))/);n&&n.length>1&&(e=n[1])}else if(t.includes("wv")){const n=t.match(/Android.*; ?(.*(?= wv))/);if(n&&n.length>0){const t=n[0].split(";");t&&t.length>1&&(e=t[1])}}else{const n=t.match(/Android.*; ([^)]+)/);n&&n.length>1&&(e=n[1])}else t.includes("Mac")&&(e="Mac")}catch(t){e="Windows"}return e})),y=yield new Promise(((t,e)=>{try{const e=new RTCPeerConnection;e.createDataChannel(""),e.onicecandidate=function(n){if(!n.candidate)throw new Error("IP acquisition failed");{const r=n.candidate.candidate,o=/(?:[0-9]{1,3}\.){3}[0-9]{1,3}/.exec(r),i=o?o[0]:null;t(i),e.close()}},e.createOffer().then((t=>e.setLocalDescription(t))).catch((()=>{throw new Error("IP acquisition failed")}))}catch(t){e()}})),g=(navigator.language||navigator.userLanguage).substring(3).toUpperCase(),b=(navigator.language||navigator.userLanguage).substring(0,2).toLowerCase();let w=[];e&&e.constructor===Array&&(w=e.map((t=>{const e={};return Object.keys(t).forEach((n=>{const r=t[n];e[n]="string"!=typeof r?String(r):r})),e})));const L=yield c({url:"/v2/event",params:{project:s,request_id:f,timestamp:d,msg_signature:m,event:t,user_data:{native_msg:"",os:h,os_version:v,device_model:p,device_id:o,user_id:ce,country:g,language:b,screen_width:u,screen_height:l,ip:y||""},custom_data:w}}),{code:S,data:x,msg:V}=L||{};if(200!==S||!x)throw r(V),new Error(V);{let t="";const e=x.link_data||[];for(let n=0;n<e.length;n++)if("$campaign_url"===e[n].key){t=decodeURIComponent(e[n].value||"");break}se&&""!==t&&(window.location.href=t),n(t)}}))))}catch(t){r(t)}})),le={init:(t,e)=>new Promise(((n,r)=>{const o=e||function(){};try{const{appKey:e,appSecret:r,projectId:i,uid:c,jump:s=!0,dev:u=!1}=t||{};if(!e||""===e)throw new Error("Missing appKey parameter");if(!r||""===r)throw new Error("Missing appSecret parameter");if(!i||""===i)throw new Error("Missing projectId parameter");console.log("dev",u),u&&(t=>{t&&(a="https://test.allapp.link")})(u),ce=c,se=s,ae=t||{};const l={state:"success"};n(l),o(l)}catch(t){const e={state:"fail",msg:t};r(t),o(e)}})),setIdentity:(t,e)=>new Promise(((n,r)=>{try{ce=t,n(),e&&e()}catch(t){r(t)}})),install:t=>new Promise(((e,n)=>{ue("install").then((n=>{e(n),t&&t(n)})).catch((t=>{n(t)}))})),open:t=>new Promise(((e,n)=>{ue("open").then((n=>{e(n),t&&t(n)})).catch((t=>{n(t)}))})),customEvent:(t,e)=>new Promise(((n,r)=>{try{let o=[],i="";if("string"==typeof t?i=t:t&&(i=t.event||"",o=t.customData||[]),!i||""===i)throw new Error("Event name cannot be empty");ue(i,o).then((t=>{n(t),e&&e(t)})).catch((t=>{r(t)}))}catch(t){r(t)}}))};module.exports=le;
|
package/dist/index.es.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
var t=Object.defineProperty,e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,o=(e,n,r)=>n in e?t(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,i=(t,e,n)=>new Promise(((r,o)=>{var i=t=>{try{c(n.next(t))}catch(t){o(t)}},a=t=>{try{c(n.throw(t))}catch(t){o(t)}},c=t=>t.done?r(t.value):Promise.resolve(t.value).then(i,a);c((n=n.apply(t,e)).next())}));let a="https://www.allapp.link";const c=({url:t,method:i="POST",headers:c,params:s})=>new Promise(((u,l)=>{const d=((t,i)=>{for(var a in i||(i={}))n.call(i,a)&&o(t,a,i[a]);if(e)for(var a of e(i))r.call(i,a)&&o(t,a,i[a]);return t})({"Content-Type":"application/json;charset=utf-8"},c);ce.appKey&&(d.Authorization="Bearer "+ce.appKey),fetch(a+t,{method:i,headers:d,body:JSON.stringify(s)}).then((t=>{if(t.ok)return t.json();throw new Error("Network response was not ok.")})).then((t=>{u(t)})).catch((t=>{l(t)}))}));var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function u(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function l(t){if(t.__esModule)return t;var e=t.default;if("function"==typeof e){var n=function t(){return this instanceof t?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach((function(e){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,r.get?r:{enumerable:!0,get:function(){return t[e]}})})),n}var d={exports:{}};var f={exports:{}};const m=l(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var h,v,p,y,g,b,w,L,k;function S(){return h||(h=1,f.exports=(t=t||function(t,e){var n;if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==s&&s.crypto&&(n=s.crypto),!n)try{n=m}catch(t){}var r=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function t(){}return function(e){var n;return t.prototype=e,n=new t,t.prototype=null,n}}(),i={},a=i.lib={},c=a.Base={extend:function(t){var e=o(this);return t&&e.mixIn(t),(!e.hasOwnProperty("init")||this.init===e.init)&&(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},u=a.WordArray=c.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:4*t.length},toString:function(t){return(t||d).stringify(this)},concat:function(t){var e=this.words,n=t.words,r=this.sigBytes,o=t.sigBytes;if(this.clamp(),r%4)for(var i=0;i<o;i++){var a=n[i>>>2]>>>24-i%4*8&255;e[r+i>>>2]|=a<<24-(r+i)%4*8}else for(var c=0;c<o;c+=4)e[r+c>>>2]=n[c>>>2];return this.sigBytes+=o,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=c.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],n=0;n<t;n+=4)e.push(r());return new u.init(e,t)}}),l=i.enc={},d=l.Hex={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],o=0;o<n;o++){var i=e[o>>>2]>>>24-o%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r+=2)n[r>>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new u.init(n,e/2)}},f=l.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],o=0;o<n;o++){var i=e[o>>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(i))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r++)n[r>>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new u.init(n,e)}},h=l.Utf8={stringify:function(t){try{return decodeURIComponent(escape(f.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return f.parse(unescape(encodeURIComponent(t)))}},v=a.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=h.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n,r=this._data,o=r.words,i=r.sigBytes,a=this.blockSize,c=i/(4*a),s=(c=e?t.ceil(c):t.max((0|c)-this._minBufferSize,0))*a,l=t.min(4*s,i);if(s){for(var d=0;d<s;d+=a)this._doProcessBlock(o,d);n=o.splice(0,s),r.sigBytes-=l}return new u.init(n,l)},clone:function(){var t=c.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});a.Hasher=v.extend({cfg:c.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){v.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,n){return new t.init(n).finalize(e)}},_createHmacHelper:function(t){return function(e,n){return new p.HMAC.init(t,n).finalize(e)}}});var p=i.algo={};return i}(Math),t)),f.exports;var t}const x=u(d.exports=(k=S(),p=(v=k).lib,y=p.WordArray,g=p.Hasher,b=v.algo,w=[],L=b.SHA1=g.extend({_doReset:function(){this._hash=new y.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],a=n[3],c=n[4],s=0;s<80;s++){if(s<16)w[s]=0|t[e+s];else{var u=w[s-3]^w[s-8]^w[s-14]^w[s-16];w[s]=u<<1|u>>>31}var l=(r<<5|r>>>27)+c+w[s];l+=s<20?1518500249+(o&i|~o&a):s<40?1859775393+(o^i^a):s<60?(o&i|o&a|i&a)-1894007588:(o^i^a)-899497514,c=a,a=i,i=o<<30|o>>>2,o=r,r=l}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+a|0,n[4]=n[4]+c|0},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;return e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),e[15+(r+64>>>9<<4)]=n,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=g.clone.call(this);return t._hash=this._hash.clone(),t}}),v.SHA1=g._createHelper(L),v.HmacSHA1=g._createHmacHelper(L),k.SHA1));var V=function(){return V=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},V.apply(this,arguments)};function _(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{s(r.next(t))}catch(t){i(t)}}function c(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){t.done?o(t.value):function(t){return t instanceof n?t:new n((function(e){e(t)}))}(t.value).then(a,c)}s((r=r.apply(t,e||[])).next())}))}function W(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(s){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(6===c[0]&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(t){c=[6,t],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,s])}}}function M(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)(r||!(o in e))&&(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}var Z="4.1.0";function P(t,e){return new Promise((function(n){return setTimeout(n,t,e)}))}function j(){return P(0)}function I(t){return!!t&&"function"==typeof t.then}function R(t,e){try{var n=t();I(n)?n.then((function(t){return e(!0,t)}),(function(t){return e(!1,t)})):e(!0,n)}catch(t){e(!1,t)}}function A(t,e,n){return void 0===n&&(n=16),_(this,void 0,void 0,(function(){var r,o,i,a;return W(this,(function(c){switch(c.label){case 0:r=Array(t.length),o=Date.now(),i=0,c.label=1;case 1:return i<t.length?(r[i]=e(t[i],i),(a=Date.now())>=o+n?(o=a,[4,P(0)]):[3,3]):[3,4];case 2:c.sent(),c.label=3;case 3:return++i,[3,1];case 4:return[2,r]}}))}))}function C(t){t.then(void 0,(function(){}))}function F(t){return parseInt(t)}function E(t){return parseFloat(t)}function G(t,e){return"number"==typeof t&&isNaN(t)?e:t}function H(t){return t.reduce((function(t,e){return t+(e?1:0)}),0)}function Y(t,e){if(void 0===e&&(e=1),Math.abs(e)>=1)return Math.round(t/e)*e;var n=1/e;return Math.round(t*n)/n}function X(t,e){var n=t[0]>>>16,r=65535&t[0],o=t[1]>>>16,i=65535&t[1],a=e[0]>>>16,c=65535&e[0],s=e[1]>>>16,u=0,l=0,d=0,f=0;d+=(f+=i+(65535&e[1]))>>>16,f&=65535,l+=(d+=o+s)>>>16,d&=65535,u+=(l+=r+c)>>>16,l&=65535,u+=n+a,u&=65535,t[0]=u<<16|l,t[1]=d<<16|f}function O(t,e){var n=t[0]>>>16,r=65535&t[0],o=t[1]>>>16,i=65535&t[1],a=e[0]>>>16,c=65535&e[0],s=e[1]>>>16,u=65535&e[1],l=0,d=0,f=0,m=0;f+=(m+=i*u)>>>16,m&=65535,d+=(f+=o*u)>>>16,f&=65535,d+=(f+=i*s)>>>16,f&=65535,l+=(d+=r*u)>>>16,d&=65535,l+=(d+=o*s)>>>16,d&=65535,l+=(d+=i*c)>>>16,d&=65535,l+=n*u+r*s+o*c+i*a,l&=65535,t[0]=l<<16|d,t[1]=f<<16|m}function B(t,e){var n=t[0];32===(e%=64)?(t[0]=t[1],t[1]=n):e<32?(t[0]=n<<e|t[1]>>>32-e,t[1]=t[1]<<e|n>>>32-e):(e-=32,t[0]=t[1]<<e|n>>>32-e,t[1]=n<<e|t[1]>>>32-e)}function N(t,e){0!==(e%=64)&&(e<32?(t[0]=t[1]>>>32-e,t[1]=t[1]<<e):(t[0]=t[1]<<e-32,t[1]=0))}function D(t,e){t[0]^=e[0],t[1]^=e[1]}var J=[4283543511,3981806797],T=[3301882366,444984403];function z(t){var e=[0,t[0]>>>1];D(t,e),O(t,J),e[1]=t[0]>>>1,D(t,e),O(t,T),e[1]=t[0]>>>1,D(t,e)}var U=[2277735313,289559509],Q=[1291169091,658871167],K=[0,5],$=[0,1390208809],q=[0,944331445];function tt(t,e){var n=function(t){for(var e=new Uint8Array(t.length),n=0;n<t.length;n++){var r=t.charCodeAt(n);if(r<0||r>127)return(new TextEncoder).encode(t);e[n]=r}return e}(t);e=e||0;var r,o=[0,n.length],i=o[1]%16,a=o[1]-i,c=[0,e],s=[0,e],u=[0,0],l=[0,0];for(r=0;r<a;r+=16)u[0]=n[r+4]|n[r+5]<<8|n[r+6]<<16|n[r+7]<<24,u[1]=n[r]|n[r+1]<<8|n[r+2]<<16|n[r+3]<<24,l[0]=n[r+12]|n[r+13]<<8|n[r+14]<<16|n[r+15]<<24,l[1]=n[r+8]|n[r+9]<<8|n[r+10]<<16|n[r+11]<<24,O(u,U),B(u,31),O(u,Q),D(c,u),B(c,27),X(c,s),O(c,K),X(c,$),O(l,Q),B(l,33),O(l,U),D(s,l),B(s,31),X(s,c),O(s,K),X(s,q);u[0]=0,u[1]=0,l[0]=0,l[1]=0;var d=[0,0];switch(i){case 15:d[1]=n[r+14],N(d,48),D(l,d);case 14:d[1]=n[r+13],N(d,40),D(l,d);case 13:d[1]=n[r+12],N(d,32),D(l,d);case 12:d[1]=n[r+11],N(d,24),D(l,d);case 11:d[1]=n[r+10],N(d,16),D(l,d);case 10:d[1]=n[r+9],N(d,8),D(l,d);case 9:d[1]=n[r+8],D(l,d),O(l,Q),B(l,33),O(l,U),D(s,l);case 8:d[1]=n[r+7],N(d,56),D(u,d);case 7:d[1]=n[r+6],N(d,48),D(u,d);case 6:d[1]=n[r+5],N(d,40),D(u,d);case 5:d[1]=n[r+4],N(d,32),D(u,d);case 4:d[1]=n[r+3],N(d,24),D(u,d);case 3:d[1]=n[r+2],N(d,16),D(u,d);case 2:d[1]=n[r+1],N(d,8),D(u,d);case 1:d[1]=n[r],D(u,d),O(u,U),B(u,31),O(u,Q),D(c,u)}return D(c,o),D(s,o),X(c,s),X(s,c),z(c),z(s),X(c,s),X(s,c),("00000000"+(c[0]>>>0).toString(16)).slice(-8)+("00000000"+(c[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}function et(t,e,n){var r=Object.keys(t).filter((function(t){return function(t,e){return!function(t,e){for(var n=0,r=t.length;n<r;++n)if(t[n]===e)return!0;return!1}(t,e)}(n,t)})),o=A(r,(function(n){return function(t,e){var n=new Promise((function(n){var r=Date.now();R(t.bind(null,e),(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var o=Date.now()-r;if(!t[0])return n((function(){return{error:t[1],duration:o}}));var i=t[1];if(function(t){return"function"!=typeof t}(i))return n((function(){return{value:i,duration:o}}));n((function(){return new Promise((function(t){var e=Date.now();R(i,(function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=o+Date.now()-e;if(!n[0])return t({error:n[1],duration:i});t({value:n[1],duration:i})}))}))}))}))}));return C(n),function(){return n.then((function(t){return t()}))}}(t[n],e)}));return C(o),function(){return _(this,void 0,void 0,(function(){var t,e,n,i;return W(this,(function(a){switch(a.label){case 0:return[4,o];case 1:return[4,A(a.sent(),(function(t){var e=t();return C(e),e}))];case 2:return t=a.sent(),[4,Promise.all(t)];case 3:for(e=a.sent(),n={},i=0;i<r.length;++i)n[r[i]]=e[i];return[2,n]}}))}))}}function nt(){var t=window,e=navigator;return H(["MSCSSMatrix"in t,"msSetImmediate"in t,"msIndexedDB"in t,"msMaxTouchPoints"in e,"msPointerEnabled"in e])>=4}function rt(){var t=window,e=navigator;return H(["webkitPersistentStorage"in e,"webkitTemporaryStorage"in e,0===e.vendor.indexOf("Google"),"webkitResolveLocalFileSystemURL"in t,"BatteryManager"in t,"webkitMediaStream"in t,"webkitSpeechGrammar"in t])>=5}function ot(){var t=window,e=navigator;return H(["ApplePayError"in t,"CSSPrimitiveValue"in t,"Counter"in t,0===e.vendor.indexOf("Apple"),"getStorageUpdates"in e,"WebKitMediaKeys"in t])>=4}function it(){var t=window,e=t.HTMLElement,n=t.Document;return H(["safari"in t,!("ongestureend"in t),!("TouchEvent"in t),!("orientation"in t),e&&!("autocapitalize"in e.prototype),n&&"pointerLockElement"in n.prototype])>=4}function at(){var t=window;return!!function(t){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(t))}(t.print)&&H(["[object WebPageNamespace]"===String(t.browser),"MicrodataExtractor"in t])>=1}function ct(){var t,e,n=window;return H(["buildID"in navigator,"MozAppearance"in(null!==(e=null===(t=document.documentElement)||void 0===t?void 0:t.style)&&void 0!==e?e:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function st(){var t=window,e=navigator,n=t.CSS,r=t.HTMLButtonElement;return H([!("getStorageUpdates"in e),r&&"popover"in r.prototype,"CSSCounterStyleRule"in t,n.supports("font-size-adjust: ex-height 0.5"),n.supports("text-transform: full-width")])>=4}function ut(){var t=document;return(t.exitFullscreen||t.msExitFullscreen||t.mozCancelFullScreen||t.webkitExitFullscreen).call(t)}function lt(){var t=rt(),e=ct();if(!t&&!e)return!1;var n=window;return H(["onorientationchange"in n,"orientation"in n,t&&!("SharedWorker"in n),e&&/android/i.test(navigator.appVersion)])>=2}function dt(t){var e=new Error(t);return e.name=t,e}function ft(t,e,n){var r,o,i;return void 0===n&&(n=50),_(this,void 0,void 0,(function(){var a,c;return W(this,(function(s){switch(s.label){case 0:a=document,s.label=1;case 1:return a.body?[3,3]:[4,P(n)];case 2:return s.sent(),[3,1];case 3:c=a.createElement("iframe"),s.label=4;case 4:return s.trys.push([4,,10,11]),[4,new Promise((function(t,n){var r=!1,o=function(){r=!0,t()};c.onload=o,c.onerror=function(t){r=!0,n(t)};var i=c.style;i.setProperty("display","block","important"),i.position="absolute",i.top="0",i.left="0",i.visibility="hidden",e&&"srcdoc"in c?c.srcdoc=e:c.src="about:blank",a.body.appendChild(c);var s=function(){var t,e;r||("complete"===(null===(e=null===(t=c.contentWindow)||void 0===t?void 0:t.document)||void 0===e?void 0:e.readyState)?o():setTimeout(s,10))};s()}))];case 5:s.sent(),s.label=6;case 6:return null!==(o=null===(r=c.contentWindow)||void 0===r?void 0:r.document)&&void 0!==o&&o.body?[3,8]:[4,P(n)];case 7:return s.sent(),[3,6];case 8:return[4,t(c,c.contentWindow)];case 9:return[2,s.sent()];case 10:return null===(i=c.parentNode)||void 0===i||i.removeChild(c),[7];case 11:return[2]}}))}))}function mt(t){for(var e=function(t){for(var e,n,r="Unexpected syntax '".concat(t,"'"),o=/^\s*([a-z-]*)(.*)$/i.exec(t),i=o[1]||void 0,a={},c=/([.:#][\w-]+|\[.+?\])/gi,s=function(t,e){a[t]=a[t]||[],a[t].push(e)};;){var u=c.exec(o[2]);if(!u)break;var l=u[0];switch(l[0]){case".":s("class",l.slice(1));break;case"#":s("id",l.slice(1));break;case"[":var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(l);if(!d)throw new Error(r);s(d[1],null!==(n=null!==(e=d[4])&&void 0!==e?e:d[5])&&void 0!==n?n:"");break;default:throw new Error(r)}}return[i,a]}(t),n=e[0],r=e[1],o=document.createElement(null!=n?n:"div"),i=0,a=Object.keys(r);i<a.length;i++){var c=a[i],s=r[c].join(" ");"style"===c?ht(o.style,s):o.setAttribute(c,s)}return o}function ht(t,e){for(var n=0,r=e.split(";");n<r.length;n++){var o=r[n],i=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(o);if(i){var a=i[1],c=i[2],s=i[4];t.setProperty(a,c,s||"")}}}var vt=["monospace","sans-serif","serif"],pt=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function yt(t,e){return _(this,void 0,void 0,(function(){var n,r,o;return W(this,(function(i){switch(i.label){case 0:return function(t,e){t.width=240,t.height=60,e.textBaseline="alphabetic",e.fillStyle="#f60",e.fillRect(100,1,62,20),e.fillStyle="#069",e.font='11pt "Times New Roman"';var n="Cwm fjordbank gly ".concat(String.fromCharCode(55357,56835));e.fillText(n,2,15),e.fillStyle="rgba(102, 204, 0, 0.2)",e.font="18pt Arial",e.fillText(n,4,45)}(t,e),[4,j()];case 1:return i.sent(),n=gt(t),r=gt(t),n!==r?[2,["unstable","unstable"]]:(function(t,e){t.width=122,t.height=110,e.globalCompositeOperation="multiply";for(var n=0,r=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];n<r.length;n++){var o=r[n],i=o[0],a=o[1],c=o[2];e.fillStyle=i,e.beginPath(),e.arc(a,c,40,0,2*Math.PI,!0),e.closePath(),e.fill()}e.fillStyle="#f9c",e.arc(60,60,60,0,2*Math.PI,!0),e.arc(60,60,20,0,2*Math.PI,!0),e.fill("evenodd")}(t,e),[4,j()]);case 2:return i.sent(),o=gt(t),[2,[n,o]]}}))}))}function gt(t){return t.toDataURL()}var bt,wt,Lt=2500;function kt(){var t=this;return function(){if(void 0===wt){var t=function(){var e=St();xt(e)?wt=setTimeout(t,Lt):(bt=e,wt=void 0)};t()}}(),function(){return _(t,void 0,void 0,(function(){var t;return W(this,(function(e){switch(e.label){case 0:return xt(t=St())?bt?[2,M([],bt,!0)]:function(){var t=document;return t.fullscreenElement||t.msFullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||null}()?[4,ut()]:[3,2]:[3,2];case 1:e.sent(),t=St(),e.label=2;case 2:return xt(t)||(bt=t),[2,t]}}))}))}}function St(){var t=screen;return[G(E(t.availTop),null),G(E(t.width)-E(t.availWidth)-G(E(t.availLeft),0),null),G(E(t.height)-E(t.availHeight)-G(E(t.availTop),0),null),G(E(t.availLeft),null)]}function xt(t){for(var e=0;e<4;++e)if(t[e])return!1;return!0}function Vt(t){var e;return _(this,void 0,void 0,(function(){var n,r,o,i,a,c,s;return W(this,(function(u){switch(u.label){case 0:for(n=document,r=n.createElement("div"),o=new Array(t.length),i={},_t(r),s=0;s<t.length;++s)"DIALOG"===(a=mt(t[s])).tagName&&a.show(),_t(c=n.createElement("div")),c.appendChild(a),r.appendChild(c),o[s]=a;u.label=1;case 1:return n.body?[3,3]:[4,P(50)];case 2:return u.sent(),[3,1];case 3:return n.body.appendChild(r),[4,j()];case 4:u.sent();try{for(s=0;s<t.length;++s)o[s].offsetParent||(i[t[s]]=!0)}finally{null===(e=r.parentNode)||void 0===e||e.removeChild(r)}return[2,i]}}))}))}function _t(t){t.style.setProperty("visibility","hidden","important"),t.style.setProperty("display","block","important")}function Wt(t){return matchMedia("(inverted-colors: ".concat(t,")")).matches}function Mt(t){return matchMedia("(forced-colors: ".concat(t,")")).matches}function Zt(t){return matchMedia("(prefers-contrast: ".concat(t,")")).matches}function Pt(t){return matchMedia("(prefers-reduced-motion: ".concat(t,")")).matches}function jt(t){return matchMedia("(dynamic-range: ".concat(t,")")).matches}var It=Math,Rt=function(){return 0};var At={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};var Ct=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),Ft=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),Et=["FRAGMENT_SHADER","VERTEX_SHADER"],Gt=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],Ht="WEBGL_debug_renderer_info";function Yt(t){if(t.webgl)return t.webgl.context;var e,n=document.createElement("canvas");n.addEventListener("webglCreateContextError",(function(){return e=void 0}));for(var r=0,o=["webgl","experimental-webgl"];r<o.length;r++){var i=o[r];try{e=n.getContext(i)}catch(t){}if(e)break}return t.webgl={context:e},e}function Xt(t,e,n){var r=t.getShaderPrecisionFormat(t[e],t[n]);return r?[r.rangeMin,r.rangeMax,r.precision]:[]}function Ot(t){return Object.keys(t.__proto__).filter(Bt)}function Bt(t){return"string"==typeof t&&!t.match(/[^A-Z0-9_x]/)}function Nt(){return ct()}function Dt(t){return"function"==typeof t.getParameter}var Jt={fonts:function(){var t=this;return ft((function(e,n){var r=n.document;return _(t,void 0,void 0,(function(){var t,e,n,o,i,a,c,s,u,l,d;return W(this,(function(f){switch(f.label){case 0:return(t=r.body).style.fontSize="48px",(e=r.createElement("div")).style.setProperty("visibility","hidden","important"),n={},o={},i=function(t){var n=r.createElement("span"),o=n.style;return o.position="absolute",o.top="0",o.left="0",o.fontFamily=t,n.textContent="mmMwWLliI0O&1",e.appendChild(n),n},a=function(t,e){return i("'".concat(t,"',").concat(e))},c=function(){for(var t={},e=function(e){t[e]=vt.map((function(t){return a(e,t)}))},n=0,r=pt;n<r.length;n++){e(r[n])}return t},s=function(t){return vt.some((function(e,r){return t[r].offsetWidth!==n[e]||t[r].offsetHeight!==o[e]}))},u=function(){return vt.map(i)}(),l=c(),t.appendChild(e),[4,j()];case 1:for(f.sent(),d=0;d<vt.length;d++)n[vt[d]]=u[d].offsetWidth,o[vt[d]]=u[d].offsetHeight;return[2,pt.filter((function(t){return s(l[t])}))]}}))}))}))},domBlockers:function(t){var e=(void 0===t?{}:t).debug;return _(this,void 0,void 0,(function(){var t,n,r,o,i;return W(this,(function(a){switch(a.label){case 0:return ot()||lt()?(t=function(){var t=atob;return{abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',t("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",t("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",t("LnNwb25zb3JpdA=="),".ylamainos",t("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),t("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",t("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",t("LmhlYWRlci1ibG9ja2VkLWFk"),t("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",t("I2FkXzMwMFgyNTA="),t("I2Jhbm5lcmZsb2F0MjI="),t("I2NhbXBhaWduLWJhbm5lcg=="),t("I0FkLUNvbnRlbnQ=")],adGuardChinese:[t("LlppX2FkX2FfSA=="),t("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",t("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),t("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",t("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",t("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",t("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),t("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),t("LmFkZ29vZ2xl"),t("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[t("YW1wLWF1dG8tYWRz"),t("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",t("I2FkX2ludmlld19hcmVh")],adGuardRussian:[t("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),t("LnJlY2xhbWE="),'div[id^="smi2adblock"]',t("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[t("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),t("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",t("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),t("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),t("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",t("I3Jla2xhbWk="),t("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),t("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),t("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[t("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",t("LndpZGdldF9wb19hZHNfd2lkZ2V0"),t("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",t("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[t("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),t("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",t("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",t("I3Jla2xhbW5pLWJveA=="),t("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",t("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[t("I2FkdmVydGVudGll"),t("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",t("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",t("LnNwb25zb3JsaW5rZ3J1ZW4="),t("I3dlcmJ1bmdza3k="),t("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),t("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[t("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",t("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),t("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),t("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[t("LnJla2xhbW9zX3RhcnBhcw=="),t("LnJla2xhbW9zX251b3JvZG9z"),t("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),t("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),t("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[t("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[t("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),t("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",t("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[t("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),t("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),t("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",t("LmFkX19tYWlu"),t("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[t("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[t("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),t("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[t("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),t("I2xpdmVyZUFkV3JhcHBlcg=="),t("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),t("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[t("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",t("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),t("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),t("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[t("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),t("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),t("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",t("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),t("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),t("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),t("ZGl2I3NrYXBpZWNfYWQ=")],ro:[t("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),t("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),t("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),t("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[t("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),t("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),t("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",t("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),t("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",t("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]}}(),n=Object.keys(t),[4,Vt((i=[]).concat.apply(i,n.map((function(e){return t[e]}))))]):[2,void 0];case 1:return r=a.sent(),e&&function(t,e){for(var n="DOM blockers debug:\n```",r=0,o=Object.keys(t);r<o.length;r++){var i=o[r];n+="\n".concat(i,":");for(var a=0,c=t[i];a<c.length;a++){var s=c[a];n+="\n ".concat(e[s]?"🚫":"➡️"," ").concat(s)}}console.log("".concat(n,"\n```"))}(t,r),(o=n.filter((function(e){var n=t[e];return H(n.map((function(t){return r[t]})))>.6*n.length}))).sort(),[2,o]}}))}))},fontPreferences:function(){return t=function(t,e){for(var n={},r={},o=0,i=Object.keys(At);o<i.length;o++){var a=i[o],c=At[a],s=c[0],u=void 0===s?{}:s,l=c[1],d=void 0===l?"mmMwWLliI0fiflO&1":l,f=t.createElement("span");f.textContent=d,f.style.whiteSpace="nowrap";for(var m=0,h=Object.keys(u);m<h.length;m++){var v=h[m],p=u[v];void 0!==p&&(f.style[v]=p)}n[a]=f,e.appendChild(t.createElement("br")),e.appendChild(f)}for(var y=0,g=Object.keys(At);y<g.length;y++)r[a=g[y]]=n[a].getBoundingClientRect().width;return r},void 0===e&&(e=4e3),ft((function(n,r){var o=r.document,i=o.body,a=i.style;a.width="".concat(e,"px"),a.webkitTextSizeAdjust=a.textSizeAdjust="none",rt()?i.style.zoom="".concat(1/r.devicePixelRatio):ot()&&(i.style.zoom="reset");var c=o.createElement("div");return c.textContent=M([],Array(e/20<<0),!0).map((function(){return"word"})).join(" "),i.appendChild(c),t(o,i)}),'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">');var t,e},audio:function(){return ot()&&st()&&at()?-4:function(){var t=window,e=t.OfflineAudioContext||t.webkitOfflineAudioContext;if(!e)return-2;if(ot()&&!it()&&!function(){var t=window;return H(["DOMRectList"in t,"RTCPeerConnectionIceEvent"in t,"SVGGeometryElement"in t,"ontransitioncancel"in t])>=3}())return-1;var n=4500,r=5e3,o=new e(1,r,44100),i=o.createOscillator();i.type="triangle",i.frequency.value=1e4;var a=o.createDynamicsCompressor();a.threshold.value=-50,a.knee.value=40,a.ratio.value=12,a.attack.value=0,a.release.value=.25,i.connect(a),a.connect(o.destination),i.start(0);var c=function(t){var e=3,n=500,r=500,o=5e3,i=function(){},a=new Promise((function(a,c){var s=!1,u=0,l=0;t.oncomplete=function(t){return a(t.renderedBuffer)};var d=function(){setTimeout((function(){return c(dt("timeout"))}),Math.min(r,l+o-Date.now()))},f=function(){try{var r=t.startRendering();switch(I(r)&&C(r),t.state){case"running":l=Date.now(),s&&d();break;case"suspended":document.hidden||u++,s&&u>=e?c(dt("suspended")):setTimeout(f,n)}}catch(t){c(t)}};f(),i=function(){s||(s=!0,l>0&&d())}}));return[a,i]}(o),s=c[0],u=c[1],l=s.then((function(t){return function(t){for(var e=0,n=0;n<t.length;++n)e+=Math.abs(t[n]);return e}(t.getChannelData(0).subarray(n))}),(function(t){if("timeout"===t.name||"suspended"===t.name)return-3;throw t}));return C(l),function(){return u(),l}}()},screenFrame:function(){var t=this;if(ot()&&st()&&at())return function(){return Promise.resolve(void 0)};var e=kt();return function(){return _(t,void 0,void 0,(function(){var t,n;return W(this,(function(r){switch(r.label){case 0:return[4,e()];case 1:return t=r.sent(),n=function(t){return null===t?null:Y(t,10)},[2,[n(t[0]),n(t[1]),n(t[2]),n(t[3])]]}}))}))}},canvas:function(){return function(t){return _(this,void 0,void 0,(function(){var e,n,r,o,i,a,c;return W(this,(function(s){switch(s.label){case 0:return e=!1,o=function(){var t=document.createElement("canvas");return t.width=1,t.height=1,[t,t.getContext("2d")]}(),i=o[0],a=o[1],function(t,e){return!(!e||!t.toDataURL)}(i,a)?[3,1]:(n=r="unsupported",[3,4]);case 1:return e=function(t){return t.rect(0,0,10,10),t.rect(2,2,6,6),!t.isPointInPath(5,5,"evenodd")}(a),t?(n=r="skipped",[3,4]):[3,2];case 2:return[4,yt(i,a)];case 3:c=s.sent(),n=c[0],r=c[1],s.label=4;case 4:return[2,{winding:e,geometry:n,text:r}]}}))}))}(ot()&&st()&&at())},osCpu:function(){return navigator.oscpu},languages:function(){var t=navigator,e=[],n=t.language||t.userLanguage||t.browserLanguage||t.systemLanguage;if(void 0!==n&&e.push([n]),Array.isArray(t.languages))rt()&&function(){var t=window;return H([!("MediaSettingsRange"in t),"RTCEncodedAudioFrame"in t,""+t.Intl=="[object Intl]",""+t.Reflect=="[object Reflect]"])>=3}()||e.push(t.languages);else if("string"==typeof t.languages){var r=t.languages;r&&e.push(r.split(","))}return e},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return G(E(navigator.deviceMemory),void 0)},screenResolution:function(){if(!(ot()&&st()&&at()))return function(){var t=screen,e=function(t){return G(F(t),null)},n=[e(t.width),e(t.height)];return n.sort().reverse(),n}()},hardwareConcurrency:function(){return G(F(navigator.hardwareConcurrency),void 0)},timezone:function(){var t,e=null===(t=window.Intl)||void 0===t?void 0:t.DateTimeFormat;if(e){var n=(new e).resolvedOptions().timeZone;if(n)return n}var r=-function(){var t=(new Date).getFullYear();return Math.max(E(new Date(t,0,1).getTimezoneOffset()),E(new Date(t,6,1).getTimezoneOffset()))}();return"UTC".concat(r>=0?"+":"").concat(Math.abs(r))},sessionStorage:function(){try{return!!window.sessionStorage}catch(t){return!0}},localStorage:function(){try{return!!window.localStorage}catch(t){return!0}},indexedDB:function(){if(!(nt()||(t=window,e=navigator,H(["msWriteProfilerMark"in t,"MSStream"in t,"msLaunchUri"in e,"msSaveBlob"in e])>=3&&!nt())))try{return!!window.indexedDB}catch(t){return!0}var t,e},openDatabase:function(){return!!window.openDatabase},cpuClass:function(){return navigator.cpuClass},platform:function(){var t=navigator.platform;return"MacIntel"===t&&ot()&&!it()?function(){if("iPad"===navigator.platform)return!0;var t=screen,e=t.width/t.height;return H(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,e>.65&&e<1.53])>=2}()?"iPad":"iPhone":t},plugins:function(){var t=navigator.plugins;if(t){for(var e=[],n=0;n<t.length;++n){var r=t[n];if(r){for(var o=[],i=0;i<r.length;++i){var a=r[i];o.push({type:a.type,suffixes:a.suffixes})}e.push({name:r.name,description:r.description,mimeTypes:o})}}return e}},touchSupport:function(){var t,e=navigator,n=0;void 0!==e.maxTouchPoints?n=F(e.maxTouchPoints):void 0!==e.msMaxTouchPoints&&(n=e.msMaxTouchPoints);try{document.createEvent("TouchEvent"),t=!0}catch(e){t=!1}return{maxTouchPoints:n,touchEvent:t,touchStart:"ontouchstart"in window}},vendor:function(){return navigator.vendor||""},vendorFlavors:function(){for(var t=[],e=0,n=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];e<n.length;e++){var r=n[e],o=window[r];o&&"object"==typeof o&&t.push(r)}return t.sort()},cookiesEnabled:function(){var t=document;try{t.cookie="cookietest=1; SameSite=Strict;";var e=-1!==t.cookie.indexOf("cookietest=");return t.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",e}catch(t){return!1}},colorGamut:function(){for(var t=0,e=["rec2020","p3","srgb"];t<e.length;t++){var n=e[t];if(matchMedia("(color-gamut: ".concat(n,")")).matches)return n}},invertedColors:function(){return!!Wt("inverted")||!Wt("none")&&void 0},forcedColors:function(){return!!Mt("active")||!Mt("none")&&void 0},monochrome:function(){if(matchMedia("(min-monochrome: 0)").matches){for(var t=0;t<=100;++t)if(matchMedia("(max-monochrome: ".concat(t,")")).matches)return t;throw new Error("Too high value")}},contrast:function(){return Zt("no-preference")?0:Zt("high")||Zt("more")?1:Zt("low")||Zt("less")?-1:Zt("forced")?10:void 0},reducedMotion:function(){return!!Pt("reduce")||!Pt("no-preference")&&void 0},hdr:function(){return!!jt("high")||!jt("standard")&&void 0},math:function(){var t,e=It.acos||Rt,n=It.acosh||Rt,r=It.asin||Rt,o=It.asinh||Rt,i=It.atanh||Rt,a=It.atan||Rt,c=It.sin||Rt,s=It.sinh||Rt,u=It.cos||Rt,l=It.cosh||Rt,d=It.tan||Rt,f=It.tanh||Rt,m=It.exp||Rt,h=It.expm1||Rt,v=It.log1p||Rt;return{acos:e(.12312423423423424),acosh:n(1e308),acoshPf:(t=1e154,It.log(t+It.sqrt(t*t-1))),asin:r(.12312423423423424),asinh:o(1),asinhPf:function(t){return It.log(t+It.sqrt(t*t+1))}(1),atanh:i(.5),atanhPf:function(t){return It.log((1+t)/(1-t))/2}(.5),atan:a(.5),sin:c(-1e300),sinh:s(1),sinhPf:function(t){return It.exp(t)-1/It.exp(t)/2}(1),cos:u(10.000000000123),cosh:l(1),coshPf:function(t){return(It.exp(t)+1/It.exp(t))/2}(1),tan:d(-1e300),tanh:f(1),tanhPf:function(t){return(It.exp(2*t)-1)/(It.exp(2*t)+1)}(1),exp:m(1),expm1:h(1),expm1Pf:function(t){return It.exp(t)-1}(1),log1p:v(10),log1pPf:function(t){return It.log(1+t)}(10),powPI:function(t){return It.pow(It.PI,t)}(-100)}},pdfViewerEnabled:function(){return navigator.pdfViewerEnabled},architecture:function(){var t=new Float32Array(1),e=new Uint8Array(t.buffer);return t[0]=1/0,t[0]=t[0]-t[0],e[3]},applePay:function(){var t=window.ApplePaySession;if("function"!=typeof(null==t?void 0:t.canMakePayments))return-1;try{return t.canMakePayments()?1:0}catch(t){return function(t){if(t instanceof Error){if("InvalidAccessError"===t.name){if(/\bfrom\b.*\binsecure\b/i.test(t.message))return-2;if(/\bdifferent\b.*\borigin\b.*top.level\b.*\bframe\b/i.test(t.message))return-3}if("SecurityError"===t.name&&/\bthird.party iframes?.*\bnot.allowed\b/i.test(t.message))return-3}throw t}(t)}},privateClickMeasurement:function(){var t,e=document.createElement("a"),n=null!==(t=e.attributionSourceId)&&void 0!==t?t:e.attributionsourceid;return void 0===n?void 0:String(n)},webGlBasics:function(t){var e,n,r,o,i,a,c=Yt(t.cache);if(!c)return-1;if(!Dt(c))return-2;var s=Nt()?null:c.getExtension(Ht);return{version:(null===(e=c.getParameter(c.VERSION))||void 0===e?void 0:e.toString())||"",vendor:(null===(n=c.getParameter(c.VENDOR))||void 0===n?void 0:n.toString())||"",vendorUnmasked:s?null===(r=c.getParameter(s.UNMASKED_VENDOR_WEBGL))||void 0===r?void 0:r.toString():"",renderer:(null===(o=c.getParameter(c.RENDERER))||void 0===o?void 0:o.toString())||"",rendererUnmasked:s?null===(i=c.getParameter(s.UNMASKED_RENDERER_WEBGL))||void 0===i?void 0:i.toString():"",shadingLanguageVersion:(null===(a=c.getParameter(c.SHADING_LANGUAGE_VERSION))||void 0===a?void 0:a.toString())||""}},webGlExtensions:function(t){var e=Yt(t.cache);if(!e)return-1;if(!Dt(e))return-2;var n=e.getSupportedExtensions(),r=e.getContextAttributes(),o=[],i=[],a=[],c=[];if(r)for(var s=0,u=Object.keys(r);s<u.length;s++){var l=u[s];o.push("".concat(l,"=").concat(r[l]))}for(var d=0,f=Ot(e);d<f.length;d++){var m=e[w=f[d]];i.push("".concat(w,"=").concat(m).concat(Ct.has(m)?"=".concat(e.getParameter(m)):""))}if(n)for(var h=0,v=n;h<v.length;h++){var p=v[h];if(p!==Ht||!Nt()){var y=e.getExtension(p);if(y)for(var g=0,b=Ot(y);g<b.length;g++){var w;m=y[w=b[g]];a.push("".concat(w,"=").concat(m).concat(Ft.has(m)?"=".concat(e.getParameter(m)):""))}}}for(var L=0,k=Et;L<k.length;L++)for(var S=k[L],x=0,V=Gt;x<V.length;x++){var _=V[x],W=Xt(e,S,_);c.push("".concat(S,".").concat(_,"=").concat(W.join(",")))}return a.sort(),i.sort(),{contextAttributes:o,parameters:i,shaderPrecisions:c,extensions:n,extensionParameters:a}}};var Tt="$ if upgrade to Pro: https://fpjs.dev/pro";function zt(t){var e=function(t){if(lt())return.4;if(ot())return!it()||st()&&at()?.3:.5;var e="value"in t.platform?t.platform.value:"";return/^Win/.test(e)?.6:/^Mac/.test(e)?.5:.7}(t),n=function(t){return Y(.99+.01*t,1e-4)}(e);return{score:e,comment:Tt.replace(/\$/g,"".concat(n))}}function Ut(t){return JSON.stringify(t,(function(t,e){return e instanceof Error?function(t){var e;return V({name:t.name,message:t.message,stack:null===(e=t.stack)||void 0===e?void 0:e.split("\n")},t)}(e):e}),2)}function Qt(t){return tt(function(t){for(var e="",n=0,r=Object.keys(t).sort();n<r.length;n++){var o=r[n],i=t[o],a="error"in i?"error":JSON.stringify(i.value);e+="".concat(e?"|":"").concat(o.replace(/([:|\\])/g,"\\$1"),":").concat(a)}return e}(t))}function Kt(t){return void 0===t&&(t=50),function(t,e){void 0===e&&(e=1/0);var n=window.requestIdleCallback;return n?new Promise((function(t){return n.call(window,(function(){return t()}),{timeout:e})})):P(Math.min(t,e))}(t,2*t)}function $t(t,e){var n=Date.now();return{get:function(r){return _(this,void 0,void 0,(function(){var o,i,a;return W(this,(function(c){switch(c.label){case 0:return o=Date.now(),[4,t()];case 1:return i=c.sent(),a=function(t){var e;return{get visitorId(){return void 0===e&&(e=Qt(this.components)),e},set visitorId(t){e=t},confidence:zt(t),components:t,version:Z}}(i),(e||null!=r&&r.debug)&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(a.version,"\nuserAgent: ").concat(navigator.userAgent,"\ntimeBetweenLoadAndGet: ").concat(o-n,"\nvisitorId: ").concat(a.visitorId,"\ncomponents: ").concat(Ut(i),"\n```")),[2,a]}}))}))}}}var qt={load:function(t){var e;return void 0===t&&(t={}),_(this,void 0,void 0,(function(){var n,r,o;return W(this,(function(i){switch(i.label){case 0:return(!(null!==(e=t.monitoring)&&void 0!==e)||e)&&function(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var t=new XMLHttpRequest;t.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(Z,"/npm-monitoring"),!0),t.send()}catch(t){console.error(t)}}(),n=t.delayFallback,r=t.debug,[4,Kt(n)];case 1:return i.sent(),o=function(t){return et(Jt,t,[])}({cache:{},debug:r}),[2,$t(o,r)]}}))}))},hashComponents:Qt,componentsToDebugString:Ut};const te="bn_cookieId";class ee{constructor(t=!0){this.storage=t?localStorage:sessionStorage}set(t,e){this.storage.setItem(t,JSON.stringify(e))}get(t){const e=this.storage.getItem(t);if(e)return JSON.parse(e)}remove(t){return this.storage.removeItem(t)}clear(){this.storage.clear()}}var ne={exports:{}};
|
|
2
|
+
/*!
|
|
3
|
+
* md5js v1.0.7
|
|
4
|
+
* (c) 2017-2018 penyuying
|
|
5
|
+
* Released under the MIT License.
|
|
6
|
+
*/!function(t){t.md5=function(t,e){function n(t,e){return t<<e|t>>>32-e}function r(t,e){var n,r,o,i,a;return o=2147483648&t,i=2147483648&e,a=(1073741823&t)+(1073741823&e),(n=1073741824&t)&(r=1073741824&e)?2147483648^a^o^i:n|r?1073741824&a?3221225472^a^o^i:1073741824^a^o^i:a^o^i}function o(t,e,o,i,a,c,s){return t=r(t,r(r((u=e)&o|~u&i,a),s)),r(n(t,c),e);var u}function i(t,e,o,i,a,c,s){return t=r(t,r(r(e&(u=i)|o&~u,a),s)),r(n(t,c),e);var u}function a(t,e,o,i,a,c,s){return t=r(t,r(r(e^o^i,a),s)),r(n(t,c),e)}function c(t,e,o,i,a,c,s){return t=r(t,r(r(o^(e|~i),a),s)),r(n(t,c),e)}function s(t){var e,n="",r="";for(e=0;e<=3;e++)n+=(r="0"+(t>>>8*e&255).toString(16)).substr(r.length-2,2);return n}var u,l,d,f,m,h,v,p,y,g=t,b=Array();for(b=function(t){for(var e,n=t.length,r=n+8,o=16*((r-r%64)/64+1),i=Array(o-1),a=0,c=0;c<n;)a=c%4*8,i[e=(c-c%4)/4]=i[e]|t.charCodeAt(c)<<a,c++;return a=c%4*8,i[e=(c-c%4)/4]=i[e]|128<<a,i[o-2]=n<<3,i[o-1]=n>>>29,i}(g),h=1732584193,v=4023233417,p=2562383102,y=271733878,u=0;u<b.length;u+=16)l=h,d=v,f=p,m=y,v=c(v=c(v=c(v=c(v=a(v=a(v=a(v=a(v=i(v=i(v=i(v=i(v=o(v=o(v=o(v=o(v,p=o(p,y=o(y,h=o(h,v,p,y,b[u+0],7,3614090360),v,p,b[u+1],12,3905402710),h,v,b[u+2],17,606105819),y,h,b[u+3],22,3250441966),p=o(p,y=o(y,h=o(h,v,p,y,b[u+4],7,4118548399),v,p,b[u+5],12,1200080426),h,v,b[u+6],17,2821735955),y,h,b[u+7],22,4249261313),p=o(p,y=o(y,h=o(h,v,p,y,b[u+8],7,1770035416),v,p,b[u+9],12,2336552879),h,v,b[u+10],17,4294925233),y,h,b[u+11],22,2304563134),p=o(p,y=o(y,h=o(h,v,p,y,b[u+12],7,1804603682),v,p,b[u+13],12,4254626195),h,v,b[u+14],17,2792965006),y,h,b[u+15],22,1236535329),p=i(p,y=i(y,h=i(h,v,p,y,b[u+1],5,4129170786),v,p,b[u+6],9,3225465664),h,v,b[u+11],14,643717713),y,h,b[u+0],20,3921069994),p=i(p,y=i(y,h=i(h,v,p,y,b[u+5],5,3593408605),v,p,b[u+10],9,38016083),h,v,b[u+15],14,3634488961),y,h,b[u+4],20,3889429448),p=i(p,y=i(y,h=i(h,v,p,y,b[u+9],5,568446438),v,p,b[u+14],9,3275163606),h,v,b[u+3],14,4107603335),y,h,b[u+8],20,1163531501),p=i(p,y=i(y,h=i(h,v,p,y,b[u+13],5,2850285829),v,p,b[u+2],9,4243563512),h,v,b[u+7],14,1735328473),y,h,b[u+12],20,2368359562),p=a(p,y=a(y,h=a(h,v,p,y,b[u+5],4,4294588738),v,p,b[u+8],11,2272392833),h,v,b[u+11],16,1839030562),y,h,b[u+14],23,4259657740),p=a(p,y=a(y,h=a(h,v,p,y,b[u+1],4,2763975236),v,p,b[u+4],11,1272893353),h,v,b[u+7],16,4139469664),y,h,b[u+10],23,3200236656),p=a(p,y=a(y,h=a(h,v,p,y,b[u+13],4,681279174),v,p,b[u+0],11,3936430074),h,v,b[u+3],16,3572445317),y,h,b[u+6],23,76029189),p=a(p,y=a(y,h=a(h,v,p,y,b[u+9],4,3654602809),v,p,b[u+12],11,3873151461),h,v,b[u+15],16,530742520),y,h,b[u+2],23,3299628645),p=c(p,y=c(y,h=c(h,v,p,y,b[u+0],6,4096336452),v,p,b[u+7],10,1126891415),h,v,b[u+14],15,2878612391),y,h,b[u+5],21,4237533241),p=c(p,y=c(y,h=c(h,v,p,y,b[u+12],6,1700485571),v,p,b[u+3],10,2399980690),h,v,b[u+10],15,4293915773),y,h,b[u+1],21,2240044497),p=c(p,y=c(y,h=c(h,v,p,y,b[u+8],6,1873313359),v,p,b[u+15],10,4264355552),h,v,b[u+6],15,2734768916),y,h,b[u+13],21,1309151649),p=c(p,y=c(y,h=c(h,v,p,y,b[u+4],6,4149444226),v,p,b[u+11],10,3174756917),h,v,b[u+2],15,718787259),y,h,b[u+9],21,3951481745),h=r(h,l),v=r(v,d),p=r(p,f),y=r(y,m);return 32==e?s(h)+s(v)+s(p)+s(y):s(v)+s(p)},Object.defineProperty(t,"__esModule",{value:!0})}(ne.exports);var re=ne.exports;const oe=t=>i(void 0,null,(function*(){const e=t||function(){};try{qt.load().then((t=>t.get())).then((t=>i(void 0,null,(function*(){e(t)})))).catch((t=>{e(t)}))}catch(t){e(t)}})),ie=()=>Math.floor(window.screen.width*window.devicePixelRatio),ae=()=>Math.floor(window.screen.height*window.devicePixelRatio);let ce={appKey:"",appSecret:"",projectId:""},se="",ue=!0;const le=(t,e)=>new Promise(((n,r)=>{try{const{appKey:o,appSecret:a,projectId:s}=ce||{};if(""===o||!o||""===a||!a||""===s||!s)throw new Error("Please call the init method first");if(!t||""===t)throw new Error("Event name cannot be empty");(t=>{const e=t||function(){};try{const t=new ee(!1);let n=t.get(te);""!==n&&n?e(n):oe((r=>i(void 0,null,(function*(){const{visitorId:o,components:i}=r||{},{fonts:a,videoCard:s}=i||{},u=a&&a.value.join(",")||"",l=re.md5(u,32),d=navigator.language,f=ie(),m=ae(),h=s&&JSON.stringify(s.value)||"",v=yield c({url:"/ecl/bs/check",params:{bfp:o,font:l,language:d,screen_width:f,screen_height:m,video_card:h}}),{code:p,data:y}=v||{};200===p&&y&&(n=y.cookie_id,t.set(te,n)),e(n)}))))}catch(t){e("1")}})((o=>i(void 0,null,(function*(){const u=ie(),l=ae(),d=(new Date).valueOf(),f=d.toString(),m=x(`${s}_${f}_${d}_${a}`).toString(),h=(()=>{const t=navigator.userAgent.toLowerCase();let e="Android";return/android/.test(t)?e="Android":/iphone|ipad|ipod/.test(t)?e="iOS":/win/.test(t)?e="Windows":/mac/.test(t)?e="macOS":/linux/.test(t)&&(e="Linux"),e})(),v=yield i(void 0,null,(function*(){const t=navigator.userAgent.toLowerCase();let e="";try{if(/android/.test(t))if(navigator.userAgent.indexOf("(Linux; Android 10; K)")>-1&&navigator.userAgentData){const t=yield navigator.userAgentData.getHighEntropyValues(["platformVersion","model"]);e=t&&t.platformVersion}else e=t.match(/android\s([0-9.]+)/)[1];else/iphone|ipad|ipod/.test(t)?e=t.match(/os\s([\d_]+)/)[1].replace(/_/g,"."):/win/.test(t)?e=t.match(/windows\snt\s([\d.]+)/)[1]:/mac/.test(t)?e=t.match(/os x\s([\d_]+)/)[1].replace(/_/g,"."):/linux/.test(t)&&(e="Unknown")}catch(t){console.error(t)}return e})),p=yield i(void 0,null,(function*(){const t=navigator.userAgent;let e="Windows";try{if(t.includes("iPhone"))e="iPhone";else if(t.includes("iPad"))e="iPad";else if(t.includes("Android"))if(t.indexOf("(Linux; Android 10; K)")>-1&&navigator.userAgentData){const t=yield navigator.userAgentData.getHighEntropyValues(["platformVersion","model"]);e=t&&t.model||"Windows"}else if(t.includes("Build")){const n=t.match(/Android.*; ?(.*(?= Build))/);n&&n.length>1&&(e=n[1])}else if(t.includes("wv")){const n=t.match(/Android.*; ?(.*(?= wv))/);if(n&&n.length>0){const t=n[0].split(";");t&&t.length>1&&(e=t[1])}}else{const n=t.match(/Android.*; ([^)]+)/);n&&n.length>1&&(e=n[1])}else t.includes("Mac")&&(e="Mac")}catch(t){e="Windows"}return e})),y=yield new Promise(((t,e)=>{try{const e=new RTCPeerConnection;e.createDataChannel(""),e.onicecandidate=function(n){if(!n.candidate)throw new Error("IP acquisition failed");{const r=n.candidate.candidate,o=/(?:[0-9]{1,3}\.){3}[0-9]{1,3}/.exec(r),i=o?o[0]:null;t(i),e.close()}},e.createOffer().then((t=>e.setLocalDescription(t))).catch((()=>{throw new Error("IP acquisition failed")}))}catch(t){e()}})),g=(navigator.language||navigator.userLanguage).substring(3).toUpperCase(),b=(navigator.language||navigator.userLanguage).substring(0,2).toLowerCase();let w=[];e&&e.constructor===Array&&(w=e.map((t=>{const e={};return Object.keys(t).forEach((n=>{const r=t[n];e[n]="string"!=typeof r?String(r):r})),e})));const L=yield c({url:"/v2/event",params:{project:s,request_id:f,timestamp:d,msg_signature:m,event:t,user_data:{native_msg:"",os:h,os_version:v,device_model:p,device_id:o,user_id:se,country:g,language:b,screen_width:u,screen_height:l,ip:y||""},custom_data:w}}),{code:k,data:S,msg:V}=L||{};if(200!==k||!S)throw r(V),new Error(V);{let t="";const e=S.link_data||[];for(let n=0;n<e.length;n++)if("$campaign_url"===e[n].key){t=decodeURIComponent(e[n].value||"");break}ue&&""!==t&&(window.location.href=t),n(t)}}))))}catch(t){r(t)}})),de={init:(t,e)=>new Promise(((n,r)=>{const o=e||function(){};try{const{appKey:e,appSecret:r,projectId:i,uid:c,jump:s=!0,dev:u=!1}=t||{};if(!e||""===e)throw new Error("Missing appKey parameter");if(!r||""===r)throw new Error("Missing appSecret parameter");if(!i||""===i)throw new Error("Missing projectId parameter");console.log("dev",u),u&&(t=>{t&&(a="https://test.allapp.link")})(u),se=c,ue=s,ce=t||{};const l={state:"success"};n(l),o(l)}catch(t){const e={state:"fail",msg:t};r(t),o(e)}})),setIdentity:(t,e)=>new Promise(((n,r)=>{try{se=t,n(),e&&e()}catch(t){r(t)}})),install:t=>new Promise(((e,n)=>{le("install").then((n=>{e(n),t&&t(n)})).catch((t=>{n(t)}))})),open:t=>new Promise(((e,n)=>{le("open").then((n=>{e(n),t&&t(n)})).catch((t=>{n(t)}))})),customEvent:(t,e)=>new Promise(((n,r)=>{try{let o=[],i="";if("string"==typeof t?i=t:t&&(i=t.event||"",o=t.customData||[]),!i||""===i)throw new Error("Event name cannot be empty");le(i,o).then((t=>{n(t),e&&e(t)})).catch((t=>{r(t)}))}catch(t){r(t)}}))};export{de as default};
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
// SDK initialization parameter type
|
|
2
|
+
export declare interface initParam {
|
|
3
|
+
appKey: string //appKey
|
|
4
|
+
appSecret: string //appSecret
|
|
5
|
+
projectId: string //projectId
|
|
6
|
+
uid?: string | number //userId
|
|
7
|
+
jump?: boolean //Whether the report will jump automatically if successful
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
//Custom event request parameter type
|
|
11
|
+
export declare interface customEventParam {
|
|
12
|
+
event: string //Event name
|
|
13
|
+
customData?: CustomDataModel[] //Custom parameters
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
//Custom parameter type
|
|
17
|
+
export declare interface CustomDataModel {
|
|
18
|
+
key: string
|
|
19
|
+
value: string
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
//SDk initialization state
|
|
23
|
+
export declare type InitState = "success" | "fail";
|
|
24
|
+
|
|
25
|
+
export declare interface InitCBData {
|
|
26
|
+
state: InitState //State
|
|
27
|
+
msg: any //Prompt message
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
//SDk initialization callback type
|
|
31
|
+
export declare type InitCallBackModel = (data: InitCBData) => void
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
//Installation event callback type: url => gameplay link
|
|
35
|
+
export declare type InstallCallBackModel = (url: string | null | undefined) => void
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* SDK initialization (this method needs to be called before event reporting)
|
|
39
|
+
* @param param Initialization parameter type
|
|
40
|
+
* @param callback
|
|
41
|
+
*/
|
|
42
|
+
export declare function init<T>(param: initParam, callback?: InstallCallBackModel): Promise<T>
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Set up user
|
|
47
|
+
* @param uid User id
|
|
48
|
+
* @param callback
|
|
49
|
+
*/
|
|
50
|
+
export declare function setIdentity<T>(uid: string | number, callback?: () => void): Promise<T>
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Installation event reporting
|
|
54
|
+
* @param callback
|
|
55
|
+
*/
|
|
56
|
+
export declare function install<T>(callback?: InstallCallBackModel): Promise<T>
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Open incident reporting
|
|
60
|
+
* @param callback
|
|
61
|
+
*/
|
|
62
|
+
export declare function open<T>(callback?: () => void): Promise<T>
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Custom event reporting
|
|
66
|
+
* @param param Event name | Custom event request parameters
|
|
67
|
+
* @param callback
|
|
68
|
+
*/
|
|
69
|
+
export declare function customEvent<T>(param: string | customEventParam, callback?: () => void): Promise<T>
|
package/package.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "turbolink-ai",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "dist/index.cjs.js",
|
|
6
|
+
"module": "dist/index.es.js",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"types": "index.d.ts",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
11
|
+
"build": "vite build"
|
|
12
|
+
},
|
|
13
|
+
"author": "",
|
|
14
|
+
"license": "ISC",
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"@babel/plugin-transform-modules-commonjs": "^7.23.3",
|
|
17
|
+
"@fingerprintjs/fingerprintjs": "^4.1.0",
|
|
18
|
+
"crypto-js": "^4.2.0",
|
|
19
|
+
"eslint": "^8.53.0",
|
|
20
|
+
"md5js": "^1.0.7",
|
|
21
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
22
|
+
"vite": "^4.5.0"
|
|
23
|
+
}
|
|
24
|
+
}
|