1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[30481],{30481:(e,t,n)=>{n.d(t,{MESSAGES:()=>eE,createVeriffFrame:()=>ep});var o=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},r=function(e){return Array.isArray(e)?e:[e]},i="data-focus-lock",u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function e(t){for(var n=t.length,o=0;o<n;o+=1)for(var r=function(n){if(o!==n&&t[o].contains(t[n]))return{v:e(t.filter(function(e){return e!==t[n]}))}},i=0;i<n;i+=1){var a=r(i);if((void 0===a?"undefined":u(a))==="object")return a.v}return t};let c=function(e){return r(e).filter(Boolean).reduce(function(e,t){var n=t.getAttribute(i);return e.push.apply(e,n?a(o((function e(t){return t.parentNode?e(t.parentNode):t})(t).querySelectorAll("["+i+'="'+n+'"]:not([data-focus-lock-disabled="disabled"])'))):[t]),e},[])};var d=function(e){return e===document.activeElement},f=function(e){var t;return t=o(e.querySelectorAll("iframe")),!!t.filter(function(e){return e===d})[0]};let l=function(e){var t=document&&document.activeElement;return!!t&&(!t.dataset||!t.dataset.focusGuard)&&c(e).reduce(function(e,n){return e||n.contains(t)||f(n)},!1)};var s=function(e,t){var n=e.tabIndex-t.tabIndex,o=e.index-t.index;if(n){if(!e.tabIndex)return 1;if(!t.tabIndex)return -1}return n||o},m=function(e,t,n){return o(e).map(function(e,t){return{node:e,index:t,tabIndex:n&&-1===e.tabIndex?(e.dataset||{}).focusGuard?0:-1:e.tabIndex}}).filter(function(e){return!t||e.tabIndex>=0}).sort(s)};let E=["button:enabled:not([readonly])","select:enabled:not([readonly])","textarea:enabled:not([readonly])","input:enabled:not([readonly])","a[href]","area[href]","iframe","object","embed","[tabindex]","[contenteditable]","[autofocus]"];var h=E.join(","),p=h+", [data-focus-guard]",v=function(e,t){return e.reduce(function(e,n){return e.concat(o(n.querySelectorAll(t?p:h)),n.parentNode?o(n.parentNode.querySelectorAll(E.join(","))).filter(function(e){return e===n}):[])},[])},g=function e(t){var n;return!t||t===document||t.nodeType===Node.DOCUMENT_NODE||!((n=window.getComputedStyle(t,null))&&n.getPropertyValue&&("none"===n.getPropertyValue("display")||"hidden"===n.getPropertyValue("visibility")))&&e(t.parentNode)},y=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return n.push(t),t.parentNode&&e(t.parentNode,n),n},b=function(e,t){for(var n=y(e),o=y(t),r=0;r<n.length;r+=1){var i=n[r];if(o.indexOf(i)>=0)return i}return!1},F=function(e){return o(e).filter(function(e){return g(e)}).filter(function(e){return!(("INPUT"===e.tagName||"BUTTON"===e.tagName)&&("hidden"===e.type||e.disabled))})},I=function(e,t){return m(F(v(e,t)),!0,t)},R=function(e){return"INPUT"===e.tagName&&"radio"===e.type},T=function(e,t){return t.filter(R).filter(function(t){return t.name===e.name}).filter(function(e){return e.checked})[0]||e},S=function(e,t){return e.length>1&&R(e[t])&&e[t].name?e.indexOf(T(e[t],e)):t};let w=function(e){return e[0]&&e.length>1&&R(e[0])&&e[0].name?T(e[0],e):e[0]};var A=function(e){return e&&e.dataset&&e.dataset.focusGuard},D=function(e){return!A(e)},_=function(e,t,n,o,r){var i=e.length,u=e[0],a=e[i-1],c=A(n);if(!(e.indexOf(n)>=0)){var d=t.indexOf(n),f=t.indexOf(o||d),l=e.indexOf(o),s=d-f,m=t.indexOf(u),E=t.indexOf(a),h=S(e,0),p=S(e,i-1);if(-1===d||-1===l)return e.indexOf(r&&r.length?w(r):w(e));if(!s&&l>=0)return l;if(d<=m&&c&&Math.abs(s)>1)return p;if(d>=m&&c&&Math.abs(s)>1)return h;if(s&&Math.abs(s)>1)return l;if(d<=m)return p;if(d>E)return h;if(s)return Math.abs(s)>1?l:(i+l+s)%i}},x=function(e,t,n){var o=r(e),i=r(t),u=o[0],a=null;return i.filter(Boolean).forEach(function(e){a=b(a||e,e)||a,n.filter(Boolean).forEach(function(e){var t=b(u,e);t&&(a=!a||t.contains(a)?t:b(t,a))})}),a},N=function(e,t){var n=new Map;return t.forEach(function(e){return n.set(e.node,e)}),e.map(function(e){return n.get(e)}).filter(Boolean)};let O=function(e,t){var n,r=document&&document.activeElement,i=c(e).filter(D),u=x(r||e,e,
1i),a=I(i).filter(function(e){return D(e.node)});if(a[0]||(a=m(F(v(i)),!1).filter(function(e){return D(e.node)}))[0]){var d=I([u]).map(function(e){return e.node}),f=N(d,a),l=f.map(function(e){return e.node}),s=_(l,d,r,t,l.filter((n=i.reduce(function(e,t){return e.concat(F(o(t.querySelectorAll("[data-autofocus-inside]")).map(function(e){return v([e])}).reduce(function(e,t){return e.concat(t)},[])))},[]),function(e){return!!e.autofocus||e.dataset&&!!e.dataset.autofocus||n.indexOf(e)>=0})));return void 0===s?s:f[s]}};var V=function(e){e.focus(),e.contentWindow&&e.contentWindow.focus()},L=0,C=!1;let M=function(e,t){var n=O(e,t);if(!C&&n){if(L>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),C=!0,setTimeout(function(){C=!1},1);return}L++,V(n.node),L--}};var U=0,B=null,k=function(){var e=!1;if(U){var t=U;document&&document.activeElement===document.body||document&&o(document.querySelectorAll("[data-no-focus-lock]")).some(function(e){return e.contains(document.activeElement)})||(t&&!l(t)&&(e=M(t,B)),B=document.activeElement)}return e},H=function(e){U=e,e&&k()},P=[],j=function(e){return!!H(P.filter(function(e){return e}).slice(-1)[0])&&(e&&e.preventDefault(),!0)},W=function(){document.addEventListener("focusin",j)},q=function(){document.removeEventListener("focusin",j)};let Q={on:function(e){0===P.length&&W(),0>P.indexOf(e)&&(P.push(e),j())},off:function(e){P=P.filter(function(t){return t!==e}),j(),0===P.length&&q()}};var G=function(){return"undefined"==typeof window},K=function(e){e=e||navigator.userAgent;var t=/(iPad).*OS\s([\d_]+)/.test(e);return{ios:!t&&/(iPhone\sOS)\s([\d_]+)/.test(e)||t,android:/(Android);?[\s/]+([\d.]+)?/.test(e)}},z=0,X=0,Y=0,J=null,Z=!1,$=[],ee=function(e){if(G())return!1;if(!e)throw Error("options must be provided");var t=!1,n={get passive(){t=!0;return}},o=function(){},r="__TUA_BSL_TEST_PASSIVE__";window.addEventListener(r,o,n),window.removeEventListener(r,o,n);var i=e.capture;return t?e:void 0!==i&&i}({passive:!1}),et=!G()&&"scrollBehavior"in document.documentElement.style,en=function(){var e=document.body,t=Object.assign({},e.style),n=window.innerWidth-e.clientWidth;return e.style.overflow="hidden",e.style.boxSizing="border-box",e.style.paddingRight="".concat(n,"px"),function(){["overflow","boxSizing","paddingRight"].forEach(function(n){e.style[n]=t[n]||""})}},eo=function(){var e=document.documentElement,t=document.body,n=e.scrollTop||t.scrollTop,o=Object.assign({},e.style),r=Object.assign({},t.style);return e.style.height="100%",e.style.overflow="hidden",t.style.top="-".concat(n,"px"),t.style.width="100%",t.style.height="auto",t.style.position="fixed",t.style.overflow="hidden",function(){e.style.height=o.height||"",e.style.overflow=o.overflow||"",["top","width","height","overflow","position"].forEach(function(e){t.style[e]=r[e]||""}),et?window.scrollTo({top:n,behavior:"instant"}):window.scrollTo(0,n)}},er=function(e){e.cancelable&&e.preventDefault()},ei=function(e,t){if(t){var n=t.scrollTop,o=t.scrollLeft,r=t.scrollWidth,i=t.scrollHeight,u=t.clientWidth,a=t.clientHeight,c=e.targetTouches[0].clientX-Y,d=e.targetTouches[0].clientY-X,f=Math.abs(d)>Math.abs(c);if(f&&(d>0&&0===n||d<0&&n+a+1>=i)||!f&&(c>0&&0===o||c<0&&o+u+1>=r))return er(e)}return e.stopPropagation(),!0},eu=function(e){if(e)return},ea=function(e){G()||(eu(e),K().ios?(e&&(Array.isArray(e)?e:[e]).forEach(function(e){e&&-1===$.indexOf(e)&&(e.ontouchstart=function(e){X=e.targetTouches[0].clientY,Y=e.targetTouches[0].clientX},e.ontouchmove=function(t){1===t.targetTouches.length&&ei(t,e)},$.push(e))}),Z||(document.addEventListener("touchmove",er,ee),Z=!0)):z<=0&&(J=K().android?eo():en()),z+=1)},ec=function(e){if(!G()&&(eu(e),!((z-=1)>0))){if(!K().ios&&"function"==typeof J)return void J();e&&(Array.isArray(e)?e:[e]).forEach(function(e){var t=$.indexOf(e);-1!==t&&(e.ontouchmove=null,e.ontouchstart=null,$.splice(t,1))}),Z&&(document.removeEventListener("touchmove",er,ee),Z=!1)}};let ed=` 2 position: fixed !important; 3 top: 0 !important; 4 right: 0 !important; 5 bottom: 0 !important; 6 left: 0 !important; 7 z-index: 9999999; 8 display: block !important; 9 width: 100vw; 10 height: 100%; 11 margin: 0 !important; 12 padding: 0 !important; 13 overflow: auto; 14 -webkit-overflow-scrolling: touch; 15 background: rgba(0, 0, 0, 0.6); 16`,ef=` 17 position: absolute !important; 18 top: 0 !important; 19 right: 0 !important; 20 bottom: 0 !important; 21 left: 0 !important; 22 width: 100vw; 23 height: 100%; 24 margin: 0 !important; 25 padding: 0 !important; 26 background: none; 27 border: none 28`,el=` 29 position: static; 30 width: 100%; 31 height: 100%; 32`,es=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],{rootElementID:o}=t;if(n){e.style.cssText=ef;let t=document.createElement("div");t.style.cssText=ed,t.appendChild(e),document.body.appendChild(t),Q.on(e),ea(e)}else{if(!o)throw Error("rootElementID must be specified in embedded mode");if(!document.getElementById(o))throw Error("rootElementID must point to an existing DOM element");e.style.cssText=el,document.getElementById(o).appendChild(e)}},em=function(e){return e.VERIFF_HANDSHAKE="VERIFF_HANDSHAKE",e.VERIFF_RENDER="VERIFF_RENDER",e.VERIFF_STARTED="VERIFF_STARTED",e.VERIFF_SUBMITTED="VERIFF_SUBMITTED",e.VERIFF_FINISHED="VERIFF_FINISHED",e.VERIFF_CANCELED="VERIFF_CANCELED",e.VERIFF_FORCE_RELOAD="VERIFF_FORCE_RELOAD",e.VERIFF_RELOAD_REQUEST="VERIFF_RELOAD_REQUEST",e}({}),eE=function(e){return e.STARTED="STARTED",e.SUBMITTED="SUBMITTED",e.FINISHED="FINISHED",e.CANCELED="CANCELED",e.RELOAD_REQUEST="RELOAD",e}({}),eh="veriffFrame";function ep(e){let{url:t,lang:n,onEvent:o=()=>{},embedded:r=!1,embeddedOptions:i,onReload:u}=e;if(!t)throw Error("URL is not provided. Please provide a valid Veriff session url.");let a=function(e){if(e)try{return matchMedia("(max-width: 767px), (hover: none)").matches}catch(e){console.error("Error while checking if iframe is mobile",e)}return!1}(r);function c(){let e=document.getElementById(eh);if(e&&e.parentNode){Q.off(e),ec(e);let t=e.parentNode.parentNode,n=e.parentNode;r&&!a&&(t=e.parentNode,n=e),t&&t.removeChild(n)}else ec();window.removeEventListener("message",d)}function d(e){let t=document.getElementById(eh);e.data===em.VERIFF_HANDSHAKE&&t.contentWindow?.postMessage({name:em.VERIFF_RENDER,payload:{version:"2.5.0",isReloadHandled:"function"==typeof u,isVeriffIframeMobile:a,embeddedConfigured:r,embedded:!a&&r}},"*"),e.data===em.VERIFF_STARTED&&o(eE.STARTED),e.data===em.VERIFF_CANCELED&&(c(),o(eE.CANCELED)),e.data===em.VERIFF_SUBMITTED&&o(eE.SUBMITTED),e.data===em.VERIFF_FINISHED&&(c(),o(eE.FINISHED)),e.data===em.VERIFF_FORCE_RELOAD&&window.location.reload(),e.data===em.VERIFF_RELOAD_REQUEST&&("function"==typeof u&&u(),o(eE.RELOAD_REQUEST))}return!function(e,t,n,o){let r=document.createElement("iframe");
32if(r.src=e,r.allow="autoplay; camera; microphone; fullscreen; accelerometer; magnetometer; gyroscope; picture-in-picture;",r.id=eh,t)es(r,n,o);else{r.style.cssText=ef;let e=function(){let e=document.createElement("div");return e.style.cssText=ed,e}();e.appendChild(r),document.body.appendChild(e),Q.on(r),ea(r)}}(n&&n.length>0?function(e,t,n){if(n){let o=new URL(e),r=o.searchParams;return r.set(t,n),o.search=r.toString(),o.toString()}return e}(t,"lang",n):t,r,i,a),window.addEventListener("message",d),{close:c}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.