onfido-sdk-ui
Version:
JavaScript SDK view layer for Onfido identity verification
2 lines • 86.3 kB
JavaScript
/*! OnfidoAuth SDK 6.17.0 */
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.OnfidoAuth=e():t.OnfidoAuth=e()}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="https://assets.onfido.com/web-sdk-releases/6.17.0/",n(n.s=652)}([function(t,e,n){"use strict";n.r(e),n.d(e,"render",(function(){return B})),n.d(e,"hydrate",(function(){return R})),n.d(e,"createElement",(function(){return _})),n.d(e,"h",(function(){return _})),n.d(e,"Fragment",(function(){return m})),n.d(e,"createRef",(function(){return h})),n.d(e,"isValidElement",(function(){return o})),n.d(e,"Component",(function(){return y})),n.d(e,"cloneElement",(function(){return F})),n.d(e,"createContext",(function(){return U})),n.d(e,"toChildArray",(function(){return C})),n.d(e,"options",(function(){return r}));var r,o,i,u,c,a,s={},f=[],l=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(t,e){for(var n in e)t[n]=e[n];return t}function d(t){var e=t.parentNode;e&&e.removeChild(t)}function _(t,e,n){var r,o,i,u=arguments,c={};for(i in e)"key"==i?r=e[i]:"ref"==i?o=e[i]:c[i]=e[i];if(arguments.length>3)for(n=[n],i=3;i<arguments.length;i++)n.push(u[i]);if(null!=n&&(c.children=n),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===c[i]&&(c[i]=t.defaultProps[i]);return v(t,c,r,o,null)}function v(t,e,n,o,i){var u={type:t,props:e,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++r.__v:i};return null!=r.vnode&&r.vnode(u),u}function h(){return{current:null}}function m(t){return t.children}function y(t,e){this.props=t,this.context=e}function b(t,e){if(null==e)return t.__?b(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?b(t):null}function g(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return g(t)}}function x(t){(!t.__d&&(t.__d=!0)&&i.push(t)&&!O.__r++||c!==r.debounceRendering)&&((c=r.debounceRendering)||u)(O)}function O(){for(var t;O.__r=i.length;)t=i.sort((function(t,e){return t.__v.__b-e.__v.__b})),i=[],t.some((function(t){var e,n,r,o,i,u;t.__d&&(i=(o=(e=t).__v).__e,(u=e.__P)&&(n=[],(r=p({},o)).__v=o.__v+1,N(u,o,r,e.__n,void 0!==u.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?b(o):i,o.__h),D(n,o),o.__e!=i&&g(o)))}))}function S(t,e,n,r,o,i,u,c,a,l){var p,d,_,h,y,g,x,O=r&&r.__k||f,S=O.length;for(n.__k=[],p=0;p<e.length;p++)if(null!=(h=n.__k[p]=null==(h=e[p])||"boolean"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?v(null,h,null,null,h):Array.isArray(h)?v(m,{children:h},null,null,null):h.__b>0?v(h.type,h.props,h.key,null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(_=O[p])||_&&h.key==_.key&&h.type===_.type)O[p]=void 0;else for(d=0;d<S;d++){if((_=O[d])&&h.key==_.key&&h.type===_.type){O[d]=void 0;break}_=null}N(t,h,_=_||s,o,i,u,c,a,l),y=h.__e,(d=h.ref)&&_.ref!=d&&(x||(x=[]),_.ref&&x.push(_.ref,null,h),x.push(d,h.__c||y,h)),null!=y?(null==g&&(g=y),"function"==typeof h.type&&null!=h.__k&&h.__k===_.__k?h.__d=a=w(h,a,t):a=j(t,h,_,O,y,a),l||"option"!==n.type?"function"==typeof n.type&&(n.__d=a):t.value=""):a&&_.__e==a&&a.parentNode!=t&&(a=b(_))}for(n.__e=g,p=S;p--;)null!=O[p]&&("function"==typeof n.type&&null!=O[p].__e&&O[p].__e==n.__d&&(n.__d=b(r,p+1)),L(O[p],O[p]));if(x)for(p=0;p<x.length;p++)M(x[p],x[++p],x[++p])}function w(t,e,n){var r,o;for(r=0;r<t.__k.length;r++)(o=t.__k[r])&&(o.__=t,e="function"==typeof o.type?w(o,e,n):j(n,o,o,t.__k,o.__e,e));return e}function C(t,e){return e=e||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){C(t,e)})):e.push(t)),e}function j(t,e,n,r,o,i){var u,c,a;if(void 0!==e.__d)u=e.__d,e.__d=void 0;else if(null==n||o!=i||null==o.parentNode)t:if(null==i||i.parentNode!==t)t.appendChild(o),u=null;else{for(c=i,a=0;(c=c.nextSibling)&&a<r.length;a+=2)if(c==o)break t;t.insertBefore(o,i),u=i}return void 0!==u?u:o.nextSibling}function k(t,e,n){"-"===e[0]?t.setProperty(e,n):t[e]=null==n?"":"number"!=typeof n||l.test(e)?n:n+"px"}function P(t,e,n,r,o){var i;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||k(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||k(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])i=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?r||t.addEventListener(e,i?E:A,i):t.removeEventListener(e,i?E:A,i);else if("dangerouslySetInnerHTML"!==e){if(o)e=e.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null!=n&&(!1!==n||"a"===e[0]&&"r"===e[1])?t.setAttribute(e,n):t.removeAttribute(e))}}function A(t){this.l[t.type+!1](r.event?r.event(t):t)}function E(t){this.l[t.type+!0](r.event?r.event(t):t)}function N(t,e,n,o,i,u,c,a,s){var f,l,d,_,v,h,b,g,x,O,w,C=e.type;if(void 0!==e.constructor)return null;null!=n.__h&&(s=n.__h,a=e.__e=n.__e,e.__h=null,u=[a]),(f=r.__b)&&f(e);try{t:if("function"==typeof C){if(g=e.props,x=(f=C.contextType)&&o[f.__c],O=f?x?x.props.value:f.__:o,n.__c?b=(l=e.__c=n.__c).__=l.__E:("prototype"in C&&C.prototype.render?e.__c=l=new C(g,O):(e.__c=l=new y(g,O),l.constructor=C,l.render=I),x&&x.sub(l),l.props=g,l.state||(l.state={}),l.context=O,l.__n=o,d=l.__d=!0,l.__h=[]),null==l.__s&&(l.__s=l.state),null!=C.getDerivedStateFromProps&&(l.__s==l.state&&(l.__s=p({},l.__s)),p(l.__s,C.getDerivedStateFromProps(g,l.__s))),_=l.props,v=l.state,d)null==C.getDerivedStateFromProps&&null!=l.componentWillMount&&l.componentWillMount(),null!=l.componentDidMount&&l.__h.push(l.componentDidMount);else{if(null==C.getDerivedStateFromProps&&g!==_&&null!=l.componentWillReceiveProps&&l.componentWillReceiveProps(g,O),!l.__e&&null!=l.shouldComponentUpdate&&!1===l.shouldComponentUpdate(g,l.__s,O)||e.__v===n.__v){l.props=g,l.state=l.__s,e.__v!==n.__v&&(l.__d=!1),l.__v=e,e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),l.__h.length&&c.push(l);break t}null!=l.componentWillUpdate&&l.componentWillUpdate(g,l.__s,O),null!=l.componentDidUpdate&&l.__h.push((function(){l.componentDidUpdate(_,v,h)}))}l.context=O,l.props=g,l.state=l.__s,(f=r.__r)&&f(e),l.__d=!1,l.__v=e,l.__P=t,f=l.render(l.props,l.state,l.context),l.state=l.__s,null!=l.getChildContext&&(o=p(p({},o),l.getChildContext())),d||null==l.getSnapshotBeforeUpdate||(h=l.getSnapshotBeforeUpdate(_,v)),w=null!=f&&f.type===m&&null==f.key?f.props.children:f,S(t,Array.isArray(w)?w:[w],e,n,o,i,u,c,a,s),l.base=e.__e,e.__h=null,l.__h.length&&c.push(l),b&&(l.__E=l.__=null),l.__e=!1}else null==u&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=T(n.__e,e,n,o,i,u,c,s);(f=r.diffed)&&f(e)}catch(t){e.__v=null,(s||null!=u)&&(e.__e=a,e.__h=!!s,u[u.indexOf(a)]=null),r.__e(t,e,n)}}function D(t,e){r.__c&&r.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){r.__e(t,e.__v)}}))}function T(t,e,n,r,o,i,u,c){var a,l,p,_,v=n.props,h=e.props,m=e.type,y=0;if("svg"===m&&(o=!0),null!=i)for(;y<i.length;y++)if((a=i[y])&&(a===t||(m?a.localName==m:3==a.nodeType))){t=a,i[y]=null;break}if(null==t){if(null===m)return document.createTextNode(h);t=o?document.createElementNS("http://www.w3.org/2000/svg",m):document.createElement(m,h.is&&h),i=null,c=!1}if(null===m)v===h||c&&t.data===h||(t.data=h);else{if(i=i&&f.slice.call(t.childNodes),l=(v=n.props||s).dangerouslySetInnerHTML,p=h.dangerouslySetInnerHTML,!c){if(null!=i)for(v={},_=0;_<t.attributes.length;_++)v[t.attributes[_].name]=t.attributes[_].value;(p||l)&&(p&&(l&&p.__html==l.__html||p.__html===t.innerHTML)||(t.innerHTML=p&&p.__html||""))}if(function(t,e,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in e||P(t,i,null,n[i],r);for(i in e)o&&"function"!=typeof e[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===e[i]||P(t,i,e[i],n[i],r)}(t,h,v,o,c),p)e.__k=[];else if(y=e.props.children,S(t,Array.isArray(y)?y:[y],e,n,r,o&&"foreignObject"!==m,i,u,t.firstChild,c),null!=i)for(y=i.length;y--;)null!=i[y]&&d(i[y]);c||("value"in h&&void 0!==(y=h.value)&&(y!==t.value||"progress"===m&&!y)&&P(t,"value",y,v.value,!1),"checked"in h&&void 0!==(y=h.checked)&&y!==t.checked&&P(t,"checked",y,v.checked,!1))}return t}function M(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){r.__e(t,n)}}function L(t,e,n){var o,i,u;if(r.unmount&&r.unmount(t),(o=t.ref)&&(o.current&&o.current!==t.__e||M(o,null,e)),n||"function"==typeof t.type||(n=null!=(i=t.__e)),t.__e=t.__d=void 0,null!=(o=t.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(t){r.__e(t,e)}o.base=o.__P=null}if(o=t.__k)for(u=0;u<o.length;u++)o[u]&&L(o[u],e,n);null!=i&&d(i)}function I(t,e,n){return this.constructor(t,n)}function B(t,e,n){var o,i,u;r.__&&r.__(t,e),i=(o="function"==typeof n)?null:n&&n.__k||e.__k,u=[],N(e,t=(!o&&n||e).__k=_(m,null,[t]),i||s,s,void 0!==e.ownerSVGElement,!o&&n?[n]:i?null:e.firstChild?f.slice.call(e.childNodes):null,u,!o&&n?n:i?i.__e:e.firstChild,o),D(u,t)}function R(t,e){B(t,e,R)}function F(t,e,n){var r,o,i,u=arguments,c=p({},t.props);for(i in e)"key"==i?r=e[i]:"ref"==i?o=e[i]:c[i]=e[i];if(arguments.length>3)for(n=[n],i=3;i<arguments.length;i++)n.push(u[i]);return null!=n&&(c.children=n),v(t.type,c,r||t.key,o||t.ref,null)}function U(t,e){var n={__c:e="__cC"+a++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,r;return this.getChildContext||(n=[],(r={})[e]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.some(x)},this.sub=function(t){n.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n.splice(n.indexOf(t),1),e&&e.call(t)}}),t.children}};return n.Provider.__=n.Consumer.contextType=n}r={__e:function(t,e){for(var n,r,o;e=e.__;)if((n=e.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(t)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(t),o=n.__d),o)return n.__E=n}catch(e){t=e}throw t},__v:0},o=function(t){return null!=t&&void 0===t.constructor},y.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof t&&(t=t(p({},n),this.props)),t&&p(n,t),null!=t&&this.__v&&(e&&this.__h.push(e),x(this))},y.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),x(this))},y.prototype.render=m,i=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,O.__r=0,a=0},function(t,e,n){var r=n(193);t.exports=function(t,e,n){return e in t?r(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},,,function(t,e,n){"use strict";n.r(e),n.d(e,"version",(function(){return z})),n.d(e,"Children",(function(){return d})),n.d(e,"render",(function(){return k})),n.d(e,"hydrate",(function(){return P})),n.d(e,"unmountComponentAtNode",(function(){return J})),n.d(e,"createPortal",(function(){return S})),n.d(e,"createFactory",(function(){return G})),n.d(e,"cloneElement",(function(){return K})),n.d(e,"isValidElement",(function(){return Y})),n.d(e,"findDOMNode",(function(){return $})),n.d(e,"PureComponent",(function(){return c})),n.d(e,"memo",(function(){return a})),n.d(e,"forwardRef",(function(){return l})),n.d(e,"unstable_batchedUpdates",(function(){return X})),n.d(e,"StrictMode",(function(){return Z})),n.d(e,"Suspense",(function(){return h})),n.d(e,"SuspenseList",(function(){return b})),n.d(e,"lazy",(function(){return y})),n.d(e,"__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",(function(){return B})),n.d(e,"unstable_ImmediatePriority",(function(){return R})),n.d(e,"unstable_UserBlockingPriority",(function(){return F})),n.d(e,"unstable_NormalPriority",(function(){return U})),n.d(e,"unstable_LowPriority",(function(){return H})),n.d(e,"unstable_IdlePriority",(function(){return W})),n.d(e,"unstable_runWithPriority",(function(){return V})),n.d(e,"unstable_now",(function(){return q}));var r=n(34);n.d(e,"useState",(function(){return r.k})),n.d(e,"useReducer",(function(){return r.i})),n.d(e,"useEffect",(function(){return r.d})),n.d(e,"useLayoutEffect",(function(){return r.g})),n.d(e,"useRef",(function(){return r.j})),n.d(e,"useImperativeHandle",(function(){return r.f})),n.d(e,"useMemo",(function(){return r.h})),n.d(e,"useCallback",(function(){return r.a})),n.d(e,"useContext",(function(){return r.b})),n.d(e,"useDebugValue",(function(){return r.c})),n.d(e,"useErrorBoundary",(function(){return r.e}));var o=n(0);function i(t,e){for(var n in e)t[n]=e[n];return t}function u(t,e){for(var n in t)if("__source"!==n&&!(n in e))return!0;for(var r in e)if("__source"!==r&&t[r]!==e[r])return!0;return!1}function c(t){this.props=t}function a(t,e){function n(t){var n=this.props.ref,r=n==t.ref;return!r&&n&&(n.call?n(null):n.current=null),e?!e(this.props,t)||!r:u(this.props,t)}function r(e){return this.shouldComponentUpdate=n,Object(o.createElement)(t,e)}return r.displayName="Memo("+(t.displayName||t.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}n.d(e,"createElement",(function(){return o.createElement})),n.d(e,"createContext",(function(){return o.createContext})),n.d(e,"createRef",(function(){return o.createRef})),n.d(e,"Fragment",(function(){return o.Fragment})),n.d(e,"Component",(function(){return o.Component})),(c.prototype=new o.Component).isPureReactComponent=!0,c.prototype.shouldComponentUpdate=function(t,e){return u(this.props,t)||u(this.state,e)};var s=o.options.__b;o.options.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),s&&s(t)};var f="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function l(t){function e(e,n){var r=i({},e);return delete r.ref,t(r,(n=e.ref||n)&&("object"!=typeof n||"current"in n)?n:null)}return e.$$typeof=f,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var p=function(t,e){return null==t?null:Object(o.toChildArray)(Object(o.toChildArray)(t).map(e))},d={map:p,forEach:p,count:function(t){return t?Object(o.toChildArray)(t).length:0},only:function(t){var e=Object(o.toChildArray)(t);if(1!==e.length)throw"Children.only";return e[0]},toArray:o.toChildArray},_=o.options.__e;o.options.__e=function(t,e,n){if(t.then)for(var r,o=e;o=o.__;)if((r=o.__c)&&r.__c)return null==e.__e&&(e.__e=n.__e,e.__k=n.__k),r.__c(t,e);_(t,e,n)};var v=o.options.unmount;function h(){this.__u=0,this.t=null,this.__b=null}function m(t){var e=t.__.__c;return e&&e.__e&&e.__e(t)}function y(t){var e,n,r;function i(i){if(e||(e=t()).then((function(t){n=t.default||t}),(function(t){r=t})),r)throw r;if(!n)throw e;return Object(o.createElement)(n,i)}return i.displayName="Lazy",i.__f=!0,i}function b(){this.u=null,this.o=null}o.options.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&!0===t.__h&&(t.type=null),v&&v(t)},(h.prototype=new o.Component).__c=function(t,e){var n=e.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=m(r.__v),i=!1,u=function(){i||(i=!0,n.__R=null,o?o(c):c())};n.__R=u;var c=function(){if(!--r.__u){if(r.state.__e){var t=r.state.__e;r.__v.__k[0]=function t(e,n,r){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return t(e,n,r)})),e.__c&&e.__c.__P===n&&(e.__e&&r.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=r)),e}(t,t.__c.__P,t.__c.__O)}var e;for(r.setState({__e:r.__b=null});e=r.t.pop();)e.forceUpdate()}},a=!0===e.__h;r.__u++||a||r.setState({__e:r.__b=r.__v.__k[0]}),t.then(u,u)},h.prototype.componentWillUnmount=function(){this.t=[]},h.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function t(e,n,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(t){"function"==typeof t.__c&&t.__c()})),e.__c.__H=null),null!=(e=i({},e)).__c&&(e.__c.__P===r&&(e.__c.__P=n),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return t(e,n,r)}))),e}(this.__b,n,r.__O=r.__P)}this.__b=null}var u=e.__e&&Object(o.createElement)(o.Fragment,null,t.fallback);return u&&(u.__h=null),[Object(o.createElement)(o.Fragment,null,e.__e?null:t.children),u]};var g=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&("t"!==t.props.revealOrder[0]||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;t.u=n=n[2]}};function x(t){return this.getChildContext=function(){return t.context},t.children}function O(t){var e=this,n=t.i;e.componentWillUnmount=function(){Object(o.render)(null,e.l),e.l=null,e.i=null},e.i&&e.i!==n&&e.componentWillUnmount(),t.__v?(e.l||(e.i=n,e.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(t){this.childNodes.push(t),e.i.appendChild(t)},insertBefore:function(t,n){this.childNodes.push(t),e.i.appendChild(t)},removeChild:function(t){this.childNodes.splice(this.childNodes.indexOf(t)>>>1,1),e.i.removeChild(t)}}),Object(o.render)(Object(o.createElement)(x,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function S(t,e){return Object(o.createElement)(O,{__v:t,i:e})}(b.prototype=new o.Component).__e=function(t){var e=this,n=m(e.__v),r=e.o.get(t);return r[0]++,function(o){var i=function(){e.props.revealOrder?(r.push(o),g(e,t,r)):o()};n?n(i):i()}},b.prototype.render=function(t){this.u=null,this.o=new Map;var e=Object(o.toChildArray)(t.children);t.revealOrder&&"b"===t.revealOrder[0]&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},b.prototype.componentDidUpdate=b.prototype.componentDidMount=function(){var t=this;this.o.forEach((function(e,n){g(t,n,e)}))};var w="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,C=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,j=function(t){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(t)};function k(t,e,n){return null==e.__k&&(e.textContent=""),Object(o.render)(t,e),"function"==typeof n&&n(),t?t.__c:null}function P(t,e,n){return Object(o.hydrate)(t,e),"function"==typeof n&&n(),t?t.__c:null}o.Component.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(t){Object.defineProperty(o.Component.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}));var A=o.options.event;function E(){}function N(){return this.cancelBubble}function D(){return this.defaultPrevented}o.options.event=function(t){return A&&(t=A(t)),t.persist=E,t.isPropagationStopped=N,t.isDefaultPrevented=D,t.nativeEvent=t};var T,M={configurable:!0,get:function(){return this.class}},L=o.options.vnode;o.options.vnode=function(t){var e=t.type,n=t.props,r=n;if("string"==typeof e){for(var i in r={},n){var u=n[i];"value"===i&&"defaultValue"in n&&null==u||("defaultValue"===i&&"value"in n&&null==n.value?i="value":"download"===i&&!0===u?u="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+e)&&!j(n.type)?i="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(i)?i=i.toLowerCase():C.test(i)?i=i.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===u&&(u=void 0),r[i]=u)}"select"==e&&r.multiple&&Array.isArray(r.value)&&(r.value=Object(o.toChildArray)(n.children).forEach((function(t){t.props.selected=-1!=r.value.indexOf(t.props.value)}))),"select"==e&&null!=r.defaultValue&&(r.value=Object(o.toChildArray)(n.children).forEach((function(t){t.props.selected=r.multiple?-1!=r.defaultValue.indexOf(t.props.value):r.defaultValue==t.props.value}))),t.props=r}e&&n.class!=n.className&&(M.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",M)),t.$$typeof=w,L&&L(t)};var I=o.options.__r;o.options.__r=function(t){I&&I(t),T=t.__c};var B={ReactCurrentDispatcher:{current:{readContext:function(t){return T.__n[t.__c].props.value}}}},R=1,F=2,U=3,H=4,W=5;function V(t,e){return e()}var q="object"==typeof performance&&"function"==typeof performance.now?performance.now.bind(performance):function(){return Date.now()},z="16.8.0";function G(t){return o.createElement.bind(null,t)}function Y(t){return!!t&&t.$$typeof===w}function K(t){return Y(t)?o.cloneElement.apply(null,arguments):t}function J(t){return!!t.__k&&(Object(o.render)(null,t),!0)}function $(t){return t&&(t.base||1===t.nodeType&&t)||null}var X=function(t,e){return t(e)},Z=o.Fragment;e.default={useState:r.k,useReducer:r.i,useEffect:r.d,useLayoutEffect:r.g,useRef:r.j,useImperativeHandle:r.f,useMemo:r.h,useCallback:r.a,useContext:r.b,useDebugValue:r.c,version:"16.8.0",Children:d,render:k,hydrate:P,unmountComponentAtNode:J,createPortal:S,createElement:o.createElement,createContext:o.createContext,createFactory:G,cloneElement:K,createRef:o.createRef,Fragment:o.Fragment,isValidElement:Y,findDOMNode:$,Component:o.Component,PureComponent:c,memo:a,forwardRef:l,unstable_batchedUpdates:X,StrictMode:o.Fragment,Suspense:h,SuspenseList:b,lazy:y,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:B}},,function(t,e,n){t.exports=n(312)},,,,function(t,e,n){t.exports=n(188)},function(t,e,n){t.exports=n(233)},function(t,e,n){t.exports=n(217)},function(t,e,n){t.exports=n(231)},function(t,e,n){t.exports=n(236)},function(t,e,n){t.exports=n(238)},,,function(t,e,n){"use strict";var r=n(31),o=n(71).f,i=n(148),u=n(27),c=n(72),a=n(42),s=n(36),f=function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e};t.exports=function(t,e){var n,l,p,d,_,v,h,m,y=t.target,b=t.global,g=t.stat,x=t.proto,O=b?r:g?r[y]:(r[y]||{}).prototype,S=b?u:u[y]||(u[y]={}),w=S.prototype;for(p in e)n=!i(b?p:y+(g?".":"#")+p,t.forced)&&O&&s(O,p),_=S[p],n&&(v=t.noTargetGet?(m=o(O,p))&&m.value:O[p]),d=n&&v?v:e[p],n&&typeof _==typeof d||(h=t.bind&&n?c(d,r):t.wrap&&n?f(d):x&&"function"==typeof d?c(Function.call,d):d,(t.sham||d&&d.sham||_&&_.sham)&&a(h,"sham",!0),S[p]=h,x&&(s(u,l=y+"Prototype")||a(u,l,{}),u[l][p]=d,t.real&&w&&!w[p]&&a(w,p,d)))}},,,,function(t,e,n){var r=n(261),o=n(262),i=n(265);t.exports=function(t,e){return r(t)||o(t,e)||i()}},,function(t,e,n){t.exports=n(212)},function(t,e,n){t.exports=n(240)},function(t,e,n){t.exports=n(214)},function(t,e){t.exports={}},function(t,e,n){var r=n(31),o=n(116),i=n(36),u=n(106),c=n(117),a=n(156),s=o("wks"),f=r.Symbol,l=a?f:f&&f.withoutSetter||u;t.exports=function(t){return i(s,t)||(c&&i(f,t)?s[t]=f[t]:s[t]=l("Symbol."+t)),s[t]}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},,function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||Function("return this")()}).call(this,n(123))},function(t,e,n){var r=n(29);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},,function(t,e,n){"use strict";n.d(e,"k",(function(){return v})),n.d(e,"i",(function(){return h})),n.d(e,"d",(function(){return m})),n.d(e,"g",(function(){return y})),n.d(e,"j",(function(){return b})),n.d(e,"f",(function(){return g})),n.d(e,"h",(function(){return x})),n.d(e,"a",(function(){return O})),n.d(e,"b",(function(){return S})),n.d(e,"c",(function(){return w})),n.d(e,"e",(function(){return C}));var r,o,i,u=n(0),c=0,a=[],s=u.options.__b,f=u.options.__r,l=u.options.diffed,p=u.options.__c,d=u.options.unmount;function _(t,e){u.options.__h&&u.options.__h(o,t,c||e),c=0;var n=o.__H||(o.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function v(t){return c=1,h(N,t)}function h(t,e,n){var i=_(r++,2);return i.t=t,i.__c||(i.__=[n?n(e):N(void 0,e),function(t){var e=i.t(i.__[0],t);i.__[0]!==e&&(i.__=[e,i.__[1]],i.__c.setState({}))}],i.__c=o),i.__}function m(t,e){var n=_(r++,3);!u.options.__s&&E(n.__H,e)&&(n.__=t,n.__H=e,o.__H.__h.push(n))}function y(t,e){var n=_(r++,4);!u.options.__s&&E(n.__H,e)&&(n.__=t,n.__H=e,o.__h.push(n))}function b(t){return c=5,x((function(){return{current:t}}),[])}function g(t,e,n){c=6,y((function(){"function"==typeof t?t(e()):t&&(t.current=e())}),null==n?n:n.concat(t))}function x(t,e){var n=_(r++,7);return E(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function O(t,e){return c=8,x((function(){return t}),e)}function S(t){var e=o.context[t.__c],n=_(r++,9);return n.__c=t,e?(null==n.__&&(n.__=!0,e.sub(o)),e.props.value):t.__}function w(t,e){u.options.useDebugValue&&u.options.useDebugValue(e?e(t):t)}function C(t){var e=_(r++,10),n=v();return e.__=t,o.componentDidCatch||(o.componentDidCatch=function(t){e.__&&e.__(t),n[1](t)}),[n[0],function(){n[1](void 0)}]}function j(){a.forEach((function(t){if(t.__P)try{t.__H.__h.forEach(P),t.__H.__h.forEach(A),t.__H.__h=[]}catch(e){t.__H.__h=[],u.options.__e(e,t.__v)}})),a=[]}u.options.__b=function(t){o=null,s&&s(t)},u.options.__r=function(t){f&&f(t),r=0;var e=(o=t.__c).__H;e&&(e.__h.forEach(P),e.__h.forEach(A),e.__h=[])},u.options.diffed=function(t){l&&l(t);var e=t.__c;e&&e.__H&&e.__H.__h.length&&(1!==a.push(e)&&i===u.options.requestAnimationFrame||((i=u.options.requestAnimationFrame)||function(t){var e,n=function(){clearTimeout(r),k&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);k&&(e=requestAnimationFrame(n))})(j)),o=void 0},u.options.__c=function(t,e){e.some((function(t){try{t.__h.forEach(P),t.__h=t.__h.filter((function(t){return!t.__||A(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],u.options.__e(n,t.__v)}})),p&&p(t,e)},u.options.unmount=function(t){d&&d(t);var e=t.__c;if(e&&e.__H)try{e.__H.__.forEach(P)}catch(t){u.options.__e(t,e.__v)}};var k="function"==typeof requestAnimationFrame;function P(t){var e=o;"function"==typeof t.__c&&t.__c(),o=e}function A(t){var e=o;t.__c=t.__(),o=e}function E(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function N(t,e){return"function"==typeof e?e(t):e}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(35);t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},function(t,e,n){t.exports=n(249)},function(t,e,n){var r=n(27);t.exports=function(t){return r[t+"Prototype"]}},function(t,e,n){var r=n(96),o=n(97);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(328),o=n(329),i=n(334);t.exports=function(t){return r(t)||o(t)||i()}},function(t,e,n){var r=n(32),o=n(44),i=n(67);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},,function(t,e,n){var r=n(32),o=n(147),i=n(37),u=n(87),c=Object.defineProperty;e.f=r?c:function(t,e,n){if(i(t),e=u(e,!0),i(n),o)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(27),o=n(31),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t])||i(o[t]):r[t]&&r[t][e]||o[t]&&o[t][e]}},function(t,e,n){var r=n(32),o=n(29),i=n(36),u=Object.defineProperty,c={},a=function(t){throw t};t.exports=function(t,e){if(i(c,t))return c[t];e||(e={});var n=[][t],s=!!i(e,"ACCESSORS")&&e.ACCESSORS,f=i(e,0)?e[0]:a,l=i(e,1)?e[1]:void 0;return c[t]=!!n&&!o((function(){if(s&&!r)return!0;var t={length:-1};s?u(t,1,{enumerable:!0,get:a}):t[1]=1,n.call(t,f,l)}))}},,function(t,e,n){var r=n(97);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(245),o=n(294),i=n(318);t.exports=function(t,e){if(null==t)return{};var n,u,c=i(t,e);if(o){var a=o(t);for(u=0;u<a.length;u++)n=a[u],r(e).call(e,n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(c[n]=t[n])}return c}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},,function(t,e,n){"use strict";n.d(e,"i",(function(){return q})),n.d(e,"f",(function(){return z})),n.d(e,"c",(function(){return G})),n.d(e,"d",(function(){return Y})),n.d(e,"a",(function(){return K})),n.d(e,"b",(function(){return J})),n.d(e,"h",(function(){return $})),n.d(e,"g",(function(){return Z})),n.d(e,"e",(function(){return Q}));var r,o,i=n(24),u=n.n(i),c=n(26),a=n.n(c),s=n(12),f=n.n(s),l=n(10),p=n.n(l),d=n(13),_=n.n(d),v=n(14),h=n.n(v),m=n(15),y=n.n(m),b=n(66),g=n.n(b),x=n(11),O=n.n(x),S=n(25),w=n.n(S),C=n(38),j=n.n(C),k=n(60),P=n.n(k),A=n(1),E=n.n(A),N=n(22),D=n.n(N),T=n(101),M=n.n(T),L=n(64),I=n.n(L),B=n(184),R=n.p+"images/onfido-logo_3N2AY.svg",F=n.p+"images/onfido-logo-light_3bEB6.svg",U=n.p+"images/sample-logo_2hXI-.svg";function H(t,e){var n=y()(t);if(h.a){var r=h()(t);e&&(r=O()(r).call(r,(function(e){return _()(t,e).enumerable}))),n.push.apply(n,r)}return n}function W(t){for(var e=1;e<arguments.length;e++){var n,r=null!=arguments[e]?arguments[e]:{};if(e%2)p()(n=H(Object(r),!0)).call(n,(function(e){E()(t,e,r[e])}));else if(f.a)a()(t,f()(r));else{var o;p()(o=H(Object(r))).call(o,(function(e){u()(t,e,_()(r,e))}))}}return t}var V={locale:"en",phrases:{"welcome.title":"My custom title"},mobilePhrases:{"capture.driving_licence.back.instructions":"Custom instructions"}},q=I()(r=M()(o=window.location.search).call(o,1).split("&")).call(r,(function(t,e){var n=e.split("="),r=D()(n,2),o=r[0],i=r[1];return W(W({},t),{},E()({},o,i))}),{}),z=function(){var t=q.link_id;if(t)return{mobileFlow:!0,roomId:t.substring(2)};var e,n="customTranslations"===q.language?V:q.language,r=[];"true"===q.customWelcomeScreenCopy?r.push({type:"welcome",options:{title:"Open your new bank account",descriptions:["To open a bank account, we will need to verify your identity.","It will only take a couple of minutes."],nextButton:"Verify Identity"}}):r.push({type:"welcome"}),"true"===q.showAuth&&r.push({type:"auth",options:{retries:10}}),"true"===q.showUserConsent&&r.push({type:"userConsent"}),"true"===q.poa&&r.push({type:"poa"}),r.push({type:"document",options:{useLiveDocumentCapture:"true"===q.useLiveDocumentCapture,uploadFallback:"false"!==q.uploadFallback,useWebcam:"true"===q.useWebcam,documentTypes:(e=q.oneDoc,e?E()({},e,!0):"true"===q.oneDocWithCountrySelection?{driving_licence:!0}:"true"===q.oneDocWithPresetCountry?{driving_licence:{country:"ESP"}}:"true"===q.multiDocWithPresetCountry?{driving_licence:{country:"ESP"},national_identity_card:{country:"MYS"},residence_permit:{country:null}}:"true"===q.multiDocWithInvalidPresetCountry?{driving_licence:{country:"ES"},national_identity_card:{country:"XYZ"}}:"true"===q.multiDocWithBooleanValues?{driving_licence:!0,national_identity_card:!0}:{}),showCountrySelection:"true"===q.oneDocWithCountrySelection,forceCrossDevice:"true"===q.forceCrossDevice,requestedVariant:"true"===q.docVideo?"video":"standard"}}),r.push({type:"face",options:{useUploader:"true"===q.useUploader,uploadFallback:"false"!==q.uploadFallback,useMultipleSelfieCapture:"false"!==q.useMultipleSelfieCapture,photoCaptureFallback:"false"!==q.photoCaptureFallback,requestedVariant:"true"===q.faceVideo?"video":"standard"}}),"true"!==q.noCompleteStep&&r.push({type:"complete"});var o,i=q.countryCode?{smsNumberCountryCode:q.countryCode}:{},u="true"===q.hideOnfidoLogo,c="true"===q.showCobrand?{text:"[COMPANY/PRODUCT NAME]"}:void 0,a="true"===q.showLogoCobrand?{lightLogoSrc:F,darkLogoSrc:R}:void 0,s="true"===q.useCustomizedApiRequests,f={};if("success"===q.decoupleResponse){var l=P.a.resolve({onfidoSuccessResponse:{id:"123-456-789"}});f={onSubmitDocument:function(){return l},onSubmitSelfie:function(){return l},onSubmitVideo:function(){return l}}}else if("error"===q.decoupleResponse){var p={status:422,response:j()({error:{message:"There was a validation error on this request",type:"validation_error",fields:{detect_glare:["glare found in image"]}}})};f={onSubmitDocument:function(){return P.a.reject(p)},onSubmitSelfie:function(){return P.a.reject(p)},onSubmitVideo:function(){return P.a.reject(p)}}}else if("onfido"===q.decoupleResponse){var d=P.a.resolve({continueWithOnfidoSubmission:!0});f={onSubmitDocument:function(){return d},onSubmitSelfie:function(){return d},onSubmitVideo:function(){return d}}}"true"===q.excludeSmsCrossDeviceOption&&(o=["copy_link","qr_code"]),"true"===q.singleCrossDeviceOption&&(o=["sms"]),"true"===q.invalidCrossDeviceAlternativeMethods&&(o=["copy","qrCode","sms"]);var _="true"===q.customisedUI?B:void 0,v="true"===q.crossDeviceClientIntroCustomProductName?"for a [COMPANY/PRODUCT NAME] loan":void 0,h="true"===q.crossDeviceClientIntroCustomProductLogo?U:void 0,m=!0;return q.autoFocusOnInitialScreenTitle&&(m="true"===q.autoFocusOnInitialScreenTitle),W(W({useModal:"true"===q.useModal,shouldCloseOnOverlayClick:"true"!==q.shouldCloseOnOverlayClick,language:n,disableAnalytics:"true"===q.disableAnalytics,useMemoryHistory:"true"===q.useMemoryHistory,steps:r,mobileFlow:!1,userDetails:{smsNumber:q.smsNumber},enterpriseFeatures:W({hideOnfidoLogo:u,cobrand:c,logoCobrand:a,useCustomizedApiRequests:s},f),customUI:_,crossDeviceClientIntroProductName:v,crossDeviceClientIntroProductLogoSrc:h},i),{},{_crossDeviceLinkMethods:o,autoFocusOnInitialScreenTitle:m})},G={standard:[],faceVideo:["welcome","document",{type:"face",options:{requestedVariant:"video"}},"complete"],poa:["welcome","poa","complete"],"no welcome":["document","face","complete"],"no complete":["welcome","document","face"],"upload fallback":["welcome",{type:"document",options:{useWebcam:!1}},{type:"face",options:{uploadFallback:!0}},"complete"],"document autocapture (BETA)":["welcome",{type:"document",options:{useWebcam:!0}},"face","complete"],"document live capture (BETA)":["welcome",{type:"document",options:{useLiveDocumentCapture:!0}},"face","complete"],"force cross device (docs)":["welcome",{type:"document",options:{forceCrossDevice:!0}},"face","complete"],"no upload fallback":["welcome",{type:"document",options:{useWebcam:!1}},{type:"face",options:{uploadFallback:!1}},"complete"],"no snapshot":["welcome","document",{type:"face",options:{useMultipleSelfieCapture:!1}},"complete"]},Y={smsOnly:["sms"],copyLinkOnly:["copy_link"],qrCodeOnly:["qr_code"],excludeSms:["copy_link","qr_code"],reorderOptions:["sms","copy_link","qr_code"],invalidOptions:["copy","qrCode","sms"]},K={en:"en",es:"es",de:"de",fr:"fr",nl:"nl",custom:{phrases:{"welcome.title":"My custom title"},mobilePhrases:{"capture.driving_licence.back.instructions":"Custom instructions"}}},J=["EU","US","CA"],$=function(t){if("US"===t)return"https://token-factory.us.onfido.com/sdk_token";if("CA"===t)return"https://token-factory.ca.onfido.com/sdk_token";if("EU"===t)return"https://token-factory.onfido.com/sdk_token";throw new Error("No JWT_FACTORY env provided")},X=function(t){var e,n;return t?w()(e=O()(n=g()(t)).call(n,(function(t){return D()(t,2)[1]}))).call(e,(function(t){return t.join("=")})).join("&"):""},Z=function(t,e,n,r,o){var i=new XMLHttpRequest;i.open("GET",[e,X(n)].join("?"),!0),i.setRequestHeader("Authorization","BASIC ".concat("NA")),i.onload=function(){if(i.status>=200&&i.status<400){var e=JSON.parse(i.responseText);t&&r&&r.postMessage({type:"UPDATE_CHECK_DATA",payload:{applicantId:e.applicant_id}}),o(e.message,e.applicant_id)}},i.send()},Q=function(t,e,n){var r;if(q.createCheck&&t&&e){var o=q.poa,i=q.docVideo,u=q.faceVideo,c=new XMLHttpRequest;c.open("POST",t.replace("sdk_token","check"),!0),c.setRequestHeader("Content-Type","application/json;charset=UTF-8"),c.setRequestHeader("Authorization","BASIC ".concat("NA")),c.onload=function(){if(c.status>=200&&c.status<400){var t=JSON.parse(c.responseText);console.log("Check created!",t)}};var a={applicant_id:e,report_names:[o?"proof_of_address":i?"document_video_capture":"document",u?"facial_similarity_video":"facial_similarity_photo"],document_ids:i?null==n||null===(r=n.document_video)||void 0===r?void 0:r.media_uuids:void 0};c.send(j()(a))}}},,function(t,e,n){var r=n(98),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e){t.exports={}},function(t,e,n){var r=n(27),o=n(36),i=n(138),u=n(44).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});o(e,t)||u(e,t,{value:i.f(t)})}},,,,function(t,e,n){t.exports=n(274)},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},,function(t,e){t.exports=!0},function(t,e,n){t.exports=n(252)},function(t,e,n){var r=n(72),o=n(96),i=n(48),u=n(54),c=n(158),a=[].push,s=function(t){var e=1==t,n=2==t,s=3==t,f=4==t,l=6==t,p=5==t||l;return function(d,_,v,h){for(var m,y,b=i(d),g=o(b),x=r(_,v,3),O=u(g.length),S=0,w=h||c,C=e?w(d,O):n?w(d,0):void 0;O>S;S++)if((p||S in g)&&(y=x(m=g[S],S,b),t))if(e)C[S]=y;else if(y)switch(t){case 3:return!0;case 5:return m;case 6:return S;case 2:a.call(C,m)}else if(f)return!1;return l?-1:s||f?f:C}};t.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6)}},function(t,e,n){t.exports=n(266)},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){n(171);var r=n(226),o=n(31),i=n(69),u=n(42),c=n(55),a=n(28)("toStringTag");for(var s in r){var f=o[s],l=f&&f.prototype;l&&i(l)!==a&&u(l,a,s),c[s]=c.Array}},function(t,e,n){var r=n(118),o=n(61),i=n(28)("toStringTag"),u="Arguments"==o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?n:u?o(e):"Object"==(r=o(e))&&"function"==typeof e.callee?"Arguments":r}},,function(t,e,n){var r=n(32),o=n(95),i=n(67),u=n(40),c=n(87),a=n(36),s=n(147),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=u(t),e=c(e,!0),s)try{return f(t,e)}catch(t){}if(a(t,e))return i(!o.f.call(t,e),t[e])}},function(t,e,n){var r=n(50);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r,o,i,u=n(221),c=n(31),a=n(35),s=n(42),f=n(36),l=n(89),p=n(83),d=c.WeakMap;if(u){var _=new d,v=_.get,h=_.has,m=_.set;r=function(t,e){return m.call(_,t,e),e},o=function(t){return v.call(_,t)||{}},i=function(t){return h.call(_,t)}}else{var y=l("state");p[y]=!0,r=function(t,e){return s(t,y,e),e},o=function(t){return f(t,y)?t[y]:{}},i=function(t){return f(t,y)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!a(e)||(n=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},function(t,e,n){var r=n(118),o=n(44).f,i=n(42),u=n(36),c=n(224),a=n(28)("toStringTag");t.exports=function(t,e,n,s){if(t){var f=n?t:t.prototype;u(f,a)||o(f,a,{configurable:!0,value:e}),s&&!r&&i(f,"toString",c)}}},function(t,e,n){var r=n(42);t.exports=function(t,e,n,o){o&&o.enumerable?t[e]=n:r(t,e,n)}},,,,function(t,e,n){var r=n(150),o=n(114);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(61);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){"use strict";var r=n(258).charAt,o=n(73),i=n(136),u=o.set,c=o.getterFor("String Iterator");i(String,"String",(function(t){u(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=c(this),n=e.string,o=e.index;return o>=n.length?{value:void 0,done:!0}:(t=r(n,o),e.index+=t.length,{value:t,done:!1})}))},,function(t,e){t.exports={}},function(t,e,n){"use strict";var r=n(29);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},,,function(t,e,n){var r=n(35);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){"use strict";var r=n(87),o=n(44),i=n(67);t.exports=function(t,e,n){var u=r(e);u in t?o.f(t,u,i(0,n)):t[u]=n}},function(t,e,n){var r=n(116),o=n(106),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e,n){var r=n(29),o=n(28),i=n(126),u=o("species");t.exports=function(t){return i>=51||!r((function(){var e=[];return(e.constructor={})[u]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},function(t,e,n){"use strict";n.d(e,"a",(function(){return d})),n.d(e,"d",(function(){return _})),n.d(e,"b",(function(){return v})),n.d(e,"c",(function(){return h}));var r=n(41),o=n.n(r),i=n(6),u=n.n(i),c=n(64),a=n.n(c),s=n(283),f=n.n(s),l=n(11),p=n.n(l),d=function(t){return p()(t).call(t,(function(t){return t}))},_=function(t){return f()(t)?t:[t]},v=function(t){return a()(t).call(t,(function(t,e){var n,r;return(n=u()(t)).call.apply(n,u()(r=[t]).call(r,o()(_(e))))}),[])},h=function(t){return null!=t}},,,,function(t,e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},function(t,e,n){var r=n(29),o=n(61),i="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(37),o=n(179),i=n(54),u=n(72),c=n(128),a=n(178),s=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,e,n,f,l){var p,d,_,v,h,m,y,b=u(e,n,f?2:1);if(l)p=t;else{if("function"!=typeof(d=c(t)))throw TypeError("Target is not iterable");if(o(d)){for(_=0,v=i(t.length);v>_;_++)if((h=f?b(r(y=t[_])[0],y[1]):b(t[_]))&&h instanceof s)return h;return new s(!1)}p=d.call(t)}for(m=p.next;!(y=m.call(p)).done;)if("object"==typeof(h=a(p,b,y.value,f))&&h&&h instanceof s)return h;return new s(!1)}).stop=function(t){return new s(!0,t)}},function(t,e,n){"use strict";var r=n(50),o=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new o(t)}},function(t,e,n){t.exports=n(270)},,,,,function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},function(t,e,n){var r,o=n(37),i=n(149),u=n(114),c=n(83),a=n(157),s=n(113),f=n(89),l=f("IE_PROTO"),p=function(){},d=function(t){return"<script>"+t+"<\/script>"},_=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;_=r?function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e}(r):((e=s("iframe")).style.display="none",a.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(d("document.F=Object")),t.close(),t.F);for(var n=u.length;n--;)delete _.prototype[u[n]];return _()};c[l]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(p.prototype=o(t),n=new p,p.prototype=null,n[l]=t):n=_(),void 0===e?n:i(n,e)}},,,,,,function(t,e,n){var r=n(31),o=n(35),i=r.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,n){var r=n(150),o=n(114).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(63),o=n(154);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.4",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(29);t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},function(t,e,n){var r={};r[n(28)("toStringTag")]="z",t.exports="[object z]"===String(r)},,,,,function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(36),o=n(48),i=n(89),u=n(189),c=i("IE_PROTO"),a=Object.prototype;t.exports=u?Object.getPrototypeOf:function(t){return t=o(t),r(t,c)?t[c]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var r,o,i=n(31),u=n(137),c=i.process,a=c&&c.versions,s=a&&a.v8;s?o=(r=s.split("."))[0]+r[1]:u&&(!(r=u.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=u.match(/Chrome\/(\d+)/))&&(o=r[1]),t.exports=o&&+o},,function(t,e,n){var r=n(69),o=n(55),i=n(28)("iterator");t.exports=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},,,,,,function(t,e,n){var r=n(98),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},function(t,e,n){"use strict";var r=n(18),o=n(223),i=n(125),u=n(172),c=n(74),a=n(42),s=n(75),f=n(28),l=n(63),p=n(55),d=n(155),_=d.IteratorPrototype,v=d.BUGGY_SAFARI_ITERATORS,h=f("iterator"),m=function(){return this};t.exports=function(t,e,n,f,d,y,b){o(n,e,f);var g,x,O,S=function(t){if(t===d&&P)return P;if(!v&&t in j)return j[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},w=e+" Iterator",C=!1,j=t.prototype,k=j[h]||j["@@iterator"]||d&&j[d],P=!v&&k||S(d),A="Array"==e&&j.entries||k;if(A&&(g=i(A.call(new t)),_!==Object.prototype&&g.next&&(l||i(g)===_||(u?u(g,_):"function"!=typeof g[h]&&a(g,h,m)),c(g,w,!0,!0),l&&(p[w]=m))),"values"==d&&k&&"values"!==k.name&&(C=!0,P=function(){return k.call(this)}),l&&!b||j[h]===P||a(j,h,P),p[e]=P,d)if(x={values:S("values"),keys:y?P:S("keys"),entries:S("entries")},b)for(O in x)(v||C||!(O in j))&&s(j,O,x[O]);else r({target:e,proto:!0,forced:v||C},x);return x}},function(t,e,n){var r=n(45);t.exports=r("navigator","userAgent")||""},function(t,e,n){var r=n(28);e.f=r},,,,,,function(t,e,n){"use strict";var r=n(11),o=n.n(r),i=n(25),u=n.n(i),c=n(91),a={os:[{name:"Windows Phone",codeName:"Windows Phone",versionPrefix:"Windows Phone"},{name:"Windows",codeName:"Win",versionPrefix:"NT"},{name:"iPhone",codeName:"iPhone",versionPrefix:"OS"},{name:"iPad",codeName:"iPad",versionPrefix:"OS"},{name:"Kindle",codeName:"Silk",versionPrefix:"Silk"},{name:"Android",codeName:"Android",versionPrefix:"Android"},{name:"PlayBook",codeName:"PlayBook",versionPrefix:"OS"},{name:"BlackBerry",codeName:"BlackBerry",versionPrefix:"/"},{name:"Macintosh",codeName:"Mac",versionPrefix:"OS X"},{name:"Linux",codeName:"Linux",versionPrefix:"rv"},{name:"Palm",codeName:"Palm",versionPrefix:"PalmOS"}],browser:[{name:"BlackBerry",codeName:"CLDC",versionPrefix:"CLDC"},{name:"Edge",codeName:"Edg",versionPrefix:"Edg"},{name:"Opera",codeName:"OPR",versionPrefix:"OPR"},{name:"Opera Touch",codeName:"OPT",versionPrefix:"OPT"},{name:"Samsung Browser",codeName:"SamsungBrowser",versionPrefix:"SamsungBrowser"},{name:"UC Browser",codeName:"UCBrowser",versionPrefix:"UCBrowser"},{name:"Yandex",codeName:"YaBrowser",versionPrefix:"YaBrowser"},{name:"Firefox",codeName:"Firefox",versionPrefix:"Firefox"},{name:"Firefox iOS",codeName:"FxiOS",versionPrefix:"FxiOS"},{name:"Internet Explorer Mobile",codeName:"IEMobile",versionPrefix:"IEMobile"},{name:"Internet Explorer",codeName:"MSIE",versionPrefix:"MSIE"},{name:"Internet Explorer",codeName:"rv",versionPrefix:"rv"},{name:"Chrome",codeName:"Chrome",versionPrefix:"Chrome"},{name:"Chrome iOS",codeName:"CriOS",versionPrefix:"CriOS"},{name:"Safari",codeName:"Safari",versionPrefix:"Version"},{name:"Mozilla",codeName:"Mozilla",versionPrefix:"Mozilla"}]};e.a=function(t){var e,n=[window.navigator.platform,window.navigator.userAgent,window.navigator.appVersion,window.navigator.vendor].join(" "),r=u()(e=a[t]).call(e,(function(t){var e=t.codeName,r=t.name,o=t.versionPrefix;if(!new RegExp(e,"gi").test(n))return null;var i=new RegExp("".concat(o,"[-\\s\\/:;]([\\d\\._]+)"),"i"),u=n.match(i);return{name:r,version:u&&u[1]?u[1].split(/[^\d]+/).join("."):"0"}}));return o()(r).call(r,c.c)[0]}},,function(t,e,n){n(213);var r=n(27).Object,o=t.exports=function(t,e,n){return r.defineProperty(t,e,n)};r.defineProperty.sham&&(o.sham=!0)},function(t,e,n){var r=n(32),o=n(29),i=n(113);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(29),o=/#|\.prototype\./,i=function(t,e){var n=c[u(t)];return n==s||n!=a&&("function"==typeof e?r(e):!!e)},u=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=i.data={},a=i.NATIVE="N",s=i.POLYFILL="P";t.exports=i},functio