@ahmed_hani/dot-auto-capture-ui 7.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/LICENSE.txt +117 -0
  2. package/README.md +162 -0
  3. package/document.mjs +3900 -0
  4. package/document.umd.js +246 -0
  5. package/face.mjs +2939 -0
  6. package/face.umd.js +246 -0
  7. package/magnifeye-liveness.mjs +3024 -0
  8. package/magnifeye-liveness.umd.js +338 -0
  9. package/package.json +102 -0
  10. package/palm.mjs +2837 -0
  11. package/palm.umd.js +246 -0
  12. package/smile-liveness.mjs +3060 -0
  13. package/smile-liveness.umd.js +310 -0
  14. package/tsconfig.production.json +22 -0
  15. package/ui/src/types/common.d.ts +53 -0
  16. package/ui/src/types/document.d.ts +38 -0
  17. package/ui/src/types/eye-gaze.d.ts +37 -0
  18. package/ui/src/types/face.d.ts +45 -0
  19. package/ui/src/types/magnifeye.d.ts +32 -0
  20. package/ui/src/types/palm.d.ts +27 -0
  21. package/ui/src/types/smile.d.ts +32 -0
  22. package/ui-common/src/error/auto-capture-error.d.ts +7 -0
  23. package/ui-common/src/error/index.d.ts +1 -0
  24. package/ui-common/src/types/common.d.ts +88 -0
  25. package/ui-common/src/types/document.d.ts +30 -0
  26. package/ui-common/src/types/events/common.d.ts +74 -0
  27. package/ui-common/src/types/events/document.d.ts +23 -0
  28. package/ui-common/src/types/events/eye-gaze.d.ts +4 -0
  29. package/ui-common/src/types/events/face.d.ts +21 -0
  30. package/ui-common/src/types/events/index.d.ts +8 -0
  31. package/ui-common/src/types/events/liveness.d.ts +13 -0
  32. package/ui-common/src/types/events/magnifeye.d.ts +5 -0
  33. package/ui-common/src/types/events/palm.d.ts +16 -0
  34. package/ui-common/src/types/events/smile.d.ts +8 -0
  35. package/ui-common/src/types/eye-gaze.d.ts +39 -0
  36. package/ui-common/src/types/face.d.ts +52 -0
  37. package/ui-common/src/types/index.d.ts +8 -0
  38. package/ui-common/src/types/magnifeye.d.ts +32 -0
  39. package/ui-common/src/types/palm.d.ts +44 -0
  40. package/ui-common/src/types/smile.d.ts +36 -0
@@ -0,0 +1,246 @@
1
+ (function(T){typeof define=="function"&&define.amd?define(T):T()})(function(){"use strict";var qs=Object.defineProperty;var Ys=(T,L,ue)=>L in T?qs(T,L,{enumerable:!0,configurable:!0,writable:!0,value:ue}):T[L]=ue;var xt=(T,L,ue)=>Ys(T,typeof L!="symbol"?L+"":L,ue);var T,L,ue,de,Sr,br,Vr,Er,Ot,$t,Nt,kr,Te={},xr=[],Co=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ae=Array.isArray;function Y(e,t){for(var r in t)e[r]=t[r];return e}function It(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function R(e,t,r){var n,o,i,a={};for(i in t)i=="key"?n=t[i]:i=="ref"?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?T.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)a[i]==null&&(a[i]=e.defaultProps[i]);return Pe(e,a,n,o,null)}function Pe(e,t,r,n,o){var i={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++ue,__i:-1,__u:0};return o==null&&L.vnode!=null&&L.vnode(i),i}function wo(){return{current:null}}function P(e){return e.children}function j(e,t){this.props=e,this.context=t}function be(e,t){if(t==null)return e.__?be(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?be(e):null}function Or(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return Or(e)}}function Mt(e){(!e.__d&&(e.__d=!0)&&de.push(e)&&!Qe.__r++||Sr!=L.debounceRendering)&&((Sr=L.debounceRendering)||br)(Qe)}function Qe(){for(var e,t,r,n,o,i,a,c=1;de.length;)de.length>c&&de.sort(Vr),e=de.shift(),c=de.length,e.__d&&(r=void 0,o=(n=(t=e).__v).__e,i=[],a=[],t.__P&&((r=Y({},n)).__v=n.__v+1,L.vnode&&L.vnode(r),Dt(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[o]:null,i,o??be(n),!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,Dr(i,r,a),r.__e!=o&&Or(r)));Qe.__r=0}function $r(e,t,r,n,o,i,a,c,u,d,h){var l,p,f,_,y,v,m=n&&n.__k||xr,g=t.length;for(u=So(r,t,m,u,g),l=0;l<g;l++)(f=r.__k[l])!=null&&(p=f.__i==-1?Te:m[f.__i]||Te,f.__i=l,v=Dt(e,f,p,o,i,a,c,u,d,h),_=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&Rt(p.ref,null,f),h.push(f.ref,f.__c||_,f)),y==null&&_!=null&&(y=_),4&f.__u||p.__k===f.__k?u=Nr(f,u,e):typeof f.type=="function"&&v!==void 0?u=v:_&&(u=_.nextSibling),f.__u&=-7);return r.__e=y,u}function So(e,t,r,n,o){var i,a,c,u,d,h=r.length,l=h,p=0;for(e.__k=new Array(o),i=0;i<o;i++)(a=t[i])!=null&&typeof a!="boolean"&&typeof a!="function"?(u=i+p,(a=e.__k[i]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?Pe(null,a,null,null,null):Ae(a)?Pe(P,{children:a},null,null,null):a.constructor==null&&a.__b>0?Pe(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,c=null,(d=a.__i=bo(a,r,u,l))!=-1&&(l--,(c=r[d])&&(c.__u|=2)),c==null||c.__v==null?(d==-1&&(o>h?p--:o<h&&p++),typeof a.type!="function"&&(a.__u|=4)):d!=u&&(d==u-1?p--:d==u+1?p++:(d>u?p--:p++,a.__u|=4))):e.__k[i]=null;if(l)for(i=0;i<h;i++)(c=r[i])!=null&&(2&c.__u)==0&&(c.__e==n&&(n=be(c)),Tr(c,c));return n}function Nr(e,t,r){var n,o;if(typeof e.type=="function"){for(n=e.__k,o=0;n&&o<n.length;o++)n[o]&&(n[o].__=e,t=Nr(n[o],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=be(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Q(e,t){return t=t||[],e==null||typeof e=="boolean"||(Ae(e)?e.some(function(r){Q(r,t)}):t.push(e)),t}function bo(e,t,r,n){var o,i,a=e.key,c=e.type,u=t[r];if(u===null&&e.key==null||u&&a==u.key&&c==u.type&&(2&u.__u)==0)return r;if(n>(u!=null&&(2&u.__u)==0?1:0))for(o=r-1,i=r+1;o>=0||i<t.length;){if(o>=0){if((u=t[o])&&(2&u.__u)==0&&a==u.key&&c==u.type)return o;o--}if(i<t.length){if((u=t[i])&&(2&u.__u)==0&&a==u.key&&c==u.type)return i;i++}}return-1}function Ir(e,t,r){t[0]=="-"?e.setProperty(t,r??""):e[t]=r==null?"":typeof r!="number"||Co.test(t)?r:r+"px"}function et(e,t,r,n,o){var i;e:if(t=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||Ir(e.style,t,"");if(r)for(t in r)n&&r[t]==n[t]||Ir(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(Er,"$1")),t=t.toLowerCase()in e||t=="onFocusOut"||t=="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=r,r?n?r.u=n.u:(r.u=Ot,e.addEventListener(t,i?Nt:$t,i)):e.removeEventListener(t,i?Nt:$t,i);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=r??"";break e}catch{}typeof r=="function"||(r==null||r===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r))}}function Mr(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.t==null)t.t=Ot++;else if(t.t<r.u)return;return r(L.event?L.event(t):t)}}}function Dt(e,t,r,n,o,i,a,c,u,d){var h,l,p,f,_,y,v,m,g,E,V,x,S,C,B,z,Ye,F=t.type;if(t.constructor!=null)return null;128&r.__u&&(u=!!(32&r.__u),i=[c=t.__e=r.__e]),(h=L.__b)&&h(t);e:if(typeof F=="function")try{if(m=t.props,g="prototype"in F&&F.prototype.render,E=(h=F.contextType)&&n[h.__c],V=h?E?E.props.value:h.__:n,r.__c?v=(l=t.__c=r.__c).__=l.__E:(g?t.__c=l=new F(m,V):(t.__c=l=new j(m,V),l.constructor=F,l.render=Eo),E&&E.sub(l),l.props=m,l.state||(l.state={}),l.context=V,l.__n=n,p=l.__d=!0,l.__h=[],l._sb=[]),g&&l.__s==null&&(l.__s=l.state),g&&F.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=Y({},l.__s)),Y(l.__s,F.getDerivedStateFromProps(m,l.__s))),f=l.props,_=l.state,l.__v=t,p)g&&F.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),g&&l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(g&&F.getDerivedStateFromProps==null&&m!==f&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(m,V),!l.__e&&l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(m,l.__s,V)===!1||t.__v==r.__v){for(t.__v!=r.__v&&(l.props=m,l.state=l.__s,l.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(we){we&&(we.__=t)}),x=0;x<l._sb.length;x++)l.__h.push(l._sb[x]);l._sb=[],l.__h.length&&a.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(m,l.__s,V),g&&l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(f,_,y)})}if(l.context=V,l.props=m,l.__P=e,l.__e=!1,S=L.__r,C=0,g){for(l.state=l.__s,l.__d=!1,S&&S(t),h=l.render(l.props,l.state,l.context),B=0;B<l._sb.length;B++)l.__h.push(l._sb[B]);l._sb=[]}else do l.__d=!1,S&&S(t),h=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++C<25);l.state=l.__s,l.getChildContext!=null&&(n=Y(Y({},n),l.getChildContext())),g&&!p&&l.getSnapshotBeforeUpdate!=null&&(y=l.getSnapshotBeforeUpdate(f,_)),z=h,h!=null&&h.type===P&&h.key==null&&(z=Rr(h.props.children)),c=$r(e,Ae(z)?z:[z],t,r,n,o,i,a,c,u,d),l.base=t.__e,t.__u&=-161,l.__h.length&&a.push(l),v&&(l.__E=l.__=null)}catch(we){if(t.__v=null,u||i!=null)if(we.then){for(t.__u|=u?160:128;c&&c.nodeType==8&&c.nextSibling;)c=c.nextSibling;i[i.indexOf(c)]=null,t.__e=c}else for(Ye=i.length;Ye--;)It(i[Ye]);else t.__e=r.__e,t.__k=r.__k;L.__e(we,t,r)}else i==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):c=t.__e=Vo(r.__e,t,r,n,o,i,a,u,d);return(h=L.diffed)&&h(t),128&t.__u?void 0:c}function Dr(e,t,r){for(var n=0;n<r.length;n++)Rt(r[n],r[++n],r[++n]);L.__c&&L.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){L.__e(i,o.__v)}})}function Rr(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:Ae(e)?e.map(Rr):Y({},e)}function Vo(e,t,r,n,o,i,a,c,u){var d,h,l,p,f,_,y,v=r.props,m=t.props,g=t.type;if(g=="svg"?o="http://www.w3.org/2000/svg":g=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(d=0;d<i.length;d++)if((f=i[d])&&"setAttribute"in f==!!g&&(g?f.localName==g:f.nodeType==3)){e=f,i[d]=null;break}}if(e==null){if(g==null)return document.createTextNode(m);e=document.createElementNS(o,g,m.is&&m),c&&(L.__m&&L.__m(t,i),c=!1),i=null}if(g==null)v===m||c&&e.data==m||(e.data=m);else{if(i=i&&T.call(e.childNodes),v=r.props||Te,!c&&i!=null)for(v={},d=0;d<e.attributes.length;d++)v[(f=e.attributes[d]).name]=f.value;for(d in v)if(f=v[d],d!="children"){if(d=="dangerouslySetInnerHTML")l=f;else if(!(d in m)){if(d=="value"&&"defaultValue"in m||d=="checked"&&"defaultChecked"in m)continue;et(e,d,null,f,o)}}for(d in m)f=m[d],d=="children"?p=f:d=="dangerouslySetInnerHTML"?h=f:d=="value"?_=f:d=="checked"?y=f:c&&typeof f!="function"||v[d]===f||et(e,d,f,v[d],o);if(h)c||l&&(h.__html==l.__html||h.__html==e.innerHTML)||(e.innerHTML=h.__html),t.__k=[];else if(l&&(e.innerHTML=""),$r(t.type=="template"?e.content:e,Ae(p)?p:[p],t,r,n,g=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,a,i?i[0]:r.__k&&be(r,0),c,u),i!=null)for(d=i.length;d--;)It(i[d]);c||(d="value",g=="progress"&&_==null?e.removeAttribute("value"):_!=null&&(_!==e[d]||g=="progress"&&!_||g=="option"&&_!=v[d])&&et(e,d,_,v[d],o),d="checked",y!=null&&y!=e[d]&&et(e,d,y,v[d],o))}return e}function Rt(e,t,r){try{if(typeof e=="function"){var n=typeof e.__u=="function";n&&e.__u(),n&&t==null||(e.__u=e(t))}else e.current=t}catch(o){L.__e(o,r)}}function Tr(e,t,r){var n,o;if(L.unmount&&L.unmount(e),(n=e.ref)&&(n.current&&n.current!=e.__e||Rt(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(i){L.__e(i,t)}n.base=n.__P=null}if(n=e.__k)for(o=0;o<n.length;o++)n[o]&&Tr(n[o],t,r||typeof e.type!="function");r||It(e.__e),e.__c=e.__=e.__e=void 0}function Eo(e,t,r){return this.constructor(e,r)}function ae(e,t,r){var n,o,i,a;t==document&&(t=document.documentElement),L.__&&L.__(e,t),o=(n=typeof r=="function")?null:r&&r.__k||t.__k,i=[],a=[],Dt(t,e=(!n&&r||t).__k=R(P,null,[e]),o||Te,Te,t.namespaceURI,!n&&r?[r]:o?null:t.firstChild?T.call(t.childNodes):null,i,!n&&r?r:o?o.__e:t.firstChild,n,a),Dr(i,e,a)}function Tt(e,t){ae(e,t,Tt)}function At(e,t,r){var n,o,i,a,c=Y({},e.props);for(i in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)i=="key"?n=t[i]:i=="ref"?o=t[i]:c[i]=t[i]==null&&a!=null?a[i]:t[i];return arguments.length>2&&(c.children=arguments.length>3?T.call(arguments,2):r),Pe(e.type,c,n||e.key,o||e.ref,null)}function Ar(e){function t(r){var n,o;return this.getChildContext||(n=new Set,(o={})[t.__c]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(i){this.props.value!=i.value&&n.forEach(function(a){a.__e=!0,Mt(a)})},this.sub=function(i){n.add(i);var a=i.componentWillUnmount;i.componentWillUnmount=function(){n&&n.delete(i),a&&a.call(i)}}),r.children}return t.__c="__cC"+kr++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}T=xr.slice,L={__e:function(e,t,r,n){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,n||{}),a=o.__d),a)return o.__E=o}catch(c){e=c}throw e}},ue=0,j.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Y({},this.state),typeof e=="function"&&(e=e(Y({},r),this.props)),e&&Y(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),Mt(this))},j.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Mt(this))},j.prototype.render=P,de=[],br=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Vr=function(e,t){return e.__v.__b-t.__v.__b},Qe.__r=0,Er=/(PointerCapture)$|Capture$/i,Ot=0,$t=Mr(!1),Nt=Mr(!0),kr=0;function Pt(){return(Pt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var ko=["context","children"];function xo(e){this.getChildContext=function(){return e.context};var t=e.children,r=function(n,o){if(n==null)return{};var i,a,c={},u=Object.keys(n);for(a=0;a<u.length;a++)o.indexOf(i=u[a])>=0||(c[i]=n[i]);return c}(e,ko);return At(t,r)}function Oo(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=R(xo,Pt({},this._props,{context:e.detail.context}),function t(r,n){if(r.nodeType===3)return r.data;if(r.nodeType!==1)return null;var o=[],i={},a=0,c=r.attributes,u=r.childNodes;for(a=c.length;a--;)c[a].name!=="slot"&&(i[c[a].name]=c[a].value,i[Pr(c[a].name)]=c[a].value);for(a=u.length;a--;){var d=t(u[a],null),h=u[a].slot;h?i[h]=R(Hr,{name:h},d):o[a]=d}var l=n?R(Hr,null,o):o;return R(n||r.nodeName.toLowerCase(),i,l)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Tt:ae)(this._vdom,this._root)}function Pr(e){return e.replace(/-(\w)/g,function(t,r){return r?r.toUpperCase():""})}function $o(e,t,r){if(this._vdom){var n={};n[e]=r=r??void 0,n[Pr(e)]=r,this._vdom=At(this._vdom,n),ae(this._vdom,this._root)}}function No(){ae(this._vdom=null,this._root)}function Hr(e,t){var r=this;return R("slot",Pt({},e,{ref:function(n){n?(r.ref=n,r._listener||(r._listener=function(o){o.stopPropagation(),o.detail.context=t},n.addEventListener("_preact",r._listener))):r.ref.removeEventListener("_preact",r._listener)}}))}function Io(e,t,r,n){function o(){var i=Reflect.construct(HTMLElement,[],o);return i._vdomComponent=e,i._root=i,i}return(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=Oo,o.prototype.attributeChangedCallback=$o,o.prototype.disconnectedCallback=No,r=r||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=r,r.forEach(function(i){Object.defineProperty(o.prototype,i,{get:function(){return this._vdom.props[i]},set:function(a){this._vdom?this.attributeChangedCallback(i,null,a):(this._props||(this._props={}),this._props[i]=a,this.connectedCallback());var c=typeof a;a!=null&&c!=="string"&&c!=="boolean"&&c!=="number"||this.setAttribute(i,a)}})}),customElements.define(t,o)}var Mo=0;function s(e,t,r,n,o,i){t||(t={});var a,c,u=t;if("ref"in u)for(c in u={},t)c=="ref"?a=t[c]:u[c]=t[c];var d={type:e,props:u,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Mo,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(a=e.defaultProps))for(c in a)u[c]===void 0&&(u[c]=a[c]);return L.vnode&&L.vnode(d),d}const Zr={SWITCH_CAMERA:"switch-camera",TOGGLE_MIRROR:"toggle-mirror"};var fe=(e=>(e.CAMERA_PROPS_CHANGED="document-auto-capture:camera-props-changed",e.CONTROL="document-auto-capture:control",e.DETECTED_DOCUMENT_CHANGED="document-auto-capture:detected-document-changed",e.DOCUMENT_DETECTION="document-auto-capture:document-detection",e.INSTRUCTION_CHANGED="document-auto-capture:instruction-changed",e.INSTRUCTION_ESCALATED="document-auto-capture:instruction-escalated",e.STATE_CHANGED="document-auto-capture:state-changed",e.VIDEO_ELEMENT_SIZE="document-auto-capture:video-element-size",e))(fe||{}),Br=(e=>(e.CAMERA_PROPS_CHANGED="palm-capture:camera-props-changed",e.CONTROL="palm-capture:control",e.DETECTED_PALM_CHANGED="palm-capture:detected-palm-changed",e.INSTRUCTION_CHANGED="palm-capture:instruction-changed",e.STATE_CHANGED="palm-capture:state-changed",e.VIDEO_ELEMENT_SIZE="palm-capture:video-element-size",e))(Br||{});const A={CANDIDATE_SELECTION:"candidate_selection",DOCUMENT_CENTERING:"document_centering",DOCUMENT_NOT_PRESENT:"document_not_present",DOCUMENT_TOO_FAR:"document_too_far",SHARPNESS_TOO_LOW:"sharpness_too_low",BRIGHTNESS_TOO_LOW:"brightness_too_low",BRIGHTNESS_TOO_HIGH:"brightness_too_high",HOTSPOTS_PRESENT:"hotspots_present"},X={LOADING:"LOADING",ERROR:"ERROR",WAITING:"WAITING",RUNNING:"RUNNING"};var se,O,Ht,Ur,Ve=0,Wr=[],N=L,zr=N.__b,Fr=N.__r,Gr=N.diffed,jr=N.__c,qr=N.unmount,Yr=N.__;function Ee(e,t){N.__h&&N.__h(O,e,Ve||t),Ve=0;var r=O.__H||(O.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function U(e){return Ve=1,Zt(Qr,e)}function Zt(e,t,r){var n=Ee(se++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):Qr(void 0,t),function(c){var u=n.__N?n.__N[0]:n.__[0],d=n.t(u,c);u!==d&&(n.__N=[d,n.__[1]],n.__c.setState({}))}],n.__c=O,!O.__f)){var o=function(c,u,d){if(!n.__c.__H)return!0;var h=n.__c.__H.__.filter(function(p){return!!p.__c});if(h.every(function(p){return!p.__N}))return!i||i.call(this,c,u,d);var l=n.__c.props!==c;return h.forEach(function(p){if(p.__N){var f=p.__[0];p.__=p.__N,p.__N=void 0,f!==p.__[0]&&(l=!0)}}),i&&i.call(this,c,u,d)||l};O.__f=!0;var i=O.shouldComponentUpdate,a=O.componentWillUpdate;O.componentWillUpdate=function(c,u,d){if(this.__e){var h=i;i=void 0,o(c,u,d),i=h}a&&a.call(this,c,u,d)},O.shouldComponentUpdate=o}return n.__N||n.__}function ee(e,t){var r=Ee(se++,3);!N.__s&&Ut(r.__H,t)&&(r.__=e,r.u=t,O.__H.__h.push(r))}function ke(e,t){var r=Ee(se++,4);!N.__s&&Ut(r.__H,t)&&(r.__=e,r.u=t,O.__h.push(r))}function He(e){return Ve=5,te(function(){return{current:e}},[])}function Xr(e,t,r){Ve=6,ke(function(){if(typeof e=="function"){var n=e(t());return function(){e(null),n&&typeof n=="function"&&n()}}if(e)return e.current=t(),function(){return e.current=null}},r==null?r:r.concat(e))}function te(e,t){var r=Ee(se++,7);return Ut(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function he(e,t){return Ve=8,te(function(){return e},t)}function Ze(e){var t=O.context[e.__c],r=Ee(se++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(O)),t.props.value):e.__}function tt(e,t){N.useDebugValue&&N.useDebugValue(t?t(e):e)}function Kr(){var e=Ee(se++,11);if(!e.__){for(var t=O.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__}function Do(){for(var e;e=Wr.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(rt),e.__H.__h.forEach(Bt),e.__H.__h=[]}catch(t){e.__H.__h=[],N.__e(t,e.__v)}}N.__b=function(e){O=null,zr&&zr(e)},N.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Yr&&Yr(e,t)},N.__r=function(e){Fr&&Fr(e),se=0;var t=(O=e.__c).__H;t&&(Ht===O?(t.__h=[],O.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(rt),t.__h.forEach(Bt),t.__h=[],se=0)),Ht=O},N.diffed=function(e){Gr&&Gr(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Wr.push(t)!==1&&Ur===N.requestAnimationFrame||((Ur=N.requestAnimationFrame)||Ro)(Do)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Ht=O=null},N.__c=function(e,t){t.some(function(r){try{r.__h.forEach(rt),r.__h=r.__h.filter(function(n){return!n.__||Bt(n)})}catch(n){t.some(function(o){o.__h&&(o.__h=[])}),t=[],N.__e(n,r.__v)}}),jr&&jr(e,t)},N.unmount=function(e){qr&&qr(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{rt(n)}catch(o){t=o}}),r.__H=void 0,t&&N.__e(t,r.__v))};var Jr=typeof requestAnimationFrame=="function";function Ro(e){var t,r=function(){clearTimeout(n),Jr&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Jr&&(t=requestAnimationFrame(r))}function rt(e){var t=O,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),O=t}function Bt(e){var t=O;e.__c=e.__(),O=t}function Ut(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Qr(e,t){return typeof t=="function"?t(e):t}var D=function(){return D=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},D.apply(this,arguments)};function pe(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function To(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Ao=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Po=To(function(e){return Ao.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function en(e,t){for(var r in t)e[r]=t[r];return e}function Wt(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function tn(e,t){var r=t(),n=U({t:{__:r,u:t}}),o=n[0].t,i=n[1];return ke(function(){o.__=r,o.u=t,zt(o)&&i({t:o})},[e,r,t]),ee(function(){return zt(o)&&i({t:o}),e(function(){zt(o)&&i({t:o})})},[e]),r}function zt(e){var t,r,n=e.u,o=e.__;try{var i=n();return!((t=o)===(r=i)&&(t!==0||1/t==1/r)||t!=t&&r!=r)}catch{return!0}}function rn(e){e()}function nn(e){return e}function on(){return[!1,rn]}var an=ke;function Ft(e,t){this.props=e,this.context=t}function Ho(e,t){function r(o){var i=this.props.ref,a=i==o.ref;return!a&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!a:Wt(this.props,o)}function n(o){return this.shouldComponentUpdate=r,R(e,o)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(Ft.prototype=new j).isPureReactComponent=!0,Ft.prototype.shouldComponentUpdate=function(e,t){return Wt(this.props,e)||Wt(this.state,t)};var sn=L.__b;L.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),sn&&sn(e)};var Zo=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Bo(e){function t(r){var n=en({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=Zo,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var cn=function(e,t){return e==null?null:Q(Q(e).map(t))},Uo={map:cn,forEach:cn,count:function(e){return e?Q(e).length:0},only:function(e){var t=Q(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Q},Wo=L.__e;L.__e=function(e,t,r,n){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),o.__c(e,t)}Wo(e,t,r,n)};var ln=L.unmount;function un(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=en({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return un(n,t,r)})),e}function dn(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return dn(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function nt(){this.__u=0,this.o=null,this.__b=null}function fn(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function zo(e){var t,r,n;function o(i){if(t||(t=e()).then(function(a){r=a.default||a},function(a){n=a}),n)throw n;if(!r)throw t;return R(r,i)}return o.displayName="Lazy",o.__f=!0,o}function Be(){this.i=null,this.l=null}L.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),ln&&ln(e)},(nt.prototype=new j).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var o=fn(n.__v),i=!1,a=function(){i||(i=!0,r.__R=null,o?o(c):c())};r.__R=a;var c=function(){if(!--n.__u){if(n.state.__a){var u=n.state.__a;n.__v.__k[0]=dn(u,u.__c.__P,u.__c.__O)}var d;for(n.setState({__a:n.__b=null});d=n.o.pop();)d.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},nt.prototype.componentWillUnmount=function(){this.o=[]},nt.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=un(this.__b,r,n.__O=n.__P)}this.__b=null}var o=t.__a&&R(P,null,e.fallback);return o&&(o.__u&=-33),[R(P,null,t.__a?null:e.children),o]};var hn=function(e,t,r){if(++r[1]===r[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(r=e.i;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.i=r=r[2]}};function Fo(e){return this.getChildContext=function(){return e.context},e.children}function Go(e){var t=this,r=e.h;if(t.componentWillUnmount=function(){ae(null,t.v),t.v=null,t.h=null},t.h&&t.h!==r&&t.componentWillUnmount(),!t.v){for(var n=t.__v;n!==null&&!n.__m&&n.__!==null;)n=n.__;t.h=r,t.v={nodeType:1,parentNode:r,childNodes:[],__k:{__m:n.__m},contains:function(){return!0},appendChild:function(o){this.childNodes.push(o),t.h.appendChild(o)},insertBefore:function(o,i){this.childNodes.push(o),t.h.insertBefore(o,i)},removeChild:function(o){this.childNodes.splice(this.childNodes.indexOf(o)>>>1,1),t.h.removeChild(o)}}}ae(R(Fo,{context:t.context},e.__v),t.v)}function jo(e,t){var r=R(Go,{__v:e,h:t});return r.containerInfo=t,r}(Be.prototype=new j).__a=function(e){var t=this,r=fn(t.__v),n=t.l.get(e);return n[0]++,function(o){var i=function(){t.props.revealOrder?(n.push(o),hn(t,e,n)):o()};r?r(i):i()}},Be.prototype.render=function(e){this.i=null,this.l=new Map;var t=Q(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var r=t.length;r--;)this.l.set(t[r],this.i=[1,0,this.i]);return e.children},Be.prototype.componentDidUpdate=Be.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){hn(e,r,t)})};var pn=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,qo=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Yo=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Xo=/[A-Z0-9]/g,Ko=typeof document<"u",Jo=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Qo(e,t,r){return t.__k==null&&(t.textContent=""),ae(e,t),typeof r=="function"&&r(),e?e.__c:null}function ei(e,t,r){return Tt(e,t),typeof r=="function"&&r(),e?e.__c:null}j.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(j.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var _n=L.event;function ti(){}function ri(){return this.cancelBubble}function ni(){return this.defaultPrevented}L.event=function(e){return _n&&(e=_n(e)),e.persist=ti,e.isPropagationStopped=ri,e.isDefaultPrevented=ni,e.nativeEvent=e};var Gt,oi={enumerable:!1,configurable:!0,get:function(){return this.class}},mn=L.vnode;L.vnode=function(e){typeof e.type=="string"&&function(t){var r=t.props,n=t.type,o={},i=n.indexOf("-")===-1;for(var a in r){var c=r[a];if(!(a==="value"&&"defaultValue"in r&&c==null||Ko&&a==="children"&&n==="noscript"||a==="class"||a==="className")){var u=a.toLowerCase();a==="defaultValue"&&"value"in r&&r.value==null?a="value":a==="download"&&c===!0?c="":u==="translate"&&c==="no"?c=!1:u[0]==="o"&&u[1]==="n"?u==="ondoubleclick"?a="ondblclick":u!=="onchange"||n!=="input"&&n!=="textarea"||Jo(r.type)?u==="onfocus"?a="onfocusin":u==="onblur"?a="onfocusout":Yo.test(a)&&(a=u):u=a="oninput":i&&qo.test(a)?a=a.replace(Xo,"-$&").toLowerCase():c===null&&(c=void 0),u==="oninput"&&o[a=u]&&(a="oninputCapture"),o[a]=c}}n=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=Q(r.children).forEach(function(d){d.props.selected=o.value.indexOf(d.props.value)!=-1})),n=="select"&&o.defaultValue!=null&&(o.value=Q(r.children).forEach(function(d){d.props.selected=o.multiple?o.defaultValue.indexOf(d.props.value)!=-1:o.defaultValue==d.props.value})),r.class&&!r.className?(o.class=r.class,Object.defineProperty(o,"className",oi)):(r.className&&!r.class||r.class&&r.className)&&(o.class=o.className=r.className),t.props=o}(e),e.$$typeof=pn,mn&&mn(e)};var gn=L.__r;L.__r=function(e){gn&&gn(e),Gt=e.__c};var Ln=L.diffed;L.diffed=function(e){Ln&&Ln(e);var t=e.props,r=e.__e;r!=null&&e.type==="textarea"&&"value"in t&&t.value!==r.value&&(r.value=t.value==null?"":t.value),Gt=null};var ii={ReactCurrentDispatcher:{current:{readContext:function(e){return Gt.__n[e.__c].props.value},useCallback:he,useContext:Ze,useDebugValue:tt,useDeferredValue:nn,useEffect:ee,useId:Kr,useImperativeHandle:Xr,useInsertionEffect:an,useLayoutEffect:ke,useMemo:te,useReducer:Zt,useRef:He,useState:U,useSyncExternalStore:tn,useTransition:on}}};function ai(e){return R.bind(null,e)}function ot(e){return!!e&&e.$$typeof===pn}function si(e){return ot(e)&&e.type===P}function ci(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function li(e){return ot(e)?At.apply(null,arguments):e}function ui(e){return!!e.__k&&(ae(null,e),!0)}function di(e){return e&&(e.base||e.nodeType===1&&e)||null}var fi=function(e,t){return e(t)},hi=function(e,t){return e(t)},pi=P,_i=ot,re={useState:U,useId:Kr,useReducer:Zt,useEffect:ee,useLayoutEffect:ke,useInsertionEffect:an,useTransition:on,useDeferredValue:nn,useSyncExternalStore:tn,startTransition:rn,useRef:He,useImperativeHandle:Xr,useMemo:te,useCallback:he,useContext:Ze,useDebugValue:tt,version:"18.3.1",Children:Uo,render:Qo,hydrate:ei,unmountComponentAtNode:ui,createPortal:jo,createElement:R,createContext:Ar,createFactory:ai,cloneElement:li,createRef:wo,Fragment:P,isValidElement:ot,isElement:_i,isFragment:si,isMemo:ci,findDOMNode:di,Component:j,PureComponent:Ft,memo:Ho,forwardRef:Bo,flushSync:hi,unstable_batchedUpdates:fi,StrictMode:pi,Suspense:nt,SuspenseList:Be,lazy:zo,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ii};function mi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jt,yn;function gi(){return yn||(yn=1,jt=function(t,r,n,o){var i=n?n.call(o,t,r):void 0;if(i!==void 0)return!!i;if(t===r)return!0;if(typeof t!="object"||!t||typeof r!="object"||!r)return!1;var a=Object.keys(t),c=Object.keys(r);if(a.length!==c.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(r),d=0;d<a.length;d++){var h=a[d];if(!u(h))return!1;var l=t[h],p=r[h];if(i=n?n.call(o,l,p,h):void 0,i===!1||i===void 0&&l!==p)return!1}return!0}),jt}var Li=gi();const yi=mi(Li);var $="-ms-",Ue="-moz-",k="-webkit-",vn="comm",it="rule",qt="decl",vi="@import",Cn="@keyframes",Ci="@layer",wn=Math.abs,Yt=String.fromCharCode,Xt=Object.assign;function wi(e,t){return M(e,0)^45?(((t<<2^M(e,0))<<2^M(e,1))<<2^M(e,2))<<2^M(e,3):0}function Sn(e){return e.trim()}function ne(e,t){return(e=t.exec(e))?e[0]:e}function w(e,t,r){return e.replace(t,r)}function at(e,t,r){return e.indexOf(t,r)}function M(e,t){return e.charCodeAt(t)|0}function xe(e,t,r){return e.slice(t,r)}function K(e){return e.length}function bn(e){return e.length}function We(e,t){return t.push(e),e}function Si(e,t){return e.map(t).join("")}function Vn(e,t){return e.filter(function(r){return!ne(r,t)})}var st=1,Oe=1,En=0,W=0,I=0,$e="";function ct(e,t,r,n,o,i,a,c){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:st,column:Oe,length:a,return:"",siblings:c}}function ce(e,t){return Xt(ct("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Ne(e){for(;e.root;)e=ce(e.root,{children:[e]});We(e,e.siblings)}function bi(){return I}function Vi(){return I=W>0?M($e,--W):0,Oe--,I===10&&(Oe=1,st--),I}function q(){return I=W<En?M($e,W++):0,Oe++,I===10&&(Oe=1,st++),I}function _e(){return M($e,W)}function lt(){return W}function ut(e,t){return xe($e,e,t)}function Kt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ei(e){return st=Oe=1,En=K($e=e),W=0,[]}function ki(e){return $e="",e}function Jt(e){return Sn(ut(W-1,Qt(e===91?e+2:e===40?e+1:e)))}function xi(e){for(;(I=_e())&&I<33;)q();return Kt(e)>2||Kt(I)>3?"":" "}function Oi(e,t){for(;--t&&q()&&!(I<48||I>102||I>57&&I<65||I>70&&I<97););return ut(e,lt()+(t<6&&_e()==32&&q()==32))}function Qt(e){for(;q();)switch(I){case e:return W;case 34:case 39:e!==34&&e!==39&&Qt(I);break;case 40:e===41&&Qt(e);break;case 92:q();break}return W}function $i(e,t){for(;q()&&e+I!==57;)if(e+I===84&&_e()===47)break;return"/*"+ut(t,W-1)+"*"+Yt(e===47?e:q())}function Ni(e){for(;!Kt(_e());)q();return ut(e,W)}function Ii(e){return ki(dt("",null,null,null,[""],e=Ei(e),0,[0],e))}function dt(e,t,r,n,o,i,a,c,u){for(var d=0,h=0,l=a,p=0,f=0,_=0,y=1,v=1,m=1,g=0,E="",V=o,x=i,S=n,C=E;v;)switch(_=g,g=q()){case 40:if(_!=108&&M(C,l-1)==58){at(C+=w(Jt(g),"&","&\f"),"&\f",wn(d?c[d-1]:0))!=-1&&(m=-1);break}case 34:case 39:case 91:C+=Jt(g);break;case 9:case 10:case 13:case 32:C+=xi(_);break;case 92:C+=Oi(lt()-1,7);continue;case 47:switch(_e()){case 42:case 47:We(Mi($i(q(),lt()),t,r,u),u);break;default:C+="/"}break;case 123*y:c[d++]=K(C)*m;case 125*y:case 59:case 0:switch(g){case 0:case 125:v=0;case 59+h:m==-1&&(C=w(C,/\f/g,"")),f>0&&K(C)-l&&We(f>32?xn(C+";",n,r,l-1,u):xn(w(C," ","")+";",n,r,l-2,u),u);break;case 59:C+=";";default:if(We(S=kn(C,t,r,d,h,o,c,E,V=[],x=[],l,i),i),g===123)if(h===0)dt(C,t,S,S,V,i,l,c,x);else switch(p===99&&M(C,3)===110?100:p){case 100:case 108:case 109:case 115:dt(e,S,S,n&&We(kn(e,S,S,0,0,o,c,E,o,V=[],l,x),x),o,x,l,c,n?V:x);break;default:dt(C,S,S,S,[""],x,0,c,x)}}d=h=f=0,y=m=1,E=C="",l=a;break;case 58:l=1+K(C),f=_;default:if(y<1){if(g==123)--y;else if(g==125&&y++==0&&Vi()==125)continue}switch(C+=Yt(g),g*y){case 38:m=h>0?1:(C+="\f",-1);break;case 44:c[d++]=(K(C)-1)*m,m=1;break;case 64:_e()===45&&(C+=Jt(q())),p=_e(),h=l=K(E=C+=Ni(lt())),g++;break;case 45:_===45&&K(C)==2&&(y=0)}}return i}function kn(e,t,r,n,o,i,a,c,u,d,h,l){for(var p=o-1,f=o===0?i:[""],_=bn(f),y=0,v=0,m=0;y<n;++y)for(var g=0,E=xe(e,p+1,p=wn(v=a[y])),V=e;g<_;++g)(V=Sn(v>0?f[g]+" "+E:w(E,/&\f/g,f[g])))&&(u[m++]=V);return ct(e,t,r,o===0?it:c,u,d,h,l)}function Mi(e,t,r,n){return ct(e,t,r,vn,Yt(bi()),xe(e,2,-2),0,n)}function xn(e,t,r,n,o){return ct(e,t,r,qt,xe(e,0,n),xe(e,n+1,-1),n,o)}function On(e,t,r){switch(wi(e,t)){case 5103:return k+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return k+e+e;case 4789:return Ue+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return k+e+Ue+e+$+e+e;case 5936:switch(M(e,t+11)){case 114:return k+e+$+w(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return k+e+$+w(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return k+e+$+w(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return k+e+$+e+e;case 6165:return k+e+$+"flex-"+e+e;case 5187:return k+e+w(e,/(\w+).+(:[^]+)/,k+"box-$1$2"+$+"flex-$1$2")+e;case 5443:return k+e+$+"flex-item-"+w(e,/flex-|-self/g,"")+(ne(e,/flex-|baseline/)?"":$+"grid-row-"+w(e,/flex-|-self/g,""))+e;case 4675:return k+e+$+"flex-line-pack"+w(e,/align-content|flex-|-self/g,"")+e;case 5548:return k+e+$+w(e,"shrink","negative")+e;case 5292:return k+e+$+w(e,"basis","preferred-size")+e;case 6060:return k+"box-"+w(e,"-grow","")+k+e+$+w(e,"grow","positive")+e;case 4554:return k+w(e,/([^-])(transform)/g,"$1"+k+"$2")+e;case 6187:return w(w(w(e,/(zoom-|grab)/,k+"$1"),/(image-set)/,k+"$1"),e,"")+e;case 5495:case 3959:return w(e,/(image-set\([^]*)/,k+"$1$`$1");case 4968:return w(w(e,/(.+:)(flex-)?(.*)/,k+"box-pack:$3"+$+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+k+e+e;case 4200:if(!ne(e,/flex-|baseline/))return $+"grid-column-align"+xe(e,t)+e;break;case 2592:case 3360:return $+w(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(n,o){return t=o,ne(n.props,/grid-\w+-end/)})?~at(e+(r=r[t].value),"span",0)?e:$+w(e,"-start","")+e+$+"grid-row-span:"+(~at(r,"span",0)?ne(r,/\d+/):+ne(r,/\d+/)-+ne(e,/\d+/))+";":$+w(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(n){return ne(n.props,/grid-\w+-start/)})?e:$+w(w(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return w(e,/(.+)-inline(.+)/,k+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(K(e)-1-t>6)switch(M(e,t+1)){case 109:if(M(e,t+4)!==45)break;case 102:return w(e,/(.+:)(.+)-([^]+)/,"$1"+k+"$2-$3$1"+Ue+(M(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~at(e,"stretch",0)?On(w(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return w(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,o,i,a,c,u,d){return $+o+":"+i+d+(a?$+o+"-span:"+(c?u:+u-+i)+d:"")+e});case 4949:if(M(e,t+6)===121)return w(e,":",":"+k)+e;break;case 6444:switch(M(e,M(e,14)===45?18:11)){case 120:return w(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+k+(M(e,14)===45?"inline-":"")+"box$3$1"+k+"$2$3$1"+$+"$2box$3")+e;case 100:return w(e,":",":"+$)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return w(e,"scroll-","scroll-snap-")+e}return e}function ft(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Di(e,t,r,n){switch(e.type){case Ci:if(e.children.length)break;case vi:case qt:return e.return=e.return||e.value;case vn:return"";case Cn:return e.return=e.value+"{"+ft(e.children,n)+"}";case it:if(!K(e.value=e.props.join(",")))return""}return K(r=ft(e.children,n))?e.return=e.value+"{"+r+"}":""}function Ri(e){var t=bn(e);return function(r,n,o,i){for(var a="",c=0;c<t;c++)a+=e[c](r,n,o,i)||"";return a}}function Ti(e){return function(t){t.root||(t=t.return)&&e(t)}}function Ai(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case qt:e.return=On(e.value,e.length,r);return;case Cn:return ft([ce(e,{value:w(e.value,"@","@"+k)})],n);case it:if(e.length)return Si(r=e.props,function(o){switch(ne(o,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ne(ce(e,{props:[w(o,/:(read-\w+)/,":"+Ue+"$1")]})),Ne(ce(e,{props:[o]})),Xt(e,{props:Vn(r,n)});break;case"::placeholder":Ne(ce(e,{props:[w(o,/:(plac\w+)/,":"+k+"input-$1")]})),Ne(ce(e,{props:[w(o,/:(plac\w+)/,":"+Ue+"$1")]})),Ne(ce(e,{props:[w(o,/:(plac\w+)/,$+"input-$1")]})),Ne(ce(e,{props:[o]})),Xt(e,{props:Vn(r,n)});break}return""})}}var Pi={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},b={},me=typeof process<"u"&&b!==void 0&&(b.REACT_APP_SC_ATTR||b.SC_ATTR)||"data-styled",$n="active",Nn="data-styled-version",ht="6.1.18",er=`/*!sc*/
2
+ `,pt=typeof window<"u"&&typeof document<"u",Hi=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&b!==void 0&&b.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&b.REACT_APP_SC_DISABLE_SPEEDY!==""?b.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&b.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&b!==void 0&&b.SC_DISABLE_SPEEDY!==void 0&&b.SC_DISABLE_SPEEDY!==""?b.SC_DISABLE_SPEEDY!=="false"&&b.SC_DISABLE_SPEEDY:b.NODE_ENV!=="production"),In=/invalid hook call/i,_t=new Set,Zi=function(e,t){if(b.NODE_ENV!=="production"){var r=t?' with the id of "'.concat(t,'"'):"",n="The component ".concat(e).concat(r,` has been created dynamically.
3
+ `)+`You may see this warning because you've called styled inside another component.
4
+ To resolve this only create new StyledComponents outside of any render method and function component.
5
+ See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
6
+ `,o=console.error;try{var i=!0;console.error=function(a){for(var c=[],u=1;u<arguments.length;u++)c[u-1]=arguments[u];In.test(a)?(i=!1,_t.delete(n)):o.apply(void 0,pe([a],c,!1))},He(),i&&!_t.has(n)&&(console.warn(n),_t.add(n))}catch(a){In.test(a.message)&&_t.delete(n)}finally{console.error=o}}},mt=Object.freeze([]),Ie=Object.freeze({});function Bi(e,t,r){return r===void 0&&(r=Ie),e.theme!==r.theme&&e.theme||t||r.theme}var tr=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Ui=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Wi=/(^-|-$)/g;function Mn(e){return e.replace(Ui,"-").replace(Wi,"")}var zi=/(a)(d)/gi,gt=52,Dn=function(e){return String.fromCharCode(e+(e>25?39:97))};function rr(e){var t,r="";for(t=Math.abs(e);t>gt;t=t/gt|0)r=Dn(t%gt)+r;return(Dn(t%gt)+r).replace(zi,"$1-$2")}var nr,Rn=5381,ge=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Tn=function(e){return ge(Rn,e)};function An(e){return rr(Tn(e)>>>0)}function Pn(e){return b.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function or(e){return typeof e=="string"&&(b.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var Hn=typeof Symbol=="function"&&Symbol.for,Zn=Hn?Symbol.for("react.memo"):60115,Fi=Hn?Symbol.for("react.forward_ref"):60112,Gi={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ji={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Bn={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},qi=((nr={})[Fi]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},nr[Zn]=Bn,nr);function Un(e){return("type"in(t=e)&&t.type.$$typeof)===Zn?Bn:"$$typeof"in e?qi[e.$$typeof]:Gi;var t}var Yi=Object.defineProperty,Xi=Object.getOwnPropertyNames,Wn=Object.getOwnPropertySymbols,Ki=Object.getOwnPropertyDescriptor,Ji=Object.getPrototypeOf,zn=Object.prototype;function Fn(e,t,r){if(typeof t!="string"){if(zn){var n=Ji(t);n&&n!==zn&&Fn(e,n,r)}var o=Xi(t);Wn&&(o=o.concat(Wn(t)));for(var i=Un(e),a=Un(t),c=0;c<o.length;++c){var u=o[c];if(!(u in ji||r&&r[u]||a&&u in a||i&&u in i)){var d=Ki(t,u);try{Yi(e,u,d)}catch{}}}}return e}function Le(e){return typeof e=="function"}function ir(e){return typeof e=="object"&&"styledComponentId"in e}function ye(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ar(e,t){if(e.length===0)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function Me(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function sr(e,t,r){if(r===void 0&&(r=!1),!r&&!Me(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=sr(e[n],t[n]);else if(Me(t))for(var n in t)e[n]=sr(e[n],t[n]);return e}function cr(e,t){Object.defineProperty(e,"toString",{value:t})}var Qi=b.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
7
+
8
+ `,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
9
+
10
+ - Are you trying to reuse it across renders?
11
+ - Are you accidentally calling collectStyles twice?
12
+
13
+ `,3:`Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
14
+
15
+ `,4:`The \`StyleSheetManager\` expects a valid target or sheet prop!
16
+
17
+ - Does this error occur on the client and is your target falsy?
18
+ - Does this error occur on the server and is the sheet falsy?
19
+
20
+ `,5:`The clone method cannot be used on the client!
21
+
22
+ - Are you running in a client-like environment on the server?
23
+ - Are you trying to run SSR on the client?
24
+
25
+ `,6:`Trying to insert a new style tag, but the given Node is unmounted!
26
+
27
+ - Are you using a custom target that isn't mounted?
28
+ - Does your document not have a valid head element?
29
+ - Have you accidentally removed a style tag manually?
30
+
31
+ `,7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:`ThemeProvider: Please make your "theme" prop an object.
32
+
33
+ `,9:"Missing document `<head>`\n\n",10:`Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
34
+
35
+ `,11:`_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
36
+
37
+ `,12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:`%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.
38
+
39
+ `,14:`ThemeProvider: "theme" prop is required.
40
+
41
+ `,15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:`Reached the limit of how many styled components may be created at group %s.
42
+ You may only create up to 1,073,741,824 components. If you're creating components dynamically,
43
+ as for instance in your render method then you may be running into this limitation.
44
+
45
+ `,17:`CSSStyleSheet could not be found on HTMLStyleElement.
46
+ Has styled-components' style tag been unmounted or altered by another script?
47
+ `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function ea(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=e[0],n=[],o=1,i=e.length;o<i;o+=1)n.push(e[o]);return n.forEach(function(a){r=r.replace(/%[a-z]/,a)}),r}function J(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return b.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(ea.apply(void 0,pe([Qi[e]],t,!1)).trim())}var ta=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var r=0,n=0;n<t;n++)r+=this.groupSizes[n];return r},e.prototype.insertRules=function(t,r){if(t>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,i=o;t>=i;)if((i<<=1)<0)throw J(16,"".concat(t));this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var a=o;a<i;a++)this.groupSizes[a]=0}for(var c=this.indexOfGroup(t+1),u=(a=0,r.length);a<u;a++)this.tag.insertRule(c,r[a])&&(this.groupSizes[t]++,c++)},e.prototype.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],n=this.indexOfGroup(t),o=n+r;this.groupSizes[t]=0;for(var i=n;i<o;i++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(t){var r="";if(t>=this.length||this.groupSizes[t]===0)return r;for(var n=this.groupSizes[t],o=this.indexOfGroup(t),i=o+n,a=o;a<i;a++)r+="".concat(this.tag.getRule(a)).concat(er);return r},e}(),ra=1<<30,Lt=new Map,yt=new Map,vt=1,Ct=function(e){if(Lt.has(e))return Lt.get(e);for(;yt.has(vt);)vt++;var t=vt++;if(b.NODE_ENV!=="production"&&((0|t)<0||t>ra))throw J(16,"".concat(t));return Lt.set(e,t),yt.set(t,e),t},na=function(e,t){vt=t+1,Lt.set(e,t),yt.set(t,e)},oa="style[".concat(me,"][").concat(Nn,'="').concat(ht,'"]'),ia=new RegExp("^".concat(me,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),aa=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},sa=function(e,t){for(var r,n=((r=t.textContent)!==null&&r!==void 0?r:"").split(er),o=[],i=0,a=n.length;i<a;i++){var c=n[i].trim();if(c){var u=c.match(ia);if(u){var d=0|parseInt(u[1],10),h=u[2];d!==0&&(na(h,d),aa(e,h,u[3]),e.getTag().insertRules(d,o)),o.length=0}else o.push(c)}}},Gn=function(e){for(var t=document.querySelectorAll(oa),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(me)!==$n&&(sa(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function ca(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var jn=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(c){var u=Array.from(c.querySelectorAll("style[".concat(me,"]")));return u[u.length-1]}(r),i=o!==void 0?o.nextSibling:null;n.setAttribute(me,$n),n.setAttribute(Nn,ht);var a=ca();return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},la=function(){function e(t){this.element=jn(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(r){if(r.sheet)return r.sheet;for(var n=document.styleSheets,o=0,i=n.length;o<i;o++){var a=n[o];if(a.ownerNode===r)return a}throw J(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,r){try{return this.sheet.insertRule(r,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var r=this.sheet.cssRules[t];return r&&r.cssText?r.cssText:""},e}(),ua=function(){function e(t){this.element=jn(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,r){if(t<=this.length&&t>=0){var n=document.createTextNode(r);return this.element.insertBefore(n,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),da=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,r){return t<=this.length&&(this.rules.splice(t,0,r),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),qn=pt,fa={isServer:!pt,useCSSOMInjection:!Hi},Yn=function(){function e(t,r,n){t===void 0&&(t=Ie),r===void 0&&(r={});var o=this;this.options=D(D({},fa),t),this.gs=r,this.names=new Map(n),this.server=!!t.isServer,!this.server&&pt&&qn&&(qn=!1,Gn(this)),cr(this,function(){return function(i){for(var a=i.getTag(),c=a.length,u="",d=function(l){var p=function(m){return yt.get(m)}(l);if(p===void 0)return"continue";var f=i.names.get(p),_=a.getGroup(l);if(f===void 0||!f.size||_.length===0)return"continue";var y="".concat(me,".g").concat(l,'[id="').concat(p,'"]'),v="";f!==void 0&&f.forEach(function(m){m.length>0&&(v+="".concat(m,","))}),u+="".concat(_).concat(y,'{content:"').concat(v,'"}').concat(er)},h=0;h<c;h++)d(h);return u}(o)})}return e.registerId=function(t){return Ct(t)},e.prototype.rehydrate=function(){!this.server&&pt&&Gn(this)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(D(D({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(r){var n=r.useCSSOMInjection,o=r.target;return r.isServer?new da(o):n?new la(o):new ua(o)}(this.options),new ta(t)));var t},e.prototype.hasNameForId=function(t,r){return this.names.has(t)&&this.names.get(t).has(r)},e.prototype.registerName=function(t,r){if(Ct(t),this.names.has(t))this.names.get(t).add(r);else{var n=new Set;n.add(r),this.names.set(t,n)}},e.prototype.insertRules=function(t,r,n){this.registerName(t,r),this.getTag().insertRules(Ct(t),n)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Ct(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),ha=/&/g,pa=/^\s*\/\/.*$/gm;function Xn(e,t){return e.map(function(r){return r.type==="rule"&&(r.value="".concat(t," ").concat(r.value),r.value=r.value.replaceAll(",",",".concat(t," ")),r.props=r.props.map(function(n){return"".concat(t," ").concat(n)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=Xn(r.children,t)),r})}function Kn(e){var t,r,n,o=e===void 0?Ie:e,i=o.options,a=i===void 0?Ie:i,c=o.plugins,u=c===void 0?mt:c,d=function(p,f,_){return _.startsWith(r)&&_.endsWith(r)&&_.replaceAll(r,"").length>0?".".concat(t):p},h=u.slice();h.push(function(p){p.type===it&&p.value.includes("&")&&(p.props[0]=p.props[0].replace(ha,r).replace(n,d))}),a.prefix&&h.push(Ai),h.push(Di);var l=function(p,f,_,y){f===void 0&&(f=""),_===void 0&&(_=""),y===void 0&&(y="&"),t=y,r=f,n=new RegExp("\\".concat(r,"\\b"),"g");var v=p.replace(pa,""),m=Ii(_||f?"".concat(_," ").concat(f," { ").concat(v," }"):v);a.namespace&&(m=Xn(m,a.namespace));var g=[];return ft(m,Ri(h.concat(Ti(function(E){return g.push(E)})))),g};return l.hash=u.length?u.reduce(function(p,f){return f.name||J(15),ge(p,f.name)},Rn).toString():"",l}var _a=new Yn,lr=Kn(),ur=re.createContext({shouldForwardProp:void 0,styleSheet:_a,stylis:lr});ur.Consumer;var ma=re.createContext(void 0);function dr(){return Ze(ur)}function ga(e){var t=U(e.stylisPlugins),r=t[0],n=t[1],o=dr().styleSheet,i=te(function(){var u=o;return e.sheet?u=e.sheet:e.target&&(u=u.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(u=u.reconstructWithOptions({useCSSOMInjection:!1})),u},[e.disableCSSOMInjection,e.sheet,e.target,o]),a=te(function(){return Kn({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:r})},[e.enableVendorPrefixes,e.namespace,r]);ee(function(){yi(r,e.stylisPlugins)||n(e.stylisPlugins)},[e.stylisPlugins]);var c=te(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:i,stylis:a}},[e.shouldForwardProp,i,a]);return re.createElement(ur.Provider,{value:c},re.createElement(ma.Provider,{value:a},e.children))}var fr=function(){function e(t,r){var n=this;this.inject=function(o,i){i===void 0&&(i=lr);var a=n.name+i.hash;o.hasNameForId(n.id,a)||o.insertRules(n.id,a,i(n.rules,a,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,cr(this,function(){throw J(12,String(n.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=lr),this.name+t.hash},e}(),La=function(e){return e>="A"&&e<="Z"};function Jn(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(r===1&&n==="-"&&e[0]==="-")return e;La(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var Qn=function(e){return e==null||e===!1||e===""},eo=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Qn(i)&&(Array.isArray(i)&&i.isCss||Le(i)?n.push("".concat(Jn(o),":"),i,";"):Me(i)?n.push.apply(n,pe(pe(["".concat(o," {")],eo(i),!1),["}"],!1)):n.push("".concat(Jn(o),": ").concat((t=o,(r=i)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in Pi||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function ve(e,t,r,n){if(Qn(e))return[];if(ir(e))return[".".concat(e.styledComponentId)];if(Le(e)){if(!Le(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return[e];var o=e(t);return b.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof fr||Me(o)||o===null||console.error("".concat(Pn(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),ve(o,t,r,n)}var i;return e instanceof fr?r?(e.inject(r,n),[e.getName(n)]):[e]:Me(e)?eo(e):Array.isArray(e)?Array.prototype.concat.apply(mt,e.map(function(a){return ve(a,t,r,n)})):[e.toString()]}function ya(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Le(r)&&!ir(r))return!1}return!0}var va=Tn(ht),Ca=function(){function e(t,r,n){this.rules=t,this.staticRulesId="",this.isStatic=b.NODE_ENV==="production"&&(n===void 0||n.isStatic)&&ya(t),this.componentId=r,this.baseHash=ge(va,r),this.baseStyle=n,Yn.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,r,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))o=ye(o,this.staticRulesId);else{var i=ar(ve(this.rules,t,r,n)),a=rr(ge(this.baseHash,i)>>>0);if(!r.hasNameForId(this.componentId,a)){var c=n(i,".".concat(a),void 0,this.componentId);r.insertRules(this.componentId,a,c)}o=ye(o,a),this.staticRulesId=a}else{for(var u=ge(this.baseHash,n.hash),d="",h=0;h<this.rules.length;h++){var l=this.rules[h];if(typeof l=="string")d+=l,b.NODE_ENV!=="production"&&(u=ge(u,l));else if(l){var p=ar(ve(l,t,r,n));u=ge(u,p+h),d+=p}}if(d){var f=rr(u>>>0);r.hasNameForId(this.componentId,f)||r.insertRules(this.componentId,f,n(d,".".concat(f),void 0,this.componentId)),o=ye(o,f)}}return o},e}(),ze=re.createContext(void 0);ze.Consumer;function to(){var e=Ze(ze);if(!e)throw J(18);return e}function wa(e){var t=re.useContext(ze),r=te(function(){return function(n,o){if(!n)throw J(14);if(Le(n)){var i=n(o);if(b.NODE_ENV!=="production"&&(i===null||Array.isArray(i)||typeof i!="object"))throw J(7);return i}if(Array.isArray(n)||typeof n!="object")throw J(8);return o?D(D({},o),n):n}(e.theme,t)},[e.theme,t]);return e.children?re.createElement(ze.Provider,{value:r},e.children):null}var hr={},ro=new Set;function Sa(e,t,r){var n=ir(e),o=e,i=!or(e),a=t.attrs,c=a===void 0?mt:a,u=t.componentId,d=u===void 0?function(V,x){var S=typeof V!="string"?"sc":Mn(V);hr[S]=(hr[S]||0)+1;var C="".concat(S,"-").concat(An(ht+S+hr[S]));return x?"".concat(x,"-").concat(C):C}(t.displayName,t.parentComponentId):u,h=t.displayName,l=h===void 0?function(V){return or(V)?"styled.".concat(V):"Styled(".concat(Pn(V),")")}(e):h,p=t.displayName&&t.componentId?"".concat(Mn(t.displayName),"-").concat(t.componentId):t.componentId||d,f=n&&o.attrs?o.attrs.concat(c).filter(Boolean):c,_=t.shouldForwardProp;if(n&&o.shouldForwardProp){var y=o.shouldForwardProp;if(t.shouldForwardProp){var v=t.shouldForwardProp;_=function(V,x){return y(V,x)&&v(V,x)}}else _=y}var m=new Ca(r,p,n?o.componentStyle:void 0);function g(V,x){return function(S,C,B){var z=S.attrs,Ye=S.componentStyle,F=S.defaultProps,we=S.foldedComponentIds,yo=S.styledComponentId,Fs=S.target,Gs=re.useContext(ze),js=dr(),yr=S.shouldForwardProp||js.shouldForwardProp;b.NODE_ENV!=="production"&&tt(yo);var vo=Bi(C,Gs,F)||Ie,ie=function(Vt,Je,Et){for(var Re,Se=D(D({},Je),{className:void 0,theme:Et}),wr=0;wr<Vt.length;wr+=1){var kt=Le(Re=Vt[wr])?Re(Se):Re;for(var le in kt)Se[le]=le==="className"?ye(Se[le],kt[le]):le==="style"?D(D({},Se[le]),kt[le]):kt[le]}return Je.className&&(Se.className=ye(Se.className,Je.className)),Se}(z,C,vo),Xe=ie.as||Fs,Ke={};for(var G in ie)ie[G]===void 0||G[0]==="$"||G==="as"||G==="theme"&&ie.theme===vo||(G==="forwardedAs"?Ke.as=ie.forwardedAs:yr&&!yr(G,Xe)||(Ke[G]=ie[G],yr||b.NODE_ENV!=="development"||Po(G)||ro.has(G)||!tr.has(Xe)||(ro.add(G),console.warn('styled-components: it looks like an unknown prop "'.concat(G,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var vr=function(Vt,Je){var Et=dr(),Re=Vt.generateAndInjectStyles(Je,Et.styleSheet,Et.stylis);return b.NODE_ENV!=="production"&&tt(Re),Re}(Ye,ie);b.NODE_ENV!=="production"&&S.warnTooManyClasses&&S.warnTooManyClasses(vr);var Cr=ye(we,yo);return vr&&(Cr+=" "+vr),ie.className&&(Cr+=" "+ie.className),Ke[or(Xe)&&!tr.has(Xe)?"class":"className"]=Cr,B&&(Ke.ref=B),R(Xe,Ke)}(E,V,x)}g.displayName=l;var E=re.forwardRef(g);return E.attrs=f,E.componentStyle=m,E.displayName=l,E.shouldForwardProp=_,E.foldedComponentIds=n?ye(o.foldedComponentIds,o.styledComponentId):"",E.styledComponentId=p,E.target=n?o.target:e,Object.defineProperty(E,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(V){this._foldedDefaultProps=n?function(x){for(var S=[],C=1;C<arguments.length;C++)S[C-1]=arguments[C];for(var B=0,z=S;B<z.length;B++)sr(x,z[B],!0);return x}({},o.defaultProps,V):V}}),b.NODE_ENV!=="production"&&(Zi(l,p),E.warnTooManyClasses=function(V,x){var S={},C=!1;return function(B){if(!C&&(S[B]=!0,Object.keys(S).length>=200)){var z=x?' with the id of "'.concat(x,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(V).concat(z,`.
48
+ `)+`Consider using the attrs method, together with a style object for frequently changed styles.
49
+ Example:
50
+ const Component = styled.div.attrs(props => ({
51
+ style: {
52
+ background: props.background,
53
+ },
54
+ }))\`width: 100%;\`
55
+
56
+ <Component />`),C=!0,S={}}}}(l,p)),cr(E,function(){return".".concat(E.styledComponentId)}),i&&Fn(E,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),E}function no(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}var oo=function(e){return Object.assign(e,{isCss:!0})};function pr(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Le(e)||Me(e))return oo(ve(no(mt,pe([e],t,!0))));var n=e;return t.length===0&&n.length===1&&typeof n[0]=="string"?ve(n):oo(ve(no(n,t)))}function _r(e,t,r){if(r===void 0&&(r=Ie),!t)throw J(1,t);var n=function(o){for(var i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];return e(t,r,pr.apply(void 0,pe([o],i,!1)))};return n.attrs=function(o){return _r(e,t,D(D({},r),{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},n.withConfig=function(o){return _r(e,t,D(D({},r),o))},n}var io=function(e){return _r(Sa,e)},H=io;tr.forEach(function(e){H[e]=io(e)});function wt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];b.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var n=ar(pr.apply(void 0,pe([e],t,!1))),o=An(n);return new fr(o,n)}b.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
57
+ Perhaps you're looking to import 'styled-components/native'?
58
+ Read more about this at https://www.styled-components.com/docs/basics#react-native`);var St="__sc-".concat(me,"__");b.NODE_ENV!=="production"&&b.NODE_ENV!=="test"&&typeof window<"u"&&(window[St]||(window[St]=0),window[St]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
59
+
60
+ See https://s-c.sh/2BAXzed for more info.`),window[St]+=1);const Z={ID_CORNERS:"id-corners",ID_DASH:"id-dash",ID_DOT:"id-dot",ID_SOLID:"id-solid",ID_PHOTO_ROUNDED:"id-photo-rounded",ID_CORNERS_ROUNDED:"id-corners-rounded",ID_DASH_ROUNDED:"id-dash-rounded",ID_DOT_ROUNDED:"id-dot-rounded",ID_SOLID_ROUNDED_BACK:"id-solid-rounded-back",ID_SOLID_ROUNDED:"id-solid-rounded",PASSPORT_SOLID_BACK:"passport-solid-back",PASSPORT_SOLID_BACK_BLANK:"passport-solid-back-blank"},ao=.24,ba=24,Va=2,so=14,Ea=.0276;var oe=(e=>(e[e.S=300]="S",e[e.M=400]="M",e[e.L=500]="L",e[e.Default=600]="Default",e))(oe||{});const Fe={300:{iconSize:40,marginLeft:12,buttonPadding:4},400:{iconSize:45,marginLeft:12,buttonPadding:8},500:{iconSize:52,marginLeft:12,buttonPadding:12},600:{iconSize:52,marginLeft:12,buttonPadding:24}},ka={[A.CANDIDATE_SELECTION]:"Hold still…",[A.DOCUMENT_CENTERING]:"Center document",[A.DOCUMENT_NOT_PRESENT]:"Scan document",[A.DOCUMENT_TOO_FAR]:"Move closer",[A.SHARPNESS_TOO_LOW]:"More light needed",[A.BRIGHTNESS_TOO_LOW]:"More light needed",[A.BRIGHTNESS_TOO_HIGH]:"Less light needed",[A.HOTSPOTS_PRESENT]:"Avoid reflections"},xa={[A.BRIGHTNESS_TOO_LOW]:"Move document to brighter area",[A.SHARPNESS_TOO_LOW]:"Move document to brighter area",[A.BRIGHTNESS_TOO_HIGH]:"Move document to darker area",[A.DOCUMENT_TOO_FAR]:"Move document closer"},co={loading:{text:"Loading. Please wait.",visible:!0},waiting:{text:"Waiting for input...",visible:!0}},Oa=Z.ID_CORNERS_ROUNDED,$a="rgba(19, 19, 19, 0.5)",Na=34;function lo(e,t){return Math.max(t,t+(e-400)*Ea+2)}const Ia=(e,t=so)=>e?e.width<e.height?lo(e.width,t):lo(e.height,t):t,Ma=e=>e>oe.Default?Fe[oe.Default]:e>oe.L?Fe[oe.L]:e>oe.M?Fe[oe.M]:Fe[oe.S],Da=e=>e?Ma(e.width):Fe[oe.Default];function Ra(){const e="https://fonts.googleapis.com/css?family=Montserrat:600";if(!document.querySelector(`link[href="${e}"]`)){const r=document.createElement("link");r.href=e,r.rel="stylesheet",document.head.appendChild(r)}}function Ta({currentInstruction:e,escalatedInstructions:t,instructions:r}){const{code:n,isEscalated:o}=e;if(n)return o&&t&&n in t?t[n]:r[n]}const Ge=Ar(void 0);Ge.displayName="UiCustomizationContext";function Ce(){const e=Ze(Ge);if(!e)throw new Error(`${Ge.displayName} must be used within a ${Ge.displayName} Provider`);return e}function Aa({children:e,props:t,videoElementSize:r}){const{font:n}=to(),o=te(()=>({...t,videoElementSize:r,fontSize:Ia(r,n.minimumSize)}),[t,n.minimumSize,r]);return s(Ge.Provider,{value:o,children:e})}const uo=({svgSize:e})=>s("svg",{fill:"none",height:e,viewBox:"0 0 16 14",width:e,xmlns:"http://www.w3.org/2000/svg",children:s("path",{clipRule:"evenodd",d:"M14.3062 13.5002H1.69384C0.932655 13.5002 0.450552 12.6837 0.818264 12.0172L7.12444 0.587236C7.5047 -0.101994 8.49533 -0.101996 8.87559 0.587234L15.1818 12.0172C15.5495 12.6837 15.0674 13.5002 14.3062 13.5002ZM8.00001 3.25025C8.41423 3.25025 8.75002 3.58604 8.75002 4.00025V8.50025C8.75002 8.91446 8.41423 9.25025 8.00001 9.25025C7.5858 9.25025 7.25001 8.91446 7.25001 8.50025V4.00025C7.25001 3.58604 7.5858 3.25025 8.00001 3.25025ZM8.75002 11.2502C8.75002 11.6645 8.41423 12.0002 8.00001 12.0002C7.5858 12.0002 7.25001 11.6645 7.25001 11.2502C7.25001 10.836 7.5858 10.5002 8.00001 10.5002C8.41423 10.5002 8.75002 10.836 8.75002 11.2502Z",fill:"currentColor",fillRule:"evenodd"})}),Pa=H.div`
61
+ width: 100%;
62
+ height: 100%;
63
+ top: 0;
64
+ position: ${e=>e.$position};
65
+ display: flex;
66
+ justify-content: center;
67
+ align-items: center;
68
+ text-align: center;
69
+ z-index: 1;
70
+
71
+ ${e=>!e.$isCameraReady&&`
72
+ height: inherit;
73
+ aspect-ratio: 16/9;
74
+
75
+ @media (orientation: portrait) and (max-width: 1199px) {
76
+ aspect-ratio: 9/16;
77
+ }
78
+ `}
79
+ `,Ha=H.div`
80
+ width: 100%;
81
+ display: flex;
82
+ flex-direction: column;
83
+ justify-content: center;
84
+ align-items: center;
85
+ color: ${e=>e.theme.colors.instructionTextColor};
86
+ `,Za=H.p`
87
+ background: ${e=>e.theme.colors.instructionColor};
88
+ border-radius: 0.25em;
89
+ padding: 0.583em 0.666em;
90
+ margin: 0.8em 0;
91
+ font-size: ${e=>`${e.$fontSize}px`};
92
+ line-height: 1em;
93
+ max-width: 80%;
94
+ `,mr=({Icon:e,isCameraReady:t,position:r="absolute",text:n})=>{const{fontSize:o}=Ce();return s(Pa,{$isCameraReady:t,$position:r,children:s(Ha,{children:[e?s(e,{svgSize:o*2}):null,s(Za,{$fontSize:o,children:n})]})})},fo=({text:e="An unknown error has occurred"})=>s(mr,{Icon:uo,position:"relative",text:e});class Ba extends j{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t,r){console.error(t,r)}render(){return this.state.hasError?s(fo,{Icon:uo,isCameraReady:!1}):this.props.children}}const Ua=H.div`
95
+ font-family: ${e=>e.theme.font.family};
96
+ font-style: ${e=>e.theme.font.style};
97
+ font-weight: ${e=>e.theme.font.weight};
98
+ `,Wa=({children:e,uiProps:t,videoElementSize:r})=>(ee(()=>{Ra()},[]),s(ga,{target:t.styleTarget,children:s(wa,{theme:t.theme,children:s(Ua,{children:s(Ba,{videoElementSize:r,children:s(Aa,{props:t,videoElementSize:r,children:e})})})})})),za=1.5,Fa=.85,gr=1e3,Ga="dot-auto-capture-video",De=(e,t)=>{const r=He(t);ee(()=>{r.current=t},[t]),ee(()=>{const n=o=>r.current(o);return document.addEventListener(e,n),()=>{document.removeEventListener(e,n)}},[e])};function ja(e){const[t,r]=U(),n=he(o=>{var i;r((i=o.detail)==null?void 0:i.size)},[r]);return De(e,n),ke(()=>{if(!t){const o=document.getElementById(Ga);o&&r(o.getBoundingClientRect())}},[t,r]),t}function qa(e,t){return e?`${e}, ${t}`:t}const je={colors:{placeholderColor:"white",placeholderColorSuccess:"#00BFB2",instructionColor:"#F8FBFB",instructionColorSuccess:"#00BFB2",instructionTextColor:"#021B41;"},font:{family:"Montserrat, Arial, sans-serif",weight:"600",style:"normal",minimumSize:so}},Ya=e=>{var t;return e?{...je,...e,colors:{...je.colors,...e.colors},font:{...je.font,...e.font,family:qa((t=e.font)==null?void 0:t.family,je.font.family)}}:je};function Xa(e,t){return e<gr&&t>=gr?gr:e}function Ka(e,t){return e<t?e:t}function Ja({height:e,width:t}){let r;return t>e?r=Xa(e,t):r=t,{width:r,height:Ka(e,r)}}const Qa=e=>{const r=Ja(e).width*Fa,n=(e.width-r)/2,o=r/za,i=(e.height-o)/2;return{shiftX:n,shiftY:i,width:r,height:o}},es=e=>{const{height:t,shiftX:r,shiftY:n,width:o}=Qa(e);return{shiftX:r/e.width,shiftY:n/e.height,width:o/e.width,height:t/e.height}},ho=(e,t)=>{document.dispatchEvent(new CustomEvent(e,{detail:t}))},bt=class bt{constructor(){xt(this,"lastDetails",{});xt(this,"delayedTime",0)}static getInstance(){return this._instance||(this._instance=new bt),this._instance}restart(){this.lastDetails={},this.delayedTime=0}isDetailChanged(t,r){return JSON.stringify(r)!==JSON.stringify(this.lastDetails[t])?(this.lastDetails[t]=r,!0):!1}dispatchCustomEventOnChange(t,r){this.isDetailChanged(t,r)&&ho(t,r)}dispatchDelayedCustomEventOnChange(t,r,n){const o=performance.now();o-this.delayedTime>n&&(this.dispatchCustomEventOnChange(t,r),this.delayedTime=o)}};xt(bt,"_instance");let Lr=bt;Lr.getInstance();const po=(e,t)=>{ho(e,{instruction:t})};async function ts(){return navigator.mediaDevices.enumerateDevices()}async function rs(){return(await ts()).filter(t=>t.kind==="videoinput")}const ns=()=>{const[e,t]=U(!1);return ee(()=>{(async()=>{(await rs()).length>1&&t(!0)})()},[]),e},os=({size:e})=>s("svg",{fill:"none",height:e,viewBox:"0 0 52 52",width:e,xmlns:"http://www.w3.org/2000/svg",children:[s("path",{d:"M0 26C0 11.6406 11.6406 0 26 0C40.3594 0 52 11.6406 52 26C52 40.3594 40.3594 52 26 52C11.6406 52 0 40.3594 0 26Z",fill:"#131313",fillOpacity:"0.3"}),s("circle",{cx:"17.5",cy:"24.5",fill:"white",r:"1.5"}),s("path",{d:"M15 17H16C19.5 17 23 21 23 29C22.5 29 21.5 29 20 29C20 29 20.25 33 19.5 34.5C18.75 36 16 36 16 36H15",stroke:"white",strokeWidth:"2"}),s("circle",{fill:"white",r:"1.5",transform:"matrix(-1 0 0 1 34.5 24.5)"}),s("path",{d:"M37 17H36C32.5 17 29 21 29 29C29.5 29 30.5 29 32 29C32 29 31.75 33 32.5 34.5C33.25 36 36 36 36 36H37",stroke:"white",strokeWidth:"2"})]}),is=({size:e})=>s("svg",{fill:"none",height:e,viewBox:"0 0 52 52",width:"52",xmlns:"http://www.w3.org/2000/svg",children:[s("circle",{cx:"26",cy:"26",fill:"#131313",fillOpacity:"0.3",r:"26"}),s("path",{d:"M18 26C18 25.4477 17.5523 25 17 25C16.4477 25 16 25.4477 16 26H18ZM34 26C34 26.5523 34.4477 27 35 27C35.5523 27 36 26.5523 36 26H34ZM18.3977 19.5032C18.0387 19.923 18.0879 20.5542 18.5076 20.9132C18.9273 21.2722 19.5586 21.2229 19.9176 20.8032L18.3977 19.5032ZM33.5961 32.504C33.9555 32.0846 33.9069 31.4533 33.4875 31.094C33.0681 30.7346 32.4368 30.7832 32.0775 31.2026L33.5961 32.504ZM33.8321 24.4453C33.5257 23.9858 32.9048 23.8616 32.4453 24.1679C31.9858 24.4743 31.8616 25.0952 32.1679 25.5547L33.8321 24.4453ZM35 28L34.1679 28.5547C34.3534 28.8329 34.6656 29 35 29C35.3344 29 35.6466 28.8329 35.8321 28.5547L35 28ZM37.8321 25.5547C38.1384 25.0952 38.0142 24.4743 37.5547 24.1679C37.0952 23.8616 36.4743 23.9858 36.1679 24.4453L37.8321 25.5547ZM14.1679 26.4453C13.8616 26.9048 13.9858 27.5257 14.4453 27.8321C14.9048 28.1384 15.5257 28.0142 15.8321 27.5547L14.1679 26.4453ZM17 24L17.8321 23.4453C17.6466 23.1671 17.3344 23 17 23C16.6656 23 16.3534 23.1671 16.1679 23.4453L17 24ZM18.1679 27.5547C18.4743 28.0142 19.0952 28.1384 19.5547 27.8321C20.0142 27.5257 20.1384 26.9048 19.8321 26.4453L18.1679 27.5547ZM26 34C21.5817 34 18 30.4183 18 26H16C16 31.5228 20.4772 36 26 36V34ZM26 18C30.4183 18 34 21.5817 34 26H36C36 20.4772 31.5228 16 26 16V18ZM19.9176 20.8032C21.3864 19.0859 23.5658 18 26 18V16C22.9568 16 20.2302 17.3606 18.3977 19.5032L19.9176 20.8032ZM32.0775 31.2026C30.6087 32.9165 28.4314 34 26 34V36C29.0398 36 31.7636 34.6424 33.5961 32.504L32.0775 31.2026ZM32.1679 25.5547L34.1679 28.5547L35.8321 27.4453L33.8321 24.4453L32.1679 25.5547ZM35.8321 28.5547L37.8321 25.5547L36.1679 24.4453L34.1679 27.4453L35.8321 28.5547ZM15.8321 27.5547L17.8321 24.5547L16.1679 23.4453L14.1679 26.4453L15.8321 27.5547ZM16.1679 24.5547L18.1679 27.5547L19.8321 26.4453L17.8321 23.4453L16.1679 24.5547Z",fill:"white"})]}),_o=H.button`
99
+ background: none;
100
+ border: none;
101
+ padding: 0;
102
+ cursor: pointer;
103
+ margin-left: ${e=>e.$marginLeft?`${e.$marginLeft}px`:0};
104
+
105
+ &:disabled {
106
+ cursor: not-allowed;
107
+ }
108
+ `,as=({marginLeft:e,size:t,...r})=>s(_o,{$marginLeft:e,...r,children:s(os,{size:t})}),ss=({marginLeft:e,size:t,...r})=>s(_o,{$marginLeft:e,...r,children:s(is,{size:t})}),cs=H.div`
109
+ position: absolute;
110
+ top: 0;
111
+ right: 0;
112
+ padding: ${e=>`${e.$padding}px`};
113
+ z-index: 2;
114
+ `,ls=({customControlEvent:e,isSwitchCameraDisabled:t})=>{const{showCameraButtons:r,videoElementSize:n}=Ce(),o=ns();if(!r)return null;const{buttonPadding:i,iconSize:a,marginLeft:c}=Da(n);return s(cs,{$padding:i,children:[o&&s(ss,{disabled:t,onClick:()=>{po(e,Zr.SWITCH_CAMERA)},size:a}),s(as,{marginLeft:o?c:0,onClick:()=>{po(e,Zr.TOGGLE_MIRROR)},size:a})]})},us="2.5s",ds="0.3s",fs="linear",hs=wt`
115
+ 0% {
116
+ opacity: 0;
117
+ }
118
+ 100% {
119
+ opacity: 1;
120
+ }
121
+ `;wt`
122
+ 100% {
123
+ transform: translate(-50%, -50%) scale(2.6);
124
+ top: 50%;
125
+ left: 50%;
126
+ }
127
+ `,wt`
128
+ 5% {
129
+ transform: translate(-50%, -50%) scale(0.7);
130
+ opacity: 1;
131
+ }
132
+ 10% {
133
+ transform: translate(-50%, -50%) scale(0.6);
134
+ }
135
+ 40% {
136
+ transform: translate(-50%, -50%) scale(0.6);
137
+ }
138
+ 70% {
139
+ transform: translate(-50%, -50%) scale(0.85);
140
+ opacity: 1;
141
+ }
142
+ 90% {
143
+ transform: translate(-50%, -50%) scale(0.85);
144
+ opacity: 0.5;
145
+ }
146
+ 100% {
147
+ transform: translate(-50%, -50%) scale(0.85);
148
+ opacity: 0.5;
149
+ }
150
+ `,wt`
151
+ 5% {
152
+ opacity: 1;
153
+ }
154
+ 70% {
155
+ transform: scale(1.1);
156
+ }
157
+
158
+ 100% {
159
+ transform: scale(1);
160
+ opacity: 1;
161
+ }
162
+ `;const ps=H.div`
163
+ position: absolute;
164
+ left: 50%;
165
+
166
+ ${e=>e.$cssTop?`top: ${e.$cssTop}%;`:""}
167
+ ${e=>e.$cssBottom?`bottom: ${e.$cssBottom}%;`:""}
168
+ ${e=>e.$isAnimating&&pr`
169
+ animation: ${hs} ${ds}
170
+ ${fs} both;
171
+ animation-delay: ${us};
172
+
173
+ @media (orientation: landscape) {
174
+ bottom: ${e.$cssBottom?e.$cssBottom-15:""}%;
175
+ }
176
+
177
+ @media (max-width: 1024px) and (orientation: landscape) {
178
+ bottom: ${e.$cssBottom?e.$cssBottom-13:""}%;
179
+ }
180
+
181
+ @media (max-width: 768px) {
182
+ bottom: ${e.$cssBottom?e.$cssBottom+3:""}%;
183
+ }
184
+
185
+ @media (max-width: 480px) and (orientation: portrait) {
186
+ bottom: ${e.$cssBottom?e.$cssBottom-10:""}%;
187
+ }
188
+ `};
189
+
190
+ transform: translateX(-50%)
191
+ translateY(
192
+ ${e=>e.$cssTop||e.$isPortrait?"-50%":e.$isPortrait?"":"50%"}
193
+ );
194
+ z-index: 2;
195
+ `,_s=H.div`
196
+ display: flex;
197
+ align-items: center;
198
+ justify-content: center;
199
+ text-align: center;
200
+ border-radius: 0.25em;
201
+ margin: 0 auto;
202
+ padding: 0.583em 0.666em;
203
+ background: ${e=>e.$isInCandidateSelection?`${e.theme.colors.instructionColorSuccess}`:`${e.theme.colors.instructionColor}`};
204
+ color: ${e=>e.theme.colors.instructionTextColor};
205
+ border: 0;
206
+ line-height: 1em;
207
+ font-size: ${e=>`${e.$fontSize}px`};
208
+ white-space: ${e=>e.$wrap?"break-spaces":"nowrap"};
209
+ `,ms=({children:e,cssBottom:t,cssTop:r,isAnimating:n,isInCandidateSelection:o,isPortrait:i})=>{const{fontSize:a}=Ce();return s(ps,{$cssBottom:t,$cssTop:r,$isAnimating:n,$isPortrait:i,children:s(_s,{$fontSize:a,$isInCandidateSelection:o,$wrap:e.length>Na,children:e})})},gs=H.canvas`
210
+ transform: ${e=>e.$isImageMirror?"rotateY(180deg)":"none"};
211
+ position: absolute;
212
+ top: 0;
213
+ left: 0;
214
+ width: 100%;
215
+ height: 100%;
216
+ z-index: 1;
217
+ `,Ls=e=>{const t=e.getContext("2d");t&&t.clearRect(0,0,t.canvas.width,t.canvas.height)},qe=(e,t)=>Math.hypot(t.x-e.x,t.y-e.y),mo=(e,t,r)=>{const n=(t.x-e.x)*r,o=(t.y-e.y)*r;return{x:e.x+n,y:e.y+o}},go=(e,t,r,n)=>{const o=qe(e,t);return r*n/o},ys=e=>{const{bottomLeft:t,bottomRight:r,topLeft:n,topRight:o}=e,i=qe(n,o),a=qe(o,r),c=qe(t,r),u=qe(n,t);return Math.min(i,a,c,u)};function vs({cameraResolution:e,isImageMirror:t}){const r=He(null),n=to(),[o,i]=U(),a=he(c=>{var u;i((u=c==null?void 0:c.detail)==null?void 0:u.detectedObject)},[i]);return De(fe.DETECTED_DOCUMENT_CHANGED,a),De(Br.DETECTED_PALM_CHANGED,a),ee(()=>{if(!r.current)return;const c=(d,h,l,p)=>{var g;const f=go(h,d,p,ao),_=go(h,l,p,ao),y=mo(h,d,f),v=mo(h,l,_),m=(g=r==null?void 0:r.current)==null?void 0:g.getContext("2d");m&&(m.beginPath(),m.lineWidth=Va,m.strokeStyle=n.colors.placeholderColor,m.moveTo(y.x,y.y),m.arcTo(h.x,h.y,v.x,v.y,ba),m.lineTo(v.x,v.y),m.stroke())},u=d=>{if(!d)return;const{bottomLeft:h,bottomRight:l,topLeft:p,topRight:f}=d,_=ys(d);c(h,p,f,_),c(p,f,l,_),c(f,l,h,_),c(l,h,p,_)};r.current.width=e.width,r.current.height=e.height,Ls(r.current),u(o)},[e,o,n.colors.placeholderColor]),s(gs,{ref:r,$isImageMirror:t})}const Cs=H.div`
218
+ color: ${e=>e.theme.colors.instructionTextColor};
219
+ animation: spin 2s linear infinite;
220
+
221
+ @keyframes spin {
222
+ 100% {
223
+ transform: rotate(-360deg);
224
+ }
225
+ }
226
+ `,ws=({svgSize:e})=>s(Cs,{children:s("svg",{fill:"none",height:e,viewBox:"0 0 48 48",width:e,xmlns:"http://www.w3.org/2000/svg",children:[s("path",{d:"M30.9229 9.75026C30.9229 12.3736 28.7533 14.5002 26.0767 14.5002C23.4003 14.5002 21.2307 12.3736 21.2307 9.75026C21.2307 7.12664 23.4003 5 26.0767 5C28.7533 5 30.9229 7.12664 30.9229 9.75026Z",fill:"currentColor"}),s("path",{d:"M40.6155 15.8556C40.6155 18.1044 38.7559 19.9273 36.4618 19.9273C34.1675 19.9273 32.3079 18.1044 32.3079 15.8556C32.3079 13.607 34.1675 11.7842 36.4618 11.7842C38.7559 11.7842 40.6155 13.607 40.6155 15.8556Z",fill:"currentColor"}),s("path",{d:"M42 27.3921C42 29.2659 40.4502 30.785 38.5386 30.785C36.6267 30.785 35.0769 29.2659 35.0769 27.3921C35.0769 25.5181 36.6267 23.999 38.5386 23.999C40.4502 23.999 42 25.5181 42 27.3921Z",fill:"currentColor"}),s("path",{d:"M35.0766 37.5712C35.0766 39.0704 33.837 40.2858 32.3075 40.2858C30.7779 40.2858 29.5383 39.0704 29.5383 37.5712C29.5383 36.0723 30.7779 34.8569 32.3075 34.8569C33.837 34.8569 35.0766 36.0723 35.0766 37.5712Z",fill:"currentColor"}),s("path",{d:"M22.6154 40.2858C22.6154 41.7848 21.3756 43.0001 19.846 43.0001C18.3168 43.0001 17.0769 41.7848 17.0769 40.2858C17.0769 38.7866 18.3168 37.5713 19.846 37.5713C21.3756 37.5713 22.6154 38.7866 22.6154 40.2858Z",fill:"currentColor"}),s("path",{d:"M11.5382 32.8216C11.5382 33.9457 10.6085 34.8573 9.46137 34.8573C8.31426 34.8573 7.38452 33.9457 7.38452 32.8216C7.38452 31.6972 8.31426 30.7856 9.46137 30.7856C10.6085 30.7856 11.5382 31.6972 11.5382 32.8216Z",fill:"currentColor"}),s("path",{d:"M8.76913 21.2849C8.76913 22.0345 8.14932 22.642 7.38456 22.642C6.6198 22.642 6 22.0345 6 21.2849C6 20.5353 6.61981 19.9277 7.38456 19.9277C8.14933 19.9277 8.76913 20.5353 8.76913 21.2849Z",fill:"currentColor"}),s("path",{d:"M15.6927 11.7844C15.6927 12.534 15.0729 13.1415 14.3081 13.1415C13.5434 13.1415 12.9236 12.534 12.9236 11.7844C12.9236 11.0348 13.5434 10.4272 14.3081 10.4272C15.0729 10.4272 15.6927 11.0348 15.6927 11.7844Z",fill:"currentColor"})]})}),Ss=H.div`
227
+ z-index: 1;
228
+ position: absolute;
229
+ top: 0;
230
+ left: 0;
231
+ width: 100%;
232
+ height: 100%;
233
+ `,Lo=({children:e,height:t,width:r})=>{const{backdropColor:n}=Ce();return s(Ss,{children:s("svg",{viewBox:`0 0 ${r} ${t}`,children:[s("defs",{children:s("mask",{id:"mask",children:[s("rect",{fill:"#fff",height:"100%",width:"100%"}),e]})}),s("rect",{fill:n,height:"100%",mask:"url(#mask)",width:"100%"})]})})};function bs({cameraHeight:e,cameraWidth:t,isBackdrop:r,state:n}){const{appStateInstructions:o}=Ce(),i=n===X.ERROR||n===X.RUNNING;return!n||i||!(o!=null&&o[n].visible)?null:n===X.WAITING?s(P,{children:[r&&e&&t&&s(Lo,{height:e,width:t}),s(mr,{isCameraReady:!0,text:o[X.WAITING].text})]}):s(mr,{Icon:ws,isCameraReady:!0,text:o[X.LOADING].text})}function Vs({isPassport:e,isRounded:t,...r}){if(t)return s("rect",{fill:"#000",...r,rx:"2%"});if(e){const n="4%",o=`calc(${r.height} / 2)`;return s(P,{children:[s("rect",{fill:"#000",height:o,rx:"1%",width:r.width,x:r.x,y:r.y}),s("rect",{fill:"#000",height:o,rx:"0",width:r.width,x:r.x,y:`calc(${r.y} + ${n})`}),s("rect",{fill:"#000",height:o,rx:"2%",width:r.width,x:r.x,y:`calc(${r.y} + ${o})`})]})}return s("rect",{fill:"#000",...r,rx:"0%"})}function Es(){return s("svg",{fill:"none",height:"402",preserveAspectRatio:"none",viewBox:"0 0 630 402",width:"630",xmlns:"http://www.w3.org/2000/svg",children:[s("rect",{fill:"white",height:"402",opacity:"0.1",rx:"4",width:"630"}),s("path",{d:"M535.828 2H626C627.105 2 628 2.89543 628 4V93.8462M94.1718 2H4C2.89543 2 2 2.89543 2 4V93.8462M2 308.154V398C2 399.105 2.89543 400 4 400H94.1718M628 308.154V398C628 399.105 627.105 400 626 400H535.828",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"4"})]})}const ks=()=>s("svg",{fill:"none",height:"404",preserveAspectRatio:"none",viewBox:"0 0 632 404",width:"632",xmlns:"http://www.w3.org/2000/svg",children:[s("rect",{fill:"white",height:"402",opacity:"0.1",rx:"17",width:"630",x:"1",y:"1"}),s("path",{d:"M536.385 2H614C622.837 2 630 9.16344 630 18V96.1176M95.6149 2H18C9.16344 2 2 9.16344 2 18V96.1176M2 307.882V386C2 394.837 9.16343 402 18 402H95.6149M630 307.882V386C630 394.837 622.837 402 614 402H536.385",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"4"})]});function xs(){return s("svg",{fill:"none",height:"402",preserveAspectRatio:"none",viewBox:"0 0 630 402",width:"630",xmlns:"http://www.w3.org/2000/svg",children:[s("mask",{fill:"white",id:"path-2-inside-1_1_3694",children:s("rect",{height:"402",rx:"2",width:"630"})}),s("rect",{height:"402",mask:"url(#path-2-inside-1_1_3694)",rx:"2",stroke:"currentColor",strokeDasharray:"14 14",strokeLinecap:"square",strokeWidth:"8",width:"630"})]})}function Os(){return s("svg",{fill:"none",height:"402",preserveAspectRatio:"none",viewBox:"0 0 630 402",width:"630",xmlns:"http://www.w3.org/2000/svg",children:[s("rect",{fill:"white",height:"402",opacity:"0.1",rx:"16",width:"630"}),s("rect",{height:"398",rx:"14",stroke:"currentColor",strokeDasharray:"14 14",strokeLinecap:"square",strokeWidth:"4",width:"626",x:"2",y:"2"})]})}function $s(){return s("svg",{fill:"none",height:"402",preserveAspectRatio:"none",viewBox:"0 0 630 402",width:"630",xmlns:"http://www.w3.org/2000/svg",children:s("rect",{height:"398",stroke:"currentColor",strokeDasharray:"1 12 1 12",strokeLinecap:"square",strokeWidth:"4",width:"626",x:"2",y:"2"})})}function Ns(){return s("svg",{fill:"none",height:"402",preserveAspectRatio:"none",viewBox:"0 0 630 402",width:"630",xmlns:"http://www.w3.org/2000/svg",children:s("rect",{height:"398",rx:"14",stroke:"currentColor",strokeDasharray:"1 12 1 12",strokeLinecap:"square",strokeWidth:"4",width:"626",x:"2",y:"2"})})}function Is(){return s("svg",{fill:"none",height:"404",preserveAspectRatio:"none",viewBox:"0 0 632 404",width:"632",xmlns:"http://www.w3.org/2000/svg",children:[s("rect",{fill:"white",height:"402",opacity:"0.1",rx:"17",width:"630",x:"1",y:"1"}),s("path",{d:"M536.385 2H614C622.837 2 630 9.16344 630 18V96.1176M95.6149 2H18C9.16344 2 2 9.16344 2 18V96.1176M2 307.882V386C2 394.837 9.16343 402 18 402H95.6149M630 307.882V386C630 394.837 622.837 402 614 402H536.385",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"4"}),s("rect",{height:"208.731",rx:"4",stroke:"currentColor",strokeWidth:"2",width:"170.061",x:"35.7852",y:"97.6345"})]})}function Ms(){return s("svg",{fill:"none",height:"402",preserveAspectRatio:"none",viewBox:"0 0 630 402",width:"630",xmlns:"http://www.w3.org/2000/svg",children:[s("rect",{fill:"white",height:"402",opacity:"0.1",rx:"4",width:"630"}),s("mask",{fill:"white",id:"path-2-inside-1_1_3696",children:s("rect",{height:"402",rx:"2",width:"630"})}),s("rect",{height:"402",mask:"url(#path-2-inside-1_1_3696)",rx:"2",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"8",width:"630"})]})}function Ds(){return s("svg",{fill:"none",height:"402",preserveAspectRatio:"none",viewBox:"0 0 630 402",width:"630",xmlns:"http://www.w3.org/2000/svg",children:[s("rect",{fill:"white",height:"402",opacity:"0.1",rx:"16",width:"630"}),s("rect",{height:"398",rx:"14",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"4",width:"626",x:"2",y:"2"})]})}function Rs(){return s("svg",{fill:"none",height:"402",preserveAspectRatio:"none",viewBox:"0 0 630 402",width:"630",xmlns:"http://www.w3.org/2000/svg",children:[s("path",{d:"M626 251.4V386C626 392.6 620.6 398 614 398H16C9.4 398 4 392.6 4 386V251.4H626ZM628 247.4H2C0.9 247.4 0 248.3 0 249.4V386C0 394.8 7.2 402 16 402H614C622.8 402 630 394.8 630 386V249.4C630 248.3 629.1 247.4 628 247.4Z",fill:"currentColor"}),s("path",{d:"M2 16C2 8.3 8.3 2 16 2H614C621.7 2 628 8.3 628 16V247.4V386C628 393.7 621.7 400 614 400H16C8.3 400 2 393.7 2 386V247.4V16Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"4"})]})}function Ts(){return s("svg",{fill:"none",height:"402",preserveAspectRatio:"none",viewBox:"0 0 630 402",width:"630",xmlns:"http://www.w3.org/2000/svg",children:[s("path",{d:"M16 0H614C622.8 0 630 7.2 630 16V386C630 394.8 622.8 402 614 402H16C7.2 402 0 394.8 0 386V16C0 7.2 7.2 0 16 0Z",fill:"none",opacity:"0.1"}),s("path",{d:"M16 400C8.3 400 2 393.7 2 386V249.4H628V386C628 393.7 621.7 400 614 400H16Z",fill:"none"}),s("path",{d:"M626 251.4V386C626 392.6 620.6 398 614 398H16C9.4 398 4 392.6 4 386V251.4H626ZM628 247.4H2C0.9 247.4 0 248.3 0 249.4V386C0 394.8 7.2 402 16 402H614C622.8 402 630 394.8 630 386V249.4C630 248.3 629.1 247.4 628 247.4Z",fill:"currentColor"}),s("path",{d:"M48.6001 296V292.9L42.4001 290.8L41.6001 290.5L42.4001 290.2L48.6001 288.1V285L38.6001 289.2V291.7L48.6001 296Z",fill:"currentColor"}),s("path",{d:"M67.3001 296V292.9L61.1 290.8L60.3 290.5L61.1 290.2L67.3001 288.1V285L57.3 289.2V291.7L67.3001 296Z",fill:"currentColor"}),s("path",{d:"M86.1001 296V292.9L79.9001 290.8L79.1001 290.5L79.9001 290.2L86.1001 288.1V285L76.1001 289.2V291.7L86.1001 296Z",fill:"currentColor"}),s("path",{d:"M104.8 296V292.9L98.6 290.8L97.8 290.5L98.6 290.2L104.8 288.1V285L94.8 289.2V291.7L104.8 296Z",fill:"currentColor"}),s("path",{d:"M123.5 296V292.9L117.3 290.8L116.5 290.5L117.3 290.2L123.5 288.1V285L113.5 289.2V291.7L123.5 296Z",fill:"currentColor"}),s("path",{d:"M142.2 296V292.9L136 290.8L135.2 290.5L136 290.2L142.2 288.1V285L132.2 289.2V291.7L142.2 296Z",fill:"currentColor"}),s("path",{d:"M160.9 296V292.9L154.7 290.8L153.9 290.5L154.7 290.2L160.9 288.1V285L150.9 289.2V291.7L160.9 296Z",fill:"currentColor"}),s("path",{d:"M179.6 296V292.9L173.4 290.8L172.6 290.5L173.4 290.2L179.6 288.1V285L169.6 289.2V291.7L179.6 296Z",fill:"currentColor"}),s("path",{d:"M198.3 296V292.9L192.1 290.8L191.3 290.5L192.1 290.2L198.3 288.1V285L188.3 289.2V291.7L198.3 296Z",fill:"currentColor"}),s("path",{d:"M217.1 296V292.9L210.9 290.8L210.1 290.5L210.9 290.2L217.1 288.1V285L207.1 289.2V291.7L217.1 296Z",fill:"currentColor"}),s("path",{d:"M235.8 296V292.9L229.6 290.8L228.8 290.5L229.6 290.2L235.8 288.1V285L225.8 289.2V291.7L235.8 296Z",fill:"currentColor"}),s("path",{d:"M254.5 296V292.9L248.3 290.8L247.5 290.5L248.3 290.2L254.5 288.1V285L244.5 289.2V291.7L254.5 296Z",fill:"currentColor"}),s("path",{d:"M273.2 296V292.9L267 290.8L266.2 290.5L267 290.2L273.2 288.1V285L263.2 289.2V291.7L273.2 296Z",fill:"currentColor"}),s("path",{d:"M291.9 296V292.9L285.7 290.8L284.9 290.5L285.7 290.2L291.9 288.1V285L281.9 289.2V291.7L291.9 296Z",fill:"currentColor"}),s("path",{d:"M310.6 296V292.9L304.4 290.8L303.6 290.5L304.4 290.2L310.6 288.1V285L300.6 289.2V291.7L310.6 296Z",fill:"currentColor"}),s("path",{d:"M329.3 296V292.9L323.1 290.8L322.3 290.5L323.1 290.2L329.3 288.1V285L319.3 289.2V291.7L329.3 296Z",fill:"currentColor"}),s("path",{d:"M348.1 296V292.9L341.9 290.8L341.1 290.5L341.9 290.2L348.1 288.1V285L338.1 289.2V291.7L348.1 296Z",fill:"currentColor"}),s("path",{d:"M366.8 296V292.9L360.6 290.8L359.8 290.5L360.6 290.2L366.8 288.1V285L356.8 289.2V291.7L366.8 296Z",fill:"currentColor"}),s("path",{d:"M385.5 296V292.9L379.3 290.8L378.5 290.5L379.3 290.2L385.5 288.1V285L375.5 289.2V291.7L385.5 296Z",fill:"currentColor"}),s("path",{d:"M404.2 296V292.9L398 290.8L397.2 290.5L398 290.2L404.2 288.1V285L394.2 289.2V291.7L404.2 296Z",fill:"currentColor"}),s("path",{d:"M422.9 296V292.9L416.7 290.8L415.9 290.5L416.7 290.2L422.9 288.1V285L412.9 289.2V291.7L422.9 296Z",fill:"currentColor"}),s("path",{d:"M441.6 296V292.9L435.4 290.8L434.6 290.5L435.4 290.2L441.6 288.1V285L431.6 289.2V291.7L441.6 296Z",fill:"currentColor"}),s("path",{d:"M460.3 296V292.9L454.1 290.8L453.3 290.5L454.1 290.2L460.3 288.1V285L450.3 289.2V291.7L460.3 296Z",fill:"currentColor"}),s("path",{d:"M479.1 296V292.9L472.9 290.8L472.1 290.5L472.9 290.2L479.1 288.1V285L469.1 289.2V291.7L479.1 296Z",fill:"currentColor"}),s("path",{d:"M497.8 296V292.9L491.6 290.8L490.8 290.5L491.6 290.2L497.8 288.1V285L487.8 289.2V291.7L497.8 296Z",fill:"currentColor"}),s("path",{d:"M516.5 296V292.9L510.3 290.8L509.5 290.5L510.3 290.2L516.5 288.1V285L506.5 289.2V291.7L516.5 296Z",fill:"currentColor"}),s("path",{d:"M535.2 296V292.9L529 290.8L528.2 290.5L529 290.2L535.2 288.1V285L525.2 289.2V291.7L535.2 296Z",fill:"currentColor"}),s("path",{d:"M553.9 296V292.9L547.7 290.8L546.9 290.5L547.7 290.2L553.9 288.1V285L543.9 289.2V291.7L553.9 296Z",fill:"currentColor"}),s("path",{d:"M572.6 296V292.9L566.4 290.8L565.6 290.5L566.4 290.2L572.6 288.1V285L562.6 289.2V291.7L572.6 296Z",fill:"currentColor"}),s("path",{d:"M591.3 296V292.9L585.1 290.8L584.3 290.5L585.1 290.2L591.3 288.1V285L581.3 289.2V291.7L591.3 296Z",fill:"currentColor"}),s("path",{d:"M48.6001 326.9V323.8L42.4001 321.7L41.6001 321.4L42.4001 321.1L48.6001 319V315.9L38.6001 320.1V322.6L48.6001 326.9Z",fill:"currentColor"}),s("path",{d:"M67.3001 326.9V323.8L61.1 321.7L60.3 321.4L61.1 321.1L67.3001 319V315.9L57.3 320.1V322.6L67.3001 326.9Z",fill:"currentColor"}),s("path",{d:"M86.1001 326.9V323.8L79.9001 321.7L79.1001 321.4L79.9001 321.1L86.1001 319V315.9L76.1001 320.1V322.6L86.1001 326.9Z",fill:"currentColor"}),s("path",{d:"M104.8 326.9V323.8L98.6 321.7L97.8 321.4L98.6 321.1L104.8 319V315.9L94.8 320.1V322.6L104.8 326.9Z",fill:"currentColor"}),s("path",{d:"M123.5 326.9V323.8L117.3 321.7L116.5 321.4L117.3 321.1L123.5 319V315.9L113.5 320.1V322.6L123.5 326.9Z",fill:"currentColor"}),s("path",{d:"M142.2 326.9V323.8L136 321.7L135.2 321.4L136 321.1L142.2 319V315.9L132.2 320.1V322.6L142.2 326.9Z",fill:"currentColor"}),s("path",{d:"M160.9 326.9V323.8L154.7 321.7L153.9 321.4L154.7 321.1L160.9 319V315.9L150.9 320.1V322.6L160.9 326.9Z",fill:"currentColor"}),s("path",{d:"M179.6 326.9V323.8L173.4 321.7L172.6 321.4L173.4 321.1L179.6 319V315.9L169.6 320.1V322.6L179.6 326.9Z",fill:"currentColor"}),s("path",{d:"M198.3 326.9V323.8L192.1 321.7L191.3 321.4L192.1 321.1L198.3 319V315.9L188.3 320.1V322.6L198.3 326.9Z",fill:"currentColor"}),s("path",{d:"M217.1 326.9V323.8L210.9 321.7L210.1 321.4L210.9 321.1L217.1 319V315.9L207.1 320.1V322.6L217.1 326.9Z",fill:"currentColor"}),s("path",{d:"M235.8 326.9V323.8L229.6 321.7L228.8 321.4L229.6 321.1L235.8 319V315.9L225.8 320.1V322.6L235.8 326.9Z",fill:"currentColor"}),s("path",{d:"M254.5 326.9V323.8L248.3 321.7L247.5 321.4L248.3 321.1L254.5 319V315.9L244.5 320.1V322.6L254.5 326.9Z",fill:"currentColor"}),s("path",{d:"M273.2 326.9V323.8L267 321.7L266.2 321.4L267 321.1L273.2 319V315.9L263.2 320.1V322.6L273.2 326.9Z",fill:"currentColor"}),s("path",{d:"M291.9 326.9V323.8L285.7 321.7L284.9 321.4L285.7 321.1L291.9 319V315.9L281.9 320.1V322.6L291.9 326.9Z",fill:"currentColor"}),s("path",{d:"M310.6 326.9V323.8L304.4 321.7L303.6 321.4L304.4 321.1L310.6 319V315.9L300.6 320.1V322.6L310.6 326.9Z",fill:"currentColor"}),s("path",{d:"M329.3 326.9V323.8L323.1 321.7L322.3 321.4L323.1 321.1L329.3 319V315.9L319.3 320.1V322.6L329.3 326.9Z",fill:"currentColor"}),s("path",{d:"M348.1 326.9V323.8L341.9 321.7L341.1 321.4L341.9 321.1L348.1 319V315.9L338.1 320.1V322.6L348.1 326.9Z",fill:"currentColor"}),s("path",{d:"M366.8 326.9V323.8L360.6 321.7L359.8 321.4L360.6 321.1L366.8 319V315.9L356.8 320.1V322.6L366.8 326.9Z",fill:"currentColor"}),s("path",{d:"M385.5 326.9V323.8L379.3 321.7L378.5 321.4L379.3 321.1L385.5 319V315.9L375.5 320.1V322.6L385.5 326.9Z",fill:"currentColor"}),s("path",{d:"M404.2 326.9V323.8L398 321.7L397.2 321.4L398 321.1L404.2 319V315.9L394.2 320.1V322.6L404.2 326.9Z",fill:"currentColor"}),s("path",{d:"M422.9 326.9V323.8L416.7 321.7L415.9 321.4L416.7 321.1L422.9 319V315.9L412.9 320.1V322.6L422.9 326.9Z",fill:"currentColor"}),s("path",{d:"M441.6 326.9V323.8L435.4 321.7L434.6 321.4L435.4 321.1L441.6 319V315.9L431.6 320.1V322.6L441.6 326.9Z",fill:"currentColor"}),s("path",{d:"M460.3 326.9V323.8L454.1 321.7L453.3 321.4L454.1 321.1L460.3 319V315.9L450.3 320.1V322.6L460.3 326.9Z",fill:"currentColor"}),s("path",{d:"M479.1 326.9V323.8L472.9 321.7L472.1 321.4L472.9 321.1L479.1 319V315.9L469.1 320.1V322.6L479.1 326.9Z",fill:"currentColor"}),s("path",{d:"M497.8 326.9V323.8L491.6 321.7L490.8 321.4L491.6 321.1L497.8 319V315.9L487.8 320.1V322.6L497.8 326.9Z",fill:"currentColor"}),s("path",{d:"M516.5 326.9V323.8L510.3 321.7L509.5 321.4L510.3 321.1L516.5 319V315.9L506.5 320.1V322.6L516.5 326.9Z",fill:"currentColor"}),s("path",{d:"M535.2 326.9V323.8L529 321.7L528.2 321.4L529 321.1L535.2 319V315.9L525.2 320.1V322.6L535.2 326.9Z",fill:"currentColor"}),s("path",{d:"M553.9 326.9V323.8L547.7 321.7L546.9 321.4L547.7 321.1L553.9 319V315.9L543.9 320.1V322.6L553.9 326.9Z",fill:"currentColor"}),s("path",{d:"M572.6 326.9V323.8L566.4 321.7L565.6 321.4L566.4 321.1L572.6 319V315.9L562.6 320.1V322.6L572.6 326.9Z",fill:"currentColor"}),s("path",{d:"M591.3 326.9V323.8L585.1 321.7L584.3 321.4L585.1 321.1L591.3 319V315.9L581.3 320.1V322.6L591.3 326.9Z",fill:"currentColor"}),s("path",{d:"M48.6001 357.9V354.8L42.4001 352.7L41.6001 352.4L42.4001 352.1L48.6001 350V347L38.6001 351.2V353.7L48.6001 357.9Z",fill:"currentColor"}),s("path",{d:"M67.3001 357.9V354.8L61.1 352.7L60.3 352.4L61.1 352.1L67.3001 350V347L57.3 351.2V353.7L67.3001 357.9Z",fill:"currentColor"}),s("path",{d:"M86.1001 357.9V354.8L79.9001 352.7L79.1001 352.4L79.9001 352.1L86.1001 350V347L76.1001 351.2V353.7L86.1001 357.9Z",fill:"currentColor"}),s("path",{d:"M104.8 357.9V354.8L98.6 352.7L97.8 352.4L98.6 352.1L104.8 350V347L94.8 351.2V353.7L104.8 357.9Z",fill:"currentColor"}),s("path",{d:"M123.5 357.9V354.8L117.3 352.7L116.5 352.4L117.3 352.1L123.5 350V347L113.5 351.2V353.7L123.5 357.9Z",fill:"currentColor"}),s("path",{d:"M142.2 357.9V354.8L136 352.7L135.2 352.4L136 352.1L142.2 350V347L132.2 351.2V353.7L142.2 357.9Z",fill:"currentColor"}),s("path",{d:"M160.9 357.9V354.8L154.7 352.7L153.9 352.4L154.7 352.1L160.9 350V347L150.9 351.2V353.7L160.9 357.9Z",fill:"currentColor"}),s("path",{d:"M179.6 357.9V354.8L173.4 352.7L172.6 352.4L173.4 352.1L179.6 350V347L169.6 351.2V353.7L179.6 357.9Z",fill:"currentColor"}),s("path",{d:"M198.3 357.9V354.8L192.1 352.7L191.3 352.4L192.1 352.1L198.3 350V347L188.3 351.2V353.7L198.3 357.9Z",fill:"currentColor"}),s("path",{d:"M217.1 357.9V354.8L210.9 352.7L210.1 352.4L210.9 352.1L217.1 350V347L207.1 351.2V353.7L217.1 357.9Z",fill:"currentColor"}),s("path",{d:"M235.8 357.9V354.8L229.6 352.7L228.8 352.4L229.6 352.1L235.8 350V347L225.8 351.2V353.7L235.8 357.9Z",fill:"currentColor"}),s("path",{d:"M254.5 357.9V354.8L248.3 352.7L247.5 352.4L248.3 352.1L254.5 350V347L244.5 351.2V353.7L254.5 357.9Z",fill:"currentColor"}),s("path",{d:"M273.2 357.9V354.8L267 352.7L266.2 352.4L267 352.1L273.2 350V347L263.2 351.2V353.7L273.2 357.9Z",fill:"currentColor"}),s("path",{d:"M291.9 357.9V354.8L285.7 352.7L284.9 352.4L285.7 352.1L291.9 350V347L281.9 351.2V353.7L291.9 357.9Z",fill:"currentColor"}),s("path",{d:"M310.6 357.9V354.8L304.4 352.7L303.6 352.4L304.4 352.1L310.6 350V347L300.6 351.2V353.7L310.6 357.9Z",fill:"currentColor"}),s("path",{d:"M329.3 357.9V354.8L323.1 352.7L322.3 352.4L323.1 352.1L329.3 350V347L319.3 351.2V353.7L329.3 357.9Z",fill:"currentColor"}),s("path",{d:"M348.1 357.9V354.8L341.9 352.7L341.1 352.4L341.9 352.1L348.1 350V347L338.1 351.2V353.7L348.1 357.9Z",fill:"currentColor"}),s("path",{d:"M366.8 357.9V354.8L360.6 352.7L359.8 352.4L360.6 352.1L366.8 350V347L356.8 351.2V353.7L366.8 357.9Z",fill:"currentColor"}),s("path",{d:"M385.5 357.9V354.8L379.3 352.7L378.5 352.4L379.3 352.1L385.5 350V347L375.5 351.2V353.7L385.5 357.9Z",fill:"currentColor"}),s("path",{d:"M404.2 357.9V354.8L398 352.7L397.2 352.4L398 352.1L404.2 350V347L394.2 351.2V353.7L404.2 357.9Z",fill:"currentColor"}),s("path",{d:"M422.9 357.9V354.8L416.7 352.7L415.9 352.4L416.7 352.1L422.9 350V347L412.9 351.2V353.7L422.9 357.9Z",fill:"currentColor"}),s("path",{d:"M441.6 357.9V354.8L435.4 352.7L434.6 352.4L435.4 352.1L441.6 350V347L431.6 351.2V353.7L441.6 357.9Z",fill:"currentColor"}),s("path",{d:"M460.3 357.9V354.8L454.1 352.7L453.3 352.4L454.1 352.1L460.3 350V347L450.3 351.2V353.7L460.3 357.9Z",fill:"currentColor"}),s("path",{d:"M479.1 357.9V354.8L472.9 352.7L472.1 352.4L472.9 352.1L479.1 350V347L469.1 351.2V353.7L479.1 357.9Z",fill:"currentColor"}),s("path",{d:"M497.8 357.9V354.8L491.6 352.7L490.8 352.4L491.6 352.1L497.8 350V347L487.8 351.2V353.7L497.8 357.9Z",fill:"currentColor"}),s("path",{d:"M516.5 357.9V354.8L510.3 352.7L509.5 352.4L510.3 352.1L516.5 350V347L506.5 351.2V353.7L516.5 357.9Z",fill:"currentColor"}),s("path",{d:"M535.2 357.9V354.8L529 352.7L528.2 352.4L529 352.1L535.2 350V347L525.2 351.2V353.7L535.2 357.9Z",fill:"currentColor"}),s("path",{d:"M553.9 357.9V354.8L547.7 352.7L546.9 352.4L547.7 352.1L553.9 350V347L543.9 351.2V353.7L553.9 357.9Z",fill:"currentColor"}),s("path",{d:"M572.6 357.9V354.8L566.4 352.7L565.6 352.4L566.4 352.1L572.6 350V347L562.6 351.2V353.7L572.6 357.9Z",fill:"currentColor"}),s("path",{d:"M591.3 357.9V354.8L585.1 352.7L584.3 352.4L585.1 352.1L591.3 350V347L581.3 351.2V353.7L591.3 357.9Z",fill:"currentColor"}),s("path",{d:"M2 16C2 8.3 8.3 2 16 2H614C621.7 2 628 8.3 628 16V247.4V386C628 393.7 621.7 400 614 400H16C8.3 400 2 393.7 2 386V247.4V16Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"4"})]})}function As(){return s("svg",{fill:"none",height:"114",preserveAspectRatio:"none",viewBox:"0 0 163 114",width:"163",xmlns:"http://www.w3.org/2000/svg",children:[s("path",{d:"M2 0.5H161C161.828 0.5 162.5 1.17157 162.5 2V110C162.5 111.933 160.933 113.5 159 113.5H4C2.067 113.5 0.5 111.933 0.5 110V2C0.5 1.17157 1.17157 0.5 2 0.5Z",stroke:"currentColor",strokeLinecap:"round"}),s("path",{d:"M1 85H162",stroke:"currentColor"}),s("defs",{children:s("filter",{colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",height:"18.8096",id:"filter0_d",width:"151",x:"6",y:"93",children:[s("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),s("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),s("feOffset",{dy:"4"}),s("feGaussianBlur",{stdDeviation:"2"}),s("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0.74902 0 0 0 0 0.698039 0 0 0 0.08 0"}),s("feBlend",{in2:"BackgroundImageFix",mode:"darken",result:"effect1_dropShadow"}),s("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow",mode:"normal",result:"shape"})]})})]})}const Ps=H.div`
234
+ z-index: 1;
235
+ position: absolute;
236
+ top: ${e=>e.$placeholderRectangle.shiftY*100}%;
237
+ bottom: ${e=>(1-e.$placeholderRectangle.shiftY-e.$placeholderRectangle.height)*100}%;
238
+ left: ${e=>e.$placeholderRectangle.shiftX*100}%;
239
+ right: ${e=>(1-e.$placeholderRectangle.shiftX-e.$placeholderRectangle.width)*100}%;
240
+ color: ${e=>e.$isInCandidateSelection?`${e.theme.colors.placeholderColorSuccess}`:`${e.theme.colors.placeholderColor}`};
241
+
242
+ svg {
243
+ width: 100%;
244
+ height: 100%;
245
+ }
246
+ `,Hs=({children:e,className:t,isInCandidateSelection:r,onAnimationEnd:n,placeholderRectangle:o})=>s(Ps,{$isInCandidateSelection:r,$placeholderRectangle:o,className:t,onAnimationEnd:n,children:e}),Zs={[Z.ID_CORNERS]:s(Es,{}),[Z.ID_DASH]:s(xs,{}),[Z.ID_DOT]:s($s,{}),[Z.ID_SOLID]:s(Ms,{}),[Z.ID_PHOTO_ROUNDED]:s(Is,{}),[Z.ID_CORNERS_ROUNDED]:s(ks,{}),[Z.ID_DASH_ROUNDED]:s(Os,{}),[Z.ID_DOT_ROUNDED]:s(Ns,{}),[Z.ID_SOLID_ROUNDED]:s(Ds,{}),[Z.ID_SOLID_ROUNDED_BACK]:s(Rs,{}),[Z.PASSPORT_SOLID_BACK]:s(Ts,{}),[Z.PASSPORT_SOLID_BACK_BLANK]:s(As,{})};function Bs({backdropHeight:e,backdropWidth:t,placeholderRectangle:r,...n}){const{placeholder:o}=Ce(),i=o.toLowerCase().includes("passport"),a=o.toLowerCase().includes("rounded");return s(P,{children:[s(Lo,{height:e,width:t,children:s(Vs,{height:`${r.height*100}%`,isPassport:i,isRounded:a,width:`${r.width*100}%`,x:`${r.shiftX*100}%`,y:`${r.shiftY*100}%`})}),s(Hs,{placeholderRectangle:r,...n,children:Zs[o]})]})}const Us=()=>{const[e,t]=U(),[r,n]=U(!1),o=he(f=>{var y,v;t((y=f==null?void 0:f.detail)==null?void 0:y.cameraResolution);const _=(v=f==null?void 0:f.detail)==null?void 0:v.isMirroring;_!==void 0&&n(_)},[t]);De(fe.CAMERA_PROPS_CHANGED,o);const[i,a]=U({code:A.DOCUMENT_NOT_PRESENT,isEscalated:!1}),c=he(f=>{var _,y;a({code:(_=f==null?void 0:f.detail)==null?void 0:_.instructionCode,isEscalated:((y=f==null?void 0:f.detail)==null?void 0:y.isEscalated)??!1})},[a]);De(fe.INSTRUCTION_CHANGED,c);const[u,d]=U(X.LOADING),[h,l]=U(),p=he(f=>{var y,v;d((y=f.detail)==null?void 0:y.appState);const _=(v=f==null?void 0:f.detail)==null?void 0:v.error;_&&l(_)},[d,l]);return De(fe.STATE_CHANGED,p),{cameraResolution:e,appState:u,error:h,instruction:i,isMirroring:r}};function Ws(){const{appState:e,cameraResolution:t,error:r,instruction:n,isMirroring:o}=Us(),i=n.code===A.CANDIDATE_SELECTION,{escalatedInstructions:a,instructions:c,showDetectionLayer:u}=Ce(),d=Ta({escalatedInstructions:a,instructions:c,currentInstruction:n});return e===X.ERROR?s(fo,{text:r==null?void 0:r.message}):e===X.RUNNING&&t?s(P,{children:[u&&s(vs,{cameraResolution:t,isImageMirror:o}),s(Bs,{backdropHeight:t.height,backdropWidth:t.width,isInCandidateSelection:i,placeholderRectangle:es(t)}),d&&s(ms,{cssTop:50,isInCandidateSelection:i,children:d}),s(ls,{customControlEvent:fe.CONTROL,isSwitchCameraDisabled:i})]}):s(bs,{cameraHeight:t==null?void 0:t.height,cameraWidth:t==null?void 0:t.width,isBackdrop:!0,state:e})}const zs=e=>{var d,h;const t={...ka,...e==null?void 0:e.instructions},r={...xa,...e==null?void 0:e.escalatedInstructions},n={[X.LOADING]:{...co.loading,...(d=e==null?void 0:e.appStateInstructions)==null?void 0:d.loading},[X.WAITING]:{...co.waiting,...(h=e==null?void 0:e.appStateInstructions)==null?void 0:h.waiting}},o=(e==null?void 0:e.placeholder)??Oa,i=(e==null?void 0:e.backdropColor)??$a,a=(e==null?void 0:e.showDetectionLayer)??!1,c=(e==null?void 0:e.showCameraButtons)??!1,u=Ya(e==null?void 0:e.theme);return{instructions:t,appStateInstructions:n,placeholder:o,backdropColor:i,showDetectionLayer:a,showCameraButtons:c,theme:u,escalatedInstructions:r}};Io(({props:e})=>{const t=ja(fe.VIDEO_ELEMENT_SIZE);return s(Wa,{uiProps:zs(e),videoElementSize:t,children:s(Ws,{})})},"x-dot-document-auto-capture-ui",["props"])});