@seontechnologies/seon-id-verification
Version:
An advanced SDK featuring web components for natural person identification through document scanning, facial recognition, hand gesture, and face turning detection, designed for secure and efficient user verification.
18 lines • 2.86 MB
JavaScript
(function(Qt,S){typeof exports=="object"&&typeof module<"u"?S(exports,require("react"),require("@microblink/capture")):typeof define=="function"&&define.amd?define(["exports","react","@microblink/capture"],S):(Qt=typeof globalThis<"u"?globalThis:Qt||self,S(Qt.index={},Qt.react,Qt["@microblink/capture"]))})(this,function(Qt,S,J2){"use strict";var FcA=Object.defineProperty;var QO=Qt=>{throw TypeError(Qt)};var YcA=(Qt,S,J2)=>S in Qt?FcA(Qt,S,{enumerable:!0,configurable:!0,writable:!0,value:J2}):Qt[S]=J2;var te=(Qt,S,J2)=>YcA(Qt,typeof S!="symbol"?S+"":S,J2),DP=(Qt,S,J2)=>S.has(Qt)||QO("Cannot "+J2);var b=(Qt,S,J2)=>(DP(Qt,S,"read from private field"),J2?J2.call(Qt):S.get(Qt)),NA=(Qt,S,J2)=>S.has(Qt)?QO("Cannot add the same private member more than once"):S instanceof WeakSet?S.add(Qt):S.set(Qt,J2),kA=(Qt,S,J2,Os)=>(DP(Qt,S,"write to private field"),Os?Os.call(Qt,J2):S.set(Qt,J2),J2),ye=(Qt,S,J2)=>(DP(Qt,S,"access private method"),J2);var Fh=(Qt,S,J2,Os)=>({set _(Gh){kA(Qt,S,Gh,J2)},get _(){return b(Qt,S,Os)}});var Cc,wB,ql,PL,Xl,IB,$l,mL,uc,FL,AC,Qc,Hr,Ec,In,IQ,wc,dg,Ts,YL,ko,yL,Ho,Nn,Ic,Lo,G1,GL,za,Dg,hQ,UL,T2,hB,fB,eC,tC,dB,nC,iC,kL,Ii,wt,fQ,jn,hc,rC,DB,pB,dQ,gC,oC,fc,dc,vB,aC,Lt,zE,pP,vP,MP,PP,mP,FP,YP,EO,HL,MB,PB,hi,Na,ja,Yh,yP,LL,bL,Z7,mB,FB,bo,Ja,Ka,hn,Dc,pc,sC,BC,fi,GP,IO,hO,fO,UP,Lr,cC,vc,Va,Mc,DQ,pQ,vQ,YB,fn,dO,DO,pO,w9,vO,yh,MO,yB,Pc,lC,Wa,MQ,PQ,mc,Fc,Yc,yc,Gc,Uc,I9,h9,f9,d9,D9,p9,mQ,FQ,v9,CC,PO,mO;var Os=typeof document<"u"?document.currentScript:null;function Gh(A){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(A){for(const t in A)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(A,t);Object.defineProperty(e,t,i.get?i:{enumerable:!0,get:()=>A[t]})}}return e.default=A,Object.freeze(e)}const LA=Gh(S);(function(){if(typeof document>"u"||"adoptedStyleSheets"in document)return;var A="ShadyCSS"in window&&!ShadyCSS.nativeShadow,e=document.implementation.createHTMLDocument(""),t=new WeakMap,i=typeof DOMException=="object"?Error:DOMException,o=Object.defineProperty,B=Array.prototype.forEach,c=/@import.+?;?$/gm;function u(EA){var pA=EA.replace(c,"");return pA!==EA&&console.warn("@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418"),pA.trim()}function w(EA){return"isConnected"in EA?EA.isConnected:document.contains(EA)}function h(EA){return EA.filter(function(pA,HA){return EA.indexOf(pA)===HA})}function d(EA,pA){return EA.filter(function(HA){return pA.indexOf(HA)===-1})}function p(EA){EA.parentNode.removeChild(EA)}function v(EA){return EA.shadowRoot||t.get(EA)}var P=["addRule","deleteRule","insertRule","removeRule"],Y=CSSStyleSheet,y=Y.prototype;y.replace=function(){return Promise.reject(new i("Can't call replace on non-constructed CSSStyleSheets."))},y.replaceSync=function(){throw new i("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};function k(EA){return typeof EA=="object"?oA.isPrototypeOf(EA)||y.isPrototypeOf(EA):!1}function N(EA){return typeof EA=="object"?y.isPrototypeOf(EA):!1}var L=new WeakMap,z=new WeakMap,K=new WeakMap,O=new WeakMap;function gA(EA,pA){var HA=document.createElement("style");return K.get(EA).set(pA,HA),z.get(EA).push(pA),HA}function J(EA,pA){return K.get(EA).get(pA)}function W(EA,pA){K.get(EA).delete(pA),z.set(EA,z.get(EA).filter(function(HA){return HA!==pA}))}function Z(EA,pA){requestAnimationFrame(function(){pA.textContent=L.get(EA).textContent,O.get(EA).forEach(function(HA){return pA.sheet[HA.method].apply(pA.sheet,HA.args)})})}function iA(EA){if(!L.has(EA))throw new TypeError("Illegal invocation")}function aA(){var EA=this,pA=document.createElement("style");e.body.appendChild(pA),L.set(EA,pA),z.set(EA,[]),K.set(EA,new WeakMap),O.set(EA,[])}var oA=aA.prototype;oA.replace=function(pA){try{return this.replaceSync(pA),Promise.resolve(this)}catch(HA){return Promise.reject(HA)}},oA.replaceSync=function(pA){if(iA(this),typeof pA=="string"){var HA=this;L.get(HA).textContent=u(pA),O.set(HA,[]),z.get(HA).forEach(function(re){re.isConnected()&&Z(HA,J(HA,re))})}},o(oA,"cssRules",{configurable:!0,enumerable:!0,get:function(){return iA(this),L.get(this).sheet.cssRules}}),o(oA,"media",{configurable:!0,enumerable:!0,get:function(){return iA(this),L.get(this).sheet.media}}),P.forEach(function(EA){oA[EA]=function(){var pA=this;iA(pA);var HA=arguments;O.get(pA).push({method:EA,args:HA}),z.get(pA).forEach(function(mA){if(mA.isConnected()){var Qe=J(pA,mA).sheet;Qe[EA].apply(Qe,HA)}});var re=L.get(pA).sheet;return re[EA].apply(re,HA)}}),o(aA,Symbol.hasInstance,{configurable:!0,value:k});var QA={childList:!0,subtree:!0},FA=new WeakMap;function YA(EA){var pA=FA.get(EA);return pA||(pA=new WA(EA),FA.set(EA,pA)),pA}function dA(EA){o(EA.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return YA(this).sheets},set:function(pA){YA(this).update(pA)}})}function UA(EA,pA){for(var HA=document.createNodeIterator(EA,NodeFilter.SHOW_ELEMENT,function(mA){return v(mA)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT},null,!1),re=void 0;re=HA.nextNode();)pA(v(re))}var sA=new WeakMap,PA=new WeakMap,rA=new WeakMap;function fA(EA,pA){return pA instanceof HTMLStyleElement&&PA.get(EA).some(function(HA){return J(HA,EA)})}function OA(EA){var pA=sA.get(EA);return pA instanceof Document?pA.body:pA}function $A(EA){var pA=document.createDocumentFragment(),HA=PA.get(EA),re=rA.get(EA),mA=OA(EA);re.disconnect(),HA.forEach(function(Qe){pA.appendChild(J(Qe,EA)||gA(Qe,EA))}),mA.insertBefore(pA,null),re.observe(mA,QA),HA.forEach(function(Qe){Z(Qe,J(Qe,EA))})}function WA(EA){var pA=this;pA.sheets=[],sA.set(pA,EA),PA.set(pA,[]),rA.set(pA,new MutationObserver(function(HA,re){if(!document){re.disconnect();return}HA.forEach(function(mA){A||B.call(mA.addedNodes,function(Qe){Qe instanceof Element&&UA(Qe,function(Ve){YA(Ve).connect()})}),B.call(mA.removedNodes,function(Qe){Qe instanceof Element&&(fA(pA,Qe)&&$A(pA),A||UA(Qe,function(Ve){YA(Ve).disconnect()}))})})}))}if(WA.prototype={isConnected:function(){var EA=sA.get(this);return EA instanceof Document?EA.readyState!=="loading":w(EA.host)},connect:function(){var EA=OA(this);rA.get(this).observe(EA,QA),PA.get(this).length>0&&$A(this),UA(EA,function(pA){YA(pA).connect()})},disconnect:function(){rA.get(this).disconnect()},update:function(EA){var pA=this,HA=sA.get(pA)===document?"Document":"ShadowRoot";if(!Array.isArray(EA))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+HA+": Iterator getter is not callable.");if(!EA.every(k))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+HA+": Failed to convert value to 'CSSStyleSheet'");if(EA.some(N))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+HA+": Can't adopt non-constructed stylesheets");pA.sheets=EA;var re=PA.get(pA),mA=h(EA),Qe=d(re,mA);Qe.forEach(function(Ve){p(J(Ve,pA)),W(Ve,pA)}),PA.set(pA,mA),pA.isConnected()&&mA.length>0&&$A(pA)}},window.CSSStyleSheet=aA,dA(Document),"ShadowRoot"in window){dA(ShadowRoot);var le=Element.prototype,JA=le.attachShadow;le.attachShadow=function(pA){var HA=JA.call(this,pA);return pA.mode==="closed"&&t.set(this,HA),HA}}var ne=YA(document);ne.isConnected()?ne.connect():document.addEventListener("DOMContentLoaded",ne.connect.bind(ne))})(),(function(){var A=window.Document.prototype.createElement,e=window.Document.prototype.createElementNS,t=window.Document.prototype.importNode,i=window.Document.prototype.prepend,o=window.Document.prototype.append,B=window.DocumentFragment.prototype.prepend,c=window.DocumentFragment.prototype.append,u=window.Node.prototype.cloneNode,w=window.Node.prototype.appendChild,h=window.Node.prototype.insertBefore,d=window.Node.prototype.removeChild,p=window.Node.prototype.replaceChild,v=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),P=window.Element.prototype.attachShadow,Y=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),y=window.Element.prototype.getAttribute,k=window.Element.prototype.setAttribute,N=window.Element.prototype.removeAttribute,L=window.Element.prototype.toggleAttribute,z=window.Element.prototype.getAttributeNS,K=window.Element.prototype.setAttributeNS,O=window.Element.prototype.removeAttributeNS,gA=window.Element.prototype.insertAdjacentElement,J=window.Element.prototype.insertAdjacentHTML,W=window.Element.prototype.prepend,Z=window.Element.prototype.append,iA=window.Element.prototype.before,aA=window.Element.prototype.after,oA=window.Element.prototype.replaceWith,QA=window.Element.prototype.remove,FA=window.HTMLElement,YA=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),dA=window.HTMLElement.prototype.insertAdjacentElement,UA=window.HTMLElement.prototype.insertAdjacentHTML,sA=new Set;"annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ").forEach(function(R){return sA.add(R)});function PA(R){var X=sA.has(R);return R=/^[a-z][.0-9_a-z]*-[-.0-9_a-z]*$/.test(R),!X&&R}var rA=document.contains?document.contains.bind(document):document.documentElement.contains.bind(document.documentElement);function fA(R){var X=R.isConnected;if(X!==void 0)return X;if(rA(R))return!0;for(;R&&!(R.__CE_isImportDocument||R instanceof Document);)R=R.parentNode||(window.ShadowRoot&&R instanceof ShadowRoot?R.host:void 0);return!(!R||!(R.__CE_isImportDocument||R instanceof Document))}function OA(R){var X=R.children;if(X)return Array.prototype.slice.call(X);for(X=[],R=R.firstChild;R;R=R.nextSibling)R.nodeType===Node.ELEMENT_NODE&&X.push(R);return X}function $A(R,X){for(;X&&X!==R&&!X.nextSibling;)X=X.parentNode;return X&&X!==R?X.nextSibling:null}function WA(R,X,nA){for(var DA=R;DA;){if(DA.nodeType===Node.ELEMENT_NODE){var tA=DA;X(tA);var uA=tA.localName;if(uA==="link"&&tA.getAttribute("rel")==="import"){if(DA=tA.import,nA===void 0&&(nA=new Set),DA instanceof Node&&!nA.has(DA))for(nA.add(DA),DA=DA.firstChild;DA;DA=DA.nextSibling)WA(DA,X,nA);DA=$A(R,tA);continue}else if(uA==="template"){DA=$A(R,tA);continue}if(tA=tA.__CE_shadowRoot)for(tA=tA.firstChild;tA;tA=tA.nextSibling)WA(tA,X,nA)}DA=DA.firstChild?DA.firstChild:$A(R,DA)}}function le(){var R=!(Ge==null||!Ge.noDocumentConstructionObserver),X=!(Ge==null||!Ge.shadyDomFastWalk);this.m=[],this.g=[],this.j=!1,this.shadyDomFastWalk=X,this.I=!R}function JA(R,X,nA,DA){var tA=window.ShadyDOM;if(R.shadyDomFastWalk&&tA&&tA.inUse){if(X.nodeType===Node.ELEMENT_NODE&&nA(X),X.querySelectorAll)for(R=tA.nativeMethods.querySelectorAll.call(X,"*"),X=0;X<R.length;X++)nA(R[X])}else WA(X,nA,DA)}function ne(R,X){R.j=!0,R.m.push(X)}function EA(R,X){R.j=!0,R.g.push(X)}function pA(R,X){R.j&&JA(R,X,function(nA){return HA(R,nA)})}function HA(R,X){if(R.j&&!X.__CE_patched){X.__CE_patched=!0;for(var nA=0;nA<R.m.length;nA++)R.m[nA](X);for(nA=0;nA<R.g.length;nA++)R.g[nA](X)}}function re(R,X){var nA=[];for(JA(R,X,function(tA){return nA.push(tA)}),X=0;X<nA.length;X++){var DA=nA[X];DA.__CE_state===1?R.connectedCallback(DA):Ve(R,DA)}}function mA(R,X){var nA=[];for(JA(R,X,function(tA){return nA.push(tA)}),X=0;X<nA.length;X++){var DA=nA[X];DA.__CE_state===1&&R.disconnectedCallback(DA)}}function Qe(R,X,nA){nA=nA===void 0?{}:nA;var DA=nA.J,tA=nA.upgrade||function(yA){return Ve(R,yA)},uA=[];for(JA(R,X,function(yA){if(R.j&&HA(R,yA),yA.localName==="link"&&yA.getAttribute("rel")==="import"){var KA=yA.import;KA instanceof Node&&(KA.__CE_isImportDocument=!0,KA.__CE_registry=document.__CE_registry),KA&&KA.readyState==="complete"?KA.__CE_documentLoadHandled=!0:yA.addEventListener("load",function(){var qA=yA.import;if(!qA.__CE_documentLoadHandled){qA.__CE_documentLoadHandled=!0;var ze=new Set;DA&&(DA.forEach(function(yt){return ze.add(yt)}),ze.delete(qA)),Qe(R,qA,{J:ze,upgrade:tA})}})}else uA.push(yA)},DA),X=0;X<uA.length;X++)tA(uA[X])}function Ve(R,X){try{var nA=X.ownerDocument,DA=nA.__CE_registry,tA=DA&&(nA.defaultView||nA.__CE_isImportDocument)?_A(DA,X.localName):void 0;if(tA&&X.__CE_state===void 0){tA.constructionStack.push(X);try{try{if(new tA.constructorFunction!==X)throw Error("The custom element constructor did not produce the element being upgraded.")}finally{tA.constructionStack.pop()}}catch(qA){throw X.__CE_state=2,qA}if(X.__CE_state=1,X.__CE_definition=tA,tA.attributeChangedCallback&&X.hasAttributes()){var uA=tA.observedAttributes;for(tA=0;tA<uA.length;tA++){var yA=uA[tA],KA=X.getAttribute(yA);KA!==null&&R.attributeChangedCallback(X,yA,null,KA,null)}}fA(X)&&R.connectedCallback(X)}}catch(qA){jt(qA)}}le.prototype.connectedCallback=function(R){var X=R.__CE_definition;if(X.connectedCallback)try{X.connectedCallback.call(R)}catch(nA){jt(nA)}},le.prototype.disconnectedCallback=function(R){var X=R.__CE_definition;if(X.disconnectedCallback)try{X.disconnectedCallback.call(R)}catch(nA){jt(nA)}},le.prototype.attributeChangedCallback=function(R,X,nA,DA,tA){var uA=R.__CE_definition;if(uA.attributeChangedCallback&&-1<uA.observedAttributes.indexOf(X))try{uA.attributeChangedCallback.call(R,X,nA,DA,tA)}catch(yA){jt(yA)}};function Yt(R,X,nA,DA){var tA=X.__CE_registry;if(tA&&(DA===null||DA==="http://www.w3.org/1999/xhtml")&&(tA=_A(tA,nA)))try{var uA=new tA.constructorFunction;if(uA.__CE_state===void 0||uA.__CE_definition===void 0)throw Error("Failed to construct '"+nA+"': The returned value was not constructed with the HTMLElement constructor.");if(uA.namespaceURI!=="http://www.w3.org/1999/xhtml")throw Error("Failed to construct '"+nA+"': The constructed element's namespace must be the HTML namespace.");if(uA.hasAttributes())throw Error("Failed to construct '"+nA+"': The constructed element must not have any attributes.");if(uA.firstChild!==null)throw Error("Failed to construct '"+nA+"': The constructed element must not have any children.");if(uA.parentNode!==null)throw Error("Failed to construct '"+nA+"': The constructed element must not have a parent node.");if(uA.ownerDocument!==X)throw Error("Failed to construct '"+nA+"': The constructed element's owner document is incorrect.");if(uA.localName!==nA)throw Error("Failed to construct '"+nA+"': The constructed element's local name is incorrect.");return uA}catch(yA){return jt(yA),X=DA===null?A.call(X,nA):e.call(X,DA,nA),Object.setPrototypeOf(X,HTMLUnknownElement.prototype),X.__CE_state=2,X.__CE_definition=void 0,HA(R,X),X}return X=DA===null?A.call(X,nA):e.call(X,DA,nA),HA(R,X),X}function jt(R){var X="",nA="",DA=0,tA=0;R instanceof Error?(X=R.message,nA=R.sourceURL||R.fileName||"",DA=R.line||R.lineNumber||0,tA=R.column||R.columnNumber||0):X="Uncaught "+String(R);var uA=void 0;ErrorEvent.prototype.initErrorEvent===void 0?uA=new ErrorEvent("error",{cancelable:!0,message:X,filename:nA,lineno:DA,colno:tA,error:R}):(uA=document.createEvent("ErrorEvent"),uA.initErrorEvent("error",!1,!0,X,nA,DA),uA.preventDefault=function(){Object.defineProperty(this,"defaultPrevented",{configurable:!0,get:function(){return!0}})}),uA.error===void 0&&Object.defineProperty(uA,"error",{configurable:!0,enumerable:!0,get:function(){return R}}),window.dispatchEvent(uA),uA.defaultPrevented||console.error(R)}function Tt(){var R=this;this.g=void 0,this.F=new Promise(function(X){R.l=X})}Tt.prototype.resolve=function(R){if(this.g)throw Error("Already resolved.");this.g=R,this.l(R)};function C2(R){var X=document;this.l=void 0,this.h=R,this.g=X,Qe(this.h,this.g),this.g.readyState==="loading"&&(this.l=new MutationObserver(this.G.bind(this)),this.l.observe(this.g,{childList:!0,subtree:!0}))}function D2(R){R.l&&R.l.disconnect()}C2.prototype.G=function(R){var X=this.g.readyState;for(X!=="interactive"&&X!=="complete"||D2(this),X=0;X<R.length;X++)for(var nA=R[X].addedNodes,DA=0;DA<nA.length;DA++)Qe(this.h,nA[DA])};function et(R){this.s=new Map,this.u=new Map,this.C=new Map,this.A=!1,this.B=new Map,this.o=function(X){return X()},this.i=!1,this.v=[],this.h=R,this.D=R.I?new C2(R):void 0}et.prototype.H=function(R,X){var nA=this;if(!(X instanceof Function))throw new TypeError("Custom element constructor getters must be functions.");u2(this,R),this.s.set(R,X),this.v.push(R),this.i||(this.i=!0,this.o(function(){return g0(nA)}))},et.prototype.define=function(R,X){var nA=this;if(!(X instanceof Function))throw new TypeError("Custom element constructors must be functions.");u2(this,R),Xt(this,R,X),this.v.push(R),this.i||(this.i=!0,this.o(function(){return g0(nA)}))};function u2(R,X){if(!PA(X))throw new SyntaxError("The element name '"+X+"' is not valid.");if(_A(R,X))throw Error("A custom element with name '"+(X+"' has already been defined."));if(R.A)throw Error("A custom element is already being defined.")}function Xt(R,X,nA){R.A=!0;var DA;try{var tA=nA.prototype;if(!(tA instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var uA=function(yt){var di=tA[yt];if(di!==void 0&&!(di instanceof Function))throw Error("The '"+yt+"' callback must be a function.");return di},yA=uA("connectedCallback"),KA=uA("disconnectedCallback"),qA=uA("adoptedCallback"),ze=(DA=uA("attributeChangedCallback"))&&nA.observedAttributes||[]}catch(yt){throw yt}finally{R.A=!1}return nA={localName:X,constructorFunction:nA,connectedCallback:yA,disconnectedCallback:KA,adoptedCallback:qA,attributeChangedCallback:DA,observedAttributes:ze,constructionStack:[]},R.u.set(X,nA),R.C.set(nA.constructorFunction,nA),nA}et.prototype.upgrade=function(R){Qe(this.h,R)};function g0(R){if(R.i!==!1){R.i=!1;for(var X=[],nA=R.v,DA=new Map,tA=0;tA<nA.length;tA++)DA.set(nA[tA],[]);for(Qe(R.h,document,{upgrade:function(qA){if(qA.__CE_state===void 0){var ze=qA.localName,yt=DA.get(ze);yt?yt.push(qA):R.u.has(ze)&&X.push(qA)}}}),tA=0;tA<X.length;tA++)Ve(R.h,X[tA]);for(tA=0;tA<nA.length;tA++){for(var uA=nA[tA],yA=DA.get(uA),KA=0;KA<yA.length;KA++)Ve(R.h,yA[KA]);(uA=R.B.get(uA))&&uA.resolve(void 0)}nA.length=0}}et.prototype.get=function(R){if(R=_A(this,R))return R.constructorFunction},et.prototype.whenDefined=function(R){if(!PA(R))return Promise.reject(new SyntaxError("'"+R+"' is not a valid custom element name."));var X=this.B.get(R);if(X)return X.F;X=new Tt,this.B.set(R,X);var nA=this.u.has(R)||this.s.has(R);return R=this.v.indexOf(R)===-1,nA&&R&&X.resolve(void 0),X.F},et.prototype.polyfillWrapFlushCallback=function(R){this.D&&D2(this.D);var X=this.o;this.o=function(nA){return R(function(){return X(nA)})}};function _A(R,X){var nA=R.u.get(X);if(nA)return nA;if(nA=R.s.get(X)){R.s.delete(X);try{return Xt(R,X,nA())}catch(DA){jt(DA)}}}et.prototype.define=et.prototype.define,et.prototype.upgrade=et.prototype.upgrade,et.prototype.get=et.prototype.get,et.prototype.whenDefined=et.prototype.whenDefined,et.prototype.polyfillDefineLazy=et.prototype.H,et.prototype.polyfillWrapFlushCallback=et.prototype.polyfillWrapFlushCallback;function se(R,X,nA){function DA(tA){return function(uA){for(var yA=[],KA=0;KA<arguments.length;++KA)yA[KA]=arguments[KA];KA=[];for(var qA=[],ze=0;ze<yA.length;ze++){var yt=yA[ze];if(yt instanceof Element&&fA(yt)&&qA.push(yt),yt instanceof DocumentFragment)for(yt=yt.firstChild;yt;yt=yt.nextSibling)KA.push(yt);else KA.push(yt)}for(tA.apply(this,yA),yA=0;yA<qA.length;yA++)mA(R,qA[yA]);if(fA(this))for(yA=0;yA<KA.length;yA++)qA=KA[yA],qA instanceof Element&&re(R,qA)}}nA.prepend!==void 0&&(X.prepend=DA(nA.prepend)),nA.append!==void 0&&(X.append=DA(nA.append))}function rt(R){Document.prototype.createElement=function(X){return Yt(R,this,X,null)},Document.prototype.importNode=function(X,nA){return X=t.call(this,X,!!nA),this.__CE_registry?Qe(R,X):pA(R,X),X},Document.prototype.createElementNS=function(X,nA){return Yt(R,this,nA,X)},se(R,Document.prototype,{prepend:i,append:o})}function pt(R){function X(DA){return function(tA){for(var uA=[],yA=0;yA<arguments.length;++yA)uA[yA]=arguments[yA];yA=[];for(var KA=[],qA=0;qA<uA.length;qA++){var ze=uA[qA];if(ze instanceof Element&&fA(ze)&&KA.push(ze),ze instanceof DocumentFragment)for(ze=ze.firstChild;ze;ze=ze.nextSibling)yA.push(ze);else yA.push(ze)}for(DA.apply(this,uA),uA=0;uA<KA.length;uA++)mA(R,KA[uA]);if(fA(this))for(uA=0;uA<yA.length;uA++)KA=yA[uA],KA instanceof Element&&re(R,KA)}}var nA=Element.prototype;iA!==void 0&&(nA.before=X(iA)),aA!==void 0&&(nA.after=X(aA)),oA!==void 0&&(nA.replaceWith=function(DA){for(var tA=[],uA=0;uA<arguments.length;++uA)tA[uA]=arguments[uA];uA=[];for(var yA=[],KA=0;KA<tA.length;KA++){var qA=tA[KA];if(qA instanceof Element&&fA(qA)&&yA.push(qA),qA instanceof DocumentFragment)for(qA=qA.firstChild;qA;qA=qA.nextSibling)uA.push(qA);else uA.push(qA)}for(KA=fA(this),oA.apply(this,tA),tA=0;tA<yA.length;tA++)mA(R,yA[tA]);if(KA)for(mA(R,this),tA=0;tA<uA.length;tA++)yA=uA[tA],yA instanceof Element&&re(R,yA)}),QA!==void 0&&(nA.remove=function(){var DA=fA(this);QA.call(this),DA&&mA(R,this)})}function $t(R){function X(tA,uA){Object.defineProperty(tA,"innerHTML",{enumerable:uA.enumerable,configurable:!0,get:uA.get,set:function(yA){var KA=this,qA=void 0;if(fA(this)&&(qA=[],JA(R,this,function(di){di!==KA&&qA.push(di)})),uA.set.call(this,yA),qA)for(var ze=0;ze<qA.length;ze++){var yt=qA[ze];yt.__CE_state===1&&R.disconnectedCallback(yt)}return this.ownerDocument.__CE_registry?Qe(R,this):pA(R,this),yA}})}function nA(tA,uA){tA.insertAdjacentElement=function(yA,KA){var qA=fA(KA);return yA=uA.call(this,yA,KA),qA&&mA(R,KA),fA(yA)&&re(R,KA),yA}}function DA(tA,uA){function yA(KA,qA){for(var ze=[];KA!==qA;KA=KA.nextSibling)ze.push(KA);for(qA=0;qA<ze.length;qA++)Qe(R,ze[qA])}tA.insertAdjacentHTML=function(KA,qA){if(KA=KA.toLowerCase(),KA==="beforebegin"){var ze=this.previousSibling;uA.call(this,KA,qA),yA(ze||this.parentNode.firstChild,this)}else if(KA==="afterbegin")ze=this.firstChild,uA.call(this,KA,qA),yA(this.firstChild,ze);else if(KA==="beforeend")ze=this.lastChild,uA.call(this,KA,qA),yA(ze||this.firstChild,null);else if(KA==="afterend")ze=this.nextSibling,uA.call(this,KA,qA),yA(this.nextSibling,ze);else throw new SyntaxError("The value provided ("+String(KA)+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.")}}P&&(Element.prototype.attachShadow=function(tA){if(tA=P.call(this,tA),R.j&&!tA.__CE_patched){tA.__CE_patched=!0;for(var uA=0;uA<R.m.length;uA++)R.m[uA](tA)}return this.__CE_shadowRoot=tA}),Y&&Y.get?X(Element.prototype,Y):YA&&YA.get?X(HTMLElement.prototype,YA):EA(R,function(tA){X(tA,{enumerable:!0,configurable:!0,get:function(){return u.call(this,!0).innerHTML},set:function(uA){var yA=this.localName==="template",KA=yA?this.content:this,qA=e.call(document,this.namespaceURI,this.localName);for(qA.innerHTML=uA;0<KA.childNodes.length;)d.call(KA,KA.childNodes[0]);for(uA=yA?qA.content:qA;0<uA.childNodes.length;)w.call(KA,uA.childNodes[0])}})}),Element.prototype.setAttribute=function(tA,uA){if(this.__CE_state!==1)return k.call(this,tA,uA);var yA=y.call(this,tA);k.call(this,tA,uA),uA=y.call(this,tA),R.attributeChangedCallback(this,tA,yA,uA,null)},Element.prototype.setAttributeNS=function(tA,uA,yA){if(this.__CE_state!==1)return K.call(this,tA,uA,yA);var KA=z.call(this,tA,uA);K.call(this,tA,uA,yA),yA=z.call(this,tA,uA),R.attributeChangedCallback(this,uA,KA,yA,tA)},Element.prototype.removeAttribute=function(tA){if(this.__CE_state!==1)return N.call(this,tA);var uA=y.call(this,tA);N.call(this,tA),uA!==null&&R.attributeChangedCallback(this,tA,uA,null,null)},L&&(Element.prototype.toggleAttribute=function(tA,uA){if(this.__CE_state!==1)return L.call(this,tA,uA);var yA=y.call(this,tA),KA=yA!==null;return uA=L.call(this,tA,uA),KA!==uA&&R.attributeChangedCallback(this,tA,yA,uA?"":null,null),uA}),Element.prototype.removeAttributeNS=function(tA,uA){if(this.__CE_state!==1)return O.call(this,tA,uA);var yA=z.call(this,tA,uA);O.call(this,tA,uA);var KA=z.call(this,tA,uA);yA!==KA&&R.attributeChangedCallback(this,uA,yA,KA,tA)},dA?nA(HTMLElement.prototype,dA):gA&&nA(Element.prototype,gA),UA?DA(HTMLElement.prototype,UA):J&&DA(Element.prototype,J),se(R,Element.prototype,{prepend:W,append:Z}),pt(R)}var f0={};function VA(R){function X(){var nA=this.constructor,DA=document.__CE_registry.C.get(nA);if(!DA)throw Error("Failed to construct a custom element: The constructor was not registered with `customElements`.");var tA=DA.constructionStack;if(tA.length===0)return tA=A.call(document,DA.localName),Object.setPrototypeOf(tA,nA.prototype),tA.__CE_state=1,tA.__CE_definition=DA,HA(R,tA),tA;var uA=tA.length-1,yA=tA[uA];if(yA===f0)throw Error("Failed to construct '"+DA.localName+"': This element was already constructed.");return tA[uA]=f0,Object.setPrototypeOf(yA,nA.prototype),HA(R,yA),yA}X.prototype=FA.prototype,Object.defineProperty(HTMLElement.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:X}),window.HTMLElement=X}function he(R){function X(nA,DA){Object.defineProperty(nA,"textContent",{enumerable:DA.enumerable,configurable:!0,get:DA.get,set:function(tA){if(this.nodeType===Node.TEXT_NODE)DA.set.call(this,tA);else{var uA=void 0;if(this.firstChild){var yA=this.childNodes,KA=yA.length;if(0<KA&&fA(this)){uA=Array(KA);for(var qA=0;qA<KA;qA++)uA[qA]=yA[qA]}}if(DA.set.call(this,tA),uA)for(tA=0;tA<uA.length;tA++)mA(R,uA[tA])}}})}Node.prototype.insertBefore=function(nA,DA){if(nA instanceof DocumentFragment){var tA=OA(nA);if(nA=h.call(this,nA,DA),fA(this))for(DA=0;DA<tA.length;DA++)re(R,tA[DA]);return nA}return tA=nA instanceof Element&&fA(nA),DA=h.call(this,nA,DA),tA&&mA(R,nA),fA(this)&&re(R,nA),DA},Node.prototype.appendChild=function(nA){if(nA instanceof DocumentFragment){var DA=OA(nA);if(nA=w.call(this,nA),fA(this))for(var tA=0;tA<DA.length;tA++)re(R,DA[tA]);return nA}return DA=nA instanceof Element&&fA(nA),tA=w.call(this,nA),DA&&mA(R,nA),fA(this)&&re(R,nA),tA},Node.prototype.cloneNode=function(nA){return nA=u.call(this,!!nA),this.ownerDocument.__CE_registry?Qe(R,nA):pA(R,nA),nA},Node.prototype.removeChild=function(nA){var DA=nA instanceof Element&&fA(nA),tA=d.call(this,nA);return DA&&mA(R,nA),tA},Node.prototype.replaceChild=function(nA,DA){if(nA instanceof DocumentFragment){var tA=OA(nA);if(nA=p.call(this,nA,DA),fA(this))for(mA(R,DA),DA=0;DA<tA.length;DA++)re(R,tA[DA]);return nA}tA=nA instanceof Element&&fA(nA);var uA=p.call(this,nA,DA),yA=fA(this);return yA&&mA(R,DA),tA&&mA(R,nA),yA&&re(R,nA),uA},v&&v.get?X(Node.prototype,v):ne(R,function(nA){X(nA,{enumerable:!0,configurable:!0,get:function(){for(var DA=[],tA=this.firstChild;tA;tA=tA.nextSibling)tA.nodeType!==Node.COMMENT_NODE&&DA.push(tA.textContent);return DA.join("")},set:function(DA){for(;this.firstChild;)d.call(this,this.firstChild);DA!=null&&DA!==""&&w.call(this,document.createTextNode(DA))}})})}var Ge=window.customElements;function gt(){var R=new le;VA(R),rt(R),se(R,DocumentFragment.prototype,{prepend:B,append:c}),he(R),$t(R),window.CustomElementRegistry=et,R=new et(R),document.__CE_registry=R,Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:R})}Ge&&!Ge.forcePolyfill&&typeof Ge.define=="function"&&typeof Ge.get=="function"||gt(),window.__CE_installPolyfill=gt}).call(self);const FO={back_button:"Back",back_to_previous_step_button:"Back to previous step",next_button:"Next",restart_button:"Restart",done_button:"Done",ok_button:"OK",cancel_search_button:"Cancel",step_1_of_2_subtitle:"Step 1 of 2",step_2_of_2_subtitle:"Step 2 of 2",step_1_of_3_subtitle:"Step 1 of 3",step_2_of_3_subtitle:"Step 2 of 3",step_3_of_3_subtitle:"Step 3 of 3",start_screen_title:"Verify your identity",start_screen_description:"The process only takes a few seconds. Keep in mind that you and your environment will be recorded.",start_screen_list_1:"Make sure your device's camera(s) are ready to use",start_screen_list_2:"Have your documents ready",start_screen_list_3:"Be prepared to take a selfie",start_screen_list_4:"Make sure you have good lighting",start_screen_start_button:"Start verification",start_screen_dpa_link:"Read more about our personal data processing here",tutorial_screen_title:"Scan your document",tutorial_screen_description:"Use a valid document issued by your country of residence",tutorial_screen_list_1:"Use a valid document issued by your country of residence or citizenship",tutorial_screen_list_2:"Position your document's photo side in the frame",tutorial_screen_list_3:"Next, position your document's barcode side in the frame",tutorial_screen_scan_button:"Scan your document",id_type_selection_title:"Choose your document",id_type_selection_description:"Select the issuing country and type of your document",id_type_selection_title_country:"Issuing country",id_type_selection_title_documents:"Accepted documents",country_search_default_value:"Choose country",country_search_input_placeholder:"Search",country_search_no_result:"No results",country_search_no_result_description:"No matches found on our list of supported countries.",document_type_passport:"Passport",document_type_national_id:"ID card",document_type_drivers_license:"Driver's license",document_type_resident_permit:"Residence permit card",document_capture_flow_title:"Scan your document",document_capture_front_side:"Scan the front side of the document",document_capture_back_side:"Scan the back side of the document",document_capture_guidelines:`Watch out for flashlight glare.
Gently move your ID around to avoid it.`,error_document_upload_title:"Failed upload",error_document_upload_description:"Something went wrong while processing the image. Please restart the identity verification process.",error_document_type_title:"Incorrect document type",error_document_type_description:"Make sure to select the correct document type you are using for verification.",error_invalid_country_title:"Invalid country",error_invalid_country_description:"Make sure to select the issuing country correctly so it matches the document you are using for verification.",error_many_attempts_title:"Too many failed attempts",error_many_attempts_description:"Make sure you read the instructions carefully and follow them precisely.",error_liveness_upload_title:"Failed upload",error_liveness_upload_description:"Something went wrong while processing the image. Please restart the identity verification process.",error_liveness_check_action_follow_instructions_title:"Please follow the instructions",error_liveness_check_action_follow_instructions_description:"Make sure you read the instructions carefully and follow them precisely.",error_liveness_check_action_image_quality_title:"Something is wrong with your image",error_liveness_check_action_image_quality_description:"Make sure your image is clear, not blurry and you have enough light",error_timeout_title:"Your session is timed out",error_timeout_description:"You'll be redirected to the tutorial screen.",error_no_camera_access_title:"Camera access required",error_no_camera_access_description:"In order to complete the validation, you need to give camera access. Please go back and allow camera access.",error_no_camera_access_button:"Go back",error_unsuccessful_attempt_title:"Unsuccessful attempt",error_unsuccessful_attempt_description:"You'll be redirected to the tutorial screen. Make sure you read the instructions carefully and follow them precisely.",error_unsuccessful_attempt_button:"Retry",error_general_title:"Something went wrong",error_general_description:"Please restart the identity verification process.",liveness_check_gesture_flow_title:"Liveness check",liveness_check_gesture_title:"Prepare for a liveness check",liveness_check_gesture_description:"We'll check for the presence of a live person during the verification process",liveness_check_gesture_list_1:"Make sure you have good lighting and your face is visible",liveness_check_gesture_list_2:"Position your face in the frame",liveness_check_gesture_list_3:"Follow on-screen instructions",liveness_check_gesture_button:"Take a selfie",liveness_check_action_show_gesture_first:"Hold your hand in front of your face and show this gesture",liveness_check_action_show_gesture_mid:"Now, hold your hand in front of your face and show this gesture",liveness_check_action_show_gesture_last:"Lastly, hold your hand in front of your face and show this gesture",liveness_check_face_turning_flow_title:"Take a selfie",liveness_check_face_turning_title:"Prepare to take a selfie",liveness_check_face_turning_description:"We'll check if it matches your document",liveness_check_face_turning_list_1:"Make sure you have good lighting and your face is visible",liveness_check_face_turning_list_2:"Position your head in the frame",liveness_check_face_turning_list_3:"Turn your head to the directions shown on the screen",liveness_check_face_turning_button:"Take a selfie",liveness_check_action_turn_right_first:"Slowly turn your head to the right",liveness_check_action_turn_right:"Now, slowly turn your head to the right",liveness_check_action_turn_up_first:"Slowly turn your head up",liveness_check_action_turn_up:"Now, slowly turn your head up",liveness_check_action_turn_left_first:"Slowly turn your head to the left",liveness_check_action_turn_left:"Now, slowly turn your head to the left",liveness_check_action_turn_down_first:"Slowly turn your head down",liveness_check_action_turn_down:"Now, slowly turn your head down",liveness_check_selfie_flow_title:"Take a selfie",liveness_check_selfie_title:"Prepare to take a selfie",liveness_check_selfie_description:"We'll check if it matches your document",liveness_check_selfie_list_1:"Make sure you have good lighting and your face is visible",liveness_check_selfie_list_2:"Position your head in the frame",liveness_check_selfie_list_3:"Hold still for a few seconds",liveness_check_selfie_button:"Take a selfie",liveness_check_action_open_eyes:"Please keep your eyes open",liveness_check_action_position_face:"Position your face in the frame",liveness_check_action_hold:"Hold still",liveness_check_action_center_face:"Align your face with the center of the frame",liveness_check_action_move_closer:"Move a bit closer to the camera",liveness_check_action_move_further:"Move a bit further from the camera",liveness_check_action_straighten_face:"Keep your face level and upright",liveness_check_action_look_at_camera:"Look directly at the camera",verification_completed_title:"Submission completed!",verification_completed_description:"Your documents will be analyzed and we'll get back to you soon.",redirect_screen_title:"Verify your identity",redirect_screen_description:"Please scan the QR code or open the link below on another mobile device to complete the session and make the ID verification as precise as possible.",redirect_screen_button:"Go Back",ongoing_screen_title:"Proceed with your session",ongoing_screen_description:"Your session is in progress on another mobile device. Once completed, you can proceed here.",error_redirect_title:"Failed submission",error_redirect_description:"Something went wrong while processing your request. Please restart the identity verification process.",start_screen_terms:"I have read and agree to the {{start_screen_terms_link}}",start_screen_terms_link:"Privacy Notice",verification_success_title:"Successful verification",verification_success_description:"Your documents have bee analyzed and your id is verified.",verification_denied_title:"Unsuccessful verification",verification_denied_description:"Your documents have been analyzed but we couldn’t verify your identity. Please contact us, or try again.",verification_review_title:"Verification pending",verification_review_description:"Your documents have been uploaded for further inspection. We'll get back to you soon.",step_count_subtitle:"Step {{X}} of {{Y}}",poa_screen_title:"Proof of address",poa_screen_description:"We'll check for proof of your address",poa_screen_list_1:"Prepare a proof of address document Utility Bill, Bank Statement, etc...",poa_screen_list_2:"You can either upload or capture your document",poa_screen_list_3:"Make sure that the documents are in the frame and legible",poa_screen_list_1_desktop:"Prepare a proof of address document. Utility Bill, Bank Statement, etc...",poa_screen_list_2_desktop:"You can upload your document in pdf, jpg, or png format",poa_screen_list_3_desktop:"Make sure that the uploaded documents are fully visible and legible",poa_screen_start_button:"Provide document",poa_confirm_title:"Thank you!",poa_confirm_description:"Double check if the photo is sharp as possible and all the text is legible.",poa_confirm_file_button:"Upload file",poa_confirm_photo_button:"Upload photo",poa_sheet_camera:"Camera",poa_sheet_gallery:"Photo gallery",poa_sheet_file:"Upload file",poa_upload_title:"Upload your document",poa_upload_description:"You can upload your document in pdf, jpg, or png format",poa_upload_action:"Drag & Drop or {{poa_upload_action_link}}",poa_upload_action_link:"browse",poa_upload_remove:"Remove",poa_upload_button:"Send file",error_poa_file_title:"Wrong file format",error_poa_file_description:"We couldn’t process your file. Please try another file type (jpeg, png, pdf)",error_poa_file_button:"Retry",error_poa_upload_title:"Something went wrong",error_poa_upload_description:"We couldn’t process your file.",upload_completed_title:"Upload completed",upload_completed_description:"The results will be shown on desktop. You may close this window",error_device_support_description:"Please use a different device.",error_device_support_title:"Your camera is not supported",errordevice_supportbutton:"Go back",error_unique_expiration_title:"Session expired",error_unique_expiration_description:"This ID verification session has already expired."};let V;async function Uh(A){V={...FO,...A}}const ZA={config:{},baseConfig:{},setConfig:A=>{ZA.config={...ZA.config,...A}},setBaseConfig:A=>{ZA.baseConfig={...ZA.baseConfig,...A}},resetConfig:()=>{ZA.config={}}},NE={value:!1,setValue:A=>{NE.value=A}},e0=(A,e)=>{const t=document.querySelector(`#${P2.getInstanceId()}`);t==null||t.setAttribute("event",A),e?t==null||t.setAttribute("eventData",JSON.stringify(e)):t==null||t.removeAttribute("eventData")},HP=(...A)=>{},Sn=HP,kh=HP;class YO{constructor(){te(this,"errorTrigger",null);te(this,"errorTriggerPromise");te(this,"errorTriggerResolve");this.errorTriggerPromise=new Promise(e=>{this.errorTriggerResolve=e})}on(e){var t;this.errorTrigger=e,(t=this.errorTriggerResolve)==null||t.call(this)}off(e){this.errorTrigger=null,this.errorTriggerPromise=new Promise(t=>{this.errorTriggerResolve=t})}throwError(e={}){this.errorTriggerPromise.then(()=>{try{this.errorTrigger&&(this.errorTrigger(e),e.ERROR?kh(e.ERROR):e.WARN&&console.warn(e.WARN))}catch(t){console.error("Error while handling custom error:",t)}})}errorCallback(){e0("error","unknown")}unhandledrejectionCallback(){e0("error","unknown")}addGlobalErrorListeners(){window.addEventListener("error",this.errorCallback),window.addEventListener("unhandledrejection",this.unhandledrejectionCallback)}removeGlobalErrorListeners(){window.removeEventListener("error",this.errorCallback),window.removeEventListener("unhandledrejection",this.unhandledrejectionCallback)}}const Tn=new YO,Re=Tn.throwError.bind(Tn),yO=A=>new URLSearchParams(window.location.search).has(A),LP=A=>new URLSearchParams(window.location.search).get(A)||null,C0=()=>yO("seon-idv-transfer-token"),GO=()=>LP("seon-idv-no-cam-check")==="true",fr=async({endpoint:A,headers:e={},method:t="GET",body:i={},excludeJWT:o=!1,isFullUrl:B=!1,binaryBody:c=!1,jwt:u="",ignoreUnauthorized:w=!1})=>{const h=ZA.config.sessionToken||u,d={"Content-Type":"application/json",...e},p={...i};h&&!o&&(d.Authorization=`Bearer ${h}`);try{if(t!=="GET"){const v=await fetch(`${B?"":ZA.baseConfig.baseUrl}${A}`,{method:t,headers:d,body:c?i:JSON.stringify(p)}),P=v.headers.get("Content-Type");let Y;P&&P.includes("application/json")?Y=await v.json():Y=await v.text(),P&&P.includes("application/json")?(Y.ok=v.ok,Y.status=v.status):Y={ok:v.ok,status:v.status,data:Y};const y=A==null?void 0:A.includes("start-session");if(v.status===401&&!y&&(ZA.setConfig({sessionToken:""}),!w)){Re({ERROR:"Session expired",hideBtn:C0(),btnAction(){C0()&&window.close(),e0("error","error_code_3")}});return}return Y}else{const v=await fetch(`${!B&&ZA.baseConfig.baseUrl}${A}`,{headers:d}),P=v.headers.get("Content-Type");let Y;if(P&&P.includes("application/json")?Y=await v.json():Y=await v.text(),P&&P.includes("application/json")?(Y.ok=v.ok,Y.status=v.status):Y={ok:v.ok,status:v.status,data:Y},v.status===401&&(ZA.setConfig({sessionToken:""}),C0()&&window.close(),!w)){Re({ERROR:"Session expired",hideBtn:C0(),btnAction(){C0()&&window.close(),e0("error","error_code_3")}});return}return Y}}catch(v){try{let P;return v.toString().includes("Error: ")&&v.toString().includes("{")?(P=JSON.parse(v.toString().replace("Error: ","")),console.error(P)):(P=v,console.error(v)),P}catch(P){return console.error(P),P}}};class UO{constructor(e=!1){te(this,"isTransfer");te(this,"StartSessionResponseData",null);this.isTransfer=e}async startSession(){const e=["blink-capture","blinkID"],t={platform:"WEB",language:ZA.baseConfig.language||"en",referenceId:ZA.baseConfig.SEONCustomerData.referenceId,type:ZA.baseConfig.SEONCustomerData.type,email:ZA.baseConfig.SEONCustomerData.email,address:ZA.baseConfig.SEONCustomerData.address,phoneNumber:ZA.baseConfig.SEONCustomerData.phoneNumber,name:ZA.baseConfig.SEONCustomerData.name,userId:ZA.baseConfig.SEONCustomerData.userId,templateId:ZA.baseConfig.SEONCustomerData.templateId,additionalProperties:ZA.baseConfig.SEONCustomerData.additionalProperties,dateOfBirth:ZA.baseConfig.SEONCustomerData.dateOfBirth,postalCode:ZA.baseConfig.SEONCustomerData.postalCode,supportedCaptureSdks:e,apiVersion:2},i=await fr({endpoint:`/sessions/flow/start-session-v1${this.isTransfer?"?transfer=true":""}`,method:"POST",body:t,headers:{"x-api-key":ZA.baseConfig.SEONCustomerData.licenseKey},ignoreUnauthorized:!0});return this.StartSessionResponseData=i,ZA.setConfig({sessionToken:i==null?void 0:i.sessionToken}),this.StartSessionResponseData}async StartSessionResponse(){return this.StartSessionResponseData}}class kO{constructor(){te(this,"events",[]);te(this,"groupedEvents",[])}getEvents(){return this.events}getGroupedEvents(){return this.groupedEvents}on(e,t){this.events.push({event:e,callback:t}),this.events=this.events.filter((i,o,B)=>B.findIndex(c=>c.callback.toString()===i.callback.toString()&&c.event===i.event)===o),this.groupedEvents=this.events.reduce((i,o)=>{const B=i.find(c=>c.event===o.event);return B?B.callbacks.push(o.callback):i.push({event:o.event,callbacks:[o.callback]}),i},[])}async bindEvents(e,t,i){let o=document.querySelector(`seon-idverif-wrapper-${i}`);for(;!o;)await new Promise(c=>setTimeout(c,100)),o=document.querySelector(`seon-idverif-wrapper-${i}`);new MutationObserver(c=>{for(const u of c)if(o&&u.type==="attributes"&&u.attributeName==="event"&&o.getAttribute("event")===e){const w=o.getAttribute("eventData");if(w)try{const h=JSON.parse(w);t(h)}catch{t(`Error while executing callback for: ${e.toString()}`)}else t(e.toString())}}).observe(o,{attributes:!0,attributeFilter:["event"]})}}const U1=new kO;function HO(A){return A&&A.__esModule&&Object.prototype.hasOwnProperty.call(A,"default")?A.default:A}var Hh={exports:{}},ti={},jE={exports:{}},Lh={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var bP;function LO(){return bP||(bP=1,function(A){function e(sA,PA){var rA=sA.length;sA.push(PA);A:for(;0<rA;){var fA=rA-1>>>1,OA=sA[fA];if(0<o(OA,PA))sA[fA]=PA,sA[rA]=OA,rA=fA;else break A}}function t(sA){return sA.length===0?null:sA[0]}function i(sA){if(sA.length===0)return null;var PA=sA[0],rA=sA.pop();if(rA!==PA){sA[0]=rA;A:for(var fA=0,OA=sA.length,$A=OA>>>1;fA<$A;){var WA=2*(fA+1)-1,le=sA[WA],JA=WA+1,ne=sA[JA];if(0>o(le,rA))JA<OA&&0>o(ne,le)?(sA[fA]=ne,sA[JA]=rA,fA=JA):(sA[fA]=le,sA[WA]=rA,fA=WA);else if(JA<OA&&0>o(ne,rA))sA[fA]=ne,sA[JA]=rA,fA=JA;else break A}}return PA}function o(sA,PA){var rA=sA.sortIndex-PA.sortIndex;return rA!==0?rA:sA.id-PA.id}if(typeof performance=="object"&&typeof performance.now=="function"){var B=performance;A.unstable_now=function(){return B.now()}}else{var c=Date,u=c.now();A.unstable_now=function(){return c.now()-u}}var w=[],h=[],d=1,p=null,v=3,P=!1,Y=!1,y=!1,k=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function z(sA){for(var PA=t(h);PA!==null;){if(PA.callback===null)i(h);else if(PA.startTime<=sA)i(h),PA.sortIndex=PA.expirationTime,e(w,PA);else break;PA=t(h)}}function K(sA){if(y=!1,z(sA),!Y)if(t(w)!==null)Y=!0,dA(O);else{var PA=t(h);PA!==null&&UA(K,PA.startTime-sA)}}function O(sA,PA){Y=!1,y&&(y=!1,N(W),W=-1),P=!0;var rA=v;try{for(z(PA),p=t(w);p!==null&&(!(p.expirationTime>PA)||sA&&!aA());){var fA=p.callback;if(typeof fA=="function"){p.callback=null,v=p.priorityLevel;var OA=fA(p.expirationTime<=PA);PA=A.unstable_now(),typeof OA=="function"?p.callback=OA:p===t(w)&&i(w),z(PA)}else i(w);p=t(w)}if(p!==null)var $A=!0;else{var WA=t(h);WA!==null&&UA(K,WA.startTime-PA),$A=!1}return $A}finally{p=null,v=rA,P=!1}}var gA=!1,J=null,W=-1,Z=5,iA=-1;function aA(){return!(A.unstable_now()-iA<Z)}function oA(){if(J!==null){var sA=A.unstable_now();iA=sA;var PA=!0;try{PA=J(!0,sA)}finally{PA?QA():(gA=!1,J=null)}}else gA=!1}var QA;if(typeof L=="function")QA=function(){L(oA)};else if(typeof MessageChannel<"u"){var FA=new MessageChannel,YA=FA.port2;FA.port1.onmessage=oA,QA=function(){YA.postMessage(null)}}else QA=function(){k(oA,0)};function dA(sA){J=sA,gA||(gA=!0,QA())}function UA(sA,PA){W=k(function(){sA(A.unstable_now())},PA)}A.unstable_IdlePriority=5,A.unstable_ImmediatePriority=1,A.unstable_LowPriority=4,A.unstable_NormalPriority=3,A.unstable_Profiling=null,A.unstable_UserBlockingPriority=2,A.unstable_cancelCallback=function(sA){sA.callback=null},A.unstable_continueExecution=function(){Y||P||(Y=!0,dA(O))},A.unstable_forceFrameRate=function(sA){0>sA||125<sA?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Z=0<sA?Math.floor(1e3/sA):5},A.unstable_getCurrentPriorityLevel=function(){return v},A.unstable_getFirstCallbackNode=function(){return t(w)},A.unstable_next=function(sA){switch(v){case 1:case 2:case 3:var PA=3;break;default:PA=v}var rA=v;v=PA;try{return sA()}finally{v=rA}},A.unstable_pauseExecution=function(){},A.unstable_requestPaint=function(){},A.unstable_runWithPriority=function(sA,PA){switch(sA){case 1:case 2:case 3:case 4:case 5:break;default:sA=3}var rA=v;v=sA;try{return PA()}finally{v=rA}},A.unstable_scheduleCallback=function(sA,PA,rA){var fA=A.unstable_now();switch(typeof rA=="object"&&rA!==null?(rA=rA.delay,rA=typeof rA=="number"&&0<rA?fA+rA:fA):rA=fA,sA){case 1:var OA=-1;break;case 2:OA=250;break;case 5:OA=1073741823;break;case 4:OA=1e4;break;default:OA=5e3}return OA=rA+OA,sA={id:d++,callback:PA,priorityLevel:sA,startTime:rA,expirationTime:OA,sortIndex:-1},rA>fA?(sA.sortIndex=rA,e(h,sA),t(w)===null&&sA===t(h)&&(y?(N(W),W=-1):y=!0,UA(K,rA-fA))):(sA.sortIndex=OA,e(w,sA),Y||P||(Y=!0,dA(O))),sA},A.unstable_shouldYield=aA,A.unstable_wrapCallback=function(sA){var PA=v;return function(){var rA=v;v=PA;try{return sA.apply(this,arguments)}finally{v=rA}}}}(Lh)),Lh}var bh={};/**
* @license React
* scheduler.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var SP;function bO(){return SP||(SP=1,function(A){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=!1,t=5;function i(VA,he){var Ge=VA.length;VA.push(he),c(VA,he,Ge)}function o(VA){return VA.length===0?null:VA[0]}function B(VA){if(VA.length===0)return null;var he=VA[0],Ge=VA.pop();return Ge!==he&&(VA[0]=Ge,u(VA,Ge,0)),he}function c(VA,he,Ge){for(var gt=Ge;gt>0;){var R=gt-1>>>1,X=VA[R];if(w(X,he)>0)VA[R]=he,VA[gt]=X,gt=R;else return}}function u(VA,he,Ge){for(var gt=Ge,R=VA.length,X=R>>>1;gt<X;){var nA=(gt+1)*2-1,DA=VA[nA],tA=nA+1,uA=VA[tA];if(w(DA,he)<0)tA<R&&w(uA,DA)<0?(VA[gt]=uA,VA[tA]=he,gt=tA):(VA[gt]=DA,VA[nA]=he,gt=nA);else if(tA<R&&w(uA,he)<0)VA[gt]=uA,VA[tA]=he,gt=tA;else return}}function w(VA,he){var Ge=VA.sortIndex-he.sortIndex;return Ge!==0?Ge:VA.id-he.id}var h=1,d=2,p=3,v=4,P=5;function Y(VA,he){}var y=typeof performance=="object"&&typeof performance.now=="function";if(y){var k=performance;A.unstable_now=function(){return k.now()}}else{var N=Date,L=N.now();A.unstable_now=function(){return N.now()-L}}var z=1073741823,K=-1,O=250,gA=5e3,J=1e4,W=z,Z=[],iA=[],aA=1,oA=null,QA=p,FA=!1,YA=!1,dA=!1,UA=typeof setTimeout=="function"?setTimeout:null,sA=typeof clearTimeout=="function"?clearTimeout:null,PA=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function rA(VA){for(var he=o(iA);he!==null;){if(he.callback===null)B(iA);else if(he.startTime<=VA)B(iA),he.sortIndex=he.expirationTime,i(Z,he);else return;he=o(iA)}}function fA(VA){if(dA=!1,rA(VA),!YA)if(o(Z)!==null)YA=!0,se(OA);else{var he=o(iA);he!==null&&rt(fA,he.startTime-VA)}}function OA(VA,he){YA=!1,dA&&(dA=!1,pt()),FA=!0;var Ge=QA;try{var gt;if(!e)return $A(VA,he)}finally{oA=null,QA=Ge,FA=!1}}function $A(VA,he){var Ge=he;for(rA(Ge),oA=o(Z);oA!==null&&!(oA.expirationTime>Ge&&(!VA||C2()));){var gt=oA.callback;if(typeof gt=="function"){oA.callback=null,QA=oA.priorityLevel;var R=oA.expirationTime<=Ge,X=gt(R);Ge=A.unstable_now(),typeof X=="function"?oA.callback=X:oA===o(Z)&&B(Z),rA(Ge)}else B(Z);oA=o(Z)}if(oA!==null)return!0;var nA=o(iA);return nA!==null&&rt(fA,nA.startTim