@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
31 lines • 50.8 kB
JavaScript
(function(U,q){typeof exports=="object"&&typeof module<"u"?q(exports):typeof define=="function"&&define.amd?define(["exports"],q):(U=typeof globalThis<"u"?globalThis:U||self,q(U.SumsubFisherman={}))})(this,function(U){"use strict";var et;function q(){return Date.now()}function ot(){return new Date().toISOString()}const st="crypto"in window&&"randomUUID"in window.crypto;function ut(){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 ct(){return st?crypto.randomUUID():ut()}const lt={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 ft(t,r,o,s,u){const c=await fetch(`${o}${s}`,{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json","X-Access-Token":r,"X-Client-Id":"fisherman"}});u(c.status,t)}async function dt({payload:t,token:r,baseUrl:o,path:s}){return fetch(`${o}${s}`,{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json","X-Access-Token":r,"X-Client-Id":"fisherman"}})}const gt=2e3,ht=atob("aHR0cHM6Ly9jb2NrcGl0LnN1bXN1Yi5jb20="),Pe=`/resources/bhv/evts/${Math.random().toString(36).substring(0,8)}`,De="/resources/di/req";let _,le,Re,Y,R,fe,de,ge=Pe,he=De;function pt(t){_=t,ee(_.token)}function vt(t){t&&(ge=t)}function mt(t){t&&(he=t)}function wt(){Le(),Re=void 0,ee(void 0),le=void 0,ge=Pe,he=De}async function Q(t,r){return await Tt(yt(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 yt(t,r={},o=!0){t.capturedAt=ot();const s=ct(),u="deviceFingerprint"in t||!o,c={id:s,predecessorEventId:le,deviceSessionId:Re,...r,[u?"initData":"interactionData"]:t};return le=s,c}async function Tt(t,r){R===void 0&&(R=[]),!fe&&t.initData?(fe=!0,R.unshift(t)):R.push(t),fe&&(de||(de=setTimeout(Ne,gt)))}function Le(){R=void 0,de=void 0}async function Ne(){if(R!=null&&R.length&&Y){const t=[...R];Le(),await ft(t,Y,pe(),ge,At)}}function pe(){return _.baseUrl!==void 0?_.baseUrl:ht}async function St(){if(_.accessTokenUpdateHandler){const t=await _.accessTokenUpdateHandler();ee(t)}}async function Et(t){await St(),R===void 0&&(R=[]),R.unshift(...t),await Ne()}async function At(t,r){t===401&&(_.accessTokenUpdateHandler?await Et(r):ee(void 0),_.onError&&_.onError(lt))}async function ke(t){if(Y)return dt({payload:t,token:Y,baseUrl:pe(),path:he})}function ee(t){Y=t}const _e="focus";let re,Fe=0;function xt(){re=()=>{Fe++,Q({event:"focus",count:Fe})},window.addEventListener(_e,re)}function bt(){re&&window.removeEventListener(_e,re)}function Ct(t){if(t.target instanceof Element){const r=t.target,o=r.getAttribute("type"),s=o?`[${o}]`:"",u=r.id?`#${r.id}`:"";return`${r.tagName}${s}${u}`}}const Bt=["Alt","Control","Meta","Shift","Enter","Tab","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","Backspace","Delete","Escape"];function Ot(t){if(Bt.includes(t))return t}function Mt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ae={exports:{}},It=ae.exports,Ue;function Pt(){return Ue||(Ue=1,function(t){(function(r,o,s){t.exports?t.exports=s():o.exports?o.exports=s():o[r]=s()})("Fingerprint2",It,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]]},s=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])},u=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=s(h,31),h=o(h,O),f=c(f,h),f=s(f,27),f=r(f,d),f=r(o(f,[0,5]),[0,1390208809]),p=o(p,O),p=s(p,33),p=o(p,S),d=c(d,p),d=s(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,u([0,e.charCodeAt(v+14)],48));case 14:p=c(p,u([0,e.charCodeAt(v+13)],40));case 13:p=c(p,u([0,e.charCodeAt(v+12)],32));case 12:p=c(p,u([0,e.charCodeAt(v+11)],24));case 11:p=c(p,u([0,e.charCodeAt(v+10)],16));case 10:p=c(p,u([0,e.charCodeAt(v+9)],8));case 9:p=c(p,[0,e.charCodeAt(v+8)]),p=o(p,O),p=s(p,33),p=o(p,S),d=c(d,p);case 8:h=c(h,u([0,e.charCodeAt(v+7)],56));case 7:h=c(h,u([0,e.charCodeAt(v+6)],48));case 6:h=c(h,u([0,e.charCodeAt(v+5)],40));case 5:h=c(h,u([0,e.charCodeAt(v+4)],32));case 4:h=c(h,u([0,e.charCodeAt(v+3)],24));case 3:h=c(h,u([0,e.charCodeAt(v+2)],16));case 2:h=c(h,u([0,e.charCodeAt(v+1)],8));case 1:h=c(h,[0,e.charCodeAt(v)]),h=o(h,S),h=s(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,excludeIOS11:!0},fonts:{swfContainerId:"fingerprintjs2",swfPath:"flash/compiled/FontList.swf",userDefinedFonts:[],extendedJsFonts:!1},screen:{detectScreenOrientation:!0},plugins:{sortPluginsFor:[/palemoon/i],excludeIE:!1},extraComponents:[],excludes:{enumerateDevices:!0,pixelRatio:!0,doNotTrack:!0,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",.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,H){return v+Math.abs(H)},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)},G=function(e,n){e(window.screen.colorDepth||n.NOT_AVAILABLE)},F=function(e,n){e(navigator.deviceMemory||n.NOT_AVAILABLE)},j=function(e,n){e(window.devicePixelRatio||n.NOT_AVAILABLE)},be=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},Be=function(e,n){e(Kn(n))},Kn=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},jn=function(e){e(new Date().getTimezoneOffset())},Wn=function(e,n){if(window.Intl&&window.Intl.DateTimeFormat){e(new window.Intl.DateTimeFormat().resolvedOptions().timeZone);return}e(n.NOT_AVAILABLE)},Xn=function(e,n){e(pr(n))},qn=function(e,n){e(vr(n))},zn=function(e,n){e(mr(n))},$n=function(e){e(!!(document.body&&document.body.addBehavior))},Zn=function(e){e(!!window.openDatabase)},Jn=function(e,n){e(yr(n))},Yn=function(e,n){e(Tr(n))},Qn=function(e,n){e(Sr(n))},er=function(e,n){if(nt()){e(Ar(n));return}e(n.NOT_AVAILABLE)},tr=function(e,n){if(rt()){e(xr());return}e(n.NOT_AVAILABLE)},nr=function(e){if(rt()){e(br());return}e()},rr=function(e){e(Cr())},ar=function(e){e(Br())},ir=function(e){e(Or())},or=function(e){e(Mr())},sr=function(e){e(Ir())},ur=function(e,n){if(!Dr())return e("swf object not loaded");if(!Rr())return e("flash not installed");if(!n.fonts.swfPath)return e("missing options.fonts.swfPath");Nr(function(a){e(a)},n)},cr=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={},H={},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},K=function(){for(var T=[],I=0,D=a.length;I<D;I++){var J=P();J.style.fontFamily=a[I],S.appendChild(J),T.push(J)}return T},X=function(){for(var T={},I=0,D=i.length;I<D;I++){for(var J=[],Ie=0,Gr=a.length;Ie<Gr;Ie++){var it=W(i[I],a[Ie]);O.appendChild(it),J.push(it)}T[i[I]]=J}return T},Me=function(T){for(var I=!1,D=0;D<a.length;D++)if(I=T[D].offsetWidth!==v[a[D]]||T[D].offsetHeight!==H[a[D]],I)return I;return I},ue=K();p.appendChild(S);for(var Z=0,_r=a.length;Z<_r;Z++)v[a[Z]]=ue[Z].offsetWidth,H[a[Z]]=ue[Z].offsetHeight;var Fr=X();p.appendChild(O);for(var at=[],ce=0,Ur=i.length;ce<Ur;ce++)Me(Fr[i[ce]])&&at.push(i[ce]);p.removeChild(O),p.removeChild(S),e(at)},lr=function(e,n){Pr()?n.plugins.excludeIE?e(n.EXCLUDED):e(fr(n)):e(tt(n))},tt=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 dr(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]})},fr=function(e){var n=[];if(Object.getOwnPropertyDescriptor&&Object.getOwnPropertyDescriptor(window,"ActiveXObject")||"ActiveXObject"in window){var a=["AcroPDF.PDF","Adodb.Stream","AgControl.AgControl","DevalVRXCtrl.DevalVRXCtrl.1","MacromediaFlashPaper.MacromediaFlashPaper","Msxml2.DOMDocument","Msxml2.XMLHTTP","PDF.PdfCtrl","QuickTime.QuickTime","QuickTimeCheckObject.QuickTimeCheck.1","RealPlayer","RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)","RealVideo.RealVideo(tm) ActiveX Control (32-bit)","Scripting.Dictionary","SWCtl.SWCtl","Shell.UIHelper","ShockwaveFlash.ShockwaveFlash","Skype.Detection","TDCCtl.TDCCtl","WMPlayer.OCX","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(tt(e))),n},dr=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},gr=function(e){e(Er())},hr=function(e,n){e(wr(n))},pr=function(e){try{return!!window.sessionStorage}catch{return e.ERROR}},vr=function(e){try{return!!window.localStorage}catch{return e.ERROR}},mr=function(e){try{return!!window.indexedDB}catch{return e.ERROR}},wr=function(e){return navigator.hardwareConcurrency?navigator.hardwareConcurrency:e.NOT_AVAILABLE},yr=function(e){return navigator.cpuClass||e.NOT_AVAILABLE},Tr=function(e){return navigator.platform?navigator.platform:e.NOT_AVAILABLE},Sr=function(e){return navigator.doNotTrack?navigator.doNotTrack:navigator.msDoNotTrack?navigator.msDoNotTrack:window.doNotTrack?window.doNotTrack:e.NOT_AVAILABLE},Er=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]},Ar=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},xr=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 K=P.getParameter(W.MAX_TEXTURE_MAX_ANISOTROPY_EXT);return K===0&&(K=2),K}else return null};if(e=Oe(),!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([-.2,-.9,0,.4,-.26,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 H=e.getExtension("WEBGL_debug_renderer_info");H&&(i.push("webgl unmasked vendor:"+e.getParameter(H.UNMASKED_VENDOR_WEBGL)),i.push("webgl unmasked renderer:"+e.getParameter(H.UNMASKED_RENDERER_WEBGL)))}catch{}return e.getShaderPrecisionFormat&&w(["FLOAT","INT"],function(P){w(["VERTEX","FRAGMENT"],function(W){w(["HIGH","MEDIUM","LOW"],function(K){w(["precision","rangeMin","rangeMax"],function(X){var Me=e.getShaderPrecisionFormat(e[W+"_SHADER"],e[K+"_"+P])[X];X!=="precision"&&(X="precision "+X);var ue=["webgl ",W.toLowerCase()," shader ",K.toLowerCase()," ",P.toLowerCase()," ",X,":",Me].join("");i.push(ue)})})})}),i},br=function(){try{var e=Oe(),n=e.getExtension("WEBGL_debug_renderer_info");return e.getParameter(n.UNMASKED_VENDOR_WEBGL)+"~"+e.getParameter(n.UNMASKED_RENDERER_WEBGL)}catch{return null}},Cr=function(){var e=document.createElement("div");e.innerHTML=" ",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},Br=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},Or=function(){return window.screen.width<window.screen.availWidth||window.screen.height<window.screen.availHeight},Mr=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"},Ir=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"},nt=function(){var e=document.createElement("canvas");return!!(e.getContext&&e.getContext("2d"))},rt=function(){if(!nt())return!1;var e=Oe();return!!window.WebGLRenderingContext&&!!e},Pr=function(){return navigator.appName==="Microsoft Internet Explorer"?!0:!!(navigator.appName==="Netscape"&&/Trident/.test(navigator.userAgent))},Dr=function(){return typeof window.swfobject<"u"},Rr=function(){return window.swfobject.hasFlashPlayerVersion("9.0.0")},Lr=function(e){var n=document.createElement("div");n.setAttribute("id",e.fonts.swfContainerId),document.body.appendChild(n)},Nr=function(e,n){var a="___fp_swf_loaded";window[a]=function(h){e(h)};var i=n.fonts.swfContainerId;Lr();var f={onReady:a},d={allowScriptAccess:"always",menu:"false"};window.swfobject.embedSWF(n.fonts.swfPath,i,"1","1","9.0.0",!1,f,d,{})},Oe=function(){var e=document.createElement("canvas"),n=null;try{n=e.getContext("webgl")||e.getContext("experimental-webgl")}catch{}return n||(n=null),n},kr=[{key:"userAgent",getData:b},{key:"webdriver",getData:A},{key:"language",getData:B},{key:"colorDepth",getData:G},{key:"deviceMemory",getData:F},{key:"pixelRatio",getData:j},{key:"hardwareConcurrency",getData:hr},{key:"screenResolution",getData:be},{key:"availableScreenResolution",getData:Be},{key:"timezoneOffset",getData:jn},{key:"timezone",getData:Wn},{key:"sessionStorage",getData:Xn},{key:"localStorage",getData:qn},{key:"indexedDb",getData:zn},{key:"addBehavior",getData:$n},{key:"openDatabase",getData:Zn},{key:"cpuClass",getData:Jn},{key:"platform",getData:Yn},{key:"doNotTrack",getData:Qn},{key:"plugins",getData:lr},{key:"canvas",getData:er},{key:"webgl",getData:tr},{key:"webglVendorAndRenderer",getData:nr},{key:"adBlock",getData:rr},{key:"hasLiedLanguages",getData:ar},{key:"hasLiedResolution",getData:ir},{key:"hasLiedOs",getData:or},{key:"hasLiedBrowser",getData:sr},{key:"touchSupport",getData:gr},{key:"fonts",getData:cr,pauseBefore:!0},{key:"fontsFlash",getData:ur,pauseBefore:!0},{key:"audio",getData:x},{key:"enumerateDevices",getData:M}],V=function(e){throw new Error("'new Fingerprint()' is deprecated, see https://github.com/Valve/fingerprintjs2#upgrade-guide-from-182-to-200")};return V.get=function(e,n){n?e||(e={}):(n=e,e={}),m(e,E),e.components=e.extraComponents.concat(kr);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)},V.getPromise=function(e){return new Promise(function(n,a){V.get(e,n)})},V.getV18=function(e,n){return n==null&&(n=e,e={}),V.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")i.push({key:"plugins",value:g(d.value,function(p){var S=g(p[2],function(O){return O.join?O.join("~"):O}).join(",");return[p[0],p[1],S].join("::")})});else if(["canvas","webgl"].indexOf(d.key)!==-1)i.push({key:d.key,value:d.value.join("~")});else if(["sessionStorage","localStorage","indexedDb","addBehavior","openDatabase"].indexOf(d.key)!==-1)if(d.value)i.push({key:d.key,value:1});else continue;else d.value?i.push(d.value.join?{key:d.key,value:d.value.join(";")}:d):i.push({key:d.key,value:d.value})}var h=y(g(i,function(p){return p.value}).join("~~~"),31);n(h,i)})},V.x64hash128=y,V.VERSION="2.1.0",V})}(ae)),ae.exports}var Dt=Pt();const ie=Mt(Dt);function Ge(t){return t instanceof Element}const z=typeof window.WeakMap=="function"?new WeakMap:void 0;function Rt(t){return z==null?void 0:z.get(t)}function Lt(t,r){z==null||z.set(t,r)}const Nt=["type","autocomplete","autofocus","placeholder","aria-label"];function kt(t){const r=t.parentNode,o=t.tagName;if(r){const s=Array.from(r.childNodes).filter(u=>Ge(u)&&o===u.tagName);if(s.length>1){const u=s.indexOf(t);if(u>-1)return`:nth-of-type(${u+1})`}}return""}function _t(t){const r=t.id?`#${t.id}`:"",o=kt(t),s=Nt.map(u=>{if(t.hasAttribute(u)){const c=t.getAttribute(u);return`[${c?`${u}="${c}"`:u}]`}}).filter(Boolean).join("");return t.tagName+r+o+s}function Ft(t){const r=[t];let o=t;for(;o.parentElement;){const u=o.parentElement;r.push(u),o=u}const s=r.reverse().map(_t).join(" > ");return ie.x64hash128(s,31)}function Ut(t){if(Ge(t.target)){const r=t.target;let o=Rt(r);return o||(o=Ft(r),Lt(r,o)),o}}const Ve=["keydown","keyup"],He=["mousemove","mousedown"],Ke=["paste","focusin","change",...He,...Ve];let L,N;function je(){L=new Map,N=[]}function Gt(t){let r;return t.type==="change"&&(N&&(N==null?void 0:N.length)>0&&(r=N),je()),r}function Vt({key:t}){L&&L.get(t)===void 0&&L.set(t,q())}function Ht({key:t}){const r=L==null?void 0:L.get(t);if(L&&r){N===void 0&&(N=[]),L.delete(t);const o={start:r,end:q()},s=Ot(t);s&&(o.key=s),N.push(o)}}function ve(t){const r=t.type;if(r==="keydown"?Vt(t):r==="keyup"&&Ht(t),!Ve.includes(r)){const o={event:r,trusted:t.isTrusted,el:Ct(t),elUid:Ut(t),cadence:Gt(t)};Q(o)}He.includes(r)&&document.removeEventListener(r,ve)}function Kt(){je(),Ke.forEach(t=>document.addEventListener(t,ve))}function jt(){Ke.forEach(t=>document.removeEventListener(t,ve)),L=void 0,N=void 0}const We="deviceorientation";let $;function Wt(t){const r=t.alpha!==null?t.alpha:0,o=t.beta!==null?t.beta:0,s=t.gamma!==null?t.gamma:0,u=Math.abs(o)>Math.abs(s)?"portrait":"landscape";return{alpha:r,beta:o,gamma:s,orientation:u}}async function Xt(){if(!$){const t="DeviceOrientationEvent"in window;return t&&($=r=>{Q({event:"orientation",orientation:Wt(r)}),Xe()},window.addEventListener(We,$)),{supported:t}}}function Xe(){$&&(window.removeEventListener(We,$),$=void 0)}const qt="not available",zt=["userAgent","webdriver","language","colorDepth","deviceMemory","pixelRatio","hardwareConcurrency","timezoneOffset","timezone","sessionStorage","localStorage","indexedDb","openDatabase","platform","doNotTrack","plugins","canvas","webgl","webglVendorAndRenderer","adBlock","hasLiedOs","hasLiedBrowser","touchSupport","fonts","audio"],me=200,$t=(t,r)=>{switch(t){case"touchSupport":return Qt(r);case"plugins":return Yt(r);case"webgl":case"canvas":return en(r);default:return Zt(r)}},Zt=t=>typeof t=="string"?qe(t):Array.isArray(t)?Jt(t):t,qe=t=>t.length>me?ze(t):t,Jt=t=>((t==null?void 0:t.length)>me&&t.splice(0,me),t.map(r=>typeof r=="string"?qe(r):r)),Yt=t=>{if(Array.isArray(t)&&t.length>0)return t.map(r=>Array.isArray(r)?r[0]:"")},Qt=t=>{if((t==null?void 0:t.length)===3)try{return{maxTouchPoints:Number(t[0]),touchEvent:!!t[1],touchStart:!!t[2]}}catch{return}},ze=t=>ie.x64hash128(t,31),en=t=>{if(t)return ze(t.toString())},tn=500;async function $e(t){const r=await rn(),o=[];r.forEach(({key:s,value:u})=>{if(o.push(u),zt.includes(s)&&u!==qt){const c=$t(s,u);c!==void 0&&(t[s]=c)}}),t.deviceFingerprint=ie.x64hash128(o.join(""),31)}async function nn(t){return new Promise((r,o)=>{typeof window.requestIdleCallback=="function"?requestIdleCallback(async()=>{r(await $e(t))}):setTimeout(async()=>{r(await $e(t))},tn)})}function rn(){return new Promise(t=>ie.get(t))}function te(){return navigator instanceof window.Navigator}async function an(t){var r;return!!(te()&&typeof((r=navigator.permissions)==null?void 0:r.query)=="function"&&(await navigator.permissions.query({name:t})).state==="granted")}async function on(){return new Promise(t=>{navigator.geolocation.getCurrentPosition(r=>{const o=r.coords.latitude,s=r.coords.longitude;t(`${o}:${s}`)},()=>{t("unknown")})})}async function sn(){const t=await an("geolocation"),r={permissionGranted:t};return te()&&t&&navigator.geolocation&&(r.location=await on()),r}async function un(){if(te()&&"getBattery"in navigator&&typeof navigator.getBattery=="function"){const t=await navigator.getBattery();if(t)return{level:t.level,charging:t.charging}}}async function cn(){var t;if(te()&&typeof((t=navigator.mediaDevices)==null?void 0:t.enumerateDevices)=="function")return(await navigator.mediaDevices.enumerateDevices()).map(({kind:o,label:s,deviceId:u,groupId:c})=>({kind:o,label:s||void 0,deviceId:u||void 0,groupId:c||void 0}))}function ln(){let t;try{throw"a"}catch(r){try{r.toSource(),t=!0}catch{t=!1}}return t}/*!
*
* detectIncognito v1.3.5
*
* https://github.com/Joe12387/detectIncognito
*
* MIT License
*
* Copyright (c) 2021 - 2024 Joe Rutkowski <Joe@dreggle.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*
* Please keep this comment intact in order to properly abide by the MIT License.
*
**/var we={d:(t,r)=>{for(var o in r)we.o(r,o)&&!we.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:r[o]})},o:(t,r)=>Object.prototype.hasOwnProperty.call(t,r)},ye={};we.d(ye,{A:()=>gn,k:()=>Te});var fn=function(t,r,o,s){return new(o||(o=Promise))(function(u,c){function l(w){try{E(s.next(w))}catch(g){c(g)}}function y(w){try{E(s.throw(w))}catch(g){c(g)}}function E(w){var g;w.done?u(w.value):(g=w.value,g instanceof o?g:new o(function(m){m(g)})).then(l,y)}E((s=s.apply(t,[])).next())})},dn=function(t,r){var o,s,u,c,l={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]};return c={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function y(E){return function(w){return function(g){if(o)throw new TypeError("Generator is already executing.");for(;c&&(c=0,g[0]&&(l=0)),l;)try{if(o=1,s&&(u=2&g[0]?s.return:g[0]?s.throw||((u=s.return)&&u.call(s),0):s.next)&&!(u=u.call(s,g[1])).done)return u;switch(s=0,u&&(g=[2&g[0],u.value]),g[0]){case 0:case 1:u=g;break;case 4:return l.label++,{value:g[1],done:!1};case 5:l.label++,s=g[1],g=[0];continue;case 7:g=l.ops.pop(),l.trys.pop();continue;default:if(u=l.trys,!((u=u.length>0&&u[u.length-1])||g[0]!==6&&g[0]!==2)){l=0;continue}if(g[0]===3&&(!u||g[1]>u[0]&&g[1]<u[3])){l.label=g[1];break}if(g[0]===6&&l.label<u[1]){l.label=u[1],u=g;break}if(u&&l.label<u[2]){l.label=u[2],l.ops.push(g);break}u[2]&&l.ops.pop(),l.trys.pop();continue}g=r.call(t,l)}catch(m){g=[6,m],s=0}finally{o=u=0}if(5&g[0])throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}([E,w])}}};function Te(){return fn(this,void 0,Promise,function(){return dn(this,function(t){switch(t.label){case 0:return[4,new Promise(function(r,o){var s,u,c="Unknown";function l(m){r({isPrivate:m,browserName:c})}function y(m){return m===eval.toString().length}function E(){navigator.maxTouchPoints!==void 0?function(){var m=String(Math.random());try{window.indexedDB.open(m,1).onupgradeneeded=function(M){var C,x,b=(C=M.target)===null||C===void 0?void 0:C.result;try{b.createObjectStore("test",{autoIncrement:!0}).put(new Blob),l(!1)}catch(B){var A=B;return B instanceof Error&&(A=(x=B.message)!==null&&x!==void 0?x:B),typeof A!="string"?void l(!1):void l(A.includes("BlobURLs are not yet supported"))}finally{b.close(),window.indexedDB.deleteDatabase(m)}}}catch{l(!1)}}():function(){var m=window.openDatabase,M=window.localStorage;try{m(null,null,null,null)}catch{return void l(!0)}try{M.setItem("test","1"),M.removeItem("test")}catch{return void l(!0)}l(!1)}()}function w(){navigator.webkitTemporaryStorage.queryUsageAndQuota(function(m,M){var C;l(Math.round(M/1048576)<2*Math.round(((C=window).performance!==void 0&&C.performance.memory!==void 0&&C.performance.memory.jsHeapSizeLimit!==void 0?performance.memory.jsHeapSizeLimit:1073741824)/1048576))},function(m){o(new Error("detectIncognito somehow failed to query storage quota: "+m.message))})}function g(){self.Promise!==void 0&&self.Promise.allSettled!==void 0?w():(0,window.webkitRequestFileSystem)(0,1,function(){l(!1)},function(){l(!0)})}(u=navigator.vendor)!==void 0&&u.indexOf("Apple")===0&&y(37)?(c="Safari",E()):function(){var m=navigator.vendor;return m!==void 0&&m.indexOf("Google")===0&&y(33)}()?(s=navigator.userAgent,c=s.match(/Chrome/)?navigator.brave!==void 0?"Brave":s.match(/Edg/)?"Edge":s.match(/OPR/)?"Opera":"Chrome":"Chromium",g()):document.documentElement!==void 0&&document.documentElement.style.MozAppearance!==void 0&&y(37)?(c="Firefox",l(navigator.serviceWorker===void 0)):navigator.msSaveBlob!==void 0&&y(39)?(c="Internet Explorer",l(window.indexedDB===void 0)):o(new Error("detectIncognito cannot determine the browser"))})];case 1:return[2,t.sent()]}})})}typeof window<"u"&&(window.detectIncognito=Te);const gn=Te;var hn=ye.A;ye.k;const pn="notDetected";async function vn(){try{return await hn()}catch{return{browserName:pn}}}async function mn(){var w;const t={},{width:r,height:o,availWidth:s,availHeight:u}=window.screen;t.width=r,t.height=o,t.availableWidth=s,t.availableHeight=u,await nn(t);const c=await vn();if(t.browser=c.browserName,t.incognito=c.isPrivate,te()&&"userAgentData"in navigator){const g=navigator.userAgentData;t.mobile=g==null?void 0:g.mobile}(w=navigator.languages)!=null&&w.length&&(t.languages=[...navigator.languages]),t.geolocation=await sn();const l=await un();l&&(t.battery=l);const y=await cn();y&&(t.mediaDevices=y);const E=await Xt();E&&(t.orientation=E),t.oscpu=navigator.oscpu,t.productSub=navigator.productSub,t.evalLength=eval.toString().length,t.errFirefox=ln(),Q(t)}const Ze="navigate";let ne,Se;const wn=typeof((et=window.navigation)==null?void 0:et.addEventListener)=="function";function yn(){var t;wn&&(ne=()=>{const r=Sn();r!==Se&&(Se=r,Q({event:"urlchanged"}))},(t=window.navigation)==null||t.addEventListener(Ze,ne))}function Tn(){var t;ne&&((t=window.navigation)==null||t.removeEventListener(Ze,ne),ne=void 0,Se=void 0)}function Sn(){return window.location.href}var oe=function(){return oe=Object.assign||function(r){for(var o,s=1,u=arguments.length;s<u;s++){o=arguments[s];for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(r[c]=o[c])}return r},oe.apply(this,arguments)};function En(t,r){var o={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&r.indexOf(s)<0&&(o[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,s=Object.getOwnPropertySymbols(t);u<s.length;u++)r.indexOf(s[u])<0&&Object.prototype.propertyIsEnumerable.call(t,s[u])&&(o[s[u]]=t[s[u]]);return o}function An(t,r,o){if(o||arguments.length===2)for(var s=0,u=r.length,c;s<u;s++)(c||!(s in r))&&(c||(c=Array.prototype.slice.call(r,0,s)),c[s]=r[s]);return t.concat(c||Array.prototype.slice.call(r))}typeof SuppressedError=="function"&&SuppressedError;function xn(t,r){return function(o,s){return Object.prototype.hasOwnProperty.call(o,s)}(t,r)?t[r]:void 0}function bn(t,r,o,s){var u,c=document,l="securitypolicyviolation",y=function(w){var g=new URL(t,location.href),m=w.blockedURI;m!==g.href&&m!==g.protocol.slice(0,-1)&&m!==g.origin||(u=w,E())};c.addEventListener(l,y);var E=function(){return c.removeEventListener(l,y)};return Promise.resolve().then(r).then(function(w){return E(),w},function(w){return new Promise(function(g){var m=new MessageChannel;m.port1.onmessage=function(){return g()},m.port2.postMessage(null)}).then(function(){if(E(),u)return o(u);throw w})})}var Je="Blocked by CSP",Ye="The endpoint parameter is not a valid URL",Cn="API key required",Bn="3.11.8",Ee="Failed to load the JS script of the agent",Ae="9319";function On(t,r){var o,s,u,c,l,y,E,w=[],g=(o=function(x){var b=An([],x,!0);return{current:function(){return b[0]},postpone:function(){var A=b.shift();A!==void 0&&b.push(A)},exclude:function(){b.shift()}}}(t),c=100,l=3e3,y=0,s=function(){return Math.random()*Math.min(l,c*Math.pow(2,y++))},u=new Set,[o.current(),function(x,b){var A,B=b instanceof Error?b.message:"";if(B===Je||B===Ye)o.exclude(),A=0;else if(B===Ae)o.exclude();else if(B===Ee){var G=Date.now()-x.getTime()<50,F=o.current();F&&G&&!u.has(F)&&(u.add(F),A=0),o.postpone()}else o.postpone();var j=o.current();return j===void 0?void 0:[j,A??x.getTime()+s()-Date.now()]}]),m=g[0],M=g[1];if(m===void 0)return Promise.reject(new TypeError("The list of script URL patterns is empty"));var C=function(x){var b=new Date,A=function(G){return w.push({url:x,startedAt:b,finishedAt:new Date,error:G})},B=r(x);return B.then(function(){return A()},A),B.catch(function(G){if(E!=null||(E=G),w.length>=5)throw E;var F=M(b,G);if(!F)throw E;var j,be=F[0],Ce=F[1];return(j=Ce,new Promise(function(Be){return setTimeout(Be,j)})).then(function(){return C(be)})})};return C(m).then(function(x){return[x,w]})}var Mn="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js";function In(t){var r;t.scriptUrlPattern;var o=t.token,s=t.apiKey,u=s===void 0?o:s,c=En(t,["scriptUrlPattern","token","apiKey"]),l=(r=xn(t,"scriptUrlPattern"))!==null&&r!==void 0?r:Mn,y=function(){var g=[],m=function(){g.push({time:new Date,state:document.visibilityState})},M=function(C,x,b,A){return C.addEventListener(x,b,A),function(){return C.removeEventListener(x,b,A)}}(document,"visibilitychange",m);return m(),[g,M]}(),E=y[0],w=y[1];return Promise.resolve().then(function(){if(!u||typeof u!="string")throw new Error(Cn);var g=function(m,M){return(Array.isArray(m)?m:[m]).map(function(C){return function(x,b){var A=encodeURIComponent;return x.replace(/<[^<>]+>/g,function(B){return B==="<version>"?"3":B==="<apiKey>"?A(b):B==="<loaderVersion>"?A(Bn):B})}(String(C),M)})}(l,u);return On(g,Pn)}).catch(function(g){throw w(),function(m){return m instanceof Error&&m.message===Ae?new Error(Ee):m}(g)}).then(function(g){var m=g[0],M=g[1];return w(),m.load(oe(oe({},c),{ldi:{attempts:M,visibilityStates:E}}))})}function Pn(t){return bn(t,function(){return function(r){return new Promise(function(o,s){if(function(y){if(URL.prototype)try{return new URL(y,location.href),!1}catch(E){if(E instanceof Error&&E.name==="TypeError")return!0;throw E}}(r))throw new Error(Ye);var u=document.createElement("script"),c=function(){var y;return(y=u.parentNode)===null||y===void 0?void 0:y.removeChild(u)},l=document.head||document.getElementsByTagName("head")[0];u.onload=function(){c(),o()},u.onerror=function(){c(),s(new Error(Ee))},u.async=!0,u.src=r,l.appendChild(u)})}(t)},function(){throw new Error(Je)}).then(Dn)}function Dn(){var t=window,r="__fpjs_p_l_b",o=t[r];if(function(s,u){var c,l=(c=Object.getOwnPropertyDescriptor)===null||c===void 0?void 0:c.call(Object,s,u);l!=null&&l.configurable?delete s[u]:l&&!l.writable||(s[u]=void 0)}(t,r),typeof(o==null?void 0:o.load)!="function")throw new Error(Ae);return o}var Rn={load:In};async function Ln(t,r){const o=`${r}/resources/di/info`;return fetch(o,{headers:{"Content-Type":"application/json","X-Access-Token":t,"X-Client-Id":"fisherman"}}).then(s=>{if(s.status!==204)return s.json()})}const Nn="https://fpmetrics.sumsub.com";let se,k;async function kn(t,r){let o=!1,s=!1,u,c;try{const l=await Ln(t,pe()),y=(l==null?void 0:l.fpUrl)||Nn;s=!!(l!=null&&l.bhvEnabled),u=l==null?void 0:l.evRelUrl,c=l==null?void 0:l.fpReqRelUrl,l!=null&&l.fpKey&&(se=await Rn.load({apiKey:l.fpKey,scriptUrlPattern:`${y}/web/v<version>/<apiKey>/loader_v<loaderVersion>.js`,endpoint:y,region:"eu",remoteControlDetection:!0})),r?k={enabled:!0,conf:r}:l!=null&&l.simulation&&(k=l.simulation),o=!!(l!=null&&l.fpKey||k)}catch(l){console.log(l.message)}return{isDeviceIntelligenceEnabled:o,behavioralDataEnabled:s,eventsRelUrl:u,fpReqRelUrl:c}}async function _n(t){if(k)return await Fn();let r,o;try{if(!se)throw new Error("Device Intelligence feature is not enabled");const s=await se.get({timeout:3e4,linkedId:t==null?void 0:t.linkedId});r=s.visitorId,o=s.requestId,await ke({fpVisitorId:r,fpRequestId:o})}catch{console.log("Device Intelligence feature is not enabled")}return{visitorId:r}}async function Fn(){var o,s;const t={visitorId:(o=k==null