Socket
Socket
Sign inDemoInstall

@fingerprintjs/fingerprintjs-pro

Package Overview
Dependencies
Maintainers
2
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fingerprintjs/fingerprintjs-pro - npm Package Compare versions

Comparing version 3.8.5 to 3.8.6

7

dist/fp.cjs.min.js
/**
* FingerprintJS Pro v3.8.5 - Copyright (c) FingerprintJS, Inc, 2023 (https://fingerprint.com)
*
* This software contains code from open-source projects:
* MurmurHash3 by Karan Lyons (https://github.com/karanlyons/murmurHash3.js)
* FingerprintJS Pro v3.8.6 - Copyright (c) FingerprintJS, Inc, 2023 (https://fingerprint.com)
*/
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib");function t(e){for(var t="",r=0;r<e.length;++r)if(r>0){var n=e[r].toLowerCase();n!==e[r]?t+=" ".concat(n):t+=e[r]}else t+=e[r].toUpperCase();return t}function r(e,t){return function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)?e[t]:void 0}var n={default:"endpoint"},R={default:"tlsEndpoint"},o="Client timeout",i="Network connection error",E="Network request aborted",_="Response cannot be parsed",u="Blocked by CSP",a="The endpoint parameter is not a valid URL",s=t("WrongRegion"),O=t("SubscriptionNotActive"),c=t("UnsupportedVersion"),p=t("InstallationMethodRestricted"),I=t("HostnameRestricted"),d=t("IntegrationFailed"),l="API key required",f="API key not found",N="API key expired",T="Request cannot be parsed",v="Request failed",A="Request failed to process",h="Too many requests, rate limit exceeded",P="Not available for this origin",D="Not available with restricted header",S=l,x=f,L=N,m="3.8.5",w="9319";function U(t,r){var n=[];return function(t,r){var n=5,R=(s=t,O=e.__spreadArray([],s,!0),{current:function(){return O[0]},postpone:function(){var e=O.shift();void 0!==e&&O.push(e)},exclude:function(){O.shift()}}),o=(E=100,_=3e3,a=0,function(){return Math.random()*Math.min(_,E*Math.pow(2,a++))}),i=R.current();var E,_,a;var s,O;if(void 0===i)return Promise.reject(new TypeError("The list of script URL patterns is empty"));var c=function(e,t){return r(e).catch((function(e){if(t+1>=n)throw e;!function(e){if(!(e instanceof Error))return!1;var t=e.message;return t===u||t===w}(e)?R.postpone():R.exclude();var r,i=R.current();if(void 0===i)throw e;return(r=o(),new Promise((function(e){return setTimeout(e,r)}))).then((function(){return c(i,t+1)}))}))};return c(i,0)}(t,(function(e){var t=new Date,R=function(r){return n.push({url:e,startedAt:t,finishedAt:new Date,error:r})},o=r(e);return o.then((function(){return R()}),R),o})).then((function(e){return[e,{attempts:n}]}))}var C="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js",y=C,K="Failed to load the JS script of the agent";function M(t){var n;t.scriptUrlPattern;var R=t.token,o=t.apiKey,i=void 0===o?R:o,E=e.__rest(t,["scriptUrlPattern","token","apiKey"]),_=null!==(n=r(t,"scriptUrlPattern"))&&void 0!==n?n:C;return Promise.resolve().then((function(){if(!i||"string"!=typeof i)throw new Error(l);var e=function(e,t){return(Array.isArray(e)?e:[e]).map((function(e){return function(e,t){var r=encodeURIComponent;return e.replace(/<[^<>]+>/g,(function(e){return"<version>"===e?"3":"<apiKey>"===e?r(t):"<loaderVersion>"===e?r(m):e}))}(String(e),t)}))}(_,i);return U(e,g).catch(F)})).then((function(t){var r=t[0],n=t[1];return r.load(e.__assign(e.__assign({},E),{ldi:n}))}))}function g(e){return function(e,t,r,n){var R,o=document,i="securitypolicyviolation",E=function(t){var r=new URL(e,location.href),n=t.blockedURI;n!==r.href&&n!==r.protocol.slice(0,-1)&&n!==r.origin||(R=t,_())};o.addEventListener(i,E);var _=function(){return o.removeEventListener(i,E)};return null==n||n.then(_,_),Promise.resolve().then(t).then((function(e){return _(),e}),(function(e){return new Promise((function(e){return setTimeout(e)})).then((function(){if(_(),R)return r(R);throw e}))}))}(e,(function(){return function(e){return new Promise((function(t,r){var n=document.createElement("script"),R=function(){var e;return null===(e=n.parentNode)||void 0===e?void 0:e.removeChild(n)},o=document.head||document.getElementsByTagName("head")[0];n.onload=function(){R(),t()},n.onerror=function(){R(),r(new Error(K))},n.async=!0,n.src=e,o.appendChild(n)}))}(e)}),(function(){throw new Error(u)})).then(B)}function B(){var e=window,t="__fpjs_p_l_b",r=e[t];if(function(e,t){var r,n=null===(r=Object.getOwnPropertyDescriptor)||void 0===r?void 0:r.call(Object,e,t);(null==n?void 0:n.configurable)?delete e[t]:n&&!n.writable||(e[t]=void 0)}(e,t),"function"!=typeof(null==r?void 0:r.load))throw new Error(w);return r}function F(e){throw e instanceof Error&&e.message===w?new Error(K):e}var V={load:M,defaultScriptUrlPattern:y,ERROR_SCRIPT_LOAD_FAIL:K,ERROR_API_KEY_EXPIRED:N,ERROR_API_KEY_INVALID:f,ERROR_API_KEY_MISSING:l,ERROR_BAD_REQUEST_FORMAT:T,ERROR_BAD_RESPONSE_FORMAT:_,ERROR_CLIENT_TIMEOUT:o,ERROR_CSP_BLOCK:u,ERROR_FORBIDDEN_ENDPOINT:I,ERROR_FORBIDDEN_HEADER:D,ERROR_FORBIDDEN_ORIGIN:P,ERROR_GENERAL_SERVER_FAILURE:v,ERROR_INSTALLATION_METHOD_RESTRICTED:p,ERROR_INTEGRATION_FAILURE:d,ERROR_INVALID_ENDPOINT:a,ERROR_NETWORK_ABORT:E,ERROR_NETWORK_CONNECTION:i,ERROR_RATE_LIMIT:h,ERROR_SERVER_TIMEOUT:A,ERROR_SUBSCRIPTION_NOT_ACTIVE:O,ERROR_TOKEN_EXPIRED:L,ERROR_TOKEN_INVALID:x,ERROR_TOKEN_MISSING:S,ERROR_UNSUPPORTED_VERSION:c,ERROR_WRONG_REGION:s,defaultEndpoint:n,defaultTlsEndpoint:R};exports.ERROR_API_KEY_EXPIRED=N,exports.ERROR_API_KEY_INVALID=f,exports.ERROR_API_KEY_MISSING=l,exports.ERROR_BAD_REQUEST_FORMAT=T,exports.ERROR_BAD_RESPONSE_FORMAT=_,exports.ERROR_CLIENT_TIMEOUT=o,exports.ERROR_CSP_BLOCK=u,exports.ERROR_FORBIDDEN_ENDPOINT=I,exports.ERROR_FORBIDDEN_HEADER=D,exports.ERROR_FORBIDDEN_ORIGIN=P,exports.ERROR_GENERAL_SERVER_FAILURE=v,exports.ERROR_INSTALLATION_METHOD_RESTRICTED=p,exports.ERROR_INTEGRATION_FAILURE=d,exports.ERROR_INVALID_ENDPOINT=a,exports.ERROR_NETWORK_ABORT=E,exports.ERROR_NETWORK_CONNECTION=i,exports.ERROR_RATE_LIMIT=h,exports.ERROR_SCRIPT_LOAD_FAIL=K,exports.ERROR_SERVER_TIMEOUT=A,exports.ERROR_SUBSCRIPTION_NOT_ACTIVE=O,exports.ERROR_TOKEN_EXPIRED=L,exports.ERROR_TOKEN_INVALID=x,exports.ERROR_TOKEN_MISSING=S,exports.ERROR_UNSUPPORTED_VERSION=c,exports.ERROR_WRONG_REGION=s,exports.default=V,exports.defaultEndpoint=n,exports.defaultScriptUrlPattern=y,exports.defaultTlsEndpoint=R,exports.load=M;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib");function t(e){for(var t="",r=0;r<e.length;++r)if(r>0){var n=e[r].toLowerCase();n!==e[r]?t+=" ".concat(n):t+=e[r]}else t+=e[r].toUpperCase();return t}function r(e,t){return function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)?e[t]:void 0}var n={default:"endpoint"},o={default:"tlsEndpoint"},R="Client timeout",i="Network connection error",E="Network request aborted",u="Response cannot be parsed",_="Blocked by CSP",a="The endpoint parameter is not a valid URL",s=t("WrongRegion"),O=t("SubscriptionNotActive"),c=t("UnsupportedVersion"),p=t("InstallationMethodRestricted"),I=t("HostnameRestricted"),d=t("IntegrationFailed"),f="API key required",l="API key not found",N="API key expired",T="Request cannot be parsed",v="Request failed",A="Request failed to process",h="Too many requests, rate limit exceeded",D="Not available for this origin",P="Not available with restricted header",S=f,m=l,x=N,L="3.8.6",w="9319";function U(t,r){var n=[];return function(t,r){var n=5,o=(s=t,O=e.__spreadArray([],s,!0),{current:function(){return O[0]},postpone:function(){var e=O.shift();void 0!==e&&O.push(e)},exclude:function(){O.shift()}}),R=(E=100,u=3e3,a=0,function(){return Math.random()*Math.min(u,E*Math.pow(2,a++))}),i=o.current();var E,u,a;var s,O;if(void 0===i)return Promise.reject(new TypeError("The list of script URL patterns is empty"));var c=function(e,t){return r(e).catch((function(e){if(t+1>=n)throw e;!function(e){if(!(e instanceof Error))return!1;var t=e.message;return t===_||t===w}(e)?o.postpone():o.exclude();var r,i=o.current();if(void 0===i)throw e;return(r=R(),new Promise((function(e){return setTimeout(e,r)}))).then((function(){return c(i,t+1)}))}))};return c(i,0)}(t,(function(e){var t=new Date,o=function(r){return n.push({url:e,startedAt:t,finishedAt:new Date,error:r})},R=r(e);return R.then((function(){return o()}),o),R})).then((function(e){return[e,n]}))}var y="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js",C=y,K="Failed to load the JS script of the agent";function M(t){var n;t.scriptUrlPattern;var o=t.token,R=t.apiKey,i=void 0===R?o:R,E=e.__rest(t,["scriptUrlPattern","token","apiKey"]),u=null!==(n=r(t,"scriptUrlPattern"))&&void 0!==n?n:y,_=function(){var e=[],t=function(){e.push({time:new Date,state:document.visibilityState})},r=function(e,t,r,n){return e.addEventListener(t,r,n),function(){return e.removeEventListener(t,r,n)}}(document,"visibilitychange",t);return t(),[e,r]}(),a=_[0],s=_[1];return Promise.resolve().then((function(){if(!i||"string"!=typeof i)throw new Error(f);var e=function(e,t){return(Array.isArray(e)?e:[e]).map((function(e){return function(e,t){var r=encodeURIComponent;return e.replace(/<[^<>]+>/g,(function(e){return"<version>"===e?"3":"<apiKey>"===e?r(t):"<loaderVersion>"===e?r(L):e}))}(String(e),t)}))}(u,i);return U(e,b)})).catch((function(e){throw s(),function(e){if(e instanceof Error&&e.message===w)return new Error(K);return e}(e)})).then((function(t){var r=t[0],n=t[1];return s(),r.load(e.__assign(e.__assign({},E),{ldi:{attempts:n,visibilityStates:a}}))}))}function b(e){return function(e,t,r,n){var o,R=document,i="securitypolicyviolation",E=function(t){var r=new URL(e,location.href),n=t.blockedURI;n!==r.href&&n!==r.protocol.slice(0,-1)&&n!==r.origin||(o=t,u())};R.addEventListener(i,E);var u=function(){return R.removeEventListener(i,E)};return null==n||n.then(u,u),Promise.resolve().then(t).then((function(e){return u(),e}),(function(e){return new Promise((function(e){return setTimeout(e)})).then((function(){if(u(),o)return r(o);throw e}))}))}(e,(function(){return function(e){return new Promise((function(t,r){var n=document.createElement("script"),o=function(){var e;return null===(e=n.parentNode)||void 0===e?void 0:e.removeChild(n)},R=document.head||document.getElementsByTagName("head")[0];n.onload=function(){o(),t()},n.onerror=function(){o(),r(new Error(K))},n.async=!0,n.src=e,R.appendChild(n)}))}(e)}),(function(){throw new Error(_)})).then(g)}function g(){var e=window,t="__fpjs_p_l_b",r=e[t];if(function(e,t){var r,n=null===(r=Object.getOwnPropertyDescriptor)||void 0===r?void 0:r.call(Object,e,t);(null==n?void 0:n.configurable)?delete e[t]:n&&!n.writable||(e[t]=void 0)}(e,t),"function"!=typeof(null==r?void 0:r.load))throw new Error(w);return r}var B={load:M,defaultScriptUrlPattern:C,ERROR_SCRIPT_LOAD_FAIL:K,ERROR_API_KEY_EXPIRED:N,ERROR_API_KEY_INVALID:l,ERROR_API_KEY_MISSING:f,ERROR_BAD_REQUEST_FORMAT:T,ERROR_BAD_RESPONSE_FORMAT:u,ERROR_CLIENT_TIMEOUT:R,ERROR_CSP_BLOCK:_,ERROR_FORBIDDEN_ENDPOINT:I,ERROR_FORBIDDEN_HEADER:P,ERROR_FORBIDDEN_ORIGIN:D,ERROR_GENERAL_SERVER_FAILURE:v,ERROR_INSTALLATION_METHOD_RESTRICTED:p,ERROR_INTEGRATION_FAILURE:d,ERROR_INVALID_ENDPOINT:a,ERROR_NETWORK_ABORT:E,ERROR_NETWORK_CONNECTION:i,ERROR_RATE_LIMIT:h,ERROR_SERVER_TIMEOUT:A,ERROR_SUBSCRIPTION_NOT_ACTIVE:O,ERROR_TOKEN_EXPIRED:x,ERROR_TOKEN_INVALID:m,ERROR_TOKEN_MISSING:S,ERROR_UNSUPPORTED_VERSION:c,ERROR_WRONG_REGION:s,defaultEndpoint:n,defaultTlsEndpoint:o};exports.ERROR_API_KEY_EXPIRED=N,exports.ERROR_API_KEY_INVALID=l,exports.ERROR_API_KEY_MISSING=f,exports.ERROR_BAD_REQUEST_FORMAT=T,exports.ERROR_BAD_RESPONSE_FORMAT=u,exports.ERROR_CLIENT_TIMEOUT=R,exports.ERROR_CSP_BLOCK=_,exports.ERROR_FORBIDDEN_ENDPOINT=I,exports.ERROR_FORBIDDEN_HEADER=P,exports.ERROR_FORBIDDEN_ORIGIN=D,exports.ERROR_GENERAL_SERVER_FAILURE=v,exports.ERROR_INSTALLATION_METHOD_RESTRICTED=p,exports.ERROR_INTEGRATION_FAILURE=d,exports.ERROR_INVALID_ENDPOINT=a,exports.ERROR_NETWORK_ABORT=E,exports.ERROR_NETWORK_CONNECTION=i,exports.ERROR_RATE_LIMIT=h,exports.ERROR_SCRIPT_LOAD_FAIL=K,exports.ERROR_SERVER_TIMEOUT=A,exports.ERROR_SUBSCRIPTION_NOT_ACTIVE=O,exports.ERROR_TOKEN_EXPIRED=x,exports.ERROR_TOKEN_INVALID=m,exports.ERROR_TOKEN_MISSING=S,exports.ERROR_UNSUPPORTED_VERSION=c,exports.ERROR_WRONG_REGION=s,exports.default=B,exports.defaultEndpoint=n,exports.defaultScriptUrlPattern=C,exports.defaultTlsEndpoint=o,exports.load=M;
/**
* FingerprintJS Pro v3.8.5 - Copyright (c) FingerprintJS, Inc, 2023 (https://fingerprint.com)
*
* This software contains code from open-source projects:
* MurmurHash3 by Karan Lyons (https://github.com/karanlyons/murmurHash3.js)
* FingerprintJS Pro v3.8.6 - Copyright (c) FingerprintJS, Inc, 2023 (https://fingerprint.com)
*/

@@ -276,2 +273,4 @@

* The value of this constant is a placeholder, it may change after any update.
*
* @deprecated The need to configure TLS is not necessary anymore
*/

@@ -283,2 +282,4 @@ declare const defaultTlsEndpoint: {

* API endpoint for TLS requests
*
* @deprecated The need to configure TLS is not necessary anymore
*/

@@ -317,6 +318,4 @@ type TlsEndpoint = string | typeof defaultTlsEndpoint | readonly (string | typeof defaultTlsEndpoint)[];

* If an empty array is given, the TLS request will be skipped.
* @example
* 'https://tls.fp.example.com'
* @example
* ['https://tls.fp.example.com', FingerprintJS.defaultTlsEndpoint]
*
* @deprecated Not necessary anymore, just remove this option
*/

@@ -326,2 +325,4 @@ tlsEndpoint?: TlsEndpoint;

* Disables the extra TLS request
*
* @deprecated Not necessary anymore, just remove this option
*/

@@ -328,0 +329,0 @@ disableTls?: boolean;

/**
* FingerprintJS Pro v3.8.5 - Copyright (c) FingerprintJS, Inc, 2023 (https://fingerprint.com)
*
* This software contains code from open-source projects:
* MurmurHash3 by Karan Lyons (https://github.com/karanlyons/murmurHash3.js)
* FingerprintJS Pro v3.8.6 - Copyright (c) FingerprintJS, Inc, 2023 (https://fingerprint.com)
*/
import{__spreadArray as e,__rest as t,__assign as n}from"tslib";function r(e){for(var t="",n=0;n<e.length;++n)if(n>0){var r=e[n].toLowerCase();r!==e[n]?t+=" ".concat(r):t+=e[n]}else t+=e[n].toUpperCase();return t}function o(e,t){return function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)?e[t]:void 0}var i={default:"endpoint"},u={default:"tlsEndpoint"},R="Client timeout",a="Network connection error",c="Network request aborted",E="Response cannot be parsed",s="Blocked by CSP",f="The endpoint parameter is not a valid URL",d=/*#__PURE__*/r("WrongRegion"),l=/*#__PURE__*/r("SubscriptionNotActive"),_=/*#__PURE__*/r("UnsupportedVersion"),p=/*#__PURE__*/r("InstallationMethodRestricted"),O=/*#__PURE__*/r("HostnameRestricted"),v=/*#__PURE__*/r("IntegrationFailed"),I="API key required",h="API key not found",N="API key expired",T="Request cannot be parsed",m="Request failed",A="Request failed to process",w="Too many requests, rate limit exceeded",P="Not available for this origin",D="Not available with restricted header",y=I,S=h,L=N,U="3.8.5",g="9319";function C(t,n){var r=[];return function(t,n){var r=5,o=(E=t,f=e([],E,!0),{current:function(){return f[0]},postpone:function(){var e=f.shift();void 0!==e&&f.push(e)},exclude:function(){f.shift()}}),i=(R=100,a=3e3,c=0,function(){return Math.random()*Math.min(a,R*Math.pow(2,c++))}),u=o.current();var R,a,c;var E,f;if(void 0===u)return Promise.reject(new TypeError("The list of script URL patterns is empty"));var d=function(e,t){return n(e).catch((function(e){if(t+1>=r)throw e;!function(e){if(!(e instanceof Error))return!1;var t=e.message;return t===s||t===g}(e)?o.postpone():o.exclude();var n,u=o.current();if(void 0===u)throw e;return(n=i(),new Promise((function(e){return setTimeout(e,n)}))).then((function(){return d(u,t+1)}))}))};return d(u,0)}(t,(function(e){var t=new Date,o=function(n){return r.push({url:e,startedAt:t,finishedAt:new Date,error:n})},i=n(e);return i.then((function(){return o()}),o),i})).then((function(e){return[e,{attempts:r}]}))}var b="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js",K=b,M="Failed to load the JS script of the agent";function B(e){var r;e.scriptUrlPattern;var i=e.token,u=e.apiKey,R=void 0===u?i:u,a=t(e,["scriptUrlPattern","token","apiKey"]),c=null!==(r=o(e,"scriptUrlPattern"))&&void 0!==r?r:b;return Promise.resolve().then((function(){if(!R||"string"!=typeof R)throw new Error(I);var e=function(e,t){return(Array.isArray(e)?e:[e]).map((function(e){return function(e,t){var n=encodeURIComponent;return e.replace(/<[^<>]+>/g,(function(e){return"<version>"===e?"3":"<apiKey>"===e?n(t):"<loaderVersion>"===e?n(U):e}))}(String(e),t)}))}(c,R);return C(e,F).catch(k)})).then((function(e){var t=e[0],r=e[1];return t.load(n(n({},a),{ldi:r}))}))}function F(e){return function(e,t,n,r){var o,i=document,u="securitypolicyviolation",R=function(t){var n=new URL(e,location.href),r=t.blockedURI;r!==n.href&&r!==n.protocol.slice(0,-1)&&r!==n.origin||(o=t,a())};i.addEventListener(u,R);var a=function(){return i.removeEventListener(u,R)};return null==r||r.then(a,a),Promise.resolve().then(t).then((function(e){return a(),e}),(function(e){return new Promise((function(e){return setTimeout(e)})).then((function(){if(a(),o)return n(o);throw e}))}))}(e,(function(){return function(e){return new Promise((function(t,n){var r=document.createElement("script"),o=function(){var e;return null===(e=r.parentNode)||void 0===e?void 0:e.removeChild(r)},i=document.head||document.getElementsByTagName("head")[0];r.onload=function(){o(),t()},r.onerror=function(){o(),n(new Error(M))},r.async=!0,r.src=e,i.appendChild(r)}))}(e)}),(function(){throw new Error(s)})).then(V)}function V(){var e=window,t="__fpjs_p_l_b",n=e[t];if(function(e,t){var n,r=null===(n=Object.getOwnPropertyDescriptor)||void 0===n?void 0:n.call(Object,e,t);(null==r?void 0:r.configurable)?delete e[t]:r&&!r.writable||(e[t]=void 0)}(e,t),"function"!=typeof(null==n?void 0:n.load))throw new Error(g);return n}function k(e){throw e instanceof Error&&e.message===g?new Error(M):e}var G={load:B,defaultScriptUrlPattern:K,ERROR_SCRIPT_LOAD_FAIL:M,ERROR_API_KEY_EXPIRED:N,ERROR_API_KEY_INVALID:h,ERROR_API_KEY_MISSING:I,ERROR_BAD_REQUEST_FORMAT:T,ERROR_BAD_RESPONSE_FORMAT:E,ERROR_CLIENT_TIMEOUT:R,ERROR_CSP_BLOCK:s,ERROR_FORBIDDEN_ENDPOINT:O,ERROR_FORBIDDEN_HEADER:D,ERROR_FORBIDDEN_ORIGIN:P,ERROR_GENERAL_SERVER_FAILURE:m,ERROR_INSTALLATION_METHOD_RESTRICTED:p,ERROR_INTEGRATION_FAILURE:v,ERROR_INVALID_ENDPOINT:f,ERROR_NETWORK_ABORT:c,ERROR_NETWORK_CONNECTION:a,ERROR_RATE_LIMIT:w,ERROR_SERVER_TIMEOUT:A,ERROR_SUBSCRIPTION_NOT_ACTIVE:l,ERROR_TOKEN_EXPIRED:L,ERROR_TOKEN_INVALID:S,ERROR_TOKEN_MISSING:y,ERROR_UNSUPPORTED_VERSION:_,ERROR_WRONG_REGION:d,defaultEndpoint:i,defaultTlsEndpoint:u};export{N as ERROR_API_KEY_EXPIRED,h as ERROR_API_KEY_INVALID,I as ERROR_API_KEY_MISSING,T as ERROR_BAD_REQUEST_FORMAT,E as ERROR_BAD_RESPONSE_FORMAT,R as ERROR_CLIENT_TIMEOUT,s as ERROR_CSP_BLOCK,O as ERROR_FORBIDDEN_ENDPOINT,D as ERROR_FORBIDDEN_HEADER,P as ERROR_FORBIDDEN_ORIGIN,m as ERROR_GENERAL_SERVER_FAILURE,p as ERROR_INSTALLATION_METHOD_RESTRICTED,v as ERROR_INTEGRATION_FAILURE,f as ERROR_INVALID_ENDPOINT,c as ERROR_NETWORK_ABORT,a as ERROR_NETWORK_CONNECTION,w as ERROR_RATE_LIMIT,M as ERROR_SCRIPT_LOAD_FAIL,A as ERROR_SERVER_TIMEOUT,l as ERROR_SUBSCRIPTION_NOT_ACTIVE,L as ERROR_TOKEN_EXPIRED,S as ERROR_TOKEN_INVALID,y as ERROR_TOKEN_MISSING,_ as ERROR_UNSUPPORTED_VERSION,d as ERROR_WRONG_REGION,G as default,i as defaultEndpoint,K as defaultScriptUrlPattern,u as defaultTlsEndpoint,B as load};
import{__spreadArray as e,__rest as t,__assign as n}from"tslib";function r(e){for(var t="",n=0;n<e.length;++n)if(n>0){var r=e[n].toLowerCase();r!==e[n]?t+=" ".concat(r):t+=e[n]}else t+=e[n].toUpperCase();return t}function o(e,t){return function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)?e[t]:void 0}var i={default:"endpoint"},u={default:"tlsEndpoint"},a="Client timeout",R="Network connection error",c="Network request aborted",s="Response cannot be parsed",E="Blocked by CSP",f="The endpoint parameter is not a valid URL",d=/*#__PURE__*/r("WrongRegion"),l=/*#__PURE__*/r("SubscriptionNotActive"),_=/*#__PURE__*/r("UnsupportedVersion"),p=/*#__PURE__*/r("InstallationMethodRestricted"),v=/*#__PURE__*/r("HostnameRestricted"),O=/*#__PURE__*/r("IntegrationFailed"),I="API key required",h="API key not found",N="API key expired",T="Request cannot be parsed",m="Request failed",w="Request failed to process",A="Too many requests, rate limit exceeded",P="Not available for this origin",y="Not available with restricted header",D=I,S=h,L=N,U="3.8.6",b="9319";function g(t,n){var r=[];return function(t,n){var r=5,o=(s=t,f=e([],s,!0),{current:function(){return f[0]},postpone:function(){var e=f.shift();void 0!==e&&f.push(e)},exclude:function(){f.shift()}}),i=(a=100,R=3e3,c=0,function(){return Math.random()*Math.min(R,a*Math.pow(2,c++))}),u=o.current();var a,R,c;var s,f;if(void 0===u)return Promise.reject(new TypeError("The list of script URL patterns is empty"));var d=function(e,t){return n(e).catch((function(e){if(t+1>=r)throw e;!function(e){if(!(e instanceof Error))return!1;var t=e.message;return t===E||t===b}(e)?o.postpone():o.exclude();var n,u=o.current();if(void 0===u)throw e;return(n=i(),new Promise((function(e){return setTimeout(e,n)}))).then((function(){return d(u,t+1)}))}))};return d(u,0)}(t,(function(e){var t=new Date,o=function(n){return r.push({url:e,startedAt:t,finishedAt:new Date,error:n})},i=n(e);return i.then((function(){return o()}),o),i})).then((function(e){return[e,r]}))}var C="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js",K=C,M="Failed to load the JS script of the agent";function B(e){var r;e.scriptUrlPattern;var i=e.token,u=e.apiKey,a=void 0===u?i:u,R=t(e,["scriptUrlPattern","token","apiKey"]),c=null!==(r=o(e,"scriptUrlPattern"))&&void 0!==r?r:C,s=function(){var e=[],t=function(){e.push({time:new Date,state:document.visibilityState})},n=function(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}(document,"visibilitychange",t);return t(),[e,n]}(),E=s[0],f=s[1];return Promise.resolve().then((function(){if(!a||"string"!=typeof a)throw new Error(I);var e=function(e,t){return(Array.isArray(e)?e:[e]).map((function(e){return function(e,t){var n=encodeURIComponent;return e.replace(/<[^<>]+>/g,(function(e){return"<version>"===e?"3":"<apiKey>"===e?n(t):"<loaderVersion>"===e?n(U):e}))}(String(e),t)}))}(c,a);return g(e,F)})).catch((function(e){throw f(),function(e){if(e instanceof Error&&e.message===b)return new Error(M);return e}(e)})).then((function(e){var t=e[0],r=e[1];return f(),t.load(n(n({},R),{ldi:{attempts:r,visibilityStates:E}}))}))}function F(e){return function(e,t,n,r){var o,i=document,u="securitypolicyviolation",a=function(t){var n=new URL(e,location.href),r=t.blockedURI;r!==n.href&&r!==n.protocol.slice(0,-1)&&r!==n.origin||(o=t,R())};i.addEventListener(u,a);var R=function(){return i.removeEventListener(u,a)};return null==r||r.then(R,R),Promise.resolve().then(t).then((function(e){return R(),e}),(function(e){return new Promise((function(e){return setTimeout(e)})).then((function(){if(R(),o)return n(o);throw e}))}))}(e,(function(){return function(e){return new Promise((function(t,n){var r=document.createElement("script"),o=function(){var e;return null===(e=r.parentNode)||void 0===e?void 0:e.removeChild(r)},i=document.head||document.getElementsByTagName("head")[0];r.onload=function(){o(),t()},r.onerror=function(){o(),n(new Error(M))},r.async=!0,r.src=e,i.appendChild(r)}))}(e)}),(function(){throw new Error(E)})).then(V)}function V(){var e=window,t="__fpjs_p_l_b",n=e[t];if(function(e,t){var n,r=null===(n=Object.getOwnPropertyDescriptor)||void 0===n?void 0:n.call(Object,e,t);(null==r?void 0:r.configurable)?delete e[t]:r&&!r.writable||(e[t]=void 0)}(e,t),"function"!=typeof(null==n?void 0:n.load))throw new Error(b);return n}var k={load:B,defaultScriptUrlPattern:K,ERROR_SCRIPT_LOAD_FAIL:M,ERROR_API_KEY_EXPIRED:N,ERROR_API_KEY_INVALID:h,ERROR_API_KEY_MISSING:I,ERROR_BAD_REQUEST_FORMAT:T,ERROR_BAD_RESPONSE_FORMAT:s,ERROR_CLIENT_TIMEOUT:a,ERROR_CSP_BLOCK:E,ERROR_FORBIDDEN_ENDPOINT:v,ERROR_FORBIDDEN_HEADER:y,ERROR_FORBIDDEN_ORIGIN:P,ERROR_GENERAL_SERVER_FAILURE:m,ERROR_INSTALLATION_METHOD_RESTRICTED:p,ERROR_INTEGRATION_FAILURE:O,ERROR_INVALID_ENDPOINT:f,ERROR_NETWORK_ABORT:c,ERROR_NETWORK_CONNECTION:R,ERROR_RATE_LIMIT:A,ERROR_SERVER_TIMEOUT:w,ERROR_SUBSCRIPTION_NOT_ACTIVE:l,ERROR_TOKEN_EXPIRED:L,ERROR_TOKEN_INVALID:S,ERROR_TOKEN_MISSING:D,ERROR_UNSUPPORTED_VERSION:_,ERROR_WRONG_REGION:d,defaultEndpoint:i,defaultTlsEndpoint:u};export{N as ERROR_API_KEY_EXPIRED,h as ERROR_API_KEY_INVALID,I as ERROR_API_KEY_MISSING,T as ERROR_BAD_REQUEST_FORMAT,s as ERROR_BAD_RESPONSE_FORMAT,a as ERROR_CLIENT_TIMEOUT,E as ERROR_CSP_BLOCK,v as ERROR_FORBIDDEN_ENDPOINT,y as ERROR_FORBIDDEN_HEADER,P as ERROR_FORBIDDEN_ORIGIN,m as ERROR_GENERAL_SERVER_FAILURE,p as ERROR_INSTALLATION_METHOD_RESTRICTED,O as ERROR_INTEGRATION_FAILURE,f as ERROR_INVALID_ENDPOINT,c as ERROR_NETWORK_ABORT,R as ERROR_NETWORK_CONNECTION,A as ERROR_RATE_LIMIT,M as ERROR_SCRIPT_LOAD_FAIL,w as ERROR_SERVER_TIMEOUT,l as ERROR_SUBSCRIPTION_NOT_ACTIVE,L as ERROR_TOKEN_EXPIRED,S as ERROR_TOKEN_INVALID,D as ERROR_TOKEN_MISSING,_ as ERROR_UNSUPPORTED_VERSION,d as ERROR_WRONG_REGION,k as default,i as defaultEndpoint,K as defaultScriptUrlPattern,u as defaultTlsEndpoint,B as load};
/**
* FingerprintJS Pro v3.8.5 - Copyright (c) FingerprintJS, Inc, 2023 (https://fingerprint.com)
*
* This software contains code from open-source projects:
* MurmurHash3 by Karan Lyons (https://github.com/karanlyons/murmurHash3.js)
* FingerprintJS Pro v3.8.6 - Copyright (c) FingerprintJS, Inc, 2023 (https://fingerprint.com)
*/
var FingerprintJS=function(e){"use strict";var t=function(){return t=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var R in t=arguments[r])Object.prototype.hasOwnProperty.call(t,R)&&(e[R]=t[R]);return e},t.apply(this,arguments)};function r(e){for(var t="",r=0;r<e.length;++r)if(r>0){var n=e[r].toLowerCase();n!==e[r]?t+=" ".concat(n):t+=e[r]}else t+=e[r].toUpperCase();return t}function n(e,t){return function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)?e[t]:void 0}function R(e){var t=function(e,t,r){if(r||2===arguments.length)for(var n,R=0,o=t.length;R<o;R++)!n&&R in t||(n||(n=Array.prototype.slice.call(t,0,R)),n[R]=t[R]);return e.concat(n||Array.prototype.slice.call(t))}([],e,!0);return{current:function(){return t[0]},postpone:function(){var e=t.shift();void 0!==e&&t.push(e)},exclude:function(){t.shift()}}}var o={default:"endpoint"},i={default:"tlsEndpoint"},E="Client timeout",a="Network connection error",u="Network request aborted",O="Response cannot be parsed",_="Blocked by CSP",c="The endpoint parameter is not a valid URL",l=r("WrongRegion"),f=r("SubscriptionNotActive"),s=r("UnsupportedVersion"),I=r("InstallationMethodRestricted"),d=r("HostnameRestricted"),p=r("IntegrationFailed"),N="API key required",T="API key not found",v="API key expired",A="Request cannot be parsed",h="Request failed",P="Request failed to process",D="Too many requests, rate limit exceeded",S="Not available for this origin",y="Not available with restricted header",m=N,w=T,L=v,U="3.8.5",C="9319";function b(e,t){var r=[];return function(e,t){var r=5,n=R(e),o=(E=100,a=3e3,u=0,function(){return Math.random()*Math.min(a,E*Math.pow(2,u++))}),i=n.current();var E,a,u;if(void 0===i)return Promise.reject(new TypeError("The list of script URL patterns is empty"));var O=function(e,R){return t(e).catch((function(e){if(R+1>=r)throw e;!function(e){if(!(e instanceof Error))return!1;var t=e.message;return t===_||t===C}(e)?n.postpone():n.exclude();var t,i=n.current();if(void 0===i)throw e;return(t=o(),new Promise((function(e){return setTimeout(e,t)}))).then((function(){return O(i,R+1)}))}))};return O(i,0)}(e,(function(e){var n=new Date,R=function(t){return r.push({url:e,startedAt:n,finishedAt:new Date,error:t})},o=t(e);return o.then((function(){return R()}),R),o})).then((function(e){return[e,{attempts:r}]}))}var g="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js",K=g,M="Failed to load the JS script of the agent";function F(e){var r;e.scriptUrlPattern;var R=e.token,o=e.apiKey,i=void 0===o?R:o,E=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var R=0;for(n=Object.getOwnPropertySymbols(e);R<n.length;R++)t.indexOf(n[R])<0&&Object.prototype.propertyIsEnumerable.call(e,n[R])&&(r[n[R]]=e[n[R]])}return r}(e,["scriptUrlPattern","token","apiKey"]),a=null!==(r=n(e,"scriptUrlPattern"))&&void 0!==r?r:g;return Promise.resolve().then((function(){if(!i||"string"!=typeof i)throw new Error(N);var e=function(e,t){return(Array.isArray(e)?e:[e]).map((function(e){return function(e,t){var r=encodeURIComponent;return e.replace(/<[^<>]+>/g,(function(e){return"<version>"===e?"3":"<apiKey>"===e?r(t):"<loaderVersion>"===e?r(U):e}))}(String(e),t)}))}(a,i);return b(e,B).catch(G)})).then((function(e){var r=e[0],n=e[1];return r.load(t(t({},E),{ldi:n}))}))}function B(e){return function(e,t,r,n){var R,o=document,i="securitypolicyviolation",E=function(t){var r=new URL(e,location.href),n=t.blockedURI;n!==r.href&&n!==r.protocol.slice(0,-1)&&n!==r.origin||(R=t,a())};o.addEventListener(i,E);var a=function(){return o.removeEventListener(i,E)};return null==n||n.then(a,a),Promise.resolve().then(t).then((function(e){return a(),e}),(function(e){return new Promise((function(e){return setTimeout(e)})).then((function(){if(a(),R)return r(R);throw e}))}))}(e,(function(){return function(e){return new Promise((function(t,r){var n=document.createElement("script"),R=function(){var e;return null===(e=n.parentNode)||void 0===e?void 0:e.removeChild(n)},o=document.head||document.getElementsByTagName("head")[0];n.onload=function(){R(),t()},n.onerror=function(){R(),r(new Error(M))},n.async=!0,n.src=e,o.appendChild(n)}))}(e)}),(function(){throw new Error(_)})).then(V)}function V(){var e=window,t="__fpjs_p_l_b",r=e[t];if(function(e,t){var r,n=null===(r=Object.getOwnPropertyDescriptor)||void 0===r?void 0:r.call(Object,e,t);(null==n?void 0:n.configurable)?delete e[t]:n&&!n.writable||(e[t]=void 0)}(e,t),"function"!=typeof(null==r?void 0:r.load))throw new Error(C);return r}function G(e){throw e instanceof Error&&e.message===C?new Error(M):e}var j={load:F,defaultScriptUrlPattern:K,ERROR_SCRIPT_LOAD_FAIL:M,ERROR_API_KEY_EXPIRED:v,ERROR_API_KEY_INVALID:T,ERROR_API_KEY_MISSING:N,ERROR_BAD_REQUEST_FORMAT:A,ERROR_BAD_RESPONSE_FORMAT:O,ERROR_CLIENT_TIMEOUT:E,ERROR_CSP_BLOCK:_,ERROR_FORBIDDEN_ENDPOINT:d,ERROR_FORBIDDEN_HEADER:y,ERROR_FORBIDDEN_ORIGIN:S,ERROR_GENERAL_SERVER_FAILURE:h,ERROR_INSTALLATION_METHOD_RESTRICTED:I,ERROR_INTEGRATION_FAILURE:p,ERROR_INVALID_ENDPOINT:c,ERROR_NETWORK_ABORT:u,ERROR_NETWORK_CONNECTION:a,ERROR_RATE_LIMIT:D,ERROR_SERVER_TIMEOUT:P,ERROR_SUBSCRIPTION_NOT_ACTIVE:f,ERROR_TOKEN_EXPIRED:L,ERROR_TOKEN_INVALID:w,ERROR_TOKEN_MISSING:m,ERROR_UNSUPPORTED_VERSION:s,ERROR_WRONG_REGION:l,defaultEndpoint:o,defaultTlsEndpoint:i};return e.ERROR_API_KEY_EXPIRED=v,e.ERROR_API_KEY_INVALID=T,e.ERROR_API_KEY_MISSING=N,e.ERROR_BAD_REQUEST_FORMAT=A,e.ERROR_BAD_RESPONSE_FORMAT=O,e.ERROR_CLIENT_TIMEOUT=E,e.ERROR_CSP_BLOCK=_,e.ERROR_FORBIDDEN_ENDPOINT=d,e.ERROR_FORBIDDEN_HEADER=y,e.ERROR_FORBIDDEN_ORIGIN=S,e.ERROR_GENERAL_SERVER_FAILURE=h,e.ERROR_INSTALLATION_METHOD_RESTRICTED=I,e.ERROR_INTEGRATION_FAILURE=p,e.ERROR_INVALID_ENDPOINT=c,e.ERROR_NETWORK_ABORT=u,e.ERROR_NETWORK_CONNECTION=a,e.ERROR_RATE_LIMIT=D,e.ERROR_SCRIPT_LOAD_FAIL=M,e.ERROR_SERVER_TIMEOUT=P,e.ERROR_SUBSCRIPTION_NOT_ACTIVE=f,e.ERROR_TOKEN_EXPIRED=L,e.ERROR_TOKEN_INVALID=w,e.ERROR_TOKEN_MISSING=m,e.ERROR_UNSUPPORTED_VERSION=s,e.ERROR_WRONG_REGION=l,e.default=j,e.defaultEndpoint=o,e.defaultScriptUrlPattern=K,e.defaultTlsEndpoint=i,e.load=F,Object.defineProperty(e,"__esModule",{value:!0}),e}({});
var FingerprintJS=function(t){"use strict";var e=function(){return e=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},e.apply(this,arguments)};function n(t){for(var e="",n=0;n<t.length;++n)if(n>0){var r=t[n].toLowerCase();r!==t[n]?e+=" ".concat(r):e+=t[n]}else e+=t[n].toUpperCase();return e}function r(t,e){return function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}(t,e)?t[e]:void 0}function o(t){var e=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,R=e.length;o<R;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}([],t,!0);return{current:function(){return e[0]},postpone:function(){var t=e.shift();void 0!==t&&e.push(t)},exclude:function(){e.shift()}}}var R={default:"endpoint"},i={default:"tlsEndpoint"},E="Client timeout",u="Network connection error",a="Network request aborted",c="Response cannot be parsed",O="Blocked by CSP",_="The endpoint parameter is not a valid URL",l=n("WrongRegion"),f=n("SubscriptionNotActive"),s=n("UnsupportedVersion"),I=n("InstallationMethodRestricted"),d=n("HostnameRestricted"),p=n("IntegrationFailed"),N="API key required",T="API key not found",v="API key expired",A="Request cannot be parsed",h="Request failed",P="Request failed to process",S="Too many requests, rate limit exceeded",D="Not available for this origin",y="Not available with restricted header",m=N,w=T,L=v,U="3.8.6",b="9319";function g(t,e){var n=[];return function(t,e){var n=5,r=o(t),R=(E=100,u=3e3,a=0,function(){return Math.random()*Math.min(u,E*Math.pow(2,a++))}),i=r.current();var E,u,a;if(void 0===i)return Promise.reject(new TypeError("The list of script URL patterns is empty"));var c=function(t,o){return e(t).catch((function(t){if(o+1>=n)throw t;!function(t){if(!(t instanceof Error))return!1;var e=t.message;return e===O||e===b}(t)?r.postpone():r.exclude();var e,i=r.current();if(void 0===i)throw t;return(e=R(),new Promise((function(t){return setTimeout(t,e)}))).then((function(){return c(i,o+1)}))}))};return c(i,0)}(t,(function(t){var r=new Date,o=function(e){return n.push({url:t,startedAt:r,finishedAt:new Date,error:e})},R=e(t);return R.then((function(){return o()}),o),R})).then((function(t){return[t,n]}))}var C="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js",K=C,M="Failed to load the JS script of the agent";function F(t){var n;t.scriptUrlPattern;var o=t.token,R=t.apiKey,i=void 0===R?o:R,E=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}(t,["scriptUrlPattern","token","apiKey"]),u=null!==(n=r(t,"scriptUrlPattern"))&&void 0!==n?n:C,a=function(){var t=[],e=function(){t.push({time:new Date,state:document.visibilityState})},n=function(t,e,n,r){return t.addEventListener(e,n,r),function(){return t.removeEventListener(e,n,r)}}(document,"visibilitychange",e);return e(),[t,n]}(),c=a[0],O=a[1];return Promise.resolve().then((function(){if(!i||"string"!=typeof i)throw new Error(N);var t=function(t,e){return(Array.isArray(t)?t:[t]).map((function(t){return function(t,e){var n=encodeURIComponent;return t.replace(/<[^<>]+>/g,(function(t){return"<version>"===t?"3":"<apiKey>"===t?n(e):"<loaderVersion>"===t?n(U):t}))}(String(t),e)}))}(u,i);return g(t,B)})).catch((function(t){throw O(),function(t){if(t instanceof Error&&t.message===b)return new Error(M);return t}(t)})).then((function(t){var n=t[0],r=t[1];return O(),n.load(e(e({},E),{ldi:{attempts:r,visibilityStates:c}}))}))}function B(t){return function(t,e,n,r){var o,R=document,i="securitypolicyviolation",E=function(e){var n=new URL(t,location.href),r=e.blockedURI;r!==n.href&&r!==n.protocol.slice(0,-1)&&r!==n.origin||(o=e,u())};R.addEventListener(i,E);var u=function(){return R.removeEventListener(i,E)};return null==r||r.then(u,u),Promise.resolve().then(e).then((function(t){return u(),t}),(function(t){return new Promise((function(t){return setTimeout(t)})).then((function(){if(u(),o)return n(o);throw t}))}))}(t,(function(){return function(t){return new Promise((function(e,n){var r=document.createElement("script"),o=function(){var t;return null===(t=r.parentNode)||void 0===t?void 0:t.removeChild(r)},R=document.head||document.getElementsByTagName("head")[0];r.onload=function(){o(),e()},r.onerror=function(){o(),n(new Error(M))},r.async=!0,r.src=t,R.appendChild(r)}))}(t)}),(function(){throw new Error(O)})).then(V)}function V(){var t=window,e="__fpjs_p_l_b",n=t[e];if(function(t,e){var n,r=null===(n=Object.getOwnPropertyDescriptor)||void 0===n?void 0:n.call(Object,t,e);(null==r?void 0:r.configurable)?delete t[e]:r&&!r.writable||(t[e]=void 0)}(t,e),"function"!=typeof(null==n?void 0:n.load))throw new Error(b);return n}var G={load:F,defaultScriptUrlPattern:K,ERROR_SCRIPT_LOAD_FAIL:M,ERROR_API_KEY_EXPIRED:v,ERROR_API_KEY_INVALID:T,ERROR_API_KEY_MISSING:N,ERROR_BAD_REQUEST_FORMAT:A,ERROR_BAD_RESPONSE_FORMAT:c,ERROR_CLIENT_TIMEOUT:E,ERROR_CSP_BLOCK:O,ERROR_FORBIDDEN_ENDPOINT:d,ERROR_FORBIDDEN_HEADER:y,ERROR_FORBIDDEN_ORIGIN:D,ERROR_GENERAL_SERVER_FAILURE:h,ERROR_INSTALLATION_METHOD_RESTRICTED:I,ERROR_INTEGRATION_FAILURE:p,ERROR_INVALID_ENDPOINT:_,ERROR_NETWORK_ABORT:a,ERROR_NETWORK_CONNECTION:u,ERROR_RATE_LIMIT:S,ERROR_SERVER_TIMEOUT:P,ERROR_SUBSCRIPTION_NOT_ACTIVE:f,ERROR_TOKEN_EXPIRED:L,ERROR_TOKEN_INVALID:w,ERROR_TOKEN_MISSING:m,ERROR_UNSUPPORTED_VERSION:s,ERROR_WRONG_REGION:l,defaultEndpoint:R,defaultTlsEndpoint:i};return t.ERROR_API_KEY_EXPIRED=v,t.ERROR_API_KEY_INVALID=T,t.ERROR_API_KEY_MISSING=N,t.ERROR_BAD_REQUEST_FORMAT=A,t.ERROR_BAD_RESPONSE_FORMAT=c,t.ERROR_CLIENT_TIMEOUT=E,t.ERROR_CSP_BLOCK=O,t.ERROR_FORBIDDEN_ENDPOINT=d,t.ERROR_FORBIDDEN_HEADER=y,t.ERROR_FORBIDDEN_ORIGIN=D,t.ERROR_GENERAL_SERVER_FAILURE=h,t.ERROR_INSTALLATION_METHOD_RESTRICTED=I,t.ERROR_INTEGRATION_FAILURE=p,t.ERROR_INVALID_ENDPOINT=_,t.ERROR_NETWORK_ABORT=a,t.ERROR_NETWORK_CONNECTION=u,t.ERROR_RATE_LIMIT=S,t.ERROR_SCRIPT_LOAD_FAIL=M,t.ERROR_SERVER_TIMEOUT=P,t.ERROR_SUBSCRIPTION_NOT_ACTIVE=f,t.ERROR_TOKEN_EXPIRED=L,t.ERROR_TOKEN_INVALID=w,t.ERROR_TOKEN_MISSING=m,t.ERROR_UNSUPPORTED_VERSION=s,t.ERROR_WRONG_REGION=l,t.default=G,t.defaultEndpoint=R,t.defaultScriptUrlPattern=K,t.defaultTlsEndpoint=i,t.load=F,Object.defineProperty(t,"__esModule",{value:!0}),t}({});
/**
* FingerprintJS Pro v3.8.5 - Copyright (c) FingerprintJS, Inc, 2023 (https://fingerprint.com)
*
* This software contains code from open-source projects:
* MurmurHash3 by Karan Lyons (https://github.com/karanlyons/murmurHash3.js)
* FingerprintJS Pro v3.8.6 - Copyright (c) FingerprintJS, Inc, 2023 (https://fingerprint.com)
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).FingerprintJS={})}(this,(function(e){"use strict";var t=function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},t.apply(this,arguments)};function n(e){for(var t="",n=0;n<e.length;++n)if(n>0){var r=e[n].toLowerCase();r!==e[n]?t+=" ".concat(r):t+=e[n]}else t+=e[n].toUpperCase();return t}function r(e,t){return function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)?e[t]:void 0}function o(e){var t=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,R=t.length;o<R;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],e,!0);return{current:function(){return t[0]},postpone:function(){var e=t.shift();void 0!==e&&t.push(e)},exclude:function(){t.shift()}}}var R={default:"endpoint"},i={default:"tlsEndpoint"},E="Client timeout",u="Network connection error",a="Network request aborted",c="Response cannot be parsed",O="Blocked by CSP",_="The endpoint parameter is not a valid URL",f=n("WrongRegion"),l=n("SubscriptionNotActive"),s=n("UnsupportedVersion"),d=n("InstallationMethodRestricted"),I=n("HostnameRestricted"),p=n("IntegrationFailed"),N="API key required",T="API key not found",v="API key expired",h="Request cannot be parsed",A="Request failed",P="Request failed to process",y="Too many requests, rate limit exceeded",D="Not available for this origin",S="Not available with restricted header",m=N,w=T,L=v,U="3.8.5",b="9319";function g(e,t){var n=[];return function(e,t){var n=5,r=o(e),R=(E=100,u=3e3,a=0,function(){return Math.random()*Math.min(u,E*Math.pow(2,a++))}),i=r.current();var E,u,a;if(void 0===i)return Promise.reject(new TypeError("The list of script URL patterns is empty"));var c=function(e,o){return t(e).catch((function(e){if(o+1>=n)throw e;!function(e){if(!(e instanceof Error))return!1;var t=e.message;return t===O||t===b}(e)?r.postpone():r.exclude();var t,i=r.current();if(void 0===i)throw e;return(t=R(),new Promise((function(e){return setTimeout(e,t)}))).then((function(){return c(i,o+1)}))}))};return c(i,0)}(e,(function(e){var r=new Date,o=function(t){return n.push({url:e,startedAt:r,finishedAt:new Date,error:t})},R=t(e);return R.then((function(){return o()}),o),R})).then((function(e){return[e,{attempts:n}]}))}var C="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js",K=C,M="Failed to load the JS script of the agent";function F(e){var n;e.scriptUrlPattern;var o=e.token,R=e.apiKey,i=void 0===R?o:R,E=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["scriptUrlPattern","token","apiKey"]),u=null!==(n=r(e,"scriptUrlPattern"))&&void 0!==n?n:C;return Promise.resolve().then((function(){if(!i||"string"!=typeof i)throw new Error(N);var e=function(e,t){return(Array.isArray(e)?e:[e]).map((function(e){return function(e,t){var n=encodeURIComponent;return e.replace(/<[^<>]+>/g,(function(e){return"<version>"===e?"3":"<apiKey>"===e?n(t):"<loaderVersion>"===e?n(U):e}))}(String(e),t)}))}(u,i);return g(e,B).catch(j)})).then((function(e){var n=e[0],r=e[1];return n.load(t(t({},E),{ldi:r}))}))}function B(e){return function(e,t,n,r){var o,R=document,i="securitypolicyviolation",E=function(t){var n=new URL(e,location.href),r=t.blockedURI;r!==n.href&&r!==n.protocol.slice(0,-1)&&r!==n.origin||(o=t,u())};R.addEventListener(i,E);var u=function(){return R.removeEventListener(i,E)};return null==r||r.then(u,u),Promise.resolve().then(t).then((function(e){return u(),e}),(function(e){return new Promise((function(e){return setTimeout(e)})).then((function(){if(u(),o)return n(o);throw e}))}))}(e,(function(){return function(e){return new Promise((function(t,n){var r=document.createElement("script"),o=function(){var e;return null===(e=r.parentNode)||void 0===e?void 0:e.removeChild(r)},R=document.head||document.getElementsByTagName("head")[0];r.onload=function(){o(),t()},r.onerror=function(){o(),n(new Error(M))},r.async=!0,r.src=e,R.appendChild(r)}))}(e)}),(function(){throw new Error(O)})).then(V)}function V(){var e=window,t="__fpjs_p_l_b",n=e[t];if(function(e,t){var n,r=null===(n=Object.getOwnPropertyDescriptor)||void 0===n?void 0:n.call(Object,e,t);(null==r?void 0:r.configurable)?delete e[t]:r&&!r.writable||(e[t]=void 0)}(e,t),"function"!=typeof(null==n?void 0:n.load))throw new Error(b);return n}function j(e){throw e instanceof Error&&e.message===b?new Error(M):e}var G={load:F,defaultScriptUrlPattern:K,ERROR_SCRIPT_LOAD_FAIL:M,ERROR_API_KEY_EXPIRED:v,ERROR_API_KEY_INVALID:T,ERROR_API_KEY_MISSING:N,ERROR_BAD_REQUEST_FORMAT:h,ERROR_BAD_RESPONSE_FORMAT:c,ERROR_CLIENT_TIMEOUT:E,ERROR_CSP_BLOCK:O,ERROR_FORBIDDEN_ENDPOINT:I,ERROR_FORBIDDEN_HEADER:S,ERROR_FORBIDDEN_ORIGIN:D,ERROR_GENERAL_SERVER_FAILURE:A,ERROR_INSTALLATION_METHOD_RESTRICTED:d,ERROR_INTEGRATION_FAILURE:p,ERROR_INVALID_ENDPOINT:_,ERROR_NETWORK_ABORT:a,ERROR_NETWORK_CONNECTION:u,ERROR_RATE_LIMIT:y,ERROR_SERVER_TIMEOUT:P,ERROR_SUBSCRIPTION_NOT_ACTIVE:l,ERROR_TOKEN_EXPIRED:L,ERROR_TOKEN_INVALID:w,ERROR_TOKEN_MISSING:m,ERROR_UNSUPPORTED_VERSION:s,ERROR_WRONG_REGION:f,defaultEndpoint:R,defaultTlsEndpoint:i};e.ERROR_API_KEY_EXPIRED=v,e.ERROR_API_KEY_INVALID=T,e.ERROR_API_KEY_MISSING=N,e.ERROR_BAD_REQUEST_FORMAT=h,e.ERROR_BAD_RESPONSE_FORMAT=c,e.ERROR_CLIENT_TIMEOUT=E,e.ERROR_CSP_BLOCK=O,e.ERROR_FORBIDDEN_ENDPOINT=I,e.ERROR_FORBIDDEN_HEADER=S,e.ERROR_FORBIDDEN_ORIGIN=D,e.ERROR_GENERAL_SERVER_FAILURE=A,e.ERROR_INSTALLATION_METHOD_RESTRICTED=d,e.ERROR_INTEGRATION_FAILURE=p,e.ERROR_INVALID_ENDPOINT=_,e.ERROR_NETWORK_ABORT=a,e.ERROR_NETWORK_CONNECTION=u,e.ERROR_RATE_LIMIT=y,e.ERROR_SCRIPT_LOAD_FAIL=M,e.ERROR_SERVER_TIMEOUT=P,e.ERROR_SUBSCRIPTION_NOT_ACTIVE=l,e.ERROR_TOKEN_EXPIRED=L,e.ERROR_TOKEN_INVALID=w,e.ERROR_TOKEN_MISSING=m,e.ERROR_UNSUPPORTED_VERSION=s,e.ERROR_WRONG_REGION=f,e.default=G,e.defaultEndpoint=R,e.defaultScriptUrlPattern=K,e.defaultTlsEndpoint=i,e.load=F,Object.defineProperty(e,"__esModule",{value:!0})}));
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).FingerprintJS={})}(this,(function(e){"use strict";var t=function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},t.apply(this,arguments)};function n(e){for(var t="",n=0;n<e.length;++n)if(n>0){var r=e[n].toLowerCase();r!==e[n]?t+=" ".concat(r):t+=e[n]}else t+=e[n].toUpperCase();return t}function r(e,t){return function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)?e[t]:void 0}function o(e){var t=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,R=t.length;o<R;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],e,!0);return{current:function(){return t[0]},postpone:function(){var e=t.shift();void 0!==e&&t.push(e)},exclude:function(){t.shift()}}}var R={default:"endpoint"},i={default:"tlsEndpoint"},E="Client timeout",u="Network connection error",a="Network request aborted",c="Response cannot be parsed",O="Blocked by CSP",_="The endpoint parameter is not a valid URL",f=n("WrongRegion"),l=n("SubscriptionNotActive"),s=n("UnsupportedVersion"),d=n("InstallationMethodRestricted"),I=n("HostnameRestricted"),p=n("IntegrationFailed"),N="API key required",T="API key not found",v="API key expired",h="Request cannot be parsed",A="Request failed",P="Request failed to process",y="Too many requests, rate limit exceeded",S="Not available for this origin",D="Not available with restricted header",m=N,w=T,L=v,b="3.8.6",U="9319";function g(e,t){var n=[];return function(e,t){var n=5,r=o(e),R=(E=100,u=3e3,a=0,function(){return Math.random()*Math.min(u,E*Math.pow(2,a++))}),i=r.current();var E,u,a;if(void 0===i)return Promise.reject(new TypeError("The list of script URL patterns is empty"));var c=function(e,o){return t(e).catch((function(e){if(o+1>=n)throw e;!function(e){if(!(e instanceof Error))return!1;var t=e.message;return t===O||t===U}(e)?r.postpone():r.exclude();var t,i=r.current();if(void 0===i)throw e;return(t=R(),new Promise((function(e){return setTimeout(e,t)}))).then((function(){return c(i,o+1)}))}))};return c(i,0)}(e,(function(e){var r=new Date,o=function(t){return n.push({url:e,startedAt:r,finishedAt:new Date,error:t})},R=t(e);return R.then((function(){return o()}),o),R})).then((function(e){return[e,n]}))}var C="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js",K=C,M="Failed to load the JS script of the agent";function F(e){var n;e.scriptUrlPattern;var o=e.token,R=e.apiKey,i=void 0===R?o:R,E=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["scriptUrlPattern","token","apiKey"]),u=null!==(n=r(e,"scriptUrlPattern"))&&void 0!==n?n:C,a=function(){var e=[],t=function(){e.push({time:new Date,state:document.visibilityState})},n=function(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}(document,"visibilitychange",t);return t(),[e,n]}(),c=a[0],O=a[1];return Promise.resolve().then((function(){if(!i||"string"!=typeof i)throw new Error(N);var e=function(e,t){return(Array.isArray(e)?e:[e]).map((function(e){return function(e,t){var n=encodeURIComponent;return e.replace(/<[^<>]+>/g,(function(e){return"<version>"===e?"3":"<apiKey>"===e?n(t):"<loaderVersion>"===e?n(b):e}))}(String(e),t)}))}(u,i);return g(e,B)})).catch((function(e){throw O(),function(e){if(e instanceof Error&&e.message===U)return new Error(M);return e}(e)})).then((function(e){var n=e[0],r=e[1];return O(),n.load(t(t({},E),{ldi:{attempts:r,visibilityStates:c}}))}))}function B(e){return function(e,t,n,r){var o,R=document,i="securitypolicyviolation",E=function(t){var n=new URL(e,location.href),r=t.blockedURI;r!==n.href&&r!==n.protocol.slice(0,-1)&&r!==n.origin||(o=t,u())};R.addEventListener(i,E);var u=function(){return R.removeEventListener(i,E)};return null==r||r.then(u,u),Promise.resolve().then(t).then((function(e){return u(),e}),(function(e){return new Promise((function(e){return setTimeout(e)})).then((function(){if(u(),o)return n(o);throw e}))}))}(e,(function(){return function(e){return new Promise((function(t,n){var r=document.createElement("script"),o=function(){var e;return null===(e=r.parentNode)||void 0===e?void 0:e.removeChild(r)},R=document.head||document.getElementsByTagName("head")[0];r.onload=function(){o(),t()},r.onerror=function(){o(),n(new Error(M))},r.async=!0,r.src=e,R.appendChild(r)}))}(e)}),(function(){throw new Error(O)})).then(V)}function V(){var e=window,t="__fpjs_p_l_b",n=e[t];if(function(e,t){var n,r=null===(n=Object.getOwnPropertyDescriptor)||void 0===n?void 0:n.call(Object,e,t);(null==r?void 0:r.configurable)?delete e[t]:r&&!r.writable||(e[t]=void 0)}(e,t),"function"!=typeof(null==n?void 0:n.load))throw new Error(U);return n}var j={load:F,defaultScriptUrlPattern:K,ERROR_SCRIPT_LOAD_FAIL:M,ERROR_API_KEY_EXPIRED:v,ERROR_API_KEY_INVALID:T,ERROR_API_KEY_MISSING:N,ERROR_BAD_REQUEST_FORMAT:h,ERROR_BAD_RESPONSE_FORMAT:c,ERROR_CLIENT_TIMEOUT:E,ERROR_CSP_BLOCK:O,ERROR_FORBIDDEN_ENDPOINT:I,ERROR_FORBIDDEN_HEADER:D,ERROR_FORBIDDEN_ORIGIN:S,ERROR_GENERAL_SERVER_FAILURE:A,ERROR_INSTALLATION_METHOD_RESTRICTED:d,ERROR_INTEGRATION_FAILURE:p,ERROR_INVALID_ENDPOINT:_,ERROR_NETWORK_ABORT:a,ERROR_NETWORK_CONNECTION:u,ERROR_RATE_LIMIT:y,ERROR_SERVER_TIMEOUT:P,ERROR_SUBSCRIPTION_NOT_ACTIVE:l,ERROR_TOKEN_EXPIRED:L,ERROR_TOKEN_INVALID:w,ERROR_TOKEN_MISSING:m,ERROR_UNSUPPORTED_VERSION:s,ERROR_WRONG_REGION:f,defaultEndpoint:R,defaultTlsEndpoint:i};e.ERROR_API_KEY_EXPIRED=v,e.ERROR_API_KEY_INVALID=T,e.ERROR_API_KEY_MISSING=N,e.ERROR_BAD_REQUEST_FORMAT=h,e.ERROR_BAD_RESPONSE_FORMAT=c,e.ERROR_CLIENT_TIMEOUT=E,e.ERROR_CSP_BLOCK=O,e.ERROR_FORBIDDEN_ENDPOINT=I,e.ERROR_FORBIDDEN_HEADER=D,e.ERROR_FORBIDDEN_ORIGIN=S,e.ERROR_GENERAL_SERVER_FAILURE=A,e.ERROR_INSTALLATION_METHOD_RESTRICTED=d,e.ERROR_INTEGRATION_FAILURE=p,e.ERROR_INVALID_ENDPOINT=_,e.ERROR_NETWORK_ABORT=a,e.ERROR_NETWORK_CONNECTION=u,e.ERROR_RATE_LIMIT=y,e.ERROR_SCRIPT_LOAD_FAIL=M,e.ERROR_SERVER_TIMEOUT=P,e.ERROR_SUBSCRIPTION_NOT_ACTIVE=l,e.ERROR_TOKEN_EXPIRED=L,e.ERROR_TOKEN_INVALID=w,e.ERROR_TOKEN_MISSING=m,e.ERROR_UNSUPPORTED_VERSION=s,e.ERROR_WRONG_REGION=f,e.default=j,e.defaultEndpoint=R,e.defaultScriptUrlPattern=K,e.defaultTlsEndpoint=i,e.load=F,Object.defineProperty(e,"__esModule",{value:!0})}));
{
"name": "@fingerprintjs/fingerprintjs-pro",
"description": "FingerprintJS Pro client agent",
"version": "3.8.5",
"version": "3.8.6",
"keywords": [

@@ -6,0 +6,0 @@ "browser",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc