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.7.0 to 3.7.1

4

dist/fp.cjs.min.js
/**
* FingerprintJS Pro v3.7.0 - Copyright (c) FingerprintJS, Inc, 2022 (https://fingerprint.com)
* FingerprintJS Pro v3.7.1 - Copyright (c) FingerprintJS, Inc, 2022 (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 R(e){for(var R="",t=0;t<e.length;++t)if(t>0){var r=e[t].toLowerCase();r!==e[t]?R+=" "+r:R+=e[t]}else R+=e[t].toUpperCase();return R}var t=R("WrongRegion"),r=R("SubscriptionNotActive"),o=R("UnsupportedVersion"),n=R("InstallationMethodRestricted"),E=R("HostnameRestricted");function _(e,R,t){return void 0===t&&(t=0),R(t).catch((function(r){if(t>=e.maxRetries)throw r;var o,n,E,i,a=(o=e.baseDelay,n=e.maxDelay,E=e.baseDelay*Math.pow(2,t),Math.max(o,Math.min(n,E)));return(i=a,new Promise((function(e){return setTimeout(e,i)}))).then((function(){return _(e,R,t+1)}))}))}var i="Failed to load the JS script of the agent",a="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js";function s(R){var t,r,o=R.scriptUrlPattern,n=R.token,E=R.apiKey,s=void 0===E?n:E,O=e.__rest(R,["scriptUrlPattern","token","apiKey"]),I=(t=R,r="scriptUrlPattern",Object.prototype.hasOwnProperty.call(t,r)?o:void 0),d=[];return Promise.resolve().then((function(){if(!s||"string"!=typeof s)throw new Error("API key required");return _({maxRetries:5,baseDelay:100,maxDelay:3e3},(function(){var e,R=new Date,t=function(){return d.push({startedAt:R,finishedAt:new Date})},r=(e=function(e,R){void 0===R&&(R=a);var t=encodeURIComponent;return R.replace(/<[^<>]+>/g,(function(R){return"<version>"===R?"3":"<apiKey>"===R?t(e):"<loaderVersion>"===R?t("3.7.0"):R}))}(s,I),new Promise((function(R,t){var r=document.createElement("script"),o=function(){var e;return null===(e=r.parentNode)||void 0===e?void 0:e.removeChild(r)},n=document.head||document.getElementsByTagName("head")[0];r.onload=function(){o(),R()},r.onerror=function(){o(),t(new Error(i))},r.async=!0,r.src=e,n.appendChild(r)})));return r.then(t,t),r}))})).then((function(){var R=window,t="__fpjs_p_l_b",r=R[t];if(function(e,R){var t,r=null===(t=Object.getOwnPropertyDescriptor)||void 0===t?void 0:t.call(Object,e,R);(null==r?void 0:r.configurable)?delete e[R]:r&&!r.writable||(e[R]=void 0)}(R,t),"function"!=typeof(null==r?void 0:r.load))throw new Error(i);return r.load(e.__assign(e.__assign({},O),{ldi:{attempts:d}}))}))}var O={load:s,ERROR_SCRIPT_LOAD_FAIL:i,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_FORBIDDEN_ENDPOINT:E,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:n,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:r,ERROR_TOKEN_EXPIRED:"API key expired",ERROR_TOKEN_INVALID:"API key not found",ERROR_TOKEN_MISSING:"API key required",ERROR_UNSUPPORTED_VERSION:o,ERROR_WRONG_REGION:t};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_FORBIDDEN_ENDPOINT=E,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=n,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=i,exports.ERROR_SERVER_TIMEOUT="Request failed to process",exports.ERROR_SUBSCRIPTION_NOT_ACTIVE=r,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=o,exports.ERROR_WRONG_REGION=t,exports.default=O,exports.load=s;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib");function t(e){for(var t="",r=0;r<e.length;++r)if(r>0){var R=e[r].toLowerCase();R!==e[r]?t+=" "+R:t+=e[r]}else t+=e[r].toUpperCase();return t}var r=t("WrongRegion"),R=t("SubscriptionNotActive"),o=t("UnsupportedVersion"),n=t("InstallationMethodRestricted"),i=t("HostnameRestricted");function E(e,t,r){return void 0===r&&(r=0),t(r).catch((function(R){if(r>=e.maxRetries||!e.shouldRetry(R))throw R;var o,n,i,_,s=(o=e.baseDelay,n=e.maxDelay,i=e.baseDelay*Math.pow(2,r),Math.max(o,Math.min(n,i)));return(_=s,new Promise((function(e){return setTimeout(e,_)}))).then((function(){return E(e,t,r+1)}))}))}var _="Failed to load the JS script of the agent",s="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js";function a(t){var r,R,o=t.scriptUrlPattern,n=t.token,i=t.apiKey,a=void 0===i?n:i,O=e.__rest(t,["scriptUrlPattern","token","apiKey"]),u=(r=t,R="scriptUrlPattern",Object.prototype.hasOwnProperty.call(r,R)?o:void 0),I=[];return Promise.resolve().then((function(){if(!a||"string"!=typeof a)throw new Error("API key required");return E({maxRetries:5,baseDelay:100,maxDelay:3e3,shouldRetry:function(e){return!(e instanceof Error&&"Blocked by CSP"===e.message)}},(function(){var e,t=new Date,r=function(){return I.push({startedAt:t,finishedAt:new Date})},R=function(e,t,r,R){var o,n=document,i="securitypolicyviolation",E=function(t){var r=new URL(e,location.href),R=t.blockedURI;R!==r.href&&R!==r.protocol.slice(0,-1)&&R!==r.origin||(o=t,_())};n.addEventListener(i,E);var _=function(){return n.removeEventListener(i,E)};return null==R||R.then(_,_),Promise.resolve().then(t).then((function(e){return _(),e}),(function(e){return new Promise((function(e){return setTimeout(e)})).then((function(){if(_(),o)return r(o);throw e}))}))}(e=function(e,t){void 0===t&&(t=s);var r=encodeURIComponent;return t.replace(/<[^<>]+>/g,(function(t){return"<version>"===t?"3":"<apiKey>"===t?r(e):"<loaderVersion>"===t?r("3.7.1"):t}))}(a,u),(function(){return function(e){return new Promise((function(t,r){var R=document.createElement("script"),o=function(){var e;return null===(e=R.parentNode)||void 0===e?void 0:e.removeChild(R)},n=document.head||document.getElementsByTagName("head")[0];R.onload=function(){o(),t()},R.onerror=function(){o(),r(new Error(_))},R.async=!0,R.src=e,n.appendChild(R)}))}(e)}),(function(){throw new Error("Blocked by CSP")}));return R.then(r,r),R}))})).then((function(){var t=window,r="__fpjs_p_l_b",R=t[r];if(function(e,t){var r,R=null===(r=Object.getOwnPropertyDescriptor)||void 0===r?void 0:r.call(Object,e,t);(null==R?void 0:R.configurable)?delete e[t]:R&&!R.writable||(e[t]=void 0)}(t,r),"function"!=typeof(null==R?void 0:R.load))throw new Error(_);return R.load(e.__assign(e.__assign({},O),{ldi:{attempts:I}}))}))}var O={load:a,ERROR_SCRIPT_LOAD_FAIL:_,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:i,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:n,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:R,ERROR_TOKEN_EXPIRED:"API key expired",ERROR_TOKEN_INVALID:"API key not found",ERROR_TOKEN_MISSING:"API key required",ERROR_UNSUPPORTED_VERSION:o,ERROR_WRONG_REGION:r};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=i,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=n,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=_,exports.ERROR_SERVER_TIMEOUT="Request failed to process",exports.ERROR_SUBSCRIPTION_NOT_ACTIVE=R,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=o,exports.ERROR_WRONG_REGION=r,exports.default=O,exports.load=a;
/**
* FingerprintJS Pro v3.7.0 - Copyright (c) FingerprintJS, Inc, 2022 (https://fingerprint.com)
* FingerprintJS Pro v3.7.1 - Copyright (c) FingerprintJS, Inc, 2022 (https://fingerprint.com)
*

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

declare const ERROR_BAD_RESPONSE_FORMAT = "Response cannot be parsed";
declare const ERROR_CSP_BLOCK = "Blocked by CSP";

@@ -434,2 +435,3 @@ declare const ERROR_API_KEY_MISSING: string;

ERROR_CLIENT_TIMEOUT: string;
ERROR_CSP_BLOCK: string;
ERROR_FORBIDDEN_ENDPOINT: string;

@@ -452,2 +454,2 @@ ERROR_FORBIDDEN_HEADER: 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_FORBIDDEN_ENDPOINT, ERROR_FORBIDDEN_HEADER, ERROR_FORBIDDEN_ORIGIN, ERROR_GENERAL_SERVER_FAILURE, ERROR_INSTALLATION_METHOD_RESTRICTED, 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, ExtendedGetResult, FullIpExtendedGetResult, FullIpLocation, PublicGetOptions as GetOptions, GetResult, IPResolution, IpLocation, LoadOptions, Product, Region, ZeroTrust, _default as default, 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_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, ExtendedGetResult, FullIpExtendedGetResult, FullIpLocation, PublicGetOptions as GetOptions, GetResult, IPResolution, IpLocation, LoadOptions, Product, Region, ZeroTrust, _default as default, load };
/**
* FingerprintJS Pro v3.7.0 - Copyright (c) FingerprintJS, Inc, 2022 (https://fingerprint.com)
* FingerprintJS Pro v3.7.1 - Copyright (c) FingerprintJS, Inc, 2022 (https://fingerprint.com)
*

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

import{__rest as e,__assign as t}from"tslib";function r(e){for(var t="",r=0;r<e.length;++r)if(r>0){var o=e[r].toLowerCase();o!==e[r]?t+=" "+o:t+=e[r]}else t+=e[r].toUpperCase();return t}var o="Client timeout",n="Network connection error",i="Network request aborted",R="Response cannot be parsed",a=/*#__PURE__*/r("WrongRegion"),d=/*#__PURE__*/r("SubscriptionNotActive"),s=/*#__PURE__*/r("UnsupportedVersion"),E=/*#__PURE__*/r("InstallationMethodRestricted"),u=/*#__PURE__*/r("HostnameRestricted"),l="API key required",c="API key not found",_="API key expired",O="Request cannot be parsed",I="Request failed",p="Request failed to process",f="Too many requests, rate limit exceeded",N="Not available for this origin",v="Not available with restricted header",A="API key required",P="API key not found",T="API key expired";function y(e,t,r){return void 0===r&&(r=0),t(r).catch((function(o){if(r>=e.maxRetries)throw o;var n,i,R,a,d=(n=e.baseDelay,i=e.maxDelay,R=e.baseDelay*Math.pow(2,r),Math.max(n,Math.min(i,R)));return(a=d,new Promise((function(e){return setTimeout(e,a)}))).then((function(){return y(e,t,r+1)}))}))}var h="Failed to load the JS script of the agent",m="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js";function D(r){var o,n,i=r.scriptUrlPattern,R=r.token,a=r.apiKey,d=void 0===a?R:a,s=e(r,["scriptUrlPattern","token","apiKey"]),E=(o=r,n="scriptUrlPattern",Object.prototype.hasOwnProperty.call(o,n)?i:void 0),u=[];return Promise.resolve().then((function(){if(!d||"string"!=typeof d)throw new Error("API key required");return y({maxRetries:5,baseDelay:100,maxDelay:3e3},(function(){var e,t=new Date,r=function(){return u.push({startedAt:t,finishedAt:new Date})},o=(e=function(e,t){void 0===t&&(t=m);var r=encodeURIComponent;return t.replace(/<[^<>]+>/g,(function(t){return"<version>"===t?"3":"<apiKey>"===t?r(e):"<loaderVersion>"===t?r("3.7.0"):t}))}(d,E),new Promise((function(t,r){var o=document.createElement("script"),n=function(){var e;return null===(e=o.parentNode)||void 0===e?void 0:e.removeChild(o)},i=document.head||document.getElementsByTagName("head")[0];o.onload=function(){n(),t()},o.onerror=function(){n(),r(new Error(h))},o.async=!0,o.src=e,i.appendChild(o)})));return o.then(r,r),o}))})).then((function(){var e=window,r="__fpjs_p_l_b",o=e[r];if(function(e,t){var r,o=null===(r=Object.getOwnPropertyDescriptor)||void 0===r?void 0:r.call(Object,e,t);(null==o?void 0:o.configurable)?delete e[t]:o&&!o.writable||(e[t]=void 0)}(e,r),"function"!=typeof(null==o?void 0:o.load))throw new Error(h);return o.load(t(t({},s),{ldi:{attempts:u}}))}))}var w={load:D,ERROR_SCRIPT_LOAD_FAIL:h,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_FORBIDDEN_ENDPOINT:u,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:E,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:d,ERROR_TOKEN_EXPIRED:"API key expired",ERROR_TOKEN_INVALID:"API key not found",ERROR_TOKEN_MISSING:"API key required",ERROR_UNSUPPORTED_VERSION:s,ERROR_WRONG_REGION:a};export{_ as ERROR_API_KEY_EXPIRED,c as ERROR_API_KEY_INVALID,l as ERROR_API_KEY_MISSING,O as ERROR_BAD_REQUEST_FORMAT,R as ERROR_BAD_RESPONSE_FORMAT,o as ERROR_CLIENT_TIMEOUT,u as ERROR_FORBIDDEN_ENDPOINT,v as ERROR_FORBIDDEN_HEADER,N as ERROR_FORBIDDEN_ORIGIN,I as ERROR_GENERAL_SERVER_FAILURE,E as ERROR_INSTALLATION_METHOD_RESTRICTED,i as ERROR_NETWORK_ABORT,n as ERROR_NETWORK_CONNECTION,f as ERROR_RATE_LIMIT,h as ERROR_SCRIPT_LOAD_FAIL,p as ERROR_SERVER_TIMEOUT,d as ERROR_SUBSCRIPTION_NOT_ACTIVE,T as ERROR_TOKEN_EXPIRED,P as ERROR_TOKEN_INVALID,A as ERROR_TOKEN_MISSING,s as ERROR_UNSUPPORTED_VERSION,a as ERROR_WRONG_REGION,w as default,D as load};
import{__rest as e,__assign as t}from"tslib";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="Client timeout",o="Network connection error",i="Network request aborted",R="Response cannot be parsed",a="Blocked by CSP",u=/*#__PURE__*/r("WrongRegion"),s=/*#__PURE__*/r("SubscriptionNotActive"),c=/*#__PURE__*/r("UnsupportedVersion"),d=/*#__PURE__*/r("InstallationMethodRestricted"),l=/*#__PURE__*/r("HostnameRestricted"),E="API key required",_="API key not found",f="API key expired",O="Request cannot be parsed",I="Request failed",p="Request failed to process",v="Too many requests, rate limit exceeded",N="Not available for this origin",h="Not available with restricted header",y="API key required",P="API key not found",m="API key expired";function A(e,t,r){return void 0===r&&(r=0),t(r).catch((function(n){if(r>=e.maxRetries||!e.shouldRetry(n))throw n;var o,i,R,a,u=(o=e.baseDelay,i=e.maxDelay,R=e.baseDelay*Math.pow(2,r),Math.max(o,Math.min(i,R)));return(a=u,new Promise((function(e){return setTimeout(e,a)}))).then((function(){return A(e,t,r+1)}))}))}var T="Failed to load the JS script of the agent",w="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js";function b(r){var n,o,i=r.scriptUrlPattern,R=r.token,a=r.apiKey,u=void 0===a?R:a,s=e(r,["scriptUrlPattern","token","apiKey"]),c=(n=r,o="scriptUrlPattern",Object.prototype.hasOwnProperty.call(n,o)?i:void 0),d=[];return Promise.resolve().then((function(){if(!u||"string"!=typeof u)throw new Error("API key required");return A({maxRetries:5,baseDelay:100,maxDelay:3e3,shouldRetry:function(e){return!(e instanceof Error&&"Blocked by CSP"===e.message)}},(function(){var e,t=new Date,r=function(){return d.push({startedAt:t,finishedAt:new Date})},n=function(e,t,r,n){var o,i=document,R="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,u())};i.addEventListener(R,a);var u=function(){return i.removeEventListener(R,a)};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(e,t){void 0===t&&(t=w);var r=encodeURIComponent;return t.replace(/<[^<>]+>/g,(function(t){return"<version>"===t?"3":"<apiKey>"===t?r(e):"<loaderVersion>"===t?r("3.7.1"):t}))}(u,c),(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(T))},n.async=!0,n.src=e,i.appendChild(n)}))}(e)}),(function(){throw new Error("Blocked by CSP")}));return n.then(r,r),n}))})).then((function(){var e=window,r="__fpjs_p_l_b",n=e[r];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,r),"function"!=typeof(null==n?void 0:n.load))throw new Error(T);return n.load(t(t({},s),{ldi:{attempts:d}}))}))}var D={load:b,ERROR_SCRIPT_LOAD_FAIL:T,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:l,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:d,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:s,ERROR_TOKEN_EXPIRED:"API key expired",ERROR_TOKEN_INVALID:"API key not found",ERROR_TOKEN_MISSING:"API key required",ERROR_UNSUPPORTED_VERSION:c,ERROR_WRONG_REGION:u};export{f as ERROR_API_KEY_EXPIRED,_ as ERROR_API_KEY_INVALID,E as ERROR_API_KEY_MISSING,O as ERROR_BAD_REQUEST_FORMAT,R as ERROR_BAD_RESPONSE_FORMAT,n as ERROR_CLIENT_TIMEOUT,a as ERROR_CSP_BLOCK,l as ERROR_FORBIDDEN_ENDPOINT,h as ERROR_FORBIDDEN_HEADER,N as ERROR_FORBIDDEN_ORIGIN,I as ERROR_GENERAL_SERVER_FAILURE,d as ERROR_INSTALLATION_METHOD_RESTRICTED,i as ERROR_NETWORK_ABORT,o as ERROR_NETWORK_CONNECTION,v as ERROR_RATE_LIMIT,T as ERROR_SCRIPT_LOAD_FAIL,p as ERROR_SERVER_TIMEOUT,s as ERROR_SUBSCRIPTION_NOT_ACTIVE,m as ERROR_TOKEN_EXPIRED,P as ERROR_TOKEN_INVALID,y as ERROR_TOKEN_MISSING,c as ERROR_UNSUPPORTED_VERSION,u as ERROR_WRONG_REGION,D as default,b as load};
/**
* FingerprintJS Pro v3.7.0 - Copyright (c) FingerprintJS, Inc, 2022 (https://fingerprint.com)
* FingerprintJS Pro v3.7.1 - Copyright (c) FingerprintJS, Inc, 2022 (https://fingerprint.com)
*

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

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

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

!function(e,R){"object"==typeof exports&&"undefined"!=typeof module?R(exports):"function"==typeof define&&define.amd?define(["exports"],R):R((e="undefined"!=typeof globalThis?globalThis:e||self).FingerprintJS={})}(this,(function(e){"use strict";var R=function(){return(R=Object.assign||function(e){for(var R,t=1,r=arguments.length;t<r;t++)for(var n in R=arguments[t])Object.prototype.hasOwnProperty.call(R,n)&&(e[n]=R[n]);return e}).apply(this,arguments)};function t(e){for(var R="",t=0;t<e.length;++t)if(t>0){var r=e[t].toLowerCase();r!==e[t]?R+=" "+r:R+=e[t]}else R+=e[t].toUpperCase();return R}var r="Client timeout",n="Network connection error",o="Network request aborted",E="Response cannot be parsed",O=t("WrongRegion"),i=t("SubscriptionNotActive"),_=t("UnsupportedVersion"),a=t("InstallationMethodRestricted"),I=t("HostnameRestricted"),l="API key required",s="API key not found",c="API key expired",u="Request cannot be parsed",d="Request failed",N="Request failed to process",p="Too many requests, rate limit exceeded",f="Not available for this origin",T="Not available with restricted header",A=l,D=s,v=c,P="3.7.0";function y(e,R,t){return void 0===t&&(t=0),R(t).catch((function(r){if(t>=e.maxRetries)throw r;var n,o,E,O,i=(n=e.baseDelay,o=e.maxDelay,E=e.baseDelay*Math.pow(2,t),Math.max(n,Math.min(o,E)));return(O=i,new Promise((function(e){return setTimeout(e,O)}))).then((function(){return y(e,R,t+1)}))}))}var S="Failed to load the JS script of the agent",h="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js";function m(e){var t,r,n=e.scriptUrlPattern,o=e.token,E=e.apiKey,O=void 0===E?o:E,i=function(e,R){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&R.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(e);n<r.length;n++)R.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(t[r[n]]=e[r[n]])}return t}(e,["scriptUrlPattern","token","apiKey"]),_=(t=e,r="scriptUrlPattern",Object.prototype.hasOwnProperty.call(t,r)?n:void 0),a=[];return Promise.resolve().then((function(){if(!O||"string"!=typeof O)throw new Error(l);return y({maxRetries:5,baseDelay:100,maxDelay:3e3},(function(){var e,R=new Date,t=function(){return a.push({startedAt:R,finishedAt:new Date})},r=(e=function(e,R){void 0===R&&(R=h);var t=encodeURIComponent;return R.replace(/<[^<>]+>/g,(function(R){return"<version>"===R?"3":"<apiKey>"===R?t(e):"<loaderVersion>"===R?t(P):R}))}(O,_),new Promise((function(R,t){var r=document.createElement("script"),n=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(){n(),R()},r.onerror=function(){n(),t(new Error(S))},r.async=!0,r.src=e,o.appendChild(r)})));return r.then(t,t),r}))})).then((function(){var e=window,t="__fpjs_p_l_b",r=e[t];if(function(e,R){var t,r=null===(t=Object.getOwnPropertyDescriptor)||void 0===t?void 0:t.call(Object,e,R);(null==r?void 0:r.configurable)?delete e[R]:r&&!r.writable||(e[R]=void 0)}(e,t),"function"!=typeof(null==r?void 0:r.load))throw new Error(S);return r.load(R(R({},i),{ldi:{attempts:a}}))}))}var b={load:m,ERROR_SCRIPT_LOAD_FAIL:S,ERROR_API_KEY_EXPIRED:c,ERROR_API_KEY_INVALID:s,ERROR_API_KEY_MISSING:l,ERROR_BAD_REQUEST_FORMAT:u,ERROR_BAD_RESPONSE_FORMAT:E,ERROR_CLIENT_TIMEOUT:r,ERROR_FORBIDDEN_ENDPOINT:I,ERROR_FORBIDDEN_HEADER:T,ERROR_FORBIDDEN_ORIGIN:f,ERROR_GENERAL_SERVER_FAILURE:d,ERROR_INSTALLATION_METHOD_RESTRICTED:a,ERROR_NETWORK_ABORT:o,ERROR_NETWORK_CONNECTION:n,ERROR_RATE_LIMIT:p,ERROR_SERVER_TIMEOUT:N,ERROR_SUBSCRIPTION_NOT_ACTIVE:i,ERROR_TOKEN_EXPIRED:v,ERROR_TOKEN_INVALID:D,ERROR_TOKEN_MISSING:A,ERROR_UNSUPPORTED_VERSION:_,ERROR_WRONG_REGION:O};e.ERROR_API_KEY_EXPIRED=c,e.ERROR_API_KEY_INVALID=s,e.ERROR_API_KEY_MISSING=l,e.ERROR_BAD_REQUEST_FORMAT=u,e.ERROR_BAD_RESPONSE_FORMAT=E,e.ERROR_CLIENT_TIMEOUT=r,e.ERROR_FORBIDDEN_ENDPOINT=I,e.ERROR_FORBIDDEN_HEADER=T,e.ERROR_FORBIDDEN_ORIGIN=f,e.ERROR_GENERAL_SERVER_FAILURE=d,e.ERROR_INSTALLATION_METHOD_RESTRICTED=a,e.ERROR_NETWORK_ABORT=o,e.ERROR_NETWORK_CONNECTION=n,e.ERROR_RATE_LIMIT=p,e.ERROR_SCRIPT_LOAD_FAIL=S,e.ERROR_SERVER_TIMEOUT=N,e.ERROR_SUBSCRIPTION_NOT_ACTIVE=i,e.ERROR_TOKEN_EXPIRED=v,e.ERROR_TOKEN_INVALID=D,e.ERROR_TOKEN_MISSING=A,e.ERROR_UNSUPPORTED_VERSION=_,e.ERROR_WRONG_REGION=O,e.default=b,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,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){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="Client timeout",r="Network connection error",o="Network request aborted",i="Response cannot be parsed",E="Blocked by CSP",O=R("WrongRegion"),_=R("SubscriptionNotActive"),a=R("UnsupportedVersion"),u=R("InstallationMethodRestricted"),c=R("HostnameRestricted"),l="API key required",s="API key not found",I="API key expired",f="Request cannot be parsed",d="Request failed",p="Request failed to process",N="Too many requests, rate limit exceeded",T="Not available for this origin",v="Not available with restricted header",h=l,A=s,D=I,P="3.7.1";function y(e,t,R){return void 0===R&&(R=0),t(R).catch((function(n){if(R>=e.maxRetries||!e.shouldRetry(n))throw n;var r,o,i,E,O=(r=e.baseDelay,o=e.maxDelay,i=e.baseDelay*Math.pow(2,R),Math.max(r,Math.min(o,i)));return(E=O,new Promise((function(e){return setTimeout(e,E)}))).then((function(){return y(e,t,R+1)}))}))}var S="Failed to load the JS script of the agent",m="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js";function b(e){var R,n,r=e.scriptUrlPattern,o=e.token,i=e.apiKey,O=void 0===i?o:i,_=function(e,t){var R={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(R[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(R[n[r]]=e[n[r]])}return R}(e,["scriptUrlPattern","token","apiKey"]),a=(R=e,n="scriptUrlPattern",Object.prototype.hasOwnProperty.call(R,n)?r:void 0),u=[];return Promise.resolve().then((function(){if(!O||"string"!=typeof O)throw new Error(l);return y({maxRetries:5,baseDelay:100,maxDelay:3e3,shouldRetry:function(e){return!(e instanceof Error&&e.message===E)}},(function(){var e,t=new Date,R=function(){return u.push({startedAt:t,finishedAt:new Date})},n=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())};o.addEventListener(i,E);var O=function(){return o.removeEventListener(i,E)};return null==n||n.then(O,O),Promise.resolve().then(t).then((function(e){return O(),e}),(function(e){return new Promise((function(e){return setTimeout(e)})).then((function(){if(O(),r)return R(r);throw e}))}))}(e=function(e,t){void 0===t&&(t=m);var R=encodeURIComponent;return t.replace(/<[^<>]+>/g,(function(t){return"<version>"===t?"3":"<apiKey>"===t?R(e):"<loaderVersion>"===t?R(P):t}))}(O,a),(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(S))},n.async=!0,n.src=e,o.appendChild(n)}))}(e)}),(function(){throw new Error(E)}));return n.then(R,R),n}))})).then((function(){var e=window,R="__fpjs_p_l_b",n=e[R];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,R),"function"!=typeof(null==n?void 0:n.load))throw new Error(S);return n.load(t(t({},_),{ldi:{attempts:u}}))}))}var w={load:b,ERROR_SCRIPT_LOAD_FAIL:S,ERROR_API_KEY_EXPIRED:I,ERROR_API_KEY_INVALID:s,ERROR_API_KEY_MISSING:l,ERROR_BAD_REQUEST_FORMAT:f,ERROR_BAD_RESPONSE_FORMAT:i,ERROR_CLIENT_TIMEOUT:n,ERROR_CSP_BLOCK:E,ERROR_FORBIDDEN_ENDPOINT:c,ERROR_FORBIDDEN_HEADER:v,ERROR_FORBIDDEN_ORIGIN:T,ERROR_GENERAL_SERVER_FAILURE:d,ERROR_INSTALLATION_METHOD_RESTRICTED:u,ERROR_NETWORK_ABORT:o,ERROR_NETWORK_CONNECTION:r,ERROR_RATE_LIMIT:N,ERROR_SERVER_TIMEOUT:p,ERROR_SUBSCRIPTION_NOT_ACTIVE:_,ERROR_TOKEN_EXPIRED:D,ERROR_TOKEN_INVALID:A,ERROR_TOKEN_MISSING:h,ERROR_UNSUPPORTED_VERSION:a,ERROR_WRONG_REGION:O};e.ERROR_API_KEY_EXPIRED=I,e.ERROR_API_KEY_INVALID=s,e.ERROR_API_KEY_MISSING=l,e.ERROR_BAD_REQUEST_FORMAT=f,e.ERROR_BAD_RESPONSE_FORMAT=i,e.ERROR_CLIENT_TIMEOUT=n,e.ERROR_CSP_BLOCK=E,e.ERROR_FORBIDDEN_ENDPOINT=c,e.ERROR_FORBIDDEN_HEADER=v,e.ERROR_FORBIDDEN_ORIGIN=T,e.ERROR_GENERAL_SERVER_FAILURE=d,e.ERROR_INSTALLATION_METHOD_RESTRICTED=u,e.ERROR_NETWORK_ABORT=o,e.ERROR_NETWORK_CONNECTION=r,e.ERROR_RATE_LIMIT=N,e.ERROR_SCRIPT_LOAD_FAIL=S,e.ERROR_SERVER_TIMEOUT=p,e.ERROR_SUBSCRIPTION_NOT_ACTIVE=_,e.ERROR_TOKEN_EXPIRED=D,e.ERROR_TOKEN_INVALID=A,e.ERROR_TOKEN_MISSING=h,e.ERROR_UNSUPPORTED_VERSION=a,e.ERROR_WRONG_REGION=O,e.default=w,e.load=b,Object.defineProperty(e,"__esModule",{value:!0})}));
{
"name": "@fingerprintjs/fingerprintjs-pro",
"description": "FingerprintJS Pro client agent",
"version": "3.7.0",
"version": "3.7.1",
"keywords": [

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc