Socket
Socket
Sign inDemoInstall

@fingerprintjs/fingerprintjs-pro

Package Overview
Dependencies
1
Maintainers
2
Versions
58
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.8.2 to 3.8.3

4

dist/fp.cjs.min.js
/**
* FingerprintJS Pro v3.8.2 - Copyright (c) FingerprintJS, Inc, 2023 (https://fingerprint.com)
* FingerprintJS Pro v3.8.3 - 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+=" ".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;
"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",a="Blocked by CSP",u="The endpoint parameter is not a valid URL",s=r("WrongRegion"),O=r("SubscriptionNotActive"),c=r("UnsupportedVersion"),p=r("InstallationMethodRestricted"),I=r("HostnameRestricted"),d=r("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.3",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,u=0,function(){return Math.random()*Math.min(_,E*Math.pow(2,u++))}),i=R.current();var E,_,u;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===a||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 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(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: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(a)})).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:a,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:u,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=a,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=u,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;
/**
* FingerprintJS Pro v3.8.2 - Copyright (c) FingerprintJS, Inc, 2023 (https://fingerprint.com)
* FingerprintJS Pro v3.8.3 - Copyright (c) FingerprintJS, Inc, 2023 (https://fingerprint.com)
*

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

declare const ERROR_CSP_BLOCK = "Blocked by CSP";
declare const ERROR_INVALID_ENDPOINT = "The endpoint parameter is not a valid URL";

@@ -488,2 +489,3 @@ declare const ERROR_API_KEY_MISSING: string;

ERROR_INTEGRATION_FAILURE: string;
ERROR_INVALID_ENDPOINT: string;
ERROR_NETWORK_ABORT: string;

@@ -507,2 +509,2 @@ ERROR_NETWORK_CONNECTION: string;

export { PublicAgent as Agent, Confidence, ERROR_API_KEY_EXPIRED, ERROR_API_KEY_INVALID, ERROR_API_KEY_MISSING, ERROR_BAD_REQUEST_FORMAT, ERROR_BAD_RESPONSE_FORMAT, ERROR_CLIENT_TIMEOUT, ERROR_CSP_BLOCK, ERROR_FORBIDDEN_ENDPOINT, ERROR_FORBIDDEN_HEADER, ERROR_FORBIDDEN_ORIGIN, ERROR_GENERAL_SERVER_FAILURE, ERROR_INSTALLATION_METHOD_RESTRICTED, ERROR_INTEGRATION_FAILURE, ERROR_NETWORK_ABORT, ERROR_NETWORK_CONNECTION, ERROR_RATE_LIMIT, ERROR_SCRIPT_LOAD_FAIL, ERROR_SERVER_TIMEOUT, ERROR_SUBSCRIPTION_NOT_ACTIVE, ERROR_TOKEN_EXPIRED, ERROR_TOKEN_INVALID, ERROR_TOKEN_MISSING, ERROR_UNSUPPORTED_VERSION, ERROR_WRONG_REGION, Endpoint, ExtendedGetResult, FullIpExtendedGetResult, FullIpLocation, PublicGetOptions as GetOptions, GetResult, IPResolution, IpLocation, LoadOptions, Product, Region, ScriptUrlPattern, TlsEndpoint, ZeroTrust, _default as default, defaultEndpoint, defaultScriptUrlPattern, defaultTlsEndpoint, load };
export { PublicAgent as Agent, Confidence, ERROR_API_KEY_EXPIRED, ERROR_API_KEY_INVALID, ERROR_API_KEY_MISSING, ERROR_BAD_REQUEST_FORMAT, ERROR_BAD_RESPONSE_FORMAT, ERROR_CLIENT_TIMEOUT, ERROR_CSP_BLOCK, ERROR_FORBIDDEN_ENDPOINT, ERROR_FORBIDDEN_HEADER, ERROR_FORBIDDEN_ORIGIN, ERROR_GENERAL_SERVER_FAILURE, ERROR_INSTALLATION_METHOD_RESTRICTED, ERROR_INTEGRATION_FAILURE, ERROR_INVALID_ENDPOINT, ERROR_NETWORK_ABORT, ERROR_NETWORK_CONNECTION, ERROR_RATE_LIMIT, ERROR_SCRIPT_LOAD_FAIL, ERROR_SERVER_TIMEOUT, ERROR_SUBSCRIPTION_NOT_ACTIVE, ERROR_TOKEN_EXPIRED, ERROR_TOKEN_INVALID, ERROR_TOKEN_MISSING, ERROR_UNSUPPORTED_VERSION, ERROR_WRONG_REGION, Endpoint, ExtendedGetResult, FullIpExtendedGetResult, FullIpLocation, PublicGetOptions as GetOptions, GetResult, IPResolution, IpLocation, LoadOptions, Product, Region, ScriptUrlPattern, TlsEndpoint, ZeroTrust, _default as default, defaultEndpoint, defaultScriptUrlPattern, defaultTlsEndpoint, load };
/**
* FingerprintJS Pro v3.8.2 - Copyright (c) FingerprintJS, Inc, 2023 (https://fingerprint.com)
* FingerprintJS Pro v3.8.3 - Copyright (c) FingerprintJS, Inc, 2023 (https://fingerprint.com)
*

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

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};
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"},R={default:"tlsEndpoint"},u="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__*/o("WrongRegion"),l=/*#__PURE__*/o("SubscriptionNotActive"),_=/*#__PURE__*/o("UnsupportedVersion"),p=/*#__PURE__*/o("InstallationMethodRestricted"),O=/*#__PURE__*/o("HostnameRestricted"),v=/*#__PURE__*/o("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.3",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=(u=100,a=3e3,c=0,function(){return Math.random()*Math.min(a,u*Math.pow(2,c++))}),R=o.current();var u,a,c;var E,f;if(void 0===R)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,R=o.current();if(void 0===R)throw e;return(n=i(),new Promise((function(e){return setTimeout(e,n)}))).then((function(){return d(R,t+1)}))}))};return d(R,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 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 o;e.scriptUrlPattern;var i=e.token,R=e.apiKey,u=void 0===R?i:R,a=t(e,["scriptUrlPattern","token","apiKey"]),c=null!==(o=r(e,"scriptUrlPattern"))&&void 0!==o?o:b;return Promise.resolve().then((function(){if(!u||"string"!=typeof u)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,u);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,R="securitypolicyviolation",u=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(R,u);var a=function(){return i.removeEventListener(R,u)};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:u,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:R};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,u 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,R as defaultTlsEndpoint,B as load};
/**
* FingerprintJS Pro v3.8.2 - Copyright (c) FingerprintJS, Inc, 2023 (https://fingerprint.com)
* FingerprintJS Pro v3.8.3 - Copyright (c) FingerprintJS, Inc, 2023 (https://fingerprint.com)
*

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

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}({});
var FingerprintJS=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 R in t=arguments[n])Object.prototype.hasOwnProperty.call(t,R)&&(e[R]=t[R]);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,R=0,o=t.length;R<o;R++)!r&&R in t||(r||(r=Array.prototype.slice.call(t,0,R)),r[R]=t[R]);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 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}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.3",C="9319";function b(e,t){var n=[];return function(e,t){var n=5,R=r(e),o=(E=100,a=3e3,u=0,function(){return Math.random()*Math.min(a,E*Math.pow(2,u++))}),i=R.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>=n)throw e;!function(e){if(!(e instanceof Error))return!1;var t=e.message;return t===_||t===C}(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,r+1)}))}))};return O(i,0)}(e,(function(e){var r=new Date,R=function(){return n.push({url:e,startedAt:r,finishedAt:new Date})},o=t(e);return o.then(R,R),o})).then((function(e){return[e,{attempts:n}]}))}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 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 R=0;for(r=Object.getOwnPropertySymbols(e);R<r.length;R++)t.indexOf(r[R])<0&&Object.prototype.propertyIsEnumerable.call(e,r[R])&&(n[r[R]]=e[r[R]])}return n}(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 n=encodeURIComponent;return e.replace(/<[^<>]+>/g,(function(e){return"<version>"===e?"3":"<apiKey>"===e?n(t):"<loaderVersion>"===e?n(U):e}))}(String(e),t)}))}(a,i);return b(e,B).catch(G)})).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 R,o=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||(R=t,a())};o.addEventListener(i,E);var a=function(){return o.removeEventListener(i,E)};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(),R)return n(R);throw e}))}))}(e,(function(){return function(e){return new Promise((function(t,n){var r=document.createElement("script"),R=function(){var e;return null===(e=r.parentNode)||void 0===e?void 0:e.removeChild(r)},o=document.head||document.getElementsByTagName("head")[0];r.onload=function(){R(),t()},r.onerror=function(){R(),n(new Error(M))},r.async=!0,r.src=e,o.appendChild(r)}))}(e)}),(function(){throw new Error(_)})).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(C);return n}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}({});
/**
* FingerprintJS Pro v3.8.2 - Copyright (c) FingerprintJS, Inc, 2023 (https://fingerprint.com)
* FingerprintJS Pro v3.8.3 - 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},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})}));
!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",a="Network connection error",u="Network request aborted",O="Response cannot be parsed",c="Blocked by CSP",_="The endpoint parameter is not a valid URL",l=o("WrongRegion"),f=o("SubscriptionNotActive"),s=o("UnsupportedVersion"),d=o("InstallationMethodRestricted"),I=o("HostnameRestricted"),p=o("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.3",b="9319";function g(e,t){var n=[];return function(e,t){var n=5,o=r(e),R=(E=100,a=3e3,u=0,function(){return Math.random()*Math.min(a,E*Math.pow(2,u++))}),i=o.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>=n)throw e;!function(e){if(!(e instanceof Error))return!1;var t=e.message;return t===c||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 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 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"]),a=null!==(r=n(e,"scriptUrlPattern"))&&void 0!==r?r: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)}))}(a,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,a())};R.addEventListener(i,E);var a=function(){return R.removeEventListener(i,E)};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)},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(c)})).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:O,ERROR_CLIENT_TIMEOUT:E,ERROR_CSP_BLOCK:c,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:u,ERROR_NETWORK_CONNECTION:a,ERROR_RATE_LIMIT:y,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};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=O,e.ERROR_CLIENT_TIMEOUT=E,e.ERROR_CSP_BLOCK=c,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=u,e.ERROR_NETWORK_CONNECTION=a,e.ERROR_RATE_LIMIT=y,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=G,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.2",
"version": "3.8.3",
"keywords": [

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

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

@@ -17,0 +17,0 @@ "email": "support@fingerprint.com"

@@ -5,5 +5,5 @@ <p align="center">

<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/fingerprintjs/library-template-typescript/4565c620a936fa4a503facc6f206d6626b68d5fc/resources/logo_light.svg" />
<source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/fingerprintjs/library-template-typescript/4565c620a936fa4a503facc6f206d6626b68d5fc/resources/logo_dark.svg" />
<img src="resources/logo_dark.svg" alt="Fingerprint logo" width="312px" />
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/fingerprintjs/library-template-typescript/1e1c73706046b8e9255145433ecfcfc48d4e9765/resources/logo_light.svg" />
<source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/fingerprintjs/library-template-typescript/1e1c73706046b8e9255145433ecfcfc48d4e9765/resources/logo_dark.svg" />
<img src="https://raw.githubusercontent.com/fingerprintjs/library-template-typescript/1e1c73706046b8e9255145433ecfcfc48d4e9765/resources/logo_dark.svg" alt="Fingerprint logo" width="312px" />
</picture>

@@ -10,0 +10,0 @@ </a>

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc