@ahmed_hani/dot-auto-capture-ui 7.6.1 → 8.0.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.
- package/document.mjs +865 -874
- package/document.umd.js +27 -27
- package/face.mjs +1252 -1323
- package/face.umd.js +27 -27
- package/magnifeye-liveness.mjs +766 -789
- package/magnifeye-liveness.umd.js +45 -45
- package/multi-range-liveness.mjs +841 -856
- package/multi-range-liveness.umd.js +24 -24
- package/package.json +7 -4
- package/palm.mjs +873 -891
- package/palm.umd.js +27 -27
- package/smile-liveness.mjs +1143 -1187
- package/smile-liveness.umd.js +37 -37
- package/ui/src/types/common.d.ts +3 -19
- package/ui/src/types/configuration.d.ts +60 -0
- package/ui/src/types/document.d.ts +8 -7
- package/ui/src/types/eye-gaze.d.ts +9 -8
- package/ui/src/types/face.d.ts +8 -20
- package/ui/src/types/magnifeye.d.ts +7 -7
- package/ui/src/types/multi-range.d.ts +8 -8
- package/ui/src/types/palm.d.ts +8 -7
- package/ui/src/types/smile.d.ts +8 -15
- package/ui-common/src/types/common.d.ts +21 -35
- package/ui-common/src/types/document.d.ts +1 -9
- package/ui-common/src/types/events/common-deprecated.d.ts +20 -0
- package/ui-common/src/types/events/common.d.ts +0 -13
- package/ui-common/src/types/events/document.d.ts +3 -7
- package/ui-common/src/types/events/face.d.ts +9 -2
- package/ui-common/src/types/events/index.d.ts +1 -0
- package/ui-common/src/types/events/palm.d.ts +3 -2
- package/ui-common/src/types/events/smile.d.ts +10 -5
- package/ui-common/src/types/eye-gaze.d.ts +6 -6
- package/ui-common/src/types/face.d.ts +1 -20
- package/ui-common/src/types/magnifeye.d.ts +6 -6
- package/ui-common/src/types/modality/detection/document.d.ts +9 -0
- package/ui-common/src/types/modality/detection/face.d.ts +20 -0
- package/ui-common/src/types/modality/detection/palm.d.ts +20 -0
- package/ui-common/src/types/palm.d.ts +1 -20
- package/ui-common/src/types/smile.d.ts +23 -16
package/palm.umd.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
(function(M){typeof define=="function"&&define.amd?define(M):M()})(function(){"use strict";var Rs=Object.defineProperty;var Ps=(M,y,le)=>y in M?Rs(M,y,{enumerable:!0,configurable:!0,writable:!0,value:le}):M[y]=le;var Nt=(M,y,le)=>Ps(M,typeof y!="symbol"?y+"":y,le);var M,y,le,ue,En,$n,kn,Nn,xt,Tt,Ot,xn,Le={},Tn=[],Co=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Me=Array.isArray;function q(e,t){for(var n in t)e[n]=t[n];return e}function It(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function L(e,t,n){var r,o,i,a={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?M.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)a[i]==null&&(a[i]=e.defaultProps[i]);return De(e,a,r,o,null)}function De(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++le,__i:-1,__u:0};return o==null&&y.vnode!=null&&y.vnode(i),i}function wo(){return{current:null}}function G(e){return e.children}function V(e,t){this.props=e,this.context=t}function Se(e,t){if(t==null)return e.__?Se(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Se(e):null}function On(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return On(e)}}function At(e){(!e.__d&&(e.__d=!0)&&ue.push(e)&&!Je.__r++||En!=y.debounceRendering)&&((En=y.debounceRendering)||$n)(Je)}function Je(){for(var e,t,n,r,o,i,a,s=1;ue.length;)ue.length>s&&ue.sort(kn),e=ue.shift(),s=ue.length,e.__d&&(n=void 0,o=(r=(t=e).__v).__e,i=[],a=[],t.__P&&((n=q({},r)).__v=r.__v+1,y.vnode&&y.vnode(n),Rt(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[o]:null,i,o??Se(r),!!(32&r.__u),a),n.__v=r.__v,n.__.__k[n.__i]=n,Ln(i,n,a),n.__e!=o&&On(n)));Je.__r=0}function In(e,t,n,r,o,i,a,s,l,u,_){var c,h,f,p,v,C,m=r&&r.__k||Tn,g=t.length;for(l=bo(n,t,m,l,g),c=0;c<g;c++)(f=n.__k[c])!=null&&(h=f.__i==-1?Le:m[f.__i]||Le,f.__i=c,C=Rt(e,f,h,o,i,a,s,l,u,_),p=f.__e,f.ref&&h.ref!=f.ref&&(h.ref&&Pt(h.ref,null,f),_.push(f.ref,f.__c||p,f)),v==null&&p!=null&&(v=p),4&f.__u||h.__k===f.__k?l=An(f,l,e):typeof f.type=="function"&&C!==void 0?l=C:p&&(l=p.nextSibling),f.__u&=-7);return n.__e=v,l}function bo(e,t,n,r,o){var i,a,s,l,u,_=n.length,c=_,h=0;for(e.__k=new Array(o),i=0;i<o;i++)(a=t[i])!=null&&typeof a!="boolean"&&typeof a!="function"?(l=i+h,(a=e.__k[i]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?De(null,a,null,null,null):Me(a)?De(G,{children:a},null,null,null):a.constructor==null&&a.__b>0?De(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,s=null,(u=a.__i=So(a,n,l,c))!=-1&&(c--,(s=n[u])&&(s.__u|=2)),s==null||s.__v==null?(u==-1&&(o>_?h--:o<_&&h++),typeof a.type!="function"&&(a.__u|=4)):u!=l&&(u==l-1?h--:u==l+1?h++:(u>l?h--:h++,a.__u|=4))):e.__k[i]=null;if(c)for(i=0;i<_;i++)(s=n[i])!=null&&(2&s.__u)==0&&(s.__e==r&&(r=Se(s)),Dn(s,s));return r}function An(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=An(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=Se(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function J(e,t){return t=t||[],e==null||typeof e=="boolean"||(Me(e)?e.some(function(n){J(n,t)}):t.push(e)),t}function So(e,t,n,r){var o,i,a=e.key,s=e.type,l=t[n];if(l===null&&e.key==null||l&&a==l.key&&s==l.type&&(2&l.__u)==0)return n;if(r>(l!=null&&(2&l.__u)==0?1:0))for(o=n-1,i=n+1;o>=0||i<t.length;){if(o>=0){if((l=t[o])&&(2&l.__u)==0&&a==l.key&&s==l.type)return o;o--}if(i<t.length){if((l=t[i])&&(2&l.__u)==0&&a==l.key&&s==l.type)return i;i++}}return-1}function Rn(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Co.test(t)?n:n+"px"}function Qe(e,t,n,r,o){var i;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Rn(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||Rn(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(Nn,"$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]=n,n?r?n.u=r.u:(n.u=xt,e.addEventListener(t,i?Ot:Tt,i)):e.removeEventListener(t,i?Ot:Tt,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]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function Pn(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=xt++;else if(t.t<n.u)return;return n(y.event?y.event(t):t)}}}function Rt(e,t,n,r,o,i,a,s,l,u){var _,c,h,f,p,v,C,m,g,k,$,x,S,w,H,F,Ye,W=t.type;if(t.constructor!=null)return null;128&n.__u&&(l=!!(32&n.__u),i=[s=t.__e=n.__e]),(_=y.__b)&&_(t);e:if(typeof W=="function")try{if(m=t.props,g="prototype"in W&&W.prototype.render,k=(_=W.contextType)&&r[_.__c],$=_?k?k.props.value:_.__:r,n.__c?C=(c=t.__c=n.__c).__=c.__E:(g?t.__c=c=new W(m,$):(t.__c=c=new V(m,$),c.constructor=W,c.render=$o),k&&k.sub(c),c.props=m,c.state||(c.state={}),c.context=$,c.__n=r,h=c.__d=!0,c.__h=[],c._sb=[]),g&&c.__s==null&&(c.__s=c.state),g&&W.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=q({},c.__s)),q(c.__s,W.getDerivedStateFromProps(m,c.__s))),f=c.props,p=c.state,c.__v=t,h)g&&W.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),g&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(g&&W.getDerivedStateFromProps==null&&m!==f&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(m,$),!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(m,c.__s,$)===!1||t.__v==n.__v){for(t.__v!=n.__v&&(c.props=m,c.state=c.__s,c.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(we){we&&(we.__=t)}),x=0;x<c._sb.length;x++)c.__h.push(c._sb[x]);c._sb=[],c.__h.length&&a.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(m,c.__s,$),g&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(f,p,v)})}if(c.context=$,c.props=m,c.__P=e,c.__e=!1,S=y.__r,w=0,g){for(c.state=c.__s,c.__d=!1,S&&S(t),_=c.render(c.props,c.state,c.context),H=0;H<c._sb.length;H++)c.__h.push(c._sb[H]);c._sb=[]}else do c.__d=!1,S&&S(t),_=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++w<25);c.state=c.__s,c.getChildContext!=null&&(r=q(q({},r),c.getChildContext())),g&&!h&&c.getSnapshotBeforeUpdate!=null&&(v=c.getSnapshotBeforeUpdate(f,p)),F=_,_!=null&&_.type===G&&_.key==null&&(F=Mn(_.props.children)),s=In(e,Me(F)?F:[F],t,n,r,o,i,a,s,l,u),c.base=t.__e,t.__u&=-161,c.__h.length&&a.push(c),C&&(c.__E=c.__=null)}catch(we){if(t.__v=null,l||i!=null)if(we.then){for(t.__u|=l?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;i[i.indexOf(s)]=null,t.__e=s}else for(Ye=i.length;Ye--;)It(i[Ye]);else t.__e=n.__e,t.__k=n.__k;y.__e(we,t,n)}else i==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):s=t.__e=Eo(n.__e,t,n,r,o,i,a,l,u);return(_=y.diffed)&&_(t),128&t.__u?void 0:s}function Ln(e,t,n){for(var r=0;r<n.length;r++)Pt(n[r],n[++r],n[++r]);y.__c&&y.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){y.__e(i,o.__v)}})}function Mn(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:Me(e)?e.map(Mn):q({},e)}function Eo(e,t,n,r,o,i,a,s,l){var u,_,c,h,f,p,v,C=n.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(u=0;u<i.length;u++)if((f=i[u])&&"setAttribute"in f==!!g&&(g?f.localName==g:f.nodeType==3)){e=f,i[u]=null;break}}if(e==null){if(g==null)return document.createTextNode(m);e=document.createElementNS(o,g,m.is&&m),s&&(y.__m&&y.__m(t,i),s=!1),i=null}if(g==null)C===m||s&&e.data==m||(e.data=m);else{if(i=i&&M.call(e.childNodes),C=n.props||Le,!s&&i!=null)for(C={},u=0;u<e.attributes.length;u++)C[(f=e.attributes[u]).name]=f.value;for(u in C)if(f=C[u],u!="children"){if(u=="dangerouslySetInnerHTML")c=f;else if(!(u in m)){if(u=="value"&&"defaultValue"in m||u=="checked"&&"defaultChecked"in m)continue;Qe(e,u,null,f,o)}}for(u in m)f=m[u],u=="children"?h=f:u=="dangerouslySetInnerHTML"?_=f:u=="value"?p=f:u=="checked"?v=f:s&&typeof f!="function"||C[u]===f||Qe(e,u,f,C[u],o);if(_)s||c&&(_.__html==c.__html||_.__html==e.innerHTML)||(e.innerHTML=_.__html),t.__k=[];else if(c&&(e.innerHTML=""),In(t.type=="template"?e.content:e,Me(h)?h:[h],t,n,r,g=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,a,i?i[0]:n.__k&&Se(n,0),s,l),i!=null)for(u=i.length;u--;)It(i[u]);s||(u="value",g=="progress"&&p==null?e.removeAttribute("value"):p!=null&&(p!==e[u]||g=="progress"&&!p||g=="option"&&p!=C[u])&&Qe(e,u,p,C[u],o),u="checked",v!=null&&v!=e[u]&&Qe(e,u,v,C[u],o))}return e}function Pt(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(o){y.__e(o,n)}}function Dn(e,t,n){var r,o;if(y.unmount&&y.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||Pt(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){y.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Dn(r[o],t,n||typeof e.type!="function");n||It(e.__e),e.__c=e.__=e.__e=void 0}function $o(e,t,n){return this.constructor(e,n)}function ie(e,t,n){var r,o,i,a;t==document&&(t=document.documentElement),y.__&&y.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],a=[],Rt(t,e=(!r&&n||t).__k=L(G,null,[e]),o||Le,Le,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?M.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,a),Ln(i,e,a)}function Lt(e,t){ie(e,t,Lt)}function Mt(e,t,n){var r,o,i,a,s=q({},e.props);for(i in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?o=t[i]:s[i]=t[i]==null&&a!=null?a[i]:t[i];return arguments.length>2&&(s.children=arguments.length>3?M.call(arguments,2):n),De(e.type,s,r||e.key,o||e.ref,null)}function Hn(e){function t(n){var r,o;return this.getChildContext||(r=new Set,(o={})[t.__c]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(i){this.props.value!=i.value&&r.forEach(function(a){a.__e=!0,At(a)})},this.sub=function(i){r.add(i);var a=i.componentWillUnmount;i.componentWillUnmount=function(){r&&r.delete(i),a&&a.call(i)}}),n.children}return t.__c="__cC"+xn++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,r){return n.children(r)}).contextType=t,t}M=Tn.slice,y={__e:function(e,t,n,r){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,r||{}),a=o.__d),a)return o.__E=o}catch(s){e=s}throw e}},le=0,V.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=q({},this.state),typeof e=="function"&&(e=e(q({},n),this.props)),e&&q(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),At(this))},V.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),At(this))},V.prototype.render=G,ue=[],$n=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,kn=function(e,t){return e.__v.__b-t.__v.__b},Je.__r=0,Nn=/(PointerCapture)$|Capture$/i,xt=0,Tt=Pn(!1),Ot=Pn(!0),xn=0;function Dt(){return(Dt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var ko=["context","children"];function No(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,o){if(r==null)return{};var i,a,s={},l=Object.keys(r);for(a=0;a<l.length;a++)o.indexOf(i=l[a])>=0||(s[i]=r[i]);return s}(e,ko);return Mt(t,n)}function xo(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=L(No,Dt({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var o=[],i={},a=0,s=n.attributes,l=n.childNodes;for(a=s.length;a--;)s[a].name!=="slot"&&(i[s[a].name]=s[a].value,i[Un(s[a].name)]=s[a].value);for(a=l.length;a--;){var u=t(l[a],null),_=l[a].slot;_?i[_]=L(zn,{name:_},u):o[a]=u}var c=r?L(zn,null,o):o;return L(r||n.nodeName.toLowerCase(),i,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Lt:ie)(this._vdom,this._root)}function Un(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function To(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[Un(e)]=n,this._vdom=Mt(this._vdom,r),ie(this._vdom,this._root)}}function Oo(){ie(this._vdom=null,this._root)}function zn(e,t){var n=this;return L("slot",Dt({},e,{ref:function(r){r?(n.ref=r,n._listener||(n._listener=function(o){o.stopPropagation(),o.detail.context=t},r.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function Io(e,t,n,r){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=xo,o.prototype.attributeChangedCallback=To,o.prototype.disconnectedCallback=Oo,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.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 s=typeof a;a!=null&&s!=="string"&&s!=="boolean"&&s!=="number"||this.setAttribute(i,a)}})}),customElements.define(t,o)}var Ao=0;function d(e,t,n,r,o,i){t||(t={});var a,s,l=t;if("ref"in l)for(s in l={},t)s=="ref"?a=t[s]:l[s]=t[s];var u={type:e,props:l,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Ao,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)l[s]===void 0&&(l[s]=a[s]);return y.vnode&&y.vnode(u),u}const Bn={SWITCH_CAMERA:"switch-camera",TOGGLE_MIRROR:"toggle-mirror"};var Fn=(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))(Fn||{}),fe=(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))(fe||{});const Z={LOADING:"LOADING",ERROR:"ERROR",WAITING:"WAITING",RUNNING:"RUNNING",COMPLETE:"COMPLETE"},U={CANDIDATE_SELECTION:"candidate_selection",PALM_CENTERING:"palm_centering",PALM_NOT_PRESENT:"palm_not_present",PALM_TOO_FAR:"palm_too_far",PALM_TOO_CLOSE:"palm_too_close",SHARPNESS_TOO_LOW:"sharpness_too_low",BRIGHTNESS_TOO_LOW:"brightness_too_low",BRIGHTNESS_TOO_HIGH:"brightness_too_high",DEVICE_PITCHED:"device_pitched",TEMPLATE_EXTRACTION_QUALITY_TOO_LOW:"template_extraction_quality_too_low"};var ae,T,Ht,Wn,Ee=0,jn=[],I=y,Gn=I.__b,Vn=I.__r,Zn=I.diffed,Yn=I.__c,qn=I.unmount,Xn=I.__;function $e(e,t){I.__h&&I.__h(T,e,Ee||t),Ee=0;var n=T.__H||(T.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function z(e){return Ee=1,Ut(er,e)}function Ut(e,t,n){var r=$e(ae++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):er(void 0,t),function(s){var l=r.__N?r.__N[0]:r.__[0],u=r.t(l,s);l!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=T,!T.__f)){var o=function(s,l,u){if(!r.__c.__H)return!0;var _=r.__c.__H.__.filter(function(h){return!!h.__c});if(_.every(function(h){return!h.__N}))return!i||i.call(this,s,l,u);var c=r.__c.props!==s;return _.forEach(function(h){if(h.__N){var f=h.__[0];h.__=h.__N,h.__N=void 0,f!==h.__[0]&&(c=!0)}}),i&&i.call(this,s,l,u)||c};T.__f=!0;var i=T.shouldComponentUpdate,a=T.componentWillUpdate;T.componentWillUpdate=function(s,l,u){if(this.__e){var _=i;i=void 0,o(s,l,u),i=_}a&&a.call(this,s,l,u)},T.shouldComponentUpdate=o}return r.__N||r.__}function Q(e,t){var n=$e(ae++,3);!I.__s&&Bt(n.__H,t)&&(n.__=e,n.u=t,T.__H.__h.push(n))}function ke(e,t){var n=$e(ae++,4);!I.__s&&Bt(n.__H,t)&&(n.__=e,n.u=t,T.__h.push(n))}function He(e){return Ee=5,ee(function(){return{current:e}},[])}function Kn(e,t,n){Ee=6,ke(function(){if(typeof e=="function"){var r=e(t());return function(){e(null),r&&typeof r=="function"&&r()}}if(e)return e.current=t(),function(){return e.current=null}},n==null?n:n.concat(e))}function ee(e,t){var n=$e(ae++,7);return Bt(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function de(e,t){return Ee=8,ee(function(){return e},t)}function Ue(e){var t=T.context[e.__c],n=$e(ae++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(T)),t.props.value):e.__}function et(e,t){I.useDebugValue&&I.useDebugValue(t?t(e):e)}function Jn(){var e=$e(ae++,11);if(!e.__){for(var t=T.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Ro(){for(var e;e=jn.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(tt),e.__H.__h.forEach(zt),e.__H.__h=[]}catch(t){e.__H.__h=[],I.__e(t,e.__v)}}I.__b=function(e){T=null,Gn&&Gn(e)},I.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Xn&&Xn(e,t)},I.__r=function(e){Vn&&Vn(e),ae=0;var t=(T=e.__c).__H;t&&(Ht===T?(t.__h=[],T.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach(tt),t.__h.forEach(zt),t.__h=[],ae=0)),Ht=T},I.diffed=function(e){Zn&&Zn(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(jn.push(t)!==1&&Wn===I.requestAnimationFrame||((Wn=I.requestAnimationFrame)||Po)(Ro)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),Ht=T=null},I.__c=function(e,t){t.some(function(n){try{n.__h.forEach(tt),n.__h=n.__h.filter(function(r){return!r.__||zt(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],I.__e(r,n.__v)}}),Yn&&Yn(e,t)},I.unmount=function(e){qn&&qn(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{tt(r)}catch(o){t=o}}),n.__H=void 0,t&&I.__e(t,n.__v))};var Qn=typeof requestAnimationFrame=="function";function Po(e){var t,n=function(){clearTimeout(r),Qn&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Qn&&(t=requestAnimationFrame(n))}function tt(e){var t=T,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),T=t}function zt(e){var t=T;e.__c=e.__(),T=t}function Bt(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function er(e,t){return typeof t=="function"?t(e):t}var P=function(){return P=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},P.apply(this,arguments)};function _e(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function Lo(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Mo=/^((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)-.*))$/,Do=Lo(function(e){return Mo.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function tr(e,t){for(var n in t)e[n]=t[n];return e}function Ft(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function nr(e,t){var n=t(),r=z({t:{__:n,u:t}}),o=r[0].t,i=r[1];return ke(function(){o.__=n,o.u=t,Wt(o)&&i({t:o})},[e,n,t]),Q(function(){return Wt(o)&&i({t:o}),e(function(){Wt(o)&&i({t:o})})},[e]),n}function Wt(e){var t,n,r=e.u,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}function rr(e){e()}function or(e){return e}function ir(){return[!1,rr]}var ar=ke;function jt(e,t){this.props=e,this.context=t}function Ho(e,t){function n(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:Ft(this.props,o)}function r(o){return this.shouldComponentUpdate=n,L(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(jt.prototype=new V).isPureReactComponent=!0,jt.prototype.shouldComponentUpdate=function(e,t){return Ft(this.props,e)||Ft(this.state,t)};var sr=y.__b;y.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),sr&&sr(e)};var Uo=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function zo(e){function t(n){var r=tr({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Uo,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var cr=function(e,t){return e==null?null:J(J(e).map(t))},Bo={map:cr,forEach:cr,count:function(e){return e?J(e).length:0},only:function(e){var t=J(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:J},Fo=y.__e;y.__e=function(e,t,n,r){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}Fo(e,t,n,r)};var lr=y.unmount;function ur(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=tr({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return ur(r,t,n)})),e}function fr(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return fr(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function nt(){this.__u=0,this.o=null,this.__b=null}function dr(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Wo(e){var t,n,r;function o(i){if(t||(t=e()).then(function(a){n=a.default||a},function(a){r=a}),r)throw r;if(!n)throw t;return L(n,i)}return o.displayName="Lazy",o.__f=!0,o}function ze(){this.i=null,this.l=null}y.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),lr&&lr(e)},(nt.prototype=new V).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var o=dr(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(s):s())};n.__R=a;var s=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=fr(l,l.__c.__P,l.__c.__O)}var u;for(r.setState({__a:r.__b=null});u=r.o.pop();)u.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__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 n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=ur(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&L(G,null,e.fallback);return o&&(o.__u&=-33),[L(G,null,t.__a?null:e.children),o]};var _r=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function jo(e){return this.getChildContext=function(){return e.context},e.children}function Go(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){ie(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),!t.v){for(var r=t.__v;r!==null&&!r.__m&&r.__!==null;)r=r.__;t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],__k:{__m:r.__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)}}}ie(L(jo,{context:t.context},e.__v),t.v)}function Vo(e,t){var n=L(Go,{__v:e,h:t});return n.containerInfo=t,n}(ze.prototype=new V).__a=function(e){var t=this,n=dr(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),_r(t,e,r)):o()};n?n(i):i()}},ze.prototype.render=function(e){this.i=null,this.l=new Map;var t=J(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},ze.prototype.componentDidUpdate=ze.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){_r(e,n,t)})};var hr=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Zo=/^(?: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)/,qo=/[A-Z0-9]/g,Xo=typeof document<"u",Ko=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Jo(e,t,n){return t.__k==null&&(t.textContent=""),ie(e,t),typeof n=="function"&&n(),e?e.__c:null}function Qo(e,t,n){return Lt(e,t),typeof n=="function"&&n(),e?e.__c:null}V.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(V.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var pr=y.event;function ei(){}function ti(){return this.cancelBubble}function ni(){return this.defaultPrevented}y.event=function(e){return pr&&(e=pr(e)),e.persist=ei,e.isPropagationStopped=ti,e.isDefaultPrevented=ni,e.nativeEvent=e};var Gt,ri={enumerable:!1,configurable:!0,get:function(){return this.class}},mr=y.vnode;y.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={},i=r.indexOf("-")===-1;for(var a in n){var s=n[a];if(!(a==="value"&&"defaultValue"in n&&s==null||Xo&&a==="children"&&r==="noscript"||a==="class"||a==="className")){var l=a.toLowerCase();a==="defaultValue"&&"value"in n&&n.value==null?a="value":a==="download"&&s===!0?s="":l==="translate"&&s==="no"?s=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?a="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||Ko(n.type)?l==="onfocus"?a="onfocusin":l==="onblur"?a="onfocusout":Yo.test(a)&&(a=l):l=a="oninput":i&&Zo.test(a)?a=a.replace(qo,"-$&").toLowerCase():s===null&&(s=void 0),l==="oninput"&&o[a=l]&&(a="oninputCapture"),o[a]=s}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=J(n.children).forEach(function(u){u.props.selected=o.value.indexOf(u.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=J(n.children).forEach(function(u){u.props.selected=o.multiple?o.defaultValue.indexOf(u.props.value)!=-1:o.defaultValue==u.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",ri)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=hr,mr&&mr(e)};var gr=y.__r;y.__r=function(e){gr&&gr(e),Gt=e.__c};var yr=y.diffed;y.diffed=function(e){yr&&yr(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),Gt=null};var oi={ReactCurrentDispatcher:{current:{readContext:function(e){return Gt.__n[e.__c].props.value},useCallback:de,useContext:Ue,useDebugValue:et,useDeferredValue:or,useEffect:Q,useId:Jn,useImperativeHandle:Kn,useInsertionEffect:ar,useLayoutEffect:ke,useMemo:ee,useReducer:Ut,useRef:He,useState:z,useSyncExternalStore:nr,useTransition:ir}}};function ii(e){return L.bind(null,e)}function rt(e){return!!e&&e.$$typeof===hr}function ai(e){return rt(e)&&e.type===G}function si(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function ci(e){return rt(e)?Mt.apply(null,arguments):e}function li(e){return!!e.__k&&(ie(null,e),!0)}function ui(e){return e&&(e.base||e.nodeType===1&&e)||null}var fi=function(e,t){return e(t)},di=function(e,t){return e(t)},_i=G,hi=rt,te={useState:z,useId:Jn,useReducer:Ut,useEffect:Q,useLayoutEffect:ke,useInsertionEffect:ar,useTransition:ir,useDeferredValue:or,useSyncExternalStore:nr,startTransition:rr,useRef:He,useImperativeHandle:Kn,useMemo:ee,useCallback:de,useContext:Ue,useDebugValue:et,version:"18.3.1",Children:Bo,render:Jo,hydrate:Qo,unmountComponentAtNode:li,createPortal:Vo,createElement:L,createContext:Hn,createFactory:ii,cloneElement:ci,createRef:wo,Fragment:G,isValidElement:rt,isElement:hi,isFragment:ai,isMemo:si,findDOMNode:ui,Component:V,PureComponent:jt,memo:Ho,forwardRef:zo,flushSync:di,unstable_batchedUpdates:fi,StrictMode:_i,Suspense:nt,SuspenseList:ze,lazy:Wo,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:oi};function pi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vt,vr;function mi(){return vr||(vr=1,Vt=function(t,n,r,o){var i=r?r.call(o,t,n):void 0;if(i!==void 0)return!!i;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var a=Object.keys(t),s=Object.keys(n);if(a.length!==s.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(n),u=0;u<a.length;u++){var _=a[u];if(!l(_))return!1;var c=t[_],h=n[_];if(i=r?r.call(o,c,h,_):void 0,i===!1||i===void 0&&c!==h)return!1}return!0}),Vt}var gi=mi();const yi=pi(gi);var O="-ms-",Be="-moz-",N="-webkit-",Cr="comm",ot="rule",Zt="decl",vi="@import",wr="@keyframes",Ci="@layer",br=Math.abs,Yt=String.fromCharCode,qt=Object.assign;function wi(e,t){return R(e,0)^45?(((t<<2^R(e,0))<<2^R(e,1))<<2^R(e,2))<<2^R(e,3):0}function Sr(e){return e.trim()}function ne(e,t){return(e=t.exec(e))?e[0]:e}function b(e,t,n){return e.replace(t,n)}function it(e,t,n){return e.indexOf(t,n)}function R(e,t){return e.charCodeAt(t)|0}function Ne(e,t,n){return e.slice(t,n)}function X(e){return e.length}function Er(e){return e.length}function Fe(e,t){return t.push(e),e}function bi(e,t){return e.map(t).join("")}function $r(e,t){return e.filter(function(n){return!ne(n,t)})}var at=1,xe=1,kr=0,B=0,A=0,Te="";function st(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:at,column:xe,length:a,return:"",siblings:s}}function se(e,t){return qt(st("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Oe(e){for(;e.root;)e=se(e.root,{children:[e]});Fe(e,e.siblings)}function Si(){return A}function Ei(){return A=B>0?R(Te,--B):0,xe--,A===10&&(xe=1,at--),A}function Y(){return A=B<kr?R(Te,B++):0,xe++,A===10&&(xe=1,at++),A}function he(){return R(Te,B)}function ct(){return B}function lt(e,t){return Ne(Te,e,t)}function Xt(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 $i(e){return at=xe=1,kr=X(Te=e),B=0,[]}function ki(e){return Te="",e}function Kt(e){return Sr(lt(B-1,Jt(e===91?e+2:e===40?e+1:e)))}function Ni(e){for(;(A=he())&&A<33;)Y();return Xt(e)>2||Xt(A)>3?"":" "}function xi(e,t){for(;--t&&Y()&&!(A<48||A>102||A>57&&A<65||A>70&&A<97););return lt(e,ct()+(t<6&&he()==32&&Y()==32))}function Jt(e){for(;Y();)switch(A){case e:return B;case 34:case 39:e!==34&&e!==39&&Jt(A);break;case 40:e===41&&Jt(e);break;case 92:Y();break}return B}function Ti(e,t){for(;Y()&&e+A!==57;)if(e+A===84&&he()===47)break;return"/*"+lt(t,B-1)+"*"+Yt(e===47?e:Y())}function Oi(e){for(;!Xt(he());)Y();return lt(e,B)}function Ii(e){return ki(ut("",null,null,null,[""],e=$i(e),0,[0],e))}function ut(e,t,n,r,o,i,a,s,l){for(var u=0,_=0,c=a,h=0,f=0,p=0,v=1,C=1,m=1,g=0,k="",$=o,x=i,S=r,w=k;C;)switch(p=g,g=Y()){case 40:if(p!=108&&R(w,c-1)==58){it(w+=b(Kt(g),"&","&\f"),"&\f",br(u?s[u-1]:0))!=-1&&(m=-1);break}case 34:case 39:case 91:w+=Kt(g);break;case 9:case 10:case 13:case 32:w+=Ni(p);break;case 92:w+=xi(ct()-1,7);continue;case 47:switch(he()){case 42:case 47:Fe(Ai(Ti(Y(),ct()),t,n,l),l);break;default:w+="/"}break;case 123*v:s[u++]=X(w)*m;case 125*v:case 59:case 0:switch(g){case 0:case 125:C=0;case 59+_:m==-1&&(w=b(w,/\f/g,"")),f>0&&X(w)-c&&Fe(f>32?xr(w+";",r,n,c-1,l):xr(b(w," ","")+";",r,n,c-2,l),l);break;case 59:w+=";";default:if(Fe(S=Nr(w,t,n,u,_,o,s,k,$=[],x=[],c,i),i),g===123)if(_===0)ut(w,t,S,S,$,i,c,s,x);else switch(h===99&&R(w,3)===110?100:h){case 100:case 108:case 109:case 115:ut(e,S,S,r&&Fe(Nr(e,S,S,0,0,o,s,k,o,$=[],c,x),x),o,x,c,s,r?$:x);break;default:ut(w,S,S,S,[""],x,0,s,x)}}u=_=f=0,v=m=1,k=w="",c=a;break;case 58:c=1+X(w),f=p;default:if(v<1){if(g==123)--v;else if(g==125&&v++==0&&Ei()==125)continue}switch(w+=Yt(g),g*v){case 38:m=_>0?1:(w+="\f",-1);break;case 44:s[u++]=(X(w)-1)*m,m=1;break;case 64:he()===45&&(w+=Kt(Y())),h=he(),_=c=X(k=w+=Oi(ct())),g++;break;case 45:p===45&&X(w)==2&&(v=0)}}return i}function Nr(e,t,n,r,o,i,a,s,l,u,_,c){for(var h=o-1,f=o===0?i:[""],p=Er(f),v=0,C=0,m=0;v<r;++v)for(var g=0,k=Ne(e,h+1,h=br(C=a[v])),$=e;g<p;++g)($=Sr(C>0?f[g]+" "+k:b(k,/&\f/g,f[g])))&&(l[m++]=$);return st(e,t,n,o===0?ot:s,l,u,_,c)}function Ai(e,t,n,r){return st(e,t,n,Cr,Yt(Si()),Ne(e,2,-2),0,r)}function xr(e,t,n,r,o){return st(e,t,n,Zt,Ne(e,0,r),Ne(e,r+1,-1),r,o)}function Tr(e,t,n){switch(wi(e,t)){case 5103:return N+"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 N+e+e;case 4789:return Be+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return N+e+Be+e+O+e+e;case 5936:switch(R(e,t+11)){case 114:return N+e+O+b(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return N+e+O+b(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return N+e+O+b(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return N+e+O+e+e;case 6165:return N+e+O+"flex-"+e+e;case 5187:return N+e+b(e,/(\w+).+(:[^]+)/,N+"box-$1$2"+O+"flex-$1$2")+e;case 5443:return N+e+O+"flex-item-"+b(e,/flex-|-self/g,"")+(ne(e,/flex-|baseline/)?"":O+"grid-row-"+b(e,/flex-|-self/g,""))+e;case 4675:return N+e+O+"flex-line-pack"+b(e,/align-content|flex-|-self/g,"")+e;case 5548:return N+e+O+b(e,"shrink","negative")+e;case 5292:return N+e+O+b(e,"basis","preferred-size")+e;case 6060:return N+"box-"+b(e,"-grow","")+N+e+O+b(e,"grow","positive")+e;case 4554:return N+b(e,/([^-])(transform)/g,"$1"+N+"$2")+e;case 6187:return b(b(b(e,/(zoom-|grab)/,N+"$1"),/(image-set)/,N+"$1"),e,"")+e;case 5495:case 3959:return b(e,/(image-set\([^]*)/,N+"$1$`$1");case 4968:return b(b(e,/(.+:)(flex-)?(.*)/,N+"box-pack:$3"+O+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+N+e+e;case 4200:if(!ne(e,/flex-|baseline/))return O+"grid-column-align"+Ne(e,t)+e;break;case 2592:case 3360:return O+b(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,ne(r.props,/grid-\w+-end/)})?~it(e+(n=n[t].value),"span",0)?e:O+b(e,"-start","")+e+O+"grid-row-span:"+(~it(n,"span",0)?ne(n,/\d+/):+ne(n,/\d+/)-+ne(e,/\d+/))+";":O+b(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return ne(r.props,/grid-\w+-start/)})?e:O+b(b(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return b(e,/(.+)-inline(.+)/,N+"$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(X(e)-1-t>6)switch(R(e,t+1)){case 109:if(R(e,t+4)!==45)break;case 102:return b(e,/(.+:)(.+)-([^]+)/,"$1"+N+"$2-$3$1"+Be+(R(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~it(e,"stretch",0)?Tr(b(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return b(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,i,a,s,l,u){return O+o+":"+i+u+(a?O+o+"-span:"+(s?l:+l-+i)+u:"")+e});case 4949:if(R(e,t+6)===121)return b(e,":",":"+N)+e;break;case 6444:switch(R(e,R(e,14)===45?18:11)){case 120:return b(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+N+(R(e,14)===45?"inline-":"")+"box$3$1"+N+"$2$3$1"+O+"$2box$3")+e;case 100:return b(e,":",":"+O)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return b(e,"scroll-","scroll-snap-")+e}return e}function ft(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Ri(e,t,n,r){switch(e.type){case Ci:if(e.children.length)break;case vi:case Zt:return e.return=e.return||e.value;case Cr:return"";case wr:return e.return=e.value+"{"+ft(e.children,r)+"}";case ot:if(!X(e.value=e.props.join(",")))return""}return X(n=ft(e.children,r))?e.return=e.value+"{"+n+"}":""}function Pi(e){var t=Er(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}function Li(e){return function(t){t.root||(t=t.return)&&e(t)}}function Mi(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Zt:e.return=Tr(e.value,e.length,n);return;case wr:return ft([se(e,{value:b(e.value,"@","@"+N)})],r);case ot:if(e.length)return bi(n=e.props,function(o){switch(ne(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Oe(se(e,{props:[b(o,/:(read-\w+)/,":"+Be+"$1")]})),Oe(se(e,{props:[o]})),qt(e,{props:$r(n,r)});break;case"::placeholder":Oe(se(e,{props:[b(o,/:(plac\w+)/,":"+N+"input-$1")]})),Oe(se(e,{props:[b(o,/:(plac\w+)/,":"+Be+"$1")]})),Oe(se(e,{props:[b(o,/:(plac\w+)/,O+"input-$1")]})),Oe(se(e,{props:[o]})),qt(e,{props:$r(n,r)});break}return""})}}var Di={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},E={},pe=typeof process<"u"&&E!==void 0&&(E.REACT_APP_SC_ATTR||E.SC_ATTR)||"data-styled",Or="active",Ir="data-styled-version",dt="6.1.18",Qt=`/*!sc*/
|
|
2
|
-
`,
|
|
1
|
+
(function(oe){typeof define=="function"&&define.amd?define(oe):oe()})(function(){"use strict";var oe,w,vn,le,Cn,wn,bn,Sn,$t,kt,Nt,En,Re={},$n=[],mo=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Le=Array.isArray;function Y(e,t){for(var n in t)e[n]=t[n];return e}function xt(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function L(e,t,n){var r,o,i,a={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?oe.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)a[i]==null&&(a[i]=e.defaultProps[i]);return Me(e,a,r,o,null)}function Me(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++vn,__i:-1,__u:0};return o==null&&w.vnode!=null&&w.vnode(i),i}function yo(){return{current:null}}function W(e){return e.children}function G(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 n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?be(e):null}function kn(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return kn(e)}}function Tt(e){(!e.__d&&(e.__d=!0)&&le.push(e)&&!Ke.__r++||Cn!=w.debounceRendering)&&((Cn=w.debounceRendering)||wn)(Ke)}function Ke(){for(var e,t,n,r,o,i,a,s=1;le.length;)le.length>s&&le.sort(bn),e=le.shift(),s=le.length,e.__d&&(n=void 0,o=(r=(t=e).__v).__e,i=[],a=[],t.__P&&((n=Y({},r)).__v=r.__v+1,w.vnode&&w.vnode(n),Ot(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[o]:null,i,o??be(r),!!(32&r.__u),a),n.__v=r.__v,n.__.__k[n.__i]=n,In(i,n,a),n.__e!=o&&kn(n)));Ke.__r=0}function Nn(e,t,n,r,o,i,a,s,l,u,d){var c,_,f,h,g,v,m=r&&r.__k||$n,y=t.length;for(l=go(n,t,m,l,y),c=0;c<y;c++)(f=n.__k[c])!=null&&(_=f.__i==-1?Re:m[f.__i]||Re,f.__i=c,v=Ot(e,f,_,o,i,a,s,l,u,d),h=f.__e,f.ref&&_.ref!=f.ref&&(_.ref&&It(_.ref,null,f),d.push(f.ref,f.__c||h,f)),g==null&&h!=null&&(g=h),4&f.__u||_.__k===f.__k?l=xn(f,l,e):typeof f.type=="function"&&v!==void 0?l=v:h&&(l=h.nextSibling),f.__u&=-7);return n.__e=g,l}function go(e,t,n,r,o){var i,a,s,l,u,d=n.length,c=d,_=0;for(e.__k=new Array(o),i=0;i<o;i++)(a=t[i])!=null&&typeof a!="boolean"&&typeof a!="function"?(l=i+_,(a=e.__k[i]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?Me(null,a,null,null,null):Le(a)?Me(W,{children:a},null,null,null):a.constructor==null&&a.__b>0?Me(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,s=null,(u=a.__i=vo(a,n,l,c))!=-1&&(c--,(s=n[u])&&(s.__u|=2)),s==null||s.__v==null?(u==-1&&(o>d?_--:o<d&&_++),typeof a.type!="function"&&(a.__u|=4)):u!=l&&(u==l-1?_--:u==l+1?_++:(u>l?_--:_++,a.__u|=4))):e.__k[i]=null;if(c)for(i=0;i<d;i++)(s=n[i])!=null&&(2&s.__u)==0&&(s.__e==r&&(r=be(s)),Pn(s,s));return r}function xn(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=xn(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=be(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function K(e,t){return t=t||[],e==null||typeof e=="boolean"||(Le(e)?e.some(function(n){K(n,t)}):t.push(e)),t}function vo(e,t,n,r){var o,i,a=e.key,s=e.type,l=t[n];if(l===null&&e.key==null||l&&a==l.key&&s==l.type&&(2&l.__u)==0)return n;if(r>(l!=null&&(2&l.__u)==0?1:0))for(o=n-1,i=n+1;o>=0||i<t.length;){if(o>=0){if((l=t[o])&&(2&l.__u)==0&&a==l.key&&s==l.type)return o;o--}if(i<t.length){if((l=t[i])&&(2&l.__u)==0&&a==l.key&&s==l.type)return i;i++}}return-1}function Tn(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||mo.test(t)?n:n+"px"}function Qe(e,t,n,r,o){var i;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Tn(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||Tn(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(Sn,"$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]=n,n?r?n.u=r.u:(n.u=$t,e.addEventListener(t,i?Nt:kt,i)):e.removeEventListener(t,i?Nt:kt,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]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function On(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=$t++;else if(t.t<n.u)return;return n(w.event?w.event(t):t)}}}function Ot(e,t,n,r,o,i,a,s,l,u){var d,c,_,f,h,g,v,m,y,k,$,x,S,C,D,F,Ze,U=t.type;if(t.constructor!=null)return null;128&n.__u&&(l=!!(32&n.__u),i=[s=t.__e=n.__e]),(d=w.__b)&&d(t);e:if(typeof U=="function")try{if(m=t.props,y="prototype"in U&&U.prototype.render,k=(d=U.contextType)&&r[d.__c],$=d?k?k.props.value:d.__:r,n.__c?v=(c=t.__c=n.__c).__=c.__E:(y?t.__c=c=new U(m,$):(t.__c=c=new G(m,$),c.constructor=U,c.render=wo),k&&k.sub(c),c.props=m,c.state||(c.state={}),c.context=$,c.__n=r,_=c.__d=!0,c.__h=[],c._sb=[]),y&&c.__s==null&&(c.__s=c.state),y&&U.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=Y({},c.__s)),Y(c.__s,U.getDerivedStateFromProps(m,c.__s))),f=c.props,h=c.state,c.__v=t,_)y&&U.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),y&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(y&&U.getDerivedStateFromProps==null&&m!==f&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(m,$),!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(m,c.__s,$)===!1||t.__v==n.__v){for(t.__v!=n.__v&&(c.props=m,c.state=c.__s,c.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(Ce){Ce&&(Ce.__=t)}),x=0;x<c._sb.length;x++)c.__h.push(c._sb[x]);c._sb=[],c.__h.length&&a.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(m,c.__s,$),y&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(f,h,g)})}if(c.context=$,c.props=m,c.__P=e,c.__e=!1,S=w.__r,C=0,y){for(c.state=c.__s,c.__d=!1,S&&S(t),d=c.render(c.props,c.state,c.context),D=0;D<c._sb.length;D++)c.__h.push(c._sb[D]);c._sb=[]}else do c.__d=!1,S&&S(t),d=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++C<25);c.state=c.__s,c.getChildContext!=null&&(r=Y(Y({},r),c.getChildContext())),y&&!_&&c.getSnapshotBeforeUpdate!=null&&(g=c.getSnapshotBeforeUpdate(f,h)),F=d,d!=null&&d.type===W&&d.key==null&&(F=An(d.props.children)),s=Nn(e,Le(F)?F:[F],t,n,r,o,i,a,s,l,u),c.base=t.__e,t.__u&=-161,c.__h.length&&a.push(c),v&&(c.__E=c.__=null)}catch(Ce){if(t.__v=null,l||i!=null)if(Ce.then){for(t.__u|=l?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;i[i.indexOf(s)]=null,t.__e=s}else for(Ze=i.length;Ze--;)xt(i[Ze]);else t.__e=n.__e,t.__k=n.__k;w.__e(Ce,t,n)}else i==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):s=t.__e=Co(n.__e,t,n,r,o,i,a,l,u);return(d=w.diffed)&&d(t),128&t.__u?void 0:s}function In(e,t,n){for(var r=0;r<n.length;r++)It(n[r],n[++r],n[++r]);w.__c&&w.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){w.__e(i,o.__v)}})}function An(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:Le(e)?e.map(An):Y({},e)}function Co(e,t,n,r,o,i,a,s,l){var u,d,c,_,f,h,g,v=n.props,m=t.props,y=t.type;if(y=="svg"?o="http://www.w3.org/2000/svg":y=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(u=0;u<i.length;u++)if((f=i[u])&&"setAttribute"in f==!!y&&(y?f.localName==y:f.nodeType==3)){e=f,i[u]=null;break}}if(e==null){if(y==null)return document.createTextNode(m);e=document.createElementNS(o,y,m.is&&m),s&&(w.__m&&w.__m(t,i),s=!1),i=null}if(y==null)v===m||s&&e.data==m||(e.data=m);else{if(i=i&&oe.call(e.childNodes),v=n.props||Re,!s&&i!=null)for(v={},u=0;u<e.attributes.length;u++)v[(f=e.attributes[u]).name]=f.value;for(u in v)if(f=v[u],u!="children"){if(u=="dangerouslySetInnerHTML")c=f;else if(!(u in m)){if(u=="value"&&"defaultValue"in m||u=="checked"&&"defaultChecked"in m)continue;Qe(e,u,null,f,o)}}for(u in m)f=m[u],u=="children"?_=f:u=="dangerouslySetInnerHTML"?d=f:u=="value"?h=f:u=="checked"?g=f:s&&typeof f!="function"||v[u]===f||Qe(e,u,f,v[u],o);if(d)s||c&&(d.__html==c.__html||d.__html==e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(c&&(e.innerHTML=""),Nn(t.type=="template"?e.content:e,Le(_)?_:[_],t,n,r,y=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,a,i?i[0]:n.__k&&be(n,0),s,l),i!=null)for(u=i.length;u--;)xt(i[u]);s||(u="value",y=="progress"&&h==null?e.removeAttribute("value"):h!=null&&(h!==e[u]||y=="progress"&&!h||y=="option"&&h!=v[u])&&Qe(e,u,h,v[u],o),u="checked",g!=null&&g!=e[u]&&Qe(e,u,g,v[u],o))}return e}function It(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(o){w.__e(o,n)}}function Pn(e,t,n){var r,o;if(w.unmount&&w.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||It(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){w.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Pn(r[o],t,n||typeof e.type!="function");n||xt(e.__e),e.__c=e.__=e.__e=void 0}function wo(e,t,n){return this.constructor(e,n)}function ie(e,t,n){var r,o,i,a;t==document&&(t=document.documentElement),w.__&&w.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],a=[],Ot(t,e=(!r&&n||t).__k=L(W,null,[e]),o||Re,Re,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?oe.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,a),In(i,e,a)}function At(e,t){ie(e,t,At)}function Pt(e,t,n){var r,o,i,a,s=Y({},e.props);for(i in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?o=t[i]:s[i]=t[i]==null&&a!=null?a[i]:t[i];return arguments.length>2&&(s.children=arguments.length>3?oe.call(arguments,2):n),Me(e.type,s,r||e.key,o||e.ref,null)}function Rn(e){function t(n){var r,o;return this.getChildContext||(r=new Set,(o={})[t.__c]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(i){this.props.value!=i.value&&r.forEach(function(a){a.__e=!0,Tt(a)})},this.sub=function(i){r.add(i);var a=i.componentWillUnmount;i.componentWillUnmount=function(){r&&r.delete(i),a&&a.call(i)}}),n.children}return t.__c="__cC"+En++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,r){return n.children(r)}).contextType=t,t}oe=$n.slice,w={__e:function(e,t,n,r){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,r||{}),a=o.__d),a)return o.__E=o}catch(s){e=s}throw e}},vn=0,G.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Y({},this.state),typeof e=="function"&&(e=e(Y({},n),this.props)),e&&Y(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Tt(this))},G.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Tt(this))},G.prototype.render=W,le=[],wn=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,bn=function(e,t){return e.__v.__b-t.__v.__b},Ke.__r=0,Sn=/(PointerCapture)$|Capture$/i,$t=0,kt=On(!1),Nt=On(!0),En=0;function Rt(){return(Rt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var bo=["context","children"];function So(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,o){if(r==null)return{};var i,a,s={},l=Object.keys(r);for(a=0;a<l.length;a++)o.indexOf(i=l[a])>=0||(s[i]=r[i]);return s}(e,bo);return Pt(t,n)}function Eo(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=L(So,Rt({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var o=[],i={},a=0,s=n.attributes,l=n.childNodes;for(a=s.length;a--;)s[a].name!=="slot"&&(i[s[a].name]=s[a].value,i[Ln(s[a].name)]=s[a].value);for(a=l.length;a--;){var u=t(l[a],null),d=l[a].slot;d?i[d]=L(Mn,{name:d},u):o[a]=u}var c=r?L(Mn,null,o):o;return L(r||n.nodeName.toLowerCase(),i,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?At:ie)(this._vdom,this._root)}function Ln(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function $o(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[Ln(e)]=n,this._vdom=Pt(this._vdom,r),ie(this._vdom,this._root)}}function ko(){ie(this._vdom=null,this._root)}function Mn(e,t){var n=this;return L("slot",Rt({},e,{ref:function(r){r?(n.ref=r,n._listener||(n._listener=function(o){o.stopPropagation(),o.detail.context=t},r.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function No(e,t,n,r){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=Eo,o.prototype.attributeChangedCallback=$o,o.prototype.disconnectedCallback=ko,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.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 s=typeof a;a!=null&&s!=="string"&&s!=="boolean"&&s!=="number"||this.setAttribute(i,a)}})}),customElements.define(t,o)}var xo=0;function p(e,t,n,r,o,i){t||(t={});var a,s,l=t;if("ref"in l)for(s in l={},t)s=="ref"?a=t[s]:l[s]=t[s];var u={type:e,props:l,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--xo,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)l[s]===void 0&&(l[s]=a[s]);return w.vnode&&w.vnode(u),u}const Dn={SWITCH_CAMERA:"switch-camera",TOGGLE_MIRROR:"toggle-mirror"};var Hn=(e=>(e.CAMERA_PROPS_CHANGED="document-auto-capture:camera-props-changed",e.CONTROL="document-auto-capture:control",e.DETECTION_CHANGED="document-auto-capture:detection-changed",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))(Hn||{}),ue=(e=>(e.CAMERA_PROPS_CHANGED="palm-capture:camera-props-changed",e.CONTROL="palm-capture:control",e.DETECTION_CHANGED="palm-capture:detection-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))(ue||{});const V={LOADING:"loading",ERROR:"error",WAITING:"waiting",RUNNING:"running",COMPLETE:"complete"},H={CANDIDATE_SELECTION:"candidate_selection",PALM_CENTERING:"palm_centering",PALM_NOT_PRESENT:"palm_not_present",PALM_TOO_FAR:"palm_too_far",PALM_TOO_CLOSE:"palm_too_close",SHARPNESS_TOO_LOW:"sharpness_too_low",BRIGHTNESS_TOO_LOW:"brightness_too_low",BRIGHTNESS_TOO_HIGH:"brightness_too_high",DEVICE_PITCHED:"device_pitched",TEMPLATE_EXTRACTION_QUALITY_TOO_LOW:"template_extraction_quality_too_low"};var ae,T,Lt,Bn,Se=0,zn=[],I=w,Fn=I.__b,Un=I.__r,jn=I.diffed,Wn=I.__c,Gn=I.unmount,Vn=I.__;function Ee(e,t){I.__h&&I.__h(T,e,Se||t),Se=0;var n=T.__H||(T.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function B(e){return Se=1,Mt(Xn,e)}function Mt(e,t,n){var r=Ee(ae++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Xn(void 0,t),function(s){var l=r.__N?r.__N[0]:r.__[0],u=r.t(l,s);l!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=T,!T.__f)){var o=function(s,l,u){if(!r.__c.__H)return!0;var d=r.__c.__H.__.filter(function(_){return!!_.__c});if(d.every(function(_){return!_.__N}))return!i||i.call(this,s,l,u);var c=r.__c.props!==s;return d.forEach(function(_){if(_.__N){var f=_.__[0];_.__=_.__N,_.__N=void 0,f!==_.__[0]&&(c=!0)}}),i&&i.call(this,s,l,u)||c};T.__f=!0;var i=T.shouldComponentUpdate,a=T.componentWillUpdate;T.componentWillUpdate=function(s,l,u){if(this.__e){var d=i;i=void 0,o(s,l,u),i=d}a&&a.call(this,s,l,u)},T.shouldComponentUpdate=o}return r.__N||r.__}function Q(e,t){var n=Ee(ae++,3);!I.__s&&Ht(n.__H,t)&&(n.__=e,n.u=t,T.__H.__h.push(n))}function $e(e,t){var n=Ee(ae++,4);!I.__s&&Ht(n.__H,t)&&(n.__=e,n.u=t,T.__h.push(n))}function De(e){return Se=5,J(function(){return{current:e}},[])}function Zn(e,t,n){Se=6,$e(function(){if(typeof e=="function"){var r=e(t());return function(){e(null),r&&typeof r=="function"&&r()}}if(e)return e.current=t(),function(){return e.current=null}},n==null?n:n.concat(e))}function J(e,t){var n=Ee(ae++,7);return Ht(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function fe(e,t){return Se=8,J(function(){return e},t)}function He(e){var t=T.context[e.__c],n=Ee(ae++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(T)),t.props.value):e.__}function Je(e,t){I.useDebugValue&&I.useDebugValue(t?t(e):e)}function Yn(){var e=Ee(ae++,11);if(!e.__){for(var t=T.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function To(){for(var e;e=zn.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(et),e.__H.__h.forEach(Dt),e.__H.__h=[]}catch(t){e.__H.__h=[],I.__e(t,e.__v)}}I.__b=function(e){T=null,Fn&&Fn(e)},I.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Vn&&Vn(e,t)},I.__r=function(e){Un&&Un(e),ae=0;var t=(T=e.__c).__H;t&&(Lt===T?(t.__h=[],T.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach(et),t.__h.forEach(Dt),t.__h=[],ae=0)),Lt=T},I.diffed=function(e){jn&&jn(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(zn.push(t)!==1&&Bn===I.requestAnimationFrame||((Bn=I.requestAnimationFrame)||Oo)(To)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),Lt=T=null},I.__c=function(e,t){t.some(function(n){try{n.__h.forEach(et),n.__h=n.__h.filter(function(r){return!r.__||Dt(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],I.__e(r,n.__v)}}),Wn&&Wn(e,t)},I.unmount=function(e){Gn&&Gn(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{et(r)}catch(o){t=o}}),n.__H=void 0,t&&I.__e(t,n.__v))};var qn=typeof requestAnimationFrame=="function";function Oo(e){var t,n=function(){clearTimeout(r),qn&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);qn&&(t=requestAnimationFrame(n))}function et(e){var t=T,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),T=t}function Dt(e){var t=T;e.__c=e.__(),T=t}function Ht(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Xn(e,t){return typeof t=="function"?t(e):t}var R=function(){return R=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},R.apply(this,arguments)};function de(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function Io(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}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=Io(function(e){return Ao.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Kn(e,t){for(var n in t)e[n]=t[n];return e}function Bt(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function Qn(e,t){var n=t(),r=B({t:{__:n,u:t}}),o=r[0].t,i=r[1];return $e(function(){o.__=n,o.u=t,zt(o)&&i({t:o})},[e,n,t]),Q(function(){return zt(o)&&i({t:o}),e(function(){zt(o)&&i({t:o})})},[e]),n}function zt(e){var t,n,r=e.u,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}function Jn(e){e()}function er(e){return e}function tr(){return[!1,Jn]}var nr=$e;function Ft(e,t){this.props=e,this.context=t}function Ro(e,t){function n(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:Bt(this.props,o)}function r(o){return this.shouldComponentUpdate=n,L(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Ft.prototype=new G).isPureReactComponent=!0,Ft.prototype.shouldComponentUpdate=function(e,t){return Bt(this.props,e)||Bt(this.state,t)};var rr=w.__b;w.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),rr&&rr(e)};var Lo=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Mo(e){function t(n){var r=Kn({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Lo,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var or=function(e,t){return e==null?null:K(K(e).map(t))},Do={map:or,forEach:or,count:function(e){return e?K(e).length:0},only:function(e){var t=K(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:K},Ho=w.__e;w.__e=function(e,t,n,r){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}Ho(e,t,n,r)};var ir=w.unmount;function ar(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=Kn({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return ar(r,t,n)})),e}function sr(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return sr(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function tt(){this.__u=0,this.o=null,this.__b=null}function cr(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Bo(e){var t,n,r;function o(i){if(t||(t=e()).then(function(a){n=a.default||a},function(a){r=a}),r)throw r;if(!n)throw t;return L(n,i)}return o.displayName="Lazy",o.__f=!0,o}function Be(){this.i=null,this.l=null}w.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),ir&&ir(e)},(tt.prototype=new G).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var o=cr(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(s):s())};n.__R=a;var s=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=sr(l,l.__c.__P,l.__c.__O)}var u;for(r.setState({__a:r.__b=null});u=r.o.pop();)u.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},tt.prototype.componentWillUnmount=function(){this.o=[]},tt.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=ar(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&L(W,null,e.fallback);return o&&(o.__u&=-33),[L(W,null,t.__a?null:e.children),o]};var lr=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function zo(e){return this.getChildContext=function(){return e.context},e.children}function Fo(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){ie(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),!t.v){for(var r=t.__v;r!==null&&!r.__m&&r.__!==null;)r=r.__;t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],__k:{__m:r.__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)}}}ie(L(zo,{context:t.context},e.__v),t.v)}function Uo(e,t){var n=L(Fo,{__v:e,h:t});return n.containerInfo=t,n}(Be.prototype=new G).__a=function(e){var t=this,n=cr(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),lr(t,e,r)):o()};n?n(i):i()}},Be.prototype.render=function(e){this.i=null,this.l=new Map;var t=K(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},Be.prototype.componentDidUpdate=Be.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){lr(e,n,t)})};var ur=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,jo=/^(?: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]/,Wo=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Go=/[A-Z0-9]/g,Vo=typeof document<"u",Zo=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Yo(e,t,n){return t.__k==null&&(t.textContent=""),ie(e,t),typeof n=="function"&&n(),e?e.__c:null}function qo(e,t,n){return At(e,t),typeof n=="function"&&n(),e?e.__c:null}G.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(G.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var fr=w.event;function Xo(){}function Ko(){return this.cancelBubble}function Qo(){return this.defaultPrevented}w.event=function(e){return fr&&(e=fr(e)),e.persist=Xo,e.isPropagationStopped=Ko,e.isDefaultPrevented=Qo,e.nativeEvent=e};var Ut,Jo={enumerable:!1,configurable:!0,get:function(){return this.class}},dr=w.vnode;w.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={},i=r.indexOf("-")===-1;for(var a in n){var s=n[a];if(!(a==="value"&&"defaultValue"in n&&s==null||Vo&&a==="children"&&r==="noscript"||a==="class"||a==="className")){var l=a.toLowerCase();a==="defaultValue"&&"value"in n&&n.value==null?a="value":a==="download"&&s===!0?s="":l==="translate"&&s==="no"?s=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?a="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||Zo(n.type)?l==="onfocus"?a="onfocusin":l==="onblur"?a="onfocusout":Wo.test(a)&&(a=l):l=a="oninput":i&&jo.test(a)?a=a.replace(Go,"-$&").toLowerCase():s===null&&(s=void 0),l==="oninput"&&o[a=l]&&(a="oninputCapture"),o[a]=s}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=K(n.children).forEach(function(u){u.props.selected=o.value.indexOf(u.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=K(n.children).forEach(function(u){u.props.selected=o.multiple?o.defaultValue.indexOf(u.props.value)!=-1:o.defaultValue==u.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",Jo)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=ur,dr&&dr(e)};var pr=w.__r;w.__r=function(e){pr&&pr(e),Ut=e.__c};var _r=w.diffed;w.diffed=function(e){_r&&_r(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),Ut=null};var ei={ReactCurrentDispatcher:{current:{readContext:function(e){return Ut.__n[e.__c].props.value},useCallback:fe,useContext:He,useDebugValue:Je,useDeferredValue:er,useEffect:Q,useId:Yn,useImperativeHandle:Zn,useInsertionEffect:nr,useLayoutEffect:$e,useMemo:J,useReducer:Mt,useRef:De,useState:B,useSyncExternalStore:Qn,useTransition:tr}}};function ti(e){return L.bind(null,e)}function nt(e){return!!e&&e.$$typeof===ur}function ni(e){return nt(e)&&e.type===W}function ri(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function oi(e){return nt(e)?Pt.apply(null,arguments):e}function ii(e){return!!e.__k&&(ie(null,e),!0)}function ai(e){return e&&(e.base||e.nodeType===1&&e)||null}var si=function(e,t){return e(t)},ci=function(e,t){return e(t)},li=W,ui=nt,ee={useState:B,useId:Yn,useReducer:Mt,useEffect:Q,useLayoutEffect:$e,useInsertionEffect:nr,useTransition:tr,useDeferredValue:er,useSyncExternalStore:Qn,startTransition:Jn,useRef:De,useImperativeHandle:Zn,useMemo:J,useCallback:fe,useContext:He,useDebugValue:Je,version:"18.3.1",Children:Do,render:Yo,hydrate:qo,unmountComponentAtNode:ii,createPortal:Uo,createElement:L,createContext:Rn,createFactory:ti,cloneElement:oi,createRef:yo,Fragment:W,isValidElement:nt,isElement:ui,isFragment:ni,isMemo:ri,findDOMNode:ai,Component:G,PureComponent:Ft,memo:Ro,forwardRef:Mo,flushSync:ci,unstable_batchedUpdates:si,StrictMode:li,Suspense:tt,SuspenseList:Be,lazy:Bo,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ei};function fi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jt,hr;function di(){return hr||(hr=1,jt=function(t,n,r,o){var i=r?r.call(o,t,n):void 0;if(i!==void 0)return!!i;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var a=Object.keys(t),s=Object.keys(n);if(a.length!==s.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(n),u=0;u<a.length;u++){var d=a[u];if(!l(d))return!1;var c=t[d],_=n[d];if(i=r?r.call(o,c,_,d):void 0,i===!1||i===void 0&&c!==_)return!1}return!0}),jt}var pi=di();const _i=fi(pi);var O="-ms-",ze="-moz-",N="-webkit-",mr="comm",rt="rule",Wt="decl",hi="@import",yr="@keyframes",mi="@layer",gr=Math.abs,Gt=String.fromCharCode,Vt=Object.assign;function yi(e,t){return P(e,0)^45?(((t<<2^P(e,0))<<2^P(e,1))<<2^P(e,2))<<2^P(e,3):0}function vr(e){return e.trim()}function te(e,t){return(e=t.exec(e))?e[0]:e}function b(e,t,n){return e.replace(t,n)}function ot(e,t,n){return e.indexOf(t,n)}function P(e,t){return e.charCodeAt(t)|0}function ke(e,t,n){return e.slice(t,n)}function q(e){return e.length}function Cr(e){return e.length}function Fe(e,t){return t.push(e),e}function gi(e,t){return e.map(t).join("")}function wr(e,t){return e.filter(function(n){return!te(n,t)})}var it=1,Ne=1,br=0,z=0,A=0,xe="";function at(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:it,column:Ne,length:a,return:"",siblings:s}}function se(e,t){return Vt(at("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Te(e){for(;e.root;)e=se(e.root,{children:[e]});Fe(e,e.siblings)}function vi(){return A}function Ci(){return A=z>0?P(xe,--z):0,Ne--,A===10&&(Ne=1,it--),A}function Z(){return A=z<br?P(xe,z++):0,Ne++,A===10&&(Ne=1,it++),A}function pe(){return P(xe,z)}function st(){return z}function ct(e,t){return ke(xe,e,t)}function Zt(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 wi(e){return it=Ne=1,br=q(xe=e),z=0,[]}function bi(e){return xe="",e}function Yt(e){return vr(ct(z-1,qt(e===91?e+2:e===40?e+1:e)))}function Si(e){for(;(A=pe())&&A<33;)Z();return Zt(e)>2||Zt(A)>3?"":" "}function Ei(e,t){for(;--t&&Z()&&!(A<48||A>102||A>57&&A<65||A>70&&A<97););return ct(e,st()+(t<6&&pe()==32&&Z()==32))}function qt(e){for(;Z();)switch(A){case e:return z;case 34:case 39:e!==34&&e!==39&&qt(A);break;case 40:e===41&&qt(e);break;case 92:Z();break}return z}function $i(e,t){for(;Z()&&e+A!==57;)if(e+A===84&&pe()===47)break;return"/*"+ct(t,z-1)+"*"+Gt(e===47?e:Z())}function ki(e){for(;!Zt(pe());)Z();return ct(e,z)}function Ni(e){return bi(lt("",null,null,null,[""],e=wi(e),0,[0],e))}function lt(e,t,n,r,o,i,a,s,l){for(var u=0,d=0,c=a,_=0,f=0,h=0,g=1,v=1,m=1,y=0,k="",$=o,x=i,S=r,C=k;v;)switch(h=y,y=Z()){case 40:if(h!=108&&P(C,c-1)==58){ot(C+=b(Yt(y),"&","&\f"),"&\f",gr(u?s[u-1]:0))!=-1&&(m=-1);break}case 34:case 39:case 91:C+=Yt(y);break;case 9:case 10:case 13:case 32:C+=Si(h);break;case 92:C+=Ei(st()-1,7);continue;case 47:switch(pe()){case 42:case 47:Fe(xi($i(Z(),st()),t,n,l),l);break;default:C+="/"}break;case 123*g:s[u++]=q(C)*m;case 125*g:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+d:m==-1&&(C=b(C,/\f/g,"")),f>0&&q(C)-c&&Fe(f>32?Er(C+";",r,n,c-1,l):Er(b(C," ","")+";",r,n,c-2,l),l);break;case 59:C+=";";default:if(Fe(S=Sr(C,t,n,u,d,o,s,k,$=[],x=[],c,i),i),y===123)if(d===0)lt(C,t,S,S,$,i,c,s,x);else switch(_===99&&P(C,3)===110?100:_){case 100:case 108:case 109:case 115:lt(e,S,S,r&&Fe(Sr(e,S,S,0,0,o,s,k,o,$=[],c,x),x),o,x,c,s,r?$:x);break;default:lt(C,S,S,S,[""],x,0,s,x)}}u=d=f=0,g=m=1,k=C="",c=a;break;case 58:c=1+q(C),f=h;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&Ci()==125)continue}switch(C+=Gt(y),y*g){case 38:m=d>0?1:(C+="\f",-1);break;case 44:s[u++]=(q(C)-1)*m,m=1;break;case 64:pe()===45&&(C+=Yt(Z())),_=pe(),d=c=q(k=C+=ki(st())),y++;break;case 45:h===45&&q(C)==2&&(g=0)}}return i}function Sr(e,t,n,r,o,i,a,s,l,u,d,c){for(var _=o-1,f=o===0?i:[""],h=Cr(f),g=0,v=0,m=0;g<r;++g)for(var y=0,k=ke(e,_+1,_=gr(v=a[g])),$=e;y<h;++y)($=vr(v>0?f[y]+" "+k:b(k,/&\f/g,f[y])))&&(l[m++]=$);return at(e,t,n,o===0?rt:s,l,u,d,c)}function xi(e,t,n,r){return at(e,t,n,mr,Gt(vi()),ke(e,2,-2),0,r)}function Er(e,t,n,r,o){return at(e,t,n,Wt,ke(e,0,r),ke(e,r+1,-1),r,o)}function $r(e,t,n){switch(yi(e,t)){case 5103:return N+"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 N+e+e;case 4789:return ze+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return N+e+ze+e+O+e+e;case 5936:switch(P(e,t+11)){case 114:return N+e+O+b(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return N+e+O+b(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return N+e+O+b(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return N+e+O+e+e;case 6165:return N+e+O+"flex-"+e+e;case 5187:return N+e+b(e,/(\w+).+(:[^]+)/,N+"box-$1$2"+O+"flex-$1$2")+e;case 5443:return N+e+O+"flex-item-"+b(e,/flex-|-self/g,"")+(te(e,/flex-|baseline/)?"":O+"grid-row-"+b(e,/flex-|-self/g,""))+e;case 4675:return N+e+O+"flex-line-pack"+b(e,/align-content|flex-|-self/g,"")+e;case 5548:return N+e+O+b(e,"shrink","negative")+e;case 5292:return N+e+O+b(e,"basis","preferred-size")+e;case 6060:return N+"box-"+b(e,"-grow","")+N+e+O+b(e,"grow","positive")+e;case 4554:return N+b(e,/([^-])(transform)/g,"$1"+N+"$2")+e;case 6187:return b(b(b(e,/(zoom-|grab)/,N+"$1"),/(image-set)/,N+"$1"),e,"")+e;case 5495:case 3959:return b(e,/(image-set\([^]*)/,N+"$1$`$1");case 4968:return b(b(e,/(.+:)(flex-)?(.*)/,N+"box-pack:$3"+O+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+N+e+e;case 4200:if(!te(e,/flex-|baseline/))return O+"grid-column-align"+ke(e,t)+e;break;case 2592:case 3360:return O+b(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,te(r.props,/grid-\w+-end/)})?~ot(e+(n=n[t].value),"span",0)?e:O+b(e,"-start","")+e+O+"grid-row-span:"+(~ot(n,"span",0)?te(n,/\d+/):+te(n,/\d+/)-+te(e,/\d+/))+";":O+b(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return te(r.props,/grid-\w+-start/)})?e:O+b(b(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return b(e,/(.+)-inline(.+)/,N+"$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(q(e)-1-t>6)switch(P(e,t+1)){case 109:if(P(e,t+4)!==45)break;case 102:return b(e,/(.+:)(.+)-([^]+)/,"$1"+N+"$2-$3$1"+ze+(P(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ot(e,"stretch",0)?$r(b(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return b(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,i,a,s,l,u){return O+o+":"+i+u+(a?O+o+"-span:"+(s?l:+l-+i)+u:"")+e});case 4949:if(P(e,t+6)===121)return b(e,":",":"+N)+e;break;case 6444:switch(P(e,P(e,14)===45?18:11)){case 120:return b(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+N+(P(e,14)===45?"inline-":"")+"box$3$1"+N+"$2$3$1"+O+"$2box$3")+e;case 100:return b(e,":",":"+O)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return b(e,"scroll-","scroll-snap-")+e}return e}function ut(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Ti(e,t,n,r){switch(e.type){case mi:if(e.children.length)break;case hi:case Wt:return e.return=e.return||e.value;case mr:return"";case yr:return e.return=e.value+"{"+ut(e.children,r)+"}";case rt:if(!q(e.value=e.props.join(",")))return""}return q(n=ut(e.children,r))?e.return=e.value+"{"+n+"}":""}function Oi(e){var t=Cr(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}function Ii(e){return function(t){t.root||(t=t.return)&&e(t)}}function Ai(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Wt:e.return=$r(e.value,e.length,n);return;case yr:return ut([se(e,{value:b(e.value,"@","@"+N)})],r);case rt:if(e.length)return gi(n=e.props,function(o){switch(te(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Te(se(e,{props:[b(o,/:(read-\w+)/,":"+ze+"$1")]})),Te(se(e,{props:[o]})),Vt(e,{props:wr(n,r)});break;case"::placeholder":Te(se(e,{props:[b(o,/:(plac\w+)/,":"+N+"input-$1")]})),Te(se(e,{props:[b(o,/:(plac\w+)/,":"+ze+"$1")]})),Te(se(e,{props:[b(o,/:(plac\w+)/,O+"input-$1")]})),Te(se(e,{props:[o]})),Vt(e,{props:wr(n,r)});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},E={},_e=typeof process<"u"&&E!==void 0&&(E.REACT_APP_SC_ATTR||E.SC_ATTR)||"data-styled",kr="active",Nr="data-styled-version",ft="6.1.18",Xt=`/*!sc*/
|
|
2
|
+
`,dt=typeof window<"u"&&typeof document<"u",Ri=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&E!==void 0&&E.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&E.REACT_APP_SC_DISABLE_SPEEDY!==""?E.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&E.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&E!==void 0&&E.SC_DISABLE_SPEEDY!==void 0&&E.SC_DISABLE_SPEEDY!==""?E.SC_DISABLE_SPEEDY!=="false"&&E.SC_DISABLE_SPEEDY:E.NODE_ENV!=="production"),xr=/invalid hook call/i,pt=new Set,Li=function(e,t){if(E.NODE_ENV!=="production"){var n=t?' with the id of "'.concat(t,'"'):"",r="The component ".concat(e).concat(n,` has been created dynamically.
|
|
3
3
|
`)+`You may see this warning because you've called styled inside another component.
|
|
4
4
|
To resolve this only create new StyledComponents outside of any render method and function component.
|
|
5
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 s=[],l=1;l<arguments.length;l++)s[l-1]=arguments[l];
|
|
6
|
+
`,o=console.error;try{var i=!0;console.error=function(a){for(var s=[],l=1;l<arguments.length;l++)s[l-1]=arguments[l];xr.test(a)?(i=!1,pt.delete(r)):o.apply(void 0,de([a],s,!1))},De(),i&&!pt.has(r)&&(console.warn(r),pt.add(r))}catch(a){xr.test(a.message)&&pt.delete(r)}finally{console.error=o}}},_t=Object.freeze([]),Oe=Object.freeze({});function Mi(e,t,n){return n===void 0&&(n=Oe),e.theme!==n.theme&&e.theme||t||n.theme}var Kt=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"]),Di=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Hi=/(^-|-$)/g;function Tr(e){return e.replace(Di,"-").replace(Hi,"")}var Bi=/(a)(d)/gi,ht=52,Or=function(e){return String.fromCharCode(e+(e>25?39:97))};function Qt(e){var t,n="";for(t=Math.abs(e);t>ht;t=t/ht|0)n=Or(t%ht)+n;return(Or(t%ht)+n).replace(Bi,"$1-$2")}var Jt,Ir=5381,he=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Ar=function(e){return he(Ir,e)};function Pr(e){return Qt(Ar(e)>>>0)}function Rr(e){return E.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function en(e){return typeof e=="string"&&(E.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var Lr=typeof Symbol=="function"&&Symbol.for,Mr=Lr?Symbol.for("react.memo"):60115,zi=Lr?Symbol.for("react.forward_ref"):60112,Fi={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ui={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Dr={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ji=((Jt={})[zi]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Jt[Mr]=Dr,Jt);function Hr(e){return("type"in(t=e)&&t.type.$$typeof)===Mr?Dr:"$$typeof"in e?ji[e.$$typeof]:Fi;var t}var Wi=Object.defineProperty,Gi=Object.getOwnPropertyNames,Br=Object.getOwnPropertySymbols,Vi=Object.getOwnPropertyDescriptor,Zi=Object.getPrototypeOf,zr=Object.prototype;function Fr(e,t,n){if(typeof t!="string"){if(zr){var r=Zi(t);r&&r!==zr&&Fr(e,r,n)}var o=Gi(t);Br&&(o=o.concat(Br(t)));for(var i=Hr(e),a=Hr(t),s=0;s<o.length;++s){var l=o[s];if(!(l in Ui||n&&n[l]||a&&l in a||i&&l in i)){var u=Vi(t,l);try{Wi(e,l,u)}catch{}}}}return e}function me(e){return typeof e=="function"}function tn(e){return typeof e=="object"&&"styledComponentId"in e}function ye(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function nn(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function Ie(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function rn(e,t,n){if(n===void 0&&(n=!1),!n&&!Ie(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=rn(e[r],t[r]);else if(Ie(t))for(var r in t)e[r]=rn(e[r],t[r]);return e}function on(e,t){Object.defineProperty(e,"toString",{value:t})}var Yi=E.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
|
|
7
7
|
|
|
8
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
9
|
|
|
@@ -44,7 +44,7 @@ as for instance in your render method then you may be running into this limitati
|
|
|
44
44
|
|
|
45
45
|
`,17:`CSSStyleSheet could not be found on HTMLStyleElement.
|
|
46
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 Qi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,i=e.length;o<i;o+=1)r.push(e[o]);return r.forEach(function(a){n=n.replace(/%[a-z]/,a)}),n}function K(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return E.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(Qi.apply(void 0,_e([Ji[e]],t,!1)).trim())}var ea=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,o=r.length,i=o;t>=i;)if((i<<=1)<0)throw K(16,"".concat(t));this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var a=o;a<i;a++)this.groupSizes[a]=0}for(var s=this.indexOfGroup(t+1),l=(a=0,n.length);a<l;a++)this.tag.insertRule(s,n[a])&&(this.groupSizes[t]++,s++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),o=r+n;this.groupSizes[t]=0;for(var i=r;i<o;i++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],o=this.indexOfGroup(t),i=o+r,a=o;a<i;a++)n+="".concat(this.tag.getRule(a)).concat(Qt);return n},e}(),ta=1<<30,gt=new Map,yt=new Map,vt=1,Ct=function(e){if(gt.has(e))return gt.get(e);for(;yt.has(vt);)vt++;var t=vt++;if(E.NODE_ENV!=="production"&&((0|t)<0||t>ta))throw K(16,"".concat(t));return gt.set(e,t),yt.set(t,e),t},na=function(e,t){vt=t+1,gt.set(e,t),yt.set(t,e)},ra="style[".concat(pe,"][").concat(Ir,'="').concat(dt,'"]'),oa=new RegExp("^".concat(pe,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),ia=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},aa=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(Qt),o=[],i=0,a=r.length;i<a;i++){var s=r[i].trim();if(s){var l=s.match(oa);if(l){var u=0|parseInt(l[1],10),_=l[2];u!==0&&(na(_,u),ia(e,_,l[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(s)}}},Vr=function(e){for(var t=document.querySelectorAll(ra),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(pe)!==Or&&(aa(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function sa(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Zr=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(s){var l=Array.from(s.querySelectorAll("style[".concat(pe,"]")));return l[l.length-1]}(n),i=o!==void 0?o.nextSibling:null;r.setAttribute(pe,Or),r.setAttribute(Ir,dt);var a=sa();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},ca=function(){function e(t){this.element=Zr(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,o=0,i=r.length;o<i;o++){var a=r[o];if(a.ownerNode===n)return a}throw K(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e}(),la=function(){function e(t){this.element=Zr(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,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}(),ua=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),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}(),Yr=_t,fa={isServer:!_t,useCSSOMInjection:!Hi},qr=function(){function e(t,n,r){t===void 0&&(t=Ie),n===void 0&&(n={});var o=this;this.options=P(P({},fa),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&_t&&Yr&&(Yr=!1,Vr(this)),cn(this,function(){return function(i){for(var a=i.getTag(),s=a.length,l="",u=function(c){var h=function(m){return yt.get(m)}(c);if(h===void 0)return"continue";var f=i.names.get(h),p=a.getGroup(c);if(f===void 0||!f.size||p.length===0)return"continue";var v="".concat(pe,".g").concat(c,'[id="').concat(h,'"]'),C="";f!==void 0&&f.forEach(function(m){m.length>0&&(C+="".concat(m,","))}),l+="".concat(p).concat(v,'{content:"').concat(C,'"}').concat(Qt)},_=0;_<s;_++)u(_);return l}(o)})}return e.registerId=function(t){return Ct(t)},e.prototype.rehydrate=function(){!this.server&&_t&&Vr(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(P(P({},this.options),t),this.gs,n&&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(n){var r=n.useCSSOMInjection,o=n.target;return n.isServer?new ua(o):r?new ca(o):new la(o)}(this.options),new ea(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(Ct(t),this.names.has(t))this.names.get(t).add(n);else{var r=new Set;r.add(n),this.names.set(t,r)}},e.prototype.insertRules=function(t,n,r){this.registerName(t,n),this.getTag().insertRules(Ct(t),r)},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}(),da=/&/g,_a=/^\s*\/\/.*$/gm;function Xr(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=Xr(n.children,t)),n})}function Kr(e){var t,n,r,o=e===void 0?Ie:e,i=o.options,a=i===void 0?Ie:i,s=o.plugins,l=s===void 0?pt:s,u=function(h,f,p){return p.startsWith(n)&&p.endsWith(n)&&p.replaceAll(n,"").length>0?".".concat(t):h},_=l.slice();_.push(function(h){h.type===ot&&h.value.includes("&")&&(h.props[0]=h.props[0].replace(da,n).replace(r,u))}),a.prefix&&_.push(Mi),_.push(Ri);var c=function(h,f,p,v){f===void 0&&(f=""),p===void 0&&(p=""),v===void 0&&(v="&"),t=v,n=f,r=new RegExp("\\".concat(n,"\\b"),"g");var C=h.replace(_a,""),m=Ii(p||f?"".concat(p," ").concat(f," { ").concat(C," }"):C);a.namespace&&(m=Xr(m,a.namespace));var g=[];return ft(m,Pi(_.concat(Li(function(k){return g.push(k)})))),g};return c.hash=l.length?l.reduce(function(h,f){return f.name||K(15),me(h,f.name)},Lr).toString():"",c}var ha=new qr,ln=Kr(),un=te.createContext({shouldForwardProp:void 0,styleSheet:ha,stylis:ln});un.Consumer;var pa=te.createContext(void 0);function fn(){return Ue(un)}function ma(e){var t=z(e.stylisPlugins),n=t[0],r=t[1],o=fn().styleSheet,i=ee(function(){var l=o;return e.sheet?l=e.sheet:e.target&&(l=l.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(l=l.reconstructWithOptions({useCSSOMInjection:!1})),l},[e.disableCSSOMInjection,e.sheet,e.target,o]),a=ee(function(){return Kr({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:n})},[e.enableVendorPrefixes,e.namespace,n]);Q(function(){yi(n,e.stylisPlugins)||r(e.stylisPlugins)},[e.stylisPlugins]);var s=ee(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:i,stylis:a}},[e.shouldForwardProp,i,a]);return te.createElement(un.Provider,{value:s},te.createElement(pa.Provider,{value:a},e.children))}var dn=function(){function e(t,n){var r=this;this.inject=function(o,i){i===void 0&&(i=ln);var a=r.name+i.hash;o.hasNameForId(r.id,a)||o.insertRules(r.id,a,i(r.rules,a,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,cn(this,function(){throw K(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=ln),this.name+t.hash},e}(),ga=function(e){return e>="A"&&e<="Z"};function Jr(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;ga(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Qr=function(e){return e==null||e===!1||e===""},eo=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Qr(i)&&(Array.isArray(i)&&i.isCss||ge(i)?r.push("".concat(Jr(o),":"),i,";"):Ae(i)?r.push.apply(r,_e(_e(["".concat(o," {")],eo(i),!1),["}"],!1)):r.push("".concat(Jr(o),": ").concat((t=o,(n=i)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in Di||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function ve(e,t,n,r){if(Qr(e))return[];if(on(e))return[".".concat(e.styledComponentId)];if(ge(e)){if(!ge(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return[e];var o=e(t);return E.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof dn||Ae(o)||o===null||console.error("".concat(Hr(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,n,r)}var i;return e instanceof dn?n?(e.inject(n,r),[e.getName(r)]):[e]:Ae(e)?eo(e):Array.isArray(e)?Array.prototype.concat.apply(pt,e.map(function(a){return ve(a,t,n,r)})):[e.toString()]}function ya(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(ge(n)&&!on(n))return!1}return!0}var va=Mr(dt),Ca=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=E.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&ya(t),this.componentId=n,this.baseHash=me(va,n),this.baseStyle=r,qr.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))o=ye(o,this.staticRulesId);else{var i=an(ve(this.rules,t,n,r)),a=tn(me(this.baseHash,i)>>>0);if(!n.hasNameForId(this.componentId,a)){var s=r(i,".".concat(a),void 0,this.componentId);n.insertRules(this.componentId,a,s)}o=ye(o,a),this.staticRulesId=a}else{for(var l=me(this.baseHash,r.hash),u="",_=0;_<this.rules.length;_++){var c=this.rules[_];if(typeof c=="string")u+=c,E.NODE_ENV!=="production"&&(l=me(l,c));else if(c){var h=an(ve(c,t,n,r));l=me(l,h+_),u+=h}}if(u){var f=tn(l>>>0);n.hasNameForId(this.componentId,f)||n.insertRules(this.componentId,f,r(u,".".concat(f),void 0,this.componentId)),o=ye(o,f)}}return o},e}(),We=te.createContext(void 0);We.Consumer;function to(){var e=Ue(We);if(!e)throw K(18);return e}function wa(e){var t=te.useContext(We),n=ee(function(){return function(r,o){if(!r)throw K(14);if(ge(r)){var i=r(o);if(E.NODE_ENV!=="production"&&(i===null||Array.isArray(i)||typeof i!="object"))throw K(7);return i}if(Array.isArray(r)||typeof r!="object")throw K(8);return o?P(P({},o),r):r}(e.theme,t)},[e.theme,t]);return e.children?te.createElement(We.Provider,{value:n},e.children):null}var _n={},no=new Set;function ba(e,t,n){var r=on(e),o=e,i=!rn(e),a=t.attrs,s=a===void 0?pt:a,l=t.componentId,u=l===void 0?function($,x){var S=typeof $!="string"?"sc":Rr($);_n[S]=(_n[S]||0)+1;var w="".concat(S,"-").concat(Dr(dt+S+_n[S]));return x?"".concat(x,"-").concat(w):w}(t.displayName,t.parentComponentId):l,_=t.displayName,c=_===void 0?function($){return rn($)?"styled.".concat($):"Styled(".concat(Hr($),")")}(e):_,h=t.displayName&&t.componentId?"".concat(Rr(t.displayName),"-").concat(t.componentId):t.componentId||u,f=r&&o.attrs?o.attrs.concat(s).filter(Boolean):s,p=t.shouldForwardProp;if(r&&o.shouldForwardProp){var v=o.shouldForwardProp;if(t.shouldForwardProp){var C=t.shouldForwardProp;p=function($,x){return v($,x)&&C($,x)}}else p=v}var m=new Ca(n,h,r?o.componentStyle:void 0);function g($,x){return function(S,w,H){var F=S.attrs,Ye=S.componentStyle,W=S.defaultProps,we=S.foldedComponentIds,yo=S.styledComponentId,Os=S.target,Is=te.useContext(We),As=fn(),Cn=S.shouldForwardProp||As.shouldForwardProp;E.NODE_ENV!=="production"&&et(yo);var vo=zi(w,Is,W)||Ie,oe=function(Et,Ke,$t){for(var Pe,be=P(P({},Ke),{className:void 0,theme:$t}),Sn=0;Sn<Et.length;Sn+=1){var kt=ge(Pe=Et[Sn])?Pe(be):Pe;for(var ce in kt)be[ce]=ce==="className"?ye(be[ce],kt[ce]):ce==="style"?P(P({},be[ce]),kt[ce]):kt[ce]}return Ke.className&&(be.className=ye(be.className,Ke.className)),be}(F,w,vo),qe=oe.as||Os,Xe={};for(var j in oe)oe[j]===void 0||j[0]==="$"||j==="as"||j==="theme"&&oe.theme===vo||(j==="forwardedAs"?Xe.as=oe.forwardedAs:Cn&&!Cn(j,qe)||(Xe[j]=oe[j],Cn||E.NODE_ENV!=="development"||Do(j)||no.has(j)||!en.has(qe)||(no.add(j),console.warn('styled-components: it looks like an unknown prop "'.concat(j,'" 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 wn=function(Et,Ke){var $t=fn(),Pe=Et.generateAndInjectStyles(Ke,$t.styleSheet,$t.stylis);return E.NODE_ENV!=="production"&&et(Pe),Pe}(Ye,oe);E.NODE_ENV!=="production"&&S.warnTooManyClasses&&S.warnTooManyClasses(wn);var bn=ye(we,yo);return wn&&(bn+=" "+wn),oe.className&&(bn+=" "+oe.className),Xe[rn(qe)&&!en.has(qe)?"class":"className"]=bn,H&&(Xe.ref=H),L(qe,Xe)}(k,$,x)}g.displayName=c;var k=te.forwardRef(g);return k.attrs=f,k.componentStyle=m,k.displayName=c,k.shouldForwardProp=p,k.foldedComponentIds=r?ye(o.foldedComponentIds,o.styledComponentId):"",k.styledComponentId=h,k.target=r?o.target:e,Object.defineProperty(k,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function($){this._foldedDefaultProps=r?function(x){for(var S=[],w=1;w<arguments.length;w++)S[w-1]=arguments[w];for(var H=0,F=S;H<F.length;H++)sn(x,F[H],!0);return x}({},o.defaultProps,$):$}}),E.NODE_ENV!=="production"&&(Ui(c,h),k.warnTooManyClasses=function($,x){var S={},w=!1;return function(H){if(!w&&(S[H]=!0,Object.keys(S).length>=200)){var F=x?' with the id of "'.concat(x,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat($).concat(F,`.
|
|
47
|
+
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function qi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,i=e.length;o<i;o+=1)r.push(e[o]);return r.forEach(function(a){n=n.replace(/%[a-z]/,a)}),n}function X(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return E.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(qi.apply(void 0,de([Yi[e]],t,!1)).trim())}var Xi=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,o=r.length,i=o;t>=i;)if((i<<=1)<0)throw X(16,"".concat(t));this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var a=o;a<i;a++)this.groupSizes[a]=0}for(var s=this.indexOfGroup(t+1),l=(a=0,n.length);a<l;a++)this.tag.insertRule(s,n[a])&&(this.groupSizes[t]++,s++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),o=r+n;this.groupSizes[t]=0;for(var i=r;i<o;i++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],o=this.indexOfGroup(t),i=o+r,a=o;a<i;a++)n+="".concat(this.tag.getRule(a)).concat(Xt);return n},e}(),Ki=1<<30,mt=new Map,yt=new Map,gt=1,vt=function(e){if(mt.has(e))return mt.get(e);for(;yt.has(gt);)gt++;var t=gt++;if(E.NODE_ENV!=="production"&&((0|t)<0||t>Ki))throw X(16,"".concat(t));return mt.set(e,t),yt.set(t,e),t},Qi=function(e,t){gt=t+1,mt.set(e,t),yt.set(t,e)},Ji="style[".concat(_e,"][").concat(Nr,'="').concat(ft,'"]'),ea=new RegExp("^".concat(_e,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),ta=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},na=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(Xt),o=[],i=0,a=r.length;i<a;i++){var s=r[i].trim();if(s){var l=s.match(ea);if(l){var u=0|parseInt(l[1],10),d=l[2];u!==0&&(Qi(d,u),ta(e,d,l[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(s)}}},Ur=function(e){for(var t=document.querySelectorAll(Ji),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(_e)!==kr&&(na(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function ra(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var jr=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(s){var l=Array.from(s.querySelectorAll("style[".concat(_e,"]")));return l[l.length-1]}(n),i=o!==void 0?o.nextSibling:null;r.setAttribute(_e,kr),r.setAttribute(Nr,ft);var a=ra();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},oa=function(){function e(t){this.element=jr(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,o=0,i=r.length;o<i;o++){var a=r[o];if(a.ownerNode===n)return a}throw X(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e}(),ia=function(){function e(t){this.element=jr(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,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}(),aa=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),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}(),Wr=dt,sa={isServer:!dt,useCSSOMInjection:!Ri},Gr=function(){function e(t,n,r){t===void 0&&(t=Oe),n===void 0&&(n={});var o=this;this.options=R(R({},sa),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&dt&&Wr&&(Wr=!1,Ur(this)),on(this,function(){return function(i){for(var a=i.getTag(),s=a.length,l="",u=function(c){var _=function(m){return yt.get(m)}(c);if(_===void 0)return"continue";var f=i.names.get(_),h=a.getGroup(c);if(f===void 0||!f.size||h.length===0)return"continue";var g="".concat(_e,".g").concat(c,'[id="').concat(_,'"]'),v="";f!==void 0&&f.forEach(function(m){m.length>0&&(v+="".concat(m,","))}),l+="".concat(h).concat(g,'{content:"').concat(v,'"}').concat(Xt)},d=0;d<s;d++)u(d);return l}(o)})}return e.registerId=function(t){return vt(t)},e.prototype.rehydrate=function(){!this.server&&dt&&Ur(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(R(R({},this.options),t),this.gs,n&&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(n){var r=n.useCSSOMInjection,o=n.target;return n.isServer?new aa(o):r?new oa(o):new ia(o)}(this.options),new Xi(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(vt(t),this.names.has(t))this.names.get(t).add(n);else{var r=new Set;r.add(n),this.names.set(t,r)}},e.prototype.insertRules=function(t,n,r){this.registerName(t,n),this.getTag().insertRules(vt(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(vt(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),ca=/&/g,la=/^\s*\/\/.*$/gm;function Vr(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=Vr(n.children,t)),n})}function Zr(e){var t,n,r,o=e===void 0?Oe:e,i=o.options,a=i===void 0?Oe:i,s=o.plugins,l=s===void 0?_t:s,u=function(_,f,h){return h.startsWith(n)&&h.endsWith(n)&&h.replaceAll(n,"").length>0?".".concat(t):_},d=l.slice();d.push(function(_){_.type===rt&&_.value.includes("&")&&(_.props[0]=_.props[0].replace(ca,n).replace(r,u))}),a.prefix&&d.push(Ai),d.push(Ti);var c=function(_,f,h,g){f===void 0&&(f=""),h===void 0&&(h=""),g===void 0&&(g="&"),t=g,n=f,r=new RegExp("\\".concat(n,"\\b"),"g");var v=_.replace(la,""),m=Ni(h||f?"".concat(h," ").concat(f," { ").concat(v," }"):v);a.namespace&&(m=Vr(m,a.namespace));var y=[];return ut(m,Oi(d.concat(Ii(function(k){return y.push(k)})))),y};return c.hash=l.length?l.reduce(function(_,f){return f.name||X(15),he(_,f.name)},Ir).toString():"",c}var ua=new Gr,an=Zr(),sn=ee.createContext({shouldForwardProp:void 0,styleSheet:ua,stylis:an});sn.Consumer;var fa=ee.createContext(void 0);function cn(){return He(sn)}function da(e){var t=B(e.stylisPlugins),n=t[0],r=t[1],o=cn().styleSheet,i=J(function(){var l=o;return e.sheet?l=e.sheet:e.target&&(l=l.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(l=l.reconstructWithOptions({useCSSOMInjection:!1})),l},[e.disableCSSOMInjection,e.sheet,e.target,o]),a=J(function(){return Zr({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:n})},[e.enableVendorPrefixes,e.namespace,n]);Q(function(){_i(n,e.stylisPlugins)||r(e.stylisPlugins)},[e.stylisPlugins]);var s=J(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:i,stylis:a}},[e.shouldForwardProp,i,a]);return ee.createElement(sn.Provider,{value:s},ee.createElement(fa.Provider,{value:a},e.children))}var ln=function(){function e(t,n){var r=this;this.inject=function(o,i){i===void 0&&(i=an);var a=r.name+i.hash;o.hasNameForId(r.id,a)||o.insertRules(r.id,a,i(r.rules,a,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,on(this,function(){throw X(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=an),this.name+t.hash},e}(),pa=function(e){return e>="A"&&e<="Z"};function Yr(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;pa(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var qr=function(e){return e==null||e===!1||e===""},Xr=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!qr(i)&&(Array.isArray(i)&&i.isCss||me(i)?r.push("".concat(Yr(o),":"),i,";"):Ie(i)?r.push.apply(r,de(de(["".concat(o," {")],Xr(i),!1),["}"],!1)):r.push("".concat(Yr(o),": ").concat((t=o,(n=i)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in Pi||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function ge(e,t,n,r){if(qr(e))return[];if(tn(e))return[".".concat(e.styledComponentId)];if(me(e)){if(!me(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return[e];var o=e(t);return E.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof ln||Ie(o)||o===null||console.error("".concat(Rr(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.")),ge(o,t,n,r)}var i;return e instanceof ln?n?(e.inject(n,r),[e.getName(r)]):[e]:Ie(e)?Xr(e):Array.isArray(e)?Array.prototype.concat.apply(_t,e.map(function(a){return ge(a,t,n,r)})):[e.toString()]}function _a(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(me(n)&&!tn(n))return!1}return!0}var ha=Ar(ft),ma=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=E.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&_a(t),this.componentId=n,this.baseHash=he(ha,n),this.baseStyle=r,Gr.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))o=ye(o,this.staticRulesId);else{var i=nn(ge(this.rules,t,n,r)),a=Qt(he(this.baseHash,i)>>>0);if(!n.hasNameForId(this.componentId,a)){var s=r(i,".".concat(a),void 0,this.componentId);n.insertRules(this.componentId,a,s)}o=ye(o,a),this.staticRulesId=a}else{for(var l=he(this.baseHash,r.hash),u="",d=0;d<this.rules.length;d++){var c=this.rules[d];if(typeof c=="string")u+=c,E.NODE_ENV!=="production"&&(l=he(l,c));else if(c){var _=nn(ge(c,t,n,r));l=he(l,_+d),u+=_}}if(u){var f=Qt(l>>>0);n.hasNameForId(this.componentId,f)||n.insertRules(this.componentId,f,r(u,".".concat(f),void 0,this.componentId)),o=ye(o,f)}}return o},e}(),Ue=ee.createContext(void 0);Ue.Consumer;function Kr(){var e=He(Ue);if(!e)throw X(18);return e}function ya(e){var t=ee.useContext(Ue),n=J(function(){return function(r,o){if(!r)throw X(14);if(me(r)){var i=r(o);if(E.NODE_ENV!=="production"&&(i===null||Array.isArray(i)||typeof i!="object"))throw X(7);return i}if(Array.isArray(r)||typeof r!="object")throw X(8);return o?R(R({},o),r):r}(e.theme,t)},[e.theme,t]);return e.children?ee.createElement(Ue.Provider,{value:n},e.children):null}var un={},Qr=new Set;function ga(e,t,n){var r=tn(e),o=e,i=!en(e),a=t.attrs,s=a===void 0?_t:a,l=t.componentId,u=l===void 0?function($,x){var S=typeof $!="string"?"sc":Tr($);un[S]=(un[S]||0)+1;var C="".concat(S,"-").concat(Pr(ft+S+un[S]));return x?"".concat(x,"-").concat(C):C}(t.displayName,t.parentComponentId):l,d=t.displayName,c=d===void 0?function($){return en($)?"styled.".concat($):"Styled(".concat(Rr($),")")}(e):d,_=t.displayName&&t.componentId?"".concat(Tr(t.displayName),"-").concat(t.componentId):t.componentId||u,f=r&&o.attrs?o.attrs.concat(s).filter(Boolean):s,h=t.shouldForwardProp;if(r&&o.shouldForwardProp){var g=o.shouldForwardProp;if(t.shouldForwardProp){var v=t.shouldForwardProp;h=function($,x){return g($,x)&&v($,x)}}else h=g}var m=new ma(n,_,r?o.componentStyle:void 0);function y($,x){return function(S,C,D){var F=S.attrs,Ze=S.componentStyle,U=S.defaultProps,Ce=S.foldedComponentIds,_o=S.styledComponentId,Ns=S.target,xs=ee.useContext(Ue),Ts=cn(),hn=S.shouldForwardProp||Ts.shouldForwardProp;E.NODE_ENV!=="production"&&Je(_o);var ho=Mi(C,xs,U)||Oe,re=function(bt,Xe,St){for(var Pe,we=R(R({},Xe),{className:void 0,theme:St}),gn=0;gn<bt.length;gn+=1){var Et=me(Pe=bt[gn])?Pe(we):Pe;for(var ce in Et)we[ce]=ce==="className"?ye(we[ce],Et[ce]):ce==="style"?R(R({},we[ce]),Et[ce]):Et[ce]}return Xe.className&&(we.className=ye(we.className,Xe.className)),we}(F,C,ho),Ye=re.as||Ns,qe={};for(var j in re)re[j]===void 0||j[0]==="$"||j==="as"||j==="theme"&&re.theme===ho||(j==="forwardedAs"?qe.as=re.forwardedAs:hn&&!hn(j,Ye)||(qe[j]=re[j],hn||E.NODE_ENV!=="development"||Po(j)||Qr.has(j)||!Kt.has(Ye)||(Qr.add(j),console.warn('styled-components: it looks like an unknown prop "'.concat(j,'" 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 mn=function(bt,Xe){var St=cn(),Pe=bt.generateAndInjectStyles(Xe,St.styleSheet,St.stylis);return E.NODE_ENV!=="production"&&Je(Pe),Pe}(Ze,re);E.NODE_ENV!=="production"&&S.warnTooManyClasses&&S.warnTooManyClasses(mn);var yn=ye(Ce,_o);return mn&&(yn+=" "+mn),re.className&&(yn+=" "+re.className),qe[en(Ye)&&!Kt.has(Ye)?"class":"className"]=yn,D&&(qe.ref=D),L(Ye,qe)}(k,$,x)}y.displayName=c;var k=ee.forwardRef(y);return k.attrs=f,k.componentStyle=m,k.displayName=c,k.shouldForwardProp=h,k.foldedComponentIds=r?ye(o.foldedComponentIds,o.styledComponentId):"",k.styledComponentId=_,k.target=r?o.target:e,Object.defineProperty(k,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function($){this._foldedDefaultProps=r?function(x){for(var S=[],C=1;C<arguments.length;C++)S[C-1]=arguments[C];for(var D=0,F=S;D<F.length;D++)rn(x,F[D],!0);return x}({},o.defaultProps,$):$}}),E.NODE_ENV!=="production"&&(Li(c,_),k.warnTooManyClasses=function($,x){var S={},C=!1;return function(D){if(!C&&(S[D]=!0,Object.keys(S).length>=200)){var F=x?' with the id of "'.concat(x,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat($).concat(F,`.
|
|
48
48
|
`)+`Consider using the attrs method, together with a style object for frequently changed styles.
|
|
49
49
|
Example:
|
|
50
50
|
const Component = styled.div.attrs(props => ({
|
|
@@ -53,11 +53,11 @@ Example:
|
|
|
53
53
|
},
|
|
54
54
|
}))\`width: 100%;\`
|
|
55
55
|
|
|
56
|
-
<Component />`),
|
|
56
|
+
<Component />`),C=!0,S={}}}}(c,_)),on(k,function(){return".".concat(k.styledComponentId)}),i&&Fr(k,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),k}function Jr(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var eo=function(e){return Object.assign(e,{isCss:!0})};function fn(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(me(e)||Ie(e))return eo(ge(Jr(_t,de([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?ge(r):eo(ge(Jr(r,t)))}function dn(e,t,n){if(n===void 0&&(n=Oe),!t)throw X(1,t);var r=function(o){for(var i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];return e(t,n,fn.apply(void 0,de([o],i,!1)))};return r.attrs=function(o){return dn(e,t,R(R({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},r.withConfig=function(o){return dn(e,t,R(R({},n),o))},r}var to=function(e){return dn(ga,e)},M=to;Kt.forEach(function(e){M[e]=to(e)});function Ct(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];E.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 r=nn(fn.apply(void 0,de([e],t,!1))),o=Pr(r);return new ln(o,r)}E.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
57
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
|
|
58
|
+
Read more about this at https://www.styled-components.com/docs/basics#react-native`);var wt="__sc-".concat(_e,"__");E.NODE_ENV!=="production"&&E.NODE_ENV!=="test"&&typeof window<"u"&&(window[wt]||(window[wt]=0),window[wt]===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
59
|
|
|
60
|
-
See https://s-c.sh/2BAXzed for more info.`),window[
|
|
60
|
+
See https://s-c.sh/2BAXzed for more info.`),window[wt]+=1);const pn={LEFT:"left",RIGHT:"right"},no=.24,va=24,Ca=2,ro=14,wa=.0276;var ne=(e=>(e[e.S=300]="S",e[e.M=400]="M",e[e.L=500]="L",e[e.Default=600]="Default",e))(ne||{});const je={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}},oo={loading:{text:"Loading. Please wait.",visible:!0},waiting:{text:"Waiting for input...",visible:!0}},ba="rgba(19, 19, 19, 0.5)",Sa=34,Ea={[H.CANDIDATE_SELECTION]:"Hold still…",[H.PALM_CENTERING]:"Center your palm",[H.PALM_NOT_PRESENT]:"Position your palm",[H.PALM_TOO_FAR]:"Move closer",[H.SHARPNESS_TOO_LOW]:"More light needed",[H.BRIGHTNESS_TOO_LOW]:"More light needed",[H.BRIGHTNESS_TOO_HIGH]:"Less light needed",[H.DEVICE_PITCHED]:"Hold your phone at eye level",[H.PALM_TOO_CLOSE]:"Move back",[H.TEMPLATE_EXTRACTION_QUALITY_TOO_LOW]:"More light needed"},$a=pn.LEFT;function io(e,t){return Math.max(t,t+(e-400)*wa+2)}const ka=(e,t=ro)=>e?e.width<e.height?io(e.width,t):io(e.height,t):t,Na=e=>e>ne.Default?je[ne.Default]:e>ne.L?je[ne.L]:e>ne.M?je[ne.M]:je[ne.S],xa=e=>e?Na(e.width):je[ne.Default];function Ta(){const e="https://fonts.googleapis.com/css?family=Montserrat:600";if(!document.querySelector(`link[href="${e}"]`)){const n=document.createElement("link");n.href=e,n.rel="stylesheet",document.head.appendChild(n)}}const We=Rn(void 0);We.displayName="ConfigurationContext";function ve(){const e=He(We);if(!e)throw new Error(`${We.displayName} must be used within a ${We.displayName} Provider`);return e}function Oa({children:e,configuration:t,videoElementSize:n}){const{font:r}=Kr(),o=J(()=>({...t,videoElementSize:n,fontSize:ka(n,r.minimumSize)}),[t,r.minimumSize,n]);return p(We.Provider,{value:o,children:e})}const ao=({svgSize:e})=>p("svg",{fill:"none",height:e,viewBox:"0 0 16 14",width:e,xmlns:"http://www.w3.org/2000/svg",children:p("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"})}),Ia=M.div`
|
|
61
61
|
width: 100%;
|
|
62
62
|
height: 100%;
|
|
63
63
|
top: 0;
|
|
@@ -76,14 +76,14 @@ See https://s-c.sh/2BAXzed for more info.`),window[bt]+=1);const mn={LEFT:"left"
|
|
|
76
76
|
aspect-ratio: 9/16;
|
|
77
77
|
}
|
|
78
78
|
`}
|
|
79
|
-
`,
|
|
79
|
+
`,Aa=M.div`
|
|
80
80
|
width: 100%;
|
|
81
81
|
display: flex;
|
|
82
82
|
flex-direction: column;
|
|
83
83
|
justify-content: center;
|
|
84
84
|
align-items: center;
|
|
85
85
|
color: ${e=>e.theme.colors.instructionTextColor};
|
|
86
|
-
`,
|
|
86
|
+
`,Pa=M.p`
|
|
87
87
|
background: ${e=>e.theme.colors.instructionColor};
|
|
88
88
|
border-radius: 0.25em;
|
|
89
89
|
padding: 0.583em 0.666em;
|
|
@@ -91,11 +91,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[bt]+=1);const mn={LEFT:"left"
|
|
|
91
91
|
font-size: ${e=>`${e.$fontSize}px`};
|
|
92
92
|
line-height: 1em;
|
|
93
93
|
max-width: 80%;
|
|
94
|
-
`,
|
|
94
|
+
`,_n=({Icon:e,isCameraReady:t,position:n="absolute",text:r})=>{const{fontSize:o}=ve();return p(Ia,{$isCameraReady:t,$position:n,children:p(Aa,{children:[e?p(e,{svgSize:o*2}):null,p(Pa,{$fontSize:o,children:r})]})})},so=({text:e="An unknown error has occurred"})=>p(_n,{Icon:ao,position:"relative",text:e});class Ra extends G{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t,n){console.error(t,n)}render(){return this.state.hasError?p(so,{Icon:ao,isCameraReady:!1}):this.props.children}}const La=M.div`
|
|
95
95
|
font-family: ${e=>e.theme.font.family};
|
|
96
96
|
font-style: ${e=>e.theme.font.style};
|
|
97
97
|
font-weight: ${e=>e.theme.font.weight};
|
|
98
|
-
|
|
98
|
+
`;function Ma({children:e,uiConfiguration:t,videoElementSize:n}){return Q(()=>{Ta()},[]),p(da,{target:t.styleTarget,children:p(ya,{theme:t.styling.theme,children:p(La,{children:p(Ra,{videoElementSize:n,children:p(Oa,{configuration:t,videoElementSize:n,children:e})})})})})}const Da=.85,Ha="dot-auto-capture-video";function Ae(e,t){const n=De(t);Q(()=>{n.current=t},[t]),Q(()=>{if(!e)return;const r=o=>n.current(o);return document.addEventListener(e,r),()=>{document.removeEventListener(e,r)}},[e])}function Ba(e){const[t,n]=B(),r=fe(o=>{var i;n((i=o.detail)==null?void 0:i.size)},[n]);return Ae(e,r),$e(()=>{if(!t){const o=document.getElementById(Ha);o&&n(o.getBoundingClientRect())}},[t,n]),t}function za(e,t){return e?`${e}, ${t}`:t}const Ge={colors:{placeholderColor:"white",placeholderColorSuccess:"#00BFB2",instructionColor:"#F8FBFB",instructionColorSuccess:"#00BFB2",instructionTextColor:"#021B41;"},font:{family:"Montserrat, Arial, sans-serif",weight:"600",style:"normal",minimumSize:ro}},Fa=e=>{var t;return e?{...Ge,...e,colors:{...Ge.colors,...e.colors},font:{...Ge.font,...e.font,family:za((t=e.font)==null?void 0:t.family,Ge.font.family)}}:Ge},co=(e,t)=>Math.min(e,t),Ua=({height:e,width:t},n)=>{const r=co(t,e)*n,o=(t-r)/2,i=(e-r)/2;return{shiftX:o,shiftY:i,width:r,height:r}},ja=(e,t)=>{const{height:n,shiftX:r,shiftY:o,width:i}=Ua(e,t);return{shiftX:r/e.width,shiftY:o/e.height,width:i/e.width,height:n/e.height}},Wa=e=>ja(e,Da),Ga=(e,t)=>{document.dispatchEvent(new CustomEvent(e,{detail:t}))},lo=(e,t)=>{Ga(e,{instruction:t})};async function Va(){return navigator.mediaDevices.enumerateDevices()}async function Za(){return(await Va()).filter(t=>t.kind==="videoinput")}const Ya=()=>{const[e,t]=B(!1);return Q(()=>{(async()=>{(await Za()).length>1&&t(!0)})()},[]),e},qa=({size:e})=>p("svg",{fill:"none",height:e,viewBox:"0 0 52 52",width:e,xmlns:"http://www.w3.org/2000/svg",children:[p("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"}),p("circle",{cx:"17.5",cy:"24.5",fill:"white",r:"1.5"}),p("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"}),p("circle",{fill:"white",r:"1.5",transform:"matrix(-1 0 0 1 34.5 24.5)"}),p("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"})]}),Xa=({size:e})=>p("svg",{fill:"none",height:e,viewBox:"0 0 52 52",width:"52",xmlns:"http://www.w3.org/2000/svg",children:[p("circle",{cx:"26",cy:"26",fill:"#131313",fillOpacity:"0.3",r:"26"}),p("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"})]}),uo=M.button`
|
|
99
99
|
background: none;
|
|
100
100
|
border: none;
|
|
101
101
|
padding: 0;
|
|
@@ -105,26 +105,26 @@ See https://s-c.sh/2BAXzed for more info.`),window[bt]+=1);const mn={LEFT:"left"
|
|
|
105
105
|
&:disabled {
|
|
106
106
|
cursor: not-allowed;
|
|
107
107
|
}
|
|
108
|
-
`,
|
|
108
|
+
`,Ka=({marginLeft:e,size:t,...n})=>p(uo,{$marginLeft:e,...n,children:p(qa,{size:t})}),Qa=({marginLeft:e,size:t,...n})=>p(uo,{$marginLeft:e,...n,children:p(Xa,{size:t})}),Ja=M.div`
|
|
109
109
|
position: absolute;
|
|
110
110
|
top: 0;
|
|
111
111
|
right: 0;
|
|
112
112
|
padding: ${e=>`${e.$padding}px`};
|
|
113
113
|
z-index: 2;
|
|
114
|
-
`,
|
|
114
|
+
`,es=({customControlEvent:e,isSwitchCameraDisabled:t})=>{const{control:{showCameraButtons:n},videoElementSize:r}=ve(),o=Ya();if(!n)return null;const{buttonPadding:i,iconSize:a,marginLeft:s}=xa(r);return p(Ja,{$padding:i,children:[o&&p(Qa,{disabled:t,onClick:()=>{lo(e,Dn.SWITCH_CAMERA)},size:a}),p(Ka,{marginLeft:o?s:0,onClick:()=>{lo(e,Dn.TOGGLE_MIRROR)},size:a})]})},ts="2.5s",ns="0.3s",rs="linear",os=Ct`
|
|
115
115
|
0% {
|
|
116
116
|
opacity: 0;
|
|
117
117
|
}
|
|
118
118
|
100% {
|
|
119
119
|
opacity: 1;
|
|
120
120
|
}
|
|
121
|
-
`;
|
|
121
|
+
`;Ct`
|
|
122
122
|
100% {
|
|
123
123
|
transform: translate(-50%, -50%) scale(2.6);
|
|
124
124
|
top: 50%;
|
|
125
125
|
left: 50%;
|
|
126
126
|
}
|
|
127
|
-
`,
|
|
127
|
+
`,Ct`
|
|
128
128
|
5% {
|
|
129
129
|
transform: translate(-50%, -50%) scale(0.7);
|
|
130
130
|
opacity: 1;
|
|
@@ -147,7 +147,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[bt]+=1);const mn={LEFT:"left"
|
|
|
147
147
|
transform: translate(-50%, -50%) scale(0.85);
|
|
148
148
|
opacity: 0.5;
|
|
149
149
|
}
|
|
150
|
-
`,
|
|
150
|
+
`,Ct`
|
|
151
151
|
5% {
|
|
152
152
|
opacity: 1;
|
|
153
153
|
}
|
|
@@ -159,16 +159,16 @@ See https://s-c.sh/2BAXzed for more info.`),window[bt]+=1);const mn={LEFT:"left"
|
|
|
159
159
|
transform: scale(1);
|
|
160
160
|
opacity: 1;
|
|
161
161
|
}
|
|
162
|
-
`;const
|
|
162
|
+
`;const is=M.div`
|
|
163
163
|
position: absolute;
|
|
164
164
|
left: 50%;
|
|
165
165
|
|
|
166
166
|
${e=>e.$cssTop?`top: ${e.$cssTop}%;`:""}
|
|
167
167
|
${e=>e.$cssBottom?`bottom: ${e.$cssBottom}%;`:""}
|
|
168
|
-
${e=>e.$isAnimating&&
|
|
169
|
-
animation: ${
|
|
170
|
-
${
|
|
171
|
-
animation-delay: ${
|
|
168
|
+
${e=>e.$isAnimating&&fn`
|
|
169
|
+
animation: ${os} ${ns}
|
|
170
|
+
${rs} both;
|
|
171
|
+
animation-delay: ${ts};
|
|
172
172
|
|
|
173
173
|
@media (orientation: landscape) {
|
|
174
174
|
bottom: ${e.$cssBottom?e.$cssBottom-15:""}%;
|
|
@@ -192,7 +192,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[bt]+=1);const mn={LEFT:"left"
|
|
|
192
192
|
${e=>e.$cssTop||e.$isPortrait?"-50%":e.$isPortrait?"":"50%"}
|
|
193
193
|
);
|
|
194
194
|
z-index: 2;
|
|
195
|
-
`,
|
|
195
|
+
`,as=M.div`
|
|
196
196
|
display: flex;
|
|
197
197
|
align-items: center;
|
|
198
198
|
justify-content: center;
|
|
@@ -206,7 +206,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[bt]+=1);const mn={LEFT:"left"
|
|
|
206
206
|
line-height: 1em;
|
|
207
207
|
font-size: ${e=>`${e.$fontSize}px`};
|
|
208
208
|
white-space: ${e=>e.$wrap?"break-spaces":"nowrap"};
|
|
209
|
-
`,
|
|
209
|
+
`,ss=({children:e,cssBottom:t,cssTop:n,isAnimating:r,isInCandidateSelection:o,isPortrait:i})=>{const{fontSize:a}=ve();return p(is,{$cssBottom:t,$cssTop:n,$isAnimating:r,$isPortrait:i,children:p(as,{$fontSize:a,$isInCandidateSelection:o,$wrap:e.length>Sa,children:e})})},cs=M.canvas`
|
|
210
210
|
transform: ${e=>e.$isImageMirror?"rotateY(180deg)":"none"};
|
|
211
211
|
position: absolute;
|
|
212
212
|
top: 0;
|
|
@@ -214,7 +214,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[bt]+=1);const mn={LEFT:"left"
|
|
|
214
214
|
width: 100%;
|
|
215
215
|
height: 100%;
|
|
216
216
|
z-index: 1;
|
|
217
|
-
`;function
|
|
217
|
+
`;function ls(e){const t=e.getContext("2d");t&&t.clearRect(0,0,t.canvas.width,t.canvas.height)}const Ve=(e,t)=>Math.hypot(t.x-e.x,t.y-e.y),fo=(e,t,n)=>{const r=(t.x-e.x)*n,o=(t.y-e.y)*n;return{x:e.x+r,y:e.y+o}},po=(e,t,n,r)=>{const o=Ve(e,t);return n*r/o},us=e=>{const{bottomLeft:t,bottomRight:n,topLeft:r,topRight:o}=e,i=Ve(r,o),a=Ve(o,n),s=Ve(t,n),l=Ve(r,t);return Math.min(i,a,s,l)};function fs({cameraResolution:e,isImageMirror:t}){const n=De(null),r=Kr(),[o,i]=B(),a=fe(s=>{var l;i((l=s==null?void 0:s.detail)==null?void 0:l.detectedObject)},[i]);return Ae(Hn.DETECTION_CHANGED,a),Ae(ue.DETECTION_CHANGED,a),Q(()=>{if(!n.current)return;const s=(u,d,c,_)=>{var y;const f=po(d,u,_,no),h=po(d,c,_,no),g=fo(d,u,f),v=fo(d,c,h),m=(y=n==null?void 0:n.current)==null?void 0:y.getContext("2d");m&&(m.beginPath(),m.lineWidth=Ca,m.strokeStyle=r.colors.placeholderColor,m.moveTo(g.x,g.y),m.arcTo(d.x,d.y,v.x,v.y,va),m.lineTo(v.x,v.y),m.stroke())},l=u=>{if(!u)return;const{bottomLeft:d,bottomRight:c,topLeft:_,topRight:f}=u,h=us(u);s(d,_,f,h),s(_,f,c,h),s(f,c,d,h),s(c,d,_,h)};n.current.width=e.width,n.current.height=e.height,ls(n.current),l(o)},[e,o,r.colors.placeholderColor]),p(cs,{ref:n,$isImageMirror:t})}const ds=M.div`
|
|
218
218
|
color: ${e=>e.theme.colors.instructionTextColor};
|
|
219
219
|
animation: spin 2s linear infinite;
|
|
220
220
|
|
|
@@ -223,7 +223,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[bt]+=1);const mn={LEFT:"left"
|
|
|
223
223
|
transform: rotate(-360deg);
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
|
-
`,
|
|
226
|
+
`,ps=({svgSize:e})=>p(ds,{children:p("svg",{fill:"none",height:e,viewBox:"0 0 48 48",width:e,xmlns:"http://www.w3.org/2000/svg",children:[p("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"}),p("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"}),p("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"}),p("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"}),p("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"}),p("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"}),p("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"}),p("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"})]})}),_s=M.div`
|
|
227
227
|
z-index: 1;
|
|
228
228
|
position: absolute;
|
|
229
229
|
// Scale up the backdrop to have space when placeholder is scaled below 1
|
|
@@ -240,7 +240,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[bt]+=1);const mn={LEFT:"left"
|
|
|
240
240
|
transform: scale(0.5);
|
|
241
241
|
translate: 25% 25%;
|
|
242
242
|
}
|
|
243
|
-
`,
|
|
243
|
+
`,hs=({children:e,height:t,scale:n,width:r})=>{const{styling:{backdropColor:o}}=ve(),i=co(r,t);return p(_s,{$backdropColor:o,$scale:n,$shorterSide:i,children:p("svg",{viewBox:`0 0 ${r} ${t}`,children:[p("defs",{children:p("mask",{id:"mask",children:[p("rect",{fill:"#fff",height:"100%",width:"100%"}),p("g",{children:e})]})}),p("rect",{fill:o,height:"100%",mask:"url(#mask)",width:"100%"})]})})};function ms({cameraHeight:e,cameraWidth:t,isBackdrop:n,state:r}){const{appStateInstructions:o}=ve(),i=r===V.ERROR||r===V.RUNNING;return!r||i||!(o!=null&&o[r].visible)?null:r===V.WAITING||r===V.COMPLETE?p(W,{children:[n&&e&&t&&p(hs,{height:e,width:t}),p(_n,{isCameraReady:!0,text:o[V.WAITING].text})]}):p(_n,{Icon:ps,isCameraReady:!0,text:o[V.LOADING].text})}function ys(){return p("svg",{fill:"none",id:"Layer_1",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"4px",viewBox:"0 0 300 253.48",xmlns:"http://www.w3.org/2000/svg",children:[p("path",{className:"cls-1",d:"M179.22,114.86c-5.07-.21-41.51-1.07-66.97,27.84-17.94,20.37-19.97,43.63-20.32,51.17"}),p("path",{className:"cls-1",d:"M128.06,110.56c-11.36,2.45-25.72,4.46-42.32,4.23-11.24-.16-21.3-1.31-29.91-2.82"}),p("line",{className:"cls-1",x1:"203.51",x2:"203.51",y1:"136.03",y2:"10.21"}),p("line",{className:"cls-1",x1:"154.7",x2:"154.7",y1:"60.97",y2:"10.21"}),p("line",{className:"cls-1",x1:"106.01",x2:"106.01",y1:"60.97",y2:"10.21"}),p("line",{className:"cls-1",x1:"58.08",x2:"58.08",y1:"60.97",y2:"10.21"}),p("path",{className:"cls-1",d:"M286.73,114.94c3.95-3.75,6.41-9.05,6.41-14.92,0-11.36-9.21-20.56-20.56-20.56-2.84,0-5.54.58-8,1.62"}),p("polyline",{className:"cls-1",points:"203.51 113.13 261.92 82.44 264.57 81.08"}),p("path",{className:"cls-1",d:"M289.01,112.55l-3.31,3.31-33.68,33.68c-.57.73-1.44,1.84-2.47,3.19-12.6,16.55-19.33,29.31-23.35,36.07-3.96,6.65-12.58,21.1-27.6,32.97-21.04,16.62-48.91,23.63-64.22,21.28-1.73-.27-7.53-1.3-15.53-1.34-9.01-.05-15.46,1.23-17.64,1.53-18.31,2.56-40.72-12.22-44.86-14.95-24.73-16.31-34.26-39.92-37.95-49.46-5.51-14.21-6.05-33.85-7.28-49.84,0,0-.33-4.22-.57-8.69-1.72-31.65-.45-82.64-.1-110.1"})]})}function gs(){return p("svg",{fill:"none",id:"Layer_1",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"4px",viewBox:"0 0 300 253.48",xmlns:"http://www.w3.org/2000/svg",children:[p("path",{className:"cls-1",d:"M120.78,114.86c5.07-.21,41.51-1.07,66.97,27.84,17.94,20.37,19.97,43.63,20.32,51.17"}),p("path",{className:"cls-1",d:"M171.94,110.56c11.36,2.45,25.72,4.46,42.32,4.23,11.24-.16,21.3-1.31,29.91-2.82"}),p("line",{className:"cls-1",x1:"96.49",x2:"96.49",y1:"136.03",y2:"10.21"}),p("line",{className:"cls-1",x1:"145.3",x2:"145.3",y1:"60.97",y2:"10.21"}),p("line",{className:"cls-1",x1:"193.99",x2:"193.99",y1:"60.97",y2:"10.21"}),p("line",{className:"cls-1",x1:"241.92",x2:"241.92",y1:"60.97",y2:"10.21"}),p("path",{className:"cls-1",d:"M13.27,114.94c-3.95-3.75-6.41-9.05-6.41-14.92,0-11.36,9.21-20.56,20.56-20.56,2.84,0,5.54.58,8,1.62"}),p("polyline",{className:"cls-1",points:"96.49 113.13 38.08 82.44 35.43 81.08"}),p("path",{className:"cls-1",d:"M10.99,112.55l3.31,3.31,33.68,33.68c.57.73,1.44,1.84,2.47,3.19,12.6,16.55,19.33,29.31,23.35,36.07,3.96,6.65,12.58,21.1,27.6,32.97,21.04,16.62,48.91,23.63,64.22,21.28,1.73-.27,7.53-1.3,15.53-1.34,9.01-.05,15.46,1.23,17.64,1.53,18.31,2.56,40.72-12.22,44.86-14.95,24.73-16.31,34.26-39.92,37.95-49.46,5.51-14.21,6.05-33.85,7.28-49.84,0,0,.33-4.22.57-8.69,1.72-31.65.45-82.64.1-110.1"})]})}const vs=M.div`
|
|
244
244
|
z-index: 1;
|
|
245
245
|
position: absolute;
|
|
246
246
|
top: ${e=>e.$placeholderRectangle.shiftY*100}%;
|
|
@@ -254,4 +254,4 @@ See https://s-c.sh/2BAXzed for more info.`),window[bt]+=1);const mn={LEFT:"left"
|
|
|
254
254
|
width: 100%;
|
|
255
255
|
height: 100%;
|
|
256
256
|
}
|
|
257
|
-
`,
|
|
257
|
+
`,Cs=({children:e,className:t,isInCandidateSelection:n,onAnimationEnd:r,placeholderRectangle:o,scale:i})=>p(vs,{$isInCandidateSelection:n,$placeholderRectangle:o,$scale:i,className:t,onAnimationEnd:r,children:e}),ws={[pn.LEFT]:p(ys,{}),[pn.RIGHT]:p(gs,{})};function bs({placeholderRectangle:e,...t}){const{placeholder:n}=ve();return p(Cs,{placeholderRectangle:e,...t,children:ws[n]})}function Ss(){const[e,t]=B(),[n,r]=B(!1),o=fe(f=>{var g,v;t((g=f==null?void 0:f.detail)==null?void 0:g.cameraResolution);const h=(v=f==null?void 0:f.detail)==null?void 0:v.isMirroring;h!==void 0&&r(h)},[t]);Ae(ue.CAMERA_PROPS_CHANGED,o);const[i,a]=B({code:H.PALM_NOT_PRESENT,isEscalated:!1}),s=fe(f=>{var h,g;a({code:(h=f==null?void 0:f.detail)==null?void 0:h.instructionCode,isEscalated:((g=f==null?void 0:f.detail)==null?void 0:g.isEscalated)??!1})},[a]);Ae(ue.INSTRUCTION_CHANGED,s);const[l,u]=B(V.LOADING),[d,c]=B(),_=fe(f=>{var g,v;u((g=f.detail)==null?void 0:g.appState);const h=(v=f==null?void 0:f.detail)==null?void 0:v.error;h&&c(h)},[u,c]);return Ae(ue.STATE_CHANGED,_),{cameraResolution:e,instruction:i,isMirroring:n,appState:l,error:d}}function Es(){const{appState:e,cameraResolution:t,error:n,instruction:r,isMirroring:o}=Ss(),i=r.code===H.CANDIDATE_SELECTION,{control:{showDetectionLayer:a},instructions:s}=ve();return e===V.ERROR?p(so,{text:n==null?void 0:n.message}):e===V.RUNNING&&t?p(W,{children:[a&&p(fs,{cameraResolution:t,isImageMirror:o}),p(bs,{isInCandidateSelection:i,placeholderRectangle:Wa(t)}),r.code&&p(ss,{cssTop:50,isInCandidateSelection:i,children:s[r.code]}),p(es,{customControlEvent:ue.CONTROL,isSwitchCameraDisabled:i})]}):p(ms,{cameraHeight:t==null?void 0:t.height,cameraWidth:t==null?void 0:t.width,state:e})}function $s(e){var s,l,u,d,c,_;const t={...Ea,...e==null?void 0:e.instructions},n={[V.LOADING]:{...oo.loading,...(s=e==null?void 0:e.appStateInstructions)==null?void 0:s.loading},[V.WAITING]:{...oo.waiting,...(l=e==null?void 0:e.appStateInstructions)==null?void 0:l.waiting}},r=Fa((u=e==null?void 0:e.styling)==null?void 0:u.theme),o={...e==null?void 0:e.styling,backdropColor:((d=e==null?void 0:e.styling)==null?void 0:d.backdropColor)??ba,theme:r},i={showDetectionLayer:((c=e==null?void 0:e.control)==null?void 0:c.showDetectionLayer)??!1,showCameraButtons:((_=e==null?void 0:e.control)==null?void 0:_.showCameraButtons)??!1},a=(e==null?void 0:e.placeholder)??$a;return{...e,instructions:t,appStateInstructions:n,placeholder:a,styling:o,control:i}}function ks({configuration:e}){const t=Ba(ue.VIDEO_ELEMENT_SIZE);return p(Ma,{uiConfiguration:$s(e),videoElementSize:t,children:p(Es,{})})}No(ks,"x-dot-palm-capture-ui",["configuration"])});
|