UNPKG

@sumsub/fisherman

Version:

The Sumsub Fisherman is a powerful tool that helps developers integrate fraud detection capabilities into their applications. With Fisherman, you can easily identify and prevent fraudulent activities within your system, providing a safer and more secure e

1,315 lines (1,314 loc) 75.8 kB
function Ue() { return Date.now(); } function rn() { return (/* @__PURE__ */ new Date()).toISOString(); } const an = "crypto" in window && "randomUUID" in window.crypto; function on() { return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (t) => { const r = Math.random() * 16 | 0; return (t === "x" ? r : r & 3 | 8).toString(16); }); } function sn() { return an ? crypto.randomUUID() : on(); } const un = { type: "InvalidToken", message: "Token is invalid, make sure you generate a new one each time, because the old ones are invalidated upon usage" }; async function cn(t, r, o, u, s) { const c = await fetch(`${o}${u}`, { method: "POST", body: JSON.stringify(t), headers: { "Content-Type": "application/json", "X-Access-Token": r, "X-Client-Id": "fisherman" } }); s(c.status, t); } async function ln({ payload: t, token: r, baseUrl: o, path: u }) { return fetch(`${o}${u}`, { method: "POST", body: JSON.stringify(t), headers: { "Content-Type": "application/json", "X-Access-Token": r, "X-Client-Id": "fisherman" } }); } const fn = 2e3, dn = atob("aHR0cHM6Ly9jb2NrcGl0LnN1bXN1Yi5jb20="), gn = Math.random().toString(36).substring(0, 8), Ge = `/resources/bhv/evts/${gn}`, Ve = "/resources/di/req"; let F, pe, He, J, R, he, ve, Se = Ge, Ee = Ve; function hn(t) { F = t, Q(F.token); } function pn(t) { t && (Se = t); } function vn(t) { t && (Ee = t); } function mn() { Ke(), He = void 0, Q(void 0), pe = void 0, Se = Ge, Ee = Ve; } async function Y(t, r) { return await yn( wn( t, { fpRequestId: r == null ? void 0 : r.fpRequestId, fpVisitorId: r == null ? void 0 : r.fpVisitorId, fpSimulation: r == null ? void 0 : r.fpSimulation }, r == null ? void 0 : r.behavioralDataEnabled ) ); } function wn(t, r = {}, o = !0) { t.capturedAt = rn(); const u = sn(), s = "deviceFingerprint" in t || !o, c = { id: u, predecessorEventId: pe, deviceSessionId: He, ...r, [s ? "initData" : "interactionData"]: t }; return pe = u, c; } async function yn(t, r) { R === void 0 && (R = []), !he && t.initData ? (he = !0, R.unshift(t)) : R.push(t), he && (ve || (ve = setTimeout(We, fn))); } function Ke() { R = void 0, ve = void 0; } async function We() { if (R != null && R.length && J) { const t = [...R]; Ke(), await cn(t, J, Ae(), Se, En); } } function Ae() { return F.baseUrl !== void 0 ? F.baseUrl : dn; } async function Tn() { if (F.accessTokenUpdateHandler) { const t = await F.accessTokenUpdateHandler(); Q(t); } } async function Sn(t) { await Tn(), R === void 0 && (R = []), R.unshift(...t), await We(); } async function En(t, r) { t === 401 && (F.accessTokenUpdateHandler ? await Sn(r) : Q(void 0), F.onError && F.onError(un)); } async function je(t) { if (J) return ln({ payload: t, token: J, baseUrl: Ae(), path: Ee }); } function Q(t) { J = t; } const Xe = "focus"; let ae, Le = 0; function An() { ae = () => { Le++, Y({ event: "focus", count: Le }); }, window.addEventListener(Xe, ae); } function xn() { ae && window.removeEventListener(Xe, ae); } function bn(t) { if (t.target instanceof Element) { const r = t.target, o = r.getAttribute("type"), u = o ? `[${o}]` : "", s = r.id ? `#${r.id}` : ""; return `${r.tagName}${u}${s}`; } } const Cn = [ // Modifier keys "Alt", "Control", "Meta", "Shift", // Whitespace keys "Enter", "Tab", // Navigation keys "ArrowDown", "ArrowLeft", "ArrowRight", "ArrowUp", "End", "Home", // Editing keys "Backspace", "Delete", // UI keys "Escape" ]; function Bn(t) { if (Cn.includes(t)) return t; } function On(t) { return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t; } var re = { exports: {} }, Mn = re.exports, Ne; function In() { return Ne || (Ne = 1, function(t) { (function(r, o, u) { t.exports ? t.exports = u() : o.exports ? o.exports = u() : o[r] = u(); })("Fingerprint2", Mn, function() { var r = function(e, n) { e = [e[0] >>> 16, e[0] & 65535, e[1] >>> 16, e[1] & 65535], n = [n[0] >>> 16, n[0] & 65535, n[1] >>> 16, n[1] & 65535]; var a = [0, 0, 0, 0]; return a[3] += e[3] + n[3], a[2] += a[3] >>> 16, a[3] &= 65535, a[2] += e[2] + n[2], a[1] += a[2] >>> 16, a[2] &= 65535, a[1] += e[1] + n[1], a[0] += a[1] >>> 16, a[1] &= 65535, a[0] += e[0] + n[0], a[0] &= 65535, [a[0] << 16 | a[1], a[2] << 16 | a[3]]; }, o = function(e, n) { e = [e[0] >>> 16, e[0] & 65535, e[1] >>> 16, e[1] & 65535], n = [n[0] >>> 16, n[0] & 65535, n[1] >>> 16, n[1] & 65535]; var a = [0, 0, 0, 0]; return a[3] += e[3] * n[3], a[2] += a[3] >>> 16, a[3] &= 65535, a[2] += e[2] * n[3], a[1] += a[2] >>> 16, a[2] &= 65535, a[2] += e[3] * n[2], a[1] += a[2] >>> 16, a[2] &= 65535, a[1] += e[1] * n[3], a[0] += a[1] >>> 16, a[1] &= 65535, a[1] += e[2] * n[2], a[0] += a[1] >>> 16, a[1] &= 65535, a[1] += e[3] * n[1], a[0] += a[1] >>> 16, a[1] &= 65535, a[0] += e[0] * n[3] + e[1] * n[2] + e[2] * n[1] + e[3] * n[0], a[0] &= 65535, [a[0] << 16 | a[1], a[2] << 16 | a[3]]; }, u = function(e, n) { return n %= 64, n === 32 ? [e[1], e[0]] : n < 32 ? [e[0] << n | e[1] >>> 32 - n, e[1] << n | e[0] >>> 32 - n] : (n -= 32, [e[1] << n | e[0] >>> 32 - n, e[0] << n | e[1] >>> 32 - n]); }, s = function(e, n) { return n %= 64, n === 0 ? e : n < 32 ? [e[0] << n | e[1] >>> 32 - n, e[1] << n] : [e[1] << n - 32, 0]; }, c = function(e, n) { return [e[0] ^ n[0], e[1] ^ n[1]]; }, l = function(e) { return e = c(e, [0, e[0] >>> 1]), e = o(e, [4283543511, 3981806797]), e = c(e, [0, e[0] >>> 1]), e = o(e, [3301882366, 444984403]), e = c(e, [0, e[0] >>> 1]), e; }, y = function(e, n) { e = e || "", n = n || 0; for (var a = e.length % 16, i = e.length - a, f = [0, n], d = [0, n], h = [0, 0], p = [0, 0], S = [2277735313, 289559509], O = [1291169091, 658871167], v = 0; v < i; v = v + 16) h = [e.charCodeAt(v + 4) & 255 | (e.charCodeAt(v + 5) & 255) << 8 | (e.charCodeAt(v + 6) & 255) << 16 | (e.charCodeAt(v + 7) & 255) << 24, e.charCodeAt(v) & 255 | (e.charCodeAt(v + 1) & 255) << 8 | (e.charCodeAt(v + 2) & 255) << 16 | (e.charCodeAt(v + 3) & 255) << 24], p = [e.charCodeAt(v + 12) & 255 | (e.charCodeAt(v + 13) & 255) << 8 | (e.charCodeAt(v + 14) & 255) << 16 | (e.charCodeAt(v + 15) & 255) << 24, e.charCodeAt(v + 8) & 255 | (e.charCodeAt(v + 9) & 255) << 8 | (e.charCodeAt(v + 10) & 255) << 16 | (e.charCodeAt(v + 11) & 255) << 24], h = o(h, S), h = u(h, 31), h = o(h, O), f = c(f, h), f = u(f, 27), f = r(f, d), f = r(o(f, [0, 5]), [0, 1390208809]), p = o(p, O), p = u(p, 33), p = o(p, S), d = c(d, p), d = u(d, 31), d = r(d, f), d = r(o(d, [0, 5]), [0, 944331445]); switch (h = [0, 0], p = [0, 0], a) { case 15: p = c(p, s([0, e.charCodeAt(v + 14)], 48)); // fallthrough case 14: p = c(p, s([0, e.charCodeAt(v + 13)], 40)); // fallthrough case 13: p = c(p, s([0, e.charCodeAt(v + 12)], 32)); // fallthrough case 12: p = c(p, s([0, e.charCodeAt(v + 11)], 24)); // fallthrough case 11: p = c(p, s([0, e.charCodeAt(v + 10)], 16)); // fallthrough case 10: p = c(p, s([0, e.charCodeAt(v + 9)], 8)); // fallthrough case 9: p = c(p, [0, e.charCodeAt(v + 8)]), p = o(p, O), p = u(p, 33), p = o(p, S), d = c(d, p); // fallthrough case 8: h = c(h, s([0, e.charCodeAt(v + 7)], 56)); // fallthrough case 7: h = c(h, s([0, e.charCodeAt(v + 6)], 48)); // fallthrough case 6: h = c(h, s([0, e.charCodeAt(v + 5)], 40)); // fallthrough case 5: h = c(h, s([0, e.charCodeAt(v + 4)], 32)); // fallthrough case 4: h = c(h, s([0, e.charCodeAt(v + 3)], 24)); // fallthrough case 3: h = c(h, s([0, e.charCodeAt(v + 2)], 16)); // fallthrough case 2: h = c(h, s([0, e.charCodeAt(v + 1)], 8)); // fallthrough case 1: h = c(h, [0, e.charCodeAt(v)]), h = o(h, S), h = u(h, 31), h = o(h, O), f = c(f, h); } return f = c(f, [0, e.length]), d = c(d, [0, e.length]), f = r(f, d), d = r(d, f), f = l(f), d = l(d), f = r(f, d), d = r(d, f), ("00000000" + (f[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (f[1] >>> 0).toString(16)).slice(-8) + ("00000000" + (d[0] >>> 0).toString(16)).slice(-8) + ("00000000" + (d[1] >>> 0).toString(16)).slice(-8); }, E = { preprocessor: null, audio: { timeout: 1e3, // On iOS 11, audio context can only be used in response to user interaction. // We require users to explicitly enable audio fingerprinting on iOS 11. // See https://stackoverflow.com/questions/46363048/onaudioprocess-not-called-on-ios11#46534088 excludeIOS11: !0 }, fonts: { swfContainerId: "fingerprintjs2", swfPath: "flash/compiled/FontList.swf", userDefinedFonts: [], extendedJsFonts: !1 }, screen: { // To ensure consistent fingerprints when users rotate their mobile devices detectScreenOrientation: !0 }, plugins: { sortPluginsFor: [/palemoon/i], excludeIE: !1 }, extraComponents: [], excludes: { // Unreliable on Windows, see https://github.com/Valve/fingerprintjs2/issues/375 enumerateDevices: !0, // devicePixelRatio depends on browser zoom, and it's impossible to detect browser zoom pixelRatio: !0, // DNT depends on incognito mode for some browsers (Chrome) and it's impossible to detect incognito mode doNotTrack: !0, // uses js fonts already fontsFlash: !0 }, NOT_AVAILABLE: "not available", ERROR: "error", EXCLUDED: "excluded" }, w = function(e, n) { if (Array.prototype.forEach && e.forEach === Array.prototype.forEach) e.forEach(n); else if (e.length === +e.length) for (var a = 0, i = e.length; a < i; a++) n(e[a], a, e); else for (var f in e) e.hasOwnProperty(f) && n(e[f], f, e); }, g = function(e, n) { var a = []; return e == null ? a : Array.prototype.map && e.map === Array.prototype.map ? e.map(n) : (w(e, function(i, f, d) { a.push(n(i, f, d)); }), a); }, m = function(e, n) { if (n == null) return e; var a, i; for (i in n) a = n[i], a != null && !Object.prototype.hasOwnProperty.call(e, i) && (e[i] = a); return e; }, M = function(e, n) { if (!C()) return e(n.NOT_AVAILABLE); navigator.mediaDevices.enumerateDevices().then(function(a) { e(a.map(function(i) { return "id=" + i.deviceId + ";gid=" + i.groupId + ";" + i.kind + ";" + i.label; })); }).catch(function(a) { e(a); }); }, C = function() { return navigator.mediaDevices && navigator.mediaDevices.enumerateDevices; }, x = function(e, n) { var a = n.audio; if (a.excludeIOS11 && navigator.userAgent.match(/OS 11.+Version\/11.+Safari/)) return e(n.EXCLUDED); var i = window.OfflineAudioContext || window.webkitOfflineAudioContext; if (i == null) return e(n.NOT_AVAILABLE); var f = new i(1, 44100, 44100), d = f.createOscillator(); d.type = "triangle", d.frequency.setValueAtTime(1e4, f.currentTime); var h = f.createDynamicsCompressor(); w([ ["threshold", -50], ["knee", 40], ["ratio", 12], ["reduction", -20], ["attack", 0], ["release", 0.25] ], function(S) { h[S[0]] !== void 0 && typeof h[S[0]].setValueAtTime == "function" && h[S[0]].setValueAtTime(S[1], f.currentTime); }), d.connect(h), h.connect(f.destination), d.start(0), f.startRendering(); var p = setTimeout(function() { return console.warn('Audio fingerprint timed out. Please report bug at https://github.com/Valve/fingerprintjs2 with your user agent: "' + navigator.userAgent + '".'), f.oncomplete = function() { }, f = null, e("audioTimeout"); }, a.timeout); f.oncomplete = function(S) { var O; try { clearTimeout(p), O = S.renderedBuffer.getChannelData(0).slice(4500, 5e3).reduce(function(v, V) { return v + Math.abs(V); }, 0).toString(), d.disconnect(), h.disconnect(); } catch (v) { e(v); return; } e(O); }; }, b = function(e) { e(navigator.userAgent); }, A = function(e, n) { e(navigator.webdriver == null ? n.NOT_AVAILABLE : navigator.webdriver); }, B = function(e, n) { e(navigator.language || navigator.userLanguage || navigator.browserLanguage || navigator.systemLanguage || n.NOT_AVAILABLE); }, U = function(e, n) { e(window.screen.colorDepth || n.NOT_AVAILABLE); }, _ = function(e, n) { e(navigator.deviceMemory || n.NOT_AVAILABLE); }, K = function(e, n) { e(window.devicePixelRatio || n.NOT_AVAILABLE); }, ue = function(e, n) { e(ce(n)); }, ce = function(e) { var n = [window.screen.width, window.screen.height]; return e.screen.detectScreenOrientation && n.sort().reverse(), n; }, le = function(e, n) { e(it(n)); }, it = function(e) { if (window.screen.availWidth && window.screen.availHeight) { var n = [window.screen.availHeight, window.screen.availWidth]; return e.screen.detectScreenOrientation && n.sort().reverse(), n; } return e.NOT_AVAILABLE; }, ot = function(e) { e((/* @__PURE__ */ new Date()).getTimezoneOffset()); }, st = function(e, n) { if (window.Intl && window.Intl.DateTimeFormat) { e(new window.Intl.DateTimeFormat().resolvedOptions().timeZone); return; } e(n.NOT_AVAILABLE); }, ut = function(e, n) { e(Pt(n)); }, ct = function(e, n) { e(Dt(n)); }, lt = function(e, n) { e(Rt(n)); }, ft = function(e) { e(!!(document.body && document.body.addBehavior)); }, dt = function(e) { e(!!window.openDatabase); }, gt = function(e, n) { e(Nt(n)); }, ht = function(e, n) { e(kt(n)); }, pt = function(e, n) { e(_t(n)); }, vt = function(e, n) { if (Ie()) { e(Ut(n)); return; } e(n.NOT_AVAILABLE); }, mt = function(e, n) { if (Pe()) { e(Gt()); return; } e(n.NOT_AVAILABLE); }, wt = function(e) { if (Pe()) { e(Vt()); return; } e(); }, yt = function(e) { e(Ht()); }, Tt = function(e) { e(Kt()); }, St = function(e) { e(Wt()); }, Et = function(e) { e(jt()); }, At = function(e) { e(Xt()); }, xt = function(e, n) { if (!zt()) return e("swf object not loaded"); if (!$t()) return e("flash not installed"); if (!n.fonts.swfPath) return e("missing options.fonts.swfPath"); Jt(function(a) { e(a); }, n); }, bt = function(e, n) { var a = ["monospace", "sans-serif", "serif"], i = [ "Andale Mono", "Arial", "Arial Black", "Arial Hebrew", "Arial MT", "Arial Narrow", "Arial Rounded MT Bold", "Arial Unicode MS", "Bitstream Vera Sans Mono", "Book Antiqua", "Bookman Old Style", "Calibri", "Cambria", "Cambria Math", "Century", "Century Gothic", "Century Schoolbook", "Comic Sans", "Comic Sans MS", "Consolas", "Courier", "Courier New", "Geneva", "Georgia", "Helvetica", "Helvetica Neue", "Impact", "Lucida Bright", "Lucida Calligraphy", "Lucida Console", "Lucida Fax", "LUCIDA GRANDE", "Lucida Handwriting", "Lucida Sans", "Lucida Sans Typewriter", "Lucida Sans Unicode", "Microsoft Sans Serif", "Monaco", "Monotype Corsiva", "MS Gothic", "MS Outlook", "MS PGothic", "MS Reference Sans Serif", "MS Sans Serif", "MS Serif", "MYRIAD", "MYRIAD PRO", "Palatino", "Palatino Linotype", "Segoe Print", "Segoe Script", "Segoe UI", "Segoe UI Light", "Segoe UI Semibold", "Segoe UI Symbol", "Tahoma", "Times", "Times New Roman", "Times New Roman PS", "Trebuchet MS", "Verdana", "Wingdings", "Wingdings 2", "Wingdings 3" ]; if (n.fonts.extendedJsFonts) { var f = [ "Abadi MT Condensed Light", "Academy Engraved LET", "ADOBE CASLON PRO", "Adobe Garamond", "ADOBE GARAMOND PRO", "Agency FB", "Aharoni", "Albertus Extra Bold", "Albertus Medium", "Algerian", "Amazone BT", "American Typewriter", "American Typewriter Condensed", "AmerType Md BT", "Andalus", "Angsana New", "AngsanaUPC", "Antique Olive", "Aparajita", "Apple Chancery", "Apple Color Emoji", "Apple SD Gothic Neo", "Arabic Typesetting", "ARCHER", "ARNO PRO", "Arrus BT", "Aurora Cn BT", "AvantGarde Bk BT", "AvantGarde Md BT", "AVENIR", "Ayuthaya", "Bandy", "Bangla Sangam MN", "Bank Gothic", "BankGothic Md BT", "Baskerville", "Baskerville Old Face", "Batang", "BatangChe", "Bauer Bodoni", "Bauhaus 93", "Bazooka", "Bell MT", "Bembo", "Benguiat Bk BT", "Berlin Sans FB", "Berlin Sans FB Demi", "Bernard MT Condensed", "BernhardFashion BT", "BernhardMod BT", "Big Caslon", "BinnerD", "Blackadder ITC", "BlairMdITC TT", "Bodoni 72", "Bodoni 72 Oldstyle", "Bodoni 72 Smallcaps", "Bodoni MT", "Bodoni MT Black", "Bodoni MT Condensed", "Bodoni MT Poster Compressed", "Bookshelf Symbol 7", "Boulder", "Bradley Hand", "Bradley Hand ITC", "Bremen Bd BT", "Britannic Bold", "Broadway", "Browallia New", "BrowalliaUPC", "Brush Script MT", "Californian FB", "Calisto MT", "Calligrapher", "Candara", "CaslonOpnface BT", "Castellar", "Centaur", "Cezanne", "CG Omega", "CG Times", "Chalkboard", "Chalkboard SE", "Chalkduster", "Charlesworth", "Charter Bd BT", "Charter BT", "Chaucer", "ChelthmITC Bk BT", "Chiller", "Clarendon", "Clarendon Condensed", "CloisterBlack BT", "Cochin", "Colonna MT", "Constantia", "Cooper Black", "Copperplate", "Copperplate Gothic", "Copperplate Gothic Bold", "Copperplate Gothic Light", "CopperplGoth Bd BT", "Corbel", "Cordia New", "CordiaUPC", "Cornerstone", "Coronet", "Cuckoo", "Curlz MT", "DaunPenh", "Dauphin", "David", "DB LCD Temp", "DELICIOUS", "Denmark", "DFKai-SB", "Didot", "DilleniaUPC", "DIN", "DokChampa", "Dotum", "DotumChe", "Ebrima", "Edwardian Script ITC", "Elephant", "English 111 Vivace BT", "Engravers MT", "EngraversGothic BT", "Eras Bold ITC", "Eras Demi ITC", "Eras Light ITC", "Eras Medium ITC", "EucrosiaUPC", "Euphemia", "Euphemia UCAS", "EUROSTILE", "Exotc350 Bd BT", "FangSong", "Felix Titling", "Fixedsys", "FONTIN", "Footlight MT Light", "Forte", "FrankRuehl", "Fransiscan", "Freefrm721 Blk BT", "FreesiaUPC", "Freestyle Script", "French Script MT", "FrnkGothITC Bk BT", "Fruitger", "FRUTIGER", "Futura", "Futura Bk BT", "Futura Lt BT", "Futura Md BT", "Futura ZBlk BT", "FuturaBlack BT", "Gabriola", "Galliard BT", "Gautami", "Geeza Pro", "Geometr231 BT", "Geometr231 Hv BT", "Geometr231 Lt BT", "GeoSlab 703 Lt BT", "GeoSlab 703 XBd BT", "Gigi", "Gill Sans", "Gill Sans MT", "Gill Sans MT Condensed", "Gill Sans MT Ext Condensed Bold", "Gill Sans Ultra Bold", "Gill Sans Ultra Bold Condensed", "Gisha", "Gloucester MT Extra Condensed", "GOTHAM", "GOTHAM BOLD", "Goudy Old Style", "Goudy Stout", "GoudyHandtooled BT", "GoudyOLSt BT", "Gujarati Sangam MN", "Gulim", "GulimChe", "Gungsuh", "GungsuhChe", "Gurmukhi MN", "Haettenschweiler", "Harlow Solid Italic", "Harrington", "Heather", "Heiti SC", "Heiti TC", "HELV", "Herald", "High Tower Text", "Hiragino Kaku Gothic ProN", "Hiragino Mincho ProN", "Hoefler Text", "Humanst 521 Cn BT", "Humanst521 BT", "Humanst521 Lt BT", "Imprint MT Shadow", "Incised901 Bd BT", "Incised901 BT", "Incised901 Lt BT", "INCONSOLATA", "Informal Roman", "Informal011 BT", "INTERSTATE", "IrisUPC", "Iskoola Pota", "JasmineUPC", "Jazz LET", "Jenson", "Jester", "Jokerman", "Juice ITC", "Kabel Bk BT", "Kabel Ult BT", "Kailasa", "KaiTi", "Kalinga", "Kannada Sangam MN", "Kartika", "Kaufmann Bd BT", "Kaufmann BT", "Khmer UI", "KodchiangUPC", "Kokila", "Korinna BT", "Kristen ITC", "Krungthep", "Kunstler Script", "Lao UI", "Latha", "Leelawadee", "Letter Gothic", "Levenim MT", "LilyUPC", "Lithograph", "Lithograph Light", "Long Island", "Lydian BT", "Magneto", "Maiandra GD", "Malayalam Sangam MN", "Malgun Gothic", "Mangal", "Marigold", "Marion", "Marker Felt", "Market", "Marlett", "Matisse ITC", "Matura MT Script Capitals", "Meiryo", "Meiryo UI", "Microsoft Himalaya", "Microsoft JhengHei", "Microsoft New Tai Lue", "Microsoft PhagsPa", "Microsoft Tai Le", "Microsoft Uighur", "Microsoft YaHei", "Microsoft Yi Baiti", "MingLiU", "MingLiU_HKSCS", "MingLiU_HKSCS-ExtB", "MingLiU-ExtB", "Minion", "Minion Pro", "Miriam", "Miriam Fixed", "Mistral", "Modern", "Modern No. 20", "Mona Lisa Solid ITC TT", "Mongolian Baiti", "MONO", "MoolBoran", "Mrs Eaves", "MS LineDraw", "MS Mincho", "MS PMincho", "MS Reference Specialty", "MS UI Gothic", "MT Extra", "MUSEO", "MV Boli", "Nadeem", "Narkisim", "NEVIS", "News Gothic", "News GothicMT", "NewsGoth BT", "Niagara Engraved", "Niagara Solid", "Noteworthy", "NSimSun", "Nyala", "OCR A Extended", "Old Century", "Old English Text MT", "Onyx", "Onyx BT", "OPTIMA", "Oriya Sangam MN", "OSAKA", "OzHandicraft BT", "Palace Script MT", "Papyrus", "Parchment", "Party LET", "Pegasus", "Perpetua", "Perpetua Titling MT", "PetitaBold", "Pickwick", "Plantagenet Cherokee", "Playbill", "PMingLiU", "PMingLiU-ExtB", "Poor Richard", "Poster", "PosterBodoni BT", "PRINCETOWN LET", "Pristina", "PTBarnum BT", "Pythagoras", "Raavi", "Rage Italic", "Ravie", "Ribbon131 Bd BT", "Rockwell", "Rockwell Condensed", "Rockwell Extra Bold", "Rod", "Roman", "Sakkal Majalla", "Santa Fe LET", "Savoye LET", "Sceptre", "Script", "Script MT Bold", "SCRIPTINA", "Serifa", "Serifa BT", "Serifa Th BT", "ShelleyVolante BT", "Sherwood", "Shonar Bangla", "Showcard Gothic", "Shruti", "Signboard", "SILKSCREEN", "SimHei", "Simplified Arabic", "Simplified Arabic Fixed", "SimSun", "SimSun-ExtB", "Sinhala Sangam MN", "Sketch Rockwell", "Skia", "Small Fonts", "Snap ITC", "Snell Roundhand", "Socket", "Souvenir Lt BT", "Staccato222 BT", "Steamer", "Stencil", "Storybook", "Styllo", "Subway", "Swis721 BlkEx BT", "Swiss911 XCm BT", "Sylfaen", "Synchro LET", "System", "Tamil Sangam MN", "Technical", "Teletype", "Telugu Sangam MN", "Tempus Sans ITC", "Terminal", "Thonburi", "Traditional Arabic", "Trajan", "TRAJAN PRO", "Tristan", "Tubular", "Tunga", "Tw Cen MT", "Tw Cen MT Condensed", "Tw Cen MT Condensed Extra Bold", "TypoUpright BT", "Unicorn", "Univers", "Univers CE 55 Medium", "Univers Condensed", "Utsaah", "Vagabond", "Vani", "Vijaya", "Viner Hand ITC", "VisualUI", "Vivaldi", "Vladimir Script", "Vrinda", "Westminster", "WHITNEY", "Wide Latin", "ZapfEllipt BT", "ZapfHumnst BT", "ZapfHumnst Dm BT", "Zapfino", "Zurich BlkEx BT", "Zurich Ex BT", "ZWAdobeF" ]; i = i.concat(f); } i = i.concat(n.fonts.userDefinedFonts), i = i.filter(function(T, I) { return i.indexOf(T) === I; }); var d = "mmmmmmmmmmlli", h = "72px", p = document.getElementsByTagName("body")[0], S = document.createElement("div"), O = document.createElement("div"), v = {}, V = {}, P = function() { var T = document.createElement("span"); return T.style.position = "absolute", T.style.left = "-9999px", T.style.fontSize = h, T.style.fontStyle = "normal", T.style.fontWeight = "normal", T.style.letterSpacing = "normal", T.style.lineBreak = "auto", T.style.lineHeight = "normal", T.style.textTransform = "none", T.style.textAlign = "left", T.style.textDecoration = "none", T.style.textShadow = "none", T.style.whiteSpace = "normal", T.style.wordBreak = "normal", T.style.wordSpacing = "normal", T.innerHTML = d, T; }, W = function(T, I) { var D = P(); return D.style.fontFamily = "'" + T + "'," + I, D; }, H = function() { for (var T = [], I = 0, D = a.length; I < D; I++) { var q = P(); q.style.fontFamily = a[I], S.appendChild(q), T.push(q); } return T; }, j = function() { for (var T = {}, I = 0, D = i.length; I < D; I++) { for (var q = [], ge = 0, nn = a.length; ge < nn; ge++) { var Re = W(i[I], a[ge]); O.appendChild(Re), q.push(Re); } T[i[I]] = q; } return T; }, de = function(T) { for (var I = !1, D = 0; D < a.length; D++) if (I = T[D].offsetWidth !== v[a[D]] || T[D].offsetHeight !== V[a[D]], I) return I; return I; }, te = H(); p.appendChild(S); for (var X = 0, Qt = a.length; X < Qt; X++) v[a[X]] = te[X].offsetWidth, V[a[X]] = te[X].offsetHeight; var en = j(); p.appendChild(O); for (var De = [], ne = 0, tn = i.length; ne < tn; ne++) de(en[i[ne]]) && De.push(i[ne]); p.removeChild(O), p.removeChild(S), e(De); }, Ct = function(e, n) { qt() ? n.plugins.excludeIE ? e(n.EXCLUDED) : e(Bt(n)) : e(Me(n)); }, Me = function(e) { if (navigator.plugins == null) return e.NOT_AVAILABLE; for (var n = [], a = 0, i = navigator.plugins.length; a < i; a++) navigator.plugins[a] && n.push(navigator.plugins[a]); return Ot(e) && (n = n.sort(function(f, d) { return f.name > d.name ? 1 : f.name < d.name ? -1 : 0; })), g(n, function(f) { var d = g(f, function(h) { return [h.type, h.suffixes]; }); return [f.name, f.description, d]; }); }, Bt = function(e) { var n = []; if (Object.getOwnPropertyDescriptor && Object.getOwnPropertyDescriptor(window, "ActiveXObject") || "ActiveXObject" in window) { var a = [ "AcroPDF.PDF", // Adobe PDF reader 7+ "Adodb.Stream", "AgControl.AgControl", // Silverlight "DevalVRXCtrl.DevalVRXCtrl.1", "MacromediaFlashPaper.MacromediaFlashPaper", "Msxml2.DOMDocument", "Msxml2.XMLHTTP", "PDF.PdfCtrl", // Adobe PDF reader 6 and earlier, brrr "QuickTime.QuickTime", // QuickTime "QuickTimeCheckObject.QuickTimeCheck.1", "RealPlayer", "RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)", "RealVideo.RealVideo(tm) ActiveX Control (32-bit)", "Scripting.Dictionary", "SWCtl.SWCtl", // ShockWave player "Shell.UIHelper", "ShockwaveFlash.ShockwaveFlash", // flash plugin "Skype.Detection", "TDCCtl.TDCCtl", "WMPlayer.OCX", // Windows media player "rmocx.RealPlayer G2 Control", "rmocx.RealPlayer G2 Control.1" ]; n = g(a, function(i) { try { return new window.ActiveXObject(i), i; } catch { return e.ERROR; } }); } else n.push(e.NOT_AVAILABLE); return navigator.plugins && (n = n.concat(Me(e))), n; }, Ot = function(e) { for (var n = !1, a = 0, i = e.plugins.sortPluginsFor.length; a < i; a++) { var f = e.plugins.sortPluginsFor[a]; if (navigator.userAgent.match(f)) { n = !0; break; } } return n; }, Mt = function(e) { e(Ft()); }, It = function(e, n) { e(Lt(n)); }, Pt = function(e) { try { return !!window.sessionStorage; } catch { return e.ERROR; } }, Dt = function(e) { try { return !!window.localStorage; } catch { return e.ERROR; } }, Rt = function(e) { try { return !!window.indexedDB; } catch { return e.ERROR; } }, Lt = function(e) { return navigator.hardwareConcurrency ? navigator.hardwareConcurrency : e.NOT_AVAILABLE; }, Nt = function(e) { return navigator.cpuClass || e.NOT_AVAILABLE; }, kt = function(e) { return navigator.platform ? navigator.platform : e.NOT_AVAILABLE; }, _t = function(e) { return navigator.doNotTrack ? navigator.doNotTrack : navigator.msDoNotTrack ? navigator.msDoNotTrack : window.doNotTrack ? window.doNotTrack : e.NOT_AVAILABLE; }, Ft = function() { var e = 0, n; typeof navigator.maxTouchPoints < "u" ? e = navigator.maxTouchPoints : typeof navigator.msMaxTouchPoints < "u" && (e = navigator.msMaxTouchPoints); try { document.createEvent("TouchEvent"), n = !0; } catch { n = !1; } var a = "ontouchstart" in window; return [e, n, a]; }, Ut = function(e) { var n = [], a = document.createElement("canvas"); a.width = 2e3, a.height = 200, a.style.display = "inline"; var i = a.getContext("2d"); return i.rect(0, 0, 10, 10), i.rect(2, 2, 6, 6), n.push("canvas winding:" + (i.isPointInPath(5, 5, "evenodd") === !1 ? "yes" : "no")), i.textBaseline = "alphabetic", i.fillStyle = "#f60", i.fillRect(125, 1, 62, 20), i.fillStyle = "#069", e.dontUseFakeFontInCanvas ? i.font = "11pt Arial" : i.font = "11pt no-real-font-123", i.fillText("Cwm fjordbank glyphs vext quiz, 😃", 2, 15), i.fillStyle = "rgba(102, 204, 0, 0.2)", i.font = "18pt Arial", i.fillText("Cwm fjordbank glyphs vext quiz, 😃", 4, 45), i.globalCompositeOperation = "multiply", i.fillStyle = "rgb(255,0,255)", i.beginPath(), i.arc(50, 50, 50, 0, Math.PI * 2, !0), i.closePath(), i.fill(), i.fillStyle = "rgb(0,255,255)", i.beginPath(), i.arc(100, 50, 50, 0, Math.PI * 2, !0), i.closePath(), i.fill(), i.fillStyle = "rgb(255,255,0)", i.beginPath(), i.arc(75, 100, 50, 0, Math.PI * 2, !0), i.closePath(), i.fill(), i.fillStyle = "rgb(255,0,255)", i.arc(75, 75, 75, 0, Math.PI * 2, !0), i.arc(75, 75, 25, 0, Math.PI * 2, !0), i.fill("evenodd"), a.toDataURL && n.push("canvas fp:" + a.toDataURL()), n; }, Gt = function() { var e, n = function(P) { return e.clearColor(0, 0, 0, 1), e.enable(e.DEPTH_TEST), e.depthFunc(e.LEQUAL), e.clear(e.COLOR_BUFFER_BIT | e.DEPTH_BUFFER_BIT), "[" + P[0] + ", " + P[1] + "]"; }, a = function(P) { var W = P.getExtension("EXT_texture_filter_anisotropic") || P.getExtension("WEBKIT_EXT_texture_filter_anisotropic") || P.getExtension("MOZ_EXT_texture_filter_anisotropic"); if (W) { var H = P.getParameter(W.MAX_TEXTURE_MAX_ANISOTROPY_EXT); return H === 0 && (H = 2), H; } else return null; }; if (e = fe(), !e) return null; var i = [], f = "attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}", d = "precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}", h = e.createBuffer(); e.bindBuffer(e.ARRAY_BUFFER, h); var p = new Float32Array([-0.2, -0.9, 0, 0.4, -0.26, 0, 0, 0.732134444, 0]); e.bufferData(e.ARRAY_BUFFER, p, e.STATIC_DRAW), h.itemSize = 3, h.numItems = 3; var S = e.createProgram(), O = e.createShader(e.VERTEX_SHADER); e.shaderSource(O, f), e.compileShader(O); var v = e.createShader(e.FRAGMENT_SHADER); e.shaderSource(v, d), e.compileShader(v), e.attachShader(S, O), e.attachShader(S, v), e.linkProgram(S), e.useProgram(S), S.vertexPosAttrib = e.getAttribLocation(S, "attrVertex"), S.offsetUniform = e.getUniformLocation(S, "uniformOffset"), e.enableVertexAttribArray(S.vertexPosArray), e.vertexAttribPointer(S.vertexPosAttrib, h.itemSize, e.FLOAT, !1, 0, 0), e.uniform2f(S.offsetUniform, 1, 1), e.drawArrays(e.TRIANGLE_STRIP, 0, h.numItems); try { i.push(e.canvas.toDataURL()); } catch { } i.push("extensions:" + (e.getSupportedExtensions() || []).join(";")), i.push("webgl aliased line width range:" + n(e.getParameter(e.ALIASED_LINE_WIDTH_RANGE))), i.push("webgl aliased point size range:" + n(e.getParameter(e.ALIASED_POINT_SIZE_RANGE))), i.push("webgl alpha bits:" + e.getParameter(e.ALPHA_BITS)), i.push("webgl antialiasing:" + (e.getContextAttributes().antialias ? "yes" : "no")), i.push("webgl blue bits:" + e.getParameter(e.BLUE_BITS)), i.push("webgl depth bits:" + e.getParameter(e.DEPTH_BITS)), i.push("webgl green bits:" + e.getParameter(e.GREEN_BITS)), i.push("webgl max anisotropy:" + a(e)), i.push("webgl max combined texture image units:" + e.getParameter(e.MAX_COMBINED_TEXTURE_IMAGE_UNITS)), i.push("webgl max cube map texture size:" + e.getParameter(e.MAX_CUBE_MAP_TEXTURE_SIZE)), i.push("webgl max fragment uniform vectors:" + e.getParameter(e.MAX_FRAGMENT_UNIFORM_VECTORS)), i.push("webgl max render buffer size:" + e.getParameter(e.MAX_RENDERBUFFER_SIZE)), i.push("webgl max texture image units:" + e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS)), i.push("webgl max texture size:" + e.getParameter(e.MAX_TEXTURE_SIZE)), i.push("webgl max varying vectors:" + e.getParameter(e.MAX_VARYING_VECTORS)), i.push("webgl max vertex attribs:" + e.getParameter(e.MAX_VERTEX_ATTRIBS)), i.push("webgl max vertex texture image units:" + e.getParameter(e.MAX_VERTEX_TEXTURE_IMAGE_UNITS)), i.push("webgl max vertex uniform vectors:" + e.getParameter(e.MAX_VERTEX_UNIFORM_VECTORS)), i.push("webgl max viewport dims:" + n(e.getParameter(e.MAX_VIEWPORT_DIMS))), i.push("webgl red bits:" + e.getParameter(e.RED_BITS)), i.push("webgl renderer:" + e.getParameter(e.RENDERER)), i.push("webgl shading language version:" + e.getParameter(e.SHADING_LANGUAGE_VERSION)), i.push("webgl stencil bits:" + e.getParameter(e.STENCIL_BITS)), i.push("webgl vendor:" + e.getParameter(e.VENDOR)), i.push("webgl version:" + e.getParameter(e.VERSION)); try { var V = e.getExtension("WEBGL_debug_renderer_info"); V && (i.push("webgl unmasked vendor:" + e.getParameter(V.UNMASKED_VENDOR_WEBGL)), i.push("webgl unmasked renderer:" + e.getParameter(V.UNMASKED_RENDERER_WEBGL))); } catch { } return e.getShaderPrecisionFormat && w(["FLOAT", "INT"], function(P) { w(["VERTEX", "FRAGMENT"], function(W) { w(["HIGH", "MEDIUM", "LOW"], function(H) { w(["precision", "rangeMin", "rangeMax"], function(j) { var de = e.getShaderPrecisionFormat(e[W + "_SHADER"], e[H + "_" + P])[j]; j !== "precision" && (j = "precision " + j); var te = ["webgl ", W.toLowerCase(), " shader ", H.toLowerCase(), " ", P.toLowerCase(), " ", j, ":", de].join(""); i.push(te); }); }); }); }), i; }, Vt = function() { try { var e = fe(), n = e.getExtension("WEBGL_debug_renderer_info"); return e.getParameter(n.UNMASKED_VENDOR_WEBGL) + "~" + e.getParameter(n.UNMASKED_RENDERER_WEBGL); } catch { return null; } }, Ht = function() { var e = document.createElement("div"); e.innerHTML = "&nbsp;", e.className = "adsbox"; var n = !1; try { document.body.appendChild(e), n = document.getElementsByClassName("adsbox")[0].offsetHeight === 0, document.body.removeChild(e); } catch { n = !1; } return n; }, Kt = function() { if (typeof navigator.languages < "u") try { var e = navigator.languages[0].substr(0, 2); if (e !== navigator.language.substr(0, 2)) return !0; } catch { return !0; } return !1; }, Wt = function() { return window.screen.width < window.screen.availWidth || window.screen.height < window.screen.availHeight; }, jt = function() { var e = navigator.userAgent.toLowerCase(), n = navigator.oscpu, a = navigator.platform.toLowerCase(), i; e.indexOf("windows phone") >= 0 ? i = "Windows Phone" : e.indexOf("win") >= 0 ? i = "Windows" : e.indexOf("android") >= 0 ? i = "Android" : e.indexOf("linux") >= 0 || e.indexOf("cros") >= 0 ? i = "Linux" : e.indexOf("iphone") >= 0 || e.indexOf("ipad") >= 0 ? i = "iOS" : e.indexOf("mac") >= 0 ? i = "Mac" : i = "Other"; var f = "ontouchstart" in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0; if (f && i !== "Windows Phone" && i !== "Android" && i !== "iOS" && i !== "Other") return !0; if (typeof n < "u") { if (n = n.toLowerCase(), n.indexOf("win") >= 0 && i !== "Windows" && i !== "Windows Phone") return !0; if (n.indexOf("linux") >= 0 && i !== "Linux" && i !== "Android") return !0; if (n.indexOf("mac") >= 0 && i !== "Mac" && i !== "iOS") return !0; if ((n.indexOf("win") === -1 && n.indexOf("linux") === -1 && n.indexOf("mac") === -1) != (i === "Other")) return !0; } if (a.indexOf("win") >= 0 && i !== "Windows" && i !== "Windows Phone") return !0; if ((a.indexOf("linux") >= 0 || a.indexOf("android") >= 0 || a.indexOf("pike") >= 0) && i !== "Linux" && i !== "Android") return !0; if ((a.indexOf("mac") >= 0 || a.indexOf("ipad") >= 0 || a.indexOf("ipod") >= 0 || a.indexOf("iphone") >= 0) && i !== "Mac" && i !== "iOS") return !0; var d = a.indexOf("win") < 0 && a.indexOf("linux") < 0 && a.indexOf("mac") < 0 && a.indexOf("iphone") < 0 && a.indexOf("ipad") < 0; return d !== (i === "Other") ? !0 : typeof navigator.plugins > "u" && i !== "Windows" && i !== "Windows Phone"; }, Xt = function() { var e = navigator.userAgent.toLowerCase(), n = navigator.productSub, a; if (e.indexOf("firefox") >= 0 ? a = "Firefox" : e.indexOf("opera") >= 0 || e.indexOf("opr") >= 0 ? a = "Opera" : e.indexOf("chrome") >= 0 ? a = "Chrome" : e.indexOf("safari") >= 0 ? a = "Safari" : e.indexOf("trident") >= 0 ? a = "Internet Explorer" : a = "Other", (a === "Chrome" || a === "Safari" || a === "Opera") && n !== "20030107") return !0; var i = eval.toString().length; if (i === 37 && a !== "Safari" && a !== "Firefox" && a !== "Other") return !0; if (i === 39 && a !== "Internet Explorer" && a !== "Other") return !0; if (i === 33 && a !== "Chrome" && a !== "Opera" && a !== "Other") return !0; var f; try { throw "a"; } catch (d) { try { d.toSource(), f = !0; } catch { f = !1; } } return f && a !== "Firefox" && a !== "Other"; }, Ie = function() { var e = document.createElement("canvas"); return !!(e.getContext && e.getContext("2d")); }, Pe = function() { if (!Ie()) return !1; var e = fe(); return !!window.WebGLRenderingContext && !!e; }, qt = function() { return navigator.appName === "Microsoft Internet Explorer" ? !0 : !!(navigator.appName === "Netscape" && /Trident/.test(navigator.userAgent)); }, zt = function() { return typeof window.swfobject < "u"; }, $t = function() { return window.swfobject.hasFlashPlayerVersion("9.0.0"); }, Zt = function(e) { var n = document.createElement("div"); n.setAttribute("id", e.fonts.swfContainerId), document.body.appendChild(n); }, Jt = function(e, n) { var a = "___fp_swf_loaded"; window[a] = function(h) { e(h); }; var i = n.fonts.swfContainerId; Zt(); var f = { onReady: a }, d = { allowScriptAccess: "always", menu: "false" }; window.swfobject.embedSWF(n.fonts.swfPath, i, "1", "1", "9.0.0", !1, f, d, {}); }, fe = function() { var e = document.createElement("canvas"), n = null; try { n = e.getContext("webgl") || e.getContext("experimental-webgl"); } catch { } return n || (n = null), n; }, Yt = [ { key: "userAgent", getData: b }, { key: "webdriver", getData: A }, { key: "language", getData: B }, { key: "colorDepth", getData: U }, { key: "deviceMemory", getData: _ }, { key: "pixelRatio", getData: K }, { key: "hardwareConcurrency", getData: It }, { key: "screenResolution", getData: ue }, { key: "availableScreenResolution", getData: le }, { key: "timezoneOffset", getData: ot }, { key: "timezone", getData: st }, { key: "sessionStorage", getData: ut }, { key: "localStorage", getData: ct }, { key: "indexedDb", getData: lt }, { key: "addBehavior", getData: ft }, { key: "openDatabase", getData: dt }, { key: "cpuClass", getData: gt }, { key: "platform", getData: ht }, { key: "doNotTrack", getData: pt }, { key: "plugins", getData: Ct }, { key: "canvas", getData: vt }, { key: "webgl", getData: mt }, { key: "webglVendorAndRenderer", getData: wt }, { key: "adBlock", getData: yt }, { key: "hasLiedLanguages", getData: Tt }, { key: "hasLiedResolution", getData: St }, { key: "hasLiedOs", getData: Et }, { key: "hasLiedBrowser", getData: At }, { key: "touchSupport", getData: Mt }, { key: "fonts", getData: bt, pauseBefore: !0 }, { key: "fontsFlash", getData: xt, pauseBefore: !0 }, { key: "audio", getData: x }, { key: "enumerateDevices", getData: M } ], G = function(e) { throw new Error("'new Fingerprint()' is deprecated, see https://github.com/Valve/fingerprintjs2#upgrade-guide-from-182-to-200"); }; return G.get = function(e, n) { n ? e || (e = {}) : (n = e, e = {}), m(e, E), e.components = e.extraComponents.concat(Yt); var a = { data: [], addPreprocessedComponent: function(d, h) { typeof e.preprocessor == "function" && (h = e.preprocessor(d, h)), a.data.push({ key: d, value: h }); } }, i = -1, f = function(d) { if (i += 1, i >= e.components.length) { n(a.data); return; } var h = e.components[i]; if (e.excludes[h.key]) { f(!1); return; } if (!d && h.pauseBefore) { i -= 1, setTimeout(function() { f(!0); }, 1); return; } try { h.getData(function(p) { a.addPreprocessedComponent(h.key, p), f(!1); }, e); } catch (p) { a.addPreprocessedComponent(h.key, String(p)), f(!1); } }; f(!1); }, G.getPromise = function(e) { return new Promise(function(n, a) { G.get(e, n); }); }, G.getV18 = function(e, n) { return n == null && (n = e, e = {}), G.get(e, function(a) { for (var i = [], f = 0; f < a.length; f++) { var d = a[f]; if (d.value === (e.NOT_AVAILABLE || "not available")) i.push({ key: d.key, value: "unknown" }); else if (d.key === "plugins")