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.1 to 3.8.2

LICENSE

4

dist/fp.cjs.min.js
/**
* FingerprintJS Pro v3.8.1 - Copyright (c) FingerprintJS, Inc, 2022 (https://fingerprint.com)
* FingerprintJS Pro v3.8.2 - Copyright (c) FingerprintJS, Inc, 2023 (https://fingerprint.com)
*

@@ -8,2 +8,2 @@ * This software contains code from open-source projects:

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib");function t(e,t){return function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)?e[t]:void 0}function r(e){for(var t="",r=0;r<e.length;++r)if(r>0){var n=e[r].toLowerCase();n!==e[r]?t+=" "+n:t+=e[r]}else t+=e[r].toUpperCase();return t}var n={default:"endpoint"},o={default:"tlsEndpoint"},R=r("WrongRegion"),i=r("SubscriptionNotActive"),E=r("UnsupportedVersion"),u=r("InstallationMethodRestricted"),a=r("HostnameRestricted"),s=r("IntegrationFailed");function _(t,r){var n=[];return function(t,r){var n=5,o=(s=t,_=e.__spreadArrays(s),{current:function(){return _[0]},postpone:function(){var e=_.shift();void 0!==e&&_.push(e)},exclude:function(){_.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,_;if(void 0===i)return Promise.reject(new TypeError("The list of script URL patterns is empty"));var O=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"Blocked by CSP"===t||"9319"===t}(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 O(i,t+1)}))}))};return O(i,0)}(t,(function(e){var t=new Date,o=function(){return n.push({url:e,startedAt:t,finishedAt:new Date})},R=r(e);return R.then(o,o),R})).then((function(e){return[e,{attempts:n}]}))}var O="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js",c=O,d="Failed to load the JS script of the agent";function p(r){var n;r.scriptUrlPattern;var o=r.token,R=r.apiKey,i=void 0===R?o:R,E=e.__rest(r,["scriptUrlPattern","token","apiKey"]),u=null!==(n=t(r,"scriptUrlPattern"))&&void 0!==n?n:O;return Promise.resolve().then((function(){if(!i||"string"!=typeof i)throw new Error("API key required");return _(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("3.8.1"):e}))}(String(e),t)}))}(u,i),I).catch(f)})).then((function(t){var r=t[0],n=t[1];return r.load(e.__assign(e.__assign({},E),{ldi:n}))}))}function I(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(d))},n.async=!0,n.src=e,R.appendChild(n)}))}(e)}),(function(){throw new Error("Blocked by CSP")})).then(l)}function l(){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("9319");return r}function f(e){throw e instanceof Error&&"9319"===e.message?new Error(d):e}var N={load:p,defaultScriptUrlPattern:c,ERROR_SCRIPT_LOAD_FAIL:d,ERROR_API_KEY_EXPIRED:"API key expired",ERROR_API_KEY_INVALID:"API key not found",ERROR_API_KEY_MISSING:"API key required",ERROR_BAD_REQUEST_FORMAT:"Request cannot be parsed",ERROR_BAD_RESPONSE_FORMAT:"Response cannot be parsed",ERROR_CLIENT_TIMEOUT:"Client timeout",ERROR_CSP_BLOCK:"Blocked by CSP",ERROR_FORBIDDEN_ENDPOINT:a,ERROR_FORBIDDEN_HEADER:"Not available with restricted header",ERROR_FORBIDDEN_ORIGIN:"Not available for this origin",ERROR_GENERAL_SERVER_FAILURE:"Request failed",ERROR_INSTALLATION_METHOD_RESTRICTED:u,ERROR_INTEGRATION_FAILURE:s,ERROR_NETWORK_ABORT:"Network request aborted",ERROR_NETWORK_CONNECTION:"Network connection error",ERROR_RATE_LIMIT:"Too many requests, rate limit exceeded",ERROR_SERVER_TIMEOUT:"Request failed to process",ERROR_SUBSCRIPTION_NOT_ACTIVE:i,ERROR_TOKEN_EXPIRED:"API key expired",ERROR_TOKEN_INVALID:"API key not found",ERROR_TOKEN_MISSING:"API key required",ERROR_UNSUPPORTED_VERSION:E,ERROR_WRONG_REGION:R,defaultEndpoint:n,defaultTlsEndpoint:o};exports.ERROR_API_KEY_EXPIRED="API key expired",exports.ERROR_API_KEY_INVALID="API key not found",exports.ERROR_API_KEY_MISSING="API key required",exports.ERROR_BAD_REQUEST_FORMAT="Request cannot be parsed",exports.ERROR_BAD_RESPONSE_FORMAT="Response cannot be parsed",exports.ERROR_CLIENT_TIMEOUT="Client timeout",exports.ERROR_CSP_BLOCK="Blocked by CSP",exports.ERROR_FORBIDDEN_ENDPOINT=a,exports.ERROR_FORBIDDEN_HEADER="Not available with restricted header",exports.ERROR_FORBIDDEN_ORIGIN="Not available for this origin",exports.ERROR_GENERAL_SERVER_FAILURE="Request failed",exports.ERROR_INSTALLATION_METHOD_RESTRICTED=u,exports.ERROR_INTEGRATION_FAILURE=s,exports.ERROR_NETWORK_ABORT="Network request aborted",exports.ERROR_NETWORK_CONNECTION="Network connection error",exports.ERROR_RATE_LIMIT="Too many requests, rate limit exceeded",exports.ERROR_SCRIPT_LOAD_FAIL=d,exports.ERROR_SERVER_TIMEOUT="Request failed to process",exports.ERROR_SUBSCRIPTION_NOT_ACTIVE=i,exports.ERROR_TOKEN_EXPIRED="API key expired",exports.ERROR_TOKEN_INVALID="API key not found",exports.ERROR_TOKEN_MISSING="API key required",exports.ERROR_UNSUPPORTED_VERSION=E,exports.ERROR_WRONG_REGION=R,exports.default=N,exports.defaultEndpoint=n,exports.defaultScriptUrlPattern=c,exports.defaultTlsEndpoint=o,exports.load=p;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib");function t(e,t){return function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)?e[t]:void 0}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}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=r("WrongRegion"),s=r("SubscriptionNotActive"),O=r("UnsupportedVersion"),c=r("InstallationMethodRestricted"),p=r("HostnameRestricted"),I=r("IntegrationFailed"),d="API key required",l="API key not found",f="API key expired",N="Request cannot be parsed",T="Request failed",v="Request failed to process",A="Too many requests, rate limit exceeded",h="Not available for this origin",P="Not available with restricted header",S=d,D=l,x=f,m="3.8.2",w="9319";function L(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(){return n.push({url:e,startedAt:t,finishedAt:new Date})},o=r(e);return o.then(R,R),o})).then((function(e){return[e,{attempts:n}]}))}var U="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js",C=U,y="Failed to load the JS script of the agent";function K(r){var n;r.scriptUrlPattern;var R=r.token,o=r.apiKey,i=void 0===o?R:o,E=e.__rest(r,["scriptUrlPattern","token","apiKey"]),_=null!==(n=t(r,"scriptUrlPattern"))&&void 0!==n?n:U;return Promise.resolve().then((function(){if(!i||"string"!=typeof i)throw new Error(d);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 L(e,M).catch(B)})).then((function(t){var r=t[0],n=t[1];return r.load(e.__assign(e.__assign({},E),{ldi:n}))}))}function M(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(y))},n.async=!0,n.src=e,o.appendChild(n)}))}(e)}),(function(){throw new Error(u)})).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}function B(e){throw e instanceof Error&&e.message===w?new Error(y):e}var F={load:K,defaultScriptUrlPattern:C,ERROR_SCRIPT_LOAD_FAIL:y,ERROR_API_KEY_EXPIRED:f,ERROR_API_KEY_INVALID:l,ERROR_API_KEY_MISSING:d,ERROR_BAD_REQUEST_FORMAT:N,ERROR_BAD_RESPONSE_FORMAT:_,ERROR_CLIENT_TIMEOUT:o,ERROR_CSP_BLOCK:u,ERROR_FORBIDDEN_ENDPOINT:p,ERROR_FORBIDDEN_HEADER:P,ERROR_FORBIDDEN_ORIGIN:h,ERROR_GENERAL_SERVER_FAILURE:T,ERROR_INSTALLATION_METHOD_RESTRICTED:c,ERROR_INTEGRATION_FAILURE:I,ERROR_NETWORK_ABORT:E,ERROR_NETWORK_CONNECTION:i,ERROR_RATE_LIMIT:A,ERROR_SERVER_TIMEOUT:v,ERROR_SUBSCRIPTION_NOT_ACTIVE:s,ERROR_TOKEN_EXPIRED:x,ERROR_TOKEN_INVALID:D,ERROR_TOKEN_MISSING:S,ERROR_UNSUPPORTED_VERSION:O,ERROR_WRONG_REGION:a,defaultEndpoint:n,defaultTlsEndpoint:R};exports.ERROR_API_KEY_EXPIRED=f,exports.ERROR_API_KEY_INVALID=l,exports.ERROR_API_KEY_MISSING=d,exports.ERROR_BAD_REQUEST_FORMAT=N,exports.ERROR_BAD_RESPONSE_FORMAT=_,exports.ERROR_CLIENT_TIMEOUT=o,exports.ERROR_CSP_BLOCK=u,exports.ERROR_FORBIDDEN_ENDPOINT=p,exports.ERROR_FORBIDDEN_HEADER=P,exports.ERROR_FORBIDDEN_ORIGIN=h,exports.ERROR_GENERAL_SERVER_FAILURE=T,exports.ERROR_INSTALLATION_METHOD_RESTRICTED=c,exports.ERROR_INTEGRATION_FAILURE=I,exports.ERROR_NETWORK_ABORT=E,exports.ERROR_NETWORK_CONNECTION=i,exports.ERROR_RATE_LIMIT=A,exports.ERROR_SCRIPT_LOAD_FAIL=y,exports.ERROR_SERVER_TIMEOUT=v,exports.ERROR_SUBSCRIPTION_NOT_ACTIVE=s,exports.ERROR_TOKEN_EXPIRED=x,exports.ERROR_TOKEN_INVALID=D,exports.ERROR_TOKEN_MISSING=S,exports.ERROR_UNSUPPORTED_VERSION=O,exports.ERROR_WRONG_REGION=a,exports.default=F,exports.defaultEndpoint=n,exports.defaultScriptUrlPattern=C,exports.defaultTlsEndpoint=R,exports.load=K;
/**
* FingerprintJS Pro v3.8.1 - Copyright (c) FingerprintJS, Inc, 2022 (https://fingerprint.com)
* FingerprintJS Pro v3.8.2 - Copyright (c) FingerprintJS, Inc, 2023 (https://fingerprint.com)
*

@@ -99,3 +99,3 @@ * This software contains code from open-source projects:

*/
declare type FullIpLocation = IpLocation;
type FullIpLocation = IpLocation;
interface BotInformation {

@@ -230,11 +230,11 @@ /**

*/
declare type GetResult = VisitorId & ResultExtraFields;
type GetResult = VisitorId & ResultExtraFields;
/**
* Result of getting a visitor id when requested with `extendedData: true`
*/
declare type ExtendedGetResult = ExtendedVisitorId & ResultExtraFields;
type ExtendedGetResult = ExtendedVisitorId & ResultExtraFields;
/**
* @deprecated Not used. Left for backward compatibility.
*/
declare type FullIpExtendedGetResult = ExtendedGetResult;
type FullIpExtendedGetResult = ExtendedGetResult;

@@ -248,3 +248,3 @@ declare const ERROR_WRONG_REGION: string;

declare type Region =
type Region =
/** N. Virginia, USA */

@@ -259,4 +259,4 @@ 'us'

*/
declare type IPResolution = 'city' | 'full';
declare type Product =
type IPResolution = 'city' | 'full';
type Product =
/** Browser identification */

@@ -277,3 +277,3 @@ 'identification'

*/
declare type Endpoint = string | typeof defaultEndpoint | readonly (string | typeof defaultEndpoint)[];
type Endpoint = string | typeof defaultEndpoint | readonly (string | typeof defaultEndpoint)[];
/**

@@ -290,4 +290,4 @@ * Represents the default API endpoint for TLS requests. Can be used as a part of the `tlsEndpoint` list.

*/
declare type TlsEndpoint = string | typeof defaultTlsEndpoint | readonly (string | typeof defaultTlsEndpoint)[];
declare type ApiKeyOptions = {
type TlsEndpoint = string | typeof defaultTlsEndpoint | readonly (string | typeof defaultTlsEndpoint)[];
type ApiKeyOptions = {
/** Public API key */

@@ -303,3 +303,3 @@ apiKey?: string;

};
declare type CommonLoadOptions = ApiKeyOptions & {
type CommonLoadOptions = ApiKeyOptions & {
/**

@@ -355,3 +355,3 @@ * Region of the FingerprintJS service server

*/
declare type LoaderLoadOptions = CommonLoadOptions;
type LoaderLoadOptions = CommonLoadOptions;
/**

@@ -415,3 +415,3 @@ * Options of getting a visitor identifier.

*/
declare type DeriveGetResult<TExtended extends boolean> = TExtended extends true ? ExtendedGetResult : GetResult;
type DeriveGetResult<TExtended extends boolean> = TExtended extends true ? ExtendedGetResult : GetResult;
/**

@@ -467,4 +467,4 @@ * Agent object that can get visitor identifier

*/
declare type ScriptUrlPattern = string | typeof defaultScriptUrlPattern | readonly (string | typeof defaultScriptUrlPattern)[];
declare type LoadOptions = LoaderLoadOptions & {
type ScriptUrlPattern = string | typeof defaultScriptUrlPattern | readonly (string | typeof defaultScriptUrlPattern)[];
type LoadOptions = LoaderLoadOptions & {
/**

@@ -471,0 +471,0 @@ * The pattern of the JS agent script URL.

/**
* FingerprintJS Pro v3.8.1 - Copyright (c) FingerprintJS, Inc, 2022 (https://fingerprint.com)
* FingerprintJS Pro v3.8.2 - Copyright (c) FingerprintJS, Inc, 2023 (https://fingerprint.com)
*

@@ -8,2 +8,2 @@ * This software contains code from open-source projects:

import{__spreadArrays as e,__rest as t,__assign as r}from"tslib";function n(e,t){return function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)?e[t]:void 0}function o(e){for(var t="",r=0;r<e.length;++r)if(r>0){var n=e[r].toLowerCase();n!==e[r]?t+=" "+n:t+=e[r]}else t+=e[r].toUpperCase();return t}var i={default:"endpoint"},u={default:"tlsEndpoint"},a="Client timeout",R="Network connection error",c="Network request aborted",d="Response cannot be parsed",s="Blocked by CSP",l=/*#__PURE__*/o("WrongRegion"),f=/*#__PURE__*/o("SubscriptionNotActive"),E=/*#__PURE__*/o("UnsupportedVersion"),p=/*#__PURE__*/o("InstallationMethodRestricted"),_=/*#__PURE__*/o("HostnameRestricted"),O=/*#__PURE__*/o("IntegrationFailed"),I="API key required",v="API key not found",h="API key expired",N="Request cannot be parsed",P="Request failed",A="Request failed to process",T="Too many requests, rate limit exceeded",y="Not available for this origin",m="Not available with restricted header",w="API key required",S="API key not found",k="API key expired";function b(t,r){var n=[];return function(t,r){var n=5,o=(d=t,s=e(d),{current:function(){return s[0]},postpone:function(){var e=s.shift();void 0!==e&&s.push(e)},exclude:function(){s.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 d,s;if(void 0===u)return Promise.reject(new TypeError("The list of script URL patterns is empty"));var l=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"Blocked by CSP"===t||"9319"===t}(e)?o.postpone():o.exclude();var r,u=o.current();if(void 0===u)throw e;return(r=i(),new Promise((function(e){return setTimeout(e,r)}))).then((function(){return l(u,t+1)}))}))};return l(u,0)}(t,(function(e){var t=new Date,o=function(){return n.push({url:e,startedAt:t,finishedAt:new Date})},i=r(e);return i.then(o,o),i})).then((function(e){return[e,{attempts:n}]}))}var D="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js",C=D,U="Failed to load the JS script of the agent";function g(e){var o;e.scriptUrlPattern;var i=e.token,u=e.apiKey,a=void 0===u?i:u,R=t(e,["scriptUrlPattern","token","apiKey"]),c=null!==(o=n(e,"scriptUrlPattern"))&&void 0!==o?o:D;return Promise.resolve().then((function(){if(!a||"string"!=typeof a)throw new Error("API key required");return b(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("3.8.1"):e}))}(String(e),t)}))}(c,a),L).catch(B)})).then((function(e){var t=e[0],n=e[1];return t.load(r(r({},R),{ldi:n}))}))}function L(e){return function(e,t,r,n){var o,i=document,u="securitypolicyviolation",a=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,R())};i.addEventListener(u,a);var R=function(){return i.removeEventListener(u,a)};return null==n||n.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 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)},i=document.head||document.getElementsByTagName("head")[0];n.onload=function(){o(),t()},n.onerror=function(){o(),r(new Error(U))},n.async=!0,n.src=e,i.appendChild(n)}))}(e)}),(function(){throw new Error("Blocked by CSP")})).then(q)}function q(){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("9319");return r}function B(e){throw e instanceof Error&&"9319"===e.message?new Error(U):e}var K={load:g,defaultScriptUrlPattern:C,ERROR_SCRIPT_LOAD_FAIL:U,ERROR_API_KEY_EXPIRED:"API key expired",ERROR_API_KEY_INVALID:"API key not found",ERROR_API_KEY_MISSING:"API key required",ERROR_BAD_REQUEST_FORMAT:"Request cannot be parsed",ERROR_BAD_RESPONSE_FORMAT:"Response cannot be parsed",ERROR_CLIENT_TIMEOUT:"Client timeout",ERROR_CSP_BLOCK:"Blocked by CSP",ERROR_FORBIDDEN_ENDPOINT:_,ERROR_FORBIDDEN_HEADER:"Not available with restricted header",ERROR_FORBIDDEN_ORIGIN:"Not available for this origin",ERROR_GENERAL_SERVER_FAILURE:"Request failed",ERROR_INSTALLATION_METHOD_RESTRICTED:p,ERROR_INTEGRATION_FAILURE:O,ERROR_NETWORK_ABORT:"Network request aborted",ERROR_NETWORK_CONNECTION:"Network connection error",ERROR_RATE_LIMIT:"Too many requests, rate limit exceeded",ERROR_SERVER_TIMEOUT:"Request failed to process",ERROR_SUBSCRIPTION_NOT_ACTIVE:f,ERROR_TOKEN_EXPIRED:"API key expired",ERROR_TOKEN_INVALID:"API key not found",ERROR_TOKEN_MISSING:"API key required",ERROR_UNSUPPORTED_VERSION:E,ERROR_WRONG_REGION:l,defaultEndpoint:i,defaultTlsEndpoint:u};export{h as ERROR_API_KEY_EXPIRED,v as ERROR_API_KEY_INVALID,I as ERROR_API_KEY_MISSING,N as ERROR_BAD_REQUEST_FORMAT,d as ERROR_BAD_RESPONSE_FORMAT,a as ERROR_CLIENT_TIMEOUT,s as ERROR_CSP_BLOCK,_ as ERROR_FORBIDDEN_ENDPOINT,m as ERROR_FORBIDDEN_HEADER,y as ERROR_FORBIDDEN_ORIGIN,P as ERROR_GENERAL_SERVER_FAILURE,p as ERROR_INSTALLATION_METHOD_RESTRICTED,O as ERROR_INTEGRATION_FAILURE,c as ERROR_NETWORK_ABORT,R as ERROR_NETWORK_CONNECTION,T as ERROR_RATE_LIMIT,U as ERROR_SCRIPT_LOAD_FAIL,A as ERROR_SERVER_TIMEOUT,f as ERROR_SUBSCRIPTION_NOT_ACTIVE,k as ERROR_TOKEN_EXPIRED,S as ERROR_TOKEN_INVALID,w as ERROR_TOKEN_MISSING,E as ERROR_UNSUPPORTED_VERSION,l as ERROR_WRONG_REGION,K as default,i as defaultEndpoint,C as defaultScriptUrlPattern,u as defaultTlsEndpoint,g as load};
import{__spreadArray as e,__rest as t,__assign as n}from"tslib";function r(e,t){return function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)?e[t]:void 0}function o(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}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=/*#__PURE__*/o("WrongRegion"),l=/*#__PURE__*/o("SubscriptionNotActive"),d=/*#__PURE__*/o("UnsupportedVersion"),_=/*#__PURE__*/o("InstallationMethodRestricted"),p=/*#__PURE__*/o("HostnameRestricted"),O=/*#__PURE__*/o("IntegrationFailed"),v="API key required",I="API key not found",h="API key expired",N="Request cannot be parsed",T="Request failed",m="Request failed to process",w="Too many requests, rate limit exceeded",A="Not available for this origin",P="Not available with restricted header",y=v,S=I,D=h,U="3.8.2",L="9319";function g(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 l=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===L}(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 l(u,t+1)}))}))};return l(u,0)}(t,(function(e){var t=new Date,o=function(){return r.push({url:e,startedAt:t,finishedAt:new Date})},i=n(e);return i.then(o,o),i})).then((function(e){return[e,{attempts:r}]}))}var C="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js",b=C,K="Failed to load the JS script of the agent";function M(e){var o;e.scriptUrlPattern;var i=e.token,u=e.apiKey,R=void 0===u?i:u,a=t(e,["scriptUrlPattern","token","apiKey"]),c=null!==(o=r(e,"scriptUrlPattern"))&&void 0!==o?o:C;return Promise.resolve().then((function(){if(!R||"string"!=typeof R)throw new Error(v);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 g(e,B).catch(k)})).then((function(e){var t=e[0],r=e[1];return t.load(n(n({},a),{ldi:r}))}))}function B(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(K))},r.async=!0,r.src=e,i.appendChild(r)}))}(e)}),(function(){throw new Error(s)})).then(F)}function F(){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(L);return n}function k(e){throw e instanceof Error&&e.message===L?new Error(K):e}var V={load:M,defaultScriptUrlPattern:b,ERROR_SCRIPT_LOAD_FAIL:K,ERROR_API_KEY_EXPIRED:h,ERROR_API_KEY_INVALID:I,ERROR_API_KEY_MISSING:v,ERROR_BAD_REQUEST_FORMAT:N,ERROR_BAD_RESPONSE_FORMAT:E,ERROR_CLIENT_TIMEOUT:R,ERROR_CSP_BLOCK:s,ERROR_FORBIDDEN_ENDPOINT:p,ERROR_FORBIDDEN_HEADER:P,ERROR_FORBIDDEN_ORIGIN:A,ERROR_GENERAL_SERVER_FAILURE:T,ERROR_INSTALLATION_METHOD_RESTRICTED:_,ERROR_INTEGRATION_FAILURE:O,ERROR_NETWORK_ABORT:c,ERROR_NETWORK_CONNECTION:a,ERROR_RATE_LIMIT:w,ERROR_SERVER_TIMEOUT:m,ERROR_SUBSCRIPTION_NOT_ACTIVE:l,ERROR_TOKEN_EXPIRED:D,ERROR_TOKEN_INVALID:S,ERROR_TOKEN_MISSING:y,ERROR_UNSUPPORTED_VERSION:d,ERROR_WRONG_REGION:f,defaultEndpoint:i,defaultTlsEndpoint:u};export{h as ERROR_API_KEY_EXPIRED,I as ERROR_API_KEY_INVALID,v as ERROR_API_KEY_MISSING,N as ERROR_BAD_REQUEST_FORMAT,E as ERROR_BAD_RESPONSE_FORMAT,R as ERROR_CLIENT_TIMEOUT,s as ERROR_CSP_BLOCK,p as ERROR_FORBIDDEN_ENDPOINT,P as ERROR_FORBIDDEN_HEADER,A as ERROR_FORBIDDEN_ORIGIN,T as ERROR_GENERAL_SERVER_FAILURE,_ as ERROR_INSTALLATION_METHOD_RESTRICTED,O as ERROR_INTEGRATION_FAILURE,c as ERROR_NETWORK_ABORT,a as ERROR_NETWORK_CONNECTION,w as ERROR_RATE_LIMIT,K as ERROR_SCRIPT_LOAD_FAIL,m as ERROR_SERVER_TIMEOUT,l as ERROR_SUBSCRIPTION_NOT_ACTIVE,D as ERROR_TOKEN_EXPIRED,S as ERROR_TOKEN_INVALID,y as ERROR_TOKEN_MISSING,d as ERROR_UNSUPPORTED_VERSION,f as ERROR_WRONG_REGION,V as default,i as defaultEndpoint,b as defaultScriptUrlPattern,u as defaultTlsEndpoint,M as load};
/**
* FingerprintJS Pro v3.8.1 - Copyright (c) FingerprintJS, Inc, 2022 (https://fingerprint.com)
* FingerprintJS Pro v3.8.2 - Copyright (c) FingerprintJS, Inc, 2023 (https://fingerprint.com)
*

@@ -8,2 +8,2 @@ * This software contains code from open-source projects:

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}).apply(this,arguments)};function r(e,t){return function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)?e[t]:void 0}function n(e){var t=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),R=0;for(t=0;t<r;t++)for(var o=arguments[t],i=0,E=o.length;i<E;i++,R++)n[R]=o[i];return n}(e);return{current:function(){return t[0]},postpone:function(){var e=t.shift();void 0!==e&&t.push(e)},exclude:function(){t.shift()}}}function R(e){for(var t="",r=0;r<e.length;++r)if(r>0){var n=e[r].toLowerCase();n!==e[r]?t+=" "+n:t+=e[r]}else t+=e[r].toUpperCase();return t}var o={default:"endpoint"},i={default:"tlsEndpoint"},E="Client timeout",u="Network connection error",a="Network request aborted",O="Response cannot be parsed",_="Blocked by CSP",c=R("WrongRegion"),f=R("SubscriptionNotActive"),l=R("UnsupportedVersion"),s=R("InstallationMethodRestricted"),I=R("HostnameRestricted"),d=R("IntegrationFailed"),p="API key required",N="API key not found",T="API key expired",v="Request cannot be parsed",h="Request failed",A="Request failed to process",P="Too many requests, rate limit exceeded",S="Not available for this origin",D="Not available with restricted header",y=p,m=N,w=T,L="3.8.1",U="9319";function g(e,t){var r=[];return function(e,t){var r=5,R=n(e),o=(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 O=function(e,n){return t(e).catch((function(e){if(n+1>=r)throw e;!function(e){if(!(e instanceof Error))return!1;var t=e.message;return t===_||t===U}(e)?R.postpone():R.exclude();var t,i=R.current();if(void 0===i)throw e;return(t=o(),new Promise((function(e){return setTimeout(e,t)}))).then((function(){return O(i,n+1)}))}))};return O(i,0)}(e,(function(e){var n=new Date,R=function(){return r.push({url:e,startedAt:n,finishedAt:new Date})},o=t(e);return o.then(R,R),o})).then((function(e){return[e,{attempts:r}]}))}var C="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js",b=C,K="Failed to load the JS script of the agent";function M(e){var n;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"]),u=null!==(n=r(e,"scriptUrlPattern"))&&void 0!==n?n:C;return Promise.resolve().then((function(){if(!i||"string"!=typeof i)throw new Error(p);return g(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),F).catch(V)})).then((function(e){var r=e[0],n=e[1];return r.load(t(t({},E),{ldi:n}))}))}function F(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,u())};o.addEventListener(i,E);var u=function(){return o.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(),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(_)})).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(U);return r}function V(e){throw e instanceof Error&&e.message===U?new Error(K):e}var G={load:M,defaultScriptUrlPattern:b,ERROR_SCRIPT_LOAD_FAIL:K,ERROR_API_KEY_EXPIRED:T,ERROR_API_KEY_INVALID:N,ERROR_API_KEY_MISSING:p,ERROR_BAD_REQUEST_FORMAT:v,ERROR_BAD_RESPONSE_FORMAT:O,ERROR_CLIENT_TIMEOUT:E,ERROR_CSP_BLOCK:_,ERROR_FORBIDDEN_ENDPOINT:I,ERROR_FORBIDDEN_HEADER:D,ERROR_FORBIDDEN_ORIGIN:S,ERROR_GENERAL_SERVER_FAILURE:h,ERROR_INSTALLATION_METHOD_RESTRICTED:s,ERROR_INTEGRATION_FAILURE:d,ERROR_NETWORK_ABORT:a,ERROR_NETWORK_CONNECTION:u,ERROR_RATE_LIMIT:P,ERROR_SERVER_TIMEOUT:A,ERROR_SUBSCRIPTION_NOT_ACTIVE:f,ERROR_TOKEN_EXPIRED:w,ERROR_TOKEN_INVALID:m,ERROR_TOKEN_MISSING:y,ERROR_UNSUPPORTED_VERSION:l,ERROR_WRONG_REGION:c,defaultEndpoint:o,defaultTlsEndpoint:i};return e.ERROR_API_KEY_EXPIRED=T,e.ERROR_API_KEY_INVALID=N,e.ERROR_API_KEY_MISSING=p,e.ERROR_BAD_REQUEST_FORMAT=v,e.ERROR_BAD_RESPONSE_FORMAT=O,e.ERROR_CLIENT_TIMEOUT=E,e.ERROR_CSP_BLOCK=_,e.ERROR_FORBIDDEN_ENDPOINT=I,e.ERROR_FORBIDDEN_HEADER=D,e.ERROR_FORBIDDEN_ORIGIN=S,e.ERROR_GENERAL_SERVER_FAILURE=h,e.ERROR_INSTALLATION_METHOD_RESTRICTED=s,e.ERROR_INTEGRATION_FAILURE=d,e.ERROR_NETWORK_ABORT=a,e.ERROR_NETWORK_CONNECTION=u,e.ERROR_RATE_LIMIT=P,e.ERROR_SCRIPT_LOAD_FAIL=K,e.ERROR_SERVER_TIMEOUT=A,e.ERROR_SUBSCRIPTION_NOT_ACTIVE=f,e.ERROR_TOKEN_EXPIRED=w,e.ERROR_TOKEN_INVALID=m,e.ERROR_TOKEN_MISSING=y,e.ERROR_UNSUPPORTED_VERSION=l,e.ERROR_WRONG_REGION=c,e.default=G,e.defaultEndpoint=o,e.defaultScriptUrlPattern=b,e.defaultTlsEndpoint=i,e.load=M,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,r=1,n=arguments.length;r<n;r++)for(var R in e=arguments[r])Object.prototype.hasOwnProperty.call(e,R)&&(t[R]=e[R]);return t},e.apply(this,arguments)};function r(t,e){return function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}(t,e)?t[e]:void 0}function n(t){var e=function(t,e,r){if(r||2===arguments.length)for(var n,R=0,o=e.length;R<o;R++)!n&&R in e||(n||(n=Array.prototype.slice.call(e,0,R)),n[R]=e[R]);return t.concat(n||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()}}}function R(t){for(var e="",r=0;r<t.length;++r)if(r>0){var n=t[r].toLowerCase();n!==t[r]?e+=" ".concat(n):e+=t[r]}else e+=t[r].toUpperCase();return e}var o={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",_=R("WrongRegion"),l=R("SubscriptionNotActive"),f=R("UnsupportedVersion"),s=R("InstallationMethodRestricted"),I=R("HostnameRestricted"),d=R("IntegrationFailed"),p="API key required",N="API key not found",T="API key expired",v="Request cannot be parsed",A="Request failed",h="Request failed to process",P="Too many requests, rate limit exceeded",S="Not available for this origin",y="Not available with restricted header",D=p,m=N,w=T,L="3.8.2",U="9319";function C(t,e){var r=[];return function(t,e){var r=5,R=n(t),o=(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,n){return e(t).catch((function(t){if(n+1>=r)throw t;!function(t){if(!(t instanceof Error))return!1;var e=t.message;return e===O||e===U}(t)?R.postpone():R.exclude();var e,i=R.current();if(void 0===i)throw t;return(e=o(),new Promise((function(t){return setTimeout(t,e)}))).then((function(){return c(i,n+1)}))}))};return c(i,0)}(t,(function(t){var n=new Date,R=function(){return r.push({url:t,startedAt:n,finishedAt:new Date})},o=e(t);return o.then(R,R),o})).then((function(t){return[t,{attempts:r}]}))}var b="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js",g=b,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=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var R=0;for(n=Object.getOwnPropertySymbols(t);R<n.length;R++)e.indexOf(n[R])<0&&Object.prototype.propertyIsEnumerable.call(t,n[R])&&(r[n[R]]=t[n[R]])}return r}(t,["scriptUrlPattern","token","apiKey"]),u=null!==(n=r(t,"scriptUrlPattern"))&&void 0!==n?n:b;return Promise.resolve().then((function(){if(!i||"string"!=typeof i)throw new Error(p);var t=function(t,e){return(Array.isArray(t)?t:[t]).map((function(t){return function(t,e){var r=encodeURIComponent;return t.replace(/<[^<>]+>/g,(function(t){return"<version>"===t?"3":"<apiKey>"===t?r(e):"<loaderVersion>"===t?r(L):t}))}(String(t),e)}))}(u,i);return C(t,F).catch(V)})).then((function(t){var r=t[0],n=t[1];return r.load(e(e({},E),{ldi:n}))}))}function F(t){return function(t,e,r,n){var R,o=document,i="securitypolicyviolation",E=function(e){var r=new URL(t,location.href),n=e.blockedURI;n!==r.href&&n!==r.protocol.slice(0,-1)&&n!==r.origin||(R=e,u())};o.addEventListener(i,E);var u=function(){return o.removeEventListener(i,E)};return null==n||n.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(),R)return r(R);throw t}))}))}(t,(function(){return function(t){return new Promise((function(e,r){var n=document.createElement("script"),R=function(){var t;return null===(t=n.parentNode)||void 0===t?void 0:t.removeChild(n)},o=document.head||document.getElementsByTagName("head")[0];n.onload=function(){R(),e()},n.onerror=function(){R(),r(new Error(K))},n.async=!0,n.src=t,o.appendChild(n)}))}(t)}),(function(){throw new Error(O)})).then(B)}function B(){var t=window,e="__fpjs_p_l_b",r=t[e];if(function(t,e){var r,n=null===(r=Object.getOwnPropertyDescriptor)||void 0===r?void 0:r.call(Object,t,e);(null==n?void 0:n.configurable)?delete t[e]:n&&!n.writable||(t[e]=void 0)}(t,e),"function"!=typeof(null==r?void 0:r.load))throw new Error(U);return r}function V(t){throw t instanceof Error&&t.message===U?new Error(K):t}var G={load:M,defaultScriptUrlPattern:g,ERROR_SCRIPT_LOAD_FAIL:K,ERROR_API_KEY_EXPIRED:T,ERROR_API_KEY_INVALID:N,ERROR_API_KEY_MISSING:p,ERROR_BAD_REQUEST_FORMAT:v,ERROR_BAD_RESPONSE_FORMAT:c,ERROR_CLIENT_TIMEOUT:E,ERROR_CSP_BLOCK:O,ERROR_FORBIDDEN_ENDPOINT:I,ERROR_FORBIDDEN_HEADER:y,ERROR_FORBIDDEN_ORIGIN:S,ERROR_GENERAL_SERVER_FAILURE:A,ERROR_INSTALLATION_METHOD_RESTRICTED:s,ERROR_INTEGRATION_FAILURE:d,ERROR_NETWORK_ABORT:a,ERROR_NETWORK_CONNECTION:u,ERROR_RATE_LIMIT:P,ERROR_SERVER_TIMEOUT:h,ERROR_SUBSCRIPTION_NOT_ACTIVE:l,ERROR_TOKEN_EXPIRED:w,ERROR_TOKEN_INVALID:m,ERROR_TOKEN_MISSING:D,ERROR_UNSUPPORTED_VERSION:f,ERROR_WRONG_REGION:_,defaultEndpoint:o,defaultTlsEndpoint:i};return t.ERROR_API_KEY_EXPIRED=T,t.ERROR_API_KEY_INVALID=N,t.ERROR_API_KEY_MISSING=p,t.ERROR_BAD_REQUEST_FORMAT=v,t.ERROR_BAD_RESPONSE_FORMAT=c,t.ERROR_CLIENT_TIMEOUT=E,t.ERROR_CSP_BLOCK=O,t.ERROR_FORBIDDEN_ENDPOINT=I,t.ERROR_FORBIDDEN_HEADER=y,t.ERROR_FORBIDDEN_ORIGIN=S,t.ERROR_GENERAL_SERVER_FAILURE=A,t.ERROR_INSTALLATION_METHOD_RESTRICTED=s,t.ERROR_INTEGRATION_FAILURE=d,t.ERROR_NETWORK_ABORT=a,t.ERROR_NETWORK_CONNECTION=u,t.ERROR_RATE_LIMIT=P,t.ERROR_SCRIPT_LOAD_FAIL=K,t.ERROR_SERVER_TIMEOUT=h,t.ERROR_SUBSCRIPTION_NOT_ACTIVE=l,t.ERROR_TOKEN_EXPIRED=w,t.ERROR_TOKEN_INVALID=m,t.ERROR_TOKEN_MISSING=D,t.ERROR_UNSUPPORTED_VERSION=f,t.ERROR_WRONG_REGION=_,t.default=G,t.defaultEndpoint=o,t.defaultScriptUrlPattern=g,t.defaultTlsEndpoint=i,t.load=M,Object.defineProperty(t,"__esModule",{value:!0}),t}({});
/**
* FingerprintJS Pro v3.8.1 - Copyright (c) FingerprintJS, Inc, 2022 (https://fingerprint.com)
* FingerprintJS Pro v3.8.2 - Copyright (c) FingerprintJS, Inc, 2023 (https://fingerprint.com)
*

@@ -8,2 +8,2 @@ * This software contains code from open-source projects:

!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}).apply(this,arguments)};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(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var R=arguments[t],i=0,E=R.length;i<E;i++,o++)r[o]=R[i];return r}(e);return{current:function(){return t[0]},postpone:function(){var e=t.shift();void 0!==e&&t.push(e)},exclude:function(){t.shift()}}}function o(e){for(var t="",n=0;n<e.length;++n)if(n>0){var r=e[n].toLowerCase();r!==e[n]?t+=" "+r:t+=e[n]}else t+=e[n].toUpperCase();return t}var R={default:"endpoint"},i={default:"tlsEndpoint"},E="Client timeout",u="Network connection error",a="Network request aborted",O="Response cannot be parsed",_="Blocked by CSP",c=o("WrongRegion"),f=o("SubscriptionNotActive"),l=o("UnsupportedVersion"),s=o("InstallationMethodRestricted"),d=o("HostnameRestricted"),I=o("IntegrationFailed"),p="API key required",T="API key not found",N="API key expired",v="Request cannot be parsed",h="Request failed",A="Request failed to process",P="Too many requests, rate limit exceeded",S="Not available for this origin",y="Not available with restricted header",D=p,m=T,w=N,L="3.8.1",b="9319";function g(e,t){var n=[];return function(e,t){var n=5,o=r(e),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;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>=n)throw e;!function(e){if(!(e instanceof Error))return!1;var t=e.message;return t===_||t===b}(e)?o.postpone():o.exclude();var t,i=o.current();if(void 0===i)throw e;return(t=R(),new Promise((function(e){return setTimeout(e,t)}))).then((function(){return O(i,r+1)}))}))};return O(i,0)}(e,(function(e){var r=new Date,o=function(){return n.push({url:e,startedAt:r,finishedAt:new Date})},R=t(e);return R.then(o,o),R})).then((function(e){return[e,{attempts:n}]}))}var U="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js",C=U,K="Failed to load the JS script of the agent";function M(e){var r;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!==(r=n(e,"scriptUrlPattern"))&&void 0!==r?r:U;return Promise.resolve().then((function(){if(!i||"string"!=typeof i)throw new Error(p);return g(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(L):e}))}(String(e),t)}))}(u,i),F).catch(V)})).then((function(e){var n=e[0],r=e[1];return n.load(t(t({},E),{ldi:r}))}))}function F(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(K))},r.async=!0,r.src=e,R.appendChild(r)}))}(e)}),(function(){throw new Error(_)})).then(B)}function B(){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 V(e){throw e instanceof Error&&e.message===b?new Error(K):e}var j={load:M,defaultScriptUrlPattern:C,ERROR_SCRIPT_LOAD_FAIL:K,ERROR_API_KEY_EXPIRED:N,ERROR_API_KEY_INVALID:T,ERROR_API_KEY_MISSING:p,ERROR_BAD_REQUEST_FORMAT:v,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:s,ERROR_INTEGRATION_FAILURE:I,ERROR_NETWORK_ABORT:a,ERROR_NETWORK_CONNECTION:u,ERROR_RATE_LIMIT:P,ERROR_SERVER_TIMEOUT:A,ERROR_SUBSCRIPTION_NOT_ACTIVE:f,ERROR_TOKEN_EXPIRED:w,ERROR_TOKEN_INVALID:m,ERROR_TOKEN_MISSING:D,ERROR_UNSUPPORTED_VERSION:l,ERROR_WRONG_REGION:c,defaultEndpoint:R,defaultTlsEndpoint:i};e.ERROR_API_KEY_EXPIRED=N,e.ERROR_API_KEY_INVALID=T,e.ERROR_API_KEY_MISSING=p,e.ERROR_BAD_REQUEST_FORMAT=v,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=s,e.ERROR_INTEGRATION_FAILURE=I,e.ERROR_NETWORK_ABORT=a,e.ERROR_NETWORK_CONNECTION=u,e.ERROR_RATE_LIMIT=P,e.ERROR_SCRIPT_LOAD_FAIL=K,e.ERROR_SERVER_TIMEOUT=A,e.ERROR_SUBSCRIPTION_NOT_ACTIVE=f,e.ERROR_TOKEN_EXPIRED=w,e.ERROR_TOKEN_INVALID=m,e.ERROR_TOKEN_MISSING=D,e.ERROR_UNSUPPORTED_VERSION=l,e.ERROR_WRONG_REGION=c,e.default=j,e.defaultEndpoint=R,e.defaultScriptUrlPattern=C,e.defaultTlsEndpoint=i,e.load=M,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,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,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()}}}function o(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}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",_=o("WrongRegion"),f=o("SubscriptionNotActive"),l=o("UnsupportedVersion"),s=o("InstallationMethodRestricted"),d=o("HostnameRestricted"),p=o("IntegrationFailed"),I="API key required",T="API key not found",N="API key expired",v="Request cannot be parsed",h="Request failed",A="Request failed to process",P="Too many requests, rate limit exceeded",y="Not available for this origin",S="Not available with restricted header",D=I,m=T,w=N,L="3.8.2",b="9319";function U(e,t){var n=[];return function(e,t){var n=5,o=r(e),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;if(void 0===i)return Promise.reject(new TypeError("The list of script URL patterns is empty"));var c=function(e,r){return t(e).catch((function(e){if(r+1>=n)throw e;!function(e){if(!(e instanceof Error))return!1;var t=e.message;return t===O||t===b}(e)?o.postpone():o.exclude();var t,i=o.current();if(void 0===i)throw e;return(t=R(),new Promise((function(e){return setTimeout(e,t)}))).then((function(){return c(i,r+1)}))}))};return c(i,0)}(e,(function(e){var r=new Date,o=function(){return n.push({url:e,startedAt:r,finishedAt:new Date})},R=t(e);return R.then(o,o),R})).then((function(e){return[e,{attempts:n}]}))}var g="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js",C=g,K="Failed to load the JS script of the agent";function M(e){var r;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!==(r=n(e,"scriptUrlPattern"))&&void 0!==r?r:g;return Promise.resolve().then((function(){if(!i||"string"!=typeof i)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(L):e}))}(String(e),t)}))}(u,i);return U(e,F).catch(V)})).then((function(e){var n=e[0],r=e[1];return n.load(t(t({},E),{ldi:r}))}))}function F(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(K))},r.async=!0,r.src=e,R.appendChild(r)}))}(e)}),(function(){throw new Error(O)})).then(B)}function B(){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 V(e){throw e instanceof Error&&e.message===b?new Error(K):e}var j={load:M,defaultScriptUrlPattern:C,ERROR_SCRIPT_LOAD_FAIL:K,ERROR_API_KEY_EXPIRED:N,ERROR_API_KEY_INVALID:T,ERROR_API_KEY_MISSING:I,ERROR_BAD_REQUEST_FORMAT:v,ERROR_BAD_RESPONSE_FORMAT:c,ERROR_CLIENT_TIMEOUT:E,ERROR_CSP_BLOCK:O,ERROR_FORBIDDEN_ENDPOINT:d,ERROR_FORBIDDEN_HEADER:S,ERROR_FORBIDDEN_ORIGIN:y,ERROR_GENERAL_SERVER_FAILURE:h,ERROR_INSTALLATION_METHOD_RESTRICTED:s,ERROR_INTEGRATION_FAILURE:p,ERROR_NETWORK_ABORT:a,ERROR_NETWORK_CONNECTION:u,ERROR_RATE_LIMIT:P,ERROR_SERVER_TIMEOUT:A,ERROR_SUBSCRIPTION_NOT_ACTIVE:f,ERROR_TOKEN_EXPIRED:w,ERROR_TOKEN_INVALID:m,ERROR_TOKEN_MISSING:D,ERROR_UNSUPPORTED_VERSION:l,ERROR_WRONG_REGION:_,defaultEndpoint:R,defaultTlsEndpoint:i};e.ERROR_API_KEY_EXPIRED=N,e.ERROR_API_KEY_INVALID=T,e.ERROR_API_KEY_MISSING=I,e.ERROR_BAD_REQUEST_FORMAT=v,e.ERROR_BAD_RESPONSE_FORMAT=c,e.ERROR_CLIENT_TIMEOUT=E,e.ERROR_CSP_BLOCK=O,e.ERROR_FORBIDDEN_ENDPOINT=d,e.ERROR_FORBIDDEN_HEADER=S,e.ERROR_FORBIDDEN_ORIGIN=y,e.ERROR_GENERAL_SERVER_FAILURE=h,e.ERROR_INSTALLATION_METHOD_RESTRICTED=s,e.ERROR_INTEGRATION_FAILURE=p,e.ERROR_NETWORK_ABORT=a,e.ERROR_NETWORK_CONNECTION=u,e.ERROR_RATE_LIMIT=P,e.ERROR_SCRIPT_LOAD_FAIL=K,e.ERROR_SERVER_TIMEOUT=A,e.ERROR_SUBSCRIPTION_NOT_ACTIVE=f,e.ERROR_TOKEN_EXPIRED=w,e.ERROR_TOKEN_INVALID=m,e.ERROR_TOKEN_MISSING=D,e.ERROR_UNSUPPORTED_VERSION=l,e.ERROR_WRONG_REGION=_,e.default=j,e.defaultEndpoint=R,e.defaultScriptUrlPattern=C,e.defaultTlsEndpoint=i,e.load=M,Object.defineProperty(e,"__esModule",{value:!0})}));
{
"name": "@fingerprintjs/fingerprintjs-pro",
"description": "FingerprintJS Pro client agent",
"version": "3.8.1",
"version": "3.8.2",
"keywords": [

@@ -14,2 +14,3 @@ "browser",

"homepage": "https://fingerprint.com",
"license" : "SEE LICENSE IN LICENSE",
"bugs": {

@@ -26,10 +27,11 @@ "email": "support@fingerprint.com"

"dependencies": {
"tslib": "^2.0.1"
"tslib": "^2.4.1"
},
"scripts": {
"prepack": "cp ../../LICENSE ./LICENSE",
"build": "rimraf dist && rimraf tests/dist && yarn build:index && yarn build:mock-cdn && yarn build:ts",
"build:index": "ts-node --compiler-options '{\"module\": \"CommonJS\"}' ./resources/build_index.ts",
"build:mock-cdn": "ts-node --compiler-options '{\"module\": \"CommonJS\"}' ./resources/build_mock_cdn.ts",
"build:index": "ts-node ./resources/build_index.ts",
"build:mock-cdn": "ts-node ./resources/build_mock_cdn.ts",
"build:ts": "rollup -c rollup.config.ts --configPlugin '@rollup/plugin-typescript={tsconfig:`tsconfig.rollupConfig.json`,include:[/\\.ts$/i]}'"
}
}

@@ -57,3 +57,3 @@ <p align="center">

// Initialize the agent at application startup.
const fpPromise = import('https://fpcdn.io/v3/your-pro-key')
const fpPromise = import('https://fpjscdn.net/v3/your-pro-key')
.then(FingerprintJS => FingerprintJS.load())

@@ -60,0 +60,0 @@

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