diff --git a/.changeset/update-protect-callback.md b/.changeset/update-protect-callback.md new file mode 100644 index 00000000..84d716df --- /dev/null +++ b/.changeset/update-protect-callback.md @@ -0,0 +1,6 @@ +--- +'@forgerock/javascript-sdk': minor +'@forgerock/ping-protect': minor +--- + +fix(protect): update Protect callback with new Signals SDK config diff --git a/packages/javascript-sdk/src/fr-auth/callbacks/ping-protect-initialize-callback.test.ts b/packages/javascript-sdk/src/fr-auth/callbacks/ping-protect-initialize-callback.test.ts index c4816f27..7a45d3d9 100644 --- a/packages/javascript-sdk/src/fr-auth/callbacks/ping-protect-initialize-callback.test.ts +++ b/packages/javascript-sdk/src/fr-auth/callbacks/ping-protect-initialize-callback.test.ts @@ -3,7 +3,7 @@ * * ping-protect-intitialize-callback.test.ts * - * Copyright (c) 2024 - 2025 Ping Identity Corporation. All rights reserved. + * Copyright (c) 2024 - 2026 Ping Identity Corporation. All rights reserved. * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ @@ -186,6 +186,80 @@ describe('PingOneProtectInitializeCallback', () => { }); }); + it('should return signalsInitializationOptions directly when valid', () => { + const signalsInitializationOptions = { + agentIdentification: 'false', + htmlGeoLocation: 'true', + behavioralDataCollection: 'true', + universalDeviceIdentification: 'false', + option1: 'value1', + disableTags: 'false', + }; + + const callback = new PingOneProtectInitializeCallback({ + type: 'PingOneProtectInitializeCallback' as CallbackType, + input: [], + output: [ + { + name: 'signalsInitializationOptions', + value: signalsInitializationOptions, + }, + { + name: 'envId', + value: 'legacy-env-id-that-should-be-ignored', + }, + ], + }); + + const config = callback.getConfig(); + expect(config).toEqual(signalsInitializationOptions); + expect(config).not.toHaveProperty('envId'); + }); + + it('should fallback to legacy config when signalsInitializationOptions is invalid', () => { + const callback = new PingOneProtectInitializeCallback({ + type: 'PingOneProtectInitializeCallback' as CallbackType, + input: [], + output: [ + { + name: 'signalsInitializationOptions', + value: [], + }, + { + name: 'envId', + value: '02fb4743-189a-4bc7-9d6c-a919edfe6447', + }, + ], + }); + + const config = callback.getConfig(); + expect(config).toMatchObject({ + envId: '02fb4743-189a-4bc7-9d6c-a919edfe6447', + behavioralDataCollection: true, + disableTags: false, + }); + }); + + it('should fallback to legacy config when signalsInitializationOptions is missing', () => { + const callback = new PingOneProtectInitializeCallback({ + type: 'PingOneProtectInitializeCallback' as CallbackType, + input: [], + output: [ + { + name: 'envId', + value: '02fb4743-189a-4bc7-9d6c-a919edfe6447', + }, + ], + }); + + const config = callback.getConfig(); + expect(config).toMatchObject({ + envId: '02fb4743-189a-4bc7-9d6c-a919edfe6447', + behavioralDataCollection: true, + disableTags: false, + }); + }); + it('should test the setClientError method', () => { const callback = new PingOneProtectInitializeCallback({ type: 'PingOneProtectInitializeCallback' as CallbackType, diff --git a/packages/javascript-sdk/src/fr-auth/callbacks/ping-protect-initialize-callback.ts b/packages/javascript-sdk/src/fr-auth/callbacks/ping-protect-initialize-callback.ts index 981f28bd..6d14c2bd 100644 --- a/packages/javascript-sdk/src/fr-auth/callbacks/ping-protect-initialize-callback.ts +++ b/packages/javascript-sdk/src/fr-auth/callbacks/ping-protect-initialize-callback.ts @@ -3,7 +3,7 @@ * * ping-protect-initialize-callback.ts * - * Copyright (c) 2024 - 2025 Ping Identity Corporation. All rights reserved. + * Copyright (c) 2024 - 2026 Ping Identity Corporation. All rights reserved. * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ @@ -26,6 +26,18 @@ class PingOneProtectInitializeCallback extends FRCallback { * Get callback's initialization config settings */ public getConfig() { + const signalsInitializationOptions = this.getOutputByName | undefined>( + 'signalsInitializationOptions', + undefined, + ); + if ( + signalsInitializationOptions !== null && + typeof signalsInitializationOptions === 'object' && + !Array.isArray(signalsInitializationOptions) + ) { + return signalsInitializationOptions; + } + const agentIdentification = this.getOutputByName( 'agentIdentification', undefined, diff --git a/packages/ping-protect/src/lib/ping-protect.test.ts b/packages/ping-protect/src/lib/ping-protect.test.ts index bbdc74ad..cc4f5c31 100644 --- a/packages/ping-protect/src/lib/ping-protect.test.ts +++ b/packages/ping-protect/src/lib/ping-protect.test.ts @@ -1,6 +1,6 @@ /** * - * Copyright (c) 2024 - 2025 Ping Identity Corporation. All right reserved. + * Copyright (c) 2024 - 2026 Ping Identity Corporation. All right reserved. * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. @@ -41,6 +41,22 @@ describe('PIProtect', () => { await PIProtect.start(config); expect(protectMock).toHaveBeenCalledWith(config); }); + it('should resume behavioralData when behavioralDataCollection is string true', async () => { + await PIProtect.start({ envId: '12345', behavioralDataCollection: false }); + const resumeSpy = vi.spyOn(window._pingOneSignals, 'resumeBehavioralData'); + + await PIProtect.start({ envId: '12345', behavioralDataCollection: 'true' }); + + expect(resumeSpy).toHaveBeenCalledTimes(1); + }); + it('should not resume behavioralData when behavioralDataCollection is string false', async () => { + await PIProtect.start({ envId: '12345', behavioralDataCollection: false }); + const resumeSpy = vi.spyOn(window._pingOneSignals, 'resumeBehavioralData'); + + await PIProtect.start({ envId: '12345', behavioralDataCollection: 'false' }); + + expect(resumeSpy).not.toHaveBeenCalled(); + }); it('should call pause behavioralData', () => { const protectMock = vi.spyOn(PIProtect, 'pauseBehavioralData'); PIProtect.pauseBehavioralData(); diff --git a/packages/ping-protect/src/lib/ping-protect.ts b/packages/ping-protect/src/lib/ping-protect.ts index 29fb019a..c9b3941e 100644 --- a/packages/ping-protect/src/lib/ping-protect.ts +++ b/packages/ping-protect/src/lib/ping-protect.ts @@ -1,6 +1,6 @@ /** * - * Copyright (c) 2024 - 2025 Ping Identity Corporation. All right reserved. + * Copyright (c) 2024 - 2026 Ping Identity Corporation. All right reserved. * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. @@ -15,13 +15,20 @@ import { PingOneProtectEvaluationCallback, PingOneProtectInitializeCallback, } from '@forgerock/javascript-sdk'; -import { ProtectEvaluationConfig, ProtectInitializeConfig } from './ping-protect.types'; +import { + ProtectEvaluationConfig, + ProtectInitializeConfig, + ProtectNodeInitializeConfig, + SignalsInitializationOptions, +} from './ping-protect.types'; export interface Identifiers { [key: string]: string; } -export type InitParams = Omit; +export type InitParams = + | Omit + | SignalsInitializationOptions; // Add Signals SDK namespace to the window object declare global { @@ -69,7 +76,7 @@ export abstract class PIProtect { } await window._pingOneSignals.init(options); - if (options.behavioralDataCollection === true) { + if (options.behavioralDataCollection === true || options.behavioralDataCollection === 'true') { window._pingOneSignals.resumeBehavioralData(); } } @@ -137,14 +144,14 @@ export abstract class PIProtect { } } - public static getNodeConfig(step: FRStep): ProtectInitializeConfig | undefined { + public static getNodeConfig(step: FRStep): ProtectNodeInitializeConfig | undefined { // Check for native callback first try { const nativeCallback = step.getCallbackOfType( CallbackType.PingOneProtectInitializeCallback, ); - const config = nativeCallback?.getConfig() as ProtectInitializeConfig; + const config = nativeCallback?.getConfig() as ProtectNodeInitializeConfig; return config; } catch (err) { // Do nothing diff --git a/packages/ping-protect/src/lib/ping-protect.types.ts b/packages/ping-protect/src/lib/ping-protect.types.ts index 3c22c547..cb8b414c 100644 --- a/packages/ping-protect/src/lib/ping-protect.types.ts +++ b/packages/ping-protect/src/lib/ping-protect.types.ts @@ -1,6 +1,6 @@ /** * - * Copyright (c) 2024 - 2025 Ping Identity Corporation. All right reserved. + * Copyright (c) 2024 - 2026 Ping Identity Corporation. All right reserved. * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. @@ -33,6 +33,9 @@ export interface ProtectInitializeConfig { waitForWindowLoad?: boolean; } +export type SignalsInitializationOptions = Record; +export type ProtectNodeInitializeConfig = ProtectInitializeConfig | SignalsInitializationOptions; + export interface ProtectEvaluationConfig { _type: 'PingOneProtect'; _action: 'protect_risk_evaluation'; diff --git a/packages/ping-protect/src/lib/ping-signals-sdk.js b/packages/ping-protect/src/lib/ping-signals-sdk.js index 5028a78c..9e02226f 100644 --- a/packages/ping-protect/src/lib/ping-signals-sdk.js +++ b/packages/ping-protect/src/lib/ping-signals-sdk.js @@ -9,20354 +9,16983 @@ if (typeof window !== 'undefined') { var _POSignalsEntities; - !(function (t, e) { + (function (c, h) { 'use strict'; - 'function' != typeof t.CustomEvent && - (t.CustomEvent = (function () { - return function (t, e) { - e = e || { bubbles: !1, cancelable: !1, detail: null }; - var n = document.createEvent('CustomEvent'); - return n.initCustomEvent(t, e.bubbles, e.cancelable, e.detail), n; - }; - })()); - })(window), + typeof c.CustomEvent != 'function' && (c.CustomEvent = h()); + })(window, function () { + function c(h, p) { + p = p || { bubbles: !1, cancelable: !1, detail: null }; + var n = document.createEvent('CustomEvent'); + return n.initCustomEvent(h, p.bubbles, p.cancelable, p.detail), n; + } + return c; + }), (function () { - var t = 'st-ping-div'; - function e(t) { - 'loading' !== document.readyState ? t() : document.addEventListener('DOMContentLoaded', t); - } - function n(n) { - e(function () { - var e; - n && - ((e = document.getElementById(t)) || - (((e = document.createElement('div')).style.border = 'none'), - (e.style.position = 'absolute'), - (e.style.top = '-999px'), - (e.style.left = '-999px'), - (e.style.width = '0'), - (e.style.height = '0'), - (e.style.visibility = 'hidden'), - (e.style.overflow = 'hidden'), - (e.id = t), - document.body.appendChild(e)), - (e = e), - (window._pingOneSignalsToken = getComputedStyle(e, '::after').content.replace( + 'use strict'; + var c = 'PING-SDK-VERSION-PLACEHOLDER', + h = 'st-ping-div', + p = /(console|auth)((\w|\d|-)*)\.pingone\.(eu|asia|ca|com\.au|com|sg)/, + n = /(console|auth)-(test|staging)((\w|\d|-)*)\.pingone.com/, + r = /(console|auth)((\w|\d|-)*)\.test-(one|two)-pingone\.com/, + a = /(console|auth)((\w|\d|-)*)\.ort-(one|two)-pingone\.com/, + s = /localhost/, + i = window.location.hostname; + function t(S) { + window['enable-logs-pingOneSignals'] && console.log(S); + } + function e(S) { + function U(le) { + le = le.replace(/\r\n/g, ``); + for (var q = '', be = 0; be < le.length; be++) { + var we = le.charCodeAt(be); + we < 128 + ? (q += String.fromCharCode(we)) + : we > 127 && we < 2048 + ? ((q += String.fromCharCode((we >> 6) | 192)), + (q += String.fromCharCode((we & 63) | 128))) + : ((q += String.fromCharCode((we >> 12) | 224)), + (q += String.fromCharCode(((we >> 6) & 63) | 128)), + (q += String.fromCharCode((we & 63) | 128))); + } + return q; + } + var T = '', + O, + C, + k, + R, + H, + ee, + M, + K = 0, + Z = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='; + for (S = U(S); K < S.length; ) + (O = S.charCodeAt(K++)), + (C = S.charCodeAt(K++)), + (k = S.charCodeAt(K++)), + (R = O >> 2), + (H = ((O & 3) << 4) | (C >> 4)), + (ee = ((C & 15) << 2) | (k >> 6)), + (M = k & 63), + isNaN(C) ? (ee = M = 64) : isNaN(k) && (M = 64), + (T = T + Z.charAt(R) + Z.charAt(H) + Z.charAt(ee) + Z.charAt(M)); + return T; + } + function l() { + var S = document.getElementById(h); + return ( + S || + ((S = document.createElement('div')), + (S.style.border = 'none'), + (S.style.position = 'absolute'), + (S.style.top = '-999px'), + (S.style.left = '-999px'), + (S.style.width = '0'), + (S.style.height = '0'), + (S.style.visibility = 'hidden'), + (S.style.overflow = 'hidden'), + (S.id = h), + document.body.appendChild(S), + S) + ); + } + function o(S) { + document.readyState !== 'loading' ? S() : document.addEventListener('DOMContentLoaded', S); + } + function x(S) { + o(function () { + if (S) { + var U = l(); + (window._pingOneSignalsToken = getComputedStyle(U, '::after').content.replace( /['"]+/g, '', )), - document.dispatchEvent(new CustomEvent('PingOneSignalsTokenReadyEvent'))), - (e = 'Finished - ' + (n ? 'success' : 'failure')), - window['enable-logs-pingOneSignals'] && console.log(e); + document.dispatchEvent(new CustomEvent('PingOneSignalsTokenReadyEvent')); + } + var T = S ? 'success' : 'failure'; + t('Finished - ' + T); }); } - var i, - r, - o = document.querySelector('script[data-pingOneSignalsSkipToken]'); - o && 'true' === o.getAttribute('data-pingOneSignalsSkipToken') - ? ((window._pingOneSignalsToken = 'skipped_token_' + new Date().getTime()), - e(function () { + function v(S, U) { + for (var T = [], O = 0; O < S.length; O++) { + var C = S.charCodeAt(O) ^ U.charCodeAt(O % U.length); + T.push(String.fromCharCode(C)); + } + return T.join(''); + } + function y(S) { + var U = { sdkVersion: c, platform: navigator.platform || '' }, + T = 'dkiBm42', + O = encodeURIComponent(e(v(JSON.stringify(U), T))), + C = document.createElement('link'); + (C.type = 'text/css'), + (C.rel = 'stylesheet'), + (C.href = 'https://' + S + '/signals/sdk/pong.css?body=' + O + '&e=2'); + var k = document.head || document.getElementsByTagName('head')[0]; + k.appendChild(C), + (C.onload = function () { + x(!0); + }), + (C.onerror = function () { + x(!1); + }); + } + var L = document.querySelector('script[data-pingOneSignalsSkipToken]'); + if (L && L.getAttribute('data-pingOneSignalsSkipToken') === 'true') { + (window._pingOneSignalsToken = 'skipped_token_' + new Date().getTime()), + o(function () { document.dispatchEvent(new CustomEvent('PingOneSignalsTokenSkippedEvent')); - })) - : (window._pingOneSignalsToken || - (window._pingOneSignalsToken = 'uninitialized_token_' + new Date().getTime()), - (o = window._pingOneSignalsCustomHost || 'apps.pingone.com'), - (i = { sdkVersion: '5.6.4w', platform: navigator.platform || '' }), - (i = encodeURIComponent( - (function (t) { - var e, - n, - i, - r, - o, - a, - s = '', - u = 0, - c = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='; - for ( - t = (function (t) { - t = t.replace(/\r\n/g, '\n'); - for (var e = '', n = 0; n < t.length; n++) { - var i = t.charCodeAt(n); - i < 128 - ? (e += String.fromCharCode(i)) - : (e = - 127 < i && i < 2048 - ? (e += String.fromCharCode((i >> 6) | 192)) + - String.fromCharCode((63 & i) | 128) - : (e = - (e += String.fromCharCode((i >> 12) | 224)) + - String.fromCharCode(((i >> 6) & 63) | 128)) + - String.fromCharCode((63 & i) | 128)); - } - return e; - })(t); - u < t.length; - - ) - (i = (e = t.charCodeAt(u++)) >> 2), - (r = ((3 & e) << 4) | ((e = t.charCodeAt(u++)) >> 4)), - (o = ((15 & e) << 2) | ((n = t.charCodeAt(u++)) >> 6)), - (a = 63 & n), - isNaN(e) ? (o = a = 64) : isNaN(n) && (a = 64), - (s = s + c.charAt(i) + c.charAt(r) + c.charAt(o) + c.charAt(a)); - return s; - })( - (function (t, e) { - for (var n = [], i = 0; i < t.length; i++) { - var r = t.charCodeAt(i) ^ e.charCodeAt(i % e.length); - n.push(String.fromCharCode(r)); - } - return n.join(''); - })(JSON.stringify(i), 'dkiBm42'), - ), - )), - ((r = document.createElement('link')).type = 'text/css'), - (r.rel = 'stylesheet'), - (r.href = 'https://' + o + '/signals/sdk/pong.css?body=' + i + '&e=2'), - (document.head || document.getElementsByTagName('head')[0]).appendChild(r), - (r.onload = function () { - n(!0); - }), - (r.onerror = function () { - n(!1); - })); + }); + return; + } + window._pingOneSignalsToken || + (window._pingOneSignalsToken = 'uninitialized_token_' + new Date().getTime()); + var g = window._pingOneSignalsCustomHost, + E = g || 'apps.test-one-pingone.com', + f = g || 'apps.ort-one-pingone.com', + m = g || 'apps.pingone.com', + w = g || (s.test(i) || r.test(i) || n.test(i) ? E : a.test(i) ? f : m); + y(w); })(), - (function (t) { - t._POSignalsEntities || (t._POSignalsEntities = {}), - t._pingOneSignals && console.warn('PingOne Signals script was imported multiple times'); + (function (c) { + c._POSignalsEntities || (c._POSignalsEntities = {}), + c._pingOneSignals && console.warn('PingOne Signals script was imported multiple times'); })(window), - (function (t) { + (function (c, h) { + h(c); + })(window, function (c) { 'use strict'; - function e(t) { - var e = this.constructor; + function h(v) { + var y = this.constructor; return this.then( - function (n) { - return e.resolve(t()).then(function () { - return n; + function (L) { + return y.resolve(v()).then(function () { + return L; }); }, - function (n) { - return e.resolve(t()).then(function () { - return e.reject(n); + function (L) { + return y.resolve(v()).then(function () { + return y.reject(L); }); }, ); } - var n = setTimeout; - function i(t) { - return Boolean(t && void 0 !== t.length); + var p = setTimeout; + function n(v) { + return !!(v && typeof v.length != 'undefined'); } function r() {} - function o(t) { - if (!(this instanceof o)) throw new TypeError('Promises must be constructed via new'); - if ('function' != typeof t) throw new TypeError('not a function'); + function a(v, y) { + return function () { + v.apply(y, arguments); + }; + } + function s(v) { + if (!(this instanceof s)) throw new TypeError('Promises must be constructed via new'); + if (typeof v != 'function') throw new TypeError('not a function'); (this._state = 0), (this._handled = !1), (this._value = void 0), (this._deferreds = []), - l(t, this); - } - function a(t, e) { - for (; 3 === t._state; ) t = t._value; - 0 !== t._state - ? ((t._handled = !0), - o._immediateFn(function () { - var n = 1 === t._state ? e.onFulfilled : e.onRejected; - if (null !== n) { - var i; - try { - i = n(t._value); - } catch (t) { - return void u(e.promise, t); - } - s(e.promise, i); - } else (1 === t._state ? s : u)(e.promise, t._value); - })) - : t._deferreds.push(e); + x(v, this); + } + function i(v, y) { + for (; v._state === 3; ) v = v._value; + if (v._state === 0) { + v._deferreds.push(y); + return; + } + (v._handled = !0), + s._immediateFn(function () { + var L = v._state === 1 ? y.onFulfilled : y.onRejected; + if (L === null) { + (v._state === 1 ? t : e)(y.promise, v._value); + return; + } + var g; + try { + g = L(v._value); + } catch (E) { + e(y.promise, E); + return; + } + t(y.promise, g); + }); } - function s(t, e) { + function t(v, y) { try { - if (e === t) throw new TypeError('A promise cannot be resolved with itself.'); - if (e && ('object' == typeof e || 'function' == typeof e)) { - var n = e.then; - if (e instanceof o) return (t._state = 3), (t._value = e), void c(t); - if ('function' == typeof n) - return void l( - ((i = n), - (r = e), - function () { - i.apply(r, arguments); - }), - t, - ); + if (y === v) throw new TypeError('A promise cannot be resolved with itself.'); + if (y && (typeof y == 'object' || typeof y == 'function')) { + var L = y.then; + if (y instanceof s) { + (v._state = 3), (v._value = y), l(v); + return; + } else if (typeof L == 'function') { + x(a(L, y), v); + return; + } } - (t._state = 1), (t._value = e), c(t); - } catch (e) { - u(t, e); + (v._state = 1), (v._value = y), l(v); + } catch (g) { + e(v, g); } - var i, r; } - function u(t, e) { - (t._state = 2), (t._value = e), c(t); + function e(v, y) { + (v._state = 2), (v._value = y), l(v); } - function c(t) { - 2 === t._state && - 0 === t._deferreds.length && - o._immediateFn(function () { - t._handled || o._unhandledRejectionFn(t._value); + function l(v) { + v._state === 2 && + v._deferreds.length === 0 && + s._immediateFn(function () { + v._handled || s._unhandledRejectionFn(v._value); }); - for (var e = 0, n = t._deferreds.length; e < n; e++) a(t, t._deferreds[e]); - t._deferreds = null; + for (var y = 0, L = v._deferreds.length; y < L; y++) i(v, v._deferreds[y]); + v._deferreds = null; + } + function o(v, y, L) { + (this.onFulfilled = typeof v == 'function' ? v : null), + (this.onRejected = typeof y == 'function' ? y : null), + (this.promise = L); } - function l(t, e) { - var n = !1; + function x(v, y) { + var L = !1; try { - t( - function (t) { - n || ((n = !0), s(e, t)); + v( + function (g) { + L || ((L = !0), t(y, g)); }, - function (t) { - n || ((n = !0), u(e, t)); + function (g) { + L || ((L = !0), e(y, g)); }, ); - } catch (t) { - if (n) return; - (n = !0), u(e, t); + } catch (g) { + if (L) return; + (L = !0), e(y, g); } } - (o.prototype.catch = function (t) { - return this.then(null, t); + (s.prototype.catch = function (v) { + return this.then(null, v); }), - (o.prototype.then = function (t, e) { - var n = new this.constructor(r); - return ( - a( - this, - new (function (t, e, n) { - (this.onFulfilled = 'function' == typeof t ? t : null), - (this.onRejected = 'function' == typeof e ? e : null), - (this.promise = n); - })(t, e, n), - ), - n - ); + (s.prototype.then = function (v, y) { + var L = new this.constructor(r); + return i(this, new o(v, y, L)), L; }), - (o.prototype.finally = e), - (o.all = function (t) { - return new o(function (e, n) { - if (!i(t)) return n(new TypeError('Promise.all accepts an array')); - var r = Array.prototype.slice.call(t); - if (0 === r.length) return e([]); - var o = r.length; - function a(t, i) { + (s.prototype.finally = h), + (s.all = function (v) { + return new s(function (y, L) { + if (!n(v)) return L(new TypeError('Promise.all accepts an array')); + var g = Array.prototype.slice.call(v); + if (g.length === 0) return y([]); + var E = g.length; + function f(w, S) { try { - if (i && ('object' == typeof i || 'function' == typeof i)) { - var s = i.then; - if ('function' == typeof s) - return void s.call( - i, - function (e) { - a(t, e); + if (S && (typeof S == 'object' || typeof S == 'function')) { + var U = S.then; + if (typeof U == 'function') { + U.call( + S, + function (T) { + f(w, T); }, - n, + L, ); + return; + } } - (r[t] = i), 0 == --o && e(r); - } catch (t) { - n(t); + (g[w] = S), --E === 0 && y(g); + } catch (T) { + L(T); } } - for (var s = 0; s < r.length; s++) a(s, r[s]); + for (var m = 0; m < g.length; m++) f(m, g[m]); }); }), - (o.resolve = function (t) { - return t && 'object' == typeof t && t.constructor === o - ? t - : new o(function (e) { - e(t); + (s.resolve = function (v) { + return v && typeof v == 'object' && v.constructor === s + ? v + : new s(function (y) { + y(v); }); }), - (o.reject = function (t) { - return new o(function (e, n) { - n(t); + (s.reject = function (v) { + return new s(function (y, L) { + L(v); }); }), - (o.race = function (t) { - return new o(function (e, n) { - if (!i(t)) return n(new TypeError('Promise.race accepts an array')); - for (var r = 0, a = t.length; r < a; r++) o.resolve(t[r]).then(e, n); + (s.race = function (v) { + return new s(function (y, L) { + if (!n(v)) return L(new TypeError('Promise.race accepts an array')); + for (var g = 0, E = v.length; g < E; g++) s.resolve(v[g]).then(y, L); }); }), - (o._immediateFn = - ('function' == typeof setImmediate && - function (t) { - setImmediate(t); + (s._immediateFn = + (typeof setImmediate == 'function' && + function (v) { + setImmediate(v); }) || - function (t) { - n(t, 0); + function (v) { + p(v, 0); }), - (o._unhandledRejectionFn = function (t) { - 'undefined' != typeof console && + (s._unhandledRejectionFn = function (y) { + typeof console != 'undefined' && console && - console.warn('Possible Unhandled Promise Rejection:', t); + console.warn('Possible Unhandled Promise Rejection:', y); }), - 'function' != typeof t.Promise - ? (t.Promise = o) - : t.Promise.prototype.finally || (t.Promise.prototype.finally = e); - })(window), - (function (t, e) { + typeof c.Promise != 'function' + ? (c.Promise = s) + : c.Promise.prototype.finally || (c.Promise.prototype.finally = h); + }), + (function (c, h) { 'use strict'; - (_POSignalsEntities || (_POSignalsEntities = {})).PromiseQueue = (function () { - var t = function () {}; - function e(t, e, n) { - (this.options = n = n || {}), - (this.pendingPromises = 0), - (this.maxPendingPromises = void 0 !== t ? t : 1 / 0), - (this.maxQueuedPromises = void 0 !== e ? e : 1 / 0), - (this.queue = []); - } - return ( - (e.prototype.add = function (e) { - var n = this; - return new Promise(function (i, r, o) { - n.queue.length >= n.maxQueuedPromises - ? r(new Error('Queue limit reached')) - : (n.queue.push({ promiseGenerator: e, resolve: i, reject: r, notify: o || t }), - n._dequeue()); - }); - }), - (e.prototype.getPendingLength = function () { - return this.pendingPromises; - }), - (e.prototype.getQueueLength = function () { - return this.queue.length; - }), - (e.prototype._dequeue = function () { - var t = this; - if (this.pendingPromises >= this.maxPendingPromises) return !1; - var e, - n = this.queue.shift(); - if (!n) return this.options.onEmpty && this.options.onEmpty(), !1; - try { - this.pendingPromises++, - ((e = n.promiseGenerator()), - e && 'function' == typeof e.then - ? e - : new Promise(function (t) { - t(e); - })).then( - function (e) { - t.pendingPromises--, n.resolve(e), t._dequeue(); - }, - function (e) { - t.pendingPromises--, n.reject(e), t._dequeue(); - }, - function (t) { - n.notify(t); - }, - ); - } catch (e) { - t.pendingPromises--, n.reject(e), t._dequeue(); - } - return !0; - }), - e - ); - })(); - })(), - (function (t) { + c.PromiseQueue = h(); + })(_POSignalsEntities || (_POSignalsEntities = {}), function () { 'use strict'; - var e = 'input is invalid type', - n = !t.JS_SHA256_NO_ARRAY_BUFFER && 'undefined' != typeof ArrayBuffer, - i = '0123456789abcdef'.split(''), - r = [-2147483648, 8388608, 32768, 128], - o = [24, 16, 8, 0], - a = [ - 1116352408, 1899447441, 3049323471, 3921009573, 961987163, 1508970993, 2453635748, - 2870763221, 3624381080, 310598401, 607225278, 1426881987, 1925078388, 2162078206, - 2614888103, 3248222580, 3835390401, 4022224774, 264347078, 604807628, 770255983, - 1249150122, 1555081692, 1996064986, 2554220882, 2821834349, 2952996808, 3210313671, - 3336571891, 3584528711, 113926993, 338241895, 666307205, 773529912, 1294757372, - 1396182291, 1695183700, 1986661051, 2177026350, 2456956037, 2730485921, 2820302411, - 3259730800, 3345764771, 3516065817, 3600352804, 4094571909, 275423344, 430227734, - 506948616, 659060556, 883997877, 958139571, 1322822218, 1537002063, 1747873779, - 1955562222, 2024104815, 2227730452, 2361852424, 2428436474, 2756734187, 3204031479, - 3329325298, - ], - s = ['hex', 'array', 'digest', 'arrayBuffer'], - u = []; - (!t.JS_SHA256_NO_NODE_JS && Array.isArray) || - (Array.isArray = function (t) { - return '[object Array]' === Object.prototype.toString.call(t); - }), - !n || - (!t.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW && ArrayBuffer.isView) || - (ArrayBuffer.isView = function (t) { - return 'object' == typeof t && t.buffer && t.buffer.constructor === ArrayBuffer; - }); - var c = function (t, e) { - return function (n) { - return new f(e, !0).update(n)[t](); - }; - }, - l = function (t) { - var e = c('hex', t); - (e.create = function () { - return new f(t); - }), - (e.update = function (t) { - return e.create().update(t); - }); - for (var n = 0; n < s.length; ++n) { - var i = s[n]; - e[i] = c(i, t); - } - return e; - }, - d = function (t, e) { - return function (n, i) { - return new g(n, e, !0).update(i)[t](); - }; - }, - h = function (t) { - var e = d('hex', t); - (e.create = function (e) { - return new g(e, t); - }), - (e.update = function (t, n) { - return e.create(t).update(n); - }); - for (var n = 0; n < s.length; ++n) { - var i = s[n]; - e[i] = d(i, t); - } - return e; + var c = function () {}, + h = function (n) { + return n && typeof n.then == 'function' + ? n + : new Promise(function (r) { + r(n); + }); }; - function f(t, e) { - e - ? ((u[0] = - u[16] = - u[1] = - u[2] = - u[3] = - u[4] = - u[5] = - u[6] = - u[7] = - u[8] = - u[9] = - u[10] = - u[11] = - u[12] = - u[13] = - u[14] = - u[15] = - 0), - (this.blocks = u)) - : (this.blocks = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), - t - ? ((this.h0 = 3238371032), - (this.h1 = 914150663), - (this.h2 = 812702999), - (this.h3 = 4144912697), - (this.h4 = 4290775857), - (this.h5 = 1750603025), - (this.h6 = 1694076839), - (this.h7 = 3204075428)) - : ((this.h0 = 1779033703), - (this.h1 = 3144134277), - (this.h2 = 1013904242), - (this.h3 = 2773480762), - (this.h4 = 1359893119), - (this.h5 = 2600822924), - (this.h6 = 528734635), - (this.h7 = 1541459225)), - (this.block = this.start = this.bytes = this.hBytes = 0), - (this.finalized = this.hashed = !1), - (this.first = !0), - (this.is224 = t); - } - function g(t, i, r) { - var o, - a = typeof t; - if ('string' === a) { - var s, - u = [], - c = t.length, - l = 0; - for (o = 0; o < c; ++o) - (s = t.charCodeAt(o)) < 128 - ? (u[l++] = s) - : s < 2048 - ? ((u[l++] = 192 | (s >> 6)), (u[l++] = 128 | (63 & s))) - : s < 55296 || s >= 57344 - ? ((u[l++] = 224 | (s >> 12)), - (u[l++] = 128 | ((s >> 6) & 63)), - (u[l++] = 128 | (63 & s))) - : ((s = 65536 + (((1023 & s) << 10) | (1023 & t.charCodeAt(++o)))), - (u[l++] = 240 | (s >> 18)), - (u[l++] = 128 | ((s >> 12) & 63)), - (u[l++] = 128 | ((s >> 6) & 63)), - (u[l++] = 128 | (63 & s))); - t = u; - } else { - if ('object' !== a) throw new Error(e); - if (null === t) throw new Error(e); - if (n && t.constructor === ArrayBuffer) t = new Uint8Array(t); - else if (!(Array.isArray(t) || (n && ArrayBuffer.isView(t)))) throw new Error(e); - } - t.length > 64 && (t = new f(i, !0).update(t).array()); - var d = [], - h = []; - for (o = 0; o < 64; ++o) { - var g = t[o] || 0; - (d[o] = 92 ^ g), (h[o] = 54 ^ g); - } - f.call(this, i, r), - this.update(h), - (this.oKeyPad = d), - (this.inner = !0), - (this.sharedMemory = r); - } - (f.prototype.update = function (t) { - if (!this.finalized) { - var i, - r = typeof t; - if ('string' !== r) { - if ('object' !== r) throw new Error(e); - if (null === t) throw new Error(e); - if (n && t.constructor === ArrayBuffer) t = new Uint8Array(t); - else if (!(Array.isArray(t) || (n && ArrayBuffer.isView(t)))) throw new Error(e); - i = !0; - } - for (var a, s, u = 0, c = t.length, l = this.blocks; u < c; ) { - if ( - (this.hashed && - ((this.hashed = !1), - (l[0] = this.block), - (l[16] = - l[1] = - l[2] = - l[3] = - l[4] = - l[5] = - l[6] = - l[7] = - l[8] = - l[9] = - l[10] = - l[11] = - l[12] = - l[13] = - l[14] = - l[15] = - 0)), - i) - ) - for (s = this.start; u < c && s < 64; ++u) l[s >> 2] |= t[u] << o[3 & s++]; - else - for (s = this.start; u < c && s < 64; ++u) - (a = t.charCodeAt(u)) < 128 - ? (l[s >> 2] |= a << o[3 & s++]) - : a < 2048 - ? ((l[s >> 2] |= (192 | (a >> 6)) << o[3 & s++]), - (l[s >> 2] |= (128 | (63 & a)) << o[3 & s++])) - : a < 55296 || a >= 57344 - ? ((l[s >> 2] |= (224 | (a >> 12)) << o[3 & s++]), - (l[s >> 2] |= (128 | ((a >> 6) & 63)) << o[3 & s++]), - (l[s >> 2] |= (128 | (63 & a)) << o[3 & s++])) - : ((a = 65536 + (((1023 & a) << 10) | (1023 & t.charCodeAt(++u)))), - (l[s >> 2] |= (240 | (a >> 18)) << o[3 & s++]), - (l[s >> 2] |= (128 | ((a >> 12) & 63)) << o[3 & s++]), - (l[s >> 2] |= (128 | ((a >> 6) & 63)) << o[3 & s++]), - (l[s >> 2] |= (128 | (63 & a)) << o[3 & s++])); - (this.lastByteIndex = s), - (this.bytes += s - this.start), - s >= 64 - ? ((this.block = l[16]), (this.start = s - 64), this.hash(), (this.hashed = !0)) - : (this.start = s); - } - return ( - this.bytes > 4294967295 && - ((this.hBytes += (this.bytes / 4294967296) << 0), - (this.bytes = this.bytes % 4294967296)), - this - ); - } - }), - (f.prototype.finalize = function () { - if (!this.finalized) { - this.finalized = !0; - var t = this.blocks, - e = this.lastByteIndex; - (t[16] = this.block), - (t[e >> 2] |= r[3 & e]), - (this.block = t[16]), - e >= 56 && - (this.hashed || this.hash(), - (t[0] = this.block), - (t[16] = - t[1] = - t[2] = - t[3] = - t[4] = - t[5] = - t[6] = - t[7] = - t[8] = - t[9] = - t[10] = - t[11] = - t[12] = - t[13] = - t[14] = - t[15] = - 0)), - (t[14] = (this.hBytes << 3) | (this.bytes >>> 29)), - (t[15] = this.bytes << 3), - this.hash(); - } - }), - (f.prototype.hash = function () { - var t, - e, - n, - i, - r, - o, - s, - u, - c, - l = this.h0, - d = this.h1, - h = this.h2, - f = this.h3, - g = this.h4, - p = this.h5, - v = this.h6, - _ = this.h7, - m = this.blocks; - for (t = 16; t < 64; ++t) - (e = (((r = m[t - 15]) >>> 7) | (r << 25)) ^ ((r >>> 18) | (r << 14)) ^ (r >>> 3)), - (n = (((r = m[t - 2]) >>> 17) | (r << 15)) ^ ((r >>> 19) | (r << 13)) ^ (r >>> 10)), - (m[t] = (m[t - 16] + e + m[t - 7] + n) << 0); - for (c = d & h, t = 0; t < 64; t += 4) - this.first - ? (this.is224 - ? ((o = 300032), - (_ = ((r = m[0] - 1413257819) - 150054599) << 0), - (f = (r + 24177077) << 0)) - : ((o = 704751109), - (_ = ((r = m[0] - 210244248) - 1521486534) << 0), - (f = (r + 143694565) << 0)), - (this.first = !1)) - : ((e = - ((l >>> 2) | (l << 30)) ^ ((l >>> 13) | (l << 19)) ^ ((l >>> 22) | (l << 10))), - (i = (o = l & d) ^ (l & h) ^ c), - (_ = - (f + - (r = - _ + - (n = - ((g >>> 6) | (g << 26)) ^ - ((g >>> 11) | (g << 21)) ^ - ((g >>> 25) | (g << 7))) + - ((g & p) ^ (~g & v)) + - a[t] + - m[t])) << - 0), - (f = (r + (e + i)) << 0)), - (e = ((f >>> 2) | (f << 30)) ^ ((f >>> 13) | (f << 19)) ^ ((f >>> 22) | (f << 10))), - (i = (s = f & l) ^ (f & d) ^ o), - (v = - (h + - (r = - v + - (n = - ((_ >>> 6) | (_ << 26)) ^ - ((_ >>> 11) | (_ << 21)) ^ - ((_ >>> 25) | (_ << 7))) + - ((_ & g) ^ (~_ & p)) + - a[t + 1] + - m[t + 1])) << - 0), - (e = - (((h = (r + (e + i)) << 0) >>> 2) | (h << 30)) ^ - ((h >>> 13) | (h << 19)) ^ - ((h >>> 22) | (h << 10))), - (i = (u = h & f) ^ (h & l) ^ s), - (p = - (d + - (r = - p + - (n = - ((v >>> 6) | (v << 26)) ^ - ((v >>> 11) | (v << 21)) ^ - ((v >>> 25) | (v << 7))) + - ((v & _) ^ (~v & g)) + - a[t + 2] + - m[t + 2])) << - 0), - (e = - (((d = (r + (e + i)) << 0) >>> 2) | (d << 30)) ^ - ((d >>> 13) | (d << 19)) ^ - ((d >>> 22) | (d << 10))), - (i = (c = d & h) ^ (d & f) ^ u), - (g = - (l + - (r = - g + - (n = - ((p >>> 6) | (p << 26)) ^ - ((p >>> 11) | (p << 21)) ^ - ((p >>> 25) | (p << 7))) + - ((p & v) ^ (~p & _)) + - a[t + 3] + - m[t + 3])) << - 0), - (l = (r + (e + i)) << 0); - (this.h0 = (this.h0 + l) << 0), - (this.h1 = (this.h1 + d) << 0), - (this.h2 = (this.h2 + h) << 0), - (this.h3 = (this.h3 + f) << 0), - (this.h4 = (this.h4 + g) << 0), - (this.h5 = (this.h5 + p) << 0), - (this.h6 = (this.h6 + v) << 0), - (this.h7 = (this.h7 + _) << 0); - }), - (f.prototype.hex = function () { - this.finalize(); - var t = this.h0, - e = this.h1, - n = this.h2, - r = this.h3, - o = this.h4, - a = this.h5, - s = this.h6, - u = this.h7, - c = - i[(t >> 28) & 15] + - i[(t >> 24) & 15] + - i[(t >> 20) & 15] + - i[(t >> 16) & 15] + - i[(t >> 12) & 15] + - i[(t >> 8) & 15] + - i[(t >> 4) & 15] + - i[15 & t] + - i[(e >> 28) & 15] + - i[(e >> 24) & 15] + - i[(e >> 20) & 15] + - i[(e >> 16) & 15] + - i[(e >> 12) & 15] + - i[(e >> 8) & 15] + - i[(e >> 4) & 15] + - i[15 & e] + - i[(n >> 28) & 15] + - i[(n >> 24) & 15] + - i[(n >> 20) & 15] + - i[(n >> 16) & 15] + - i[(n >> 12) & 15] + - i[(n >> 8) & 15] + - i[(n >> 4) & 15] + - i[15 & n] + - i[(r >> 28) & 15] + - i[(r >> 24) & 15] + - i[(r >> 20) & 15] + - i[(r >> 16) & 15] + - i[(r >> 12) & 15] + - i[(r >> 8) & 15] + - i[(r >> 4) & 15] + - i[15 & r] + - i[(o >> 28) & 15] + - i[(o >> 24) & 15] + - i[(o >> 20) & 15] + - i[(o >> 16) & 15] + - i[(o >> 12) & 15] + - i[(o >> 8) & 15] + - i[(o >> 4) & 15] + - i[15 & o] + - i[(a >> 28) & 15] + - i[(a >> 24) & 15] + - i[(a >> 20) & 15] + - i[(a >> 16) & 15] + - i[(a >> 12) & 15] + - i[(a >> 8) & 15] + - i[(a >> 4) & 15] + - i[15 & a] + - i[(s >> 28) & 15] + - i[(s >> 24) & 15] + - i[(s >> 20) & 15] + - i[(s >> 16) & 15] + - i[(s >> 12) & 15] + - i[(s >> 8) & 15] + - i[(s >> 4) & 15] + - i[15 & s]; - return ( - this.is224 || - (c += - i[(u >> 28) & 15] + - i[(u >> 24) & 15] + - i[(u >> 20) & 15] + - i[(u >> 16) & 15] + - i[(u >> 12) & 15] + - i[(u >> 8) & 15] + - i[(u >> 4) & 15] + - i[15 & u]), - c - ); + function p(n, r, a) { + (this.options = a = a || {}), + (this.pendingPromises = 0), + (this.maxPendingPromises = typeof n != 'undefined' ? n : 1 / 0), + (this.maxQueuedPromises = typeof r != 'undefined' ? r : 1 / 0), + (this.queue = []); + } + return ( + (p.prototype.add = function (n) { + var r = this; + return new Promise(function (a, s, i) { + if (r.queue.length >= r.maxQueuedPromises) { + s(new Error('Queue limit reached')); + return; + } + r.queue.push({ promiseGenerator: n, resolve: a, reject: s, notify: i || c }), + r._dequeue(); + }); }), - (f.prototype.toString = f.prototype.hex), - (f.prototype.digest = function () { - this.finalize(); - var t = this.h0, - e = this.h1, - n = this.h2, - i = this.h3, - r = this.h4, - o = this.h5, - a = this.h6, - s = this.h7, - u = [ - (t >> 24) & 255, - (t >> 16) & 255, - (t >> 8) & 255, - 255 & t, - (e >> 24) & 255, - (e >> 16) & 255, - (e >> 8) & 255, - 255 & e, - (n >> 24) & 255, - (n >> 16) & 255, - (n >> 8) & 255, - 255 & n, - (i >> 24) & 255, - (i >> 16) & 255, - (i >> 8) & 255, - 255 & i, - (r >> 24) & 255, - (r >> 16) & 255, - (r >> 8) & 255, - 255 & r, - (o >> 24) & 255, - (o >> 16) & 255, - (o >> 8) & 255, - 255 & o, - (a >> 24) & 255, - (a >> 16) & 255, - (a >> 8) & 255, - 255 & a, - ]; - return this.is224 || u.push((s >> 24) & 255, (s >> 16) & 255, (s >> 8) & 255, 255 & s), u; + (p.prototype.getPendingLength = function () { + return this.pendingPromises; }), - (f.prototype.array = f.prototype.digest), - (f.prototype.arrayBuffer = function () { - this.finalize(); - var t = new ArrayBuffer(this.is224 ? 28 : 32), - e = new DataView(t); - return ( - e.setUint32(0, this.h0), - e.setUint32(4, this.h1), - e.setUint32(8, this.h2), - e.setUint32(12, this.h3), - e.setUint32(16, this.h4), - e.setUint32(20, this.h5), - e.setUint32(24, this.h6), - this.is224 || e.setUint32(28, this.h7), - t - ); + (p.prototype.getQueueLength = function () { + return this.queue.length; }), - (g.prototype = new f()), - (g.prototype.finalize = function () { - if ((f.prototype.finalize.call(this), this.inner)) { - this.inner = !1; - var t = this.array(); - f.call(this, this.is224, this.sharedMemory), - this.update(this.oKeyPad), - this.update(t), - f.prototype.finalize.call(this); + (p.prototype._dequeue = function () { + var n = this; + if (this.pendingPromises >= this.maxPendingPromises) return !1; + var r = this.queue.shift(); + if (!r) return this.options.onEmpty && this.options.onEmpty(), !1; + try { + this.pendingPromises++, + h(r.promiseGenerator()).then( + function (a) { + n.pendingPromises--, r.resolve(a), n._dequeue(); + }, + function (a) { + n.pendingPromises--, r.reject(a), n._dequeue(); + }, + function (a) { + r.notify(a); + }, + ); + } catch (a) { + n.pendingPromises--, r.reject(a), n._dequeue(); } + return !0; + }), + p + ); + }); + (function (c) { + 'use strict'; + var h = 'input is invalid type', + p = !c.JS_SHA256_NO_ARRAY_BUFFER && typeof ArrayBuffer != 'undefined', + n = '0123456789abcdef'.split(''), + r = [-2147483648, 8388608, 32768, 128], + a = [24, 16, 8, 0], + s = [ + 1116352408, 1899447441, 3049323471, 3921009573, 961987163, 1508970993, 2453635748, + 2870763221, 3624381080, 310598401, 607225278, 1426881987, 1925078388, 2162078206, + 2614888103, 3248222580, 3835390401, 4022224774, 264347078, 604807628, 770255983, 1249150122, + 1555081692, 1996064986, 2554220882, 2821834349, 2952996808, 3210313671, 3336571891, + 3584528711, 113926993, 338241895, 666307205, 773529912, 1294757372, 1396182291, 1695183700, + 1986661051, 2177026350, 2456956037, 2730485921, 2820302411, 3259730800, 3345764771, + 3516065817, 3600352804, 4094571909, 275423344, 430227734, 506948616, 659060556, 883997877, + 958139571, 1322822218, 1537002063, 1747873779, 1955562222, 2024104815, 2227730452, + 2361852424, 2428436474, 2756734187, 3204031479, 3329325298, + ], + i = ['hex', 'array', 'digest', 'arrayBuffer'], + t = []; + (c.JS_SHA256_NO_NODE_JS || !Array.isArray) && + (Array.isArray = function (g) { + return Object.prototype.toString.call(g) === '[object Array]'; + }), + p && + (c.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW || !ArrayBuffer.isView) && + (ArrayBuffer.isView = function (g) { + return typeof g == 'object' && g.buffer && g.buffer.constructor === ArrayBuffer; }); - var p = l(); - (p.sha256 = p), - (p.sha224 = l(!0)), - (p.sha256.hmac = h()), - (p.sha224.hmac = h(!0)), - (t.sha256 = p.sha256), - (t.sha224 = p.sha224); - })(_POSignalsEntities || (_POSignalsEntities = {})), - ((_POSignalsEntities || (_POSignalsEntities = {})).FingerprintJS = (function (t) { - 'use strict'; - var e = function () { - return (e = - Object.assign || - function (t) { - for (var e, n = 1, i = arguments.length; n < i; n++) - for (var r in (e = arguments[n])) - Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); - return t; - }).apply(this, arguments); + var e = function (g, E) { + return function (f) { + return new v(E, !0).update(f)[g](); + }; + }, + l = function (g) { + var E = e('hex', g); + (E.create = function () { + return new v(g); + }), + (E.update = function (w) { + return E.create().update(w); + }); + for (var f = 0; f < i.length; ++f) { + var m = i[f]; + E[m] = e(m, g); + } + return E; + }, + o = function (g, E) { + return function (f, m) { + return new y(f, E, !0).update(m)[g](); + }; + }, + x = function (g) { + var E = o('hex', g); + (E.create = function (w) { + return new y(w, g); + }), + (E.update = function (w, S) { + return E.create(w).update(S); + }); + for (var f = 0; f < i.length; ++f) { + var m = i[f]; + E[m] = o(m, g); + } + return E; }; - function n(t, e, n, i) { - return new (n || (n = Promise))(function (r, o) { - function a(t) { - try { - u(i.next(t)); - } catch (t) { - o(t); - } - } - function s(t) { - try { - u(i.throw(t)); - } catch (t) { - o(t); - } - } - function u(t) { - var e; - t.done - ? r(t.value) - : ((e = t.value), - e instanceof n - ? e - : new n(function (t) { - t(e); - })).then(a, s); - } - u((i = i.apply(t, e || [])).next()); - }); - } - function i(t, e) { - var n, - i, - r, - o, - a = { - label: 0, - sent: function () { - if (1 & r[0]) throw r[1]; - return r[1]; - }, - trys: [], - ops: [], - }; - return ( - (o = { next: s(0), throw: s(1), return: s(2) }), - 'function' == typeof Symbol && - (o[Symbol.iterator] = function () { - return this; - }), - o - ); - function s(s) { - return function (u) { - return (function (s) { - if (n) throw new TypeError('Generator is already executing.'); - for (; o && ((o = 0), s[0] && (a = 0)), a; ) - try { - if ( - ((n = 1), - i && - (r = - 2 & s[0] - ? i.return - : s[0] - ? i.throw || ((r = i.return) && r.call(i), 0) - : i.next) && - !(r = r.call(i, s[1])).done) - ) - return r; - switch (((i = 0), r && (s = [2 & s[0], r.value]), s[0])) { - case 0: - case 1: - r = s; - break; - case 4: - return a.label++, { value: s[1], done: !1 }; - case 5: - a.label++, (i = s[1]), (s = [0]); - continue; - case 7: - (s = a.ops.pop()), a.trys.pop(); - continue; - default: - if ( - !(r = (r = a.trys).length > 0 && r[r.length - 1]) && - (6 === s[0] || 2 === s[0]) - ) { - a = 0; - continue; - } - if (3 === s[0] && (!r || (s[1] > r[0] && s[1] < r[3]))) { - a.label = s[1]; - break; - } - if (6 === s[0] && a.label < r[1]) { - (a.label = r[1]), (r = s); - break; - } - if (r && a.label < r[2]) { - (a.label = r[2]), a.ops.push(s); - break; - } - r[2] && a.ops.pop(), a.trys.pop(); - continue; - } - s = e.call(t, a); - } catch (t) { - (s = [6, t]), (i = 0); - } finally { - n = r = 0; - } - if (5 & s[0]) throw s[1]; - return { value: s[0] ? s[1] : void 0, done: !0 }; - })([s, u]); - }; + function v(g, E) { + E + ? ((t[0] = + t[16] = + t[1] = + t[2] = + t[3] = + t[4] = + t[5] = + t[6] = + t[7] = + t[8] = + t[9] = + t[10] = + t[11] = + t[12] = + t[13] = + t[14] = + t[15] = + 0), + (this.blocks = t)) + : (this.blocks = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), + g + ? ((this.h0 = 3238371032), + (this.h1 = 914150663), + (this.h2 = 812702999), + (this.h3 = 4144912697), + (this.h4 = 4290775857), + (this.h5 = 1750603025), + (this.h6 = 1694076839), + (this.h7 = 3204075428)) + : ((this.h0 = 1779033703), + (this.h1 = 3144134277), + (this.h2 = 1013904242), + (this.h3 = 2773480762), + (this.h4 = 1359893119), + (this.h5 = 2600822924), + (this.h6 = 528734635), + (this.h7 = 1541459225)), + (this.block = this.start = this.bytes = this.hBytes = 0), + (this.finalized = this.hashed = !1), + (this.first = !0), + (this.is224 = g); + } + (v.prototype.update = function (g) { + if (!this.finalized) { + var E, + f = typeof g; + if (f !== 'string') { + if (f === 'object') { + if (g === null) throw new Error(h); + if (p && g.constructor === ArrayBuffer) g = new Uint8Array(g); + else if (!Array.isArray(g) && (!p || !ArrayBuffer.isView(g))) throw new Error(h); + } else throw new Error(h); + E = !0; } - } - function r(t, e, n) { - if (n || 2 === arguments.length) - for (var i, r = 0, o = e.length; r < o; r++) - (!i && r in e) || (i || (i = Array.prototype.slice.call(e, 0, r)), (i[r] = e[r])); - return t.concat(i || Array.prototype.slice.call(e)); - } - var o = '4.6.1'; - function a(t, e) { - return new Promise(function (n) { - return setTimeout(n, t, e); - }); - } - function s(t) { - return !!t && 'function' == typeof t.then; - } - function u(t, e) { - try { - var n = t(); - s(n) - ? n.then( - function (t) { - return e(!0, t); - }, - function (t) { - return e(!1, t); - }, - ) - : e(!0, n); - } catch (t) { - e(!1, t); + for (var m, w = 0, S, U = g.length, T = this.blocks; w < U; ) { + if ( + (this.hashed && + ((this.hashed = !1), + (T[0] = this.block), + (T[16] = + T[1] = + T[2] = + T[3] = + T[4] = + T[5] = + T[6] = + T[7] = + T[8] = + T[9] = + T[10] = + T[11] = + T[12] = + T[13] = + T[14] = + T[15] = + 0)), + E) + ) + for (S = this.start; w < U && S < 64; ++w) T[S >> 2] |= g[w] << a[S++ & 3]; + else + for (S = this.start; w < U && S < 64; ++w) + (m = g.charCodeAt(w)), + m < 128 + ? (T[S >> 2] |= m << a[S++ & 3]) + : m < 2048 + ? ((T[S >> 2] |= (192 | (m >> 6)) << a[S++ & 3]), + (T[S >> 2] |= (128 | (m & 63)) << a[S++ & 3])) + : m < 55296 || m >= 57344 + ? ((T[S >> 2] |= (224 | (m >> 12)) << a[S++ & 3]), + (T[S >> 2] |= (128 | ((m >> 6) & 63)) << a[S++ & 3]), + (T[S >> 2] |= (128 | (m & 63)) << a[S++ & 3])) + : ((m = 65536 + (((m & 1023) << 10) | (g.charCodeAt(++w) & 1023))), + (T[S >> 2] |= (240 | (m >> 18)) << a[S++ & 3]), + (T[S >> 2] |= (128 | ((m >> 12) & 63)) << a[S++ & 3]), + (T[S >> 2] |= (128 | ((m >> 6) & 63)) << a[S++ & 3]), + (T[S >> 2] |= (128 | (m & 63)) << a[S++ & 3])); + (this.lastByteIndex = S), + (this.bytes += S - this.start), + S >= 64 + ? ((this.block = T[16]), (this.start = S - 64), this.hash(), (this.hashed = !0)) + : (this.start = S); } - } - function c(t, e, r) { return ( - void 0 === r && (r = 16), - n(this, void 0, void 0, function () { - var n, o, a, s; - return i(this, function (i) { - switch (i.label) { - case 0: - (n = Array(t.length)), (o = Date.now()), (a = 0), (i.label = 1); - case 1: - return a < t.length - ? ((n[a] = e(t[a], a)), - (s = Date.now()) >= o + r - ? ((o = s), - [ - 4, - new Promise(function (t) { - var e = new MessageChannel(); - (e.port1.onmessage = function () { - return t(); - }), - e.port2.postMessage(null); - }), - ]) - : [3, 3]) - : [3, 4]; - case 2: - i.sent(), (i.label = 3); - case 3: - return ++a, [3, 1]; - case 4: - return [2, n]; - } - }); - }) + this.bytes > 4294967295 && + ((this.hBytes += (this.bytes / 4294967296) << 0), + (this.bytes = this.bytes % 4294967296)), + this ); } - function l(t) { - return t.then(void 0, function () {}), t; - } - function d(t) { - return parseInt(t); - } - function h(t) { - return parseFloat(t); - } - function f(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 p(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 v(t, e) { - var n = t[0] >>> 16, - i = 65535 & t[0], - r = t[1] >>> 16, - o = 65535 & t[1], - a = e[0] >>> 16, - s = 65535 & e[0], - u = e[1] >>> 16, - c = 0, - l = 0, - d = 0, - h = 0; - (d += (h += o + (65535 & e[1])) >>> 16), - (h &= 65535), - (l += (d += r + u) >>> 16), - (d &= 65535), - (c += (l += i + s) >>> 16), - (l &= 65535), - (c += n + a), - (c &= 65535), - (t[0] = (c << 16) | l), - (t[1] = (d << 16) | h); - } - function _(t, e) { - var n = t[0] >>> 16, - i = 65535 & t[0], - r = t[1] >>> 16, - o = 65535 & t[1], - a = e[0] >>> 16, - s = 65535 & e[0], - u = e[1] >>> 16, - c = 65535 & e[1], - l = 0, - d = 0, - h = 0, - f = 0; - (h += (f += o * c) >>> 16), - (f &= 65535), - (d += (h += r * c) >>> 16), - (h &= 65535), - (d += (h += o * u) >>> 16), - (h &= 65535), - (l += (d += i * c) >>> 16), - (d &= 65535), - (l += (d += r * u) >>> 16), - (d &= 65535), - (l += (d += o * s) >>> 16), - (d &= 65535), - (l += n * c + i * u + r * s + o * a), - (l &= 65535), - (t[0] = (l << 16) | d), - (t[1] = (h << 16) | f); - } - function m(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 y(t, e) { - (t[0] ^= e[0]), (t[1] ^= e[1]); - } - var E = [4283543511, 3981806797], - w = [3301882366, 444984403]; - function S(t) { - var e = [0, t[0] >>> 1]; - y(t, e), _(t, E), (e[1] = t[0] >>> 1), y(t, e), _(t, w), (e[1] = t[0] >>> 1), y(t, e); - } - var O = [2277735313, 289559509], - I = [1291169091, 658871167], - T = [0, 5], - A = [0, 1390208809], - P = [0, 944331445]; - function C(t, e) { - var n = (function (t) { - for (var e = new Uint8Array(t.length), n = 0; n < t.length; n++) { - var i = t.charCodeAt(n); - if (i > 127) return new TextEncoder().encode(t); - e[n] = i; - } - return e; - })(t); - e = e || 0; - var i, - r = [0, n.length], - o = r[1] % 16, - a = r[1] - o, - s = [0, e], - u = [0, e], - c = [0, 0], - l = [0, 0]; - for (i = 0; i < a; i += 16) - (c[0] = n[i + 4] | (n[i + 5] << 8) | (n[i + 6] << 16) | (n[i + 7] << 24)), - (c[1] = n[i] | (n[i + 1] << 8) | (n[i + 2] << 16) | (n[i + 3] << 24)), - (l[0] = n[i + 12] | (n[i + 13] << 8) | (n[i + 14] << 16) | (n[i + 15] << 24)), - (l[1] = n[i + 8] | (n[i + 9] << 8) | (n[i + 10] << 16) | (n[i + 11] << 24)), - _(c, O), - m(c, 31), - _(c, I), - y(s, c), - m(s, 27), - v(s, u), - _(s, T), - v(s, A), - _(l, I), - m(l, 33), - _(l, O), - y(u, l), - m(u, 31), - v(u, s), - _(u, T), - v(u, P); - (c[0] = 0), (c[1] = 0), (l[0] = 0), (l[1] = 0); - var d = [0, 0]; - switch (o) { - case 15: - (d[1] = n[i + 14]), b(d, 48), y(l, d); - case 14: - (d[1] = n[i + 13]), b(d, 40), y(l, d); - case 13: - (d[1] = n[i + 12]), b(d, 32), y(l, d); - case 12: - (d[1] = n[i + 11]), b(d, 24), y(l, d); - case 11: - (d[1] = n[i + 10]), b(d, 16), y(l, d); - case 10: - (d[1] = n[i + 9]), b(d, 8), y(l, d); - case 9: - (d[1] = n[i + 8]), y(l, d), _(l, I), m(l, 33), _(l, O), y(u, l); - case 8: - (d[1] = n[i + 7]), b(d, 56), y(c, d); - case 7: - (d[1] = n[i + 6]), b(d, 48), y(c, d); - case 6: - (d[1] = n[i + 5]), b(d, 40), y(c, d); - case 5: - (d[1] = n[i + 4]), b(d, 32), y(c, d); - case 4: - (d[1] = n[i + 3]), b(d, 24), y(c, d); - case 3: - (d[1] = n[i + 2]), b(d, 16), y(c, d); - case 2: - (d[1] = n[i + 1]), b(d, 8), y(c, d); - case 1: - (d[1] = n[i]), y(c, d), _(c, O), m(c, 31), _(c, I), y(s, c); + }), + (v.prototype.finalize = function () { + if (!this.finalized) { + this.finalized = !0; + var g = this.blocks, + E = this.lastByteIndex; + (g[16] = this.block), + (g[E >> 2] |= r[E & 3]), + (this.block = g[16]), + E >= 56 && + (this.hashed || this.hash(), + (g[0] = this.block), + (g[16] = + g[1] = + g[2] = + g[3] = + g[4] = + g[5] = + g[6] = + g[7] = + g[8] = + g[9] = + g[10] = + g[11] = + g[12] = + g[13] = + g[14] = + g[15] = + 0)), + (g[14] = (this.hBytes << 3) | (this.bytes >>> 29)), + (g[15] = this.bytes << 3), + this.hash(); } + }), + (v.prototype.hash = function () { + var g = this.h0, + E = this.h1, + f = this.h2, + m = this.h3, + w = this.h4, + S = this.h5, + U = this.h6, + T = this.h7, + O = this.blocks, + C, + k, + R, + H, + ee, + M, + K, + Z, + le, + q, + be; + for (C = 16; C < 64; ++C) + (ee = O[C - 15]), + (k = ((ee >>> 7) | (ee << 25)) ^ ((ee >>> 18) | (ee << 14)) ^ (ee >>> 3)), + (ee = O[C - 2]), + (R = ((ee >>> 17) | (ee << 15)) ^ ((ee >>> 19) | (ee << 13)) ^ (ee >>> 10)), + (O[C] = (O[C - 16] + k + O[C - 7] + R) << 0); + for (be = E & f, C = 0; C < 64; C += 4) + this.first + ? (this.is224 + ? ((Z = 300032), + (ee = O[0] - 1413257819), + (T = (ee - 150054599) << 0), + (m = (ee + 24177077) << 0)) + : ((Z = 704751109), + (ee = O[0] - 210244248), + (T = (ee - 1521486534) << 0), + (m = (ee + 143694565) << 0)), + (this.first = !1)) + : ((k = ((g >>> 2) | (g << 30)) ^ ((g >>> 13) | (g << 19)) ^ ((g >>> 22) | (g << 10))), + (R = ((w >>> 6) | (w << 26)) ^ ((w >>> 11) | (w << 21)) ^ ((w >>> 25) | (w << 7))), + (Z = g & E), + (H = Z ^ (g & f) ^ be), + (K = (w & S) ^ (~w & U)), + (ee = T + R + K + s[C] + O[C]), + (M = k + H), + (T = (m + ee) << 0), + (m = (ee + M) << 0)), + (k = ((m >>> 2) | (m << 30)) ^ ((m >>> 13) | (m << 19)) ^ ((m >>> 22) | (m << 10))), + (R = ((T >>> 6) | (T << 26)) ^ ((T >>> 11) | (T << 21)) ^ ((T >>> 25) | (T << 7))), + (le = m & g), + (H = le ^ (m & E) ^ Z), + (K = (T & w) ^ (~T & S)), + (ee = U + R + K + s[C + 1] + O[C + 1]), + (M = k + H), + (U = (f + ee) << 0), + (f = (ee + M) << 0), + (k = ((f >>> 2) | (f << 30)) ^ ((f >>> 13) | (f << 19)) ^ ((f >>> 22) | (f << 10))), + (R = ((U >>> 6) | (U << 26)) ^ ((U >>> 11) | (U << 21)) ^ ((U >>> 25) | (U << 7))), + (q = f & m), + (H = q ^ (f & g) ^ le), + (K = (U & T) ^ (~U & w)), + (ee = S + R + K + s[C + 2] + O[C + 2]), + (M = k + H), + (S = (E + ee) << 0), + (E = (ee + M) << 0), + (k = ((E >>> 2) | (E << 30)) ^ ((E >>> 13) | (E << 19)) ^ ((E >>> 22) | (E << 10))), + (R = ((S >>> 6) | (S << 26)) ^ ((S >>> 11) | (S << 21)) ^ ((S >>> 25) | (S << 7))), + (be = E & f), + (H = be ^ (E & m) ^ q), + (K = (S & U) ^ (~S & T)), + (ee = w + R + K + s[C + 3] + O[C + 3]), + (M = k + H), + (w = (g + ee) << 0), + (g = (ee + M) << 0); + (this.h0 = (this.h0 + g) << 0), + (this.h1 = (this.h1 + E) << 0), + (this.h2 = (this.h2 + f) << 0), + (this.h3 = (this.h3 + m) << 0), + (this.h4 = (this.h4 + w) << 0), + (this.h5 = (this.h5 + S) << 0), + (this.h6 = (this.h6 + U) << 0), + (this.h7 = (this.h7 + T) << 0); + }), + (v.prototype.hex = function () { + this.finalize(); + var g = this.h0, + E = this.h1, + f = this.h2, + m = this.h3, + w = this.h4, + S = this.h5, + U = this.h6, + T = this.h7, + O = + n[(g >> 28) & 15] + + n[(g >> 24) & 15] + + n[(g >> 20) & 15] + + n[(g >> 16) & 15] + + n[(g >> 12) & 15] + + n[(g >> 8) & 15] + + n[(g >> 4) & 15] + + n[g & 15] + + n[(E >> 28) & 15] + + n[(E >> 24) & 15] + + n[(E >> 20) & 15] + + n[(E >> 16) & 15] + + n[(E >> 12) & 15] + + n[(E >> 8) & 15] + + n[(E >> 4) & 15] + + n[E & 15] + + n[(f >> 28) & 15] + + n[(f >> 24) & 15] + + n[(f >> 20) & 15] + + n[(f >> 16) & 15] + + n[(f >> 12) & 15] + + n[(f >> 8) & 15] + + n[(f >> 4) & 15] + + n[f & 15] + + n[(m >> 28) & 15] + + n[(m >> 24) & 15] + + n[(m >> 20) & 15] + + n[(m >> 16) & 15] + + n[(m >> 12) & 15] + + n[(m >> 8) & 15] + + n[(m >> 4) & 15] + + n[m & 15] + + n[(w >> 28) & 15] + + n[(w >> 24) & 15] + + n[(w >> 20) & 15] + + n[(w >> 16) & 15] + + n[(w >> 12) & 15] + + n[(w >> 8) & 15] + + n[(w >> 4) & 15] + + n[w & 15] + + n[(S >> 28) & 15] + + n[(S >> 24) & 15] + + n[(S >> 20) & 15] + + n[(S >> 16) & 15] + + n[(S >> 12) & 15] + + n[(S >> 8) & 15] + + n[(S >> 4) & 15] + + n[S & 15] + + n[(U >> 28) & 15] + + n[(U >> 24) & 15] + + n[(U >> 20) & 15] + + n[(U >> 16) & 15] + + n[(U >> 12) & 15] + + n[(U >> 8) & 15] + + n[(U >> 4) & 15] + + n[U & 15]; return ( - y(s, r), - y(u, r), - v(s, u), - v(u, s), - S(s), - S(u), - v(s, u), - v(u, s), - ('00000000' + (s[0] >>> 0).toString(16)).slice(-8) + - ('00000000' + (s[1] >>> 0).toString(16)).slice(-8) + - ('00000000' + (u[0] >>> 0).toString(16)).slice(-8) + - ('00000000' + (u[1] >>> 0).toString(16)).slice(-8) + this.is224 || + (O += + n[(T >> 28) & 15] + + n[(T >> 24) & 15] + + n[(T >> 20) & 15] + + n[(T >> 16) & 15] + + n[(T >> 12) & 15] + + n[(T >> 8) & 15] + + n[(T >> 4) & 15] + + n[T & 15]), + O ); + }), + (v.prototype.toString = v.prototype.hex), + (v.prototype.digest = function () { + this.finalize(); + var g = this.h0, + E = this.h1, + f = this.h2, + m = this.h3, + w = this.h4, + S = this.h5, + U = this.h6, + T = this.h7, + O = [ + (g >> 24) & 255, + (g >> 16) & 255, + (g >> 8) & 255, + g & 255, + (E >> 24) & 255, + (E >> 16) & 255, + (E >> 8) & 255, + E & 255, + (f >> 24) & 255, + (f >> 16) & 255, + (f >> 8) & 255, + f & 255, + (m >> 24) & 255, + (m >> 16) & 255, + (m >> 8) & 255, + m & 255, + (w >> 24) & 255, + (w >> 16) & 255, + (w >> 8) & 255, + w & 255, + (S >> 24) & 255, + (S >> 16) & 255, + (S >> 8) & 255, + S & 255, + (U >> 24) & 255, + (U >> 16) & 255, + (U >> 8) & 255, + U & 255, + ]; + return this.is224 || O.push((T >> 24) & 255, (T >> 16) & 255, (T >> 8) & 255, T & 255), O; + }), + (v.prototype.array = v.prototype.digest), + (v.prototype.arrayBuffer = function () { + this.finalize(); + var g = new ArrayBuffer(this.is224 ? 28 : 32), + E = new DataView(g); + return ( + E.setUint32(0, this.h0), + E.setUint32(4, this.h1), + E.setUint32(8, this.h2), + E.setUint32(12, this.h3), + E.setUint32(16, this.h4), + E.setUint32(20, this.h5), + E.setUint32(24, this.h6), + this.is224 || E.setUint32(28, this.h7), + g + ); + }); + function y(g, E, f) { + var m, + w = typeof g; + if (w === 'string') { + var S = [], + U = g.length, + T = 0, + O; + for (m = 0; m < U; ++m) + (O = g.charCodeAt(m)), + O < 128 + ? (S[T++] = O) + : O < 2048 + ? ((S[T++] = 192 | (O >> 6)), (S[T++] = 128 | (O & 63))) + : O < 55296 || O >= 57344 + ? ((S[T++] = 224 | (O >> 12)), + (S[T++] = 128 | ((O >> 6) & 63)), + (S[T++] = 128 | (O & 63))) + : ((O = 65536 + (((O & 1023) << 10) | (g.charCodeAt(++m) & 1023))), + (S[T++] = 240 | (O >> 18)), + (S[T++] = 128 | ((O >> 12) & 63)), + (S[T++] = 128 | ((O >> 6) & 63)), + (S[T++] = 128 | (O & 63))); + g = S; + } else if (w === 'object') { + if (g === null) throw new Error(h); + if (p && g.constructor === ArrayBuffer) g = new Uint8Array(g); + else if (!Array.isArray(g) && (!p || !ArrayBuffer.isView(g))) throw new Error(h); + } else throw new Error(h); + g.length > 64 && (g = new v(E, !0).update(g).array()); + var C = [], + k = []; + for (m = 0; m < 64; ++m) { + var R = g[m] || 0; + (C[m] = 92 ^ R), (k[m] = 54 ^ R); } - function L(t) { - return 'function' != typeof t; - } - function D(t, e, r, o) { - var a = Object.keys(t).filter(function (t) { - return !(function (t, e) { - for (var n = 0, i = t.length; n < i; ++n) if (t[n] === e) return !0; - return !1; - })(r, t); - }), - s = l( - c( - a, - function (n) { - return (function (t, e) { - var n = l( - new Promise(function (n) { - var i = Date.now(); - u(t.bind(null, e), function () { - for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]; - var r = Date.now() - i; - if (!t[0]) - return n(function () { - return { error: t[1], duration: r }; - }); - var o = t[1]; - if (L(o)) - return n(function () { - return { value: o, duration: r }; - }); - n(function () { - return new Promise(function (t) { - var e = Date.now(); - u(o, function () { - for (var n = [], i = 0; i < arguments.length; i++) - n[i] = arguments[i]; - var o = r + Date.now() - e; - if (!n[0]) return t({ error: n[1], duration: o }); - t({ value: n[1], duration: o }); - }); - }); - }); - }); - }), - ); - return function () { - return n.then(function (t) { - return t(); - }); - }; - })(t[n], e); - }, - o, - ), + v.call(this, E, f), + this.update(k), + (this.oKeyPad = C), + (this.inner = !0), + (this.sharedMemory = f); + } + (y.prototype = new v()), + (y.prototype.finalize = function () { + if ((v.prototype.finalize.call(this), this.inner)) { + this.inner = !1; + var g = this.array(); + v.call(this, this.is224, this.sharedMemory), + this.update(this.oKeyPad), + this.update(g), + v.prototype.finalize.call(this); + } + }); + var L = l(); + (L.sha256 = L), + (L.sha224 = l(!0)), + (L.sha256.hmac = x()), + (L.sha224.hmac = x(!0)), + (c.sha256 = L.sha256), + (c.sha224 = L.sha224); + })(_POSignalsEntities || (_POSignalsEntities = {})), + (function (c) { + c.FingerprintJS = (function (h) { + 'use strict'; + var p = function () { + return ( + (p = + Object.assign || + function (b) { + for (var I, D = 1, P = arguments.length; D < P; D++) { + I = arguments[D]; + for (var N in I) Object.prototype.hasOwnProperty.call(I, N) && (b[N] = I[N]); + } + return b; + }), + p.apply(this, arguments) ); - return function () { - return n(this, void 0, void 0, function () { - var t, e, n, r; - return i(this, function (i) { - switch (i.label) { - case 0: - return [4, s]; - case 1: - return [ - 4, - c( - i.sent(), - function (t) { - return l(t()); - }, - o, - ), - ]; - case 2: - return (t = i.sent()), [4, Promise.all(t)]; - case 3: - for (e = i.sent(), n = {}, r = 0; r < a.length; ++r) n[a[r]] = e[r]; - return [2, n]; + }; + function n(u, b, I, D) { + function P(N) { + return N instanceof I + ? N + : new I(function (V) { + V(N); + }); + } + return new (I || (I = Promise))(function (N, V) { + function X(Q) { + try { + J(D.next(Q)); + } catch (z) { + V(z); } - }); + } + function Y(Q) { + try { + J(D.throw(Q)); + } catch (z) { + V(z); + } + } + function J(Q) { + Q.done ? N(Q.value) : P(Q.value).then(X, Y); + } + J((D = D.apply(u, b || [])).next()); }); - }; - } - function x() { - var t = window, - e = navigator; - return ( - g([ - 'MSCSSMatrix' in t, - 'msSetImmediate' in t, - 'msIndexedDB' in t, - 'msMaxTouchPoints' in e, - 'msPointerEnabled' in e, - ]) >= 4 - ); - } - function M() { - var t = window, - e = navigator; - return ( - g(['msWriteProfilerMark' in t, 'MSStream' in t, 'msLaunchUri' in e, 'msSaveBlob' in e]) >= - 3 && !x() - ); - } - function R() { - 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 U() { - var t = window; - return ( - g([ - 'ApplePayError' in t, - 'CSSPrimitiveValue' in t, - 'Counter' in t, - 0 === navigator.vendor.indexOf('Apple'), - 'RGBColor' in t, - 'WebKitMediaKeys' in t, - ]) >= 4 - ); - } - function k() { - 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 N() { - var t, - e = window; - return ( - (t = e.print), - /^function\s.*?\{\s*\[native code]\s*}$/.test(String(t)) && - '[object WebPageNamespace]' === String(e.browser) - ); - } - function B() { - 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 F() { - var t = window, - e = navigator, - n = t.CSS, - i = t.HTMLButtonElement; - return ( - g([ - !('getStorageUpdates' in e), - i && 'popover' in i.prototype, - 'CSSCounterStyleRule' in t, - n.supports('font-size-adjust: ex-height 0.5'), - n.supports('text-transform: full-width'), - ]) >= 4 - ); - } - function H() { - var t = document; - return ( - t.fullscreenElement || - t.msFullscreenElement || - t.mozFullScreenElement || - t.webkitFullscreenElement || - null - ); - } - function V() { - var t = R(), - e = B(), - n = window, - i = navigator, - r = 'connection'; - return t - ? g([ - !('SharedWorker' in n), - i[r] && 'ontypechange' in i[r], - !('sinkId' in new Audio()), - ]) >= 2 - : !!e && - g(['onorientationchange' in n, 'orientation' in n, /android/i.test(i.appVersion)]) >= - 2; - } - function G() { - var t = navigator, - e = window, - n = Audio.prototype, - i = e.visualViewport; - return ( - g([ - 'srLatency' in n, - 'srChannelCount' in n, - 'devicePosture' in t, - i && 'segments' in i, - 'getTextInformation' in Image.prototype, - ]) >= 3 - ); - } - function j() { - var t = window, - e = t.OfflineAudioContext || t.webkitOfflineAudioContext; - if (!e) return -2; - if ( - (function () { - return ( - U() && - !k() && - !( - g([ - 'DOMRectList' in (t = window), - 'RTCPeerConnectionIceEvent' in t, - 'SVGGeometryElement' in t, - 'ontransitioncancel' in t, - ]) >= 3 - ) - ); - var t; - })() - ) - return -1; - var n = new e(1, 5e3, 44100), - i = n.createOscillator(); - (i.type = 'triangle'), (i.frequency.value = 1e4); - var r = n.createDynamicsCompressor(); - (r.threshold.value = -50), - (r.knee.value = 40), - (r.ratio.value = 12), - (r.attack.value = 0), - (r.release.value = 0.25), - i.connect(r), - r.connect(n.destination), - i.start(0); - var o = (function (t) { - var e = function () {}; - return [ - new Promise(function (n, i) { - var r = !1, - o = 0, - a = 0; - t.oncomplete = function (t) { - return n(t.renderedBuffer); - }; - var u = function () { - setTimeout( - function () { - return i(W('timeout')); - }, - Math.min(500, a + 5e3 - Date.now()), - ); - }, - c = function () { - try { - var e = t.startRendering(); - switch ((s(e) && l(e), t.state)) { - case 'running': - (a = Date.now()), r && u(); - break; - case 'suspended': - document.hidden || o++, - r && o >= 3 ? i(W('suspended')) : setTimeout(c, 500); - } - } catch (t) { - i(t); - } - }; - c(), - (e = function () { - r || ((r = !0), a > 0 && u()); - }); - }), - e, - ]; - })(n), - a = o[0], - u = o[1], - c = l( - a.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(4500)); - }, - function (t) { - if ('timeout' === t.name || 'suspended' === t.name) return -3; - throw t; + } + function r(u, b) { + var I = { + label: 0, + sent: function () { + if (N[0] & 1) throw N[1]; + return N[1]; }, - ), + trys: [], + ops: [], + }, + D, + P, + N, + V; + return ( + (V = { next: X(0), throw: X(1), return: X(2) }), + typeof Symbol == 'function' && + (V[Symbol.iterator] = function () { + return this; + }), + V ); - return function () { - return u(), c; - }; - } - function W(t) { - var e = new Error(t); - return (e.name = t), e; - } - function K(t, e, r) { - var o, s, u; - return ( - void 0 === r && (r = 50), - n(this, void 0, void 0, function () { - var n, c; - return i(this, function (i) { - switch (i.label) { - case 0: - (n = document), (i.label = 1); - case 1: - return n.body ? [3, 3] : [4, a(r)]; - case 2: - return i.sent(), [3, 1]; - case 3: - (c = n.createElement('iframe')), (i.label = 4); - case 4: - return ( - i.trys.push([4, , 10, 11]), - [ - 4, - new Promise(function (t, i) { - var r = !1, - o = function () { - (r = !0), t(); - }; - (c.onload = o), - (c.onerror = function (t) { - (r = !0), i(t); - }); - var a = c.style; - a.setProperty('display', 'block', 'important'), - (a.position = 'absolute'), - (a.top = '0'), - (a.left = '0'), - (a.visibility = 'hidden'), - e && 'srcdoc' in c ? (c.srcdoc = e) : (c.src = 'about:blank'), - n.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: - i.sent(), (i.label = 6); - case 6: - return ( - null === - (s = null === (o = c.contentWindow) || void 0 === o ? void 0 : o.document) || - void 0 === s - ? void 0 - : s.body - ) - ? [3, 8] - : [4, a(r)]; - case 7: - return i.sent(), [3, 6]; - case 8: - return [4, t(c, c.contentWindow)]; - case 9: - return [2, i.sent()]; - case 10: - return null === (u = c.parentNode) || void 0 === u || u.removeChild(c), [7]; - case 11: - return [2]; - } - }); - }) - ); - } - function z(t) { - for ( - var e = (function (t) { - for ( - var e, - n, - i = "Unexpected syntax '".concat(t, "'"), - r = /^\s*([a-z-]*)(.*)$/i.exec(t), - o = r[1] || void 0, - a = {}, - s = /([.:#][\w-]+|\[.+?\])/gi, - u = function (t, e) { - (a[t] = a[t] || []), a[t].push(e); - }; - ; - - ) { - var c = s.exec(r[2]); - if (!c) break; - var l = c[0]; - switch (l[0]) { - case '.': - u('class', l.slice(1)); - break; - case '#': - u('id', l.slice(1)); - break; - case '[': - var d = /^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(l); - if (!d) throw new Error(i); - u( - d[1], - null !== (n = null !== (e = d[4]) && void 0 !== e ? e : d[5]) && void 0 !== n - ? n - : '', - ); + function X(J) { + return function (Q) { + return Y([J, Q]); + }; + } + function Y(J) { + if (D) throw new TypeError('Generator is already executing.'); + for (; V && ((V = 0), J[0] && (I = 0)), I; ) + try { + if ( + ((D = 1), + P && + (N = + J[0] & 2 + ? P.return + : J[0] + ? P.throw || ((N = P.return) && N.call(P), 0) + : P.next) && + !(N = N.call(P, J[1])).done) + ) + return N; + switch (((P = 0), N && (J = [J[0] & 2, N.value]), J[0])) { + case 0: + case 1: + N = J; break; + case 4: + return I.label++, { value: J[1], done: !1 }; + case 5: + I.label++, (P = J[1]), (J = [0]); + continue; + case 7: + (J = I.ops.pop()), I.trys.pop(); + continue; default: - throw new Error(i); + if ( + ((N = I.trys), + !(N = N.length > 0 && N[N.length - 1]) && (J[0] === 6 || J[0] === 2)) + ) { + I = 0; + continue; + } + if (J[0] === 3 && (!N || (J[1] > N[0] && J[1] < N[3]))) { + I.label = J[1]; + break; + } + if (J[0] === 6 && I.label < N[1]) { + (I.label = N[1]), (N = J); + break; + } + if (N && I.label < N[2]) { + (I.label = N[2]), I.ops.push(J); + break; + } + N[2] && I.ops.pop(), I.trys.pop(); + continue; } + J = b.call(u, I); + } catch (Q) { + (J = [6, Q]), (P = 0); + } finally { + D = N = 0; } - return [o, a]; - })(t), - n = e[0], - i = e[1], - r = document.createElement(null !== n && void 0 !== n ? n : 'div'), - o = 0, - a = Object.keys(i); - o < a.length; - o++ - ) { - var s = a[o], - u = i[s].join(' '); - 'style' === s ? Y(r.style, u) : r.setAttribute(s, u); + if (J[0] & 5) throw J[1]; + return { value: J[0] ? J[1] : void 0, done: !0 }; + } } - return r; - } - function Y(t, e) { - for (var n = 0, i = e.split(';'); n < i.length; n++) { - var r = i[n], - o = /^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(r); - if (o) { - var a = o[1], - s = o[2], - u = o[4]; - t.setProperty(a, s, u || ''); + function a(u, b, I) { + if (I || arguments.length === 2) + for (var D = 0, P = b.length, N; D < P; D++) + (N || !(D in b)) && (N || (N = Array.prototype.slice.call(b, 0, D)), (N[D] = b[D])); + return u.concat(N || Array.prototype.slice.call(b)); + } + var s = '4.6.1'; + function i(u, b) { + return new Promise(function (I) { + return setTimeout(I, u, b); + }); + } + function t() { + return new Promise(function (u) { + var b = new MessageChannel(); + (b.port1.onmessage = function () { + return u(); + }), + b.port2.postMessage(null); + }); + } + function e(u, b) { + b === void 0 && (b = 1 / 0); + var I = window.requestIdleCallback; + return I + ? new Promise(function (D) { + return I.call( + window, + function () { + return D(); + }, + { timeout: b }, + ); + }) + : i(Math.min(u, b)); + } + function l(u) { + return !!u && typeof u.then == 'function'; + } + function o(u, b) { + try { + var I = u(); + l(I) + ? I.then( + function (D) { + return b(!0, D); + }, + function (D) { + return b(!1, D); + }, + ) + : b(!0, I); + } catch (D) { + b(!1, D); } } - } - var X = 'mmMwWLliI0O&1', - q = '48px', - J = ['monospace', 'sans-serif', 'serif'], - Z = [ - '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 Q(t) { - var e, - n, - i, - r = !1, - o = (function () { - var t = document.createElement('canvas'); - return (t.width = 1), (t.height = 1), [t, t.getContext('2d')]; - })(), - a = o[0], - s = o[1]; - return ( - (function (t, e) { - return !(!e || !t.toDataURL); - })(a, s) - ? ((r = (function (t) { - return t.rect(0, 0, 10, 10), t.rect(2, 2, 6, 6), !t.isPointInPath(5, 5, 'evenodd'); - })(s)), - t - ? (n = i = 'skipped') - : ((n = (e = (function (t, e) { - !(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); - var n = $(t), - i = $(t); - return n !== i - ? ['unstable', 'unstable'] - : ((function (t, e) { - (t.width = 122), - (t.height = 110), - (e.globalCompositeOperation = 'multiply'); - for ( - var n = 0, - i = [ - ['#f2f', 40, 40], - ['#2ff', 80, 40], - ['#ff2', 60, 80], - ]; - n < i.length; - n++ - ) { - var r = i[n], - o = r[0], - a = r[1], - s = r[2]; - (e.fillStyle = o), - e.beginPath(), - e.arc(a, s, 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), - [$(t), n]); - })(a, s))[0]), - (i = e[1]))) - : (n = i = 'unsupported'), - { winding: r, geometry: n, text: i } - ); - } - function $(t) { - return t.toDataURL(); - } - function tt() { - var t = screen, - e = function (t) { - return f(d(t), null); - }, - n = [e(t.width), e(t.height)]; - return n.sort().reverse(), n; - } - var et, - nt, - it = 2500, - rt = 10; - function ot() { - var t = this; - return ( - (function () { - if (void 0 === nt) { - var t = function () { - var e = at(); - st(e) ? (nt = setTimeout(t, it)) : ((et = e), (nt = void 0)); - }; - t(); - } - })(), - function () { - return n(t, void 0, void 0, function () { - var t; - return i(this, function (e) { - switch (e.label) { + function x(u, b, I) { + return ( + I === void 0 && (I = 16), + n(this, void 0, void 0, function () { + var D, P, N, V; + return r(this, function (X) { + switch (X.label) { case 0: - return st((t = at())) - ? et - ? [2, r([], et, !0)] - : H() - ? [ - 4, - ((n = document), - ( - n.exitFullscreen || - n.msExitFullscreen || - n.mozCancelFullScreen || - n.webkitExitFullscreen - ).call(n)), - ] - : [3, 2] - : [3, 2]; + (D = Array(u.length)), (P = Date.now()), (N = 0), (X.label = 1); case 1: - e.sent(), (t = at()), (e.label = 2); + return N < u.length + ? ((D[N] = b(u[N], N)), + (V = Date.now()), + V >= P + I ? ((P = V), [4, t()]) : [3, 3]) + : [3, 4]; case 2: - return st(t) || (et = t), [2, t]; + X.sent(), (X.label = 3); + case 3: + return ++N, [3, 1]; + case 4: + return [2, D]; } - var n; }); - }); - } - ); - } - function at() { - var t = screen; - return [ - f(h(t.availTop), null), - f(h(t.width) - h(t.availWidth) - f(h(t.availLeft), 0), null), - f(h(t.height) - h(t.availHeight) - f(h(t.availTop), 0), null), - f(h(t.availLeft), null), - ]; - } - function st(t) { - for (var e = 0; e < 4; ++e) if (t[e]) return !1; - return !0; - } - function ut(t) { - t.style.setProperty('visibility', 'hidden', 'important'), - t.style.setProperty('display', 'block', 'important'); - } - function ct(t) { - return matchMedia('(inverted-colors: '.concat(t, ')')).matches; - } - function lt(t) { - return matchMedia('(forced-colors: '.concat(t, ')')).matches; - } - var dt = 100; - function ht(t) { - return matchMedia('(prefers-contrast: '.concat(t, ')')).matches; - } - function ft(t) { - return matchMedia('(prefers-reduced-motion: '.concat(t, ')')).matches; - } - function gt(t) { - return matchMedia('(prefers-reduced-transparency: '.concat(t, ')')).matches; - } - function pt(t) { - return matchMedia('(dynamic-range: '.concat(t, ')')).matches; - } - var vt = Math, - _t = function () { - return 0; - }, - mt = 'mmMwWLliI0fiflO&1', - bt = { - default: [], - apple: [{ font: '-apple-system-body' }], - serif: [{ fontFamily: 'serif' }], - sans: [{ fontFamily: 'sans-serif' }], - mono: [{ fontFamily: 'monospace' }], - min: [{ fontSize: '1px' }], - system: [{ fontFamily: 'system-ui' }], - }, - yt = function () { - for (var t = window; ; ) { - var e = t.parent; - if (!e || e === t) return !1; - try { - if (e.location.origin !== t.location.origin) return !0; - } catch (t) { - if (t instanceof Error && 'SecurityError' === t.name) return !0; - throw t; + }) + ); + } + function v(u) { + return u.then(void 0, function () {}), u; + } + function y(u, b) { + for (var I = 0, D = u.length; I < D; ++I) if (u[I] === b) return !0; + return !1; + } + function L(u, b) { + return !y(u, b); + } + function g(u) { + return parseInt(u); + } + function E(u) { + return parseFloat(u); + } + function f(u, b) { + return typeof u == 'number' && isNaN(u) ? b : u; + } + function m(u) { + return u.reduce(function (b, I) { + return b + (I ? 1 : 0); + }, 0); + } + function w(u, b) { + if ((b === void 0 && (b = 1), Math.abs(b) >= 1)) return Math.round(u / b) * b; + var I = 1 / b; + return Math.round(u * I) / I; + } + function S(u) { + for ( + var b, + I, + D = "Unexpected syntax '".concat(u, "'"), + P = /^\s*([a-z-]*)(.*)$/i.exec(u), + N = P[1] || void 0, + V = {}, + X = /([.:#][\w-]+|\[.+?\])/gi, + Y = function (me, Ie) { + (V[me] = V[me] || []), V[me].push(Ie); + }; + ; + + ) { + var J = X.exec(P[2]); + if (!J) break; + var Q = J[0]; + switch (Q[0]) { + case '.': + Y('class', Q.slice(1)); + break; + case '#': + Y('id', Q.slice(1)); + break; + case '[': { + var z = /^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(Q); + if (z) + Y( + z[1], + (I = (b = z[4]) !== null && b !== void 0 ? b : z[5]) !== null && I !== void 0 + ? I + : '', + ); + else throw new Error(D); + break; + } + default: + throw new Error(D); } - t = e; } - }, - Et = -1, - wt = -2, - St = 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, - ]), - Ot = new Set([34047, 35723, 36063, 34852, 34853, 34854, 34229, 36392, 36795, 38449]), - It = ['FRAGMENT_SHADER', 'VERTEX_SHADER'], - Tt = ['LOW_FLOAT', 'MEDIUM_FLOAT', 'HIGH_FLOAT', 'LOW_INT', 'MEDIUM_INT', 'HIGH_INT'], - At = 'WEBGL_debug_renderer_info', - Pt = 'WEBGL_polygon_mode'; - function Ct(t) { - if (t.webgl) return t.webgl.context; - var e, - n = document.createElement('canvas'); - n.addEventListener('webglCreateContextError', function () { - return (e = void 0); - }); - for (var i = 0, r = ['webgl', 'experimental-webgl']; i < r.length; i++) { - var o = r[i]; - try { - e = n.getContext(o); - } catch (t) {} - if (e) break; + return [N, V]; } - return (t.webgl = { context: e }), e; - } - function Lt(t, e, n) { - var i = t.getShaderPrecisionFormat(t[e], t[n]); - return i ? [i.rangeMin, i.rangeMax, i.precision] : []; - } - function Dt(t) { - return Object.keys(t.__proto__).filter(xt); - } - function xt(t) { - return 'string' == typeof t && !t.match(/[^A-Z0-9_x]/); - } - function Mt() { - return B(); - } - function Rt(t) { - return 'function' == typeof t.getParameter; - } - var Ut = { - fonts: function () { - var t = this; - return K(function (e, r) { - var o = r.document; - return n(t, void 0, void 0, function () { - var t, e, n, r, a, s, u, c, l, d, h; - return i(this, function (i) { - for ( - (t = o.body).style.fontSize = q, - (e = o.createElement('div')).style.setProperty( - 'visibility', - 'hidden', - 'important', - ), - n = {}, - r = {}, - a = function (t) { - var n = o.createElement('span'), - i = n.style; - return ( - (i.position = 'absolute'), - (i.top = '0'), - (i.left = '0'), - (i.fontFamily = t), - (n.textContent = X), - e.appendChild(n), - n - ); - }, - s = function (t, e) { - return a("'".concat(t, "',").concat(e)); - }, - u = function () { - for ( - var t = {}, - e = function (e) { - t[e] = J.map(function (t) { - return s(e, t); - }); - }, - n = 0, - i = Z; - n < i.length; - n++ - ) - e(i[n]); - return t; - }, - c = function (t) { - return J.some(function (e, i) { - return t[i].offsetWidth !== n[e] || t[i].offsetHeight !== r[e]; - }); - }, - l = J.map(a), - d = u(), - t.appendChild(e), - h = 0; - h < J.length; - h++ - ) - (n[J[h]] = l[h].offsetWidth), (r[J[h]] = l[h].offsetHeight); - return [ - 2, - Z.filter(function (t) { - return c(d[t]); - }), - ]; + function U(u) { + for (var b = new Uint8Array(u.length), I = 0; I < u.length; I++) { + var D = u.charCodeAt(I); + if (D > 127) return new TextEncoder().encode(u); + b[I] = D; + } + return b; + } + function T(u, b) { + var I = u[0] >>> 16, + D = u[0] & 65535, + P = u[1] >>> 16, + N = u[1] & 65535, + V = b[0] >>> 16, + X = b[0] & 65535, + Y = b[1] >>> 16, + J = b[1] & 65535, + Q = 0, + z = 0, + me = 0, + Ie = 0; + (Ie += N + J), + (me += Ie >>> 16), + (Ie &= 65535), + (me += P + Y), + (z += me >>> 16), + (me &= 65535), + (z += D + X), + (Q += z >>> 16), + (z &= 65535), + (Q += I + V), + (Q &= 65535), + (u[0] = (Q << 16) | z), + (u[1] = (me << 16) | Ie); + } + function O(u, b) { + var I = u[0] >>> 16, + D = u[0] & 65535, + P = u[1] >>> 16, + N = u[1] & 65535, + V = b[0] >>> 16, + X = b[0] & 65535, + Y = b[1] >>> 16, + J = b[1] & 65535, + Q = 0, + z = 0, + me = 0, + Ie = 0; + (Ie += N * J), + (me += Ie >>> 16), + (Ie &= 65535), + (me += P * J), + (z += me >>> 16), + (me &= 65535), + (me += N * Y), + (z += me >>> 16), + (me &= 65535), + (z += D * J), + (Q += z >>> 16), + (z &= 65535), + (z += P * Y), + (Q += z >>> 16), + (z &= 65535), + (z += N * X), + (Q += z >>> 16), + (z &= 65535), + (Q += I * J + D * Y + P * X + N * V), + (Q &= 65535), + (u[0] = (Q << 16) | z), + (u[1] = (me << 16) | Ie); + } + function C(u, b) { + var I = u[0]; + (b %= 64), + b === 32 + ? ((u[0] = u[1]), (u[1] = I)) + : b < 32 + ? ((u[0] = (I << b) | (u[1] >>> (32 - b))), (u[1] = (u[1] << b) | (I >>> (32 - b)))) + : ((b -= 32), + (u[0] = (u[1] << b) | (I >>> (32 - b))), + (u[1] = (I << b) | (u[1] >>> (32 - b)))); + } + function k(u, b) { + (b %= 64), + b !== 0 && + (b < 32 + ? ((u[0] = u[1] >>> (32 - b)), (u[1] = u[1] << b)) + : ((u[0] = u[1] << (b - 32)), (u[1] = 0))); + } + function R(u, b) { + (u[0] ^= b[0]), (u[1] ^= b[1]); + } + var H = [4283543511, 3981806797], + ee = [3301882366, 444984403]; + function M(u) { + var b = [0, u[0] >>> 1]; + R(u, b), O(u, H), (b[1] = u[0] >>> 1), R(u, b), O(u, ee), (b[1] = u[0] >>> 1), R(u, b); + } + var K = [2277735313, 289559509], + Z = [1291169091, 658871167], + le = [0, 5], + q = [0, 1390208809], + be = [0, 944331445]; + function we(u, b) { + var I = U(u); + b = b || 0; + var D = [0, I.length], + P = D[1] % 16, + N = D[1] - P, + V = [0, b], + X = [0, b], + Y = [0, 0], + J = [0, 0], + Q; + for (Q = 0; Q < N; Q = Q + 16) + (Y[0] = I[Q + 4] | (I[Q + 5] << 8) | (I[Q + 6] << 16) | (I[Q + 7] << 24)), + (Y[1] = I[Q] | (I[Q + 1] << 8) | (I[Q + 2] << 16) | (I[Q + 3] << 24)), + (J[0] = I[Q + 12] | (I[Q + 13] << 8) | (I[Q + 14] << 16) | (I[Q + 15] << 24)), + (J[1] = I[Q + 8] | (I[Q + 9] << 8) | (I[Q + 10] << 16) | (I[Q + 11] << 24)), + O(Y, K), + C(Y, 31), + O(Y, Z), + R(V, Y), + C(V, 27), + T(V, X), + O(V, le), + T(V, q), + O(J, Z), + C(J, 33), + O(J, K), + R(X, J), + C(X, 31), + T(X, V), + O(X, le), + T(X, be); + (Y[0] = 0), (Y[1] = 0), (J[0] = 0), (J[1] = 0); + var z = [0, 0]; + switch (P) { + case 15: + (z[1] = I[Q + 14]), k(z, 48), R(J, z); + case 14: + (z[1] = I[Q + 13]), k(z, 40), R(J, z); + case 13: + (z[1] = I[Q + 12]), k(z, 32), R(J, z); + case 12: + (z[1] = I[Q + 11]), k(z, 24), R(J, z); + case 11: + (z[1] = I[Q + 10]), k(z, 16), R(J, z); + case 10: + (z[1] = I[Q + 9]), k(z, 8), R(J, z); + case 9: + (z[1] = I[Q + 8]), R(J, z), O(J, Z), C(J, 33), O(J, K), R(X, J); + case 8: + (z[1] = I[Q + 7]), k(z, 56), R(Y, z); + case 7: + (z[1] = I[Q + 6]), k(z, 48), R(Y, z); + case 6: + (z[1] = I[Q + 5]), k(z, 40), R(Y, z); + case 5: + (z[1] = I[Q + 4]), k(z, 32), R(Y, z); + case 4: + (z[1] = I[Q + 3]), k(z, 24), R(Y, z); + case 3: + (z[1] = I[Q + 2]), k(z, 16), R(Y, z); + case 2: + (z[1] = I[Q + 1]), k(z, 8), R(Y, z); + case 1: + (z[1] = I[Q]), R(Y, z), O(Y, K), C(Y, 31), O(Y, Z), R(V, Y); + } + return ( + R(V, D), + R(X, D), + T(V, X), + T(X, V), + M(V), + M(X), + T(V, X), + T(X, V), + ('00000000' + (V[0] >>> 0).toString(16)).slice(-8) + + ('00000000' + (V[1] >>> 0).toString(16)).slice(-8) + + ('00000000' + (X[0] >>> 0).toString(16)).slice(-8) + + ('00000000' + (X[1] >>> 0).toString(16)).slice(-8) + ); + } + function He(u) { + var b; + return p( + { + name: u.name, + message: u.message, + stack: + (b = u.stack) === null || b === void 0 + ? void 0 + : b.split(` +`), + }, + u, + ); + } + function B(u) { + return /^function\s.*?\{\s*\[native code]\s*}$/.test(String(u)); + } + function ne(u) { + return typeof u != 'function'; + } + function se(u, b) { + var I = v( + new Promise(function (D) { + var P = Date.now(); + o(u.bind(null, b), function () { + for (var N = [], V = 0; V < arguments.length; V++) N[V] = arguments[V]; + var X = Date.now() - P; + if (!N[0]) + return D(function () { + return { error: N[1], duration: X }; + }); + var Y = N[1]; + if (ne(Y)) + return D(function () { + return { value: Y, duration: X }; + }); + D(function () { + return new Promise(function (J) { + var Q = Date.now(); + o(Y, function () { + for (var z = [], me = 0; me < arguments.length; me++) z[me] = arguments[me]; + var Ie = X + Date.now() - Q; + if (!z[0]) return J({ error: z[1], duration: Ie }); + J({ value: z[1], duration: Ie }); + }); + }); }); }); + }), + ); + return function () { + return I.then(function (P) { + return P(); }); - }, - domBlockers: function (t) { - var e = (void 0 === t ? {} : t).debug; + }; + } + function oe(u, b, I, D) { + var P = Object.keys(u).filter(function (V) { + return L(I, V); + }), + N = v( + x( + P, + function (V) { + return se(u[V], b); + }, + D, + ), + ); + return function () { return n(this, void 0, void 0, function () { - var t, r, o, s, u; - return i(this, function (c) { - switch (c.label) { + var X, Y, J, Q, z; + return r(this, function (me) { + switch (me.label) { case 0: - return U() || V() - ? ((l = atob), - (t = { - abpIndo: [ - '#Iklan-Melayang', - '#Kolom-Iklan-728', - '#SidebarIklan-wrapper', - '[title="ALIENBOLA" i]', - l('I0JveC1CYW5uZXItYWRz'), - ], - abpvn: [ - '.quangcao', - '#mobileCatfish', - l('LmNsb3NlLWFkcw=='), - '[id^="bn_bottom_fixed_"]', - '#pmadv', - ], - adBlockFinland: [ - '.mainostila', - l('LnNwb25zb3JpdA=='), - '.ylamainos', - l('YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd'), - l('YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd'), - ], - adBlockPersian: [ - '#navbar_notice_50', - '.kadr', - 'TABLE[width="140px"]', - '#divAgahi', - l('YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd'), - ], - adBlockWarningRemoval: [ - '#adblock-honeypot', - '.adblocker-root', - '.wp_adblock_detect', - l('LmhlYWRlci1ibG9ja2VkLWFk'), - l('I2FkX2Jsb2NrZXI='), - ], - adGuardAnnoyances: [ - '.hs-sosyal', - '#cookieconsentdiv', - 'div[class^="app_gdpr"]', - '.as-oil', - '[data-cypress="soft-push-notification-modal"]', - ], - adGuardBase: [ - '.BetterJsPopOverlay', - l('I2FkXzMwMFgyNTA='), - l('I2Jhbm5lcmZsb2F0MjI='), - l('I2NhbXBhaWduLWJhbm5lcg=='), - l('I0FkLUNvbnRlbnQ='), - ], - adGuardChinese: [ - l('LlppX2FkX2FfSA=='), - l('YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd'), - '#widget-quan', - l('YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd'), - l('YVtocmVmKj0iLjE5NTZobC5jb20vIl0='), - ], - adGuardFrench: [ - '#pavePub', - l('LmFkLWRlc2t0b3AtcmVjdGFuZ2xl'), - '.mobile_adhesion', - '.widgetadv', - l('LmFkc19iYW4='), - ], - adGuardGerman: ['aside[data-portal-id="leaderboard"]'], - adGuardJapanese: [ - '#kauli_yad_1', - l('YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0='), - l('Ll9wb3BJbl9pbmZpbml0ZV9hZA=='), - l('LmFkZ29vZ2xl'), - l('Ll9faXNib29zdFJldHVybkFk'), - ], - adGuardMobile: [ - l('YW1wLWF1dG8tYWRz'), - l('LmFtcF9hZA=='), - 'amp-embed[type="24smi"]', - '#mgid_iframe1', - l('I2FkX2ludmlld19hcmVh'), - ], - adGuardRussian: [ - l('YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0='), - l('LnJlY2xhbWE='), - 'div[id^="smi2adblock"]', - l('ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd'), - '#psyduckpockeball', - ], - adGuardSocial: [ - l('YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0='), - l('YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0='), - '.etsy-tweet', - '#inlineShare', - '.popup-social', - ], - adGuardSpanishPortuguese: [ - '#barraPublicidade', - '#Publicidade', - '#publiEspecial', - '#queTooltip', - '.cnt-publi', - ], - adGuardTrackingProtection: [ - '#qoo-counter', - l('YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=='), - l('YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0='), - l('YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=='), - '#top100counter', - ], - adGuardTurkish: [ - '#backkapat', - l('I3Jla2xhbWk='), - l('YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0='), - l('YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd'), - l('YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ=='), - ], - bulgarian: [ - l('dGQjZnJlZW5ldF90YWJsZV9hZHM='), - '#ea_intext_div', - '.lapni-pop-over', - '#xenium_hot_offers', - ], - easyList: [ - '.yb-floorad', - l('LndpZGdldF9wb19hZHNfd2lkZ2V0'), - l('LnRyYWZmaWNqdW5reS1hZA=='), - '.textad_headline', - l('LnNwb25zb3JlZC10ZXh0LWxpbmtz'), - ], - easyListChina: [ - l('LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=='), - l('LmZyb250cGFnZUFkdk0='), - '#taotaole', - '#aafoot.top_box', - '.cfa_popup', - ], - easyListCookie: [ - '.ezmob-footer', - '.cc-CookieWarning', - '[data-cookie-number]', - l('LmF3LWNvb2tpZS1iYW5uZXI='), - '.sygnal24-gdpr-modal-wrap', - ], - easyListCzechSlovak: [ - '#onlajny-stickers', - l('I3Jla2xhbW5pLWJveA=='), - l('LnJla2xhbWEtbWVnYWJvYXJk'), - '.sklik', - l('W2lkXj0ic2tsaWtSZWtsYW1hIl0='), - ], - easyListDutch: [ - l('I2FkdmVydGVudGll'), - l('I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=='), - '.adstekst', - l('YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0='), - '#semilo-lrectangle', - ], - easyListGermany: [ - '#SSpotIMPopSlider', - l('LnNwb25zb3JsaW5rZ3J1ZW4='), - l('I3dlcmJ1bmdza3k='), - l('I3Jla2xhbWUtcmVjaHRzLW1pdHRl'), - l('YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0='), - ], - easyListItaly: [ - l('LmJveF9hZHZfYW5udW5jaQ=='), - '.sb-box-pubbliredazionale', - l('YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd'), - l('YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd'), - l('YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ=='), - ], - easyListLithuania: [ - l('LnJla2xhbW9zX3RhcnBhcw=='), - l('LnJla2xhbW9zX251b3JvZG9z'), - l('aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd'), - l('aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd'), - l('aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd'), - ], - estonian: [l('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: [ - l('YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=='), - l('YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=='), - 'article.category-samarbete', - l('ZGl2LmhvbGlkQWRz'), - 'ul.adsmodern', - ], - greekAdBlock: [ - l('QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd'), - l('QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=='), - l('QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd'), - 'DIV.agores300', - 'TABLE.advright', - ], - hungarian: [ - '#cemp_doboz', - '.optimonk-iframe-container', - l('LmFkX19tYWlu'), - l('W2NsYXNzKj0iR29vZ2xlQWRzIl0='), - '#hirdetesek_box', - ], - iDontCareAboutCookies: [ - '.alert-info[data-block-track*="CookieNotice"]', - '.ModuleTemplateCookieIndicator', - '.o--cookies--container', - '#cookies-policy-sticky', - '#stickyCookieBar', - ], - icelandicAbp: [ - l('QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ=='), - ], - latvian: [ - l( - 'YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0=', - ), - l( - 'YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==', - ), - ], - listKr: [ - l('YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0='), - l('I2xpdmVyZUFkV3JhcHBlcg=='), - l('YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=='), - l('aW5zLmZhc3R2aWV3LWFk'), - '.revenue_unit_item.dable', - ], - listeAr: [ - l('LmdlbWluaUxCMUFk'), - '.right-and-left-sponsers', - l('YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=='), - l('YVtocmVmKj0iYm9vcmFxLm9yZyJd'), - l('YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd'), - ], - listeFr: [ - l('YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=='), - l('I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=='), - l('YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0='), - '.site-pub-interstitiel', - 'div[id^="crt-"][data-criteo-id]', - ], - officialPolish: [ - '#ceneo-placeholder-ceneo-12', - l('W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd'), - l( - 'YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ==', - ), - l('YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=='), - l('ZGl2I3NrYXBpZWNfYWQ='), - ], - ro: [ - l('YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd'), - l('YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd'), - l( - 'YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0=', - ), - l('YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd'), - 'a[href^="/url/"]', - ], - ruAd: [ - l('YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd'), - l('YVtocmVmKj0iLy91dGltZy5ydS8iXQ=='), - l('YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0='), - '#pgeldiz', - '.yandex-rtb-block', - ], - thaiAds: [ - 'a[href*=macau-uta-popup]', - l('I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=='), - l('LmFkczMwMHM='), - '.bumq', - '.img-kosana', - ], - webAnnoyancesUltralist: [ - '#mod-social-share-2', - '#social-tools', - l('LmN0cGwtZnVsbGJhbm5lcg=='), - '.zergnet-recommend', - '.yt.btn-link.btn-md.btn', - ], - }), - (r = Object.keys(t)), - [ - 4, - (function (t) { - var e; - return n(this, void 0, void 0, function () { - var n, r, o, s, u, c, l; - return i(this, function (i) { - switch (i.label) { - case 0: - for ( - n = document, - r = n.createElement('div'), - o = new Array(t.length), - s = {}, - ut(r), - l = 0; - l < t.length; - ++l - ) - 'DIALOG' === (u = z(t[l])).tagName && u.show(), - ut((c = n.createElement('div'))), - c.appendChild(u), - r.appendChild(c), - (o[l] = u); - i.label = 1; - case 1: - return n.body ? [3, 3] : [4, a(50)]; - case 2: - return i.sent(), [3, 1]; - case 3: - n.body.appendChild(r); - try { - for (l = 0; l < t.length; ++l) - o[l].offsetParent || (s[t[l]] = !0); - } finally { - null === (e = r.parentNode) || - void 0 === e || - e.removeChild(r); - } - return [2, s]; - } - }); - }); - })( - (u = []).concat.apply( - u, - r.map(function (e) { - return t[e]; - }), - ), - ), - ]) - : [2, void 0]; + return [4, N]; case 1: return ( - (o = c.sent()), - e && - (function (t, e) { - for ( - var n = 'DOM blockers debug:\n```', i = 0, r = Object.keys(t); - i < r.length; - i++ - ) { - var o = r[i]; - n += '\n'.concat(o, ':'); - for (var a = 0, s = t[o]; a < s.length; a++) { - var u = s[a]; - n += '\n '.concat(e[u] ? '🚫' : '➡️', ' ').concat(u); - } - } - console.log(''.concat(n, '\n```')); - })(t, o), - (s = r.filter(function (e) { - var n = t[e]; - return ( - g( - n.map(function (t) { - return o[t]; - }), - ) > - 0.6 * n.length - ); - })).sort(), - [2, s] + (X = me.sent()), + [ + 4, + x( + X, + function (Ie) { + return v(Ie()); + }, + D, + ), + ] ); + case 2: + return (Y = me.sent()), [4, Promise.all(Y)]; + case 3: + for (J = me.sent(), Q = {}, z = 0; z < P.length; ++z) Q[P[z]] = J[z]; + return [2, Q]; } - var l; }); }); - }, - fontPreferences: function () { - return ( - (t = function (t, e) { - for (var n = {}, i = {}, r = 0, o = Object.keys(bt); r < o.length; r++) { - var a = o[r], - s = bt[a], - u = s[0], - c = void 0 === u ? {} : u, - l = s[1], - d = void 0 === l ? mt : l, - h = t.createElement('span'); - (h.textContent = d), (h.style.whiteSpace = 'nowrap'); - for (var f = 0, g = Object.keys(c); f < g.length; f++) { - var p = g[f], - v = c[p]; - void 0 !== v && (h.style[p] = v); - } - (n[a] = h), e.append(t.createElement('br'), h); - } - for (var _ = 0, m = Object.keys(bt); _ < m.length; _++) - i[(a = m[_])] = n[a].getBoundingClientRect().width; - return i; - }), - void 0 === e && (e = 4e3), - K(function (n, i) { - var o = i.document, - a = o.body, - s = a.style; - (s.width = ''.concat(e, 'px')), - (s.webkitTextSizeAdjust = s.textSizeAdjust = 'none'), - R() - ? (a.style.zoom = ''.concat(1 / i.devicePixelRatio)) - : U() && (a.style.zoom = 'reset'); - var u = o.createElement('div'); - return ( - (u.textContent = r([], Array((e / 20) << 0), !0) - .map(function () { - return 'word'; - }) - .join(' ')), - a.appendChild(u), - t(o, a) - ); - }, '') - ); - var t, e; - }, - audio: function () { - return (U() && F() && N()) || - (R() && - G() && - ((t = window), - (e = t.URLPattern), - g([ - 'union' in Set.prototype, - 'Iterator' in t, - e && 'hasRegExpGroups' in e.prototype, - 'RGB8' in WebGLRenderingContext.prototype, - ]) >= 3)) - ? -4 - : j(); - var t, e; - }, - screenFrame: function () { - var t = this; - if (U() && F() && N()) - return function () { - return Promise.resolve(void 0); - }; - var e = ot(); - return function () { - return n(t, void 0, void 0, function () { - var t, n; - return i(this, function (i) { - switch (i.label) { - case 0: - return [4, e()]; - case 1: - return ( - (t = i.sent()), - [ - 2, - [ - (n = function (t) { - return null === t ? null : p(t, rt); - })(t[0]), - n(t[1]), - n(t[2]), - n(t[3]), - ], - ] - ); - } - }); - }); - }; - }, - canvas: function () { - return Q(U() && F() && N()); - }, - osCpu: function () { - return navigator.oscpu; - }, - languages: function () { - var t, - e = navigator, - n = [], - i = e.language || e.userLanguage || e.browserLanguage || e.systemLanguage; - if ((void 0 !== i && n.push([i]), Array.isArray(e.languages))) - (R() && - g([ - !('MediaSettingsRange' in (t = window)), - 'RTCEncodedAudioFrame' in t, - '' + t.Intl == '[object Intl]', - '' + t.Reflect == '[object Reflect]', - ]) >= 3) || - n.push(e.languages); - else if ('string' == typeof e.languages) { - var r = e.languages; - r && n.push(r.split(',')); - } - return n; - }, - colorDepth: function () { - return window.screen.colorDepth; - }, - deviceMemory: function () { - return f(h(navigator.deviceMemory), void 0); - }, - screenResolution: function () { - if (!(U() && F() && N())) return tt(); - }, - hardwareConcurrency: function () { - return f(d(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 i, - r = - ((i = new Date().getFullYear()), - -Math.max( - h(new Date(i, 0, 1).getTimezoneOffset()), - h(new Date(i, 6, 1).getTimezoneOffset()), - )); - return 'UTC'.concat(r >= 0 ? '+' : '').concat(r); - }, - sessionStorage: function () { - try { - return !!window.sessionStorage; - } catch (t) { - return !0; - } - }, - localStorage: function () { - try { - return !!window.localStorage; - } catch (t) { - return !0; - } - }, - indexedDB: function () { - if (!x() && !M()) - 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 && U() && !k() - ? (function () { - if ('iPad' === navigator.platform) return !0; - var t = screen, - e = t.width / t.height; - return ( - g([ - 'MediaSource' in window, - !!Element.prototype.webkitRequestFullscreen, - e > 0.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 i = t[n]; - if (i) { - for (var r = [], o = 0; o < i.length; ++o) { - var a = i[o]; - r.push({ type: a.type, suffixes: a.suffixes }); - } - e.push({ name: i.name, description: i.description, mimeTypes: r }); - } - } - return e; - } - }, - touchSupport: function () { - var t, - e = navigator, - n = 0; - void 0 !== e.maxTouchPoints - ? (n = d(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 i = n[e], - r = window[i]; - r && 'object' == typeof r && t.push(i); - } - 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 !!ct('inverted') || (!ct('none') && void 0); - }, - forcedColors: function () { - return !!lt('active') || (!lt('none') && void 0); - }, - monochrome: function () { - if (matchMedia('(min-monochrome: 0)').matches) { - for (var t = 0; t <= dt; ++t) - if (matchMedia('(max-monochrome: '.concat(t, ')')).matches) return t; - throw new Error('Too high value'); - } - }, - contrast: function () { - return ht('no-preference') - ? 0 - : ht('high') || ht('more') - ? 1 - : ht('low') || ht('less') - ? -1 - : ht('forced') - ? 10 - : void 0; - }, - reducedMotion: function () { - return !!ft('reduce') || (!ft('no-preference') && void 0); - }, - reducedTransparency: function () { - return !!gt('reduce') || (!gt('no-preference') && void 0); - }, - hdr: function () { - return !!pt('high') || (!pt('standard') && void 0); - }, - math: function () { - var t, - e = vt.acos || _t, - n = vt.acosh || _t, - i = vt.asin || _t, - r = vt.asinh || _t, - o = vt.atanh || _t, - a = vt.atan || _t, - s = vt.sin || _t, - u = vt.sinh || _t, - c = vt.cos || _t, - l = vt.cosh || _t, - d = vt.tan || _t, - h = vt.tanh || _t, - f = vt.exp || _t, - g = vt.expm1 || _t, - p = vt.log1p || _t; - return { - acos: e(0.12312423423423424), - acosh: n(1e308), - acoshPf: ((t = 1e154), vt.log(t + vt.sqrt(t * t - 1))), - asin: i(0.12312423423423424), - asinh: r(1), - asinhPf: (function (t) { - return vt.log(t + vt.sqrt(t * t + 1)); - })(1), - atanh: o(0.5), - atanhPf: (function (t) { - return vt.log((1 + t) / (1 - t)) / 2; - })(0.5), - atan: a(0.5), - sin: s(-1e300), - sinh: u(1), - sinhPf: (function (t) { - return vt.exp(t) - 1 / vt.exp(t) / 2; - })(1), - cos: c(10.000000000123), - cosh: l(1), - coshPf: (function (t) { - return (vt.exp(t) + 1 / vt.exp(t)) / 2; - })(1), - tan: d(-1e300), - tanh: h(1), - tanhPf: (function (t) { - return (vt.exp(2 * t) - 1) / (vt.exp(2 * t) + 1); - })(1), - exp: f(1), - expm1: g(1), - expm1Pf: (function (t) { - return vt.exp(t) - 1; - })(1), - log1p: p(10), - log1pPf: (function (t) { - return vt.log(1 + t); - })(10), - powPI: (function (t) { - return vt.pow(vt.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 ? void 0 : t.canMakePayments)) - return -1; - if (yt()) return -3; - try { - return t.canMakePayments() ? 1 : 0; - } catch (t) { - return (function (t) { - if ( - t instanceof Error && - 'InvalidAccessError' === t.name && - /\bfrom\b.*\binsecure\b/i.test(t.message) - ) - return -2; - 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); - }, - audioBaseLatency: function () { - var t; - return V() || U() - ? window.AudioContext && null !== (t = new AudioContext().baseLatency) && void 0 !== t - ? t - : -1 - : -2; - }, - dateTimeLocale: function () { - if (!window.Intl) return -1; - var t = window.Intl.DateTimeFormat; - if (!t) return -2; - var e = t().resolvedOptions().locale; - return e || '' === e ? e : -3; - }, - webGlBasics: function (t) { - var e, - n, - i, - r, - o, - a, - s = Ct(t.cache); - if (!s) return Et; - if (!Rt(s)) return wt; - var u = Mt() ? null : s.getExtension(At); - return { - version: - (null === (e = s.getParameter(s.VERSION)) || void 0 === e - ? void 0 - : e.toString()) || '', - vendor: - (null === (n = s.getParameter(s.VENDOR)) || void 0 === n ? void 0 : n.toString()) || - '', - vendorUnmasked: u - ? null === (i = s.getParameter(u.UNMASKED_VENDOR_WEBGL)) || void 0 === i - ? void 0 - : i.toString() - : '', - renderer: - (null === (r = s.getParameter(s.RENDERER)) || void 0 === r - ? void 0 - : r.toString()) || '', - rendererUnmasked: u - ? null === (o = s.getParameter(u.UNMASKED_RENDERER_WEBGL)) || void 0 === o - ? void 0 - : o.toString() - : '', - shadingLanguageVersion: - (null === (a = s.getParameter(s.SHADING_LANGUAGE_VERSION)) || void 0 === a - ? void 0 - : a.toString()) || '', - }; - }, - webGlExtensions: function (t) { - var e = Ct(t.cache); - if (!e) return Et; - if (!Rt(e)) return wt; - var n = e.getSupportedExtensions(), - i = e.getContextAttributes(), - r = [], - o = [], - a = [], - s = [], - u = []; - if (i) - for (var c = 0, l = Object.keys(i); c < l.length; c++) { - var d = l[c]; - o.push(''.concat(d, '=').concat(i[d])); - } - for (var h = 0, f = Dt(e); h < f.length; h++) { - var g = e[(E = f[h])]; - a.push( - '' - .concat(E, '=') - .concat(g) - .concat(St.has(g) ? '='.concat(e.getParameter(g)) : ''), - ); - } - if (n) - for (var p = 0, v = n; p < v.length; p++) { - var _ = v[p]; - if (!((_ === At && Mt()) || (_ === Pt && (R() || U())))) { - var m = e.getExtension(_); - if (m) - for (var b = 0, y = Dt(m); b < y.length; b++) { - var E; - (g = m[(E = y[b])]), - s.push( - '' - .concat(E, '=') - .concat(g) - .concat(Ot.has(g) ? '='.concat(e.getParameter(g)) : ''), - ); - } - else r.push(_); - } - } - for (var w = 0, S = It; w < S.length; w++) - for (var O = S[w], I = 0, T = Tt; I < T.length; I++) { - var A = T[I], - P = Lt(e, O, A); - u.push(''.concat(O, '.').concat(A, '=').concat(P.join(','))); - } - return ( - s.sort(), - a.sort(), - { - contextAttributes: o, - parameters: a, - shaderPrecisions: u, - extensions: n, - extensionParameters: s, - unsupportedExtensions: r, - } + }; + } + function ge(u, b) { + var I = function (D) { + return ne(D) + ? b(D) + : function () { + var P = D(); + return l(P) ? P.then(b) : b(P); + }; + }; + return function (D) { + var P = u(D); + return l(P) ? P.then(I) : I(P); + }; + } + function De() { + var u = window, + b = navigator; + return ( + m([ + 'MSCSSMatrix' in u, + 'msSetImmediate' in u, + 'msIndexedDB' in u, + 'msMaxTouchPoints' in b, + 'msPointerEnabled' in b, + ]) >= 4 + ); + } + function Te() { + var u = window, + b = navigator; + return ( + m([ + 'msWriteProfilerMark' in u, + 'MSStream' in u, + 'msLaunchUri' in b, + 'msSaveBlob' in b, + ]) >= 3 && !De() + ); + } + function Fe() { + var u = window, + b = navigator; + return ( + m([ + 'webkitPersistentStorage' in b, + 'webkitTemporaryStorage' in b, + (b.vendor || '').indexOf('Google') === 0, + 'webkitResolveLocalFileSystemURL' in u, + 'BatteryManager' in u, + 'webkitMediaStream' in u, + 'webkitSpeechGrammar' in u, + ]) >= 5 + ); + } + function Re() { + var u = window, + b = navigator; + return ( + m([ + 'ApplePayError' in u, + 'CSSPrimitiveValue' in u, + 'Counter' in u, + b.vendor.indexOf('Apple') === 0, + 'RGBColor' in u, + 'WebKitMediaKeys' in u, + ]) >= 4 + ); + } + function Le() { + var u = window, + b = u.HTMLElement, + I = u.Document; + return ( + m([ + 'safari' in u, + !('ongestureend' in u), + !('TouchEvent' in u), + !('orientation' in u), + b && !('autocapitalize' in b.prototype), + I && 'pointerLockElement' in I.prototype, + ]) >= 4 + ); + } + function Oe() { + var u = window; + return B(u.print) && String(u.browser) === '[object WebPageNamespace]'; + } + function Xe() { + var u, + b, + I = window; + return ( + m([ + 'buildID' in navigator, + 'MozAppearance' in + ((b = + (u = document.documentElement) === null || u === void 0 ? void 0 : u.style) !== + null && b !== void 0 + ? b + : {}), + 'onmozfullscreenchange' in I, + 'mozInnerScreenX' in I, + 'CSSMozDocumentRule' in I, + 'CanvasCaptureMediaStream' in I, + ]) >= 4 + ); + } + function $e() { + var u = window; + return ( + m([ + !('MediaSettingsRange' in u), + 'RTCEncodedAudioFrame' in u, + '' + u.Intl == '[object Intl]', + '' + u.Reflect == '[object Reflect]', + ]) >= 3 + ); + } + function pt() { + var u = window, + b = u.URLPattern; + return ( + m([ + 'union' in Set.prototype, + 'Iterator' in u, + b && 'hasRegExpGroups' in b.prototype, + 'RGB8' in WebGLRenderingContext.prototype, + ]) >= 3 + ); + } + function Qe() { + var u = window; + return ( + m([ + 'DOMRectList' in u, + 'RTCPeerConnectionIceEvent' in u, + 'SVGGeometryElement' in u, + 'ontransitioncancel' in u, + ]) >= 3 + ); + } + function Ke() { + var u = window, + b = navigator, + I = u.CSS, + D = u.HTMLButtonElement; + return ( + m([ + !('getStorageUpdates' in b), + D && 'popover' in D.prototype, + 'CSSCounterStyleRule' in u, + I.supports('font-size-adjust: ex-height 0.5'), + I.supports('text-transform: full-width'), + ]) >= 4 + ); + } + function it() { + if (navigator.platform === 'iPad') return !0; + var u = screen, + b = u.width / u.height; + return ( + m([ + 'MediaSource' in window, + !!Element.prototype.webkitRequestFullscreen, + b > 0.65 && b < 1.53, + ]) >= 2 + ); + } + function _e() { + var u = document; + return ( + u.fullscreenElement || + u.msFullscreenElement || + u.mozFullScreenElement || + u.webkitFullscreenElement || + null + ); + } + function Ge() { + var u = document; + return ( + u.exitFullscreen || + u.msExitFullscreen || + u.mozCancelFullScreen || + u.webkitExitFullscreen + ).call(u); + } + function Pe() { + var u = Fe(), + b = Xe(), + I = window, + D = navigator, + P = 'connection'; + return u + ? m([ + !('SharedWorker' in I), + D[P] && 'ontypechange' in D[P], + !('sinkId' in new Audio()), + ]) >= 2 + : b + ? m([ + 'onorientationchange' in I, + 'orientation' in I, + /android/i.test(D.appVersion), + ]) >= 2 + : !1; + } + function et() { + var u = navigator, + b = window, + I = Audio.prototype, + D = b.visualViewport; + return ( + m([ + 'srLatency' in I, + 'srChannelCount' in I, + 'devicePosture' in u, + D && 'segments' in D, + 'getTextInformation' in Image.prototype, + ]) >= 3 + ); + } + function tt() { + return Je() ? -4 : rt(); + } + function rt() { + var u = window, + b = u.OfflineAudioContext || u.webkitOfflineAudioContext; + if (!b) return -2; + if (nt()) return -1; + var I = 4500, + D = 5e3, + P = new b(1, D, 44100), + N = P.createOscillator(); + (N.type = 'triangle'), (N.frequency.value = 1e4); + var V = P.createDynamicsCompressor(); + (V.threshold.value = -50), + (V.knee.value = 40), + (V.ratio.value = 12), + (V.attack.value = 0), + (V.release.value = 0.25), + N.connect(V), + V.connect(P.destination), + N.start(0); + var X = _(P), + Y = X[0], + J = X[1], + Q = v( + Y.then( + function (z) { + return W(z.getChannelData(0).subarray(I)); + }, + function (z) { + if (z.name === 'timeout' || z.name === 'suspended') return -3; + throw z; + }, + ), ); - }, - }, - kt = '$ if upgrade to Pro: https://fpjs.dev/pro'; - function Nt(t) { - var e = (function (t) { - if (V()) return 0.4; - if (U()) return !k() || (F() && N()) ? 0.3 : 0.5; - var e = 'value' in t.platform ? t.platform.value : ''; - return /^Win/.test(e) ? 0.6 : /^Mac/.test(e) ? 0.5 : 0.7; - })(t), - n = (function (t) { - return p(0.99 + 0.01 * t, 1e-4); - })(e); - return { score: e, comment: kt.replace(/\$/g, ''.concat(n)) }; - } - function Bt(t) { - return JSON.stringify( - t, - function (t, n) { - return n instanceof Error - ? e( - { - name: (i = n).name, - message: i.message, - stack: null === (r = i.stack) || void 0 === r ? void 0 : r.split('\n'), - }, - i, - ) - : n; - var i, r; - }, - 2, - ); - } - function Ft(t) { - return C( - (function (t) { - for (var e = '', n = 0, i = Object.keys(t).sort(); n < i.length; n++) { - var r = i[n], - o = t[r], - a = 'error' in o ? 'error' : JSON.stringify(o.value); - e += '' - .concat(e ? '|' : '') - .concat(r.replace(/([:|\\])/g, '\\$1'), ':') - .concat(a); - } - return e; - })(t), - ); - } - function Ht(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, + return function () { + return J(), Q; + }; + } + function nt() { + return Re() && !Le() && !Qe(); + } + function Je() { + return (Re() && Ke() && Oe()) || (Fe() && et() && pt()); + } + function _(u) { + var b = 3, + I = 500, + D = 500, + P = 5e3, + N = function () {}, + V = new Promise(function (X, Y) { + var J = !1, + Q = 0, + z = 0; + u.oncomplete = function (Ve) { + return X(Ve.renderedBuffer); + }; + var me = function () { + setTimeout( function () { - return t(); + return Y($('timeout')); }, - { timeout: e }, + Math.min(D, z + P - Date.now()), ); - }) - : a(Math.min(t, e)); - })(t, 2 * t) - ); - } - function Vt(t, e) { - var r = Date.now(); - return { - get: function (a) { - return n(this, void 0, void 0, function () { - var n, s, u; - return i(this, function (i) { - switch (i.label) { + }, + Ie = function () { + try { + var Ve = u.startRendering(); + switch ((l(Ve) && v(Ve), u.state)) { + case 'running': + (z = Date.now()), J && me(); + break; + case 'suspended': + document.hidden || Q++, J && Q >= b ? Y($('suspended')) : setTimeout(Ie, I); + break; + } + } catch (ze) { + Y(ze); + } + }; + Ie(), + (N = function () { + J || ((J = !0), z > 0 && me()); + }); + }); + return [V, N]; + } + function W(u) { + for (var b = 0, I = 0; I < u.length; ++I) b += Math.abs(u[I]); + return b; + } + function $(u) { + var b = new Error(u); + return (b.name = u), b; + } + function j(u, b, I) { + var D, P, N; + return ( + I === void 0 && (I = 50), + n(this, void 0, void 0, function () { + var V, X; + return r(this, function (Y) { + switch (Y.label) { case 0: - return (n = Date.now()), [4, t()]; + (V = document), (Y.label = 1); case 1: + return V.body ? [3, 3] : [4, i(I)]; + case 2: + return Y.sent(), [3, 1]; + case 3: + (X = V.createElement('iframe')), (Y.label = 4); + case 4: return ( - (s = i.sent()), - (u = (function (t) { - var e, - n = Nt(t); - return { - get visitorId() { - return void 0 === e && (e = Ft(this.components)), e; - }, - set visitorId(t) { - e = t; - }, - confidence: n, - components: t, - version: o, - }; - })(s)), - (e || (null === a || void 0 === a ? void 0 : a.debug)) && - console.log( - 'Copy the text below to get the debug data:\n\n```\nversion: ' - .concat(u.version, '\nuserAgent: ') - .concat(navigator.userAgent, '\ntimeBetweenLoadAndGet: ') - .concat(n - r, '\nvisitorId: ') - .concat(u.visitorId, '\ncomponents: ') - .concat(Bt(s), '\n```'), - ), - [2, u] + Y.trys.push([4, , 10, 11]), + [ + 4, + new Promise(function (J, Q) { + var z = !1, + me = function () { + (z = !0), J(); + }, + Ie = function (je) { + (z = !0), Q(je); + }; + (X.onload = me), (X.onerror = Ie); + var Ve = X.style; + Ve.setProperty('display', 'block', 'important'), + (Ve.position = 'absolute'), + (Ve.top = '0'), + (Ve.left = '0'), + (Ve.visibility = 'hidden'), + b && 'srcdoc' in X ? (X.srcdoc = b) : (X.src = 'about:blank'), + V.body.appendChild(X); + var ze = function () { + var je, ke; + z || + (((ke = + (je = X.contentWindow) === null || je === void 0 + ? void 0 + : je.document) === null || ke === void 0 + ? void 0 + : ke.readyState) === 'complete' + ? me() + : setTimeout(ze, 10)); + }; + ze(); + }), + ] ); + case 5: + Y.sent(), (Y.label = 6); + case 6: + return !( + (P = (D = X.contentWindow) === null || D === void 0 ? void 0 : D.document) === + null || P === void 0 + ) && P.body + ? [3, 8] + : [4, i(I)]; + case 7: + return Y.sent(), [3, 6]; + case 8: + return [4, u(X, X.contentWindow)]; + case 9: + return [2, Y.sent()]; + case 10: + return (N = X.parentNode) === null || N === void 0 || N.removeChild(X), [7]; + case 11: + return [2]; } }); - }); - }, - }; - } - function Gt(t) { - var e; - return ( - void 0 === t && (t = {}), - n(this, void 0, void 0, function () { - var n, r; - return i(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() >= 0.001)) - try { - var t = new XMLHttpRequest(); - t.open( - 'get', - 'https://m1.openfpcdn.io/fingerprintjs/v'.concat( - o, - '/npm-monitoring', - ), - !0, - ), - t.send(); - } catch (t) { - console.error(t); - } - })(), - (n = t.delayFallback), - (r = t.debug), - [4, Ht(n)] - ); - case 1: - return ( - i.sent(), - [ - 2, - Vt( - (function (t) { - return D(Ut, t, []); - })({ cache: {}, debug: r }), - r, - ), - ] - ); - } - }); - }) - ); - } - var jt = { load: Gt, hashComponents: Ft, componentsToDebugString: Bt }, - Wt = C; - return ( - (t.componentsToDebugString = Bt), - (t.default = jt), - (t.getFullscreenElement = H), - (t.getUnstableAudioFingerprint = j), - (t.getUnstableCanvasFingerprint = Q), - (t.getUnstableScreenFrame = ot), - (t.getUnstableScreenResolution = tt), - (t.getWebGLContext = Ct), - (t.hashComponents = Ft), - (t.isAndroid = V), - (t.isChromium = R), - (t.isDesktopWebKit = k), - (t.isEdgeHTML = M), - (t.isGecko = B), - (t.isSamsungInternet = G), - (t.isTrident = x), - (t.isWebKit = U), - (t.load = Gt), - (t.loadSources = D), - (t.murmurX64Hash128 = Wt), - (t.prepareForSources = Ht), - (t.sources = Ut), - (t.transformSource = function (t, e) { - var n = function (t) { - return L(t) - ? e(t) - : function () { - var n = t(); - return s(n) ? n.then(e) : e(n); - }; - }; - return function (e) { - var i = t(e); - return s(i) ? i.then(n) : n(i); - }; - }), - (t.withIframe = K), - Object.defineProperty(t, '__esModule', { value: !0 }), - t - ); - })({})), - ((_POSignalsEntities || (_POSignalsEntities = {})).BroprintJS = (function (t) { - 'use strict'; - const e = function (t, e = 0) { - let n = 3735928559 ^ e, - i = 1103547991 ^ e; - for (let e, r = 0; r < t.length; r++) - (e = t.charCodeAt(r)), - (n = Math.imul(n ^ e, 2654435761)), - (i = Math.imul(i ^ e, 1597334677)); - return ( - (n = Math.imul(n ^ (n >>> 16), 2246822507) ^ Math.imul(i ^ (i >>> 13), 3266489909)), - 4294967296 * - (2097151 & - (i = - Math.imul(i ^ (i >>> 16), 2246822507) ^ Math.imul(n ^ (n >>> 13), 3266489909))) + - (n >>> 0) - ); - }, - n = () => { - if ( - !(() => { - const t = document.createElement('canvas'); - return !(!t.getContext || !t.getContext('2d')); - })() - ) - return 'canvas not supported'; - var t = document.createElement('canvas'), - e = t.getContext('2d'), - n = 'BroPrint.65@345876'; - return ( - (e.textBaseline = 'top'), - (e.font = "14px 'Arial'"), - (e.textBaseline = 'alphabetic'), - (e.fillStyle = '#f60'), - e.fillRect(125, 1, 62, 20), - (e.fillStyle = '#069'), - e.fillText(n, 2, 15), - (e.fillStyle = 'rgba(102, 204, 0, 0.7)'), - e.fillText(n, 4, 17), - t.toDataURL() + }) ); - }, - i = (function () { - let t = null, - e = null, - n = null, - i = null, - r = null, - o = null; - function a(e, n) { - void 0 !== i[e] && - 'function' == typeof i[e].setValueAtTime && - i[e].setValueAtTime(n, t.currentTime); + } + function ie(u) { + for ( + var b = S(u), + I = b[0], + D = b[1], + P = document.createElement(I != null ? I : 'div'), + N = 0, + V = Object.keys(D); + N < V.length; + N++ + ) { + var X = V[N], + Y = D[X].join(' '); + X === 'style' ? ae(P.style, Y) : P.setAttribute(X, Y); } - function s(t) { - !(function (t) { - let e = null; - for (var n = 4500; 5e3 > n; n++) { - var i = t.renderedBuffer.getChannelData(0)[n]; - e += Math.abs(i); - } - (r = e.toString()), 'function' == typeof o && o(r); - })(t), - i.disconnect(); + return P; + } + function ae(u, b) { + for (var I = 0, D = b.split(';'); I < D.length; I++) { + var P = D[I], + N = /^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(P); + if (N) { + var V = N[1], + X = N[2], + Y = N[4]; + u.setProperty(V, X, Y || ''); + } } - return { - run: function (r, u = !1) { - o = r; - try { - (function () { - let e = window.OfflineAudioContext || window.webkitOfflineAudioContext; - t = new e(1, 44100, 44100); - })(), - (e = t.currentTime), - ((n = t.createOscillator()).type = 'triangle'), - n.frequency.setValueAtTime(1e4, e), - (i = t.createDynamicsCompressor()), - a('threshold', -50), - a('knee', 40), - a('ratio', 12), - a('reduction', -20), - a('attack', 0), - a('release', 0.25), - n.connect(i), - i.connect(t.destination), - n.start(0), - t.startRendering(), - (t.oncomplete = s); - } catch (t) { - if (u) throw t; - } - }, - }; - })(); - return ( - (t.getCurrentBrowserFingerPrint = function () { - const t = new Promise((t, e) => { - i.run(function (e) { - t(e); - }); - }); - return new Promise((i, r) => { - t.then(async (t) => { - let r = ''; - navigator.brave && (await navigator.brave.isBrave()), - (r = window.btoa(t) + n()), - i(e(r, 0)); - }).catch(() => { - try { - i(e(n()).toString()); - } catch (t) { - r('Failed to generate the finger print of this browser'); - } - }); - }); - }), - Object.defineProperty(t, '__esModule', { value: !0 }), - t - ); - })({})), - (function (t) { - 'use strict'; - var e, - n, - i = function (t, e) { - var n = 'function' == typeof Symbol && t[Symbol.iterator]; - if (!n) return t; - var i, - r, - o = n.call(t), - a = []; - try { - for (; (void 0 === e || e-- > 0) && !(i = o.next()).done; ) a.push(i.value); - } catch (t) { - r = { error: t }; - } finally { + } + function ve() { + for (var u = window; ; ) { + var b = u.parent; + if (!b || b === u) return !1; try { - i && !i.done && (n = o.return) && n.call(o); - } finally { - if (r) throw r.error; + if (b.location.origin !== u.location.origin) return !0; + } catch (I) { + if (I instanceof Error && I.name === 'SecurityError') return !0; + throw I; } + u = b; } - return a; - }, - r = function (t, e, n) { - if (n || 2 === arguments.length) - for (var i, r = 0, o = e.length; r < o; r++) - (!i && r in e) || (i || (i = Array.prototype.slice.call(e, 0, r)), (i[r] = e[r])); - return t.concat(i || Array.prototype.slice.call(e)); - }, - o = new WeakMap(), - a = new WeakMap(), - s = new WeakMap(), - u = new WeakMap(), - c = new WeakMap(), - l = { - get: function (t, e, n) { - if (t instanceof IDBTransaction) { - if ('done' === e) return a.get(t); - if ('objectStoreNames' === e) return t.objectStoreNames || s.get(t); - if ('store' === e) - return n.objectStoreNames[1] ? void 0 : n.objectStore(n.objectStoreNames[0]); - } - return f(t[e]); - }, - set: function (t, e, n) { - return (t[e] = n), !0; - }, - has: function (t, e) { - return (t instanceof IDBTransaction && ('done' === e || 'store' === e)) || e in t; - }, - }; - function d(t) { - return t !== IDBDatabase.prototype.transaction || - 'objectStoreNames' in IDBTransaction.prototype - ? ( - n || - (n = [ - IDBCursor.prototype.advance, - IDBCursor.prototype.continue, - IDBCursor.prototype.continuePrimaryKey, - ]) - ).includes(t) - ? function () { - for (var e = [], n = 0; n < arguments.length; n++) e[n] = arguments[n]; - return t.apply(g(this), e), f(o.get(this)); - } - : function () { - for (var e = [], n = 0; n < arguments.length; n++) e[n] = arguments[n]; - return f(t.apply(g(this), e)); - } - : function (e) { - for (var n = [], o = 1; o < arguments.length; o++) n[o - 1] = arguments[o]; - var a = t.call.apply(t, r([g(this), e], i(n), !1)); - return s.set(a, e.sort ? e.sort() : [e]), f(a); - }; - } - function h(t) { - return 'function' == typeof t - ? d(t) - : (t instanceof IDBTransaction && - (function (t) { - if (!a.has(t)) { - var e = new Promise(function (e, n) { - var i = function () { - t.removeEventListener('complete', r), - t.removeEventListener('error', o), - t.removeEventListener('abort', o); - }, - r = function () { - e(), i(); - }, - o = function () { - n(t.error || new DOMException('AbortError', 'AbortError')), i(); - }; - t.addEventListener('complete', r), - t.addEventListener('error', o), - t.addEventListener('abort', o); - }); - a.set(t, e); + } + var Se = 'mmMwWLliI0O&1', + d = '48px', + F = ['monospace', 'sans-serif', 'serif'], + G = [ + '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 A() { + var u = this; + return j(function (b, I) { + var D = I.document; + return n(u, void 0, void 0, function () { + var P, N, V, X, Y, J, Q, z, me, Ie, Ve, ze; + return r(this, function (je) { + for ( + P = D.body, + P.style.fontSize = d, + N = D.createElement('div'), + N.style.setProperty('visibility', 'hidden', 'important'), + V = {}, + X = {}, + Y = function (ke) { + var Ye = D.createElement('span'), + qe = Ye.style; + return ( + (qe.position = 'absolute'), + (qe.top = '0'), + (qe.left = '0'), + (qe.fontFamily = ke), + (Ye.textContent = Se), + N.appendChild(Ye), + Ye + ); + }, + J = function (ke, Ye) { + return Y("'".concat(ke, "',").concat(Ye)); + }, + Q = function () { + return F.map(Y); + }, + z = function () { + for ( + var ke = {}, + Ye = function (bt) { + ke[bt] = F.map(function (Rt) { + return J(bt, Rt); + }); + }, + qe = 0, + gt = G; + qe < gt.length; + qe++ + ) { + var At = gt[qe]; + Ye(At); + } + return ke; + }, + me = function (ke) { + return F.some(function (Ye, qe) { + return ke[qe].offsetWidth !== V[Ye] || ke[qe].offsetHeight !== X[Ye]; + }); + }, + Ie = Q(), + Ve = z(), + P.appendChild(N), + ze = 0; + ze < F.length; + ze++ + ) + (V[F[ze]] = Ie[ze].offsetWidth), (X[F[ze]] = Ie[ze].offsetHeight); + return [ + 2, + G.filter(function (ke) { + return me(Ve[ke]); + }), + ]; + }); + }); + }); + } + function re() { + var u = navigator.plugins; + if (u) { + for (var b = [], I = 0; I < u.length; ++I) { + var D = u[I]; + if (D) { + for (var P = [], N = 0; N < D.length; ++N) { + var V = D[N]; + P.push({ type: V.type, suffixes: V.suffixes }); } - })(t), - (n = t), - (e || (e = [IDBDatabase, IDBObjectStore, IDBIndex, IDBCursor, IDBTransaction])).some( - function (t) { - return n instanceof t; - }, - ) - ? new Proxy(t, l) - : t); - var n; - } - function f(t) { - if (t instanceof IDBRequest) - return ( - (e = t), - (n = new Promise(function (t, n) { - var i = function () { - e.removeEventListener('success', r), e.removeEventListener('error', o); - }, - r = function () { - t(f(e.result)), i(); - }, - o = function () { - n(e.error), i(); - }; - e.addEventListener('success', r), e.addEventListener('error', o); - })) - .then(function (t) { - t instanceof IDBCursor && o.set(t, e); - }) - .catch(function () {}), - c.set(n, e), - n - ); - var e, n; - if (u.has(t)) return u.get(t); - var i = h(t); - return i !== t && (u.set(t, i), c.set(i, t)), i; - } - var g = function (t) { - return c.get(t); - }, - p = function () { - return (p = - Object.assign || - function (t) { - for (var e, n = 1, i = arguments.length; n < i; n++) - for (var r in (e = arguments[n])) - Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); - return t; - }).apply(this, arguments); - }, - v = function (t, e, n, i) { - return new (n || (n = Promise))(function (r, o) { - function a(t) { - try { - u(i.next(t)); - } catch (t) { - o(t); - } - } - function s(t) { - try { - u(i.throw(t)); - } catch (t) { - o(t); + b.push({ name: D.name, description: D.description, mimeTypes: P }); } } - function u(t) { - var e; - t.done - ? r(t.value) - : ((e = t.value), - e instanceof n - ? e - : new n(function (t) { - t(e); - })).then(a, s); - } - u((i = i.apply(t, e || [])).next()); - }); - }, - _ = function (t, e) { - var n, - i, - r, - o, - a = { - label: 0, - sent: function () { - if (1 & r[0]) throw r[1]; - return r[1]; - }, - trys: [], - ops: [], - }; + return b; + } + } + function de() { + return ce(ot()); + } + function ce(u) { + var b, + I = !1, + D, + P, + N = fe(), + V = N[0], + X = N[1]; return ( - (o = { next: s(0), throw: s(1), return: s(2) }), - 'function' == typeof Symbol && - (o[Symbol.iterator] = function () { - return this; - }), - o + We(V, X) + ? ((I = ye(X)), u ? (D = P = 'skipped') : ((b = at(V, X)), (D = b[0]), (P = b[1]))) + : (D = P = 'unsupported'), + { winding: I, geometry: D, text: P } ); - function s(o) { - return function (s) { - return (function (o) { - if (n) throw new TypeError('Generator is already executing.'); - for (; a; ) - try { - if ( - ((n = 1), - i && - (r = - 2 & o[0] - ? i.return - : o[0] - ? i.throw || ((r = i.return) && r.call(i), 0) - : i.next) && - !(r = r.call(i, o[1])).done) - ) - return r; - switch (((i = 0), r && (o = [2 & o[0], r.value]), o[0])) { - case 0: - case 1: - r = o; - break; - case 4: - return a.label++, { value: o[1], done: !1 }; - case 5: - a.label++, (i = o[1]), (o = [0]); - continue; - case 7: - (o = a.ops.pop()), a.trys.pop(); - continue; - default: - if ( - !( - (r = (r = a.trys).length > 0 && r[r.length - 1]) || - (6 !== o[0] && 2 !== o[0]) - ) - ) { - a = 0; - continue; - } - if (3 === o[0] && (!r || (o[1] > r[0] && o[1] < r[3]))) { - a.label = o[1]; - break; - } - if (6 === o[0] && a.label < r[1]) { - (a.label = r[1]), (r = o); - break; - } - if (r && a.label < r[2]) { - (a.label = r[2]), a.ops.push(o); - break; - } - r[2] && a.ops.pop(), a.trys.pop(); - continue; - } - o = e.call(t, a); - } catch (t) { - (o = [6, t]), (i = 0); - } finally { - n = r = 0; - } - if (5 & o[0]) throw o[1]; - return { value: o[0] ? o[1] : void 0, done: !0 }; - })([o, s]); - }; + } + function fe() { + var u = document.createElement('canvas'); + return (u.width = 1), (u.height = 1), [u, u.getContext('2d')]; + } + function We(u, b) { + return !!(b && u.toDataURL); + } + function ye(u) { + return u.rect(0, 0, 10, 10), u.rect(2, 2, 6, 6), !u.isPointInPath(5, 5, 'evenodd'); + } + function at(u, b) { + mt(u, b); + var I = st(u), + D = st(u); + if (I !== D) return ['unstable', 'unstable']; + xt(u, b); + var P = st(u); + return [P, I]; + } + function mt(u, b) { + (u.width = 240), + (u.height = 60), + (b.textBaseline = 'alphabetic'), + (b.fillStyle = '#f60'), + b.fillRect(100, 1, 62, 20), + (b.fillStyle = '#069'), + (b.font = '11pt "Times New Roman"'); + var I = 'Cwm fjordbank gly '.concat('\u{1F603}'); + b.fillText(I, 2, 15), + (b.fillStyle = 'rgba(102, 204, 0, 0.2)'), + (b.font = '18pt Arial'), + b.fillText(I, 4, 45); + } + function xt(u, b) { + (u.width = 122), (u.height = 110), (b.globalCompositeOperation = 'multiply'); + for ( + var I = 0, + D = [ + ['#f2f', 40, 40], + ['#2ff', 80, 40], + ['#ff2', 60, 80], + ]; + I < D.length; + I++ + ) { + var P = D[I], + N = P[0], + V = P[1], + X = P[2]; + (b.fillStyle = N), + b.beginPath(), + b.arc(V, X, 40, 0, Math.PI * 2, !0), + b.closePath(), + b.fill(); } - }, - m = function (t, e) { - var n = 'function' == typeof Symbol && t[Symbol.iterator]; - if (!n) return t; - var i, - r, - o = n.call(t), - a = []; + (b.fillStyle = '#f9c'), + b.arc(60, 60, 60, 0, Math.PI * 2, !0), + b.arc(60, 60, 20, 0, Math.PI * 2, !0), + b.fill('evenodd'); + } + function st(u) { + return u.toDataURL(); + } + function ot() { + return Re() && Ke() && Oe(); + } + function Ut() { + var u = navigator, + b = 0, + I; + u.maxTouchPoints !== void 0 + ? (b = g(u.maxTouchPoints)) + : u.msMaxTouchPoints !== void 0 && (b = u.msMaxTouchPoints); try { - for (; (void 0 === e || e-- > 0) && !(i = o.next()).done; ) a.push(i.value); - } catch (t) { - r = { error: t }; - } finally { - try { - i && !i.done && (n = o.return) && n.call(o); - } finally { - if (r) throw r.error; - } + document.createEvent('TouchEvent'), (I = !0); + } catch { + I = !1; } - return a; - }, - b = function (t, e, n) { - if (n || 2 === arguments.length) - for (var i, r = 0, o = e.length; r < o; r++) - (!i && r in e) || (i || (i = Array.prototype.slice.call(e, 0, r)), (i[r] = e[r])); - return t.concat(i || Array.prototype.slice.call(e)); - }, - y = ['get', 'getKey', 'getAll', 'getAllKeys', 'count'], - E = ['put', 'add', 'delete', 'clear'], - w = new Map(); - function S(t, e) { - if (t instanceof IDBDatabase && !(e in t) && 'string' == typeof e) { - if (w.get(e)) return w.get(e); - var n = e.replace(/FromIndex$/, ''), - i = e !== n, - r = E.includes(n); - if (n in (i ? IDBIndex : IDBObjectStore).prototype && (r || y.includes(n))) { - var o = function (t) { - for (var e = [], o = 1; o < arguments.length; o++) e[o - 1] = arguments[o]; - return v(this, void 0, void 0, function () { - var o, a, s; - return _(this, function (u) { - switch (u.label) { + var D = 'ontouchstart' in window; + return { maxTouchPoints: b, touchEvent: I, touchStart: D }; + } + function ct() { + return navigator.oscpu; + } + function kt() { + var u = navigator, + b = [], + I = u.language || u.userLanguage || u.browserLanguage || u.systemLanguage; + if ((I !== void 0 && b.push([I]), Array.isArray(u.languages))) + (Fe() && $e()) || b.push(u.languages); + else if (typeof u.languages == 'string') { + var D = u.languages; + D && b.push(D.split(',')); + } + return b; + } + function lt() { + return window.screen.colorDepth; + } + function vt() { + return f(E(navigator.deviceMemory), void 0); + } + function wt() { + if (!(Re() && Ke() && Oe())) return _t(); + } + function _t() { + var u = screen, + b = function (D) { + return f(g(D), null); + }, + I = [b(u.width), b(u.height)]; + return I.sort().reverse(), I; + } + var Nt = 2500, + ht = 10, + yt, + Tt; + function Pt() { + if (Tt === void 0) { + var u = function () { + var b = Lt(); + Ct(b) ? (Tt = setTimeout(u, Nt)) : ((yt = b), (Tt = void 0)); + }; + u(); + } + } + function Et() { + var u = this; + return ( + Pt(), + function () { + return n(u, void 0, void 0, function () { + var b; + return r(this, function (I) { + switch (I.label) { case 0: return ( - (o = this.transaction(t, r ? 'readwrite' : 'readonly')), - (a = o.store), - i && (a = a.index(e.shift())), - [4, Promise.all([(s = a)[n].apply(s, b([], m(e), !1)), r && o.done])] + (b = Lt()), + Ct(b) ? (yt ? [2, a([], yt, !0)] : _e() ? [4, Ge()] : [3, 2]) : [3, 2] ); case 1: - return [2, u.sent()[0]]; + I.sent(), (b = Lt()), (I.label = 2); + case 2: + return Ct(b) || (yt = b), [2, b]; } }); }); + } + ); + } + function Vt() { + var u = this; + if (Re() && Ke() && Oe()) + return function () { + return Promise.resolve(void 0); }; - return w.set(e, o), o; + var b = Et(); + return function () { + return n(u, void 0, void 0, function () { + var I, D; + return r(this, function (P) { + switch (P.label) { + case 0: + return [4, b()]; + case 1: + return ( + (I = P.sent()), + (D = function (N) { + return N === null ? null : w(N, ht); + }), + [2, [D(I[0]), D(I[1]), D(I[2]), D(I[3])]] + ); + } + }); + }); + }; + } + function Lt() { + var u = screen; + return [ + f(E(u.availTop), null), + f(E(u.width) - E(u.availWidth) - f(E(u.availLeft), 0), null), + f(E(u.height) - E(u.availHeight) - f(E(u.availTop), 0), null), + f(E(u.availLeft), null), + ]; + } + function Ct(u) { + for (var b = 0; b < 4; ++b) if (u[b]) return !1; + return !0; + } + function dt() { + return f(g(navigator.hardwareConcurrency), void 0); + } + function te() { + var u, + b = (u = window.Intl) === null || u === void 0 ? void 0 : u.DateTimeFormat; + if (b) { + var I = new b().resolvedOptions().timeZone; + if (I) return I; } + var D = -ue(); + return 'UTC'.concat(D >= 0 ? '+' : '').concat(D); } - } - (l = (function (t) { - return p(p({}, t), { - get: function (e, n, i) { - return S(e, n) || t.get(e, n, i); - }, - has: function (e, n) { - return !!S(e, n) || t.has(e, n); - }, - }); - })(l)), - (t.deleteDB = function (t, e) { - var n = (void 0 === e ? {} : e).blocked, - i = indexedDB.deleteDatabase(t); - return ( - n && - i.addEventListener('blocked', function (t) { - return n(t.oldVersion, t); - }), - f(i).then(function () {}) - ); - }), - (t.openDB = function (t, e, n) { - var i = void 0 === n ? {} : n, - r = i.blocked, - o = i.upgrade, - a = i.blocking, - s = i.terminated, - u = indexedDB.open(t, e), - c = f(u); - return ( - o && - u.addEventListener('upgradeneeded', function (t) { - o(f(u.result), t.oldVersion, t.newVersion, f(u.transaction), t); - }), - r && - u.addEventListener('blocked', function (t) { - return r(t.oldVersion, t.newVersion, t); - }), - c - .then(function (t) { - s && - t.addEventListener('close', function () { - return s(); - }), - a && - t.addEventListener('versionchange', function (t) { - return a(t.oldVersion, t.newVersion, t); - }); - }) - .catch(function () {}), - c - ); - }), - (t.unwrap = g), - (t.wrap = f); - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function (t) { - function e(t, n) { - var i; - (n = n || {}), - (this._id = e._generateUUID()), - (this._promise = n.promise || Promise), - (this._frameId = n.frameId || 'CrossStorageClient-' + this._id), - (this._origin = e._getOrigin(t)), - (this._requests = {}), - (this._connected = !1), - (this._closed = !1), - (this._count = 0), - (this._timeout = n.timeout || 5e3), - (this._listener = null), - this._installListener(), - n.frameId && (i = document.getElementById(n.frameId)), - i && this._poll(), - (i = i || this._createFrame(t)), - (this._hub = i.contentWindow); - } - (e.frameStyle = { - width: 0, - height: 0, - border: 'none', - display: 'none', - position: 'absolute', - top: '-999px', - left: '-999px', - }), - (e._getOrigin = function (t) { - var e; - return ( - ((e = document.createElement('a')).href = t), - e.host || (e = window.location), - ( - (e.protocol && ':' !== e.protocol ? e.protocol : window.location.protocol) + - '//' + - e.host - ).replace(/:80$|:443$/, '') + function ue() { + var u = new Date().getFullYear(); + return Math.max( + E(new Date(u, 0, 1).getTimezoneOffset()), + E(new Date(u, 6, 1).getTimezoneOffset()), ); - }), - (e._generateUUID = function () { - return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (t) { - var e = (16 * Math.random()) | 0; - return ('x' == t ? e : (3 & e) | 8).toString(16); - }); - }), - (e.prototype.onConnect = function () { - var t = this; - return this._connected - ? this._promise.resolve() - : this._closed - ? this._promise.reject(new Error('CrossStorageClient has closed')) - : (this._requests.connect || (this._requests.connect = []), - new this._promise(function (e, n) { - var i = setTimeout(function () { - n(new Error('CrossStorageClient could not connect')); - }, t._timeout); - t._requests.connect.push(function (t) { - if ((clearTimeout(i), t)) return n(t); - e(); - }); - })); - }), - (e.prototype.set = function (t, e) { - return this._request('set', { key: t, value: e }); - }), - (e.prototype.getSignedPayload = function (t, e) { - return this._request('getSignedData', { payload: t, deviceId: e }); - }), - (e.prototype.getDeviceDetails = function (t) { - return this._request('getDeviceDetails', { deviceName: t }); - }), - (e.prototype.setDeviceDetails = function (t, e) { - return this._request('setDeviceDetails', { deviceName: t, deviceId: e }); - }), - (e.prototype.get = function (t) { - var e = Array.prototype.slice.call(arguments); - return this._request('get', { keys: e }); - }), - (e.prototype.del = function () { - var t = Array.prototype.slice.call(arguments); - return this._request('del', { keys: t }); - }), - (e.prototype.clear = function () { - return this._request('clear'); - }), - (e.prototype.getKeys = function () { - return this._request('getKeys'); - }), - (e.prototype.close = function (t) { - const e = this._frameId, - n = this; - this._request('close') - .catch(function (t) {}) - .finally(function () { - try { - var i = document.getElementById(e); - i && !t && i.parentNode.removeChild(i), - window.removeEventListener - ? window.removeEventListener('message', n._listener, !1) - : window.detachEvent('onmessage', n._listener), - (n._connected = !1), - (n._closed = !0); - } catch (t) {} - }); - }), - (e.prototype._installListener = function () { - var t = this; - (this._listener = function (e) { - var n, i, r; - if ( - !t._closed && - e.data && - 'string' == typeof e.data && - ('null' === e.origin ? 'file://' : e.origin) === t._origin - ) - if ('cross-storage:unavailable' !== e.data) { - if (-1 !== e.data.indexOf('cross-storage:') && !t._connected) { - if (((t._connected = !0), !t._requests.connect)) return; - for (n = 0; n < t._requests.connect.length; n++) t._requests.connect[n](i); - delete t._requests.connect; - } - if ('cross-storage:ready' !== e.data) { - try { - r = JSON.parse(e.data); - } catch (t) { - return; - } - r.id && t._requests[r.id] && t._requests[r.id](r.error, r.result); - } - } else { - if ((t._closed || t.close(), !t._requests.connect)) return; - for ( - i = new Error('Closing client. Could not access localStorage in hub.'), n = 0; - n < t._requests.connect.length; - n++ - ) - t._requests.connect[n](i); - } - }), - window.addEventListener - ? window.addEventListener('message', this._listener, !1) - : window.attachEvent('onmessage', this._listener); - }), - (e.prototype._poll = function () { - var t, e, n; - (n = 'file://' === (t = this)._origin ? '*' : t._origin), - (e = setInterval(function () { - if (t._connected) return clearInterval(e); - t._hub && t._hub.postMessage('cross-storage:poll', n); - }, 1e3)); - }), - (e.prototype._createFrame = function (t) { - var n, i; - for (i in (((n = window.document.createElement('iframe')).id = this._frameId), - e.frameStyle)) - e.frameStyle.hasOwnProperty(i) && (n.style[i] = e.frameStyle[i]); - return window.document.body.appendChild(n), (n.src = t), n; - }), - (e.prototype._request = function (t, e) { - var n, i; - return this._closed - ? this._promise.reject(new Error('CrossStorageClient has closed')) - : ((i = this)._count++, - (n = { id: this._id + ':' + i._count, method: 'cross-storage:' + t, params: e }), - new this._promise(function (t, e) { - var r, o, a; - (r = setTimeout(function () { - i._requests[n.id] && - (delete i._requests[n.id], - e(new Error('Timeout: could not perform ' + n.method))); - }, i._timeout)), - (i._requests[n.id] = function (o, a) { - if ((clearTimeout(r), delete i._requests[n.id], o)) return e(new Error(o)); - t(a); - }), - Array.prototype.toJSON && - ((o = Array.prototype.toJSON), (Array.prototype.toJSON = null)), - (a = 'file://' === i._origin ? '*' : i._origin), - i._hub.postMessage(JSON.stringify(n), a), - o && (Array.prototype.toJSON = o); - })); - }), - (t.CrossStorageClient = e); - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function () { - 'use strict'; - 'function' != typeof Object.assign && - Object.defineProperty(Object, 'assign', { - value: function (t, e) { - if (null === t || void 0 === t) - throw new TypeError('Cannot convert undefined or null to object'); - for (var n = Object(t), i = 1; i < arguments.length; i++) { - var r = arguments[i]; - if (null !== r && void 0 !== r) - for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (n[o] = r[o]); - } - return n; - }, - writable: !0, - configurable: !0, - }); - })(), - Array.from || - (Array.from = (function () { - var t = Object.prototype.toString, - e = function (e) { - return 'function' == typeof e || '[object Function]' === t.call(e); - }, - n = Math.pow(2, 53) - 1, - i = function (t) { - var e = (function (t) { - var e = Number(t); - return isNaN(e) - ? 0 - : 0 !== e && isFinite(e) - ? (e > 0 ? 1 : -1) * Math.floor(Math.abs(e)) - : e; - })(t); - return Math.min(Math.max(e, 0), n); - }; - return function (t) { - var n = Object(t); - if (null == t) - throw new TypeError('Array.from requires an array-like object - not null or undefined'); - var r, - o = arguments.length > 1 ? arguments[1] : void 0; - if (void 0 !== o) { - if (!e(o)) - throw new TypeError( - 'Array.from: when provided, the second argument must be a function', - ); - arguments.length > 2 && (r = arguments[2]); + } + function he() { + try { + return !!window.sessionStorage; + } catch { + return !0; + } + } + function Ae() { + try { + return !!window.localStorage; + } catch { + return !0; } + } + function pe() { + if (!(De() || Te())) + try { + return !!window.indexedDB; + } catch { + return !0; + } + } + function Ue() { + return !!window.openDatabase; + } + function xe() { + return navigator.cpuClass; + } + function Ce() { + var u = navigator.platform; + return u === 'MacIntel' && Re() && !Le() ? (it() ? 'iPad' : 'iPhone') : u; + } + function Ee() { + return navigator.vendor || ''; + } + function Be() { for ( - var a, s = i(n.length), u = e(this) ? Object(new this(s)) : new Array(s), c = 0; - c < s; - - ) - (a = n[c]), (u[c] = o ? (void 0 === r ? o(a, c) : o.call(r, a, c)) : a), (c += 1); - return (u.length = s), u; - }; - })()), - (function () { - 'use strict'; - String.prototype.endsWith || - (String.prototype.endsWith = function (t, e) { - return ( - (void 0 === e || e > this.length) && (e = this.length), - this.substring(e - t.length, e) === t - ); - }); - })(), - (function () { - 'use strict'; - Promise.allSettled = - Promise.allSettled || - function (t) { - return Promise.all( - t.map(function (t) { - return t - .then(function (t) { - return { status: 'fulfilled', value: t }; - }) - .catch(function (t) { - return { status: 'rejected', reason: t }; - }); - }), - ); - }; - })(), - (function (t, e) { - 'use strict'; - var n, - i = 500, - r = 'user-agent', - o = '', - a = 'function', - s = 'undefined', - u = 'object', - c = 'string', - l = 'browser', - d = 'cpu', - h = 'device', - f = 'engine', - g = 'os', - p = 'result', - v = 'name', - _ = 'type', - m = 'vendor', - b = 'version', - y = 'architecture', - E = 'major', - w = 'model', - S = 'mobile', - O = 'tablet', - I = 'smarttv', - T = 'brands', - A = 'formFactors', - P = 'fullVersionList', - C = 'platform', - L = 'platformVersion', - D = 'bitness', - x = 'sec-ch-ua', - M = x + '-full-version-list', - R = x + '-arch', - U = x + '-' + D, - k = x + '-form-factors', - N = x + '-' + S, - B = x + '-' + w, - F = x + '-' + C, - H = F + '-version', - V = [T, P, S, w, C, L, y, A, D], - G = 'Chromium', - j = 'Windows', - W = typeof window !== s && window.navigator ? window.navigator : e, - K = W && W.userAgentData ? W.userAgentData : e, - z = function (t, e) { - var n = {}, - i = e; - if (!q(e)) - for (var r in ((i = {}), e)) - for (var o in e[r]) i[o] = e[r][o].concat(i[o] ? i[o] : []); - for (var a in t) n[a] = i[a] && i[a].length % 2 == 0 ? i[a].concat(t[a]) : t[a]; - return n; - }, - Y = function (t) { - for (var e = {}, n = 0; n < t.length; n++) e[t[n].toUpperCase()] = t[n]; - return e; - }, - X = function (t, e) { - if (typeof t === u && t.length > 0) { - for (var n in t) if (Q(t[n]) == Q(e)) return !0; - return !1; + var u = [], + b = 0, + I = [ + 'chrome', + 'safari', + '__crWeb', + '__gCrWeb', + 'yandex', + '__yb', + '__ybro', + '__firefox__', + '__edgeTrackingPreventionStatistics', + 'webkit', + 'oprt', + 'samsungAr', + 'ucweb', + 'UCShellJava', + 'puffinDevice', + ]; + b < I.length; + b++ + ) { + var D = I[b], + P = window[D]; + P && typeof P == 'object' && u.push(D); } - return !!J(t) && -1 !== Q(e).indexOf(Q(t)); - }, - q = function (t, e) { - for (var n in t) return /^(browser|cpu|device|engine|os)$/.test(n) || (!!e && q(t[n])); - }, - J = function (t) { - return typeof t === c; - }, - Z = function (t) { - if (!t) return e; - for (var n = [], i = et(/\\?\"/g, t).split(','), r = 0; r < i.length; r++) - if (i[r].indexOf(';') > -1) { - var o = it(i[r]).split(';v='); - n[r] = { brand: o[0], version: o[1] }; - } else n[r] = it(i[r]); - return n; - }, - Q = function (t) { - return J(t) ? t.toLowerCase() : t; - }, - $ = function (t) { - return J(t) ? et(/[^\d\.]/g, t).split('.')[0] : e; - }, - tt = function (t) { - for (var n in t) { - var i = t[n]; - typeof i == u && 2 == i.length ? (this[i[0]] = i[1]) : (this[i] = e); + return u.sort(); + } + function ut() { + var u = document; + try { + u.cookie = 'cookietest=1; SameSite=Strict;'; + var b = u.cookie.indexOf('cookietest=') !== -1; + return ( + (u.cookie = 'cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT'), b + ); + } catch { + return !1; } - return this; - }, - et = function (t, e) { - return J(e) ? e.replace(t, o) : e; - }, - nt = function (t) { - return et(/\\?\"/g, t); - }, - it = function (t, e) { - if (J(t)) return (t = et(/^\s\s*/, t)), typeof e === s ? t : t.substring(0, i); - }, - rt = function (t, n) { - if (t && n) - for (var i, r, o, s, c, l, d = 0; d < n.length && !c; ) { - var h = n[d], - f = n[d + 1]; - for (i = r = 0; i < h.length && !c && h[i]; ) - if ((c = h[i++].exec(t))) - for (o = 0; o < f.length; o++) - (l = c[++r]), - typeof (s = f[o]) === u && s.length > 0 - ? 2 === s.length - ? typeof s[1] == a - ? (this[s[0]] = s[1].call(this, l)) - : (this[s[0]] = s[1]) - : 3 === s.length - ? typeof s[1] !== a || (s[1].exec && s[1].test) - ? (this[s[0]] = l ? l.replace(s[1], s[2]) : e) - : (this[s[0]] = l ? s[1].call(this, l, s[2]) : e) - : 4 === s.length && - (this[s[0]] = l ? s[3].call(this, l.replace(s[1], s[2])) : e) - : (this[s] = l || e); - d += 2; - } - }, - ot = function (t, n) { - for (var i in n) - if (typeof n[i] === u && n[i].length > 0) { - for (var r = 0; r < n[i].length; r++) if (X(n[i][r], t)) return '?' === i ? e : i; - } else if (X(n[i], t)) return '?' === i ? e : i; - return n.hasOwnProperty('*') ? n['*'] : t; - }, - at = { - ME: '4.90', - 'NT 3.11': 'NT3.51', - 'NT 4.0': 'NT4.0', - 2000: 'NT 5.0', - XP: ['NT 5.1', 'NT 5.2'], - Vista: 'NT 6.0', - 7: 'NT 6.1', - 8: 'NT 6.2', - 8.1: 'NT 6.3', - 10: ['NT 6.4', 'NT 10.0'], - RT: 'ARM', - }, - st = { - embedded: 'Automotive', - mobile: 'Mobile', - tablet: ['Tablet', 'EInk'], - smarttv: 'TV', - wearable: 'Watch', - xr: ['VR', 'XR'], - '?': ['Desktop', 'Unknown'], - '*': e, - }, - ut = { - browser: [ - [/\b(?:crmo|crios)\/([\w\.]+)/i], - [b, [v, 'Mobile Chrome']], - [/edg(?:e|ios|a)?\/([\w\.]+)/i], - [b, [v, 'Edge']], - [ - /(opera mini)\/([-\w\.]+)/i, - /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, - /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i, + } + function ft() { + var u = atob; + return { + abpIndo: [ + '#Iklan-Melayang', + '#Kolom-Iklan-728', + '#SidebarIklan-wrapper', + '[title="ALIENBOLA" i]', + u('I0JveC1CYW5uZXItYWRz'), ], - [v, b], - [/opios[\/ ]+([\w\.]+)/i], - [b, [v, 'Opera Mini']], - [/\bop(?:rg)?x\/([\w\.]+)/i], - [b, [v, 'Opera GX']], - [/\bopr\/([\w\.]+)/i], - [b, [v, 'Opera']], - [/\bb[a]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], - [b, [v, 'Baidu']], - [/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i], - [b, [v, 'Maxthon']], - [ - /(kindle)\/([\w\.]+)/i, - /(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i, - /(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i, - /(?:ms|\()(ie) ([\w\.]+)/i, - /(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i, - /(heytap|ovi|115)browser\/([\d\.]+)/i, - /(weibo)__([\d\.]+)/i, + abpvn: [ + '.quangcao', + '#mobileCatfish', + u('LmNsb3NlLWFkcw=='), + '[id^="bn_bottom_fixed_"]', + '#pmadv', ], - [v, b], - [/quark(?:pc)?\/([-\w\.]+)/i], - [b, [v, 'Quark']], - [/\bddg\/([\w\.]+)/i], - [b, [v, 'DuckDuckGo']], - [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], - [b, [v, 'UCBrowser']], - [ - /microm.+\bqbcore\/([\w\.]+)/i, - /\bqbcore\/([\w\.]+).+microm/i, - /micromessenger\/([\w\.]+)/i, + adBlockFinland: [ + '.mainostila', + u('LnNwb25zb3JpdA=='), + '.ylamainos', + u('YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd'), + u('YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd'), ], - [b, [v, 'WeChat']], - [/konqueror\/([\w\.]+)/i], - [b, [v, 'Konqueror']], - [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], - [b, [v, 'IE']], - [/ya(?:search)?browser\/([\w\.]+)/i], - [b, [v, 'Yandex']], - [/slbrowser\/([\w\.]+)/i], - [b, [v, 'Smart Lenovo Browser']], - [/(avast|avg)\/([\w\.]+)/i], - [[v, /(.+)/, '$1 Secure Browser'], b], - [/\bfocus\/([\w\.]+)/i], - [b, [v, 'Firefox Focus']], - [/\bopt\/([\w\.]+)/i], - [b, [v, 'Opera Touch']], - [/coc_coc\w+\/([\w\.]+)/i], - [b, [v, 'Coc Coc']], - [/dolfin\/([\w\.]+)/i], - [b, [v, 'Dolphin']], - [/coast\/([\w\.]+)/i], - [b, [v, 'Opera Coast']], - [/miuibrowser\/([\w\.]+)/i], - [b, [v, 'MIUI Browser']], - [/fxios\/([\w\.-]+)/i], - [b, [v, 'Mobile Firefox']], - [/\bqihoobrowser\/?([\w\.]*)/i], - [b, [v, '360']], - [/\b(qq)\/([\w\.]+)/i], - [[v, /(.+)/, '$1Browser'], b], - [/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i], - [[v, /(.+)/, '$1 Browser'], b], - [/samsungbrowser\/([\w\.]+)/i], - [b, [v, 'Samsung Internet']], - [/metasr[\/ ]?([\d\.]+)/i], - [b, [v, 'Sogou Explorer']], - [/(sogou)mo\w+\/([\d\.]+)/i], - [[v, 'Sogou Mobile'], b], - [ - /(electron)\/([\w\.]+) safari/i, - /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, - /m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i, + adBlockPersian: [ + '#navbar_notice_50', + '.kadr', + 'TABLE[width="140px"]', + '#divAgahi', + u('YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd'), ], - [v, b], - [/(lbbrowser|rekonq)/i], - [v], - [/ome\/([\w\.]+) \w* ?(iron) saf/i, /ome\/([\w\.]+).+qihu (360)[es]e/i], - [b, v], - [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], - [[v, 'Facebook'], b, [_, 'inapp']], - [ - /(Klarna)\/([\w\.]+)/i, - /(kakao(?:talk|story))[\/ ]([\w\.]+)/i, - /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, - /(daum)apps[\/ ]([\w\.]+)/i, - /safari (line)\/([\w\.]+)/i, - /\b(line)\/([\w\.]+)\/iab/i, - /(alipay)client\/([\w\.]+)/i, - /(twitter)(?:and| f.+e\/([\w\.]+))/i, - /(instagram|snapchat)[\/ ]([-\w\.]+)/i, + adBlockWarningRemoval: [ + '#adblock-honeypot', + '.adblocker-root', + '.wp_adblock_detect', + u('LmhlYWRlci1ibG9ja2VkLWFk'), + u('I2FkX2Jsb2NrZXI='), ], - [v, b, [_, 'inapp']], - [/\bgsa\/([\w\.]+) .*safari\//i], - [b, [v, 'GSA'], [_, 'inapp']], - [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], - [b, [v, 'TikTok'], [_, 'inapp']], - [/\[(linkedin)app\]/i], - [v, [_, 'inapp']], - [/(chromium)[\/ ]([-\w\.]+)/i], - [v, b], - [/headlesschrome(?:\/([\w\.]+)| )/i], - [b, [v, 'Chrome Headless']], - [/ wv\).+(chrome)\/([\w\.]+)/i], - [[v, 'Chrome WebView'], b], - [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], - [b, [v, 'Android Browser']], - [/chrome\/([\w\.]+) mobile/i], - [b, [v, 'Mobile Chrome']], - [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], - [v, b], - [/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i], - [b, [v, 'Mobile Safari']], - [/iphone .*mobile(?:\/\w+ | ?)safari/i], - [[v, 'Mobile Safari']], - [/version\/([\w\.\,]+) .*(safari)/i], - [b, v], - [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], - [v, [b, '1']], - [/(webkit|khtml)\/([\w\.]+)/i], - [v, b], - [/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i], - [[v, 'Mobile Firefox'], b], - [/(navigator|netscape\d?)\/([-\w\.]+)/i], - [[v, 'Netscape'], b], - [/(wolvic|librewolf)\/([\w\.]+)/i], - [v, b], - [/mobile vr; rv:([\w\.]+)\).+firefox/i], - [b, [v, 'Firefox Reality']], - [ - /ekiohf.+(flow)\/([\w\.]+)/i, - /(swiftfox)/i, - /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i, - /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, - /(firefox)\/([\w\.]+)/i, - /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, - /(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, - /\b(links) \(([\w\.]+)/i, + adGuardAnnoyances: [ + '.hs-sosyal', + '#cookieconsentdiv', + 'div[class^="app_gdpr"]', + '.as-oil', + '[data-cypress="soft-push-notification-modal"]', ], - [v, [b, /_/g, '.']], - [/(cobalt)\/([\w\.]+)/i], - [v, [b, /[^\d\.]+./, o]], - ], - cpu: [ - [/\b((amd|x|x86[-_]?|wow|win)64)\b/i], - [[y, 'amd64']], - [/(ia32(?=;))/i, /\b((i[346]|x)86)(pc)?\b/i], - [[y, 'ia32']], - [/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i], - [[y, 'arm64']], - [/\b(arm(v[67])?ht?n?[fl]p?)\b/i], - [[y, 'armhf']], - [/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i], - [[y, 'arm']], - [/((ppc|powerpc)(64)?)( mac|;|\))/i], - [[y, /ower/, o, Q]], - [/ sun4\w[;\)]/i], - [[y, 'sparc']], - [ - /\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i, + adGuardBase: [ + '.BetterJsPopOverlay', + u('I2FkXzMwMFgyNTA='), + u('I2Jhbm5lcmZsb2F0MjI='), + u('I2NhbXBhaWduLWJhbm5lcg=='), + u('I0FkLUNvbnRlbnQ='), ], - [[y, Q]], - ], - device: [ - [/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], - [w, [m, 'Samsung'], [_, O]], - [ - /\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, - /samsung[- ]((?!sm-[lr])[-\w]+)/i, - /sec-(sgh\w+)/i, + adGuardChinese: [ + u('LlppX2FkX2FfSA=='), + u('YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd'), + '#widget-quan', + u('YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd'), + u('YVtocmVmKj0iLjE5NTZobC5jb20vIl0='), ], - [w, [m, 'Samsung'], [_, S]], - [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], - [w, [m, 'Apple'], [_, S]], - [ - /\((ipad);[-\w\),; ]+apple/i, - /applecoremedia\/[\w\.]+ \((ipad)/i, - /\b(ipad)\d\d?,\d\d?[;\]].+ios/i, + adGuardFrench: [ + '#pavePub', + u('LmFkLWRlc2t0b3AtcmVjdGFuZ2xl'), + '.mobile_adhesion', + '.widgetadv', + u('LmFkc19iYW4='), ], - [w, [m, 'Apple'], [_, O]], - [/(macintosh);/i], - [w, [m, 'Apple']], - [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], - [w, [m, 'Sharp'], [_, S]], - [ - /\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i, + adGuardGerman: ['aside[data-portal-id="leaderboard"]'], + adGuardJapanese: [ + '#kauli_yad_1', + u('YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0='), + u('Ll9wb3BJbl9pbmZpbml0ZV9hZA=='), + u('LmFkZ29vZ2xl'), + u('Ll9faXNib29zdFJldHVybkFk'), ], - [w, [m, 'Honor'], [_, O]], - [/honor([-\w ]+)[;\)]/i], - [w, [m, 'Honor'], [_, S]], - [ - /\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i, + adGuardMobile: [ + u('YW1wLWF1dG8tYWRz'), + u('LmFtcF9hZA=='), + 'amp-embed[type="24smi"]', + '#mgid_iframe1', + u('I2FkX2ludmlld19hcmVh'), ], - [w, [m, 'Huawei'], [_, O]], - [ - /(?:huawei)([-\w ]+)[;\)]/i, - /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i, + adGuardRussian: [ + u('YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0='), + u('LnJlY2xhbWE='), + 'div[id^="smi2adblock"]', + u('ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd'), + '#psyduckpockeball', ], - [w, [m, 'Huawei'], [_, S]], - [ - /oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i, - /\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i, + adGuardSocial: [ + u('YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0='), + u('YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0='), + '.etsy-tweet', + '#inlineShare', + '.popup-social', ], - [ - [w, /_/g, ' '], - [m, 'Xiaomi'], - [_, O], - ], - [ - /\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i, - /\b; (\w+) build\/hm\1/i, - /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, - /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, - /oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i, - /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i, - / ([\w ]+) miui\/v?\d/i, - ], - [ - [w, /_/g, ' '], - [m, 'Xiaomi'], - [_, S], - ], - [ - /; (\w+) bui.+ oppo/i, - /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i, - ], - [w, [m, 'OPPO'], [_, S]], - [/\b(opd2(\d{3}a?))(?: bui|\))/i], - [w, [m, ot, { OnePlus: ['304', '403', '203'], '*': 'OPPO' }], [_, O]], - [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], - [w, [m, 'Vivo'], [_, S]], - [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], - [w, [m, 'Realme'], [_, S]], - [ - /\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, - /\bmot(?:orola)?[- ](\w*)/i, - /((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i, - ], - [w, [m, 'Motorola'], [_, S]], - [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], - [w, [m, 'Motorola'], [_, O]], - [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], - [w, [m, 'LG'], [_, O]], - [ - /(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, - /\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i, - /\blg-?([\d\w]+) bui/i, - ], - [w, [m, 'LG'], [_, S]], - [ - /(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i, - /lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i, - ], - [w, [m, 'Lenovo'], [_, O]], - [/(nokia) (t[12][01])/i], - [m, w, [_, O]], - [/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i, /nokia[-_ ]?(([-\w\. ]*))/i], - [ - [w, /_/g, ' '], - [_, S], - [m, 'Nokia'], + adGuardSpanishPortuguese: [ + '#barraPublicidade', + '#Publicidade', + '#publiEspecial', + '#queTooltip', + '.cnt-publi', ], - [/(pixel (c|tablet))\b/i], - [w, [m, 'Google'], [_, O]], - [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], - [w, [m, 'Google'], [_, S]], - [ - /droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i, + adGuardTrackingProtection: [ + '#qoo-counter', + u('YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=='), + u('YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0='), + u('YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=='), + '#top100counter', ], - [w, [m, 'Sony'], [_, S]], - [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], - [ - [w, 'Xperia Tablet'], - [m, 'Sony'], - [_, O], + adGuardTurkish: [ + '#backkapat', + u('I3Jla2xhbWk='), + u('YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0='), + u('YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd'), + u('YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ=='), ], - [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], - [w, [m, 'OnePlus'], [_, S]], - [ - /(alexa)webm/i, - /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, - /(kf[a-z]+)( bui|\)).+silk\//i, + bulgarian: [ + u('dGQjZnJlZW5ldF90YWJsZV9hZHM='), + '#ea_intext_div', + '.lapni-pop-over', + '#xenium_hot_offers', ], - [w, [m, 'Amazon'], [_, O]], - [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], - [ - [w, /(.+)/g, 'Fire Phone $1'], - [m, 'Amazon'], - [_, S], + easyList: [ + '.yb-floorad', + u('LndpZGdldF9wb19hZHNfd2lkZ2V0'), + u('LnRyYWZmaWNqdW5reS1hZA=='), + '.textad_headline', + u('LnNwb25zb3JlZC10ZXh0LWxpbmtz'), ], - [/(playbook);[-\w\),; ]+(rim)/i], - [w, m, [_, O]], - [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], - [w, [m, 'BlackBerry'], [_, S]], - [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], - [w, [m, 'ASUS'], [_, O]], - [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], - [w, [m, 'ASUS'], [_, S]], - [/(nexus 9)/i], - [w, [m, 'HTC'], [_, O]], - [ - /(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, - /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, - /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i, + easyListChina: [ + u('LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=='), + u('LmZyb250cGFnZUFkdk0='), + '#taotaole', + '#aafoot.top_box', + '.cfa_popup', ], - [m, [w, /_/g, ' '], [_, S]], - [ - /tcl (xess p17aa)/i, - /droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i, + easyListCookie: [ + '.ezmob-footer', + '.cc-CookieWarning', + '[data-cookie-number]', + u('LmF3LWNvb2tpZS1iYW5uZXI='), + '.sygnal24-gdpr-modal-wrap', ], - [w, [m, 'TCL'], [_, O]], - [ - /droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i, + easyListCzechSlovak: [ + '#onlajny-stickers', + u('I3Jla2xhbW5pLWJveA=='), + u('LnJla2xhbWEtbWVnYWJvYXJk'), + '.sklik', + u('W2lkXj0ic2tsaWtSZWtsYW1hIl0='), ], - [w, [m, 'TCL'], [_, S]], - [/(itel) ((\w+))/i], - [[m, Q], w, [_, ot, { tablet: ['p10001l', 'w7001'], '*': 'mobile' }]], - [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], - [w, [m, 'Acer'], [_, O]], - [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], - [w, [m, 'Meizu'], [_, S]], - [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], - [w, [m, 'Ulefone'], [_, S]], - [/; (energy ?\w+)(?: bui|\))/i, /; energizer ([\w ]+)(?: bui|\))/i], - [w, [m, 'Energizer'], [_, S]], - [/; cat (b35);/i, /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i], - [w, [m, 'Cat'], [_, S]], - [/((?:new )?andromax[\w- ]+)(?: bui|\))/i], - [w, [m, 'Smartfren'], [_, S]], - [/droid.+; (a(?:015|06[35]|142p?))/i], - [w, [m, 'Nothing'], [_, S]], - [/(imo) (tab \w+)/i, /(infinix) (x1101b?)/i], - [m, w, [_, O]], - [ - /(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i, - /; (hmd|imo) ([\w ]+?)(?: bui|\))/i, - /(hp) ([\w ]+\w)/i, - /(microsoft); (lumia[\w ]+)/i, - /(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i, - /(oppo) ?([\w ]+) bui/i, + easyListDutch: [ + u('I2FkdmVydGVudGll'), + u('I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=='), + '.adstekst', + u('YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0='), + '#semilo-lrectangle', ], - [m, w, [_, S]], - [ - /(kobo)\s(ereader|touch)/i, - /(archos) (gamepad2?)/i, - /(hp).+(touchpad(?!.+tablet)|tablet)/i, - /(kindle)\/([\w\.]+)/i, + easyListGermany: [ + '#SSpotIMPopSlider', + u('LnNwb25zb3JsaW5rZ3J1ZW4='), + u('I3dlcmJ1bmdza3k='), + u('I3Jla2xhbWUtcmVjaHRzLW1pdHRl'), + u('YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0='), ], - [m, w, [_, O]], - [/(surface duo)/i], - [w, [m, 'Microsoft'], [_, O]], - [/droid [\d\.]+; (fp\du?)(?: b|\))/i], - [w, [m, 'Fairphone'], [_, S]], - [/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i], - [w, [m, 'Nvidia'], [_, O]], - [/(sprint) (\w+)/i], - [m, w, [_, S]], - [/(kin\.[onetw]{3})/i], - [ - [w, /\./g, ' '], - [m, 'Microsoft'], - [_, S], + easyListItaly: [ + u('LmJveF9hZHZfYW5udW5jaQ=='), + '.sb-box-pubbliredazionale', + u('YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd'), + u('YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd'), + u('YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ=='), ], - [/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], - [w, [m, 'Zebra'], [_, O]], - [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], - [w, [m, 'Zebra'], [_, S]], - [/smart-tv.+(samsung)/i], - [m, [_, I]], - [/hbbtv.+maple;(\d+)/i], - [ - [w, /^/, 'SmartTV'], - [m, 'Samsung'], - [_, I], + easyListLithuania: [ + u('LnJla2xhbW9zX3RhcnBhcw=='), + u('LnJla2xhbW9zX251b3JvZG9z'), + u('aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd'), + u('aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd'), + u('aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd'), ], - [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], - [ - [m, 'LG'], - [_, I], + estonian: [u('QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==')], + fanboyAnnoyances: [ + '#ac-lre-player', + '.navigate-to-top', + '#subscribe_popup', + '.newsletter_holder', + '#back-top', ], - [/(apple) ?tv/i], - [m, [w, 'Apple TV'], [_, I]], - [/crkey.*devicetype\/chromecast/i], - [ - [w, 'Chromecast Third Generation'], - [m, 'Google'], - [_, I], + 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', ], - [/crkey.*devicetype\/([^/]*)/i], - [ - [w, /^/, 'Chromecast '], - [m, 'Google'], - [_, I], + fanboySocial: [ + '#FollowUs', + '#meteored_share', + '#social_follow', + '.article-sharer', + '.community__social-desc', ], - [/fuchsia.*crkey/i], - [ - [w, 'Chromecast Nest Hub'], - [m, 'Google'], - [_, I], + frellwitSwedish: [ + u('YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=='), + u('YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=='), + 'article.category-samarbete', + u('ZGl2LmhvbGlkQWRz'), + 'ul.adsmodern', ], - [/crkey/i], - [ - [w, 'Chromecast'], - [m, 'Google'], - [_, I], + greekAdBlock: [ + u('QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd'), + u('QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=='), + u('QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd'), + 'DIV.agores300', + 'TABLE.advright', ], - [/droid.+aft(\w+)( bui|\))/i], - [w, [m, 'Amazon'], [_, I]], - [/(shield \w+ tv)/i], - [w, [m, 'Nvidia'], [_, I]], - [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], - [w, [m, 'Sharp'], [_, I]], - [/(bravia[\w ]+)( bui|\))/i], - [w, [m, 'Sony'], [_, I]], - [/(mi(tv|box)-?\w+) bui/i], - [w, [m, 'Xiaomi'], [_, I]], - [/Hbbtv.*(technisat) (.*);/i], - [m, w, [_, I]], - [ - /\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, - /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i, + hungarian: [ + '#cemp_doboz', + '.optimonk-iframe-container', + u('LmFkX19tYWlu'), + u('W2NsYXNzKj0iR29vZ2xlQWRzIl0='), + '#hirdetesek_box', ], - [ - [m, it], - [w, it], - [_, I], + iDontCareAboutCookies: [ + '.alert-info[data-block-track*="CookieNotice"]', + '.ModuleTemplateCookieIndicator', + '.o--cookies--container', + '#cookies-policy-sticky', + '#stickyCookieBar', ], - [/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i], - [w, [_, I]], - [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], - [[_, I]], - [/(ouya)/i, /(nintendo) (\w+)/i], - [m, w, [_, 'console']], - [/droid.+; (shield)( bui|\))/i], - [w, [m, 'Nvidia'], [_, 'console']], - [/(playstation \w+)/i], - [w, [m, 'Sony'], [_, 'console']], - [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], - [w, [m, 'Microsoft'], [_, 'console']], - [/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i], - [w, [m, 'Samsung'], [_, 'wearable']], - [/((pebble))app/i, /(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i], - [m, w, [_, 'wearable']], - [/(ow(?:19|20)?we?[1-3]{1,3})/i], - [w, [m, 'OPPO'], [_, 'wearable']], - [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], - [w, [m, 'Apple'], [_, 'wearable']], - [/(opwwe\d{3})/i], - [w, [m, 'OnePlus'], [_, 'wearable']], - [/(moto 360)/i], - [w, [m, 'Motorola'], [_, 'wearable']], - [/(smartwatch 3)/i], - [w, [m, 'Sony'], [_, 'wearable']], - [/(g watch r)/i], - [w, [m, 'LG'], [_, 'wearable']], - [/droid.+; (wt63?0{2,3})\)/i], - [w, [m, 'Zebra'], [_, 'wearable']], - [/droid.+; (glass) \d/i], - [w, [m, 'Google'], [_, 'xr']], - [/(pico) (4|neo3(?: link|pro)?)/i], - [m, w, [_, 'xr']], - [/; (quest( \d| pro)?)/i], - [w, [m, 'Facebook'], [_, 'xr']], - [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], - [m, [_, 'embedded']], - [/(aeobc)\b/i], - [w, [m, 'Amazon'], [_, 'embedded']], - [/(homepod).+mac os/i], - [w, [m, 'Apple'], [_, 'embedded']], - [/windows iot/i], - [[_, 'embedded']], - [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+?(mobile|vr|\d) safari/i], - [w, [_, ot, { mobile: 'Mobile', xr: 'VR', '*': O }]], - [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], - [[_, O]], - [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], - [[_, S]], - [/droid .+?; ([\w\. -]+)( bui|\))/i], - [w, [m, 'Generic']], - ], - engine: [ - [/windows.+ edge\/([\w\.]+)/i], - [b, [v, 'EdgeHTML']], - [/(arkweb)\/([\w\.]+)/i], - [v, b], - [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], - [b, [v, 'Blink']], - [ - /(presto)\/([\w\.]+)/i, - /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i, - /ekioh(flow)\/([\w\.]+)/i, - /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, - /(icab)[\/ ]([23]\.[\d\.]+)/i, - /\b(libweb)/i, + icelandicAbp: [u('QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==')], + latvian: [ + u( + 'YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0=', + ), + u( + 'YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==', + ), ], - [v, b], - [/ladybird\//i], - [[v, 'LibWeb']], - [/rv\:([\w\.]{1,9})\b.+(gecko)/i], - [b, v], - ], - os: [ - [/microsoft (windows) (vista|xp)/i], - [v, b], - [/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i], - [v, [b, ot, at]], - [ - /windows nt 6\.2; (arm)/i, - /windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i, - /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i, + listKr: [ + u('YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0='), + u('I2xpdmVyZUFkV3JhcHBlcg=='), + u('YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=='), + u('aW5zLmZhc3R2aWV3LWFk'), + '.revenue_unit_item.dable', ], - [ - [b, ot, at], - [v, j], + listeAr: [ + u('LmdlbWluaUxCMUFk'), + '.right-and-left-sponsers', + u('YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=='), + u('YVtocmVmKj0iYm9vcmFxLm9yZyJd'), + u('YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd'), ], - [ - /[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i, - /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, - /cfnetwork\/.+darwin/i, + listeFr: [ + u('YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=='), + u('I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=='), + u('YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0='), + '.site-pub-interstitiel', + 'div[id^="crt-"][data-criteo-id]', ], - [ - [b, /_/g, '.'], - [v, 'iOS'], + officialPolish: [ + '#ceneo-placeholder-ceneo-12', + u('W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd'), + u('YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=='), + u('YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=='), + u('ZGl2I3NrYXBpZWNfYWQ='), ], - [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], - [ - [v, 'macOS'], - [b, /_/g, '.'], + ro: [ + u('YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd'), + u('YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd'), + u('YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0='), + u('YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd'), + 'a[href^="/url/"]', ], - [/android ([\d\.]+).*crkey/i], - [b, [v, 'Chromecast Android']], - [/fuchsia.*crkey\/([\d\.]+)/i], - [b, [v, 'Chromecast Fuchsia']], - [/crkey\/([\d\.]+).*devicetype\/smartspeaker/i], - [b, [v, 'Chromecast SmartSpeaker']], - [/linux.*crkey\/([\d\.]+)/i], - [b, [v, 'Chromecast Linux']], - [/crkey\/([\d\.]+)/i], - [b, [v, 'Chromecast']], - [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], - [b, v], - [/(ubuntu) ([\w\.]+) like android/i], - [[v, /(.+)/, '$1 Touch'], b], - [ - /(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i, + ruAd: [ + u('YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd'), + u('YVtocmVmKj0iLy91dGltZy5ydS8iXQ=='), + u('YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0='), + '#pgeldiz', + '.yandex-rtb-block', ], - [v, b], - [/\(bb(10);/i], - [b, [v, 'BlackBerry']], - [/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i], - [b, [v, 'Symbian']], - [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], - [b, [v, 'Firefox OS']], - [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], - [b, [v, 'webOS']], - [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], - [b, [v, 'watchOS']], - [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], - [[v, 'Chrome OS'], b], - [ - /panasonic;(viera)/i, - /(netrange)mmh/i, - /(nettv)\/(\d+\.[\w\.]+)/i, - /(nintendo|playstation) (\w+)/i, - /(xbox); +xbox ([^\);]+)/i, - /(pico) .+os([\w\.]+)/i, - /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, - /(mint)[\/\(\) ]?(\w*)/i, - /(mageia|vectorlinux)[; ]/i, - /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, - /(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i, - /(gnu) ?([\w\.]*)/i, - /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, - /(haiku) (\w+)/i, + thaiAds: [ + 'a[href*=macau-uta-popup]', + u('I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=='), + u('LmFkczMwMHM='), + '.bumq', + '.img-kosana', ], - [v, b], - [/(sunos) ?([\w\.\d]*)/i], - [[v, 'Solaris'], b], - [ - /((?:open)?solaris)[-\/ ]?([\w\.]*)/i, - /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, - /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, - /(unix) ?([\w\.]*)/i, + webAnnoyancesUltralist: [ + '#mod-social-share-2', + '#social-tools', + u('LmN0cGwtZnVsbGJhbm5lcg=='), + '.zergnet-recommend', + '.yt.btn-link.btn-md.btn', ], - [v, b], - ], - }, - ct = - ((n = { init: {}, isIgnore: {}, isIgnoreRgx: {}, toString: {} }), - tt.call(n.init, [ - [l, [v, b, E, _]], - [d, [y]], - [h, [_, w, m]], - [f, [v, b]], - [g, [v, b]], - ]), - tt.call(n.isIgnore, [ - [l, [b, E]], - [f, [b]], - [g, [b]], - ]), - tt.call(n.isIgnoreRgx, [ - [l, / ?browser$/i], - [g, / ?os$/i], - ]), - tt.call(n.toString, [ - [l, [v, b]], - [d, [y]], - [h, [m, w]], - [f, [v, b]], - [g, [v, b]], - ]), - n), - lt = function (t, e) { - var n = ct.init[e], - i = ct.isIgnore[e] || 0, - r = ct.isIgnoreRgx[e] || 0, - a = ct.toString[e] || 0; - function u() { - tt.call(this, n); - } - return ( - (u.prototype.getItem = function () { - return t; - }), - (u.prototype.withClientHints = function () { - return K - ? K.getHighEntropyValues(V).then(function (e) { - return t.setCH(new dt(e, !1)).parseCH().get(); - }) - : t.parseCH().get(); - }), - (u.prototype.withFeatureCheck = function () { - return t.detectFeature().get(); - }), - e != p && - ((u.prototype.is = function (t) { - var e = !1; - for (var n in this) - if ( - this.hasOwnProperty(n) && - !X(i, n) && - Q(r ? et(r, this[n]) : this[n]) == Q(r ? et(r, t) : t) - ) { - if (((e = !0), t != s)) break; - } else if (t == s && e) { - e = !e; - break; + }; + } + function St(u) { + var b = u === void 0 ? {} : u, + I = b.debug; + return n(this, void 0, void 0, function () { + var D, P, N, V, X, Y; + return r(this, function (J) { + switch (J.label) { + case 0: + return Dt() + ? ((D = ft()), + (P = Object.keys(D)), + (N = (Y = []).concat.apply( + Y, + P.map(function (Q) { + return D[Q]; + }), + )), + [4, Bt(N)]) + : [2, void 0]; + case 1: + return ( + (V = J.sent()), + I && Ft(D, V), + (X = P.filter(function (Q) { + var z = D[Q], + me = m( + z.map(function (Ie) { + return V[Ie]; + }), + ); + return me > z.length * 0.6; + })), + X.sort(), + [2, X] + ); + } + }); + }); + } + function Dt() { + return Re() || Pe(); + } + function Bt(u) { + var b; + return n(this, void 0, void 0, function () { + var I, D, P, N, Y, V, X, Y; + return r(this, function (J) { + switch (J.label) { + case 0: + for ( + I = document, + D = I.createElement('div'), + P = new Array(u.length), + N = {}, + Ot(D), + Y = 0; + Y < u.length; + ++Y + ) + (V = ie(u[Y])), + V.tagName === 'DIALOG' && V.show(), + (X = I.createElement('div')), + Ot(X), + X.appendChild(V), + D.appendChild(X), + (P[Y] = V); + J.label = 1; + case 1: + return I.body ? [3, 3] : [4, i(50)]; + case 2: + return J.sent(), [3, 1]; + case 3: + I.body.appendChild(D); + try { + for (Y = 0; Y < u.length; ++Y) P[Y].offsetParent || (N[u[Y]] = !0); + } finally { + (b = D.parentNode) === null || b === void 0 || b.removeChild(D); } - return e; - }), - (u.prototype.toString = function () { - var t = o; - for (var e in a) typeof this[a[e]] !== s && (t += (t ? ' ' : o) + this[a[e]]); - return t || s; - })), - K || - (u.prototype.then = function (t) { - var e = this, - n = function () { - for (var t in e) e.hasOwnProperty(t) && (this[t] = e[t]); - }; - n.prototype = { is: u.prototype.is, toString: u.prototype.toString }; - var i = new n(); - return t(i), i; - }), - new u() - ); - }; - function dt(t, e) { - if (((t = t || {}), tt.call(this, V), e)) - tt.call(this, [ - [T, Z(t[x])], - [P, Z(t[M])], - [S, /\?1/.test(t[N])], - [w, nt(t[B])], - [C, nt(t[F])], - [L, nt(t[H])], - [y, nt(t[R])], - [A, Z(t[k])], - [D, nt(t[U])], - ]); - else for (var n in t) this.hasOwnProperty(n) && typeof t[n] !== s && (this[n] = t[n]); - } - function ht(t, n, i, r) { - return ( - (this.get = function (t) { - return t ? (this.data.hasOwnProperty(t) ? this.data[t] : e) : this.data; - }), - (this.set = function (t, e) { - return (this.data[t] = e), this; - }), - (this.setCH = function (t) { - return (this.uaCH = t), this; - }), - (this.detectFeature = function () { - if (W && W.userAgent == this.ua) - switch (this.itemType) { - case l: - W.brave && typeof W.brave.isBrave == a && this.set(v, 'Brave'); - break; - case h: - !this.get(_) && K && K[S] && this.set(_, S), - 'Macintosh' == this.get(w) && - W && - typeof W.standalone !== s && - W.maxTouchPoints && - W.maxTouchPoints > 2 && - this.set(w, 'iPad').set(_, O); - break; - case g: - !this.get(v) && K && K[C] && this.set(v, K[C]); - break; - case p: - var t = this.data, - e = function (e) { - return t[e].getItem().detectFeature().get(); - }; - this.set(l, e(l)).set(d, e(d)).set(h, e(h)).set(f, e(f)).set(g, e(g)); + return [2, N]; } - return this; - }), - (this.parseUA = function () { - return ( - this.itemType != p && rt.call(this.data, this.ua, this.rgxMap), - this.itemType == l && this.set(E, $(this.get(b))), - this - ); - }), - (this.parseCH = function () { - var t = this.uaCH, - n = this.rgxMap; - switch (this.itemType) { - case l: - case f: - var i, - r = t[P] || t[T]; - if (r) - for (var o in r) { - var a = r[o].brand || r[o], - s = r[o].version; - this.itemType != l || - /not.a.brand/i.test(a) || - (i && (!/chrom/i.test(i) || a == G)) || - ((a = ot(a, { - Chrome: 'Google Chrome', - Edge: 'Microsoft Edge', - 'Chrome WebView': 'Android WebView', - 'Chrome Headless': 'HeadlessChrome', - })), - this.set(v, a).set(b, s).set(E, $(s)), - (i = a)), - this.itemType == f && a == G && this.set(b, s); - } - break; - case d: - var u = t[y]; - u && (u && '64' == t[D] && (u += '64'), rt.call(this.data, u + ';', n)); - break; - case h: - if ( - (t[S] && this.set(_, S), - t[w] && (this.set(w, t[w]), !this.get(_) || !this.get(m))) - ) { - var c = {}; - rt.call(c, 'droid 9; ' + t[w] + ')', n), - !this.get(_) && c.type && this.set(_, c.type), - !this.get(m) && c.vendor && this.set(m, c.vendor); - } - if (t[A]) { - var O; - if ('string' != typeof t[A]) - for (var I = 0; !O && I < t[A].length; ) O = ot(t[A][I++], st); - else O = ot(t[A], st); - this.set(_, O); - } - break; - case g: - var x = t[C]; - if (x) { - var M = t[L]; - x == j && (M = parseInt($(M), 10) >= 13 ? '11' : '10'), this.set(v, x).set(b, M); - } - this.get(v) == j && 'Xbox' == t[w] && this.set(v, 'Xbox').set(b, e); - break; - case p: - var R = this.data, - U = function (e) { - return R[e].getItem().setCH(t).parseCH().get(); - }; - this.set(l, U(l)).set(d, U(d)).set(h, U(h)).set(f, U(f)).set(g, U(g)); + }); + }); + } + function Ot(u) { + u.style.setProperty('visibility', 'hidden', 'important'), + u.style.setProperty('display', 'block', 'important'); + } + function Ft(u, b) { + for (var I = 'DOM blockers debug:\n```', D = 0, P = Object.keys(u); D < P.length; D++) { + var N = P[D]; + I += ` +`.concat(N, ':'); + for (var V = 0, X = u[N]; V < X.length; V++) { + var Y = X[V]; + I += ` + ` + .concat(b[Y] ? '\u{1F6AB}' : '\u27A1\uFE0F', ' ') + .concat(Y); } - return this; - }), - tt.call(this, [ - ['itemType', t], - ['ua', n], - ['uaCH', r], - ['rgxMap', i], - ['data', lt(this, t)], - ]), - this - ); - } - function ft(t, n, s) { - if ( - (typeof t === u - ? (q(t, !0) ? (typeof n === u && (s = n), (n = t)) : ((s = t), (n = e)), (t = e)) - : typeof t !== c || q(n, !0) || ((s = n), (n = e)), - s && typeof s.append === a) - ) { - var v = {}; - s.forEach(function (t, e) { - v[e] = t; - }), - (s = v); - } - if (!(this instanceof ft)) return new ft(t, n, s).getResult(); - var _ = typeof t === c ? t : s && s[r] ? s[r] : W && W.userAgent ? W.userAgent : o, - m = new dt(s, !0), - b = n ? z(ut, n) : ut, - y = function (t) { - return t == p - ? function () { - return new ht(t, _, b, m) - .set('ua', _) - .set(l, this.getBrowser()) - .set(d, this.getCPU()) - .set(h, this.getDevice()) - .set(f, this.getEngine()) - .set(g, this.getOS()) - .get(); - } - : function () { - return new ht(t, _, b[t], m).parseUA().get(); - }; - }; - return ( - tt - .call(this, [ - ['getBrowser', y(l)], - ['getCPU', y(d)], - ['getDevice', y(h)], - ['getEngine', y(f)], - ['getOS', y(g)], - ['getResult', y(p)], - [ - 'getUA', - function () { - return _; - }, - ], - [ - 'setUA', - function (t) { - return J(t) && (_ = t.length > i ? it(t, i) : t), this; - }, - ], - ]) - .setUA(_), - this - ); - } - (ft.VERSION = '2.0.2'), - (ft.BROWSER = Y([v, b, E, _])), - (ft.CPU = Y([y])), - (ft.DEVICE = Y([w, m, _, 'console', S, I, O, 'wearable', 'embedded'])), - (ft.ENGINE = ft.OS = Y([v, b])), - (t.UAParser = ft); - })(_POSignalsEntities || (_POSignalsEntities = {})), - ((_POSignalsEntities || (_POSignalsEntities = {})).evaluateModernizr = function () { - !(function (t, e, n, i) { - function r(t, e) { - return typeof t === e; + } + console.log(''.concat(I, '\n```')); } - function o() { - return 'function' != typeof n.createElement - ? n.createElement(arguments[0]) - : E - ? n.createElementNS.call(n, 'http://www.w3.org/2000/svg', arguments[0]) - : n.createElement.apply(n, arguments); + function Gt() { + for (var u = 0, b = ['rec2020', 'p3', 'srgb']; u < b.length; u++) { + var I = b[u]; + if (matchMedia('(color-gamut: '.concat(I, ')')).matches) return I; + } } - function a(t, e) { - return !!~('' + t).indexOf(e); + function It() { + if (Ht('inverted')) return !0; + if (Ht('none')) return !1; } - function s(t, e, i, r) { - var a, - s, - u, - c, - l = 'modernizr', - d = o('div'), - h = (function () { - var t = n.body; - return t || ((t = o(E ? 'svg' : 'body')).fake = !0), t; - })(); - if (parseInt(i, 10)) - for (; i--; ) ((u = o('div')).id = r ? r[i] : l + (i + 1)), d.appendChild(u); - return ( - ((a = o('style')).type = 'text/css'), - (a.id = 's' + l), - (h.fake ? h : d).appendChild(a), - h.appendChild(d), - a.styleSheet ? (a.styleSheet.cssText = t) : a.appendChild(n.createTextNode(t)), - (d.id = l), - h.fake && - ((h.style.background = ''), - (h.style.overflow = 'hidden'), - (c = y.style.overflow), - (y.style.overflow = 'hidden'), - y.appendChild(h)), - (s = e(d, t)), - h.fake && h.parentNode - ? (h.parentNode.removeChild(h), (y.style.overflow = c), y.offsetHeight) - : d.parentNode.removeChild(d), - !!s - ); + function Ht(u) { + return matchMedia('(inverted-colors: '.concat(u, ')')).matches; } - function u(t) { - return t - .replace(/([A-Z])/g, function (t, e) { - return '-' + e.toLowerCase(); - }) - .replace(/^ms-/, '-ms-'); - } - function c(t, n, i) { - var r; - if ('getComputedStyle' in e) { - r = getComputedStyle.call(e, t, n); - var o = e.console; - if (null !== r) i && (r = r.getPropertyValue(i)); - else if (o) { - o[o.error ? 'error' : 'log'].call( - o, - 'getComputedStyle returning null, its possible modernizr test results are inaccurate', - ); - } - } else r = !n && t.currentStyle && t.currentStyle[i]; - return r; + function hn() { + if (jt('active')) return !0; + if (jt('none')) return !1; } - function l(t, n) { - var r = t.length; - if (e && e.CSS && 'supports' in e.CSS) { - for (; r--; ) if (e.CSS.supports(u(t[r]), n)) return !0; - return !1; - } - if ('CSSSupportsRule' in e) { - for (var o = []; r--; ) o.push('(' + u(t[r]) + ':' + n + ')'); - return s( - '@supports (' + (o = o.join(' or ')) + ') { #modernizr { position: absolute; } }', - function (t) { - return 'absolute' === c(t, null, 'position'); - }, - ); + function jt(u) { + return matchMedia('(forced-colors: '.concat(u, ')')).matches; + } + var fn = 100; + function xn() { + if (matchMedia('(min-monochrome: 0)').matches) { + for (var u = 0; u <= fn; ++u) + if (matchMedia('(max-monochrome: '.concat(u, ')')).matches) return u; + throw new Error('Too high value'); } - return i; } - function d(t) { - return t - .replace(/([a-z])-([a-z])/g, function (t, e, n) { - return e + n.toUpperCase(); - }) - .replace(/^-/, ''); + function gn() { + if (Mt('no-preference')) return 0; + if (Mt('high') || Mt('more')) return 1; + if (Mt('low') || Mt('less')) return -1; + if (Mt('forced')) return 10; } - function h(t, e, n, s) { - function u() { - h && (delete T.style, delete T.modElem); - } - if (((s = !r(s, 'undefined') && s), !r(n, 'undefined'))) { - var c = l(t, n); - if (!r(c, 'undefined')) return c; - } - for (var h, f, g, p, v, _ = ['modernizr', 'tspan', 'samp']; !T.style && _.length; ) - (h = !0), (T.modElem = o(_.shift())), (T.style = T.modElem.style); - for (g = t.length, f = 0; f < g; f++) - if (((p = t[f]), (v = T.style[p]), a(p, '-') && (p = d(p)), T.style[p] !== i)) { - if (s || r(n, 'undefined')) return u(), 'pfx' !== e || p; - try { - T.style[p] = n; - } catch (t) {} - if (T.style[p] !== v) return u(), 'pfx' !== e || p; - } - return u(), !1; + function Mt(u) { + return matchMedia('(prefers-contrast: '.concat(u, ')')).matches; } - function f(t, e) { - return function () { - return t.apply(e, arguments); - }; + function pn() { + if (qt('reduce')) return !0; + if (qt('no-preference')) return !1; } - function g(t, e, n, i, o) { - var a = t.charAt(0).toUpperCase() + t.slice(1), - s = (t + ' ' + O.join(a + ' ') + a).split(' '); - return r(e, 'string') || r(e, 'undefined') - ? h(s, e, i, o) - : (function (t, e, n) { - var i; - for (var o in t) - if (t[o] in e) - return !1 === n ? t[o] : r((i = e[t[o]]), 'function') ? f(i, n || e) : i; - return !1; - })((s = (t + ' ' + A.join(a + ' ') + a).split(' ')), e, n); + function qt(u) { + return matchMedia('(prefers-reduced-motion: '.concat(u, ')')).matches; } - function p(t, e, n) { - return g(t, i, i, e, n); + function mn() { + if (Jt('reduce')) return !0; + if (Jt('no-preference')) return !1; } - var v = [], - _ = { - _version: '3.13.0', - _config: { classPrefix: '', enableClasses: !0, enableJSClass: !0, usePrefixes: !0 }, - _q: [], - on: function (t, e) { - var n = this; - setTimeout(function () { - e(n[t]); - }, 0); + function Jt(u) { + return matchMedia('(prefers-reduced-transparency: '.concat(u, ')')).matches; + } + function vn() { + if (Zt('high')) return !0; + if (Zt('standard')) return !1; + } + function Zt(u) { + return matchMedia('(dynamic-range: '.concat(u, ')')).matches; + } + var Me = Math, + Ze = function () { + return 0; + }; + function _n() { + var u = Me.acos || Ze, + b = Me.acosh || Ze, + I = Me.asin || Ze, + D = Me.asinh || Ze, + P = Me.atanh || Ze, + N = Me.atan || Ze, + V = Me.sin || Ze, + X = Me.sinh || Ze, + Y = Me.cos || Ze, + J = Me.cosh || Ze, + Q = Me.tan || Ze, + z = Me.tanh || Ze, + me = Me.exp || Ze, + Ie = Me.expm1 || Ze, + Ve = Me.log1p || Ze, + ze = function (Ne) { + return Me.pow(Me.PI, Ne); }, - addTest: function (t, e, n) { - v.push({ name: t, fn: e, options: n }); + je = function (Ne) { + return Me.log(Ne + Me.sqrt(Ne * Ne - 1)); }, - addAsyncTest: function (t) { - v.push({ name: null, fn: t }); + ke = function (Ne) { + return Me.log(Ne + Me.sqrt(Ne * Ne + 1)); }, - }, - m = function () {}; - (m.prototype = _), (m = new m()); - var b = [], - y = n.documentElement, - E = 'svg' === y.nodeName.toLowerCase(), - w = (function () { - var t = !('onblur' in y); - return function (e, n) { - var r; - return ( - !!e && - ((n && 'string' != typeof n) || (n = o(n || 'div')), - !(r = (e = 'on' + e) in n) && - t && - (n.setAttribute || (n = o('div')), - n.setAttribute(e, ''), - (r = 'function' == typeof n[e]), - n[e] !== i && (n[e] = i), - n.removeAttribute(e)), - r) - ); + Ye = function (Ne) { + return Me.log((1 + Ne) / (1 - Ne)) / 2; + }, + qe = function (Ne) { + return Me.exp(Ne) - 1 / Me.exp(Ne) / 2; + }, + gt = function (Ne) { + return (Me.exp(Ne) + 1 / Me.exp(Ne)) / 2; + }, + At = function (Ne) { + return Me.exp(Ne) - 1; + }, + bt = function (Ne) { + return (Me.exp(2 * Ne) - 1) / (Me.exp(2 * Ne) + 1); + }, + Rt = function (Ne) { + return Me.log(1 + Ne); }; - })(); - (_.hasEvent = w), - m.addTest('ambientlight', w('devicelight', e)), - m.addTest('applicationcache', 'applicationCache' in e), - (function () { - var t = o('audio'); - m.addTest('audio', function () { - var e = !1; - try { - (e = !!t.canPlayType) && (e = new Boolean(e)); - } catch (t) {} - return e; - }); - try { - t.canPlayType && - (m.addTest( - 'audio.ogg', - t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/, ''), - ), - m.addTest( - 'audio.mp3', - t.canPlayType('audio/mpeg; codecs="mp3"').replace(/^no$/, ''), - ), - m.addTest( - 'audio.opus', - t.canPlayType('audio/ogg; codecs="opus"') || - t.canPlayType('audio/webm; codecs="opus"').replace(/^no$/, ''), - ), - m.addTest('audio.wav', t.canPlayType('audio/wav; codecs="1"').replace(/^no$/, '')), - m.addTest( - 'audio.m4a', - (t.canPlayType('audio/x-m4a;') || t.canPlayType('audio/aac;')).replace( - /^no$/, - '', - ), - )); - } catch (t) {} - })(); - var S = 'Moz O ms Webkit', - O = _._config.usePrefixes ? S.split(' ') : []; - _._cssomPrefixes = O; - var I = { elem: o('modernizr') }; - m._q.push(function () { - delete I.elem; - }); - var T = { style: I.elem.style }; - m._q.unshift(function () { - delete T.style; - }); - var A = _._config.usePrefixes ? S.toLowerCase().split(' ') : []; - (_._domPrefixes = A), (_.testAllProps = g); - var P = function (t) { - var n, - r = x.length, - o = e.CSSRule; - if (void 0 === o) return i; - if (!t) return !1; - if ((n = (t = t.replace(/^@/, '')).replace(/-/g, '_').toUpperCase() + '_RULE') in o) - return '@' + t; - for (var a = 0; a < r; a++) { - var s = x[a]; - if (s.toUpperCase() + '_' + n in o) return '@-' + s.toLowerCase() + '-' + t; - } - return !1; - }; - _.atRule = P; - var C = (_.prefixed = function (t, e, n) { - return 0 === t.indexOf('@') - ? P(t) - : (-1 !== t.indexOf('-') && (t = d(t)), e ? g(t, e, n) : g(t, 'pfx')); - }); - m.addTest('batteryapi', !!C('battery', navigator) || !!C('getBattery', navigator), { - aliases: ['battery-api'], - }), - m.addTest( - 'blobconstructor', - function () { - try { - return !!new Blob(); - } catch (t) { - return !1; + return { + acos: u(0.12312423423423424), + acosh: b(1e308), + acoshPf: je(1e154), + asin: I(0.12312423423423424), + asinh: D(1), + asinhPf: ke(1), + atanh: P(0.5), + atanhPf: Ye(0.5), + atan: N(0.5), + sin: V(-1e300), + sinh: X(1), + sinhPf: qe(1), + cos: Y(10.000000000123), + cosh: J(1), + coshPf: gt(1), + tan: Q(-1e300), + tanh: z(1), + tanhPf: bt(1), + exp: me(1), + expm1: Ie(1), + expm1Pf: At(1), + log1p: Ve(10), + log1pPf: Rt(10), + powPI: ze(-100), + }; + } + var bn = 'mmMwWLliI0fiflO&1', + Wt = { + default: [], + apple: [{ font: '-apple-system-body' }], + serif: [{ fontFamily: 'serif' }], + sans: [{ fontFamily: 'sans-serif' }], + mono: [{ fontFamily: 'monospace' }], + min: [{ fontSize: '1px' }], + system: [{ fontFamily: 'system-ui' }], + }; + function wn() { + return yn(function (u, b) { + for (var I = {}, D = {}, P = 0, N = Object.keys(Wt); P < N.length; P++) { + var V = N[P], + X = Wt[V], + Y = X[0], + J = Y === void 0 ? {} : Y, + Q = X[1], + z = Q === void 0 ? bn : Q, + me = u.createElement('span'); + (me.textContent = z), (me.style.whiteSpace = 'nowrap'); + for (var Ie = 0, Ve = Object.keys(J); Ie < Ve.length; Ie++) { + var ze = Ve[Ie], + je = J[ze]; + je !== void 0 && (me.style[ze] = je); } - }, - { aliases: ['blob-constructor'] }, - ), - m.addTest('contextmenu', 'contextMenu' in y && 'HTMLMenuItemElement' in e), - m.addTest('cors', 'XMLHttpRequest' in e && 'withCredentials' in new XMLHttpRequest()); - var L = C('crypto', e); - m.addTest('crypto', !!C('subtle', L)), - m.addTest('customelements', 'customElements' in e), - m.addTest('customprotocolhandler', function () { - if (!navigator.registerProtocolHandler) return !1; - try { - navigator.registerProtocolHandler('thisShouldFail'); - } catch (t) { - return t instanceof TypeError; + (I[V] = me), b.append(u.createElement('br'), me); } - return !1; - }), - m.addTest('customevent', 'CustomEvent' in e && 'function' == typeof e.CustomEvent), - m.addTest('dart', !!C('startDart', navigator)), - m.addTest( - 'dataview', - 'undefined' != typeof DataView && 'getFloat64' in DataView.prototype, - ), - m.addTest('eventlistener', 'addEventListener' in e), - m.addTest('forcetouch', function () { - return ( - !!w(C('mouseforcewillbegin', e, !1), e) && - MouseEvent.WEBKIT_FORCE_AT_MOUSE_DOWN && - MouseEvent.WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN - ); - }), - m.addTest('fullscreen', !(!C('exitFullscreen', n, !1) && !C('cancelFullScreen', n, !1))), - m.addTest('gamepads', !!C('getGamepads', navigator)), - m.addTest('geolocation', 'geolocation' in navigator), - m.addTest('ie8compat', !e.addEventListener && !!n.documentMode && 7 === n.documentMode), - m.addTest('intl', !!C('Intl', e)), - m.addTest('json', 'JSON' in e && 'parse' in JSON && 'stringify' in JSON), - (_.testAllProps = p), - m.addTest('ligatures', p('fontFeatureSettings', '"liga" 1')), - m.addTest('messagechannel', 'MessageChannel' in e), - m.addTest('notification', function () { - if (!e.Notification || !e.Notification.requestPermission) return !1; - if ('granted' === e.Notification.permission) return !0; - try { - new e.Notification(''); - } catch (t) { - if ('TypeError' === t.name) return !1; + for (var ke = 0, Ye = Object.keys(Wt); ke < Ye.length; ke++) { + var V = Ye[ke]; + D[V] = I[V].getBoundingClientRect().width; } - return !0; - }), - m.addTest('pagevisibility', !!C('hidden', n, !1)), - m.addTest('performance', !!C('performance', e)); - var D = [''].concat(A); - (_._domPrefixesAll = D), - m.addTest('pointerevents', function () { - for (var t = 0, e = D.length; t < e; t++) if (w(D[t] + 'pointerdown')) return !0; - return !1; - }), - m.addTest('pointerlock', !!C('exitPointerLock', n)), - m.addTest('queryselector', 'querySelector' in n && 'querySelectorAll' in n), - m.addTest('quotamanagement', function () { - var t = C('temporaryStorage', navigator), - e = C('persistentStorage', navigator); - return !(!t || !e); - }), - m.addTest('requestanimationframe', !!C('requestAnimationFrame', e), { aliases: ['raf'] }), - m.addTest('serviceworker', 'serviceWorker' in navigator); - var x = _._config.usePrefixes ? ' -webkit- -moz- -o- -ms- '.split(' ') : ['', '']; - _._prefixes = x; - var M = (function () { - var t = e.matchMedia || e.msMatchMedia; - return t - ? function (e) { - var n = t(e); - return (n && n.matches) || !1; - } - : function (t) { - var e = !1; - return ( - s('@media ' + t + ' { #modernizr { position: absolute; } }', function (t) { - e = 'absolute' === c(t, null, 'position'); - }), - e - ); - }; - })(); - (_.mq = M), - m.addTest('touchevents', function () { - if ( - 'ontouchstart' in e || - e.TouchEvent || - (e.DocumentTouch && n instanceof DocumentTouch) - ) - return !0; - var t = ['(', x.join('touch-enabled),('), 'heartz', ')'].join(''); - return M(t); - }), - m.addTest('typedarrays', 'ArrayBuffer' in e), - m.addTest('vibrate', !!C('vibrate', navigator)), - (function () { - var t = o('video'); - m.addTest('video', function () { - var e = !1; - try { - (e = !!t.canPlayType) && (e = new Boolean(e)); - } catch (t) {} - return e; - }); - try { - t.canPlayType && - (m.addTest( - 'video.ogg', - t.canPlayType('video/ogg; codecs="theora"').replace(/^no$/, ''), - ), - m.addTest( - 'video.h264', - t.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/, ''), - ), - m.addTest( - 'video.h265', - t.canPlayType('video/mp4; codecs="hev1"').replace(/^no$/, ''), - ), - m.addTest( - 'video.webm', - t.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/, ''), - ), - m.addTest( - 'video.vp9', - t.canPlayType('video/webm; codecs="vp9"').replace(/^no$/, ''), - ), - m.addTest( - 'video.hls', - t.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(/^no$/, ''), - ), - m.addTest( - 'video.av1', - t.canPlayType('video/mp4; codecs="av01"').replace(/^no$/, ''), - )); - } catch (t) {} - })(), - m.addTest('webgl', function () { - return 'WebGLRenderingContext' in e; + return D; }); - var R = !1; - try { - R = 'WebSocket' in e && 2 === e.WebSocket.CLOSING; - } catch (t) {} - m.addTest('websockets', R), - m.addTest('xdomainrequest', 'XDomainRequest' in e), - m.addTest('matchmedia', !!C('matchMedia', e)), - (function () { - var t, e, n, i, o, a; - for (var s in v) - if (v.hasOwnProperty(s)) { - if ( - ((t = []), - (e = v[s]).name && - (t.push(e.name.toLowerCase()), - e.options && e.options.aliases && e.options.aliases.length)) - ) - for (n = 0; n < e.options.aliases.length; n++) - t.push(e.options.aliases[n].toLowerCase()); - for (i = r(e.fn, 'function') ? e.fn() : e.fn, o = 0; o < t.length; o++) - 1 === (a = t[o].split('.')).length - ? (m[a[0]] = i) - : ((m[a[0]] && (!m[a[0]] || m[a[0]] instanceof Boolean)) || - (m[a[0]] = new Boolean(m[a[0]])), - (m[a[0]][a[1]] = i)), - b.push((i ? '' : 'no-') + a.join('-')); - } - })(), - delete _.addTest, - delete _.addAsyncTest; - for (var U = 0; U < m._q.length; U++) m._q[U](); - t.Modernizr = m; - })(_POSignalsEntities || (_POSignalsEntities = {}), window, document); - }), - ((void 0 !== _POSignalsEntities ? _POSignalsEntities : (_POSignalsEntities = {})).AiaSignals = - (function (t) { - 'use strict'; - var e = [ - { name: 'IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE', value: !1, error: null }, - { name: 'FILE_INJECT_JS_FOUND', value: !1, error: null }, - { name: 'FILE_CONTENT_JS_FOUND', value: !1, error: null }, - { name: 'WINDOW_GLOBAL_KEY_FOUND', value: !1, error: null }, - ], - n = { webAuthn: 1e3, manus: 5e3, anchor: 5e3, skyvern: 5e3, detect: 1e4 }; - function i(t) { - for (var n = 0; n < e.length; n++) if (e[n].name === t) return e[n]; - return null; } - function r(t, e) { - var n = i(t); - n && ((n.value = e), (n.error = null)); + function yn(u, b) { + return ( + b === void 0 && (b = 4e3), + j(function (I, D) { + var P = D.document, + N = P.body, + V = N.style; + (V.width = ''.concat(b, 'px')), + (V.webkitTextSizeAdjust = V.textSizeAdjust = 'none'), + Fe() + ? (N.style.zoom = ''.concat(1 / D.devicePixelRatio)) + : Re() && (N.style.zoom = 'reset'); + var X = P.createElement('div'); + return ( + (X.textContent = a([], Array((b / 20) << 0), !0) + .map(function () { + return 'word'; + }) + .join(' ')), + N.appendChild(X), + u(P, N) + ); + }, '') + ); } - function o(t, e, n) { - var r = i(t); - r && ((r.value = e), (r.error = n)); + function En() { + return navigator.pdfViewerEnabled; } - function a() { - return new Promise(function (t) { - var i = n.webAuthn, - a = setTimeout(function () { - o('IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE', !1, 1004), t(e); - }, i); - try { - window.PublicKeyCredential && - 'function' == typeof PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable - ? PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable() - .then(function (n) { - clearTimeout(a), - n - ? r('IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE', !0) - : o('IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE', !1, 1001), - t(e); - }) - .catch(function () { - clearTimeout(a), - o('IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE', !1, 1002), - t(e); - }) - : (clearTimeout(a), - o('IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE', !1, 1003), - t(e)); - } catch (n) { - clearTimeout(a), - o('IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE', !1, 1002), - t(e); - } - }); + function Sn() { + var u = new Float32Array(1), + b = new Uint8Array(u.buffer); + return (u[0] = 1 / 0), (u[0] = u[0] - u[0]), b[3]; } - function s() { - return new Promise(function (t) { - var i, - a = n.manus, - s = document.createElement('script'); - (s.src = 'chrome-extension://mljmkmodkfigdopcpgboaalildgijkoc/content.ts.js'), - (s.onload = function () { - clearTimeout(i), r('FILE_CONTENT_JS_FOUND', !0), t(e); - }), - (s.onerror = function () { - clearTimeout(i), o('FILE_CONTENT_JS_FOUND', !1, 2002), t(e); - }), - document.getElementsByTagName('head')[0].appendChild(s), - (i = setTimeout(function () { - o('FILE_CONTENT_JS_FOUND', !1, 2001), t(e); - }, a)); - }); + function In() { + var u = window.ApplePaySession; + if (typeof (u == null ? void 0 : u.canMakePayments) != 'function') return -1; + if (An()) return -3; + try { + return u.canMakePayments() ? 1 : 0; + } catch (b) { + return Tn(b); + } } - function u() { - return new Promise(function (t) { - var i, - a = n.anchor, - s = document.createElement('script'); - (s.src = 'chrome-extension://bppehibnhionalpjigdjdilknbljaeai/inject.js'), - (s.onload = function () { - clearTimeout(i), r('FILE_INJECT_JS_FOUND', !0), t(e); - }), - (s.onerror = function () { - clearTimeout(i), o('FILE_INJECT_JS_FOUND', !1, 4002), t(e); - }), - document.getElementsByTagName('head')[0].appendChild(s), - (i = setTimeout(function () { - o('FILE_INJECT_JS_FOUND', !1, 4001), t(e); - }, a)); - }); + var An = ve; + function Tn(u) { + if ( + u instanceof Error && + u.name === 'InvalidAccessError' && + /\bfrom\b.*\binsecure\b/i.test(u.message) + ) + return -2; + throw u; } - function c() { - return new Promise(function (t) { - var i = n.skyvern, - a = 1e3, - s = 0; - function u() { - if ( - window.globalDomDepthMap || - window.GlobalEnableAllTextualElements || - window.globalObserverForDOMIncrement || - window.globalListnerFlag || - window.globalDomDepthMap || - window.globalOneTimeIncrementElements || - window.globalHoverStylesMap || - window.globalParsedElementCounter - ) - return r('WINDOW_GLOBAL_KEY_FOUND', !0), void t(e); - for (var n in window) - if ( - 'string' == typeof n && - -1 !== n.toLowerCase().indexOf('skyvern') && - 'isSkyvern' !== n - ) - return r('WINDOW_GLOBAL_KEY_FOUND', !0), void t(e); - (s += a) >= i ? (o('WINDOW_GLOBAL_KEY_FOUND', !1, 5002), t(e)) : setTimeout(u, a); + function Ln() { + var u, + b = document.createElement('a'), + I = (u = b.attributionSourceId) !== null && u !== void 0 ? u : b.attributionsourceid; + return I === void 0 ? void 0 : String(I); + } + var $t = -1, + Qt = -2, + Cn = 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, + ]), + Dn = new Set([34047, 35723, 36063, 34852, 34853, 34854, 34229, 36392, 36795, 38449]), + On = ['FRAGMENT_SHADER', 'VERTEX_SHADER'], + Mn = ['LOW_FLOAT', 'MEDIUM_FLOAT', 'HIGH_FLOAT', 'LOW_INT', 'MEDIUM_INT', 'HIGH_INT'], + en = 'WEBGL_debug_renderer_info', + Rn = 'WEBGL_polygon_mode'; + function Un(u) { + var b, + I, + D, + P, + N, + V, + X = u.cache, + Y = Kt(X); + if (!Y) return $t; + if (!rn(Y)) return Qt; + var J = nn() ? null : Y.getExtension(en); + return { + version: + ((b = Y.getParameter(Y.VERSION)) === null || b === void 0 ? void 0 : b.toString()) || + '', + vendor: + ((I = Y.getParameter(Y.VENDOR)) === null || I === void 0 ? void 0 : I.toString()) || + '', + vendorUnmasked: J + ? (D = Y.getParameter(J.UNMASKED_VENDOR_WEBGL)) === null || D === void 0 + ? void 0 + : D.toString() + : '', + renderer: + ((P = Y.getParameter(Y.RENDERER)) === null || P === void 0 ? void 0 : P.toString()) || + '', + rendererUnmasked: J + ? (N = Y.getParameter(J.UNMASKED_RENDERER_WEBGL)) === null || N === void 0 + ? void 0 + : N.toString() + : '', + shadingLanguageVersion: + ((V = Y.getParameter(Y.SHADING_LANGUAGE_VERSION)) === null || V === void 0 + ? void 0 + : V.toString()) || '', + }; + } + function kn(u) { + var b = u.cache, + I = Kt(b); + if (!I) return $t; + if (!rn(I)) return Qt; + var D = I.getSupportedExtensions(), + P = I.getContextAttributes(), + N = [], + V = [], + X = [], + Y = [], + J = []; + if (P) + for (var Q = 0, z = Object.keys(P); Q < z.length; Q++) { + var me = z[Q]; + V.push(''.concat(me, '=').concat(P[me])); + } + for (var Ie = tn(I), Ve = 0, ze = Ie; Ve < ze.length; Ve++) { + var je = ze[Ve], + ke = I[je]; + X.push( + '' + .concat(je, '=') + .concat(ke) + .concat(Cn.has(ke) ? '='.concat(I.getParameter(ke)) : ''), + ); + } + if (D) + for (var Ye = 0, qe = D; Ye < qe.length; Ye++) { + var gt = qe[Ye]; + if (!((gt === en && nn()) || (gt === Rn && Pn()))) { + var At = I.getExtension(gt); + if (!At) { + N.push(gt); + continue; + } + for (var bt = 0, Rt = tn(At); bt < Rt.length; bt++) { + var je = Rt[bt], + ke = At[je]; + Y.push( + '' + .concat(je, '=') + .concat(ke) + .concat(Dn.has(ke) ? '='.concat(I.getParameter(ke)) : ''), + ); + } + } + } + for (var Ne = 0, cn = On; Ne < cn.length; Ne++) + for (var ln = cn[Ne], Xt = 0, dn = Mn; Xt < dn.length; Xt++) { + var un = dn[Xt], + $n = Nn(I, ln, un); + J.push(''.concat(ln, '.').concat(un, '=').concat($n.join(','))); } - 'loading' === document.readyState - ? document.addEventListener('DOMContentLoaded', u) - : u(); + return ( + Y.sort(), + X.sort(), + { + contextAttributes: V, + parameters: X, + shaderPrecisions: J, + extensions: D, + extensionParameters: Y, + unsupportedExtensions: N, + } + ); + } + function Kt(u) { + if (u.webgl) return u.webgl.context; + var b = document.createElement('canvas'), + I; + b.addEventListener('webglCreateContextError', function () { + return (I = void 0); }); + for (var D = 0, P = ['webgl', 'experimental-webgl']; D < P.length; D++) { + var N = P[D]; + try { + I = b.getContext(N); + } catch {} + if (I) break; + } + return (u.webgl = { context: I }), I; } - return ( - (t.detect = function () { - return new Promise(function (t) { - var r = setTimeout(function () { - t(e); - }, n.detect); - a() - .then(function (n) { - var o = i('IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE'); - if (o && o.value) return clearTimeout(r), void t(e); - for ( - var a = [ - s().then(function (t) { - return { key: 'manus', result: t }; - }), - u().then(function (t) { - return { key: 'anchor', result: t }; - }), - c().then(function (t) { - return { key: 'skyvern', result: t }; - }), - ], - l = 0, - d = function () { - ++l === a.length && (clearTimeout(r), t(e)); - }, - h = 0; - h < a.length; - h++ - ) - a[h].then(d).catch(function () { - d(); - }); - }) - .catch(function () { - clearTimeout(r), t(e); - }); - }); - }), - (t.checkWebAuthnPlatformSupport = a), - (t.isManus = s), - (t.isAnchor = u), - (t.isSkyvern = c), - Object.defineProperty(t, '__esModule', { value: !0 }), - t - ); - })({})), - ((_POSignalsEntities || (_POSignalsEntities = {})).pako = (function t(e, n, i) { - function r(a, s) { - if (!n[a]) { - if (!e[a]) { - var u = 'function' == typeof require && require; - if (!s && u) return u(a, !0); - if (o) return o(a, !0); - var c = new Error("Cannot find module '" + a + "'"); - throw ((c.code = 'MODULE_NOT_FOUND'), c); + function Nn(u, b, I) { + var D = u.getShaderPrecisionFormat(u[b], u[I]); + return D ? [D.rangeMin, D.rangeMax, D.precision] : []; + } + function tn(u) { + var b = Object.keys(u.__proto__); + return b.filter(Fn); + } + function Fn(u) { + return typeof u == 'string' && !u.match(/[^A-Z0-9_x]/); + } + function nn() { + return Xe(); + } + function Pn() { + return Fe() || Re(); + } + function rn(u) { + return typeof u.getParameter == 'function'; + } + function Bn() { + var u, + b = Pe() || Re(); + return b + ? window.AudioContext && (u = new AudioContext().baseLatency) !== null && u !== void 0 + ? u + : -1 + : -2; + } + function Hn() { + if (!window.Intl) return -1; + var u = window.Intl.DateTimeFormat; + if (!u) return -2; + var b = u().resolvedOptions().locale; + return !b && b !== '' ? -3 : b; + } + var an = { + fonts: A, + domBlockers: St, + fontPreferences: wn, + audio: tt, + screenFrame: Vt, + canvas: de, + osCpu: ct, + languages: kt, + colorDepth: lt, + deviceMemory: vt, + screenResolution: wt, + hardwareConcurrency: dt, + timezone: te, + sessionStorage: he, + localStorage: Ae, + indexedDB: pe, + openDatabase: Ue, + cpuClass: xe, + platform: Ce, + plugins: re, + touchSupport: Ut, + vendor: Ee, + vendorFlavors: Be, + cookiesEnabled: ut, + colorGamut: Gt, + invertedColors: It, + forcedColors: hn, + monochrome: xn, + contrast: gn, + reducedMotion: pn, + reducedTransparency: mn, + hdr: vn, + math: _n, + pdfViewerEnabled: En, + architecture: Sn, + applePay: In, + privateClickMeasurement: Ln, + audioBaseLatency: Bn, + dateTimeLocale: Hn, + webGlBasics: Un, + webGlExtensions: kn, + }; + function Vn(u) { + return oe(an, u, []); + } + var Gn = '$ if upgrade to Pro: https://fpjs.dev/pro'; + function Wn(u) { + var b = Kn(u), + I = zn(b); + return { score: b, comment: Gn.replace(/\$/g, ''.concat(I)) }; + } + function Kn(u) { + if (Pe()) return 0.4; + if (Re()) return Le() && !(Ke() && Oe()) ? 0.5 : 0.3; + var b = 'value' in u.platform ? u.platform.value : ''; + return /^Win/.test(b) ? 0.6 : /^Mac/.test(b) ? 0.5 : 0.7; + } + function zn(u) { + return w(0.99 + 0.01 * u, 1e-4); + } + function Yn(u) { + for (var b = '', I = 0, D = Object.keys(u).sort(); I < D.length; I++) { + var P = D[I], + N = u[P], + V = 'error' in N ? 'error' : JSON.stringify(N.value); + b += '' + .concat(b ? '|' : '') + .concat(P.replace(/([:|\\])/g, '\\$1'), ':') + .concat(V); } - var l = (n[a] = { exports: {} }); - e[a][0].call( - l.exports, - function (t) { - var n = e[a][1][t]; - return r(n || t); + return b; + } + function zt(u) { + return JSON.stringify( + u, + function (b, I) { + return I instanceof Error ? He(I) : I; }, - l, - l.exports, - t, - e, - n, - i, + 2, ); } - return n[a].exports; - } - for (var o = 'function' == typeof require && require, a = 0; a < i.length; a++) r(i[a]); - return r; - })( - { - 1: [ - function (t, e, n) { - 'use strict'; - function i(t, e) { - return Object.prototype.hasOwnProperty.call(t, e); - } - var r = - 'undefined' != typeof Uint8Array && - 'undefined' != typeof Uint16Array && - 'undefined' != typeof Int32Array; - (n.assign = function (t) { - for (var e = Array.prototype.slice.call(arguments, 1); e.length; ) { - var n = e.shift(); - if (n) { - if ('object' != typeof n) throw new TypeError(n + 'must be non-object'); - for (var r in n) i(n, r) && (t[r] = n[r]); - } - } - return t; - }), - (n.shrinkBuf = function (t, e) { - return t.length === e ? t : t.subarray ? t.subarray(0, e) : ((t.length = e), t); + function Yt(u) { + return we(Yn(u)); + } + function Xn(u) { + var b, + I = Wn(u); + return { + get visitorId() { + return b === void 0 && (b = Yt(this.components)), b; + }, + set visitorId(D) { + b = D; + }, + confidence: I, + components: u, + version: s, + }; + } + function sn(u) { + return u === void 0 && (u = 50), e(u, u * 2); + } + function jn(u, b) { + var I = Date.now(); + return { + get: function (D) { + return n(this, void 0, void 0, function () { + var P, N, V; + return r(this, function (X) { + switch (X.label) { + case 0: + return (P = Date.now()), [4, u()]; + case 1: + return ( + (N = X.sent()), + (V = Xn(N)), + (b || (D != null && D.debug)) && + console.log( + 'Copy the text below to get the debug data:\n\n```\nversion: ' + .concat( + V.version, + ` +userAgent: `, + ) + .concat( + navigator.userAgent, + ` +timeBetweenLoadAndGet: `, + ) + .concat( + P - I, + ` +visitorId: `, + ) + .concat( + V.visitorId, + ` +components: `, + ) + .concat(zt(N), '\n```'), + ), + [2, V] + ); + } + }); }); - var o = { - arraySet: function (t, e, n, i, r) { - if (e.subarray && t.subarray) t.set(e.subarray(n, n + i), r); - else for (var o = 0; o < i; o++) t[r + o] = e[n + o]; - }, - flattenChunks: function (t) { - var e, n, i, r, o, a; - for (i = 0, e = 0, n = t.length; e < n; e++) i += t[e].length; - for (a = new Uint8Array(i), r = 0, e = 0, n = t.length; e < n; e++) - (o = t[e]), a.set(o, r), (r += o.length); - return a; - }, - }, - a = { - arraySet: function (t, e, n, i, r) { - for (var o = 0; o < i; o++) t[r + o] = e[n + o]; - }, - flattenChunks: function (t) { - return [].concat.apply([], t); - }, - }; - (n.setTyped = function (t) { - t - ? ((n.Buf8 = Uint8Array), - (n.Buf16 = Uint16Array), - (n.Buf32 = Int32Array), - n.assign(n, o)) - : ((n.Buf8 = Array), (n.Buf16 = Array), (n.Buf32 = Array), n.assign(n, a)); - }), - n.setTyped(r); - }, - {}, - ], - 2: [ - function (t, e, n) { - 'use strict'; - function i(t, e) { - if (e < 65537 && ((t.subarray && a) || (!t.subarray && o))) - return String.fromCharCode.apply(null, r.shrinkBuf(t, e)); - for (var n = '', i = 0; i < e; i++) n += String.fromCharCode(t[i]); - return n; - } - var r = t('./common'), - o = !0, - a = !0; - try { - String.fromCharCode.apply(null, [0]); - } catch (t) { - o = !1; - } + }, + }; + } + function qn() { + if (!(window.__fpjs_d_m || Math.random() >= 0.001)) try { - String.fromCharCode.apply(null, new Uint8Array(1)); - } catch (t) { - a = !1; + var u = new XMLHttpRequest(); + u.open( + 'get', + 'https://m1.openfpcdn.io/fingerprintjs/v'.concat(s, '/npm-monitoring'), + !0, + ), + u.send(); + } catch (b) { + console.error(b); } - for (var s = new r.Buf8(256), u = 0; u < 256; u++) - s[u] = u >= 252 ? 6 : u >= 248 ? 5 : u >= 240 ? 4 : u >= 224 ? 3 : u >= 192 ? 2 : 1; - (s[254] = s[254] = 1), - (n.string2buf = function (t) { - var e, - n, - i, - o, - a, - s = t.length, - u = 0; - for (o = 0; o < s; o++) - 55296 == (64512 & (n = t.charCodeAt(o))) && - o + 1 < s && - 56320 == (64512 & (i = t.charCodeAt(o + 1))) && - ((n = 65536 + ((n - 55296) << 10) + (i - 56320)), o++), - (u += n < 128 ? 1 : n < 2048 ? 2 : n < 65536 ? 3 : 4); - for (e = new r.Buf8(u), a = 0, o = 0; a < u; o++) - 55296 == (64512 & (n = t.charCodeAt(o))) && - o + 1 < s && - 56320 == (64512 & (i = t.charCodeAt(o + 1))) && - ((n = 65536 + ((n - 55296) << 10) + (i - 56320)), o++), - n < 128 - ? (e[a++] = n) - : n < 2048 - ? ((e[a++] = 192 | (n >>> 6)), (e[a++] = 128 | (63 & n))) - : n < 65536 - ? ((e[a++] = 224 | (n >>> 12)), - (e[a++] = 128 | ((n >>> 6) & 63)), - (e[a++] = 128 | (63 & n))) - : ((e[a++] = 240 | (n >>> 18)), - (e[a++] = 128 | ((n >>> 12) & 63)), - (e[a++] = 128 | ((n >>> 6) & 63)), - (e[a++] = 128 | (63 & n))); - return e; - }), - (n.buf2binstring = function (t) { - return i(t, t.length); - }), - (n.binstring2buf = function (t) { - for (var e = new r.Buf8(t.length), n = 0, i = e.length; n < i; n++) - e[n] = t.charCodeAt(n); - return e; - }), - (n.buf2string = function (t, e) { - var n, - r, - o, - a, - u = e || t.length, - c = new Array(2 * u); - for (r = 0, n = 0; n < u; ) - if ((o = t[n++]) < 128) c[r++] = o; - else if ((a = s[o]) > 4) (c[r++] = 65533), (n += a - 1); - else { - for (o &= 2 === a ? 31 : 3 === a ? 15 : 7; a > 1 && n < u; ) - (o = (o << 6) | (63 & t[n++])), a--; - a > 1 - ? (c[r++] = 65533) - : o < 65536 - ? (c[r++] = o) - : ((o -= 65536), - (c[r++] = 55296 | ((o >> 10) & 1023)), - (c[r++] = 56320 | (1023 & o))); - } - return i(c, r); - }), - (n.utf8border = function (t, e) { - var n; - for ( - (e = e || t.length) > t.length && (e = t.length), n = e - 1; - n >= 0 && 128 == (192 & t[n]); - - ) - n--; - return n < 0 ? e : 0 === n ? e : n + s[t[n]] > e ? n : e; + } + function on(u) { + var b; + return ( + u === void 0 && (u = {}), + n(this, void 0, void 0, function () { + var I, D, P; + return r(this, function (N) { + switch (N.label) { + case 0: + return ( + (!((b = u.monitoring) !== null && b !== void 0) || b) && qn(), + (I = u.delayFallback), + (D = u.debug), + [4, sn(I)] + ); + case 1: + return N.sent(), (P = Vn({ cache: {}, debug: D })), [2, jn(P, D)]; + } }); + }) + ); + } + var Jn = { load: on, hashComponents: Yt, componentsToDebugString: zt }, + Zn = we; + return ( + (h.componentsToDebugString = zt), + (h.default = Jn), + (h.getFullscreenElement = _e), + (h.getUnstableAudioFingerprint = rt), + (h.getUnstableCanvasFingerprint = ce), + (h.getUnstableScreenFrame = Et), + (h.getUnstableScreenResolution = _t), + (h.getWebGLContext = Kt), + (h.hashComponents = Yt), + (h.isAndroid = Pe), + (h.isChromium = Fe), + (h.isDesktopWebKit = Le), + (h.isEdgeHTML = Te), + (h.isGecko = Xe), + (h.isSamsungInternet = et), + (h.isTrident = De), + (h.isWebKit = Re), + (h.load = on), + (h.loadSources = oe), + (h.murmurX64Hash128 = Zn), + (h.prepareForSources = sn), + (h.sources = an), + (h.transformSource = ge), + (h.withIframe = j), + Object.defineProperty(h, '__esModule', { value: !0 }), + h + ); + })({}); + })(_POSignalsEntities || (_POSignalsEntities = {})), + (function (c) { + c.BroprintJS = (function (h) { + 'use strict'; + const p = function (i, t = 0) { + let e = 3735928559 ^ t, + l = 1103547991 ^ t; + for (let o = 0, x; o < i.length; o++) + (x = i.charCodeAt(o)), + (e = Math.imul(e ^ x, 2654435761)), + (l = Math.imul(l ^ x, 1597334677)); + return ( + (e = Math.imul(e ^ (e >>> 16), 2246822507) ^ Math.imul(l ^ (l >>> 13), 3266489909)), + (l = Math.imul(l ^ (l >>> 16), 2246822507) ^ Math.imul(e ^ (e >>> 13), 3266489909)), + 4294967296 * (2097151 & l) + (e >>> 0) + ); }, - { './common': 1 }, - ], - 3: [ - function (t, e, n) { - 'use strict'; - e.exports = function (t, e, n, i) { - for (var r = (65535 & t) | 0, o = ((t >>> 16) & 65535) | 0, a = 0; 0 !== n; ) { - n -= a = n > 2e3 ? 2e3 : n; - do { - o = (o + (r = (r + e[i++]) | 0)) | 0; - } while (--a); - (r %= 65521), (o %= 65521); - } - return r | (o << 16) | 0; - }; + n = () => { + const i = document.createElement('canvas'); + return !!(i.getContext && i.getContext('2d')); }, - {}, - ], - 4: [ - function (t, e, n) { - 'use strict'; - var i = (function () { - for (var t, e = [], n = 0; n < 256; n++) { - t = n; - for (var i = 0; i < 8; i++) t = 1 & t ? 3988292384 ^ (t >>> 1) : t >>> 1; - e[n] = t; - } - return e; - })(); - e.exports = function (t, e, n, r) { - var o = i, - a = r + n; - t ^= -1; - for (var s = r; s < a; s++) t = (t >>> 8) ^ o[255 & (t ^ e[s])]; - return -1 ^ t; - }; + r = () => { + if (!n()) return 'canvas not supported'; + var i = document.createElement('canvas'), + t = i.getContext('2d'), + e = 'BroPrint.65@345876'; + return ( + (t.textBaseline = 'top'), + (t.font = "14px 'Arial'"), + (t.textBaseline = 'alphabetic'), + (t.fillStyle = '#f60'), + t.fillRect(125, 1, 62, 20), + (t.fillStyle = '#069'), + t.fillText(e, 2, 15), + (t.fillStyle = 'rgba(102, 204, 0, 0.7)'), + t.fillText(e, 4, 17), + i.toDataURL() + ); }, - {}, - ], - 5: [ - function (t, e, n) { - 'use strict'; - function i(t, e) { - return (t.msg = A[e]), e; + a = (function () { + let i = null, + t = null, + e = null, + l = null, + o = null, + x = null; + function v(S, U = !1) { + x = S; + try { + y(), + e.connect(l), + l.connect(i.destination), + e.start(0), + i.startRendering(), + (i.oncomplete = m); + } catch (T) { + if (U) throw T; + } } - function r(t) { - return (t << 1) - (t > 4 ? 9 : 0); + function y() { + L(), (t = i.currentTime), g(), E(); } - function o(t) { - for (var e = t.length; --e >= 0; ) t[e] = 0; + function L() { + let S = window.OfflineAudioContext || window.webkitOfflineAudioContext; + i = new S(1, 44100, 44100); } - function a(t) { - var e = t.state, - n = e.pending; - n > t.avail_out && (n = t.avail_out), - 0 !== n && - (S.arraySet(t.output, e.pending_buf, e.pending_out, n, t.next_out), - (t.next_out += n), - (e.pending_out += n), - (t.total_out += n), - (t.avail_out -= n), - (e.pending -= n), - 0 === e.pending && (e.pending_out = 0)); + function g() { + (e = i.createOscillator()), (e.type = 'triangle'), e.frequency.setValueAtTime(1e4, t); } - function s(t, e) { - O._tr_flush_block( - t, - t.block_start >= 0 ? t.block_start : -1, - t.strstart - t.block_start, - e, - ), - (t.block_start = t.strstart), - a(t.strm); + function E() { + (l = i.createDynamicsCompressor()), + f('threshold', -50), + f('knee', 40), + f('ratio', 12), + f('reduction', -20), + f('attack', 0), + f('release', 0.25); } - function u(t, e) { - t.pending_buf[t.pending++] = e; + function f(S, U) { + l[S] !== void 0 && + typeof l[S].setValueAtTime == 'function' && + l[S].setValueAtTime(U, i.currentTime); } - function c(t, e) { - (t.pending_buf[t.pending++] = (e >>> 8) & 255), - (t.pending_buf[t.pending++] = 255 & e); + function m(S) { + w(S), l.disconnect(); } - function l(t, e, n, i) { - var r = t.avail_in; - return ( - r > i && (r = i), - 0 === r - ? 0 - : ((t.avail_in -= r), - S.arraySet(e, t.input, t.next_in, r, n), - 1 === t.state.wrap - ? (t.adler = I(t.adler, e, r, n)) - : 2 === t.state.wrap && (t.adler = T(t.adler, e, r, n)), - (t.next_in += r), - (t.total_in += r), - r) - ); + function w(S) { + let U = null; + for (var T = 4500; 5e3 > T; T++) { + var O = S.renderedBuffer.getChannelData(0)[T]; + U += Math.abs(O); + } + if (((o = U.toString()), typeof x == 'function')) return x(o); } - function d(t, e) { - var n, - i, - r = t.max_chain_length, - o = t.strstart, - a = t.prev_length, - s = t.nice_match, - u = t.strstart > t.w_size - K ? t.strstart - (t.w_size - K) : 0, - c = t.window, - l = t.w_mask, - d = t.prev, - h = t.strstart + W, - f = c[o + a - 1], - g = c[o + a]; - t.prev_length >= t.good_match && (r >>= 2), s > t.lookahead && (s = t.lookahead); - do { - if ( - c[(n = e) + a] === g && - c[n + a - 1] === f && - c[n] === c[o] && - c[++n] === c[o + 1] - ) { - (o += 2), n++; - do {} while ( - c[++o] === c[++n] && - c[++o] === c[++n] && - c[++o] === c[++n] && - c[++o] === c[++n] && - c[++o] === c[++n] && - c[++o] === c[++n] && - c[++o] === c[++n] && - c[++o] === c[++n] && - o < h - ); - if (((i = W - (h - o)), (o = h - W), i > a)) { - if (((t.match_start = e), (a = i), i >= s)) break; - (f = c[o + a - 1]), (g = c[o + a]); - } - } - } while ((e = d[e & l]) > u && 0 != --r); - return a <= t.lookahead ? a : t.lookahead; + return { run: v }; + })(); + function s() { + const i = new Promise((t, e) => { + a.run(function (l) { + t(l); + }); + }); + return new Promise((t, e) => { + i.then(async (l) => { + let o = ''; + navigator.brave && (await navigator.brave.isBrave()), + (o = window.btoa(l) + r()), + t(p(o, 0)); + }).catch(() => { + try { + t(p(r()).toString()); + } catch { + e('Failed to generate the finger print of this browser'); + } + }); + }); + } + return ( + (h.getCurrentBrowserFingerPrint = s), + Object.defineProperty(h, '__esModule', { value: !0 }), + h + ); + })({}); + })(_POSignalsEntities || (_POSignalsEntities = {})), + (function (c, h) { + h(c); + })(_POSignalsEntities || (_POSignalsEntities = {}), function (c) { + 'use strict'; + var h, + p, + n = function (O, C) { + var k = typeof Symbol == 'function' && O[Symbol.iterator]; + if (!k) return O; + var R, + H, + ee = k.call(O), + M = []; + try { + for (; (C === void 0 || C-- > 0) && !(R = ee.next()).done; ) M.push(R.value); + } catch (K) { + H = { error: K }; + } finally { + try { + R && !R.done && (k = ee.return) && k.call(ee); + } finally { + if (H) throw H.error; } - function h(t) { - var e, - n, - i, - r, - o, - a = t.w_size; - do { - if (((r = t.window_size - t.lookahead - t.strstart), t.strstart >= a + (a - K))) { - S.arraySet(t.window, t.window, a, a, 0), - (t.match_start -= a), - (t.strstart -= a), - (t.block_start -= a), - (e = n = t.hash_size); - do { - (i = t.head[--e]), (t.head[e] = i >= a ? i - a : 0); - } while (--n); - e = n = a; - do { - (i = t.prev[--e]), (t.prev[e] = i >= a ? i - a : 0); - } while (--n); - r += a; - } - if (0 === t.strm.avail_in) break; - if ( - ((n = l(t.strm, t.window, t.strstart + t.lookahead, r)), - (t.lookahead += n), - t.lookahead + t.insert >= j) - ) - for ( - o = t.strstart - t.insert, - t.ins_h = t.window[o], - t.ins_h = ((t.ins_h << t.hash_shift) ^ t.window[o + 1]) & t.hash_mask; - t.insert && - ((t.ins_h = ((t.ins_h << t.hash_shift) ^ t.window[o + j - 1]) & t.hash_mask), - (t.prev[o & t.w_mask] = t.head[t.ins_h]), - (t.head[t.ins_h] = o), - o++, - t.insert--, - !(t.lookahead + t.insert < j)); - - ); - } while (t.lookahead < K && 0 !== t.strm.avail_in); + } + return M; + }, + r = function (O, C, k) { + if (k || arguments.length === 2) + for (var R, H = 0, ee = C.length; H < ee; H++) + (!R && H in C) || (R || (R = Array.prototype.slice.call(C, 0, H)), (R[H] = C[H])); + return O.concat(R || Array.prototype.slice.call(C)); + }, + a = new WeakMap(), + s = new WeakMap(), + i = new WeakMap(), + t = new WeakMap(), + e = new WeakMap(), + l = { + get: function (O, C, k) { + if (O instanceof IDBTransaction) { + if (C === 'done') return s.get(O); + if (C === 'objectStoreNames') return O.objectStoreNames || i.get(O); + if (C === 'store') + return k.objectStoreNames[1] ? void 0 : k.objectStore(k.objectStoreNames[0]); } - function f(t, e) { - for (var n, i; ; ) { - if (t.lookahead < K) { - if ((h(t), t.lookahead < K && e === P)) return X; - if (0 === t.lookahead) break; - } - if ( - ((n = 0), - t.lookahead >= j && - ((t.ins_h = - ((t.ins_h << t.hash_shift) ^ t.window[t.strstart + j - 1]) & t.hash_mask), - (n = t.prev[t.strstart & t.w_mask] = t.head[t.ins_h]), - (t.head[t.ins_h] = t.strstart)), - 0 !== n && t.strstart - n <= t.w_size - K && (t.match_length = d(t, n)), - t.match_length >= j) - ) - if ( - ((i = O._tr_tally(t, t.strstart - t.match_start, t.match_length - j)), - (t.lookahead -= t.match_length), - t.match_length <= t.max_lazy_match && t.lookahead >= j) - ) { - t.match_length--; - do { - t.strstart++, - (t.ins_h = - ((t.ins_h << t.hash_shift) ^ t.window[t.strstart + j - 1]) & t.hash_mask), - (n = t.prev[t.strstart & t.w_mask] = t.head[t.ins_h]), - (t.head[t.ins_h] = t.strstart); - } while (0 != --t.match_length); - t.strstart++; - } else - (t.strstart += t.match_length), - (t.match_length = 0), - (t.ins_h = t.window[t.strstart]), - (t.ins_h = - ((t.ins_h << t.hash_shift) ^ t.window[t.strstart + 1]) & t.hash_mask); - else (i = O._tr_tally(t, 0, t.window[t.strstart])), t.lookahead--, t.strstart++; - if (i && (s(t, !1), 0 === t.strm.avail_out)) return X; + return v(O[C]); + }, + set: function (O, C, k) { + return (O[C] = k), !0; + }, + has: function (O, C) { + return (O instanceof IDBTransaction && (C === 'done' || C === 'store')) || C in O; + }, + }; + function o(O) { + return O !== IDBDatabase.prototype.transaction || + 'objectStoreNames' in IDBTransaction.prototype + ? ( + p || + (p = [ + IDBCursor.prototype.advance, + IDBCursor.prototype.continue, + IDBCursor.prototype.continuePrimaryKey, + ]) + ).includes(O) + ? function () { + for (var C = [], k = 0; k < arguments.length; k++) C[k] = arguments[k]; + return O.apply(y(this), C), v(a.get(this)); } - return ( - (t.insert = t.strstart < j - 1 ? t.strstart : j - 1), - e === C - ? (s(t, !0), 0 === t.strm.avail_out ? J : Z) - : t.last_lit && (s(t, !1), 0 === t.strm.avail_out) - ? X - : q - ); - } - function g(t, e) { - for (var n, i, r; ; ) { - if (t.lookahead < K) { - if ((h(t), t.lookahead < K && e === P)) return X; - if (0 === t.lookahead) break; + : function () { + for (var C = [], k = 0; k < arguments.length; k++) C[k] = arguments[k]; + return v(O.apply(y(this), C)); + } + : function (C) { + for (var k = [], R = 1; R < arguments.length; R++) k[R - 1] = arguments[R]; + var H = O.call.apply(O, r([y(this), C], n(k), !1)); + return i.set(H, C.sort ? C.sort() : [C]), v(H); + }; + } + function x(O) { + return typeof O == 'function' + ? o(O) + : (O instanceof IDBTransaction && + (function (k) { + if (!s.has(k)) { + var R = new Promise(function (H, ee) { + var M = function () { + k.removeEventListener('complete', K), + k.removeEventListener('error', Z), + k.removeEventListener('abort', Z); + }, + K = function () { + H(), M(); + }, + Z = function () { + ee(k.error || new DOMException('AbortError', 'AbortError')), M(); + }; + k.addEventListener('complete', K), + k.addEventListener('error', Z), + k.addEventListener('abort', Z); + }); + s.set(k, R); } - if ( - ((n = 0), - t.lookahead >= j && - ((t.ins_h = - ((t.ins_h << t.hash_shift) ^ t.window[t.strstart + j - 1]) & t.hash_mask), - (n = t.prev[t.strstart & t.w_mask] = t.head[t.ins_h]), - (t.head[t.ins_h] = t.strstart)), - (t.prev_length = t.match_length), - (t.prev_match = t.match_start), - (t.match_length = j - 1), - 0 !== n && - t.prev_length < t.max_lazy_match && - t.strstart - n <= t.w_size - K && - ((t.match_length = d(t, n)), - t.match_length <= 5 && - (t.strategy === M || - (t.match_length === j && t.strstart - t.match_start > 4096)) && - (t.match_length = j - 1)), - t.prev_length >= j && t.match_length <= t.prev_length) - ) { - (r = t.strstart + t.lookahead - j), - (i = O._tr_tally(t, t.strstart - 1 - t.prev_match, t.prev_length - j)), - (t.lookahead -= t.prev_length - 1), - (t.prev_length -= 2); - do { - ++t.strstart <= r && - ((t.ins_h = - ((t.ins_h << t.hash_shift) ^ t.window[t.strstart + j - 1]) & t.hash_mask), - (n = t.prev[t.strstart & t.w_mask] = t.head[t.ins_h]), - (t.head[t.ins_h] = t.strstart)); - } while (0 != --t.prev_length); - if ( - ((t.match_available = 0), - (t.match_length = j - 1), - t.strstart++, - i && (s(t, !1), 0 === t.strm.avail_out)) - ) - return X; - } else if (t.match_available) { - if ( - ((i = O._tr_tally(t, 0, t.window[t.strstart - 1])) && s(t, !1), - t.strstart++, - t.lookahead--, - 0 === t.strm.avail_out) - ) - return X; - } else (t.match_available = 1), t.strstart++, t.lookahead--; + })(O), + (C = O), + (h || (h = [IDBDatabase, IDBObjectStore, IDBIndex, IDBCursor, IDBTransaction])).some( + function (k) { + return C instanceof k; + }, + ) + ? new Proxy(O, l) + : O); + var C; + } + function v(O) { + if (O instanceof IDBRequest) + return ( + (C = O), + (k = new Promise(function (H, ee) { + var M = function () { + C.removeEventListener('success', K), C.removeEventListener('error', Z); + }, + K = function () { + H(v(C.result)), M(); + }, + Z = function () { + ee(C.error), M(); + }; + C.addEventListener('success', K), C.addEventListener('error', Z); + })) + .then(function (H) { + H instanceof IDBCursor && a.set(H, C); + }) + .catch(function () {}), + e.set(k, C), + k + ); + var C, k; + if (t.has(O)) return t.get(O); + var R = x(O); + return R !== O && (t.set(O, R), e.set(R, O)), R; + } + var y = function (O) { + return e.get(O); + }, + L = function () { + return ( + (L = + Object.assign || + function (O) { + for (var C, k = 1, R = arguments.length; k < R; k++) + for (var H in (C = arguments[k])) + Object.prototype.hasOwnProperty.call(C, H) && (O[H] = C[H]); + return O; + }), + L.apply(this, arguments) + ); + }, + g = function (O, C, k, R) { + return new (k || (k = Promise))(function (H, ee) { + function M(le) { + try { + Z(R.next(le)); + } catch (q) { + ee(q); } - return ( - t.match_available && - ((i = O._tr_tally(t, 0, t.window[t.strstart - 1])), (t.match_available = 0)), - (t.insert = t.strstart < j - 1 ? t.strstart : j - 1), - e === C - ? (s(t, !0), 0 === t.strm.avail_out ? J : Z) - : t.last_lit && (s(t, !1), 0 === t.strm.avail_out) - ? X - : q - ); } - function p(t, e) { - for (var n, i, r, o, a = t.window; ; ) { - if (t.lookahead <= W) { - if ((h(t), t.lookahead <= W && e === P)) return X; - if (0 === t.lookahead) break; - } - if ( - ((t.match_length = 0), - t.lookahead >= j && - t.strstart > 0 && - ((r = t.strstart - 1), (i = a[r]) === a[++r] && i === a[++r] && i === a[++r])) - ) { - o = t.strstart + W; - do {} while ( - i === a[++r] && - i === a[++r] && - i === a[++r] && - i === a[++r] && - i === a[++r] && - i === a[++r] && - i === a[++r] && - i === a[++r] && - r < o - ); - (t.match_length = W - (o - r)), - t.match_length > t.lookahead && (t.match_length = t.lookahead); - } - if ( - (t.match_length >= j - ? ((n = O._tr_tally(t, 1, t.match_length - j)), - (t.lookahead -= t.match_length), - (t.strstart += t.match_length), - (t.match_length = 0)) - : ((n = O._tr_tally(t, 0, t.window[t.strstart])), t.lookahead--, t.strstart++), - n && (s(t, !1), 0 === t.strm.avail_out)) - ) - return X; + function K(le) { + try { + Z(R.throw(le)); + } catch (q) { + ee(q); } - return ( - (t.insert = 0), - e === C - ? (s(t, !0), 0 === t.strm.avail_out ? J : Z) - : t.last_lit && (s(t, !1), 0 === t.strm.avail_out) - ? X - : q - ); } - function v(t, e) { - for (var n; ; ) { - if (0 === t.lookahead && (h(t), 0 === t.lookahead)) { - if (e === P) return X; - break; - } - if ( - ((t.match_length = 0), - (n = O._tr_tally(t, 0, t.window[t.strstart])), - t.lookahead--, - t.strstart++, - n && (s(t, !1), 0 === t.strm.avail_out)) - ) - return X; - } - return ( - (t.insert = 0), - e === C - ? (s(t, !0), 0 === t.strm.avail_out ? J : Z) - : t.last_lit && (s(t, !1), 0 === t.strm.avail_out) - ? X - : q - ); - } - function _(t, e, n, i, r) { - (this.good_length = t), - (this.max_lazy = e), - (this.nice_length = n), - (this.max_chain = i), - (this.func = r); - } - function m() { - (this.strm = null), - (this.status = 0), - (this.pending_buf = null), - (this.pending_buf_size = 0), - (this.pending_out = 0), - (this.pending = 0), - (this.wrap = 0), - (this.gzhead = null), - (this.gzindex = 0), - (this.method = k), - (this.last_flush = -1), - (this.w_size = 0), - (this.w_bits = 0), - (this.w_mask = 0), - (this.window = null), - (this.window_size = 0), - (this.prev = null), - (this.head = null), - (this.ins_h = 0), - (this.hash_size = 0), - (this.hash_bits = 0), - (this.hash_mask = 0), - (this.hash_shift = 0), - (this.block_start = 0), - (this.match_length = 0), - (this.prev_match = 0), - (this.match_available = 0), - (this.strstart = 0), - (this.match_start = 0), - (this.lookahead = 0), - (this.prev_length = 0), - (this.max_chain_length = 0), - (this.max_lazy_match = 0), - (this.level = 0), - (this.strategy = 0), - (this.good_match = 0), - (this.nice_match = 0), - (this.dyn_ltree = new S.Buf16(2 * V)), - (this.dyn_dtree = new S.Buf16(2 * (2 * F + 1))), - (this.bl_tree = new S.Buf16(2 * (2 * H + 1))), - o(this.dyn_ltree), - o(this.dyn_dtree), - o(this.bl_tree), - (this.l_desc = null), - (this.d_desc = null), - (this.bl_desc = null), - (this.bl_count = new S.Buf16(G + 1)), - (this.heap = new S.Buf16(2 * B + 1)), - o(this.heap), - (this.heap_len = 0), - (this.heap_max = 0), - (this.depth = new S.Buf16(2 * B + 1)), - o(this.depth), - (this.l_buf = 0), - (this.lit_bufsize = 0), - (this.last_lit = 0), - (this.d_buf = 0), - (this.opt_len = 0), - (this.static_len = 0), - (this.matches = 0), - (this.insert = 0), - (this.bi_buf = 0), - (this.bi_valid = 0); - } - function b(t) { - var e; - return t && t.state - ? ((t.total_in = t.total_out = 0), - (t.data_type = U), - ((e = t.state).pending = 0), - (e.pending_out = 0), - e.wrap < 0 && (e.wrap = -e.wrap), - (e.status = e.wrap ? z : Y), - (t.adler = 2 === e.wrap ? 0 : 1), - (e.last_flush = P), - O._tr_init(e), - L) - : i(t, D); - } - function y(t) { - var e = b(t); - return ( - e === L && - (function (t) { - (t.window_size = 2 * t.w_size), - o(t.head), - (t.max_lazy_match = w[t.level].max_lazy), - (t.good_match = w[t.level].good_length), - (t.nice_match = w[t.level].nice_length), - (t.max_chain_length = w[t.level].max_chain), - (t.strstart = 0), - (t.block_start = 0), - (t.lookahead = 0), - (t.insert = 0), - (t.match_length = t.prev_length = j - 1), - (t.match_available = 0), - (t.ins_h = 0); - })(t.state), - e - ); - } - function E(t, e, n, r, o, a) { - if (!t) return D; - var s = 1; - if ( - (e === x && (e = 6), - r < 0 ? ((s = 0), (r = -r)) : r > 15 && ((s = 2), (r -= 16)), - o < 1 || o > N || n !== k || r < 8 || r > 15 || e < 0 || e > 9 || a < 0 || a > R) - ) - return i(t, D); - 8 === r && (r = 9); - var u = new m(); - return ( - (t.state = u), - (u.strm = t), - (u.wrap = s), - (u.gzhead = null), - (u.w_bits = r), - (u.w_size = 1 << u.w_bits), - (u.w_mask = u.w_size - 1), - (u.hash_bits = o + 7), - (u.hash_size = 1 << u.hash_bits), - (u.hash_mask = u.hash_size - 1), - (u.hash_shift = ~~((u.hash_bits + j - 1) / j)), - (u.window = new S.Buf8(2 * u.w_size)), - (u.head = new S.Buf16(u.hash_size)), - (u.prev = new S.Buf16(u.w_size)), - (u.lit_bufsize = 1 << (o + 6)), - (u.pending_buf_size = 4 * u.lit_bufsize), - (u.pending_buf = new S.Buf8(u.pending_buf_size)), - (u.d_buf = 1 * u.lit_bufsize), - (u.l_buf = 3 * u.lit_bufsize), - (u.level = e), - (u.strategy = a), - (u.method = n), - y(t) - ); + function Z(le) { + var q; + le.done + ? H(le.value) + : ((q = le.value), + q instanceof k + ? q + : new k(function (be) { + be(q); + })).then(M, K); } - var w, - S = t('../utils/common'), - O = t('./trees'), - I = t('./adler32'), - T = t('./crc32'), - A = t('./messages'), - P = 0, - C = 4, - L = 0, - D = -2, - x = -1, - M = 1, - R = 4, - U = 2, - k = 8, - N = 9, - B = 286, - F = 30, - H = 19, - V = 2 * B + 1, - G = 15, - j = 3, - W = 258, - K = W + j + 1, - z = 42, - Y = 113, - X = 1, - q = 2, - J = 3, - Z = 4; - (w = [ - new _(0, 0, 0, 0, function (t, e) { - var n = 65535; - for (n > t.pending_buf_size - 5 && (n = t.pending_buf_size - 5); ; ) { - if (t.lookahead <= 1) { - if ((h(t), 0 === t.lookahead && e === P)) return X; - if (0 === t.lookahead) break; - } - (t.strstart += t.lookahead), (t.lookahead = 0); - var i = t.block_start + n; - if ( - (0 === t.strstart || t.strstart >= i) && - ((t.lookahead = t.strstart - i), - (t.strstart = i), - s(t, !1), - 0 === t.strm.avail_out) - ) - return X; - if ( - t.strstart - t.block_start >= t.w_size - K && - (s(t, !1), 0 === t.strm.avail_out) - ) - return X; - } - return ( - (t.insert = 0), - e === C - ? (s(t, !0), 0 === t.strm.avail_out ? J : Z) - : (t.strstart > t.block_start && (s(t, !1), t.strm.avail_out), X) - ); - }), - new _(4, 4, 8, 4, f), - new _(4, 5, 16, 8, f), - new _(4, 6, 32, 32, f), - new _(4, 4, 16, 16, g), - new _(8, 16, 32, 32, g), - new _(8, 16, 128, 128, g), - new _(8, 32, 128, 256, g), - new _(32, 128, 258, 1024, g), - new _(32, 258, 258, 4096, g), - ]), - (n.deflateInit = function (t, e) { - return E(t, e, k, 15, 8, 0); - }), - (n.deflateInit2 = E), - (n.deflateReset = y), - (n.deflateResetKeep = b), - (n.deflateSetHeader = function (t, e) { - return t && t.state ? (2 !== t.state.wrap ? D : ((t.state.gzhead = e), L)) : D; + Z((R = R.apply(O, C || [])).next()); + }); + }, + E = function (O, C) { + var k, + R, + H, + ee, + M = { + label: 0, + sent: function () { + if (1 & H[0]) throw H[1]; + return H[1]; + }, + trys: [], + ops: [], + }; + return ( + (ee = { next: K(0), throw: K(1), return: K(2) }), + typeof Symbol == 'function' && + (ee[Symbol.iterator] = function () { + return this; }), - (n.deflate = function (t, e) { - var n, s, l, d; - if (!t || !t.state || e > 5 || e < 0) return t ? i(t, D) : D; - if ( - ((s = t.state), - !t.output || (!t.input && 0 !== t.avail_in) || (666 === s.status && e !== C)) - ) - return i(t, 0 === t.avail_out ? -5 : D); - if (((s.strm = t), (n = s.last_flush), (s.last_flush = e), s.status === z)) - if (2 === s.wrap) - (t.adler = 0), - u(s, 31), - u(s, 139), - u(s, 8), - s.gzhead - ? (u( - s, - (s.gzhead.text ? 1 : 0) + - (s.gzhead.hcrc ? 2 : 0) + - (s.gzhead.extra ? 4 : 0) + - (s.gzhead.name ? 8 : 0) + - (s.gzhead.comment ? 16 : 0), - ), - u(s, 255 & s.gzhead.time), - u(s, (s.gzhead.time >> 8) & 255), - u(s, (s.gzhead.time >> 16) & 255), - u(s, (s.gzhead.time >> 24) & 255), - u(s, 9 === s.level ? 2 : s.strategy >= 2 || s.level < 2 ? 4 : 0), - u(s, 255 & s.gzhead.os), - s.gzhead.extra && - s.gzhead.extra.length && - (u(s, 255 & s.gzhead.extra.length), - u(s, (s.gzhead.extra.length >> 8) & 255)), - s.gzhead.hcrc && (t.adler = T(t.adler, s.pending_buf, s.pending, 0)), - (s.gzindex = 0), - (s.status = 69)) - : (u(s, 0), - u(s, 0), - u(s, 0), - u(s, 0), - u(s, 0), - u(s, 9 === s.level ? 2 : s.strategy >= 2 || s.level < 2 ? 4 : 0), - u(s, 3), - (s.status = Y)); - else { - var h = (k + ((s.w_bits - 8) << 4)) << 8; - (h |= - (s.strategy >= 2 || s.level < 2 - ? 0 - : s.level < 6 - ? 1 - : 6 === s.level - ? 2 - : 3) << 6), - 0 !== s.strstart && (h |= 32), - (h += 31 - (h % 31)), - (s.status = Y), - c(s, h), - 0 !== s.strstart && (c(s, t.adler >>> 16), c(s, 65535 & t.adler)), - (t.adler = 1); - } - if (69 === s.status) - if (s.gzhead.extra) { - for ( - l = s.pending; - s.gzindex < (65535 & s.gzhead.extra.length) && - (s.pending !== s.pending_buf_size || - (s.gzhead.hcrc && - s.pending > l && - (t.adler = T(t.adler, s.pending_buf, s.pending - l, l)), - a(t), - (l = s.pending), - s.pending !== s.pending_buf_size)); - + ee + ); + function K(Z) { + return function (le) { + return (function (q) { + if (k) throw new TypeError('Generator is already executing.'); + for (; M; ) + try { + if ( + ((k = 1), + R && + (H = + 2 & q[0] + ? R.return + : q[0] + ? R.throw || ((H = R.return) && H.call(R), 0) + : R.next) && + !(H = H.call(R, q[1])).done) ) - u(s, 255 & s.gzhead.extra[s.gzindex]), s.gzindex++; - s.gzhead.hcrc && - s.pending > l && - (t.adler = T(t.adler, s.pending_buf, s.pending - l, l)), - s.gzindex === s.gzhead.extra.length && ((s.gzindex = 0), (s.status = 73)); - } else s.status = 73; - if (73 === s.status) - if (s.gzhead.name) { - l = s.pending; - do { - if ( - s.pending === s.pending_buf_size && - (s.gzhead.hcrc && - s.pending > l && - (t.adler = T(t.adler, s.pending_buf, s.pending - l, l)), - a(t), - (l = s.pending), - s.pending === s.pending_buf_size) - ) { - d = 1; - break; - } - (d = - s.gzindex < s.gzhead.name.length - ? 255 & s.gzhead.name.charCodeAt(s.gzindex++) - : 0), - u(s, d); - } while (0 !== d); - s.gzhead.hcrc && - s.pending > l && - (t.adler = T(t.adler, s.pending_buf, s.pending - l, l)), - 0 === d && ((s.gzindex = 0), (s.status = 91)); - } else s.status = 91; - if (91 === s.status) - if (s.gzhead.comment) { - l = s.pending; - do { - if ( - s.pending === s.pending_buf_size && - (s.gzhead.hcrc && - s.pending > l && - (t.adler = T(t.adler, s.pending_buf, s.pending - l, l)), - a(t), - (l = s.pending), - s.pending === s.pending_buf_size) - ) { - d = 1; + return H; + switch (((R = 0), H && (q = [2 & q[0], H.value]), q[0])) { + case 0: + case 1: + H = q; break; - } - (d = - s.gzindex < s.gzhead.comment.length - ? 255 & s.gzhead.comment.charCodeAt(s.gzindex++) - : 0), - u(s, d); - } while (0 !== d); - s.gzhead.hcrc && - s.pending > l && - (t.adler = T(t.adler, s.pending_buf, s.pending - l, l)), - 0 === d && (s.status = 103); - } else s.status = 103; - if ( - (103 === s.status && - (s.gzhead.hcrc - ? (s.pending + 2 > s.pending_buf_size && a(t), - s.pending + 2 <= s.pending_buf_size && - (u(s, 255 & t.adler), - u(s, (t.adler >> 8) & 255), - (t.adler = 0), - (s.status = Y))) - : (s.status = Y)), - 0 !== s.pending) - ) { - if ((a(t), 0 === t.avail_out)) return (s.last_flush = -1), L; - } else if (0 === t.avail_in && r(e) <= r(n) && e !== C) return i(t, -5); - if (666 === s.status && 0 !== t.avail_in) return i(t, -5); - if (0 !== t.avail_in || 0 !== s.lookahead || (e !== P && 666 !== s.status)) { - var f = - 2 === s.strategy ? v(s, e) : 3 === s.strategy ? p(s, e) : w[s.level].func(s, e); - if (((f !== J && f !== Z) || (s.status = 666), f === X || f === J)) - return 0 === t.avail_out && (s.last_flush = -1), L; - if ( - f === q && - (1 === e - ? O._tr_align(s) - : 5 !== e && - (O._tr_stored_block(s, 0, 0, !1), - 3 === e && - (o(s.head), - 0 === s.lookahead && - ((s.strstart = 0), (s.block_start = 0), (s.insert = 0)))), - a(t), - 0 === t.avail_out) - ) - return (s.last_flush = -1), L; - } - return e !== C - ? L - : s.wrap <= 0 - ? 1 - : (2 === s.wrap - ? (u(s, 255 & t.adler), - u(s, (t.adler >> 8) & 255), - u(s, (t.adler >> 16) & 255), - u(s, (t.adler >> 24) & 255), - u(s, 255 & t.total_in), - u(s, (t.total_in >> 8) & 255), - u(s, (t.total_in >> 16) & 255), - u(s, (t.total_in >> 24) & 255)) - : (c(s, t.adler >>> 16), c(s, 65535 & t.adler)), - a(t), - s.wrap > 0 && (s.wrap = -s.wrap), - 0 !== s.pending ? L : 1); - }), - (n.deflateEnd = function (t) { - var e; - return t && t.state - ? (e = t.state.status) !== z && - 69 !== e && - 73 !== e && - 91 !== e && - 103 !== e && - e !== Y && - 666 !== e - ? i(t, D) - : ((t.state = null), e === Y ? i(t, -3) : L) - : D; - }), - (n.deflateSetDictionary = function (t, e) { - var n, - i, - r, - a, - s, - u, - c, - l, - d = e.length; - if (!t || !t.state) return D; - if ( - ((n = t.state), 2 === (a = n.wrap) || (1 === a && n.status !== z) || n.lookahead) - ) - return D; - for ( - 1 === a && (t.adler = I(t.adler, e, d, 0)), - n.wrap = 0, - d >= n.w_size && - (0 === a && - (o(n.head), (n.strstart = 0), (n.block_start = 0), (n.insert = 0)), - (l = new S.Buf8(n.w_size)), - S.arraySet(l, e, d - n.w_size, n.w_size, 0), - (e = l), - (d = n.w_size)), - s = t.avail_in, - u = t.next_in, - c = t.input, - t.avail_in = d, - t.next_in = 0, - t.input = e, - h(n); - n.lookahead >= j; - - ) { - (i = n.strstart), (r = n.lookahead - (j - 1)); - do { - (n.ins_h = ((n.ins_h << n.hash_shift) ^ n.window[i + j - 1]) & n.hash_mask), - (n.prev[i & n.w_mask] = n.head[n.ins_h]), - (n.head[n.ins_h] = i), - i++; - } while (--r); - (n.strstart = i), (n.lookahead = j - 1), h(n); - } - return ( - (n.strstart += n.lookahead), - (n.block_start = n.strstart), - (n.insert = n.lookahead), - (n.lookahead = 0), - (n.match_length = n.prev_length = j - 1), - (n.match_available = 0), - (t.next_in = u), - (t.input = c), - (t.avail_in = s), - (n.wrap = a), - L - ); - }), - (n.deflateInfo = 'pako deflate (from Nodeca project)'); - }, - { '../utils/common': 1, './adler32': 3, './crc32': 4, './messages': 6, './trees': 7 }, - ], - 6: [ - function (t, e, n) { - 'use strict'; - e.exports = { - 2: 'need dictionary', - 1: 'stream end', - 0: '', - '-1': 'file error', - '-2': 'stream error', - '-3': 'data error', - '-4': 'insufficient memory', - '-5': 'buffer error', - '-6': 'incompatible version', - }; - }, - {}, - ], - 7: [ - function (t, e, n) { - 'use strict'; - function i(t) { - for (var e = t.length; --e >= 0; ) t[e] = 0; - } - function r(t, e, n, i, r) { - (this.static_tree = t), - (this.extra_bits = e), - (this.extra_base = n), - (this.elems = i), - (this.max_length = r), - (this.has_stree = t && t.length); - } - function o(t, e) { - (this.dyn_tree = t), (this.max_code = 0), (this.stat_desc = e); - } - function a(t) { - return t < 256 ? W[t] : W[256 + (t >>> 7)]; - } - function s(t, e) { - (t.pending_buf[t.pending++] = 255 & e), - (t.pending_buf[t.pending++] = (e >>> 8) & 255); - } - function u(t, e, n) { - t.bi_valid > x - n - ? ((t.bi_buf |= (e << t.bi_valid) & 65535), - s(t, t.bi_buf), - (t.bi_buf = e >> (x - t.bi_valid)), - (t.bi_valid += n - x)) - : ((t.bi_buf |= (e << t.bi_valid) & 65535), (t.bi_valid += n)); - } - function c(t, e, n) { - u(t, n[2 * e], n[2 * e + 1]); - } - function l(t, e) { - var n = 0; - do { - (n |= 1 & t), (t >>>= 1), (n <<= 1); - } while (--e > 0); - return n >>> 1; - } - function d(t, e, n) { - var i, - r, - o = new Array(D + 1), - a = 0; - for (i = 1; i <= D; i++) o[i] = a = (a + n[i - 1]) << 1; - for (r = 0; r <= e; r++) { - var s = t[2 * r + 1]; - 0 !== s && (t[2 * r] = l(o[s]++, s)); - } - } - function h(t) { - var e; - for (e = 0; e < A; e++) t.dyn_ltree[2 * e] = 0; - for (e = 0; e < P; e++) t.dyn_dtree[2 * e] = 0; - for (e = 0; e < C; e++) t.bl_tree[2 * e] = 0; - (t.dyn_ltree[2 * R] = 1), - (t.opt_len = t.static_len = 0), - (t.last_lit = t.matches = 0); - } - function f(t) { - t.bi_valid > 8 - ? s(t, t.bi_buf) - : t.bi_valid > 0 && (t.pending_buf[t.pending++] = t.bi_buf), - (t.bi_buf = 0), - (t.bi_valid = 0); - } - function g(t, e, n, i) { - var r = 2 * e, - o = 2 * n; - return t[r] < t[o] || (t[r] === t[o] && i[e] <= i[n]); - } - function p(t, e, n) { - for ( - var i = t.heap[n], r = n << 1; - r <= t.heap_len && - (r < t.heap_len && g(e, t.heap[r + 1], t.heap[r], t.depth) && r++, - !g(e, i, t.heap[r], t.depth)); - - ) - (t.heap[n] = t.heap[r]), (n = r), (r <<= 1); - t.heap[n] = i; - } - function v(t, e, n) { - var i, - r, - o, - s, - l = 0; - if (0 !== t.last_lit) - do { - (i = (t.pending_buf[t.d_buf + 2 * l] << 8) | t.pending_buf[t.d_buf + 2 * l + 1]), - (r = t.pending_buf[t.l_buf + l]), - l++, - 0 === i - ? c(t, r, e) - : (c(t, (o = K[r]) + T + 1, e), - 0 !== (s = B[o]) && u(t, (r -= z[o]), s), - c(t, (o = a(--i)), n), - 0 !== (s = F[o]) && u(t, (i -= Y[o]), s)); - } while (l < t.last_lit); - c(t, R, e); - } - function _(t, e) { - var n, - i, - r, - o = e.dyn_tree, - a = e.stat_desc.static_tree, - s = e.stat_desc.has_stree, - u = e.stat_desc.elems, - c = -1; - for (t.heap_len = 0, t.heap_max = L, n = 0; n < u; n++) - 0 !== o[2 * n] - ? ((t.heap[++t.heap_len] = c = n), (t.depth[n] = 0)) - : (o[2 * n + 1] = 0); - for (; t.heap_len < 2; ) - (o[2 * (r = t.heap[++t.heap_len] = c < 2 ? ++c : 0)] = 1), - (t.depth[r] = 0), - t.opt_len--, - s && (t.static_len -= a[2 * r + 1]); - for (e.max_code = c, n = t.heap_len >> 1; n >= 1; n--) p(t, o, n); - r = u; - do { - (n = t.heap[1]), - (t.heap[1] = t.heap[t.heap_len--]), - p(t, o, 1), - (i = t.heap[1]), - (t.heap[--t.heap_max] = n), - (t.heap[--t.heap_max] = i), - (o[2 * r] = o[2 * n] + o[2 * i]), - (t.depth[r] = (t.depth[n] >= t.depth[i] ? t.depth[n] : t.depth[i]) + 1), - (o[2 * n + 1] = o[2 * i + 1] = r), - (t.heap[1] = r++), - p(t, o, 1); - } while (t.heap_len >= 2); - (t.heap[--t.heap_max] = t.heap[1]), - (function (t, e) { - var n, - i, - r, - o, - a, - s, - u = e.dyn_tree, - c = e.max_code, - l = e.stat_desc.static_tree, - d = e.stat_desc.has_stree, - h = e.stat_desc.extra_bits, - f = e.stat_desc.extra_base, - g = e.stat_desc.max_length, - p = 0; - for (o = 0; o <= D; o++) t.bl_count[o] = 0; - for (u[2 * t.heap[t.heap_max] + 1] = 0, n = t.heap_max + 1; n < L; n++) - (o = u[2 * u[2 * (i = t.heap[n]) + 1] + 1] + 1) > g && ((o = g), p++), - (u[2 * i + 1] = o), - i > c || - (t.bl_count[o]++, - (a = 0), - i >= f && (a = h[i - f]), - (s = u[2 * i]), - (t.opt_len += s * (o + a)), - d && (t.static_len += s * (l[2 * i + 1] + a))); - if (0 !== p) { - do { - for (o = g - 1; 0 === t.bl_count[o]; ) o--; - t.bl_count[o]--, (t.bl_count[o + 1] += 2), t.bl_count[g]--, (p -= 2); - } while (p > 0); - for (o = g; 0 !== o; o--) - for (i = t.bl_count[o]; 0 !== i; ) - (r = t.heap[--n]) > c || - (u[2 * r + 1] !== o && - ((t.opt_len += (o - u[2 * r + 1]) * u[2 * r]), (u[2 * r + 1] = o)), - i--); + case 4: + return M.label++, { value: q[1], done: !1 }; + case 5: + M.label++, (R = q[1]), (q = [0]); + continue; + case 7: + (q = M.ops.pop()), M.trys.pop(); + continue; + default: + if ( + ((H = M.trys), + !((H = H.length > 0 && H[H.length - 1]) || (q[0] !== 6 && q[0] !== 2))) + ) { + M = 0; + continue; + } + if (q[0] === 3 && (!H || (q[1] > H[0] && q[1] < H[3]))) { + M.label = q[1]; + break; + } + if (q[0] === 6 && M.label < H[1]) { + (M.label = H[1]), (H = q); + break; + } + if (H && M.label < H[2]) { + (M.label = H[2]), M.ops.push(q); + break; + } + H[2] && M.ops.pop(), M.trys.pop(); + continue; + } + q = C.call(O, M); + } catch (be) { + (q = [6, be]), (R = 0); + } finally { + k = H = 0; } - })(t, e), - d(o, c, t.bl_count); - } - function m(t, e, n) { - var i, - r, - o = -1, - a = e[1], - s = 0, - u = 7, - c = 4; - for (0 === a && ((u = 138), (c = 3)), e[2 * (n + 1) + 1] = 65535, i = 0; i <= n; i++) - (r = a), - (a = e[2 * (i + 1) + 1]), - (++s < u && r === a) || - (s < c - ? (t.bl_tree[2 * r] += s) - : 0 !== r - ? (r !== o && t.bl_tree[2 * r]++, t.bl_tree[2 * U]++) - : s <= 10 - ? t.bl_tree[2 * k]++ - : t.bl_tree[2 * N]++, - (s = 0), - (o = r), - 0 === a - ? ((u = 138), (c = 3)) - : r === a - ? ((u = 6), (c = 3)) - : ((u = 7), (c = 4))); - } - function b(t, e, n) { - var i, - r, - o = -1, - a = e[1], - s = 0, - l = 7, - d = 4; - for (0 === a && ((l = 138), (d = 3)), i = 0; i <= n; i++) - if (((r = a), (a = e[2 * (i + 1) + 1]), !(++s < l && r === a))) { - if (s < d) - do { - c(t, r, t.bl_tree); - } while (0 != --s); - else - 0 !== r - ? (r !== o && (c(t, r, t.bl_tree), s--), c(t, U, t.bl_tree), u(t, s - 3, 2)) - : s <= 10 - ? (c(t, k, t.bl_tree), u(t, s - 3, 3)) - : (c(t, N, t.bl_tree), u(t, s - 11, 7)); - (s = 0), - (o = r), - 0 === a - ? ((l = 138), (d = 3)) - : r === a - ? ((l = 6), (d = 3)) - : ((l = 7), (d = 4)); - } - } - function y(t, e, n, i) { - u(t, (O << 1) + (i ? 1 : 0), 3), - (function (t, e, n, i) { - f(t), - i && (s(t, n), s(t, ~n)), - E.arraySet(t.pending_buf, t.window, e, n, t.pending), - (t.pending += n); - })(t, e, n, !0); + if (5 & q[0]) throw q[1]; + return { value: q[0] ? q[1] : void 0, done: !0 }; + })([Z, le]); + }; + } + }, + f = function (O, C) { + var k = typeof Symbol == 'function' && O[Symbol.iterator]; + if (!k) return O; + var R, + H, + ee = k.call(O), + M = []; + try { + for (; (C === void 0 || C-- > 0) && !(R = ee.next()).done; ) M.push(R.value); + } catch (K) { + H = { error: K }; + } finally { + try { + R && !R.done && (k = ee.return) && k.call(ee); + } finally { + if (H) throw H.error; } - var E = t('../utils/common'), - w = 0, - S = 1, - O = 0, - I = 29, - T = 256, - A = T + 1 + I, - P = 30, - C = 19, - L = 2 * A + 1, - D = 15, - x = 16, - M = 7, - R = 256, - U = 16, - k = 17, - N = 18, - B = [ - 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, - 0, - ], - F = [ - 0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, - 12, 12, 13, 13, - ], - H = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], - V = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], - G = new Array(2 * (A + 2)); - i(G); - var j = new Array(2 * P); - i(j); - var W = new Array(512); - i(W); - var K = new Array(256); - i(K); - var z = new Array(I); - i(z); - var Y = new Array(P); - i(Y); - var X, - q, - J, - Z = !1; - (n._tr_init = function (t) { - Z || - ((function () { - var t, - e, - n, - i, - o, - a = new Array(D + 1); - for (n = 0, i = 0; i < I - 1; i++) - for (z[i] = n, t = 0; t < 1 << B[i]; t++) K[n++] = i; - for (K[n - 1] = i, o = 0, i = 0; i < 16; i++) - for (Y[i] = o, t = 0; t < 1 << F[i]; t++) W[o++] = i; - for (o >>= 7; i < P; i++) - for (Y[i] = o << 7, t = 0; t < 1 << (F[i] - 7); t++) W[256 + o++] = i; - for (e = 0; e <= D; e++) a[e] = 0; - for (t = 0; t <= 143; ) (G[2 * t + 1] = 8), t++, a[8]++; - for (; t <= 255; ) (G[2 * t + 1] = 9), t++, a[9]++; - for (; t <= 279; ) (G[2 * t + 1] = 7), t++, a[7]++; - for (; t <= 287; ) (G[2 * t + 1] = 8), t++, a[8]++; - for (d(G, A + 1, a), t = 0; t < P; t++) (j[2 * t + 1] = 5), (j[2 * t] = l(t, 5)); - (X = new r(G, B, T + 1, A, D)), - (q = new r(j, F, 0, P, D)), - (J = new r(new Array(0), H, 0, C, M)); - })(), - (Z = !0)), - (t.l_desc = new o(t.dyn_ltree, X)), - (t.d_desc = new o(t.dyn_dtree, q)), - (t.bl_desc = new o(t.bl_tree, J)), - (t.bi_buf = 0), - (t.bi_valid = 0), - h(t); - }), - (n._tr_stored_block = y), - (n._tr_flush_block = function (t, e, n, i) { - var r, - o, - a = 0; - t.level > 0 - ? (2 === t.strm.data_type && - (t.strm.data_type = (function (t) { - var e, - n = 4093624447; - for (e = 0; e <= 31; e++, n >>>= 1) - if (1 & n && 0 !== t.dyn_ltree[2 * e]) return w; - if (0 !== t.dyn_ltree[18] || 0 !== t.dyn_ltree[20] || 0 !== t.dyn_ltree[26]) - return S; - for (e = 32; e < T; e++) if (0 !== t.dyn_ltree[2 * e]) return S; - return w; - })(t)), - _(t, t.l_desc), - _(t, t.d_desc), - (a = (function (t) { - var e; - for ( - m(t, t.dyn_ltree, t.l_desc.max_code), - m(t, t.dyn_dtree, t.d_desc.max_code), - _(t, t.bl_desc), - e = C - 1; - e >= 3 && 0 === t.bl_tree[2 * V[e] + 1]; - e-- + } + return M; + }, + m = function (O, C, k) { + if (k || arguments.length === 2) + for (var R, H = 0, ee = C.length; H < ee; H++) + (!R && H in C) || (R || (R = Array.prototype.slice.call(C, 0, H)), (R[H] = C[H])); + return O.concat(R || Array.prototype.slice.call(C)); + }, + w = ['get', 'getKey', 'getAll', 'getAllKeys', 'count'], + S = ['put', 'add', 'delete', 'clear'], + U = new Map(); + function T(O, C) { + if (O instanceof IDBDatabase && !(C in O) && typeof C == 'string') { + if (U.get(C)) return U.get(C); + var k = C.replace(/FromIndex$/, ''), + R = C !== k, + H = S.includes(k); + if (k in (R ? IDBIndex : IDBObjectStore).prototype && (H || w.includes(k))) { + var ee = function (M) { + for (var K = [], Z = 1; Z < arguments.length; Z++) K[Z - 1] = arguments[Z]; + return g(this, void 0, void 0, function () { + var le, q, be; + return E(this, function (we) { + switch (we.label) { + case 0: + return ( + (le = this.transaction(M, H ? 'readwrite' : 'readonly')), + (q = le.store), + R && (q = q.index(K.shift())), + [4, Promise.all([(be = q)[k].apply(be, m([], f(K), !1)), H && le.done])] ); - return (t.opt_len += 3 * (e + 1) + 5 + 5 + 4), e; - })(t)), - (r = (t.opt_len + 3 + 7) >>> 3), - (o = (t.static_len + 3 + 7) >>> 3) <= r && (r = o)) - : (r = o = n + 5), - n + 4 <= r && -1 !== e - ? y(t, e, n, i) - : 4 === t.strategy || o === r - ? (u(t, 2 + (i ? 1 : 0), 3), v(t, G, j)) - : (u(t, 4 + (i ? 1 : 0), 3), - (function (t, e, n, i) { - var r; - for (u(t, e - 257, 5), u(t, n - 1, 5), u(t, i - 4, 4), r = 0; r < i; r++) - u(t, t.bl_tree[2 * V[r] + 1], 3); - b(t, t.dyn_ltree, e - 1), b(t, t.dyn_dtree, n - 1); - })(t, t.l_desc.max_code + 1, t.d_desc.max_code + 1, a + 1), - v(t, t.dyn_ltree, t.dyn_dtree)), - h(t), - i && f(t); - }), - (n._tr_tally = function (t, e, n) { - return ( - (t.pending_buf[t.d_buf + 2 * t.last_lit] = (e >>> 8) & 255), - (t.pending_buf[t.d_buf + 2 * t.last_lit + 1] = 255 & e), - (t.pending_buf[t.l_buf + t.last_lit] = 255 & n), - t.last_lit++, - 0 === e - ? t.dyn_ltree[2 * n]++ - : (t.matches++, - e--, - t.dyn_ltree[2 * (K[n] + T + 1)]++, - t.dyn_dtree[2 * a(e)]++), - t.last_lit === t.lit_bufsize - 1 - ); - }), - (n._tr_align = function (t) { - u(t, 2, 3), - c(t, R, G), - (function (t) { - 16 === t.bi_valid - ? (s(t, t.bi_buf), (t.bi_buf = 0), (t.bi_valid = 0)) - : t.bi_valid >= 8 && - ((t.pending_buf[t.pending++] = 255 & t.bi_buf), - (t.bi_buf >>= 8), - (t.bi_valid -= 8)); - })(t); + case 1: + return [2, we.sent()[0]]; + } + }); }); - }, - { '../utils/common': 1 }, - ], - 8: [ - function (t, e, n) { - 'use strict'; - e.exports = function () { - (this.input = null), - (this.next_in = 0), - (this.avail_in = 0), - (this.total_in = 0), - (this.output = null), - (this.next_out = 0), - (this.avail_out = 0), - (this.total_out = 0), - (this.msg = ''), - (this.state = null), - (this.data_type = 2), - (this.adler = 0); }; + return U.set(C, ee), ee; + } + } + } + (l = (function (O) { + return L(L({}, O), { + get: function (C, k, R) { + return T(C, k) || O.get(C, k, R); }, - {}, - ], - '/lib/deflate.js': [ - function (t, e, n) { - 'use strict'; - function i(t) { - if (!(this instanceof i)) return new i(t); - this.options = a.assign( - { - level: h, - method: g, - chunkSize: 16384, - windowBits: 15, - memLevel: 8, - strategy: f, - to: '', - }, - t || {}, - ); - var e = this.options; - e.raw && e.windowBits > 0 - ? (e.windowBits = -e.windowBits) - : e.gzip && e.windowBits > 0 && e.windowBits < 16 && (e.windowBits += 16), - (this.err = 0), - (this.msg = ''), - (this.ended = !1), - (this.chunks = []), - (this.strm = new c()), - (this.strm.avail_out = 0); - var n = o.deflateInit2( - this.strm, - e.level, - e.method, - e.windowBits, - e.memLevel, - e.strategy, - ); - if (n !== d) throw new Error(u[n]); - if ((e.header && o.deflateSetHeader(this.strm, e.header), e.dictionary)) { - var r; - if ( - ((r = - 'string' == typeof e.dictionary - ? s.string2buf(e.dictionary) - : '[object ArrayBuffer]' === l.call(e.dictionary) - ? new Uint8Array(e.dictionary) - : e.dictionary), - (n = o.deflateSetDictionary(this.strm, r)) !== d) + has: function (C, k) { + return !!T(C, k) || O.has(C, k); + }, + }); + })(l)), + (c.deleteDB = function (O, C) { + var k = (C === void 0 ? {} : C).blocked, + R = indexedDB.deleteDatabase(O); + return ( + k && + R.addEventListener('blocked', function (H) { + return k(H.oldVersion, H); + }), + v(R).then(function () {}) + ); + }), + (c.openDB = function (O, C, k) { + var R = k === void 0 ? {} : k, + H = R.blocked, + ee = R.upgrade, + M = R.blocking, + K = R.terminated, + Z = indexedDB.open(O, C), + le = v(Z); + return ( + ee && + Z.addEventListener('upgradeneeded', function (q) { + ee(v(Z.result), q.oldVersion, q.newVersion, v(Z.transaction), q); + }), + H && + Z.addEventListener('blocked', function (q) { + return H(q.oldVersion, q.newVersion, q); + }), + le + .then(function (q) { + K && + q.addEventListener('close', function () { + return K(); + }), + M && + q.addEventListener('versionchange', function (be) { + return M(be.oldVersion, be.newVersion, be); + }); + }) + .catch(function () {}), + le + ); + }), + (c.unwrap = y), + (c.wrap = v); + }), + (function (c) { + function h(p, n) { + (n = n || {}), + (this._id = h._generateUUID()), + (this._promise = n.promise || Promise), + (this._frameId = n.frameId || 'CrossStorageClient-' + this._id), + (this._origin = h._getOrigin(p)), + (this._requests = {}), + (this._connected = !1), + (this._closed = !1), + (this._count = 0), + (this._timeout = n.timeout || 5e3), + (this._listener = null), + this._installListener(); + var r; + n.frameId && (r = document.getElementById(n.frameId)), + r && this._poll(), + (r = r || this._createFrame(p)), + (this._hub = r.contentWindow); + } + (h.frameStyle = { + width: 0, + height: 0, + border: 'none', + display: 'none', + position: 'absolute', + top: '-999px', + left: '-999px', + }), + (h._getOrigin = function (p) { + var n, r, a; + return ( + (n = document.createElement('a')), + (n.href = p), + n.host || (n = window.location), + !n.protocol || n.protocol === ':' ? (r = window.location.protocol) : (r = n.protocol), + (a = r + '//' + n.host), + (a = a.replace(/:80$|:443$/, '')), + a + ); + }), + (h._generateUUID = function () { + return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (p) { + var n = (Math.random() * 16) | 0, + r = p == 'x' ? n : (n & 3) | 8; + return r.toString(16); + }); + }), + (h.prototype.onConnect = function () { + var p = this; + return this._connected + ? this._promise.resolve() + : this._closed + ? this._promise.reject(new Error('CrossStorageClient has closed')) + : (this._requests.connect || (this._requests.connect = []), + new this._promise(function (n, r) { + var a = setTimeout(function () { + r(new Error('CrossStorageClient could not connect')); + }, p._timeout); + p._requests.connect.push(function (s) { + if ((clearTimeout(a), s)) return r(s); + n(); + }); + })); + }), + (h.prototype.set = function (p, n) { + return this._request('set', { key: p, value: n }); + }), + (h.prototype.getSignedPayload = function (p, n) { + return this._request('getSignedData', { payload: p, deviceId: n }); + }), + (h.prototype.getDeviceDetails = function (p) { + return this._request('getDeviceDetails', { deviceName: p }); + }), + (h.prototype.setDeviceDetails = function (p, n) { + return this._request('setDeviceDetails', { deviceName: p, deviceId: n }); + }), + (h.prototype.get = function (p) { + var n = Array.prototype.slice.call(arguments); + return this._request('get', { keys: n }); + }), + (h.prototype.del = function () { + var p = Array.prototype.slice.call(arguments); + return this._request('del', { keys: p }); + }), + (h.prototype.clear = function () { + return this._request('clear'); + }), + (h.prototype.getKeys = function () { + return this._request('getKeys'); + }), + (h.prototype.close = function (p) { + const n = this._frameId, + r = this; + this._request('close') + .catch(function (a) {}) + .finally(function () { + try { + var a = document.getElementById(n); + a && !p && a.parentNode.removeChild(a), + window.removeEventListener + ? window.removeEventListener('message', r._listener, !1) + : window.detachEvent('onmessage', r._listener), + (r._connected = !1), + (r._closed = !0); + } catch {} + }); + }), + (h.prototype._installListener = function () { + var p = this; + (this._listener = function (n) { + var r, a, s, i; + if ( + !(p._closed || !n.data || typeof n.data != 'string') && + ((a = n.origin === 'null' ? 'file://' : n.origin), a === p._origin) + ) { + if (n.data === 'cross-storage:unavailable') { + if ((p._closed || p.close(), !p._requests.connect)) return; + for ( + s = new Error('Closing client. Could not access localStorage in hub.'), r = 0; + r < p._requests.connect.length; + r++ ) - throw new Error(u[n]); - this._dict_set = !0; + p._requests.connect[r](s); + return; + } + if (n.data.indexOf('cross-storage:') !== -1 && !p._connected) { + if (((p._connected = !0), !p._requests.connect)) return; + for (r = 0; r < p._requests.connect.length; r++) p._requests.connect[r](s); + delete p._requests.connect; + } + if (n.data !== 'cross-storage:ready') { + try { + i = JSON.parse(n.data); + } catch { + return; + } + i.id && p._requests[i.id] && p._requests[i.id](i.error, i.result); } } - function r(t, e) { - var n = new i(e); - if ((n.push(t, !0), n.err)) throw n.msg || u[n.err]; - return n.result; + }), + window.addEventListener + ? window.addEventListener('message', this._listener, !1) + : window.attachEvent('onmessage', this._listener); + }), + (h.prototype._poll = function () { + var p, n, r; + (p = this), + (r = p._origin === 'file://' ? '*' : p._origin), + (n = setInterval(function () { + if (p._connected) return clearInterval(n); + p._hub && p._hub.postMessage('cross-storage:poll', r); + }, 1e3)); + }), + (h.prototype._createFrame = function (p) { + var n, r; + (n = window.document.createElement('iframe')), (n.id = this._frameId); + for (r in h.frameStyle) h.frameStyle.hasOwnProperty(r) && (n.style[r] = h.frameStyle[r]); + return window.document.body.appendChild(n), (n.src = p), n; + }), + (h.prototype._request = function (p, n) { + var r, a; + return this._closed + ? this._promise.reject(new Error('CrossStorageClient has closed')) + : ((a = this), + a._count++, + (r = { id: this._id + ':' + a._count, method: 'cross-storage:' + p, params: n }), + new this._promise(function (s, i) { + var t, e, l; + (t = setTimeout(function () { + a._requests[r.id] && + (delete a._requests[r.id], + i(new Error('Timeout: could not perform ' + r.method))); + }, a._timeout)), + (a._requests[r.id] = function (o, x) { + if ((clearTimeout(t), delete a._requests[r.id], o)) return i(new Error(o)); + s(x); + }), + Array.prototype.toJSON && + ((e = Array.prototype.toJSON), (Array.prototype.toJSON = null)), + (l = a._origin === 'file://' ? '*' : a._origin), + a._hub.postMessage(JSON.stringify(r), l), + e && (Array.prototype.toJSON = e); + })); + }), + (c.CrossStorageClient = h); + })(_POSignalsEntities || (_POSignalsEntities = {})), + (function () { + 'use strict'; + typeof Object.assign != 'function' && + Object.defineProperty(Object, 'assign', { + value: function (h, p) { + 'use strict'; + if (h == null) throw new TypeError('Cannot convert undefined or null to object'); + for (var n = Object(h), r = 1; r < arguments.length; r++) { + var a = arguments[r]; + if (a != null) + for (var s in a) Object.prototype.hasOwnProperty.call(a, s) && (n[s] = a[s]); } - var o = t('./zlib/deflate'), - a = t('./utils/common'), - s = t('./utils/strings'), - u = t('./zlib/messages'), - c = t('./zlib/zstream'), - l = Object.prototype.toString, - d = 0, - h = -1, - f = 0, - g = 8; - (i.prototype.push = function (t, e) { - var n, - i, - r = this.strm, - u = this.options.chunkSize; - if (this.ended) return !1; - (i = e === ~~e ? e : !0 === e ? 4 : 0), - 'string' == typeof t - ? (r.input = s.string2buf(t)) - : '[object ArrayBuffer]' === l.call(t) - ? (r.input = new Uint8Array(t)) - : (r.input = t), - (r.next_in = 0), - (r.avail_in = r.input.length); - do { - if ( - (0 === r.avail_out && - ((r.output = new a.Buf8(u)), (r.next_out = 0), (r.avail_out = u)), - 1 !== (n = o.deflate(r, i)) && n !== d) - ) - return this.onEnd(n), (this.ended = !0), !1; - (0 !== r.avail_out && (0 !== r.avail_in || (4 !== i && 2 !== i))) || - ('string' === this.options.to - ? this.onData(s.buf2binstring(a.shrinkBuf(r.output, r.next_out))) - : this.onData(a.shrinkBuf(r.output, r.next_out))); - } while ((r.avail_in > 0 || 0 === r.avail_out) && 1 !== n); - return 4 === i - ? ((n = o.deflateEnd(this.strm)), this.onEnd(n), (this.ended = !0), n === d) - : 2 !== i || (this.onEnd(d), (r.avail_out = 0), !0); - }), - (i.prototype.onData = function (t) { - this.chunks.push(t); - }), - (i.prototype.onEnd = function (t) { - t === d && - ('string' === this.options.to - ? (this.result = this.chunks.join('')) - : (this.result = a.flattenChunks(this.chunks))), - (this.chunks = []), - (this.err = t), - (this.msg = this.strm.msg); - }), - (n.Deflate = i), - (n.deflate = r), - (n.deflateRaw = function (t, e) { - return ((e = e || {}).raw = !0), r(t, e); - }), - (n.gzip = function (t, e) { - return ((e = e || {}).gzip = !0), r(t, e); - }); - }, - { - './utils/common': 1, - './utils/strings': 2, - './zlib/deflate': 5, - './zlib/messages': 6, - './zlib/zstream': 8, + return n; }, - ], - }, - {}, - [], - )('/lib/deflate.js')); - var __awaiter = - (this && this.__awaiter) || - function (t, e, n, i) { - return new (n || (n = Promise))(function (r, o) { - function a(t) { - try { - u(i.next(t)); - } catch (t) { - o(t); - } - } - function s(t) { - try { - u(i.throw(t)); - } catch (t) { - o(t); - } - } - function u(t) { - var e; - t.done - ? r(t.value) - : ((e = t.value), - e instanceof n - ? e - : new n(function (t) { - t(e); - })).then(a, s); - } - u((i = i.apply(t, e || [])).next()); + writable: !0, + configurable: !0, }); - }, - __generator = - (this && this.__generator) || - function (t, e) { - var n, - i, - r, - o, - a = { - label: 0, - sent: function () { - if (1 & r[0]) throw r[1]; - return r[1]; - }, - trys: [], - ops: [], - }; - return ( - (o = { next: s(0), throw: s(1), return: s(2) }), - 'function' == typeof Symbol && - (o[Symbol.iterator] = function () { - return this; - }), - o - ); - function s(o) { - return function (s) { - return (function (o) { - if (n) throw new TypeError('Generator is already executing.'); - for (; a; ) - try { - if ( - ((n = 1), - i && - (r = - 2 & o[0] - ? i.return - : o[0] - ? i.throw || ((r = i.return) && r.call(i), 0) - : i.next) && - !(r = r.call(i, o[1])).done) - ) - return r; - switch (((i = 0), r && (o = [2 & o[0], r.value]), o[0])) { - case 0: - case 1: - r = o; - break; - case 4: - return a.label++, { value: o[1], done: !1 }; - case 5: - a.label++, (i = o[1]), (o = [0]); - continue; - case 7: - (o = a.ops.pop()), a.trys.pop(); - continue; - default: - if ( - !(r = (r = a.trys).length > 0 && r[r.length - 1]) && - (6 === o[0] || 2 === o[0]) - ) { - a = 0; - continue; - } - if (3 === o[0] && (!r || (o[1] > r[0] && o[1] < r[3]))) { - a.label = o[1]; - break; - } - if (6 === o[0] && a.label < r[1]) { - (a.label = r[1]), (r = o); - break; - } - if (r && a.label < r[2]) { - (a.label = r[2]), a.ops.push(o); - break; - } - r[2] && a.ops.pop(), a.trys.pop(); - continue; - } - o = e.call(t, a); - } catch (t) { - (o = [6, t]), (i = 0); - } finally { - n = r = 0; - } - if (5 & o[0]) throw o[1]; - return { value: o[0] ? o[1] : void 0, done: !0 }; - })([o, s]); + })(), + Array.from || + (Array.from = (function () { + var c = Object.prototype.toString, + h = function (a) { + return typeof a == 'function' || c.call(a) === '[object Function]'; + }, + p = function (a) { + var s = Number(a); + return isNaN(s) + ? 0 + : s === 0 || !isFinite(s) + ? s + : (s > 0 ? 1 : -1) * Math.floor(Math.abs(s)); + }, + n = Math.pow(2, 53) - 1, + r = function (a) { + var s = p(a); + return Math.min(Math.max(s, 0), n); }; - } - }, - __assign = - (this && this.__assign) || - function () { - return (__assign = - Object.assign || - function (t) { - for (var e, n = 1, i = arguments.length; n < i; n++) - for (var r in (e = arguments[n])) - Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); - return t; - }).apply(this, arguments); - }; - !(function (t) { - !(function (e) { - var n = (function () { - function n() { - (this._isIphoneOrIPad = !1), - (navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPod/i)) && - (this._isIphoneOrIPad = !0), - this.initUAParser(); - } - return ( - Object.defineProperty(n.prototype, 'userAgentData', { - get: function () { - return this._userAgentData; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(n.prototype, 'deviceType', { - get: function () { - return ( - this._deviceType || - (e.Util.isMobile - ? (this._deviceType = - this.mobileType || this.desktopType || n.UNKNOWN_DEVICE_TYPE) - : (this._deviceType = - this.desktopType || this.mobileType || n.UNKNOWN_DEVICE_TYPE)), - this._deviceType + return function (s) { + var i = this, + t = Object(s); + if (s == null) + throw new TypeError('Array.from requires an array-like object - not null or undefined'); + var e = arguments.length > 1 ? arguments[1] : void 0, + l; + if (typeof e != 'undefined') { + if (!h(e)) + throw new TypeError( + 'Array.from: when provided, the second argument must be a function', ); - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(n.prototype, 'isIphoneOrIPad', { - get: function () { - return this._isIphoneOrIPad; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(n.prototype, 'browserName', { - get: function () { - return this._userAgentData && - this._userAgentData.browser && - this._userAgentData.browser.name - ? this._userAgentData.browser.name.trim() - : ''; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(n.prototype, 'browserVersion', { - get: function () { - return this._userAgentData && - this._userAgentData.browser && - this._userAgentData.browser.version - ? this._userAgentData.browser.version.trim() - : ''; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(n.prototype, 'browserMajor', { - get: function () { - return this._userAgentData && - this._userAgentData.browser && - this._userAgentData.browser.major - ? this._userAgentData.browser.major.trim() - : ''; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(n.prototype, 'browserType', { - get: function () { - return this._userAgentData && - this._userAgentData.browser && - this._userAgentData.browser.type - ? this._userAgentData.browser.type.trim() - : ''; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(n.prototype, 'osName', { - get: function () { - return this._userAgentData && this._userAgentData.os && this._userAgentData.os.name - ? this._userAgentData.os.name.trim() - : ''; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(n.prototype, 'osVersion', { - get: function () { - return this._userAgentData && this._userAgentData.os && this._userAgentData.os.version - ? this._userAgentData.os.version.trim() - : ''; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(n.prototype, 'deviceCategory', { - get: function () { - return this._userAgentData && - this._userAgentData.device && - this._userAgentData.device.type - ? this._userAgentData.device.type.trim() - : ''; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(n.prototype, 'engineName', { - get: function () { - return this._userAgentData && - this._userAgentData.engine && - this._userAgentData.engine.name - ? this._userAgentData.engine.name.trim() - : ''; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(n.prototype, 'engineVersion', { - get: function () { - return this._userAgentData && - this._userAgentData.engine && - this._userAgentData.engine.version - ? this._userAgentData.engine.version.trim() - : ''; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(n.prototype, 'cpuArchitecture', { - get: function () { - return this._userAgentData && - this._userAgentData.cpu && - this._userAgentData.cpu.architecture - ? this._userAgentData.cpu.architecture.trim() - : ''; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(n.prototype, 'deviceModel', { - get: function () { - return this._userAgentData && - this._userAgentData.device && - this._userAgentData.device.model - ? this._userAgentData.device.model.trim() - : ''; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(n.prototype, 'deviceVendor', { - get: function () { - return this._userAgentData && - this._userAgentData.device && - this._userAgentData.device.vendor - ? this._userAgentData.device.vendor.trim() - : ''; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(n.prototype, 'desktopType', { - get: function () { - var t = this.browserName; - this.browserVersion && (t = t + '(' + this.browserVersion + ')'); - var e = this.osName; - this.osVersion && (e = e + '(' + this.osVersion + ')'); - var n = t && e ? t + '-' + e : t || e; - return n ? n.trim() : ''; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(n.prototype, 'mobileType', { - get: function () { - var t = this.deviceModel, - e = this.deviceVendor, - n = t && e ? t + ' ' + e : t || e; - return n ? n.trim() : ''; - }, - enumerable: !1, - configurable: !0, - }), - (n.prototype.initUAParser = function () { - try { - var n = new t.UAParser(); - n.setUA(navigator.userAgent), (this._userAgentData = n.getResult()); - } catch (t) { - e.Logger.warn('UAParser failure', t); - } - }), - (n.UNKNOWN_DEVICE_TYPE = 'unknown'), - n - ); - })(); - e.BrowserInfo = n; - })(t._POSignalsUtils || (t._POSignalsUtils = {})); - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function (t) { - !(function (t) { - var e = (function () { - function t() {} - return ( - Object.defineProperty(t, 'CLIENT_VERSION', { - get: function () { - return '5.6.4w'; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(t, 'SALT', { - get: function () { - return 'ST8irbd3bB'; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(t, 'TAB_UUID_KEY', { - get: function () { - return 'pos_tid'; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(t, 'OPS_KEY', { - get: function () { - return 'pos_ops'; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(t, 'DEVICE_ID_KEY', { - get: function () { - return 'SecuredTouchDeviceId'; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(t, 'DEVICE_ID_CREATED_AT', { - get: function () { - return 'pos_dca'; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(t, 'LAST_DEVICE_KEY_RESYNC', { - get: function () { - return 'DeviceRefreshDate'; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(t, 'CAPTURED_KEYBOARD_INTERACTIONS', { - get: function () { - return 'pos_cki'; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(t, 'CAPTURED_MOUSE_INTERACTIONS', { - get: function () { - return 'pos_cmi'; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(t, 'CAPTURED_GESTURES', { - get: function () { - return 'pos_cg'; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(t, 'CAPTURED_INDIRECT', { - get: function () { - return 'pos_cie'; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(t, 'CAPTURED_TAGS', { - get: function () { - return 'pos_ct'; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(t, 'CAPTURED_MOUSE_INTERACTIONS_SUMMARY', { - get: function () { - return 'pos_mdp'; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(t, 'KEYBOARD_INTERACTIONS_COUNT', { - get: function () { - return 'pos_kic'; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(t, 'MOUSE_INTERACTIONS_COUNT', { - get: function () { - return 'pos_mic'; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(t, 'GESTURES_COUNT', { - get: function () { - return 'pos_gc'; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(t, 'EVENT_COUNTERS', { - get: function () { - return 'pos_ec'; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(t, 'PINGID_AGENT_DEFAULT_PORT', { - get: function () { - return 9400; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(t, 'PINGID_AGENT_DEFAULT_TIMEOUT', { - get: function () { - return 1e3; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(t, 'MOUSE_EVENT_COUNTERS', { - get: function () { - return 'pos_mec'; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(t, 'KEYBOARD_EVENT_COUNTERS', { - get: function () { - return 'pos_kec'; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(t, 'TOUCH_EVENT_COUNTERS', { - get: function () { - return 'pos_tec'; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(t, 'INDIRECT_EVENT_COUNTERS', { - get: function () { - return 'pos_iec'; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(t, 'GeoDataKey', { - get: function () { - return 'pos_geo'; - }, - enumerable: !1, - configurable: !0, - }), - t - ); - })(); - t.Constants = e; - })(t._POSignalsUtils || (t._POSignalsUtils = {})); - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function (t) { - !(function (t) { - var e = (function () { - function e(t, e, n) { - if ( - (void 0 === t && (t = 'ECDSA'), - void 0 === e && (e = ['sign', 'verify']), - void 0 === n && (n = 'SHA-256'), - (this.signingKeyType = t), - (this.keyUsage = e), - (this.algorithm = n), - (this._crypto = window.crypto || window.msCrypto), - !this._crypto || !this._crypto.subtle) - ) - throw new Error('Cryptography API not supported in this browser'); + arguments.length > 2 && (l = arguments[2]); } + for (var o = r(t.length), x = h(i) ? Object(new i(o)) : new Array(o), v = 0, y; v < o; ) + (y = t[v]), + e ? (x[v] = typeof l == 'undefined' ? e(y, v) : e.call(l, y, v)) : (x[v] = y), + (v += 1); + return (x.length = o), x; + }; + })()), + (function () { + 'use strict'; + String.prototype.endsWith || + (String.prototype.endsWith = function (c, h) { return ( - (e.prototype.generateKeys = function () { - return __awaiter(this, void 0, void 0, function () { - return __generator(this, function (t) { - return [ - 2, - this._crypto.subtle.generateKey( - { name: this.signingKeyType, namedCurve: 'P-256' }, - !1, - this.keyUsage, - ), - ]; - }); - }); - }), - (e.prototype.exportPublicKey = function (e) { - return __awaiter(this, void 0, void 0, function () { - var n, i, r, o; - return __generator(this, function (a) { - switch (a.label) { - case 0: - return [4, this._crypto.subtle.exportKey('spki', e.publicKey)]; - case 1: - return ( - (n = a.sent()), - (i = t.Util.ab2str(n)), - (r = btoa(i)), - (o = '-----BEGIN PUBLIC KEY-----\n' + r + '\n-----END PUBLIC KEY-----'), - t.Logger.debug('Exported base64 pub key: ', o), - [2, o] - ); - } - }); - }); - }), - (e.prototype.exportPublicKeyJwk = function (t) { - return __awaiter(this, void 0, void 0, function () { - return __generator(this, function (e) { - switch (e.label) { - case 0: - return [4, window.crypto.subtle.exportKey('jwk', t.publicKey)]; - case 1: - return [2, e.sent()]; - } - }); - }); - }), - (e.prototype.exportPrivateKey = function (e) { - return __awaiter(this, void 0, void 0, function () { - var n, i, r, o; - return __generator(this, function (a) { - switch (a.label) { - case 0: - return [4, this._crypto.subtle.exportKey('pkcs8', e.privateKey)]; - case 1: - return ( - (n = a.sent()), - (i = t.Util.ab2str(n)), - (r = btoa(i)), - (o = '-----BEGIN PRIVATE KEY-----\n' + r + '\n-----END PRIVATE KEY-----'), - t.Logger.debug('Exported base64 pem:', o), - [2, o] - ); - } - }); - }); - }), - (e.prototype.signJWT = function (e, n, i, r, o) { - return ( - void 0 === i && (i = 0), - __awaiter(this, void 0, void 0, function () { - var i, a, s, u, c, l, d, h, f; - return __generator(this, function (g) { - switch (g.label) { - case 0: - return [4, this.exportPublicKeyJwk(n)]; - case 1: - if ( - ((i = g.sent()), - (a = { alg: 'ES256', typ: 'JWT', jwk: i, kid: o }), - (s = { deviceAttributesSerialized: e, iat: Math.floor(r / 1e3) }), - !n.privateKey) - ) - throw new Error('Require key'); - if ('ES256' !== a.alg && 'JWT' !== a.typ) - throw new Error( - 'jwt-encode only support the ES256 algorithm and the JWT type of hash', - ); - return ( - (u = t.Util.encode(a)), - (c = t.Util.encode(s)), - (l = u + '.' + c), - (d = t.Util.string2buf(l)), - [ - 4, - this._crypto.subtle.sign( - { name: this.signingKeyType, hash: this.algorithm }, - n.privateKey, - d, - ), - ] - ); - case 2: - return ( - (h = g.sent()), - (f = t.Util.base64url(btoa(t.Util.ab2str(h)))), - t.Logger.debug('Signed JWT: ', l + '.' + f), - [2, l + '.' + f] - ); - } - }); + (h === void 0 || h > this.length) && (h = this.length), + this.substring(h - c.length, h) === c + ); + }); + })(), + (function () { + 'use strict'; + Promise.allSettled = + Promise.allSettled || + function (c) { + return Promise.all( + c.map(function (h) { + return h + .then(function (p) { + return { status: 'fulfilled', value: p }; }) - ); - }), - (e.prototype.verifyJwtToken = function (e, n) { - return __awaiter(this, void 0, void 0, function () { - var i, r, o, a, s, u, c; - return __generator(this, function (l) { - switch (l.label) { - case 0: - if ( - ((i = e.split('.')), - (r = i[0]), - (o = i[1]), - (a = i[2]), - 'ES256' !== (s = t.Util.parseJwt(r)).alg && 'JWT' !== s.typ) - ) - throw new Error( - 'JWT header supports only ES256 algorithm and the JWT type of hash', - ); - return ( - t.Util.parseJwt(o), - (u = Uint8Array.from( - atob(a.replace(/-/g, '+').replace(/_/g, '/')), - function (t) { - return t.charCodeAt(0); - }, - )), - (c = t.Util.string2buf(r + '.' + o)), - [ - 4, - this._crypto.subtle.verify( - { name: this.signingKeyType, hash: this.algorithm }, - n, - u, - c, - ), - ] - ); - case 1: - return [2, l.sent()]; - } + .catch(function (p) { + return { status: 'rejected', reason: p }; }); - }); - }), - e - ); - })(); - t.CryptoOperator = e; - })(t._POSignalsUtils || (t._POSignalsUtils = {})); - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function (t) { - !(function (t) { - var e = (function () { - function t() {} - return ( - Object.defineProperty(t, 'isLogEnabled', { - get: function () { - return this._isLogEnabled || window['enable-logs-pingOneSignals']; - }, - set: function (t) { - this._isLogEnabled = t; - }, - enumerable: !1, - configurable: !0, - }), - (t.debug = function (e) { - for (var n = [], i = 1; i < arguments.length; i++) n[i - 1] = arguments[i]; - (e = t.TAG + ' ' + e), - t.isLogEnabled && - (n && n.length > 0 - ? console.debug - ? console.debug(e, n) - : console.log(e, n) - : console.debug - ? console.debug(e) - : console.log(e)); - }), - (t.error = function (e) { - for (var n = [], i = 1; i < arguments.length; i++) n[i - 1] = arguments[i]; - (e = t.TAG + ' ' + e), - t.isLogEnabled && (n && n.length > 0 ? console.error(e, n) : console.error(e)); - }), - (t.warn = function (e) { - for (var n = [], i = 1; i < arguments.length; i++) n[i - 1] = arguments[i]; - (e = t.TAG + ' ' + e), - t.isLogEnabled && (n && n.length > 0 ? console.warn(e, n) : console.warn(e)); - }), - (t.info = function (e) { - for (var n = [], i = 1; i < arguments.length; i++) n[i - 1] = arguments[i]; - (e = t.TAG + ' ' + e), - t.isLogEnabled && (n && n.length > 0 ? console.info(e, n) : console.info(e)); - }), - (t.TAG = '[SignalsSDK]'), - t - ); - })(); - t.Logger = e; - })(t._POSignalsUtils || (t._POSignalsUtils = {})); - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function (t) { - !(function (t) { - var e = (function () { - function t() {} - return ( - Object.defineProperty(t, 'INITIALIZATION_ERROR', { - get: function () { - return 'INITIALIZATION_ERROR'; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(t, 'UNEXPECTED_ERROR', { - get: function () { - return 'UNEXPECTED_ERROR'; - }, - enumerable: !1, - configurable: !0, }), - t ); - })(); - t.POErrorCodes = e; - })(t._POSignalsUtils || (t._POSignalsUtils = {})); - })(_POSignalsEntities || (_POSignalsEntities = {})); - var Browser = { - 115: '115', - 2345: '2345', - 360: '360', - ALIPAY: 'Alipay', - AMAYA: 'Amaya', - ANDROID: 'Android Browser', - ARORA: 'Arora', - AVANT: 'Avant', - AVAST: 'Avast Secure Browser', - AVG: 'AVG Secure Browser', - BAIDU: 'Baidu Browser', - BASILISK: 'Basilisk', - BLAZER: 'Blazer', - BOLT: 'Bolt', - BOWSER: 'Bowser', - BRAVE: 'Brave', - CAMINO: 'Camino', - CHIMERA: 'Chimera', - CHROME: 'Chrome', - CHROME_HEADLESS: 'Chrome Headless', - CHROME_MOBILE: 'Mobile Chrome', - CHROME_WEBVIEW: 'Chrome WebView', - CHROMIUM: 'Chromium', - COBALT: 'Cobalt', - COC_COC: 'Coc Coc', - CONKEROR: 'Conkeror', - DAUM: 'Daum', - DILLO: 'Dillo', - DOLPHIN: 'Dolphin', - DORIS: 'Doris', - DRAGON: 'Dragon', - DUCKDUCKGO: 'DuckDuckGo', - EDGE: 'Edge', - EPIPHANY: 'Epiphany', - FACEBOOK: 'Facebook', - FALKON: 'Falkon', - FIREBIRD: 'Firebird', - FIREFOX: 'Firefox', - FIREFOX_FOCUS: 'Firefox Focus', - FIREFOX_MOBILE: 'Mobile Firefox', - FIREFOX_REALITY: 'Firefox Reality', - FENNEC: 'Fennec', - FLOCK: 'Flock', - FLOW: 'Flow', - GO: 'GoBrowser', - GOOGLE_SEARCH: 'GSA', - HELIO: 'Helio', - HEYTAP: 'HeyTap', - HONOR: 'Honor', - HUAWEI: 'Huawei Browser', - ICAB: 'iCab', - ICE: 'ICE Browser', - ICEAPE: 'IceApe', - ICECAT: 'IceCat', - ICEDRAGON: 'IceDragon', - ICEWEASEL: 'IceWeasel', - IE: 'IE', - INSTAGRAM: 'Instagram', - IRIDIUM: 'Iridium', - IRON: 'Iron', - JASMINE: 'Jasmine', - KONQUEROR: 'Konqueror', - KAKAO: 'KakaoTalk', - KHTML: 'KHTML', - K_MELEON: 'K-Meleon', - KLAR: 'Klar', - KLARNA: 'Klarna', - KINDLE: 'Kindle', - LENOVO: 'Smart Lenovo Browser', - LADYBIRD: 'Ladybird', - LIBREWOLF: 'LibreWolf', - LIEBAO: 'LBBROWSER', - LINE: 'Line', - LINKEDIN: 'LinkedIn', - LINKS: 'Links', - LUNASCAPE: 'Lunascape', - LYNX: 'Lynx', - MAEMO: 'Maemo Browser', - MAXTHON: 'Maxthon', - MIDORI: 'Midori', - MINIMO: 'Minimo', - MIUI: 'MIUI Browser', - MOZILLA: 'Mozilla', - MOSAIC: 'Mosaic', - NAVER: 'Naver', - NETFRONT: 'NetFront', - NETSCAPE: 'Netscape', - NETSURF: 'Netsurf', - NOKIA: 'Nokia Browser', - OBIGO: 'Obigo', - OCULUS: 'Oculus Browser', - OMNIWEB: 'OmniWeb', - OPERA: 'Opera', - OPERA_COAST: 'Opera Coast', - OPERA_GX: 'Opera GX', - OPERA_MINI: 'Opera Mini', - OPERA_MOBI: 'Opera Mobi', - OPERA_TABLET: 'Opera Tablet', - OPERA_TOUCH: 'Opera Touch', - OVI: 'OviBrowser', - PALEMOON: 'PaleMoon', - PHANTOMJS: 'PhantomJS', - PHOENIX: 'Phoenix', - PICOBROWSER: 'Pico Browser', - POLARIS: 'Polaris', - PUFFIN: 'Puffin', - QQ: 'QQBrowser', - QQ_LITE: 'QQBrowserLite', - QUARK: 'Quark', - QUPZILLA: 'QupZilla', - REKONQ: 'rekonq', - ROCKMELT: 'Rockmelt', - SAFARI: 'Safari', - SAFARI_MOBILE: 'Mobile Safari', - SAILFISH: 'Sailfish Browser', - SAMSUNG: 'Samsung Internet', - SEAMONKEY: 'SeaMonkey', - SILK: 'Silk', - SKYFIRE: 'Skyfire', - SLEIPNIR: 'Sleipnir', - SLIMBOAT: 'SlimBoat', - SLIMBROWSER: 'SlimBrowser', - SLIMJET: 'Slimjet', - SNAPCHAT: 'Snapchat', - SOGOU_EXPLORER: 'Sogou Explorer', - SOGOU_MOBILE: 'Sogou Mobile', - SWIFTFOX: 'Swiftfox', - TESLA: 'Tesla', - TIKTOK: 'TikTok', - TIZEN: 'Tizen Browser', - TWITTER: 'Twitter', - UC: 'UCBrowser', - UP: 'UP.Browser', - VIVALDI: 'Vivaldi', - VIVO: 'Vivo Browser', - W3M: 'w3m', - WATERFOX: 'Waterfox', - WEBKIT: 'WebKit', - WECHAT: 'WeChat', - WEIBO: 'Weibo', - WHALE: 'Whale', - WOLVIC: 'Wolvic', - YANDEX: 'Yandex', - }, - BrowserType = { - CRAWLER: 'crawler', - CLI: 'cli', - EMAIL: 'email', - FETCHER: 'fetcher', - INAPP: 'inapp', - MEDIAPLAYER: 'mediaplayer', - LIBRARY: 'library', - }, - CPU = { - '68K': '68k', - ARM: 'arm', - ARM_64: 'arm64', - ARM_HF: 'armhf', - AVR: 'avr', - AVR_32: 'avr32', - IA64: 'ia64', - IRIX: 'irix', - IRIX_64: 'irix64', - MIPS: 'mips', - MIPS_64: 'mips64', - PA_RISC: 'pa-risc', - PPC: 'ppc', - SPARC: 'sparc', - SPARC_64: 'sparc64', - X86: 'ia32', - X86_64: 'amd64', - }, - Device = { - CONSOLE: 'console', - DESKTOP: 'desktop', - EMBEDDED: 'embedded', - MOBILE: 'mobile', - SMARTTV: 'smarttv', - TABLET: 'tablet', - WEARABLE: 'wearable', - XR: 'xr', - }, - Vendor = { - ACER: 'Acer', - ADVAN: 'Advan', - ALCATEL: 'Alcatel', - APPLE: 'Apple', - AMAZON: 'Amazon', - ARCHOS: 'Archos', - ASUS: 'ASUS', - ATT: 'AT&T', - BENQ: 'BenQ', - BLACKBERRY: 'BlackBerry', - CAT: 'Cat', - DELL: 'Dell', - ENERGIZER: 'Energizer', - ESSENTIAL: 'Essential', - FACEBOOK: 'Facebook', - FAIRPHONE: 'Fairphone', - GEEKSPHONE: 'GeeksPhone', - GENERIC: 'Generic', - GOOGLE: 'Google', - HMD: 'HMD', - HP: 'HP', - HTC: 'HTC', - HUAWEI: 'Huawei', - IMO: 'IMO', - INFINIX: 'Infinix', - ITEL: 'itel', - JOLLA: 'Jolla', - KOBO: 'Kobo', - LENOVO: 'Lenovo', - LG: 'LG', - MEIZU: 'Meizu', - MICROMAX: 'Micromax', - MICROSOFT: 'Microsoft', - MOTOROLA: 'Motorola', - NEXIAN: 'Nexian', - NINTENDO: 'Nintendo', - NOKIA: 'Nokia', - NOTHING: 'Nothing', - NVIDIA: 'Nvidia', - ONEPLUS: 'OnePlus', - OPPO: 'OPPO', - OUYA: 'Ouya', - PALM: 'Palm', - PANASONIC: 'Panasonic', - PEBBLE: 'Pebble', - PICO: 'Pico', - POLYTRON: 'Polytron', - REALME: 'Realme', - RIM: 'RIM', - ROKU: 'Roku', - SAMSUNG: 'Samsung', - SHARP: 'Sharp', - SIEMENS: 'Siemens', - SMARTFREN: 'Smartfren', - SONY: 'Sony', - SPRINT: 'Sprint', - TCL: 'TCL', - TECHNISAT: 'TechniSAT', - TECNO: 'Tecno', - TESLA: 'Tesla', - ULEFONE: 'Ulefone', - VIVO: 'Vivo', - VODAFONE: 'Vodafone', - XBOX: 'Xbox', - XIAOMI: 'Xiaomi', - ZEBRA: 'Zebra', - ZTE: 'ZTE', - }, - Engine = { - AMAYA: 'Amaya', - ARKWEB: 'ArkWeb', - BLINK: 'Blink', - EDGEHTML: 'EdgeHTML', - FLOW: 'Flow', - GECKO: 'Gecko', - GOANNA: 'Goanna', - ICAB: 'iCab', - KHTML: 'KHTML', - LIBWEB: 'LibWeb', - LINKS: 'Links', - LYNX: 'Lynx', - NETFRONT: 'NetFront', - NETSURF: 'NetSurf', - PRESTO: 'Presto', - SERVO: 'Servo', - TASMAN: 'Tasman', - TRIDENT: 'Trident', - W3M: 'w3m', - WEBKIT: 'WebKit', - }, - UAParserEnumOS = { - AIX: 'AIX', - AMIGA_OS: 'Amiga OS', - ANDROID: 'Android', - ANDROID_X86: 'Android-x86', - ARCH: 'Arch', - BADA: 'Bada', - BEOS: 'BeOS', - BLACKBERRY: 'BlackBerry', - CENTOS: 'CentOS', - CHROME_OS: 'Chrome OS', - CHROMECAST: 'Chromecast', - CHROMECAST_ANDROID: 'Chromecast Android', - CHROMECAST_FUCHSIA: 'Chromecast Fuchsia', - CHROMECAST_LINUX: 'Chromecast Linux', - CHROMECAST_SMARTSPEAKER: 'Chromecast SmartSpeaker', - CONTIKI: 'Contiki', - DEBIAN: 'Debian', - DEEPIN: 'Deepin', - DRAGONFLY: 'DragonFly', - ELEMENTARY_OS: 'elementary OS', - FEDORA: 'Fedora', - FIREFOX_OS: 'Firefox OS', - FREEBSD: 'FreeBSD', - FUCHSIA: 'Fuchsia', - GENTOO: 'Gentoo', - GHOSTBSD: 'GhostBSD', - GNU: 'GNU', - HAIKU: 'Haiku', - HARMONYOS: 'HarmonyOS', - HP_UX: 'HP-UX', - HURD: 'Hurd', - IOS: 'iOS', - JOLI: 'Joli', - KAIOS: 'KaiOS', - KUBUNTU: 'Kubuntu', - LINPUS: 'Linpus', - LINSPIRE: 'Linspire', - LINUX: 'Linux', - MACOS: 'macOS', - MAEMO: 'Maemo', - MAGEIA: 'Mageia', - MANDRIVA: 'Mandriva', - MANJARO: 'Manjaro', - MEEGO: 'MeeGo', - MINIX: 'Minix', - MINT: 'Mint', - MORPH_OS: 'Morph OS', - NETBSD: 'NetBSD', - NETRANGE: 'NetRange', - NETTV: 'NetTV', - NINTENDO: 'Nintendo', - OPENHARMONY: 'OpenHarmony', - OPENBSD: 'OpenBSD', - OPENVMS: 'OpenVMS', - OS2: 'OS/2', - PALM: 'Palm', - PC_BSD: 'PC-BSD', - PCLINUXOS: 'PCLinuxOS', - PICO: 'Pico', - PLAN9: 'Plan9', - PLAYSTATION: 'PlayStation', - QNX: 'QNX', - RASPBIAN: 'Raspbian', - REDHAT: 'RedHat', - RIM_TABLET_OS: 'RIM Tablet OS', - RISC_OS: 'RISC OS', - SABAYON: 'Sabayon', - SAILFISH: 'Sailfish', - SERENITYOS: 'SerenityOS', - SERIES40: 'Series40', - SLACKWARE: 'Slackware', - SOLARIS: 'Solaris', - SUSE: 'SUSE', - SYMBIAN: 'Symbian', - TIZEN: 'Tizen', - UBUNTU: 'Ubuntu', - UBUNTU_TOUCH: 'Ubuntu Touch', - UNIX: 'Unix', - VECTORLINUX: 'VectorLinux', - WATCHOS: 'watchOS', - WEBOS: 'WebOS', - WINDOWS: 'Windows', - WINDOWS_IOT: 'Windows IoT', - WINDOWS_MOBILE: 'Windows Mobile', - WINDOWS_PHONE: 'Windows Phone', - XBOX: 'Xbox', - ZENWALK: 'Zenwalk', - }; - !(function (t) { - !(function (t) { - var e = (function () { - function t() {} - return ( - Object.defineProperty(t, 'Browser', { - get: function () { - return Browser; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(t, 'BrowserType', { - get: function () { - return BrowserType; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(t, 'CPU', { - get: function () { - return CPU; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(t, 'Device', { - get: function () { - return Device; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(t, 'Vendor', { - get: function () { - return Vendor; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(t, 'Engine', { - get: function () { - return Engine; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(t, 'UAParserEnumOS', { - get: function () { - return UAParserEnumOS; - }, - enumerable: !1, - configurable: !0, - }), - t - ); - })(); - t.UAParserEnums = e; - })(t._POSignalsUtils || (t._POSignalsUtils = {})); - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function (t) { - !(function (e) { - var n = (function () { - function n() {} - return ( - Object.defineProperty(n, 'isMobile', { - get: function () { - var t, - e = !1; - return ( - (t = navigator.userAgent || navigator.vendor || window.opera), - (/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test( - t, - ) || - /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test( - t.substr(0, 4), - )) && - (e = !0), - e - ); - }, - enumerable: !1, - configurable: !0, - }), - (n.newGuid = function () { - return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (t) { - var e = (16 * Math.random()) | 0; - return ('x' === t ? e : (3 & e) | 8).toString(16); - }); - }), - (n.ieFix = function () { - (-1 != navigator.userAgent.indexOf('MSIE') - ? /MSIE (\d+\.\d+);/ - : /Trident.*rv[ :]*(\d+\.\d+)/ - ).test(navigator.userAgent) && - (document.body.setAttribute('style', '-ms-touch-action:none;'), - (document.body.style.touchAction = 'none'), - (document.body.style.msTouchAction = 'none')); - }), - (n.now = function () { - var t = window.performance || {}; - return ( - (t.now = - t.now || - t.webkitNow || - t.msNow || - t.oNow || - t.mozNow || - function () { - return new Date().getTime(); - }), - t.now() - ); - }), - (n.base64Uint8Array = function (t) { - var e, - n = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/', - i = t.length, - r = ''; - for (e = 0; e < i; e += 3) - (r += n[t[e] >> 2]), - (r += n[((3 & t[e]) << 4) | (t[e + 1] >> 4)]), - (r += n[((15 & t[e + 1]) << 2) | (t[e + 2] >> 6)]), - (r += n[63 & t[e + 2]]); - return ( - i % 3 == 2 - ? (r = r.substring(0, r.length - 1) + '=') - : i % 3 == 1 && (r = r.substring(0, r.length - 2) + '=='), - r - ); - }), - (n.string2buf = function (t) { - if ('function' == typeof TextEncoder && TextEncoder.prototype.encode) - return new TextEncoder().encode(t); - var e, - n, - i, - r, - o, - a = t.length, - s = 0; - for (r = 0; r < a; r++) - 55296 == (64512 & (n = t.charCodeAt(r))) && - r + 1 < a && - 56320 == (64512 & (i = t.charCodeAt(r + 1))) && - ((n = 65536 + ((n - 55296) << 10) + (i - 56320)), r++), - (s += n < 128 ? 1 : n < 2048 ? 2 : n < 65536 ? 3 : 4); - for (e = new Uint8Array(s), o = 0, r = 0; o < s; r++) - 55296 == (64512 & (n = t.charCodeAt(r))) && - r + 1 < a && - 56320 == (64512 & (i = t.charCodeAt(r + 1))) && - ((n = 65536 + ((n - 55296) << 10) + (i - 56320)), r++), - n < 128 - ? (e[o++] = n) - : n < 2048 - ? ((e[o++] = 192 | (n >>> 6)), (e[o++] = 128 | (63 & n))) - : n < 65536 - ? ((e[o++] = 224 | (n >>> 12)), - (e[o++] = 128 | ((n >>> 6) & 63)), - (e[o++] = 128 | (63 & n))) - : ((e[o++] = 240 | (n >>> 18)), - (e[o++] = 128 | ((n >>> 12) & 63)), - (e[o++] = 128 | ((n >>> 6) & 63)), - (e[o++] = 128 | (63 & n))); - return e; - }), - (n.utf8Encode = function (t) { - t = t.replace(/\r\n/g, '\n'); - for (var e = '', n = 0; n < t.length; n++) { - var i = t.charCodeAt(n); - i < 128 - ? (e += String.fromCharCode(i)) - : i > 127 && i < 2048 - ? ((e += String.fromCharCode((i >> 6) | 192)), - (e += String.fromCharCode((63 & i) | 128))) - : ((e += String.fromCharCode((i >> 12) | 224)), - (e += String.fromCharCode(((i >> 6) & 63) | 128)), - (e += String.fromCharCode((63 & i) | 128))); - } - return e; - }), - (n.hash = function (i) { - var r = n.hashCache.get(i); - return r || ((r = t.sha256(i + e.Constants.SALT)), n.hashCache.set(i, r)), r; - }), - (n.hashMini = function (t) { - var e, - n, - i = '' + JSON.stringify(t), - r = 2166136261; - for (e = 0, n = i.length; e < n; e++) r = (Math.imul(31, r) + i.charCodeAt(e)) | 0; - return ('0000000' + (r >>> 0).toString(16)).substr(-8); - }), - (n.hashCode = function (t) { - var e = 0, - n = t ? t.length : 0, - i = 0; - if (n > 0) for (; i < n; ) e = ((e << 5) - e + t.charCodeAt(i++)) | 0; - return e; - }), - (n.mod = function (t, e) { - return ((n.hashCode(t) % e) + e) % e; - }), - (n.isEmail = function (t) { - try { - return ( - t && - /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test( - t.toLowerCase(), - ) - ); - } catch (t) { - return e.Logger.warn('isEmail function failed to parse string', t), !1; - } - }), - (n.getEmailDomain = function (t) { - return n.isEmail(t) ? t.substring(t.lastIndexOf('@') + 1) : ''; - }), - (n.extendPrimitiveValues = function (t, e, i) { - for (var r = n.allKeys(e), o = 0; o < r.length; ) - n.isObject(e[r[o]]) || (i && (!i || void 0 !== t[r[o]])) || (t[r[o]] = e[r[o]]), - o++; - return t; - }), - (n.flatten = function (t) { - var e = {}; - return n.dive('', t, e), e; - }), - (n.isFunction = function (t) { - return t && 'function' == typeof t; - }), - (n.isPassiveSupported = function () { - var t = !1, - e = function () {}; - try { - var n = { - get passive() { - return (t = !0), !0; - }, - }; - window.addEventListener('test', e, n), window.removeEventListener('test', e, !1); - } catch (e) { - t = !1; - } - return t; - }), - (n.getAttribute = function (t, e) { - try { - if (t && 'function' == typeof t.getAttribute) return t.getAttribute(e) || ''; - } catch (t) {} - return ''; - }), - (n.createInvisibleElement = function (t) { - try { - var n = document.createElement(t); - return ( - (n.style.display = 'none'), - (n.style.border = 'none'), - (n.style.position = 'absolute'), - (n.style.top = '-999px'), - (n.style.left = '-999px'), - (n.style.width = '0'), - (n.style.height = '0'), - (n.style.visibility = 'hidden'), - n - ); - } catch (t) { - return e.Logger.warn('Failed to create element', t), null; - } - }), - (n.values = function (t) { - for (var e = n.allKeys(t), i = e.length, r = Array(i), o = 0; o < i; o++) - r[o] = t[e[o]]; - return r; - }), - (n.getValuesOfMap = function (t) { - if (this.isFunction(t.values)) return Array.from(t.values()); - var e = []; - return ( - t.forEach(function (t) { - return e.push(t); - }), - e - ); - }), - (n.typesCounter = function (t) { - for (var e = { epochTs: Date.now() }, n = 0, i = t; n < i.length; n++) { - var r = i[n]; - e[r.type] = (e[r.type] || 0) + 1; - } - return e; - }), - (n.modifiersKeys = function (t) { - var e = []; - return ( - t.getModifierState && - [ - 'Alt', - 'AltGraph', - 'CapsLock', - 'Control', - 'Fn', - 'FnLock', - 'Hyper', - 'Meta', - 'NumLock', - 'OS', - 'ScrollLock', - 'Shift', - 'Super', - 'Symbol', - 'SymbolLock', - ].forEach(function (n) { - t.getModifierState(n.toString()) && e.push(n); - }), - e - ); - }), - (n.getElementText = function (t) { - var e, n; - return t instanceof HTMLInputElement - ? ['checkbox', 'radio'].indexOf(t.type) >= 0 - ? '' + t.checked - : t.value - : t instanceof HTMLSelectElement - ? null === - (n = null === (e = t.selectedOptions) || void 0 === e ? void 0 : e[0]) || - void 0 === n - ? void 0 - : n.innerText - : t.innerText; - }), - (n.getSrcElement = function (t) { - return t.srcElement || t.target; - }), - (n.getObjectType = function (t) { - try { - var e = /function (.{1,})\(/.exec(t.constructor.toString()); - return e && e.length > 1 ? e[1] : ''; - } catch (t) { - return ''; - } - }), - (n.isSelectorMatches = function (t, e, n) { - try { - var i = Element.prototype, - r = - i.matches || - i.webkitMatchesSelector || - i.mozMatchesSelector || - i.msMatchesSelector, - o = 0; - do { - if (r.call(t, e)) return t; - t = t.parentElement || t.parentNode; - } while (null !== t && 1 === t.nodeType && o++ < n); - return null; - } catch (t) { - return null; - } - }), - (n.anySelectorMatches = function (t, n, i) { - try { - for (var r = 0, o = n; r < o.length; r++) { - var a = o[r]; - if (this.isSelectorMatches(t, a, i)) return !0; - } - } catch (t) { - e.Logger.warn(t); - } - return !1; - }), - (n.isArray = function (t) { - return Array.isArray - ? Array.isArray(t) - : '[object Array]' === Object.prototype.toString.call(t); - }), - (n.safeJsonParse = function (t) { - var n = null; - try { - t && (n = JSON.parse(t)); - } catch (t) { - e.Logger.warn('Failed to parse object ' + t), (n = null); - } - return n; - }), - (n.getElementSelectionStart = function (t) { - var e; - try { - e = t.selectionStart; - } catch (t) { - e = ''; - } - return e; - }), - (n.getElementSelectionEnd = function (t) { - var e; - try { - e = t.selectionEnd; - } catch (t) { - e = ''; - } - return e; - }), - (n.isClickableInput = function (t) { - return ( - t && - [ - 'button', - 'checkbox', - 'color', - 'radio', - 'range', - 'image', - 'submit', - 'file', - 'reset', - ].indexOf(t.type) >= 0 - ); - }), - (n.isTextInput = function (t) { - return ( - t && - [ - 'date', - 'datetime-local', - 'email', - 'month', - 'number', - 'password', - 'search', - 'tel', - 'text', - 'time', - 'url', - 'week', - 'datetime', - ].indexOf(t.type) >= 0 - ); - }), - (n.getDeviceOrientation = function () { - var t = screen.orientation || screen.mozOrientation || {}, - e = screen.msOrientation || t.type, - n = t.angle; - return { - orientation: null === e || void 0 === e ? void 0 : e.toString(), - angle: null === n || void 0 === n ? void 0 : n.toString(), - }; - }), - (n.getDevToolsState = function () { - var t, - e, - n = window.outerWidth - window.innerWidth > 160, - i = window.outerHeight - window.innerHeight > 160, - r = n ? 'vertical' : 'horizontal'; - return (i && n) || - !( - (null === - (e = null === (t = window.Firebug) || void 0 === t ? void 0 : t.chrome) || - void 0 === e - ? void 0 - : e.isInitialized) || - n || - i - ) - ? { open: !1, orientation: void 0 } - : { open: !0, orientation: r }; - }), - (n.getCookie = function (t) { - var e = document.cookie.match('(^|;) ?' + t + '=([^;]*)(;|$)'); - return e ? e[2] : null; - }), - (n.setCookie = function (t, e, n) { - var i = new Date(); - i.setTime(i.getTime() + 1e3 * n), - (document.cookie = - t + '=' + e + ';path=/;secure;SameSite=None;expires=' + i.toUTCString()); - }), - (n.deleteCookie = function (t) { - n.setCookie(t, '', -1); - }), - (n.delay = function (t) { - return new Promise(function (e) { - return setTimeout(e, t); - }); - }), - (n.getHostnameFromRegex = function (t) { - if (t) { - var e = t.match(/^https?\:\/\/([^\/?#]+)(?:[\/?#]|$)/i); - return e && e[1]; - } - return null; - }), - (n.inIframe = function () { - try { - return window.self !== window.top; - } catch (t) { - return !0; - } - }), - (n.promiseTimeout = function (t, e) { - var n = new Promise(function (e, n) { - var i = setTimeout(function () { - clearTimeout(i), n(new Error('Timed out in ' + t + 'ms.')); - }, t); - }); - return Promise.race([e, n]); - }), - (n.getProperty = function (t, e) { - return e.split('.').reduce(function (t, e) { - return t ? t[e] : null; - }, t); - }), - (n.filterReduce = function (t, e) { - return Object.keys(t) - .filter(function (n) { - return e(t[n]); - }) - .reduce(function (e, n) { - var i; - return __assign(__assign({}, e), (((i = {})[n] = t[n]), i)); - }, {}); - }), - (n.dive = function (t, e, i) { - for (var r in e) - if (e.hasOwnProperty(r)) { - var o = r, - a = e[r]; - t.length > 0 && (o = t + '.' + r), n.isObject(a) ? n.dive(o, a, i) : (i[o] = a); - } - }), - (n.isObject = function (t) { - var e = typeof t; - return 'function' === e || ('object' === e && !!t); - }), - (n.allKeys = function (t) { - if (!n.isObject(t)) return []; - var e = []; - for (var i in t) e.push(i); - return e; - }), - (n.encryptionString = function (t, e) { - for (var n = [], i = 0; i < t.length; i++) { - var r = t.charCodeAt(i) ^ e.charCodeAt(i % e.length); - n.push(String.fromCharCode(r)); - } - return n.join(''); - }), - (n.encryptionBytes = function (t, e) { - for (var n = new Uint8Array(t.length), i = 0; i < t.length; i++) - n[i] = t[i] ^ e.charCodeAt(i % e.length); - return n; - }), - (n.parseJwt = function (t) { - var e = t.replace(/-/g, '+').replace(/_/g, '/'), - n = decodeURIComponent( - window - .atob(e) - .split('') - .map(function (t) { - return '%' + ('00' + t.charCodeAt(0).toString(16)).slice(-2); - }) - .join(''), - ); - return JSON.parse(n); - }), - (n.calculateMeanTimeDeltasBetweenEvents = function (t) { - var e = 0; - if ((null === t || void 0 === t ? void 0 : t.length) > 1) { - for (var n = t[0].epochTs, i = 1; i < t.length; i++) - (e += t[i].epochTs - n), (n = t[i].epochTs); - e /= t.length - 1; - } - return e; - }), - (n.sortEventsByTimestamp = function (t) { - return t.sort(function (t, e) { - return t.eventTs > e.eventTs - ? 1 - : t.eventTs < e.eventTs - ? -1 - : t.epochTs > e.epochTs - ? 1 - : t.epochTs < e.epochTs - ? -1 - : 'click' === t.type - ? 1 - : -1; - }); - }), - (n.distanceBetweenPoints = function (t, e) { - return Math.sqrt(Math.pow(t.getX() - e.getX(), 2) + Math.pow(t.getY() - e.getY(), 2)); - }), - (n.calculateMeanDistanceBetweenPoints = function (t) { - var e = 0; - if ((null === t || void 0 === t ? void 0 : t.length) > 1) { - for (var i = 1; i < t.length; i++) e += n.distanceBetweenPoints(t[i - 1], t[i]); - e /= t.length - 1; - } - return e; - }), - (n.filterArrayByLength = function (t, e) { - return t.length <= e ? t : t.slice(0, e).concat(t[t.length - 1]); - }), - (n.keepFirstEventsWithDistance = function (t) { - var e = t.events, - n = t.threshold, - i = t.min, - r = t.max; - if (e.length <= i) return e; - var o, - a = e[0]; - for (o = 1; o < e.length && o < r; o++) { - if ( - Math.max(Math.abs(e[o].getX() - a.getX()), Math.abs(e[o].getY() - a.getY())) >= n - ) - break; - } - return e.slice(0, Math.max(o + 1, i)); - }), - (n.ab2str = function (t) { - return String.fromCharCode.apply(null, new Uint8Array(t)); - }), - (n.str2ab = function (t) { - for ( - var e = new ArrayBuffer(t.length), n = new Uint8Array(e), i = 0, r = t.length; - i < r; - i++ - ) - n[i] = t.charCodeAt(i); - return e; - }), - (n.encode = function (t) { - var e = JSON.stringify(t), - i = new TextEncoder().encode(e), - r = n.base64Uint8Array(i); - return n.base64url(r); - }), - (n.base64url = function (t) { - return t.replace(/\+/g, '-').replace(/\//g, '_').replace(/=+$/, ''); - }), - (n.hashCache = new Map()), - (n.keyStr = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='), - n - ); - })(); - e.Util = n; - })(t._POSignalsUtils || (t._POSignalsUtils = {})); - })(_POSignalsEntities || (_POSignalsEntities = {})); - (__awaiter = - (this && this.__awaiter) || - function (t, e, n, i) { - return new (n || (n = Promise))(function (r, o) { - function a(t) { - try { - u(i.next(t)); - } catch (t) { - o(t); - } - } - function s(t) { - try { - u(i.throw(t)); - } catch (t) { - o(t); - } - } - function u(t) { - var e; - t.done - ? r(t.value) - : ((e = t.value), - e instanceof n - ? e - : new n(function (t) { - t(e); - })).then(a, s); - } - u((i = i.apply(t, e || [])).next()); - }); - }), - (__generator = - (this && this.__generator) || - function (t, e) { - var n, - i, - r, - o, - a = { - label: 0, - sent: function () { - if (1 & r[0]) throw r[1]; - return r[1]; - }, - trys: [], - ops: [], - }; - return ( - (o = { next: s(0), throw: s(1), return: s(2) }), - 'function' == typeof Symbol && - (o[Symbol.iterator] = function () { - return this; - }), - o - ); - function s(o) { - return function (s) { - return (function (o) { - if (n) throw new TypeError('Generator is already executing.'); - for (; a; ) - try { - if ( - ((n = 1), - i && - (r = - 2 & o[0] - ? i.return - : o[0] - ? i.throw || ((r = i.return) && r.call(i), 0) - : i.next) && - !(r = r.call(i, o[1])).done) - ) - return r; - switch (((i = 0), r && (o = [2 & o[0], r.value]), o[0])) { - case 0: - case 1: - r = o; - break; - case 4: - return a.label++, { value: o[1], done: !1 }; - case 5: - a.label++, (i = o[1]), (o = [0]); - continue; - case 7: - (o = a.ops.pop()), a.trys.pop(); - continue; - default: - if ( - !(r = (r = a.trys).length > 0 && r[r.length - 1]) && - (6 === o[0] || 2 === o[0]) - ) { - a = 0; - continue; - } - if (3 === o[0] && (!r || (o[1] > r[0] && o[1] < r[3]))) { - a.label = o[1]; - break; - } - if (6 === o[0] && a.label < r[1]) { - (a.label = r[1]), (r = o); - break; - } - if (r && a.label < r[2]) { - (a.label = r[2]), a.ops.push(o); - break; - } - r[2] && a.ops.pop(), a.trys.pop(); - continue; - } - o = e.call(t, a); - } catch (t) { - (o = [6, t]), (i = 0); - } finally { - n = r = 0; - } - if (5 & o[0]) throw o[1]; - return { value: o[0] ? o[1] : void 0, done: !0 }; - })([o, s]); - }; - } - }); - !(function (t) { - var e = t.openDB; - !(function (t) { - var n = (function () { - function t() {} - return ( - (t.initDB = function () { - return __awaiter(this, void 0, void 0, function () { - var n, - i = this; - return __generator(this, function (r) { - if ( - !( - window.indexedDB || - window.mozIndexedDB || - window.webkitIndexedDB || - window.msIndexedDB - ) - ) - throw new Error('IndexedDB is not supported'); - return ( - (n = new t()), - [ - 2, - new Promise(function (r) { - return __awaiter(i, void 0, void 0, function () { - var i; - return __generator(this, function (o) { - switch (o.label) { - case 0: - return ( - (i = n), - [ - 4, - e(this._PingDBName, t._version, { - upgrade: function (e, n, i, r, o) { - e.createObjectStore(t._storeDefaultName); - }, - }), - ] - ); - case 1: - return (i.indexedDatabase = o.sent()), r(n), [2]; - } - }); - }); - }), - ] - ); - }); - }); - }), - (t.prototype.close = function () { - this.indexedDatabase.close(); - }), - (t.prototype.getValue = function (e) { - return this.indexedDatabase.get(t._storeDefaultName, e); - }), - (t.prototype.setValue = function (e, n) { - return this.indexedDatabase.put(t._storeDefaultName, n, e); - }), - (t._PingDBName = 'Ping'), - (t._version = 1), - (t._storeDefaultName = 'PING_ONE'), - t - ); - })(); - t.IndexedDBStorage = n; - })(t._POSignalsStorage || (t._POSignalsStorage = {})); - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function (t) { - !(function (e) { - var n = (function () { - function e(e, n) { - this.crossStorageClient = new t.CrossStorageClient(e, n); - } - return ( - (e.prototype.get = function (e) { - var n = t._POSignalsUtils.Util.hash(e); - return this.crossStorageClient.get(n); - }), - (e.prototype.del = function (e) { - return this.crossStorageClient.del(t._POSignalsUtils.Util.hash(e)); - }), - (e.prototype.set = function (e, n, i) { - return this.crossStorageClient.set(t._POSignalsUtils.Util.hash(e), n, i); - }), - (e.prototype.onConnect = function () { - return this.crossStorageClient.onConnect(); - }), - (e.prototype.close = function (t) { - return this.crossStorageClient.close(t); - }), - (e.prototype.getSignedPayload = function (t, e) { - return this.crossStorageClient.getSignedPayload(t, e); - }), - (e.prototype.getDeviceDetails = function (e) { - var n = t._POSignalsUtils.Util.hash(e); - return this.crossStorageClient.getDeviceDetails(n); - }), - (e.prototype.setDeviceDetails = function (e, n) { - var i = t._POSignalsUtils.Util.hash(e); - return this.crossStorageClient.setDeviceDetails(i, n); - }), - e - ); - })(); - e.CrossStorage = n; - var i = (function () { - function t(t) { - this.storage = t; - } - return ( - (t.prototype.get = function (t) { - return Promise.resolve(this.storage.getItem(t)); - }), - (t.prototype.del = function (t) { - return this.storage.removeItem(t), Promise.resolve(); - }), - (t.prototype.set = function (t, e) { - return this.storage.setItem(t, e), Promise.resolve(); - }), - (t.prototype.onConnect = function () { - return Promise.resolve(); - }), - (t.prototype.close = function (t) { - return Promise.resolve(); - }), - (t.prototype.getSignedPayload = function (t, e) { - return Promise.resolve([]); - }), - (t.prototype.getDeviceDetails = function (t) { - return Promise.resolve([]); - }), - (t.prototype.setDeviceDetails = function (t, e) { - return Promise.resolve([]); - }), - t - ); - })(); - e.CrossStorageFallback = i; - })(t._POSignalsStorage || (t._POSignalsStorage = {})); - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function (t) { - var e = (function () { - function e(t, e, n) { - (this.deviceId = t), (this.dbStorage = e), (this.cryptoHandler = n); - } - return ( - (e.prototype.getExportedPublicKey = function () { - return __awaiter(this, void 0, void 0, function () { - var e, n; - return __generator(this, function (i) { - switch (i.label) { - case 0: - return this.cachedPublicKey ? [3, 3] : [4, this.getDeviceKeys()]; - case 1: - return (e = i.sent()) - ? ((n = this), [4, this.cryptoHandler.exportPublicKey(e)]) - : [3, 3]; - case 2: - (n.cachedPublicKey = i.sent()), (i.label = 3); - case 3: - return ( - t._POSignalsUtils.Logger.info('Exported public key:', this.cachedPublicKey), - [2, this.cachedPublicKey] - ); - } - }); - }); - }), - (e.prototype.setDeviceKeys = function (t) { - return __awaiter(this, void 0, void 0, function () { - var e; - return __generator(this, function (n) { - switch (n.label) { - case 0: - return [4, this.dbStorage.setValue(this.deviceId, t)]; - case 1: - return (e = n.sent()), (this.cachedDeviceKey = t), [2, e]; - } - }); - }); - }), - (e.prototype.associateDeviceKeys = function () { - return __awaiter(this, void 0, void 0, function () { - var e; - return __generator(this, function (n) { - switch (n.label) { - case 0: - return [4, this.cryptoHandler.generateKeys()]; - case 1: - return ( - (e = n.sent()), - t._POSignalsUtils.Logger.info('Associating new device domain keys'), - [4, this.setDeviceKeys(e)] - ); - case 2: - return n.sent(), [2, e]; - } - }); - }); - }), - (e.prototype.getDeviceKeys = function () { - return __awaiter(this, void 0, void 0, function () { - var t; - return __generator(this, function (e) { - switch (e.label) { - case 0: - return this.cachedDeviceKey - ? [3, 2] - : ((t = this), [4, this.dbStorage.getValue(this.deviceId)]); - case 1: - (t.cachedDeviceKey = e.sent()), (e.label = 2); - case 2: - return [2, this.cachedDeviceKey]; - } - }); - }); - }), - (e.prototype.signDeviceAttributeWithJWT = function (t, n, i) { - return __awaiter(this, void 0, void 0, function () { - var r, o, a; - return __generator(this, function (s) { - switch (s.label) { - case 0: - return ( - (o = (r = this.cryptoHandler).signJWT), (a = [t]), [4, this.getDeviceKeys()] - ); - case 1: - return [4, o.apply(r, a.concat([s.sent(), e._default_salt, n, i]))]; - case 2: - return [2, s.sent()]; - } - }); - }); - }), - (e.prototype.verifyJWT = function (t) { - return __awaiter(this, void 0, void 0, function () { - var e, n, i; - return __generator(this, function (r) { - switch (r.label) { - case 0: - return ( - (n = (e = this.cryptoHandler).verifyJwtToken), - (i = [t]), - [4, this.getDeviceKeys()] - ); - case 1: - return [2, n.apply(e, i.concat([r.sent().publicKey]))]; - } - }); - }); - }), - (e._default_salt = 32), - e - ); - })(); - t.DeviceKeys = e; - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function (t) { - !(function (e) { - var n = (function () { - function n() { - (this._disabledStorage = []), - (this.assertionValues = [ - 'BROWSER_ENGINE_VERSION', - 'NAVIGATOR_LANGUAGE', - 'OS_NAME', - 'OS_VERSION', - 'NAVIGATOR_USER_AGENT', - 'FINGER_PRINT', - 'RESOLUTION', - 'PUSH_NOTIFICATIONS_SUPPORTED', - 'COOKIES_ENABLED', - 'IS_INCOGNITO', - 'IS_PRIVATE_MODE', - ]); - try { - window.sessionStorage.setItem('_st_storage_enabled_check', 'test'), - window.sessionStorage.removeItem('_st_storage_enabled_check'), - (this.signalsSessionStorage = window.sessionStorage); - } catch (n) { - t._POSignalsUtils.Logger.warn('session storage disabled'), - this._disabledStorage.push('sessionStorage'), - (this.signalsSessionStorage = new e.StorageFallback()); - } - try { - window.localStorage.setItem('_st_storage_enabled_check', 'test'), - window.localStorage.removeItem('_st_storage_enabled_check'), - (this.signalsLocalStorage = new e.StorageWrapper(window.localStorage)); - } catch (n) { - t._POSignalsUtils.Logger.warn('local storage disabled'), - this._disabledStorage.push('localStorage'), - (this.signalsLocalStorage = new e.StorageWrapper(new e.StorageFallback())), - (this.crossStorage = new e.CrossStorageFallback(this.signalsLocalStorage)); - } - } - return ( - (n.prototype.setStorageConfig = function (t) { - (this.disableHub = !0), - (this.hubUrl = ''), - (this.universalTrustEnabled = this.isConfigurationEnabled( - t.universalDeviceIdentification, - )), - (this.agentIdentificationEnabled = this.isConfigurationEnabled( - t.agentIdentification, - )), - (this.devEnv = t.devEnv), - (this.agentPort = t.agentPort), - (this.agentTimeout = t.agentTimeout), - (this.htmlGeoLocation = this.isConfigurationEnabled(t.htmlGeoLocation)), - (this.isIAFDetectionEnabled = this.isConfigurationEnabled(t.isIAFDetectionEnabled)); - }), - Object.defineProperty(n, 'instance', { - get: function () { - return n._instance || (n._instance = new n()), n._instance; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(n.prototype, 'tabUUID', { - get: function () { - var e = this.signalsSessionStorage.getItem( - t._POSignalsUtils.Constants.TAB_UUID_KEY, - ); - return ( - e || - ((e = t._POSignalsUtils.Util.newGuid()), - this.signalsSessionStorage.setItem( - t._POSignalsUtils.Constants.TAB_UUID_KEY, - e, - )), - e - ); - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(n.prototype, 'ops', { - get: function () { - var e = Number( - this.signalsSessionStorage.getItem(t._POSignalsUtils.Constants.OPS_KEY), - ); - return isNaN(e) ? null : e; - }, - set: function (e) { - e - ? this.signalsSessionStorage.setItem( - t._POSignalsUtils.Constants.OPS_KEY, - e.toString(), - ) - : this.signalsSessionStorage.removeItem(t._POSignalsUtils.Constants.OPS_KEY); - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(n.prototype, 'disabledStorage', { - get: function () { - return this._disabledStorage; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(n.prototype, 'sessionStorage', { - get: function () { - return this.signalsSessionStorage; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(n.prototype, 'localStorage', { - get: function () { - return this.signalsLocalStorage; - }, - enumerable: !1, - configurable: !0, - }), - (n.prototype.initDeviceIdentity = function () { - return __awaiter(this, void 0, void 0, function () { - var n, i, r, o; - return __generator(this, function (a) { - switch (a.label) { - case 0: - return ( - (i = this.signalsLocalStorage.getItem( - t._POSignalsUtils.Constants.DEVICE_ID_KEY, - )), - (r = this.signalsLocalStorage.getItem( - t._POSignalsUtils.Constants.DEVICE_ID_CREATED_AT, - )), - i && (this.cachedDeviceId = i), - this.universalTrustEnabled - ? ((this.deviceTrust = { attestation: {}, dtts: new Date().getTime() }), - (o = this), - [4, e.IndexedDBStorage.initDB()]) - : [3, 3] - ); - case 1: - return (o.indexedDBStorage = a.sent()), [4, this.loadLocalDeviceTrust()]; - case 2: - (n = a.sent()), (a.label = 3); - case 3: - return this.disableHub || (i && !this.shouldFallbackToP1Key(n)) - ? [3, 5] - : [4, this.fallbackToCrossStorage(this.hubUrl)]; - case 4: - return a.sent(), [3, 6]; - case 5: - (this.crossStorage = new e.CrossStorageFallback(this.signalsLocalStorage)), - (a.label = 6); - case 6: - return this.getDeviceId() - ? [3, 8] - : [4, this.associateDeviceDetails(this.disableHub)]; - case 7: - a.sent(), (a.label = 8); - case 8: - return ( - r || - this.signalsLocalStorage.setItem( - t._POSignalsUtils.Constants.DEVICE_ID_CREATED_AT, - Date.now(), - ), - !this.universalTrustEnabled || (this.getDeviceId() && n) - ? [3, 10] - : [4, this.createDomainKeys(this.disableHub)] - ); - case 9: - a.sent(), (a.label = 10); - case 10: - return [2, this.getDeviceId()]; - } - }); - }); - }), - (n.prototype.shouldFallbackToP1Key = function (t) { - return ( - this.universalTrustEnabled && - !this.disableHub && - (!t || this.isRefreshRequired(this.deviceKeyRsyncIntervals)) - ); - }), - (n.prototype.isRefreshRequired = function (e) { - if ((void 0 === e && (e = 3), !this.deviceTrust.dtts)) return !0; - var n = this.signalsLocalStorage.getItem( - t._POSignalsUtils.Constants.LAST_DEVICE_KEY_RESYNC, - ); - if (!n || isNaN(parseInt(n))) return !0; - var i = this.deviceTrust.dtts - n > 864e5 * e; - return i && t._POSignalsUtils.Logger.debug('Refresh required'), i; - }), - (n.prototype.loadLocalDeviceTrust = function () { - return __awaiter(this, void 0, void 0, function () { - var n, i; - return __generator(this, function (r) { - switch (r.label) { - case 0: - return ( - r.trys.push([0, 4, , 5]), - void 0, - this.cachedDeviceId - ? this.cachedDeviceId - ? ((this.domainDeviceKeys = new t.DeviceKeys( - this.getDeviceId(), - this.indexedDBStorage, - new t._POSignalsUtils.CryptoOperator(), - )), - [4, this.domainDeviceKeys.getDeviceKeys()]) - : [3, 3] - : (t._POSignalsUtils.Logger.debug( - 'No device id found on customer domain', - ), - [2, !1]) - ); - case 1: - return r.sent() - ? ((n = this.deviceTrust.attestation), - [4, this.domainDeviceKeys.getExportedPublicKey()]) - : (t._POSignalsUtils.Logger.debug( - 'No device keys found on customer domain', - ), - [2, !1]); - case 2: - return ( - (n.deviceKey = r.sent()), - (this.crossStorage = new e.CrossStorageFallback(this.signalsLocalStorage)), - [2, !0] - ); - case 3: - return [3, 5]; - case 4: - return ( - (i = r.sent()), - t._POSignalsUtils.Logger.error('Domain PKI initialization failed', i), - [2, !1] - ); - case 5: - return [2]; - } - }); - }); - }), - (n.prototype.createDomainKeys = function (e) { - return __awaiter(this, void 0, void 0, function () { - var n, i; - return __generator(this, function (r) { - switch (r.label) { - case 0: - return ( - r.trys.push([0, 3, , 4]), - !e && this._disabledStorage.lastIndexOf('hub') > -1 - ? (t._POSignalsUtils.Logger.debug( - 'Hub unavailable - skipping domain trust creation', - ), - [2]) - : ((this.domainDeviceKeys = new t.DeviceKeys( - this.getDeviceId(), - this.indexedDBStorage, - new t._POSignalsUtils.CryptoOperator(), - )), - [4, this.domainDeviceKeys.associateDeviceKeys()]) - ); - case 1: - return ( - r.sent(), - (n = this.deviceTrust.attestation), - [4, this.domainDeviceKeys.getExportedPublicKey()] - ); - case 2: - return (n.deviceKey = r.sent()), [3, 4]; - case 3: - return ( - (i = r.sent()), - t._POSignalsUtils.Logger.error('Domain PKI initialization failed', i), - [3, 4] - ); - case 4: - return [2]; - } - }); - }); - }), - (n.prototype.getDeviceId = function () { - return this.cachedDeviceId; - }), - (n.prototype.getDeviceCreatedAt = function () { - return this.signalsLocalStorage.getItem( - t._POSignalsUtils.Constants.DEVICE_ID_CREATED_AT, - ); - }), - (n.prototype.associateDeviceDetails = function (e) { - var n, i; - return __awaiter(this, void 0, void 0, function () { - var r; - return __generator(this, function (o) { - switch (o.label) { - case 0: - return ( - t._POSignalsUtils.Logger.debug('Associating fresh device details'), - (this.cachedDeviceId = 'Id-' + t._POSignalsUtils.Util.newGuid()), - this.signalsLocalStorage.setItem( - t._POSignalsUtils.Constants.DEVICE_ID_KEY, - this.cachedDeviceId, - ), - this.signalsLocalStorage.setItem( - t._POSignalsUtils.Constants.DEVICE_ID_CREATED_AT, - Date.now(), - ), - e - ? [3, 4] - : this.universalTrustEnabled - ? ((r = this.deviceTrust.attestation), - [ - 4, - this.crossStorage.setDeviceDetails( - t._POSignalsUtils.Constants.DEVICE_ID_KEY, - this.cachedDeviceId, - ), - ]) - : [3, 2] - ); - case 1: - return (r.fallbackDeviceKey = o.sent()[0]), [3, 4]; - case 2: - return [ - 4, - this.crossStorage.set( - t._POSignalsUtils.Constants.DEVICE_ID_KEY, - this.cachedDeviceId, - ), - ]; - case 3: - o.sent(), (o.label = 4); - case 4: - return ( - t._POSignalsUtils.Logger.debug( - 'PingOne Signals deviceId: ' + this.cachedDeviceId, - ), - [ - 2, - [ - this.cachedDeviceId, - null === - (i = - null === (n = this.deviceTrust) || void 0 === n - ? void 0 - : n.attestation) || void 0 === i - ? void 0 - : i.fallbackDeviceKey, - ], - ] - ); - } - }); - }); - }), - (n.prototype.closeTrustStore = function () { - try { - this.crossStorage.close(this.devEnv), - this.indexedDBStorage && this.indexedDBStorage.close(); - } catch (e) { - t._POSignalsUtils.Logger.info('Unable to close trust store:', e); - } - }), - (n.prototype.fallbackToCrossStorage = function (n) { - return __awaiter(this, void 0, void 0, function () { - var i; - return __generator(this, function (r) { - switch (r.label) { - case 0: - t._POSignalsUtils.Logger.debug( - 'PingOne Signals cross storage is required, initializing', - ), - (r.label = 1); - case 1: - return r.trys.push([1, 3, , 4]), [4, this.initCrossStorage(n)]; - case 2: - return ( - r.sent(), - t._POSignalsUtils.Logger.info('PingOne Signals cross storage initiated'), - [3, 4] - ); - case 3: - return ( - (i = r.sent()), - t._POSignalsUtils.Logger.warn( - 'PingOne Signals Session crossStorage failed to connect ' + i, - ), - this._disabledStorage.push('hub'), - (this.crossStorage = new e.CrossStorageFallback(this.signalsLocalStorage)), - [3, 4] - ); - case 4: - return [2]; - } - }); - }); - }), - (n.prototype.initCrossStorage = function (n) { - return __awaiter(this, void 0, void 0, function () { - var i, r, o, a, s; - return __generator(this, function (u) { - switch (u.label) { - case 0: - return ( - (i = this.universalTrustEnabled ? '1.0.7' : '1.0.1'), - (r = 'https://apps.pingone.com/signals/web-sdk/hub-' + i + '/hub.html'), - (o = ((null === n || void 0 === n ? void 0 : n.trim()) || r).replace( - /\/$/, - '', - )).endsWith('html') || (o += '/hub.html'), - (this.crossStorage = new e.CrossStorage(o, { timeout: 2e3 })), - [4, this.crossStorage.onConnect()] - ); - case 1: - return ( - u.sent(), - this.universalTrustEnabled - ? [ - 4, - this.crossStorage.getDeviceDetails( - t._POSignalsUtils.Constants.DEVICE_ID_KEY, - ), - ] - : [3, 3] - ); - case 2: - return (a = u.sent()), (this.cachedDeviceId = a[0]), [3, 5]; - case 3: - return ( - (s = this), - [4, this.crossStorage.get(t._POSignalsUtils.Constants.DEVICE_ID_KEY)] - ); - case 4: - (s.cachedDeviceId = u.sent()), (u.label = 5); - case 5: - return ( - this.cachedDeviceId - ? this.signalsLocalStorage.setItem( - t._POSignalsUtils.Constants.DEVICE_ID_KEY, - this.cachedDeviceId, - ) - : t._POSignalsUtils.Logger.info('no device id from hub'), - this.universalTrustEnabled && - (a && a[1] - ? ((this.deviceTrust.attestation.fallbackDeviceKey = a[1]), - t._POSignalsUtils.Logger.info( - 'Using fallback device keys from hub ' + - this.deviceTrust.attestation.fallbackDeviceKey, - )) - : t._POSignalsUtils.Logger.info('failed to use any device keys')), - [2] - ); - } - }); - }); - }), - (n.prototype.isConfigurationEnabled = function (t) { - return ( - void 0 !== t && - null !== t && - ('boolean' == typeof t ? t : 'string' == typeof t && 'true' === t.toLowerCase()) - ); - }), - (n.prototype.signJWTChallenge = function (t, e, n) { - return __awaiter(this, void 0, void 0, function () { - return __generator(this, function (i) { - return [2, this.domainDeviceKeys.signDeviceAttributeWithJWT(t, e, n)]; - }); - }); - }), - (n.prototype.getGeoSessionData = function () { - var e = this.signalsSessionStorage.getItem(t._POSignalsUtils.Constants.GeoDataKey); - return null === e || void 0 === e ? null : e; - }), - n - ); - })(); - e.SessionStorage = n; - })(t._POSignalsStorage || (t._POSignalsStorage = {})); - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function (t) { - !(function (e) { - var n = (function () { - function e(t) { - this.storage = t; - } - return ( - (e.prototype.getItem = function (e) { - var n = t._POSignalsUtils.Util.hash(e), - i = this.storage.getItem(n); - return ( - i || - ((i = this.storage.getItem(e)) && - (this.storage.setItem(n, i), this.storage.removeItem(e))), - i - ); - }), - (e.prototype.removeItem = function (e) { - return this.storage.removeItem(t._POSignalsUtils.Util.hash(e)); - }), - (e.prototype.setItem = function (e, n) { - return this.storage.setItem(t._POSignalsUtils.Util.hash(e), n); - }), - e - ); - })(); - e.StorageWrapper = n; - var i = (function () { - function t() { - this.internalStorageMap = new Map(); - } - return ( - (t.prototype.getItem = function (t) { - return this.internalStorageMap.get(t); - }), - (t.prototype.removeItem = function (t) { - this.internalStorageMap.delete(t); - }), - (t.prototype.setItem = function (t, e) { - this.internalStorageMap.set(t, e); - }), - t - ); - })(); - e.StorageFallback = i; - })(t._POSignalsStorage || (t._POSignalsStorage = {})); - })(_POSignalsEntities || (_POSignalsEntities = {})); - var _0x2a96a4 = _0x34d2; - !(function (t, e) { - for ( - var n = 1064, - i = 803, - r = 1147, - o = 748, - a = 753, - s = 720, - u = 1245, - c = _0x34d2, - l = _0x2ece(); - ; - - ) - try { - if ( - 328021 === - -parseInt(c(n)) / 1 + - -parseInt(c(715)) / 2 + - (-parseInt(c(1241)) / 3) * (-parseInt(c(652)) / 4) + - (-parseInt(c(868)) / 5) * (parseInt(c(i)) / 6) + - (parseInt(c(r)) / 7) * (-parseInt(c(o)) / 8) + - (-parseInt(c(a)) / 9) * (-parseInt(c(s)) / 10) + - -parseInt(c(u)) / 11 - ) - break; - l.push(l.shift()); - } catch (t) { - l.push(l.shift()); - } - })(); - (__assign = - (this && this[_0x2a96a4(642)]) || - function () { - var t = 601, - e = 816, - n = _0x2a96a4; - return (__assign = - Object[n(1188)] || - function (i) { - for (var r, o = n, a = 1, s = arguments[o(t)]; a < s; a++) - for (var u in (r = arguments[a])) Object[o(e)][o(1232)][o(675)](r, u) && (i[u] = r[u]); - return i; - })[n(1209)](this, arguments); - }), - (__awaiter = - (this && this[_0x2a96a4(864)]) || - function (t, e, n, i) { - var r = { _0x17e08c: 893 }; - return new (n || (n = Promise))(function (o, a) { - var s = _0x34d2; - function u(t) { - var e = _0x34d2; - try { - l(i[e(704)](t)); - } catch (t) { - a(t); - } - } - function c(t) { - try { - l(i.throw(t)); - } catch (t) { - a(t); - } - } - function l(t) { - var e, - i = _0x34d2; - t.done - ? o(t[i(809)]) - : ((e = t.value), - e instanceof n - ? e - : new n(function (t) { - t(e); - }))[i(r._0x17e08c)](u, c); - } - l((i = i[s(1209)](t, e || []))[s(704)]()); - }); - }), - (__generator = - (this && this.__generator) || - function (t, e) { - var n, - i, - r, - o, - a = { - _0x180a2e: 852, - _0x654500: 704, - _0x35e1a5: 675, - _0x2178ca: 968, - _0x1d2c43: 699, - _0x23a91f: 766, - _0x1a8942: 737, - _0x585542: 601, - _0x846770: 1161, - _0x35b40c: 737, - }, - s = _0x2a96a4, - u = { - label: 0, - sent: function () { - if (1 & r[0]) throw r[1]; - return r[1]; - }, - trys: [], - ops: [], - }; - return ( - (o = { next: c(0), throw: c(1), return: c(2) }), - typeof Symbol === s(974) && - (o[Symbol.iterator] = function () { - return this; - }), - o - ); - function c(o) { - return function (c) { - return (function (o) { - var c = s; - if (n) throw new TypeError('Generator is already executing.'); - for (; u; ) - try { - if ( - ((n = 1), - i && - (r = - 2 & o[0] - ? i.return - : o[0] - ? i[c(905)] || ((r = i[c(a._0x180a2e)]) && r.call(i), 0) - : i[c(a._0x654500)]) && - !(r = r[c(a._0x35e1a5)](i, o[1]))[c(805)]) - ) - return r; - switch (((i = 0), r && (o = [2 & o[0], r.value]), o[0])) { - case 0: - case 1: - r = o; - break; - case 4: - return u[c(a._0x2178ca)]++, { value: o[1], done: !1 }; - case 5: - u[c(968)]++, (i = o[1]), (o = [0]); - continue; - case 7: - (o = u[c(a._0x1d2c43)][c(a._0x23a91f)]()), u.trys[c(766)](); - continue; - default: - if ( - !(r = (r = u[c(a._0x1a8942)])[c(a._0x585542)] > 0 && r[r[c(601)] - 1]) && - (6 === o[0] || 2 === o[0]) - ) { - u = 0; - continue; - } - if (3 === o[0] && (!r || (o[1] > r[0] && o[1] < r[3]))) { - u[c(968)] = o[1]; - break; - } - if (6 === o[0] && u[c(968)] < r[1]) { - (u[c(a._0x2178ca)] = r[1]), (r = o); - break; - } - if (r && u[c(968)] < r[2]) { - (u.label = r[2]), u[c(699)][c(a._0x846770)](o); - break; - } - r[2] && u[c(a._0x1d2c43)].pop(), u[c(a._0x35b40c)].pop(); - continue; - } - o = e.call(t, u); - } catch (t) { - (o = [6, t]), (i = 0); - } finally { - n = r = 0; - } - if (5 & o[0]) throw o[1]; - return { value: o[0] ? o[1] : void 0, done: !0 }; - })([o, c]); - }; - } - }); - var __spreadArrays = - (this && this.__spreadArrays) || - function () { - for (var t = _0x2a96a4, e = 0, n = 0, i = arguments[t(601)]; n < i; n++) - e += arguments[n].length; - var r = Array(e), - o = 0; - for (n = 0; n < i; n++) - for (var a = arguments[n], s = 0, u = a[t(601)]; s < u; s++, o++) r[o] = a[s]; - return r; - }; - function _0x34d2(t, e) { - var n = _0x2ece(); - return (_0x34d2 = function (t, e) { - return n[(t -= 477)]; - })(t, e); - } - function _0x2ece() { - var t = [ - 'concat', - '_selenium', - 'WEBGLVENDORANDRENDERER', - 'serial', - 'result', - 'HAS_TOUCH', - 'Modernizr.on Failed with feature ', - 'srcdoc', - 'DEVICE_CATEGORY', - 'UNMASKED_VENDOR_WEBGL', - 'code', - ' failed', - 'localStorage', - 'page intentionally left blank', - 'broJsFingerprint', - 'find', - 'TypeError', - ' [native code]', - 'matchmedia', - 'IS_BOT', - 'serializedDeviceAttributes', - 'Geolocation retrieval failed: Location information is unavailable.', - 'floc', - 'LIES', - 'dateTimeLocale', - 'getWebglData', - 'isMobile', - 'DOCUMENT_ELEMENT_WEBDRIVER', - 'Metadata', - 'Other', - 'get', - 'Geolocation retrieval failed: Location permission denied by the user.', - 'HAS_SPEAKERS', - 'htmlGeoLocation_ErrorCode', - 'dataforseobot', - 'chrome_runtime_functions_invalid', - 'opera', - 'background-sync', - 'calculated workstation device attributes.', - 'permissions_api', - 'dataview', - '__webdriver_evaluate', - 'configurable', - 'NAVIGATOR_PRODUCT', - 'JS_CHALLENGE', - 'target', - 'label', - 'connect', - 'selenium_in_navigator', - 'failed to get headless results', - 'atanh', - 'customprotocolhandler', - 'function', - 'maxVertexAttribs', - 'systemLanguage', - 'message_channel', - 'BroprintJS', - 'matchMedia', - 'unknown', - 'browserInfo', - 'sessionData', - 'navigator.languages_blank', - 'getOwnPropertyNames', - 'batteryDischargingTime', - 'WEBGL_MAXCOMBINEDTEXTUREIMAGEUNITS', - 'hardwareConcurrency', - 'webdriverCommand', - 'OS_CPU', - 'message', - 'createInvisibleElement', - 'function () {', - '_WEBDRIVER_ELEM_CACHE', - 'geo_location', - 'NAVIGATOR_VIBRATE', - 'appendChild', - 'devicePixelRatio', - 'Ops : ', - 'heading', - 'Siemens', - 'localAgentJwt', - 'clipboard-read', - 'maxRenderbufferSize', - 'createDataChannel', - 'webGlStatus', - 'toLowerCase', - 'driver', - 'ie8compat', - 'cosh', - 'NAVIGATOR_POINTER_ENABLED', - 'Failed to add ', - 'DEVICE_MODEL', - 'isWebGl', - 'browserVersion', - 'getSerializedDeviceAttributes', - 'collectWebRtc', - 'Chrome', - 'permission', - 'webkitRTCPeerConnection', - '__webdriver_script_func', - 'function query() { [native code] }', - 'performance', - 'info', - 'href', - 'origin', - 'videoInputDevices', - 'Rotor', - 'http://127.0.0.1', - 'NAVIGATOR_LANGUAGES', - 'RTCPeerConnection', - 'fonts', - '_FAILED', - 'NuVision', - 'android', - 'metadataQueue', - 'shadingLanguageVersion', - 'Battery ', - 'keyboard', - 'MAX_VERTEX_UNIFORM_VECTORS', - 'productSub', - 'accessibility-events', - 'internationalization', - 'safeAddMetadata', - 'iphone', - 'detectIncognitoInternal', - 'isInvalidStackTraceSize', - 'video/mp4;; codecs = "avc1.42E01E"', - 'consistent_plugins_prototype', - 'propertyDescriptors', - 'opr', - 'reducedTransparency', - '__lastWatirAlert', - 'seleniumSequentum', - 'resolve', - 'getDevicePayload', - 'canPlayType', - 'PREFERS_COLOR_SCHEME', - 'diffbot', - 'detectChromium', - 'NAVIGATOR_WEB_DRIVER', - 'getParameter', - 'onupgradeneeded', - 'page_visibility', - '35866TVtBjV', - 'cookieStore', - 'hasEvent', - 'expm1', - 'custom_protocol_handler', - 'getAttribute', - 'ambient-light-sensor', - 'getAllLies', - 'email', - 'fingerPrintComponents', - 'onicecandidate', - 'pagevisibility', - 'NAVIGATOR_PLUGINS_LENGTH', - 'add', - 'lastCalculatedMetadata', - 'seleniumInNavigator', - 'NAVIGATOR_SERIAL_SUPPORTED', - 'duration', - 'ai2bot', - 'intl', - 'pow', - 'ACCELEROMETER_SUPPORTED', - 'matches', - 'rtt', - 'maxVertexTextureImageUnits', - 'HAS_CHROME_LOADTIMES', - 'signal', - 'kind', - 'NAVIGATOR_KEYBOARD_SUPPORTED', - 'selenium_in_window', - 'addStealthTest', - 'round', - "Geolocation permission state is '", - '_pingOneSignalsPingResult', - 'batteryInit', - 'iframeWindow', - 'height', - 'SCREEN_FRAME', - 'function toString() { [native code] }', - 'messagechannel', - 'closed', - 'WEBGL_MAXVARYINGVECTORS', - 'failed to add properties descriptor', - 'googleother-image', - 'seleniumInDocument', - 'videoCard', - 'HAS_MICROPHONE', - 'Essential', - 'experimental-webgl', - 'blob_constructor', - 'name', - 'OS_NAME', - 'SeleniumProperties', - 'hasMicrophone', - 'library', - 'proximity', - 'getFrequencyResponse', - 'createOffer', - 'Security error', - 'vendorFlavors', - 'AUDIO', - 'deviceId', - '__driver_unwrapped', - 'pointerevents', - 'AGENT_BASE_URL', - 'anthropic-ai', - 'Dell', - 'gamepads', - 'getHasLiedBrowser', - 'string', - '__lastWatirConfirm', - 'Battery not supported!', - 'NAVIGATOR_LANGUAGE', - 'scrapy', - 'promiseTimeout', - '__nightmare', - 'forEach', - 'iframe_window', - 'addPropertyDescriptorInfo', - 'function ', - 'calledSelenium', - 'random', - 'BLUTOOTH_SUPPORTED', - '49TVcSOF', - 'deviceMemory', - 'ipod', - 'clipboard-write', - 'BATTERY_LEVEL', - '() {', - 'MQ_SCREEN', - 'agentIdentificationEnabled', - 'unknown transient reason', - 'spawn', - 'persistent-storage', - 'navigator.plugins_empty', - 'getExtension', - 'flatAndAddMetadata', - 'push', - 'maxFragmentUniformVectors', - 'calculateDeviceMetadata', - 'getCurrentBrowserFingerPrint', - 'trustTokenOperationError', - 'blank page', - 'universalTrustEnabled', - 'you', - 'metadataBlackList', - 'battery', - 'MAX_COMBINED_TEXTURE_IMAGE_UNITS', - 'domBlockers', - 'getUndefinedValueLie', - 'fingerPrintComponentKeys', - 'Geolocation API is not supported by this browser.', - 'electron', - 'ligatures', - 'game_pads', - 'hasWebcam', - 'invertedColors', - 'set', - 'canvas', - 'engine', - 'WEBGL_MAXTEXTURESIZE', - 'mozRTCPeerConnection', - 'NAVIGATOR_USER_AGENT', - 'perplexitybot', - 'assign', - "' in browser '", - 'cookieEnabled', - 'quota detection failed: ', - 'interestCohort', - 'permissions_api_overriden', - 'webkitRequestFileSystem', - 'getLies', - 'openDatabase', - 'getFingerPrint', - 'memory', - 'browserMajor', - 'ZTE', - 'isBot', - 'debug', - 'WEBGL_VERSION', - 'fmget_targets', - 'stringify', - 'innerHeight', - '20030107', - 'statusText', - 'apply', - 'custom_event', - 'mediaplayer', - 'MAX_VERTEX_TEXTURE_IMAGE_UNITS', - 'addIframeData', - 'sessionStorage.length', - 'filename', - 'allSettled', - 'NOTIFICATION_PERMISSION', - 'tablet', - 'onLine', - 'enumerateDevices', - 'rad.io', - 'HAS_CHROME_APP', - 'documentElement', - 'enumerateDevicesEnabled', - 'calculated browser device attributes.', - 'applePay', - 'failed to get fingerprint info', - 'Brave', - 'longitude', - 'charging', - '__selenium_unwrapped', - 'hasOwnProperty', - 'document', - 'availHeight', - 'deleteDatabase', - 'coords', - 'lieTypes', - 'getWebglCanvas', - 'getOwnPropertyDescriptors', - 'indexeddbblob', - '462291Onrrdu', - 'stack', - 'iframe', - 'function get ', - '659461WYWsqS', - 'MEMORY_HEAP_SIZE_LIMIT', - 'chargingTime', - 'websockets', - 'DetectHeadless', - 'open', - 'speed', - 'Geolocation retrieval failed: Unknown geolocation error occurred.', - 'availWidth', - 'function () { [native code] }', - 'race', - 'NAVIGATOR_APP_VERSION', - 'cant', - 'all', - 'Windows', - 'PERMISSIONS', - 'data_view', - 'refreshDeviceAttributes', - 'DOCUMENT_ELEMENT_SELENIUM', - 'ondeviceproximity', - 'sin', - 'isBatterySupported', - 'indexeddb', - 'BLINK', - 'media', - 'query', - 'DOM_BLOCKERS', - 'CPU_ARCHITECTURE', - 'html', - 'getGeoSessionData', - 'numberOfAudioDevices', - 'Verizon', - 'NAVIGATOR_CONNECTION_RTT', - 'sent', - 'caller', - 'timpibot', - 'PromiseQueue', - 'INCOMPATIBLE_BROWSER', - 'audiooutput', - 'freeze', - 'NAVIGATOR_CLIENT_HINTS_PLATFORM', - 'referrer', - 'getRandomValues', - 'media_source', - 'Promise', - 'application/json', - 'type', - 'window_geb', - '__driver_evaluate', - 'IS_TOUCH_DEVICE', - 'getPermissionsMetadata', - 'isWebGlSupported', - 'agentPort', - 'batteryChargingTime', - 'queryselector', - 'exif_orientation', - 'plugins', - 'webdriver', - 'BROWSER_TYPE', - 'architecture', - 'RunPerfTest', - 'failed to add iframe data', - 'audioinput', - '__fxdriver_unwrapped', - 'youbot', - 'ccbot', - 'IS_AIBot', - 'failed to add client hints', - 'floc_version', - 'Volvo', - 'function get contentWindow() { [native code] }', - 'MAX_VERTEX_ATTRIBS', - 'htmlGeoLocation_timestamp', - 'WEB_RTC_SRFLX_IP', - 'latitude', - 'agentTimeout', - 'batteryCharging', - 'AiaSignals', - 'driver-evaluate', - 'history', - 'enumerateDevices() not supported.', - 'trim', - 'audio/aac', - 'getHeadlessResults', - 'Slack', - 'Yahoo! Japan', - 'DeviceOrientationEvent', - 'custom_elements', - '() { [native code] }', - 'getMediaCodec', - 'getOps', - 'browser', - 'isPrivateMode', - 'ambient_light', - 'HAS_CAMERA', - 'ignore', - 'force_touch', - 'remove', - 'tan', - 'cors', - 'substr', - 'googleother-video', - 'contentWindow', - 'BROWSER_ENGINE_NAME', - 'WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN', - 'getLineDash', - 'maxVaryingVectors', - 'omgilibot', - 'BROWSER_NAME', - 'createObjectStore', - 'browserName', - 'toUpperCase', - 'indexedDB', - 'NAVIGATOR_PLATFORM', - 'userLanguage', - 'FONT_PREFERENCES', - 'searchLies', - 'audioIntVideoInit', - 'webGlBasics', - 'disabledStorage', - 'externalIdentifiers', - 'webgl', - 'match', - '__$webdriverAsyncExecutor', - 'outerHeight', - 'numberOfVideoDevices', - 'onerror', - 'Voice', - 'HAS_CHROME_RUNTIME', - 'setTrustToken', - 'isAIBot', - 'Sequentum', - 'external', - 'gptbot', - 'error_code', - 'userAgentData', - 'callPhantom', - 'TIMEOUT', - 'GYROSCOPE_SUPPORTED', - 'Invalid geoData JSON in session storage:', - 'inIframe', - 'LOG2E', - 'Util', - 'Failed to get FingerPrint ', - 'window.chrome_missing', - 'enumerateDevices failed', - ' headless test was failed', - 'AGENT_DEVICE_URL', - 'callSelenium', - 'constructor', - 'getSupportedExtensions', - 'deviceType', - 'Notification', - 'cos', - 'Xq7tSbjB517mhZwt', - 'includes', - 'VIDEO_INPUT_DEVICES', - 'force_touch.webkit_force_at_mouse_down', - 'hide', - 'Geolocation retrieval failed: Location request timed out.', - 'maxCombinedTextureImageUnits', - 'RCA', - 'htmlGeoLocation_accuracy', - 'addClientHints', - 'htmlGeoLocation', - 'getPrototypeInFunctionLie', - 'acos', - 'MEMORY_USED_HEAP_SIZE', - 'getSensorsMetadata', - 'getIdentificationMetadata', - 'documentLie', - 'WEBGL_MAXFRAGMENTUNIFORMVECTORS', - 'cros', - 'hasSpeakers', - 'ondevicemotion', - 'Incognito', - 'pdfViewerEnabled', - 'PingOne Signals deviceId: ', - 'engineName', - 'host', - 'IS_WEB_GLSTATUS', - 'toString', - '__phantomas', - 'domAutomationController', - 'dataPoints', - 'put', - 'FingerPrint failed', - 'loadTimes', - 'batteryLevel', - 'accuracy', - 'HASLIEDLANGUAGES', - 'tanh', - 'Dragon Touch', - 'cbrt', - 'AUDIO_INPUT_DEVICES', - 'FINGER_PRINT', - 'detect', - 'vertical', - 'claude-web', - 'isElectronFamily', - 'crawler', - 'selenium-evaluate', - 'fingerprintTimeoutMillis', - 'GPS_SUPPORTED', - 'getDirectory', - 'aiaSignals', - 'languages', - 'request_animation_frame', - 'create', - 'components', - 'NextBook', - 'applebot', - 'getRTCPeerConnection', - 'failed to get lies results', - 'ARCHITECTURE', - 'Logger', - 'webglVersion', - 'length', - 'getAiaSignals', - 'horizontal', - '_Selenium_IDE_Recorder', - 'prompt', - 'filter', - 'geb', - 'webgl2', - 'htmlGeoLocation_longitude', - 'LvTel', - 'contrast', - 'failed to get deviceId info', - 'WEBGL_MAXRENDERBUFFERSIZE', - 'audioOutputDevices', - 'additionalMediaCodecs', - 'accelerometer', - 'pointerlock', - 'gyroscope', - 'MEDIA_CODEC_X_M4A', - 'setLocalDescription', - 'NAVIGATOR_DEVICE_MEMORY', - 'platform', - 'left', - 'service_worker', - 'microphone', - 'timestamp', - 'AT&T', - 'app', - 'toSource', - 'NAVIGATOR_PRESENTATION_SUPPORTED', - 'IS_MOBILE', - 'msMaxTouchPoints', - 'geolocation', - 'semrushbot-ocob', - 'denied', - 'metadataParams', - 'ChromeDriverw', - 'audioInputDevices', - 'version', - 'fingerPrint', - 'permissions', - '__assign', - 'isIAFDetectionEnabled', - 'lieTests', - 'msPointerEnabled', - 'deviceCreatedAt', - 'split', - 'iOS', - 'test', - '...', - 'IS_ELECTRON_FAMILY', - '4ciBhSC', - 'domAutomation', - 'createElement', - 'monochrome', - 'navigator', - 'context_menu', - '[[IsRevoked]]', - 'getIoMetadata', - 'getStealthResult', - 'visitorId', - 'Flip Player', - 'continue', - 'payment-handler', - 'AUDIO_FINGERPRINT', - 'fetcher', - 'MEDIA_CODEC_AAC', - 'SHADING_LANGUAGE_VERSION', - 'level', - 'contextmenu', - 'video', - 'getContext', - 'camera', - 'mimeTypes', - 'call', - 'connection', - 'colorGamut', - 'text', - 'getLocalAgentJwt', - 'facebookbot', - 'Envizen', - 'Failed to fetch the Workstation data. Request timed out after ', - 'cpuClass', - 'aiSignalsResult', - 'SDKBP_FINGERPRINT', - 'innerWidth', - 'sinh', - 'isFunction', - 'HASLIEDOS', - 'error', - 'safeModernizrOn', - 'forcedColors', - 'omgili', - 'notifications', - 'localAgentJwtRequestCount', - 'eventlistener', - 'getHasLiedOs', - 'ambientlight', - 'ops', - 'exec', - 'localAgentAccessor', - 'Error during detection of aiasignals:', - '__webdriver_script_fn', - 'next', - 'serviceworker', - 'appName', - '__fxdriver_evaluate', - 'isIphoneOrIPad', - '_POSignalsMetadata', - 'gpsSupported', - 'forcetouch', - 'osCpu', - 'mediaDevices', - 'trustToken', - '77962nplGEe', - 'isWebGl2', - 'indexOf', - 'maxTouchPoints', - 'full_screen', - '40tAfuey', - 'mac', - 'NAVIGATOR_APP_CODE_NAME', - 'WebGLMetadata', - 'htmlGeoLocation_ErrorMessage', - 'audioBaseLatency', - 'Neither WebGL 2.0 nor WebGL 1.0 is supported.', - 'undefined', - 'evaluateModernizr', - 'floc_id', - 'json', - 'MEMORY_TOTAL_HEAP_SIZE', - 'fingerprint', - 'DetectLies', - '[[Handler]]', - 'Linux', - 'Opera', - 'trys', - 'WEBGL2VENDORANDRENDERER', - 'arguments', - 'speechSynthesis', - 'htmlGeoLocation_heading', - 'trident', - 'FingerprintJS', - 'extensions', - 'body', - 'setItem', - '__proto__', - '167168BPQvBl', - 'index_chrome_too_high', - 'calculatedDevToolsOpen', - '__selenium_evaluate', - 'timezone', - '1278549CGIQXB', - 'win', - 'propertyBlackList', - 'getDeviceAttributes', - 'webkitTemporaryStorage', - 'Firefox', - 'log10', - 'audio/x-m4a', - 'hid', - 'webRtcUrl', - 'dart', - 'Function', - 'headlessTests', - 'pop', - 'googleother', - 'toFixed', - 'copyFromChannel', - 'LN2', - 'ipad', - 'stealth test ', - 'window_html_webdriver', - 'WEBKIT_FORCE_AT_MOUSE_DOWN', - 'SQRT2', - 'iframe.contentWindow', - 'webzio-extended', - 'ontouchstart', - 'screenResolution', - 'midi', - 'chrome', - 'MAX_FRAGMENT_UNIFORM_VECTORS', - 'join', - 'fullscreen', - 'meta-externalagent', - 'headlessResults', - 'Unknown', - '__webdriver_unwrapped', - 'oai-searchbot', - 'webdriver-evaluate-response', - 'pike', - 'delay', - 'jsHeapSizeLimit', - 'MEDIA_CODEC_', - 'getElementsByTagName', - 'downlinkMax', - 'failed ', - 'DetectStealth', - 'vendor', - 'RESOLUTION', - 'PERMISSION_DENIED', - 'candidate', - '36fvgLzH', - 'Windows Phone', - 'done', - 'msSaveBlob', - 'NAVIGATOR_CLIENT_HINTS_BRAND_', - 'usedJSHeapSize', - 'value', - 'GET', - 'MAX_RENDERBUFFER_SIZE', - 'deviceVendor', - 'getGeoLocationData', - 'product', - '_POSignalsUtils', - 'prototype', - 'HASLIEDBROWSER', - 'number', - 'cpuArchitecture', - 'UAParserHelperMetadata', - 'totalJSHeapSize', - 'linux', - 'window_RunPerfTest', - 'WEBGL_MAXVERTEXTEXTUREIMAGEUNITS', - 'isChromeFamily', - 'NAVIGATOR_VENDOR', - 'screen', - 'renderer', - 'getNewObjectToStringTypeErrorLie', - 'audio', - 'firefox', - 'RENDERER', - 'PingOne Signals deviceCreatedAt: ', - 'isCanvasSupported', - 'StackTraceTester', - 'dischargingTime', - 'vibrate', - 'POSITION_UNAVAILABLE', - 'Modernizr', - 'warn', - 'userAgent', - 'notification', - 'MediaSource', - 'getClientRects', - 'width', - 'NAVIGATOR_HARDWARE_CONCURRENCY', - 'browserType', - 'prefixed', - 'getOwnPropertyDescriptor', - 'BROWSER_VERSION', - 'brand', - 'return', - 'BROWSER_TAB_HISTORY_LENGTH', - 'cookiesEnabled', - 'HAS_CHROME_CSI', - 'IS_ACCEPT_COOKIES', - 'catch', - 'WEBGL_EXTENSIONS', - 'osVersion', - 'touchevents', - 'Safari', - 'navigator.webdriver_present', - 'colorDepth', - '__awaiter', - 'state', - 'getHasLiedResolution', - 'sendMessage', - '94375WvHsBB', - 'blobconstructor', - 'IS_WEBGL', - 'brands', - 'OPS', - 'Barnes & Noble', - 'emit', - 'getOwnPropertyLie', - 'window_fmget_targets', - 'WEBGL_MAXVERTEXATTRIBS', - 'dark', - 'mobile', - 'typedarrays', - 'MAX_VARYING_VECTORS', - 'keys', - 'storage', - 'typed_arrays', - 'BATTERY_DISCHARGING_TIME', - 'has', - 'NAVIGATOR_MAX_TOUCH_POINTS', - 'isPrivateModeV2', - 'getBattery', - 'engineVersion', - 'safari', - 'AbortError', - 'then', - 'osName', - 'Android', - 'PUSH_NOTIFICATIONS_SUPPORTED', - 'selenium_sequentum', - 'outerWidth', - 'slice', - 'getTime', - 'LIES.', - 'runtime', - 'abort', - 'cryptography', - 'throw', - 'cli', - 'quota_management', - 'WEB_RTC_ENABLED', - 'supported', - 'Internet Explorer', - 'NAVIGATOR_MIME_TYPES_LENGTH', - 'NETWORK_TYPE', - 'appVersion', - '_phantom', - 'Mac', - '__webdriver_script_function', - 'screenFrame', - 'hdr', - 'webRtcIps', - 'initDeviceIdentity', - 'sessionStorage', - ]; - return (_0x2ece = function () { - return t; - })(); - } - !(function (t) { - var e = 709, - n = 816, - i = 756, - r = 816, - o = 813, - a = 1262, - s = 750, - u = 1163, - c = 1098, - l = 816, - d = 596, - h = 816, - f = 1197, - g = 547, - p = 816, - v = 1295, - _ = 1334, - m = 659, - b = 816, - y = 1043, - E = 691, - w = 602, - S = _0x2a96a4; - !(function (e) { - var S = 900, - O = 1145, - I = 599, - T = 815, - A = 1043, - P = 886, - C = 526, - L = 991, - D = 929, - x = 745, - M = 996, - R = 1160, - U = 1185, - k = 1019, - N = 776, - B = 1019, - F = 981, - H = 708, - V = 982, - G = { - _0x43ccf4: 982, - _0x168bc9: 1125, - _0x999568: 646, - _0x356ce9: 572, - _0x986a95: 1321, - _0x215d28: 710, - _0x3a661b: 1174, - _0xb9732d: 1182, - _0x688888: 863, - _0x2f97f2: 611, - _0x5cfaa9: 854, - _0x41c264: 946, - _0x121c2f: 1148, - _0x5ce79b: 692, - _0x630a2e: 1180, - _0x52c419: 934, - _0xe785b8: 655, - _0x28bde2: 712, - _0x3be455: 1301, - _0x3b90b6: 917, - _0x51ad63: 921, - _0x5134e2: 502, - _0xb56e9: 1005, - _0x5a9bc0: 509, - _0x29b917: 1275, - _0xa2e74: 1026, - _0x4254d: 614, - _0x44f51a: 1078, - _0x19272b: 1035, - _0x257ce9: 1281, + }; + })(), + (function (c, h) { + 'use strict'; + var p = '2.0.2', + n = 500, + r = 'user-agent', + a = '', + s = '?', + i = 'function', + t = 'undefined', + e = 'object', + l = 'string', + o = 'browser', + x = 'cpu', + v = 'device', + y = 'engine', + L = 'os', + g = 'result', + E = 'name', + f = 'type', + m = 'vendor', + w = 'version', + S = 'architecture', + U = 'major', + T = 'model', + O = 'console', + C = 'mobile', + k = 'tablet', + R = 'smarttv', + H = 'wearable', + ee = 'xr', + M = 'embedded', + K = 'inapp', + Z = 'brands', + le = 'formFactors', + q = 'fullVersionList', + be = 'platform', + we = 'platformVersion', + He = 'bitness', + B = 'sec-ch-ua', + ne = B + '-full-version-list', + se = B + '-arch', + oe = B + '-' + He, + ge = B + '-form-factors', + De = B + '-' + C, + Te = B + '-' + T, + Fe = B + '-' + be, + Re = Fe + '-version', + Le = [Z, q, C, T, be, we, S, le, He], + Oe = 'Amazon', + Xe = 'Apple', + $e = 'ASUS', + pt = 'BlackBerry', + Qe = 'Google', + Ke = 'Huawei', + it = 'Lenovo', + _e = 'Honor', + Ge = 'LG', + Pe = 'Microsoft', + et = 'Motorola', + tt = 'Nvidia', + rt = 'OnePlus', + nt = 'OPPO', + Je = 'Samsung', + _ = 'Sharp', + W = 'Sony', + $ = 'Xiaomi', + j = 'Zebra', + ie = 'Chrome', + ae = 'Chromium', + ve = 'Chromecast', + Se = 'Edge', + d = 'Firefox', + F = 'Opera', + G = 'Facebook', + A = 'Sogou', + re = 'Mobile ', + de = ' Browser', + ce = 'Windows', + fe = typeof window !== t, + We = fe && window.navigator ? window.navigator : h, + ye = We && We.userAgentData ? We.userAgentData : h, + at = function (te, ue) { + var he = {}, + Ae = ue; + if (!st(ue)) { + Ae = {}; + for (var pe in ue) + for (var Ue in ue[pe]) Ae[Ue] = ue[pe][Ue].concat(Ae[Ue] ? Ae[Ue] : []); + } + for (var xe in te) + he[xe] = Ae[xe] && Ae[xe].length % 2 === 0 ? Ae[xe].concat(te[xe]) : te[xe]; + return he; + }, + mt = function (te) { + for (var ue = {}, he = 0; he < te.length; he++) ue[te[he].toUpperCase()] = te[he]; + return ue; + }, + xt = function (te, ue) { + if (typeof te === e && te.length > 0) { + for (var he in te) if (ct(te[he]) == ct(ue)) return !0; + return !1; + } + return ot(te) ? ct(ue).indexOf(ct(te)) !== -1 : !1; + }, + st = function (te, ue) { + for (var he in te) + return /^(browser|cpu|device|engine|os)$/.test(he) || (ue ? st(te[he]) : !1); + }, + ot = function (te) { + return typeof te === l; + }, + Ut = function (te) { + if (!te) return h; + for (var ue = [], he = vt(/\\?\"/g, te).split(','), Ae = 0; Ae < he.length; Ae++) + if (he[Ae].indexOf(';') > -1) { + var pe = _t(he[Ae]).split(';v='); + ue[Ae] = { brand: pe[0], version: pe[1] }; + } else ue[Ae] = _t(he[Ae]); + return ue; + }, + ct = function (te) { + return ot(te) ? te.toLowerCase() : te; + }, + kt = function (te) { + return ot(te) ? vt(/[^\d\.]/g, te).split('.')[0] : h; + }, + lt = function (te) { + for (var ue in te) { + var he = te[ue]; + typeof he == e && he.length == 2 ? (this[he[0]] = he[1]) : (this[he] = h); + } + return this; + }, + vt = function (te, ue) { + return ot(ue) ? ue.replace(te, a) : ue; + }, + wt = function (te) { + return vt(/\\?\"/g, te); + }, + _t = function (te, ue) { + if (ot(te)) return (te = vt(/^\s\s*/, te)), typeof ue === t ? te : te.substring(0, n); + }, + Nt = function (te, ue) { + if (!(!te || !ue)) + for (var he = 0, Ae, pe, Ue, xe, Ce, Ee; he < ue.length && !Ce; ) { + var Be = ue[he], + ut = ue[he + 1]; + for (Ae = pe = 0; Ae < Be.length && !Ce && Be[Ae]; ) + if (((Ce = Be[Ae++].exec(te)), Ce)) + for (Ue = 0; Ue < ut.length; Ue++) + (Ee = Ce[++pe]), + (xe = ut[Ue]), + typeof xe === e && xe.length > 0 + ? xe.length === 2 + ? typeof xe[1] == i + ? (this[xe[0]] = xe[1].call(this, Ee)) + : (this[xe[0]] = xe[1]) + : xe.length === 3 + ? typeof xe[1] === i && !(xe[1].exec && xe[1].test) + ? (this[xe[0]] = Ee ? xe[1].call(this, Ee, xe[2]) : h) + : (this[xe[0]] = Ee ? Ee.replace(xe[1], xe[2]) : h) + : xe.length === 4 && + (this[xe[0]] = Ee ? xe[3].call(this, Ee.replace(xe[1], xe[2])) : h) + : (this[xe] = Ee || h); + he += 2; + } + }, + ht = function (te, ue) { + for (var he in ue) + if (typeof ue[he] === e && ue[he].length > 0) { + for (var Ae = 0; Ae < ue[he].length; Ae++) + if (xt(ue[he][Ae], te)) return he === s ? h : he; + } else if (xt(ue[he], te)) return he === s ? h : he; + return ue.hasOwnProperty('*') ? ue['*'] : te; + }, + yt = { + ME: '4.90', + 'NT 3.11': 'NT3.51', + 'NT 4.0': 'NT4.0', + 2e3: 'NT 5.0', + XP: ['NT 5.1', 'NT 5.2'], + Vista: 'NT 6.0', + 7: 'NT 6.1', + 8: 'NT 6.2', + 8.1: 'NT 6.3', + 10: ['NT 6.4', 'NT 10.0'], + RT: 'ARM', + }, + Tt = { + embedded: 'Automotive', + mobile: 'Mobile', + tablet: ['Tablet', 'EInk'], + smarttv: 'TV', + wearable: 'Watch', + xr: ['VR', 'XR'], + '?': ['Desktop', 'Unknown'], + '*': h, + }, + Pt = { + browser: [ + [/\b(?:crmo|crios)\/([\w\.]+)/i], + [w, [E, re + 'Chrome']], + [/edg(?:e|ios|a)?\/([\w\.]+)/i], + [w, [E, 'Edge']], + [ + /(opera mini)\/([-\w\.]+)/i, + /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, + /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i, + ], + [E, w], + [/opios[\/ ]+([\w\.]+)/i], + [w, [E, F + ' Mini']], + [/\bop(?:rg)?x\/([\w\.]+)/i], + [w, [E, F + ' GX']], + [/\bopr\/([\w\.]+)/i], + [w, [E, F]], + [/\bb[a]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], + [w, [E, 'Baidu']], + [/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i], + [w, [E, 'Maxthon']], + [ + /(kindle)\/([\w\.]+)/i, + /(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i, + /(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i, + /(?:ms|\()(ie) ([\w\.]+)/i, + /(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i, + /(heytap|ovi|115)browser\/([\d\.]+)/i, + /(weibo)__([\d\.]+)/i, + ], + [E, w], + [/quark(?:pc)?\/([-\w\.]+)/i], + [w, [E, 'Quark']], + [/\bddg\/([\w\.]+)/i], + [w, [E, 'DuckDuckGo']], + [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], + [w, [E, 'UCBrowser']], + [ + /microm.+\bqbcore\/([\w\.]+)/i, + /\bqbcore\/([\w\.]+).+microm/i, + /micromessenger\/([\w\.]+)/i, + ], + [w, [E, 'WeChat']], + [/konqueror\/([\w\.]+)/i], + [w, [E, 'Konqueror']], + [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], + [w, [E, 'IE']], + [/ya(?:search)?browser\/([\w\.]+)/i], + [w, [E, 'Yandex']], + [/slbrowser\/([\w\.]+)/i], + [w, [E, 'Smart ' + it + de]], + [/(avast|avg)\/([\w\.]+)/i], + [[E, /(.+)/, '$1 Secure' + de], w], + [/\bfocus\/([\w\.]+)/i], + [w, [E, d + ' Focus']], + [/\bopt\/([\w\.]+)/i], + [w, [E, F + ' Touch']], + [/coc_coc\w+\/([\w\.]+)/i], + [w, [E, 'Coc Coc']], + [/dolfin\/([\w\.]+)/i], + [w, [E, 'Dolphin']], + [/coast\/([\w\.]+)/i], + [w, [E, F + ' Coast']], + [/miuibrowser\/([\w\.]+)/i], + [w, [E, 'MIUI' + de]], + [/fxios\/([\w\.-]+)/i], + [w, [E, re + d]], + [/\bqihoobrowser\/?([\w\.]*)/i], + [w, [E, '360']], + [/\b(qq)\/([\w\.]+)/i], + [[E, /(.+)/, '$1Browser'], w], + [/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i], + [[E, /(.+)/, '$1' + de], w], + [/samsungbrowser\/([\w\.]+)/i], + [w, [E, Je + ' Internet']], + [/metasr[\/ ]?([\d\.]+)/i], + [w, [E, A + ' Explorer']], + [/(sogou)mo\w+\/([\d\.]+)/i], + [[E, A + ' Mobile'], w], + [ + /(electron)\/([\w\.]+) safari/i, + /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, + /m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i, + ], + [E, w], + [/(lbbrowser|rekonq)/i], + [E], + [/ome\/([\w\.]+) \w* ?(iron) saf/i, /ome\/([\w\.]+).+qihu (360)[es]e/i], + [w, E], + [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], + [[E, G], w, [f, K]], + [ + /(Klarna)\/([\w\.]+)/i, + /(kakao(?:talk|story))[\/ ]([\w\.]+)/i, + /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, + /(daum)apps[\/ ]([\w\.]+)/i, + /safari (line)\/([\w\.]+)/i, + /\b(line)\/([\w\.]+)\/iab/i, + /(alipay)client\/([\w\.]+)/i, + /(twitter)(?:and| f.+e\/([\w\.]+))/i, + /(instagram|snapchat)[\/ ]([-\w\.]+)/i, + ], + [E, w, [f, K]], + [/\bgsa\/([\w\.]+) .*safari\//i], + [w, [E, 'GSA'], [f, K]], + [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], + [w, [E, 'TikTok'], [f, K]], + [/\[(linkedin)app\]/i], + [E, [f, K]], + [/(chromium)[\/ ]([-\w\.]+)/i], + [E, w], + [/headlesschrome(?:\/([\w\.]+)| )/i], + [w, [E, ie + ' Headless']], + [/ wv\).+(chrome)\/([\w\.]+)/i], + [[E, ie + ' WebView'], w], + [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], + [w, [E, 'Android' + de]], + [/chrome\/([\w\.]+) mobile/i], + [w, [E, re + 'Chrome']], + [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], + [E, w], + [/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i], + [w, [E, re + 'Safari']], + [/iphone .*mobile(?:\/\w+ | ?)safari/i], + [[E, re + 'Safari']], + [/version\/([\w\.\,]+) .*(safari)/i], + [w, E], + [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], + [E, [w, '1']], + [/(webkit|khtml)\/([\w\.]+)/i], + [E, w], + [/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i], + [[E, re + d], w], + [/(navigator|netscape\d?)\/([-\w\.]+)/i], + [[E, 'Netscape'], w], + [/(wolvic|librewolf)\/([\w\.]+)/i], + [E, w], + [/mobile vr; rv:([\w\.]+)\).+firefox/i], + [w, [E, d + ' Reality']], + [ + /ekiohf.+(flow)\/([\w\.]+)/i, + /(swiftfox)/i, + /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i, + /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, + /(firefox)\/([\w\.]+)/i, + /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, + /(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, + /\b(links) \(([\w\.]+)/i, + ], + [E, [w, /_/g, '.']], + [/(cobalt)\/([\w\.]+)/i], + [E, [w, /[^\d\.]+./, a]], + ], + cpu: [ + [/\b((amd|x|x86[-_]?|wow|win)64)\b/i], + [[S, 'amd64']], + [/(ia32(?=;))/i, /\b((i[346]|x)86)(pc)?\b/i], + [[S, 'ia32']], + [/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i], + [[S, 'arm64']], + [/\b(arm(v[67])?ht?n?[fl]p?)\b/i], + [[S, 'armhf']], + [/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i], + [[S, 'arm']], + [/((ppc|powerpc)(64)?)( mac|;|\))/i], + [[S, /ower/, a, ct]], + [/ sun4\w[;\)]/i], + [[S, 'sparc']], + [ + /\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i, + ], + [[S, ct]], + ], + device: [ + [/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], + [T, [m, Je], [f, k]], + [ + /\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, + /samsung[- ]((?!sm-[lr])[-\w]+)/i, + /sec-(sgh\w+)/i, + ], + [T, [m, Je], [f, C]], + [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], + [T, [m, Xe], [f, C]], + [ + /\((ipad);[-\w\),; ]+apple/i, + /applecoremedia\/[\w\.]+ \((ipad)/i, + /\b(ipad)\d\d?,\d\d?[;\]].+ios/i, + ], + [T, [m, Xe], [f, k]], + [/(macintosh);/i], + [T, [m, Xe]], + [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], + [T, [m, _], [f, C]], + [ + /\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i, + ], + [T, [m, _e], [f, k]], + [/honor([-\w ]+)[;\)]/i], + [T, [m, _e], [f, C]], + [ + /\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i, + ], + [T, [m, Ke], [f, k]], + [ + /(?:huawei)([-\w ]+)[;\)]/i, + /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i, + ], + [T, [m, Ke], [f, C]], + [ + /oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i, + /\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i, + ], + [ + [T, /_/g, ' '], + [m, $], + [f, k], + ], + [ + /\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i, + /\b; (\w+) build\/hm\1/i, + /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, + /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, + /oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i, + /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i, + / ([\w ]+) miui\/v?\d/i, + ], + [ + [T, /_/g, ' '], + [m, $], + [f, C], + ], + [ + /; (\w+) bui.+ oppo/i, + /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i, + ], + [T, [m, nt], [f, C]], + [/\b(opd2(\d{3}a?))(?: bui|\))/i], + [T, [m, ht, { OnePlus: ['304', '403', '203'], '*': nt }], [f, k]], + [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], + [T, [m, 'Vivo'], [f, C]], + [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], + [T, [m, 'Realme'], [f, C]], + [ + /\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, + /\bmot(?:orola)?[- ](\w*)/i, + /((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i, + ], + [T, [m, et], [f, C]], + [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], + [T, [m, et], [f, k]], + [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], + [T, [m, Ge], [f, k]], + [ + /(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, + /\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i, + /\blg-?([\d\w]+) bui/i, + ], + [T, [m, Ge], [f, C]], + [ + /(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i, + /lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i, + ], + [T, [m, it], [f, k]], + [/(nokia) (t[12][01])/i], + [m, T, [f, k]], + [/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i, /nokia[-_ ]?(([-\w\. ]*))/i], + [ + [T, /_/g, ' '], + [f, C], + [m, 'Nokia'], + ], + [/(pixel (c|tablet))\b/i], + [T, [m, Qe], [f, k]], + [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], + [T, [m, Qe], [f, C]], + [ + /droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i, + ], + [T, [m, W], [f, C]], + [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], + [ + [T, 'Xperia Tablet'], + [m, W], + [f, k], + ], + [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], + [T, [m, rt], [f, C]], + [ + /(alexa)webm/i, + /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, + /(kf[a-z]+)( bui|\)).+silk\//i, + ], + [T, [m, Oe], [f, k]], + [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], + [ + [T, /(.+)/g, 'Fire Phone $1'], + [m, Oe], + [f, C], + ], + [/(playbook);[-\w\),; ]+(rim)/i], + [T, m, [f, k]], + [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], + [T, [m, pt], [f, C]], + [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], + [T, [m, $e], [f, k]], + [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], + [T, [m, $e], [f, C]], + [/(nexus 9)/i], + [T, [m, 'HTC'], [f, k]], + [ + /(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, + /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, + /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i, + ], + [m, [T, /_/g, ' '], [f, C]], + [ + /tcl (xess p17aa)/i, + /droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i, + ], + [T, [m, 'TCL'], [f, k]], + [ + /droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i, + ], + [T, [m, 'TCL'], [f, C]], + [/(itel) ((\w+))/i], + [[m, ct], T, [f, ht, { tablet: ['p10001l', 'w7001'], '*': 'mobile' }]], + [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], + [T, [m, 'Acer'], [f, k]], + [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], + [T, [m, 'Meizu'], [f, C]], + [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], + [T, [m, 'Ulefone'], [f, C]], + [/; (energy ?\w+)(?: bui|\))/i, /; energizer ([\w ]+)(?: bui|\))/i], + [T, [m, 'Energizer'], [f, C]], + [/; cat (b35);/i, /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i], + [T, [m, 'Cat'], [f, C]], + [/((?:new )?andromax[\w- ]+)(?: bui|\))/i], + [T, [m, 'Smartfren'], [f, C]], + [/droid.+; (a(?:015|06[35]|142p?))/i], + [T, [m, 'Nothing'], [f, C]], + [/(imo) (tab \w+)/i, /(infinix) (x1101b?)/i], + [m, T, [f, k]], + [ + /(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i, + /; (hmd|imo) ([\w ]+?)(?: bui|\))/i, + /(hp) ([\w ]+\w)/i, + /(microsoft); (lumia[\w ]+)/i, + /(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i, + /(oppo) ?([\w ]+) bui/i, + ], + [m, T, [f, C]], + [ + /(kobo)\s(ereader|touch)/i, + /(archos) (gamepad2?)/i, + /(hp).+(touchpad(?!.+tablet)|tablet)/i, + /(kindle)\/([\w\.]+)/i, + ], + [m, T, [f, k]], + [/(surface duo)/i], + [T, [m, Pe], [f, k]], + [/droid [\d\.]+; (fp\du?)(?: b|\))/i], + [T, [m, 'Fairphone'], [f, C]], + [/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i], + [T, [m, tt], [f, k]], + [/(sprint) (\w+)/i], + [m, T, [f, C]], + [/(kin\.[onetw]{3})/i], + [ + [T, /\./g, ' '], + [m, Pe], + [f, C], + ], + [/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], + [T, [m, j], [f, k]], + [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], + [T, [m, j], [f, C]], + [/smart-tv.+(samsung)/i], + [m, [f, R]], + [/hbbtv.+maple;(\d+)/i], + [ + [T, /^/, 'SmartTV'], + [m, Je], + [f, R], + ], + [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], + [ + [m, Ge], + [f, R], + ], + [/(apple) ?tv/i], + [m, [T, Xe + ' TV'], [f, R]], + [/crkey.*devicetype\/chromecast/i], + [ + [T, ve + ' Third Generation'], + [m, Qe], + [f, R], + ], + [/crkey.*devicetype\/([^/]*)/i], + [ + [T, /^/, 'Chromecast '], + [m, Qe], + [f, R], + ], + [/fuchsia.*crkey/i], + [ + [T, ve + ' Nest Hub'], + [m, Qe], + [f, R], + ], + [/crkey/i], + [ + [T, ve], + [m, Qe], + [f, R], + ], + [/droid.+aft(\w+)( bui|\))/i], + [T, [m, Oe], [f, R]], + [/(shield \w+ tv)/i], + [T, [m, tt], [f, R]], + [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], + [T, [m, _], [f, R]], + [/(bravia[\w ]+)( bui|\))/i], + [T, [m, W], [f, R]], + [/(mi(tv|box)-?\w+) bui/i], + [T, [m, $], [f, R]], + [/Hbbtv.*(technisat) (.*);/i], + [m, T, [f, R]], + [ + /\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, + /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i, + ], + [ + [m, _t], + [T, _t], + [f, R], + ], + [/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i], + [T, [f, R]], + [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], + [[f, R]], + [/(ouya)/i, /(nintendo) (\w+)/i], + [m, T, [f, O]], + [/droid.+; (shield)( bui|\))/i], + [T, [m, tt], [f, O]], + [/(playstation \w+)/i], + [T, [m, W], [f, O]], + [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], + [T, [m, Pe], [f, O]], + [/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i], + [T, [m, Je], [f, H]], + [/((pebble))app/i, /(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i], + [m, T, [f, H]], + [/(ow(?:19|20)?we?[1-3]{1,3})/i], + [T, [m, nt], [f, H]], + [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], + [T, [m, Xe], [f, H]], + [/(opwwe\d{3})/i], + [T, [m, rt], [f, H]], + [/(moto 360)/i], + [T, [m, et], [f, H]], + [/(smartwatch 3)/i], + [T, [m, W], [f, H]], + [/(g watch r)/i], + [T, [m, Ge], [f, H]], + [/droid.+; (wt63?0{2,3})\)/i], + [T, [m, j], [f, H]], + [/droid.+; (glass) \d/i], + [T, [m, Qe], [f, ee]], + [/(pico) (4|neo3(?: link|pro)?)/i], + [m, T, [f, ee]], + [/; (quest( \d| pro)?)/i], + [T, [m, G], [f, ee]], + [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], + [m, [f, M]], + [/(aeobc)\b/i], + [T, [m, Oe], [f, M]], + [/(homepod).+mac os/i], + [T, [m, Xe], [f, M]], + [/windows iot/i], + [[f, M]], + [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+?(mobile|vr|\d) safari/i], + [T, [f, ht, { mobile: 'Mobile', xr: 'VR', '*': k }]], + [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], + [[f, k]], + [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], + [[f, C]], + [/droid .+?; ([\w\. -]+)( bui|\))/i], + [T, [m, 'Generic']], + ], + engine: [ + [/windows.+ edge\/([\w\.]+)/i], + [w, [E, Se + 'HTML']], + [/(arkweb)\/([\w\.]+)/i], + [E, w], + [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], + [w, [E, 'Blink']], + [ + /(presto)\/([\w\.]+)/i, + /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i, + /ekioh(flow)\/([\w\.]+)/i, + /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, + /(icab)[\/ ]([23]\.[\d\.]+)/i, + /\b(libweb)/i, + ], + [E, w], + [/ladybird\//i], + [[E, 'LibWeb']], + [/rv\:([\w\.]{1,9})\b.+(gecko)/i], + [w, E], + ], + os: [ + [/microsoft (windows) (vista|xp)/i], + [E, w], + [/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i], + [E, [w, ht, yt]], + [ + /windows nt 6\.2; (arm)/i, + /windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i, + /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i, + ], + [ + [w, ht, yt], + [E, ce], + ], + [ + /[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i, + /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, + /cfnetwork\/.+darwin/i, + ], + [ + [w, /_/g, '.'], + [E, 'iOS'], + ], + [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], + [ + [E, 'macOS'], + [w, /_/g, '.'], + ], + [/android ([\d\.]+).*crkey/i], + [w, [E, ve + ' Android']], + [/fuchsia.*crkey\/([\d\.]+)/i], + [w, [E, ve + ' Fuchsia']], + [/crkey\/([\d\.]+).*devicetype\/smartspeaker/i], + [w, [E, ve + ' SmartSpeaker']], + [/linux.*crkey\/([\d\.]+)/i], + [w, [E, ve + ' Linux']], + [/crkey\/([\d\.]+)/i], + [w, [E, ve]], + [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], + [w, E], + [/(ubuntu) ([\w\.]+) like android/i], + [[E, /(.+)/, '$1 Touch'], w], + [ + /(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i, + ], + [E, w], + [/\(bb(10);/i], + [w, [E, pt]], + [/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i], + [w, [E, 'Symbian']], + [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], + [w, [E, d + ' OS']], + [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], + [w, [E, 'webOS']], + [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], + [w, [E, 'watchOS']], + [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], + [[E, 'Chrome OS'], w], + [ + /panasonic;(viera)/i, + /(netrange)mmh/i, + /(nettv)\/(\d+\.[\w\.]+)/i, + /(nintendo|playstation) (\w+)/i, + /(xbox); +xbox ([^\);]+)/i, + /(pico) .+os([\w\.]+)/i, + /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, + /(mint)[\/\(\) ]?(\w*)/i, + /(mageia|vectorlinux)[; ]/i, + /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, + /(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i, + /(gnu) ?([\w\.]*)/i, + /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, + /(haiku) (\w+)/i, + ], + [E, w], + [/(sunos) ?([\w\.\d]*)/i], + [[E, 'Solaris'], w], + [ + /((?:open)?solaris)[-\/ ]?([\w\.]*)/i, + /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, + /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, + /(unix) ?([\w\.]*)/i, + ], + [E, w], + ], }, - j = (function () { - var n = 550, - j = 525, - W = 1067, - K = 1265, - z = 684, - Y = 1078, - X = 589, - q = 1023, - J = 676, - Z = 1160, - Q = 1160, - $ = 1146, - tt = 954, - et = 478, - nt = 1151, - it = 1160, - rt = 587, - ot = 927, - at = 979, - st = 1086, - ut = 878, - ct = 815, - lt = 948, - dt = 1117, - ht = 796, - ft = 1160, - gt = 851, - pt = 1232, - vt = 639, - _t = 1160, - mt = 807, - bt = 1085, - yt = 522, - Et = 778, - wt = 596, - St = 1326, - Ot = 1074, - It = 1004, - Tt = 1121, - At = 841, - Pt = 815, - Ct = 526, - Lt = _0x34d2; - function Dt(e, n, i, r) { - var o = _0x34d2; - (this[o(G._0x43ccf4)] = e), - (this[o(636)] = n), - (this.externalIdentifiers = i), - (this[o(701)] = r), - (this[o(G._0x168bc9)] = null), - (this[o(G._0x999568)] = null), - (this[o(1117)] = null), - (this[o(557)] = null), - (this[o(1179)] = null), - (this[o(1266)] = null), - (this[o(G._0x356ce9)] = null), - (this[o(G._0x986a95)] = null), - (this[o(1298)] = null), - (this[o(985)] = null), - (this.headlessTests = new Map()), - (this.lieTests = {}), - (this[o(G._0x215d28)] = null), - (this[o(G._0x3a661b)] = new Set([ - o(1226), - 'architecture', - o(830), - o(725), - o(G._0xb9732d), - o(G._0x688888), - o(677), - o(G._0x2f97f2), - o(G._0x5cfaa9), - o(683), - o(G._0x41c264), - o(G._0x121c2f), - o(1172), - 'fontPreferences', - o(1031), - o(G._0x5ce79b), - 'hardwareConcurrency', - o(918), - o(496), - o(G._0x630a2e), - o(590), - o(G._0x52c419), - o(G._0xe785b8), - 'openDatabase', - o(G._0x28bde2), - 'pdfViewerEnabled', - o(622), - o(G._0x3be455), - 'privateClickMeasurement', - 'reducedMotion', - o(1051), - o(G._0x3b90b6), - o(779), - o(G._0x51ad63), - o(752), - 'touchSupport', - o(799), - o(1123), - o(G._0x5134e2), - ])), - (this[o(G._0xb56e9)] = -1), - (this[o(G._0x5a9bc0)] = 0), - (this[o(G._0x29b917)] = 0), - (this[o(G._0xa2e74)] = []), - (this.audioInputDevices = []), - (this[o(G._0x4254d)] = []), - (this[o(919)] = new Map()), - (this[o(G._0x44f51a)] = null), - (this[o(1001)] = null), - (this[o(695)] = 0), - (this[o(G._0x19272b)] = new t[o(G._0x257ce9)](1)), - (this[o(942)] = null), - (this[o(684)] = null); + Et = (function () { + var te = { init: {}, isIgnore: {}, isIgnoreRgx: {}, toString: {} }; + return ( + lt.call(te.init, [ + [o, [E, w, U, f]], + [x, [S]], + [v, [f, T, m]], + [y, [E, w]], + [L, [E, w]], + ]), + lt.call(te.isIgnore, [ + [o, [w, U]], + [y, [w]], + [L, [w]], + ]), + lt.call(te.isIgnoreRgx, [ + [o, / ?browser$/i], + [L, / ?os$/i], + ]), + lt.call(te.toString, [ + [o, [E, w]], + [x, [S]], + [v, [m, T]], + [y, [E, w]], + [L, [E, w]], + ]), + te + ); + })(), + Vt = function (te, ue) { + var he = Et.init[ue], + Ae = Et.isIgnore[ue] || 0, + pe = Et.isIgnoreRgx[ue] || 0, + Ue = Et.toString[ue] || 0; + function xe() { + lt.call(this, he); } return ( - Object.defineProperty(Dt[Lt(816)], Lt(872), { - get: function () { - var t = Lt; - if (!this.metadataParams[t(F)][t(H)]) return 0; - var e = this[t(982)][t(699)]; - return !e && ((e = this.getOps()), (this[t(V)].ops = e)), e; - }, - enumerable: !1, - configurable: !0, + (xe.prototype.getItem = function () { + return te; }), - (Dt[Lt(816)][Lt(i)] = function () { - var e = 1035; - return __awaiter(this, void 0, void 0, function () { - var n = this; - return __generator(this, function (i) { - return [ - 2, - this[_0x34d2(e)].add(function () { - var e = 968, - i = 1163, - r = 1023, - o = 1225, - a = 599, - s = 1023, - u = 833, - c = 646, - l = 968, - d = 601, - h = 818, - f = 1324, - g = 601, - p = 548, - v = 813, - _ = 643, - m = 602, - b = 1167, - y = 942, - E = 1078; - return __awaiter(n, void 0, void 0, function () { - var n, w; - return __generator(this, function (S) { - var O = _0x34d2; - switch (S[O(e)]) { - case 0: - return this.lastCalculatedMetadata - ? [3, 2] - : ((n = this), [4, this[O(i)]()]); - case 1: - (n.lastCalculatedMetadata = S[O(1278)]()), - t._POSignalsUtils.Logger[O(r)](O(o)), - t[O(815)][O(a)][O(s)](O(561) + this[O(1125)]), - t[O(815)].Logger[O(1023)](O(u) + this[O(c)]), - this[O(982)].closeTrustStore(), - (S[O(l)] = 2); - case 2: - return ( - (w = - typeof window !== O(727) && - window[O(1324)] && - typeof window[O(1324)][O(d)] === O(h) - ? window[O(f)][O(g)] - : null), - this[O(1078)] && (this[O(1078)][O(853)] = w), - this.sessionData && this[O(982)][O(p)] ? [4, this[O(v)]()] : [3, 4] - ); - case 3: - S[O(1278)](), (S.label = 4); - case 4: - return [4, this.refreshDeviceAttributes()]; - case 5: - return ( - S.sent(), - this.sessionData && this[O(982)][O(_)] && this[O(m)](), - this[O(982)][O(b)] && (this[O(y)] = JSON.stringify(this[O(E)])), - [2, this.lastCalculatedMetadata] - ); - } - }); - }); - }), - ]; - }); + (xe.prototype.withClientHints = function () { + return ye + ? ye.getHighEntropyValues(Le).then(function (Ce) { + return te.setCH(new Lt(Ce, !1)).parseCH().get(); + }) + : te.parseCH().get(); + }), + (xe.prototype.withFeatureCheck = function () { + return te.detectFeature().get(); + }), + ue != g && + ((xe.prototype.is = function (Ce) { + var Ee = !1; + for (var Be in this) + if ( + this.hasOwnProperty(Be) && + !xt(Ae, Be) && + ct(pe ? vt(pe, this[Be]) : this[Be]) == ct(pe ? vt(pe, Ce) : Ce) + ) { + if (((Ee = !0), Ce != t)) break; + } else if (Ce == t && Ee) { + Ee = !Ee; + break; + } + return Ee; + }), + (xe.prototype.toString = function () { + var Ce = a; + for (var Ee in Ue) + typeof this[Ue[Ee]] !== t && (Ce += (Ce ? ' ' : a) + this[Ue[Ee]]); + return Ce || t; + })), + ye || + (xe.prototype.then = function (Ce) { + var Ee = this, + Be = function () { + for (var ft in Ee) Ee.hasOwnProperty(ft) && (this[ft] = Ee[ft]); + }; + Be.prototype = { is: xe.prototype.is, toString: xe.prototype.toString }; + var ut = new Be(); + return Ce(ut), ut; + }), + new xe() + ); + }; + function Lt(te, ue) { + if (((te = te || {}), lt.call(this, Le), ue)) + lt.call(this, [ + [Z, Ut(te[B])], + [q, Ut(te[ne])], + [C, /\?1/.test(te[De])], + [T, wt(te[Te])], + [be, wt(te[Fe])], + [we, wt(te[Re])], + [S, wt(te[se])], + [le, Ut(te[ge])], + [He, wt(te[oe])], + ]); + else + for (var he in te) this.hasOwnProperty(he) && typeof te[he] !== t && (this[he] = te[he]); + } + function Ct(te, ue, he, Ae) { + return ( + (this.get = function (pe) { + return pe ? (this.data.hasOwnProperty(pe) ? this.data[pe] : h) : this.data; + }), + (this.set = function (pe, Ue) { + return (this.data[pe] = Ue), this; + }), + (this.setCH = function (pe) { + return (this.uaCH = pe), this; + }), + (this.detectFeature = function () { + if (We && We.userAgent == this.ua) + switch (this.itemType) { + case o: + We.brave && typeof We.brave.isBrave == i && this.set(E, 'Brave'); + break; + case v: + !this.get(f) && ye && ye[C] && this.set(f, C), + this.get(T) == 'Macintosh' && + We && + typeof We.standalone !== t && + We.maxTouchPoints && + We.maxTouchPoints > 2 && + this.set(T, 'iPad').set(f, k); + break; + case L: + !this.get(E) && ye && ye[be] && this.set(E, ye[be]); + break; + case g: + var pe = this.data, + Ue = function (xe) { + return pe[xe].getItem().detectFeature().get(); + }; + this.set(o, Ue(o)).set(x, Ue(x)).set(v, Ue(v)).set(y, Ue(y)).set(L, Ue(L)); + } + return this; + }), + (this.parseUA = function () { + return ( + this.itemType != g && Nt.call(this.data, this.ua, this.rgxMap), + this.itemType == o && this.set(U, kt(this.get(w))), + this + ); + }), + (this.parseCH = function () { + var pe = this.uaCH, + Ue = this.rgxMap; + switch (this.itemType) { + case o: + case y: + var xe = pe[q] || pe[Z], + Ce; + if (xe) + for (var Ee in xe) { + var Be = xe[Ee].brand || xe[Ee], + ut = xe[Ee].version; + this.itemType == o && + !/not.a.brand/i.test(Be) && + (!Ce || (/chrom/i.test(Ce) && Be != ae)) && + ((Be = ht(Be, { + Chrome: 'Google Chrome', + Edge: 'Microsoft Edge', + 'Chrome WebView': 'Android WebView', + 'Chrome Headless': 'HeadlessChrome', + })), + this.set(E, Be).set(w, ut).set(U, kt(ut)), + (Ce = Be)), + this.itemType == y && Be == ae && this.set(w, ut); + } + break; + case x: + var ft = pe[S]; + ft && (ft && pe[He] == '64' && (ft += '64'), Nt.call(this.data, ft + ';', Ue)); + break; + case v: + if ( + (pe[C] && this.set(f, C), + pe[T] && (this.set(T, pe[T]), !this.get(f) || !this.get(m))) + ) { + var St = {}; + Nt.call(St, 'droid 9; ' + pe[T] + ')', Ue), + !this.get(f) && St.type && this.set(f, St.type), + !this.get(m) && St.vendor && this.set(m, St.vendor); + } + if (pe[le]) { + var Dt; + if (typeof pe[le] != 'string') + for (var Bt = 0; !Dt && Bt < pe[le].length; ) Dt = ht(pe[le][Bt++], Tt); + else Dt = ht(pe[le], Tt); + this.set(f, Dt); + } + break; + case L: + var Ot = pe[be]; + if (Ot) { + var Ft = pe[we]; + Ot == ce && (Ft = parseInt(kt(Ft), 10) >= 13 ? '11' : '10'), + this.set(E, Ot).set(w, Ft); + } + this.get(E) == ce && pe[T] == 'Xbox' && this.set(E, 'Xbox').set(w, h); + break; + case g: + var Gt = this.data, + It = function (Ht) { + return Gt[Ht].getItem().setCH(pe).parseCH().get(); + }; + this.set(o, It(o)).set(x, It(x)).set(v, It(v)).set(y, It(y)).set(L, It(L)); + } + return this; + }), + lt.call(this, [ + ['itemType', te], + ['ua', ue], + ['uaCH', Ae], + ['rgxMap', he], + ['data', Vt(this, te)], + ]), + this + ); + } + function dt(te, ue, he) { + if ( + (typeof te === e + ? (st(te, !0) ? (typeof ue === e && (he = ue), (ue = te)) : ((he = te), (ue = h)), + (te = h)) + : typeof te === l && !st(ue, !0) && ((he = ue), (ue = h)), + he && typeof he.append === i) + ) { + var Ae = {}; + he.forEach(function (Ee, Be) { + Ae[Be] = Ee; + }), + (he = Ae); + } + if (!(this instanceof dt)) return new dt(te, ue, he).getResult(); + var pe = typeof te === l ? te : he && he[r] ? he[r] : We && We.userAgent ? We.userAgent : a, + Ue = new Lt(he, !0), + xe = ue ? at(Pt, ue) : Pt, + Ce = function (Ee) { + return Ee == g + ? function () { + return new Ct(Ee, pe, xe, Ue) + .set('ua', pe) + .set(o, this.getBrowser()) + .set(x, this.getCPU()) + .set(v, this.getDevice()) + .set(y, this.getEngine()) + .set(L, this.getOS()) + .get(); + } + : function () { + return new Ct(Ee, pe, xe[Ee], Ue).parseUA().get(); + }; + }; + return ( + lt + .call(this, [ + ['getBrowser', Ce(o)], + ['getCPU', Ce(x)], + ['getDevice', Ce(v)], + ['getEngine', Ce(y)], + ['getOS', Ce(L)], + ['getResult', Ce(g)], + [ + 'getUA', + function () { + return pe; + }, + ], + [ + 'setUA', + function (Ee) { + return ot(Ee) && (pe = Ee.length > n ? _t(Ee, n) : Ee), this; + }, + ], + ]) + .setUA(pe), + this + ); + } + (dt.VERSION = p), + (dt.BROWSER = mt([E, w, U, f])), + (dt.CPU = mt([S])), + (dt.DEVICE = mt([T, m, f, O, C, R, k, H, M])), + (dt.ENGINE = dt.OS = mt([E, w])), + (c.UAParser = dt); + })(_POSignalsEntities || (_POSignalsEntities = {})), + ((_POSignalsEntities || (_POSignalsEntities = {})).evaluateModernizr = function () { + (function (c, h, p, n) { + function r(B, ne) { + return typeof B === ne; + } + function a() { + return typeof p.createElement != 'function' + ? p.createElement(arguments[0]) + : T + ? p.createElementNS.call(p, 'http://www.w3.org/2000/svg', arguments[0]) + : p.createElement.apply(p, arguments); + } + function s(B, ne) { + return !!~('' + B).indexOf(ne); + } + function i() { + var B = p.body; + return B || ((B = a(T ? 'svg' : 'body')), (B.fake = !0)), B; + } + function t(B, ne, se, oe) { + var ge, + De, + Te, + Fe, + Re = 'modernizr', + Le = a('div'), + Oe = i(); + if (parseInt(se, 10)) + for (; se--; ) + (Te = a('div')), (Te.id = oe ? oe[se] : Re + (se + 1)), Le.appendChild(Te); + return ( + (ge = a('style')), + (ge.type = 'text/css'), + (ge.id = 's' + Re), + (Oe.fake ? Oe : Le).appendChild(ge), + Oe.appendChild(Le), + ge.styleSheet ? (ge.styleSheet.cssText = B) : ge.appendChild(p.createTextNode(B)), + (Le.id = Re), + Oe.fake && + ((Oe.style.background = ''), + (Oe.style.overflow = 'hidden'), + (Fe = U.style.overflow), + (U.style.overflow = 'hidden'), + U.appendChild(Oe)), + (De = ne(Le, B)), + Oe.fake && Oe.parentNode + ? (Oe.parentNode.removeChild(Oe), (U.style.overflow = Fe), U.offsetHeight) + : Le.parentNode.removeChild(Le), + !!De + ); + } + function e(B) { + return B.replace(/([A-Z])/g, function (ne, se) { + return '-' + se.toLowerCase(); + }).replace(/^ms-/, '-ms-'); + } + function l(B, ne, se) { + var oe; + if ('getComputedStyle' in h) { + oe = getComputedStyle.call(h, B, ne); + var ge = h.console; + if (oe !== null) se && (oe = oe.getPropertyValue(se)); + else if (ge) { + var De = ge.error ? 'error' : 'log'; + ge[De].call( + ge, + 'getComputedStyle returning null, its possible modernizr test results are inaccurate', + ); + } + } else oe = !ne && B.currentStyle && B.currentStyle[se]; + return oe; + } + function o(B, ne) { + var se = B.length; + if (h && h.CSS && 'supports' in h.CSS) { + for (; se--; ) if (h.CSS.supports(e(B[se]), ne)) return !0; + return !1; + } + if ('CSSSupportsRule' in h) { + for (var oe = []; se--; ) oe.push('(' + e(B[se]) + ':' + ne + ')'); + return ( + (oe = oe.join(' or ')), + t('@supports (' + oe + ') { #modernizr { position: absolute; } }', function (ge) { + return l(ge, null, 'position') === 'absolute'; + }) + ); + } + return n; + } + function x(B) { + return B.replace(/([a-z])-([a-z])/g, function (ne, se, oe) { + return se + oe.toUpperCase(); + }).replace(/^-/, ''); + } + function v(B, ne, se, oe) { + function ge() { + Te && (delete H.style, delete H.modElem); + } + if (((oe = !r(oe, 'undefined') && oe), !r(se, 'undefined'))) { + var De = o(B, se); + if (!r(De, 'undefined')) return De; + } + for (var Te, Fe, Re, Le, Oe, Xe = ['modernizr', 'tspan', 'samp']; !H.style && Xe.length; ) + (Te = !0), (H.modElem = a(Xe.shift())), (H.style = H.modElem.style); + for (Re = B.length, Fe = 0; Fe < Re; Fe++) + if (((Le = B[Fe]), (Oe = H.style[Le]), s(Le, '-') && (Le = x(Le)), H.style[Le] !== n)) { + if (oe || r(se, 'undefined')) return ge(), ne !== 'pfx' || Le; + try { + H.style[Le] = se; + } catch {} + if (H.style[Le] !== Oe) return ge(), ne !== 'pfx' || Le; + } + return ge(), !1; + } + function y(B, ne) { + return function () { + return B.apply(ne, arguments); + }; + } + function L(B, ne, se) { + var oe; + for (var ge in B) + if (B[ge] in ne) + return se === !1 + ? B[ge] + : ((oe = ne[B[ge]]), r(oe, 'function') ? y(oe, se || ne) : oe); + return !1; + } + function g(B, ne, se, oe, ge) { + var De = B.charAt(0).toUpperCase() + B.slice(1), + Te = (B + ' ' + k.join(De + ' ') + De).split(' '); + return r(ne, 'string') || r(ne, 'undefined') + ? v(Te, ne, oe, ge) + : ((Te = (B + ' ' + ee.join(De + ' ') + De).split(' ')), L(Te, ne, se)); + } + function E(B, ne, se) { + return g(B, n, n, ne, se); + } + var f = [], + m = { + _version: '3.13.0', + _config: { classPrefix: '', enableClasses: !0, enableJSClass: !0, usePrefixes: !0 }, + _q: [], + on: function (B, ne) { + var se = this; + setTimeout(function () { + ne(se[B]); + }, 0); + }, + addTest: function (B, ne, se) { + f.push({ name: B, fn: ne, options: se }); + }, + addAsyncTest: function (B) { + f.push({ name: null, fn: B }); + }, + }, + w = function () {}; + (w.prototype = m), (w = new w()); + var S = [], + U = p.documentElement, + T = U.nodeName.toLowerCase() === 'svg', + O = (function () { + function B(se, oe) { + var ge; + return ( + !!se && + ((oe && typeof oe != 'string') || (oe = a(oe || 'div')), + (se = 'on' + se), + (ge = se in oe), + !ge && + ne && + (oe.setAttribute || (oe = a('div')), + oe.setAttribute(se, ''), + (ge = typeof oe[se] == 'function'), + oe[se] !== n && (oe[se] = n), + oe.removeAttribute(se)), + ge) + ); + } + var ne = !('onblur' in U); + return B; + })(); + (m.hasEvent = O), + w.addTest('ambientlight', O('devicelight', h)), + w.addTest('applicationcache', 'applicationCache' in h), + (function () { + var B = a('audio'); + w.addTest('audio', function () { + var ne = !1; + try { + (ne = !!B.canPlayType), ne && (ne = new Boolean(ne)); + } catch {} + return ne; + }); + try { + B.canPlayType && + (w.addTest( + 'audio.ogg', + B.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/, ''), + ), + w.addTest( + 'audio.mp3', + B.canPlayType('audio/mpeg; codecs="mp3"').replace(/^no$/, ''), + ), + w.addTest( + 'audio.opus', + B.canPlayType('audio/ogg; codecs="opus"') || + B.canPlayType('audio/webm; codecs="opus"').replace(/^no$/, ''), + ), + w.addTest('audio.wav', B.canPlayType('audio/wav; codecs="1"').replace(/^no$/, '')), + w.addTest( + 'audio.m4a', + (B.canPlayType('audio/x-m4a;') || B.canPlayType('audio/aac;')).replace( + /^no$/, + '', + ), + )); + } catch {} + })(); + var C = 'Moz O ms Webkit', + k = m._config.usePrefixes ? C.split(' ') : []; + m._cssomPrefixes = k; + var R = { elem: a('modernizr') }; + w._q.push(function () { + delete R.elem; + }); + var H = { style: R.elem.style }; + w._q.unshift(function () { + delete H.style; + }); + var ee = m._config.usePrefixes ? C.toLowerCase().split(' ') : []; + (m._domPrefixes = ee), (m.testAllProps = g); + var M = function (B) { + var ne, + se = q.length, + oe = h.CSSRule; + if (oe === void 0) return n; + if (!B) return !1; + if ( + ((B = B.replace(/^@/, '')), (ne = B.replace(/-/g, '_').toUpperCase() + '_RULE') in oe) + ) + return '@' + B; + for (var ge = 0; ge < se; ge++) { + var De = q[ge]; + if (De.toUpperCase() + '_' + ne in oe) return '@-' + De.toLowerCase() + '-' + B; + } + return !1; + }; + m.atRule = M; + var K = (m.prefixed = function (B, ne, se) { + return B.indexOf('@') === 0 + ? M(B) + : (B.indexOf('-') !== -1 && (B = x(B)), ne ? g(B, ne, se) : g(B, 'pfx')); + }); + w.addTest('batteryapi', !!K('battery', navigator) || !!K('getBattery', navigator), { + aliases: ['battery-api'], + }), + w.addTest( + 'blobconstructor', + function () { + try { + return !!new Blob(); + } catch { + return !1; + } + }, + { aliases: ['blob-constructor'] }, + ), + w.addTest('contextmenu', 'contextMenu' in U && 'HTMLMenuItemElement' in h), + w.addTest('cors', 'XMLHttpRequest' in h && 'withCredentials' in new XMLHttpRequest()); + var Z = K('crypto', h); + w.addTest('crypto', !!K('subtle', Z)), + w.addTest('customelements', 'customElements' in h), + w.addTest('customprotocolhandler', function () { + if (!navigator.registerProtocolHandler) return !1; + try { + navigator.registerProtocolHandler('thisShouldFail'); + } catch (B) { + return B instanceof TypeError; + } + return !1; + }), + w.addTest('customevent', 'CustomEvent' in h && typeof h.CustomEvent == 'function'), + w.addTest('dart', !!K('startDart', navigator)), + w.addTest( + 'dataview', + typeof DataView != 'undefined' && 'getFloat64' in DataView.prototype, + ), + w.addTest('eventlistener', 'addEventListener' in h), + w.addTest('forcetouch', function () { + return ( + !!O(K('mouseforcewillbegin', h, !1), h) && + MouseEvent.WEBKIT_FORCE_AT_MOUSE_DOWN && + MouseEvent.WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN + ); + }), + w.addTest('fullscreen', !(!K('exitFullscreen', p, !1) && !K('cancelFullScreen', p, !1))), + w.addTest('gamepads', !!K('getGamepads', navigator)), + w.addTest('geolocation', 'geolocation' in navigator), + w.addTest('ie8compat', !h.addEventListener && !!p.documentMode && p.documentMode === 7), + w.addTest('intl', !!K('Intl', h)), + w.addTest('json', 'JSON' in h && 'parse' in JSON && 'stringify' in JSON), + (m.testAllProps = E), + w.addTest('ligatures', E('fontFeatureSettings', '"liga" 1')), + w.addTest('messagechannel', 'MessageChannel' in h), + w.addTest('notification', function () { + if (!h.Notification || !h.Notification.requestPermission) return !1; + if (h.Notification.permission === 'granted') return !0; + try { + new h.Notification(''); + } catch (B) { + if (B.name === 'TypeError') return !1; + } + return !0; + }), + w.addTest('pagevisibility', !!K('hidden', p, !1)), + w.addTest('performance', !!K('performance', h)); + var le = [''].concat(ee); + (m._domPrefixesAll = le), + w.addTest('pointerevents', function () { + for (var B = 0, ne = le.length; B < ne; B++) if (O(le[B] + 'pointerdown')) return !0; + return !1; + }), + w.addTest('pointerlock', !!K('exitPointerLock', p)), + w.addTest('queryselector', 'querySelector' in p && 'querySelectorAll' in p), + w.addTest('quotamanagement', function () { + var B = K('temporaryStorage', navigator), + ne = K('persistentStorage', navigator); + return !(!B || !ne); + }), + w.addTest('requestanimationframe', !!K('requestAnimationFrame', h), { aliases: ['raf'] }), + w.addTest('serviceworker', 'serviceWorker' in navigator); + var q = m._config.usePrefixes ? ' -webkit- -moz- -o- -ms- '.split(' ') : ['', '']; + m._prefixes = q; + var be = (function () { + var B = h.matchMedia || h.msMatchMedia; + return B + ? function (ne) { + var se = B(ne); + return (se && se.matches) || !1; + } + : function (ne) { + var se = !1; + return ( + t('@media ' + ne + ' { #modernizr { position: absolute; } }', function (oe) { + se = l(oe, null, 'position') === 'absolute'; + }), + se + ); + }; + })(); + (m.mq = be), + w.addTest('touchevents', function () { + if ( + 'ontouchstart' in h || + h.TouchEvent || + (h.DocumentTouch && p instanceof DocumentTouch) + ) + return !0; + var B = ['(', q.join('touch-enabled),('), 'heartz', ')'].join(''); + return be(B); + }), + w.addTest('typedarrays', 'ArrayBuffer' in h), + w.addTest('vibrate', !!K('vibrate', navigator)), + (function () { + var B = a('video'); + w.addTest('video', function () { + var ne = !1; + try { + (ne = !!B.canPlayType), ne && (ne = new Boolean(ne)); + } catch {} + return ne; + }); + try { + B.canPlayType && + (w.addTest( + 'video.ogg', + B.canPlayType('video/ogg; codecs="theora"').replace(/^no$/, ''), + ), + w.addTest( + 'video.h264', + B.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/, ''), + ), + w.addTest( + 'video.h265', + B.canPlayType('video/mp4; codecs="hev1"').replace(/^no$/, ''), + ), + w.addTest( + 'video.webm', + B.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/, ''), + ), + w.addTest( + 'video.vp9', + B.canPlayType('video/webm; codecs="vp9"').replace(/^no$/, ''), + ), + w.addTest( + 'video.hls', + B.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(/^no$/, ''), + ), + w.addTest( + 'video.av1', + B.canPlayType('video/mp4; codecs="av01"').replace(/^no$/, ''), + )); + } catch {} + })(), + w.addTest('webgl', function () { + return 'WebGLRenderingContext' in h; + }); + var we = !1; + try { + we = 'WebSocket' in h && h.WebSocket.CLOSING === 2; + } catch {} + w.addTest('websockets', we), + w.addTest('xdomainrequest', 'XDomainRequest' in h), + w.addTest('matchmedia', !!K('matchMedia', h)), + (function () { + var B, ne, se, oe, ge, De, Te; + for (var Fe in f) + if (f.hasOwnProperty(Fe)) { + if ( + ((B = []), + (ne = f[Fe]), + ne.name && + (B.push(ne.name.toLowerCase()), + ne.options && ne.options.aliases && ne.options.aliases.length)) + ) + for (se = 0; se < ne.options.aliases.length; se++) + B.push(ne.options.aliases[se].toLowerCase()); + for (oe = r(ne.fn, 'function') ? ne.fn() : ne.fn, ge = 0; ge < B.length; ge++) + (De = B[ge]), + (Te = De.split('.')), + Te.length === 1 + ? (w[Te[0]] = oe) + : ((w[Te[0]] && (!w[Te[0]] || w[Te[0]] instanceof Boolean)) || + (w[Te[0]] = new Boolean(w[Te[0]])), + (w[Te[0]][Te[1]] = oe)), + S.push((oe ? '' : 'no-') + Te.join('-')); + } + })(), + delete m.addTest, + delete m.addAsyncTest; + for (var He = 0; He < w._q.length; He++) w._q[He](); + c.Modernizr = w; + })(_POSignalsEntities || (_POSignalsEntities = {}), window, document); + }), + (function (c) { + c.AiaSignals = (function (h) { + 'use strict'; + var p = [ + { name: 'IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE', value: !1, error: null }, + { name: 'FILE_INJECT_JS_FOUND', value: !1, error: null }, + { name: 'FILE_CONTENT_JS_FOUND', value: !1, error: null }, + { name: 'WINDOW_GLOBAL_KEY_FOUND', value: !1, error: null }, + ], + n = { webAuthn: 1e3, manus: 5e3, anchor: 5e3, skyvern: 5e3, detect: 1e4 }; + function r(x) { + for (var v = 0; v < p.length; v++) if (p[v].name === x) return p[v]; + return null; + } + function a(x, v) { + var y = r(x); + y && ((y.value = v), (y.error = null)); + } + function s(x, v, y) { + var L = r(x); + L && ((L.value = v), (L.error = y)); + } + function i() { + return new Promise(function (x) { + var v = setTimeout(function () { + x(p); + }, n.detect); + t() + .then(function (y) { + var L = r('IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE'); + if (L && L.value) { + clearTimeout(v), x(p); + return; + } + for ( + var g = [ + e().then(function (w) { + return { key: 'manus', result: w }; + }), + l().then(function (w) { + return { key: 'anchor', result: w }; + }), + o().then(function (w) { + return { key: 'skyvern', result: w }; + }), + ], + E = 0, + f = function () { + E++, E === g.length && (clearTimeout(v), x(p)); + }, + m = 0; + m < g.length; + m++ + ) + (function (w) { + w.then(f).catch(function () { + f(); + }); + })(g[m]); + }) + .catch(function () { + clearTimeout(v), x(p); }); - }), - (Dt[Lt(r)][Lt(o)] = function () { - var e, - n, - i, - r, - o = 1078, - a = 1006, - s = 539, - u = 831, - c = 539, - l = 641, - d = 1270, - h = 1278, - f = 865, - g = 801, - p = 982, - v = 1274, - _ = 1078, - m = 609, - b = 1229, - y = 768, - E = 1078, - w = 1251, - S = 1078, - O = 1317, - I = 626, - T = 724, - A = 599, - P = 865, - C = 1189; - return __awaiter(this, void 0, void 0, function () { - var L, - D, - x, - M, - R, - U, - k, - N, - B, - F = 953, - H = 801, - V = 943, - G = 543, - j = 521, - W = 838, - K = 899, - z = 1078, - Y = this; - return __generator(this, function (X) { - var q = _0x34d2; - switch (X.label) { - case 0: - return ( - (this[q(o)] = __assign(__assign({}, this.lastCalculatedMetadata), { - htmlGeoLocation_latitude: void 0, - htmlGeoLocation_longitude: void 0, - htmlGeoLocation_accuracy: void 0, - htmlGeoLocation_speed: void 0, - htmlGeoLocation_heading: void 0, - htmlGeoLocation_timestamp: void 0, - htmlGeoLocation_ErrorMessage: '', - htmlGeoLocation_ErrorCode: '', - })), - (L = function (t, e) { - var n = q; - void 0 === e && (e = ''); - var i = t.length > 255 ? t[n(K)](0, 252) + n(650) : t; - return ( - (Y.lastCalculatedMetadata.htmlGeoLocation_ErrorMessage = i), - (Y[n(z)].htmlGeoLocation_ErrorCode = e), - { status: n(690), message: i } - ); - }), - (D = function (t) { - var e = q; - switch (t) { - case 1: - return L(e(F), e(H)); - case 2: - return L(e(V), e(838)); - case 3: - return L(e(G), e(j)); - default: - return L(e(1252), e(W)); - } - }), - navigator[q(633)] - ? ((x = this[q(1078)][q(492)][q(a)]()), - (M = x[q(s)](q(u))), - (R = x[q(c)](q(891))), - (U = !1), - [4, navigator[q(l)][q(d)]({ name: q(633) })]) - : [2, L(q(1175), q(1282))] - ); - case 1: - if ( - ((k = X[q(h)]()), - (this[q(o)]['PERMISSIONS.geolocation'] = k[q(865)]), - k[q(865)] === q(635)) - ) - return [2, L(q(1096) + k[q(f)] + " in browser '" + x + "'.", q(g))]; - if ((N = this[q(p)][q(v)]())) - try { - if ((B = JSON.parse(N)) && B[q(1319)] && B.longitude) - (this[q(_)].htmlGeoLocation_latitude = B.latitude - ? parseFloat(B[q(1319)][q(768)](2)) - : null), - (this[q(_)][q(m)] = B[q(1229)] ? parseFloat(B[q(b)][q(y)](2)) : null), - (this.lastCalculatedMetadata.htmlGeoLocation_accuracy = - null !== (e = B[q(573)]) && void 0 !== e ? e : null), - (this[q(E)].htmlGeoLocation_speed = - null !== (n = B[q(w)]) && void 0 !== n ? n : null), - (this[q(S)].htmlGeoLocation_heading = - null !== (i = B[q(999)]) && void 0 !== i ? i : null), - (this[q(1078)][q(O)] = - null !== (r = B[q(I)]) && void 0 !== r ? r : null), - delete this[q(E)][q(T)], - delete this[q(1078)].htmlGeoLocation_ErrorCode, - (U = !0); - else if (B && B.error_code) return (U = !1), [2, D(B[q(518)])]; - } catch (e) { - t[q(815)][q(A)][q(840)](q(523), e); - } - return 'granted' !== k.state - ? [3, 3] - : [ - 4, - new Promise(function (t) { - var e = 932, - n = 1236, - i = 1319, - r = 999, - o = 1078, - a = 768, - s = 768, - u = 546, - c = 724, - l = { timeout: 500 }, - d = function (h) { - void 0 === h && (h = 1), - navigator.geolocation.getCurrentPosition( - function (e) { - var l, - f = _0x34d2, - g = e[f(n)], - p = g[f(i)], - v = g[f(1229)], - _ = g.accuracy, - m = g.speed, - b = g[f(r)]; - if ((!p || !v || 0 === p || 0 === v) && (M || R) && 1 === h) - return d(2); - (Y[f(o)].htmlGeoLocation_latitude = p - ? parseFloat(p[f(a)](2)) - : void 0), - (Y[f(1078)][f(609)] = v - ? parseFloat(v[f(s)](2)) - : void 0), - (Y[f(1078)][f(u)] = _), - (Y[f(1078)].htmlGeoLocation_speed = m), - (Y.lastCalculatedMetadata[f(741)] = b), - (Y[f(o)].htmlGeoLocation_timestamp = - null !== (l = e[f(626)]) && void 0 !== l ? l : null), - delete Y[f(o)][f(c)], - delete Y[f(1078)][f(955)], - (U = !0), - t({ status: 'granted' }); - }, - function (n) { - t(D(n[_0x34d2(e)])), (U = !1); - }, - l, - ); - }; - d(); - }), - ]; - case 2: - return [2, X[q(1278)]()]; - case 3: - return U - ? [2] - : [ - 2, - L( - "Geolocation permission state is '" + k[q(P)] + q(C) + x + "'", - q(838), - ), - ]; + }); + } + function t() { + return new Promise(function (x) { + var v = n.webAuthn, + y = setTimeout(function () { + s('IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE', !1, 1004), x(p); + }, v); + try { + window.PublicKeyCredential && + typeof PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable == 'function' + ? PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable() + .then(function (L) { + clearTimeout(y), + L + ? a('IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE', !0) + : s('IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE', !1, 1001), + x(p); + }) + .catch(function () { + clearTimeout(y), + s('IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE', !1, 1002), + x(p); + }) + : (clearTimeout(y), + s('IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE', !1, 1003), + x(p)); + } catch { + clearTimeout(y), + s('IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE', !1, 1002), + x(p); + } + }); + } + function e() { + return new Promise(function (x) { + var v = n.manus, + y; + function L() { + clearTimeout(y), a('FILE_CONTENT_JS_FOUND', !0), x(p); + } + function g() { + s('FILE_CONTENT_JS_FOUND', !1, 2001), x(p); + } + var E = document.createElement('script'); + (E.src = 'chrome-extension://mljmkmodkfigdopcpgboaalildgijkoc/content.ts.js'), + (E.onload = L), + (E.onerror = function () { + clearTimeout(y), s('FILE_CONTENT_JS_FOUND', !1, 2002), x(p); + }), + document.getElementsByTagName('head')[0].appendChild(E), + (y = setTimeout(g, v)); + }); + } + function l() { + return new Promise(function (x) { + var v = n.anchor, + y; + function L() { + clearTimeout(y), a('FILE_INJECT_JS_FOUND', !0), x(p); + } + function g() { + s('FILE_INJECT_JS_FOUND', !1, 4001), x(p); + } + var E = document.createElement('script'); + (E.src = 'chrome-extension://bppehibnhionalpjigdjdilknbljaeai/inject.js'), + (E.onload = L), + (E.onerror = function () { + clearTimeout(y), s('FILE_INJECT_JS_FOUND', !1, 4002), x(p); + }), + document.getElementsByTagName('head')[0].appendChild(E), + (y = setTimeout(g, v)); + }); + } + function o() { + return new Promise(function (x) { + var v = n.skyvern, + y = 1e3, + L = 0; + function g() { + if ( + window.globalDomDepthMap || + window.GlobalEnableAllTextualElements || + window.globalObserverForDOMIncrement || + window.globalListnerFlag || + window.globalDomDepthMap || + window.globalOneTimeIncrementElements || + window.globalHoverStylesMap || + window.globalParsedElementCounter + ) { + a('WINDOW_GLOBAL_KEY_FOUND', !0), x(p); + return; + } + for (var E in window) + if (typeof E == 'string') { + var f = E.toLowerCase(); + if (f.indexOf('skyvern') !== -1 && E !== 'isSkyvern') { + a('WINDOW_GLOBAL_KEY_FOUND', !0), x(p); + return; } - }); - }); - }), - (Dt[Lt(816)][Lt(a)] = function () { - return __awaiter(this, void 0, void 0, function () { - var t, - e = 750, - n = 727, - i = 1324, - r = 1324; - return __generator(this, function (o) { - var a = _0x34d2; - switch (o.label) { - case 0: - return [4, this[a(e)]()]; - case 1: - return ( - o[a(1278)](), - (t = - typeof window !== a(n) && - window[a(i)] && - typeof window[a(r)].length === a(818) - ? window[a(1324)][a(601)] - : null), - this[a(1078)] && (this[a(1078)].BROWSER_TAB_HISTORY_LENGTH = t), - [2] - ); + } + (L += y), L >= v ? (s('WINDOW_GLOBAL_KEY_FOUND', !1, 5002), x(p)) : setTimeout(g, y); + } + document.readyState === 'loading' + ? document.addEventListener('DOMContentLoaded', g) + : g(); + }); + } + return ( + (h.detect = i), + (h.checkWebAuthnPlatformSupport = t), + (h.isManus = e), + (h.isAnchor = l), + (h.isSkyvern = o), + Object.defineProperty(h, '__esModule', { value: !0 }), + h + ); + })({}); + })(typeof _POSignalsEntities != 'undefined' ? _POSignalsEntities : (_POSignalsEntities = {})), + (function (c) { + (_POSignalsEntities || (_POSignalsEntities = {})).pako = c(); + })(function () { + return (function c(h, p, n) { + function r(i, t) { + if (!p[i]) { + if (!h[i]) { + var e = typeof require == 'function' && require; + if (!t && e) return e(i, !0); + if (a) return a(i, !0); + var l = new Error("Cannot find module '" + i + "'"); + throw ((l.code = 'MODULE_NOT_FOUND'), l); + } + var o = (p[i] = { exports: {} }); + h[i][0].call( + o.exports, + function (x) { + var v = h[i][1][x]; + return r(v || x); + }, + o, + o.exports, + c, + h, + p, + n, + ); + } + return p[i].exports; + } + for (var a = typeof require == 'function' && require, s = 0; s < n.length; s++) r(n[s]); + return r; + })( + { + 1: [ + function (c, h, p) { + 'use strict'; + function n(i, t) { + return Object.prototype.hasOwnProperty.call(i, t); + } + var r = + typeof Uint8Array != 'undefined' && + typeof Uint16Array != 'undefined' && + typeof Int32Array != 'undefined'; + (p.assign = function (i) { + for (var t = Array.prototype.slice.call(arguments, 1); t.length; ) { + var e = t.shift(); + if (e) { + if (typeof e != 'object') throw new TypeError(e + 'must be non-object'); + for (var l in e) n(e, l) && (i[l] = e[l]); } + } + return i; + }), + (p.shrinkBuf = function (i, t) { + return i.length === t ? i : i.subarray ? i.subarray(0, t) : ((i.length = t), i); }); - }); - }), - (Dt.prototype[Lt(s)] = function () { - return __awaiter(this, void 0, void 0, function () { - var t, - e, - n, - i, - r = 686, - o = 1206, - a = 603, - s = 1078, - u = 1104, - c = 1078, - l = 980; - return __generator(this, function (d) { - var h = _0x34d2; - return ( - (t = 160), - (e = window[h(898)] - window[h(r)] > t), - (n = window[h(508)] - window[h(o)] > t), - (i = h(e ? 581 : a)), - (this[h(s)].devToolsOpen = h(e || n ? 1250 : u)), - (this[h(c)].devToolsOrientation = e || n ? i : h(l)), - [2] - ); - }); - }); - }), - (Dt[Lt(816)][Lt(679)] = function () { - var t = 1077; - return __awaiter(this, void 0, void 0, function () { - var e = this; - return __generator(this, function (n) { - var i = _0x34d2; - return [ - 2, - this.metadataQueue[i(t)](function () { - var t = 968, - n = 1154, - i = 1001, - r = 701, - o = 1278; - return __awaiter(e, void 0, void 0, function () { - var e; - return __generator(this, function (a) { - var s = _0x34d2; - switch (a[s(t)]) { - case 0: - return this.localAgentJwtRequestCount >= 5 - ? [2, this[s(1001)]] - : this[s(982)][s(n)] - ? this[s(i)] - ? [3, 2] - : ((e = this), [4, this[s(r)][s(1055)]()]) - : [3, 3]; - case 1: - (e[s(i)] = a[s(o)]()), (a.label = 2); - case 2: - return this[s(695)]++, [2, this.localAgentJwt]; - case 3: - return [2]; - } - }); - }); - }), - ]; + var a = { + arraySet: function (i, t, e, l, o) { + if (t.subarray && i.subarray) i.set(t.subarray(e, e + l), o); + else for (var x = 0; x < l; x++) i[o + x] = t[e + x]; + }, + flattenChunks: function (i) { + var t, e, l, o, x, v; + for (l = 0, t = 0, e = i.length; t < e; t++) l += i[t].length; + for (v = new Uint8Array(l), o = 0, t = 0, e = i.length; t < e; t++) + (x = i[t]), v.set(x, o), (o += x.length); + return v; + }, + }, + s = { + arraySet: function (i, t, e, l, o) { + for (var x = 0; x < l; x++) i[o + x] = t[e + x]; + }, + flattenChunks: function (i) { + return [].concat.apply([], i); + }, + }; + (p.setTyped = function (i) { + i + ? ((p.Buf8 = Uint8Array), + (p.Buf16 = Uint16Array), + (p.Buf32 = Int32Array), + p.assign(p, a)) + : ((p.Buf8 = Array), (p.Buf16 = Array), (p.Buf32 = Array), p.assign(p, s)); + }), + p.setTyped(r); + }, + {}, + ], + 2: [ + function (c, h, p) { + 'use strict'; + function n(e, l) { + if (l < 65537 && ((e.subarray && s) || (!e.subarray && a))) + return String.fromCharCode.apply(null, r.shrinkBuf(e, l)); + for (var o = '', x = 0; x < l; x++) o += String.fromCharCode(e[x]); + return o; + } + var r = c('./common'), + a = !0, + s = !0; + try { + String.fromCharCode.apply(null, [0]); + } catch { + a = !1; + } + try { + String.fromCharCode.apply(null, new Uint8Array(1)); + } catch { + s = !1; + } + for (var i = new r.Buf8(256), t = 0; t < 256; t++) + i[t] = t >= 252 ? 6 : t >= 248 ? 5 : t >= 240 ? 4 : t >= 224 ? 3 : t >= 192 ? 2 : 1; + (i[254] = i[254] = 1), + (p.string2buf = function (e) { + var l, + o, + x, + v, + y, + L = e.length, + g = 0; + for (v = 0; v < L; v++) + (64512 & (o = e.charCodeAt(v))) == 55296 && + v + 1 < L && + (64512 & (x = e.charCodeAt(v + 1))) == 56320 && + ((o = 65536 + ((o - 55296) << 10) + (x - 56320)), v++), + (g += o < 128 ? 1 : o < 2048 ? 2 : o < 65536 ? 3 : 4); + for (l = new r.Buf8(g), y = 0, v = 0; y < g; v++) + (64512 & (o = e.charCodeAt(v))) == 55296 && + v + 1 < L && + (64512 & (x = e.charCodeAt(v + 1))) == 56320 && + ((o = 65536 + ((o - 55296) << 10) + (x - 56320)), v++), + o < 128 + ? (l[y++] = o) + : o < 2048 + ? ((l[y++] = 192 | (o >>> 6)), (l[y++] = 128 | (63 & o))) + : o < 65536 + ? ((l[y++] = 224 | (o >>> 12)), + (l[y++] = 128 | ((o >>> 6) & 63)), + (l[y++] = 128 | (63 & o))) + : ((l[y++] = 240 | (o >>> 18)), + (l[y++] = 128 | ((o >>> 12) & 63)), + (l[y++] = 128 | ((o >>> 6) & 63)), + (l[y++] = 128 | (63 & o))); + return l; + }), + (p.buf2binstring = function (e) { + return n(e, e.length); + }), + (p.binstring2buf = function (e) { + for (var l = new r.Buf8(e.length), o = 0, x = l.length; o < x; o++) + l[o] = e.charCodeAt(o); + return l; + }), + (p.buf2string = function (e, l) { + var o, + x, + v, + y, + L = l || e.length, + g = new Array(2 * L); + for (x = 0, o = 0; o < L; ) + if ((v = e[o++]) < 128) g[x++] = v; + else if ((y = i[v]) > 4) (g[x++] = 65533), (o += y - 1); + else { + for (v &= y === 2 ? 31 : y === 3 ? 15 : 7; y > 1 && o < L; ) + (v = (v << 6) | (63 & e[o++])), y--; + y > 1 + ? (g[x++] = 65533) + : v < 65536 + ? (g[x++] = v) + : ((v -= 65536), + (g[x++] = 55296 | ((v >> 10) & 1023)), + (g[x++] = 56320 | (1023 & v))); + } + return n(g, x); + }), + (p.utf8border = function (e, l) { + var o; + for ( + (l = l || e.length) > e.length && (l = e.length), o = l - 1; + o >= 0 && (192 & e[o]) == 128; + + ) + o--; + return o < 0 || o === 0 ? l : o + i[e[o]] > l ? o : l; }); - }); - }), - (Dt.prototype.getObfsInfo = function () { - return { identifier: 'x1', key: Lt(538) }; - }), - (Dt[Lt(r)][Lt(1015)] = function () { - return this[Lt(942)]; - }), - (Dt[Lt(816)][Lt(u)] = function () { - var n = 968, - i = 633, - r = 636, - o = 1169, - a = 920, - s = 857, - u = 1197, - c = 559, - l = 1337, - d = 1071, - h = 1125, - f = 888, - g = 644, - p = 646, - v = 845, - _ = 827, - m = 1100, - b = 815, - y = 1125, - E = 646, - w = 636, - S = 1326, - O = 504, - I = 1025, - T = 1209, - A = 552; - return __awaiter(this, void 0, void 0, function () { - var P, - C, - L, - D, - x, - M = 599, - R = 815; - return __generator(this, function (U) { - var k = 840, - N = 815, - B = 599, - F = 599, - H = 599, - V = 1227, - G = _0x34d2; - switch (U[G(n)]) { - case 0: - return ( - (this.gpsSupported = null != navigator[G(i)]), - (P = this[G(r)][G(o)]), - (C = [ - this[G(982)][G(a)]()[G(s)](function (e) { - var n = G; - t[n(R)].Logger.warn(n(612), e); - }), - this[G(u)](P).catch(function (e) { - var n = G; - t._POSignalsUtils[n(H)][n(840)](n(V), e.message); - }), - this.getBroPrintFingerPrint().catch(function (e) { - var n = G; - t[n(815)][n(599)][n(840)]( - 'failed to get broJsFingerprint info', - e[n(990)], - ); - }), - e[G(c)][G(l)]().catch(function (e) { - var n = G; - return t[n(815)][n(F)].warn('failed to get private mode info', e); - }), - this[G(1295)]()[G(857)](function (e) { - var n = G; - return t[n(N)][n(B)].warn('failed to get permissions info', e); - }), - new e.DetectHeadless(P).getHeadlessResults()[G(s)](function (e) { - var n = G; - return t[n(815)][n(599)].warn(n(971), e); - }), - new e[G(733)](P)[G(d)]()[G(857)](function (e) { - var n = G; - return t._POSignalsUtils[n(M)][n(840)](n(597), e); - }), - this[G(501)]()[G(s)](function (e) { - var n = G; - return t[n(815)][n(599)][n(840)]('failed to get audio-video info', e); - }), - this[G(1098)]().catch(function (e) { - var n = G; - return t[n(815)].Logger[n(k)]('failed to get battery info', e); - }), - ]), - [4, Promise.all(C)] - ); - case 1: - return ( - (x = U[G(1278)]()), - (this[G(h)] = x[0]), - (this[G(640)] = x[1]), - (this.broJsFingerprint = x[2]), - (this[G(f)] = x[3]), - (this[G(641)] = x[4]), - (this[G(765)] = x[5]), - (this[G(g)] = x[6]), - (this[G(p)] = this.sessionData.getDeviceCreatedAt()), - (L = { - ops: this.OPS, - devicePixelRatio: window[G(997)], - screenWidth: window.screen[G(v)], - screenHeight: window[G(_)][G(m)], - }), - t[G(b)].Util.extendPrimitiveValues(L, screen, !1), - (D = [ - { - deviceId: this[G(y)], - device_created_ts: this[G(E)], - deviceType: this[G(w)].browserInfo[G(535)], - osVersion: - (this[G(636)][G(981)][G(894)] + ' ' + this[G(w)][G(981)][G(859)])[ - G(S) - ]() || '', - externalIdentifiers: this[G(O)], - origin: location[G(I)], - href: location[G(1024)], - }, - ]), - [4, this[G(553)](P)] - ); - case 2: - return [ - 2, - __assign[G(1209)](void 0, [ - __assign[G(T)](void 0, [ - __assign[G(T)](void 0, [ - __assign[G(1209)](void 0, D[G(922)]([U.sent()])), - this.getIoMetadata(), - ]), - this[G(A)](), - ]), - L, - ]), - ]; + }, + { './common': 1 }, + ], + 3: [ + function (c, h, p) { + 'use strict'; + h.exports = function (n, r, a, s) { + for (var i = (65535 & n) | 0, t = ((n >>> 16) & 65535) | 0, e = 0; a !== 0; ) { + a -= e = a > 2e3 ? 2e3 : a; + do t = (t + (i = (i + r[s++]) | 0)) | 0; + while (--e); + (i %= 65521), (t %= 65521); + } + return i | (t << 16) | 0; + }; + }, + {}, + ], + 4: [ + function (c, h, p) { + 'use strict'; + var n = (function () { + for (var r, a = [], s = 0; s < 256; s++) { + r = s; + for (var i = 0; i < 8; i++) r = 1 & r ? 3988292384 ^ (r >>> 1) : r >>> 1; + a[s] = r; + } + return a; + })(); + h.exports = function (r, a, s, i) { + var t = n, + e = i + s; + r ^= -1; + for (var l = i; l < e; l++) r = (r >>> 8) ^ t[255 & (r ^ a[l])]; + return -1 ^ r; + }; + }, + {}, + ], + 5: [ + function (c, h, p) { + 'use strict'; + function n(d, F) { + return (d.msg = H[F]), F; + } + function r(d) { + return (d << 1) - (d > 4 ? 9 : 0); + } + function a(d) { + for (var F = d.length; --F >= 0; ) d[F] = 0; + } + function s(d) { + var F = d.state, + G = F.pending; + G > d.avail_out && (G = d.avail_out), + G !== 0 && + (O.arraySet(d.output, F.pending_buf, F.pending_out, G, d.next_out), + (d.next_out += G), + (F.pending_out += G), + (d.total_out += G), + (d.avail_out -= G), + (F.pending -= G), + F.pending === 0 && (F.pending_out = 0)); + } + function i(d, F) { + C._tr_flush_block( + d, + d.block_start >= 0 ? d.block_start : -1, + d.strstart - d.block_start, + F, + ), + (d.block_start = d.strstart), + s(d.strm); + } + function t(d, F) { + d.pending_buf[d.pending++] = F; + } + function e(d, F) { + (d.pending_buf[d.pending++] = (F >>> 8) & 255), + (d.pending_buf[d.pending++] = 255 & F); + } + function l(d, F, G, A) { + var re = d.avail_in; + return ( + re > A && (re = A), + re === 0 + ? 0 + : ((d.avail_in -= re), + O.arraySet(F, d.input, d.next_in, re, G), + d.state.wrap === 1 + ? (d.adler = k(d.adler, F, re, G)) + : d.state.wrap === 2 && (d.adler = R(d.adler, F, re, G)), + (d.next_in += re), + (d.total_in += re), + re) + ); + } + function o(d, F) { + var G, + A, + re = d.max_chain_length, + de = d.strstart, + ce = d.prev_length, + fe = d.nice_match, + We = d.strstart > d.w_size - Pe ? d.strstart - (d.w_size - Pe) : 0, + ye = d.window, + at = d.w_mask, + mt = d.prev, + xt = d.strstart + Ge, + st = ye[de + ce - 1], + ot = ye[de + ce]; + d.prev_length >= d.good_match && (re >>= 2), fe > d.lookahead && (fe = d.lookahead); + do + if ( + ((G = F), + ye[G + ce] === ot && + ye[G + ce - 1] === st && + ye[G] === ye[de] && + ye[++G] === ye[de + 1]) + ) { + (de += 2), G++; + do; + while ( + ye[++de] === ye[++G] && + ye[++de] === ye[++G] && + ye[++de] === ye[++G] && + ye[++de] === ye[++G] && + ye[++de] === ye[++G] && + ye[++de] === ye[++G] && + ye[++de] === ye[++G] && + ye[++de] === ye[++G] && + de < xt + ); + if (((A = Ge - (xt - de)), (de = xt - Ge), A > ce)) { + if (((d.match_start = F), (ce = A), A >= fe)) break; + (st = ye[de + ce - 1]), (ot = ye[de + ce]); + } } - }); - }); - }), - (Dt.prototype[Lt(c)] = function () { - return __awaiter(this, void 0, void 0, function () { - var e, - n = 1278, - i = this; - return __generator(this, function (r) { - var o = 815, - a = 599, - s = 815, - u = 669, - c = 1298, - l = 836, - d = _0x34d2; - switch (r[d(968)]) { - case 0: - return ( - (e = this), - [ - 4, - t[d(815)][d(526)][d(1138)]( - 50, - new Promise(function (n, r) { - var h = d; - navigator[h(889)] - ? ((i[h(1266)] = !0), - navigator - .getBattery() - [h(893)](function (t) { - var i = h; - t && - ((e[i(572)] = t[i(u)]), - (e.batteryCharging = t[i(1230)]), - (e[i(c)] = t[i(1247)]), - (e[i(985)] = t[i(l)])), - n(); - }) - .catch(function (e) { - var i = h; - t[i(s)][i(599)][i(840)](i(1037) + e), n(); - })) - : (t[h(o)][h(a)][h(1202)](h(1135)), n()); - }), - ), - ] - ); - case 1: - return r[d(n)](), [2]; + while ((F = mt[F & at]) > We && --re != 0); + return ce <= d.lookahead ? ce : d.lookahead; + } + function x(d) { + var F, + G, + A, + re, + de, + ce = d.w_size; + do { + if ( + ((re = d.window_size - d.lookahead - d.strstart), d.strstart >= ce + (ce - Pe)) + ) { + O.arraySet(d.window, d.window, ce, ce, 0), + (d.match_start -= ce), + (d.strstart -= ce), + (d.block_start -= ce), + (F = G = d.hash_size); + do (A = d.head[--F]), (d.head[F] = A >= ce ? A - ce : 0); + while (--G); + F = G = ce; + do (A = d.prev[--F]), (d.prev[F] = A >= ce ? A - ce : 0); + while (--G); + re += ce; } - }); - }); - }), - (Dt[Lt(l)].enumerateDevicesEnabled = function () { - var e = Lt, - n = /^((?!chrome|android).)*safari/i[e(649)](navigator[e(At)]); - return !t[e(Pt)][e(Ct)][e(524)]() || !n; - }), - (Dt.prototype[Lt(d)] = function () { - var t = Lt, - e = window[t(1030)] || window[t(U)] || window[t(k)]; - if (!e) { - var n = window[t(N)]; - n && (e = n.RTCPeerConnection || n[t(1185)] || n[t(B)]); + if (d.strm.avail_in === 0) break; + if ( + ((G = l(d.strm, d.window, d.strstart + d.lookahead, re)), + (d.lookahead += G), + d.lookahead + d.insert >= _e) + ) + for ( + de = d.strstart - d.insert, + d.ins_h = d.window[de], + d.ins_h = ((d.ins_h << d.hash_shift) ^ d.window[de + 1]) & d.hash_mask; + d.insert && + ((d.ins_h = + ((d.ins_h << d.hash_shift) ^ d.window[de + _e - 1]) & d.hash_mask), + (d.prev[de & d.w_mask] = d.head[d.ins_h]), + (d.head[d.ins_h] = de), + de++, + d.insert--, + !(d.lookahead + d.insert < _e)); + + ); + } while (d.lookahead < Pe && d.strm.avail_in !== 0); + } + function v(d, F) { + for (var G, A; ; ) { + if (d.lookahead < Pe) { + if ((x(d), d.lookahead < Pe && F === ee)) return j; + if (d.lookahead === 0) break; + } + if ( + ((G = 0), + d.lookahead >= _e && + ((d.ins_h = + ((d.ins_h << d.hash_shift) ^ d.window[d.strstart + _e - 1]) & d.hash_mask), + (G = d.prev[d.strstart & d.w_mask] = d.head[d.ins_h]), + (d.head[d.ins_h] = d.strstart)), + G !== 0 && d.strstart - G <= d.w_size - Pe && (d.match_length = o(d, G)), + d.match_length >= _e) + ) + if ( + ((A = C._tr_tally(d, d.strstart - d.match_start, d.match_length - _e)), + (d.lookahead -= d.match_length), + d.match_length <= d.max_lazy_match && d.lookahead >= _e) + ) { + d.match_length--; + do + d.strstart++, + (d.ins_h = + ((d.ins_h << d.hash_shift) ^ d.window[d.strstart + _e - 1]) & + d.hash_mask), + (G = d.prev[d.strstart & d.w_mask] = d.head[d.ins_h]), + (d.head[d.ins_h] = d.strstart); + while (--d.match_length != 0); + d.strstart++; + } else + (d.strstart += d.match_length), + (d.match_length = 0), + (d.ins_h = d.window[d.strstart]), + (d.ins_h = + ((d.ins_h << d.hash_shift) ^ d.window[d.strstart + 1]) & d.hash_mask); + else (A = C._tr_tally(d, 0, d.window[d.strstart])), d.lookahead--, d.strstart++; + if (A && (i(d, !1), d.strm.avail_out === 0)) return j; + } + return ( + (d.insert = d.strstart < _e - 1 ? d.strstart : _e - 1), + F === Z + ? (i(d, !0), d.strm.avail_out === 0 ? ae : ve) + : d.last_lit && (i(d, !1), d.strm.avail_out === 0) + ? j + : ie + ); + } + function y(d, F) { + for (var G, A, re; ; ) { + if (d.lookahead < Pe) { + if ((x(d), d.lookahead < Pe && F === ee)) return j; + if (d.lookahead === 0) break; + } + if ( + ((G = 0), + d.lookahead >= _e && + ((d.ins_h = + ((d.ins_h << d.hash_shift) ^ d.window[d.strstart + _e - 1]) & d.hash_mask), + (G = d.prev[d.strstart & d.w_mask] = d.head[d.ins_h]), + (d.head[d.ins_h] = d.strstart)), + (d.prev_length = d.match_length), + (d.prev_match = d.match_start), + (d.match_length = _e - 1), + G !== 0 && + d.prev_length < d.max_lazy_match && + d.strstart - G <= d.w_size - Pe && + ((d.match_length = o(d, G)), + d.match_length <= 5 && + (d.strategy === se || + (d.match_length === _e && d.strstart - d.match_start > 4096)) && + (d.match_length = _e - 1)), + d.prev_length >= _e && d.match_length <= d.prev_length) + ) { + (re = d.strstart + d.lookahead - _e), + (A = C._tr_tally(d, d.strstart - 1 - d.prev_match, d.prev_length - _e)), + (d.lookahead -= d.prev_length - 1), + (d.prev_length -= 2); + do + ++d.strstart <= re && + ((d.ins_h = + ((d.ins_h << d.hash_shift) ^ d.window[d.strstart + _e - 1]) & + d.hash_mask), + (G = d.prev[d.strstart & d.w_mask] = d.head[d.ins_h]), + (d.head[d.ins_h] = d.strstart)); + while (--d.prev_length != 0); + if ( + ((d.match_available = 0), + (d.match_length = _e - 1), + d.strstart++, + A && (i(d, !1), d.strm.avail_out === 0)) + ) + return j; + } else if (d.match_available) { + if ( + ((A = C._tr_tally(d, 0, d.window[d.strstart - 1])) && i(d, !1), + d.strstart++, + d.lookahead--, + d.strm.avail_out === 0) + ) + return j; + } else (d.match_available = 1), d.strstart++, d.lookahead--; + } + return ( + d.match_available && + ((A = C._tr_tally(d, 0, d.window[d.strstart - 1])), (d.match_available = 0)), + (d.insert = d.strstart < _e - 1 ? d.strstart : _e - 1), + F === Z + ? (i(d, !0), d.strm.avail_out === 0 ? ae : ve) + : d.last_lit && (i(d, !1), d.strm.avail_out === 0) + ? j + : ie + ); + } + function L(d, F) { + for (var G, A, re, de, ce = d.window; ; ) { + if (d.lookahead <= Ge) { + if ((x(d), d.lookahead <= Ge && F === ee)) return j; + if (d.lookahead === 0) break; + } + if ( + ((d.match_length = 0), + d.lookahead >= _e && + d.strstart > 0 && + ((re = d.strstart - 1), + (A = ce[re]) === ce[++re] && A === ce[++re] && A === ce[++re])) + ) { + de = d.strstart + Ge; + do; + while ( + A === ce[++re] && + A === ce[++re] && + A === ce[++re] && + A === ce[++re] && + A === ce[++re] && + A === ce[++re] && + A === ce[++re] && + A === ce[++re] && + re < de + ); + (d.match_length = Ge - (de - re)), + d.match_length > d.lookahead && (d.match_length = d.lookahead); + } + if ( + (d.match_length >= _e + ? ((G = C._tr_tally(d, 1, d.match_length - _e)), + (d.lookahead -= d.match_length), + (d.strstart += d.match_length), + (d.match_length = 0)) + : ((G = C._tr_tally(d, 0, d.window[d.strstart])), + d.lookahead--, + d.strstart++), + G && (i(d, !1), d.strm.avail_out === 0)) + ) + return j; + } + return ( + (d.insert = 0), + F === Z + ? (i(d, !0), d.strm.avail_out === 0 ? ae : ve) + : d.last_lit && (i(d, !1), d.strm.avail_out === 0) + ? j + : ie + ); + } + function g(d, F) { + for (var G; ; ) { + if (d.lookahead === 0 && (x(d), d.lookahead === 0)) { + if (F === ee) return j; + break; + } + if ( + ((d.match_length = 0), + (G = C._tr_tally(d, 0, d.window[d.strstart])), + d.lookahead--, + d.strstart++, + G && (i(d, !1), d.strm.avail_out === 0)) + ) + return j; + } + return ( + (d.insert = 0), + F === Z + ? (i(d, !0), d.strm.avail_out === 0 ? ae : ve) + : d.last_lit && (i(d, !1), d.strm.avail_out === 0) + ? j + : ie + ); + } + function E(d, F, G, A, re) { + (this.good_length = d), + (this.max_lazy = F), + (this.nice_length = G), + (this.max_chain = A), + (this.func = re); + } + function f(d) { + (d.window_size = 2 * d.w_size), + a(d.head), + (d.max_lazy_match = T[d.level].max_lazy), + (d.good_match = T[d.level].good_length), + (d.nice_match = T[d.level].nice_length), + (d.max_chain_length = T[d.level].max_chain), + (d.strstart = 0), + (d.block_start = 0), + (d.lookahead = 0), + (d.insert = 0), + (d.match_length = d.prev_length = _e - 1), + (d.match_available = 0), + (d.ins_h = 0); + } + function m() { + (this.strm = null), + (this.status = 0), + (this.pending_buf = null), + (this.pending_buf_size = 0), + (this.pending_out = 0), + (this.pending = 0), + (this.wrap = 0), + (this.gzhead = null), + (this.gzindex = 0), + (this.method = Re), + (this.last_flush = -1), + (this.w_size = 0), + (this.w_bits = 0), + (this.w_mask = 0), + (this.window = null), + (this.window_size = 0), + (this.prev = null), + (this.head = null), + (this.ins_h = 0), + (this.hash_size = 0), + (this.hash_bits = 0), + (this.hash_mask = 0), + (this.hash_shift = 0), + (this.block_start = 0), + (this.match_length = 0), + (this.prev_match = 0), + (this.match_available = 0), + (this.strstart = 0), + (this.match_start = 0), + (this.lookahead = 0), + (this.prev_length = 0), + (this.max_chain_length = 0), + (this.max_lazy_match = 0), + (this.level = 0), + (this.strategy = 0), + (this.good_match = 0), + (this.nice_match = 0), + (this.dyn_ltree = new O.Buf16(2 * Ke)), + (this.dyn_dtree = new O.Buf16(2 * (2 * pt + 1))), + (this.bl_tree = new O.Buf16(2 * (2 * Qe + 1))), + a(this.dyn_ltree), + a(this.dyn_dtree), + a(this.bl_tree), + (this.l_desc = null), + (this.d_desc = null), + (this.bl_desc = null), + (this.bl_count = new O.Buf16(it + 1)), + (this.heap = new O.Buf16(2 * $e + 1)), + a(this.heap), + (this.heap_len = 0), + (this.heap_max = 0), + (this.depth = new O.Buf16(2 * $e + 1)), + a(this.depth), + (this.l_buf = 0), + (this.lit_bufsize = 0), + (this.last_lit = 0), + (this.d_buf = 0), + (this.opt_len = 0), + (this.static_len = 0), + (this.matches = 0), + (this.insert = 0), + (this.bi_buf = 0), + (this.bi_valid = 0); + } + function w(d) { + var F; + return d && d.state + ? ((d.total_in = d.total_out = 0), + (d.data_type = Fe), + (F = d.state), + (F.pending = 0), + (F.pending_out = 0), + F.wrap < 0 && (F.wrap = -F.wrap), + (F.status = F.wrap ? tt : W), + (d.adler = F.wrap === 2 ? 0 : 1), + (F.last_flush = ee), + C._tr_init(F), + q) + : n(d, we); + } + function S(d) { + var F = w(d); + return F === q && f(d.state), F; + } + function U(d, F, G, A, re, de) { + if (!d) return we; + var ce = 1; + if ( + (F === ne && (F = 6), + A < 0 ? ((ce = 0), (A = -A)) : A > 15 && ((ce = 2), (A -= 16)), + re < 1 || + re > Le || + G !== Re || + A < 8 || + A > 15 || + F < 0 || + F > 9 || + de < 0 || + de > De) + ) + return n(d, we); + A === 8 && (A = 9); + var fe = new m(); + return ( + (d.state = fe), + (fe.strm = d), + (fe.wrap = ce), + (fe.gzhead = null), + (fe.w_bits = A), + (fe.w_size = 1 << fe.w_bits), + (fe.w_mask = fe.w_size - 1), + (fe.hash_bits = re + 7), + (fe.hash_size = 1 << fe.hash_bits), + (fe.hash_mask = fe.hash_size - 1), + (fe.hash_shift = ~~((fe.hash_bits + _e - 1) / _e)), + (fe.window = new O.Buf8(2 * fe.w_size)), + (fe.head = new O.Buf16(fe.hash_size)), + (fe.prev = new O.Buf16(fe.w_size)), + (fe.lit_bufsize = 1 << (re + 6)), + (fe.pending_buf_size = 4 * fe.lit_bufsize), + (fe.pending_buf = new O.Buf8(fe.pending_buf_size)), + (fe.d_buf = 1 * fe.lit_bufsize), + (fe.l_buf = 3 * fe.lit_bufsize), + (fe.level = F), + (fe.strategy = de), + (fe.method = G), + S(d) + ); } - return e; - }), - (Dt.prototype[Lt(1016)] = function () { - var t = 700, - e = 802, - n = 717, - i = 563, - r = 717, - o = Lt, - a = this; - try { - var s = {}, - u = this[o(wt)](), - c = new u( - { iceServers: [{ urls: this[o(636)][o(762)][o(St)]() }] }, - { optional: [{ RtpDataChannels: !0 }] }, - ); - (c[o(Ot)] = function (u) { - var c = o; - if (u.candidate) { - var l = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/[c(t)]( - u.candidate[c(e)], - )[1]; - void 0 === s[l] && - (u[c(802)].candidate[c(n)](c(i)) > 0 - ? a[c(919)][c(1181)]('WEB_RTC_HOST_IP', l) - : u[c(e)].candidate[c(r)]('srflx') > 0 && a.webRtcIps.set(c(1318), l)), - (s[l] = !0); + var T, + O = c('../utils/common'), + C = c('./trees'), + k = c('./adler32'), + R = c('./crc32'), + H = c('./messages'), + ee = 0, + M = 1, + K = 3, + Z = 4, + le = 5, + q = 0, + be = 1, + we = -2, + He = -3, + B = -5, + ne = -1, + se = 1, + oe = 2, + ge = 3, + De = 4, + Te = 0, + Fe = 2, + Re = 8, + Le = 9, + Oe = 15, + Xe = 8, + $e = 286, + pt = 30, + Qe = 19, + Ke = 2 * $e + 1, + it = 15, + _e = 3, + Ge = 258, + Pe = Ge + _e + 1, + et = 32, + tt = 42, + rt = 69, + nt = 73, + Je = 91, + _ = 103, + W = 113, + $ = 666, + j = 1, + ie = 2, + ae = 3, + ve = 4, + Se = 3; + (T = [ + new E(0, 0, 0, 0, function (d, F) { + var G = 65535; + for (G > d.pending_buf_size - 5 && (G = d.pending_buf_size - 5); ; ) { + if (d.lookahead <= 1) { + if ((x(d), d.lookahead === 0 && F === ee)) return j; + if (d.lookahead === 0) break; + } + (d.strstart += d.lookahead), (d.lookahead = 0); + var A = d.block_start + G; + if ( + ((d.strstart === 0 || d.strstart >= A) && + ((d.lookahead = d.strstart - A), + (d.strstart = A), + i(d, !1), + d.strm.avail_out === 0)) || + (d.strstart - d.block_start >= d.w_size - Pe && + (i(d, !1), d.strm.avail_out === 0)) + ) + return j; } - }), - c[o(It)](''), - c[o(Tt)]( - function (t) { - c[o(620)]( - t, - function () {}, - function () {}, - ); - }, - function () {}, + return ( + (d.insert = 0), + F === Z + ? (i(d, !0), d.strm.avail_out === 0 ? ae : ve) + : (d.strstart > d.block_start && (i(d, !1), d.strm.avail_out), j) ); - } catch (t) {} - }), - (Dt[Lt(h)][Lt(501)] = function () { - return __awaiter(this, void 0, void 0, function () { - var e, - n = 968, - i = 1138, - r = this; - return __generator(this, function (o) { - var a = 1224, - s = 1202, - u = 815, - c = 599, - l = 1202, - d = 1325, - h = 713, - f = 1140, - g = _0x34d2; - switch (o[g(n)]) { - case 0: - return ( - (e = this), - [ - 4, - t._POSignalsUtils.Util[g(i)]( - 50, - new Promise(function (n, i) { - var o = 815, - p = 599, - v = 840, - _ = 1117, - m = 1161, - b = 1091, - y = 1179, - E = 968, - w = 1283, - S = 1161, - O = g; - return r[O(a)]() - ? navigator.mediaDevices && navigator[O(713)].enumerateDevices - ? void navigator[O(h)] - [O(1220)]() - [O(893)](function (t) { - var i = O; - t[i(f)](function (t) { - var n = i; - t[n(1091)] && - (t[n(1091)][n(1006)]() == n(1307) - ? ((e[n(_)] = !0), - e[n(1275)]++, - t.label && e[n(638)][n(m)](t[n(968)])) - : 'videoinput' == t[n(b)].toLowerCase() - ? ((e[n(y)] = !0), - e.numberOfVideoDevices++, - t.label && e[n(1026)].push(t[n(E)])) - : t[n(1091)][n(1006)]() == n(w) && - ((e[n(557)] = !0), - e.numberOfAudioDevices++, - t[n(968)] && - e.audioOutputDevices[n(S)](t.label))); - }), - n(); - }) - [O(857)](function (e) { - var i = O; - t[i(o)][i(p)][i(v)](i(529), e), n(); - }) - : (t[O(u)][O(c)][O(l)](O(d)), void n()) - : (t[O(815)][O(599)][O(s)]( - 'enumerateDevices() cannot run within safari iframe', - ), - void n()); - }), - ), - ] - ); - case 1: - return o.sent(), [2]; - } - }); - }); - }), - (Dt.prototype[Lt(f)] = function (e) { - var n = 732, - i = 1054, - r = 1255, - o = 1278; - return __awaiter(this, void 0, void 0, function () { - var a, - s, - u = this; - return __generator(this, function (c) { - var l = _0x34d2; - switch (c[l(968)]) { - case 0: - return e[l(886)](l(n)) - ? [2, Promise[l(i)]('')] - : ((a = new Promise(function (e, n) { - return __awaiter(u, void 0, void 0, function () { - var i, - r, - o, - a = 1278, - s = 661, - u = 599, - c = 570; - return __generator(this, function (l) { - var d = _0x34d2; - switch (l[d(968)]) { - case 0: - return l.trys.push([0, 3, , 4]), [4, t[d(743)].load()]; - case 1: - return [4, l[d(a)]().get()]; - case 2: - return ( - (i = l[d(1278)]()), - (this[d(640)] = i[d(s)]), - (this[d(1073)] = i[d(593)]), - e(i[d(661)]), - [3, 4] - ); - case 3: - return ( - (r = l[d(1278)]()), - t._POSignalsUtils[d(u)][d(840)](d(527) + r), - (o = { err: r, message: d(c) }), - n(o), - [3, 4] - ); - case 4: - return [2]; - } - }); - }); - })), - (s = new Promise(function (e, n) { - return __awaiter(u, void 0, void 0, function () { - var e = 968, - i = 792, - r = 636, - o = 1278; - return __generator(this, function (a) { - var s = _0x34d2; - switch (a[s(e)]) { - case 0: - return [4, t._POSignalsUtils.Util[s(i)](this[s(r)][s(586)])]; - case 1: - return a[s(o)](), n({ message: 'Fingerprint timeout' }), [2]; - } - }); - }); - })), - [4, Promise[l(r)]([a, s])]); - case 1: - return [2, c[l(o)]()]; - } - }); - }); - }), - (Dt.prototype.getBroPrintFingerPrint = function () { - return __awaiter(this, void 0, void 0, function () { - var e = 857, - n = this; - return __generator(this, function (i) { - return [ - 2, - new Promise(function (i, r) { - var o = 599, - a = _0x34d2; - t[a(978)] - [a(1164)]() - .then(function (t) { - (n[a(936)] = t), i(t); - }) - [a(e)](function (e) { - var n = a; - t[n(815)][n(o)].warn( - 'Failed to get Fingerprint from getCurrentBrowserFingerPrint', - e, - ), - r(e); - }); - }), - ]; - }); - }); - }), - (Dt[Lt(816)].getSensorsMetadata = function () { - var t = Lt, - e = {}; - return ( - this.flatAndAddMetadata(e, 'DEDVCE_LIGHT_SUPPORTED', function () { - return 'ondevicelight' in window; }), - this[t(1160)](e, t(1294), function () { - return t(Et) in window; + new E(4, 4, 8, 4, v), + new E(4, 5, 16, 8, v), + new E(4, 6, 32, 32, v), + new E(4, 4, 16, 16, y), + new E(8, 16, 32, 32, y), + new E(8, 16, 128, 128, y), + new E(8, 32, 128, 256, y), + new E(32, 128, 258, 1024, y), + new E(32, 258, 258, 4096, y), + ]), + (p.deflateInit = function (d, F) { + return U(d, F, Re, Oe, Xe, Te); }), - !window.DeviceMotionEvent && - this[t(1160)](e, t(bt), function () { - return !1; - }), - !window[t(1331)] && - this[t(1160)](e, t(yt), function () { - return !1; - }), - this.flatAndAddMetadata(e, 'PROXIMITY_SUPPORTED', function () { - return t(1264) in window; + (p.deflateInit2 = U), + (p.deflateReset = S), + (p.deflateResetKeep = w), + (p.deflateSetHeader = function (d, F) { + return d && d.state ? (d.state.wrap !== 2 ? we : ((d.state.gzhead = F), q)) : we; }), - e - ); - }), - (Dt[Lt(816)][Lt(553)] = function (n) { - return __awaiter(this, void 0, void 0, function () { - var i, - r, - o, - a, - s, - u, - c, - l, - d, - h, - f, - g, - p, - v, - _, - m, - b, - y, - E, - w, - S, - O, - I = 968, - T = 981, - A = 1160, - P = 1115, - C = 1160, - L = 636, - D = 1160, - x = 1012, - M = 930, - R = 487, - U = 1160, - k = 519, - N = 1272, - B = 1160, - F = 1160, - H = 820, - V = 1160, - G = 651, - j = 1076, - W = 1160, - K = 1136, - z = 887, - Y = 1160, - X = 1060, - q = 995, - J = 722, - Z = 497, - Q = 1160, - $ = 1186, - tt = 621, - et = 1278, - nt = 1097, - it = 1160, - rt = 966, - ot = 1160, - at = 1160, - st = 1160, - ut = 738, - ct = 1160, - lt = 1160, - dt = 1160, - ht = 1160, - ft = 824, - gt = 877, - pt = 1105, - vt = 555, - _t = 574, - mt = 1160, - bt = 689, - yt = 817, - Et = 1073, - wt = 1073, - St = 564, - Ot = 1233, - It = 566, - Tt = 520, - At = 1156, - Pt = 1160, - Ct = 945, - Lt = 1160, - Dt = 1124, - xt = 540, - Mt = 578, - Rt = 619, - Ut = 667, - kt = 1022, - Nt = 1198, - Bt = 1160, - Ft = 1160, - Ht = 731, - Vt = 1093, - Gt = 1160, - jt = 1160, - Wt = 1263, - Kt = 949, - zt = 773, - Yt = 1292, - Xt = 823, - qt = 876, - Jt = 1165, - Zt = 714, - Qt = 1160, - $t = 1214, - te = 982, - ee = 503, - ne = 1140, - ie = 919, - re = 1160, - oe = 1153, - ae = 536, - se = 1089, - ue = 512, - ce = 1160, - le = 1192, - de = 639, - he = 1232, - fe = 1142, - ge = 1160, - pe = 628, - ve = 686, - _e = 714, - me = 607, - be = 1233, - ye = 1022, - Ee = 1022, - we = 821, - Se = 1160, - Oe = 794, - Ie = 1047, - Te = 565, - Ae = 638, - Pe = 565, - Ce = 601, - Le = 1161, - De = 1114, - xe = 1301, - Me = 765, - Re = 947, - Ue = 490, - ke = 947, - Ne = 1003, - Be = 1036, - Fe = 828, - He = 799, - Ve = 947, - Ge = 828, - je = 1013, - We = 1087, - Ke = 590, - ze = 498, - Ye = 976, - Xe = 519, - qe = 825, - Je = 636, - Ze = 981, - Qe = 519, - $e = 1183, - tn = 981, - en = 519, - nn = 636, - rn = 981, - on = 636, - an = 494, - sn = 981, - un = 819, - cn = 562, - ln = 812, - dn = 981, - hn = 640, - fn = this; - return __generator(this, function (gn) { - var pn = 925, - vn = 1038, - _n = 781, - mn = 571, - bn = 781, - yn = 1160, - En = 1302, - wn = 1223, - Sn = 1007, - On = 1069, - In = 1223, - Tn = 1302, - An = 1116, - Pn = 1190, - Cn = 1334, - Ln = 1327, - Dn = 1026, - xn = 565, - Mn = 509, - Rn = 1286, - Un = 660, - kn = 1205, - Nn = 644, - Bn = 882, - Fn = 1005, - Hn = 888, - Vn = 663, - Gn = 1073, - jn = 1031, - Wn = 1160, - Kn = 1182, - zn = 1160, - Yn = 809, - Xn = 1160, - qn = 800, - Jn = 1160, - Zn = 830, - Qn = 665, - $n = 989, - ti = 854, - ei = 1160, - ni = 917, - ii = 809, - ri = 1172, - oi = 1081, - ai = 560, - si = 809, - ui = 601, - ci = 495, - li = 809, - di = 783, - hi = 809, - fi = 947, - gi = 947, - pi = 975, - vi = 947, - _i = 601, - mi = 600, - bi = 1219, - yi = 837, - Ei = 645, - wi = 674, - Si = 601, - Oi = 636, - Ii = 981, - Ti = 636, - Ai = _0x34d2; - switch (gn[Ai(I)]) { - case 0: - return ( - (i = this), - (r = {}), - this.flatAndAddMetadata(r, Ai(579), function () { - return fn[Ai(hn)]; - }), - this[Ai(1160)](r, Ai(685), function () { - return fn[Ai(936)]; - }), - this[Ai(636)][Ai(T)].userAgentData && - (this[Ai(A)](r, Ai(P), function () { - var t = Ai; - return fn.metadataParams[t(dn)][t(894)]; - }), - this[Ai(C)](r, 'OS_VERSION', function () { - var t = Ai; - return fn[t(Ti)].browserInfo[t(859)]; - })), - this[Ai(L)][Ai(981)][Ai(519)] && - (this[Ai(D)](r, Ai(x), function () { - var t = Ai; - return fn[t(636)][t(981)].deviceModel; - }), - this[Ai(D)](r, 'DEVICE_VENDOR', function () { - var t = Ai; - return fn[t(636)][t(981)][t(ln)]; - }), - this[Ai(1160)](r, Ai(M), function () { - var t = Ai; - return fn[t(636)][t(981)].deviceCategory; - })), - this[Ai(L)][Ai(981)][Ai(519)] && - (this.flatAndAddMetadata(r, Ai(R), function () { - var t = Ai; - return fn.metadataParams.browserInfo[t(cn)]; - }), - this[Ai(U)](r, 'BROWSER_ENGINE_VERSION', function () { - var t = Ai; - return fn[t(636)][t(Ii)][t(890)]; - })), - this.metadataParams[Ai(981)][Ai(k)] && - this[Ai(1160)](r, Ai(N), function () { - var t = Ai; - return fn[t(636)][t(sn)][t(un)]; - }), - this[Ai(L)][Ai(981)][Ai(519)] && - (this[Ai(B)](r, Ai(492), function () { - var t = Ai; - return fn[t(on)].browserInfo[t(an)]; - }), - this[Ai(F)](r, Ai(850), function () { - var t = Ai; - return fn[t(636)].browserInfo[t(1014)]; - }), - this[Ai(1160)](r, 'BROWSER_MAJOR', function () { - var t = Ai; - return fn[t(nn)][t(rn)][t(1199)]; - }), - this[Ai(D)](r, Ai(1303), function () { - var t = Ai; - return fn[t(Oi)][t(981)][t(847)]; - })), - (o = new e[Ai(H)]()), - this[Ai(D)](r, Ai(1311), function () { - var t = Ai; - return o[t(514)](fn[t(636)][t(981)][t(519)].ua); - }), - this[Ai(1160)](r, Ai(941), function () { - var t = Ai; - return o[t(1201)](fn[t(636)][t(tn)][t(en)].ua); - }), - this[Ai(V)](r, 'IS_CHROME_FAMILY', function () { - var t = Ai; - return o[t(qe)](fn[t(Je)][t(Ze)][t(Qe)][t($e)]); - }), - this.flatAndAddMetadata(r, Ai(G), function () { - var t = Ai; - return o.isElectronFamily(fn[t(636)].browserInfo[t(Xe)].ua); - }), - this[Ai(1160)](r, Ai(826), function () { - return navigator[Ai(799)]; - }), - this[Ai(1160)](r, Ai(j), function () { - var t = Ai; - return navigator.plugins ? navigator[t(1301)][t(Si)] : null; - }), - this.flatAndAddMetadata(r, Ai(911), function () { - var t = Ai; - return navigator[t(wi)] ? navigator[t(wi)].length : null; - }), - this[Ai(W)](r, Ai(K), function () { - var t = Ai; - return ( - navigator.language || - navigator[t(ze)] || - navigator.browserLanguage || - navigator[t(Ye)] - ); - }), - this[Ai(1160)](r, Ai(1029), function () { - return navigator[Ai(Ke)]; - }), - this.flatAndAddMetadata(r, Ai(z), function () { - return navigator[Ai(718)] || navigator.msMaxTouchPoints; - }), - this[Ai(Y)](r, Ai(1010), function () { - var t = Ai; - return navigator.pointerEnabled || navigator[t(Ei)]; - }), - this[Ai(F)](r, Ai(X), function () { - return navigator.webdriver; - }), - this.flatAndAddMetadata(r, Ai(846), function () { - return navigator[Ai(987)]; - }), - this[Ai(Y)](r, Ai(q), function () { - return null != navigator[Ai(yi)]; - }), - this.flatAndAddMetadata(r, Ai(896), function () { - return 'Notification' in window; - }), - this[Ai(1160)](r, Ai(J), function () { - return navigator.appCodeName; - }), - this[Ai(1160)](r, 'NAVIGATOR_APP_NAME', function () { - return navigator[Ai(706)]; - }), - this[Ai(1160)](r, Ai(1256), function () { - return navigator[Ai(913)]; - }), - this[Ai(1160)](r, 'NAVIGATOR_ON_LINE', function () { - return navigator[Ai(bi)]; - }), - this[Ai(F)](r, Ai(Z), function () { - return navigator[Ai(622)]; - }), - this[Ai(Q)](r, Ai(965), function () { - return navigator[Ai(814)]; - }), - this.flatAndAddMetadata(r, Ai($), function () { - return navigator[Ai(841)]; - }), - this[Ai(D)](r, 'NAVIGATOR_PDF_VIEWER_ENABLED', function () { - return navigator.pdfViewerEnabled; - }), - this[Ai(Q)](r, Ai(tt), function () { - return navigator.deviceMemory; - }), - this[Ai(1160)](r, Ai(1277), function () { - var t = Ai; - return navigator[t(676)] ? navigator.connection[t(We)] : null; - }), - n[Ai(886)]('modernizr') ? [3, 2] : [4, this.safeAddModernizrFeatures(r)] - ); - case 1: - gn[Ai(et)](), (gn[Ai(I)] = 2); - case 2: - if ( - ((a = window[Ai(nt)] || window._ST_PING) - ? this[Ai(it)](r, Ai(rt), function () { - return a; - }) - : this[Ai(A)](r, Ai(rt), function () { - return Ai(980); - }), - this[Ai(ot)](r, Ai(853), function () { - var t = Ai; - return typeof window !== t(727) && - window.history && - typeof window.history.length === t(818) - ? window.history.length - : null; - }), - (s = new e.WebGLMetadata()), - this[Ai(at)](r, Ai(870), function () { - return s[Ai(je)](); - }), - this[Ai(Q)](r, Ai(924), function () { - var t = Ai; - return s[t(947)]()[t(He)] + '~' + s[t(Ve)]()[t(Ge)]; - }), - this.flatAndAddMetadata(r, 'IS_WEBGL2', function () { - return s[Ai(716)](); - }), - s[Ai(716)]() - ? this[Ai(st)](r, Ai(ut), function () { - var t = Ai; - return s[t(947)]().vendor + '~' + s.getWebglData()[t(Fe)]; - }) - : this[Ai(1160)](r, Ai(ut), function () { - return ''; - }), - this[Ai(ct)](r, Ai(1203), function () { - var t = Ai; - return s[t(947)]()[t(mi)]; - }), - this[Ai(lt)](r, 'WEBGL_SHADINGLANGUAGEVERSION', function () { - var t = Ai; - return s.getWebglData()[t(Be)]; - }), - this.flatAndAddMetadata(r, Ai(858), function () { - var t = Ai; - return s.getWebglData()[t(744)][t(_i)]; - }), - this[Ai(dt)](r, Ai(1184), function () { - return s[Ai(947)]().maxTextureSize; - }), - this[Ai(ht)](r, Ai(613), function () { - var t = Ai; - return s.getWebglData()[t(Ne)]; - }), - this.flatAndAddMetadata(r, 'WEBGL_MAXTEXTUREIMAGEUNITS', function () { - return s[Ai(947)]().maxTextureImageUnits; - }), - this[Ai(1160)](r, Ai(ft), function () { - var t = Ai; - return s[t(vi)]()[t(1088)]; - }), - this[Ai(1160)](r, Ai(986), function () { - var t = Ai; - return s[t(ke)]()[t(544)]; - }), - this[Ai(1160)](r, Ai(gt), function () { - var t = Ai; - return s.getWebglData()[t(pi)]; - }), - this[Ai(1160)](r, Ai(pt), function () { - var t = Ai; - return s[t(Re)]()[t(Ue)]; - }), - this[Ai(it)](r, 'WEBGL_MAXVERTEXUNIFORMVECTORS', function () { - return s[Ai(gi)]().maxVertexUniformVectors; - }), - this[Ai(1160)](r, Ai(vt), function () { - var t = Ai; - return s[t(fi)]()[t(1162)]; - }), - this[Ai(1160)](r, Ai(_t), function () { - return s.getHasLiedLanguages(); - }), - this.flatAndAddMetadata(r, 'HASLIEDRESOLUTION', function () { - return s.getHasLiedResolution(); - }), - this[Ai(mt)](r, Ai(bt), function () { - return s[Ai(697)](); - }), - this[Ai(1160)](r, Ai(yt), function () { - return s[Ai(1132)](); - }), - this[Ai(Et)]) + (p.deflate = function (d, F) { + var G, A, re, de; + if (!d || !d.state || F > le || F < 0) return d ? n(d, we) : we; + if ( + ((A = d.state), + !d.output || (!d.input && d.avail_in !== 0) || (A.status === $ && F !== Z)) + ) + return n(d, d.avail_out === 0 ? B : we); + if (((A.strm = d), (G = A.last_flush), (A.last_flush = F), A.status === tt)) + if (A.wrap === 2) + (d.adler = 0), + t(A, 31), + t(A, 139), + t(A, 8), + A.gzhead + ? (t( + A, + (A.gzhead.text ? 1 : 0) + + (A.gzhead.hcrc ? 2 : 0) + + (A.gzhead.extra ? 4 : 0) + + (A.gzhead.name ? 8 : 0) + + (A.gzhead.comment ? 16 : 0), + ), + t(A, 255 & A.gzhead.time), + t(A, (A.gzhead.time >> 8) & 255), + t(A, (A.gzhead.time >> 16) & 255), + t(A, (A.gzhead.time >> 24) & 255), + t(A, A.level === 9 ? 2 : A.strategy >= oe || A.level < 2 ? 4 : 0), + t(A, 255 & A.gzhead.os), + A.gzhead.extra && + A.gzhead.extra.length && + (t(A, 255 & A.gzhead.extra.length), + t(A, (A.gzhead.extra.length >> 8) & 255)), + A.gzhead.hcrc && (d.adler = R(d.adler, A.pending_buf, A.pending, 0)), + (A.gzindex = 0), + (A.status = rt)) + : (t(A, 0), + t(A, 0), + t(A, 0), + t(A, 0), + t(A, 0), + t(A, A.level === 9 ? 2 : A.strategy >= oe || A.level < 2 ? 4 : 0), + t(A, Se), + (A.status = W)); + else { + var ce = (Re + ((A.w_bits - 8) << 4)) << 8; + (ce |= + (A.strategy >= oe || A.level < 2 + ? 0 + : A.level < 6 + ? 1 + : A.level === 6 + ? 2 + : 3) << 6), + A.strstart !== 0 && (ce |= et), + (ce += 31 - (ce % 31)), + (A.status = W), + e(A, ce), + A.strstart !== 0 && (e(A, d.adler >>> 16), e(A, 65535 & d.adler)), + (d.adler = 1); + } + if (A.status === rt) + if (A.gzhead.extra) { + for ( + re = A.pending; + A.gzindex < (65535 & A.gzhead.extra.length) && + (A.pending !== A.pending_buf_size || + (A.gzhead.hcrc && + A.pending > re && + (d.adler = R(d.adler, A.pending_buf, A.pending - re, re)), + s(d), + (re = A.pending), + A.pending !== A.pending_buf_size)); + ) - for (l in ((u = function (t) { - var e = 809, - n = 809, - o = 809, - a = 783, - s = 783, - u = Ai; - if (!c[u(1073)].hasOwnProperty(t)) return u(Vn); - var l = c[u(Gn)][t]; - t == u(jn) - ? c[u(Wn)](r, 'JS_FONTS', function () { - var t = u; - return l[t(809)][t(601)]; - }) - : t == u(Kn) - ? c[u(zn)](r, 'IS_CANVAS', function () { - return null != l[u(809)]; - }) - : 'screenResolution' == t && l.value && l[u(Yn)].length - ? c[u(Xn)](r, u(qn), function () { - var t = u; - return l[t(809)][t(s)](','); - }) - : 'touchSupport' == t && l[u(809)] - ? c[u(Jn)](r, 'TOUCH_SUPPORT', function () { - return l.value; - }) - : t == u(Zn) && l.value - ? c.flatAndAddMetadata(r, u(Qn), function () { - return l[u(809)]; - }) - : 'osCpu' == t && l[u(809)] - ? c[u(1160)](r, u($n), function () { - return l[u(809)]; - }) - : t == u(ti) && l.value - ? c[u(ei)](r, 'COOKIES_ENABLED', function () { - return l[u(hi)]; - }) - : t == u(ni) && l[u(809)] && l[u(ii)].length - ? c.flatAndAddMetadata(r, u(1101), function () { - var t = u; - return l[t(809)][t(a)](','); - }) - : t == u(1304) && l[u(809)] - ? c[u(1160)](r, u(598), function () { - return l.value; - }) - : t == u(ri) && l[u(oi)] - ? c[u(1160)](r, u(1271), function () { - return l[u(1081)]; - }) - : 'fontPreferences' == t && l[u(809)] - ? c[u(Xn)](r, u(499), function () { - return l[u(o)]; - }) - : t == u(ai) && l[u(809)] - ? c[u(zn)](r, 'PDF_VIEWER_ENABLED', function () { - return l[u(n)]; - }) - : 'vendorFlavors' == t && - l[u(si)] && - l.value[u(ui)] - ? c.flatAndAddMetadata( - r, - 'VENDOR_FLAVORS', - function () { - var t = u; - return l[t(809)][t(di)](','); - }, - ) - : t == u(1109) && l[u(si)] - ? c.flatAndAddMetadata( - r, - 'VIDEO_CARD', - function () { - var t = u; - return l[t(e)][t(828)]; - }, - ) - : i.fingerPrintComponentKeys[u(886)](t) && - null != t && - c[u(1160)](r, t[u(ci)](), function () { - return l[u(li)]; - }); - }), - (c = this), - this[Ai(wt)])) - u(l); - for (p in (this[Ai(1160)](r, 'IS_PRIVATE_MODE', function () { - return fn[Ai(Hn)]; - }), - this[Ai(1160)](r, Ai(St), function () { - return fn[Ai(Fn)]; - }), - (d = { - selenium: - navigator[Ai(1302)] || - t[Ai(815)].Util.getAttribute( - window[Ai(Ot)].documentElement, - 'webdriver', - ) || - '', - phantomjs: { - _phantom: window._phantom || '', - __phantomas: window[Ai(It)] || '', - callPhantom: window[Ai(Tt)] || '', - }, - nodejs: { Buffer: window.Buffer || '' }, - couchjs: { emit: window[Ai(874)] || '' }, - rhino: { spawn: window[Ai(At)] || '' }, - chromium: { - domAutomationController: window[Ai(567)] || '', - domAutomation: window[Ai(653)] || '', - }, - outerWidth: window.outerWidth, - outerHeight: window.outerHeight, - }), - this[Ai(it)](r, 'HEADLESS', function () { - return d; - }), - this[Ai(Pt)](r, 'HEADLESS', function () { - return fn[Ai(Me)]; - }), - this.flatAndAddMetadata(r, Ai(Ct), function () { - var t = Ai, - e = {}; - for (var n in fn.lieTests) e[n] = JSON[t(kn)](fn[t(Nn)][n]); - return Object[t(Bn)](e).length > 0 ? e : null; - }), - this[Ai(1160)](r, 'STEALTH', function () { - var t = Ai; - return new e.DetectStealth(n)[t(Un)](); - }), - this[Ai(Lt)](r, 'REF_LINK', function () { - return document[Ai(Rn)]; - }), - this.flatAndAddMetadata(r, 'PLUGINS', function () { - for ( - var t = Ai, e = { length: navigator.plugins[t(601)], details: [] }, n = 0; - n < e[t(Ce)]; - n++ - ) - e.details[t(Le)]({ - length: navigator[t(1301)][n][t(601)], - name: navigator.plugins[n][t(De)], - version: navigator[t(1301)][n].version, - filename: navigator[t(xe)][n][t(1215)], - }); - return e; - }), - this.flatAndAddMetadata(r, Ai(Dt), function () { - return fn[Ai(1275)]; - }), - this[Ai(lt)](r, 'VIDEO', function () { - return fn[Ai(Mn)]; - }), - this.flatAndAddMetadata(r, Ai(xt), function () { - var t = Ai; - return fn[t(Dn)][t(xn)](); - }), - this.flatAndAddMetadata(r, Ai(Mt), function () { - var t = Ai; - return fn[t(Ae)][t(Pe)](); - }), - this[Ai(mt)](r, 'AUDIO_OUTPUT_DEVICES', function () { - var t = Ai; - return fn[t(614)][t(Te)](); - }), - this[Ai(1160)](r, 'MEDIA_CODEC_MP4_AVC1', function () { - var t = Ai; - return fn.getMediaCodec(t(Ie)); - }), - this.flatAndAddMetadata(r, Ai(Rt), function () { - var t = Ai; - return fn[t(1334)](t(760)); - }), - this[Ai(1160)](r, Ai(Ut), function () { - var t = Ai; - return fn[t(Cn)](t(Ln)); - }), - (h = this.metadataParams[Ai(615)]), - (f = function (t) { - var e = 1334, - n = Ai; - if (!h.hasOwnProperty(t)) return n(663); - g[n(Se)](r, n(Oe) + t, function () { - return fn[n(e)](h[t]); - }); - }), - (g = this), - h)) - f(p); - window[Ai(kt)] && - window.performance[Ai(Nt)] && - (this[Ai(Bt)](r, Ai(1246), function () { - return window[Ai(1022)].memory.jsHeapSizeLimit; - }), - this[Ai(Ft)](r, Ai(Ht), function () { - var t = Ai; - return window[t(Ee)].memory[t(we)]; - }), - this[Ai(ot)](r, Ai(551), function () { - var t = Ai; - return window[t(ye)][t(1198)][t(808)]; - })), - this.flatAndAddMetadata(r, Ai(856), function () { - return navigator[Ai(Pn)]; - }), - this[Ai(lt)](r, 'selenium_in_document', function () { - var t = Ai; - return e[t(1116)][t(1108)](); - }), - this[Ai(1160)](r, Ai(Vt), function () { - return e.SeleniumProperties.seleniumInWindow(); - }), - this[Ai(1160)](r, Ai(970), function () { - return e[Ai(An)].seleniumInNavigator(); - }), - this[Ai(Gt)](r, Ai(897), function () { - var t = Ai; - return e.SeleniumProperties[t(1053)](); - }), - this[Ai(jt)](r, Ai(Wt), function () { - var e = Ai; - return t._POSignalsUtils.Util.getAttribute( - window[e(be)].documentElement, - 'selenium', - ); - }), - this[Ai(1160)](r, Ai(Kt), function () { - var e = Ai; - return t[e(815)].Util[e(On)](window[e(1233)][e(In)], e(Tn)); - }), - this[Ai(1160)](r, 'DOCUMENT_ELEMENT_DRIVER', function () { - var e = Ai; - return t[e(815)][e(526)][e(1069)](window[e(1233)][e(wn)], e(Sn)); - }), - this.flatAndAddMetadata(r, Ai(zt), function () { - var e = Ai; - return !!t[e(815)].Util[e(1069)](document[e(795)](e(1273))[0], e(En)); - }), - this[Ai(1160)](r, Ai(Yt), function () { - return !!window[Ai(me)]; - }), - this[Ai(1160)](r, 'window_awesomium', function () { - return !!window.awesomium; - }), - this.flatAndAddMetadata(r, Ai(Xt), function () { - return !!window[Ai(1305)]; - }), - this[Ai(ot)](r, Ai(qt), function () { - return !!window[Ai(1204)]; - }), - this[Ai(D)](r, 'hasTrustToken', function () { - return 'hasTrustToken' in document; - }), - this[Ai(1160)](r, Ai(Jt), function () { - return 'trustTokenOperationError' in XMLHttpRequest[Ai(816)]; - }), - this[Ai(1160)](r, Ai(513), function () { - var t = Ai; - return t(513) in XMLHttpRequest[t(816)]; - }), - this.flatAndAddMetadata(r, Ai(Zt), function () { - var t = Ai; - return t(_e) in HTMLIFrameElement[t(816)]; - }), - this[Ai(A)](r, 'localStorage.length', function () { - return localStorage[Ai(601)]; - }), - this[Ai(Qt)](r, Ai($t), function () { - return sessionStorage.length; - }), - this[Ai(te)][Ai(ee)][Ai(ne)](function (t) { - var e = Ai; - fn[e(1160)](r, t[e(495)]() + e(1032), function () { - return !0; - }); - }), - this[Ai(Bt)](r, Ai(908), function () { - return !!fn[Ai(596)](); - }), - this[Ai(L)].webRtcUrl && - this[Ai(L)][Ai(762)][Ai(601)] > 0 && - (this[Ai(1016)](), - this[Ai(ie)][Ai(ne)](function (t, e) { - null != e && - null != t && - fn[Ai(yn)](r, e, function () { - return t; - }); - }), - this.webRtcIps.clear()), - window.matchMedia && - this[Ai(re)](r, Ai(oe), function () { - var t = Ai, - e = window[t(979)]('(min-width: ' + (window[t(ve)] - 1) + 'px)'); - return { matches: e[t(1086)], media: e[t(1269)] }; - }), - this[Ai(1213)](r, n), - window[Ai(ae)] && - this[Ai(1160)](r, Ai(1217), function () { - var t = Ai; - return window.Notification[t(1018)]; - }), - this.flatAndAddMetadata(r, Ai(1222), function () { - var t = Ai; - return window.chrome && t(pe) in window.chrome; - }), - this[Ai(1160)](r, Ai(855), function () { - var t = Ai; - return window[t(781)] && 'csi' in window[t(bn)]; - }), - this[Ai(1160)](r, Ai(se), function () { - var t = Ai; - return window[t(_n)] && t(mn) in window[t(_n)]; - }), - this[Ai(1160)](r, Ai(ue), function () { - return window.chrome && 'runtime' in window.chrome; - }), - this.addClientHints(r), - this[Ai(it)](r, Ai(1092), function () { - return !!navigator[Ai(vn)]; - }), - this[Ai(1160)](r, 'NAVIGATOR_HID_SUPPORTED', function () { - return !!navigator[Ai(761)]; - }), - this[Ai(ce)](r, Ai(1080), function () { - return !!navigator[Ai(pn)]; - }), - this[Ai(1160)](r, Ai(630), function () { - return !!navigator.presentation; - }), - (gn[Ai(968)] = 3); - case 3: - return ( - gn.trys[Ai(1161)]([3, 6, , 7]), - n[Ai(886)](Ai(944)) || !t[Ai(526)][Ai(688)](document[Ai(le)]) - ? [3, 5] - : [4, t.Util[Ai(1138)](100, document.interestCohort())] - ); - case 4: - (v = gn[Ai(1278)]()), - (_ = v.id), - (m = v[Ai(de)]), - this[Ai(mt)](r, Ai(729), function () { - return _; - }), - this.flatAndAddMetadata(r, Ai(1313), function () { - return m; - }), - (gn[Ai(968)] = 5); - case 5: - return [3, 7]; - case 6: - return gn[Ai(et)](), [3, 7]; - case 7: - for (E in ((b = function (e) { - var n = 526, - i = 636, - o = Ai; - y[o(ge)](r, e, function () { - var r = o; - return t[r(815)][r(n)].getProperty(window, fn[r(i)].dataPoints[e]); - }); - }), - (y = this), - this.metadataParams[Ai(568)])) - b(E); - for (S in (w = this[Ai(636)][Ai(1049)])) - w[Ai(he)](S) && - (O = 'window' === S ? window : window[S]) && - this[Ai(fe)](O, S.toUpperCase() + '_PROPERTY_DESCRIPTOR', w[S], r); - return [2, r]; + t(A, 255 & A.gzhead.extra[A.gzindex]), A.gzindex++; + A.gzhead.hcrc && + A.pending > re && + (d.adler = R(d.adler, A.pending_buf, A.pending - re, re)), + A.gzindex === A.gzhead.extra.length && ((A.gzindex = 0), (A.status = nt)); + } else A.status = nt; + if (A.status === nt) + if (A.gzhead.name) { + re = A.pending; + do { + if ( + A.pending === A.pending_buf_size && + (A.gzhead.hcrc && + A.pending > re && + (d.adler = R(d.adler, A.pending_buf, A.pending - re, re)), + s(d), + (re = A.pending), + A.pending === A.pending_buf_size) + ) { + de = 1; + break; + } + (de = + A.gzindex < A.gzhead.name.length + ? 255 & A.gzhead.name.charCodeAt(A.gzindex++) + : 0), + t(A, de); + } while (de !== 0); + A.gzhead.hcrc && + A.pending > re && + (d.adler = R(d.adler, A.pending_buf, A.pending - re, re)), + de === 0 && ((A.gzindex = 0), (A.status = Je)); + } else A.status = Je; + if (A.status === Je) + if (A.gzhead.comment) { + re = A.pending; + do { + if ( + A.pending === A.pending_buf_size && + (A.gzhead.hcrc && + A.pending > re && + (d.adler = R(d.adler, A.pending_buf, A.pending - re, re)), + s(d), + (re = A.pending), + A.pending === A.pending_buf_size) + ) { + de = 1; + break; + } + (de = + A.gzindex < A.gzhead.comment.length + ? 255 & A.gzhead.comment.charCodeAt(A.gzindex++) + : 0), + t(A, de); + } while (de !== 0); + A.gzhead.hcrc && + A.pending > re && + (d.adler = R(d.adler, A.pending_buf, A.pending - re, re)), + de === 0 && (A.status = _); + } else A.status = _; + if ( + (A.status === _ && + (A.gzhead.hcrc + ? (A.pending + 2 > A.pending_buf_size && s(d), + A.pending + 2 <= A.pending_buf_size && + (t(A, 255 & d.adler), + t(A, (d.adler >> 8) & 255), + (d.adler = 0), + (A.status = W))) + : (A.status = W)), + A.pending !== 0) + ) { + if ((s(d), d.avail_out === 0)) return (A.last_flush = -1), q; + } else if (d.avail_in === 0 && r(F) <= r(G) && F !== Z) return n(d, B); + if (A.status === $ && d.avail_in !== 0) return n(d, B); + if (d.avail_in !== 0 || A.lookahead !== 0 || (F !== ee && A.status !== $)) { + var fe = + A.strategy === oe + ? g(A, F) + : A.strategy === ge + ? L(A, F) + : T[A.level].func(A, F); + if (((fe !== ae && fe !== ve) || (A.status = $), fe === j || fe === ae)) + return d.avail_out === 0 && (A.last_flush = -1), q; + if ( + fe === ie && + (F === M + ? C._tr_align(A) + : F !== le && + (C._tr_stored_block(A, 0, 0, !1), + F === K && + (a(A.head), + A.lookahead === 0 && + ((A.strstart = 0), (A.block_start = 0), (A.insert = 0)))), + s(d), + d.avail_out === 0) + ) + return (A.last_flush = -1), q; } - }); - }); - }), - (Dt[Lt(h)][Lt(g)] = function (e) { - var n = 622, - i = Lt; - try { - var r = navigator[i(519)]; - if (!r) return; - this.flatAndAddMetadata(e, i(1285), function () { - return r[i(n)]; + return F !== Z + ? q + : A.wrap <= 0 + ? be + : (A.wrap === 2 + ? (t(A, 255 & d.adler), + t(A, (d.adler >> 8) & 255), + t(A, (d.adler >> 16) & 255), + t(A, (d.adler >> 24) & 255), + t(A, 255 & d.total_in), + t(A, (d.total_in >> 8) & 255), + t(A, (d.total_in >> 16) & 255), + t(A, (d.total_in >> 24) & 255)) + : (e(A, d.adler >>> 16), e(A, 65535 & d.adler)), + s(d), + A.wrap > 0 && (A.wrap = -A.wrap), + A.pending !== 0 ? q : be); }), - this[i(ft)](e, 'NAVIGATOR_CLIENT_HINTS_MOBILE', function () { - return r[i(879)]; - }); - var o = r[i(871)]; - if (!o) return; + (p.deflateEnd = function (d) { + var F; + return d && d.state + ? (F = d.state.status) !== tt && + F !== rt && + F !== nt && + F !== Je && + F !== _ && + F !== W && + F !== $ + ? n(d, we) + : ((d.state = null), F === W ? n(d, He) : q) + : we; + }), + (p.deflateSetDictionary = function (d, F) { + var G, + A, + re, + de, + ce, + fe, + We, + ye, + at = F.length; + if ( + !d || + !d.state || + ((G = d.state), + (de = G.wrap) === 2 || (de === 1 && G.status !== tt) || G.lookahead) + ) + return we; + for ( + de === 1 && (d.adler = k(d.adler, F, at, 0)), + G.wrap = 0, + at >= G.w_size && + (de === 0 && + (a(G.head), (G.strstart = 0), (G.block_start = 0), (G.insert = 0)), + (ye = new O.Buf8(G.w_size)), + O.arraySet(ye, F, at - G.w_size, G.w_size, 0), + (F = ye), + (at = G.w_size)), + ce = d.avail_in, + fe = d.next_in, + We = d.input, + d.avail_in = at, + d.next_in = 0, + d.input = F, + x(G); + G.lookahead >= _e; + + ) { + (A = G.strstart), (re = G.lookahead - (_e - 1)); + do + (G.ins_h = ((G.ins_h << G.hash_shift) ^ G.window[A + _e - 1]) & G.hash_mask), + (G.prev[A & G.w_mask] = G.head[G.ins_h]), + (G.head[G.ins_h] = A), + A++; + while (--re); + (G.strstart = A), (G.lookahead = _e - 1), x(G); + } + return ( + (G.strstart += G.lookahead), + (G.block_start = G.strstart), + (G.insert = G.lookahead), + (G.lookahead = 0), + (G.match_length = G.prev_length = _e - 1), + (G.match_available = 0), + (d.next_in = fe), + (d.input = We), + (d.avail_in = ce), + (G.wrap = de), + q + ); + }), + (p.deflateInfo = 'pako deflate (from Nodeca project)'); + }, + { '../utils/common': 1, './adler32': 3, './crc32': 4, './messages': 6, './trees': 7 }, + ], + 6: [ + function (c, h, p) { + 'use strict'; + h.exports = { + 2: 'need dictionary', + 1: 'stream end', + 0: '', + '-1': 'file error', + '-2': 'stream error', + '-3': 'data error', + '-4': 'insufficient memory', + '-5': 'buffer error', + '-6': 'incompatible version', + }; + }, + {}, + ], + 7: [ + function (c, h, p) { + 'use strict'; + function n(_) { + for (var W = _.length; --W >= 0; ) _[W] = 0; + } + function r(_, W, $, j, ie) { + (this.static_tree = _), + (this.extra_bits = W), + (this.extra_base = $), + (this.elems = j), + (this.max_length = ie), + (this.has_stree = _ && _.length); + } + function a(_, W) { + (this.dyn_tree = _), (this.max_code = 0), (this.stat_desc = W); + } + function s(_) { + return _ < 256 ? _e[_] : _e[256 + (_ >>> 7)]; + } + function i(_, W) { + (_.pending_buf[_.pending++] = 255 & W), + (_.pending_buf[_.pending++] = (W >>> 8) & 255); + } + function t(_, W, $) { + _.bi_valid > De - $ + ? ((_.bi_buf |= (W << _.bi_valid) & 65535), + i(_, _.bi_buf), + (_.bi_buf = W >> (De - _.bi_valid)), + (_.bi_valid += $ - De)) + : ((_.bi_buf |= (W << _.bi_valid) & 65535), (_.bi_valid += $)); + } + function e(_, W, $) { + t(_, $[2 * W], $[2 * W + 1]); + } + function l(_, W) { + var $ = 0; + do ($ |= 1 & _), (_ >>>= 1), ($ <<= 1); + while (--W > 0); + return $ >>> 1; + } + function o(_) { + _.bi_valid === 16 + ? (i(_, _.bi_buf), (_.bi_buf = 0), (_.bi_valid = 0)) + : _.bi_valid >= 8 && + ((_.pending_buf[_.pending++] = 255 & _.bi_buf), + (_.bi_buf >>= 8), + (_.bi_valid -= 8)); + } + function x(_, W) { + var $, + j, + ie, + ae, + ve, + Se, + d = W.dyn_tree, + F = W.max_code, + G = W.stat_desc.static_tree, + A = W.stat_desc.has_stree, + re = W.stat_desc.extra_bits, + de = W.stat_desc.extra_base, + ce = W.stat_desc.max_length, + fe = 0; + for (ae = 0; ae <= ge; ae++) _.bl_count[ae] = 0; + for (d[2 * _.heap[_.heap_max] + 1] = 0, $ = _.heap_max + 1; $ < oe; $++) + (ae = d[2 * d[2 * (j = _.heap[$]) + 1] + 1] + 1) > ce && ((ae = ce), fe++), + (d[2 * j + 1] = ae), + j > F || + (_.bl_count[ae]++, + (ve = 0), + j >= de && (ve = re[j - de]), + (Se = d[2 * j]), + (_.opt_len += Se * (ae + ve)), + A && (_.static_len += Se * (G[2 * j + 1] + ve))); + if (fe !== 0) { + do { + for (ae = ce - 1; _.bl_count[ae] === 0; ) ae--; + _.bl_count[ae]--, (_.bl_count[ae + 1] += 2), _.bl_count[ce]--, (fe -= 2); + } while (fe > 0); + for (ae = ce; ae !== 0; ae--) + for (j = _.bl_count[ae]; j !== 0; ) + (ie = _.heap[--$]) > F || + (d[2 * ie + 1] !== ae && + ((_.opt_len += (ae - d[2 * ie + 1]) * d[2 * ie]), (d[2 * ie + 1] = ae)), + j--); + } + } + function v(_, W, $) { + var j, + ie, + ae = new Array(ge + 1), + ve = 0; + for (j = 1; j <= ge; j++) ae[j] = ve = (ve + $[j - 1]) << 1; + for (ie = 0; ie <= W; ie++) { + var Se = _[2 * ie + 1]; + Se !== 0 && (_[2 * ie] = l(ae[Se]++, Se)); + } + } + function y() { + var _, + W, + $, + j, + ie, + ae = new Array(ge + 1); + for ($ = 0, j = 0; j < we - 1; j++) + for (Pe[j] = $, _ = 0; _ < 1 << Xe[j]; _++) Ge[$++] = j; + for (Ge[$ - 1] = j, ie = 0, j = 0; j < 16; j++) + for (et[j] = ie, _ = 0; _ < 1 << $e[j]; _++) _e[ie++] = j; + for (ie >>= 7; j < ne; j++) + for (et[j] = ie << 7, _ = 0; _ < 1 << ($e[j] - 7); _++) _e[256 + ie++] = j; + for (W = 0; W <= ge; W++) ae[W] = 0; + for (_ = 0; _ <= 143; ) (Ke[2 * _ + 1] = 8), _++, ae[8]++; + for (; _ <= 255; ) (Ke[2 * _ + 1] = 9), _++, ae[9]++; + for (; _ <= 279; ) (Ke[2 * _ + 1] = 7), _++, ae[7]++; + for (; _ <= 287; ) (Ke[2 * _ + 1] = 8), _++, ae[8]++; + for (v(Ke, B + 1, ae), _ = 0; _ < ne; _++) + (it[2 * _ + 1] = 5), (it[2 * _] = l(_, 5)); + (tt = new r(Ke, Xe, He + 1, B, ge)), + (rt = new r(it, $e, 0, ne, ge)), + (nt = new r(new Array(0), pt, 0, se, Te)); + } + function L(_) { + var W; + for (W = 0; W < B; W++) _.dyn_ltree[2 * W] = 0; + for (W = 0; W < ne; W++) _.dyn_dtree[2 * W] = 0; + for (W = 0; W < se; W++) _.bl_tree[2 * W] = 0; + (_.dyn_ltree[2 * Fe] = 1), + (_.opt_len = _.static_len = 0), + (_.last_lit = _.matches = 0); + } + function g(_) { + _.bi_valid > 8 + ? i(_, _.bi_buf) + : _.bi_valid > 0 && (_.pending_buf[_.pending++] = _.bi_buf), + (_.bi_buf = 0), + (_.bi_valid = 0); + } + function E(_, W, $, j) { + g(_), + j && (i(_, $), i(_, ~$)), + H.arraySet(_.pending_buf, _.window, W, $, _.pending), + (_.pending += $); + } + function f(_, W, $, j) { + var ie = 2 * W, + ae = 2 * $; + return _[ie] < _[ae] || (_[ie] === _[ae] && j[W] <= j[$]); + } + function m(_, W, $) { for ( - var a = function (t) { - var n = i; - if (o[t][n(1232)](n(gt)) && o[t][n(pt)]('version')) { - var r = o[t][n(851)] + ':' + o[t][n(vt)]; - s[n(_t)](e, n(mt) + t, function () { - return r; - }); - } - }, - s = this, - u = 0; - u < o[i(601)]; - u++ + var j = _.heap[$], ie = $ << 1; + ie <= _.heap_len && + (ie < _.heap_len && f(W, _.heap[ie + 1], _.heap[ie], _.depth) && ie++, + !f(W, j, _.heap[ie], _.depth)); + ) - a(u); - } catch (e) { - t[i(815)].Logger.warn(i(1312), e); + (_.heap[$] = _.heap[ie]), ($ = ie), (ie <<= 1); + _.heap[$] = j; } - }), - (Dt.prototype.addPropertyDescriptorInfo = function (e, n, i, r) { - var o = 495, - a = Lt; - try { + function w(_, W, $) { + var j, + ie, + ae, + ve, + Se = 0; + if (_.last_lit !== 0) + do + (j = + (_.pending_buf[_.d_buf + 2 * Se] << 8) | _.pending_buf[_.d_buf + 2 * Se + 1]), + (ie = _.pending_buf[_.l_buf + Se]), + Se++, + j === 0 + ? e(_, ie, W) + : (e(_, (ae = Ge[ie]) + He + 1, W), + (ve = Xe[ae]) !== 0 && t(_, (ie -= Pe[ae]), ve), + e(_, (ae = s(--j)), $), + (ve = $e[ae]) !== 0 && t(_, (j -= et[ae]), ve)); + while (Se < _.last_lit); + e(_, Fe, W); + } + function S(_, W) { + var $, + j, + ie, + ae = W.dyn_tree, + ve = W.stat_desc.static_tree, + Se = W.stat_desc.has_stree, + d = W.stat_desc.elems, + F = -1; + for (_.heap_len = 0, _.heap_max = oe, $ = 0; $ < d; $++) + ae[2 * $] !== 0 + ? ((_.heap[++_.heap_len] = F = $), (_.depth[$] = 0)) + : (ae[2 * $ + 1] = 0); + for (; _.heap_len < 2; ) + (ae[2 * (ie = _.heap[++_.heap_len] = F < 2 ? ++F : 0)] = 1), + (_.depth[ie] = 0), + _.opt_len--, + Se && (_.static_len -= ve[2 * ie + 1]); + for (W.max_code = F, $ = _.heap_len >> 1; $ >= 1; $--) m(_, ae, $); + ie = d; + do + ($ = _.heap[1]), + (_.heap[1] = _.heap[_.heap_len--]), + m(_, ae, 1), + (j = _.heap[1]), + (_.heap[--_.heap_max] = $), + (_.heap[--_.heap_max] = j), + (ae[2 * ie] = ae[2 * $] + ae[2 * j]), + (_.depth[ie] = (_.depth[$] >= _.depth[j] ? _.depth[$] : _.depth[j]) + 1), + (ae[2 * $ + 1] = ae[2 * j + 1] = ie), + (_.heap[1] = ie++), + m(_, ae, 1); + while (_.heap_len >= 2); + (_.heap[--_.heap_max] = _.heap[1]), x(_, W), v(ae, F, _.bl_count); + } + function U(_, W, $) { + var j, + ie, + ae = -1, + ve = W[1], + Se = 0, + d = 7, + F = 4; for ( - var s = function (t) { - var i = 816, - a = 849, - s = 952, - c = _0x34d2; - u[c(1160)](r, n + '_' + t[c(o)](), function () { - var n = c, - r = e[n(i)] ? e[n(816)] : e, - o = Object[n(a)](r, t); - if (o) { - var u = o.get ? o[n(s)][n(565)]() : void 0; - return JSON[n(1205)]({ - configurable: o[n(964)], - enumerable: o.enumerable, - value: o[n(809)], - writable: o.writable, - getter: null != u && u.length < 100 ? u : void 0, - }); - } - return n(727); - }); - }, - u = this, - c = 0, - l = i; - c < l.length; - c++ - ) { - s(l[c]); + ve === 0 && ((d = 138), (F = 3)), W[2 * ($ + 1) + 1] = 65535, j = 0; + j <= $; + j++ + ) + (ie = ve), + (ve = W[2 * (j + 1) + 1]), + (++Se < d && ie === ve) || + (Se < F + ? (_.bl_tree[2 * ie] += Se) + : ie !== 0 + ? (ie !== ae && _.bl_tree[2 * ie]++, _.bl_tree[2 * Re]++) + : Se <= 10 + ? _.bl_tree[2 * Le]++ + : _.bl_tree[2 * Oe]++, + (Se = 0), + (ae = ie), + ve === 0 + ? ((d = 138), (F = 3)) + : ie === ve + ? ((d = 6), (F = 3)) + : ((d = 7), (F = 4))); + } + function T(_, W, $) { + var j, + ie, + ae = -1, + ve = W[1], + Se = 0, + d = 7, + F = 4; + for (ve === 0 && ((d = 138), (F = 3)), j = 0; j <= $; j++) + if (((ie = ve), (ve = W[2 * (j + 1) + 1]), !(++Se < d && ie === ve))) { + if (Se < F) + do e(_, ie, _.bl_tree); + while (--Se != 0); + else + ie !== 0 + ? (ie !== ae && (e(_, ie, _.bl_tree), Se--), + e(_, Re, _.bl_tree), + t(_, Se - 3, 2)) + : Se <= 10 + ? (e(_, Le, _.bl_tree), t(_, Se - 3, 3)) + : (e(_, Oe, _.bl_tree), t(_, Se - 11, 7)); + (Se = 0), + (ae = ie), + ve === 0 + ? ((d = 138), (F = 3)) + : ie === ve + ? ((d = 6), (F = 3)) + : ((d = 7), (F = 4)); + } + } + function O(_) { + var W; + for ( + U(_, _.dyn_ltree, _.l_desc.max_code), + U(_, _.dyn_dtree, _.d_desc.max_code), + S(_, _.bl_desc), + W = se - 1; + W >= 3 && _.bl_tree[2 * Qe[W] + 1] === 0; + W-- + ); + return (_.opt_len += 3 * (W + 1) + 5 + 5 + 4), W; + } + function C(_, W, $, j) { + var ie; + for (t(_, W - 257, 5), t(_, $ - 1, 5), t(_, j - 4, 4), ie = 0; ie < j; ie++) + t(_, _.bl_tree[2 * Qe[ie] + 1], 3); + T(_, _.dyn_ltree, W - 1), T(_, _.dyn_dtree, $ - 1); + } + function k(_) { + var W, + $ = 4093624447; + for (W = 0; W <= 31; W++, $ >>>= 1) if (1 & $ && _.dyn_ltree[2 * W] !== 0) return M; + if (_.dyn_ltree[18] !== 0 || _.dyn_ltree[20] !== 0 || _.dyn_ltree[26] !== 0) + return K; + for (W = 32; W < He; W++) if (_.dyn_ltree[2 * W] !== 0) return K; + return M; + } + function R(_, W, $, j) { + t(_, (le << 1) + (j ? 1 : 0), 3), E(_, W, $, !0); + } + var H = c('../utils/common'), + ee = 4, + M = 0, + K = 1, + Z = 2, + le = 0, + q = 1, + be = 2, + we = 29, + He = 256, + B = He + 1 + we, + ne = 30, + se = 19, + oe = 2 * B + 1, + ge = 15, + De = 16, + Te = 7, + Fe = 256, + Re = 16, + Le = 17, + Oe = 18, + Xe = [ + 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, + 5, 0, + ], + $e = [ + 0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, + 12, 12, 13, 13, + ], + pt = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], + Qe = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], + Ke = new Array(2 * (B + 2)); + n(Ke); + var it = new Array(2 * ne); + n(it); + var _e = new Array(512); + n(_e); + var Ge = new Array(256); + n(Ge); + var Pe = new Array(we); + n(Pe); + var et = new Array(ne); + n(et); + var tt, + rt, + nt, + Je = !1; + (p._tr_init = function (_) { + Je || (y(), (Je = !0)), + (_.l_desc = new a(_.dyn_ltree, tt)), + (_.d_desc = new a(_.dyn_dtree, rt)), + (_.bl_desc = new a(_.bl_tree, nt)), + (_.bi_buf = 0), + (_.bi_valid = 0), + L(_); + }), + (p._tr_stored_block = R), + (p._tr_flush_block = function (_, W, $, j) { + var ie, + ae, + ve = 0; + _.level > 0 + ? (_.strm.data_type === Z && (_.strm.data_type = k(_)), + S(_, _.l_desc), + S(_, _.d_desc), + (ve = O(_)), + (ie = (_.opt_len + 3 + 7) >>> 3), + (ae = (_.static_len + 3 + 7) >>> 3) <= ie && (ie = ae)) + : (ie = ae = $ + 5), + $ + 4 <= ie && W !== -1 + ? R(_, W, $, j) + : _.strategy === ee || ae === ie + ? (t(_, (q << 1) + (j ? 1 : 0), 3), w(_, Ke, it)) + : (t(_, (be << 1) + (j ? 1 : 0), 3), + C(_, _.l_desc.max_code + 1, _.d_desc.max_code + 1, ve + 1), + w(_, _.dyn_ltree, _.dyn_dtree)), + L(_), + j && g(_); + }), + (p._tr_tally = function (_, W, $) { + return ( + (_.pending_buf[_.d_buf + 2 * _.last_lit] = (W >>> 8) & 255), + (_.pending_buf[_.d_buf + 2 * _.last_lit + 1] = 255 & W), + (_.pending_buf[_.l_buf + _.last_lit] = 255 & $), + _.last_lit++, + W === 0 + ? _.dyn_ltree[2 * $]++ + : (_.matches++, + W--, + _.dyn_ltree[2 * (Ge[$] + He + 1)]++, + _.dyn_dtree[2 * s(W)]++), + _.last_lit === _.lit_bufsize - 1 + ); + }), + (p._tr_align = function (_) { + t(_, q << 1, 3), e(_, Fe, Ke), o(_); + }); + }, + { '../utils/common': 1 }, + ], + 8: [ + function (c, h, p) { + 'use strict'; + h.exports = function () { + (this.input = null), + (this.next_in = 0), + (this.avail_in = 0), + (this.total_in = 0), + (this.output = null), + (this.next_out = 0), + (this.avail_out = 0), + (this.total_out = 0), + (this.msg = ''), + (this.state = null), + (this.data_type = 2), + (this.adler = 0); + }; + }, + {}, + ], + '/lib/deflate.js': [ + function (c, h, p) { + 'use strict'; + function n(L) { + if (!(this instanceof n)) return new n(L); + this.options = s.assign( + { + level: x, + method: y, + chunkSize: 16384, + windowBits: 15, + memLevel: 8, + strategy: v, + to: '', + }, + L || {}, + ); + var g = this.options; + g.raw && g.windowBits > 0 + ? (g.windowBits = -g.windowBits) + : g.gzip && g.windowBits > 0 && g.windowBits < 16 && (g.windowBits += 16), + (this.err = 0), + (this.msg = ''), + (this.ended = !1), + (this.chunks = []), + (this.strm = new e()), + (this.strm.avail_out = 0); + var E = a.deflateInit2( + this.strm, + g.level, + g.method, + g.windowBits, + g.memLevel, + g.strategy, + ); + if (E !== o) throw new Error(t[E]); + if ((g.header && a.deflateSetHeader(this.strm, g.header), g.dictionary)) { + var f; + if ( + ((f = + typeof g.dictionary == 'string' + ? i.string2buf(g.dictionary) + : l.call(g.dictionary) === '[object ArrayBuffer]' + ? new Uint8Array(g.dictionary) + : g.dictionary), + (E = a.deflateSetDictionary(this.strm, f)) !== o) + ) + throw new Error(t[E]); + this._dict_set = !0; } - } catch (e) { - t[a(815)].Logger.warn(a(1106), e); } - }), - (Dt[Lt(816)][Lt(1213)] = function (e, n) { - var i = 486, - r = 845, - o = Lt; - if (!n[o(P)]('IFRAME_DATA')) - try { - var a = t._POSignalsUtils[o(C)][o(L)](o(1243)); - if (!a) return; - (a[o(D)] = o(1166)), - document[o(x)][o(M)](a), - this.flatAndAddMetadata(e, 'IFRAME_CHROME', function () { - return typeof a.contentWindow.chrome; - }), - this[o(1160)](e, 'IFRAME_WIDTH', function () { - var t = o; - return a[t(i)][t(827)][t(r)]; - }), - this[o(R)](e, 'IFRAME_HEIGHT', function () { - var t = o; - return a[t(486)].screen[t(1100)]; - }), - a.remove(); - } catch (e) { - t[o(815)].Logger.warn(o(1306), e); - } - }), - (Dt[Lt(p)][Lt(v)] = function () { - var e = 1041, - n = 1070, - i = 673, - r = 633, - o = 618, - a = 780, - s = 694, - u = 664, - c = 1157, - l = 1161, - d = 815; - return __awaiter(this, void 0, void 0, function () { - var h, f, g, p, v, _; - return __generator(this, function (m) { - var b = 1161, - y = 865, - E = _0x34d2; - switch (m[E(968)]) { - case 0: - if ( - ((h = {}), - (f = [ - E(616), - E(e), - E(n), - E(959), - E(i), - E(1002), - E(1150), - E(r), - E(o), - 'magnetometer', - E(625), - E(a), - E(s), - E(u), - E(c), - 'push', - ]), - (g = []), - navigator.permissions) - ) - for (v in ((p = function (t) { - var e = E, - n = f[t]; - g[e(b)]( - navigator[e(641)] - .query({ name: n }) - [e(893)](function (t) { - var i = e; - h[n] = t[i(y)]; - }) - [e(857)](function (t) {}), - ); - }), - f)) - p(v); - m[E(968)] = 1; - case 1: - return m[E(737)][E(l)]([1, 3, , 4]), [4, Promise[E(1258)](g)]; - case 2: - return m[E(1278)](), [3, 4]; - case 3: - return (_ = m[E(1278)]()), t[E(d)][E(599)].warn(_), [3, 4]; - case 4: - return [2, h]; - } - }); - }); - }), - (Dt.prototype[Lt(_)] = function (t) { - var e = Lt, - n = document.createElement(e(671)); - if (n && n[e(1056)]) return n[e(1056)](t); - }), - (Dt[Lt(r)].safeAddModernizrFeatures = function (e) { - return __awaiter(this, void 0, void 0, function () { - var n, - i, - r, - o, - a, - s, - u = 839, - c = 1066, - l = 1160, - d = 830, - h = 1113, - f = 483, - g = 1332, - p = 1068, - v = 1210, - _ = 1160, - m = 1261, - b = 480, - y = 711, - E = 541, - w = 1278, - S = 1288, - O = 977, - I = 1160, - T = 842, - A = 1160, - P = 1063, - C = 624, - L = 884, - D = 1160, - x = 940, - M = 1248, - R = 671, - U = 860, - k = 1075, - N = 842, - B = 1177, - F = 730, - H = 1240, - V = 633, - G = 784, - j = 488, - W = 962, - K = 973, - z = 904, - Y = 830; - return __generator(this, function (X) { - var q = 940, - J = 1299, - Z = 843, - Q = 774, - $ = 670, - tt = 698, - et = _0x34d2; - switch (X[et(968)]) { - case 0: - return ( - t[et(728)](), - (n = this), - (i = t[et(u)]), - (r = i[et(848)]), - (o = i[et(c)]), - this.flatAndAddMetadata(e, et(477), function () { - return i[et(tt)]; - }), - this[et(l)](e, 'application_cache', function () { - return i.applicationcache; - }), - this[et(1160)](e, et(d), function () { - return !!i[et(Y)]; - }), - i.audio && - this.flatAndAddMetadata(e, et(830), function () { - return i.audio; - }), - this[et(1160)](e, 'battery_api', function () { - return !!r(et(1170), navigator) || !!r('getBattery', navigator); - }), - this.flatAndAddMetadata(e, et(h), function () { - return i[et(869)]; - }), - this.flatAndAddMetadata(e, et(657), function () { - return i[et($)]; - }), - this[et(l)](e, et(f), function () { - return i[et(483)]; - }), - this[et(l)](e, et(904), function () { - return i[et(z)]; - }), - this[et(1160)](e, et(g), function () { - return i.customelements; - }), - this[et(1160)](e, et(p), function () { - return i[et(K)]; - }), - this[et(l)](e, et(v), function () { - return i.customevent; - }), - this[et(_)](e, et(763), function () { - return i[et(763)]; - }), - this[et(_)](e, et(m), function () { - return i[et(W)]; - }), - this[et(l)](e, 'event_listener', function () { - return i[et(696)]; - }), - [4, this[et(691)]('exiforientation')] - ); - case 1: - return ( - (a = X[et(1278)]()), - n[et(l)](e, et(1300), function () { - return a; - }), - this[et(l)](e, et(b), function () { - return i.forcetouch; - }), - i[et(y)] && - (this[et(1160)](e, 'force_touch.mouse_force_will_begin', function () { - return o(r('mouseforcewillbegin', window, !1), window); - }), - this[et(_)](e, et(E), function () { - return MouseEvent[et(Q)]; - }), - this[et(1160)]( - e, - 'force_touch.webkit_force_at_force_mouse_down', - function () { - return MouseEvent[et(j)]; - }, - )), - this[et(_)](e, et(719), function () { - return i[et(G)]; - }), - this[et(l)](e, et(1178), function () { - return i[et(1131)]; - }), - this[et(1160)](e, et(994), function () { - return i[et(V)]; - }), - this.flatAndAddMetadata(e, 'ie8compat', function () { - return i[et(1008)]; - }), - [4, this[et(691)](et(1267))] - ); - case 2: - return ( - (s = X[et(w)]()), - n[et(1160)](e, 'indexed_db', function () { - return s; - }), - this[et(1160)](e, 'indexed_db_blob', function () { - return i[et(H)]; - }), - this[et(_)](e, et(1042), function () { - return i[et(1083)]; - }), - this[et(1160)](e, et(730), function () { - return i[et(F)]; - }), - this.flatAndAddMetadata(e, et(1177), function () { - return i[et(B)]; - }), - this[et(_)](e, et(S), function () { - return et(Z) in window; - }), - this.flatAndAddMetadata(e, et(O), function () { - return i[et(1103)]; - }), - this[et(I)](e, et(T), function () { - return i[et(N)]; - }), - this[et(A)](e, et(P), function () { - return i[et(k)]; - }), - this.flatAndAddMetadata(e, et(1022), function () { - return i.performance; - }), - this[et(1160)](e, 'pointer_events', function () { - return i[et(1127)]; - }), - this[et(1160)](e, 'pointer_lock', function () { - return i[et(617)]; - }), - this[et(_)](e, et(1119), function () { - return i[et(1119)]; - }), - this[et(1160)](e, 'query_selector', function () { - return i[et(J)]; - }), - this[et(1160)](e, et(907), function () { - return i.quotamanagement; - }), - this[et(1160)](e, et(591), function () { - return i.requestanimationframe; - }), - this[et(1160)](e, et(C), function () { - return i[et(705)]; - }), - this.flatAndAddMetadata(e, 'touch_events', function () { - return i[et(U)]; - }), - this[et(1160)](e, et(L), function () { - return i[et(880)]; - }), - this[et(I)](e, et(837), function () { - return i[et(837)]; - }), - this[et(_)](e, et(671), function () { - return !!i[et(R)]; - }), - i[et(671)] && - this[et(1160)](e, et(671), function () { - return i[et(671)]; - }), - this[et(1160)](e, 'web_gl', function () { - return i[et(505)]; - }), - this[et(1160)](e, 'web_sockets', function () { - return i[et(M)]; - }), - this[et(D)](e, 'x_domain_request', function () { - return i.xdomainrequest; - }), - this[et(1160)](e, et(x), function () { - return i[et(q)]; - }), - [2] - ); - } + function r(L, g) { + var E = new n(g); + if ((E.push(L, !0), E.err)) throw E.msg || t[E.err]; + return E.result; + } + var a = c('./zlib/deflate'), + s = c('./utils/common'), + i = c('./utils/strings'), + t = c('./zlib/messages'), + e = c('./zlib/zstream'), + l = Object.prototype.toString, + o = 0, + x = -1, + v = 0, + y = 8; + (n.prototype.push = function (L, g) { + var E, + f, + m = this.strm, + w = this.options.chunkSize; + if (this.ended) return !1; + (f = g === ~~g ? g : g === !0 ? 4 : 0), + typeof L == 'string' + ? (m.input = i.string2buf(L)) + : l.call(L) === '[object ArrayBuffer]' + ? (m.input = new Uint8Array(L)) + : (m.input = L), + (m.next_in = 0), + (m.avail_in = m.input.length); + do { + if ( + (m.avail_out === 0 && + ((m.output = new s.Buf8(w)), (m.next_out = 0), (m.avail_out = w)), + (E = a.deflate(m, f)) !== 1 && E !== o) + ) + return this.onEnd(E), (this.ended = !0), !1; + (m.avail_out !== 0 && (m.avail_in !== 0 || (f !== 4 && f !== 2))) || + (this.options.to === 'string' + ? this.onData(i.buf2binstring(s.shrinkBuf(m.output, m.next_out))) + : this.onData(s.shrinkBuf(m.output, m.next_out))); + } while ((m.avail_in > 0 || m.avail_out === 0) && E !== 1); + return f === 4 + ? ((E = a.deflateEnd(this.strm)), this.onEnd(E), (this.ended = !0), E === o) + : f !== 2 || (this.onEnd(o), (m.avail_out = 0), !0); + }), + (n.prototype.onData = function (L) { + this.chunks.push(L); + }), + (n.prototype.onEnd = function (L) { + L === o && + (this.options.to === 'string' + ? (this.result = this.chunks.join('')) + : (this.result = s.flattenChunks(this.chunks))), + (this.chunks = []), + (this.err = L), + (this.msg = this.strm.msg); + }), + (p.Deflate = n), + (p.deflate = r), + (p.deflateRaw = function (L, g) { + return (g = g || {}), (g.raw = !0), r(L, g); + }), + (p.gzip = function (L, g) { + return (g = g || {}), (g.gzip = !0), r(L, g); }); - }); - }), - (Dt[Lt(816)][Lt(m)] = function () { - var e = 1223, - n = 710, - i = 1266, - r = 557, - o = Lt, - a = this, - s = {}, - u = navigator[o(J)] || navigator.mozConnection || navigator.webkitConnection; + }, + { + './utils/common': 1, + './utils/strings': 2, + './zlib/deflate': 5, + './zlib/messages': 6, + './zlib/zstream': 8, + }, + ], + }, + {}, + [], + )('/lib/deflate.js'); + }); + var _POSignalsEntities; + (function (c) { + let h; + (function (p) { + class n { + constructor() { + (this._isIphoneOrIPad = !1), + (navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPod/i)) && + (this._isIphoneOrIPad = !0), + this.initUAParser(); + } + get userAgentData() { + return this._userAgentData; + } + get deviceType() { + return ( + this._deviceType || + (p.Util.isMobile + ? (this._deviceType = this.mobileType || this.desktopType || n.UNKNOWN_DEVICE_TYPE) + : (this._deviceType = + this.desktopType || this.mobileType || n.UNKNOWN_DEVICE_TYPE)), + this._deviceType + ); + } + get isIphoneOrIPad() { + return this._isIphoneOrIPad; + } + get browserName() { + return this._userAgentData && + this._userAgentData.browser && + this._userAgentData.browser.name + ? this._userAgentData.browser.name.trim() + : ''; + } + get browserVersion() { + return this._userAgentData && + this._userAgentData.browser && + this._userAgentData.browser.version + ? this._userAgentData.browser.version.trim() + : ''; + } + get browserMajor() { + return this._userAgentData && + this._userAgentData.browser && + this._userAgentData.browser.major + ? this._userAgentData.browser.major.trim() + : ''; + } + get browserType() { + return this._userAgentData && + this._userAgentData.browser && + this._userAgentData.browser.type + ? this._userAgentData.browser.type.trim() + : ''; + } + get osName() { + return this._userAgentData && this._userAgentData.os && this._userAgentData.os.name + ? this._userAgentData.os.name.trim() + : ''; + } + get osVersion() { + return this._userAgentData && this._userAgentData.os && this._userAgentData.os.version + ? this._userAgentData.os.version.trim() + : ''; + } + get deviceCategory() { + return this._userAgentData && + this._userAgentData.device && + this._userAgentData.device.type + ? this._userAgentData.device.type.trim() + : ''; + } + get engineName() { + return this._userAgentData && + this._userAgentData.engine && + this._userAgentData.engine.name + ? this._userAgentData.engine.name.trim() + : ''; + } + get engineVersion() { + return this._userAgentData && + this._userAgentData.engine && + this._userAgentData.engine.version + ? this._userAgentData.engine.version.trim() + : ''; + } + get cpuArchitecture() { + return this._userAgentData && + this._userAgentData.cpu && + this._userAgentData.cpu.architecture + ? this._userAgentData.cpu.architecture.trim() + : ''; + } + get deviceModel() { + return this._userAgentData && + this._userAgentData.device && + this._userAgentData.device.model + ? this._userAgentData.device.model.trim() + : ''; + } + get deviceVendor() { + return this._userAgentData && + this._userAgentData.device && + this._userAgentData.device.vendor + ? this._userAgentData.device.vendor.trim() + : ''; + } + get desktopType() { + let a = this.browserName; + this.browserVersion && (a = a + `(${this.browserVersion})`); + let s = this.osName; + this.osVersion && (s = s + `(${this.osVersion})`); + const i = a && s ? `${a}-${s}` : a || s; + return i ? i.trim() : ''; + } + get mobileType() { + const a = this.deviceModel, + s = this.deviceVendor, + i = a && s ? `${a} ${s}` : a || s; + return i ? i.trim() : ''; + } + initUAParser() { + try { + const a = new c.UAParser(); + a.setUA(navigator.userAgent), (this._userAgentData = a.getResult()); + } catch (a) { + p.Logger.warn('UAParser failure', a); + } + } + } + (n.UNKNOWN_DEVICE_TYPE = 'unknown'), (p.BrowserInfo = n); + })((h = c._POSignalsUtils || (c._POSignalsUtils = {}))); + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + let h; + (function (p) { + class n { + static get CLIENT_VERSION() { + return '5.6.8w'; + } + static get SALT() { + return 'ST8irbd3bB'; + } + static get TAB_UUID_KEY() { + return 'pos_tid'; + } + static get OPS_KEY() { + return 'pos_ops'; + } + static get DEVICE_ID_KEY() { + return 'SecuredTouchDeviceId'; + } + static get DEVICE_ID_CREATED_AT() { + return 'pos_dca'; + } + static get LAST_DEVICE_KEY_RESYNC() { + return 'DeviceRefreshDate'; + } + static get CAPTURED_KEYBOARD_INTERACTIONS() { + return 'pos_cki'; + } + static get CAPTURED_MOUSE_INTERACTIONS() { + return 'pos_cmi'; + } + static get CAPTURED_GESTURES() { + return 'pos_cg'; + } + static get CAPTURED_INDIRECT() { + return 'pos_cie'; + } + static get CAPTURED_TAGS() { + return 'pos_ct'; + } + static get CAPTURED_MOUSE_INTERACTIONS_SUMMARY() { + return 'pos_mdp'; + } + static get KEYBOARD_INTERACTIONS_COUNT() { + return 'pos_kic'; + } + static get MOUSE_INTERACTIONS_COUNT() { + return 'pos_mic'; + } + static get GESTURES_COUNT() { + return 'pos_gc'; + } + static get EVENT_COUNTERS() { + return 'pos_ec'; + } + static get PINGID_AGENT_DEFAULT_PORT() { + return 9400; + } + static get PINGID_AGENT_DEFAULT_TIMEOUT() { + return 1e3; + } + static get MOUSE_EVENT_COUNTERS() { + return 'pos_mec'; + } + static get KEYBOARD_EVENT_COUNTERS() { + return 'pos_kec'; + } + static get TOUCH_EVENT_COUNTERS() { + return 'pos_tec'; + } + static get INDIRECT_EVENT_COUNTERS() { + return 'pos_iec'; + } + static get GeoDataKey() { + return 'pos_geo'; + } + } + p.Constants = n; + })((h = c._POSignalsUtils || (c._POSignalsUtils = {}))); + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + let h; + (function (p) { + class n { + constructor(a = 'ECDSA', s = ['sign', 'verify'], i = 'SHA-256') { + if ( + ((this.signingKeyType = a), + (this.keyUsage = s), + (this.algorithm = i), + (this._crypto = window.crypto || window.msCrypto), + !this._crypto || !this._crypto.subtle) + ) + throw new Error('Cryptography API not supported in this browser'); + } + async generateKeys() { + return this._crypto.subtle.generateKey( + { name: this.signingKeyType, namedCurve: 'P-256' }, + !1, + this.keyUsage, + ); + } + async exportPublicKey(a) { + const s = await this._crypto.subtle.exportKey('spki', a.publicKey), + i = p.Util.ab2str(s), + e = `-----BEGIN PUBLIC KEY----- +${btoa(i)} +-----END PUBLIC KEY-----`; + return p.Logger.debug('Exported base64 pub key: ', e), e; + } + async exportPublicKeyJwk(a) { + return await window.crypto.subtle.exportKey('jwk', a.publicKey); + } + async exportPrivateKey(a) { + const s = await this._crypto.subtle.exportKey('pkcs8', a.privateKey), + i = p.Util.ab2str(s), + e = `-----BEGIN PRIVATE KEY----- +${btoa(i)} +-----END PRIVATE KEY-----`; + return p.Logger.debug('Exported base64 pem:', e), e; + } + async signJWT(a, s, i = 0, t, e) { + const o = { alg: 'ES256', typ: 'JWT', jwk: await this.exportPublicKeyJwk(s), kid: e }, + x = { deviceAttributesSerialized: a, iat: Math.floor(t / 1e3) }; + if (!s.privateKey) throw new Error('Require key'); + if (o.alg !== 'ES256' && o.typ !== 'JWT') + throw new Error('jwt-encode only support the ES256 algorithm and the JWT type of hash'); + const v = p.Util.encode(o), + y = p.Util.encode(x), + L = `${v}.${y}`, + g = p.Util.string2buf(L), + E = await this._crypto.subtle.sign( + { name: this.signingKeyType, hash: this.algorithm }, + s.privateKey, + g, + ), + f = p.Util.base64url(btoa(p.Util.ab2str(E))); + return p.Logger.debug('Signed JWT: ', `${L}.${f}`), `${L}.${f}`; + } + async verifyJwtToken(a, s) { + const [i, t, e] = a.split('.'), + l = p.Util.parseJwt(i); + if (l.alg !== 'ES256' && l.typ !== 'JWT') + throw new Error('JWT header supports only ES256 algorithm and the JWT type of hash'); + const o = p.Util.parseJwt(t), + x = Uint8Array.from(atob(e.replace(/-/g, '+').replace(/_/g, '/')), (L) => + L.charCodeAt(0), + ), + v = p.Util.string2buf(`${i}.${t}`); + return await this._crypto.subtle.verify( + { name: this.signingKeyType, hash: this.algorithm }, + s, + x, + v, + ); + } + } + p.CryptoOperator = n; + })((h = c._POSignalsUtils || (c._POSignalsUtils = {}))); + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + let h; + (function (p) { + class n { + static get isLogEnabled() { + return this._isLogEnabled || window['enable-logs-pingOneSignals']; + } + static set isLogEnabled(a) { + this._isLogEnabled = a; + } + static debug(a, ...s) { + (a = `${n.TAG} ${a}`), + n.isLogEnabled && + (s && s.length > 0 + ? console.debug + ? console.debug(a, s) + : console.log(a, s) + : console.debug + ? console.debug(a) + : console.log(a)); + } + static error(a, ...s) { + (a = `${n.TAG} ${a}`), + n.isLogEnabled && (s && s.length > 0 ? console.error(a, s) : console.error(a)); + } + static warn(a, ...s) { + (a = `${n.TAG} ${a}`), + n.isLogEnabled && (s && s.length > 0 ? console.warn(a, s) : console.warn(a)); + } + static info(a, ...s) { + (a = `${n.TAG} ${a}`), + n.isLogEnabled && (s && s.length > 0 ? console.info(a, s) : console.info(a)); + } + } + (n.TAG = '[SignalsSDK]'), (p.Logger = n); + })((h = c._POSignalsUtils || (c._POSignalsUtils = {}))); + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + let h; + (function (p) { + class n { + static get INITIALIZATION_ERROR() { + return 'INITIALIZATION_ERROR'; + } + static get UNEXPECTED_ERROR() { + return 'UNEXPECTED_ERROR'; + } + } + p.POErrorCodes = n; + })((h = c._POSignalsUtils || (c._POSignalsUtils = {}))); + })(_POSignalsEntities || (_POSignalsEntities = {})); + const Browser = { + 115: '115', + 2345: '2345', + 360: '360', + ALIPAY: 'Alipay', + AMAYA: 'Amaya', + ANDROID: 'Android Browser', + ARORA: 'Arora', + AVANT: 'Avant', + AVAST: 'Avast Secure Browser', + AVG: 'AVG Secure Browser', + BAIDU: 'Baidu Browser', + BASILISK: 'Basilisk', + BLAZER: 'Blazer', + BOLT: 'Bolt', + BOWSER: 'Bowser', + BRAVE: 'Brave', + CAMINO: 'Camino', + CHIMERA: 'Chimera', + CHROME: 'Chrome', + CHROME_HEADLESS: 'Chrome Headless', + CHROME_MOBILE: 'Mobile Chrome', + CHROME_WEBVIEW: 'Chrome WebView', + CHROMIUM: 'Chromium', + COBALT: 'Cobalt', + COC_COC: 'Coc Coc', + CONKEROR: 'Conkeror', + DAUM: 'Daum', + DILLO: 'Dillo', + DOLPHIN: 'Dolphin', + DORIS: 'Doris', + DRAGON: 'Dragon', + DUCKDUCKGO: 'DuckDuckGo', + EDGE: 'Edge', + EPIPHANY: 'Epiphany', + FACEBOOK: 'Facebook', + FALKON: 'Falkon', + FIREBIRD: 'Firebird', + FIREFOX: 'Firefox', + FIREFOX_FOCUS: 'Firefox Focus', + FIREFOX_MOBILE: 'Mobile Firefox', + FIREFOX_REALITY: 'Firefox Reality', + FENNEC: 'Fennec', + FLOCK: 'Flock', + FLOW: 'Flow', + GO: 'GoBrowser', + GOOGLE_SEARCH: 'GSA', + HELIO: 'Helio', + HEYTAP: 'HeyTap', + HONOR: 'Honor', + HUAWEI: 'Huawei Browser', + ICAB: 'iCab', + ICE: 'ICE Browser', + ICEAPE: 'IceApe', + ICECAT: 'IceCat', + ICEDRAGON: 'IceDragon', + ICEWEASEL: 'IceWeasel', + IE: 'IE', + INSTAGRAM: 'Instagram', + IRIDIUM: 'Iridium', + IRON: 'Iron', + JASMINE: 'Jasmine', + KONQUEROR: 'Konqueror', + KAKAO: 'KakaoTalk', + KHTML: 'KHTML', + K_MELEON: 'K-Meleon', + KLAR: 'Klar', + KLARNA: 'Klarna', + KINDLE: 'Kindle', + LENOVO: 'Smart Lenovo Browser', + LADYBIRD: 'Ladybird', + LIBREWOLF: 'LibreWolf', + LIEBAO: 'LBBROWSER', + LINE: 'Line', + LINKEDIN: 'LinkedIn', + LINKS: 'Links', + LUNASCAPE: 'Lunascape', + LYNX: 'Lynx', + MAEMO: 'Maemo Browser', + MAXTHON: 'Maxthon', + MIDORI: 'Midori', + MINIMO: 'Minimo', + MIUI: 'MIUI Browser', + MOZILLA: 'Mozilla', + MOSAIC: 'Mosaic', + NAVER: 'Naver', + NETFRONT: 'NetFront', + NETSCAPE: 'Netscape', + NETSURF: 'Netsurf', + NOKIA: 'Nokia Browser', + OBIGO: 'Obigo', + OCULUS: 'Oculus Browser', + OMNIWEB: 'OmniWeb', + OPERA: 'Opera', + OPERA_COAST: 'Opera Coast', + OPERA_GX: 'Opera GX', + OPERA_MINI: 'Opera Mini', + OPERA_MOBI: 'Opera Mobi', + OPERA_TABLET: 'Opera Tablet', + OPERA_TOUCH: 'Opera Touch', + OVI: 'OviBrowser', + PALEMOON: 'PaleMoon', + PHANTOMJS: 'PhantomJS', + PHOENIX: 'Phoenix', + PICOBROWSER: 'Pico Browser', + POLARIS: 'Polaris', + PUFFIN: 'Puffin', + QQ: 'QQBrowser', + QQ_LITE: 'QQBrowserLite', + QUARK: 'Quark', + QUPZILLA: 'QupZilla', + REKONQ: 'rekonq', + ROCKMELT: 'Rockmelt', + SAFARI: 'Safari', + SAFARI_MOBILE: 'Mobile Safari', + SAILFISH: 'Sailfish Browser', + SAMSUNG: 'Samsung Internet', + SEAMONKEY: 'SeaMonkey', + SILK: 'Silk', + SKYFIRE: 'Skyfire', + SLEIPNIR: 'Sleipnir', + SLIMBOAT: 'SlimBoat', + SLIMBROWSER: 'SlimBrowser', + SLIMJET: 'Slimjet', + SNAPCHAT: 'Snapchat', + SOGOU_EXPLORER: 'Sogou Explorer', + SOGOU_MOBILE: 'Sogou Mobile', + SWIFTFOX: 'Swiftfox', + TESLA: 'Tesla', + TIKTOK: 'TikTok', + TIZEN: 'Tizen Browser', + TWITTER: 'Twitter', + UC: 'UCBrowser', + UP: 'UP.Browser', + VIVALDI: 'Vivaldi', + VIVO: 'Vivo Browser', + W3M: 'w3m', + WATERFOX: 'Waterfox', + WEBKIT: 'WebKit', + WECHAT: 'WeChat', + WEIBO: 'Weibo', + WHALE: 'Whale', + WOLVIC: 'Wolvic', + YANDEX: 'Yandex', + }, + BrowserType = { + CRAWLER: 'crawler', + CLI: 'cli', + EMAIL: 'email', + FETCHER: 'fetcher', + INAPP: 'inapp', + MEDIAPLAYER: 'mediaplayer', + LIBRARY: 'library', + }, + CPU = { + '68K': '68k', + ARM: 'arm', + ARM_64: 'arm64', + ARM_HF: 'armhf', + AVR: 'avr', + AVR_32: 'avr32', + IA64: 'ia64', + IRIX: 'irix', + IRIX_64: 'irix64', + MIPS: 'mips', + MIPS_64: 'mips64', + PA_RISC: 'pa-risc', + PPC: 'ppc', + SPARC: 'sparc', + SPARC_64: 'sparc64', + X86: 'ia32', + X86_64: 'amd64', + }, + Device = { + CONSOLE: 'console', + DESKTOP: 'desktop', + EMBEDDED: 'embedded', + MOBILE: 'mobile', + SMARTTV: 'smarttv', + TABLET: 'tablet', + WEARABLE: 'wearable', + XR: 'xr', + }, + Vendor = { + ACER: 'Acer', + ADVAN: 'Advan', + ALCATEL: 'Alcatel', + APPLE: 'Apple', + AMAZON: 'Amazon', + ARCHOS: 'Archos', + ASUS: 'ASUS', + ATT: 'AT&T', + BENQ: 'BenQ', + BLACKBERRY: 'BlackBerry', + CAT: 'Cat', + DELL: 'Dell', + ENERGIZER: 'Energizer', + ESSENTIAL: 'Essential', + FACEBOOK: 'Facebook', + FAIRPHONE: 'Fairphone', + GEEKSPHONE: 'GeeksPhone', + GENERIC: 'Generic', + GOOGLE: 'Google', + HMD: 'HMD', + HP: 'HP', + HTC: 'HTC', + HUAWEI: 'Huawei', + IMO: 'IMO', + INFINIX: 'Infinix', + ITEL: 'itel', + JOLLA: 'Jolla', + KOBO: 'Kobo', + LENOVO: 'Lenovo', + LG: 'LG', + MEIZU: 'Meizu', + MICROMAX: 'Micromax', + MICROSOFT: 'Microsoft', + MOTOROLA: 'Motorola', + NEXIAN: 'Nexian', + NINTENDO: 'Nintendo', + NOKIA: 'Nokia', + NOTHING: 'Nothing', + NVIDIA: 'Nvidia', + ONEPLUS: 'OnePlus', + OPPO: 'OPPO', + OUYA: 'Ouya', + PALM: 'Palm', + PANASONIC: 'Panasonic', + PEBBLE: 'Pebble', + PICO: 'Pico', + POLYTRON: 'Polytron', + REALME: 'Realme', + RIM: 'RIM', + ROKU: 'Roku', + SAMSUNG: 'Samsung', + SHARP: 'Sharp', + SIEMENS: 'Siemens', + SMARTFREN: 'Smartfren', + SONY: 'Sony', + SPRINT: 'Sprint', + TCL: 'TCL', + TECHNISAT: 'TechniSAT', + TECNO: 'Tecno', + TESLA: 'Tesla', + ULEFONE: 'Ulefone', + VIVO: 'Vivo', + VODAFONE: 'Vodafone', + XBOX: 'Xbox', + XIAOMI: 'Xiaomi', + ZEBRA: 'Zebra', + ZTE: 'ZTE', + }, + Engine = { + AMAYA: 'Amaya', + ARKWEB: 'ArkWeb', + BLINK: 'Blink', + EDGEHTML: 'EdgeHTML', + FLOW: 'Flow', + GECKO: 'Gecko', + GOANNA: 'Goanna', + ICAB: 'iCab', + KHTML: 'KHTML', + LIBWEB: 'LibWeb', + LINKS: 'Links', + LYNX: 'Lynx', + NETFRONT: 'NetFront', + NETSURF: 'NetSurf', + PRESTO: 'Presto', + SERVO: 'Servo', + TASMAN: 'Tasman', + TRIDENT: 'Trident', + W3M: 'w3m', + WEBKIT: 'WebKit', + }, + UAParserEnumOS = { + AIX: 'AIX', + AMIGA_OS: 'Amiga OS', + ANDROID: 'Android', + ANDROID_X86: 'Android-x86', + ARCH: 'Arch', + BADA: 'Bada', + BEOS: 'BeOS', + BLACKBERRY: 'BlackBerry', + CENTOS: 'CentOS', + CHROME_OS: 'Chrome OS', + CHROMECAST: 'Chromecast', + CHROMECAST_ANDROID: 'Chromecast Android', + CHROMECAST_FUCHSIA: 'Chromecast Fuchsia', + CHROMECAST_LINUX: 'Chromecast Linux', + CHROMECAST_SMARTSPEAKER: 'Chromecast SmartSpeaker', + CONTIKI: 'Contiki', + DEBIAN: 'Debian', + DEEPIN: 'Deepin', + DRAGONFLY: 'DragonFly', + ELEMENTARY_OS: 'elementary OS', + FEDORA: 'Fedora', + FIREFOX_OS: 'Firefox OS', + FREEBSD: 'FreeBSD', + FUCHSIA: 'Fuchsia', + GENTOO: 'Gentoo', + GHOSTBSD: 'GhostBSD', + GNU: 'GNU', + HAIKU: 'Haiku', + HARMONYOS: 'HarmonyOS', + HP_UX: 'HP-UX', + HURD: 'Hurd', + IOS: 'iOS', + JOLI: 'Joli', + KAIOS: 'KaiOS', + KUBUNTU: 'Kubuntu', + LINPUS: 'Linpus', + LINSPIRE: 'Linspire', + LINUX: 'Linux', + MACOS: 'macOS', + MAEMO: 'Maemo', + MAGEIA: 'Mageia', + MANDRIVA: 'Mandriva', + MANJARO: 'Manjaro', + MEEGO: 'MeeGo', + MINIX: 'Minix', + MINT: 'Mint', + MORPH_OS: 'Morph OS', + NETBSD: 'NetBSD', + NETRANGE: 'NetRange', + NETTV: 'NetTV', + NINTENDO: 'Nintendo', + OPENHARMONY: 'OpenHarmony', + OPENBSD: 'OpenBSD', + OPENVMS: 'OpenVMS', + OS2: 'OS/2', + PALM: 'Palm', + PC_BSD: 'PC-BSD', + PCLINUXOS: 'PCLinuxOS', + PICO: 'Pico', + PLAN9: 'Plan9', + PLAYSTATION: 'PlayStation', + QNX: 'QNX', + RASPBIAN: 'Raspbian', + REDHAT: 'RedHat', + RIM_TABLET_OS: 'RIM Tablet OS', + RISC_OS: 'RISC OS', + SABAYON: 'Sabayon', + SAILFISH: 'Sailfish', + SERENITYOS: 'SerenityOS', + SERIES40: 'Series40', + SLACKWARE: 'Slackware', + SOLARIS: 'Solaris', + SUSE: 'SUSE', + SYMBIAN: 'Symbian', + TIZEN: 'Tizen', + UBUNTU: 'Ubuntu', + UBUNTU_TOUCH: 'Ubuntu Touch', + UNIX: 'Unix', + VECTORLINUX: 'VectorLinux', + WATCHOS: 'watchOS', + WEBOS: 'WebOS', + WINDOWS: 'Windows', + WINDOWS_IOT: 'Windows IoT', + WINDOWS_MOBILE: 'Windows Mobile', + WINDOWS_PHONE: 'Windows Phone', + XBOX: 'Xbox', + ZENWALK: 'Zenwalk', + }; + var _POSignalsEntities; + (function (c) { + let h; + (function (p) { + class n { + static get Browser() { + return Browser; + } + static get BrowserType() { + return BrowserType; + } + static get CPU() { + return CPU; + } + static get Device() { + return Device; + } + static get Vendor() { + return Vendor; + } + static get Engine() { + return Engine; + } + static get UAParserEnumOS() { + return UAParserEnumOS; + } + } + p.UAParserEnums = n; + })((h = c._POSignalsUtils || (c._POSignalsUtils = {}))); + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + let h; + (function (p) { + class n { + static get isMobile() { + let a = !1; + return ( + (function (s) { + (/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test( + s, + ) || + /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test( + s.substr(0, 4), + )) && + (a = !0); + })(navigator.userAgent || navigator.vendor || window.opera), + a + ); + } + static newGuid() { + return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (a) { + const s = (Math.random() * 16) | 0; + return (a === 'x' ? s : (s & 3) | 8).toString(16); + }); + } + static ieFix() { + let a; + navigator.userAgent.indexOf('MSIE') != -1 + ? (a = /MSIE (\d+\.\d+);/) + : (a = /Trident.*rv[ :]*(\d+\.\d+)/), + a.test(navigator.userAgent) && + (document.body.setAttribute('style', '-ms-touch-action:none;'), + (document.body.style.touchAction = 'none'), + (document.body.style.msTouchAction = 'none')); + } + static now() { + const a = window.performance || {}; + return ( + (a.now = (function () { + return ( + a.now || + a.webkitNow || + a.msNow || + a.oNow || + a.mozNow || + function () { + return new Date().getTime(); + } + ); + })()), + a.now() + ); + } + static base64Uint8Array(a) { + const s = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; + let i, + t = a.length, + e = ''; + for (i = 0; i < t; i += 3) + (e += s[a[i] >> 2]), + (e += s[((a[i] & 3) << 4) | (a[i + 1] >> 4)]), + (e += s[((a[i + 1] & 15) << 2) | (a[i + 2] >> 6)]), + (e += s[a[i + 2] & 63]); + return ( + t % 3 === 2 + ? (e = e.substring(0, e.length - 1) + '=') + : t % 3 === 1 && (e = e.substring(0, e.length - 2) + '=='), + e + ); + } + static string2buf(a) { + if (typeof TextEncoder == 'function' && TextEncoder.prototype.encode) + return new TextEncoder().encode(a); + let s, + i, + t, + e, + l, + o = a.length, + x = 0; + for (e = 0; e < o; e++) + (i = a.charCodeAt(e)), + (i & 64512) === 55296 && + e + 1 < o && + ((t = a.charCodeAt(e + 1)), + (t & 64512) === 56320 && ((i = 65536 + ((i - 55296) << 10) + (t - 56320)), e++)), + (x += i < 128 ? 1 : i < 2048 ? 2 : i < 65536 ? 3 : 4); + for (s = new Uint8Array(x), l = 0, e = 0; l < x; e++) + (i = a.charCodeAt(e)), + (i & 64512) === 55296 && + e + 1 < o && + ((t = a.charCodeAt(e + 1)), + (t & 64512) === 56320 && ((i = 65536 + ((i - 55296) << 10) + (t - 56320)), e++)), + i < 128 + ? (s[l++] = i) + : i < 2048 + ? ((s[l++] = 192 | (i >>> 6)), (s[l++] = 128 | (i & 63))) + : i < 65536 + ? ((s[l++] = 224 | (i >>> 12)), + (s[l++] = 128 | ((i >>> 6) & 63)), + (s[l++] = 128 | (i & 63))) + : ((s[l++] = 240 | (i >>> 18)), + (s[l++] = 128 | ((i >>> 12) & 63)), + (s[l++] = 128 | ((i >>> 6) & 63)), + (s[l++] = 128 | (i & 63))); + return s; + } + static utf8Encode(a) { + a = a.replace( + /\r\n/g, + ` +`, + ); + let s = ''; + for (let i = 0; i < a.length; i++) { + const t = a.charCodeAt(i); + t < 128 + ? (s += String.fromCharCode(t)) + : t > 127 && t < 2048 + ? ((s += String.fromCharCode((t >> 6) | 192)), + (s += String.fromCharCode((t & 63) | 128))) + : ((s += String.fromCharCode((t >> 12) | 224)), + (s += String.fromCharCode(((t >> 6) & 63) | 128)), + (s += String.fromCharCode((t & 63) | 128))); + } + return s; + } + static hash(a) { + let s = n.hashCache.get(a); + return s || ((s = c.sha256(a + p.Constants.SALT)), n.hashCache.set(a, s)), s; + } + static hashMini(a) { + const s = `${JSON.stringify(a)}`; + let i, + t, + e = 2166136261; + for (i = 0, t = s.length; i < t; i++) e = (Math.imul(31, e) + s.charCodeAt(i)) | 0; + return ('0000000' + (e >>> 0).toString(16)).substr(-8); + } + static hashCode(a) { + let s = 0, + i = a ? a.length : 0, + t = 0; + if (i > 0) for (; t < i; ) s = ((s << 5) - s + a.charCodeAt(t++)) | 0; + return s; + } + static mod(a, s) { + return ((n.hashCode(a) % s) + s) % s; + } + static isEmail(a) { + try { + return ( + a && + /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test( + a.toLowerCase(), + ) + ); + } catch (s) { + return p.Logger.warn('isEmail function failed to parse string', s), !1; + } + } + static getEmailDomain(a) { + return n.isEmail(a) ? a.substring(a.lastIndexOf('@') + 1) : ''; + } + static extendPrimitiveValues(a, s, i) { + const t = n.allKeys(s); + let e = 0; + for (; e < t.length; ) + !n.isObject(s[t[e]]) && (!i || (i && a[t[e]] === void 0)) && (a[t[e]] = s[t[e]]), e++; + return a; + } + static flatten(a) { + const s = {}; + return n.dive('', a, s), s; + } + static isFunction(a) { + return a && typeof a == 'function'; + } + static isPassiveSupported() { + let a = !1; + const s = function () {}; + try { + const i = { + get passive() { + return (a = !0), !0; + }, + }; + window.addEventListener('test', s, i), window.removeEventListener('test', s, !1); + } catch { + a = !1; + } + return a; + } + static getAttribute(a, s) { + try { + if (a && typeof a.getAttribute == 'function') return a.getAttribute(s) || ''; + } catch {} + return ''; + } + static createInvisibleElement(a) { + try { + const s = document.createElement(a); + return ( + (s.style.display = 'none'), + (s.style.border = 'none'), + (s.style.position = 'absolute'), + (s.style.top = '-999px'), + (s.style.left = '-999px'), + (s.style.width = '0'), + (s.style.height = '0'), + (s.style.visibility = 'hidden'), + s + ); + } catch (s) { + return p.Logger.warn('Failed to create element', s), null; + } + } + static values(a) { + const s = n.allKeys(a), + i = s.length, + t = Array(i); + for (let e = 0; e < i; e++) t[e] = a[s[e]]; + return t; + } + static getValuesOfMap(a) { + if (this.isFunction(a.values)) return Array.from(a.values()); + const s = []; + return a.forEach((i) => s.push(i)), s; + } + static typesCounter(a) { + const s = { epochTs: Date.now() }; + for (const i of a) s[i.type] = (s[i.type] || 0) + 1; + return s; + } + static modifiersKeys(a) { + const s = [ + 'Alt', + 'AltGraph', + 'CapsLock', + 'Control', + 'Fn', + 'FnLock', + 'Hyper', + 'Meta', + 'NumLock', + 'OS', + 'ScrollLock', + 'Shift', + 'Super', + 'Symbol', + 'SymbolLock', + ], + i = []; + return ( + a.getModifierState && + s.forEach((t) => { + a.getModifierState(t.toString()) && i.push(t); + }), + i + ); + } + static getElementText(a) { + var s, i; + return a instanceof HTMLInputElement + ? ['checkbox', 'radio'].indexOf(a.type) >= 0 + ? `${a.checked}` + : a.value + : a instanceof HTMLSelectElement + ? (i = (s = a.selectedOptions) === null || s === void 0 ? void 0 : s[0]) === null || + i === void 0 + ? void 0 + : i.innerText + : a.innerText; + } + static getSrcElement(a) { + return a.srcElement || a.target; + } + static getObjectType(a) { + try { + const i = /function (.{1,})\(/.exec(a.constructor.toString()); + return i && i.length > 1 ? i[1] : ''; + } catch { + return ''; + } + } + static isSelectorMatches(a, s, i) { + try { + const t = Element.prototype, + e = + t.matches || t.webkitMatchesSelector || t.mozMatchesSelector || t.msMatchesSelector; + let l = 0; + do { + if (e.call(a, s)) return a; + a = a.parentElement || a.parentNode; + } while (a !== null && a.nodeType === 1 && l++ < i); + return null; + } catch { + return null; + } + } + static anySelectorMatches(a, s, i) { + try { + for (const t of s) if (this.isSelectorMatches(a, t, i)) return !0; + } catch (t) { + p.Logger.warn(t); + } + return !1; + } + static isArray(a) { + return Array.isArray + ? Array.isArray(a) + : Object.prototype.toString.call(a) === '[object Array]'; + } + static safeJsonParse(a) { + let s = null; + try { + a && (s = JSON.parse(a)); + } catch (i) { + p.Logger.warn('Failed to parse object ' + i), (s = null); + } + return s; + } + static getElementSelectionStart(a) { + let s; + try { + s = a.selectionStart; + } catch { + s = ''; + } + return s; + } + static getElementSelectionEnd(a) { + let s; + try { + s = a.selectionEnd; + } catch { + s = ''; + } + return s; + } + static isClickableInput(a) { + return ( + a && + [ + 'button', + 'checkbox', + 'color', + 'radio', + 'range', + 'image', + 'submit', + 'file', + 'reset', + ].indexOf(a.type) >= 0 + ); + } + static isTextInput(a) { + return ( + a && + [ + 'date', + 'datetime-local', + 'email', + 'month', + 'number', + 'password', + 'search', + 'tel', + 'text', + 'time', + 'url', + 'week', + 'datetime', + ].indexOf(a.type) >= 0 + ); + } + static getDeviceOrientation() { + const a = screen.orientation || screen.mozOrientation || {}, + s = screen.msOrientation || a.type, + i = a.angle; + return { + orientation: s == null ? void 0 : s.toString(), + angle: i == null ? void 0 : i.toString(), + }; + } + static getDevToolsState() { + var a, s; + const t = window.outerWidth - window.innerWidth > 160, + e = window.outerHeight - window.innerHeight > 160, + l = t ? 'vertical' : 'horizontal'; + return !(e && t) && + ((!( + (s = (a = window.Firebug) === null || a === void 0 ? void 0 : a.chrome) === null || + s === void 0 + ) && + s.isInitialized) || + t || + e) + ? { open: !0, orientation: l } + : { open: !1, orientation: void 0 }; + } + static getCookie(a) { + const s = document.cookie.match('(^|;) ?' + a + '=([^;]*)(;|$)'); + return s ? s[2] : null; + } + static setCookie(a, s, i) { + const t = new Date(); + t.setTime(t.getTime() + 1e3 * i), + (document.cookie = + a + '=' + s + ';path=/;secure;SameSite=None;expires=' + t.toUTCString()); + } + static deleteCookie(a) { + n.setCookie(a, '', -1); + } + static delay(a) { + return new Promise((s) => setTimeout(s, a)); + } + static getHostnameFromRegex(a) { + if (a) { + const s = a.match(/^https?\:\/\/([^\/?#]+)(?:[\/?#]|$)/i); + return s && s[1]; + } + return null; + } + static inIframe() { + try { + return window.self !== window.top; + } catch { + return !0; + } + } + static promiseTimeout(a, s) { + const i = new Promise((t, e) => { + const l = setTimeout(() => { + clearTimeout(l), e(new Error('Timed out in ' + a + 'ms.')); + }, a); + }); + return Promise.race([s, i]); + } + static getProperty(a, s) { + return s.split('.').reduce(function (i, t) { + return i ? i[t] : null; + }, a); + } + static filterReduce(a, s) { + return Object.keys(a) + .filter((i) => s(a[i])) + .reduce((i, t) => ({ ...i, [t]: a[t] }), {}); + } + static dive(a, s, i) { + for (const t in s) + if (s.hasOwnProperty(t)) { + let e = t; + const l = s[t]; + a.length > 0 && (e = a + '.' + t), n.isObject(l) ? n.dive(e, l, i) : (i[e] = l); + } + } + static isObject(a) { + const s = typeof a; + return s === 'function' || (s === 'object' && !!a); + } + static allKeys(a) { + if (!n.isObject(a)) return []; + const s = []; + for (const i in a) s.push(i); + return s; + } + static encryptionString(a, s) { + const i = []; + for (let t = 0; t < a.length; t++) { + const e = a.charCodeAt(t) ^ s.charCodeAt(t % s.length); + i.push(String.fromCharCode(e)); + } + return i.join(''); + } + static encryptionBytes(a, s) { + const i = new Uint8Array(a.length); + for (let t = 0; t < a.length; t++) i[t] = a[t] ^ s.charCodeAt(t % s.length); + return i; + } + static parseJwt(a) { + const s = a.replace(/-/g, '+').replace(/_/g, '/'), + i = decodeURIComponent( + window + .atob(s) + .split('') + .map((t) => '%' + ('00' + t.charCodeAt(0).toString(16)).slice(-2)) + .join(''), + ); + return JSON.parse(i); + } + static calculateMeanTimeDeltasBetweenEvents(a) { + let s = 0; + if ((a == null ? void 0 : a.length) > 1) { + let i = a[0].epochTs; + for (let t = 1; t < a.length; t++) (s += a[t].epochTs - i), (i = a[t].epochTs); + s /= a.length - 1; + } + return s; + } + static sortEventsByTimestamp(a) { + return a.sort((s, i) => + s.eventTs > i.eventTs + ? 1 + : s.eventTs < i.eventTs + ? -1 + : s.epochTs > i.epochTs + ? 1 + : s.epochTs < i.epochTs + ? -1 + : s.type === 'click' + ? 1 + : -1, + ); + } + static distanceBetweenPoints(a, s) { + return Math.sqrt(Math.pow(a.getX() - s.getX(), 2) + Math.pow(a.getY() - s.getY(), 2)); + } + static calculateMeanDistanceBetweenPoints(a) { + let s = 0; + if ((a == null ? void 0 : a.length) > 1) { + for (let i = 1; i < a.length; i++) s += n.distanceBetweenPoints(a[i - 1], a[i]); + s /= a.length - 1; + } + return s; + } + static filterArrayByLength(a, s) { + return a.length <= s ? a : a.slice(0, s).concat(a[a.length - 1]); + } + static keepFirstEventsWithDistance(a) { + const { events: s, threshold: i, min: t, max: e } = a; + if (s.length <= t) return s; + const l = s[0]; + let o; + for ( + o = 1; + o < s.length && + o < e && + !(Math.max(Math.abs(s[o].getX() - l.getX()), Math.abs(s[o].getY() - l.getY())) >= i); + o++ + ); + return s.slice(0, Math.max(o + 1, t)); + } + static ab2str(a) { + return String.fromCharCode.apply(null, new Uint8Array(a)); + } + static str2ab(a) { + const s = new ArrayBuffer(a.length), + i = new Uint8Array(s); + for (let t = 0, e = a.length; t < e; t++) i[t] = a.charCodeAt(t); + return s; + } + static encode(a) { + const s = JSON.stringify(a), + i = new TextEncoder().encode(s), + t = n.base64Uint8Array(i); + return n.base64url(t); + } + static base64url(a) { + return a.replace(/\+/g, '-').replace(/\//g, '_').replace(/=+$/, ''); + } + } + (n.hashCache = new Map()), + (n.keyStr = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='), + (p.Util = n); + })((h = c._POSignalsUtils || (c._POSignalsUtils = {}))); + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + var h = c.openDB; + let p; + (function (n) { + class r { + constructor() {} + static async initDB() { + if ( + !( + window.indexedDB || + window.mozIndexedDB || + window.webkitIndexedDB || + window.msIndexedDB + ) + ) + throw new Error('IndexedDB is not supported'); + const i = new r(); + return new Promise(async (t) => { + (i.indexedDatabase = await h(this._PingDBName, r._version, { + upgrade(e, l, o, x, v) { + e.createObjectStore(r._storeDefaultName); + }, + })), + t(i); + }); + } + close() { + this.indexedDatabase.close(); + } + getValue(s) { + return this.indexedDatabase.get(r._storeDefaultName, s); + } + setValue(s, i) { + return this.indexedDatabase.put(r._storeDefaultName, i, s); + } + } + (r._PingDBName = 'Ping'), + (r._version = 1), + (r._storeDefaultName = 'PING_ONE'), + (n.IndexedDBStorage = r); + })((p = c._POSignalsStorage || (c._POSignalsStorage = {}))); + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + let h; + (function (p) { + class n { + constructor(s, i) { + this.crossStorageClient = new c.CrossStorageClient(s, i); + } + get(s) { + const i = c._POSignalsUtils.Util.hash(s); + return this.crossStorageClient.get(i); + } + del(s) { + return this.crossStorageClient.del(c._POSignalsUtils.Util.hash(s)); + } + set(s, i, t) { + return this.crossStorageClient.set(c._POSignalsUtils.Util.hash(s), i, t); + } + onConnect() { + return this.crossStorageClient.onConnect(); + } + close(s) { + return this.crossStorageClient.close(s); + } + getSignedPayload(s, i) { + return this.crossStorageClient.getSignedPayload(s, i); + } + getDeviceDetails(s) { + const i = c._POSignalsUtils.Util.hash(s); + return this.crossStorageClient.getDeviceDetails(i); + } + setDeviceDetails(s, i) { + const t = c._POSignalsUtils.Util.hash(s); + return this.crossStorageClient.setDeviceDetails(t, i); + } + } + p.CrossStorage = n; + class r { + constructor(s) { + this.storage = s; + } + get(s) { + return Promise.resolve(this.storage.getItem(s)); + } + del(s) { + return this.storage.removeItem(s), Promise.resolve(); + } + set(s, i) { + return this.storage.setItem(s, i), Promise.resolve(); + } + onConnect() { + return Promise.resolve(); + } + close(s) { + return Promise.resolve(); + } + getSignedPayload(s, i) { + return Promise.resolve([]); + } + getDeviceDetails(s) { + return Promise.resolve([]); + } + setDeviceDetails(s, i) { + return Promise.resolve([]); + } + } + p.CrossStorageFallback = r; + })((h = c._POSignalsStorage || (c._POSignalsStorage = {}))); + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + class h { + constructor(n, r, a) { + (this.deviceId = n), (this.dbStorage = r), (this.cryptoHandler = a); + } + async getExportedPublicKey() { + if (!this.cachedPublicKey) { + const n = await this.getDeviceKeys(); + n && (this.cachedPublicKey = await this.cryptoHandler.exportPublicKey(n)); + } + return ( + c._POSignalsUtils.Logger.info('Exported public key:', this.cachedPublicKey), + this.cachedPublicKey + ); + } + async setDeviceKeys(n) { + const r = await this.dbStorage.setValue(this.deviceId, n); + return (this.cachedDeviceKey = n), r; + } + async associateDeviceKeys() { + const n = await this.cryptoHandler.generateKeys(); + return ( + c._POSignalsUtils.Logger.info('Associating new device domain keys'), + await this.setDeviceKeys(n), + n + ); + } + async getDeviceKeys() { + return ( + this.cachedDeviceKey || + (this.cachedDeviceKey = await this.dbStorage.getValue(this.deviceId)), + this.cachedDeviceKey + ); + } + async signDeviceAttributeWithJWT(n, r, a) { + return await this.cryptoHandler.signJWT( + n, + await this.getDeviceKeys(), + h._default_salt, + r, + a, + ); + } + async verifyJWT(n) { + return this.cryptoHandler.verifyJwtToken(n, (await this.getDeviceKeys()).publicKey); + } + } + (h._default_salt = 32), (c.DeviceKeys = h); + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + let h; + (function (p) { + class n { + constructor() { + (this._disabledStorage = []), + (this.assertionValues = [ + 'BROWSER_ENGINE_VERSION', + 'NAVIGATOR_LANGUAGE', + 'OS_NAME', + 'OS_VERSION', + 'NAVIGATOR_USER_AGENT', + 'FINGER_PRINT', + 'RESOLUTION', + 'PUSH_NOTIFICATIONS_SUPPORTED', + 'COOKIES_ENABLED', + 'IS_INCOGNITO', + 'IS_PRIVATE_MODE', + ]); + try { + window.sessionStorage.setItem('_st_storage_enabled_check', 'test'), + window.sessionStorage.removeItem('_st_storage_enabled_check'), + (this.signalsSessionStorage = window.sessionStorage); + } catch { + c._POSignalsUtils.Logger.warn('session storage disabled'), + this._disabledStorage.push('sessionStorage'), + (this.signalsSessionStorage = new p.StorageFallback()); + } + try { + window.localStorage.setItem('_st_storage_enabled_check', 'test'), + window.localStorage.removeItem('_st_storage_enabled_check'), + (this.signalsLocalStorage = new p.StorageWrapper(window.localStorage)); + } catch { + c._POSignalsUtils.Logger.warn('local storage disabled'), + this._disabledStorage.push('localStorage'), + (this.signalsLocalStorage = new p.StorageWrapper(new p.StorageFallback())), + (this.crossStorage = new p.CrossStorageFallback(this.signalsLocalStorage)); + } + } + setStorageConfig(a) { + (this.disableHub = !0), + (this.hubUrl = ''), + (this.universalTrustEnabled = this.isConfigurationEnabled( + a.universalDeviceIdentification, + )), + (this.agentIdentificationEnabled = this.isConfigurationEnabled(a.agentIdentification)), + (this.devEnv = a.devEnv), + (this.agentPort = a.agentPort), + (this.agentTimeout = a.agentTimeout), + (this.htmlGeoLocation = this.isConfigurationEnabled(a.htmlGeoLocation)), + (this.isIAFDetectionEnabled = this.isConfigurationEnabled(a.isIAFDetectionEnabled)); + } + static get instance() { + return n._instance || (n._instance = new n()), n._instance; + } + get tabUUID() { + let a = this.signalsSessionStorage.getItem(c._POSignalsUtils.Constants.TAB_UUID_KEY); + return ( + a || + ((a = c._POSignalsUtils.Util.newGuid()), + this.signalsSessionStorage.setItem(c._POSignalsUtils.Constants.TAB_UUID_KEY, a)), + a + ); + } + get ops() { + const a = Number(this.signalsSessionStorage.getItem(c._POSignalsUtils.Constants.OPS_KEY)); + return isNaN(a) ? null : a; + } + set ops(a) { + a + ? this.signalsSessionStorage.setItem(c._POSignalsUtils.Constants.OPS_KEY, a.toString()) + : this.signalsSessionStorage.removeItem(c._POSignalsUtils.Constants.OPS_KEY); + } + get disabledStorage() { + return this._disabledStorage; + } + get sessionStorage() { + return this.signalsSessionStorage; + } + get localStorage() { + return this.signalsLocalStorage; + } + async initDeviceIdentity() { + let a; + const s = this.signalsLocalStorage.getItem(c._POSignalsUtils.Constants.DEVICE_ID_KEY), + i = this.signalsLocalStorage.getItem(c._POSignalsUtils.Constants.DEVICE_ID_CREATED_AT); + return ( + s && (this.cachedDeviceId = s), + this.universalTrustEnabled && + ((this.deviceTrust = { attestation: {}, dtts: new Date().getTime() }), + (this.indexedDBStorage = await p.IndexedDBStorage.initDB()), + (a = await this.loadLocalDeviceTrust())), + !this.disableHub && (!s || this.shouldFallbackToP1Key(a)) + ? await this.fallbackToCrossStorage(this.hubUrl) + : (this.crossStorage = new p.CrossStorageFallback(this.signalsLocalStorage)), + this.getDeviceId() || (await this.associateDeviceDetails(this.disableHub)), + i || + this.signalsLocalStorage.setItem( + c._POSignalsUtils.Constants.DEVICE_ID_CREATED_AT, + Date.now(), + ), + this.universalTrustEnabled && + (!this.getDeviceId() || !a) && + (await this.createDomainKeys(this.disableHub)), + this.getDeviceId() + ); + } + shouldFallbackToP1Key(a) { + return ( + this.universalTrustEnabled && + !this.disableHub && + (!a || this.isRefreshRequired(this.deviceKeyRsyncIntervals)) + ); + } + isRefreshRequired(a = 3) { + if (!this.deviceTrust.dtts) return !0; + const s = this.signalsLocalStorage.getItem( + c._POSignalsUtils.Constants.LAST_DEVICE_KEY_RESYNC, + ); + if (!s || isNaN(parseInt(s))) return !0; + const t = this.deviceTrust.dtts - s > 60 * 60 * 24 * 1e3 * a; + return t && c._POSignalsUtils.Logger.debug('Refresh required'), t; + } + async loadLocalDeviceTrust() { + try { + let a; + if (!this.cachedDeviceId) + return c._POSignalsUtils.Logger.debug('No device id found on customer domain'), !1; + if (this.cachedDeviceId) return ( - this[o(Z)](s, o(912), function () { - return u ? u.type : null; - }), - this[o(Z)](s, 'NETWORK_DOWNLOAD_MAX', function () { - return u ? u[o(ht)] : null; - }), - this[o(Q)](s, o($), function () { - return !!navigator.bluetooth; - }), - this[o(1160)](s, o(tt), function () { - return a[o(r)]; - }), - this[o(1160)](s, o(1110), function () { - return a[o(dt)]; - }), - this[o(1160)](s, o(et), function () { - return a[o(1179)]; - }), - this.flatAndAddMetadata(s, 'BATTERY_SUPPORTED', function () { - return a[o(i)]; - }), - this[o(1160)](s, o(nt), function () { - return a[o(572)]; - }), - this[o(it)](s, 'BATTERY_CHARGING', function () { - return a[o(1321)]; - }), - this[o(1160)](s, 'BATTERY_CHARGING_TIME', function () { - return a.batteryChargingTime; - }), - this[o(Z)](s, o(885), function () { - return a.batteryDischargingTime; - }), - this[o(it)](s, o(rt), function () { - return a[o(n)]; - }), - this.flatAndAddMetadata(s, o(631), function () { - var e = o; - return t[e(ct)].Util[e(lt)]; - }), - this[o(1160)](s, o(ot), function () { - return 'ontouchstart' in document[o(e)]; - }), - this[o(it)](s, o(1260), function () { - return a[o(641)]; - }), - this[o(it)](s, o(1057), function () { - var t = o; - return window[t(at)]('(prefers-color-scheme: light)')[t(st)] - ? 'light' - : window[t(979)]('(prefers-color-scheme: dark)').matches - ? t(ut) - : void 0; - }), - s + (this.domainDeviceKeys = new c.DeviceKeys( + this.getDeviceId(), + this.indexedDBStorage, + new c._POSignalsUtils.CryptoOperator(), + )), + (a = await this.domainDeviceKeys.getDeviceKeys()), + a + ? ((this.deviceTrust.attestation.deviceKey = + await this.domainDeviceKeys.getExportedPublicKey()), + (this.crossStorage = new p.CrossStorageFallback(this.signalsLocalStorage)), + !0) + : (c._POSignalsUtils.Logger.debug('No device keys found on customer domain'), !1) ); - }), - (Dt[Lt(b)][Lt(y)] = function (e, n, i) { - var r = Lt; - try { - var o = new Set(this.metadataParams[r(1169)] || []); - null != n && null != i && !o.has(n) && (e[n] = i); - } catch (e) { - t[r(815)].Logger.warn(r(1011) + n + ' -> ' + i + ', ' + e); - } - }), - (Dt[Lt(816)][Lt(E)] = function (e) { - var n = 1278; - return __awaiter(this, void 0, void 0, function () { - var i, r; - return __generator(this, function (o) { - var a = 599, - s = _0x34d2; - switch (o[s(968)]) { - case 0: - return ( - (i = new Promise(function (n) { - var i = s; - try { - t[i(839)].on(e, function (t) { - n(t); - }); - } catch (r) { - n(null), t._POSignalsUtils[i(a)][i(840)](i(928) + e, r); - } - })), - (r = t[s(815)].Util[s(792)](250).then(function () { - return null; - })), - [4, Promise[s(1255)]([i, r])] - ); - case 1: - return [2, o[s(n)]()]; - } - }); + } catch (a) { + return c._POSignalsUtils.Logger.error('Domain PKI initialization failed', a), !1; + } + } + async createDomainKeys(a) { + try { + if (!a && this._disabledStorage.lastIndexOf('hub') > -1) { + c._POSignalsUtils.Logger.debug('Hub unavailable - skipping domain trust creation'); + return; + } + (this.domainDeviceKeys = new c.DeviceKeys( + this.getDeviceId(), + this.indexedDBStorage, + new c._POSignalsUtils.CryptoOperator(), + )), + await this.domainDeviceKeys.associateDeviceKeys(), + (this.deviceTrust.attestation.deviceKey = + await this.domainDeviceKeys.getExportedPublicKey()); + } catch (s) { + c._POSignalsUtils.Logger.error('Domain PKI initialization failed', s); + } + } + getDeviceId() { + return this.cachedDeviceId; + } + getDeviceCreatedAt() { + return this.signalsLocalStorage.getItem(c._POSignalsUtils.Constants.DEVICE_ID_CREATED_AT); + } + async associateDeviceDetails(a) { + var s, i; + return ( + c._POSignalsUtils.Logger.debug('Associating fresh device details'), + (this.cachedDeviceId = `Id-${c._POSignalsUtils.Util.newGuid()}`), + this.signalsLocalStorage.setItem( + c._POSignalsUtils.Constants.DEVICE_ID_KEY, + this.cachedDeviceId, + ), + this.signalsLocalStorage.setItem( + c._POSignalsUtils.Constants.DEVICE_ID_CREATED_AT, + Date.now(), + ), + a || + (this.universalTrustEnabled + ? (this.deviceTrust.attestation.fallbackDeviceKey = ( + await this.crossStorage.setDeviceDetails( + c._POSignalsUtils.Constants.DEVICE_ID_KEY, + this.cachedDeviceId, + ) + )[0]) + : await this.crossStorage.set( + c._POSignalsUtils.Constants.DEVICE_ID_KEY, + this.cachedDeviceId, + )), + c._POSignalsUtils.Logger.debug(`PingOne Signals deviceId: ${this.cachedDeviceId}`), + [ + this.cachedDeviceId, + (i = (s = this.deviceTrust) === null || s === void 0 ? void 0 : s.attestation) === + null || i === void 0 + ? void 0 + : i.fallbackDeviceKey, + ] + ); + } + closeTrustStore() { + try { + this.crossStorage.close(this.devEnv), + this.indexedDBStorage && this.indexedDBStorage.close(); + } catch (a) { + c._POSignalsUtils.Logger.info('Unable to close trust store:', a); + } + } + async fallbackToCrossStorage(a) { + c._POSignalsUtils.Logger.debug('PingOne Signals cross storage is required, initializing'); + try { + await this.initCrossStorage(a), + c._POSignalsUtils.Logger.info('PingOne Signals cross storage initiated'); + } catch (s) { + c._POSignalsUtils.Logger.warn( + `PingOne Signals Session crossStorage failed to connect ${s}`, + ), + this._disabledStorage.push('hub'), + (this.crossStorage = new p.CrossStorageFallback(this.signalsLocalStorage)); + } + } + async initCrossStorage(a) { + const i = + 'https://apps.pingone.com/signals/web-sdk/hub-' + + (this.universalTrustEnabled ? '1.0.7' : '1.0.1') + + '/hub.html'; + let t = ((a == null ? void 0 : a.trim()) || i).replace(/\/$/, ''); + t.endsWith('html') || (t += '/hub.html'), + (this.crossStorage = new p.CrossStorage(t, { timeout: 2e3 })), + await this.crossStorage.onConnect(); + let e; + this.universalTrustEnabled + ? ((e = await this.crossStorage.getDeviceDetails( + c._POSignalsUtils.Constants.DEVICE_ID_KEY, + )), + (this.cachedDeviceId = e[0])) + : (this.cachedDeviceId = await this.crossStorage.get( + c._POSignalsUtils.Constants.DEVICE_ID_KEY, + )), + this.cachedDeviceId + ? this.signalsLocalStorage.setItem( + c._POSignalsUtils.Constants.DEVICE_ID_KEY, + this.cachedDeviceId, + ) + : c._POSignalsUtils.Logger.info('no device id from hub'), + this.universalTrustEnabled && + (e && e[1] + ? ((this.deviceTrust.attestation.fallbackDeviceKey = e[1]), + c._POSignalsUtils.Logger.info( + `Using fallback device keys from hub ${this.deviceTrust.attestation.fallbackDeviceKey}`, + )) + : c._POSignalsUtils.Logger.info('failed to use any device keys')); + } + isConfigurationEnabled(a) { + return a == null + ? !1 + : typeof a == 'boolean' + ? a + : typeof a == 'string' && a.toLowerCase() === 'true'; + } + async signJWTChallenge(a, s, i) { + return this.domainDeviceKeys.signDeviceAttributeWithJWT(a, s, i); + } + getGeoSessionData() { + const a = this.signalsSessionStorage.getItem(c._POSignalsUtils.Constants.GeoDataKey); + return a == null ? null : a; + } + } + p.SessionStorage = n; + })((h = c._POSignalsStorage || (c._POSignalsStorage = {}))); + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + let h; + (function (p) { + class n { + constructor(s) { + this.storage = s; + } + getItem(s) { + const i = c._POSignalsUtils.Util.hash(s); + let t = this.storage.getItem(i); + return ( + t || + ((t = this.storage.getItem(s)), + t && (this.storage.setItem(i, t), this.storage.removeItem(s))), + t + ); + } + removeItem(s) { + return this.storage.removeItem(c._POSignalsUtils.Util.hash(s)); + } + setItem(s, i) { + return this.storage.setItem(c._POSignalsUtils.Util.hash(s), i); + } + } + p.StorageWrapper = n; + class r { + constructor() { + this.internalStorageMap = new Map(); + } + getItem(s) { + return this.internalStorageMap.get(s); + } + removeItem(s) { + this.internalStorageMap.delete(s); + } + setItem(s, i) { + this.internalStorageMap.set(s, i); + } + } + p.StorageFallback = r; + })((h = c._POSignalsStorage || (c._POSignalsStorage = {}))); + })(_POSignalsEntities || (_POSignalsEntities = {})); + const _0x7ea2 = _0x4e19; + (function (c, h) { + const p = _0x4e19, + n = c(); + for (;;) + try { + if ( + (parseInt(p(773)) / 1) * (-parseInt(p(715)) / 2) + + -parseInt(p(1083)) / 3 + + (parseInt(p(882)) / 4) * (parseInt(p(747)) / 5) + + (parseInt(p(794)) / 6) * (parseInt(p(741)) / 7) + + -parseInt(p(1176)) / 8 + + -parseInt(p(1045)) / 9 + + (parseInt(p(1102)) / 10) * (parseInt(p(432)) / 11) === + h + ) + break; + n.push(n.shift()); + } catch { + n.push(n.shift()); + } + })(_0x455d, 976621); + var __awaiter = + (this && this[_0x7ea2(1160)]) || + function (c, h, p, n) { + function r(a) { + return a instanceof p + ? a + : new p(function (s) { + s(a); }); - }), - (Dt[Lt(816)][Lt(1160)] = function (e, n, i) { - var r = Lt; - try { - var o = new Set(this[r(636)][r(1169)] || []); - if (!n || o.has(n)) return; - var a = i(); - if ('object' == typeof a && null !== a) { - var s = t[r(T)][r(526)].flatten(a); - for (var u in s) this[r(A)](e, n + '.' + u, s[u]); - } else this.safeAddMetadata(e, n, a); - } catch (e) { - t[r(815)].Logger[r(840)]('Failed to add ' + n, e); - } - }), - (Dt[Lt(l)][Lt(1335)] = function () { - var e, - n = Lt, - i = new Date(), - r = 0; - do { - r++, (e = new Date()[n(S)]() - i[n(900)]()), Math.sqrt(r * Math[n(O)]()); - } while (e < 500); - var o = r / e; - return t[n(815)][n(I)][n(1202)](n(998) + o), o; - }), - (Dt[Lt(816)][Lt(w)] = function () { - var e = Lt, - n = this; - !this[e(z)] && - t[e(1322)] - [e(580)]() - .then(function (t) { - n[e(684)] = t; - }) - [e(857)](function (n) { - var i = e; - t._POSignalsUtils.Logger[i(q)](i(702), n); - }), - this.aiSignalsResult && (this[e(Y)][e(X)] = this[e(684)]); - }), - (Dt[Lt(1059)] = function () { - var t = Lt; + } + return new (p || (p = Promise))(function (a, s) { + const i = _0x4e19; + function t(o) { + try { + l(n.next(o)); + } catch (x) { + s(x); + } + } + function e(o) { + const x = _0x4e19; + try { + l(n[x(967)](o)); + } catch (v) { + s(v); + } + } + function l(o) { + const x = _0x4e19; + o[x(989)] ? a(o[x(534)]) : r(o[x(534)]).then(t, e); + } + l((n = n[i(892)](c, h || []))[i(1321)]()); + }); + }, + _POSignalsEntities; + function _0x455d() { + const c = [ + 'RENDERER', + 'JS_FONTS', + 'function query() { [native code] }', + 'Buffer', + 'PromiseQueue', + 'expm1', + 'method', + 'IS_CHROME_FAMILY', + 'queryselector-unsupported', + 'force_touch', + '_POSignalsMetadata', + 'log', + 'Chromium', + 'maxVertexTextureImageUnits', + 'message_channel', + 'createOffer', + 'keys', + 'data-attribute', + 'NAVIGATOR_ON_LINE', + 'keyboard', + 'gyroscope', + 'HAS_CHROME_LOADTIMES', + 'speechSynthesis', + 'privateClickMeasurement', + 'coords', + 'put', + 'indexeddb', + 'touchSupport', + 'youbot', + 'pointerevents', + 'map', + 'browser-autofilled', + 'external', + 'NAVIGATOR_HID_SUPPORTED', + 'Failed to start async autofill detection:', + 'getAllLies', + 'IS_WEB_GLSTATUS', + 'MAX_VERTEX_UNIFORM_VECTORS', + 'language', + 'windows phone', + 'history', + 'navigator.plugins_empty', + 'availWidth', + 'Failed to add ', + 'userAgent', + 'maxTouchPoints', + 'type', + '_Selenium_IDE_Recorder', + 'csi', + 'PingOne Signals deviceId: ', + 'driver-evaluate', + 'isIAFDetectionEnabled', + 'background-sync', + ' in async detection:', + 'function () {', + 'jsHeapSizeLimit', + 'LOG2E', + 'has', + 'WEB_RTC_HOST_IP', + 'electron', + 'html', + 'AutofillDetector', + '__webdriver_script_func', + 'getTime', + 'LIES.', + 'floc_id', + 'model', + 'htmlGeoLocation_latitude', + 'window.chrome_missing', + 'toSource', + 'calculated browser device attributes.', + 'win', + 'Logger', + 'input', + 'caller', + 'get', + 'deviceCreatedAt', + 'Sequentum', + 'autofilled', + 'getBattery', + 'setLocalDescription', + 'customelements', + 'hypot', + '...', + 'request_animation_frame', + 'AGENT_DEVICE_URL', + 'totalJSHeapSize', + 'INPUT', + 'WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN', + 'ondevicemotion', + 'GET', + 'IS_WEBGL2', + 'htmlGeoLocation_ErrorMessage', + 'onerror', + 'callPhantom', + 'isAIBot', + 'battery', + 'VIDEO_CARD', + 'maxVertexAttribs', + 'ambientlight', + 'htmlGeoLocation_timestamp', + 'number', + 'getHasLiedBrowser', + 'createDataChannel', + 'brave', + 'browserLanguage', + 'FILE_CONTENT_JS_FOUND', + 'cli', + 'getIoMetadata', + 'sessionData', + 'eventlistener', + 'documentLie', + 'LocalAgentAccessor', + 'acosh', + 'getGeoSessionData', + 'next', + 'BATTERY_CHARGING_TIME', + 'webglVersion', + 'trustTokenOperationError', + 'WEBGL_debug_renderer_info', + 'permissions_api_overriden', + 'Normal DOM size (', + 'isCanvasSupported', + 'IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE', + 'AbortError', + 'mozRTCPeerConnection', + 'getAutofillMetadata', + 'runtime', + 'AT&T', + 'MEMORY_USED_HEAP_SIZE', + 'Flip Player', + 'getSensorsMetadata', + 'close', + 'plugins', + 'toString', + 'googleother-image', + 'Error processing input ', + 'connection', + 'some', + 'getIdentificationMetadata', + 'lieTests', + 'Modernizr', + 'AiaSignals', + 'processInputsSynchronously', + 'cbrt', + 'clipboard-write', + 'WebGLMetadata', + 'deleteDatabase', + 'log10', + 'numberOfAudioDevices', + 'mouseforcewillbegin', + 'constructor', + 'gamepads', + 'osName', + 'web_sockets', + 'getDevicePayload', + 'Error during detection of aiasignals:', + 'firefox', + 'data-rapid-fill', + 'min', + 'Promise', + 'calledSelenium', + 'MAX_RENDERBUFFER_SIZE', + 'Windows Phone', + 'COOKIES_ENABLED', + 'px)', + "' in browser '", + ' inputs), using async autofill detection', + 'hdr', + 'getGeoLocationData', + 'devToolsOpen', + 'intl', + 'audio', + 'atanh', + 'getFingerPrint', + 'quota detection failed: ', + 'videoInputDevices', + 'getHeadlessResults', + 'document-unavailable', + 'BROWSER_ENGINE_VERSION', + 'exif_orientation', + 'loadTimes', + 'toFixed', + '250, 255, 189', + '@keyframes autofill-detection { 0% { opacity: 1; } 100% { opacity: 1; } }', + ' inputs), using sync autofill detection', + 'canvas', + 'PREFERS_COLOR_SCHEME', + 'AUDIO', + 'Function', + 'perplexitybot', + 'failed to add iframe data', + 'force_touch.webkit_force_at_mouse_down', + '113905FKopIR', + '__webdriver_evaluate', + 'fingerPrint', + 'MQ_SCREEN', + 'tanh', + 'engineName', + 'Large DOM detected: ', + 'fmget_targets', + 'enumerateDevices() not supported.', + 'error_code', + 'matches', + 'createElement', + 'MEDIA_CODEC_MP4_AVC1', + 'vibrate', + 'hashMini', + 'forEach', + 'cryptography', + 'srcdoc_triggers_window_proxy', + 'STEALTH', + 'appVersion', + 'isPrivateMode', + 'getOwnPropertyLie', + 'webRtcIps', + 'DetectStealth', + 'force_touch.mouse_force_will_begin', + 'webzio-extended', + 'function ', + 'window_awesomium', + 'enumerateDevices failed', + 'selenium_in_document', + 'anthropic-ai', + 'enumerateDevicesEnabled', + 'getMediaCodec', + 'batteryLevel', + 'getHasLiedResolution', + 'Failed to get FingerPrint ', + 'isInvalidStackTraceSize', + 'closed', + 'browserMajor', + 'Security error', + 'agentIdentificationEnabled', + 'NAVIGATOR_PLUGINS_LENGTH', + '__driver_evaluate', + 'AGENT_BASE_URL', + 'Android', + 'flatten', + 'application_cache', + 'failed to add properties descriptor', + 'Browser unknown', + 'speed', + 'warn', + 'TOUCH_SUPPORT', + 'getToStringLie', + 'Yahoo! Japan', + 'getDirectory', + " in browser '", + 'remove', + 'HASLIEDBROWSER', + 'browserType', + 'isWebGl2', + 'batteryDischargingTime', + 'Document not available for async autofill detection', + 'detectAutofillFields', + 'queryselector', + ' -> ', + 'setTrustToken', + 'password', + 'hasTrustToken', + 'WEBGL_MAXVERTEXATTRIBS', + '__nightmare', + 'getPermissionsMetadata', + 'tablet', + 'outerHeight', + 'getHasLiedLanguages', + 'detectedFields', + '_ST_PING', + 'applePay', + 'Xq7tSbjB517mhZwt', + 'dom-query-error', + 'pointer_lock', + 'omgilibot', + 'matchmedia', + 'IFRAME_WIDTH', + 'emit', + 'WEBGL_MAXRENDERBUFFERSIZE', + '_selenium', + 'Ops : ', + 'createObjectStore', + ' inputs', + 'isPrivate', + 'Internet Explorer', + 'call', + 'deviceMemory', + 'NAVIGATOR_CONNECTION_RTT', + 'interestCohort', + 'width', + 'left', + 'evaluateModernizr', + 'DetectLies', + 'autoFillMeta', + 'enumerateDevices() cannot run within safari iframe', + 'NAVIGATOR_APP_VERSION', + 'value', + 'GPS_SUPPORTED', + 'Battery ', + 'NETWORK_DOWNLOAD_MAX', + 'colorGamut', + 'chrome', + 'deviceId', + 'height', + 'dateTimeLocale', + 'getWebglData', + 'now', + 'productSub', + 'SQRT2', + 'NAVIGATOR_MIME_TYPES_LENGTH', + 'seleniumInNavigator', + 'querySelectorAll', + 'UAParserHelperMetadata', + 'components', + 'safeModernizrOn', + 'round', + 'deviceType', + 'IS_AIBot', + 'unknown', + 'Large DOM detected (', + 'latitude', + 'POSITION_UNAVAILABLE', + 'audioOutputDevices', + 'webdriver-evaluate', + 'localAgentJwt', + 'result', + 'blank page', + 'isPrivateModeV2', + 'Zeki', + 'mac', + 'string', + 'webGlBasics', + 'getOwnPropertyDescriptors', + 'cosh', + 'notification', + 'Error in smart autofill detection, falling back to sync:', + 'pointer_events', + 'browser-class', + 'proximity', + 'sinh', + 'meta-externalagent', + 'WEB_RTC_ENABLED', + 'MAX_FRAGMENT_UNIFORM_VECTORS', + 'videoCard', + 'HEADLESS', + 'applebot-extended', + 'flatAndAddMetadata', + 'getParameter', + 'WEBGL2VENDORANDRENDERER', + 'TypeError', + 'NAVIGATOR_LANGUAGES', + 'dataview', + 'indexed_db_blob', + 'getExtension', + 'midi', + 'forcedColors', + 'getElementsByTagName', + 'NAVIGATOR_USER_AGENT', + 'htmlGeoLocation_speed', + 'PLUGINS', + '[[Target]]', + 'Invalid geoData JSON in session storage:', + 'heading', + 'webdriver', + 'cos', + 'hasWebcam', + 'async-error', + '__lastWatirPrompt', + 'backgroundColor', + 'classList', + 'applebot', + 'LIES', + 'http://127.0.0.1', + 'ambient-light-sensor', + 'page intentionally left blank', + 'info', + 'HASLIEDLANGUAGES', + 'reducedMotion', + 'crawler', + 'webkit-autofill', + 'hasOwnProperty', + 'VERSION', + 'prototype', + 'Siemens', + 'getLies', + 'window', + 'universalTrustEnabled', + 'none', + 'isWebGl', + 'webgl', + 'htmlGeoLocation_accuracy', + 'aiaSignals', + 'getFrequencyResponse', + 'BroprintJS', + 'googleother', + 'pointerlock', + 'index_chrome_too_high', + 'broJsFingerprint', + 'notifications', + 'metadataBlackList', + '__webdriver_unwrapped', + 'video', + 'force_touch.webkit_force_at_force_mouse_down', + 'IS_BOT', + 'custom_protocol_handler', + 'substring', + 'addAutofillResult', + 'DetectHeadless', + 'target', + 'Document not available for autofill detection', + 'denied', + 'webkitRTCPeerConnection', + '__fxdriver_evaluate', + 'RTCPeerConnection', + 'state', + 'addStealthTest', + 'getProperty', + 'domBlockers', + 'seleniumSequentum', + 'JS_CHALLENGE', + 'innerHeight', + 'then', + 'Fingerprint timeout', + 'serializedDeviceAttributes', + 'stringify', + 'agentTimeout', + 'DOCUMENT_ELEMENT_DRIVER', + 'vendorFlavors', + 'Mac', + 'refreshDeviceAttributes', + 'amazonbot', + 'ambient_light', + 'screenFrame', + 'Volvo', + 'screen', + 'test', + 'Failed to fetch the Workstation data: ', + 'iframeWindow', + 'granted', + 'msPointerEnabled', + 'AUDIO_INPUT_DEVICES', + 'webgl2', + 'cpuClass', + 'OPS', + 'experimental-webgl', + 'semrushbot-ocob', + 'length', + 'pointerEnabled', + 'BROWSER_TYPE', + 'htmlGeoLocation_longitude', + 'mozConnection', + 'canPlayType', + 'systemLanguage', + 'lastCalculatedMetadata', + 'NAVIGATOR_VENDOR', + 'PROXIMITY_SUPPORTED', + 'isFunction', + 'permission', + 'getAutofillMetadataSmart', + 'function () { [native code] }', + 'safeAddModernizrFeatures', + 'AUDIO_OUTPUT_DEVICES', + 'assign', + 'autofill-detection', + 'ChromeDriverw', + 'detectAutofillFieldsAsync', + 'closeTrustStore', + 'velenpublicwebcrawler', + 'BROWSER_TAB_HISTORY_LENGTH', + '__webdriverFunc', + 'fingerPrintComponentKeys', + 'UNMASKED_RENDERER_WEBGL', + 'rgb(250, 255, 189)', + ' [native code]', + 'srcdoc', + ' inputs, checking first ', + 'auto-filled', + '134966JLWZeC', + 'WEBGL_MAXVARYINGVECTORS', + 'getContext', + 'getUndefinedValueLie', + 'window_RunPerfTest', + 'video/mp4;; codecs = "avc1.42E01E"', + 'timezone', + 'pdfViewerEnabled', + 'blob_constructor', + 'cookieEnabled', + 'deviceCategory', + 'maxVertexUniformVectors', + '() {', + 'message', + 'localAgentJwtRequestCount', + '_POSignalsUtils', + 'android', + 'dataforseobot', + 'details', + 'FONT_PREFERENCES', + 'window_fmget_targets', + 'DEDVCE_LIGHT_SUPPORTED', + 'magnetometer', + 'devicePixelRatio', + '__webdriver_script_fn', + 'ligatures', + '7WNrfWV', + 'charAt', + 'contrast', + 'hardwareConcurrency', + 'sendMessage', + 'getDeviceCreatedAt', + '5NNuPlr', + 'failed to get lies results', + 'WEBGL_EXTENSIONS', + 'audiooutput', + 'trim', + 'metadataQueue', + 'isElectronFamily', + 'LvTel', + 'timestamp', + 'WEBGL_SHADINGLANGUAGEVERSION', + 'indexeddbblob', + 'indexedDB', + '$cdc_asdjflasutopfhvcZLmcfl_', + 'failed to get headless results', + 'hide', + 'hasAutofill', + 'stack', + 'version', + 'catch', + "Geolocation permission state is '", + 'Geolocation retrieval failed: Unknown geolocation error occurred.', + 'Incognito', + 'substr', + 'metadataParams', + 'serviceWorker', + 'indexed_db', + '11ZffRNu', + '[[IsRevoked]]', + 'autofill-detector-styles', + 'getSerializedDeviceAttributes', + 'contextmenu', + 'light', + 'longitude', + 'documentElement', + 'BATTERY_DISCHARGING_TIME', + '***', + 'inapp', + 'facebookbot', + 'htmlGeoLocation_ErrorCode', + 'failed to add client hints', + 'getBroPrintFingerPrint', + 'object', + 'ontouchstart', + 'getAutofillMetadataAsync', + 'prompt', + 'detectInputAutofill', + 'removeItem', + '2430492PIrYHv', + 'accuracy', + 'MEDIA_CODEC_', + 'payment-handler', + 'autofillCount', + 'ipad', + 'disabledStorage', + 'fingerprint', + 'propertyBlackList', + 'function get contentWindow() { [native code] }', + 'vendor', + 'hasEvent', + 'includes', + 'Linux', + 'data-com-onepassword-filled', + 'isMobile', + 'screenResolution', + 'quota_management', + 'cors', + 'BROWSER_VERSION', + 'createInvisibleElement', + 'HAS_SPEAKERS', + 'iphone', + 'function', + '$chrome_asyncScriptInfo', + 'NAVIGATOR_LANGUAGE', + 'failed to get private mode info', + 'INCOMPATIBLE_BROWSER', + 'WEBGL_VERSION', + 'ondevicelight', + 'BATTERY_SUPPORTED', + 'getOwnPropertyNames', + 'appName', + 'cookieStore', + 'webkitConnection', + 'isWebGlSupported', + 'PDF_VIEWER_ENABLED', + 'extensions', + 'IS_WEBGL', + 'NextBook', + 'undefined', + 'BATTERY_LEVEL', + 'prefixed', + 'HAS_TOUCH', + 'query', + 'touch_events', + 'addClientHints', + 'host', + 'address', + 'MEDIA_CODEC_AAC', + 'NAVIGATOR_HARDWARE_CONCURRENCY', + 'MAX_VERTEX_ATTRIBS', + 'innerWidth', + '_phantom', + 'style', + 'toUpperCase', + 'headlessTests', + 'IFRAME_HEIGHT', + 'VIDEO', + 'full_screen', + 'IS_ELECTRON_FAMILY', + 'OS_CPU', + 'webkitTemporaryStorage', + 'platform', + 'seleniumInDocument', + 'contentWindow', + 'DeviceOrientationEvent', + 'IS_ACCEPT_COOKIES', + 'ondeviceproximity', + 'head', + 'mediaDevices', + 'product', + 'code', + 'trident', + 'HAS_MICROPHONE', + 'detectionMethods', + 'CPU_ARCHITECTURE', + 'NAVIGATOR_WEB_DRIVER', + 'externalIdentifiers', + 'browserInfo', + 'hasMicrophone', + 'Metadata', + 'Battery not supported!', + 'tel', + 'htmlGeoLocation_heading', + 'getComputedStyle', + 'FINGER_PRINT', + 'all', + '1835012icbJLw', + 'unknown transient reason', + 'NOTIFICATION_PERMISSION', + 'timeout', + 'BROWSER_ENGINE_NAME', + 'Geolocation retrieval failed: Location request timed out.', + 'vertical', + '__lastWatirConfirm', + 'mobile', + 'getCurrentBrowserFingerPrint', + 'apply', + 'permissions_api', + 'RESOLUTION', + 'petalbot', + 'calculateDeviceMetadata', + 'MEDIA_CODEC_X_M4A', + 'IFRAME_DATA', + 'tan', + 'batteryCharging', + 'sessionStorage.length', + 'domAutomation', + 'body', + 'driver', + 'field-type-heuristic', + 'typed_arrays', + 'isChromeFamily', + 'RCA', + 'DOCUMENT_ELEMENT_WEBDRIVER', + 'linux', + 'PUSH_NOTIFICATIONS_SUPPORTED', + 'rtt', + 'detectIncognitoInternal', + 'audio/x-m4a', + 'selenium', + 'webdriver-evaluate-response', + 'failed to get audio-video info', + 'rad.io', + 'candidate', + 'gptbot', + 'persistent-storage', + 'isBatterySupported', + 'navigator.languages_blank', + 'google-extended', + 'placeholder', + 'getAiaSignals', + 'data-autofilled', + ':-moz-autofill', + 'failed to get permissions info', + 'pagevisibility', + 'forcetouch', + '__fxdriver_unwrapped', + 'duration', + 'diffbot', + 'ACCELEROMETER_SUPPORTED', + 'localStorage', + 'processInputsWithTimeout', + 'Verizon', + 'Failed to detect autofill:', + 'document', + 'srcdoc_throws_error', + 'spawn', + 'opera', + 'indexOf', + '(prefers-color-scheme: dark)', + 'PERMISSIONS.geolocation', + 'agentPort', + 'getObfsInfo', + 'devToolsOrientation', + 'audioInputDevices', + 'trustToken', + 'random', + 'MAX_VERTEX_TEXTURE_IMAGE_UNITS', + 'visitorId', + 'touchevents', + 'add', + 'webGlStatus', + 'cros', + 'engineVersion', + 'you', + 'queryUsageAndQuota', + 'floc_version', + 'horizontal', + 'outerWidth', + 'extendPrimitiveValues', + 'maxFragmentUniformVectors', + 'throw', + 'getRTCPeerConnection', + 'getOwnPropertyDescriptor', + 'Swiss', + 'web_gl', + 'MAX_TEXTURE_SIZE', + 'BLUTOOTH_SUPPORTED', + 'level', + 'WEB_RTC_SRFLX_IP', + 'json', + 'awesomium', + 'Safari', + 'Function_prototype_toString_invalid_typeError', + 'IS_CANVAS', + 'NAVIGATOR_VIBRATE', + 'arguments', + 'promiseTimeout', + 'tagName', + '20030107', + 'contains', + 'claude-web', + 'consistent_plugins_prototype', + 'done', + 'REF_LINK', + 'exec', + 'MAX_VARYING_VECTORS', + 'headless_chrome', + 'Other', + 'join', + 'oai-searchbot', + 'safari', + 'race', + 'WEBKIT_FORCE_AT_MOUSE_DOWN', + 'webRtcUrl', + 'iframe_window', + 'push', + 'fontPreferences', + 'error', + 'permissions', + 'NAVIGATOR_PRESENTATION_SUPPORTED', + 'querySelectorAll not supported for autofill detection', + 'NAVIGATOR_CLIENT_HINTS_MOBILE', + 'consistent_mimetypes_prototype', + 'Chrome', + 'Failed to query input elements:', + 'userAgentData', + 'isBot', + 'geb', + 'Modernizr.on Failed with feature ', + 'quotamanagement', + 'FingerPrint failed', + 'moz-autofill', + 'NAVIGATOR_CLIENT_HINTS_PLATFORM', + 'data_view', + 'PERMISSIONS', + 'NAVIGATOR_APP_NAME', + 'minDecibels', + 'ZTE', + 'getWebglCanvas', + 'selenium-evaluate', + 'oscpu', + 'selenium_in_navigator', + 'WEBGL_MAXTEXTUREIMAGEUNITS', + 'StackTraceTester', + 'Dell', + 'monochrome', + 'browser', + 'split', + 'maxTextureImageUnits', + 'getHasLiedOs', + 'aiSignalsResult', + 'getCurrentPosition', + 'additionalMediaCodecs', + 'sqrt', + 'text', + 'window_html_webdriver', + 'load', + 'WEBGL_MAXTEXTURESIZE', + '6157656ZpfHUz', + 'clipboard-read', + 'storage', + 'osVersion', + 'scrapy', + 'omgili', + 'architecture', + 'availHeight', + 'brand', + 'NETWORK_TYPE', + ':-webkit-autofill', + 'SeleniumProperties', + 'fingerPrintComponents', + 'kind', + 'slice', + 'dischargingTime', + 'headlessResults', + 'searchLies', + 'Neither WebGL 2.0 nor WebGL 1.0 is supported.', + 'batteryInit', + 'pow', + 'isIphoneOrIPad', + 'failed to get broJsFingerprint info', + 'failed to get fingerprint info', + 'NAVIGATOR_MAX_TOUCH_POINTS', + 'writable', + 'failed to get battery info', + 'addEventListener', + 'Windows', + 'SCREEN_FRAME', + 'input:-webkit-autofill { animation: autofill-detection 0.001s; }', + 'IS_TOUCH_DEVICE', + 'localAgentAccessor', + 'PingOne Signals deviceCreatedAt: ', + 'initDeviceIdentity', + 'audioinput', + 'getLineDash', + 'batteryChargingTime', + '4639743pRrmii', + 'openDatabase', + 'iframe', + 'onAutoFillStart', + 'msSaveBlob', + '_WEBDRIVER_ELEM_CACHE', + 'HAS_CAMERA', + 'application/json', + 'DOCUMENT_ELEMENT_SELENIUM', + 'x_domain_request', + 'lied', + 'rgb(232, 240, 254)', + 'Failed to fetch the Workstation data. Invalid network response: ', + 'safeAddMetadata', + 'toLowerCase', + 'app', + '(min-width: ', + 'WEBGL_MAXFRAGMENTUNIFORMVECTORS', + 'VENDOR_FLAVORS', + '4710QYuxeJ', + '__webdriver_script_function', + 'memory', + 'Unknown', + 'getOps', + 'requestIdleCallback', + 'custom_elements', + '__selenium_unwrapped', + 'SDKBP_FINGERPRINT', + 'NAVIGATOR_DEVICE_MEMORY', + 'gpsSupported', + 'event_listener', + 'animationName', + '(prefers-color-scheme: light)', + 'Insignia', + 'cant', + 'match', + 'mimeTypes', + 'exiforientation', + 'Envizen', + 'function get ', + 'open', + 'dark', + 'email', + 'Geolocation API is not supported by this browser.', + 'WEBGL_MAXCOMBINEDTEXTUREIMAGEUNITS', + 'service_worker', + 'DeviceMotionEvent', + 'deviceVendor', + 'customevent', + 'hasAttribute', + 'isArray', + 'dart', + 'setAttribute', + '__proto__', + 'timpibot', + 'query_selector', + 'reducedTransparency', + 'Autofill detection timeout after processing ', + 'debug', + 'geolocation', + 'performance', + 'configurable', + 'collectWebRtc', + 'isAutofilled', + 'DEVICE_VENDOR', + 'ai2bot', + 'appendChild', + 'webkitRequestFileSystem', + 'parse', + 'renderer', + 'filter', + 'name', + 'onupgradeneeded', + 'xdomainrequest', + '__driver_unwrapped', + 'atan', + 'Util', + '__awaiter', + 'dataPoints', + 'maxRenderbufferSize', + 'getLocalAgentJwt', + 'set', + 'claudebot', + 'domAutomationController', + 'seleniumInWindow', + 'freeze', + 'data-lastpass-icon-id', + 'Failed to query input elements in async detection:', + 'fullscreen', + 'create', + 'localStorage.length', + 'Brave', + 'addIframeData', + '14330728RUXYai', + 'Firefox', + 'fonts', + 'osCpu', + 'referrer', + 'numberOfVideoDevices', + 'detectChromium', + 'abort', + '__selenium_evaluate', + 'Failed to get Fingerprint from getCurrentBrowserFingerPrint', + 'ops', + 'Notification', + 'languages', + 'ipod', + 'getAttribute', + 'label', + 'connect', + 'googleother-video', + 'floc', + 'Opera', + 'navigator', + 'audioIntVideoInit', + 'getSupportedExtensions', + 'PERMISSION_DENIED', + 'audioBaseLatency', + 'matchMedia', + 'find', + 'serviceworker', + 'cookiesEnabled', + 'statusText', + ]; + return ( + (_0x455d = function () { + return c; + }), + _0x455d() + ); + } + (function (c) { + const h = _0x7ea2; + let p; + (function (n) { + const r = _0x4e19; + class a { + [r(494)]() { + const i = r; + try { + const t = { + hasAutofill: !1, + autofillCount: 0, + detectedFields: [], + detectionMethods: [], + }; + if (typeof document === i(834)) return ( - 1.4474840516030247 == Math[t(n)](0.123) && - 0.881373587019543 == Math.acosh(Math[t(775)]) && - 1.1071487177940904 == Math.atan(2) && - 0.5493061443340548 == Math[t(972)](0.5) && - 1.4645918875615231 == Math[t(577)](Math.PI) && - -0.4067775970251724 == Math[t(537)](21 * Math[t(770)]) && - 9.199870313877772e307 == Math[t(1009)](492 * Math[t(j)]) && - 1.718281828459045 == Math[t(W)](1) && - 101.76102278593319 == Math.hypot(6 * Math.PI, -100) && - 0.4971498726941338 == Math[t(759)](Math.PI) && - 1.2246467991473532e-16 == Math[t(K)](Math.PI) && - 11.548739357257748 == Math[t(687)](Math.PI) && - -3.3537128705376014 == Math[t(482)](10 * Math[t(525)]) && - 0.12238344189440875 == Math[t(575)](0.123) && - 1.9275814160560204e-50 == Math[t(1084)](Math.PI, -100) - ); - }), - Dt - ); - })(); - e.Metadata = j; - var W = (function () { - var e = _0x34d2; - function i(t, e) { - var n = _0x34d2; - (this[n(1297)] = t), - (this.agentTimeout = e), - (this[n(1128)] = n(1028)), - (this[n(531)] = '/device'); - } - return ( - (i[e(n)][e(1055)] = function () { - return __awaiter(this, void 0, void 0, function () { - var e, - n, - i, - r, - o, - a, - s, - u = 1128, - c = 1090, - l = 1320, - d = 1161, - h = 810, - f = 1290, - g = 815, - p = 599, - v = 1278, - _ = 1114, - m = 682, - b = 599, - y = 1023, - E = 990, - w = 903; - return __generator(this, function (S) { - var O = _0x34d2; - switch (S.label) { - case 0: - (e = this[O(u)] + ':' + this[O(1297)] + this[O(531)]), - (n = new AbortController()), - (i = n[O(c)]), - (r = setTimeout(function () { - return n[O(w)](); - }, this[O(l)])), - (S.label = 1); - case 1: - return ( - S[O(737)][O(d)]([1, 4, 5, 6]), - [4, fetch(e, { method: O(h), headers: { 'Content-Type': O(f) }, signal: i })] - ); - case 2: - return (o = S[O(1278)]()).ok - ? [4, o[O(678)]()] - : (t[O(g)][O(p)][O(1023)]( - 'Failed to fetch the Workstation data. Invalid network response: ' + - o[O(1208)], - ), - [2, void 0]); - case 3: - return (a = S.sent()), t._POSignalsUtils[O(599)][O(1023)](O(960)), [2, a]; - case 4: - return ( - (s = S[O(v)]())[O(_)] === O(892) - ? t[O(815)][O(599)][O(690)](O(m) + this.agentTimeout + 'ms') - : t._POSignalsUtils[O(b)][O(y)]( - 'Failed to fetch the Workstation data: ' + s[O(E)], - ), - [2, void 0] - ); - case 5: - return clearTimeout(r), [7]; - case 6: - return [2]; + c[i(730)].Logger.warn(i(647)), + { + hasAutofill: !1, + autofillCount: 0, + detectedFields: [], + detectionMethods: ['document-unavailable'], } - }); - }); - }), - i - ); - })(); - e.LocalAgentAccessor = W; - })(t[S(709)] || (t[S(e)] = {})); - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function (t) { - var e, - n, - i, - r, - o, - a, - s, - u, - c, - l, - d, - h, - f, - g, - p, - v, - _, - m, - b, - y, - E, - w, - S, - O, - I = 1108, - T = 1079, - A = _0x2a96a4; - (e = t._POSignalsMetadata || (t[A(709)] = {})), - (n = 963), - (i = 1126), - (r = 788), - (o = 1231), - (a = 1308), - (s = 604), - (u = 1144), - (c = 993), - (l = 637), - (d = 1323), - (h = 585), - (f = 790), - (g = 507), - (p = 1052), - (v = 1134), - (_ = 532), - (m = 751), - (b = 1020), - (y = 707), - (E = 1126), - (w = 788), - (S = 601), - (O = (function () { - var t = 516, - e = 565, - O = 717, - A = _0x34d2; - function P() {} - return ( - (P[A(I)] = function () { - for ( - var t = A, - e = 0, - n = [ - t(963), - t(m), - t(916), - t(b), - t(703), - t(y), - t(E), - t(w), - t(1293), - t(1231), - '__fxdriver_unwrapped', - ]; - e < n[t(S)]; - e++ - ) { - if (document[n[e]]) return !0; - } - return !1; - }), - (P.seleniumInWindow = function () { - for ( - var t = A, e = 0, n = [t(914), t(1139), t(923), t(520), t(1144), t(_), t(604)]; - e < n[t(601)]; - e++ - ) { - if (window[n[e]]) return !0; - } - return !1; - }), - (P[A(T)] = function () { - for ( - var t = A, - e = 0, - _ = [ - 'webdriver', - t(1293), - t(n), - t(751), - t(707), - t(i), - t(r), - t(o), - t(a), - t(s), - '_selenium', - t(u), - t(c), - t(l), - t(d), - 'webdriver-evaluate', - t(h), - t(988), - t(f), - '__webdriverFunc', - t(703), - t(g), - t(p), - t(v), - '__lastWatirPrompt', - '$chrome_asyncScriptInfo', - '$cdc_asdjflasutopfhvcZLmcfl_', - ]; - e < _[t(601)]; - e++ - ) { - if (navigator[_[e]]) return !0; - } - return !1; - }), - (P.seleniumSequentum = function () { - var n = A; - return ( - window[n(t)] && - window[n(t)].toString() && - -1 != window[n(516)][n(e)]()[n(O)](n(515)) ); - }), - P - ); - })()), - (e.SeleniumProperties = O); - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function (t) { - var e, - n, - i, - r, - o, - a, - s, - u, - c, - l, - d, - h, - f, - g, - p, - v, - _, - m, - b, - y, - E = 709, - w = 879, - S = 1218, - O = 906, - I = 1072, - T = 1211, - A = 1284, - P = 873, - C = 1200, - L = 511, - D = 1111, - x = 1284, - M = 1329, - R = 1330, - U = 662, - k = 1284, - N = 1336, - B = _0x2a96a4; - (e = t[B(709)] || (t[B(E)] = {})), - (i = (n = _0x34d2)(1114)), - (r = n(1291)), - (o = n(799)), - (a = n(639)), - (s = n(w)), - (u = n(S)), - (c = n(584)), - (l = n(O)), - (d = n(I)), - (h = n(666)), - (f = n(T)), - (g = n(1118)), - (p = Object[n(A)]({ - browser: [[/(wget|curl|lynx|elinks|httpie)[\/ ]\(?([\w\.-]+)/i], [i, a, [r, l]]], - })), - (v = Object[n(1284)]({ - browser: [ - [ - /((?:ahrefs|amazon|bing|cc|dot|duckduck|exa|facebook|gpt|mj12|mojeek|oai-search|perplexity|semrush|seznam)bot)\/([\w\.-]+)/i, - /(applebot(?:-extended)?)\/([\w\.]+)/i, - /(baiduspider)[-imagevdonsfcpr]{0,6}\/([\w\.]+)/i, - /(claude(?:bot|-web)|anthropic-ai)\/?([\w\.]*)/i, - /(coccocbot-(?:image|web))\/([\w\.]+)/i, - /(facebook(?:externalhit|catalog)|meta-externalagent)\/([\w\.]+)/i, - /(google(?:bot|other|-inspectiontool)(?:-image|-video|-news)?|storebot-google)\/?([\w\.]*)/i, - /(ia_archiver|archive\.org_bot)\/?([\w\.]*)/i, - /((?:semrush|splitsignal)bot[-abcfimostw]*)\/([\w\.-]+)/i, - /(sogou (?:pic|head|web|orion|news) spider)\/([\w\.]+)/i, - /(y!?j-(?:asr|br[uw]|dscv|mmp|vsidx|wsc))\/([\w\.]+)/i, - /(yandex(?:(?:mobile)?(?:accessibility|additional|renderresources|screenshot|sprav)?bot|image(?:s|resizer)|video(?:parser)?|blogs|adnet|favicons|fordomain|market|media|metrika|news|ontodb(?:api)?|pagechecker|partner|rca|tracker|turbo|vertis|webmaster|antivirus))\/([\w\.]+)/i, - /(yeti)\/([\w\.]+)/i, - /((?:aihit|diff|timpi|you)bot|omgili(?:bot)?|(?:magpie-|velenpublicweb)crawler|webzio-extended|(?:screaming frog seo |yisou)spider)\/?([\w\.]*)/i, - ], - [i, a, [r, c]], - [ - /((?:adsbot|apis|mediapartners)-google(?:-mobile)?|google-?(?:other|cloudvertexbot|extended|safety))/i, - /\b(360spider-?(?:image|video)?|bytespider|(?:ai2|aspiegel|dataforseo|imagesift|petal|turnitin)bot|teoma|(?=yahoo! )slurp)/i, - ], - [i, [r, c]], - ], - })), - Object[n(A)]({ - device: [ - [ - /(nook)[\w ]+build\/(\w+)/i, - /(dell) (strea[kpr\d ]*[\dko])/i, - /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, - /(trinity)[- ]*(t\d{3}) bui/i, - /(gigaset)[- ]+(q\w{1,9}) bui/i, - /(vodafone) ([\w ]+)(?:\)| bui)/i, - ], - [o, 'model', [r, u]], - [/(u304aa)/i], - ['model', [o, n(627)], [r, s]], - [/\bsie-(\w*)/i], - ['model', [o, n(1e3)], [r, s]], - [/\b(rct\w+) b/i], - ['model', [o, n(545)], [r, u]], - [/\b(venue[\d ]{2,7}) b/i], - ['model', [o, n(1130)], [r, u]], - [/\b(q(?:mv|ta)\w+) b/i], - ['model', [o, n(1276)], [r, u]], - [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], - ['model', [o, n(P)], [r, u]], - [/\b(tm\d{3}\w+) b/i], - ['model', [o, n(1033)], [r, u]], - [/\b(k88) b/i], - ['model', [o, n(C)], [r, u]], - [/\b(nx\d{3}j) b/i], - ['model', [o, n(1200)], [r, s]], - [/\b(gen\d{3}) b.+49h/i], - ['model', [o, 'Swiss'], [r, s]], - [/\b(zur\d{3}) b/i], - ['model', [o, 'Swiss'], [r, u]], - [/^((zeki)?tb.*\b) b/i], - ['model', [o, 'Zeki'], [r, u]], - [/\b([yr]\d{2}) b/i, /\b(?:dragon[- ]+touch |dt)(\w{5}) b/i], - ['model', [o, n(576)], [r, u]], - [/\b(ns-?\w{0,9}) b/i], - ['model', [o, 'Insignia'], [r, u]], - [/\b((nxa|next)-?\w{0,9}) b/i], - ['model', [o, n(594)], [r, u]], - [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], - [[o, n(L)], 'model', [r, s]], - [/\b(lvtel\-)?(v1[12]) b/i], - [[o, n(610)], 'model', [r, s]], - [/\b(ph-1) /i], - ['model', [o, n(D)], [r, s]], - [/\b(v(100md|700na|7011|917g).*\b) b/i], - ['model', [o, n(681)], [r, u]], - [/\b(trio[-\w\. ]+) b/i], - ['model', [o, 'MachSpeed'], [r, u]], - [/\btu_(1491) b/i], - ['model', [o, n(1027)], [r, u]], - ], - }), - Object.freeze({ - browser: [ - [ - /(airmail|bluemail|emclient|evolution|foxmail|kmail2?|kontact|(?:microsoft |mac)?outlook(?:-express)?|navermailapp|(?!chrom.+)sparrow|thunderbird|yahoo)(?:m.+ail; |[\/ ])([\w\.]+)/i, - ], - [i, a, [r, d]], - ], - }), - (_ = Object[n(1284)]({ - browser: [ - [ - /(ahrefssiteaudit|bingpreview|chatgpt-user|mastodon|(?:discord|duckassist|linkedin|pinterest|reddit|roger|siteaudit|telegram|twitter|uptimero)bot|google-site-verification|meta-externalfetcher|y!?j-dlc|yandex(?:calendar|direct(?:dyn)?|searchshop)|yadirectfetcher)\/([\w\.]+)/i, - /(bluesky) cardyb\/([\w\.]+)/i, - /(slack(?:bot)?(?:-imgproxy|-linkexpanding)?) ([\w\.]+)/i, - /(whatsapp)\/([\w\.]+)[\/ ][ianw]/i, - ], - [i, a, [r, h]], - [ - /(cohere-ai|vercelbot|feedfetcher-google|google(?:-read-aloud|producer)|(?=bot; )snapchat|yandex(?:sitelinks|userproxy))/i, - ], - [i, [r, h]], - ], - })), - Object[n(x)]({ - browser: [ - [/chatlyio\/([\d\.]+)/i], - [a, n(M), [r, 'inapp']], - [/jp\.co\.yahoo\.android\.yjtop\/([\d\.]+)/i], - [a, n(R), [r, 'inapp']], - ], - }), - Object[n(1284)]({ - browser: [ - [ - /(apple(?:coremedia|tv))\/([\w\._]+)/i, - /(coremedia) v([\w\._]+)/i, - /(ares|clementine|music player daemon|nexplayer|ossproxy) ([\w\.-]+)/i, - /^(aqualung|audacious|audimusicstream|amarok|bass|bsplayer|core|gnomemplayer|gvfs|irapp|lyssna|music on console|nero (?:home|scout)|nokia\d+|nsplayer|psp-internetradioplayer|quicktime|rma|radioapp|radioclientapplication|soundtap|stagefright|streamium|totem|videos|xbmc|xine|xmms)\/([\w\.-]+)/i, - /(lg player|nexplayer) ([\d\.]+)/i, - /player\/(nexplayer|lg player) ([\w\.-]+)/i, - /(gstreamer) souphttpsrc.+libsoup\/([\w\.-]+)/i, - /(htc streaming player) [\w_]+ \/ ([\d\.]+)/i, - /(lavf)([\d\.]+)/i, - /(mplayer)(?: |\/)(?:(?:sherpya-){0,1}svn)(?:-| )(r\d+(?:-\d+[\w\.-]+))/i, - / (songbird)\/([\w\.-]+)/i, - /(winamp)(?:3 version|mpeg| ) ([\w\.-]+)/i, - /(vlc)(?:\/| media player - version )([\w\.-]+)/i, - /^(foobar2000|itunes|smp)\/([\d\.]+)/i, - /com\.(riseupradioalarm)\/([\d\.]*)/i, - /(mplayer)(?:\s|\/| unknown-)([\w\.\-]+)/i, - /(windows)\/([\w\.-]+) upnp\/[\d\.]+ dlnadoc\/[\d\.]+ home media server/i, - ], - [i, a, [r, f]], - [/(flrp)\/([\w\.-]+)/i], - [[i, n(U)], a, [r, f]], - [ - /(fstream|media player classic|inlight radio|mplayer|nativehost|nero showtime|ocms-bot|queryseekspider|tapinradio|tunein radio|winamp|yourmuze)/i, - ], - [i, [r, f]], - [/(htc_one_s|windows-media-player|wmplayer)\/([\w\.-]+)/i], - [[i, /[_-]/g, ' '], a, [r, f]], - [/(rad.io|radio.(?:de|at|fr)) ([\d\.]+)/i], - [[i, n(1221)], a, [r, f]], - ], - }), - (m = Object.freeze({ - browser: [ - [ - /^(apache-httpclient|axios|(?:go|java)-http-client|got|guzzlehttp|java|libwww-perl|lua-resty-http|needle|node-(?:fetch|superagent)|okhttp|php-soap|postmanruntime|python-(?:urllib|requests)|scrapy)\/([\w\.]+)/i, - /(jsdom|java)\/([\w\.]+)/i, - ], - [i, a, [r, g]], - ], - })), - Object[n(1284)]({ - device: [ - [/dilink.+(byd) auto/i], - [o], - [/(rivian) (r1t)/i], - [o, 'model'], - [/vcc.+netfront/i], - [[o, n(1314)]], - ], - }), - (b = Object[n(k)]({ browser: __spreadArrays(p[n(N)], v[n(N)], _[n(N)], m[n(1336)]) })), - (y = (function () { - var t = { _0x3f4902: 825, _0x530840: 583 }, - e = { _0x423863: 601, _0x1cec5f: 649 }; - return function () { - var n = 1129, - i = 582, - r = 956, - o = 1058, - a = 767, - s = 1107, - u = 680, - c = 517, - l = 789, - d = 1187, - h = 634, - f = 693, - g = 491, - p = _0x34d2; - (this[p(514)] = function (t) { - var e = p; - return [ - e(1082), - 'amazonbot', - e(n), - e(i), - 'claudebot', - e(595), - 'applebot-extended', - 'bytespider', - e(1310), - e(r), - e(o), - e(a), - e(s), - e(485), - 'google-extended', - 'imagesiftbot', - 'petalbot', - e(u), - e(785), - e(c), - e(l), - e(d), - e(h), - e(1280), - 'velenpublicwebcrawler', - e(f), - e(g), - e(777), - e(1309), - e(1137), - ].some(function (n) { - var i = e; - return t.toLowerCase()[i(539)](n); - }); - }), - (this.isBot = function (t) { - for (var n = p, i = t[n(1006)](), r = b[n(1336)], o = 0; o < r[n(601)]; o += 2) - for ( - var a = r[o], s = 0, u = Array.isArray(a) ? a : [a]; - s < u[n(e._0x423863)]; - s++ - ) { - var c = u[s]; - if (c instanceof RegExp && c[n(e._0x1cec5f)](i)) return !0; - } - return !1; - }), - (this[p(t._0x3f4902)] = function (t) { - var e = p; - return t.name === Engine[e(1268)]; - }), - (this[p(t._0x530840)] = function (t) { - var e = p; - return t[e(1006)]()[e(539)](e(1176)); - }); - }; - })()), - (e[n(820)] = y); - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function (t) { - var e, - n, - i, - r, - o, - a, - s, - u, - c, - l, - d, - h, - f, - g, - p, - v, - _, - m, - b, - y, - E, - w, - S, - O, - I, - T, - A, - P, - C, - L, - D, - x, - M, - R, - U, - k, - N, - B, - F, - H, - V, - G, - j, - W, - K, - z, - Y, - X, - q, - J, - Z, - Q, - $, - tt, - et, - nt, - it = 709, - rt = 723, - ot = _0x2a96a4; - (e = t[ot(it)] || (t[ot(it)] = {})), - (n = 816), - (i = 816), - (r = 1238), - (o = 716), - (a = 816), - (s = 1006), - (u = 1040), - (c = 758), - (l = 717), - (d = 1050), - (h = 736), - (f = 1017), - (g = 717), - (p = 861), - (v = 742), - (_ = 1207), - (m = 565), - (b = 601), - (y = 736), - (E = 629), - (w = 841), - (S = 1006), - (O = 622), - (I = 804), - (T = 754), - (A = 1259), - (P = 895), - (C = 717), - (L = 648), - (D = 721), - (x = 718), - (M = 648), - (R = 951), - (U = 717), - (k = 717), - (N = 822), - (B = 717), - (F = 1034), - (H = 771), - (V = 1149), - (G = 717), - (j = 717), - (W = 1044), - (K = 771), - (z = 1259), - (Y = 804), - (X = 1296), - (q = 1291), - (J = 608), - (Z = 1182), - (Q = 672), - ($ = 654), - (tt = 672), - (et = _0x34d2), - (nt = (function () { - var t = 845, - e = 1253, - et = 827, - nt = 1234, - it = 484, - rt = 654, - ot = 1182, - at = 1112, - st = 726, - ut = 726, - ct = 931, - lt = 1061, - dt = 832, - ht = 811, - ft = 1212, - gt = 1061, - pt = 1061, - vt = 881, - _t = 1061, - mt = 1039, - bt = _0x34d2; - function yt() {} - return ( - (yt[bt(n)][bt(834)] = function () { - var t = bt, - e = document[t($)](t(1182)); - return !(!e[t(tt)] || !e[t(tt)]('2d')); - }), - (yt[bt(i)][bt(r)] = function (t) { - var e = bt, - n = document[e(654)](e(Z)), - i = null; - try { - i = - 'webgl' === t - ? n.getContext(e(505)) || n[e(672)]('experimental-webgl') - : n[e(Q)]('webgl2'); - } catch (t) {} - return i; - }), - (yt[bt(816)][bt(1296)] = function () { - var t = bt; - if (!this[t(834)]()) return { supported: !1, type: null }; - var e = this.getWebglCanvas(t(608)); - return e - ? { supported: !0, type: t(608) } - : (e = this.getWebglCanvas(t(505))) - ? { supported: !0, type: t(505) } - : { supported: !1, type: null }; - }), - (yt.prototype[bt(1013)] = function () { - var t = bt; - return this[t(1296)]()[t(909)]; - }), - (yt[bt(i)][bt(o)] = function () { - var t = bt, - e = this[t(X)](), - n = e.supported, - i = e[t(q)]; - return n && i === t(J); - }), - (yt[bt(816)][bt(947)] = function () { - var t, - e, - n, - i, - r = bt, - o = document[r(rt)](r(ot)); - try { - !(t = o[r(672)](r(608))) && - !(t = o.getContext(r(505)) || o.getContext(r(at))) && - console.log(r(st)); - } catch (t) { - console.log(r(ut)); - } - try { - (e = t[r(1159)]('WEBGL_debug_renderer_info')), - (n = t.getParameter(e[r(ct)])), - (i = t[r(lt)](e.UNMASKED_RENDERER_WEBGL)); - } catch (e) { - (n = t.getParameter(t.VENDOR)), (i = t[r(1061)](t[r(dt)])); - } - return { - vendor: n, - renderer: i, - webglVersion: t[r(1061)](t.VERSION), - shadingLanguageVersion: t[r(1061)](t[r(668)]), - extensions: t[r(534)](), - maxTextureSize: t.getParameter(t.MAX_TEXTURE_SIZE), - maxRenderbufferSize: t[r(lt)](t[r(ht)]), - maxTextureImageUnits: t[r(1061)](t.MAX_TEXTURE_IMAGE_UNITS), - maxVertexTextureImageUnits: t[r(1061)](t[r(ft)]), - maxCombinedTextureImageUnits: t[r(gt)](t[r(1171)]), - maxVertexAttribs: t[r(pt)](t[r(1316)]), - maxVaryingVectors: t[r(gt)](t[r(vt)]), - maxVertexUniformVectors: t[r(_t)](t[r(mt)]), - maxFragmentUniformVectors: t.getParameter(t[r(782)]), - }; - }), - (yt.prototype.getHasLiedLanguages = function () { - var t = bt; - if (void 0 !== navigator.languages) - try { - if (navigator.languages[0][t(it)](0, 2) !== navigator.language[t(484)](0, 2)) - return !0; - } catch (t) { - return !0; - } - return !1; - }), - (yt.prototype[bt(866)] = function () { - var n = bt; + if (!document[i(549)]) return ( - window.screen[n(t)] < window[n(827)][n(e)] || - window[n(827)][n(1100)] < window[n(et)][n(nt)] + c[i(730)][i(1278)][i(482)](i(1007)), + { + hasAutofill: !1, + autofillCount: 0, + detectedFields: [], + detectionMethods: [i(1214)], + } ); - }), - (yt[bt(a)].getHasLiedOs = function () { - var t, - e = bt, - n = navigator[e(w)][e(S)](), - i = navigator.oscpu, - r = navigator[e(O)].toLowerCase(); - if ( - ((t = - n[e(717)]('windows phone') >= 0 - ? e(I) - : n[e(717)](e(T)) >= 0 - ? e(A) - : n[e(717)](e(1034)) >= 0 - ? e(P) - : n[e(717)]('linux') >= 0 || n.indexOf(e(556)) >= 0 - ? e(735) - : n[e(C)](e(1044)) >= 0 || n[e(717)](e(771)) >= 0 - ? e(L) - : n.indexOf(e(D)) >= 0 - ? e(915) - : 'Other'), - ('ontouchstart' in window || navigator[e(x)] > 0 || navigator[e(632)] > 0) && - 'Windows Phone' !== t && - t !== e(895) && - t !== e(M) && - t !== e(R)) - ) - return !0; - if (typeof i !== e(727)) { - if ((i = i[e(1006)]())[e(U)]('win') >= 0 && t !== e(A) && t !== e(804)) return !0; - if (i.indexOf('linux') >= 0 && t !== e(735) && t !== e(895)) return !0; - if (i.indexOf(e(721)) >= 0 && 'Mac' !== t && t !== e(M)) return !0; - if ( - (-1 === i[e(717)](e(754)) && -1 === i[e(k)](e(822)) && -1 === i[e(717)]('mac')) != - ('Other' === t) - ) - return !0; - } + let e; + try { + e = document[i(549)]('input'); + } catch (v) { return ( - (r[e(717)](e(754)) >= 0 && t !== e(A) && t !== e(804)) || - ((r.indexOf(e(N)) >= 0 || r[e(B)](e(F)) >= 0 || r[e(C)](e(791)) >= 0) && - t !== e(735) && - t !== e(895)) || - ((r[e(717)](e(D)) >= 0 || - r[e(717)](e(H)) >= 0 || - r.indexOf(e(V)) >= 0 || - r.indexOf(e(1044)) >= 0) && - t !== e(915) && - 'iOS' !== t) || - (r[e(717)]('win') < 0 && - r[e(G)]('linux') < 0 && - r[e(j)](e(D)) < 0 && - r[e(717)](e(W)) < 0 && - r.indexOf(e(K)) < 0) !== - (t === e(R)) || - (typeof navigator[e(1301)] === e(727) && t !== e(z) && t !== e(Y)) + c[i(730)].Logger[i(482)](i(1011), v), + { + hasAutofill: !1, + autofillCount: 0, + detectedFields: [], + detectionMethods: ['dom-query-error'], + } ); - }), - (yt.prototype[bt(1132)] = function () { - var t, - e = bt, - n = navigator.userAgent[e(s)](), - i = navigator[e(u)]; - if ( - ((t = - n.indexOf('firefox') >= 0 - ? e(c) - : n[e(l)](e(958)) >= 0 || n.indexOf(e(d)) >= 0 - ? e(h) - : n.indexOf('chrome') >= 0 - ? e(f) - : n[e(g)]('safari') >= 0 - ? e(p) - : n.indexOf(e(v)) >= 0 - ? 'Internet Explorer' - : e(951)) === e(1017) || - 'Safari' === t || - 'Opera' === t) && - i !== e(_) - ) - return !0; - var r, - o = eval[e(m)]()[e(b)]; - if (37 === o && t !== e(p) && 'Firefox' !== t && 'Other' !== t) return !0; - if (39 === o && t !== e(910) && 'Other' !== t) return !0; - if (33 === o && t !== e(f) && t !== e(y) && t !== e(951)) return !0; + } + if (e[i(684)] <= 50) return this[i(1349)](e, t); + const o = 1e3, + x = Math[i(398)](e[i(684)], o); + return ( + e[i(684)] > o && c[i(730)][i(1278)][i(482)](i(438) + e[i(684)] + i(713) + o), + this[i(937)](e, x, t) + ); + } catch (t) { + return ( + c[i(730)][i(1278)].warn(i(939), t), + { hasAutofill: !1, autofillCount: 0, detectedFields: [], detectionMethods: [i(1004)] } + ); + } + } + [r(1349)](i, t) { + const e = r; + for (let l = 0; l < i[e(684)]; l++) + try { + const o = i[l], + x = this[e(792)](o); + x[e(1146)] && this[e(644)](t, o, x); + } catch (o) { + c[e(730)][e(1278)][e(482)](e(1342) + l + ':', o); + } + return t; + } + [r(937)](i, t, e) { + const l = r, + o = performance[l(544)](), + x = 100, + v = 10; + let y = 0; + for (; y < t; ) { + if (performance[l(544)]() - o > x) { + c[l(730)][l(1278)][l(482)](l(1140) + y + '/' + t + l(520)), + e[l(869)][l(944)](l(885)) === -1 && e[l(869)].push(l(885)); + break; + } + const L = Math[l(398)](y + v, t); + for (let g = y; g < L; g++) try { - throw 'a'; - } catch (t) { - try { - t[e(E)](), (r = !0); - } catch (t) { - r = !1; - } + const E = i[g], + f = this[l(792)](E); + f[l(1146)] && this[l(644)](e, E, f); + } catch (E) { + c[l(730)][l(1278)][l(482)](l(1342) + g + ':', E); } - return r && 'Firefox' !== t && t !== e(951); - }), - yt - ); - })()), - (e[et(rt)] = nt); - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function (t) { - var e, - n, - i, - r, - o = 816, - a = 816, - s = _0x2a96a4; - (e = t._POSignalsMetadata || (t[s(709)] = {})), - (n = { _0x5e45cd: 755 }), - (i = _0x34d2), - (r = (function () { - var e = _0x34d2; - function i(t) { - this[_0x34d2(n._0x5e45cd)] = t; + y = L; } - return ( - (i[e(816)][e(1328)] = function () { - var e = 786, - n = 1278, - i = 1141; - return __awaiter(this, void 0, void 0, function () { - var r, - o = this; - return __generator(this, function (a) { - var s = _0x34d2; - switch (a.label) { - case 0: - return [4, this[s(e)](window)]; - case 1: - return ( - (r = a[s(n)]()), - [ - 4, - this.test(r, s(i), function () { - return __awaiter(o, void 0, void 0, function () { - var e, - n, - i = 968, - r = 815, - o = 935, - a = 745, - s = 1239, - u = 486, - c = 565; - return __generator(this, function (l) { - var d = _0x34d2; - switch (l[d(i)]) { - case 0: - return Object[d(1239)] && - (e = t[d(r)][d(526)].createInvisibleElement('iframe')) - ? ((e[d(929)] = d(o)), - document[d(a)].appendChild(e), - Object[d(s)](HTMLIFrameElement[d(816)])[d(u)][d(952)][ - d(c) - ]() !== d(1315) - ? [2, !0] - : e.contentWindow === window - ? [2, !0] - : [4, this.headlessResults(e.contentWindow)]) - : [2]; - case 1: - return (n = l[d(1278)]()), e.remove(), [2, n]; - } - }); - }); - }), - ] - ); - case 2: - return a[s(n)](), [2, r]; - } - }); - }); - }), - (i[e(o)].headlessResults = function (t) { - return __awaiter(this, void 0, void 0, function () { - var e, - n, - i = 649, - r = 862, - o = 528, - a = 1161, - s = 649, - u = 983, - c = 1048, - l = 649, - d = 1278, - h = this; - return __generator(this, function (f) { - var g = _0x34d2; - switch (f.label) { - case 0: - return ( - (e = new Map()), - (n = [])[g(1161)]( - this[g(i)](e, 'headless_chrome', function () { - var e = 649; - return __awaiter(h, void 0, void 0, function () { - return __generator(this, function (n) { - return [2, /HeadlessChrome/[_0x34d2(e)](t.navigator.userAgent)]; - }); - }); - }), - ), - n[g(1161)]( - this[g(649)](e, g(r), function () { - return __awaiter(h, void 0, void 0, function () { - return __generator(this, function (e) { - var n = _0x34d2; - return [2, t[n(656)][n(1302)]]; - }); - }); - }), - ), - n.push( - this.test(e, g(o), function () { - var e = 649; - return __awaiter(h, void 0, void 0, function () { - return __generator(this, function (n) { - var i = _0x34d2; - return [2, /Chrome/[i(e)](t.navigator[i(841)]) && !t[i(781)]]; - }); - }); - }), - ), - n[g(a)]( - this[g(649)](e, g(961), function () { - return __awaiter(h, void 0, void 0, function () { - var e, - n = 968, - i = 641, - r = 656, - o = 1270, - a = 635; - return __generator(this, function (s) { - var u = _0x34d2; - switch (s[u(n)]) { - case 0: - return t[u(656)][u(i)] && t[u(536)] - ? [4, t[u(r)][u(641)][u(o)]({ name: 'notifications' })] - : [3, 2]; - case 1: - return ( - (e = s.sent()), - [2, t[u(536)].permission === u(a) && e[u(865)] === u(605)] - ); - case 2: - return [2]; - } - }); - }); - }), - ), - n[g(1161)]( - this.test(e, g(1193), function () { - return __awaiter(h, void 0, void 0, function () { - var e, - n = 1270, - i = 1021, - r = 565, - o = 565, - a = 565, - s = 1232, - u = 658; - return __generator(this, function (c) { - var l = _0x34d2; - return (e = t[l(656)][l(641)]) - ? e[l(n)][l(565)]() !== l(i) - ? [2, !0] - : e[l(1270)][l(r)][l(o)]() !== l(1102) - ? [2, !0] - : e[l(1270)][l(565)][l(1232)](l(734)) && - e[l(1270)][l(565)][l(1232)]('[[Target]]') && - e[l(1270)][l(a)][l(s)](l(u)) - ? [2, !0] - : [2, e[l(s)]('query')] - : [2]; - }); - }); - }), - ), - n[g(a)]( - this[g(s)](e, g(1158), function () { - var t = 601; - return __awaiter(h, void 0, void 0, function () { - return __generator(this, function (e) { - var n = _0x34d2; - return [2, 0 === navigator[n(1301)][n(t)]]; - }); - }); - }), - ), - n[g(1161)]( - this[g(s)](e, g(u), function () { - return __awaiter(h, void 0, void 0, function () { - var t = 590; - return __generator(this, function (e) { - return [2, '' === navigator[_0x34d2(t)]]; - }); - }); - }), - ), - n[g(a)]( - this.test(e, g(c), function () { - var t = 1301, - e = 1301; - return __awaiter(h, void 0, void 0, function () { - var n; - return __generator(this, function (i) { - var r = _0x34d2; - return ( - (n = PluginArray[r(816)] === navigator[r(t)][r(747)]), - navigator[r(1301)][r(601)] > 0 && - (n = n && Plugin[r(816)] === navigator[r(e)][0][r(747)]), - [2, n] - ); - }); - }); - }), - ), - n[g(a)]( - this[g(l)](e, 'consistent_mimetypes_prototype', function () { - return __awaiter(h, void 0, void 0, function () { - var t, - e = 816, - n = 674, - i = 601; - return __generator(this, function (r) { - var o = _0x34d2; - return ( - (t = MimeTypeArray[o(e)] === navigator[o(674)][o(747)]), - navigator[o(n)][o(i)] > 0 && - (t = - t && MimeType.prototype === navigator[o(674)][0].__proto__), - [2, t] - ); - }); - }); - }), - ), - [4, Promise.all(n)] - ); - case 1: - return f[g(d)](), [2, e]; - } - }); - }); - }), - (i[e(a)][e(649)] = function (e, n, i) { - return __awaiter(this, void 0, void 0, function () { - var r, - o, - a = 968, - s = 1161, - u = 815, - c = 840; - return __generator(this, function (l) { - var d = _0x34d2; - switch (l[d(a)]) { - case 0: - return ( - l[d(737)][d(s)]([0, 3, , 4]), - this[d(755)][d(886)](n) - ? [3, 2] - : [4, t._POSignalsUtils.Util[d(1138)](100, i())] - ); - case 1: - null != (r = l.sent()) && (e[n] = r), (l[d(a)] = 2); - case 2: - return [3, 4]; - case 3: - return (o = l[d(1278)]()), t[d(u)][d(599)][d(c)](n + d(530), o), [3, 4]; - case 4: - return [2]; - } - }); - }); + return e; + } + [r(644)](i, t, e) { + const l = r; + (i.hasAutofill = !0), + i[l(798)]++, + i.detectedFields[l(1002)]({ + type: t.type || l(1041), + name: t[l(1154)] || '', + id: t.id || '', + placeholder: t[l(925)] || '', + value: t[l(534)] ? t.value[l(643)](0, 3) + l(782) : '', + detectionMethod: e[l(1212)], }), - i - ); - })()), - (e[i(1249)] = r); - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function (t) { - var e = _0x2a96a4; - !(function (n) { - (t[e(709)] || (t[e(709)] = {})).detectIncognitoInternal = function () { - var t = 857, - e = { _0x4887ec: 1196, _0x596187: 649 }, - n = { _0x35d710: 990 }; - return new Promise(function (i, r) { - var o = { _0x46452b: 1095 }, - a = { _0x328475: 926, _0x303829: 569, _0x4e8668: 539, _0x41dc0a: 1235 }, - s = { _0x50ed0b: 506, _0x1dbfcf: 1228 }, - u = _0x34d2, - c = u(787), - l = !1; - function d(t) { - l || ((l = !0), i({ isPrivate: t, browserName: c })); - } - function h() { - var t = u, - e = 0, - i = parseInt('-1'); - try { - i[t(768)](i); - } catch (i) { - e = i[t(n._0x35d710)].length; + i[l(869)][l(944)](e[l(1212)]) === -1 && i[l(869)][l(1002)](e[l(1212)]); + } + [r(792)](i) { + const t = r; + if (!i || i[t(984)] !== t(1293)) return { isAutofilled: !1, method: 'none' }; + try { + if (i[t(442)] && i[t(442)](t(1055))) return { isAutofilled: !0, method: t(617) }; + } catch {} + try { + if (i.matches && i[t(442)](t(928))) return { isAutofilled: !0, method: t(1018) }; + } catch {} + try { + const e = window[t(879)](i), + l = e[t(606)]; + if ([t(710), t(1094)].indexOf(l) !== -1 || l.indexOf(t(422)) !== -1) + return { isAutofilled: !0, method: 'background-color' }; + } catch {} + try { + if (i.value && i.value[t(684)] > 0) { + if (i.hasAttribute(t(927)) || i.hasAttribute('autocompleted')) + return { isAutofilled: !0, method: t(1223) }; + if (i[t(1132)](t(397)) || i.classList[t(986)](t(1237))) { + const e = [t(1125), t(498), t(877), t(1154), t(842)]; + if ( + e[t(806)](i[t(1252)]) || + e.some((l) => i.name && i[t(1154)][t(1097)]()[t(806)](l)) + ) + return { isAutofilled: !0, method: t(905) }; } - return e; - } - function f() { - return ( - void 0 !== navigator[u(806)] && - (function (t) { - var e = u; - try { - return t === eval[e(565)]()[e(601)]; - } catch (t) { - return !1; - } - })(39) - ); } - function g() { - var t = 883; - return __awaiter(this, void 0, void 0, function () { - var n; - return __generator(this, function (i) { - var r = _0x34d2; - switch (i[r(968)]) { - case 0: - return typeof (null === (n = navigator[r(t)]) || void 0 === n - ? void 0 - : n[r(588)]) !== r(974) - ? [3, 2] - : [ - 4, - (function () { - var t, - e = 1161, - n = 588, - i = 1278, - r = 968, - o = 1278, - a = 990, - s = 1155; - return __awaiter(this, void 0, void 0, function () { - var u, c, l; - return __generator(this, function (h) { - var f = _0x34d2; - switch (h[f(968)]) { - case 0: - return ( - h[f(737)][f(e)]([0, 4, , 5]), - typeof (null === (u = navigator[f(883)]) || void 0 === u - ? void 0 - : u[f(n)]) !== f(974) - ? [3, 2] - : [4, u[f(588)]()] - ); - case 1: - return h[f(i)](), d(!1), [3, 3]; - case 2: - d(!1), (h[f(r)] = 3); - case 3: - return [3, 5]; - case 4: - return ( - (c = h[f(o)]()), - d( - typeof (l = - c instanceof Error && - null !== (t = c[f(a)]) && - void 0 !== t - ? t - : c) === f(1133) && l[f(539)](f(s)), - ), - [3, 5] - ); - case 5: - return [2]; - } - }); - }); - })(), - ]; - case 1: - return i[r(1278)](), [3, 3]; - case 2: - void 0 !== navigator[r(718)] - ? (function () { - var t = u, - e = String(Math.random()); - try { - var n = indexedDB[t(1250)](e, 1); - (n[t(1062)] = function (n) { - var i = t, - r = n[i(967)][i(a._0x328475)]; - try { - r[i(493)]('t', { autoIncrement: !0 })[i(a._0x303829)](new Blob()), - d(!1); - } catch (t) { - d((t.message || '')[i(a._0x4e8668)]('are not yet supported')); - } finally { - r.close(), indexedDB[i(a._0x41dc0a)](e); - } - }), - (n[t(510)] = function () { - return d(!1); - }); - } catch (t) { - d(!1); - } - })() - : (function () { - var t = u; - try { - window[t(e._0x4887ec)](null, null, null, null); - } catch (t) { - return d(!0); - } - try { - localStorage[t(746)](t(649), '1'), - localStorage.removeItem(t(e._0x596187)); - } catch (t) { - return d(!0); - } - d(!1); - })(), - (i.label = 3); - case 3: - return [2]; - } - }); - }); - } - function p() { - var t = u; - navigator[t(757)].queryUsageAndQuota( - function (e, n) { - var i, - r, - a, - s, - c = t; - d( - Math.round(n / 1048576) < - 2 * - Math[c(o._0x46452b)]( - ((a = u), - (null !== - (s = - null === - (r = - null === (i = performance) || void 0 === i ? void 0 : i.memory) || - void 0 === r - ? void 0 - : r[a(793)]) && void 0 !== s - ? s - : 1073741824) / 1048576), - ), - ); - }, - function (e) { - var n = t; - r(new Error(n(1191) + e[n(990)])); - }, - ); + } catch {} + try { + if ( + i.classList[t(986)](t(1284)) || + i[t(607)][t(986)](t(714)) || + i[t(1132)](t(808)) || + i[t(1132)](t(1169)) + ) + return { isAutofilled: !0, method: t(575) }; + } catch {} + try { + if (i[t(848)][t(1114)] === t(701) || i.style.animationName === t(1086)) + return { isAutofilled: !0, method: 'animation-detection' }; + } catch {} + return { isAutofilled: !1, method: t(625) }; + } + static setupAutofillDetection() { + const i = r; + try { + if (!document.getElementById(i(775))) { + const t = document[i(443)]('style'); + (t.id = i(775)), (t.textContent = i(1075) + i(423)), document[i(863)][i(1149)](t); } - function v() { - var t = u; - self[t(1289)] && self[t(1289)][t(1216)] - ? p() - : (0, window[u(1194)])( - 0, - 1, - function () { - return d(!1); - }, - function () { - return d(!0); - }, - ); + document[i(1072)]( + 'animationstart', + function (t) { + const e = i; + if (t[e(1114)] === 'autofill-detection') { + const l = t[e(646)]; + l && + l[e(984)] === e(1293) && + (l[e(1135)](e(927), 'true'), l[e(607)].add(e(1284))); + } + }, + !0, + ); + } catch (t) { + c[i(730)][i(1278)][i(482)]('Failed to setup autofill detection:', t); + } + } + [r(1332)]() { + const i = r, + t = this[i(494)](); + return { + AUTOFILL_DETECTED: t.hasAutofill, + AUTOFILL_COUNT: t[i(798)], + AUTOFILL_FIELDS_COUNT: t[i(506)][i(684)], + AUTOFILL_METHODS: t[i(869)][i(995)](','), + AUTOFILL_FIELD_TYPES: t[i(506)][i(1236)]((e) => e[i(1252)])[i(995)](','), + AUTOFILL_HAS_EMAIL: t.detectedFields[i(1344)]((e) => e[i(1252)] === 'email'), + AUTOFILL_HAS_PASSWORD: t.detectedFields[i(1344)]((e) => e.type === i(498)), + AUTOFILL_HAS_NAME: t[i(506)][i(1344)]( + (e) => e[i(1154)][i(1097)]().includes('name') || e[i(1252)] === i(1041), + ), + }; + } + getAutofillMetadataAsync() { + return __awaiter(this, void 0, void 0, function* () { + const i = _0x4e19, + t = yield this[i(703)](); + return { + AUTOFILL_DETECTED: t[i(762)], + AUTOFILL_COUNT: t.autofillCount, + AUTOFILL_FIELDS_COUNT: t[i(506)][i(684)], + AUTOFILL_METHODS: t.detectionMethods[i(995)](','), + AUTOFILL_FIELD_TYPES: t[i(506)][i(1236)]((e) => e[i(1252)])[i(995)](','), + AUTOFILL_HAS_EMAIL: t.detectedFields.some((e) => e.type === i(1125)), + AUTOFILL_HAS_PASSWORD: t[i(506)][i(1344)]((e) => e[i(1252)] === i(498)), + AUTOFILL_HAS_NAME: t[i(506)][i(1344)]( + (e) => e[i(1154)][i(1097)]()[i(806)]('name') || e[i(1252)] === i(1041), + ), + }; + }); + } + [r(696)]() { + return __awaiter(this, void 0, void 0, function* () { + const i = _0x4e19; + try { + const t = document.querySelectorAll(i(1279))[i(684)]; + return t > 500 + ? (c[i(730)][i(1278)][i(613)](i(557) + t + i(406)), yield this[i(790)]()) + : (c._POSignalsUtils[i(1278)][i(613)](i(1327) + t + i(424)), + this.getAutofillMetadata()); + } catch (t) { + return c[i(730)].Logger[i(482)](i(573), t), this[i(1332)](); } - (function () { - var t = 910; - return __awaiter(this, void 0, void 0, function () { - return __generator(this, function (e) { - var n, - i, - o = _0x34d2; - switch (e[o(968)]) { - case 0: - return 44 !== h() ? [3, 2] : ((c = 'Safari'), [4, g()]); - case 1: - return e[o(1278)](), [3, 6]; - case 2: - return 51 !== h() - ? [3, 3] - : ((n = u), - (i = navigator[n(841)]), - (c = i[n(s._0x50ed0b)](/Chrome/) - ? void 0 !== navigator.brave - ? n(s._0x1dbfcf) - : i[n(506)](/Edg/) - ? 'Edge' - : i.match(/OPR/) - ? n(736) - : n(1017) - : 'Chromium'), - v(), - [3, 6]); - case 3: - return 25 !== h() - ? [3, 5] - : ((c = 'Firefox'), - [ - 4, - (function () { - var t = 588, - e = 737, - n = 1161, - i = 1133, - r = 1122; - return __awaiter(this, void 0, void 0, function () { - var o, a, s; - return __generator(this, function (u) { - var c = _0x34d2; - switch (u.label) { - case 0: - if ( - typeof (null === (o = navigator[c(883)]) || void 0 === o - ? void 0 - : o[c(t)]) !== c(974) - ) - return [3, 5]; - u[c(968)] = 1; - case 1: - return u[c(e)][c(n)]([1, 3, , 4]), [4, o[c(588)]()]; - case 2: - return u.sent(), d(!1), [3, 4]; - case 3: - return ( - (a = u[c(1278)]()), - d( - typeof (s = - a instanceof Error ? a[c(990)] : String(a)) === c(i) && - s[c(539)](c(r)), - ), - [2] - ); - case 4: - return [3, 6]; - case 5: - d(void 0 === navigator.serviceWorker), (u[c(968)] = 6); - case 6: - return [2]; - } - }); - }); - })(), - ]); - case 4: - return e.sent(), [3, 6]; - case 5: - f() - ? ((c = o(t)), d(void 0 === window[u(496)])) - : r(new Error('Browser unknown')), - (e[o(968)] = 6); - case 6: - return [2]; - } - }); - }); - })()[u(t)](r); }); - }; - })(); - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function (t) { - var e, - n, - i, - r, - o, - a, - s, - u, - c, - l, - d, - h, - f, - g, - p, - v = 733, - _ = _0x2a96a4; - (e = t._POSignalsMetadata || (t[_(709)] = {})), - (n = 1071), - (i = 816), - (r = 829), - (o = 899), - (a = 781), - (s = 950), - (u = 1059), - (c = 739), - (l = 1279), - (d = 816), - (h = 974), - (f = 882), - (g = _0x34d2), - (p = (function () { - var g = 816, - p = 764, - v = 816, - _ = 565, - m = 899, - b = 727, - y = 849, - E = 886, - w = 901, - S = 875, - O = 549, - I = 1237, - T = 926, - A = _0x34d2; - function P(t) { - (this.propertyBlackList = t), (this.result = {}); - } - return ( - (P[A(816)].documentLie = function (t, e) { - var n = A; - if (e.lied) - for (var i = 0, r = e[n(I)]; i < r.length; i++) { - var o = r[i]; - !this[n(T)][o] && (this.result[o] = []), this[n(926)][o][n(1161)](t); + } + [r(703)]() { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((i) => { + const t = _0x4e19; + try { + const e = { + hasAutofill: !1, + autofillCount: 0, + detectedFields: [], + detectionMethods: [], + }; + if (typeof document === t(834)) { + c[t(730)][t(1278)][t(482)](t(493)), + i({ + hasAutofill: !1, + autofillCount: 0, + detectedFields: [], + detectionMethods: [t(417)], + }); + return; } - }), - (P[A(816)][A(1195)] = function (t, e, n) { - var i = 1099, - r = A, - o = this; - if ((void 0 === n && (n = null), typeof t != r(h))) return { lied: !1, lieTypes: [] }; - var a = t.name.replace(/get\s/, ''), - s = { - undefined_properties: function () { - return !!n && P[r(1173)](n, a); - }, - to_string: function () { - var e = r; - return P.getToStringLie(t, a, o[e(i)]); - }, - prototype_in_function: function () { - return P[r(O)](t); - }, - own_property: function () { - return P[r(S)](t); - }, - object_to_string_error: function () { - return P[r(829)](t); - }, - }, - u = Object[r(f)](s)[r(606)](function (t) { - var e = r; - return !o.propertyBlackList[e(E)](e(w) + t) && !!s[t](); - }); - return { lied: u[r(601)] > 0, lieTypes: u }; - }), - (P[A(816)][A(n)] = function () { - return __awaiter(this, void 0, void 0, function () { - var e, - n = 755, - i = 945, - r = 815, - o = 991, - a = 1243, - s = 745, - u = 996, - c = 1258, - l = 500, - d = 769, - h = 500, - f = 623, - g = 844, - p = 500, - v = 1220, - _ = 500, - m = 1301, - b = 1278, - y = 481, - E = 926; - return __generator(this, function (w) { - var S = _0x34d2; - switch (w.label) { - case 0: - return this[S(n)].has(S(i)) - ? [2, this.result] - : (!this[S(755)].has('LIES_IFRAME') && - (e = t[S(r)].Util[S(o)](S(a))) && - (document[S(s)][S(u)](e), (this[S(1099)] = e)), - [ - 4, - Promise[S(c)]([ - this[S(l)]( - function () { - return AnalyserNode; - }, - { target: ['minDecibels'] }, - ), - this[S(500)]( - function () { - return AudioBuffer; - }, - { target: [S(d)] }, - ), - this[S(500)]( - function () { - return BiquadFilterNode; - }, - { target: [S(1120)] }, - ), - this[S(l)]( - function () { - return CanvasRenderingContext2D; - }, - { target: ['getLineDash'] }, - ), - this[S(500)]( - function () { - return DOMRect; - }, - { target: [S(1100)] }, - ), - this[S(h)]( - function () { - return DOMRectReadOnly; - }, - { target: [S(f)] }, - ), - this[S(500)]( - function () { - return Element; - }, - { target: [S(g)] }, - ), - this[S(p)]( - function () { - return HTMLCanvasElement; - }, - { target: [S(1100)] }, - ), - this[S(p)]( - function () { - return Math; - }, - { target: [S(687)] }, - ), - this.searchLies( - function () { - return MediaDevices; - }, - { target: [S(v)] }, - ), - this[S(_)]( - function () { - return Navigator; - }, - { target: [S(m)] }, - ), - this[S(l)]( - function () { - return OffscreenCanvasRenderingContext2D; - }, - { target: [S(489)] }, - ), - this[S(500)]( - function () { - return SVGRect; - }, - { target: ['x'] }, - ), - ]), - ]); - case 1: - return w[S(b)](), this[S(1099)][S(y)](), [2, this[S(E)]]; - } - }); + let l; + try { + l = document.querySelectorAll(t(1279)); + } catch (g) { + c._POSignalsUtils[t(1278)].warn(t(1170), g), + i({ + hasAutofill: !1, + autofillCount: 0, + detectedFields: [], + detectionMethods: [t(510)], + }); + return; + } + const o = 2e3, + x = Math[t(398)](l[t(684)], o), + v = 20; + let y = 0; + const L = () => { + const g = t, + E = Math[g(398)](y + v, x); + for (let f = y; f < E; f++) + try { + const m = l[f], + w = this[g(792)](m); + w[g(1146)] && this[g(644)](e, m, w); + } catch (m) { + c[g(730)].Logger[g(482)]('Error processing input ' + f + g(1259), m); + } + (y = E), + y >= x + ? i(e) + : window[g(1107)] + ? window[g(1107)](L, { timeout: 50 }) + : setTimeout(L, 0); + }; + window[t(1107)] ? window[t(1107)](L, { timeout: 50 }) : setTimeout(L, 0); + } catch (e) { + c[t(730)][t(1278)][t(482)](t(1240), e), + i({ + hasAutofill: !1, + autofillCount: 0, + detectedFields: [], + detectionMethods: [t(604)], + }); + } + }); + }); + } + } + n.AutofillDetector = a; + })((p = c[h(1216)] || (c[h(1216)] = {}))); + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + const h = _0x7ea2; + let p; + (function (n) { + const r = _0x4e19; + class a { + get OPS() { + const t = _0x4e19; + if (!this[t(770)][t(873)][t(1066)]) return 0; + let e = this[t(1315)][t(1186)]; + return !e && ((e = this[t(1106)]()), (this[t(1315)][t(1186)] = e)), e; + } + constructor(t, e, l, o) { + const x = _0x4e19; + (this.sessionData = t), + (this.metadataParams = e), + (this.externalIdentifiers = l), + (this[x(1077)] = o), + (this[x(540)] = null), + (this[x(1282)] = null), + (this[x(874)] = null), + (this.hasSpeakers = null), + (this[x(603)] = null), + (this[x(922)] = null), + (this[x(465)] = null), + (this[x(900)] = null), + (this[x(1082)] = null), + (this.batteryDischargingTime = null), + (this[x(850)] = new Map()), + (this.lieTests = {}), + (this.gpsSupported = null), + (this[x(708)] = new Set([ + x(508), + x(1051), + x(411), + x(1200), + x(425), + 'colorDepth', + x(538), + x(743), + x(1204), + x(680), + x(542), + x(524), + 'domBlockers', + x(1003), + x(1178), + x(593), + x(744), + x(407), + x(758), + 'invertedColors', + x(1188), + x(936), + x(1032), + x(1084), + x(1179), + x(722), + x(857), + x(1339), + x(1229), + x(615), + x(1139), + x(670), + x(810), + 'sessionStorage', + x(721), + 'touchSupport', + x(804), + x(665), + x(569), + ])), + (this[x(957)] = -1), + (this[x(1181)] = 0), + (this[x(388)] = 0), + (this.videoInputDevices = []), + (this.audioInputDevices = []), + (this.audioOutputDevices = []), + (this[x(454)] = new Map()), + (this[x(691)] = null), + (this[x(562)] = null), + (this[x(729)] = 0), + (this[x(752)] = new c[x(1210)](1)), + (this[x(661)] = null), + (this[x(1037)] = null), + (this[x(531)] = new n[x(1267)]()); + } + getDeviceAttributes() { + return __awaiter(this, void 0, void 0, function* () { + const t = _0x4e19; + return this[t(752)][t(956)](() => + __awaiter(this, void 0, void 0, function* () { + const e = t; + !this[e(691)] && + ((this[e(691)] = yield this[e(896)]()), + c[e(730)].Logger[e(613)](e(1276)), + c._POSignalsUtils[e(1278)][e(613)](e(1255) + this[e(540)]), + c._POSignalsUtils.Logger[e(613)](e(1078) + this[e(1282)]), + this.sessionData[e(704)]()); + const l = + typeof window != 'undefined' && + window[e(1246)] && + typeof window[e(1246)][e(684)] === e(1307) + ? window[e(1246)].length + : null; + return ( + this[e(691)] && (this.lastCalculatedMetadata.BROWSER_TAB_HISTORY_LENGTH = l), + this[e(1315)] && this[e(1315)].htmlGeoLocation && (yield this[e(408)]()), + yield this[e(667)](), + this[e(1315)] && this[e(1315)][e(1257)] && this[e(926)](), + this.sessionData[e(624)] && (this[e(661)] = JSON[e(662)](this[e(691)])), + this.lastCalculatedMetadata + ); + }), + ); + }); + } + getGeoLocationData() { + var t, e, l, o; + return __awaiter(this, void 0, void 0, function* () { + const x = _0x4e19; + this[x(691)] = Object[x(700)](Object[x(700)]({}, this.lastCalculatedMetadata), { + htmlGeoLocation_latitude: void 0, + htmlGeoLocation_longitude: void 0, + htmlGeoLocation_accuracy: void 0, + htmlGeoLocation_speed: void 0, + htmlGeoLocation_heading: void 0, + htmlGeoLocation_timestamp: void 0, + htmlGeoLocation_ErrorMessage: '', + htmlGeoLocation_ErrorCode: '', + }); + const v = (S, U = '') => { + const T = x, + O = S[T(684)] > 255 ? S[T(1059)](0, 252) + T(1289) : S; + return ( + (this[T(691)][T(1298)] = O), + (this[T(691)].htmlGeoLocation_ErrorCode = U), + { status: 'error', message: O } + ); + }, + y = (S) => { + const U = x; + switch (S) { + case 1: + return v( + 'Geolocation retrieval failed: Location permission denied by the user.', + U(1199), + ); + case 2: + return v( + 'Geolocation retrieval failed: Location information is unavailable.', + U(559), + ); + case 3: + return v(U(887), 'TIMEOUT'); + default: + return v(U(767), 'POSITION_UNAVAILABLE'); + } + }; + if (!navigator.geolocation) return v(x(1126), x(821)); + const L = this[x(691)].BROWSER_NAME[x(1097)](), + g = L[x(806)](x(396)), + E = L[x(806)](x(997)); + let f = !1; + const m = yield navigator[x(1005)][x(838)]({ name: 'geolocation' }); + if (((this[x(691)][x(946)] = m[x(652)]), m[x(652)] === x(648))) + return v(x(766) + m.state + x(487) + L + "'.", x(1199)); + const w = this[x(1315)][x(1320)](); + if (w) + try { + const S = JSON[x(1151)](w); + if (S && S.latitude && S[x(779)]) + (this[x(691)][x(1273)] = S[x(558)] ? parseFloat(S[x(558)][x(421)](2)) : null), + (this.lastCalculatedMetadata[x(687)] = S[x(779)] + ? parseFloat(S[x(779)][x(421)](2)) + : null), + (this[x(691)][x(628)] = (t = S[x(795)]) !== null && t !== void 0 ? t : null), + (this[x(691)][x(596)] = (e = S[x(481)]) !== null && e !== void 0 ? e : null), + (this[x(691)][x(878)] = (l = S[x(600)]) !== null && l !== void 0 ? l : null), + (this[x(691)][x(1306)] = (o = S[x(755)]) !== null && o !== void 0 ? o : null), + delete this[x(691)][x(1298)], + delete this[x(691)].htmlGeoLocation_ErrorCode, + (f = !0); + else if (S && S[x(441)]) return (f = !1), y(S.error_code); + } catch (S) { + c[x(730)][x(1278)][x(482)](x(599), S); + } + if (m[x(652)] === x(676)) + return yield new Promise((S) => { + const U = { timeout: 500 }, + T = (O = 1) => { + const C = _0x4e19; + navigator[C(1142)][C(1038)]( + (k) => { + const R = C; + var H; + const { + latitude: ee, + longitude: M, + accuracy: K, + speed: Z, + heading: le, + } = k[R(1230)]; + if ((!ee || !M || ee === 0 || M === 0) && (g || E) && O === 1) return T(2); + (this[R(691)].htmlGeoLocation_latitude = ee + ? parseFloat(ee[R(421)](2)) + : void 0), + (this[R(691)][R(687)] = M ? parseFloat(M[R(421)](2)) : void 0), + (this[R(691)].htmlGeoLocation_accuracy = K), + (this.lastCalculatedMetadata[R(596)] = Z), + (this[R(691)][R(878)] = le), + (this[R(691)][R(1306)] = + (H = k[R(755)]) !== null && H !== void 0 ? H : null), + delete this[R(691)][R(1298)], + delete this[R(691)][R(785)], + (f = !0), + S({ status: 'granted' }); + }, + (k) => { + S(y(k[C(866)])), (f = !1); + }, + U, + ); + }; + T(); }); - }), - (P[A(i)][A(500)] = function (e, n) { - var i = 816, - r = 1140, - o = { _0x5c76d2: 727 }, - a = A, - s = void 0 === n ? {} : n, - u = s.target, - c = void 0 === u ? [] : u, - l = s[a(479)], - d = void 0 === l ? [] : l; - return __awaiter(this, void 0, void 0, function () { - var n = 533, - a = 886, - s = 1114, - u = 649, - l = 700, - h = 816, - f = 1195, - g = 1195, - p = 599; - var v, - _, - m = this; - return __generator(this, function (b) { - var y, - E = _0x34d2; - try { - if (((v = e()), typeof (y = v) == _0x34d2(o._0x5c76d2) || !y)) return [2]; - } catch (t) { - return [2]; - } + if (!f) + return v("Geolocation permission state is '" + m[x(652)] + x(405) + L + "'", x(559)); + }); + } + [r(667)]() { + return __awaiter(this, void 0, void 0, function* () { + const t = _0x4e19; + yield this.calculatedDevToolsOpen(); + const e = + typeof window !== t(834) && + window[t(1246)] && + typeof window[t(1246)][t(684)] === t(1307) + ? window[t(1246)].length + : null; + this[t(691)] && (this.lastCalculatedMetadata[t(706)] = e); + const l = this[t(531)].getAutofillMetadata(); + Object[t(700)](this.lastCalculatedMetadata, l); + }); + } + calculatedDevToolsOpen() { + return __awaiter(this, void 0, void 0, function* () { + const t = _0x4e19, + e = 160, + l = window[t(964)] - window.innerWidth > e, + o = window[t(504)] - window[t(658)] > e, + x = t(l ? 888 : 963); + (this[t(691)][t(409)] = t(l || o ? 1123 : 469)), + (this[t(691)][t(949)] = l || o ? x : t(556)); + }); + } + [r(1163)]() { + return __awaiter(this, void 0, void 0, function* () { + const t = _0x4e19; + return this[t(752)][t(956)](() => + __awaiter(this, void 0, void 0, function* () { + const e = t; + if (this.localAgentJwtRequestCount >= 5) return this[e(562)]; + if (this.sessionData[e(472)]) return ( - (_ = v[E(i)] ? v.prototype : v), - Object[E(984)](_)[E(r)](function (e) { - var i = E; - if ( - !( - e == i(n) || - (c.length && !new Set(c)[i(a)](e)) || - (d[i(601)] && new Set(d).has(e)) - ) - ) { - var r = /\s(.+)\]/, - o = (v[i(s)] ? v.name : r[i(u)](v) ? r[i(l)](v)[1] : void 0) + '.' + e; - try { - var _ = v[i(h)] ? v[i(816)] : v; - try { - if ('function' == typeof _[e]) { - var b = m[i(f)](_[e], _); - return void m[i(554)](o, b); - } - } catch (t) {} - var y = Object[i(849)](_, e)[i(952)], - w = m[i(g)](y, _, v); - m[i(554)](o, w); - } catch (n) { - t._POSignalsUtils[i(p)][i(840)](i(797) + e + ' test execution', n); - } - } - }), - [2] + !this[e(562)] && (this[e(562)] = yield this[e(1077)][e(394)]()), + this[e(729)]++, + this[e(562)] ); - }); - }); - }), - (P[A(1173)] = function (t, e) { - var n = A, - i = t[n(1114)], - r = window[i.charAt(0).toLowerCase() + i[n(m)](1)]; - return !!r && (typeof Object[n(849)](r, e) != n(b) || void 0 !== Reflect[n(y)](r, e)); + }), + ); + }); + } + [r(948)]() { + return { identifier: 'x1', key: r(509) }; + } + [r(776)]() { + return this[r(661)]; + } + [r(896)]() { + return __awaiter(this, void 0, void 0, function* () { + const t = _0x4e19; + this[t(1112)] = navigator.geolocation != null; + const e = this[t(770)].metadataBlackList, + l = [ + this.sessionData[t(1079)]()[t(765)]((x) => { + const v = t; + c._POSignalsUtils.Logger[v(482)]('failed to get deviceId info', x); + }), + this.getFingerPrint(e)[t(765)]((x) => { + const v = t; + c[v(730)][v(1278)][v(482)](v(1068), x[v(728)]); + }), + this[t(787)]()[t(765)]((x) => { + const v = t; + c._POSignalsUtils.Logger[v(482)](v(1067), x[v(728)]); + }), + n[t(768)][t(452)]()[t(765)]((x) => c._POSignalsUtils[t(1278)][t(482)](t(820), x)), + this[t(502)]().catch((x) => c[t(730)].Logger[t(482)](t(929), x)), + new n[t(645)](e) + [t(416)]() + [t(765)]((x) => c._POSignalsUtils.Logger[t(482)](t(760), x)), + new n[t(530)](e) + [t(1241)]() + [t(765)]((x) => c._POSignalsUtils[t(1278)][t(482)](t(748), x)), + this[t(1197)]()[t(765)]((x) => c[t(730)].Logger[t(482)](t(917), x)), + this[t(1064)]()[t(765)]((x) => c._POSignalsUtils[t(1278)][t(482)](t(1071), x)), + ]; + ([ + this[t(540)], + this[t(434)], + this[t(635)], + this[t(565)], + this[t(1005)], + this[t(850)], + this[t(1346)], + ] = yield Promise[t(881)](l)), + (this[t(1282)] = this[t(1315)][t(746)]()); + const o = { + ops: this[t(681)], + devicePixelRatio: window[t(738)], + screenWidth: window[t(672)][t(527)], + screenHeight: window[t(672)][t(541)], + }; + return ( + c[t(730)][t(1159)][t(965)](o, screen, !1), + Object[t(700)]( + Object[t(700)]( + Object[t(700)]( + Object[t(700)]( + { + deviceId: this[t(540)], + device_created_ts: this[t(1282)], + deviceType: this[t(770)][t(873)][t(554)], + osVersion: + (this[t(770)][t(873)][t(392)] + ' ' + this[t(770)][t(873)].osVersion)[ + t(751) + ]() || '', + externalIdentifiers: this[t(872)], + origin: location.origin, + href: location.href, + }, + yield this[t(1345)](e), + ), + this[t(1314)](), + ), + this[t(1337)](), + ), + o, + ) + ); + }); + } + [r(1064)]() { + return __awaiter(this, void 0, void 0, function* () { + const t = _0x4e19, + e = this; + yield c[t(730)].Util[t(983)]( + 50, + new Promise((l, o) => { + const x = t; + navigator.getBattery + ? ((this[x(922)] = !0), + navigator[x(1285)]() + [x(659)]((v) => { + const y = x; + v && + ((e[y(465)] = v[y(974)]), + (e.batteryCharging = v.charging), + (e[y(1082)] = v.chargingTime), + (e[y(492)] = v[y(1060)])), + l(); + }) + [x(765)]((v) => { + const y = x; + c._POSignalsUtils.Logger[y(482)](y(536) + v), l(); + })) + : (c._POSignalsUtils.Logger[x(1141)](x(876)), l()); + }), + ); + }); + } + [r(463)]() { + const t = r, + e = /^((?!chrome|android).)*safari/i.test(navigator[t(1250)]); + return !c[t(730)][t(1159)].inIframe() || !e; + } + [r(968)]() { + const t = r; + let e = window[t(651)] || window[t(1331)] || window[t(649)]; + if (!e) { + const l = window['iframe.contentWindow']; + l && (e = l.RTCPeerConnection || l[t(1331)] || l[t(649)]); + } + return e; + } + [r(1145)]() { + const t = r, + e = this; + try { + const l = {}, + o = this[t(968)](), + x = { optional: [{ RtpDataChannels: !0 }] }, + v = { iceServers: [{ urls: this[t(770)][t(1e3)][t(751)]() }] }, + y = new o(v, x); + (y.onicecandidate = (L) => { + const g = t, + E = 1; + if (L[g(919)]) { + const f = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/, + m = f[g(991)](L.candidate[g(919)])[1]; + l[m] === void 0 && + (L[g(919)][g(919)].indexOf(g(841)) > 0 + ? e.webRtcIps[g(1164)](g(1264), m) + : L[g(919)].candidate.indexOf('srflx') > 0 && e[g(454)][g(1164)](g(975), m)), + (l[m] = !0); + } }), - (P.getToStringLie = function (t, e, n) { - var i, - r, - o = 1244, - a = 1143, - s = 1152, - u = 939, - c = A; - try { - i = n[c(764)][c(816)][c(565)][c(675)](t); - } catch (t) {} - try { - r = n[c(p)][c(v)][c(_)].call(t[c(_)]); - } catch (t) {} - var l = i || t[c(565)](), - d = r || t[c(565)][c(565)](), - h = function (t) { - var e, - n = c; - return ( - ((e = {})[n(1143) + t + '() { [native code] }'] = !0), - (e[n(o) + t + n(1333)] = !0), - (e[n(1254)] = !0), - (e[n(a) + t + n(s) + '\n' + n(u) + '\n}'] = !0), - (e[n(1244) + t + '() {\n' + n(939) + '\n}'] = !0), - (e[n(992) + '\n [native code]\n}'] = !0), - e + y[t(1309)](''), + y[t(1221)]( + function (L) { + y[t(1286)]( + L, + function () {}, + function () {}, ); - }; - return !h(e)[l] || !h(c(565))[d]; - }), - (P[A(549)] = function (t) { - return A(g) in t; - }), - (P[A(875)] = function (t) { - var e = A; - return ( - t[e(1232)](e(c)) || - t[e(1232)](e(l)) || - t.hasOwnProperty(e(d)) || - t.hasOwnProperty('toString') + }, + function () {}, ); - }), - (P[A(r)] = function (t) { - var n = 649, - i = A; - try { - return Object[i(592)](t)[i(565)](), !0; - } catch (t) { - var r = t.stack[i(647)]('\n'), - c = /at Object\.apply/, - l = !r[i(o)](1)[i(937)](function (t) { - return c[i(n)](t); - }), - d = 'TypeError' == t.constructor[i(1114)] && r[i(601)] > 1, - h = i(a) in window || e[i(s)][i(u)](); - return !(!d || !h || (/at Function\.toString/[i(649)](r[1]) && l)) || !d; - } - }), - P - ); - })()), - (e[g(v)] = p); - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function (t) { - var e, - n, - i, - r, - o, - a, - s = 798, - u = 1094, - c = _0x2a96a4; - (e = t[c(709)] || (t[c(709)] = {})), - (n = 816), - (i = 933), - (r = { _0x3ea1cb: 755 }), - (o = _0x34d2), - (a = (function () { - var o = 1168, - a = 542, - s = 647, - c = 649, - l = 938, - d = 781, - h = 950, - f = 1094, - g = 926, - p = 1046, - v = 565, - _ = 1046, - m = 781, - b = 902, - y = 533, - E = 938, - w = 558, - S = 929, - O = _0x34d2; - function I(t) { - var e = _0x34d2; - (this[e(r._0x3ea1cb)] = t), (this[e(926)] = new Map()); - } - return ( - (I[O(816)][O(660)] = function () { - var e = 1243, - n = 815, - i = 526, - r = O; - return ( - this[r(f)]('srcdoc_throws_error', function () { - var t = r; + } catch {} + } + [r(1197)]() { + return __awaiter(this, void 0, void 0, function* () { + const t = _0x4e19, + e = this; + yield c[t(730)][t(1159)][t(983)]( + 50, + new Promise((l, o) => { + const x = t; + if (!this[x(463)]()) { + c[x(730)][x(1278)][x(1141)](x(532)), l(); + return; + } + if (!navigator[x(864)] || !navigator.mediaDevices.enumerateDevices) { + c._POSignalsUtils.Logger.debug(x(440)), l(); + return; + } + navigator.mediaDevices + .enumerateDevices() + .then((v) => { + const y = x; + v[y(447)]((L) => { + const g = y; + L[g(1058)] && + (L[g(1058)].toLowerCase() == g(1080) + ? ((e[g(874)] = !0), + e.numberOfAudioDevices++, + L.label && e[g(950)][g(1002)](L[g(1191)])) + : L[g(1058)][g(1097)]() == 'videoinput' + ? ((e[g(603)] = !0), + e.numberOfVideoDevices++, + L[g(1191)] && e[g(415)][g(1002)](L[g(1191)])) + : L.kind[g(1097)]() == g(750) && + ((e.hasSpeakers = !0), + e[g(388)]++, + L[g(1191)] && e.audioOutputDevices[g(1002)](L.label))); + }), + l(); + }) + [x(765)]((v) => { + const y = x; + c[y(730)][y(1278)][y(482)](y(460), v), l(); + }); + }), + ); + }); + } + [r(413)](t) { + return __awaiter(this, void 0, void 0, function* () { + const e = _0x4e19; + if (t[e(1263)](e(801))) return Promise.resolve(''); + const l = new Promise((x, v) => + __awaiter(this, void 0, void 0, function* () { + const y = e; try { - return !!document[t(654)](t(1243))[t(S)]; - } catch (t) { - return !0; + const L = yield c.FingerprintJS[y(1043)](), + g = yield L[y(1281)](); + (this[y(434)] = g[y(954)]), (this[y(1057)] = g[y(551)]), x(g[y(954)]); + } catch (L) { + c._POSignalsUtils[y(1278)][y(482)](y(467) + L); + const g = { err: L, message: y(1017) }; + v(g); } }), - this.addStealthTest('srcdoc_triggers_window_proxy', function () { - var o = r, - a = document[o(654)](o(e)); - return ( - (a.srcdoc = '' + t[o(n)][o(i)].hashMini(crypto[o(1287)](new Uint32Array(10)))), - !!a.contentWindow - ); + ), + o = new Promise((x, v) => + __awaiter(this, void 0, void 0, function* () { + const y = e; + yield c._POSignalsUtils.Util.delay(this[y(770)].fingerprintTimeoutMillis); + const L = { message: y(660) }; + v(L); }), - this.addStealthTest(r(749), function () { - var t = r, - e = 'cookieStore' in window ? t(1065) : t(558) in window ? t(w) : t(740), - n = []; - for (var i in window) n[t(1161)](i); - return n.indexOf('chrome') > n[t(717)](e); + ); + return yield Promise[e(998)]([l, o]); + }); + } + [r(787)]() { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((t, e) => { + const l = _0x4e19; + c[l(631)] + [l(891)]() + [l(659)]((o) => { + const x = l; + (this[x(635)] = o), t(o); + }) + [l(765)]((o) => { + const x = l; + c[x(730)].Logger[x(482)](x(1185), o), e(o); + }); + }); + }); + } + getSensorsMetadata() { + const t = r, + e = {}; + return ( + this[t(584)](e, t(736), () => t(823) in window), + this[t(584)](e, t(1076), () => t(789) in window), + !window[t(1129)] && this[t(584)](e, t(935), () => !1), + !window[t(860)] && this[t(584)](e, 'GYROSCOPE_SUPPORTED', () => !1), + this[t(584)](e, t(693), () => t(862) in window), + e + ); + } + [r(1345)](t) { + return __awaiter(this, void 0, void 0, function* () { + const e = _0x4e19, + l = this, + o = {}; + this.flatAndAddMetadata(o, e(880), () => this[e(434)]), + this[e(584)](o, e(1110), () => this.broJsFingerprint), + this[e(770)][e(873)][e(1012)] && + (this[e(584)](o, 'OS_NAME', () => { + const f = e; + return this.metadataParams.browserInfo[f(392)]; }), - this[r(1094)](r(957), function () { - var t = r; - if (!(t(m) in window && t(902) in window.chrome)) return !1; - try { - return ( - t(816) in window[t(781)][t(b)][t(867)] || - t(816) in window[t(781)][t(902)][t(969)] || - (new window[t(m)][t(b)][t(867)](), new window[t(m)][t(b)].connect(), !0) - ); - } catch (e) { - return e[t(y)][t(1114)] != t(E); - } + this[e(584)](o, 'OS_VERSION', () => { + const f = e; + return this[f(770)][f(873)][f(1048)]; + })), + this[e(770)].browserInfo[e(1012)] && + (this[e(584)](o, 'DEVICE_MODEL', () => { + const f = e; + return this.metadataParams[f(873)].deviceModel; }), - this[r(1094)]('Function_prototype_toString_invalid_typeError', function () { - var t = r, - e = new I.StackTraceTester(); - return e[t(p)](Function.prototype[t(v)]) || e[t(_)](function () {}); + this.flatAndAddMetadata(o, e(1147), () => { + const f = e; + return this.metadataParams[f(873)][f(1130)]; }), - this[r(g)] - ); - }), - (I[O(816)][O(u)] = function (e, n) { - var r = O; - if (!this.propertyBlackList[r(886)](e)) - try { - this.result[e] = n(); - } catch (n) { - t._POSignalsUtils.Logger[r(840)](r(772) + e + r(i), n); - } + this.flatAndAddMetadata(o, 'DEVICE_CATEGORY', () => { + const f = e; + return this[f(770)].browserInfo[f(725)]; + })), + this[e(770)].browserInfo[e(1012)] && + (this.flatAndAddMetadata(o, e(886), () => { + const f = e; + return this[f(770)].browserInfo[f(437)]; + }), + this[e(584)](o, e(418), () => { + const f = e; + return this.metadataParams.browserInfo[f(959)]; + })), + this.metadataParams[e(873)][e(1012)] && + this.flatAndAddMetadata(o, e(870), () => { + const f = e; + return this.metadataParams[f(873)].cpuArchitecture; + }), + this[e(770)][e(873)].userAgentData && + (this[e(584)](o, 'BROWSER_NAME', () => this[e(770)].browserInfo.browserName), + this.flatAndAddMetadata(o, e(813), () => { + const f = e; + return this[f(770)][f(873)].browserVersion; + }), + this[e(584)](o, 'BROWSER_MAJOR', () => { + const f = e; + return this[f(770)].browserInfo[f(470)]; + }), + this.flatAndAddMetadata(o, e(686), () => { + const f = e; + return this[f(770)][f(873)][f(490)]; + })); + const x = new n[e(550)](); + this[e(584)](o, e(555), () => { + const f = e; + return x[f(1301)](this[f(770)][f(873)][f(1012)].ua); }), - (I[O(835)] = (function () { - var t = O; - function i() {} - return ( - (i[t(n)][t(1046)] = function (n) { - var i = t, - r = this; - try { - return ( - (this[i(o)] = function () { - var t = i; - return Object[t(592)](n)[t(565)](); - }), - (this.cant = function () { - return r[i(1168)](); - }), - (this[i(a)] = function () { - return r[i(1257)](); - }), - this[i(542)](), - !0 - ); - } catch (t) { - var u = t[i(1242)][i(s)]('\n'), - f = !/at Object\.apply/[i(c)](u[1]), - g = t[i(533)][i(1114)] == i(l) && u.length >= 5, - p = i(d) in window || e[i(h)][i(1059)](); - return ( - !( - !g || - !p || - (f && - /at Function\.toString/[i(649)](u[1]) && - /\.you/.test(u[2]) && - /\.cant/[i(649)](u[3]) && - /\.hide/.test(u[4])) - ) || !g - ); - } + this.flatAndAddMetadata(o, e(641), () => { + const f = e; + return x[f(1013)](this[f(770)][f(873)][f(1012)].ua); + }), + this[e(584)](o, e(1213), () => { + const f = e; + return x[f(907)](this[f(770)][f(873)][f(1012)].engine); + }), + this[e(584)](o, e(854), () => { + const f = e; + return x[f(753)](this[f(770)][f(873)][f(1012)].ua); + }), + this[e(584)](o, e(692), () => navigator.vendor), + this[e(584)](o, e(473), () => { + const f = e; + return navigator[f(1339)] ? navigator[f(1339)][f(684)] : null; + }), + this.flatAndAddMetadata(o, e(547), () => { + const f = e; + return navigator[f(1119)] ? navigator.mimeTypes[f(684)] : null; + }), + this[e(584)](o, e(819), () => { + const f = e; + return ( + navigator[f(1244)] || + navigator.userLanguage || + navigator[f(1311)] || + navigator[f(690)] + ); + }), + this.flatAndAddMetadata(o, e(588), () => navigator[e(1188)]), + this[e(584)](o, e(1069), () => navigator[e(1251)] || navigator.msMaxTouchPoints), + this.flatAndAddMetadata(o, 'NAVIGATOR_POINTER_ENABLED', () => { + const f = e; + return navigator[f(685)] || navigator[f(677)]; + }), + this.flatAndAddMetadata(o, e(871), () => navigator[e(601)]), + this[e(584)](o, e(844), () => navigator.hardwareConcurrency), + this[e(584)](o, e(981), () => navigator[e(445)] != null), + this.flatAndAddMetadata(o, e(911), () => e(1187) in window), + this[e(584)](o, 'NAVIGATOR_APP_CODE_NAME', () => navigator.appCodeName), + this[e(584)](o, e(1022), () => navigator[e(826)]), + this[e(584)](o, e(533), () => navigator[e(451)]), + this.flatAndAddMetadata(o, e(1224), () => navigator.onLine), + this[e(584)](o, 'NAVIGATOR_PLATFORM', () => navigator[e(857)]), + this[e(584)](o, 'NAVIGATOR_PRODUCT', () => navigator[e(865)]), + this[e(584)](o, e(595), () => navigator[e(1250)]), + this[e(584)](o, 'NAVIGATOR_PDF_VIEWER_ENABLED', () => navigator.pdfViewerEnabled), + this[e(584)](o, e(1111), () => navigator[e(524)]), + this[e(584)](o, e(525), () => { + const f = e; + return navigator[f(1343)] ? navigator[f(1343)][f(912)] : null; + }), + !t[e(1263)]('modernizr') && (yield this.safeAddModernizrFeatures(o)); + const v = window._pingOneSignalsPingResult || window[e(507)]; + v + ? this.flatAndAddMetadata(o, e(657), () => v) + : this.flatAndAddMetadata(o, 'JS_CHALLENGE', () => 'unknown'), + this[e(584)](o, e(706), () => { + const f = e; + return typeof window !== f(834) && + window.history && + typeof window.history[f(684)] == 'number' + ? window[f(1246)][f(684)] + : null; + }); + const y = new n.WebGLMetadata(); + if ( + (this.flatAndAddMetadata(o, e(832), () => y[e(626)]()), + this[e(584)](o, 'WEBGLVENDORANDRENDERER', () => { + const f = e; + return y[f(543)]().vendor + '~' + y[f(543)]()[f(1152)]; + }), + this[e(584)](o, e(1297), () => y[e(491)]()), + y[e(491)]() + ? this[e(584)](o, 'WEBGL2VENDORANDRENDERER', () => { + const f = e; + return y[f(543)]()[f(804)] + '~' + y[f(543)]()[f(1152)]; + }) + : this[e(584)](o, e(586), () => ''), + this[e(584)](o, e(822), () => { + const f = e; + return y[f(543)]()[f(1323)]; + }), + this[e(584)](o, e(756), () => y.getWebglData().shadingLanguageVersion), + this[e(584)](o, e(749), () => { + const f = e; + return y[f(543)]()[f(831)][f(684)]; + }), + this.flatAndAddMetadata(o, e(1044), () => y[e(543)]().maxTextureSize), + this.flatAndAddMetadata(o, e(516), () => { + const f = e; + return y.getWebglData()[f(1162)]; + }), + this[e(584)](o, e(1029), () => { + const f = e; + return y.getWebglData()[f(1035)]; + }), + this[e(584)](o, 'WEBGL_MAXVERTEXTEXTUREIMAGEUNITS', () => { + const f = e; + return y[f(543)]()[f(1219)]; + }), + this.flatAndAddMetadata(o, e(1127), () => y[e(543)]().maxCombinedTextureImageUnits), + this.flatAndAddMetadata(o, e(500), () => { + const f = e; + return y[f(543)]()[f(1304)]; + }), + this[e(584)](o, e(716), () => y[e(543)]().maxVaryingVectors), + this[e(584)](o, 'WEBGL_MAXVERTEXUNIFORMVECTORS', () => { + const f = e; + return y.getWebglData()[f(726)]; + }), + this.flatAndAddMetadata(o, e(1100), () => { + const f = e; + return y[f(543)]()[f(966)]; + }), + this[e(584)](o, e(614), () => y[e(505)]()), + this[e(584)](o, 'HASLIEDRESOLUTION', () => y[e(466)]()), + this[e(584)](o, 'HASLIEDOS', () => y[e(1036)]()), + this.flatAndAddMetadata(o, e(489), () => y[e(1308)]()), + this.fingerPrintComponents) + ) + for (const f in this[e(1057)]) { + if (!this[e(1057)][e(618)](f)) continue; + const m = this[e(1057)][f]; + f == e(1178) + ? this.flatAndAddMetadata(o, e(1207), () => m[e(534)].length) + : f == e(425) + ? this[e(584)](o, e(980), () => m[e(534)] != null) + : f == e(810) && m[e(534)] && m[e(534)].length + ? this[e(584)](o, e(894), () => { + const w = e; + return m[w(534)][w(995)](','); + }) + : f == e(1233) && m[e(534)] + ? this[e(584)](o, e(483), () => m[e(534)]) + : f == e(411) && m[e(534)] + ? this[e(584)](o, 'AUDIO_FINGERPRINT', () => m[e(534)]) + : f == 'osCpu' && m.value + ? this[e(584)](o, e(855), () => m[e(534)]) + : f == 'cookiesEnabled' && m.value + ? this[e(584)](o, e(403), () => m[e(534)]) + : f == e(670) && m[e(534)] && m[e(534)][e(684)] + ? this[e(584)](o, e(1074), () => m.value.join(',')) + : f == e(1051) && m[e(534)] + ? this[e(584)](o, 'ARCHITECTURE', () => m[e(534)]) + : f == e(655) && m[e(933)] + ? this[e(584)](o, 'DOM_BLOCKERS', () => m[e(933)]) + : f == e(1003) && m.value + ? this[e(584)](o, e(734), () => m.value) + : f == e(722) && m[e(534)] + ? this[e(584)](o, e(830), () => m[e(534)]) + : f == e(665) && m[e(534)] && m[e(534)][e(684)] + ? this[e(584)](o, e(1101), () => m[e(534)].join(',')) + : f == e(581) && m[e(534)] + ? this[e(584)](o, e(1303), () => { + const w = e; + return m[w(534)][w(1152)]; + }) + : l.fingerPrintComponentKeys[e(1263)](f) && + f != null && + this[e(584)](o, f[e(849)](), () => m.value); + } + this[e(584)](o, 'IS_PRIVATE_MODE', () => this[e(565)]), + this[e(584)](o, e(1242), () => this[e(957)]); + const L = { + selenium: + navigator[e(601)] || + c[e(730)][e(1159)][e(1190)](window[e(940)][e(780)], e(601)) || + '', + phantomjs: { + _phantom: window[e(847)] || '', + __phantomas: window.__phantomas || '', + callPhantom: window.callPhantom || '', + }, + nodejs: { Buffer: window[e(1209)] || '' }, + couchjs: { emit: window[e(515)] || '' }, + rhino: { spawn: window[e(942)] || '' }, + chromium: { + domAutomationController: window[e(1166)] || '', + domAutomation: window[e(902)] || '', + }, + outerWidth: window.outerWidth, + outerHeight: window[e(504)], + }; + this[e(584)](o, e(582), () => L), + this[e(584)](o, e(582), () => this[e(850)]), + this[e(584)](o, e(609), () => { + const f = e, + m = {}; + for (const w in this.lieTests) m[w] = JSON.stringify(this.lieTests[w]); + return Object[f(1222)](m)[f(684)] > 0 ? m : null; + }), + this[e(584)](o, e(450), () => new n.DetectStealth(t).getStealthResult()), + this.flatAndAddMetadata(o, e(990), () => document[e(1180)]), + this[e(584)](o, e(597), () => { + const f = e, + m = { length: navigator[f(1339)][f(684)], details: [] }; + for (let w = 0; w < m.length; w++) + m[f(733)][f(1002)]({ + length: navigator[f(1339)][w].length, + name: navigator.plugins[w][f(1154)], + version: navigator[f(1339)][w].version, + filename: navigator[f(1339)][w].filename, + }); + return m; + }), + this[e(584)](o, e(427), () => this[e(388)]), + this[e(584)](o, e(852), () => this[e(1181)]), + this[e(584)](o, 'VIDEO_INPUT_DEVICES', () => this[e(415)].toString()), + this[e(584)](o, e(678), () => this.audioInputDevices.toString()), + this.flatAndAddMetadata(o, e(699), () => { + const f = e; + return this[f(560)][f(1340)](); + }), + this[e(584)](o, e(444), () => { + const f = e; + return this[f(464)](f(720)); + }), + this[e(584)](o, e(897), () => { + const f = e; + return this[f(464)](f(914)); + }), + this[e(584)](o, e(843), () => this[e(464)]('audio/aac')); + const g = this[e(770)][e(1039)]; + for (const f in g) + g.hasOwnProperty(f) && this[e(584)](o, e(796) + f, () => this[e(464)](g[f])); + window[e(1143)] && + window[e(1143)][e(1104)] && + (this[e(584)](o, 'MEMORY_HEAP_SIZE_LIMIT', () => { + const f = e; + return window[f(1143)][f(1104)].jsHeapSizeLimit; + }), + this[e(584)](o, 'MEMORY_TOTAL_HEAP_SIZE', () => { + const f = e; + return window[f(1143)][f(1104)][f(1292)]; + }), + this[e(584)](o, e(1335), () => window.performance.memory.usedJSHeapSize)), + this[e(584)](o, e(861), () => navigator[e(724)]), + this[e(584)](o, e(461), () => n.SeleniumProperties.seleniumInDocument()), + this[e(584)](o, 'selenium_in_window', () => { + const f = e; + return n[f(1056)][f(1167)](); + }), + this[e(584)](o, e(1028), () => { + const f = e; + return n.SeleniumProperties[f(548)](); + }), + this[e(584)](o, 'selenium_sequentum', () => { + const f = e; + return n[f(1056)][f(656)](); + }), + this[e(584)](o, e(1091), () => { + const f = e; + return c[f(730)][f(1159)][f(1190)](window[f(940)][f(780)], f(915)); + }), + this[e(584)](o, e(909), () => { + const f = e; + return c[f(730)][f(1159)][f(1190)](window[f(940)][f(780)], f(601)); + }), + this[e(584)](o, e(664), () => { + const f = e; + return c[f(730)][f(1159)][f(1190)](window[f(940)].documentElement, f(904)); + }), + this[e(584)]( + o, + e(1042), + () => !!c[e(730)].Util[e(1190)](document[e(594)](e(1266))[0], 'webdriver'), + ), + this[e(584)](o, 'window_geb', () => !!window[e(1014)]), + this.flatAndAddMetadata(o, e(459), () => !!window[e(977)]), + this[e(584)](o, e(719), () => !!window.RunPerfTest), + this[e(584)](o, e(735), () => !!window[e(439)]), + this.flatAndAddMetadata(o, e(499), () => e(499) in document), + this[e(584)](o, e(1324), () => e(1324) in XMLHttpRequest[e(620)]), + this.flatAndAddMetadata(o, e(497), () => e(497) in XMLHttpRequest[e(620)]), + this[e(584)](o, e(951), () => 'trustToken' in HTMLIFrameElement.prototype), + this[e(584)](o, e(1173), () => localStorage.length), + this[e(584)](o, e(901), () => sessionStorage.length), + this.sessionData[e(800)].forEach((f) => { + const m = e; + this[m(584)](o, f[m(849)]() + '_FAILED', () => !0); + }), + this[e(584)](o, e(579), () => !!this[e(968)]()), + this[e(770)][e(1e3)] && + this[e(770)][e(1e3)].length > 0 && + (this[e(1145)](), + this[e(454)][e(447)]((f, m) => { + const w = e; + m != null && f != null && this[w(584)](o, m, () => f); }), - i + this[e(454)].clear()), + window[e(1201)] && + this[e(584)](o, e(435), () => { + const f = e, + m = window[f(1201)](f(1099) + (window[f(846)] - 1) + f(404)); + return { matches: m[f(442)], media: m.media }; + }), + this.addIframeData(o, t), + window[e(1187)] && + this.flatAndAddMetadata(o, e(884), () => { + const f = e; + return window[f(1187)][f(695)]; + }), + this[e(584)](o, 'HAS_CHROME_APP', () => window[e(539)] && e(1098) in window[e(539)]), + this[e(584)](o, 'HAS_CHROME_CSI', () => window.chrome && e(1254) in window.chrome), + this[e(584)](o, e(1227), () => window[e(539)] && e(420) in window[e(539)]), + this[e(584)]( + o, + 'HAS_CHROME_RUNTIME', + () => window[e(539)] && e(1333) in window[e(539)], + ), + this.addClientHints(o), + this.flatAndAddMetadata( + o, + 'NAVIGATOR_KEYBOARD_SUPPORTED', + () => !!navigator[e(1225)], + ), + this.flatAndAddMetadata(o, e(1239), () => !!navigator.hid), + this[e(584)](o, 'NAVIGATOR_SERIAL_SUPPORTED', () => !!navigator.serial), + this.flatAndAddMetadata(o, e(1006), () => !!navigator.presentation); + try { + if (!t[e(1263)](e(1194)) && c[e(1159)][e(694)](document[e(526)])) { + const { id: f, version: m } = yield c[e(1159)][e(983)](100, document[e(526)]()); + this.flatAndAddMetadata(o, e(1271), () => f), this[e(584)](o, e(962), () => m); + } + } catch {} + for (const f in this[e(770)][e(1161)]) + this[e(584)](o, f, () => + c._POSignalsUtils.Util[e(654)](window, this[e(770)][e(1161)][f]), ); - })()), - I - ); - })()), - (e[o(s)] = a); - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function (t) { - var e, - n, - i, - r, - o, - a = _0x2a96a4; - (e = t[a(709)] || (t[a(709)] = {})), - (n = 1045), - (i = 893), - (r = _0x34d2), - (o = (function () { - var e = _0x34d2; - function r() {} - return ( - (r[e(1337)] = function () { - var r = e; - return t[r(709)] - [r(n)]() - [r(i)](function (t) { - return t.isPrivate; - }) - [r(857)](function () { - return !1; - }); - }), - r - ); - })()), - (e[r(559)] = o); - })(_POSignalsEntities || (_POSignalsEntities = {})); - var __extends = - (this && this.__extends) || - (function () { - var t = function (e, n) { - return (t = - Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && - function (t, e) { - t.__proto__ = e; - }) || - function (t, e) { - for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n]); - })(e, n); - }; - return function (e, n) { - function i() { - this.constructor = e; + const E = this[e(770)].propertyDescriptors; + for (const f in E) { + if (!E[e(618)](f)) continue; + const m = f === e(623) ? window : window[f]; + m && this.addPropertyDescriptorInfo(m, f[e(849)]() + '_PROPERTY_DESCRIPTOR', E[f], o); + } + return o; + }); } - t(e, n), - (e.prototype = null === n ? Object.create(n) : ((i.prototype = n.prototype), new i())); - }; - })(); - (__awaiter = - (this && this.__awaiter) || - function (t, e, n, i) { - return new (n || (n = Promise))(function (r, o) { - function a(t) { + [r(840)](t) { + const e = r; try { - u(i.next(t)); - } catch (t) { - o(t); + const l = navigator[e(1012)]; + if (!l) return; + this[e(584)](t, e(1019), () => l[e(857)]), this[e(584)](t, e(1008), () => l.mobile); + const o = l.brands; + if (!o) return; + for (let x = 0; x < o[e(684)]; x++) + if (o[x][e(618)](e(1053)) && o[x][e(618)](e(764))) { + const v = o[x][e(1053)] + ':' + o[x].version; + this.flatAndAddMetadata(t, 'NAVIGATOR_CLIENT_HINTS_BRAND_' + x, () => v); + } + } catch (l) { + c[e(730)][e(1278)][e(482)](e(786), l); } } - function s(t) { + addPropertyDescriptorInfo(t, e, l, o) { + const x = r; try { - u(i.throw(t)); - } catch (t) { - o(t); + for (const v of l) + this[x(584)](o, e + '_' + v[x(849)](), () => { + const y = x, + L = t.prototype ? t.prototype : t, + g = Object[y(969)](L, v); + if (g) { + const E = g[y(1281)] ? g[y(1281)].toString() : void 0; + return JSON[y(662)]({ + configurable: g[y(1144)], + enumerable: g.enumerable, + value: g[y(534)], + writable: g[y(1070)], + getter: E != null && E[y(684)] < 100 ? E : void 0, + }); + } + return 'undefined'; + }); + } catch (v) { + c[x(730)].Logger[x(482)](x(479), v); } } - function u(t) { - var e; - t.done - ? r(t.value) - : ((e = t.value), - e instanceof n - ? e - : new n(function (t) { - t(e); - })).then(a, s); - } - u((i = i.apply(t, e || [])).next()); - }); - }), - (__generator = - (this && this.__generator) || - function (t, e) { - var n, - i, - r, - o, - a = { - label: 0, - sent: function () { - if (1 & r[0]) throw r[1]; - return r[1]; - }, - trys: [], - ops: [], - }; - return ( - (o = { next: s(0), throw: s(1), return: s(2) }), - 'function' == typeof Symbol && - (o[Symbol.iterator] = function () { - return this; - }), - o - ); - function s(o) { - return function (s) { - return (function (o) { - if (n) throw new TypeError('Generator is already executing.'); - for (; a; ) - try { - if ( - ((n = 1), - i && - (r = - 2 & o[0] - ? i.return - : o[0] - ? i.throw || ((r = i.return) && r.call(i), 0) - : i.next) && - !(r = r.call(i, o[1])).done) - ) - return r; - switch (((i = 0), r && (o = [2 & o[0], r.value]), o[0])) { - case 0: - case 1: - r = o; - break; - case 4: - return a.label++, { value: o[1], done: !1 }; - case 5: - a.label++, (i = o[1]), (o = [0]); - continue; - case 7: - (o = a.ops.pop()), a.trys.pop(); - continue; - default: - if ( - !(r = (r = a.trys).length > 0 && r[r.length - 1]) && - (6 === o[0] || 2 === o[0]) - ) { - a = 0; - continue; - } - if (3 === o[0] && (!r || (o[1] > r[0] && o[1] < r[3]))) { - a.label = o[1]; - break; - } - if (6 === o[0] && a.label < r[1]) { - (a.label = r[1]), (r = o); - break; - } - if (r && a.label < r[2]) { - (a.label = r[2]), a.ops.push(o); - break; - } - r[2] && a.ops.pop(), a.trys.pop(); - continue; - } - o = e.call(t, a); - } catch (t) { - (o = [6, t]), (i = 0); - } finally { - n = r = 0; - } - if (5 & o[0]) throw o[1]; - return { value: o[0] ? o[1] : void 0, done: !0 }; - })([o, s]); - }; + [r(1175)](t, e) { + const l = r; + if (!e[l(1263)](l(898))) + try { + const o = c._POSignalsUtils[l(1159)].createInvisibleElement(l(1085)); + if (!o) return; + (o.srcdoc = l(564)), + document.body[l(1149)](o), + this[l(584)](t, 'IFRAME_CHROME', () => { + const x = l; + return typeof o[x(859)][x(539)]; + }), + this[l(584)](t, l(514), () => { + const x = l; + return o[x(859)].screen[x(527)]; + }), + this.flatAndAddMetadata(t, l(851), () => { + const x = l; + return o[x(859)][x(672)][x(541)]; + }), + o.remove(); + } catch (o) { + c[l(730)][l(1278)][l(482)](l(430), o); + } } - }), - (__assign = - (this && this.__assign) || - function () { - return (__assign = - Object.assign || - function (t) { - for (var e, n = 1, i = arguments.length; n < i; n++) - for (var r in (e = arguments[n])) - Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]); - return t; - }).apply(this, arguments); - }), - (__spreadArrays = - (this && this.__spreadArrays) || - function () { - for (var t = 0, e = 0, n = arguments.length; e < n; e++) t += arguments[e].length; - var i = Array(t), - r = 0; - for (e = 0; e < n; e++) - for (var o = arguments[e], a = 0, s = o.length; a < s; a++, r++) i[r] = o[a]; - return i; - }); - !(function (t) { - !(function (t) { - (t[(t.Unknown = 0)] = 'Unknown'), - (t[(t.FlingRight = 1)] = 'FlingRight'), - (t[(t.FlingLeft = 2)] = 'FlingLeft'), - (t[(t.FlingUp = 3)] = 'FlingUp'), - (t[(t.FlingDown = 4)] = 'FlingDown'), - (t[(t.Diagonal = 5)] = 'Diagonal'), - (t[(t.ScrollRight = 6)] = 'ScrollRight'), - (t[(t.ScrollLeft = 7)] = 'ScrollLeft'), - (t[(t.ScrollUp = 8)] = 'ScrollUp'), - (t[(t.ScrollDown = 9)] = 'ScrollDown'), - (t[(t.Tap = 10)] = 'Tap'), - (t[(t.DoubleTap = 11)] = 'DoubleTap'); - })(t.GestureType || (t.GestureType = {})); - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function (t) { - 'use strict'; - var e = (function () { - function t(t, e) { - (this.handler = t), (this.isOnce = e), (this.isExecuted = !1); - } - return ( - (t.prototype.execute = function (t, e, n) { - if (!this.isOnce || !this.isExecuted) { - this.isExecuted = !0; - var i = this.handler; - t - ? setTimeout(function () { - i.apply(e, n); - }, 1) - : i.apply(e, n); - } - }), - t - ); - })(), - n = (function () { - function t() { - (this._wrap = new a(this)), (this._subscriptions = new Array()); - } - return ( - (t.prototype.subscribe = function (t) { - t && this._subscriptions.push(new e(t, !1)); - }), - (t.prototype.sub = function (t) { - this.subscribe(t); - }), - (t.prototype.one = function (t) { - t && this._subscriptions.push(new e(t, !0)); - }), - (t.prototype.has = function (t) { - if (t) - for (var e = 0, n = this._subscriptions; e < n.length; e++) { - if (n[e].handler == t) return !0; - } - return !1; - }), - (t.prototype.unsubscribe = function (t) { - if (t) - for (var e = 0; e < this._subscriptions.length; e++) { - if (this._subscriptions[e].handler == t) { - this._subscriptions.splice(e, 1); - break; - } - } - }), - (t.prototype.unsub = function (t) { - this.unsubscribe(t); - }), - (t.prototype._dispatch = function (t, e, n) { - for (var i = 0; i < this._subscriptions.length; i++) { - var r = this._subscriptions[i]; - if (r.isOnce) { - if (!0 === r.isExecuted) continue; - this._subscriptions.splice(i, 1), i--; - } - r.execute(t, e, n); + [r(502)]() { + return __awaiter(this, void 0, void 0, function* () { + const t = _0x4e19, + e = {}, + l = [ + 'accelerometer', + 'accessibility-events', + t(611), + t(1258), + 'camera', + t(1046), + t(1351), + 'geolocation', + t(1226), + t(737), + 'microphone', + t(592), + t(636), + t(797), + t(921), + t(1002), + ], + o = []; + if (navigator[t(1005)]) + for (const x in l) { + const v = l[x]; + o[t(1002)]( + navigator[t(1005)] + [t(838)]({ name: v }) + [t(659)]((y) => { + e[v] = y.state; + }) + .catch((y) => {}), + ); } - }), - (t.prototype.asEvent = function () { - return this._wrap; - }), - t - ); - })(); - t.DispatcherBase = n; - var i = (function (t) { - function e() { - return (null !== t && t.apply(this, arguments)) || this; - } - return ( - __extends(e, t), - (e.prototype.dispatch = function (t, e) { - this._dispatch(!1, this, arguments); - }), - (e.prototype.dispatchAsync = function (t, e) { - this._dispatch(!0, this, arguments); - }), - e - ); - })(n); - t.EventDispatcher = i; - var r = (function (t) { - function e() { - return (null !== t && t.apply(this, arguments)) || this; - } - return ( - __extends(e, t), - (e.prototype.dispatch = function (t) { - this._dispatch(!1, this, arguments); - }), - (e.prototype.dispatchAsync = function (t) { - this._dispatch(!0, this, arguments); - }), - e - ); - })(n), - o = (function (t) { - function e() { - return (null !== t && t.apply(this, arguments)) || this; - } - return ( - __extends(e, t), - (e.prototype.dispatch = function () { - this._dispatch(!1, this, arguments); - }), - (e.prototype.dispatchAsync = function () { - this._dispatch(!0, this, arguments); - }), - e - ); - })(n), - a = (function () { - function t(t) { - (this._subscribe = function (e) { - return t.subscribe(e); - }), - (this._unsubscribe = function (e) { - return t.unsubscribe(e); - }), - (this._one = function (e) { - return t.one(e); - }), - (this._has = function (e) { - return t.has(e); - }); - } - return ( - (t.prototype.subscribe = function (t) { - this._subscribe(t); - }), - (t.prototype.sub = function (t) { - this.subscribe(t); - }), - (t.prototype.unsubscribe = function (t) { - this._unsubscribe(t); - }), - (t.prototype.unsub = function (t) { - this.unsubscribe(t); - }), - (t.prototype.one = function (t) { - this._one(t); - }), - (t.prototype.has = function (t) { - return this._has(t); - }), - t - ); - })(), - s = (function () { - function t() { - this._events = {}; - } + try { + yield Promise[t(881)](o); + } catch (x) { + c._POSignalsUtils.Logger[t(482)](x); + } + return e; + }); + } + [r(464)](t) { + const e = r, + l = document.createElement(e(639)); + if (l && l.canPlayType) return l[e(689)](t); + } + [r(698)](t) { + return __awaiter(this, void 0, void 0, function* () { + const e = _0x4e19; + c[e(529)](); + const l = this, + o = c[e(1347)], + x = o[e(836)], + v = o[e(805)]; + this[e(584)](t, e(669), () => o[e(1305)]), + this[e(584)](t, e(478), () => o.applicationcache), + this.flatAndAddMetadata(t, e(411), () => !!o[e(411)]), + o.audio && this[e(584)](t, e(411), () => o[e(411)]), + this[e(584)]( + t, + 'battery_api', + () => !!x(e(1302), navigator) || !!x('getBattery', navigator), + ), + this[e(584)](t, e(723), () => o.blobconstructor), + this[e(584)](t, 'context_menu', () => o[e(777)]), + this[e(584)](t, e(812), () => o[e(812)]), + this.flatAndAddMetadata(t, 'cryptography', () => o[e(448)]), + this[e(584)](t, e(1108), () => o[e(1287)]), + this[e(584)](t, e(642), () => o.customprotocolhandler), + this[e(584)](t, 'custom_event', () => o[e(1131)]), + this[e(584)](t, e(1134), () => o.dart), + this[e(584)](t, e(1020), () => o[e(589)]), + this[e(584)](t, e(1113), () => o[e(1316)]); + const y = yield this[e(552)](e(1120)); + l[e(584)](t, e(419), () => y), + this[e(584)](t, e(1215), () => o[e(931)]), + o[e(931)] && + (this.flatAndAddMetadata(t, e(456), () => v(x(e(389), window, !1), window)), + this[e(584)](t, e(431), () => MouseEvent[e(999)]), + this[e(584)](t, e(640), () => MouseEvent[e(1294)])), + this[e(584)](t, e(853), () => o[e(1171)]), + this[e(584)](t, 'game_pads', () => o[e(391)]), + this.flatAndAddMetadata(t, 'geo_location', () => o[e(1142)]), + this[e(584)](t, 'ie8compat', () => o.ie8compat); + const L = yield this[e(552)](e(1232)); + l[e(584)](t, e(772), () => L), + this.flatAndAddMetadata(t, e(590), () => o[e(757)]), + this[e(584)](t, 'internationalization', () => o[e(410)]), + this[e(584)](t, 'json', () => o[e(976)]), + this[e(584)](t, e(740), () => o.ligatures), + this.flatAndAddMetadata(t, 'media_source', () => 'MediaSource' in window), + this.flatAndAddMetadata(t, e(1220), () => o.messagechannel), + this[e(584)](t, 'notification', () => o[e(572)]), + this[e(584)](t, 'page_visibility', () => o[e(930)]), + this.flatAndAddMetadata(t, e(1143), () => o.performance), + this[e(584)](t, e(574), () => o[e(1235)]), + this[e(584)](t, e(511), () => o[e(633)]), + this[e(584)](t, e(576), () => o[e(576)]), + this.flatAndAddMetadata(t, e(1138), () => o[e(495)]), + this[e(584)](t, e(811), () => o[e(1016)]), + this[e(584)](t, e(1290), () => o.requestanimationframe), + this[e(584)](t, e(1128), () => o[e(1203)]), + this[e(584)](t, e(839), () => o[e(955)]), + this[e(584)](t, e(906), () => o.typedarrays), + this.flatAndAddMetadata(t, 'vibrate', () => o[e(445)]), + this[e(584)](t, 'video', () => !!o[e(639)]), + o.video && this[e(584)](t, 'video', () => o[e(639)]), + this[e(584)](t, e(971), () => o[e(627)]), + this[e(584)](t, e(393), () => o.websockets), + this[e(584)](t, e(1092), () => o[e(1156)]), + this[e(584)](t, e(513), () => o[e(513)]); + }); + } + [r(1314)]() { + const t = r, + e = {}, + l = navigator.connection || navigator[t(688)] || navigator[t(828)]; return ( - (t.prototype.get = function (t) { - var e = this._events[t]; - return e || ((e = this.createDispatcher()), (this._events[t] = e), e); - }), - (t.prototype.remove = function (t) { - this._events[t] = null; + this[t(584)](e, t(1054), () => (l ? l[t(1252)] : null)), + this.flatAndAddMetadata(e, t(537), () => (l ? l.downlinkMax : null)), + this.flatAndAddMetadata(e, t(973), () => !!navigator.bluetooth), + this[t(584)](e, t(815), () => this.hasSpeakers), + this[t(584)](e, t(868), () => this[t(874)]), + this[t(584)](e, t(1089), () => this[t(603)]), + this.flatAndAddMetadata(e, t(824), () => this[t(922)]), + this[t(584)](e, t(835), () => this[t(465)]), + this.flatAndAddMetadata(e, 'BATTERY_CHARGING', () => this[t(900)]), + this.flatAndAddMetadata(e, t(1322), () => this[t(1082)]), + this[t(584)](e, t(781), () => this[t(492)]), + this[t(584)](e, t(535), () => this[t(1112)]), + this.flatAndAddMetadata(e, 'IS_MOBILE', () => { + const o = t; + return c[o(730)][o(1159)][o(809)]; }), - t - ); - })(), - u = (function (t) { - function e() { - return (null !== t && t.apply(this, arguments)) || this; - } - return ( - __extends(e, t), - (e.prototype.createDispatcher = function () { - return new i(); + this[t(584)](e, t(837), () => 'ontouchstart' in document[t(780)]), + this[t(584)](e, t(1021), () => this[t(1005)]), + this[t(584)](e, t(426), () => { + const o = t; + return window[o(1201)](o(1115))[o(442)] + ? o(778) + : window[o(1201)](o(945))[o(442)] + ? o(1124) + : void 0; }), e ); - })(s), - c = (function (t) { - function e() { - return (null !== t && t.apply(this, arguments)) || this; + } + [r(1096)](t, e, l) { + const o = r; + try { + const x = new Set(this[o(770)].metadataBlackList || []); + e != null && l != null && !x[o(1263)](e) && (t[e] = l); + } catch (x) { + c[o(730)][o(1278)].warn(o(1249) + e + o(496) + l + ', ' + x); } - return ( - __extends(e, t), - (e.prototype.createDispatcher = function () { - return new r(); - }), - e - ); - })(s), - l = (function (t) { - function e() { - return (null !== t && t.apply(this, arguments)) || this; + } + [r(552)](t) { + return __awaiter(this, void 0, void 0, function* () { + const e = _0x4e19, + l = new Promise((x) => { + const v = _0x4e19; + try { + c[v(1347)].on(t, (y) => { + x(y); + }); + } catch (y) { + x(null), c[v(730)][v(1278)][v(482)](v(1015) + t, y); + } + }), + o = c[e(730)][e(1159)].delay(250).then(() => null); + return yield Promise[e(998)]([l, o]); + }); + } + [r(584)](t, e, l) { + const o = r; + try { + const x = new Set(this.metadataParams[o(637)] || []); + if (!e || x[o(1263)](e)) return; + const v = l(); + if (typeof v === o(788) && v !== null) { + const y = c[o(730)][o(1159)][o(477)](v); + for (const L in y) this[o(1096)](t, e + '.' + L, y[L]); + } else this.safeAddMetadata(t, e, v); + } catch (x) { + c[o(730)][o(1278)][o(482)](o(1249) + e, x); } + } + [r(1106)]() { + const t = r; + let e = new Date(), + l = 0, + o; + do l++, (o = new Date()[t(1269)]() - e[t(1269)]()), Math[t(1040)](l * Math[t(952)]()); + while (o < 500); + const x = l / o; + return c._POSignalsUtils[t(1278)].debug(t(518) + x), x; + } + [r(926)]() { + const t = r, + e = [ + { name: t(1329), value: !1, error: null }, + { name: 'FILE_INJECT_JS_FOUND', value: !1, error: null }, + { name: t(1312), value: !1, error: null }, + { name: 'WINDOW_GLOBAL_KEY_FOUND', value: !1, error: null }, + ]; + !this[t(1037)] && + ((this[t(1037)] = e), + (this[t(691)].aiaSignals = e), + c[t(1348)] + .detect() + [t(659)]((l) => { + const o = t; + (this[o(1037)] = l), (this.lastCalculatedMetadata[o(629)] = l); + }) + .catch((l) => { + const o = t; + c[o(730)][o(1278)][o(613)](o(395), l); + })), + this[t(1037)] && (this.lastCalculatedMetadata[t(629)] = this.aiSignalsResult); + } + static [r(1182)]() { + const t = r; return ( - __extends(e, t), - (e.prototype.createDispatcher = function () { - return new o(); - }), - e + Math.acos(0.123) == 1.4474840516030247 && + Math[t(1319)](Math[t(546)]) == 0.881373587019543 && + Math[t(1158)](2) == 1.1071487177940904 && + Math[t(412)](0.5) == 0.5493061443340548 && + Math[t(1350)](Math.PI) == 1.4645918875615231 && + Math[t(602)](21 * Math.LN2) == -0.4067775970251724 && + Math[t(571)](492 * Math[t(1262)]) == 9199870313877772e292 && + Math[t(1211)](1) == 1.718281828459045 && + Math[t(1288)](6 * Math.PI, -100) == 101.76102278593319 && + Math[t(387)](Math.PI) == 0.4971498726941338 && + Math.sin(Math.PI) == 12246467991473532e-32 && + Math[t(577)](Math.PI) == 11.548739357257748 && + Math[t(899)](10 * Math[t(1262)]) == -3.3537128705376014 && + Math[t(436)](0.123) == 0.12238344189440875 && + Math[t(1065)](Math.PI, -100) == 19275814160560204e-66 ); - })(s); - (function () { - function t() { - this._events = new u(); } - Object.defineProperty(t.prototype, 'events', { - get: function () { - return this._events; - }, - enumerable: !1, - configurable: !0, - }), - (t.prototype.subscribe = function (t, e) { - this._events.get(t).subscribe(e); - }), - (t.prototype.sub = function (t, e) { - this.subscribe(t, e); - }), - (t.prototype.unsubscribe = function (t, e) { - this._events.get(t).unsubscribe(e); - }), - (t.prototype.unsub = function (t, e) { - this.unsubscribe(t, e); - }), - (t.prototype.one = function (t, e) { - this._events.get(t).one(e); - }), - (t.prototype.has = function (t, e) { - return this._events.get(t).has(e); + } + n[r(875)] = a; + class s { + constructor(t, e) { + const l = r; + (this[l(947)] = t), + (this[l(663)] = e), + (this[l(475)] = l(610)), + (this.AGENT_DEVICE_URL = '/device'); + } + getDevicePayload() { + return __awaiter(this, void 0, void 0, function* () { + const t = _0x4e19, + e = this[t(475)] + ':' + this[t(947)] + this[t(1291)], + l = new AbortController(), + o = l.signal, + x = setTimeout(() => l[t(1183)](), this.agentTimeout); + try { + const v = yield fetch(e, { + method: t(1296), + headers: { 'Content-Type': t(1090) }, + signal: o, + }); + if (!v.ok) return c._POSignalsUtils[t(1278)][t(613)](t(1095) + v[t(1205)]), void 0; + const y = yield v[t(1041)](); + return c[t(730)][t(1278)][t(613)]('calculated workstation device attributes.'), y; + } catch (v) { + return ( + v[t(1154)] === t(1330) + ? c[t(730)][t(1278)].error( + 'Failed to fetch the Workstation data. Request timed out after ' + + this[t(663)] + + 'ms', + ) + : c[t(730)][t(1278)].info(t(674) + v[t(728)]), + void 0 + ); + } finally { + clearTimeout(x); + } }); - })(), - (function () { - function t() { - this._events = new c(); - } - Object.defineProperty(t.prototype, 'events', { - get: function () { - return this._events; - }, - enumerable: !1, - configurable: !0, - }), - (t.prototype.subscribe = function (t, e) { - this._events.get(t).subscribe(e); - }), - (t.prototype.sub = function (t, e) { - this.subscribe(t, e); - }), - (t.prototype.one = function (t, e) { - this._events.get(t).one(e); - }), - (t.prototype.has = function (t, e) { - return this._events.get(t).has(e); - }), - (t.prototype.unsubscribe = function (t, e) { - this._events.get(t).unsubscribe(e); - }), - (t.prototype.unsub = function (t, e) { - this.unsubscribe(t, e); - }); - })(), - (function () { - function t() { - this._events = new l(); - } - Object.defineProperty(t.prototype, 'events', { - get: function () { - return this._events; - }, - enumerable: !1, - configurable: !0, - }), - (t.prototype.one = function (t, e) { - this._events.get(t).one(e); - }), - (t.prototype.has = function (t, e) { - return this._events.get(t).has(e); - }), - (t.prototype.subscribe = function (t, e) { - this._events.get(t).subscribe(e); - }), - (t.prototype.sub = function (t, e) { - this.subscribe(t, e); - }), - (t.prototype.unsubscribe = function (t, e) { - this._events.get(t).unsubscribe(e); - }), - (t.prototype.unsub = function (t, e) { - this.unsubscribe(t, e); - }); - })(); - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function (t) { - var e = (function () { - function e(t) { - (this._isStarted = !1), - (this._isEventsStarted = !1), - (this._gestureTimestamps = []), - (this._maxSensorSamples = 0), - (this._sensorsTimestampDeltaInMillis = 0), - (this._accelerometerList = []), - (this._gyroscopeList = []), - (this._linearAccelerometerList = []), - (this._rotationList = []), - (this.orientationImplementationFix = 1), - (this.delegate = t), - window.navigator.userAgent.match( - /^.*(iPhone|iPad).*(OS\s[0-9]).*(CriOS|Version)\/[.0-9]*\sMobile.*$/i, - ) && (this.orientationImplementationFix = -1), - (this.accelerometerUpdateHandle = this.accelerometerUpdate.bind(this)), - (this.orientationUpdateHandle = this.orientationUpdate.bind(this)); } - return ( - Object.defineProperty(e.prototype, 'LAST_GESTURE_SENSOR_TIMEOUT_MILI_SECONDS', { - get: function () { - return 3e3; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'accX', { - get: function () { - return this._accX; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'accY', { - get: function () { - return this._accY; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'accZ', { - get: function () { - return this._accZ; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'lienarAccX', { - get: function () { - return this._lienarAccX; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'lienarAccY', { - get: function () { - return this._lienarAccY; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'lienarAccZ', { - get: function () { - return this._lienarAccZ; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'isStarted', { - get: function () { - return this._isStarted; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'rotX', { - get: function () { - return this._rotX; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'rotY', { - get: function () { - return this._rotY; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'rotZ', { - get: function () { - return this._rotZ; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'maxSensorSamples', { - get: function () { - return this._maxSensorSamples; - }, - set: function (t) { - this._maxSensorSamples = t; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'sensorsTimestampDeltaInMillis', { - get: function () { - return this._sensorsTimestampDeltaInMillis; - }, - set: function (t) { - this._sensorsTimestampDeltaInMillis = t; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'accelerometerList', { - get: function () { - return this.getRelevantSensorSamples(this._accelerometerList); - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'gyroscopeList', { - get: function () { - return this.getRelevantSensorSamples(this._gyroscopeList); - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'linearAccelerometerList', { - get: function () { - return this.getRelevantSensorSamples(this._linearAccelerometerList); - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'rotationList', { - get: function () { - return this._rotationList; - }, - enumerable: !1, - configurable: !0, - }), - (e.prototype.start = function () { - this._isStarted || - ((this._isStarted = !0), t._POSignalsUtils.Logger.debug('Sensor events started...')); - }), - (e.prototype.getRotationListCopy = function () { - return this._rotationList ? Array.from(this._rotationList) : []; - }), - (e.prototype.stop = function () { - this._isStarted && - (void 0 != window.DeviceMotionEvent && - window.removeEventListener('devicemotion', this.accelerometerUpdateHandle, !0), - window.DeviceOrientationEvent && - window.removeEventListener('deviceorientation', this.orientationUpdateHandle, !0), - (this._isStarted = !1), - t._POSignalsUtils.Logger.debug('Sensor events stopped')); - }), - (e.prototype.getRelevantSensorSamples = function (e) { - if ( - 0 == e.length || - this._sensorsTimestampDeltaInMillis < 1 || - 0 == this._gestureTimestamps.length - ) - return e; - for (var n = new Map(), i = null, r = 0, o = 0; o < e.length; o++) - for (var a = 0; a < this._gestureTimestamps.length; a++) - (r = e[o].timestamp) >= - (i = this._gestureTimestamps[a]).start - this._sensorsTimestampDeltaInMillis && - r <= i.end + this._sensorsTimestampDeltaInMillis && - n.set(e[o].timestamp, e[o]); - return t._POSignalsUtils.Util.getValuesOfMap(n); - }), - (e.prototype.stopEvents = function () { - this._isEventsStarted && - (void 0 != window.DeviceMotionEvent && - window.removeEventListener('devicemotion', this.accelerometerUpdateHandle, !0), - window.DeviceOrientationEvent && - window.removeEventListener('deviceorientation', this.orientationUpdateHandle, !0), - (this._isEventsStarted = !1), - t._POSignalsUtils.Logger.debug('Sensor events stopped listening')); - }), - (e.prototype.startEvents = function () { - this._isEventsStarted || - (void 0 != window.DeviceMotionEvent - ? this.delegate.addEventListener( - window, - 'devicemotion', - this.accelerometerUpdateHandle, - !0, - ) - : t._POSignalsUtils.Logger.warn('DeviceMotion not supported!'), - window.DeviceOrientationEvent - ? this.delegate.addEventListener( - window, - 'deviceorientation', - this.orientationUpdateHandle, - !0, - ) - : t._POSignalsUtils.Logger.warn('DeviceOrientation not supported!'), - t._POSignalsUtils.Logger.debug('Sensor events start listening...'), - (this._isEventsStarted = !0)); - }), - (e.prototype.reset = function () { - (this._accelerometerList = []), - (this._gyroscopeList = []), - (this._linearAccelerometerList = []), - (this._rotationList = []), - this._gestureTimestamps.length > 0 - ? (this._gestureTimestamps = [ - this._gestureTimestamps[this._gestureTimestamps.length - 1], - ]) - : (this._gestureTimestamps = []), - (this._accX = 0), - (this._accY = 0), - (this._accZ = 0), - (this._rotX = 0), - (this._rotY = 0), - (this._rotZ = 0); - }), - (e.prototype.onGesture = function (t) { - this._isEventsStarted || this.startEvents(), - t.events.length > 1 && - this._gestureTimestamps.push({ - start: t.events[0].eventTs, - end: t.events[t.events.length - 1].eventTs, - }); - }), - (e.prototype.puaseSensorsCollectionIfNoActivity = function (t) { - return (this._gestureTimestamps.length > 0 - ? this._gestureTimestamps[this._gestureTimestamps.length - 1].end - : 0) > 0 - ? Math.abs(t - this._gestureTimestamps[this._gestureTimestamps.length - 1].end) > - this.LAST_GESTURE_SENSOR_TIMEOUT_MILI_SECONDS && (this.stopEvents(), !0) - : (this.stopEvents(), !0); - }), - (e.prototype.getDeviceAcceleration = function (t) { - return t && null != t.x && null != t.y && null != t.z ? t : null; - }), - (e.prototype.accelerometerUpdate = function (e) { + } + n[r(1318)] = s; + })((p = c[h(1216)] || (c._POSignalsMetadata = {}))); + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + const h = _0x7ea2; + let p; + (function (n) { + const r = _0x4e19; + class a { + static [r(858)]() { + const i = r, + t = [ + i(433), + i(1184), + i(1103), + i(1268), + '__webdriver_script_fn', + i(650), + i(1157), + i(638), + i(474), + i(1109), + i(932), + ]; + for (const e of t) if (document[e]) return !0; + return !1; + } + static [r(1167)]() { + const i = r, + t = [i(847), i(501), i(517), i(1300), i(400), 'callSelenium', i(1253)]; + for (const e of t) if (window[e]) return !0; + return !1; + } + static [r(548)]() { + const i = r, + t = [ + i(601), + '__driver_evaluate', + i(433), + i(1184), + i(650), + i(1157), + '__webdriver_unwrapped', + i(1109), + '__fxdriver_unwrapped', + i(1253), + i(517), + 'calledSelenium', + i(1088), + i(702), + i(1256), + i(561), + i(1026), + 'webdriverCommand', + i(916), + i(707), + i(739), + '__$webdriverAsyncExecutor', + '__lastWatirAlert', + i(889), + i(605), + i(818), + i(759), + ]; + for (const e of t) if (navigator[e]) return !0; + return !1; + } + static seleniumSequentum() { + const i = r; + return ( + window[i(1238)] && + window[i(1238)].toString() && + window[i(1238)][i(1340)]().indexOf(i(1283)) != -1 + ); + } + } + n[r(1056)] = a; + })((p = c[h(1216)] || (c[h(1216)] = {}))); + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + let h; + (function (p) { + const n = _0x4e19, + r = n(1272), + a = n(1154), + s = 'type', + i = n(804), + t = n(764), + e = n(890), + l = n(503), + o = n(616), + x = n(1313), + v = n(1125), + y = 'fetcher', + L = n(783), + g = 'mediaplayer', + E = 'library', + f = Object[n(1168)]({ + browser: [[/(wget|curl|lynx|elinks|httpie)[\/ ]\(?([\w\.-]+)/i], [a, t, [s, x]]], + }), + m = Object.freeze({ + browser: [ + [ + /((?:ahrefs|amazon|bing|cc|dot|duckduck|exa|facebook|gpt|mj12|mojeek|oai-search|perplexity|semrush|seznam)bot)\/([\w\.-]+)/i, + /(applebot(?:-extended)?)\/([\w\.]+)/i, + /(baiduspider)[-imagevdonsfcpr]{0,6}\/([\w\.]+)/i, + /(claude(?:bot|-web)|anthropic-ai)\/?([\w\.]*)/i, + /(coccocbot-(?:image|web))\/([\w\.]+)/i, + /(facebook(?:externalhit|catalog)|meta-externalagent)\/([\w\.]+)/i, + /(google(?:bot|other|-inspectiontool)(?:-image|-video|-news)?|storebot-google)\/?([\w\.]*)/i, + /(ia_archiver|archive\.org_bot)\/?([\w\.]*)/i, + /((?:semrush|splitsignal)bot[-abcfimostw]*)\/([\w\.-]+)/i, + /(sogou (?:pic|head|web|orion|news) spider)\/([\w\.]+)/i, + /(y!?j-(?:asr|br[uw]|dscv|mmp|vsidx|wsc))\/([\w\.]+)/i, + /(yandex(?:(?:mobile)?(?:accessibility|additional|renderresources|screenshot|sprav)?bot|image(?:s|resizer)|video(?:parser)?|blogs|adnet|favicons|fordomain|market|media|metrika|news|ontodb(?:api)?|pagechecker|partner|rca|tracker|turbo|vertis|webmaster|antivirus))\/([\w\.]+)/i, + /(yeti)\/([\w\.]+)/i, + /((?:aihit|diff|timpi|you)bot|omgili(?:bot)?|(?:magpie-|velenpublicweb)crawler|webzio-extended|(?:screaming frog seo |yisou)spider)\/?([\w\.]*)/i, + ], + [a, t, [s, o]], + [ + /((?:adsbot|apis|mediapartners)-google(?:-mobile)?|google-?(?:other|cloudvertexbot|extended|safety))/i, + /\b(360spider-?(?:image|video)?|bytespider|(?:ai2|aspiegel|dataforseo|imagesift|petal|turnitin)bot|teoma|(?=yahoo! )slurp)/i, + ], + [a, [s, o]], + ], + }), + w = Object[n(1168)]({ + device: [ + [ + /(nook)[\w ]+build\/(\w+)/i, + /(dell) (strea[kpr\d ]*[\dko])/i, + /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, + /(trinity)[- ]*(t\d{3}) bui/i, + /(gigaset)[- ]+(q\w{1,9}) bui/i, + /(vodafone) ([\w ]+)(?:\)| bui)/i, + ], + [i, r, [s, l]], + [/(u304aa)/i], + [r, [i, n(1334)], [s, e]], + [/\bsie-(\w*)/i], + [r, [i, n(621)], [s, e]], + [/\b(rct\w+) b/i], + [r, [i, n(908)], [s, l]], + [/\b(venue[\d ]{2,7}) b/i], + [r, [i, n(1031)], [s, l]], + [/\b(q(?:mv|ta)\w+) b/i], + [r, [i, n(938)], [s, l]], + [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], + [r, [i, 'Barnes & Noble'], [s, l]], + [/\b(tm\d{3}\w+) b/i], + [r, [i, 'NuVision'], [s, l]], + [/\b(k88) b/i], + [r, [i, 'ZTE'], [s, l]], + [/\b(nx\d{3}j) b/i], + [r, [i, n(1024)], [s, e]], + [/\b(gen\d{3}) b.+49h/i], + [r, [i, n(970)], [s, e]], + [/\b(zur\d{3}) b/i], + [r, [i, n(970)], [s, l]], + [/^((zeki)?tb.*\b) b/i], + [r, [i, n(566)], [s, l]], + [/\b([yr]\d{2}) b/i, /\b(?:dragon[- ]+touch |dt)(\w{5}) b/i], + [r, [i, 'Dragon Touch'], [s, l]], + [/\b(ns-?\w{0,9}) b/i], + [r, [i, n(1116)], [s, l]], + [/\b((nxa|next)-?\w{0,9}) b/i], + [r, [i, n(833)], [s, l]], + [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], + [[i, 'Voice'], r, [s, e]], + [/\b(lvtel\-)?(v1[12]) b/i], + [[i, n(754)], r, [s, e]], + [/\b(ph-1) /i], + [r, [i, 'Essential'], [s, e]], + [/\b(v(100md|700na|7011|917g).*\b) b/i], + [r, [i, n(1121)], [s, l]], + [/\b(trio[-\w\. ]+) b/i], + [r, [i, 'MachSpeed'], [s, l]], + [/\btu_(1491) b/i], + [r, [i, 'Rotor'], [s, l]], + ], + }), + S = Object.freeze({ + browser: [ + [ + /(airmail|bluemail|emclient|evolution|foxmail|kmail2?|kontact|(?:microsoft |mac)?outlook(?:-express)?|navermailapp|(?!chrom.+)sparrow|thunderbird|yahoo)(?:m.+ail; |[\/ ])([\w\.]+)/i, + ], + [a, t, [s, v]], + ], + }), + U = Object[n(1168)]({ + browser: [ + [ + /(ahrefssiteaudit|bingpreview|chatgpt-user|mastodon|(?:discord|duckassist|linkedin|pinterest|reddit|roger|siteaudit|telegram|twitter|uptimero)bot|google-site-verification|meta-externalfetcher|y!?j-dlc|yandex(?:calendar|direct(?:dyn)?|searchshop)|yadirectfetcher)\/([\w\.]+)/i, + /(bluesky) cardyb\/([\w\.]+)/i, + /(slack(?:bot)?(?:-imgproxy|-linkexpanding)?) ([\w\.]+)/i, + /(whatsapp)\/([\w\.]+)[\/ ][ianw]/i, + ], + [a, t, [s, y]], + [ + /(cohere-ai|vercelbot|feedfetcher-google|google(?:-read-aloud|producer)|(?=bot; )snapchat|yandex(?:sitelinks|userproxy))/i, + ], + [a, [s, y]], + ], + }), + T = Object.freeze({ + browser: [ + [/chatlyio\/([\d\.]+)/i], + [t, 'Slack', [s, L]], + [/jp\.co\.yahoo\.android\.yjtop\/([\d\.]+)/i], + [t, n(485), [s, L]], + ], + }), + O = Object[n(1168)]({ + browser: [ + [ + /(apple(?:coremedia|tv))\/([\w\._]+)/i, + /(coremedia) v([\w\._]+)/i, + /(ares|clementine|music player daemon|nexplayer|ossproxy) ([\w\.-]+)/i, + /^(aqualung|audacious|audimusicstream|amarok|bass|bsplayer|core|gnomemplayer|gvfs|irapp|lyssna|music on console|nero (?:home|scout)|nokia\d+|nsplayer|psp-internetradioplayer|quicktime|rma|radioapp|radioclientapplication|soundtap|stagefright|streamium|totem|videos|xbmc|xine|xmms)\/([\w\.-]+)/i, + /(lg player|nexplayer) ([\d\.]+)/i, + /player\/(nexplayer|lg player) ([\w\.-]+)/i, + /(gstreamer) souphttpsrc.+libsoup\/([\w\.-]+)/i, + /(htc streaming player) [\w_]+ \/ ([\d\.]+)/i, + /(lavf)([\d\.]+)/i, + /(mplayer)(?: |\/)(?:(?:sherpya-){0,1}svn)(?:-| )(r\d+(?:-\d+[\w\.-]+))/i, + / (songbird)\/([\w\.-]+)/i, + /(winamp)(?:3 version|mpeg| ) ([\w\.-]+)/i, + /(vlc)(?:\/| media player - version )([\w\.-]+)/i, + /^(foobar2000|itunes|smp)\/([\d\.]+)/i, + /com\.(riseupradioalarm)\/([\d\.]*)/i, + /(mplayer)(?:\s|\/| unknown-)([\w\.\-]+)/i, + /(windows)\/([\w\.-]+) upnp\/[\d\.]+ dlnadoc\/[\d\.]+ home media server/i, + ], + [a, t, [s, g]], + [/(flrp)\/([\w\.-]+)/i], + [[a, n(1336)], t, [s, g]], + [ + /(fstream|media player classic|inlight radio|mplayer|nativehost|nero showtime|ocms-bot|queryseekspider|tapinradio|tunein radio|winamp|yourmuze)/i, + ], + [a, [s, g]], + [/(htc_one_s|windows-media-player|wmplayer)\/([\w\.-]+)/i], + [[a, /[_-]/g, ' '], t, [s, g]], + [/(rad.io|radio.(?:de|at|fr)) ([\d\.]+)/i], + [[a, n(918)], t, [s, g]], + ], + }), + C = Object[n(1168)]({ + browser: [ + [ + /^(apache-httpclient|axios|(?:go|java)-http-client|got|guzzlehttp|java|libwww-perl|lua-resty-http|needle|node-(?:fetch|superagent)|okhttp|php-soap|postmanruntime|python-(?:urllib|requests)|scrapy)\/([\w\.]+)/i, + /(jsdom|java)\/([\w\.]+)/i, + ], + [a, t, [s, E]], + ], + }), + k = Object.freeze({ + device: [ + [/dilink.+(byd) auto/i], + [i], + [/(rivian) (r1t)/i], + [i, r], + [/vcc.+netfront/i], + [[i, n(671)]], + ], + }), + R = Object.freeze({ browser: [...f[n(1033)], ...m[n(1033)], ...U.browser, ...C[n(1033)]] }); + class H { + constructor() { + const M = n; + (this[M(1301)] = (K) => + [ + M(1148), + M(668), + M(462), + M(987), + M(1165), + M(608), + M(583), + 'bytespider', + 'ccbot', + M(732), + M(934), + M(632), + M(1341), + M(1193), + M(924), + 'imagesiftbot', + M(895), + M(784), + M(578), + M(920), + M(996), + M(429), + M(683), + M(1137), + M(705), + M(1050), + M(512), + M(457), + M(1234), + M(1049), + ][M(1344)]((Z) => K[M(1097)]()[M(806)](Z))), + (this[M(1013)] = (K) => { + const Z = M, + le = K.toLowerCase(), + q = R.browser; + for (let be = 0; be < q[Z(684)]; be += 2) { + const we = q[be], + He = Array[Z(1133)](we) ? we : [we]; + for (const B of He) if (B instanceof RegExp && B.test(le)) return !0; + } + return !1; + }), + (this[M(907)] = (K) => K[M(1154)] === Engine.BLINK), + (this[M(753)] = (K) => K[M(1097)]()[M(806)](M(1265))); + } + } + p[n(550)] = H; + })((h = c._POSignalsMetadata || (c._POSignalsMetadata = {}))); + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + const h = _0x7ea2; + let p; + (function (n) { + const r = _0x4e19; + class a { + isCanvasSupported() { + const i = _0x4e19, + t = document[i(443)](i(425)); + return !!(t[i(717)] && t[i(717)]('2d')); + } + [r(1025)](i) { + const t = r, + e = document[t(443)]('canvas'); + let l = null; + try { + i === t(627) + ? (l = e[t(717)](t(627)) || e[t(717)](t(682))) + : (l = e.getContext(t(679))); + } catch {} + return l; + } + [r(829)]() { + const i = r; + if (!this[i(1328)]()) return { supported: !1, type: null }; + let t = this[i(1025)](i(679)); + return t + ? { supported: !0, type: i(679) } + : ((t = this[i(1025)](i(627))), + t ? { supported: !0, type: 'webgl' } : { supported: !1, type: null }); + } + [r(626)]() { + const i = r, + { supported: t } = this[i(829)](); + return t; + } + [r(491)]() { + const i = r, + { supported: t, type: e } = this[i(829)](); + return t && e === i(679); + } + [r(543)]() { + const i = r, + t = document.createElement(i(425)); + let e, l, o, x; + try { + (e = t[i(717)](i(679))), + !e && + ((e = t[i(717)](i(627)) || t.getContext(i(682))), !e && console[i(1217)](i(1063))); + } catch { + console[i(1217)]('Neither WebGL 2.0 nor WebGL 1.0 is supported.'); + } + try { + (l = e[i(591)](i(1325))), + (o = e.getParameter(l.UNMASKED_VENDOR_WEBGL)), + (x = e[i(585)](l[i(709)])); + } catch { + (o = e.getParameter(e.VENDOR)), (x = e[i(585)](e[i(1206)])); + } + return { + vendor: o, + renderer: x, + webglVersion: e.getParameter(e[i(619)]), + shadingLanguageVersion: e[i(585)](e.SHADING_LANGUAGE_VERSION), + extensions: e[i(1198)](), + maxTextureSize: e.getParameter(e[i(972)]), + maxRenderbufferSize: e[i(585)](e[i(401)]), + maxTextureImageUnits: e[i(585)](e.MAX_TEXTURE_IMAGE_UNITS), + maxVertexTextureImageUnits: e.getParameter(e[i(953)]), + maxCombinedTextureImageUnits: e[i(585)](e.MAX_COMBINED_TEXTURE_IMAGE_UNITS), + maxVertexAttribs: e[i(585)](e[i(845)]), + maxVaryingVectors: e[i(585)](e[i(992)]), + maxVertexUniformVectors: e[i(585)](e[i(1243)]), + maxFragmentUniformVectors: e[i(585)](e[i(580)]), + }; + } + getHasLiedLanguages() { + const i = r; + if (typeof navigator[i(1188)] !== i(834)) try { - if ( - !this.delegate.collectBehavioralData() || - this.puaseSensorsCollectionIfNoActivity(t._POSignalsUtils.Util.now()) - ) - return; - var n = this.getDeviceAcceleration(e.accelerationIncludingGravity); - n && - ((this._accX = n.x * this.orientationImplementationFix), - (this._accY = n.y * this.orientationImplementationFix), - (this._accZ = n.z), - this.safeAddSensorSample( - { - x: this._accX, - y: this._accY, - z: this._accX, - timestamp: t._POSignalsUtils.Util.now(), - }, - this._accelerometerList, - )); - var i = this.getDeviceAcceleration(e.acceleration); - i && - ((this._lienarAccX = i.x * this.orientationImplementationFix), - (this._lienarAccY = i.y * this.orientationImplementationFix), - (this._lienarAccZ = i.z), - this.safeAddSensorSample( - { - x: this._lienarAccX, - y: this._lienarAccY, - z: this._lienarAccZ, - timestamp: t._POSignalsUtils.Util.now(), - }, - this._linearAccelerometerList, - )), - e.rotationRate && - null != e.rotationRate.alpha && - null != e.rotationRate.beta && - null != e.rotationRate.gamma && - ((this._rotX = e.rotationRate.alpha), - (this._rotY = e.rotationRate.beta), - (this._rotZ = e.rotationRate.gamma), - this.safeAddSensorSample( - { - x: this._rotX, - y: this._rotY, - z: this._rotZ, - timestamp: t._POSignalsUtils.Util.now(), - }, - this._gyroscopeList, - )); - } catch (e) { - t._POSignalsUtils.Logger.warn('error in accelerometer handler', e); + if (navigator[i(1188)][0].substr(0, 2) !== navigator[i(1244)][i(769)](0, 2)) + return !0; + } catch { + return !0; } - }), - (e.prototype.orientationUpdate = function (e) { + return !1; + } + [r(466)]() { + const i = r; + return ( + window[i(672)].width < window[i(672)][i(1248)] || + window.screen.height < window[i(672)][i(1052)] + ); + } + getHasLiedOs() { + const i = r, + t = navigator[i(1250)][i(1097)](); + let e = navigator[i(1027)]; + const l = navigator[i(857)][i(1097)](); + let o; + if ( + (t.indexOf(i(1245)) >= 0 + ? (o = i(402)) + : t[i(944)](i(1277)) >= 0 + ? (o = 'Windows') + : t[i(944)](i(731)) >= 0 + ? (o = 'Android') + : t[i(944)](i(910)) >= 0 || t[i(944)](i(958)) >= 0 + ? (o = i(807)) + : t[i(944)]('iphone') >= 0 || t[i(944)]('ipad') >= 0 + ? (o = 'iOS') + : t.indexOf(i(567)) >= 0 + ? (o = i(666)) + : (o = i(994)), + ('ontouchstart' in window || + navigator[i(1251)] > 0 || + navigator.msMaxTouchPoints > 0) && + o !== i(402) && + o !== 'Android' && + o !== 'iOS' && + o !== i(994)) + ) + return !0; + if (typeof e !== i(834)) { + if (((e = e[i(1097)]()), e[i(944)](i(1277)) >= 0 && o !== i(1073) && o !== i(402))) + return !0; + if (e.indexOf('linux') >= 0 && o !== 'Linux' && o !== i(476)) return !0; + if (e[i(944)](i(567)) >= 0 && o !== i(666) && o !== 'iOS') return !0; + if ( + (e.indexOf(i(1277)) === -1 && + e[i(944)]('linux') === -1 && + e[i(944)](i(567)) === -1) != + (o === i(994)) + ) + return !0; + } + return (l[i(944)](i(1277)) >= 0 && o !== i(1073) && o !== i(402)) || + ((l[i(944)](i(910)) >= 0 || l[i(944)](i(731)) >= 0 || l[i(944)]('pike') >= 0) && + o !== i(807) && + o !== i(476)) || + ((l.indexOf('mac') >= 0 || + l[i(944)](i(799)) >= 0 || + l[i(944)](i(1189)) >= 0 || + l[i(944)](i(816)) >= 0) && + o !== i(666) && + o !== 'iOS') || + (l.indexOf(i(1277)) < 0 && + l.indexOf('linux') < 0 && + l[i(944)]('mac') < 0 && + l[i(944)](i(816)) < 0 && + l.indexOf(i(799)) < 0) !== + (o === 'Other') + ? !0 + : typeof navigator[i(1339)] === i(834) && o !== 'Windows' && o !== i(402); + } + [r(1308)]() { + const i = r, + t = navigator.userAgent[i(1097)](), + e = navigator[i(545)]; + let l; + if ( + (t.indexOf(i(396)) >= 0 + ? (l = 'Firefox') + : t[i(944)](i(943)) >= 0 || t[i(944)]('opr') >= 0 + ? (l = i(1195)) + : t[i(944)](i(539)) >= 0 + ? (l = i(1010)) + : t[i(944)]('safari') >= 0 + ? (l = i(978)) + : t[i(944)](i(867)) >= 0 + ? (l = 'Internet Explorer') + : (l = 'Other'), + (l === 'Chrome' || l === 'Safari' || l === 'Opera') && e !== i(985)) + ) + return !0; + const o = eval[i(1340)]().length; + if (o === 37 && l !== 'Safari' && l !== i(1177) && l !== 'Other') return !0; + if (o === 39 && l !== i(522) && l !== i(994)) return !0; + if (o === 33 && l !== 'Chrome' && l !== 'Opera' && l !== i(994)) return !0; + let x; + try { + throw 'a'; + } catch (v) { try { - if ( - !this.delegate.collectBehavioralData() || - this.puaseSensorsCollectionIfNoActivity(t._POSignalsUtils.Util.now()) - ) - return; - null != e.alpha && - null != e.beta && - null != e.gamma && - this.safeAddSensorSample( - { x: e.alpha, y: e.beta, z: e.gamma, timestamp: t._POSignalsUtils.Util.now() }, - this._rotationList, - ); - } catch (e) { - t._POSignalsUtils.Logger.warn('error in orientation handler', e); + v[i(1275)](), (x = !0); + } catch { + x = !1; } - }), - (e.prototype.safeAddSensorSample = function (t, e) { - this.maxSensorSamples > e.length && e.push(t); - }), - e - ); - })(); - t.Sensors = e; - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function (t) { - var e = (function () { - function e() { - this._pointerParams = new t.PointerParams(); + } + return x && l !== i(1177) && l !== 'Other'; } - return ( - Object.defineProperty(e, 'instance', { - get: function () { - return e._instance || (e._instance = new e()), e._instance; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'pointerParams', { - get: function () { - return this._pointerParams; - }, - enumerable: !1, - configurable: !0, - }), - e - ); - })(); - t.PointerConfig = e; - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function (t) { - var e; - !(function (t) { - (t[(t.Up = 1)] = 'Up'), - (t[(t.Down = 2)] = 'Down'), - (t[(t.Left = 3)] = 'Left'), - (t[(t.Right = 4)] = 'Right'); - })(e || (e = {})); - var n = (function () { - function n(e, n) { - (this.BEHAVIORAL_TYPE = 'gestures'), - (this._isStarted = !1), - (this._onGesture = new t.EventDispatcher()), - (this.touchSnapshotsMap = new Map()), - (this.snapshotStartTime = new Map()), - (this.delegate = e), - (this.sensors = n), - (this.touchStartHandler = this.touchStart.bind(this)), - (this.touchMoveHandler = this.touchMove.bind(this)), - (this.touchEndHandler = this.touchEnd.bind(this)), - (this.touchCancelHandler = this.touchCancel.bind(this)); + } + n[r(1352)] = a; + })((p = c[h(1216)] || (c[h(1216)] = {}))); + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + const h = _0x7ea2; + let p; + (function (n) { + const r = _0x4e19; + class a { + constructor(i) { + const t = _0x4e19; + this[t(802)] = i; } - return ( - Object.defineProperty(n.prototype, 'onGesture', { - get: function () { - return this._onGesture.asEvent(); - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(n.prototype, 'isStarted', { - get: function () { - return this._isStarted; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(n.prototype, 'SCROLL_MIN_DURATION', { - get: function () { - return 500; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(n.prototype, 'SWIPE_MAX_ANGLE', { - get: function () { - return 45; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(n.prototype, 'TAP_MOVEMENT_TRESHOLD', { - get: function () { - return 10; - }, - enumerable: !1, - configurable: !0, - }), - (n.prototype.countEvents = function (t) { - for (var e = { epochTs: Date.now() }, n = 0, i = t; n < i.length; n++) { - var r = i[n]; - e[r.type] = (e[r.type] || 0) + 1; - } - return e; - }), - (n.prototype.clearTouchSnapshots = function (t) { - this.touchSnapshotsMap.delete(t), this.snapshotStartTime.delete(t); - }), - (n.prototype.getTouchSnapshots = function (t) { - var e; + [r(416)]() { + return __awaiter(this, void 0, void 0, function* () { + const i = _0x4e19, + t = yield this.headlessResults(window); + return ( + yield this[i(673)](t, i(1001), () => + __awaiter(this, void 0, void 0, function* () { + const e = i; + if (!Object[e(570)]) return; + const l = c._POSignalsUtils[e(1159)][e(814)](e(1085)); + if (!l) return; + if ( + ((l[e(712)] = e(612)), + document[e(903)][e(1149)](l), + Object[e(570)](HTMLIFrameElement[e(620)])[e(859)][e(1281)].toString() !== + e(803) || l[e(859)] === window) + ) + return !0; + const x = yield this[e(1061)](l.contentWindow); + return l[e(488)](), x; + }), + ), + t + ); + }); + } + [r(1061)](i) { + return __awaiter(this, void 0, void 0, function* () { + const t = _0x4e19, + e = new Map(), + l = []; return ( - this.touchSnapshotsMap.has(t) - ? (e = this.touchSnapshotsMap.get(t)) - : ((e = []), this.touchSnapshotsMap.set(t, e)), + l.push( + this[t(673)](e, t(993), () => + __awaiter(this, void 0, void 0, function* () { + const o = t; + return /HeadlessChrome/[o(673)](i[o(1196)].userAgent); + }), + ), + ), + l.push( + this.test(e, 'navigator.webdriver_present', () => + __awaiter(this, void 0, void 0, function* () { + const o = t; + return i[o(1196)][o(601)]; + }), + ), + ), + l[t(1002)]( + this[t(673)](e, t(1274), () => + __awaiter(this, void 0, void 0, function* () { + const o = t; + return /Chrome/[o(673)](i.navigator[o(1250)]) && !i[o(539)]; + }), + ), + ), + l[t(1002)]( + this.test(e, t(893), () => + __awaiter(this, void 0, void 0, function* () { + const o = t; + if (i.navigator[o(1005)] && i[o(1187)]) { + const x = yield i[o(1196)][o(1005)].query({ name: o(636) }); + return i[o(1187)][o(695)] === 'denied' && x[o(652)] === o(791); + } + }), + ), + ), + l[t(1002)]( + this[t(673)](e, t(1326), () => + __awaiter(this, void 0, void 0, function* () { + const o = t, + x = i[o(1196)].permissions; + if (x) + return x.query[o(1340)]() !== o(1208) || + x.query[o(1340)][o(1340)]() !== 'function toString() { [native code] }' || + (x[o(838)].toString[o(618)]('[[Handler]]') && + x[o(838)].toString[o(618)](o(598)) && + x[o(838)][o(1340)].hasOwnProperty(o(774))) + ? !0 + : x[o(618)](o(838)); + }), + ), + ), + l[t(1002)]( + this[t(673)](e, t(1247), () => + __awaiter(this, void 0, void 0, function* () { + return navigator[t(1339)].length === 0; + }), + ), + ), + l[t(1002)]( + this[t(673)](e, t(923), () => + __awaiter(this, void 0, void 0, function* () { + return navigator.languages === ''; + }), + ), + ), + l.push( + this[t(673)](e, t(988), () => + __awaiter(this, void 0, void 0, function* () { + const o = t; + let x = PluginArray.prototype === navigator[o(1339)][o(1136)]; + return ( + navigator.plugins.length > 0 && + (x = x && Plugin[o(620)] === navigator[o(1339)][0][o(1136)]), + x + ); + }), + ), + ), + l.push( + this[t(673)](e, t(1009), () => + __awaiter(this, void 0, void 0, function* () { + const o = t; + let x = MimeTypeArray[o(620)] === navigator[o(1119)].__proto__; + return ( + navigator[o(1119)].length > 0 && + (x = x && MimeType[o(620)] === navigator.mimeTypes[0][o(1136)]), + x + ); + }), + ), + ), + yield Promise[t(881)](l), e ); - }), - (n.prototype.isEmpty = function () { - return 0 === this.touchSnapshotsMap.size; - }), - (n.prototype.start = function () { - this._isStarted || - (this.delegate.addEventListener(document, 'touchstart', this.touchStartHandler), - this.delegate.addEventListener(document, 'touchmove', this.touchMoveHandler), - this.delegate.addEventListener(document, 'touchend', this.touchEndHandler), - this.delegate.addEventListener(document, 'touchcancel', this.touchCancelHandler), - (this._isStarted = !0)); - }), - (n.prototype.stop = function () { - this._isStarted && - (document.removeEventListener('touchstart', this.touchStartHandler), - document.removeEventListener('touchmove', this.touchMoveHandler), - document.removeEventListener('touchend', this.touchEndHandler), - document.removeEventListener('touchcancel', this.touchCancelHandler), - (this._isStarted = !1)); - }), - (n.prototype.touchStart = function (e) { + }); + } + test(i, t, e) { + return __awaiter(this, void 0, void 0, function* () { + const l = _0x4e19; try { - if (!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)) return; - if (t.PointerConfig.instance.pointerParams.eventsToIgnore.has(e.type)) return; - t._POSignalsUtils.Logger.debug('touchstart(' + e.changedTouches.length + ')', e), - e.changedTouches.length > 0 && this.pushSnapshot(e); - } catch (e) { - t._POSignalsUtils.Logger.warn('error in touchStart handler', e); + if (!this.propertyBlackList[l(1263)](t)) { + const o = yield c[l(730)].Util[l(983)](100, e()); + o != null && (i[t] = o); + } + } catch (o) { + c[l(730)].Logger.warn(t + ' headless test was failed', o); } - }), - (n.prototype.touchMove = function (e) { + }); + } + } + n.DetectHeadless = a; + })((p = c[h(1216)] || (c._POSignalsMetadata = {}))); + })(_POSignalsEntities || (_POSignalsEntities = {})); + function _0x4e19(c, h) { + const p = _0x455d(); + return ( + (_0x4e19 = function (n, r) { + return (n = n - 387), p[n]; + }), + _0x4e19(c, h) + ); + } + var _POSignalsEntities; + (function (c) { + const h = _0x7ea2; + let p; + (function (n) { + const r = _0x4e19; + function a() { + return new Promise((s, i) => { + const t = _0x4e19; + let e = t(1105), + l = !1; + function o(M) { + l || ((l = !0), s({ isPrivate: M, browserName: e })); + } + function x() { + const M = t, + K = navigator.userAgent; + return K.match(/Chrome/) + ? navigator[M(1310)] !== void 0 + ? M(1174) + : K[M(1118)](/Edg/) + ? 'Edge' + : K[M(1118)](/OPR/) + ? M(1195) + : M(1010) + : M(1218); + } + function v(M) { try { - if (!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)) return; - if (t.PointerConfig.instance.pointerParams.eventsToIgnore.has(e.type)) return; - t._POSignalsUtils.Logger.debug('touchmove(' + e.changedTouches.length + ')', e), - e.changedTouches.length > 0 && this.pushSnapshot(e); - } catch (e) { - t._POSignalsUtils.Logger.warn('error in touchMove handler', e); + return M === eval.toString().length; + } catch { + return !1; } - }), - (n.prototype.touchEnd = function (e) { + } + function y() { + const M = t; + let K = 0; + const Z = parseInt('-1'); try { - if (!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)) - return void this._onGesture.dispatch(this, null); - if (t.PointerConfig.instance.pointerParams.eventsToIgnore.has(e.type)) return; - t._POSignalsUtils.Logger.debug('touchend(' + e.changedTouches.length + ')', e), - this.gestureEnd(e); - } catch (e) { - t._POSignalsUtils.Logger.warn('error in touchEnd handler', e); + Z[M(421)](Z); + } catch (le) { + K = le[M(728)][M(684)]; } - }), - (n.prototype.touchCancel = function (e) { + return K; + } + function L() { + return y() === 44; + } + function g() { + return y() === 51; + } + function E() { + return y() === 25; + } + function f() { + return navigator[t(1087)] !== void 0 && v(39); + } + function m() { + var M; + return __awaiter(this, void 0, void 0, function* () { + const K = _0x4e19; + try { + const Z = navigator.storage; + typeof (Z == null ? void 0 : Z[K(486)]) == 'function' && (yield Z[K(486)]()), o(!1); + } catch (Z) { + const le = Z instanceof Error && (M = Z[K(728)]) !== null && M !== void 0 ? M : Z; + o(typeof le == 'string' && le.includes(K(883))); + } + }); + } + function w() { + const M = t, + K = String(Math[M(952)]()); try { - if (!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)) - return void this._onGesture.dispatch(this, null); - if (t.PointerConfig.instance.pointerParams.eventsToIgnore.has(e.type)) return; - t._POSignalsUtils.Logger.debug('touchcancel(' + e.changedTouches.length + ')', e), - this.gestureEnd(e); - } catch (e) { - t._POSignalsUtils.Logger.warn('error in touchCancel handler', e); + const Z = indexedDB[M(1123)](K, 1); + (Z[M(1155)] = (le) => { + const q = M, + be = le[q(646)].result; + try { + be[q(519)]('t', { autoIncrement: !0 })[q(1231)](new Blob()), o(!1); + } catch (we) { + const He = we[q(728)] || ''; + o(He[q(806)]('are not yet supported')); + } finally { + be[q(1338)](), indexedDB[q(1353)](K); + } + }), + (Z[M(1299)] = () => o(!1)); + } catch { + o(!1); } - }), - (n.prototype.gestureEnd = function (e) { - e.changedTouches.length > 0 && this.pushSnapshot(e); - for (var n = 0; n < e.changedTouches.length; n++) { - var i = e.changedTouches.item(n), - r = this.getTouchSnapshots(i.identifier); - r.length > 0 && - (this.isTap(r) - ? this.dispatchGesture(t.GestureType.Tap, i.identifier) - : this.dispatchGesture(this.calcGestureType(r), i.identifier)); + } + function S() { + const M = t; + try { + window[M(1084)](null, null, null, null); + } catch { + return o(!0); } - }), - (n.prototype.calcGestureType = function (n) { - var i, - r = this.getDirection(n); - if (this.isFling(n)) - switch (r) { - case e.Up: - i = t.GestureType.FlingUp; - break; - case e.Right: - i = t.GestureType.FlingRight; - break; - case e.Down: - i = t.GestureType.FlingDown; - break; - case e.Left: - i = t.GestureType.FlingLeft; - } - else if (this.isScroll(n)) - switch (r) { - case e.Up: - i = t.GestureType.ScrollUp; - break; - case e.Right: - i = t.GestureType.ScrollRight; - break; - case e.Down: - i = t.GestureType.ScrollDown; - break; - case e.Left: - i = t.GestureType.ScrollLeft; - } - return i; - }), - (n.prototype.pushSnapshot = function (e) { - if (e.changedTouches && e.changedTouches.length > 0) - for ( - var n, - i = function () { - var i = e.changedTouches.item(o); - (n = i.radiusX && i.radiusY ? (i.radiusX + i.radiusY) / 2 : null), - r.snapshotStartTime.has(i.identifier) || - r.snapshotStartTime.set(i.identifier, Date.now()); - var a = r.getTouchSnapshots(i.identifier); - a.length < t.PointerConfig.instance.pointerParams.maxSnapshotsCount && - a.push({ - type: e.type, - eventTs: e.timeStamp, - epochTs: Date.now(), - relativeX: i.screenX, - relativeY: i.screenY, - x: i.clientX, - y: i.clientY, - pressure: i.force, - size: n, - xaccelerometer: r.sensors.accX, - yaccelerometer: r.sensors.accY, - zaccelerometer: r.sensors.accZ, - xlinearaccelerometer: r.sensors.lienarAccX, - ylinearaccelerometer: r.sensors.lienarAccY, - zlinearaccelerometer: r.sensors.lienarAccZ, - xrotation: r.sensors.rotX, - yrotation: r.sensors.rotY, - zrotation: r.sensors.rotZ, - radiusX: i.radiusX, - radiusY: i.radiusY, - rotationAngle: i.rotationAngle, - pageX: i.pageX, - pageY: i.pageY, - getX: function () { - return i.screenX; - }, - getY: function () { - return i.screenY; - }, - }); - }, - r = this, - o = 0; - o < e.changedTouches.length; - o++ - ) - i(); - }), - (n.prototype.dispatchGesture = function (e, n) { - var i = this.touchSnapshotsMap.get(n) || [], - r = i.filter(function (t) { - return 'touchmove' === t.type; - }); - this._onGesture.dispatch(this, { - epochTs: this.snapshotStartTime.get(n) || 0, - counter: this.delegate.gesturesCounter, - type: e, - events: i, - eventCounters: this.countEvents(i), - duration: this.delegate.getInteractionDuration(i), - additionalData: this.delegate.additionalData, - uiControl: void 0, - timeProximity: t._POSignalsUtils.Util.calculateMeanTimeDeltasBetweenEvents(r), - meanEuclidean: t._POSignalsUtils.Util.calculateMeanDistanceBetweenPoints(r), - reduction: {}, - quality: '', - }), - this.clearTouchSnapshots(n); - }), - (n.prototype.isTap = function (t) { - var e = Math.abs(t[0].x - t[1].x), - n = Math.abs(t[0].y - t[1].y); - return ( - 2 == t.length && e < this.TAP_MOVEMENT_TRESHOLD && n < this.TAP_MOVEMENT_TRESHOLD - ); - }), - (n.prototype.isFling = function (t) { - return ( - t.length > 1 && t[t.length - 1].eventTs - t[0].eventTs < this.SCROLL_MIN_DURATION + try { + localStorage.setItem(M(673), '1'), localStorage[M(793)](M(673)); + } catch { + return o(!0); + } + o(!1); + } + function U() { + return __awaiter(this, void 0, void 0, function* () { + const M = _0x4e19, + K = navigator[M(1047)]; + typeof (K == null ? void 0 : K[M(486)]) == 'function' + ? yield m() + : navigator[M(1251)] !== void 0 + ? w() + : S(); + }); + } + function T() { + const M = t; + var K; + const Z = + (K = performance == null ? void 0 : performance[M(1104)]) === null || K === void 0 + ? void 0 + : K[M(1261)]; + return Z != null ? Z : 1073741824; + } + function O() { + const M = t; + navigator[M(856)][M(961)]( + function (K, Z) { + const le = M, + q = Math[le(553)](Z / (1024 * 1024)), + be = Math[le(553)](T() / (1024 * 1024)) * 2; + o(q < be); + }, + function (K) { + const Z = M; + i(new Error(Z(414) + K[Z(728)])); + }, ); - }), - (n.prototype.isScroll = function (t) { - return ( - t.length > 1 && t[t.length - 1].eventTs - t[0].eventTs > this.SCROLL_MIN_DURATION + } + function C() { + const M = t, + K = window[M(1150)]; + K( + 0, + 1, + () => o(!1), + () => o(!0), ); - }), - (n.prototype.getDirection = function (t) { - var n = this.calcAngle(t[0], t[t.length - 1]); - return n > 90 - this.SWIPE_MAX_ANGLE && n <= 90 + this.SWIPE_MAX_ANGLE - ? e.Up - : n > 180 - this.SWIPE_MAX_ANGLE && n <= 180 + this.SWIPE_MAX_ANGLE - ? e.Right - : n > 270 - this.SWIPE_MAX_ANGLE && n <= 270 + this.SWIPE_MAX_ANGLE - ? e.Down - : e.Left; - }), - (n.prototype.calcAngle = function (t, e) { - return (180 * Math.atan2(e.y - t.y, e.x - t.x)) / Math.PI + 180; - }), - n - ); - })(); - t.GestureEvents = n; - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function (t) { - var e = (function () { - function e(t) { - (this.key = t), (this.cache = this.loadFromStorage()); - } - return ( - (e.prototype.loadFromStorage = function () { - var t = e.sessionStorage.getItem(this.key); - return t || (t = JSON.stringify([])), JSON.parse(t); - }), - (e.prototype.get = function () { - return this.cache; - }), - Object.defineProperty(e.prototype, 'length', { - get: function () { - return this.cache.length; - }, - enumerable: !1, - configurable: !0, - }), - (e.prototype.push = function (t) { - var n = this.cache.push(t); - return e.sessionStorage.setItem(this.key, JSON.stringify(this.cache)), n; - }), - (e.prototype.set = function (t) { - (this.cache = t), e.sessionStorage.setItem(this.key, JSON.stringify(this.cache)); - }), - (e.prototype.remove = function (t) { - this.cache.splice(t, 1), e.sessionStorage.setItem(this.key, JSON.stringify(this.cache)); - }), - (e.prototype.concat = function (t) { - return this.cache.concat(t); - }), - (e.prototype.clear = function () { - (this.cache = []), e.sessionStorage.removeItem(this.key); - }), - (e.sessionStorage = t._POSignalsStorage.SessionStorage.instance.sessionStorage), - e - ); - })(); - t.StorageArray = e; - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function (t) { - var e = (function () { - function e() { - (this.MAX_TAGS = 10), - (this._tags = new t.StorageArray(t._POSignalsUtils.Constants.CAPTURED_TAGS)); - } - return ( - Object.defineProperty(e, 'instance', { - get: function () { - return e._instance || (e._instance = new e()), e._instance; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'tags', { - get: function () { - return this._tags.get(); - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'disableTags', { - set: function (t) { - this._disableTags = t; - }, - enumerable: !1, - configurable: !0, - }), - (e.prototype.setTag = function (e, n) { - var i; - if (!this._disableTags) - if (t.PointerConfig.instance.pointerParams.enabled) - if (e) { - var r = t.PointerConfig.instance.pointerParams.tagsBlacklistRegex; - if ( - r && - (e.match(r) || - ('string' == typeof n && (null === n || void 0 === n ? void 0 : n.match(r)))) - ) - t._POSignalsUtils.Logger.info('Tag name or value is blacklisted'); - else if (!(this._tags.length >= this.MAX_TAGS)) { - 'number' != typeof n - ? this._tags.push({ - name: e.trim(), - value: - (null === (i = null === n || void 0 === n ? void 0 : n.trim) || - void 0 === i - ? void 0 - : i.call(n)) || void 0, - epochTs: Date.now(), - timestamp: Date.now(), - }) - : this._tags.push({ - name: e.trim(), - value: n, - epochTs: Date.now(), - timestamp: Date.now(), - }); - var o = n ? e + ':' + n : e; - t._POSignalsUtils.Logger.info('Add tag: ' + o); - } - } else t._POSignalsUtils.Logger.info("Can't add tag, missing name"); - else t._POSignalsUtils.Logger.info("Can't add tag, PingOneSignals SDK is disabled"); - }), - (e.prototype.reset = function () { - this._tags.clear(); - }), - e - ); - })(); - t.Tags = e; - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function (t) { - var e = (function () { - function e(t) { - this.client = t; + } + function k() { + const M = t; + self.Promise && self[M(399)].allSettled ? O() : C(); + } + function R() { + return __awaiter(this, void 0, void 0, function* () { + const M = _0x4e19, + K = navigator[M(1047)]; + if (typeof (K == null ? void 0 : K.getDirectory) == 'function') + try { + yield K[M(486)](), o(!1); + } catch (Z) { + const le = Z instanceof Error ? Z[M(728)] : String(Z); + o(typeof le === M(568) && le.includes(M(471))); + return; + } + else o(navigator[M(771)] === void 0); + }); + } + function H() { + o(window[t(758)] === void 0); + } + function ee() { + return __awaiter(this, void 0, void 0, function* () { + const M = _0x4e19; + L() + ? ((e = M(978)), yield U()) + : g() + ? ((e = x()), k()) + : E() + ? ((e = M(1177)), yield R()) + : f() + ? ((e = M(522)), H()) + : i(new Error(M(480))); + }); + } + ee()[t(765)](i); + }); + } + n[r(913)] = a; + })((p = c[h(1216)] || (c[h(1216)] = {}))); + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + const h = _0x7ea2; + let p; + (function (n) { + const r = _0x4e19; + class a { + constructor(i) { + const t = _0x4e19; + (this[t(802)] = i), (this[t(563)] = {}); } - return ( - (e.prototype.calculateStrategyResult = function (e, n) { - return { - shouldCollect: - this.client.getBufferSize() < t.PointerConfig.instance.pointerParams.bufferSize, - }; - }), - e - ); - })(); - t.FirstInteractionsStrategy = e; - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function (t) { - var e; - !(function (t) { - (t[(t.RICH = 3)] = 'RICH'), - (t[(t.CLICK = 2)] = 'CLICK'), - (t[(t.MOVE = 1)] = 'MOVE'), - (t[(t.POOR = 0)] = 'POOR'); - })(e || (e = {})); - var n = (function () { - function n(t) { - (this.client = t), - (this.MAX_INTERACTIONS_PER_TYPE = 7), - (this.RICH_MOUSE_MOVES_AMOUNT = 8), - (this.MIN_KEYBOARD_EVENTS = 6), - (this.MIN_TOUCH_EVENTS = 20); + documentLie(i, t) { + const e = _0x4e19; + if (t[e(1093)]) + for (const l of t.lieTypes) + !this[e(563)][l] && (this[e(563)][l] = []), this.result[l][e(1002)](i); } - return ( - (n.prototype.isRichMouseInteraction = function (t) { - return t.mousemove >= this.RICH_MOUSE_MOVES_AMOUNT && this.isClickInteraction(t); - }), - (n.prototype.isClickInteraction = function (t) { - return t.mousedown > 0 && t.mouseup > 0; - }), - (n.prototype.isMoveInteraction = function (t) { - return t.mousemove >= this.RICH_MOUSE_MOVES_AMOUNT; - }), - (n.prototype.classifyMouseInteraction = function (n) { - var i = t._POSignalsUtils.Util.typesCounter(n.events); - return this.isRichMouseInteraction(i) - ? e.RICH - : this.isClickInteraction(i) - ? e.CLICK - : this.isMoveInteraction(i) - ? e.MOVE - : e.POOR; - }), - (n.prototype.classifyKeyboardInteraction = function (t) { - return t.events.length >= this.MIN_KEYBOARD_EVENTS ? e.RICH : e.POOR; - }), - (n.prototype.classifyTouchInteraction = function (t) { - return t.events.length >= this.MIN_TOUCH_EVENTS ? e.RICH : e.POOR; - }), - (n.prototype.handleMouseInteraction = function (t, n) { - var i = Date.now(), - r = this.classifyMouseInteraction(t), - o = this.getEnumKeyByValue(r); - if (n.mouse.interactions.length < this.MAX_INTERACTIONS_PER_TYPE) - return { shouldCollect: !0, quality: o }; - if (r === e.RICH) { - var a = this.findOldestInteractionWithLowestQuality(n.mouse.interactions); - if (-1 !== a) - return { shouldCollect: !0, remove: { type: 'mouse', index: a }, quality: o }; - } - var s = this.splitInteractionsByTime(n.mouse.interactions, i, 18e4), - u = s[0], - c = s[1]; - return u.length < 2 - ? this.handleOlderInteractions(c, o) - : this.handleRecentInteractions(u, c, r, o); - }), - (n.prototype.splitInteractionsByTime = function (t, e, n) { - return t.reduce( - function (t, i) { - return i.epochTs >= e - n ? t[0].push(i) : t[1].push(i), t; - }, - [[], []], + [r(622)](i, t, e = null) { + const l = r; + if (typeof i != 'function') return { lied: !1, lieTypes: [] }; + const o = i[l(1154)].replace(/get\s/, ''), + x = { + undefined_properties: () => (e ? a[l(718)](e, o) : !1), + to_string: () => a[l(484)](i, o, this[l(675)]), + prototype_in_function: () => a.getPrototypeInFunctionLie(i), + own_property: () => a.getOwnPropertyLie(i), + object_to_string_error: () => a.getNewObjectToStringTypeErrorLie(i), + }, + v = Object[l(1222)](x)[l(1153)]( + (y) => !this.propertyBlackList[l(1263)](l(1270) + y) && !!x[y](), ); - }), - (n.prototype.handleOlderInteractions = function (t, e) { - var n = this.findOldestInteractionWithLowestQuality(t); - return -1 !== n - ? { shouldCollect: !0, remove: { type: 'mouse', index: n }, quality: e } - : { shouldCollect: !1, quality: e }; - }), - (n.prototype.handleRecentInteractions = function (t, n, i, r) { - var o = this.findOldestInteractionWithLowestQuality(t, i); - if (-1 !== o) { - var a = t[o], - s = this.client.getBehavioralData().mouse.interactions.indexOf(a), - u = this.findOldestInteractionWithLowestQuality( - n, - e[this.client.getBehavioralData().mouse.interactions[s].quality], - ); - return -1 !== u - ? { shouldCollect: !0, remove: { type: 'mouse', index: u }, quality: r } - : { shouldCollect: !0, remove: { type: 'mouse', index: s }, quality: r }; - } - return { shouldCollect: !1, quality: r }; - }), - (n.prototype.handleKeyboardInteraction = function (t, n) { - var i = Date.now(), - r = this.classifyKeyboardInteraction(t), - o = this.getEnumKeyByValue(r); - if (n.keyboard.interactions.length < this.MAX_INTERACTIONS_PER_TYPE) - return { shouldCollect: !0, quality: o }; - if (r === e.RICH) { - var a = this.findOldestInteractionWithLowestQuality(n.keyboard.interactions); - if (-1 !== a) - return { shouldCollect: !0, remove: { type: 'keyboard', index: a }, quality: o }; + return { lied: v.length > 0, lieTypes: v }; + } + [r(1241)]() { + return __awaiter(this, void 0, void 0, function* () { + const i = _0x4e19; + if (this[i(802)][i(1263)](i(609))) return this[i(563)]; + if (!this[i(802)][i(1263)]('LIES_IFRAME')) { + const t = c[i(730)][i(1159)][i(814)](i(1085)); + t && (document[i(903)][i(1149)](t), (this.iframeWindow = t)); } - var s = this.splitInteractionsByTime(n.keyboard.interactions, i, 18e4), - u = s[0], - c = s[1]; - return u.length < 2 - ? this.handleOlderInteractions(c, o) - : this.handleRecentInteractions(u, c, r, o); - }), - (n.prototype.handleTouchInteraction = function (t, n) { - var i = Date.now(), - r = this.classifyTouchInteraction(t), - o = this.getEnumKeyByValue(r); - if (n.touch.interactions.length < this.MAX_INTERACTIONS_PER_TYPE) - return { shouldCollect: !0, quality: o }; - if (r === e.RICH) { - var a = this.findOldestInteractionWithLowestQuality(n.touch.interactions); - if (-1 !== a) - return { shouldCollect: !0, remove: { type: 'touch', index: a }, quality: o }; + return ( + yield Promise[i(881)]([ + this.searchLies(() => AnalyserNode, { target: [i(1023)] }), + this.searchLies(() => AudioBuffer, { target: ['copyFromChannel'] }), + this[i(1062)](() => BiquadFilterNode, { target: [i(630)] }), + this[i(1062)](() => CanvasRenderingContext2D, { target: [i(1081)] }), + this[i(1062)](() => DOMRect, { target: [i(541)] }), + this.searchLies(() => DOMRectReadOnly, { target: [i(528)] }), + this[i(1062)](() => Element, { target: ['getClientRects'] }), + this[i(1062)](() => HTMLCanvasElement, { target: [i(541)] }), + this[i(1062)](() => Math, { target: [i(577)] }), + this[i(1062)](() => MediaDevices, { target: ['enumerateDevices'] }), + this.searchLies(() => Navigator, { target: ['plugins'] }), + this[i(1062)](() => OffscreenCanvasRenderingContext2D, { target: [i(1081)] }), + this[i(1062)](() => SVGRect, { target: ['x'] }), + ]), + this[i(675)][i(488)](), + this[i(563)] + ); + }); + } + [r(1062)](i, { target: t = [], ignore: e = [] } = {}) { + return __awaiter(this, void 0, void 0, function* () { + const l = _0x4e19; + function o(y) { + return typeof y != _0x4e19(834) && !!y; } - var s = this.splitInteractionsByTime(n.touch.interactions, i, 18e4), - u = s[0], - c = s[1]; - return u.length < 2 - ? this.handleOlderInteractions(c, o) - : this.handleRecentInteractions(u, c, r, o); - }), - (n.prototype.calculateStrategyResult = function (t, e) { - var n = this.client.getBehavioralData(); - switch (e) { - case 'mouse': - return this.handleMouseInteraction(t, n); - case 'keyboard': - return this.handleKeyboardInteraction(t, n); - case 'touch': - return this.handleTouchInteraction(t, n); - default: - throw new Error('Unknown interaction type: ' + e); + let x; + try { + if (((x = i()), !o(x))) return; + } catch { + return; } - }), - (n.prototype.getEnumKeyByValue = function (t) { - return Object.keys(e).find(function (n) { - return e[n] === t; + const v = x[l(620)] ? x[l(620)] : x; + Object[l(825)](v).forEach((y) => { + const L = l; + if ( + y == L(390) || + (t[L(684)] && !new Set(t).has(y)) || + (e[L(684)] && new Set(e).has(y)) + ) + return; + const E = /\s(.+)\]/, + f = (x[L(1154)] ? x.name : E[L(673)](x) ? E.exec(x)[1] : void 0) + '.' + y; + try { + const m = x[L(620)] ? x[L(620)] : x; + try { + if (typeof m[y] == L(817)) { + const T = this[L(622)](m[y], m); + this[L(1317)](f, T); + return; + } + } catch {} + const w = Object[L(969)](m, y).get, + S = this[L(622)](w, m, x); + this[L(1317)](f, S); + } catch (m) { + c[L(730)].Logger.warn('failed ' + y + ' test execution', m); + } }); - }), - (n.prototype.findOldestInteractionWithLowestQuality = function (t, n) { - for ( - var i = void 0 !== n && null !== n ? n : e.RICH, - r = -1, - o = Number.MAX_SAFE_INTEGER, - a = 0; - a < t.length; - a++ - ) { - var s = e[t[a].quality]; - (s < i || (s === i && t[a].epochTs < o)) && ((i = s), (o = t[a].epochTs), (r = a)); - } - return r; - }), - n - ); - })(); - t.PriorityStrategy = n; - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function (t) { - var e; - !(function (t) { - (t[(t.FIRST_INTERACTIONS = 0)] = 'FIRST_INTERACTIONS'), - (t[(t.PRIORITY_INTERACTIONS = 1)] = 'PRIORITY_INTERACTIONS'); - })((e = t.BufferingStrategyType || (t.BufferingStrategyType = {}))); - var n = (function () { - function n() {} - return ( - (n.createBufferingStrategy = function (n, i) { - switch (n) { - case e.FIRST_INTERACTIONS: - return new t.FirstInteractionsStrategy(i); - case e.PRIORITY_INTERACTIONS: - return new t.PriorityStrategy(i); - } - }), - n - ); - })(); - t.StrategyFactory = n; - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function (t) { - var e = (function () { - function e(e) { - (this.sessionData = e), - (this.instanceUUID = t._POSignalsUtils.Util.newGuid()), - (this._isBehavioralDataPaused = !1), - (this.started = !1), - (this.initQueue = new t.PromiseQueue(1)); + }); } - return ( - (e.instance = function () { - if (!this._instance) { - var e = t._POSignalsStorage.SessionStorage.instance; - if (!document.body) - throw ( - (t._POSignalsUtils.Logger.error( - 'PingOne Signals can be started only after DOM Ready!', - ), - new Error('PingOne Signals can be started only after DOM Ready!')) + static getUndefinedValueLie(i, t) { + const e = r, + l = i.name, + o = window[l[e(742)](0)[e(1097)]() + l[e(1059)](1)]; + return ( + !!o && (typeof Object[e(969)](o, t) != e(834) || typeof Reflect[e(969)](o, t) != e(834)) + ); + } + static [r(484)](i, t, e) { + const l = r; + let o, x; + try { + o = e.Function[l(620)].toString[l(523)](i); + } catch {} + try { + x = e[l(428)].prototype[l(1340)][l(523)](i[l(1340)]); + } catch {} + const v = o || i.toString(), + y = x || i[l(1340)][l(1340)](), + L = (g) => ({ + [l(458) + g + '() { [native code] }']: !0, + ['function get ' + g + '() { [native code] }']: !0, + [l(697)]: !0, + [l(458) + + g + + l(727) + + ` + [native code] +}`]: !0, + [l(1122) + + g + + l(727) + + ` +` + + l(711) + + ` +}`]: !0, + [l(1260) + + ` +` + + l(711) + + ` +}`]: !0, + }); + return !L(t)[v] || !L(l(1340))[y]; + } + static getPrototypeInFunctionLie(i) { + return r(620) in i; + } + static [r(453)](i) { + const t = r; + return i[t(618)](t(982)) || i[t(618)](t(1280)) || i[t(618)](t(620)) || i[t(618)](t(1340)); + } + static getNewObjectToStringTypeErrorLie(i) { + const t = r; + try { + return Object[t(1172)](i)[t(1340)](), !0; + } catch (e) { + const l = e[t(763)].split(` +`), + o = l[t(1059)](1), + x = /at Object\.apply/, + v = /at Function\.toString/, + y = !o[t(1202)]((E) => x[t(673)](E)), + L = e[t(390)][t(1154)] == 'TypeError' && l[t(684)] > 1, + g = t(539) in window || n[t(875)][t(1182)](); + return L && g && (!v[t(673)](l[1]) || !y) ? !0 : !L; + } + } + } + n[r(530)] = a; + })((p = c[h(1216)] || (c[h(1216)] = {}))); + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + const h = _0x7ea2; + let p; + (function (n) { + const r = _0x4e19; + class a { + constructor(i) { + const t = _0x4e19; + (this[t(802)] = i), (this[t(563)] = new Map()); + } + getStealthResult() { + const i = _0x4e19; + return ( + this[i(653)](i(941), () => { + const t = i; + try { + const { srcdoc: e } = document.createElement(t(1085)); + return !!e; + } catch { + return !0; + } + }), + this[i(653)](i(449), () => { + const t = i, + e = document[t(443)](t(1085)); + return ( + (e[t(712)] = + '' + c[t(730)][t(1159)][t(446)](crypto.getRandomValues(new Uint32Array(10)))), + !!e[t(859)] + ); + }), + this[i(653)](i(634), () => { + const t = i, + e = + t(827) in window ? 'cookieStore' : 'ondevicemotion' in window ? t(1295) : t(1228), + l = []; + for (const v in window) l.push(v); + const o = l[t(944)](t(539)), + x = l[t(944)](e); + return o > x; + }), + this.addStealthTest('chrome_runtime_functions_invalid', () => { + const t = i; + if (!(t(539) in window && t(1333) in window[t(539)])) return !1; + try { + return ( + 'prototype' in window[t(539)][t(1333)][t(745)] || + t(620) in window[t(539)][t(1333)][t(1192)] || + (new window[t(539)][t(1333)][t(745)](), new window[t(539)][t(1333)][t(1192)]()), + !0 ); - this._instance = new t.Client(e, t.BufferingStrategyType.PRIORITY_INTERACTIONS); + } catch (e) { + return e[t(390)][t(1154)] != t(587); + } + }), + this[i(653)](i(979), () => { + const t = i, + e = new a.StackTraceTester(); + return e.isInvalidStackTraceSize(Function[t(620)].toString) || e[t(468)](() => {}); + }), + this[i(563)] + ); + } + addStealthTest(i, t) { + const e = _0x4e19; + if (!this[e(802)][e(1263)](i)) + try { + this[e(563)][i] = t(); + } catch (l) { + c[e(730)].Logger[e(482)]('stealth test ' + i + ' failed', l); } - return this._instance; - }), - (e.prototype.getData = function () { - return __awaiter(this, void 0, void 0, function () { - return __generator(this, function (t) { - switch (t.label) { - case 0: - if (!this.startedPromise) throw new Error('SDK not initialized'); - return [4, this.startedPromise]; - case 1: - return t.sent(), [4, this.dataHandler.getData(Date.now())]; - case 2: - return [2, t.sent()]; - } - }); - }); - }), - (e.prototype.addTag = function (e, n) { - t.Tags.instance.setTag(e, n); - }), - (e.prototype.start = function (e) { - var n, i, r, o; + } + } + (a[r(1030)] = class { + isInvalidStackTraceSize(s) { + const i = r; + try { return ( - void 0 === e && (e = {}), - __awaiter(this, void 0, void 0, function () { - var a, s; - return __generator(this, function (u) { - switch (u.label) { - case 0: - return null === (n = e.waitForWindowLoad) || void 0 === n || n - ? [4, this.loadEventPromise()] - : [3, 2]; - case 1: - u.sent(), (u.label = 2); - case 2: - if ( - ((this.initParams = e), - this.validateStartParams(e), - (this.clientVersion = t._POSignalsUtils.Constants.CLIENT_VERSION), - this.started) - ) - return t._POSignalsUtils.Logger.warn('SDK already initialized'), [2]; - (this.browserInfo = new t._POSignalsUtils.BrowserInfo()), - (t._POSignalsUtils.Logger.isLogEnabled = - !!e.consoleLogEnabled || !!e.devEnv), - t._POSignalsUtils.Logger.info('Starting Signals SDK...'), - (t.Tags.instance.disableTags = !!this.initParams.disableTags), - this.sessionData.setStorageConfig(e), - (a = t.PointerConfig.instance.pointerParams), - (s = { - additionalMediaCodecs: a.additionalMediaCodecs, - browserInfo: this.browserInfo, - fingerprintTimeoutMillis: a.fingerprintTimeoutMillis, - metadataBlackList: new Set( - a.metadataBlackList.concat(e.deviceAttributesToIgnore), - ), - propertyDescriptors: a.propertyDescriptors, - webRtcUrl: a.webRtcUrl, - dataPoints: a.metadataDataPoints, - }), - (this.localAgentAccessor = new t._POSignalsMetadata.LocalAgentAccessor( - null !== (i = e.agentPort) && void 0 !== i - ? i - : t._POSignalsUtils.Constants.PINGID_AGENT_DEFAULT_PORT, - null !== (r = e.agentTimeout) && void 0 !== r - ? r - : t._POSignalsUtils.Constants.PINGID_AGENT_DEFAULT_TIMEOUT, - )), - (this.metadata = new t._POSignalsMetadata.Metadata( - this.sessionData, - s, - e.externalIdentifiers, - this.localAgentAccessor, - )), - (this.dataHandler = new t.DataHandler( - this.clientVersion, - this.instanceUUID, - this.initParams, - this.metadata, - this, - this.sessionData, - )), - (null === (o = this.initParams.behavioralDataCollection) || - void 0 === o || - o) && - this.refreshListening(), - e.lazyMetadata || - (this.metadata.getDeviceAttributes(), this.metadata.getLocalAgentJwt()), - (this.started = !0); - try { - this.logInit(), this.addStartupTags(); - } catch (e) { - t._POSignalsUtils.Logger.warn('SDK post init failed', e); - } - return [2]; - } - }); - }) - ); - }), - (e.prototype.logInit = function () { - var e, n; - t._POSignalsUtils.Logger.info( - 'PingOne Signals initialized. ' + - JSON.stringify( - { - timestamp: new Date().getTime(), - sdkVersion: this.clientVersion, - instanceUUID: this.instanceUUID, - tabUUID: this.sessionData.tabUUID, - }, - null, - 2, - ), + (this.you = () => Object[i(1172)](s)[i(1340)]()), + (this.cant = () => this[i(960)]()), + (this[i(761)] = () => this[i(1117)]()), + this[i(761)](), + !0 ); - var i = function () { - return t._POSignalsUtils.Logger.info('Token Ready: ' + window._pingOneSignalsToken); - }, - r = function () { - t._POSignalsUtils.Logger.info('Signals token fetch is disabled'), - (window._pingOneSignalsToken = void 0); - }; - 'skipped' === - (null === (e = window._pingOneSignalsToken) || void 0 === e - ? void 0 - : e.substring(0, 'skipped'.length)) - ? r() - : 'uninitialized' !== - (null === (n = window._pingOneSignalsToken) || void 0 === n - ? void 0 - : n.substring(0, 'uninitialized'.length)) && i(), - document.addEventListener('PingOneSignalsTokenReadyEvent', i), - document.addEventListener('PingOneSignalsTokenSkippedEvent', r); - }), - Object.defineProperty(e.prototype, 'isBehavioralDataPaused', { - get: function () { - return this._isBehavioralDataPaused; - }, - enumerable: !1, - configurable: !0, - }), - (e.prototype.getSignalsToken = function () { - var t = ''; - if ( - 'string' == typeof window._pingOneSignalsToken && - 0 <= window._pingOneSignalsToken.indexOf(':') - ) { - var e = window._pingOneSignalsToken.match(/t:(.*?)(&|$)/g); - e && 0 < e.length && (t = e[0].replace(/&s*$/, '').replace(/t:/, '')); - } else - 'string' == typeof window._pingOneSignalsToken && (t = window._pingOneSignalsToken); - return t; - }), - (e.prototype.pauseBehavioralData = function () { - this._isBehavioralDataPaused || - ((this._isBehavioralDataPaused = !0), this.addTag('SDK paused behaviorally')); - }), - (e.prototype.resumeBehavioralData = function () { - this._isBehavioralDataPaused && - ((this._isBehavioralDataPaused = !1), this.addTag('SDK resumed behaviorally')); - }), - (e.prototype.startSignals = function (e) { - return __awaiter(this, void 0, void 0, function () { - var n, - i, - r = this; - return __generator(this, function (o) { - switch (o.label) { - case 0: - return ( - o.trys.push([0, 2, , 3]), - (this.startedPromise = this.initQueue.add(function () { - return r.start(e); - })), - [4, this.startedPromise] - ); - case 1: - return [2, o.sent()]; - case 2: - throw ( - ((n = o.sent()), - (i = { - id: t._POSignalsUtils.POErrorCodes.INITIALIZATION_ERROR, - message: n.message, - code: 'SDK initialization failed.', - }), - new Error(JSON.stringify(i))) - ); - case 3: - return [2]; - } - }); - }); - }), - (e.prototype.validateStartParams = function (e) { - if (!document.body) - throw ( - (t._POSignalsUtils.Logger.error( - 'PingOne Signals can be started only after DOM Ready!', - ), - new Error('PingOne Signals can be started only after DOM Ready!')) - ); - e.externalIdentifiers = e.externalIdentifiers || {}; - }), - (e.prototype.loadEventPromise = function () { - return __awaiter(this, void 0, void 0, function () { - return __generator(this, function (t) { - return [ - 2, - new Promise(function (t) { - 'complete' === document.readyState - ? t() - : window.addEventListener('load', function (e) { - t(); - }); - }), - ]; - }); + } catch (t) { + const e = t[i(763)][i(1034)](` +`), + l = !/at Object\.apply/.test(e[1]), + o = t.constructor.name == i(587) && e[i(684)] >= 5, + x = i(539) in window || n.Metadata[i(1182)](); + return o && + x && + (!l || + !/at Function\.toString/[i(673)](e[1]) || + !/\.you/[i(673)](e[2]) || + !/\.cant/.test(e[3]) || + !/\.hide/[i(673)](e[4])) + ? !0 + : !o; + } + } + }), + (n[r(455)] = a); + })((p = c[h(1216)] || (c[h(1216)] = {}))); + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + const h = _0x7ea2; + let p; + (function (n) { + const r = _0x4e19; + class a { + static [r(452)]() { + const i = r; + return c[i(1216)] + .detectIncognitoInternal() + .then((t) => t[i(521)]) + [i(765)](() => !1); + } + } + n[r(768)] = a; + })((p = c._POSignalsMetadata || (c[h(1216)] = {}))); + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + let h; + (function (p) { + (p[(p.Unknown = 0)] = 'Unknown'), + (p[(p.FlingRight = 1)] = 'FlingRight'), + (p[(p.FlingLeft = 2)] = 'FlingLeft'), + (p[(p.FlingUp = 3)] = 'FlingUp'), + (p[(p.FlingDown = 4)] = 'FlingDown'), + (p[(p.Diagonal = 5)] = 'Diagonal'), + (p[(p.ScrollRight = 6)] = 'ScrollRight'), + (p[(p.ScrollLeft = 7)] = 'ScrollLeft'), + (p[(p.ScrollUp = 8)] = 'ScrollUp'), + (p[(p.ScrollDown = 9)] = 'ScrollDown'), + (p[(p.Tap = 10)] = 'Tap'), + (p[(p.DoubleTap = 11)] = 'DoubleTap'); + })((h = c.GestureType || (c.GestureType = {}))); + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + 'use strict'; + class h { + constructor(S, U) { + (this.handler = S), (this.isOnce = U), (this.isExecuted = !1); + } + execute(S, U, T) { + if (!this.isOnce || !this.isExecuted) { + this.isExecuted = !0; + const O = this.handler; + S + ? setTimeout(() => { + O.apply(U, T); + }, 1) + : O.apply(U, T); + } + } + } + class p { + constructor() { + (this._wrap = new s(this)), (this._subscriptions = new Array()); + } + subscribe(S) { + S && this._subscriptions.push(new h(S, !1)); + } + sub(S) { + this.subscribe(S); + } + one(S) { + S && this._subscriptions.push(new h(S, !0)); + } + has(S) { + if (S) { + for (const U of this._subscriptions) if (U.handler == S) return !0; + } + return !1; + } + unsubscribe(S) { + if (S) { + for (let U = 0; U < this._subscriptions.length; U++) + if (this._subscriptions[U].handler == S) { + this._subscriptions.splice(U, 1); + break; + } + } + } + unsub(S) { + this.unsubscribe(S); + } + _dispatch(S, U, T) { + for (let O = 0; O < this._subscriptions.length; O++) { + const C = this._subscriptions[O]; + if (C.isOnce) { + if (C.isExecuted === !0) continue; + this._subscriptions.splice(O, 1), O--; + } + C.execute(S, U, T); + } + } + asEvent() { + return this._wrap; + } + } + c.DispatcherBase = p; + class n extends p { + dispatch(S, U) { + this._dispatch(!1, this, arguments); + } + dispatchAsync(S, U) { + this._dispatch(!0, this, arguments); + } + } + c.EventDispatcher = n; + class r extends p { + dispatch(S) { + this._dispatch(!1, this, arguments); + } + dispatchAsync(S) { + this._dispatch(!0, this, arguments); + } + } + class a extends p { + dispatch() { + this._dispatch(!1, this, arguments); + } + dispatchAsync() { + this._dispatch(!0, this, arguments); + } + } + class s { + constructor(S) { + (this._subscribe = (U) => S.subscribe(U)), + (this._unsubscribe = (U) => S.unsubscribe(U)), + (this._one = (U) => S.one(U)), + (this._has = (U) => S.has(U)); + } + subscribe(S) { + this._subscribe(S); + } + sub(S) { + this.subscribe(S); + } + unsubscribe(S) { + this._unsubscribe(S); + } + unsub(S) { + this.unsubscribe(S); + } + one(S) { + this._one(S); + } + has(S) { + return this._has(S); + } + } + class i { + constructor() { + this._events = {}; + } + get(S) { + let U = this._events[S]; + return U || ((U = this.createDispatcher()), (this._events[S] = U), U); + } + remove(S) { + this._events[S] = null; + } + } + class t extends i { + createDispatcher() { + return new n(); + } + } + class e extends i { + createDispatcher() { + return new r(); + } + } + class l extends i { + createDispatcher() { + return new a(); + } + } + class o { + constructor() { + this._events = new t(); + } + get events() { + return this._events; + } + subscribe(S, U) { + this._events.get(S).subscribe(U); + } + sub(S, U) { + this.subscribe(S, U); + } + unsubscribe(S, U) { + this._events.get(S).unsubscribe(U); + } + unsub(S, U) { + this.unsubscribe(S, U); + } + one(S, U) { + this._events.get(S).one(U); + } + has(S, U) { + return this._events.get(S).has(U); + } + } + class x { + constructor() { + this._events = new e(); + } + get events() { + return this._events; + } + subscribe(S, U) { + this._events.get(S).subscribe(U); + } + sub(S, U) { + this.subscribe(S, U); + } + one(S, U) { + this._events.get(S).one(U); + } + has(S, U) { + return this._events.get(S).has(U); + } + unsubscribe(S, U) { + this._events.get(S).unsubscribe(U); + } + unsub(S, U) { + this.unsubscribe(S, U); + } + } + class v { + constructor() { + this._events = new l(); + } + get events() { + return this._events; + } + one(S, U) { + this._events.get(S).one(U); + } + has(S, U) { + return this._events.get(S).has(U); + } + subscribe(S, U) { + this._events.get(S).subscribe(U); + } + sub(S, U) { + this.subscribe(S, U); + } + unsubscribe(S, U) { + this._events.get(S).unsubscribe(U); + } + unsub(S, U) { + this.unsubscribe(S, U); + } + } + function y() { + return new n(); + } + function L() { + return new t(); + } + function g() { + return new r(); + } + function E() { + return new e(); + } + function f() { + return new a(); + } + function m() { + return new l(); + } + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + class h { + get LAST_GESTURE_SENSOR_TIMEOUT_MILI_SECONDS() { + return 3e3; + } + get accX() { + return this._accX; + } + get accY() { + return this._accY; + } + get accZ() { + return this._accZ; + } + get lienarAccX() { + return this._lienarAccX; + } + get lienarAccY() { + return this._lienarAccY; + } + get lienarAccZ() { + return this._lienarAccZ; + } + get isStarted() { + return this._isStarted; + } + get rotX() { + return this._rotX; + } + get rotY() { + return this._rotY; + } + get rotZ() { + return this._rotZ; + } + get maxSensorSamples() { + return this._maxSensorSamples; + } + set maxSensorSamples(n) { + this._maxSensorSamples = n; + } + get sensorsTimestampDeltaInMillis() { + return this._sensorsTimestampDeltaInMillis; + } + set sensorsTimestampDeltaInMillis(n) { + this._sensorsTimestampDeltaInMillis = n; + } + get accelerometerList() { + return this.getRelevantSensorSamples(this._accelerometerList); + } + get gyroscopeList() { + return this.getRelevantSensorSamples(this._gyroscopeList); + } + get linearAccelerometerList() { + return this.getRelevantSensorSamples(this._linearAccelerometerList); + } + get rotationList() { + return this._rotationList; + } + constructor(n) { + (this._isStarted = !1), + (this._isEventsStarted = !1), + (this._gestureTimestamps = []), + (this._maxSensorSamples = 0), + (this._sensorsTimestampDeltaInMillis = 0), + (this._accelerometerList = []), + (this._gyroscopeList = []), + (this._linearAccelerometerList = []), + (this._rotationList = []), + (this.orientationImplementationFix = 1), + (this.delegate = n), + window.navigator.userAgent.match( + /^.*(iPhone|iPad).*(OS\s[0-9]).*(CriOS|Version)\/[.0-9]*\sMobile.*$/i, + ) && (this.orientationImplementationFix = -1), + (this.accelerometerUpdateHandle = this.accelerometerUpdate.bind(this)), + (this.orientationUpdateHandle = this.orientationUpdate.bind(this)); + } + start() { + this._isStarted || + ((this._isStarted = !0), c._POSignalsUtils.Logger.debug('Sensor events started...')); + } + getRotationListCopy() { + return this._rotationList ? Array.from(this._rotationList) : []; + } + stop() { + this._isStarted && + (window.DeviceMotionEvent != null && + window.removeEventListener('devicemotion', this.accelerometerUpdateHandle, !0), + window.DeviceOrientationEvent && + window.removeEventListener('deviceorientation', this.orientationUpdateHandle, !0), + (this._isStarted = !1), + c._POSignalsUtils.Logger.debug('Sensor events stopped')); + } + getRelevantSensorSamples(n) { + if ( + n.length == 0 || + this._sensorsTimestampDeltaInMillis < 1 || + this._gestureTimestamps.length == 0 + ) + return n; + const r = new Map(); + let a = null, + s = 0; + for (let i = 0; i < n.length; i++) + for (let t = 0; t < this._gestureTimestamps.length; t++) + (s = n[i].timestamp), + (a = this._gestureTimestamps[t]), + s >= a.start - this._sensorsTimestampDeltaInMillis && + s <= a.end + this._sensorsTimestampDeltaInMillis && + r.set(n[i].timestamp, n[i]); + return c._POSignalsUtils.Util.getValuesOfMap(r); + } + stopEvents() { + this._isEventsStarted && + (window.DeviceMotionEvent != null && + window.removeEventListener('devicemotion', this.accelerometerUpdateHandle, !0), + window.DeviceOrientationEvent && + window.removeEventListener('deviceorientation', this.orientationUpdateHandle, !0), + (this._isEventsStarted = !1), + c._POSignalsUtils.Logger.debug('Sensor events stopped listening')); + } + startEvents() { + this._isEventsStarted || + (window.DeviceMotionEvent != null + ? this.delegate.addEventListener( + window, + 'devicemotion', + this.accelerometerUpdateHandle, + !0, + ) + : c._POSignalsUtils.Logger.warn('DeviceMotion not supported!'), + window.DeviceOrientationEvent + ? this.delegate.addEventListener( + window, + 'deviceorientation', + this.orientationUpdateHandle, + !0, + ) + : c._POSignalsUtils.Logger.warn('DeviceOrientation not supported!'), + c._POSignalsUtils.Logger.debug('Sensor events start listening...'), + (this._isEventsStarted = !0)); + } + reset() { + (this._accelerometerList = []), + (this._gyroscopeList = []), + (this._linearAccelerometerList = []), + (this._rotationList = []), + this._gestureTimestamps.length > 0 + ? (this._gestureTimestamps = [ + this._gestureTimestamps[this._gestureTimestamps.length - 1], + ]) + : (this._gestureTimestamps = []), + (this._accX = 0), + (this._accY = 0), + (this._accZ = 0), + (this._rotX = 0), + (this._rotY = 0), + (this._rotZ = 0); + } + onGesture(n) { + this._isEventsStarted || this.startEvents(), + n.events.length > 1 && + this._gestureTimestamps.push({ + start: n.events[0].eventTs, + end: n.events[n.events.length - 1].eventTs, }); - }), - (e.prototype.addStartupTags = function () { - this.addTag('SDK started'), - document.referrer && this.addTag('referrer', document.referrer), - this.addTag('location', window.location.href); - }), - e - ); - })(); - t.ClientBase = e; - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function (t) { - var e = (function () { - function e(e) { - (this.BEHAVIORAL_TYPE = 'indirect'), - (this._isStarted = !1), - (this._onClipboardEvent = new t.EventDispatcher()), - (this.delegate = e), - (this.onClipboardEventHandler = this.onEvent.bind(this)); - } - return ( - Object.defineProperty(e.prototype, 'isStarted', { - get: function () { - return this._isStarted; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'onClipboardEvent', { - get: function () { - return this._onClipboardEvent.asEvent(); - }, - enumerable: !1, - configurable: !0, - }), - (e.prototype.onEvent = function (e) { - try { - if (!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)) return; - this._onClipboardEvent.dispatch(this, this.createClipboardEvent(e)); - } catch (e) { - t._POSignalsUtils.Logger.warn('error in clipboard handler', e); - } - }), - (e.prototype.createClipboardEvent = function (e) { - var n = t._POSignalsUtils.Util.getSrcElement(e); - return { - category: 'ClipboardEvent', - type: e.type, - eventTs: e.timeStamp, - epochTs: new Date().getTime(), - additionalData: { - locationHref: location.href, - stId: this.delegate.getElementsStID(n), - elementId: null === n || void 0 === n ? void 0 : n.id, + } + puaseSensorsCollectionIfNoActivity(n) { + if ( + (this._gestureTimestamps.length > 0 + ? this._gestureTimestamps[this._gestureTimestamps.length - 1].end + : 0) > 0 + ) { + if ( + Math.abs(n - this._gestureTimestamps[this._gestureTimestamps.length - 1].end) > + this.LAST_GESTURE_SENSOR_TIMEOUT_MILI_SECONDS + ) + return this.stopEvents(), !0; + } else return this.stopEvents(), !0; + return !1; + } + getDeviceAcceleration(n) { + return !n || n.x == null || n.y == null || n.z == null ? null : n; + } + accelerometerUpdate(n) { + try { + if ( + !this.delegate.collectBehavioralData() || + this.puaseSensorsCollectionIfNoActivity(c._POSignalsUtils.Util.now()) + ) + return; + const r = this.getDeviceAcceleration(n.accelerationIncludingGravity); + r && + ((this._accX = r.x * this.orientationImplementationFix), + (this._accY = r.y * this.orientationImplementationFix), + (this._accZ = r.z), + this.safeAddSensorSample( + { + x: this._accX, + y: this._accY, + z: this._accX, + timestamp: c._POSignalsUtils.Util.now(), }, - }; - }), - (e.prototype.start = function () { - this._isStarted || - ((this._isStarted = !0), - this.delegate.addEventListener(document, 'cut', this.onClipboardEventHandler), - this.delegate.addEventListener(document, 'copy', this.onClipboardEventHandler), - this.delegate.addEventListener(document, 'paste', this.onClipboardEventHandler)); - }), - (e.prototype.stop = function () { - this._isStarted && - ((this._isStarted = !1), - document.removeEventListener('cut', this.onClipboardEventHandler), - document.removeEventListener('copy', this.onClipboardEventHandler), - document.removeEventListener('paste', this.onClipboardEventHandler)); - }), - e - ); - })(); - t.ClipboardEvents = e; - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function (t) { - var e = (function () { - function e(e) { - (this.BEHAVIORAL_TYPE = 'indirect'), - (this._isStarted = !1), - (this._onDragEvent = new t.EventDispatcher()), - (this.delegate = e), - (this.onDragEventHandler = this.onEvent.bind(this)); + this._accelerometerList, + )); + const a = this.getDeviceAcceleration(n.acceleration); + a && + ((this._lienarAccX = a.x * this.orientationImplementationFix), + (this._lienarAccY = a.y * this.orientationImplementationFix), + (this._lienarAccZ = a.z), + this.safeAddSensorSample( + { + x: this._lienarAccX, + y: this._lienarAccY, + z: this._lienarAccZ, + timestamp: c._POSignalsUtils.Util.now(), + }, + this._linearAccelerometerList, + )), + n.rotationRate && + n.rotationRate.alpha != null && + n.rotationRate.beta != null && + n.rotationRate.gamma != null && + ((this._rotX = n.rotationRate.alpha), + (this._rotY = n.rotationRate.beta), + (this._rotZ = n.rotationRate.gamma), + this.safeAddSensorSample( + { + x: this._rotX, + y: this._rotY, + z: this._rotZ, + timestamp: c._POSignalsUtils.Util.now(), + }, + this._gyroscopeList, + )); + } catch (r) { + c._POSignalsUtils.Logger.warn('error in accelerometer handler', r); } - return ( - Object.defineProperty(e.prototype, 'isStarted', { - get: function () { - return this._isStarted; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'onDragEvent', { - get: function () { - return this._onDragEvent.asEvent(); - }, - enumerable: !1, - configurable: !0, - }), - (e.prototype.createDragEvent = function (t) { - return { - category: 'DragEvent', - type: t.type, - eventTs: t.timeStamp, - epochTs: new Date().getTime(), - additionalData: { locationHref: location.href }, - }; - }), - (e.prototype.onEvent = function (e) { - try { - if (!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)) return; - this._onDragEvent.dispatch(this, this.createDragEvent(e)); - } catch (e) { - t._POSignalsUtils.Logger.warn('error in drag handler', e); - } - }), - (e.prototype.start = function () { - this._isStarted || - ((this._isStarted = !0), - this.delegate.addEventListener(document, 'dragstart', this.onDragEventHandler), - this.delegate.addEventListener(document, 'dragexit', this.onDragEventHandler), - this.delegate.addEventListener(document, 'drop', this.onDragEventHandler), - this.delegate.addEventListener(document, 'dragend', this.onDragEventHandler)); - }), - (e.prototype.stop = function () { - this._isStarted && - ((this._isStarted = !1), - document.removeEventListener('dragstart', this.onDragEventHandler), - document.removeEventListener('dragexit', this.onDragEventHandler), - document.removeEventListener('drop', this.onDragEventHandler), - document.removeEventListener('dragend', this.onDragEventHandler)); - }), - e - ); - })(); - t.DragEvents = e; - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function (t) { - var e = (function () { - function e(e) { - (this.BEHAVIORAL_TYPE = 'indirect'), - (this._isStarted = !1), - (this._onFocusEvent = new t.EventDispatcher()), - (this.delegate = e), - (this.onFocusEventHandler = this.onEvent.bind(this)); + } + orientationUpdate(n) { + try { + if ( + !this.delegate.collectBehavioralData() || + this.puaseSensorsCollectionIfNoActivity(c._POSignalsUtils.Util.now()) + ) + return; + n.alpha != null && + n.beta != null && + n.gamma != null && + this.safeAddSensorSample( + { x: n.alpha, y: n.beta, z: n.gamma, timestamp: c._POSignalsUtils.Util.now() }, + this._rotationList, + ); + } catch (r) { + c._POSignalsUtils.Logger.warn('error in orientation handler', r); } + } + safeAddSensorSample(n, r) { + this.maxSensorSamples > r.length && r.push(n); + } + } + c.Sensors = h; + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + class h { + static get instance() { + return h._instance || (h._instance = new h()), h._instance; + } + constructor() { + this._pointerParams = new c.PointerParams(); + } + get pointerParams() { + return this._pointerParams; + } + } + c.PointerConfig = h; + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + let h; + (function (n) { + (n[(n.Up = 1)] = 'Up'), + (n[(n.Down = 2)] = 'Down'), + (n[(n.Left = 3)] = 'Left'), + (n[(n.Right = 4)] = 'Right'); + })(h || (h = {})); + class p { + get onGesture() { + return this._onGesture.asEvent(); + } + get isStarted() { + return this._isStarted; + } + get SCROLL_MIN_DURATION() { + return 500; + } + get SWIPE_MAX_ANGLE() { + return 45; + } + get TAP_MOVEMENT_TRESHOLD() { + return 10; + } + constructor(r, a) { + (this.BEHAVIORAL_TYPE = 'gestures'), + (this._isStarted = !1), + (this._onGesture = new c.EventDispatcher()), + (this.touchSnapshotsMap = new Map()), + (this.snapshotStartTime = new Map()), + (this.delegate = r), + (this.sensors = a), + (this.touchStartHandler = this.touchStart.bind(this)), + (this.touchMoveHandler = this.touchMove.bind(this)), + (this.touchEndHandler = this.touchEnd.bind(this)), + (this.touchCancelHandler = this.touchCancel.bind(this)); + } + countEvents(r) { + const a = { epochTs: Date.now() }; + for (const s of r) a[s.type] = (a[s.type] || 0) + 1; + return a; + } + clearTouchSnapshots(r) { + this.touchSnapshotsMap.delete(r), this.snapshotStartTime.delete(r); + } + getTouchSnapshots(r) { + let a; return ( - Object.defineProperty(e.prototype, 'isStarted', { - get: function () { - return this._isStarted; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'onFocusEvent', { - get: function () { - return this._onFocusEvent.asEvent(); - }, - enumerable: !1, - configurable: !0, - }), - (e.prototype.getRelatedTarget = function (e) { - if (!e.relatedTarget) return { type: '', stId: '', elementId: '' }; - var n = { - type: t._POSignalsUtils.Util.getObjectType(e.relatedTarget), - stId: '', - elementId: '', - }; - e.relatedTarget.id && (n.elementId = e.relatedTarget.id); - try { - var i = e.relatedTarget; - n.stId = this.delegate.getElementsStID(i); - } catch (t) {} - return n; - }), - (e.prototype.createFocusEvent = function (e) { - var n = t._POSignalsUtils.Util.getSrcElement(e), - i = this.getRelatedTarget(e); - return { - category: 'FocusEvent', - type: e.type, - eventTs: e.timeStamp, - epochTs: new Date().getTime(), - additionalData: { - locationHref: location.href, - stId: this.delegate.getElementsStID(n), - elementId: n ? n.id : '', - relatedTarget: i, - }, - }; - }), - (e.prototype.onEvent = function (e) { - try { - if (!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)) return; - this._onFocusEvent.dispatch(this, this.createFocusEvent(e)); - } catch (e) { - t._POSignalsUtils.Logger.warn('error in focus handler', e); - } - }), - (e.prototype.start = function () { - this._isStarted || - ((this._isStarted = !0), - this.delegate.addEventListener(document, 'DOMFocusIn', this.onFocusEventHandler), - this.delegate.addEventListener(document, 'DOMFocusOut', this.onFocusEventHandler), - this.delegate.addEventListener(document, 'focus', this.onFocusEventHandler), - this.delegate.addEventListener(document, 'focusin', this.onFocusEventHandler), - this.delegate.addEventListener(document, 'focusout', this.onFocusEventHandler)); - }), - (e.prototype.stop = function () { - this._isStarted && - ((this._isStarted = !1), - document.removeEventListener('DOMFocusIn', this.onFocusEventHandler), - document.removeEventListener('DOMFocusOut', this.onFocusEventHandler), - document.removeEventListener('focus', this.onFocusEventHandler), - document.removeEventListener('focusin', this.onFocusEventHandler), - document.removeEventListener('focusout', this.onFocusEventHandler)); - }), - e + this.touchSnapshotsMap.has(r) + ? (a = this.touchSnapshotsMap.get(r)) + : ((a = []), this.touchSnapshotsMap.set(r, a)), + a ); - })(); - t.FocusEvents = e; - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function (t) { - var e = (function () { - function e(e) { - (this.BEHAVIORAL_TYPE = 'indirect'), - (this._isStarted = !1), - (this._onUIEvent = new t.EventDispatcher()), - (this.delegate = e), - (this.onUIEventHandler = this.onEvent.bind(this)); + } + isEmpty() { + return this.touchSnapshotsMap.size === 0; + } + start() { + this._isStarted || + (this.delegate.addEventListener(document, 'touchstart', this.touchStartHandler), + this.delegate.addEventListener(document, 'touchmove', this.touchMoveHandler), + this.delegate.addEventListener(document, 'touchend', this.touchEndHandler), + this.delegate.addEventListener(document, 'touchcancel', this.touchCancelHandler), + (this._isStarted = !0)); + } + stop() { + this._isStarted && + (document.removeEventListener('touchstart', this.touchStartHandler), + document.removeEventListener('touchmove', this.touchMoveHandler), + document.removeEventListener('touchend', this.touchEndHandler), + document.removeEventListener('touchcancel', this.touchCancelHandler), + (this._isStarted = !1)); + } + touchStart(r) { + try { + if ( + !this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE) || + c.PointerConfig.instance.pointerParams.eventsToIgnore.has(r.type) + ) + return; + c._POSignalsUtils.Logger.debug('touchstart(' + r.changedTouches.length + ')', r), + r.changedTouches.length > 0 && this.pushSnapshot(r); + } catch (a) { + c._POSignalsUtils.Logger.warn('error in touchStart handler', a); } - return ( - Object.defineProperty(e.prototype, 'isStarted', { - get: function () { - return this._isStarted; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'onUIEvent', { - get: function () { - return this._onUIEvent.asEvent(); - }, - enumerable: !1, - configurable: !0, - }), - (e.prototype.createUIEvent = function (t) { - return { - category: 'UIEvent', - type: t.type, - eventTs: t.timeStamp, - epochTs: new Date().getTime(), - additionalData: { locationHref: location.href }, - }; - }), - (e.prototype.onEvent = function (e) { - try { - if (!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)) return; - this._onUIEvent.dispatch(this, this.createUIEvent(e)); - } catch (e) { - t._POSignalsUtils.Logger.warn('error in UIEvent handler', e); - } - }), - (e.prototype.start = function () { - this._isStarted || - ((this._isStarted = !0), - this.delegate.addEventListener(document, 'resize', this.onUIEventHandler), - this.delegate.addEventListener(document, 'scroll', this.onUIEventHandler), - this.delegate.addEventListener(document, 'select', this.onUIEventHandler)); - }), - (e.prototype.stop = function () { - this._isStarted && - ((this._isStarted = !1), - document.removeEventListener('resize', this.onUIEventHandler), - document.removeEventListener('scroll', this.onUIEventHandler), - document.removeEventListener('select', this.onUIEventHandler)); - }), - e - ); - })(); - t.UIEvents = e; - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function (t) { - var e = (function () { - function e(e) { - (this.BEHAVIORAL_TYPE = 'indirect'), - (this.visibilityChangeEventName = 'visibilitychange'), - (this.hiddenProperty = 'hidden'), - (this._isStarted = !1), - (this._onGeneralEvent = new t.EventDispatcher()), - (this.delegate = e), - (this.onGeneralEventHandler = this.onEvent.bind(this)), - (this.onLangChangeHandler = this.onLangChangeEvent.bind(this)), - (this.onOrientationChangeHandler = this.onOrientationChangeEvent.bind(this)), - (this.onVisibilityChangeHandler = this.onVisibilityChangeEvent.bind(this)), - void 0 !== document.msHidden - ? ((this.hiddenProperty = 'msHidden'), - (this.visibilityChangeEventName = 'msvisibilitychange')) - : void 0 !== document.webkitHidden && - ((this.hiddenProperty = 'webkitHidden'), - (this.visibilityChangeEventName = 'webkitvisibilitychange')); + } + touchMove(r) { + try { + if ( + !this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE) || + c.PointerConfig.instance.pointerParams.eventsToIgnore.has(r.type) + ) + return; + c._POSignalsUtils.Logger.debug('touchmove(' + r.changedTouches.length + ')', r), + r.changedTouches.length > 0 && this.pushSnapshot(r); + } catch (a) { + c._POSignalsUtils.Logger.warn('error in touchMove handler', a); } - return ( - Object.defineProperty(e.prototype, 'isStarted', { - get: function () { - return this._isStarted; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'onGeneralEvent', { - get: function () { - return this._onGeneralEvent.asEvent(); - }, - enumerable: !1, - configurable: !0, - }), - (e.prototype.onEvent = function (e) { - try { - if (!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)) return; - this._onGeneralEvent.dispatch(this, this.createGeneralEvent(e)); - } catch (e) { - t._POSignalsUtils.Logger.warn('error in general event handler', e); - } - }), - (e.prototype.onLangChangeEvent = function (e) { - try { - if (!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)) return; - var n = this.createGeneralEvent(e); - this._onGeneralEvent.dispatch(this, n); - } catch (e) { - t._POSignalsUtils.Logger.warn('error in LangChange event handler', e); - } - }), - (e.prototype.onOrientationChangeEvent = function (e) { - try { - if (!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)) return; - var n = this.createGeneralEvent(e), - i = t._POSignalsUtils.Util.getDeviceOrientation(); - (n.additionalData.deviceOrientation = i.orientation), - (n.additionalData.deviceAngle = i.angle), - this._onGeneralEvent.dispatch(this, n); - } catch (e) { - t._POSignalsUtils.Logger.warn('error in OrientationChange event handler', e); - } - }), - (e.prototype.onVisibilityChangeEvent = function (e) { - try { - if (!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)) return; - var n = this.createGeneralEvent(e); - (n.additionalData.hidden = !!document[this.hiddenProperty]), - document.visibilityState && - (n.additionalData.visibilityState = document.visibilityState.toString()), - this._onGeneralEvent.dispatch(this, n); - } catch (e) { - t._POSignalsUtils.Logger.warn('error in VisibilityChange event handler', e); - } - }), - (e.prototype.createGeneralEvent = function (t) { - return { - category: 'Event', - type: t.type, - eventTs: t.timeStamp, - epochTs: new Date().getTime(), - additionalData: { locationHref: location.href }, - }; - }), - (e.prototype.start = function () { - this._isStarted || - ((this._isStarted = !0), - this.delegate.addEventListener( - document, - this.visibilityChangeEventName, - this.onVisibilityChangeHandler, - ), - this.delegate.addEventListener(document, 'change', this.onGeneralEventHandler), - this.delegate.addEventListener( - document, - 'fullscreenchange', - this.onGeneralEventHandler, - ), - this.delegate.addEventListener(document, 'invalid', this.onGeneralEventHandler), - this.delegate.addEventListener(window, 'languagechange', this.onLangChangeHandler), - this.delegate.addEventListener( - window, - 'orientationchange', - this.onOrientationChangeHandler, - ), - this.delegate.addEventListener(document, 'seeked', this.onGeneralEventHandler), - this.delegate.addEventListener(document, 'seeking', this.onGeneralEventHandler), - this.delegate.addEventListener(document, 'selectstart', this.onGeneralEventHandler), - this.delegate.addEventListener( - document, - 'selectionchange', - this.onGeneralEventHandler, - ), - this.delegate.addEventListener(document, 'submit', this.onGeneralEventHandler), - this.delegate.addEventListener(document, 'volumechange', this.onGeneralEventHandler), - this.delegate.addEventListener(document, 'reset', this.onGeneralEventHandler), - this.delegate.addEventListener(document, 'textInput', this.onGeneralEventHandler)); - }), - (e.prototype.stop = function () { - this._isStarted && - ((this._isStarted = !1), - document.removeEventListener( - this.visibilityChangeEventName, - this.onVisibilityChangeHandler, - ), - document.removeEventListener('change', this.onGeneralEventHandler), - document.removeEventListener('fullscreenchange', this.onGeneralEventHandler), - document.removeEventListener('invalid', this.onGeneralEventHandler), - window.removeEventListener('languagechange', this.onLangChangeHandler), - window.removeEventListener('orientationchange', this.onOrientationChangeHandler), - document.removeEventListener('seeked', this.onGeneralEventHandler), - document.removeEventListener('seeking', this.onGeneralEventHandler), - document.removeEventListener('selectstart', this.onGeneralEventHandler), - document.removeEventListener('selectionchange', this.onGeneralEventHandler), - document.removeEventListener('submit', this.onGeneralEventHandler), - document.removeEventListener('volumechange', this.onGeneralEventHandler), - document.removeEventListener('reset', this.onGeneralEventHandler), - document.removeEventListener('textInput', this.onGeneralEventHandler)); - }), - e - ); - })(); - t.GeneralEvents = e; - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function (t) { - var e = (function () { - function e(e) { - (this.DEFAULT_INDIRECT_IDLE_INTERVAL = 1e3), - (this.MAX_INDIRECT_EVENTS = 25), - (this._onIndirect = new t.EventDispatcher()), - (this.indirectEvents = []), - (this.idleTimeInMillis = this.DEFAULT_INDIRECT_IDLE_INTERVAL), - (this.lastIndirectEventTimestamp = 0), - (this._isStarted = !1), - (this.clipboardEvents = new t.ClipboardEvents(e)), - this.clipboardEvents.onClipboardEvent.subscribe(this.handleEvent.bind(this)), - (this.dragEvents = new t.DragEvents(e)), - this.dragEvents.onDragEvent.subscribe(this.handleEvent.bind(this)), - (this.focusEvents = new t.FocusEvents(e)), - this.focusEvents.onFocusEvent.subscribe(this.handleEvent.bind(this)), - (this.uiEvents = new t.UIEvents(e)), - this.uiEvents.onUIEvent.subscribe(this.handleEvent.bind(this)), - (this.generalEvents = new t.GeneralEvents(e)), - this.generalEvents.onGeneralEvent.subscribe(this.handleEvent.bind(this)), - (this.onTimeElapsedHandler = this.onTimeElapsed.bind(this)); + } + touchEnd(r) { + try { + if (!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)) { + this._onGesture.dispatch(this, null); + return; + } + if (c.PointerConfig.instance.pointerParams.eventsToIgnore.has(r.type)) return; + c._POSignalsUtils.Logger.debug('touchend(' + r.changedTouches.length + ')', r), + this.gestureEnd(r); + } catch (a) { + c._POSignalsUtils.Logger.warn('error in touchEnd handler', a); } - return ( - Object.defineProperty(e.prototype, 'onIndirect', { - get: function () { - return this._onIndirect.asEvent(); - }, - enumerable: !1, - configurable: !0, - }), - (e.prototype.onTimeElapsed = function () { - return __awaiter(this, void 0, void 0, function () { - return __generator(this, function (t) { - return ( - this.indirectEvents.length > 0 && - new Date().getTime() - this.lastIndirectEventTimestamp >= - this.idleTimeInMillis && - this.dispatch(), - [2] - ); - }); - }); - }), - (e.prototype.handleEvent = function (t, e) { - (this.lastIndirectEventTimestamp = new Date().getTime()), this.pushEvent(e); - }), - (e.prototype.pushEvent = function (t) { - this.indirectEvents.push(t), - this.indirectEvents.length >= this.MAX_INDIRECT_EVENTS && this.dispatch(); - }), - (e.prototype.clearBuffer = function () { - var t = { events: this.indirectEvents }; - return (this.indirectEvents = []), t; - }), - (e.prototype.dispatch = function () { - try { - clearInterval(this.updateIntervalHandle), - this._onIndirect.dispatch(this, this.clearBuffer()), - (this.updateIntervalHandle = setInterval( - this.onTimeElapsedHandler, - t.PointerConfig.instance.pointerParams.indirectIntervalMillis, - )); - } catch (e) { - t._POSignalsUtils.Logger.warn('Failed to dispatch indirect events', e); - } - }), - Object.defineProperty(e.prototype, 'isStarted', { - get: function () { - return this._isStarted; - }, - enumerable: !1, - configurable: !0, - }), - (e.prototype.start = function () { - this._isStarted || - ((this.updateIntervalHandle = setInterval( - this.onTimeElapsedHandler, - t.PointerConfig.instance.pointerParams.indirectIntervalMillis, - )), - this.clipboardEvents.start(), - this.dragEvents.start(), - this.focusEvents.start(), - this.uiEvents.start(), - this.generalEvents.start(), - (this._isStarted = !0)); - }), - (e.prototype.stop = function () { - this._isStarted && - (this.clipboardEvents.stop(), - this.dragEvents.stop(), - this.focusEvents.stop(), - this.uiEvents.stop(), - this.generalEvents.stop(), - clearInterval(this.updateIntervalHandle), - (this.updateIntervalHandle = null), - (this._isStarted = !1)); - }), - (e.prototype.unsubscribe = function () { - this.clipboardEvents.onClipboardEvent.unsubscribe(this.handleEvent.bind(this)), - this.dragEvents.onDragEvent.unsubscribe(this.handleEvent.bind(this)), - this.focusEvents.onFocusEvent.unsubscribe(this.handleEvent.bind(this)), - this.uiEvents.onUIEvent.unsubscribe(this.handleEvent.bind(this)), - this.generalEvents.onGeneralEvent.unsubscribe(this.handleEvent.bind(this)); - }), - e - ); - })(); - t.IndirectClient = e; - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function (t) { - var e = (function () { - function e() { - (this.config = {}), (this._cacheHash = 0), (this.cache = new Map()); + } + touchCancel(r) { + try { + if (!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)) { + this._onGesture.dispatch(this, null); + return; + } + if (c.PointerConfig.instance.pointerParams.eventsToIgnore.has(r.type)) return; + c._POSignalsUtils.Logger.debug('touchcancel(' + r.changedTouches.length + ')', r), + this.gestureEnd(r); + } catch (a) { + c._POSignalsUtils.Logger.warn('error in touchCancel handler', a); } - return ( - (e.prototype.refreshCssSelectors = function (e) { - try { - if (!e) return; - var n = t._POSignalsUtils.Util.hashCode(JSON.stringify(e)); - if (this._cacheHash === n) return; - (this.config = e), (this._cacheHash = n), (this.cache = new Map()); - } catch (e) { - t._POSignalsUtils.Logger.warn('Failed to set css selectors', e); - } - }), - (e.prototype.getIdentification = function (e, n) { - if (null === this.cache.get(e)) return null; - if (void 0 !== this.cache.get(e)) return this.cache.get(e); - for (var i in this.config) - try { - if (!this.config.hasOwnProperty(i)) continue; - var r = this.config[i] || []; - t._POSignalsUtils.Util.isArray(r) || (r = [].concat(r)); - for (var o = 0, a = r; o < a.length; o++) { - var s = a[o]; - if (t._POSignalsUtils.Util.isSelectorMatches(e, s, n)) - return this.cache.set(e, i), i; - } - } catch (e) { - t._POSignalsUtils.Logger.warn('Failed to find selector for ' + i, e); - } - return this.cache.set(e, null), null; - }), - Object.defineProperty(e.prototype, 'cacheHash', { - get: function () { - return this._cacheHash; - }, - enumerable: !1, - configurable: !0, - }), - e - ); - })(); - t.ElementsIdentifications = e; - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function (t) { - var e = (function () { - function e(e, n) { - (this.BEHAVIORAL_TYPE = 'eventKeyboard'), - (this._isStarted = !1), - (this._onInteraction = new t.EventDispatcher()), - (this._onEnterPress = new t.EventDispatcher()), - (this._onObfuscatedValue = new t.EventDispatcher()), - (this.interactionsMap = new Map()), - (this._fieldsIdentifications = new t.ElementsIdentifications()), - (this.keyStrokeMap = new Map()), - (this.delegate = e), - (this.uiControlManager = n), - (this.onKeyDownHandle = this.onKeyDown.bind(this)), - (this.onKeyUpHandle = this.onKeyUp.bind(this)), - (this.onFocusHandle = this.onFocus.bind(this)), - (this.onBlurHandle = this.onBlur.bind(this)); + } + gestureEnd(r) { + r.changedTouches.length > 0 && this.pushSnapshot(r); + for (let a = 0; a < r.changedTouches.length; a++) { + const s = r.changedTouches.item(a), + i = this.getTouchSnapshots(s.identifier); + i.length > 0 && + (this.isTap(i) + ? this.dispatchGesture(c.GestureType.Tap, s.identifier) + : this.dispatchGesture(this.calcGestureType(i), s.identifier)); } - return ( - Object.defineProperty(e.prototype, 'isStarted', { - get: function () { - return this._isStarted; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'onInteraction', { - get: function () { - return this._onInteraction.asEvent(); - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'onEnterPress', { - get: function () { - return this._onEnterPress.asEvent(); - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'onObfuscatedValue', { - get: function () { - return this._onObfuscatedValue.asEvent(); - }, - enumerable: !1, - configurable: !0, - }), - (e.prototype.refreshKeyboardCssSelectors = function (t) { - this._fieldsIdentifications.refreshCssSelectors(t); - }), - Object.defineProperty(e.prototype, 'modifiersKeys', { - get: function () { - return [ - 'Alt', - 'AltGraph', - 'CapsLock', - 'Control', - 'Fn', - 'FnLock', - 'Hyper', - 'Meta', - 'NumLock', - 'OS', - 'ScrollLock', - 'Shift', - 'Super', - 'Symbol', - 'SymbolLock', - ]; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'specialKeys', { - get: function () { - return [ - 'Tab', - 'Shift', - 'Backspace', - 'Enter', - 'CapsLock', - 'Meta', - 'Delete', - 'Alt', - 'ArrowDown', - 'ArrowUp', - 'Control', - 'ArrowLeft', - 'End', - 'Unidentified', - 'Home', - 'ArrowRight', - 'Insert', - 'Pause', - 'PageDown', - 'PageUp', - 'F1', - 'F2', - 'F3', - 'F4', - 'F5', - 'F6', - 'F7', - 'F8', - 'F9', - 'F10', - 'F11', - 'F12', - 'AltGraph', - 'Escape', - ]; - }, - enumerable: !1, - configurable: !0, - }), - (e.prototype.countEvent = function (t, e) { - e && (e.eventCounters[t] = (e.eventCounters[t] || 0) + 1); - }), - (e.prototype.clearBuffer = function () { - var e = t._POSignalsUtils.Util.getValuesOfMap(this.interactionsMap); - return this.interactionsMap.clear(), e; - }), - (e.prototype.start = function () { - this._isStarted - ? t._POSignalsUtils.Logger.debug('Desktop Keyboard events already listening') - : (this.delegate.addEventListener(document, 'keydown', this.onKeyDownHandle), - this.delegate.addEventListener(document, 'keyup', this.onKeyUpHandle), - this.delegate.addEventListener(document, 'focus', this.onFocusHandle, !0), - this.delegate.addEventListener(document, 'blur', this.onBlurHandle, !0), - (this._isStarted = !0), - t._POSignalsUtils.Logger.debug('Desktop Keyboard events start listening...')); - }), - (e.prototype.stop = function () { - this._isStarted - ? (document.removeEventListener('keydown', this.onKeyDownHandle), - document.removeEventListener('keyup', this.onKeyUpHandle), - document.removeEventListener('focus', this.onFocusHandle, !0), - document.removeEventListener('blur', this.onBlurHandle, !0), - (this._isStarted = !1), - t._POSignalsUtils.Logger.debug('Desktop Keyboard events stop listening...')) - : t._POSignalsUtils.Logger.debug('Desktop Keyboard events already stopped'); - }), - (e.prototype.getInteractionFromElement = function (e) { - var n, - i = null, - r = null, - o = t._POSignalsUtils.Util.getSrcElement(e); - if ( - o && - o instanceof HTMLInputElement && - !t._POSignalsUtils.Util.isClickableInput(o) && - t._POSignalsUtils.Util.isFunction(o.getAttribute) && - !(null === (n = o.hasAttribute) || void 0 === n - ? void 0 - : n.call(o, 'data-st-ignore')) && - !t._POSignalsUtils.Util.anySelectorMatches( - o, - t.PointerConfig.instance.pointerParams.keyboardCssSelectorsBlacklist, - 0, - ) - ) { - r = this.delegate.getElementsStID(o); - for ( - var a = t.PointerConfig.instance.pointerParams.keyboardIdentifierAttributes, s = 0; - s < a.length && !r; - s++ - ) - r = o.getAttribute(a[s]); - r && - !t.PointerConfig.instance.pointerParams.keyboardFieldBlackList.has(r) && - ((i = this.interactionsMap.get(o)) || - ((i = { - epochTs: Date.now(), - stId: r, - elementId: t._POSignalsUtils.Util.getAttribute(o, 'id'), - name: t._POSignalsUtils.Util.getAttribute(o, 'name'), - type: t._POSignalsUtils.Util.getAttribute(o, 'type'), - events: [], - counter: this.delegate.keyboardCounter, - eventCounters: { epochTs: Date.now() }, - duration: 0, - numOfDeletions: 0, - additionalData: this.delegate.additionalData, - quality: '', - }), - this.interactionsMap.set(o, i))); + } + calcGestureType(r) { + let a; + const s = this.getDirection(r); + if (this.isFling(r)) + switch (s) { + case h.Up: { + a = c.GestureType.FlingUp; + break; } - return i; - }), - (e.prototype.getKeyCode = function (e) { - return e.keyCode - ? e.keyCode - : e.which - ? e.which - : e.code - ? t._POSignalsUtils.Util.hashCode(e.code) - : t._POSignalsUtils.Util.hashCode(e.key) + (e.location || 0); - }), - (e.prototype.getKeyboardEvent = function (t) { - return t || window.event; - }), - (e.prototype.getKeystrokeId = function (e, n) { - var i, - r = this.getKeyCode(e); - return ( - 'keyup' === n && - (this.keyStrokeMap.has(r) - ? ((i = this.keyStrokeMap.get(r)), this.keyStrokeMap.delete(r)) - : (i = t._POSignalsUtils.Util.newGuid())), - 'keydown' === n && - (this.keyStrokeMap.has(r) && e.repeat - ? (i = this.keyStrokeMap.get(r)) - : ((i = t._POSignalsUtils.Util.newGuid()), this.keyStrokeMap.set(r, i))), - i - ); - }), - (e.prototype.createKeyboardInteractionEvent = function (e, n) { - var i = t._POSignalsUtils.Util.getSrcElement(n), - r = i.value ? i.value.toString().length : 0; - return { - type: e, - eventTs: n.timeStamp, - epochTs: Date.now(), - selectionStart: t._POSignalsUtils.Util.getElementSelectionStart(i), - selectionEnd: t._POSignalsUtils.Util.getElementSelectionEnd(i), - key: n.key, - keystrokeId: null, - currentLength: r, - }; - }), - (e.prototype.enrichKeyboardEvent = function (e, n) { - (this.modifiersKeys.indexOf(e.key) >= 0 || this.specialKeys.indexOf(e.key) >= 0) && - (n.key = e.key), - (n.keystrokeId = this.getKeystrokeId(e, n.type)); - var i = t._POSignalsUtils.Util.getSrcElement(e); - n.currentLength = String(i.value).length; - }), - (e.prototype.onFocus = function (e) { - var n, i; - try { - if (!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)) - return void this._onInteraction.dispatch(this, null); - e = this.getKeyboardEvent(e); - var r = this.getInteractionFromElement(e); - if ( - (this.countEvent(e.type, r), - t.PointerConfig.instance.pointerParams.eventsToIgnore.has(e.type)) - ) - return; - if (r) { - var o = this.createKeyboardInteractionEvent('focus', e); - r.events.push(o); - var a = this.uiControlManager.createUIControlData(e); - a && - ((r.uiControl = { uiElement: a.uiElement, enrichedData: a.enrichedData }), - (null === (i = null === (n = a.uiElement) || void 0 === n ? void 0 : n.id) || - void 0 === i - ? void 0 - : i.length) > 0 && - t._POSignalsUtils.Logger.info( - "Typing in element with id '" + a.uiElement.id + "'", - )); - } - } catch (e) { - t._POSignalsUtils.Logger.warn('error in keyboard focus handler', e); + case h.Right: { + a = c.GestureType.FlingRight; + break; } - }), - (e.prototype.onKeyUp = function (e) { - try { - if ( - ((13 !== (e = this.getKeyboardEvent(e)).keyCode && 13 !== e.which) || - this._onEnterPress.dispatch(this, t._POSignalsUtils.Util.getSrcElement(e)), - !this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)) - ) - return void this._onInteraction.dispatch(this, null); - var n = this.getInteractionFromElement(e); - if ( - (this.countEvent(e.type, n), - t.PointerConfig.instance.pointerParams.eventsToIgnore.has(e.type)) - ) - return; - if (n) { - var i = this.createKeyboardInteractionEvent('keyup', e); - this.enrichKeyboardEvent(e, i), n.events.push(i); - } else this.keyStrokeMap.delete(this.getKeyCode(e)); - } catch (e) { - t._POSignalsUtils.Logger.warn('error in keyUp handler', e); + case h.Down: { + a = c.GestureType.FlingDown; + break; } - }), - (e.prototype.isEmpty = function () { - return 0 === this.interactionsMap.size; - }), - (e.prototype.onKeyDown = function (e) { - try { - if (!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)) - return void this._onInteraction.dispatch(this, null); - e = this.getKeyboardEvent(e); - var n = this.getInteractionFromElement(e); - if ( - (this.countEvent(e.type, n), - t.PointerConfig.instance.pointerParams.eventsToIgnore.has(e.type)) - ) - return; - if (n) { - var i = this.createKeyboardInteractionEvent('keydown', e); - this.enrichKeyboardEvent(e, i), n.events.push(i); - } - } catch (e) { - t._POSignalsUtils.Logger.warn('error in keyDown handler', e); + case h.Left: { + a = c.GestureType.FlingLeft; + break; } - }), - (e.prototype.onBlur = function (e) { - try { - e = this.getKeyboardEvent(e); - var n = this.getInteractionFromElement(e); - if (!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)) - return void this._onInteraction.dispatch(this, null); - if ( - (this.countEvent(e.type, n), - t.PointerConfig.instance.pointerParams.eventsToIgnore.has(e.type)) - ) - return; - if (n) { - var i = this.createKeyboardInteractionEvent('blur', e); - n.events.push(i), - (n.duration = this.delegate.getInteractionDuration(n.events)), - (n.numOfDeletions = this.calculateNumOfDeletions(n.events)); - var r = t._POSignalsUtils.Util.getSrcElement(e); - this.interactionsMap.delete(r), this._onInteraction.dispatch(this, n); - } - } catch (e) { - t._POSignalsUtils.Logger.warn('error in blur handler', e); + } + else if (this.isScroll(r)) + switch (s) { + case h.Up: { + a = c.GestureType.ScrollUp; + break; } - }), - (e.prototype.calculateNumOfDeletions = function (t) { - if (!(null === t || void 0 === t ? void 0 : t[0])) return 0; - for (var e = 0, n = t[0].currentLength, i = 1; i < t.length; i++) - t[i].currentLength < n && e++, (n = t[i].currentLength); - return e; - }), - Object.defineProperty(e.prototype, 'fieldsIdentifications', { - get: function () { - return this._fieldsIdentifications; - }, - enumerable: !1, - configurable: !0, - }), - e + case h.Right: { + a = c.GestureType.ScrollRight; + break; + } + case h.Down: { + a = c.GestureType.ScrollDown; + break; + } + case h.Left: { + a = c.GestureType.ScrollLeft; + break; + } + } + return a; + } + pushSnapshot(r) { + if (r.changedTouches && r.changedTouches.length > 0) + for (let a = 0; a < r.changedTouches.length; a++) { + const s = r.changedTouches.item(a), + i = s.radiusX && s.radiusY ? (s.radiusX + s.radiusY) / 2 : null; + this.snapshotStartTime.has(s.identifier) || + this.snapshotStartTime.set(s.identifier, Date.now()); + const t = this.getTouchSnapshots(s.identifier); + t.length < c.PointerConfig.instance.pointerParams.maxSnapshotsCount && + t.push({ + type: r.type, + eventTs: r.timeStamp, + epochTs: Date.now(), + relativeX: s.screenX, + relativeY: s.screenY, + x: s.clientX, + y: s.clientY, + pressure: s.force, + size: i, + xaccelerometer: this.sensors.accX, + yaccelerometer: this.sensors.accY, + zaccelerometer: this.sensors.accZ, + xlinearaccelerometer: this.sensors.lienarAccX, + ylinearaccelerometer: this.sensors.lienarAccY, + zlinearaccelerometer: this.sensors.lienarAccZ, + xrotation: this.sensors.rotX, + yrotation: this.sensors.rotY, + zrotation: this.sensors.rotZ, + radiusX: s.radiusX, + radiusY: s.radiusY, + rotationAngle: s.rotationAngle, + pageX: s.pageX, + pageY: s.pageY, + getX() { + return s.screenX; + }, + getY() { + return s.screenY; + }, + }); + } + } + dispatchGesture(r, a) { + const s = this.touchSnapshotsMap.get(a) || [], + i = s.filter((t) => t.type === 'touchmove'); + this._onGesture.dispatch(this, { + epochTs: this.snapshotStartTime.get(a) || 0, + counter: this.delegate.gesturesCounter, + type: r, + events: s, + eventCounters: this.countEvents(s), + duration: this.delegate.getInteractionDuration(s), + additionalData: this.delegate.additionalData, + uiControl: void 0, + timeProximity: c._POSignalsUtils.Util.calculateMeanTimeDeltasBetweenEvents(i), + meanEuclidean: c._POSignalsUtils.Util.calculateMeanDistanceBetweenPoints(i), + reduction: {}, + quality: '', + }), + this.clearTouchSnapshots(a); + } + isTap(r) { + const a = Math.abs(r[0].x - r[1].x), + s = Math.abs(r[0].y - r[1].y); + return r.length == 2 && a < this.TAP_MOVEMENT_TRESHOLD && s < this.TAP_MOVEMENT_TRESHOLD; + } + isFling(r) { + return r.length > 1 && r[r.length - 1].eventTs - r[0].eventTs < this.SCROLL_MIN_DURATION; + } + isScroll(r) { + return r.length > 1 && r[r.length - 1].eventTs - r[0].eventTs > this.SCROLL_MIN_DURATION; + } + getDirection(r) { + const a = this.calcAngle(r[0], r[r.length - 1]); + return a > 90 - this.SWIPE_MAX_ANGLE && a <= 90 + this.SWIPE_MAX_ANGLE + ? h.Up + : a > 180 - this.SWIPE_MAX_ANGLE && a <= 180 + this.SWIPE_MAX_ANGLE + ? h.Right + : a > 270 - this.SWIPE_MAX_ANGLE && a <= 270 + this.SWIPE_MAX_ANGLE + ? h.Down + : h.Left; + } + calcAngle(r, a) { + return (Math.atan2(a.y - r.y, a.x - r.x) * 180) / Math.PI + 180; + } + } + c.GestureEvents = p; + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + class h { + constructor(n) { + (this.key = n), (this.cache = this.loadFromStorage()); + } + loadFromStorage() { + let n = h.sessionStorage.getItem(this.key); + return n || (n = JSON.stringify([])), JSON.parse(n); + } + get() { + return this.cache; + } + get length() { + return this.cache.length; + } + push(n) { + const r = this.cache.push(n); + return h.sessionStorage.setItem(this.key, JSON.stringify(this.cache)), r; + } + set(n) { + (this.cache = n), h.sessionStorage.setItem(this.key, JSON.stringify(this.cache)); + } + remove(n) { + this.cache.splice(n, 1), h.sessionStorage.setItem(this.key, JSON.stringify(this.cache)); + } + concat(n) { + return this.cache.concat(n); + } + clear() { + (this.cache = []), h.sessionStorage.removeItem(this.key); + } + } + (h.sessionStorage = c._POSignalsStorage.SessionStorage.instance.sessionStorage), + (c.StorageArray = h); + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + class h { + constructor() { + (this.MAX_TAGS = 10), + (this._tags = new c.StorageArray(c._POSignalsUtils.Constants.CAPTURED_TAGS)); + } + static get instance() { + return h._instance || (h._instance = new h()), h._instance; + } + get tags() { + return this._tags.get(); + } + set disableTags(n) { + this._disableTags = n; + } + setTag(n, r) { + var a; + if (this._disableTags) return; + if (!c.PointerConfig.instance.pointerParams.enabled) { + c._POSignalsUtils.Logger.info("Can't add tag, PingOneSignals SDK is disabled"); + return; + } + if (!n) { + c._POSignalsUtils.Logger.info("Can't add tag, missing name"); + return; + } + const s = c.PointerConfig.instance.pointerParams.tagsBlacklistRegex; + if (s && (n.match(s) || (typeof r == 'string' && r != null && r.match(s)))) { + c._POSignalsUtils.Logger.info('Tag name or value is blacklisted'); + return; + } + if (this._tags.length >= this.MAX_TAGS) return; + typeof r != 'number' + ? this._tags.push({ + name: n.trim(), + value: + ((a = r == null ? void 0 : r.trim) === null || a === void 0 ? void 0 : a.call(r)) || + void 0, + epochTs: Date.now(), + timestamp: Date.now(), + }) + : this._tags.push({ + name: n.trim(), + value: r, + epochTs: Date.now(), + timestamp: Date.now(), + }); + const i = r ? `${n}:${r}` : n; + c._POSignalsUtils.Logger.info(`Add tag: ${i}`); + } + reset() { + this._tags.clear(); + } + } + c.Tags = h; + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + class h { + constructor(n) { + this.client = n; + } + calculateStrategyResult(n, r) { + return { + shouldCollect: + this.client.getBufferSize() < c.PointerConfig.instance.pointerParams.bufferSize, + }; + } + } + c.FirstInteractionsStrategy = h; + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + let h; + (function (n) { + (n[(n.RICH = 3)] = 'RICH'), + (n[(n.CLICK = 2)] = 'CLICK'), + (n[(n.MOVE = 1)] = 'MOVE'), + (n[(n.POOR = 0)] = 'POOR'); + })(h || (h = {})); + class p { + constructor(r) { + (this.client = r), + (this.MAX_INTERACTIONS_PER_TYPE = 7), + (this.RICH_MOUSE_MOVES_AMOUNT = 8), + (this.MIN_KEYBOARD_EVENTS = 6), + (this.MIN_TOUCH_EVENTS = 20); + } + isRichMouseInteraction(r) { + return r.mousemove >= this.RICH_MOUSE_MOVES_AMOUNT && this.isClickInteraction(r); + } + isClickInteraction(r) { + return r.mousedown > 0 && r.mouseup > 0; + } + isMoveInteraction(r) { + return r.mousemove >= this.RICH_MOUSE_MOVES_AMOUNT; + } + classifyMouseInteraction(r) { + const a = c._POSignalsUtils.Util.typesCounter(r.events); + return this.isRichMouseInteraction(a) + ? h.RICH + : this.isClickInteraction(a) + ? h.CLICK + : this.isMoveInteraction(a) + ? h.MOVE + : h.POOR; + } + classifyKeyboardInteraction(r) { + return r.events.length >= this.MIN_KEYBOARD_EVENTS ? h.RICH : h.POOR; + } + classifyTouchInteraction(r) { + return r.events.length >= this.MIN_TOUCH_EVENTS ? h.RICH : h.POOR; + } + handleMouseInteraction(r, a) { + const i = Date.now(), + t = this.classifyMouseInteraction(r), + e = this.getEnumKeyByValue(t); + if (a.mouse.interactions.length < this.MAX_INTERACTIONS_PER_TYPE) + return { shouldCollect: !0, quality: e }; + if (t === h.RICH) { + const x = this.findOldestInteractionWithLowestQuality(a.mouse.interactions); + if (x !== -1) + return { shouldCollect: !0, remove: { type: 'mouse', index: x }, quality: e }; + } + const [l, o] = this.splitInteractionsByTime(a.mouse.interactions, i, 18e4); + return l.length < 2 + ? this.handleOlderInteractions(o, e) + : this.handleRecentInteractions(l, o, t, e); + } + splitInteractionsByTime(r, a, s) { + return r.reduce((i, t) => (t.epochTs >= a - s ? i[0].push(t) : i[1].push(t), i), [[], []]); + } + handleOlderInteractions(r, a) { + const s = this.findOldestInteractionWithLowestQuality(r); + return s !== -1 + ? { shouldCollect: !0, remove: { type: 'mouse', index: s }, quality: a } + : { shouldCollect: !1, quality: a }; + } + handleRecentInteractions(r, a, s, i) { + const t = this.findOldestInteractionWithLowestQuality(r, s); + if (t !== -1) { + const e = r[t], + l = this.client.getBehavioralData().mouse.interactions.indexOf(e), + o = this.findOldestInteractionWithLowestQuality( + a, + h[this.client.getBehavioralData().mouse.interactions[l].quality], + ); + return o !== -1 + ? { shouldCollect: !0, remove: { type: 'mouse', index: o }, quality: i } + : { shouldCollect: !0, remove: { type: 'mouse', index: l }, quality: i }; + } + return { shouldCollect: !1, quality: i }; + } + handleKeyboardInteraction(r, a) { + const i = Date.now(), + t = this.classifyKeyboardInteraction(r), + e = this.getEnumKeyByValue(t); + if (a.keyboard.interactions.length < this.MAX_INTERACTIONS_PER_TYPE) + return { shouldCollect: !0, quality: e }; + if (t === h.RICH) { + const x = this.findOldestInteractionWithLowestQuality(a.keyboard.interactions); + if (x !== -1) + return { shouldCollect: !0, remove: { type: 'keyboard', index: x }, quality: e }; + } + const [l, o] = this.splitInteractionsByTime(a.keyboard.interactions, i, 18e4); + return l.length < 2 + ? this.handleOlderInteractions(o, e) + : this.handleRecentInteractions(l, o, t, e); + } + handleTouchInteraction(r, a) { + const i = Date.now(), + t = this.classifyTouchInteraction(r), + e = this.getEnumKeyByValue(t); + if (a.touch.interactions.length < this.MAX_INTERACTIONS_PER_TYPE) + return { shouldCollect: !0, quality: e }; + if (t === h.RICH) { + const x = this.findOldestInteractionWithLowestQuality(a.touch.interactions); + if (x !== -1) + return { shouldCollect: !0, remove: { type: 'touch', index: x }, quality: e }; + } + const [l, o] = this.splitInteractionsByTime(a.touch.interactions, i, 18e4); + return l.length < 2 + ? this.handleOlderInteractions(o, e) + : this.handleRecentInteractions(l, o, t, e); + } + calculateStrategyResult(r, a) { + const s = this.client.getBehavioralData(); + switch (a) { + case 'mouse': + return this.handleMouseInteraction(r, s); + case 'keyboard': + return this.handleKeyboardInteraction(r, s); + case 'touch': + return this.handleTouchInteraction(r, s); + default: + throw new Error(`Unknown interaction type: ${a}`); + } + } + getEnumKeyByValue(r) { + return Object.keys(h).find((a) => h[a] === r); + } + findOldestInteractionWithLowestQuality(r, a) { + let s = a != null ? a : h.RICH, + i = -1, + t = Number.MAX_SAFE_INTEGER; + for (let e = 0; e < r.length; e++) { + const l = h[r[e].quality]; + (l < s || (l === s && r[e].epochTs < t)) && ((s = l), (t = r[e].epochTs), (i = e)); + } + return i; + } + } + c.PriorityStrategy = p; + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + let h; + (function (n) { + (n[(n.FIRST_INTERACTIONS = 0)] = 'FIRST_INTERACTIONS'), + (n[(n.PRIORITY_INTERACTIONS = 1)] = 'PRIORITY_INTERACTIONS'); + })((h = c.BufferingStrategyType || (c.BufferingStrategyType = {}))); + class p { + static createBufferingStrategy(r, a) { + switch (r) { + case h.FIRST_INTERACTIONS: + return new c.FirstInteractionsStrategy(a); + case h.PRIORITY_INTERACTIONS: + return new c.PriorityStrategy(a); + } + } + } + c.StrategyFactory = p; + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + class h { + constructor(n) { + (this.sessionData = n), + (this.instanceUUID = c._POSignalsUtils.Util.newGuid()), + (this._isBehavioralDataPaused = !1), + (this.started = !1), + (this.initQueue = new c.PromiseQueue(1)); + } + static instance() { + if (!this._instance) { + const n = c._POSignalsStorage.SessionStorage.instance; + if (!document.body) + throw ( + (c._POSignalsUtils.Logger.error( + 'PingOne Signals can be started only after DOM Ready!', + ), + new Error('PingOne Signals can be started only after DOM Ready!')) + ); + this._instance = new c.Client(n, c.BufferingStrategyType.PRIORITY_INTERACTIONS); + } + return this._instance; + } + async getData() { + if (!this.startedPromise) throw new Error('SDK not initialized'); + return await this.startedPromise, await this.dataHandler.getData(Date.now()); + } + addTag(n, r) { + c.Tags.instance.setTag(n, r); + } + async start(n = {}) { + var r, a, s, i; + if ( + (((r = n.waitForWindowLoad) !== null && r !== void 0 ? r : !0) && + (await this.loadEventPromise()), + (this.initParams = n), + this.validateStartParams(n), + (this.clientVersion = c._POSignalsUtils.Constants.CLIENT_VERSION), + this.started) + ) { + c._POSignalsUtils.Logger.warn('SDK already initialized'); + return; + } + (this.browserInfo = new c._POSignalsUtils.BrowserInfo()), + (c._POSignalsUtils.Logger.isLogEnabled = !!n.consoleLogEnabled || !!n.devEnv), + c._POSignalsUtils.Logger.info('Starting Signals SDK...'), + (c.Tags.instance.disableTags = !!this.initParams.disableTags), + this.sessionData.setStorageConfig(n); + const e = c.PointerConfig.instance.pointerParams, + l = { + additionalMediaCodecs: e.additionalMediaCodecs, + browserInfo: this.browserInfo, + fingerprintTimeoutMillis: e.fingerprintTimeoutMillis, + metadataBlackList: new Set(e.metadataBlackList.concat(n.deviceAttributesToIgnore)), + propertyDescriptors: e.propertyDescriptors, + webRtcUrl: e.webRtcUrl, + dataPoints: e.metadataDataPoints, + }; + (this.localAgentAccessor = new c._POSignalsMetadata.LocalAgentAccessor( + (a = n.agentPort) !== null && a !== void 0 + ? a + : c._POSignalsUtils.Constants.PINGID_AGENT_DEFAULT_PORT, + (s = n.agentTimeout) !== null && s !== void 0 + ? s + : c._POSignalsUtils.Constants.PINGID_AGENT_DEFAULT_TIMEOUT, + )), + (this.metadata = new c._POSignalsMetadata.Metadata( + this.sessionData, + l, + n.externalIdentifiers, + this.localAgentAccessor, + )), + (this.dataHandler = new c.DataHandler( + this.clientVersion, + this.instanceUUID, + this.initParams, + this.metadata, + this, + this.sessionData, + )), + (!((i = this.initParams.behavioralDataCollection) !== null && i !== void 0) || i) && + this.refreshListening(), + n.lazyMetadata || (this.metadata.getDeviceAttributes(), this.metadata.getLocalAgentJwt()), + (this.started = !0); + try { + this.logInit(), this.addStartupTags(); + } catch (o) { + c._POSignalsUtils.Logger.warn('SDK post init failed', o); + } + } + logInit() { + var n, r; + c._POSignalsUtils.Logger.info( + `PingOne Signals initialized. ${JSON.stringify({ timestamp: new Date().getTime(), sdkVersion: this.clientVersion, instanceUUID: this.instanceUUID, tabUUID: this.sessionData.tabUUID }, null, 2)}`, ); - })(); - t.Keyboard = e; - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function (t) { - var e = (function () { - function e(e, n) { - var i, - r = this, - o = t.PointerConfig.instance.pointerParams.uiModelingElementFilters, - a = t._POSignalsUtils.Util.getAttribute, - s = null === (i = e.getBoundingClientRect) || void 0 === i ? void 0 : i.call(e); - (this._htmlElement = e), - (this._data = { - location: this.getUIElementAttribute(o.location, function () { - return window.location.href; - }), - id: this.getUIElementAttribute(o.id, function () { - return a(e, 'id'); - }), - aria_label: this.getUIElementAttribute(o.aria_label, function () { - return a(e, 'aria-label'); - }), - data_st_field: this.getUIElementAttribute(o.data_st_field, function () { - return n.getElementsStID(e); - }), - data_st_tag: this.getUIElementAttribute(o.data_st_tag, function () { - return a(e, 'data-st-tag'); - }), - data_selenium: this.getUIElementAttribute(o.data_selenium, function () { - return a(e, 'data-selenium'); - }), - data_selenium_id: this.getUIElementAttribute(o.data_selenium_id, function () { - return a(e, 'data-selenium-id'); - }), - data_testid: this.getUIElementAttribute(o.data_testid, function () { - return a(e, 'data-testid'); - }), - data_test_id: this.getUIElementAttribute(o.data_test_id, function () { - return a(e, 'data-test-id'); - }), - data_qa_id: this.getUIElementAttribute(o.data_qa_id, function () { - return a(e, 'data-qa-id'); - }), - data_id: this.getUIElementAttribute(o.data_id, function () { - return a(e, 'data-id'); - }), - name: this.getUIElementAttribute(o.name, function () { - return a(e, 'name'); - }), - placeholder: this.getUIElementAttribute(o.placeholder, function () { - return a(e, 'placeholder'); - }), - role: this.getUIElementAttribute(o.role, function () { - return a(e, 'role'); - }), - type: this.getUIElementAttribute(o.type, function () { - return a(e, 'type'); - }), - nodeTypeInt: this.getUIElementAttribute(o.nodeTypeInt, function () { - return e.nodeType; - }), - nodeName: this.getUIElementAttribute(o.nodeName, function () { - return e.nodeName; - }), - cursorType: this.getUIElementAttribute(o.cursorType, function () { - return window.getComputedStyle(e).cursor; - }), - text: this.getUIElementAttribute(o.text, function () { - return r.getElementText(e); - }), - textLength: this.getUIElementAttribute(o.textLength, function () { - var t; - return ( - (null === (t = r.getElementText(e)) || void 0 === t ? void 0 : t.length) || null - ); - }), - bottom: this.getUIElementAttribute(o.bottom, function () { - return null === s || void 0 === s ? void 0 : s.bottom; - }), - height: this.getUIElementAttribute(o.height, function () { - return null === s || void 0 === s ? void 0 : s.height; - }), - left: this.getUIElementAttribute(o.left, function () { - return null === s || void 0 === s ? void 0 : s.left; - }), - right: this.getUIElementAttribute(o.right, function () { - return null === s || void 0 === s ? void 0 : s.right; - }), - top: this.getUIElementAttribute(o.top, function () { - return null === s || void 0 === s ? void 0 : s.top; - }), - width: this.getUIElementAttribute(o.width, function () { - return null === s || void 0 === s ? void 0 : s.width; - }), - x: this.getUIElementAttribute(o.x, function () { - return null === s || void 0 === s ? void 0 : s.x; - }), - y: this.getUIElementAttribute(o.y, function () { - return null === s || void 0 === s ? void 0 : s.y; - }), - }), - (this._data.elementId = this.getStrongestElementID()); + const a = () => + c._POSignalsUtils.Logger.info(`Token Ready: ${window._pingOneSignalsToken}`), + s = () => { + c._POSignalsUtils.Logger.info('Signals token fetch is disabled'), + (window._pingOneSignalsToken = void 0); + }, + i = 'uninitialized', + t = 'skipped'; + ((n = window._pingOneSignalsToken) === null || n === void 0 + ? void 0 + : n.substring(0, t.length)) === t + ? s() + : ((r = window._pingOneSignalsToken) === null || r === void 0 + ? void 0 + : r.substring(0, i.length)) !== i && a(), + document.addEventListener('PingOneSignalsTokenReadyEvent', a), + document.addEventListener('PingOneSignalsTokenSkippedEvent', s); + } + get isBehavioralDataPaused() { + return this._isBehavioralDataPaused; + } + getSignalsToken() { + let n = ''; + if ( + typeof window._pingOneSignalsToken == 'string' && + 0 <= window._pingOneSignalsToken.indexOf(':') + ) { + const r = window._pingOneSignalsToken.match(/t:(.*?)(&|$)/g); + r && 0 < r.length && (n = r[0].replace(/&s*$/, '').replace(/t:/, '')); + } else typeof window._pingOneSignalsToken == 'string' && (n = window._pingOneSignalsToken); + return n; + } + pauseBehavioralData() { + this._isBehavioralDataPaused || + ((this._isBehavioralDataPaused = !0), this.addTag('SDK paused behaviorally')); + } + resumeBehavioralData() { + this._isBehavioralDataPaused && + ((this._isBehavioralDataPaused = !1), this.addTag('SDK resumed behaviorally')); + } + async startSignals(n) { + try { + return ( + (this.startedPromise = this.initQueue.add(() => this.start(n))), + await this.startedPromise + ); + } catch (r) { + const a = { + id: c._POSignalsUtils.POErrorCodes.INITIALIZATION_ERROR, + message: r.message, + code: 'SDK initialization failed.', + }; + throw new Error(JSON.stringify(a)); + } + } + validateStartParams(n) { + if (!document.body) + throw ( + (c._POSignalsUtils.Logger.error('PingOne Signals can be started only after DOM Ready!'), + new Error('PingOne Signals can be started only after DOM Ready!')) + ); + n.externalIdentifiers = n.externalIdentifiers || {}; + } + async loadEventPromise() { + return new Promise((n) => { + document.readyState === 'complete' + ? n() + : window.addEventListener('load', (r) => { + n(); + }); + }); + } + addStartupTags() { + this.addTag('SDK started'), + document.referrer && this.addTag('referrer', document.referrer), + this.addTag('location', window.location.href); + } + } + c.ClientBase = h; + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + class h { + constructor(n) { + (this.BEHAVIORAL_TYPE = 'indirect'), + (this._isStarted = !1), + (this._onClipboardEvent = new c.EventDispatcher()), + (this.delegate = n), + (this.onClipboardEventHandler = this.onEvent.bind(this)); + } + get isStarted() { + return this._isStarted; + } + get onClipboardEvent() { + return this._onClipboardEvent.asEvent(); + } + onEvent(n) { + try { + if (!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)) return; + this._onClipboardEvent.dispatch(this, this.createClipboardEvent(n)); + } catch (r) { + c._POSignalsUtils.Logger.warn('error in clipboard handler', r); + } + } + createClipboardEvent(n) { + const r = c._POSignalsUtils.Util.getSrcElement(n); + return { + category: 'ClipboardEvent', + type: n.type, + eventTs: n.timeStamp, + epochTs: new Date().getTime(), + additionalData: { + locationHref: location.href, + stId: this.delegate.getElementsStID(r), + elementId: r == null ? void 0 : r.id, + }, + }; + } + start() { + this._isStarted || + ((this._isStarted = !0), + this.delegate.addEventListener(document, 'cut', this.onClipboardEventHandler), + this.delegate.addEventListener(document, 'copy', this.onClipboardEventHandler), + this.delegate.addEventListener(document, 'paste', this.onClipboardEventHandler)); + } + stop() { + this._isStarted && + ((this._isStarted = !1), + document.removeEventListener('cut', this.onClipboardEventHandler), + document.removeEventListener('copy', this.onClipboardEventHandler), + document.removeEventListener('paste', this.onClipboardEventHandler)); + } + } + c.ClipboardEvents = h; + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + class h { + constructor(n) { + (this.BEHAVIORAL_TYPE = 'indirect'), + (this._isStarted = !1), + (this._onDragEvent = new c.EventDispatcher()), + (this.delegate = n), + (this.onDragEventHandler = this.onEvent.bind(this)); + } + get isStarted() { + return this._isStarted; + } + get onDragEvent() { + return this._onDragEvent.asEvent(); + } + createDragEvent(n) { + return { + category: 'DragEvent', + type: n.type, + eventTs: n.timeStamp, + epochTs: new Date().getTime(), + additionalData: { locationHref: location.href }, + }; + } + onEvent(n) { + try { + if (!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)) return; + this._onDragEvent.dispatch(this, this.createDragEvent(n)); + } catch (r) { + c._POSignalsUtils.Logger.warn('error in drag handler', r); + } + } + start() { + this._isStarted || + ((this._isStarted = !0), + this.delegate.addEventListener(document, 'dragstart', this.onDragEventHandler), + this.delegate.addEventListener(document, 'dragexit', this.onDragEventHandler), + this.delegate.addEventListener(document, 'drop', this.onDragEventHandler), + this.delegate.addEventListener(document, 'dragend', this.onDragEventHandler)); + } + stop() { + this._isStarted && + ((this._isStarted = !1), + document.removeEventListener('dragstart', this.onDragEventHandler), + document.removeEventListener('dragexit', this.onDragEventHandler), + document.removeEventListener('drop', this.onDragEventHandler), + document.removeEventListener('dragend', this.onDragEventHandler)); + } + } + c.DragEvents = h; + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + class h { + constructor(n) { + (this.BEHAVIORAL_TYPE = 'indirect'), + (this._isStarted = !1), + (this._onFocusEvent = new c.EventDispatcher()), + (this.delegate = n), + (this.onFocusEventHandler = this.onEvent.bind(this)); + } + get isStarted() { + return this._isStarted; + } + get onFocusEvent() { + return this._onFocusEvent.asEvent(); + } + getRelatedTarget(n) { + if (!n.relatedTarget) return { type: '', stId: '', elementId: '' }; + const r = { + type: c._POSignalsUtils.Util.getObjectType(n.relatedTarget), + stId: '', + elementId: '', + }; + n.relatedTarget.id && (r.elementId = n.relatedTarget.id); + try { + const a = n.relatedTarget; + r.stId = this.delegate.getElementsStID(a); + } catch {} + return r; + } + createFocusEvent(n) { + const r = c._POSignalsUtils.Util.getSrcElement(n), + a = this.getRelatedTarget(n); + return { + category: 'FocusEvent', + type: n.type, + eventTs: n.timeStamp, + epochTs: new Date().getTime(), + additionalData: { + locationHref: location.href, + stId: this.delegate.getElementsStID(r), + elementId: r ? r.id : '', + relatedTarget: a, + }, + }; + } + onEvent(n) { + try { + if (!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)) return; + this._onFocusEvent.dispatch(this, this.createFocusEvent(n)); + } catch (r) { + c._POSignalsUtils.Logger.warn('error in focus handler', r); + } + } + start() { + this._isStarted || + ((this._isStarted = !0), + this.delegate.addEventListener(document, 'DOMFocusIn', this.onFocusEventHandler), + this.delegate.addEventListener(document, 'DOMFocusOut', this.onFocusEventHandler), + this.delegate.addEventListener(document, 'focus', this.onFocusEventHandler), + this.delegate.addEventListener(document, 'focusin', this.onFocusEventHandler), + this.delegate.addEventListener(document, 'focusout', this.onFocusEventHandler)); + } + stop() { + this._isStarted && + ((this._isStarted = !1), + document.removeEventListener('DOMFocusIn', this.onFocusEventHandler), + document.removeEventListener('DOMFocusOut', this.onFocusEventHandler), + document.removeEventListener('focus', this.onFocusEventHandler), + document.removeEventListener('focusin', this.onFocusEventHandler), + document.removeEventListener('focusout', this.onFocusEventHandler)); + } + } + c.FocusEvents = h; + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + class h { + constructor(n) { + (this.BEHAVIORAL_TYPE = 'indirect'), + (this._isStarted = !1), + (this._onUIEvent = new c.EventDispatcher()), + (this.delegate = n), + (this.onUIEventHandler = this.onEvent.bind(this)); + } + get isStarted() { + return this._isStarted; + } + get onUIEvent() { + return this._onUIEvent.asEvent(); + } + createUIEvent(n) { + return { + category: 'UIEvent', + type: n.type, + eventTs: n.timeStamp, + epochTs: new Date().getTime(), + additionalData: { locationHref: location.href }, + }; + } + onEvent(n) { + try { + if (!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)) return; + this._onUIEvent.dispatch(this, this.createUIEvent(n)); + } catch (r) { + c._POSignalsUtils.Logger.warn('error in UIEvent handler', r); + } + } + start() { + this._isStarted || + ((this._isStarted = !0), + this.delegate.addEventListener(document, 'resize', this.onUIEventHandler), + this.delegate.addEventListener(document, 'scroll', this.onUIEventHandler), + this.delegate.addEventListener(document, 'select', this.onUIEventHandler)); + } + stop() { + this._isStarted && + ((this._isStarted = !1), + document.removeEventListener('resize', this.onUIEventHandler), + document.removeEventListener('scroll', this.onUIEventHandler), + document.removeEventListener('select', this.onUIEventHandler)); + } + } + c.UIEvents = h; + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + class h { + constructor(n) { + (this.BEHAVIORAL_TYPE = 'indirect'), + (this.visibilityChangeEventName = 'visibilitychange'), + (this.hiddenProperty = 'hidden'), + (this._isStarted = !1), + (this._onGeneralEvent = new c.EventDispatcher()), + (this.delegate = n), + (this.onGeneralEventHandler = this.onEvent.bind(this)), + (this.onLangChangeHandler = this.onLangChangeEvent.bind(this)), + (this.onOrientationChangeHandler = this.onOrientationChangeEvent.bind(this)), + (this.onVisibilityChangeHandler = this.onVisibilityChangeEvent.bind(this)), + typeof document.msHidden != 'undefined' + ? ((this.hiddenProperty = 'msHidden'), + (this.visibilityChangeEventName = 'msvisibilitychange')) + : typeof document.webkitHidden != 'undefined' && + ((this.hiddenProperty = 'webkitHidden'), + (this.visibilityChangeEventName = 'webkitvisibilitychange')); + } + get isStarted() { + return this._isStarted; + } + get onGeneralEvent() { + return this._onGeneralEvent.asEvent(); + } + onEvent(n) { + try { + if (!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)) return; + this._onGeneralEvent.dispatch(this, this.createGeneralEvent(n)); + } catch (r) { + c._POSignalsUtils.Logger.warn('error in general event handler', r); } - return ( - Object.defineProperty(e.prototype, 'data', { - get: function () { - return t._POSignalsUtils.Util.filterReduce(this._data, function (t) { - return null != t && '' !== t; - }); - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'htmlElement', { - get: function () { - return this._htmlElement; - }, - enumerable: !1, - configurable: !0, - }), - (e.prototype.getUIElementAttribute = function (e, n) { - var i; - try { - if ( - null === (i = null === e || void 0 === e ? void 0 : e.enabled) || - void 0 === i || - i - ) { - var r = n(); - return ( - 'string' == typeof r && - ('number' == typeof (null === e || void 0 === e ? void 0 : e.maxLength) && - r.length > e.maxLength && - (r = r.substring(0, e.maxLength)), - (null === e || void 0 === e ? void 0 : e.filterRegex) && - (r = r.replace(new RegExp(e.filterRegex, 'g'), '*'))), - r - ); - } - } catch (e) { - t._POSignalsUtils.Logger.warn('Failed to add ui element attribute', e); - } - return null; - }), - (e.prototype.getStrongestElementID = function () { - return ( - this._data.data_st_field || - this._data.data_selenium_id || - this._data.data_selenium || - this._data.data_testid || - this._data.data_test_id || - this._data.data_qa_id || - this._data.data_id || - this._data.id || - '' - ); - }), - (e.prototype.getElementText = function (e) { - return e instanceof HTMLInputElement && !t._POSignalsUtils.Util.isClickableInput(e) - ? null - : t._POSignalsUtils.Util.getElementText(e); - }), - (e.prototype.equals = function (t) { - return ( - !!t && - !(t.location && location.href.indexOf(t.location) < 0) && - (!t.elementId || t.elementId === this._data.elementId) && - (!t.id || t.id === this._data.id) && - (!t.aria_label || t.aria_label === this._data.aria_label) && - (!t.data_st_field || t.data_st_field === this._data.data_st_field) && - (!t.data_st_tag || t.data_st_tag === this._data.data_st_tag) && - (!t.data_selenium || t.data_selenium === this._data.data_selenium) && - (!t.data_selenium_id || t.data_selenium_id === this._data.data_selenium_id) && - (!t.data_testid || t.data_testid === this._data.data_testid) && - (!t.data_test_id || t.data_test_id === this._data.data_test_id) && - (!t.data_qa_id || t.data_qa_id === this._data.data_qa_id) && - (!t.data_id || t.data_id === this._data.data_id) && - (!t.name || t.name === this._data.name) && - (!t.placeholder || t.placeholder === this._data.placeholder) && - (!t.role || t.role === this._data.role) && - (!t.type || t.type === this._data.type) && - (!t.nodeTypeInt || t.nodeTypeInt === this._data.nodeTypeInt) && - (!t.nodeName || t.nodeName === this._data.nodeName) && - (!t.cursorType || t.cursorType === this._data.cursorType) && - (!t.text || t.text === this._data.text) && - (!t.textLength || t.textLength === this._data.textLength) && - (!t.bottom || t.bottom === this._data.bottom) && - (!t.height || t.height === this._data.height) && - (!t.left || t.left === this._data.left) && - (!t.right || t.right === this._data.right) && - (!t.top || t.top === this._data.top) && - (!t.width || t.width === this._data.width) && - (!t.x || t.x === this._data.x) && - (!t.y || t.y === this._data.y) - ); - }), - (e.createCssSelector = function (t) { - var e = ''; - return ( - (null === t || void 0 === t ? void 0 : t.nodeName) && (e += t.nodeName.toLowerCase()), - (null === t || void 0 === t ? void 0 : t.id) && (e += '[id="' + t.id + '"]'), - (null === t || void 0 === t ? void 0 : t.aria_label) && - (e += '[aria-label="' + t.aria_label + '"]'), - (null === t || void 0 === t ? void 0 : t.data_st_field) && - (e += '[data-st-field="' + t.data_st_field + '"]'), - (null === t || void 0 === t ? void 0 : t.data_st_tag) && - (e += '[data-st-tag="' + t.data_st_tag + '"]'), - (null === t || void 0 === t ? void 0 : t.data_selenium) && - (e += '[data-selenium="' + t.data_selenium + '"]'), - (null === t || void 0 === t ? void 0 : t.data_selenium_id) && - (e += '[data-selenium-id="' + t.data_selenium_id + '"]'), - (null === t || void 0 === t ? void 0 : t.data_testid) && - (e += '[data-testid="' + t.data_testid + '"]'), - (null === t || void 0 === t ? void 0 : t.data_test_id) && - (e += '[data-test-id="' + t.data_test_id + '"]'), - (null === t || void 0 === t ? void 0 : t.data_qa_id) && - (e += '[data-qa-id="' + t.data_qa_id + '"]'), - (null === t || void 0 === t ? void 0 : t.data_id) && - (e += '[data-id="' + t.data_id + '"]'), - (null === t || void 0 === t ? void 0 : t.name) && (e += '[name="' + t.name + '"]'), - (null === t || void 0 === t ? void 0 : t.placeholder) && - (e += '[placeholder="' + t.placeholder + '"]'), - (null === t || void 0 === t ? void 0 : t.role) && (e += '[role="' + t.role + '"]'), - (null === t || void 0 === t ? void 0 : t.type) && (e += '[type="' + t.type + '"]'), - e - ); - }), - e - ); - })(); - t.UiElement = e; - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function (t) { - var e = (function () { - function e(t) { - this._clientDelegate = t; + } + onLangChangeEvent(n) { + try { + if (!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)) return; + const r = this.createGeneralEvent(n); + this._onGeneralEvent.dispatch(this, r); + } catch (r) { + c._POSignalsUtils.Logger.warn('error in LangChange event handler', r); } - return ( - (e.prototype.createUIControlData = function (e) { - var n = t._POSignalsUtils.Util.getSrcElement(e); - if (!n) return null; - var i = t.PointerConfig.instance.pointerParams.uiModelingBlacklistRegex; - if (i && window.location.href.match(i)) - return ( - t._POSignalsUtils.Logger.debug('ui control data is disabled for this url'), null - ); - var r = new t.UiElement(n, this._clientDelegate); - return this.findMatchingUiControl(r) || { uiElement: r.data }; - }), - (e.prototype.findMatchingUiControl = function (e, n) { - void 0 === n && (n = 0); - try { - var i = t.PointerConfig.instance.pointerParams.uiControlsConfig; - if (0 === i.length) return null; - if (n > t.PointerConfig.instance.pointerParams.uiModelingMaxMatchingParents) - return null; - for (var r = !1, o = 0, a = i; o < a.length; o++) { - var s = a[o]; - if ((s.tagConfig || s.enrichedData) && ((r = !0), e.equals(s.uiElement))) - return { - uiElement: e.data, - enrichedData: s.enrichedData, - tagConfig: s.tagConfig, - }; - } - if (!r) return null; - var u = e.htmlElement.parentElement; - if ((null === u || void 0 === u ? void 0 : u.nodeType) === Node.ELEMENT_NODE) { - var c = new t.UiElement(u, this._clientDelegate); - return this.findMatchingUiControl(c, n + 1); - } - } catch (e) { - t._POSignalsUtils.Logger.warn('failed to find matching ui control', e); - } - return null; - }), - (e.prototype.convertToTagValueConfig = function (e) { - var n; - return { - context: - null === (n = null === e || void 0 === e ? void 0 : e.uiElement) || void 0 === n - ? void 0 - : n.location, - valueSelector: t.UiElement.createCssSelector( - null === e || void 0 === e ? void 0 : e.uiElement, - ), - operation: null === e || void 0 === e ? void 0 : e.operation, - valueMandatory: null === e || void 0 === e ? void 0 : e.valueMandatory, - }; - }), - e - ); - })(); - t.UIControlManager = e; - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function (t) { - var e = (function () { - function e(e, n) { - (this.BEHAVIORAL_TYPE = 'mouse'), - (this._isStarted = !1), - (this._onInteraction = new t.EventDispatcher()), - (this._onClickEvent = new t.EventDispatcher()), - (this.lastMouseInteractionTimestamp = null), - (this.mouseEventsCounter = 0), - (this.eventCounters = { epochTs: Date.now() }), - (this.delegate = e), - (this.uiControlManager = n), - (this.wheelOptions = !!t._POSignalsUtils.Util.isPassiveSupported() && { passive: !0 }), - (this.onPointerHandle = this.onPointerEvent.bind(this)), - (this.onClickHandle = this.onClick.bind(this)), - (this.onDblclickHandle = this.onMouseClickEvent.bind(this)), - (this.onMousedownHandle = this.onMouseClickEvent.bind(this)), - (this.onMousemoveHandle = this.onMouseEvent.bind(this)), - (this.onMouseoutHandle = this.onMouseout.bind(this)), - (this.onMouseoverHandle = this.onMouseEvent.bind(this)), - (this.onMouseupHandle = this.onMouseClickEvent.bind(this)), - (this.onWheelHandle = this.onMouseEvent.bind(this)), - (this.interactionUpdateHandle = this.interactionUpdate.bind(this)); + } + onOrientationChangeEvent(n) { + try { + if (!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)) return; + const r = this.createGeneralEvent(n), + a = c._POSignalsUtils.Util.getDeviceOrientation(); + (r.additionalData.deviceOrientation = a.orientation), + (r.additionalData.deviceAngle = a.angle), + this._onGeneralEvent.dispatch(this, r); + } catch (r) { + c._POSignalsUtils.Logger.warn('error in OrientationChange event handler', r); } - return ( - Object.defineProperty(e.prototype, 'isStarted', { - get: function () { - return this._isStarted; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'onInteraction', { - get: function () { - return this._onInteraction.asEvent(); - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'onClickEvent', { - get: function () { - return this._onClickEvent.asEvent(); - }, - enumerable: !1, - configurable: !0, - }), - (e.prototype.countEvent = function (t) { - this.eventCounters[t] = (this.eventCounters[t] || 0) + 1; - }), - (e.prototype.interactionUpdate = function () { - this.lastMouseInteraction - ? Date.now() - this.lastMouseInteractionTimestamp >= - t.PointerConfig.instance.pointerParams.mouseIdleTimeoutMillis && this.dispatch() - : !this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE) && - Date.now() - this.lastMouseInteractionTimestamp <= - t.PointerConfig.instance.pointerParams.mouseIntervalMillis && - this.dispatch(); - }), - (e.prototype.enrichLastInteraction = function () { - var e; - if (this.lastMouseInteraction) { - (this.lastMouseInteraction.eventCounters = this.eventCounters), - (this.lastMouseInteraction.duration = this.delegate.getInteractionDuration( - this.lastMouseInteraction.events, - )); - var n = - null === (e = this.lastMouseInteraction.events) || void 0 === e - ? void 0 - : e.filter(function (t) { - return 'mousemove' === t.type; - }); - (this.lastMouseInteraction.timeProximity = - t._POSignalsUtils.Util.calculateMeanTimeDeltasBetweenEvents(n)), - (this.lastMouseInteraction.meanEuclidean = - t._POSignalsUtils.Util.calculateMeanDistanceBetweenPoints(n)); - } - }), - (e.prototype.dispatch = function () { - try { - this.enrichLastInteraction(), - this._onInteraction.dispatch(this, this.lastMouseInteraction), - (this.eventCounters = { epochTs: Date.now() }), - (this.lastMouseInteraction = null), - (this.mouseEventsCounter = 0); - } catch (e) { - t._POSignalsUtils.Logger.warn('Failed to dispatch mouse events', e); - } - }), - (e.prototype.updateInteraction = function (e, n) { - this.lastMouseInteraction || - (this.lastMouseInteraction = { + } + onVisibilityChangeEvent(n) { + try { + if (!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)) return; + const r = this.createGeneralEvent(n); + (r.additionalData.hidden = !!document[this.hiddenProperty]), + document.visibilityState && + (r.additionalData.visibilityState = document.visibilityState.toString()), + this._onGeneralEvent.dispatch(this, r); + } catch (r) { + c._POSignalsUtils.Logger.warn('error in VisibilityChange event handler', r); + } + } + createGeneralEvent(n) { + return { + category: 'Event', + type: n.type, + eventTs: n.timeStamp, + epochTs: new Date().getTime(), + additionalData: { locationHref: location.href }, + }; + } + start() { + this._isStarted || + ((this._isStarted = !0), + this.delegate.addEventListener( + document, + this.visibilityChangeEventName, + this.onVisibilityChangeHandler, + ), + this.delegate.addEventListener(document, 'change', this.onGeneralEventHandler), + this.delegate.addEventListener(document, 'fullscreenchange', this.onGeneralEventHandler), + this.delegate.addEventListener(document, 'invalid', this.onGeneralEventHandler), + this.delegate.addEventListener(window, 'languagechange', this.onLangChangeHandler), + this.delegate.addEventListener( + window, + 'orientationchange', + this.onOrientationChangeHandler, + ), + this.delegate.addEventListener(document, 'seeked', this.onGeneralEventHandler), + this.delegate.addEventListener(document, 'seeking', this.onGeneralEventHandler), + this.delegate.addEventListener(document, 'selectstart', this.onGeneralEventHandler), + this.delegate.addEventListener(document, 'selectionchange', this.onGeneralEventHandler), + this.delegate.addEventListener(document, 'submit', this.onGeneralEventHandler), + this.delegate.addEventListener(document, 'volumechange', this.onGeneralEventHandler), + this.delegate.addEventListener(document, 'reset', this.onGeneralEventHandler), + this.delegate.addEventListener(document, 'textInput', this.onGeneralEventHandler)); + } + stop() { + this._isStarted && + ((this._isStarted = !1), + document.removeEventListener( + this.visibilityChangeEventName, + this.onVisibilityChangeHandler, + ), + document.removeEventListener('change', this.onGeneralEventHandler), + document.removeEventListener('fullscreenchange', this.onGeneralEventHandler), + document.removeEventListener('invalid', this.onGeneralEventHandler), + window.removeEventListener('languagechange', this.onLangChangeHandler), + window.removeEventListener('orientationchange', this.onOrientationChangeHandler), + document.removeEventListener('seeked', this.onGeneralEventHandler), + document.removeEventListener('seeking', this.onGeneralEventHandler), + document.removeEventListener('selectstart', this.onGeneralEventHandler), + document.removeEventListener('selectionchange', this.onGeneralEventHandler), + document.removeEventListener('submit', this.onGeneralEventHandler), + document.removeEventListener('volumechange', this.onGeneralEventHandler), + document.removeEventListener('reset', this.onGeneralEventHandler), + document.removeEventListener('textInput', this.onGeneralEventHandler)); + } + } + c.GeneralEvents = h; + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + class h { + constructor(n) { + (this.DEFAULT_INDIRECT_IDLE_INTERVAL = 1e3), + (this.MAX_INDIRECT_EVENTS = 25), + (this._onIndirect = new c.EventDispatcher()), + (this.indirectEvents = []), + (this.idleTimeInMillis = this.DEFAULT_INDIRECT_IDLE_INTERVAL), + (this.lastIndirectEventTimestamp = 0), + (this._isStarted = !1), + (this.clipboardEvents = new c.ClipboardEvents(n)), + this.clipboardEvents.onClipboardEvent.subscribe(this.handleEvent.bind(this)), + (this.dragEvents = new c.DragEvents(n)), + this.dragEvents.onDragEvent.subscribe(this.handleEvent.bind(this)), + (this.focusEvents = new c.FocusEvents(n)), + this.focusEvents.onFocusEvent.subscribe(this.handleEvent.bind(this)), + (this.uiEvents = new c.UIEvents(n)), + this.uiEvents.onUIEvent.subscribe(this.handleEvent.bind(this)), + (this.generalEvents = new c.GeneralEvents(n)), + this.generalEvents.onGeneralEvent.subscribe(this.handleEvent.bind(this)), + (this.onTimeElapsedHandler = this.onTimeElapsed.bind(this)); + } + get onIndirect() { + return this._onIndirect.asEvent(); + } + async onTimeElapsed() { + this.indirectEvents.length > 0 && + new Date().getTime() - this.lastIndirectEventTimestamp >= this.idleTimeInMillis && + this.dispatch(); + } + handleEvent(n, r) { + (this.lastIndirectEventTimestamp = new Date().getTime()), this.pushEvent(r); + } + pushEvent(n) { + this.indirectEvents.push(n), + this.indirectEvents.length >= this.MAX_INDIRECT_EVENTS && this.dispatch(); + } + clearBuffer() { + const n = { events: this.indirectEvents }; + return (this.indirectEvents = []), n; + } + dispatch() { + try { + clearInterval(this.updateIntervalHandle), + this._onIndirect.dispatch(this, this.clearBuffer()), + (this.updateIntervalHandle = setInterval( + this.onTimeElapsedHandler, + c.PointerConfig.instance.pointerParams.indirectIntervalMillis, + )); + } catch (n) { + c._POSignalsUtils.Logger.warn('Failed to dispatch indirect events', n); + } + } + get isStarted() { + return this._isStarted; + } + start() { + this._isStarted || + ((this.updateIntervalHandle = setInterval( + this.onTimeElapsedHandler, + c.PointerConfig.instance.pointerParams.indirectIntervalMillis, + )), + this.clipboardEvents.start(), + this.dragEvents.start(), + this.focusEvents.start(), + this.uiEvents.start(), + this.generalEvents.start(), + (this._isStarted = !0)); + } + stop() { + this._isStarted && + (this.clipboardEvents.stop(), + this.dragEvents.stop(), + this.focusEvents.stop(), + this.uiEvents.stop(), + this.generalEvents.stop(), + clearInterval(this.updateIntervalHandle), + (this.updateIntervalHandle = null), + (this._isStarted = !1)); + } + unsubscribe() { + this.clipboardEvents.onClipboardEvent.unsubscribe(this.handleEvent.bind(this)), + this.dragEvents.onDragEvent.unsubscribe(this.handleEvent.bind(this)), + this.focusEvents.onFocusEvent.unsubscribe(this.handleEvent.bind(this)), + this.uiEvents.onUIEvent.unsubscribe(this.handleEvent.bind(this)), + this.generalEvents.onGeneralEvent.unsubscribe(this.handleEvent.bind(this)); + } + } + c.IndirectClient = h; + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + class h { + constructor() { + (this.config = {}), (this._cacheHash = 0), (this.cache = new Map()); + } + refreshCssSelectors(n) { + try { + if (!n) return; + const r = c._POSignalsUtils.Util.hashCode(JSON.stringify(n)); + if (this._cacheHash === r) return; + (this.config = n), (this._cacheHash = r), (this.cache = new Map()); + } catch (r) { + c._POSignalsUtils.Logger.warn('Failed to set css selectors', r); + } + } + getIdentification(n, r) { + if (this.cache.get(n) === null) return null; + if (this.cache.get(n) !== void 0) return this.cache.get(n); + for (const a in this.config) + try { + if (!this.config.hasOwnProperty(a)) continue; + let s = this.config[a] || []; + c._POSignalsUtils.Util.isArray(s) || (s = [].concat(s)); + for (const i of s) + if (c._POSignalsUtils.Util.isSelectorMatches(n, i, r)) return this.cache.set(n, a), a; + } catch (s) { + c._POSignalsUtils.Logger.warn(`Failed to find selector for ${a}`, s); + } + return this.cache.set(n, null), null; + } + get cacheHash() { + return this._cacheHash; + } + } + c.ElementsIdentifications = h; + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + const h = 'keydown', + p = 'keyup', + n = 'blur', + r = 'focus'; + class s { + get isStarted() { + return this._isStarted; + } + get onInteraction() { + return this._onInteraction.asEvent(); + } + get onEnterPress() { + return this._onEnterPress.asEvent(); + } + get onObfuscatedValue() { + return this._onObfuscatedValue.asEvent(); + } + refreshKeyboardCssSelectors(t) { + this._fieldsIdentifications.refreshCssSelectors(t); + } + get modifiersKeys() { + return [ + 'Alt', + 'AltGraph', + 'CapsLock', + 'Control', + 'Fn', + 'FnLock', + 'Hyper', + 'Meta', + 'NumLock', + 'OS', + 'ScrollLock', + 'Shift', + 'Super', + 'Symbol', + 'SymbolLock', + ]; + } + get specialKeys() { + return [ + 'Tab', + 'Shift', + 'Backspace', + 'Enter', + 'CapsLock', + 'Meta', + 'Delete', + 'Alt', + 'ArrowDown', + 'ArrowUp', + 'Control', + 'ArrowLeft', + 'End', + 'Unidentified', + 'Home', + 'ArrowRight', + 'Insert', + 'Pause', + 'PageDown', + 'PageUp', + 'F1', + 'F2', + 'F3', + 'F4', + 'F5', + 'F6', + 'F7', + 'F8', + 'F9', + 'F10', + 'F11', + 'F12', + 'AltGraph', + 'Escape', + ]; + } + constructor(t, e) { + (this.BEHAVIORAL_TYPE = 'eventKeyboard'), + (this._isStarted = !1), + (this._onInteraction = new c.EventDispatcher()), + (this._onEnterPress = new c.EventDispatcher()), + (this._onObfuscatedValue = new c.EventDispatcher()), + (this.interactionsMap = new Map()), + (this._fieldsIdentifications = new c.ElementsIdentifications()), + (this.keyStrokeMap = new Map()), + (this.delegate = t), + (this.uiControlManager = e), + (this.onKeyDownHandle = this.onKeyDown.bind(this)), + (this.onKeyUpHandle = this.onKeyUp.bind(this)), + (this.onFocusHandle = this.onFocus.bind(this)), + (this.onBlurHandle = this.onBlur.bind(this)); + } + countEvent(t, e) { + e && (e.eventCounters[t] = (e.eventCounters[t] || 0) + 1); + } + clearBuffer() { + const t = c._POSignalsUtils.Util.getValuesOfMap(this.interactionsMap); + return this.interactionsMap.clear(), t; + } + start() { + this._isStarted + ? c._POSignalsUtils.Logger.debug('Desktop Keyboard events already listening') + : (this.delegate.addEventListener(document, h, this.onKeyDownHandle), + this.delegate.addEventListener(document, p, this.onKeyUpHandle), + this.delegate.addEventListener(document, r, this.onFocusHandle, !0), + this.delegate.addEventListener(document, n, this.onBlurHandle, !0), + (this._isStarted = !0), + c._POSignalsUtils.Logger.debug('Desktop Keyboard events start listening...')); + } + stop() { + this._isStarted + ? (document.removeEventListener(h, this.onKeyDownHandle), + document.removeEventListener(p, this.onKeyUpHandle), + document.removeEventListener(r, this.onFocusHandle, !0), + document.removeEventListener(n, this.onBlurHandle, !0), + (this._isStarted = !1), + c._POSignalsUtils.Logger.debug('Desktop Keyboard events stop listening...')) + : c._POSignalsUtils.Logger.debug('Desktop Keyboard events already stopped'); + } + getInteractionFromElement(t) { + var e; + let l = null, + o = null; + const x = c._POSignalsUtils.Util.getSrcElement(t); + if ( + x && + x instanceof HTMLInputElement && + !c._POSignalsUtils.Util.isClickableInput(x) && + c._POSignalsUtils.Util.isFunction(x.getAttribute) && + !(!((e = x.hasAttribute) === null || e === void 0) && e.call(x, 'data-st-ignore')) && + !c._POSignalsUtils.Util.anySelectorMatches( + x, + c.PointerConfig.instance.pointerParams.keyboardCssSelectorsBlacklist, + 0, + ) + ) { + o = this.delegate.getElementsStID(x); + const v = c.PointerConfig.instance.pointerParams.keyboardIdentifierAttributes; + for (let y = 0; y < v.length && !o; y++) o = x.getAttribute(v[y]); + o && + !c.PointerConfig.instance.pointerParams.keyboardFieldBlackList.has(o) && + ((l = this.interactionsMap.get(x)), + l || + ((l = { epochTs: Date.now(), + stId: o, + elementId: c._POSignalsUtils.Util.getAttribute(x, 'id'), + name: c._POSignalsUtils.Util.getAttribute(x, 'name'), + type: c._POSignalsUtils.Util.getAttribute(x, 'type'), events: [], - counter: this.delegate.mouseCounter, - additionalData: this.delegate.additionalData, + counter: this.delegate.keyboardCounter, eventCounters: { epochTs: Date.now() }, duration: 0, - timeProximity: 0, - uiControl: void 0, - meanEuclidean: 0, - reduction: {}, + numOfDeletions: 0, + additionalData: this.delegate.additionalData, quality: '', }), - this.lastMouseInteraction.events.push(e), - this.mouseEventsCounter++, - n && - ((this.lastMouseInteraction.uiControl = { - uiElement: n.uiElement, - enrichedData: n.enrichedData, - }), - this.delegate.addUiControlTags(n.tagConfig)), - this.mouseEventsCounter >= t.PointerConfig.instance.pointerParams.maxMouseEvents && - this.dispatch(); - }), - (e.prototype.start = function () { - this._isStarted - ? t._POSignalsUtils.Logger.debug('Desktop Mouse events already listening') - : (this.delegate.addEventListener(document, 'click', this.onClickHandle, !0), - this.delegate.addEventListener(document, 'dblclick', this.onDblclickHandle), - this.delegate.addEventListener(document, 'mousedown', this.onMousedownHandle), - this.delegate.addEventListener(document, 'mousemove', this.onMousemoveHandle), - this.delegate.addEventListener(document, 'mouseout', this.onMouseoutHandle), - this.delegate.addEventListener(document, 'mouseover', this.onMouseoverHandle), - this.delegate.addEventListener(document, 'mouseup', this.onMouseupHandle), - this.delegate.addEventListener( - document, - 'wheel', - this.onWheelHandle, - this.wheelOptions, - ), - this.delegate.addEventListener(document, 'pointerover', this.onPointerHandle), - this.delegate.addEventListener(document, 'pointerenter', this.onPointerHandle), - this.delegate.addEventListener(document, 'pointerdown', this.onPointerHandle), - this.delegate.addEventListener(document, 'pointermove', this.onPointerHandle), - this.delegate.addEventListener(document, 'pointerup', this.onPointerHandle), - this.delegate.addEventListener(document, 'pointercancel', this.onPointerHandle), - this.delegate.addEventListener(document, 'pointerout', this.onPointerHandle), - this.delegate.addEventListener(document, 'pointerleave', this.onPointerHandle), - (this.updateIntervalHandle = setInterval( - this.interactionUpdateHandle, - t.PointerConfig.instance.pointerParams.mouseIntervalMillis, - )), - (this._isStarted = !0), - t._POSignalsUtils.Logger.debug('Desktop Mouse events start listening...')); - }), - (e.prototype.stop = function () { - this._isStarted - ? (document.removeEventListener('click', this.onClickHandle, !0), - document.removeEventListener('dblclick', this.onDblclickHandle), - document.removeEventListener('mousedown', this.onMousedownHandle), - document.removeEventListener('mousemove', this.onMousemoveHandle), - document.removeEventListener('mouseout', this.onMouseoutHandle), - document.removeEventListener('mouseover', this.onMouseoverHandle), - document.removeEventListener('mouseup', this.onMouseupHandle), - document.removeEventListener('wheel', this.onWheelHandle, this.wheelOptions), - document.removeEventListener('pointerover', this.onPointerHandle), - document.removeEventListener('pointerenter', this.onPointerHandle), - document.removeEventListener('pointerdown', this.onPointerHandle), - document.removeEventListener('pointermove', this.onPointerHandle), - document.removeEventListener('pointerup', this.onPointerHandle), - document.removeEventListener('pointercancel', this.onPointerHandle), - document.removeEventListener('pointerout', this.onPointerHandle), - document.removeEventListener('pointerleave', this.onPointerHandle), - clearInterval(this.updateIntervalHandle), - (this.updateIntervalHandle = null), - (this._isStarted = !1), - t._POSignalsUtils.Logger.debug('Desktop Mouse events stop listening...')) - : t._POSignalsUtils.Logger.debug('Desktop Mouse events already stopped'); - }), - (e.prototype.onClick = function (e) { - var n, i; - try { - this.lastMouseInteractionTimestamp = Date.now(); - var r = t._POSignalsUtils.Util.getSrcElement(e); - if ( - (this._onClickEvent.dispatch(this, r), - !this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)) - ) - return; - if ( - (this.countEvent(e.type), - t.PointerConfig.instance.pointerParams.eventsToIgnore.has(e.type)) - ) - return; - var o = this.uiControlManager.createUIControlData(e); - this.updateInteraction(this.createMouseClickEvent(e.type, e), o), - this.dispatch(), - (null === - (i = - null === (n = null === o || void 0 === o ? void 0 : o.uiElement) || void 0 === n - ? void 0 - : n.id) || void 0 === i - ? void 0 - : i.length) > 0 && - t._POSignalsUtils.Logger.info( - "Tapped on element with id '" + o.uiElement.id + "'", - ); - } catch (n) { - t._POSignalsUtils.Logger.warn('error in ' + e.type + ' handler', n); - } - }), - (e.prototype.onMouseout = function (e) { - try { - this.onMouseEvent(e); - var n = e.relatedTarget || e.toElement; - (n && 'HTML' !== n.nodeName) || this.dispatch(); - } catch (n) { - t._POSignalsUtils.Logger.warn('error in ' + e.type + ' handler', n); - } - }), - (e.prototype.onMouseEvent = function (e) { - try { - if ( - ('wheel' !== e.type && (this.lastMouseInteractionTimestamp = Date.now()), - !this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)) - ) - return; - if ( - (this.countEvent(e.type), - t.PointerConfig.instance.pointerParams.eventsToIgnore.has(e.type)) - ) - return; - this.updateInteraction(this.createMouseEvent(e.type, e)); - } catch (n) { - t._POSignalsUtils.Logger.warn('error in ' + e.type + ' handler', n); - } - }), - (e.prototype.onMouseClickEvent = function (e) { - try { - if ( - ((this.lastMouseInteractionTimestamp = Date.now()), - !this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)) - ) - return; - if ( - (this.countEvent(e.type), - t.PointerConfig.instance.pointerParams.eventsToIgnore.has(e.type)) - ) - return; - this.updateInteraction(this.createMouseClickEvent(e.type, e)); - } catch (n) { - t._POSignalsUtils.Logger.warn('error in ' + e.type + ' handler', n); - } - }), - (e.prototype.onPointerEvent = function (e) { - try { - if ( - ((this.lastMouseInteractionTimestamp = Date.now()), - !this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)) - ) - return; - if ( - (this.countEvent(e.type), - t.PointerConfig.instance.pointerParams.eventsToIgnore.has(e.type)) - ) - return; - this.updateInteraction(this.createPointerEvent(e.type, e)); - } catch (n) { - t._POSignalsUtils.Logger.warn('error in ' + e.type + ' handler', n); - } - }), - (e.prototype.clearBuffer = function () { - var t = null; - return ( - this.lastMouseInteraction && (t = this.lastMouseInteraction), - (this.lastMouseInteraction = null), - t - ); - }), - (e.prototype.isEmpty = function () { - return !this.lastMouseInteraction; - }), - (e.prototype.createMouseEvent = function (t, e) { - return { - type: t, - eventTs: e.timeStamp, - epochTs: Date.now(), - button: e.button, - offsetX: e.offsetX, - offsetY: e.offsetY, - pageX: e.pageX, - pageY: e.pageY, - screenX: e.screenX, - screenY: e.screenY, - getX: function () { - return e.screenX; - }, - getY: function () { - return e.screenY; - }, - }; - }), - (e.prototype.createPointerEvent = function (t, e) { - var n = this.createMouseEvent(t, e); - return __assign(__assign({}, n), { - pointerId: e.pointerId, - width: e.width, - height: e.height, - pressure: e.pressure, - tangentialPressure: e.tangentialPressure, - tiltX: e.tiltX, - tiltY: e.tiltY, - twist: e.twist, - pointerType: e.pointerType, - isPrimary: e.isPrimary, - }); - }), - (e.prototype.createMouseClickEvent = function (e, n) { - var i = this.createMouseEvent(e, n); - if (n.target && t._POSignalsUtils.Util.isFunction(n.target.getBoundingClientRect)) { - var r = n.target.getBoundingClientRect(); - (i.targetBottom = r.bottom), - (i.targetHeight = r.height), - (i.targetLeft = r.left), - (i.targetRight = r.right), - (i.targetTop = r.top), - (i.targetWidth = r.width), - (i.targetX = r.x), - (i.targetY = r.y); - } - return i; - }), - e - ); - })(); - t.Mouse = e; - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function (t) { - var e = (function () { - function e(t) { - (this.counter = 0), (this.key = t), (this.counter = this.loadFromStorage()); - } - return ( - (e.prototype.loadFromStorage = function () { - var t = e.sessionStorage.getItem(this.key); - return Number(t) || 0; - }), - (e.prototype.get = function () { - return this.counter; - }), - (e.prototype.increment = function (t) { - void 0 === t && (t = 1), - (this.counter += t), - e.sessionStorage.setItem(this.key, this.counter); - }), - (e.prototype.decrement = function (t) { - void 0 === t && (t = 1), this.increment(-1 * t); - }), - (e.prototype.reset = function () { - (this.counter = 0), e.sessionStorage.removeItem(this.key); - }), - (e.sessionStorage = t._POSignalsStorage.SessionStorage.instance.sessionStorage), - e - ); - })(); - t.StorageCounter = e; - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function (t) { - var e = (function () { - function e(t) { - (this.mapKey = t), (this.cache = this.loadFromStorage()); - } - return ( - (e.prototype.loadFromStorage = function () { - var t = e.sessionStorage.getItem(this.mapKey); - return t || (t = JSON.stringify({})), JSON.parse(t); - }), - (e.prototype.asMap = function () { - return this.cache; - }), - (e.prototype.set = function (t, n, i) { - void 0 === i && (i = !0), - (this.cache[t] = n), - i && e.sessionStorage.setItem(this.mapKey, JSON.stringify(this.cache)); - }), - (e.prototype.sync = function () { - e.sessionStorage.setItem(this.mapKey, JSON.stringify(this.cache)); - }), - (e.prototype.get = function (t) { - return this.cache[t]; - }), - (e.prototype.delete = function (t) { - delete this.cache[t], e.sessionStorage.setItem(this.mapKey, JSON.stringify(this.cache)); - }), - (e.prototype.values = function () { - return t._POSignalsUtils.Util.values(this.cache); - }), - (e.prototype.clear = function () { - (this.cache = {}), e.sessionStorage.removeItem(this.mapKey); - }), - (e.prototype.forEach = function (t) { - for (var e in this.cache) this.cache.hasOwnProperty(e) && t(this.cache[e], e); - }), - (e.sessionStorage = t._POSignalsStorage.SessionStorage.instance.sessionStorage), - e - ); - })(); - t.StorageMap = e; - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function (t) { - var e = (function () { - function e() { - (this.config = {}), (this._cacheHash = 0), (this.cache = new Map()); + this.interactionsMap.set(x, l))); } + return l; + } + getKeyCode(t) { + return t.keyCode + ? t.keyCode + : t.which + ? t.which + : t.code + ? c._POSignalsUtils.Util.hashCode(t.code) + : c._POSignalsUtils.Util.hashCode(t.key) + (t.location || 0); + } + getKeyboardEvent(t) { + return t || window.event; + } + getKeystrokeId(t, e) { + const l = this.getKeyCode(t); + let o; return ( - (e.prototype.refreshConfig = function (e) { - try { - if (!e) return; - var n = t._POSignalsUtils.Util.hashCode(JSON.stringify(e)); - if (this._cacheHash === n) return; - (this.config = e), (this._cacheHash = n), (this.cache = new Map()); - } catch (e) { - t._POSignalsUtils.Logger.warn('Failed to set css selectors', e); - } - }), - (e.prototype.getMatchingTags = function (e, n) { - var i = this.cache.get(e); - if (i) return i; - var r = {}; - for (var o in this.config) - try { - if (!this.config.hasOwnProperty(o)) continue; - var a = this.config[o].selector || []; - t._POSignalsUtils.Util.isArray(a) || (a = [].concat(a)); - for (var s = 0, u = a; s < u.length; s++) { - var c = u[s]; - t._POSignalsUtils.Util.isSelectorMatches(e, c, n) && (r[o] = this.config[o]); - } - } catch (e) { - t._POSignalsUtils.Logger.warn('Failed to get the config for ' + o + ' tag', e); - } - return this.cache.set(e, r), r; - }), - (e.prototype.getValue = function (e, n) { - if (n && e) - switch (((n = n.trim()), e)) { - case 'email_domain': - return t._POSignalsUtils.Util.getEmailDomain(n); - case 'obfuscate': - return '' + t._POSignalsUtils.Util.mod(n, 1e3); - case 'plain': - return n; - case 'zip': - return n.substr(0, 3); - case 'length': - return '' + n.length; - } - return ''; - }), - Object.defineProperty(e.prototype, 'cacheHash', { - get: function () { - return this._cacheHash; - }, - enumerable: !1, - configurable: !0, - }), - e + e === p && + (this.keyStrokeMap.has(l) + ? ((o = this.keyStrokeMap.get(l)), this.keyStrokeMap.delete(l)) + : (o = c._POSignalsUtils.Util.newGuid())), + e === h && + (this.keyStrokeMap.has(l) && t.repeat + ? (o = this.keyStrokeMap.get(l)) + : ((o = c._POSignalsUtils.Util.newGuid()), this.keyStrokeMap.set(l, o))), + o ); - })(); - t.TagsIdentifications = e; - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function (t) { - var e = (function () { - function e() { - this._reduceFactorMap = null; + } + createKeyboardInteractionEvent(t, e) { + const l = c._POSignalsUtils.Util.getSrcElement(e), + o = l.value ? l.value.toString().length : 0; + return { + type: t, + eventTs: e.timeStamp, + epochTs: Date.now(), + selectionStart: c._POSignalsUtils.Util.getElementSelectionStart(l), + selectionEnd: c._POSignalsUtils.Util.getElementSelectionEnd(l), + key: e.key, + keystrokeId: null, + currentLength: o, + }; + } + enrichKeyboardEvent(t, e) { + (this.modifiersKeys.indexOf(t.key) >= 0 || this.specialKeys.indexOf(t.key) >= 0) && + (e.key = t.key), + (e.keystrokeId = this.getKeystrokeId(t, e.type)); + const l = c._POSignalsUtils.Util.getSrcElement(t); + e.currentLength = String(l.value).length; + } + onFocus(t) { + var e, l; + try { + if (!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)) { + this._onInteraction.dispatch(this, null); + return; + } + t = this.getKeyboardEvent(t); + const o = this.getInteractionFromElement(t); + if ( + (this.countEvent(t.type, o), + c.PointerConfig.instance.pointerParams.eventsToIgnore.has(t.type)) + ) + return; + if (o) { + const x = this.createKeyboardInteractionEvent(r, t); + o.events.push(x); + const v = this.uiControlManager.createUIControlData(t); + v && + ((o.uiControl = { uiElement: v.uiElement, enrichedData: v.enrichedData }), + ((l = (e = v.uiElement) === null || e === void 0 ? void 0 : e.id) === null || + l === void 0 + ? void 0 + : l.length) > 0 && + c._POSignalsUtils.Logger.info(`Typing in element with id '${v.uiElement.id}'`)); + } + } catch (o) { + c._POSignalsUtils.Logger.warn('error in keyboard focus handler', o); } - return ( - Object.defineProperty(e.prototype, 'reduceFactorMap', { - get: function () { - return this._reduceFactorMap; - }, - set: function (t) { - this._reduceFactorMap = t; - }, - enumerable: !1, - configurable: !0, - }), - (e.prototype.reduceEventsByFactor = function (e) { - var n = this; - try { - if (!e || 0 === e.length || !this.reduceFactorMap) return e; - for (var i = new Map(), r = [], o = 0; o < e.length; o++) - i.get(e[o].type) ? i.get(e[o].type).push(o) : i.set(e[o].type, [o]); - i.forEach(function (t, e) { - var i = n.reduceFactorMap[e] ? Number(n.reduceFactorMap[e]) : 0; - n.reduceByFactor(i, t, function (e) { - r[t[e]] = !0; - }); - }); - var a = []; - for (o = 0; o < e.length; o++) r[o] && a.push(e[o]); + } + onKeyUp(t) { + try { + if ( + ((t = this.getKeyboardEvent(t)), + (t.keyCode === 13 || t.which === 13) && + this._onEnterPress.dispatch(this, c._POSignalsUtils.Util.getSrcElement(t)), + !this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)) + ) { + this._onInteraction.dispatch(this, null); + return; + } + const e = this.getInteractionFromElement(t); + if ( + (this.countEvent(t.type, e), + c.PointerConfig.instance.pointerParams.eventsToIgnore.has(t.type)) + ) + return; + if (e) { + const l = this.createKeyboardInteractionEvent(p, t); + this.enrichKeyboardEvent(t, l), e.events.push(l); + } else this.keyStrokeMap.delete(this.getKeyCode(t)); + } catch (e) { + c._POSignalsUtils.Logger.warn('error in keyUp handler', e); + } + } + isEmpty() { + return this.interactionsMap.size === 0; + } + onKeyDown(t) { + try { + if (!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)) { + this._onInteraction.dispatch(this, null); + return; + } + t = this.getKeyboardEvent(t); + const e = this.getInteractionFromElement(t); + if ( + (this.countEvent(t.type, e), + c.PointerConfig.instance.pointerParams.eventsToIgnore.has(t.type)) + ) + return; + if (e) { + const l = this.createKeyboardInteractionEvent(h, t); + this.enrichKeyboardEvent(t, l), e.events.push(l); + } + } catch (e) { + c._POSignalsUtils.Logger.warn('error in keyDown handler', e); + } + } + onBlur(t) { + try { + t = this.getKeyboardEvent(t); + const e = this.getInteractionFromElement(t); + if (!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)) { + this._onInteraction.dispatch(this, null); + return; + } + if ( + (this.countEvent(t.type, e), + c.PointerConfig.instance.pointerParams.eventsToIgnore.has(t.type)) + ) + return; + if (e) { + const l = this.createKeyboardInteractionEvent(n, t); + e.events.push(l), + (e.duration = this.delegate.getInteractionDuration(e.events)), + (e.numOfDeletions = this.calculateNumOfDeletions(e.events)); + const o = c._POSignalsUtils.Util.getSrcElement(t); + this.interactionsMap.delete(o), this._onInteraction.dispatch(this, e); + } + } catch (e) { + c._POSignalsUtils.Logger.warn('error in blur handler', e); + } + } + calculateNumOfDeletions(t) { + if (!(t != null && t[0])) return 0; + let e = 0, + l = t[0].currentLength; + for (let o = 1; o < t.length; o++) t[o].currentLength < l && e++, (l = t[o].currentLength); + return e; + } + get fieldsIdentifications() { + return this._fieldsIdentifications; + } + } + c.Keyboard = s; + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + class h { + constructor(n, r) { + var a; + const s = c.PointerConfig.instance.pointerParams.uiModelingElementFilters, + i = c._POSignalsUtils.Util.getAttribute, + t = (a = n.getBoundingClientRect) === null || a === void 0 ? void 0 : a.call(n); + (this._htmlElement = n), + (this._data = { + location: this.getUIElementAttribute(s.location, () => window.location.href), + id: this.getUIElementAttribute(s.id, () => i(n, 'id')), + aria_label: this.getUIElementAttribute(s.aria_label, () => i(n, 'aria-label')), + data_st_field: this.getUIElementAttribute(s.data_st_field, () => r.getElementsStID(n)), + data_st_tag: this.getUIElementAttribute(s.data_st_tag, () => i(n, 'data-st-tag')), + data_selenium: this.getUIElementAttribute(s.data_selenium, () => i(n, 'data-selenium')), + data_selenium_id: this.getUIElementAttribute(s.data_selenium_id, () => + i(n, 'data-selenium-id'), + ), + data_testid: this.getUIElementAttribute(s.data_testid, () => i(n, 'data-testid')), + data_test_id: this.getUIElementAttribute(s.data_test_id, () => i(n, 'data-test-id')), + data_qa_id: this.getUIElementAttribute(s.data_qa_id, () => i(n, 'data-qa-id')), + data_id: this.getUIElementAttribute(s.data_id, () => i(n, 'data-id')), + name: this.getUIElementAttribute(s.name, () => i(n, 'name')), + placeholder: this.getUIElementAttribute(s.placeholder, () => i(n, 'placeholder')), + role: this.getUIElementAttribute(s.role, () => i(n, 'role')), + type: this.getUIElementAttribute(s.type, () => i(n, 'type')), + nodeTypeInt: this.getUIElementAttribute(s.nodeTypeInt, () => n.nodeType), + nodeName: this.getUIElementAttribute(s.nodeName, () => n.nodeName), + cursorType: this.getUIElementAttribute( + s.cursorType, + () => window.getComputedStyle(n).cursor, + ), + text: this.getUIElementAttribute(s.text, () => this.getElementText(n)), + textLength: this.getUIElementAttribute(s.textLength, () => { + var e; return ( - e.length !== a.length && - t._POSignalsUtils.Logger.debug( - e.length - a.length + ' events reduced out of ' + e.length, - ), - a + ((e = this.getElementText(n)) === null || e === void 0 ? void 0 : e.length) || null ); - } catch (n) { - return t._POSignalsUtils.Logger.warn('Failed to reduce events', n), e; - } - }), - (e.prototype.reduceByFactor = function (t, e, n) { - t = Math.min(t, 1); - for ( - var i = Math.round(Math.max(e.length * (1 - t), 2)), - r = (e.length - 1) / (i - 1), - o = Math.min(e.length, i), - a = 0; - a < o; - a++ - ) { - n(Math.round(a * r)); - } - }), - e - ); - })(); - t.ReduceFactor = e; - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function (t) { - var e = (function () { - function e(t) { - this.algorithm = t; - } - return ( - (e.prototype.reduce = function (n, i) { - if (-1 === e.TYPES_TO_REDUCE.indexOf(i)) return { keptEvents: n, epsilon: 0 }; - if (n.length <= e.MIN_EVENTS_TO_REDUCE) return { keptEvents: n, epsilon: 0 }; - var r = n.length < 50 ? 0.55 : n.length < 100 ? 0.35 : 0.2, - o = n.length < 50 ? 1 : n.length < 100 ? 3 : 7, - a = this.algorithm.reduceEvents(n, o), - s = a.length / n.length; - if (a.length >= 10 && s >= r) return { keptEvents: a, epsilon: o }; - var u = n.length < 50 ? 0.1 : n.length < 100 ? 0.3 : 0.7, - c = this.algorithm.reduceEvents(n, u), - l = c.length / n.length; - if (c.length <= e.MIN_EVENTS_TO_REDUCE || l <= r) return { keptEvents: c, epsilon: u }; - var d = - (Math.min(o, Math.pow(o, s / r)) * Math.abs(l - r) + u * Math.abs(s - r)) / - Math.abs(s - l); + }), + bottom: this.getUIElementAttribute(s.bottom, () => (t == null ? void 0 : t.bottom)), + height: this.getUIElementAttribute(s.height, () => (t == null ? void 0 : t.height)), + left: this.getUIElementAttribute(s.left, () => (t == null ? void 0 : t.left)), + right: this.getUIElementAttribute(s.right, () => (t == null ? void 0 : t.right)), + top: this.getUIElementAttribute(s.top, () => (t == null ? void 0 : t.top)), + width: this.getUIElementAttribute(s.width, () => (t == null ? void 0 : t.width)), + x: this.getUIElementAttribute(s.x, () => (t == null ? void 0 : t.x)), + y: this.getUIElementAttribute(s.y, () => (t == null ? void 0 : t.y)), + }), + (this._data.elementId = this.getStrongestElementID()); + } + get data() { + return c._POSignalsUtils.Util.filterReduce(this._data, (n) => n != null && n !== ''); + } + get htmlElement() { + return this._htmlElement; + } + getUIElementAttribute(n, r) { + var a; + try { + if (!((a = n == null ? void 0 : n.enabled) !== null && a !== void 0) || a) { + let s = r(); return ( - (d < u || d > o) && - t._POSignalsUtils.Logger.warn( - 'linear weighted average - calculated epsilon is out of range, lowEpsilon: ' + - u + - ', highEpsilon: ' + - o + - ', epsilon: ' + - d, - ), - { keptEvents: this.algorithm.reduceEvents(n, d), epsilon: d } + typeof s == 'string' && + (typeof (n == null ? void 0 : n.maxLength) == 'number' && + s.length > n.maxLength && + (s = s.substring(0, n.maxLength)), + n != null && n.filterRegex && (s = s.replace(new RegExp(n.filterRegex, 'g'), '*'))), + s ); - }), - (e.MIN_EVENTS_TO_REDUCE = 18), - (e.TYPES_TO_REDUCE = ['mousemove', 'touchmove']), - e - ); - })(); - t.RDPEpsilonStrategy = e; - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function (t) { - var e = (function () { - function e(t) { - this.rdpStrategy = t; + } + } catch (s) { + c._POSignalsUtils.Logger.warn('Failed to add ui element attribute', s); } + return null; + } + getStrongestElementID() { return ( - (e.prototype.reduceWithRPD = function (e) { - var n = this; - if (!e || 0 === e.length) return { events: e, reductionInfo: {} }; - for (var i = new Map(), r = [], o = 0, a = e; o < a.length; o++) { - var s = a[o]; - i.get(s.type) ? i.get(s.type).push(s) : i.set(s.type, [s]); - } - var u = {}; - return ( - i.forEach(function (t, e) { - var i = n.rdpStrategy.reduce(t, e), - o = i.keptEvents, - a = i.epsilon; - a > 0 && (u[e] = { epsilon: a, originalLength: t.length, keptLength: o.length }), - (r = r.concat(o)); - }), - { events: t._POSignalsUtils.Util.sortEventsByTimestamp(r), reductionInfo: u } - ); - }), - e - ); - })(); - t.ReduceRDP = e; - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function (t) { - var e = (function () { - function t() {} - return ( - (t.prototype.getSqDist = function (t, e) { - var n = t.getX() - e.getX(), - i = t.getY() - e.getY(); - return n * n + i * i; - }), - (t.prototype.getSqSegDist = function (t, e, n) { - var i = e.getX(), - r = e.getY(), - o = n.getX() - i, - a = n.getY() - r; - if (0 !== o || 0 !== a) { - var s = ((t.getX() - i) * o + (t.getY() - r) * a) / (o * o + a * a); - s > 1 ? ((i = n.getX()), (r = n.getY())) : s > 0 && ((i += o * s), (r += a * s)); - } - return (o = t.getX() - i) * o + (a = t.getY() - r) * a; - }), - (t.prototype.simplifyRadialDist = function (t, e) { - for (var n, i = t[0], r = [i], o = 1, a = t.length; o < a; o++) - (n = t[o]), this.getSqDist(n, i) > e && (r.push(n), (i = n)); - return i !== n && r.push(n), r; - }), - (t.prototype.simplifyDPStep = function (t, e, n, i, r) { - for (var o, a = i, s = e + 1; s < n; s++) { - var u = this.getSqSegDist(t[s], t[e], t[n]); - u > a && ((o = s), (a = u)); - } - a > i && - (o - e > 1 && this.simplifyDPStep(t, e, o, i, r), - r.push(t[o]), - n - o > 1 && this.simplifyDPStep(t, o, n, i, r)); - }), - (t.prototype.simplifyDouglasPeucker = function (t, e) { - var n = t.length - 1, - i = [t[0]]; - return this.simplifyDPStep(t, 0, n, e, i), i.push(t[n]), i; - }), - (t.prototype.simplify = function (t, e, n) { - if (t.length <= 2) return t; - var i = void 0 !== e ? e * e : 1; - return ( - (t = n ? t : this.simplifyRadialDist(t, i)), (t = this.simplifyDouglasPeucker(t, i)) - ); - }), - (t.prototype.reduceEvents = function (t, e) { - return this.simplify(t, e); - }), - t + this._data.data_st_field || + this._data.data_selenium_id || + this._data.data_selenium || + this._data.data_testid || + this._data.data_test_id || + this._data.data_qa_id || + this._data.data_id || + this._data.id || + '' ); - })(); - t.RDPReduction = e; - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function (t) { - var e = (function () { - function e() {} - return ( - (e.prototype.filterMoveEvents = function (e, n) { - if (e.length <= 18) return e; - for ( - var i = e.filter(function (t) { - return t.type === n; - }), - r = t._POSignalsUtils.Util.keepFirstEventsWithDistance({ - events: i, - threshold: 200, - min: 18, - max: 30, - }), - o = -1, - a = {}, - s = 0; - s < e.length; - s++ - ) { - var u = e[s]; - u.type !== n && - ('mousedown' !== u.type ? a[u.type] || (r.push(u), (a[u.type] = !0)) : (o = s)); - } - return o >= 0 && r.push(e[o]), t._POSignalsUtils.Util.sortEventsByTimestamp(r); - }), - e + } + getElementText(n) { + return n instanceof HTMLInputElement && !c._POSignalsUtils.Util.isClickableInput(n) + ? null + : c._POSignalsUtils.Util.getElementText(n); + } + equals(n) { + return !( + !n || + (n.location && location.href.indexOf(n.location) < 0) || + (n.elementId && n.elementId !== this._data.elementId) || + (n.id && n.id !== this._data.id) || + (n.aria_label && n.aria_label !== this._data.aria_label) || + (n.data_st_field && n.data_st_field !== this._data.data_st_field) || + (n.data_st_tag && n.data_st_tag !== this._data.data_st_tag) || + (n.data_selenium && n.data_selenium !== this._data.data_selenium) || + (n.data_selenium_id && n.data_selenium_id !== this._data.data_selenium_id) || + (n.data_testid && n.data_testid !== this._data.data_testid) || + (n.data_test_id && n.data_test_id !== this._data.data_test_id) || + (n.data_qa_id && n.data_qa_id !== this._data.data_qa_id) || + (n.data_id && n.data_id !== this._data.data_id) || + (n.name && n.name !== this._data.name) || + (n.placeholder && n.placeholder !== this._data.placeholder) || + (n.role && n.role !== this._data.role) || + (n.type && n.type !== this._data.type) || + (n.nodeTypeInt && n.nodeTypeInt !== this._data.nodeTypeInt) || + (n.nodeName && n.nodeName !== this._data.nodeName) || + (n.cursorType && n.cursorType !== this._data.cursorType) || + (n.text && n.text !== this._data.text) || + (n.textLength && n.textLength !== this._data.textLength) || + (n.bottom && n.bottom !== this._data.bottom) || + (n.height && n.height !== this._data.height) || + (n.left && n.left !== this._data.left) || + (n.right && n.right !== this._data.right) || + (n.top && n.top !== this._data.top) || + (n.width && n.width !== this._data.width) || + (n.x && n.x !== this._data.x) || + (n.y && n.y !== this._data.y) ); - })(); - t.EventsReduction = e; - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function (t) { - var e = (function () { - function e() { - (this.reduceFactor = new t.ReduceFactor()), - (this.reduceRDP = new t.ReduceRDP(new t.RDPEpsilonStrategy(new t.RDPReduction()))), - (this.eventsReduction = new t.EventsReduction()); - } + } + static createCssSelector(n) { + let r = ''; return ( - Object.defineProperty(e.prototype, 'reduceFactorMap', { - set: function (t) { - this.reduceFactor.reduceFactorMap = t; - }, - enumerable: !1, - configurable: !0, - }), - (e.prototype.reduceGesture = function (t) { - var e = this.reduceRDP.reduceWithRPD(t.events); - (t.events = this.eventsReduction.filterMoveEvents(e.events, 'touchmove')), - (t.reduction = e.reductionInfo); - }), - (e.prototype.reduceKeyboardInteraction = function (e) { - e.events = t._POSignalsUtils.Util.filterArrayByLength(e.events, 50); - }), - (e.prototype.reduceMouseInteraction = function (t) { - var e = this.reduceRDP.reduceWithRPD(t.events); - (t.events = this.eventsReduction.filterMoveEvents(e.events, 'mousemove')), - (t.reduction = e.reductionInfo); - }), - e + n != null && n.nodeName && (r += n.nodeName.toLowerCase()), + n != null && n.id && (r += `[id="${n.id}"]`), + n != null && n.aria_label && (r += `[aria-label="${n.aria_label}"]`), + n != null && n.data_st_field && (r += `[data-st-field="${n.data_st_field}"]`), + n != null && n.data_st_tag && (r += `[data-st-tag="${n.data_st_tag}"]`), + n != null && n.data_selenium && (r += `[data-selenium="${n.data_selenium}"]`), + n != null && n.data_selenium_id && (r += `[data-selenium-id="${n.data_selenium_id}"]`), + n != null && n.data_testid && (r += `[data-testid="${n.data_testid}"]`), + n != null && n.data_test_id && (r += `[data-test-id="${n.data_test_id}"]`), + n != null && n.data_qa_id && (r += `[data-qa-id="${n.data_qa_id}"]`), + n != null && n.data_id && (r += `[data-id="${n.data_id}"]`), + n != null && n.name && (r += `[name="${n.name}"]`), + n != null && n.placeholder && (r += `[placeholder="${n.placeholder}"]`), + n != null && n.role && (r += `[role="${n.role}"]`), + n != null && n.type && (r += `[type="${n.type}"]`), + r ); - })(); - t.ReductionManager = e; - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function (t) { - var e = (function (e) { - function n(n, i) { - var r = e.call(this, n) || this; - return ( - (r.tagsWithValueIdentifications = new t.TagsIdentifications()), - (r.reductionManager = new t.ReductionManager()), - (r.lastGestureTimestamp = 0), - (r.currentBufferSize = 0), - (r.MAX_EVENT_COUNTERS = 20), - (r.bufferingStrategy = t.StrategyFactory.createBufferingStrategy(i, r)), - (r.capturedKeyboardInteractions = new t.StorageArray( - t._POSignalsUtils.Constants.CAPTURED_KEYBOARD_INTERACTIONS, - )), - (r.keyboardInteractionsCount = new t.StorageCounter( - t._POSignalsUtils.Constants.KEYBOARD_INTERACTIONS_COUNT, - )), - (r.mouseInteractionsCount = new t.StorageCounter( - t._POSignalsUtils.Constants.MOUSE_INTERACTIONS_COUNT, - )), - (r.gesturesCount = new t.StorageCounter(t._POSignalsUtils.Constants.GESTURES_COUNT)), - (r.mouseEventCounters = new t.StorageArray( - t._POSignalsUtils.Constants.MOUSE_EVENT_COUNTERS, - )), - (r.keyboardEventCounters = new t.StorageArray( - t._POSignalsUtils.Constants.KEYBOARD_EVENT_COUNTERS, - )), - (r.touchEventCounters = new t.StorageArray( - t._POSignalsUtils.Constants.TOUCH_EVENT_COUNTERS, - )), - (r.indirectEventCounters = new t.StorageArray( - t._POSignalsUtils.Constants.INDIRECT_EVENT_COUNTERS, - )), - (r.capturedMouseInteractions = new t.StorageArray( - t._POSignalsUtils.Constants.CAPTURED_MOUSE_INTERACTIONS, - )), - (r.capturedGestures = new t.StorageArray( - t._POSignalsUtils.Constants.CAPTURED_GESTURES, - )), - (r.capturedIndirectEvents = new t.StorageArray( - t._POSignalsUtils.Constants.CAPTURED_INDIRECT, - )), - (r.capturedMouseInteractionSummary = new t.StorageArray( - t._POSignalsUtils.Constants.CAPTURED_MOUSE_INTERACTIONS_SUMMARY, - )), - (r.currentBufferSize = - r.capturedGestures.length + - r.capturedMouseInteractions.length + - r.capturedKeyboardInteractions.length), - (r.uiControlManager = new t.UIControlManager(r)), - (r.keyboard = new t.Keyboard(r, r.uiControlManager)), - r.keyboard.onInteraction.subscribe(r.handleKeyboardInteraction.bind(r)), - r.keyboard.onEnterPress.subscribe(r.handleStTagOnEnter.bind(r)), - r.keyboard.onObfuscatedValue.subscribe(r.handleTagValueOnBlur.bind(r)), - (r.mouse = new t.Mouse(r, r.uiControlManager)), - r.mouse.onInteraction.subscribe(r.handleMouseInteraction.bind(r)), - r.mouse.onClickEvent.subscribe(r.handleStTagOnClick.bind(r)), - (r.sensors = new t.Sensors(r)), - (r.gesture = new t.GestureEvents(r, r.sensors)), - r.gesture.onGesture.subscribe(r.handleGesture.bind(r)), - (r.indirect = new t.IndirectClient(r)), - r.indirect.onIndirect.subscribe(r.handleIndirect.bind(r)), - (r.onUrlChangeHandler = r.onUrlChange.bind(r)), - r - ); + } + } + c.UiElement = h; + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + class h { + constructor(n) { + this._clientDelegate = n; + } + createUIControlData(n) { + const r = c._POSignalsUtils.Util.getSrcElement(n); + if (!r) return null; + const a = c.PointerConfig.instance.pointerParams.uiModelingBlacklistRegex; + if (a && window.location.href.match(a)) + return c._POSignalsUtils.Logger.debug('ui control data is disabled for this url'), null; + const s = new c.UiElement(r, this._clientDelegate); + return this.findMatchingUiControl(s) || { uiElement: s.data }; + } + findMatchingUiControl(n, r = 0) { + try { + const a = c.PointerConfig.instance.pointerParams.uiControlsConfig; + if ( + a.length === 0 || + r > c.PointerConfig.instance.pointerParams.uiModelingMaxMatchingParents + ) + return null; + let s = !1; + for (const t of a) + if (!(!t.tagConfig && !t.enrichedData) && ((s = !0), n.equals(t.uiElement))) + return { uiElement: n.data, enrichedData: t.enrichedData, tagConfig: t.tagConfig }; + if (!s) return null; + const i = n.htmlElement.parentElement; + if ((i == null ? void 0 : i.nodeType) === Node.ELEMENT_NODE) { + const t = new c.UiElement(i, this._clientDelegate); + return this.findMatchingUiControl(t, r + 1); + } + } catch (a) { + c._POSignalsUtils.Logger.warn('failed to find matching ui control', a); } - return ( - __extends(n, e), - Object.defineProperty(n.prototype, 'keyboardCounter', { - get: function () { - return this.keyboardInteractionsCount.get(); - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(n.prototype, 'mouseCounter', { - get: function () { - return this.mouseInteractionsCount.get(); - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(n.prototype, 'gesturesCounter', { - get: function () { - return this.gesturesCount.get(); - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(n.prototype, 'additionalData', { - get: function () { - var e = t._POSignalsUtils.Util.getDeviceOrientation(); - return { - locationHref: location.href, - devTools: t._POSignalsUtils.Util.getDevToolsState(), - innerWidth: - window.innerWidth || - document.documentElement.clientWidth || - document.body.clientWidth, - innerHeight: - window.innerHeight || - document.documentElement.clientHeight || - document.body.clientHeight, - outerWidth: window.outerWidth, - outerHeight: window.outerHeight, - width: screen.width, - height: screen.height, - availWidth: screen.availWidth, - availHeight: screen.availHeight, - pixelRatio: window.devicePixelRatio, - deviceOrientation: e.orientation, - deviceAngle: e.angle, - }; - }, - enumerable: !1, - configurable: !0, - }), - (n.prototype.getBehavioralData = function () { - this.clearIndirectBuffer(); - var t = this.reduceEpochEventCounters(); - return { - mouse: { - count: this.mouseInteractionsCount.get(), - interactions: this.capturedMouseInteractions.get(), - }, - keyboard: { - count: this.keyboardInteractionsCount.get(), - interactions: this.capturedKeyboardInteractions.get(), - }, - touch: { count: this.gesturesCount.get(), interactions: this.capturedGestures.get() }, - indirect: { events: this.capturedIndirectEvents.get() }, - mouseSummary: { events: this.capturedMouseInteractionSummary.get() }, - eventCounters: t, - }; - }), - (n.prototype.getBufferSize = function () { - return this.currentBufferSize; - }), - (n.prototype.getInteractionDuration = function (t) { - return (null === t || void 0 === t ? void 0 : t.length) > 0 - ? t[t.length - 1].epochTs - t[0].epochTs - : 0; - }), - (n.prototype.dispose = function () { - return __awaiter(this, void 0, void 0, function () { - return __generator(this, function (t) { - return ( - this.stopListening(), - this.keyboard.onInteraction.unsubscribe( - this.handleKeyboardInteraction.bind(this), - ), - this.keyboard.onEnterPress.unsubscribe(this.handleStTagOnEnter.bind(this)), - this.keyboard.onObfuscatedValue.unsubscribe(this.handleTagValueOnBlur.bind(this)), - this.mouse.onInteraction.unsubscribe(this.handleMouseInteraction.bind(this)), - this.mouse.onClickEvent.unsubscribe(this.handleStTagOnClick.bind(this)), - this.gesture.onGesture.unsubscribe(this.handleGesture.bind(this)), - this.indirect.unsubscribe(), - this.indirect.onIndirect.unsubscribe(this.handleIndirect.bind(this)), - [2] - ); - }); - }); - }), - (n.prototype.collectBehavioralData = function (e) { - if (this.isBehavioralDataPaused) return !1; - var n = t.PointerConfig.instance.pointerParams.behavioralBlacklist; - return !(e && n && n[e]) || !Boolean(window.location.href.match(n[e])); - }), - (n.prototype.getElementsStID = function (e) { - try { - return ( - t._POSignalsUtils.Util.getAttribute(e, 'data-st-field') || - this.keyboard.fieldsIdentifications.getIdentification(e, 0) || - '' - ); - } catch (e) { - return t._POSignalsUtils.Logger.warn('failed to get element stId', e), ''; - } - }), - (n.prototype.addEventListener = function (e, n, i, r) { - t.PointerConfig.instance.pointerParams.eventsBlackList.has(n) || - (e.addEventListener(n, this.onEventHandler, r), e.addEventListener(n, i, r)); - }), - (n.prototype.addUiControlTags = function (e) { - if ((null === e || void 0 === e ? void 0 : e.length) > 0) - for (var n = !1, i = 0, r = e; i < r.length; i++) { - var o = r[i]; - try { - if (null === o || void 0 === o ? void 0 : o.name) { - var a = this.uiControlManager.convertToTagValueConfig(o.value); - n = this.addSingleTagWithValue(o.name, a) || n; - } - } catch (e) { - t._POSignalsUtils.Logger.warn('failed to add tag config', e); - } - } - }), - (n.prototype.refreshListening = function () { - var e = t.PointerConfig.instance; - this.tagsWithValueIdentifications.refreshConfig(e.pointerParams.remoteTags), - (this.reductionManager.reduceFactorMap = e.pointerParams.eventsReduceFactorMap), - this.keyboard.refreshKeyboardCssSelectors(e.pointerParams.keyboardCssSelectors), - (this.sensors.maxSensorSamples = e.pointerParams.maxSensorSamples), - (this.sensors.sensorsTimestampDeltaInMillis = e.pointerParams.sensorsDeltaInMillis), - this.mouse.start(), - this.keyboard.start(), - this.gesture.start(), - this.indirect.start(), - 0 == e.pointerParams.maxSensorSamples ? this.sensors.stop() : this.sensors.start(), - this.addEventListener(window, '_onlocationchange', this.onUrlChangeHandler), - this.addEventListener(window, 'popstate', this.onUrlChangeHandler); - }), - (n.prototype.addSingleTagWithValue = function (e, n) { - try { - if ( - (null === n || void 0 === n ? void 0 : n.context) && - !Boolean(window.location.href.match(n.context)) - ) - return !1; - var i = ''; - if ( - (null === n || void 0 === n ? void 0 : n.operation) && - (null === n || void 0 === n ? void 0 : n.valueSelector) - ) { - var r = document.querySelector(n.valueSelector); - if (r) { - var o = t._POSignalsUtils.Util.getElementText(r); - i = this.tagsWithValueIdentifications.getValue(n.operation, o); - } - } - if ((null === n || void 0 === n ? void 0 : n.valueMandatory) && !i) - return ( - t._POSignalsUtils.Logger.warn("tag '" + e + "' wasn't added. value is missing"), - !1 - ); - this.addTag(e, i); - } catch (n) { - t._POSignalsUtils.Logger.warn('failed to add ' + e + ' tag', n); - } - return !1; - }), - (n.prototype.addTagsWithValue = function (t) { - var e = !1; - for (var n in t) t.hasOwnProperty(n) && (e = this.addSingleTagWithValue(n, t[n]) || e); - }), - (n.prototype.handleStTagOnEnter = function (e, n) { - n instanceof HTMLInputElement && - t._POSignalsUtils.Util.isTextInput(n) && - this.handleStTagElement(n); - }), - (n.prototype.handleTagValueOnBlur = function (t, e) { - e && this.addTag(e.fieldKey, e.obfuscatedValue); - }), - (n.prototype.handleStTagOnClick = function (e, n) { - (n instanceof HTMLInputElement && !t._POSignalsUtils.Util.isClickableInput(n)) || - this.handleStTagElement(n); - }), - (n.prototype.handleMouseInteraction = function (t, e) { - if (e) { - this.incrementEventCounters(e.eventCounters, 'mouse'), - this.filterOldMouseEvents(), - this.mouseInteractionsCount.increment(), - this.reductionManager.reduceMouseInteraction(e); - var n = this.bufferingStrategy.calculateStrategyResult(e, 'mouse'); - (e.quality = n.quality), - this.handleMouseInteractionSummary(e), - n.shouldCollect && - (n.remove && this.removeInteraction(n.remove), - this.capturedMouseInteractions.push(e), - this.lastGestureTimestamp !== e.events[e.events.length - 1].eventTs && - this.currentBufferSize++); - } - }), - (n.prototype.handleMouseInteractionSummary = function (t) { - var e = { - epochTs: t.epochTs, - duration: this.getInteractionDuration(t.events), - quality: t.quality, - }; - this.capturedMouseInteractionSummary.push(e), - this.capturedMouseInteractionSummary.length > 10 && - this.capturedMouseInteractionSummary.remove(0); - }), - (n.prototype.handleIndirect = function (t, e) { - this.filterOldIndirectEvents(), this.addIndirectEvents(e); - }), - (n.prototype.handleKeyboardInteraction = function (t, e) { - if (e) { - this.incrementEventCounters(e.eventCounters, 'keyboard'), - this.filterOldKeyboardEvents(), - this.keyboardInteractionsCount.increment(), - this.reductionManager.reduceKeyboardInteraction(e); - var n = this.bufferingStrategy.calculateStrategyResult(e, 'keyboard'); - n.shouldCollect && - (n.remove && this.removeInteraction(n.remove), - (e.quality = n.quality), - this.capturedKeyboardInteractions.push(e), - this.currentBufferSize++); - } - }), - (n.prototype.handleGesture = function (t, e) { - var n; - if (this.isValidGesture(e)) { - this.incrementEventCounters(e.eventCounters, 'touch'), - this.filterOldGesturesEvents(), - this.gesturesCount.increment(), - this.reductionManager.reduceGesture(e); - var i = this.bufferingStrategy.calculateStrategyResult(e, 'touch'); - i.shouldCollect && - (i.remove && this.removeInteraction(i.remove), - (e.quality = i.quality), - this.sensors.onGesture(e), - this.capturedGestures.push(e), - this.currentBufferSize++, - (this.lastGestureTimestamp = - null === (n = e.events[e.events.length - 1]) || void 0 === n - ? void 0 - : n.eventTs)); - } - }), - (n.prototype.clearIndirectBuffer = function () { - var t = this.indirect.clearBuffer(); - this.addIndirectEvents(t); - }), - (n.prototype.removeInteraction = function (t) { - switch (t.type) { - case 'mouse': - this.capturedMouseInteractions.remove(t.index); - break; - case 'keyboard': - this.capturedKeyboardInteractions.remove(t.index); - break; - case 'touch': - this.capturedGestures.remove(t.index); - } - }), - (n.prototype.addIndirectEvents = function (e) { - var n; - if ( - (null === (n = null === e || void 0 === e ? void 0 : e.events) || void 0 === n - ? void 0 - : n.length) > 0 - ) { - for ( - var i = [], - r = t._POSignalsUtils.Util.typesCounter(this.capturedIndirectEvents.get()), - o = 0, - a = e.events; - o < a.length; - o++ - ) { - var s = a[o]; - t.PointerConfig.instance.pointerParams.highPriorityIndirectEvents.has(s.type) && - this.capturedIndirectEvents.length + i.length < - t.PointerConfig.instance.pointerParams.maxIndirectEvents && - i.push(s), - r[s.type] > 0 || (i.push(s), (r[s.type] = 1)); - } - this.incrementEventCounters(r, 'indirect'), - this.capturedIndirectEvents.set(this.capturedIndirectEvents.concat(i)); - } - }), - (n.prototype.onUrlChange = function () { - this.addTag('location', window.location.href); - }), - (n.prototype.handleStTagElement = function (e) { - if (e) { - var n = t.PointerConfig.instance.pointerParams.maxSelectorChildren, - i = this.tagsWithValueIdentifications.getMatchingTags(e, n); - this.addTagsWithValue(i); - var r = t._POSignalsUtils.Util.isSelectorMatches(e, '[data-st-tag]', n); - if (r instanceof Element) { - var o = t._POSignalsUtils.Util.getAttribute(r, 'data-st-tag'), - a = t._POSignalsUtils.Util.getAttribute(r, 'data-st-tag-value'); - o && this.addTag(o, a); - } - } - }), - (n.prototype.stopListening = function () { - this.keyboard.stop(), - this.mouse.stop(), - this.gesture.stop(), - this.indirect.stop(), - this.sensors.stop(), - window.removeEventListener('_onlocationchange', this.onUrlChangeHandler), - window.removeEventListener('popstate', this.onUrlChangeHandler); - }), - (n.prototype.clearBehavioralData = function () { - this.capturedKeyboardInteractions.clear(), - this.capturedMouseInteractions.clear(), - this.capturedGestures.clear(), - this.capturedIndirectEvents.clear(), - this.sensors.reset(), - t.Tags.instance.reset(), - (this.currentBufferSize = 0), - this.keyboardInteractionsCount.reset(), - this.mouseInteractionsCount.reset(), - this.gesturesCount.reset(), - this.mouseEventCounters.clear(), - this.mouseEventCounters.clear(), - this.indirectEventCounters.clear(), - this.keyboardEventCounters.clear(), - this.touchEventCounters.clear(), - this.eventCounters.clear(); - }), - (n.prototype.isValidGesture = function (e) { - var n, i; - return ( - (null === (n = null === e || void 0 === e ? void 0 : e.events) || void 0 === n - ? void 0 - : n.length) > 0 && - (null === (i = null === e || void 0 === e ? void 0 : e.events) || void 0 === i - ? void 0 - : i.length) < t.PointerConfig.instance.pointerParams.maxSnapshotsCount - ); - }), - (n.prototype.filterOldIndirectEvents = function () { - var t = new Date().getTime(); - this.capturedIndirectEvents.set( - this.capturedIndirectEvents.get().filter(function (e) { - return t - e.epochTs <= 36e5; - }), - ); - }), - (n.prototype.filterOldMouseEvents = function () { - var t = new Date().getTime(); - this.capturedMouseInteractions.set( - this.capturedMouseInteractions.get().filter(function (e) { - return t - e.epochTs <= 36e5; - }), - ); - }), - (n.prototype.filterOldKeyboardEvents = function () { - var t = new Date().getTime(); - this.capturedKeyboardInteractions.set( - this.capturedKeyboardInteractions.get().filter(function (e) { - return t - e.epochTs <= 36e5; - }), - ); - }), - (n.prototype.filterOldGesturesEvents = function () { - var t = new Date().getTime(); - this.capturedGestures.set( - this.capturedGestures.get().filter(function (e) { - return t - e.epochTs <= 36e5; - }), - ); - }), - (n.prototype.incrementEventCounters = function (t, e) { - var n, - i = Date.now(); - switch (e) { - case 'mouse': - n = this.mouseEventCounters; - break; - case 'keyboard': - n = this.keyboardEventCounters; - break; - case 'touch': - n = this.touchEventCounters; - break; - case 'indirect': - n = this.indirectEventCounters; - } - n.set( - n.get().filter(function (t) { - return i - t.epochTs <= 36e5; - }), + return null; + } + convertToTagValueConfig(n) { + var r; + return { + context: + (r = n == null ? void 0 : n.uiElement) === null || r === void 0 ? void 0 : r.location, + valueSelector: c.UiElement.createCssSelector(n == null ? void 0 : n.uiElement), + operation: n == null ? void 0 : n.operation, + valueMandatory: n == null ? void 0 : n.valueMandatory, + }; + } + } + c.UIControlManager = h; + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + class h { + get isStarted() { + return this._isStarted; + } + get onInteraction() { + return this._onInteraction.asEvent(); + } + get onClickEvent() { + return this._onClickEvent.asEvent(); + } + constructor(n, r) { + (this.BEHAVIORAL_TYPE = 'mouse'), + (this._isStarted = !1), + (this._onInteraction = new c.EventDispatcher()), + (this._onClickEvent = new c.EventDispatcher()), + (this.lastMouseInteractionTimestamp = null), + (this.mouseEventsCounter = 0), + (this.eventCounters = { epochTs: Date.now() }), + (this.delegate = n), + (this.uiControlManager = r), + (this.wheelOptions = c._POSignalsUtils.Util.isPassiveSupported() ? { passive: !0 } : !1), + (this.onPointerHandle = this.onPointerEvent.bind(this)), + (this.onClickHandle = this.onClick.bind(this)), + (this.onDblclickHandle = this.onMouseClickEvent.bind(this)), + (this.onMousedownHandle = this.onMouseClickEvent.bind(this)), + (this.onMousemoveHandle = this.onMouseEvent.bind(this)), + (this.onMouseoutHandle = this.onMouseout.bind(this)), + (this.onMouseoverHandle = this.onMouseEvent.bind(this)), + (this.onMouseupHandle = this.onMouseClickEvent.bind(this)), + (this.onWheelHandle = this.onMouseEvent.bind(this)), + (this.interactionUpdateHandle = this.interactionUpdate.bind(this)); + } + countEvent(n) { + this.eventCounters[n] = (this.eventCounters[n] || 0) + 1; + } + interactionUpdate() { + this.lastMouseInteraction + ? Date.now() - this.lastMouseInteractionTimestamp >= + c.PointerConfig.instance.pointerParams.mouseIdleTimeoutMillis && this.dispatch() + : !this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE) && + Date.now() - this.lastMouseInteractionTimestamp <= + c.PointerConfig.instance.pointerParams.mouseIntervalMillis && + this.dispatch(); + } + enrichLastInteraction() { + var n; + if (!this.lastMouseInteraction) return; + (this.lastMouseInteraction.eventCounters = this.eventCounters), + (this.lastMouseInteraction.duration = this.delegate.getInteractionDuration( + this.lastMouseInteraction.events, + )); + const r = + (n = this.lastMouseInteraction.events) === null || n === void 0 + ? void 0 + : n.filter((a) => a.type === 'mousemove'); + (this.lastMouseInteraction.timeProximity = + c._POSignalsUtils.Util.calculateMeanTimeDeltasBetweenEvents(r)), + (this.lastMouseInteraction.meanEuclidean = + c._POSignalsUtils.Util.calculateMeanDistanceBetweenPoints(r)); + } + dispatch() { + try { + this.enrichLastInteraction(), + this._onInteraction.dispatch(this, this.lastMouseInteraction), + (this.eventCounters = { epochTs: Date.now() }), + (this.lastMouseInteraction = null), + (this.mouseEventsCounter = 0); + } catch (n) { + c._POSignalsUtils.Logger.warn('Failed to dispatch mouse events', n); + } + } + updateInteraction(n, r) { + this.lastMouseInteraction || + (this.lastMouseInteraction = { + epochTs: Date.now(), + events: [], + counter: this.delegate.mouseCounter, + additionalData: this.delegate.additionalData, + eventCounters: { epochTs: Date.now() }, + duration: 0, + timeProximity: 0, + uiControl: void 0, + meanEuclidean: 0, + reduction: {}, + quality: '', + }), + this.lastMouseInteraction.events.push(n), + this.mouseEventsCounter++, + r && + ((this.lastMouseInteraction.uiControl = { + uiElement: r.uiElement, + enrichedData: r.enrichedData, + }), + this.delegate.addUiControlTags(r.tagConfig)), + this.mouseEventsCounter >= c.PointerConfig.instance.pointerParams.maxMouseEvents && + this.dispatch(); + } + start() { + this._isStarted + ? c._POSignalsUtils.Logger.debug('Desktop Mouse events already listening') + : (this.delegate.addEventListener(document, 'click', this.onClickHandle, !0), + this.delegate.addEventListener(document, 'dblclick', this.onDblclickHandle), + this.delegate.addEventListener(document, 'mousedown', this.onMousedownHandle), + this.delegate.addEventListener(document, 'mousemove', this.onMousemoveHandle), + this.delegate.addEventListener(document, 'mouseout', this.onMouseoutHandle), + this.delegate.addEventListener(document, 'mouseover', this.onMouseoverHandle), + this.delegate.addEventListener(document, 'mouseup', this.onMouseupHandle), + this.delegate.addEventListener( + document, + 'wheel', + this.onWheelHandle, + this.wheelOptions, ), - n.length < this.MAX_EVENT_COUNTERS ? n.push(t) : (n.remove(0), n.push(t)); - }), - (n.prototype.reduceEpochEventCounters = function () { - var t = { epochTs: Date.now() }; - return ( - __spreadArrays( - this.mouseEventCounters.get(), - this.keyboardEventCounters.get(), - this.touchEventCounters.get(), - this.indirectEventCounters.get(), - ).forEach(function (e) { - Object.keys(e).forEach(function (n) { - 'epochTs' !== n && (t[n] ? (t[n] += e[n]) : (t[n] = e[n])); - }); - }), - delete t.epochTs, - t - ); - }), + this.delegate.addEventListener(document, 'pointerover', this.onPointerHandle), + this.delegate.addEventListener(document, 'pointerenter', this.onPointerHandle), + this.delegate.addEventListener(document, 'pointerdown', this.onPointerHandle), + this.delegate.addEventListener(document, 'pointermove', this.onPointerHandle), + this.delegate.addEventListener(document, 'pointerup', this.onPointerHandle), + this.delegate.addEventListener(document, 'pointercancel', this.onPointerHandle), + this.delegate.addEventListener(document, 'pointerout', this.onPointerHandle), + this.delegate.addEventListener(document, 'pointerleave', this.onPointerHandle), + (this.updateIntervalHandle = setInterval( + this.interactionUpdateHandle, + c.PointerConfig.instance.pointerParams.mouseIntervalMillis, + )), + (this._isStarted = !0), + c._POSignalsUtils.Logger.debug('Desktop Mouse events start listening...')); + } + stop() { + this._isStarted + ? (document.removeEventListener('click', this.onClickHandle, !0), + document.removeEventListener('dblclick', this.onDblclickHandle), + document.removeEventListener('mousedown', this.onMousedownHandle), + document.removeEventListener('mousemove', this.onMousemoveHandle), + document.removeEventListener('mouseout', this.onMouseoutHandle), + document.removeEventListener('mouseover', this.onMouseoverHandle), + document.removeEventListener('mouseup', this.onMouseupHandle), + document.removeEventListener('wheel', this.onWheelHandle, this.wheelOptions), + document.removeEventListener('pointerover', this.onPointerHandle), + document.removeEventListener('pointerenter', this.onPointerHandle), + document.removeEventListener('pointerdown', this.onPointerHandle), + document.removeEventListener('pointermove', this.onPointerHandle), + document.removeEventListener('pointerup', this.onPointerHandle), + document.removeEventListener('pointercancel', this.onPointerHandle), + document.removeEventListener('pointerout', this.onPointerHandle), + document.removeEventListener('pointerleave', this.onPointerHandle), + clearInterval(this.updateIntervalHandle), + (this.updateIntervalHandle = null), + (this._isStarted = !1), + c._POSignalsUtils.Logger.debug('Desktop Mouse events stop listening...')) + : c._POSignalsUtils.Logger.debug('Desktop Mouse events already stopped'); + } + onClick(n) { + var r, a; + try { + this.lastMouseInteractionTimestamp = Date.now(); + const s = c._POSignalsUtils.Util.getSrcElement(n); + if ( + (this._onClickEvent.dispatch(this, s), + !this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE) || + (this.countEvent(n.type), + c.PointerConfig.instance.pointerParams.eventsToIgnore.has(n.type))) + ) + return; + const i = this.uiControlManager.createUIControlData(n); + this.updateInteraction(this.createMouseClickEvent(n.type, n), i), + this.dispatch(), + ((a = + (r = i == null ? void 0 : i.uiElement) === null || r === void 0 ? void 0 : r.id) === + null || a === void 0 + ? void 0 + : a.length) > 0 && + c._POSignalsUtils.Logger.info(`Tapped on element with id '${i.uiElement.id}'`); + } catch (s) { + c._POSignalsUtils.Logger.warn(`error in ${n.type} handler`, s); + } + } + onMouseout(n) { + try { + this.onMouseEvent(n); + const r = n.relatedTarget || n.toElement; + (!r || r.nodeName === 'HTML') && this.dispatch(); + } catch (r) { + c._POSignalsUtils.Logger.warn(`error in ${n.type} handler`, r); + } + } + onMouseEvent(n) { + try { + if ( + (n.type !== 'wheel' && (this.lastMouseInteractionTimestamp = Date.now()), + !this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE) || + (this.countEvent(n.type), + c.PointerConfig.instance.pointerParams.eventsToIgnore.has(n.type))) + ) + return; + this.updateInteraction(this.createMouseEvent(n.type, n)); + } catch (r) { + c._POSignalsUtils.Logger.warn(`error in ${n.type} handler`, r); + } + } + onMouseClickEvent(n) { + try { + if ( + ((this.lastMouseInteractionTimestamp = Date.now()), + !this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE) || + (this.countEvent(n.type), + c.PointerConfig.instance.pointerParams.eventsToIgnore.has(n.type))) + ) + return; + this.updateInteraction(this.createMouseClickEvent(n.type, n)); + } catch (r) { + c._POSignalsUtils.Logger.warn(`error in ${n.type} handler`, r); + } + } + onPointerEvent(n) { + try { + if ( + ((this.lastMouseInteractionTimestamp = Date.now()), + !this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE) || + (this.countEvent(n.type), + c.PointerConfig.instance.pointerParams.eventsToIgnore.has(n.type))) + ) + return; + this.updateInteraction(this.createPointerEvent(n.type, n)); + } catch (r) { + c._POSignalsUtils.Logger.warn(`error in ${n.type} handler`, r); + } + } + clearBuffer() { + let n = null; + return ( + this.lastMouseInteraction && (n = this.lastMouseInteraction), + (this.lastMouseInteraction = null), n ); - })(t.ClientBase); - t.Client = e; - })(_POSignalsEntities || (_POSignalsEntities = {})); - var _POSignalsEntities, - _pingOneSignals = (function () { - function t() {} - return ( - (t.getData = function () { - return _POSignalsEntities.ClientBase.instance().getData(); - }), - (t.init = function (t) { + } + isEmpty() { + return !this.lastMouseInteraction; + } + createMouseEvent(n, r) { + return { + type: n, + eventTs: r.timeStamp, + epochTs: Date.now(), + button: r.button, + offsetX: r.offsetX, + offsetY: r.offsetY, + pageX: r.pageX, + pageY: r.pageY, + screenX: r.screenX, + screenY: r.screenY, + getX() { + return r.screenX; + }, + getY() { + return r.screenY; + }, + }; + } + createPointerEvent(n, r) { + return { + ...this.createMouseEvent(n, r), + pointerId: r.pointerId, + width: r.width, + height: r.height, + pressure: r.pressure, + tangentialPressure: r.tangentialPressure, + tiltX: r.tiltX, + tiltY: r.tiltY, + twist: r.twist, + pointerType: r.pointerType, + isPrimary: r.isPrimary, + }; + } + createMouseClickEvent(n, r) { + const a = this.createMouseEvent(n, r); + if (r.target && c._POSignalsUtils.Util.isFunction(r.target.getBoundingClientRect)) { + const s = r.target.getBoundingClientRect(); + (a.targetBottom = s.bottom), + (a.targetHeight = s.height), + (a.targetLeft = s.left), + (a.targetRight = s.right), + (a.targetTop = s.top), + (a.targetWidth = s.width), + (a.targetX = s.x), + (a.targetY = s.y); + } + return a; + } + } + c.Mouse = h; + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + class h { + constructor(n) { + (this.counter = 0), (this.key = n), (this.counter = this.loadFromStorage()); + } + loadFromStorage() { + const n = h.sessionStorage.getItem(this.key); + return Number(n) || 0; + } + get() { + return this.counter; + } + increment(n = 1) { + (this.counter += n), h.sessionStorage.setItem(this.key, this.counter); + } + decrement(n = 1) { + this.increment(n * -1); + } + reset() { + (this.counter = 0), h.sessionStorage.removeItem(this.key); + } + } + (h.sessionStorage = c._POSignalsStorage.SessionStorage.instance.sessionStorage), + (c.StorageCounter = h); + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + class h { + constructor(n) { + (this.mapKey = n), (this.cache = this.loadFromStorage()); + } + loadFromStorage() { + let n = h.sessionStorage.getItem(this.mapKey); + return n || (n = JSON.stringify({})), JSON.parse(n); + } + asMap() { + return this.cache; + } + set(n, r, a = !0) { + (this.cache[n] = r), a && h.sessionStorage.setItem(this.mapKey, JSON.stringify(this.cache)); + } + sync() { + h.sessionStorage.setItem(this.mapKey, JSON.stringify(this.cache)); + } + get(n) { + return this.cache[n]; + } + delete(n) { + delete this.cache[n], h.sessionStorage.setItem(this.mapKey, JSON.stringify(this.cache)); + } + values() { + return c._POSignalsUtils.Util.values(this.cache); + } + clear() { + (this.cache = {}), h.sessionStorage.removeItem(this.mapKey); + } + forEach(n) { + for (const r in this.cache) this.cache.hasOwnProperty(r) && n(this.cache[r], r); + } + } + (h.sessionStorage = c._POSignalsStorage.SessionStorage.instance.sessionStorage), + (c.StorageMap = h); + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + class h { + constructor() { + (this.config = {}), (this._cacheHash = 0), (this.cache = new Map()); + } + refreshConfig(n) { + try { + if (!n) return; + const r = c._POSignalsUtils.Util.hashCode(JSON.stringify(n)); + if (this._cacheHash === r) return; + (this.config = n), (this._cacheHash = r), (this.cache = new Map()); + } catch (r) { + c._POSignalsUtils.Logger.warn('Failed to set css selectors', r); + } + } + getMatchingTags(n, r) { + const a = this.cache.get(n); + if (a) return a; + const s = {}; + for (const i in this.config) + try { + if (!this.config.hasOwnProperty(i)) continue; + let t = this.config[i].selector || []; + c._POSignalsUtils.Util.isArray(t) || (t = [].concat(t)); + for (const e of t) + c._POSignalsUtils.Util.isSelectorMatches(n, e, r) && (s[i] = this.config[i]); + } catch (t) { + c._POSignalsUtils.Logger.warn(`Failed to get the config for ${i} tag`, t); + } + return this.cache.set(n, s), s; + } + getValue(n, r) { + if (r && n) + switch (((r = r.trim()), n)) { + case 'email_domain': + return c._POSignalsUtils.Util.getEmailDomain(r); + case 'obfuscate': + return `${c._POSignalsUtils.Util.mod(r, 1e3)}`; + case 'plain': + return r; + case 'zip': + return r.substr(0, 3); + case 'length': + return `${r.length}`; + } + return ''; + } + get cacheHash() { + return this._cacheHash; + } + } + c.TagsIdentifications = h; + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + class h { + constructor() { + this._reduceFactorMap = null; + } + set reduceFactorMap(n) { + this._reduceFactorMap = n; + } + get reduceFactorMap() { + return this._reduceFactorMap; + } + reduceEventsByFactor(n) { + try { + if (!n || n.length === 0 || !this.reduceFactorMap) return n; + const r = new Map(), + a = []; + for (let i = 0; i < n.length; i++) + r.get(n[i].type) ? r.get(n[i].type).push(i) : r.set(n[i].type, [i]); + r.forEach((i, t) => { + const e = this.reduceFactorMap[t] ? Number(this.reduceFactorMap[t]) : 0; + this.reduceByFactor(e, i, (l) => { + a[i[l]] = !0; + }); + }); + const s = []; + for (let i = 0; i < n.length; i++) a[i] && s.push(n[i]); return ( - _POSignalsEntities._POSignalsUtils.Util.ieFix(), - _POSignalsEntities.ClientBase.instance().startSignals(t) + n.length !== s.length && + c._POSignalsUtils.Logger.debug( + `${n.length - s.length} events reduced out of ${n.length}`, + ), + s ); - }), - (t.initSilent = function (t) { - return this.init(t); - }), - (t.pauseBehavioralData = function () { - _POSignalsEntities.ClientBase.instance().pauseBehavioralData(); - }), - (t.resumeBehavioralData = function () { - _POSignalsEntities.ClientBase.instance().resumeBehavioralData(); - }), - t - ); - })(), - onDomReady = function (t) { - 'loading' !== document.readyState ? t() : document.addEventListener('DOMContentLoaded', t); - }; - onDomReady(function () { - if (!window._pingOneSignalsReady) { - var t = new CustomEvent('PingOneSignalsReadyEvent'); - document.dispatchEvent(t), (window._pingOneSignalsReady = !0); - } - }), - (function (t) { - var e; - !(function (t) { - (t[(t.RICH = 3)] = 'RICH'), - (t[(t.CLICK = 2)] = 'CLICK'), - (t[(t.MOVE = 1)] = 'MOVE'), - (t[(t.POOR = 0)] = 'POOR'); - })(e || (e = {})); - var n = (function () { - function n(t, e, n, i, r, o) { - (this.clientVersion = t), - (this.instanceUUID = e), - (this.initParams = n), - (this.metadata = i), - (this.behavioralDataHandler = r), - (this.sessionData = o), - (this.Max_Mouse_Touch_Interactions = 6); + } catch (r) { + return c._POSignalsUtils.Logger.warn('Failed to reduce events', r), n; + } + } + reduceByFactor(n, r, a) { + n = Math.min(n, 1); + const s = Math.round(Math.max(r.length * (1 - n), 2)), + i = (r.length - 1) / (s - 1), + t = Math.min(r.length, s); + for (let e = 0; e < t; e++) { + const l = Math.round(e * i); + a(l); } + } + } + c.ReduceFactor = h; + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + class h { + constructor(n) { + this.algorithm = n; + } + reduce(n, r) { + if (h.TYPES_TO_REDUCE.indexOf(r) === -1) return { keptEvents: n, epsilon: 0 }; + if (n.length <= h.MIN_EVENTS_TO_REDUCE) return { keptEvents: n, epsilon: 0 }; + const a = n.length < 50 ? 0.55 : n.length < 100 ? 0.35 : 0.2, + s = n.length < 50 ? 1 : n.length < 100 ? 3 : 7, + i = this.algorithm.reduceEvents(n, s), + t = i.length / n.length; + if (i.length >= 10 && t >= a) return { keptEvents: i, epsilon: s }; + const e = n.length < 50 ? 0.1 : n.length < 100 ? 0.3 : 0.7, + l = this.algorithm.reduceEvents(n, e), + o = l.length / n.length; + if (l.length <= h.MIN_EVENTS_TO_REDUCE || o <= a) return { keptEvents: l, epsilon: e }; + const v = + (Math.min(s, Math.pow(s, t / a)) * Math.abs(o - a) + e * Math.abs(t - a)) / + Math.abs(t - o); return ( - (n.prototype.getData = function (t) { - return __awaiter(this, void 0, void 0, function () { - var e, n; - return __generator(this, function (i) { - switch (i.label) { - case 0: - return this.incrementGetData(), [4, this.getRiskData(t)]; - case 1: - return ( - (e = i.sent()), - -1 !== - (n = e.tags.findIndex(function (t) { - return 'Get Data' === t.name; - })) - ? (e.tags[n] = this._getDataCounter) - : e.tags.push(this._getDataCounter), - [2, this.toString(e)] - ); - } - }); - }); - }), - (n.prototype.getRiskData = function (e) { - return __awaiter(this, void 0, void 0, function () { - var n, i, r, o, a, s, u; - return __generator(this, function (c) { - switch (c.label) { - case 0: - return [ - 4, - Promise.all([ - this.metadata.getDeviceAttributes(), - this.metadata.getLocalAgentJwt(), - ]), - ]; - case 1: - return ( - (n = c.sent()), - (i = n[0]), - (r = n[1]), - (o = this.behavioralDataHandler.getBehavioralData()), - [4, this.modifyBehavioralData(o)] - ); - case 2: - return ( - (o = c.sent()), - (a = { - behavioral: o, - tags: t.Tags.instance.tags, - sdkConfig: this.initParams, - epochTs: e, - instanceUUID: this.instanceUUID, - tabUUID: t._POSignalsStorage.SessionStorage.instance.tabUUID, - sdkVersion: this.clientVersion, - platform: 'web', - clientToken: window._pingOneSignalsToken, - }), - this.sessionData.universalTrustEnabled - ? ((u = {}), [4, this.getJWTSignedPayload(e, i.deviceId)]) - : [3, 4] - ); - case 3: - return ( - (s = __assign.apply(void 0, [((u.jwtDeviceAttributes = c.sent()), u), a])), - [3, 5] - ); - case 4: - (s = __assign({ deviceAttributes: i }, a)), (c.label = 5); - case 5: - return ( - this.sessionData.agentIdentificationEnabled && - (s = __assign({ jwtAgentPayload: r }, s)), - [2, s] - ); - } - }); - }); + (v < e || v > s) && + c._POSignalsUtils.Logger.warn( + `linear weighted average - calculated epsilon is out of range, lowEpsilon: ${e}, highEpsilon: ${s}, epsilon: ${v}`, + ), + { keptEvents: this.algorithm.reduceEvents(n, v), epsilon: v } + ); + } + } + (h.MIN_EVENTS_TO_REDUCE = 18), + (h.TYPES_TO_REDUCE = ['mousemove', 'touchmove']), + (c.RDPEpsilonStrategy = h); + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + class h { + constructor(n) { + this.rdpStrategy = n; + } + reduceWithRPD(n) { + if (!n || n.length === 0) return { events: n, reductionInfo: {} }; + const r = new Map(); + let a = []; + for (const t of n) r.get(t.type) ? r.get(t.type).push(t) : r.set(t.type, [t]); + const s = {}; + return ( + r.forEach((t, e) => { + const { keptEvents: l, epsilon: o } = this.rdpStrategy.reduce(t, e); + o > 0 && (s[e] = { epsilon: o, originalLength: t.length, keptLength: l.length }), + (a = a.concat(l)); }), - (n.prototype.toString = function (e) { - var n, - i = this.metadata.getObfsInfo(); - try { - n = t._POSignalsUtils.Util.string2buf(JSON.stringify(e)); - } catch (t) { - throw new Error('Failed to create data, ' + t.message); - } - try { - n = t.pako.gzip(n); - } catch (t) { - throw new Error('Failed to compress data, ' + t.message); - } - try { - n = t._POSignalsUtils.Util.encryptionBytes(n, i.key); - } catch (t) { - throw new Error('failed to obfuscate data, ' + t.message); - } - try { - return t._POSignalsUtils.Util.base64Uint8Array(n) + '.' + btoa(i.identifier); - } catch (t) { - throw new Error('failed to encode data, ' + t.message); + { events: c._POSignalsUtils.Util.sortEventsByTimestamp(a), reductionInfo: s } + ); + } + } + c.ReduceRDP = h; + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + class h { + getSqDist(n, r) { + const a = n.getX() - r.getX(), + s = n.getY() - r.getY(); + return a * a + s * s; + } + getSqSegDist(n, r, a) { + let s = r.getX(), + i = r.getY(), + t = a.getX() - s, + e = a.getY() - i; + if (t !== 0 || e !== 0) { + const l = ((n.getX() - s) * t + (n.getY() - i) * e) / (t * t + e * e); + l > 1 ? ((s = a.getX()), (i = a.getY())) : l > 0 && ((s += t * l), (i += e * l)); + } + return (t = n.getX() - s), (e = n.getY() - i), t * t + e * e; + } + simplifyRadialDist(n, r) { + let a = n[0], + s = [a], + i; + for (let t = 1, e = n.length; t < e; t++) + (i = n[t]), this.getSqDist(i, a) > r && (s.push(i), (a = i)); + return a !== i && s.push(i), s; + } + simplifyDPStep(n, r, a, s, i) { + let t = s, + e; + for (let l = r + 1; l < a; l++) { + const o = this.getSqSegDist(n[l], n[r], n[a]); + o > t && ((e = l), (t = o)); + } + t > s && + (e - r > 1 && this.simplifyDPStep(n, r, e, s, i), + i.push(n[e]), + a - e > 1 && this.simplifyDPStep(n, e, a, s, i)); + } + simplifyDouglasPeucker(n, r) { + const a = n.length - 1, + s = [n[0]]; + return this.simplifyDPStep(n, 0, a, r, s), s.push(n[a]), s; + } + simplify(n, r, a) { + if (n.length <= 2) return n; + const s = r !== void 0 ? r * r : 1; + return ( + (n = a ? n : this.simplifyRadialDist(n, s)), (n = this.simplifyDouglasPeucker(n, s)), n + ); + } + reduceEvents(n, r) { + return this.simplify(n, r); + } + } + c.RDPReduction = h; + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + class h { + filterMoveEvents(n, r) { + if (n.length <= 18) return n; + const a = n.filter((e) => e.type === r), + s = c._POSignalsUtils.Util.keepFirstEventsWithDistance({ + events: a, + threshold: 200, + min: 18, + max: 30, + }); + let i = -1; + const t = {}; + for (let e = 0; e < n.length; e++) { + const l = n[e]; + if (l.type !== r) { + if (l.type === 'mousedown') { + i = e; + continue; } - }), - (n.prototype.getJWTSignedPayload = function (t, e) { - return __awaiter(this, void 0, void 0, function () { - var n; - return __generator(this, function (i) { - return ( - (n = this.metadata.getSerializedDeviceAttributes()), - [2, this.sessionData.signJWTChallenge(n, t, e)] - ); - }); - }); - }), - (n.prototype.modifyBehavioralData = function (t) { - return __awaiter(this, void 0, void 0, function () { - return __generator(this, function (e) { - return ( - (t.mouse.interactions = this.getBestMouseInteractions(t.mouse.interactions)), - (t.touch.interactions = this.getBestTouchInteractions( - t.touch.interactions, - t.mouse.interactions, - )), - (t.keyboard.interactions = this.getBestKeyboardInteractions( - t.keyboard.interactions, - )), - [2, t] - ); - }); - }); - }), - (n.prototype.getBestInteractions = function (e) { - var n = Date.now(); - t._POSignalsUtils.Logger.debug('total interactions:', e); - var i = e.filter(function (t) { - return n - t.epochTs <= 18e4; - }), - r = this.sortInteractions(i).slice(0, 2), - o = e.filter(function (t) { - return !r.some(function (e) { - return e.epochTs === t.epochTs; - }); - }), - a = this.sortInteractions(o).slice(0, 5 - r.length); - return ( - t._POSignalsUtils.Logger.debug( - 'final interactions for getData:', - __spreadArrays(r, a), - ), - __spreadArrays(r, a).sort(function (t, e) { - return t.epochTs - e.epochTs; - }) - ); - }), - (n.prototype.getBestMouseInteractions = function (t) { - return this.getBestInteractions(t); - }), - (n.prototype.getBestKeyboardInteractions = function (t) { - return this.getBestInteractions(t); - }), - (n.prototype.getBestTouchInteractions = function (t, e) { - var n = this.Max_Mouse_Touch_Interactions - e.length; - return this.getTouchBestInteraction(t, n); - }), - (n.prototype.incrementGetData = function () { - this._getDataCounter - ? (this._getDataCounter.value++, (this._getDataCounter.timestamp = Date.now())) - : (this._getDataCounter = { - value: 1, - name: 'Get Data', - timestamp: Date.now(), - epochTs: Date.now(), - }); - }), - (n.prototype.getTouchBestInteraction = function (t, e) { - return (t = this.sortInteractions(t)).slice(0, e); - }), - (n.prototype.sortInteractions = function (t) { - return t.sort(function (t, n) { - var i = e[t.quality], - r = e[n.quality]; - return i === r ? n.epochTs - t.epochTs : r - i; + t[l.type] || (s.push(l), (t[l.type] = !0)); + } + } + return i >= 0 && s.push(n[i]), c._POSignalsUtils.Util.sortEventsByTimestamp(s); + } + } + c.EventsReduction = h; + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + class h { + constructor() { + (this.reduceFactor = new c.ReduceFactor()), + (this.reduceRDP = new c.ReduceRDP(new c.RDPEpsilonStrategy(new c.RDPReduction()))), + (this.eventsReduction = new c.EventsReduction()); + } + set reduceFactorMap(n) { + this.reduceFactor.reduceFactorMap = n; + } + reduceGesture(n) { + const r = this.reduceRDP.reduceWithRPD(n.events); + (n.events = this.eventsReduction.filterMoveEvents(r.events, 'touchmove')), + (n.reduction = r.reductionInfo); + } + reduceKeyboardInteraction(n) { + n.events = c._POSignalsUtils.Util.filterArrayByLength(n.events, 50); + } + reduceMouseInteraction(n) { + const r = this.reduceRDP.reduceWithRPD(n.events); + (n.events = this.eventsReduction.filterMoveEvents(r.events, 'mousemove')), + (n.reduction = r.reductionInfo); + } + } + c.ReductionManager = h; + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + class h extends c.ClientBase { + constructor(n, r) { + super(n), + (this.tagsWithValueIdentifications = new c.TagsIdentifications()), + (this.reductionManager = new c.ReductionManager()), + (this.lastGestureTimestamp = 0), + (this.currentBufferSize = 0), + (this.MAX_EVENT_COUNTERS = 20), + (this.bufferingStrategy = c.StrategyFactory.createBufferingStrategy(r, this)), + (this.capturedKeyboardInteractions = new c.StorageArray( + c._POSignalsUtils.Constants.CAPTURED_KEYBOARD_INTERACTIONS, + )), + (this.keyboardInteractionsCount = new c.StorageCounter( + c._POSignalsUtils.Constants.KEYBOARD_INTERACTIONS_COUNT, + )), + (this.mouseInteractionsCount = new c.StorageCounter( + c._POSignalsUtils.Constants.MOUSE_INTERACTIONS_COUNT, + )), + (this.gesturesCount = new c.StorageCounter(c._POSignalsUtils.Constants.GESTURES_COUNT)), + (this.mouseEventCounters = new c.StorageArray( + c._POSignalsUtils.Constants.MOUSE_EVENT_COUNTERS, + )), + (this.keyboardEventCounters = new c.StorageArray( + c._POSignalsUtils.Constants.KEYBOARD_EVENT_COUNTERS, + )), + (this.touchEventCounters = new c.StorageArray( + c._POSignalsUtils.Constants.TOUCH_EVENT_COUNTERS, + )), + (this.indirectEventCounters = new c.StorageArray( + c._POSignalsUtils.Constants.INDIRECT_EVENT_COUNTERS, + )), + (this.capturedMouseInteractions = new c.StorageArray( + c._POSignalsUtils.Constants.CAPTURED_MOUSE_INTERACTIONS, + )), + (this.capturedGestures = new c.StorageArray( + c._POSignalsUtils.Constants.CAPTURED_GESTURES, + )), + (this.capturedIndirectEvents = new c.StorageArray( + c._POSignalsUtils.Constants.CAPTURED_INDIRECT, + )), + (this.capturedMouseInteractionSummary = new c.StorageArray( + c._POSignalsUtils.Constants.CAPTURED_MOUSE_INTERACTIONS_SUMMARY, + )), + (this.currentBufferSize = + this.capturedGestures.length + + this.capturedMouseInteractions.length + + this.capturedKeyboardInteractions.length), + (this.uiControlManager = new c.UIControlManager(this)), + (this.keyboard = new c.Keyboard(this, this.uiControlManager)), + this.keyboard.onInteraction.subscribe(this.handleKeyboardInteraction.bind(this)), + this.keyboard.onEnterPress.subscribe(this.handleStTagOnEnter.bind(this)), + this.keyboard.onObfuscatedValue.subscribe(this.handleTagValueOnBlur.bind(this)), + (this.mouse = new c.Mouse(this, this.uiControlManager)), + this.mouse.onInteraction.subscribe(this.handleMouseInteraction.bind(this)), + this.mouse.onClickEvent.subscribe(this.handleStTagOnClick.bind(this)), + (this.sensors = new c.Sensors(this)), + (this.gesture = new c.GestureEvents(this, this.sensors)), + this.gesture.onGesture.subscribe(this.handleGesture.bind(this)), + (this.indirect = new c.IndirectClient(this)), + this.indirect.onIndirect.subscribe(this.handleIndirect.bind(this)), + (this.onUrlChangeHandler = this.onUrlChange.bind(this)); + } + get keyboardCounter() { + return this.keyboardInteractionsCount.get(); + } + get mouseCounter() { + return this.mouseInteractionsCount.get(); + } + get gesturesCounter() { + return this.gesturesCount.get(); + } + get additionalData() { + const n = c._POSignalsUtils.Util.getDeviceOrientation(); + return { + locationHref: location.href, + devTools: c._POSignalsUtils.Util.getDevToolsState(), + innerWidth: + window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth, + innerHeight: + window.innerHeight || + document.documentElement.clientHeight || + document.body.clientHeight, + outerWidth: window.outerWidth, + outerHeight: window.outerHeight, + width: screen.width, + height: screen.height, + availWidth: screen.availWidth, + availHeight: screen.availHeight, + pixelRatio: window.devicePixelRatio, + deviceOrientation: n.orientation, + deviceAngle: n.angle, + }; + } + getBehavioralData() { + this.clearIndirectBuffer(); + const n = this.reduceEpochEventCounters(); + return { + mouse: { + count: this.mouseInteractionsCount.get(), + interactions: this.capturedMouseInteractions.get(), + }, + keyboard: { + count: this.keyboardInteractionsCount.get(), + interactions: this.capturedKeyboardInteractions.get(), + }, + touch: { count: this.gesturesCount.get(), interactions: this.capturedGestures.get() }, + indirect: { events: this.capturedIndirectEvents.get() }, + mouseSummary: { events: this.capturedMouseInteractionSummary.get() }, + eventCounters: n, + }; + } + getBufferSize() { + return this.currentBufferSize; + } + getInteractionDuration(n) { + return (n == null ? void 0 : n.length) > 0 ? n[n.length - 1].epochTs - n[0].epochTs : 0; + } + async dispose() { + this.stopListening(), + this.keyboard.onInteraction.unsubscribe(this.handleKeyboardInteraction.bind(this)), + this.keyboard.onEnterPress.unsubscribe(this.handleStTagOnEnter.bind(this)), + this.keyboard.onObfuscatedValue.unsubscribe(this.handleTagValueOnBlur.bind(this)), + this.mouse.onInteraction.unsubscribe(this.handleMouseInteraction.bind(this)), + this.mouse.onClickEvent.unsubscribe(this.handleStTagOnClick.bind(this)), + this.gesture.onGesture.unsubscribe(this.handleGesture.bind(this)), + this.indirect.unsubscribe(), + this.indirect.onIndirect.unsubscribe(this.handleIndirect.bind(this)); + } + collectBehavioralData(n) { + if (this.isBehavioralDataPaused) return !1; + const r = c.PointerConfig.instance.pointerParams.behavioralBlacklist; + return !n || !r || !r[n] ? !0 : !window.location.href.match(r[n]); + } + getElementsStID(n) { + try { + return ( + c._POSignalsUtils.Util.getAttribute(n, 'data-st-field') || + this.keyboard.fieldsIdentifications.getIdentification(n, 0) || + '' + ); + } catch (r) { + return c._POSignalsUtils.Logger.warn('failed to get element stId', r), ''; + } + } + addEventListener(n, r, a, s) { + c.PointerConfig.instance.pointerParams.eventsBlackList.has(r) || + (n.addEventListener(r, this.onEventHandler, s), n.addEventListener(r, a, s)); + } + addUiControlTags(n) { + if ((n == null ? void 0 : n.length) > 0) { + let r = !1; + for (const a of n) + try { + if (a != null && a.name) { + const s = this.uiControlManager.convertToTagValueConfig(a.value); + r = this.addSingleTagWithValue(a.name, s) || r; + } + } catch (s) { + c._POSignalsUtils.Logger.warn('failed to add tag config', s); + } + } + } + refreshListening() { + const n = c.PointerConfig.instance; + this.tagsWithValueIdentifications.refreshConfig(n.pointerParams.remoteTags), + (this.reductionManager.reduceFactorMap = n.pointerParams.eventsReduceFactorMap), + this.keyboard.refreshKeyboardCssSelectors(n.pointerParams.keyboardCssSelectors), + (this.sensors.maxSensorSamples = n.pointerParams.maxSensorSamples), + (this.sensors.sensorsTimestampDeltaInMillis = n.pointerParams.sensorsDeltaInMillis), + this.mouse.start(), + this.keyboard.start(), + this.gesture.start(), + this.indirect.start(), + n.pointerParams.maxSensorSamples == 0 ? this.sensors.stop() : this.sensors.start(), + this.addEventListener(window, '_onlocationchange', this.onUrlChangeHandler), + this.addEventListener(window, 'popstate', this.onUrlChangeHandler); + } + addSingleTagWithValue(n, r) { + try { + if (r != null && r.context && !window.location.href.match(r.context)) return !1; + let a = ''; + if (r != null && r.operation && r != null && r.valueSelector) { + const s = document.querySelector(r.valueSelector); + if (s) { + const i = c._POSignalsUtils.Util.getElementText(s); + a = this.tagsWithValueIdentifications.getValue(r.operation, i); + } + } + if (r != null && r.valueMandatory && !a) + return c._POSignalsUtils.Logger.warn(`tag '${n}' wasn't added. value is missing`), !1; + this.addTag(n, a); + } catch (a) { + c._POSignalsUtils.Logger.warn(`failed to add ${n} tag`, a); + } + return !1; + } + addTagsWithValue(n) { + let r = !1; + for (const a in n) n.hasOwnProperty(a) && (r = this.addSingleTagWithValue(a, n[a]) || r); + } + handleStTagOnEnter(n, r) { + r instanceof HTMLInputElement && + c._POSignalsUtils.Util.isTextInput(r) && + this.handleStTagElement(r); + } + handleTagValueOnBlur(n, r) { + r && this.addTag(r.fieldKey, r.obfuscatedValue); + } + handleStTagOnClick(n, r) { + (!(r instanceof HTMLInputElement) || c._POSignalsUtils.Util.isClickableInput(r)) && + this.handleStTagElement(r); + } + handleMouseInteraction(n, r) { + if (!r) return; + this.incrementEventCounters(r.eventCounters, 'mouse'), + this.filterOldMouseEvents(), + this.mouseInteractionsCount.increment(), + this.reductionManager.reduceMouseInteraction(r); + const a = this.bufferingStrategy.calculateStrategyResult(r, 'mouse'); + (r.quality = a.quality), + this.handleMouseInteractionSummary(r), + a.shouldCollect && + (a.remove && this.removeInteraction(a.remove), + this.capturedMouseInteractions.push(r), + this.lastGestureTimestamp !== r.events[r.events.length - 1].eventTs && + this.currentBufferSize++); + } + handleMouseInteractionSummary(n) { + const r = { + epochTs: n.epochTs, + duration: this.getInteractionDuration(n.events), + quality: n.quality, + }; + this.capturedMouseInteractionSummary.push(r), + this.capturedMouseInteractionSummary.length > 10 && + this.capturedMouseInteractionSummary.remove(0); + } + handleIndirect(n, r) { + this.filterOldIndirectEvents(), this.addIndirectEvents(r); + } + handleKeyboardInteraction(n, r) { + if (!r) return; + this.incrementEventCounters(r.eventCounters, 'keyboard'), + this.filterOldKeyboardEvents(), + this.keyboardInteractionsCount.increment(), + this.reductionManager.reduceKeyboardInteraction(r); + const a = this.bufferingStrategy.calculateStrategyResult(r, 'keyboard'); + a.shouldCollect && + (a.remove && this.removeInteraction(a.remove), + (r.quality = a.quality), + this.capturedKeyboardInteractions.push(r), + this.currentBufferSize++); + } + handleGesture(n, r) { + var a; + if (!this.isValidGesture(r)) return; + this.incrementEventCounters(r.eventCounters, 'touch'), + this.filterOldGesturesEvents(), + this.gesturesCount.increment(), + this.reductionManager.reduceGesture(r); + const s = this.bufferingStrategy.calculateStrategyResult(r, 'touch'); + s.shouldCollect && + (s.remove && this.removeInteraction(s.remove), + (r.quality = s.quality), + this.sensors.onGesture(r), + this.capturedGestures.push(r), + this.currentBufferSize++, + (this.lastGestureTimestamp = + (a = r.events[r.events.length - 1]) === null || a === void 0 ? void 0 : a.eventTs)); + } + clearIndirectBuffer() { + const n = this.indirect.clearBuffer(); + this.addIndirectEvents(n); + } + removeInteraction(n) { + switch (n.type) { + case 'mouse': + this.capturedMouseInteractions.remove(n.index); + break; + case 'keyboard': + this.capturedKeyboardInteractions.remove(n.index); + break; + case 'touch': + this.capturedGestures.remove(n.index); + break; + } + } + addIndirectEvents(n) { + var r; + if ( + ((r = n == null ? void 0 : n.events) === null || r === void 0 ? void 0 : r.length) > 0 + ) { + const a = [], + s = c._POSignalsUtils.Util.typesCounter(this.capturedIndirectEvents.get()); + for (const i of n.events) + c.PointerConfig.instance.pointerParams.highPriorityIndirectEvents.has(i.type) && + this.capturedIndirectEvents.length + a.length < + c.PointerConfig.instance.pointerParams.maxIndirectEvents && + a.push(i), + s[i.type] > 0 || (a.push(i), (s[i.type] = 1)); + this.incrementEventCounters(s, 'indirect'), + this.capturedIndirectEvents.set(this.capturedIndirectEvents.concat(a)); + } + } + onUrlChange() { + this.addTag('location', window.location.href); + } + handleStTagElement(n) { + if (n) { + const r = c.PointerConfig.instance.pointerParams.maxSelectorChildren, + a = this.tagsWithValueIdentifications.getMatchingTags(n, r); + this.addTagsWithValue(a); + const s = c._POSignalsUtils.Util.isSelectorMatches(n, '[data-st-tag]', r); + if (s instanceof Element) { + const i = c._POSignalsUtils.Util.getAttribute(s, 'data-st-tag'), + t = c._POSignalsUtils.Util.getAttribute(s, 'data-st-tag-value'); + i && this.addTag(i, t); + } + } + } + stopListening() { + this.keyboard.stop(), + this.mouse.stop(), + this.gesture.stop(), + this.indirect.stop(), + this.sensors.stop(), + window.removeEventListener('_onlocationchange', this.onUrlChangeHandler), + window.removeEventListener('popstate', this.onUrlChangeHandler); + } + clearBehavioralData() { + this.capturedKeyboardInteractions.clear(), + this.capturedMouseInteractions.clear(), + this.capturedGestures.clear(), + this.capturedIndirectEvents.clear(), + this.sensors.reset(), + c.Tags.instance.reset(), + (this.currentBufferSize = 0), + this.keyboardInteractionsCount.reset(), + this.mouseInteractionsCount.reset(), + this.gesturesCount.reset(), + this.mouseEventCounters.clear(), + this.mouseEventCounters.clear(), + this.indirectEventCounters.clear(), + this.keyboardEventCounters.clear(), + this.touchEventCounters.clear(), + this.eventCounters.clear(); + } + isValidGesture(n) { + var r, a; + return ( + ((r = n == null ? void 0 : n.events) === null || r === void 0 ? void 0 : r.length) > 0 && + ((a = n == null ? void 0 : n.events) === null || a === void 0 ? void 0 : a.length) < + c.PointerConfig.instance.pointerParams.maxSnapshotsCount + ); + } + filterOldIndirectEvents() { + const r = new Date().getTime(); + this.capturedIndirectEvents.set( + this.capturedIndirectEvents.get().filter((a) => r - a.epochTs <= 36e5), + ); + } + filterOldMouseEvents() { + const r = new Date().getTime(); + this.capturedMouseInteractions.set( + this.capturedMouseInteractions.get().filter((a) => r - a.epochTs <= 36e5), + ); + } + filterOldKeyboardEvents() { + const r = new Date().getTime(); + this.capturedKeyboardInteractions.set( + this.capturedKeyboardInteractions.get().filter((a) => r - a.epochTs <= 36e5), + ); + } + filterOldGesturesEvents() { + const r = new Date().getTime(); + this.capturedGestures.set(this.capturedGestures.get().filter((a) => r - a.epochTs <= 36e5)); + } + incrementEventCounters(n, r) { + const s = Date.now(); + let i; + switch (r) { + case 'mouse': + i = this.mouseEventCounters; + break; + case 'keyboard': + i = this.keyboardEventCounters; + break; + case 'touch': + i = this.touchEventCounters; + break; + case 'indirect': + i = this.indirectEventCounters; + break; + } + i.set(i.get().filter((t) => s - t.epochTs <= 36e5)), + i.length < this.MAX_EVENT_COUNTERS || i.remove(0), + i.push(n); + } + reduceEpochEventCounters() { + const n = { epochTs: Date.now() }; + return ( + [ + ...this.mouseEventCounters.get(), + ...this.keyboardEventCounters.get(), + ...this.touchEventCounters.get(), + ...this.indirectEventCounters.get(), + ].forEach((a) => { + Object.keys(a).forEach((s) => { + s !== 'epochTs' && (n[s] ? (n[s] += a[s]) : (n[s] = a[s])); }); }), + delete n.epochTs, n ); - })(); - t.DataHandler = n; - })(_POSignalsEntities || (_POSignalsEntities = {})), - (function (t) { - var e = (function () { - function e() { - this._configuration = { - enabled: e.ENABLED_DEFAULT, - bufferSize: e.BUFFER_SIZE_DEFAULT, - maxSnapshotsCount: e.MAX_SNAPSHOTS_COUNT_DEFAULT, - sensors: e.SENSORS_DEFAULT, - metadataBlacklist: e.METADATA_BLACK_LIST_DEFAULT, - tagsBlacklistRegex: e.TAGS_BLACK_LIST_REGEX_DEFAULT, - behavioralBlacklist: e.BEHAVIORAL_BLACK_LIST_DEFAULT, - webRtcUrl: e.WEB_RTC_URL_DEFAULT, - eventsBlackList: e.EVENTS_BLACK_LIST_DEFAULT, - eventsToIgnore: e.EVENTS_TO_IGNORE_DEFAULT, - highPriorityIndirectEvents: e.HIGH_PRIORITY_INDIRECT_EVENTS_DEFAULT, - indirectIntervalMillis: e.INDIRECT_INTERVAL_MILLIS_DEFAULT, - mouseIntervalMillis: e.MOUSE_INTERVAL_MILLIS_DEFAULT, - mouseIdleTimeoutMillis: e.MOUSE_IDLE_TIMEOUT_MILLIS_DEFAULT, - maxMouseEvents: e.MAX_MOUSE_EVENTS_DEFAULT, - maxIndirectEvents: e.MAX_INDIRECT_EVENTS_DEFAULT, - keyboardFieldBlackList: e.KEYBOARD_FIELD_BLACK_LIST_DEFAULT, - keyboardCssSelectors: e.KEYBOARD_CSS_SELECTORS_DEFAULT, - keyboardCssSelectorsBlacklist: e.KEYBOARD_CSS_SELECTORS_BLACKLIST_DEFAULT, - keyboardIdentifierAttributes: e.KEYBOARD_IDENTIFIER_ATTRIBUTES_DEFAULT, - remoteTags: e.REMOTE_TAGS_DEFAULT, - maxSelectorChildren: e.MAX_SELECTOR_CHILDREN_DEFAULT, - eventsReduceFactorMap: e.EVENTS_REDUCE_FACTOR_MAP_DEFAULT, - propertyDescriptors: e.PROPERTY_DESCRIPTORS_DEFAULT, - additionalMediaCodecs: e.ADDITIONAL_MEDIA_CODECS_DEFAULT, - fingerprintTimeoutMillis: e.FINGER_PRINT_TIMEOUT_MILLIS_DEFAULT, - metadataDataPoints: e.METADATA_DATA_POINTS_DEFAULT, - uiModeling: e.UI_MODELING_CONFIG_DEFAULT, - uiControl: e.UI_CONTROL_LIST_DEFAULT, - }; - } + } + } + c.Client = h; + })(_POSignalsEntities || (_POSignalsEntities = {})); + class _pingOneSignals { + static getData() { + return _POSignalsEntities.ClientBase.instance().getData(); + } + static init(h) { + return ( + _POSignalsEntities._POSignalsUtils.Util.ieFix(), + _POSignalsEntities.ClientBase.instance().startSignals(h) + ); + } + static initSilent(h) { + return this.init(h); + } + static pauseBehavioralData() { + _POSignalsEntities.ClientBase.instance().pauseBehavioralData(); + } + static resumeBehavioralData() { + _POSignalsEntities.ClientBase.instance().resumeBehavioralData(); + } + } + const onDomReady = function (c) { + document.readyState !== 'loading' ? c() : document.addEventListener('DOMContentLoaded', c); + }; + onDomReady(function () { + if (!window._pingOneSignalsReady) { + const c = new CustomEvent('PingOneSignalsReadyEvent'); + document.dispatchEvent(c), (window._pingOneSignalsReady = !0); + } + }); + var _POSignalsEntities; + (function (c) { + let h; + (function (n) { + (n[(n.RICH = 3)] = 'RICH'), + (n[(n.CLICK = 2)] = 'CLICK'), + (n[(n.MOVE = 1)] = 'MOVE'), + (n[(n.POOR = 0)] = 'POOR'); + })(h || (h = {})); + class p { + constructor(r, a, s, i, t, e) { + (this.clientVersion = r), + (this.instanceUUID = a), + (this.initParams = s), + (this.metadata = i), + (this.behavioralDataHandler = t), + (this.sessionData = e), + (this.Max_Mouse_Touch_Interactions = 6); + } + async getData(r) { + this.incrementGetData(); + const a = await this.getRiskData(r), + s = a.tags.findIndex((i) => i.name === 'Get Data'); return ( - (e.prototype.updateParams = function (t) { - t && (this._configuration = t); - }), - Object.defineProperty(e.prototype, 'enabled', { - get: function () { - return 'boolean' == typeof this._configuration.enabled - ? this._configuration.enabled - : e.ENABLED_DEFAULT; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'bufferSize', { - get: function () { - return 'number' == typeof this._configuration.bufferSize && - this._configuration.bufferSize > 0 - ? this._configuration.bufferSize - : e.BUFFER_SIZE_DEFAULT; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'maxSnapshotsCount', { - get: function () { - return 'number' == typeof this._configuration.maxSnapshotsCount && - this._configuration.maxSnapshotsCount >= 0 - ? this._configuration.maxSnapshotsCount - : e.MAX_SNAPSHOTS_COUNT_DEFAULT; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'maxSensorSamples', { - get: function () { - var t = this._configuration.sensors; - return t && 'number' == typeof t.maxSensorSamples && t.maxSensorSamples >= 0 - ? t.maxSensorSamples - : e.SENSORS_DEFAULT.maxSensorSamples; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'sensorsDeltaInMillis', { - get: function () { - var t = this._configuration.sensors; - return t && 'number' == typeof t.sensorsDeltaInMillis && t.sensorsDeltaInMillis >= 0 - ? t.sensorsDeltaInMillis - : e.SENSORS_DEFAULT.sensorsDeltaInMillis; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'metadataBlackList', { - get: function () { - var n; - return t._POSignalsUtils.Util.isArray(this._configuration.metadataBlacklist) && - (null === (n = this._configuration.metadataBlacklist) || void 0 === n - ? void 0 - : n.length) > 0 - ? this._configuration.metadataBlacklist - : e.METADATA_BLACK_LIST_DEFAULT; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'behavioralBlacklist', { - get: function () { - return this._configuration.behavioralBlacklist - ? this._configuration.behavioralBlacklist - : e.BEHAVIORAL_BLACK_LIST_DEFAULT; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'tagsBlacklistRegex', { - get: function () { - return 'string' == typeof this._configuration.tagsBlacklistRegex - ? this._configuration.tagsBlacklistRegex - : e.TAGS_BLACK_LIST_REGEX_DEFAULT; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'webRtcUrl', { - get: function () { - return 'string' == typeof this._configuration.webRtcUrl - ? this._configuration.webRtcUrl - : e.WEB_RTC_URL_DEFAULT; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'eventsBlackList', { - get: function () { - return ( - t._POSignalsUtils.Util.isArray(this._configuration.eventsBlackList) && - (this._configuration.eventsBlackList = new Set( - this._configuration.eventsBlackList, - )), - this._configuration.eventsBlackList instanceof Set - ? this._configuration.eventsBlackList - : e.EVENTS_BLACK_LIST_DEFAULT - ); - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'eventsToIgnore', { - get: function () { - return ( - t._POSignalsUtils.Util.isArray(this._configuration.eventsToIgnore) && - (this._configuration.eventsToIgnore = new Set( - this._configuration.eventsToIgnore, - )), - this._configuration.eventsToIgnore instanceof Set - ? this._configuration.eventsToIgnore - : e.EVENTS_TO_IGNORE_DEFAULT - ); - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'highPriorityIndirectEvents', { - get: function () { - return ( - t._POSignalsUtils.Util.isArray(this._configuration.highPriorityIndirectEvents) && - (this._configuration.highPriorityIndirectEvents = new Set( - this._configuration.highPriorityIndirectEvents, - )), - this._configuration.highPriorityIndirectEvents instanceof Set - ? this._configuration.highPriorityIndirectEvents - : e.HIGH_PRIORITY_INDIRECT_EVENTS_DEFAULT - ); - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'indirectIntervalMillis', { - get: function () { - return 'number' == typeof this._configuration.indirectIntervalMillis && - this._configuration.indirectIntervalMillis > 0 - ? this._configuration.indirectIntervalMillis - : e.INDIRECT_INTERVAL_MILLIS_DEFAULT; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'mouseIntervalMillis', { - get: function () { - return 'number' == typeof this._configuration.mouseIntervalMillis && - this._configuration.mouseIntervalMillis > 0 - ? this._configuration.mouseIntervalMillis - : e.MOUSE_INTERVAL_MILLIS_DEFAULT; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'mouseIdleTimeoutMillis', { - get: function () { - return 'number' == typeof this._configuration.mouseIdleTimeoutMillis && - this._configuration.mouseIdleTimeoutMillis > 0 - ? this._configuration.mouseIdleTimeoutMillis - : e.MOUSE_IDLE_TIMEOUT_MILLIS_DEFAULT; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'maxMouseEvents', { - get: function () { - return 'number' == typeof this._configuration.maxMouseEvents && - this._configuration.maxMouseEvents >= 0 - ? this._configuration.maxMouseEvents - : e.MAX_MOUSE_EVENTS_DEFAULT; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'maxIndirectEvents', { - get: function () { - return 'number' == typeof this._configuration.maxIndirectEvents && - this._configuration.maxIndirectEvents >= 0 - ? this._configuration.maxIndirectEvents - : e.MAX_INDIRECT_EVENTS_DEFAULT; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'keyboardFieldBlackList', { - get: function () { - return ( - t._POSignalsUtils.Util.isArray(this._configuration.keyboardFieldBlackList) && - (this._configuration.keyboardFieldBlackList = new Set( - this._configuration.keyboardFieldBlackList, - )), - this._configuration.keyboardFieldBlackList instanceof Set - ? this._configuration.keyboardFieldBlackList - : e.KEYBOARD_FIELD_BLACK_LIST_DEFAULT - ); - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'keyboardCssSelectors', { - get: function () { - return this._configuration.keyboardCssSelectors - ? this._configuration.keyboardCssSelectors - : e.KEYBOARD_CSS_SELECTORS_DEFAULT; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'keyboardCssSelectorsBlacklist', { - get: function () { - return t._POSignalsUtils.Util.isArray( - this._configuration.keyboardCssSelectorsBlacklist, - ) - ? this._configuration.keyboardCssSelectorsBlacklist - : e.KEYBOARD_CSS_SELECTORS_BLACKLIST_DEFAULT; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'keyboardIdentifierAttributes', { - get: function () { - return t._POSignalsUtils.Util.isArray( - this._configuration.keyboardIdentifierAttributes, - ) - ? this._configuration.keyboardIdentifierAttributes - : e.KEYBOARD_IDENTIFIER_ATTRIBUTES_DEFAULT; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'remoteTags', { - get: function () { - return this._configuration.remoteTags - ? this._configuration.remoteTags - : e.REMOTE_TAGS_DEFAULT; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'maxSelectorChildren', { - get: function () { - return 'number' == typeof this._configuration.maxSelectorChildren && - this._configuration.maxSelectorChildren > 0 - ? this._configuration.maxSelectorChildren - : e.MAX_SELECTOR_CHILDREN_DEFAULT; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'eventsReduceFactorMap', { - get: function () { - return this._configuration.eventsReduceFactorMap - ? this._configuration.eventsReduceFactorMap - : e.EVENTS_REDUCE_FACTOR_MAP_DEFAULT; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'propertyDescriptors', { - get: function () { - return this._configuration.propertyDescriptors - ? this._configuration.propertyDescriptors - : e.PROPERTY_DESCRIPTORS_DEFAULT; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'additionalMediaCodecs', { - get: function () { - return this._configuration.additionalMediaCodecs - ? this._configuration.additionalMediaCodecs - : e.ADDITIONAL_MEDIA_CODECS_DEFAULT; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'fingerprintTimeoutMillis', { - get: function () { - return 'number' == typeof this._configuration.fingerprintTimeoutMillis && - this._configuration.fingerprintTimeoutMillis > 0 - ? this._configuration.fingerprintTimeoutMillis - : e.FINGER_PRINT_TIMEOUT_MILLIS_DEFAULT; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'metadataDataPoints', { - get: function () { - return this._configuration.metadataDataPoints - ? this._configuration.metadataDataPoints - : e.METADATA_DATA_POINTS_DEFAULT; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'uiModelingBlacklistRegex', { - get: function () { - var t; - return 'string' == - typeof (null === (t = this._configuration.uiModeling) || void 0 === t - ? void 0 - : t.blacklistRegex) - ? this._configuration.uiModeling.blacklistRegex - : e.UI_MODELING_CONFIG_DEFAULT.blacklistRegex; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'uiModelingElementFilters', { - get: function () { - var t; - return ( - null === (t = this._configuration.uiModeling) || void 0 === t - ? void 0 - : t.uiElementFilters - ) - ? this._configuration.uiModeling.uiElementFilters - : e.UI_MODELING_CONFIG_DEFAULT.uiElementFilters; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'uiModelingMaxMatchingParents', { - get: function () { - var t; - return 'number' == - typeof (null === (t = this._configuration.uiModeling) || void 0 === t - ? void 0 - : t.maxMatchingParents) - ? this._configuration.uiModeling.maxMatchingParents - : e.UI_MODELING_CONFIG_DEFAULT.maxMatchingParents; - }, - enumerable: !1, - configurable: !0, - }), - Object.defineProperty(e.prototype, 'uiControlsConfig', { - get: function () { - return t._POSignalsUtils.Util.isArray(this._configuration.uiControl) - ? this._configuration.uiControl - : e.UI_CONTROL_LIST_DEFAULT; - }, - enumerable: !1, - configurable: !0, - }), - (e.ENABLED_DEFAULT = !0), - (e.BUFFER_SIZE_DEFAULT = 10), - (e.MAX_SNAPSHOTS_COUNT_DEFAULT = 500), - (e.METADATA_BLACK_LIST_DEFAULT = []), - (e.TAGS_BLACK_LIST_REGEX_DEFAULT = ''), - (e.BEHAVIORAL_BLACK_LIST_DEFAULT = {}), - (e.WEB_RTC_URL_DEFAULT = ''), - (e.EVENTS_BLACK_LIST_DEFAULT = new Set()), - (e.EVENTS_TO_IGNORE_DEFAULT = new Set([ - 'pointerover', - 'pointerenter', - 'pointerdown', - 'pointermove', - 'pointerup', - 'pointercancel', - 'pointerout', - 'pointerleave', - 'dragstart', - 'dragexit', - 'drop', - 'dragend', - ])), - (e.MAX_INDIRECT_EVENTS_DEFAULT = 15), - (e.HIGH_PRIORITY_INDIRECT_EVENTS_DEFAULT = new Set([ - 'copy', - 'cut', - 'paste', - 'resize', - 'orientationchange', - 'languagechange', - 'submit', - 'select', - ])), - (e.INDIRECT_INTERVAL_MILLIS_DEFAULT = 1e3), - (e.MOUSE_INTERVAL_MILLIS_DEFAULT = 1e3), - (e.MOUSE_IDLE_TIMEOUT_MILLIS_DEFAULT = 1e3), - (e.MAX_MOUSE_EVENTS_DEFAULT = 500), - (e.KEYBOARD_FIELD_BLACK_LIST_DEFAULT = new Set()), - (e.KEYBOARD_CSS_SELECTORS_DEFAULT = {}), - (e.KEYBOARD_CSS_SELECTORS_BLACKLIST_DEFAULT = []), - (e.KEYBOARD_IDENTIFIER_ATTRIBUTES_DEFAULT = [ - 'data-selenium', - 'data-selenium-id', - 'data-testid', - 'data-test-id', - 'data-qa-id', - 'data-id', - 'id', - ]), - (e.REMOTE_TAGS_DEFAULT = { - dv_form_submit: { selector: '[data-skbuttontype="form-submit"]' }, - login_attempt_email_domain: { - selector: '[data-st-tag="login.login_attempt"]', - operation: 'email_domain', - valueSelector: '[data-st-field="username"]', - valueMandatory: !0, - }, - login_attempt_hash: { - selector: '[data-st-tag="login.login_attempt"]', - operation: 'obfuscate', - valueSelector: '[data-st-field="username"]', - valueMandatory: !0, - }, - login_attempt_length: { - selector: '[data-st-tag="login.login_attempt"]', - operation: 'length', - valueSelector: '[data-st-field="username"]', - valueMandatory: !0, - }, - registration_attempt_email_domain: { - selector: '[data-st-tag="registration.registration_attempt"]', - operation: 'email_domain', - valueSelector: '[data-st-field="username"]', - valueMandatory: !0, - }, - registration_attempt_hash: { - selector: '[data-st-tag="registration.registration_attempt"]', - operation: 'obfuscate', - valueSelector: '[data-st-field="username"]', - valueMandatory: !0, - }, - registration_attempt_length: { - selector: '[data-st-tag="registration.registration_attempt"]', - operation: 'length', - valueSelector: '[data-st-field="username"]', - valueMandatory: !0, - }, - }), - (e.MAX_SELECTOR_CHILDREN_DEFAULT = 2), - (e.EVENTS_REDUCE_FACTOR_MAP_DEFAULT = {}), - (e.PROPERTY_DESCRIPTORS_DEFAULT = { - chrome: ['app', 'csi', 'loadtimes', 'runtime'], - navigator: ['webdriver'], - Navigator: ['languages', 'hardwareConcurrency'], - window: ['outerWidth', 'outerHeight'], - Screen: ['width', 'height'], - }), - (e.ADDITIONAL_MEDIA_CODECS_DEFAULT = {}), - (e.FINGER_PRINT_TIMEOUT_MILLIS_DEFAULT = 3e3), - (e.METADATA_DATA_POINTS_DEFAULT = {}), - (e.UI_CONTROL_LIST_DEFAULT = []), - (e.UI_MODELING_CONFIG_DEFAULT = { - blacklistRegex: '', - uiElementFilters: { text: { maxLength: 25 }, placeholder: { maxLength: 25 } }, - maxMatchingParents: 2, - }), - (e.SENSORS_DEFAULT = { maxSensorSamples: 1, sensorsDeltaInMillis: 0 }), + s !== -1 ? (a.tags[s] = this._getDataCounter) : a.tags.push(this._getDataCounter), + this.toString(a) + ); + } + async getRiskData(r) { + const [a, s] = await Promise.all([ + this.metadata.getDeviceAttributes(), + this.metadata.getLocalAgentJwt(), + ]); + let i = this.behavioralDataHandler.getBehavioralData(); + i = await this.modifyBehavioralData(i); + const t = { + behavioral: i, + tags: c.Tags.instance.tags, + sdkConfig: this.initParams, + epochTs: r, + instanceUUID: this.instanceUUID, + tabUUID: c._POSignalsStorage.SessionStorage.instance.tabUUID, + sdkVersion: this.clientVersion, + platform: 'web', + clientToken: window._pingOneSignalsToken, + }; + let e; + return ( + this.sessionData.universalTrustEnabled + ? (e = { jwtDeviceAttributes: await this.getJWTSignedPayload(r, a.deviceId), ...t }) + : (e = { deviceAttributes: a, ...t }), + this.sessionData.agentIdentificationEnabled && (e = { jwtAgentPayload: s, ...e }), e ); - })(); - t.PointerParams = e; - })(_POSignalsEntities || (_POSignalsEntities = {})); - window._POSignalsEntities = _POSignalsEntities; - window._pingOneSignals = _pingOneSignals; + } + toString(r) { + let a; + const s = this.metadata.getObfsInfo(); + try { + a = c._POSignalsUtils.Util.string2buf(JSON.stringify(r)); + } catch (i) { + throw new Error(`Failed to create data, ${i.message}`); + } + try { + a = c.pako.gzip(a); + } catch (i) { + throw new Error(`Failed to compress data, ${i.message}`); + } + try { + a = c._POSignalsUtils.Util.encryptionBytes(a, s.key); + } catch (i) { + throw new Error(`failed to obfuscate data, ${i.message}`); + } + try { + return `${c._POSignalsUtils.Util.base64Uint8Array(a)}.${btoa(s.identifier)}`; + } catch (i) { + throw new Error(`failed to encode data, ${i.message}`); + } + } + async getJWTSignedPayload(r, a) { + const s = this.metadata.getSerializedDeviceAttributes(); + return this.sessionData.signJWTChallenge(s, r, a); + } + async modifyBehavioralData(r) { + return ( + (r.mouse.interactions = this.getBestMouseInteractions(r.mouse.interactions)), + (r.touch.interactions = this.getBestTouchInteractions( + r.touch.interactions, + r.mouse.interactions, + )), + (r.keyboard.interactions = this.getBestKeyboardInteractions(r.keyboard.interactions)), + r + ); + } + getBestInteractions(r) { + const s = Date.now(); + c._POSignalsUtils.Logger.debug('total interactions:', r); + const i = r.filter((o) => s - o.epochTs <= 18e4), + t = this.sortInteractions(i).slice(0, 2), + e = r.filter((o) => !t.some((x) => x.epochTs === o.epochTs)), + l = this.sortInteractions(e).slice(0, 5 - t.length); + return ( + c._POSignalsUtils.Logger.debug('final interactions for getData:', [...t, ...l]), + [...t, ...l].sort((o, x) => o.epochTs - x.epochTs) + ); + } + getBestMouseInteractions(r) { + return this.getBestInteractions(r); + } + getBestKeyboardInteractions(r) { + return this.getBestInteractions(r); + } + getBestTouchInteractions(r, a) { + const s = this.Max_Mouse_Touch_Interactions - a.length; + return this.getTouchBestInteraction(r, s); + } + incrementGetData() { + this._getDataCounter + ? (this._getDataCounter.value++, (this._getDataCounter.timestamp = Date.now())) + : (this._getDataCounter = { + value: 1, + name: 'Get Data', + timestamp: Date.now(), + epochTs: Date.now(), + }); + } + getTouchBestInteraction(r, a) { + return (r = this.sortInteractions(r)), r.slice(0, a); + } + sortInteractions(r) { + return r.sort((a, s) => { + const i = h[a.quality], + t = h[s.quality]; + return i === t ? s.epochTs - a.epochTs : t - i; + }); + } + } + c.DataHandler = p; + })(_POSignalsEntities || (_POSignalsEntities = {})); + var _POSignalsEntities; + (function (c) { + class h { + constructor() { + this._configuration = { + enabled: h.ENABLED_DEFAULT, + bufferSize: h.BUFFER_SIZE_DEFAULT, + maxSnapshotsCount: h.MAX_SNAPSHOTS_COUNT_DEFAULT, + sensors: h.SENSORS_DEFAULT, + metadataBlacklist: h.METADATA_BLACK_LIST_DEFAULT, + tagsBlacklistRegex: h.TAGS_BLACK_LIST_REGEX_DEFAULT, + behavioralBlacklist: h.BEHAVIORAL_BLACK_LIST_DEFAULT, + webRtcUrl: h.WEB_RTC_URL_DEFAULT, + eventsBlackList: h.EVENTS_BLACK_LIST_DEFAULT, + eventsToIgnore: h.EVENTS_TO_IGNORE_DEFAULT, + highPriorityIndirectEvents: h.HIGH_PRIORITY_INDIRECT_EVENTS_DEFAULT, + indirectIntervalMillis: h.INDIRECT_INTERVAL_MILLIS_DEFAULT, + mouseIntervalMillis: h.MOUSE_INTERVAL_MILLIS_DEFAULT, + mouseIdleTimeoutMillis: h.MOUSE_IDLE_TIMEOUT_MILLIS_DEFAULT, + maxMouseEvents: h.MAX_MOUSE_EVENTS_DEFAULT, + maxIndirectEvents: h.MAX_INDIRECT_EVENTS_DEFAULT, + keyboardFieldBlackList: h.KEYBOARD_FIELD_BLACK_LIST_DEFAULT, + keyboardCssSelectors: h.KEYBOARD_CSS_SELECTORS_DEFAULT, + keyboardCssSelectorsBlacklist: h.KEYBOARD_CSS_SELECTORS_BLACKLIST_DEFAULT, + keyboardIdentifierAttributes: h.KEYBOARD_IDENTIFIER_ATTRIBUTES_DEFAULT, + remoteTags: h.REMOTE_TAGS_DEFAULT, + maxSelectorChildren: h.MAX_SELECTOR_CHILDREN_DEFAULT, + eventsReduceFactorMap: h.EVENTS_REDUCE_FACTOR_MAP_DEFAULT, + propertyDescriptors: h.PROPERTY_DESCRIPTORS_DEFAULT, + additionalMediaCodecs: h.ADDITIONAL_MEDIA_CODECS_DEFAULT, + fingerprintTimeoutMillis: h.FINGER_PRINT_TIMEOUT_MILLIS_DEFAULT, + metadataDataPoints: h.METADATA_DATA_POINTS_DEFAULT, + uiModeling: h.UI_MODELING_CONFIG_DEFAULT, + uiControl: h.UI_CONTROL_LIST_DEFAULT, + }; + } + updateParams(n) { + n && (this._configuration = n); + } + get enabled() { + return typeof this._configuration.enabled == 'boolean' + ? this._configuration.enabled + : h.ENABLED_DEFAULT; + } + get bufferSize() { + return typeof this._configuration.bufferSize == 'number' && + this._configuration.bufferSize > 0 + ? this._configuration.bufferSize + : h.BUFFER_SIZE_DEFAULT; + } + get maxSnapshotsCount() { + return typeof this._configuration.maxSnapshotsCount == 'number' && + this._configuration.maxSnapshotsCount >= 0 + ? this._configuration.maxSnapshotsCount + : h.MAX_SNAPSHOTS_COUNT_DEFAULT; + } + get maxSensorSamples() { + const n = this._configuration.sensors; + return n && typeof n.maxSensorSamples == 'number' && n.maxSensorSamples >= 0 + ? n.maxSensorSamples + : h.SENSORS_DEFAULT.maxSensorSamples; + } + get sensorsDeltaInMillis() { + const n = this._configuration.sensors; + return n && typeof n.sensorsDeltaInMillis == 'number' && n.sensorsDeltaInMillis >= 0 + ? n.sensorsDeltaInMillis + : h.SENSORS_DEFAULT.sensorsDeltaInMillis; + } + get metadataBlackList() { + var n; + return c._POSignalsUtils.Util.isArray(this._configuration.metadataBlacklist) && + ((n = this._configuration.metadataBlacklist) === null || n === void 0 + ? void 0 + : n.length) > 0 + ? this._configuration.metadataBlacklist + : h.METADATA_BLACK_LIST_DEFAULT; + } + get behavioralBlacklist() { + return this._configuration.behavioralBlacklist + ? this._configuration.behavioralBlacklist + : h.BEHAVIORAL_BLACK_LIST_DEFAULT; + } + get tagsBlacklistRegex() { + return typeof this._configuration.tagsBlacklistRegex == 'string' + ? this._configuration.tagsBlacklistRegex + : h.TAGS_BLACK_LIST_REGEX_DEFAULT; + } + get webRtcUrl() { + return typeof this._configuration.webRtcUrl == 'string' + ? this._configuration.webRtcUrl + : h.WEB_RTC_URL_DEFAULT; + } + get eventsBlackList() { + return ( + c._POSignalsUtils.Util.isArray(this._configuration.eventsBlackList) && + (this._configuration.eventsBlackList = new Set(this._configuration.eventsBlackList)), + this._configuration.eventsBlackList instanceof Set + ? this._configuration.eventsBlackList + : h.EVENTS_BLACK_LIST_DEFAULT + ); + } + get eventsToIgnore() { + return ( + c._POSignalsUtils.Util.isArray(this._configuration.eventsToIgnore) && + (this._configuration.eventsToIgnore = new Set(this._configuration.eventsToIgnore)), + this._configuration.eventsToIgnore instanceof Set + ? this._configuration.eventsToIgnore + : h.EVENTS_TO_IGNORE_DEFAULT + ); + } + get highPriorityIndirectEvents() { + return ( + c._POSignalsUtils.Util.isArray(this._configuration.highPriorityIndirectEvents) && + (this._configuration.highPriorityIndirectEvents = new Set( + this._configuration.highPriorityIndirectEvents, + )), + this._configuration.highPriorityIndirectEvents instanceof Set + ? this._configuration.highPriorityIndirectEvents + : h.HIGH_PRIORITY_INDIRECT_EVENTS_DEFAULT + ); + } + get indirectIntervalMillis() { + return typeof this._configuration.indirectIntervalMillis == 'number' && + this._configuration.indirectIntervalMillis > 0 + ? this._configuration.indirectIntervalMillis + : h.INDIRECT_INTERVAL_MILLIS_DEFAULT; + } + get mouseIntervalMillis() { + return typeof this._configuration.mouseIntervalMillis == 'number' && + this._configuration.mouseIntervalMillis > 0 + ? this._configuration.mouseIntervalMillis + : h.MOUSE_INTERVAL_MILLIS_DEFAULT; + } + get mouseIdleTimeoutMillis() { + return typeof this._configuration.mouseIdleTimeoutMillis == 'number' && + this._configuration.mouseIdleTimeoutMillis > 0 + ? this._configuration.mouseIdleTimeoutMillis + : h.MOUSE_IDLE_TIMEOUT_MILLIS_DEFAULT; + } + get maxMouseEvents() { + return typeof this._configuration.maxMouseEvents == 'number' && + this._configuration.maxMouseEvents >= 0 + ? this._configuration.maxMouseEvents + : h.MAX_MOUSE_EVENTS_DEFAULT; + } + get maxIndirectEvents() { + return typeof this._configuration.maxIndirectEvents == 'number' && + this._configuration.maxIndirectEvents >= 0 + ? this._configuration.maxIndirectEvents + : h.MAX_INDIRECT_EVENTS_DEFAULT; + } + get keyboardFieldBlackList() { + return ( + c._POSignalsUtils.Util.isArray(this._configuration.keyboardFieldBlackList) && + (this._configuration.keyboardFieldBlackList = new Set( + this._configuration.keyboardFieldBlackList, + )), + this._configuration.keyboardFieldBlackList instanceof Set + ? this._configuration.keyboardFieldBlackList + : h.KEYBOARD_FIELD_BLACK_LIST_DEFAULT + ); + } + get keyboardCssSelectors() { + return this._configuration.keyboardCssSelectors + ? this._configuration.keyboardCssSelectors + : h.KEYBOARD_CSS_SELECTORS_DEFAULT; + } + get keyboardCssSelectorsBlacklist() { + return c._POSignalsUtils.Util.isArray(this._configuration.keyboardCssSelectorsBlacklist) + ? this._configuration.keyboardCssSelectorsBlacklist + : h.KEYBOARD_CSS_SELECTORS_BLACKLIST_DEFAULT; + } + get keyboardIdentifierAttributes() { + return c._POSignalsUtils.Util.isArray(this._configuration.keyboardIdentifierAttributes) + ? this._configuration.keyboardIdentifierAttributes + : h.KEYBOARD_IDENTIFIER_ATTRIBUTES_DEFAULT; + } + get remoteTags() { + return this._configuration.remoteTags + ? this._configuration.remoteTags + : h.REMOTE_TAGS_DEFAULT; + } + get maxSelectorChildren() { + return typeof this._configuration.maxSelectorChildren == 'number' && + this._configuration.maxSelectorChildren > 0 + ? this._configuration.maxSelectorChildren + : h.MAX_SELECTOR_CHILDREN_DEFAULT; + } + get eventsReduceFactorMap() { + return this._configuration.eventsReduceFactorMap + ? this._configuration.eventsReduceFactorMap + : h.EVENTS_REDUCE_FACTOR_MAP_DEFAULT; + } + get propertyDescriptors() { + return this._configuration.propertyDescriptors + ? this._configuration.propertyDescriptors + : h.PROPERTY_DESCRIPTORS_DEFAULT; + } + get additionalMediaCodecs() { + return this._configuration.additionalMediaCodecs + ? this._configuration.additionalMediaCodecs + : h.ADDITIONAL_MEDIA_CODECS_DEFAULT; + } + get fingerprintTimeoutMillis() { + return typeof this._configuration.fingerprintTimeoutMillis == 'number' && + this._configuration.fingerprintTimeoutMillis > 0 + ? this._configuration.fingerprintTimeoutMillis + : h.FINGER_PRINT_TIMEOUT_MILLIS_DEFAULT; + } + get metadataDataPoints() { + return this._configuration.metadataDataPoints + ? this._configuration.metadataDataPoints + : h.METADATA_DATA_POINTS_DEFAULT; + } + get uiModelingBlacklistRegex() { + var n; + return typeof ((n = this._configuration.uiModeling) === null || n === void 0 + ? void 0 + : n.blacklistRegex) == 'string' + ? this._configuration.uiModeling.blacklistRegex + : h.UI_MODELING_CONFIG_DEFAULT.blacklistRegex; + } + get uiModelingElementFilters() { + var n; + return !((n = this._configuration.uiModeling) === null || n === void 0) && + n.uiElementFilters + ? this._configuration.uiModeling.uiElementFilters + : h.UI_MODELING_CONFIG_DEFAULT.uiElementFilters; + } + get uiModelingMaxMatchingParents() { + var n; + return typeof ((n = this._configuration.uiModeling) === null || n === void 0 + ? void 0 + : n.maxMatchingParents) == 'number' + ? this._configuration.uiModeling.maxMatchingParents + : h.UI_MODELING_CONFIG_DEFAULT.maxMatchingParents; + } + get uiControlsConfig() { + return c._POSignalsUtils.Util.isArray(this._configuration.uiControl) + ? this._configuration.uiControl + : h.UI_CONTROL_LIST_DEFAULT; + } + } + (h.ENABLED_DEFAULT = !0), + (h.BUFFER_SIZE_DEFAULT = 10), + (h.MAX_SNAPSHOTS_COUNT_DEFAULT = 500), + (h.METADATA_BLACK_LIST_DEFAULT = []), + (h.TAGS_BLACK_LIST_REGEX_DEFAULT = ''), + (h.BEHAVIORAL_BLACK_LIST_DEFAULT = {}), + (h.WEB_RTC_URL_DEFAULT = ''), + (h.EVENTS_BLACK_LIST_DEFAULT = new Set()), + (h.EVENTS_TO_IGNORE_DEFAULT = new Set([ + 'pointerover', + 'pointerenter', + 'pointerdown', + 'pointermove', + 'pointerup', + 'pointercancel', + 'pointerout', + 'pointerleave', + 'dragstart', + 'dragexit', + 'drop', + 'dragend', + ])), + (h.MAX_INDIRECT_EVENTS_DEFAULT = 15), + (h.HIGH_PRIORITY_INDIRECT_EVENTS_DEFAULT = new Set([ + 'copy', + 'cut', + 'paste', + 'resize', + 'orientationchange', + 'languagechange', + 'submit', + 'select', + ])), + (h.INDIRECT_INTERVAL_MILLIS_DEFAULT = 1e3), + (h.MOUSE_INTERVAL_MILLIS_DEFAULT = 1e3), + (h.MOUSE_IDLE_TIMEOUT_MILLIS_DEFAULT = 1e3), + (h.MAX_MOUSE_EVENTS_DEFAULT = 500), + (h.KEYBOARD_FIELD_BLACK_LIST_DEFAULT = new Set()), + (h.KEYBOARD_CSS_SELECTORS_DEFAULT = {}), + (h.KEYBOARD_CSS_SELECTORS_BLACKLIST_DEFAULT = []), + (h.KEYBOARD_IDENTIFIER_ATTRIBUTES_DEFAULT = [ + 'data-selenium', + 'data-selenium-id', + 'data-testid', + 'data-test-id', + 'data-qa-id', + 'data-id', + 'id', + ]), + (h.REMOTE_TAGS_DEFAULT = { + dv_form_submit: { selector: '[data-skbuttontype="form-submit"]' }, + login_attempt_email_domain: { + selector: '[data-st-tag="login.login_attempt"]', + operation: 'email_domain', + valueSelector: '[data-st-field="username"]', + valueMandatory: !0, + }, + login_attempt_hash: { + selector: '[data-st-tag="login.login_attempt"]', + operation: 'obfuscate', + valueSelector: '[data-st-field="username"]', + valueMandatory: !0, + }, + login_attempt_length: { + selector: '[data-st-tag="login.login_attempt"]', + operation: 'length', + valueSelector: '[data-st-field="username"]', + valueMandatory: !0, + }, + registration_attempt_email_domain: { + selector: '[data-st-tag="registration.registration_attempt"]', + operation: 'email_domain', + valueSelector: '[data-st-field="username"]', + valueMandatory: !0, + }, + registration_attempt_hash: { + selector: '[data-st-tag="registration.registration_attempt"]', + operation: 'obfuscate', + valueSelector: '[data-st-field="username"]', + valueMandatory: !0, + }, + registration_attempt_length: { + selector: '[data-st-tag="registration.registration_attempt"]', + operation: 'length', + valueSelector: '[data-st-field="username"]', + valueMandatory: !0, + }, + }), + (h.MAX_SELECTOR_CHILDREN_DEFAULT = 2), + (h.EVENTS_REDUCE_FACTOR_MAP_DEFAULT = {}), + (h.PROPERTY_DESCRIPTORS_DEFAULT = { + chrome: ['app', 'csi', 'loadtimes', 'runtime'], + navigator: ['webdriver'], + Navigator: ['languages', 'hardwareConcurrency'], + window: ['outerWidth', 'outerHeight'], + Screen: ['width', 'height'], + }), + (h.ADDITIONAL_MEDIA_CODECS_DEFAULT = {}), + (h.FINGER_PRINT_TIMEOUT_MILLIS_DEFAULT = 3e3), + (h.METADATA_DATA_POINTS_DEFAULT = {}), + (h.UI_CONTROL_LIST_DEFAULT = []), + (h.UI_MODELING_CONFIG_DEFAULT = { + blacklistRegex: '', + uiElementFilters: { text: { maxLength: 25 }, placeholder: { maxLength: 25 } }, + maxMatchingParents: 2, + }), + (h.SENSORS_DEFAULT = { maxSensorSamples: 1, sensorsDeltaInMillis: 0 }), + (c.PointerParams = h); + })(_POSignalsEntities || (_POSignalsEntities = {})), + (window._POSignalsEntities = _POSignalsEntities), + (window._pingOneSignals = _pingOneSignals); + /** + * [js-sha256]{@link https://github.com/emn178/js-sha256} + * + * @version 0.9.0 + * @author Chen, Yi-Cyuan [emn178@gmail.com] + * @copyright Chen, Yi-Cyuan 2014-2017 + * @license MIT + */ + /*! modernizr 3.13.0 (Custom Build) | MIT * + * https://modernizr.com/download/?-ambientlight-applicationcache-audio-batteryapi-blobconstructor-contextmenu-cors-cryptography-customelements-customevent-customprotocolhandler-dart-dataview-eventlistener-forcetouch-fullscreen-gamepads-geolocation-ie8compat-intl-json-ligatures-matchmedia-messagechannel-notification-pagevisibility-performance-pointerevents-pointerlock-queryselector-quotamanagement-requestanimationframe-serviceworker-touchevents-typedarrays-vibrate-video-webgl-websockets-xdomainrequest !*/ + //# sourceMappingURL=signals-sdk.js.map } // Ping Identity INC. -// � ALL RIGHTS RESERVED -//Build: 25 (5.6.4) Tue Sep 16 2025 12:56:52 GMT+0000 (Coordinated Universal Time) +// © ALL RIGHTS RESERVED +//Wed Dec 24 2025 13:39:16 GMT+0000 (Coordinated Universal Time)