var w=Object.defineProperty;var m=e=>{throw TypeError(e)};var g=(e,t,r)=>t in e?w(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var l=(e,t,r)=>g(e,typeof t!="symbol"?t+"":t,r),h=(e,t,r)=>t.has(e)||m("Cannot "+r);var u=(e,t,r)=>(h(e,t,"read from private field"),r?r.call(e):t.get(e)),d=(e,t,r)=>t.has(e)?m("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),v=(e,t,r,o)=>(h(e,t,"write to private field"),o?o.call(e,r):t.set(e,r),r);(function(){"use strict";var o,s;class e{constructor(){d(this,o,!1);this.init()}init(){const i=document.createElement("script");i.src="https://cdn.dvnfo.com/device-risk-sdk.js",i.setAttribute("data-public-key","5027a856-4c85-48eb-aea0-11648f1336d1"),i.setAttribute("data-disable-device-cookie","true"),document.head.appendChild(i),i.onerror=()=>{v(this,o,!0)}}getDeviceFingerprint(){return u(this,o)?Promise.reject(new Error("Failed to load Socure script")):new Promise((i,a)=>{const c=setInterval(async()=>{if(window.SigmaDeviceManager){try{const n=await window.SigmaDeviceManager.getDeviceSessionId();i({provider:"socure",value:n})}catch(n){a(n)}clearInterval(c)}},500);setTimeout(()=>{a(new Error("Timeout")),clearInterval(c)},5e3)})}}o=new WeakMap;class t{constructor(){d(this,s,!1);this.init()}init(){const i=document.createElement("script");i.async=!0,i.src="https://ci-mpsnare.iovation.com/snare.js",document.head.appendChild(i),i.onerror=()=>{v(this,s,!0)}}getDeviceFingerprint(){return u(this,s)?Promise.reject(new Error("Failed to load iovation script")):new Promise((i,a)=>{const c=setInterval(async()=>{if(typeof ioGetBlackbox=="function"){try{const n=ioGetBlackbox();i({provider:"iovation",value:n==null?void 0:n.blackbox})}catch(n){a(n)}clearInterval(c)}},500);setTimeout(()=>{a(new Error("Timeout")),clearInterval(c)},5e3)})}}s=new WeakMap;class r{constructor(){l(this,"socure");l(this,"iovation");this.socure=new e,this.iovation=new t}async getDeviceFingerPrint(){const i=this.iovation.getDeviceFingerprint(),a=this.socure.getDeviceFingerprint();return(await Promise.allSettled([i,a])).filter(n=>n.status==="fulfilled").map(n=>n.value)}}window.UnitFraudSdk=new r})();
