UNPKG

@innovatrics/dot-auto-capture-ui

Version:
41 lines (26 loc) 91.7 kB
(function(ie){typeof define=="function"&&define.amd?define(ie):ie()})((function(){"use strict";var ie,v,En,_e,wn,bn,$n,kn,Tt,xt,Rt,In,De={},Nn=[],bo=/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 At(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function D(e,t,n){var r,o,i,s={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?ie.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)s[i]===void 0&&(s[i]=e.defaultProps[i]);return He(e,s,r,o,null)}function He(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??++En,__i:-1,__u:0};return o==null&&v.vnode!=null&&v.vnode(i),i}function $o(){return{current:null}}function H(e){return e.children}function V(e,t){this.props=e,this.context=t}function we(e,t){if(t==null)return e.__?we(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"?we(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 Pt(e){(!e.__d&&(e.__d=!0)&&_e.push(e)&&!Qe.__r++||wn!=v.debounceRendering)&&((wn=v.debounceRendering)||bn)(Qe)}function Qe(){for(var e,t,n,r,o,i,s,a=1;_e.length;)_e.length>a&&_e.sort($n),e=_e.shift(),a=_e.length,e.__d&&(n=void 0,r=void 0,o=(r=(t=e).__v).__e,i=[],s=[],t.__P&&((n=q({},r)).__v=r.__v+1,v.vnode&&v.vnode(n),Lt(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[o]:null,i,o??we(r),!!(32&r.__u),s),n.__v=r.__v,n.__.__k[n.__i]=n,Pn(i,n,s),r.__e=r.__=null,n.__e!=o&&On(n)));Qe.__r=0}function Tn(e,t,n,r,o,i,s,a,u,l,d){var c,h,_,g,C,E,m,p=r&&r.__k||Nn,b=t.length;for(u=ko(n,t,p,u,b),c=0;c<b;c++)(_=n.__k[c])!=null&&(h=_.__i==-1?De:p[_.__i]||De,_.__i=c,E=Lt(e,_,h,o,i,s,a,u,l,d),g=_.__e,_.ref&&h.ref!=_.ref&&(h.ref&&Mt(h.ref,null,_),d.push(_.ref,_.__c||g,_)),C==null&&g!=null&&(C=g),(m=!!(4&_.__u))||h.__k===_.__k?u=xn(_,u,e,m):typeof _.type=="function"&&E!==void 0?u=E:g&&(u=g.nextSibling),_.__u&=-7);return n.__e=C,u}function ko(e,t,n,r,o){var i,s,a,u,l,d=n.length,c=d,h=0;for(e.__k=new Array(o),i=0;i<o;i++)(s=t[i])!=null&&typeof s!="boolean"&&typeof s!="function"?(typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?s=e.__k[i]=He(null,s,null,null,null):Me(s)?s=e.__k[i]=He(H,{children:s},null,null,null):s.constructor==null&&s.__b>0?s=e.__k[i]=He(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):e.__k[i]=s,u=i+h,s.__=e,s.__b=e.__b+1,a=null,(l=s.__i=Io(s,n,u,c))!=-1&&(c--,(a=n[l])&&(a.__u|=2)),a==null||a.__v==null?(l==-1&&(o>d?h--:o<d&&h++),typeof s.type!="function"&&(s.__u|=4)):l!=u&&(l==u-1?h--:l==u+1?h++:(l>u?h--:h++,s.__u|=4))):e.__k[i]=null;if(c)for(i=0;i<d;i++)(a=n[i])!=null&&(2&a.__u)==0&&(a.__e==r&&(r=we(a)),Dn(a,a));return r}function xn(e,t,n,r){var o,i;if(typeof e.type=="function"){for(o=e.__k,i=0;o&&i<o.length;i++)o[i]&&(o[i].__=e,t=xn(o[i],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=we(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 Io(e,t,n,r){var o,i,s,a=e.key,u=e.type,l=t[n],d=l!=null&&(2&l.__u)==0;if(l===null&&a==null||d&&a==l.key&&u==l.type)return n;if(r>(d?1:0)){for(o=n-1,i=n+1;o>=0||i<t.length;)if((l=t[s=o>=0?o--:i++])!=null&&(2&l.__u)==0&&a==l.key&&u==l.type)return s}return-1}function Rn(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||bo.test(t)?n:n+"px"}function Je(e,t,n,r,o){var i,s;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(kn,"$1")),s=t.toLowerCase(),t=s in e||t=="onFocusOut"||t=="onFocusIn"?s.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=Tt,e.addEventListener(t,i?Rt:xt,i)):e.removeEventListener(t,i?Rt:xt,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 An(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Tt++;else if(t.t<n.u)return;return n(v.event?v.event(t):t)}}}function Lt(e,t,n,r,o,i,s,a,u,l){var d,c,h,_,g,C,E,m,p,b,k,N,w,y,B,j,qe,z=t.type;if(t.constructor!=null)return null;128&n.__u&&(u=!!(32&n.__u),i=[a=t.__e=n.__e]),(d=v.__b)&&d(t);e:if(typeof z=="function")try{if(m=t.props,p="prototype"in z&&z.prototype.render,b=(d=z.contextType)&&r[d.__c],k=d?b?b.props.value:d.__:r,n.__c?E=(c=t.__c=n.__c).__=c.__E:(p?t.__c=c=new z(m,k):(t.__c=c=new V(m,k),c.constructor=z,c.render=Oo),b&&b.sub(c),c.state||(c.state={}),c.__n=r,h=c.__d=!0,c.__h=[],c._sb=[]),p&&c.__s==null&&(c.__s=c.state),p&&z.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=q({},c.__s)),q(c.__s,z.getDerivedStateFromProps(m,c.__s))),_=c.props,g=c.state,c.__v=t,h)p&&z.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),p&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(p&&z.getDerivedStateFromProps==null&&m!==_&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(m,k),t.__v==n.__v||!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(m,c.__s,k)===!1){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(fe){fe&&(fe.__=t)}),N=0;N<c._sb.length;N++)c.__h.push(c._sb[N]);c._sb=[],c.__h.length&&s.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(m,c.__s,k),p&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(_,g,C)})}if(c.context=k,c.props=m,c.__P=e,c.__e=!1,w=v.__r,y=0,p){for(c.state=c.__s,c.__d=!1,w&&w(t),d=c.render(c.props,c.state,c.context),B=0;B<c._sb.length;B++)c.__h.push(c._sb[B]);c._sb=[]}else do c.__d=!1,w&&w(t),d=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++y<25);c.state=c.__s,c.getChildContext!=null&&(r=q(q({},r),c.getChildContext())),p&&!h&&c.getSnapshotBeforeUpdate!=null&&(C=c.getSnapshotBeforeUpdate(_,g)),j=d,d!=null&&d.type===H&&d.key==null&&(j=Ln(d.props.children)),a=Tn(e,Me(j)?j:[j],t,n,r,o,i,s,a,u,l),c.base=t.__e,t.__u&=-161,c.__h.length&&s.push(c),E&&(c.__E=c.__=null)}catch(fe){if(t.__v=null,u||i!=null)if(fe.then){for(t.__u|=u?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;i[i.indexOf(a)]=null,t.__e=a}else{for(qe=i.length;qe--;)At(i[qe]);Dt(t)}else t.__e=n.__e,t.__k=n.__k,fe.then||Dt(t);v.__e(fe,t,n)}else i==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):a=t.__e=No(n.__e,t,n,r,o,i,s,u,l);return(d=v.diffed)&&d(t),128&t.__u?void 0:a}function Dt(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(Dt)}function Pn(e,t,n){for(var r=0;r<n.length;r++)Mt(n[r],n[++r],n[++r]);v.__c&&v.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){v.__e(i,o.__v)}})}function Ln(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:Me(e)?e.map(Ln):q({},e)}function No(e,t,n,r,o,i,s,a,u){var l,d,c,h,_,g,C,E=n.props||De,m=t.props,p=t.type;if(p=="svg"?o="http://www.w3.org/2000/svg":p=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(l=0;l<i.length;l++)if((_=i[l])&&"setAttribute"in _==!!p&&(p?_.localName==p:_.nodeType==3)){e=_,i[l]=null;break}}if(e==null){if(p==null)return document.createTextNode(m);e=document.createElementNS(o,p,m.is&&m),a&&(v.__m&&v.__m(t,i),a=!1),i=null}if(p==null)E===m||a&&e.data==m||(e.data=m);else{if(i=i&&ie.call(e.childNodes),!a&&i!=null)for(E={},l=0;l<e.attributes.length;l++)E[(_=e.attributes[l]).name]=_.value;for(l in E)if(_=E[l],l!="children"){if(l=="dangerouslySetInnerHTML")c=_;else if(!(l in m)){if(l=="value"&&"defaultValue"in m||l=="checked"&&"defaultChecked"in m)continue;Je(e,l,null,_,o)}}for(l in m)_=m[l],l=="children"?h=_:l=="dangerouslySetInnerHTML"?d=_:l=="value"?g=_:l=="checked"?C=_:a&&typeof _!="function"||E[l]===_||Je(e,l,_,E[l],o);if(d)a||c&&(d.__html==c.__html||d.__html==e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(c&&(e.innerHTML=""),Tn(t.type=="template"?e.content:e,Me(h)?h:[h],t,n,r,p=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,s,i?i[0]:n.__k&&we(n,0),a,u),i!=null)for(l=i.length;l--;)At(i[l]);a||(l="value",p=="progress"&&g==null?e.removeAttribute("value"):g!=null&&(g!==e[l]||p=="progress"&&!g||p=="option"&&g!=E[l])&&Je(e,l,g,E[l],o),l="checked",C!=null&&C!=e[l]&&Je(e,l,C,E[l],o))}return e}function Mt(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){v.__e(o,n)}}function Dn(e,t,n){var r,o;if(v.unmount&&v.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||Mt(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){v.__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||At(e.__e),e.__c=e.__=e.__e=void 0}function Oo(e,t,n){return this.constructor(e,n)}function se(e,t,n){var r,o,i,s;t==document&&(t=document.documentElement),v.__&&v.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],s=[],Lt(t,e=(!r&&n||t).__k=D(H,null,[e]),o||De,De,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?ie.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,s),Pn(i,e,s)}function Ht(e,t){se(e,t,Ht)}function Ut(e,t,n){var r,o,i,s,a=q({},e.props);for(i in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?o=t[i]:a[i]=t[i]===void 0&&s!=null?s[i]:t[i];return arguments.length>2&&(a.children=arguments.length>3?ie.call(arguments,2):n),He(e.type,a,r||e.key,o||e.ref,null)}function Mn(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(s){s.__e=!0,Pt(s)})},this.sub=function(i){r.add(i);var s=i.componentWillUnmount;i.componentWillUnmount=function(){r&&r.delete(i),s&&s.call(i)}}),n.children}return t.__c="__cC"+In++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,r){return n.children(r)}).contextType=t,t}ie=Nn.slice,v={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(a){e=a}throw e}},En=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),Pt(this))},V.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Pt(this))},V.prototype.render=H,_e=[],bn=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,$n=function(e,t){return e.__v.__b-t.__v.__b},Qe.__r=0,kn=/(PointerCapture)$|Capture$/i,Tt=0,xt=An(!1),Rt=An(!0),In=0;function et(){return et=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},et.apply(this,arguments)}function Hn(e,t){if(e==null)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}var To=["context","children"],xo=["useFragment"];function Ro(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=function(){Po.call(this,r)},o.prototype.attributeChangedCallback=Lo,o.prototype.disconnectedCallback=Do,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,e.formAssociated&&(o.formAssociated=!0),n.forEach(function(i){Object.defineProperty(o.prototype,i,{get:function(){return this._vdom?this._vdom.props[i]:this._props[i]},set:function(s){this._vdom?this.attributeChangedCallback(i,null,s):(this._props||(this._props={}),this._props[i]=s);var a=typeof s;s!=null&&a!=="string"&&a!=="boolean"&&a!=="number"||this.setAttribute(i,s)}})}),customElements.define(t,o),o}function Ao(e){this.getChildContext=function(){return e.context};var t=e.children,n=Hn(e,To);return Ut(t,n)}function Po(e){var t=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(t),this._vdom=D(Ao,et({},this._props,{context:t.detail.context}),Bn(this,this._vdomComponent,e)),(this.hasAttribute("hydrate")?Ht:se)(this._vdom,this._root)}function Un(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function Lo(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[Un(e)]=n,this._vdom=Ut(this._vdom,r),se(this._vdom,this._root)}}function Do(){se(this._vdom=null,this._root)}function Fn(e,t){var n=this,r=e.useFragment,o=Hn(e,xo);return D(r?H:"slot",et({},o,{ref:function(i){i?(n.ref=i,n._listener||(n._listener=function(s){s.stopPropagation(),s.detail.context=t},i.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function Bn(e,t,n){if(e.nodeType===3)return e.data;if(e.nodeType!==1)return null;var r=[],o={},i=0,s=e.attributes,a=e.childNodes;for(i=s.length;i--;)s[i].name!=="slot"&&(o[s[i].name]=s[i].value,o[Un(s[i].name)]=s[i].value);for(i=a.length;i--;){var u=Bn(a[i],null,n),l=a[i].slot;l?o[l]=D(Fn,{name:l},u):r[i]=u}var d=!(!n||!n.shadow),c=t?D(Fn,{useFragment:!d},r):r;return!d&&t&&(e.innerHTML=""),D(t||e.nodeName.toLowerCase(),o,c)}var Mo=0;function f(e,t,n,r,o,i){t||(t={});var s,a,u=t;if("ref"in u)for(a in u={},t)a=="ref"?s=t[a]:u[a]=t[a];var l={type:e,props:u,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Mo,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(s=e.defaultProps))for(a in s)u[a]===void 0&&(u[a]=s[a]);return v.vnode&&v.vnode(l),l}const Wn={SWITCH_CAMERA:"switch-camera",TOGGLE_MIRROR:"toggle-mirror"},Ue={CAMERA_PROPS_CHANGED:"smile-auto-capture:camera-props-changed",CONTROL:"smile-auto-capture:control",INSTRUCTION_CHANGED:"smile-auto-capture:instruction-changed",INSTRUCTION_ESCALATED:"smile-auto-capture:instruction-escalated",VIDEO_ELEMENT_SIZE:"smile-auto-capture:video-element-size",STATE_CHANGED:"smile-auto-capture:state-changed",PHASE_CHANGED:"smile-auto-capture:phase-changed"},P={LOADING:"loading",ERROR:"error",WAITING:"waiting",RUNNING:"running",COMPLETE:"complete",BLURRED:"blurred"},jn={EYE_NOT_PRESENT:"eye_not_present"},U={CANDIDATE_SELECTION:"candidate_selection",FACE_TOO_CLOSE:"face_too_close",FACE_TOO_FAR:"face_too_far",FACE_CENTERING:"face_centering",FACE_NOT_PRESENT:"face_not_present",SHARPNESS_TOO_LOW:"sharpness_too_low",BRIGHTNESS_TOO_LOW:"brightness_too_low",BRIGHTNESS_TOO_HIGH:"brightness_too_high",DEVICE_PITCHED:"device_pitched",LEFT_EYE_NOT_PRESENT:`left_${jn.EYE_NOT_PRESENT}`,RIGHT_EYE_NOT_PRESENT:`right_${jn.EYE_NOT_PRESENT}`,MOUTH_NOT_PRESENT:"mouth_not_present",MOUTH_SCORE_TOO_HIGH:"mouth_score_too_high",MOUTH_SCORE_TOO_LOW:"mouth_score_too_low"},Z={CANDIDATE_SELECTION:"candidate_selection",FACE_NOT_PRESENT:"face_not_present",SMILE:"smile",SMILE_CANDIDATE_SELECTION:"smile_candidate_selection",KEEP_NEUTRAL_EXPRESSION:"keep_neutral_expression"},tt={NEUTRAL:"NEUTRAL",SMILE:"SMILE"};var ae,O,Ft,zn,be=0,Gn=[],x=v,Vn=x.__b,Yn=x.__r,qn=x.diffed,Zn=x.__c,Xn=x.unmount,Kn=x.__;function $e(e,t){x.__h&&x.__h(O,e,be||t),be=0;var n=O.__H||(O.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function M(e){return be=1,Bt(tr,e)}function Bt(e,t,n){var r=$e(ae++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):tr(void 0,t),function(a){var u=r.__N?r.__N[0]:r.__[0],l=r.t(u,a);u!==l&&(r.__N=[l,r.__[1]],r.__c.setState({}))}],r.__c=O,!O.__f)){var o=function(a,u,l){if(!r.__c.__H)return!0;var d=r.__c.__H.__.filter(function(h){return!!h.__c});if(d.every(function(h){return!h.__N}))return!i||i.call(this,a,u,l);var c=r.__c.props!==a;return d.forEach(function(h){if(h.__N){var _=h.__[0];h.__=h.__N,h.__N=void 0,_!==h.__[0]&&(c=!0)}}),i&&i.call(this,a,u,l)||c};O.__f=!0;var i=O.shouldComponentUpdate,s=O.componentWillUpdate;O.componentWillUpdate=function(a,u,l){if(this.__e){var d=i;i=void 0,o(a,u,l),i=d}s&&s.call(this,a,u,l)},O.shouldComponentUpdate=o}return r.__N||r.__}function X(e,t){var n=$e(ae++,3);!x.__s&&jt(n.__H,t)&&(n.__=e,n.u=t,O.__H.__h.push(n))}function ke(e,t){var n=$e(ae++,4);!x.__s&&jt(n.__H,t)&&(n.__=e,n.u=t,O.__h.push(n))}function nt(e){return be=5,ee(function(){return{current:e}},[])}function Qn(e,t,n){be=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 jt(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function ce(e,t){return be=8,ee(function(){return e},t)}function Fe(e){var t=O.context[e.__c],n=$e(ae++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(O)),t.props.value):e.__}function rt(e,t){x.useDebugValue&&x.useDebugValue(t?t(e):e)}function Jn(){var e=$e(ae++,11);if(!e.__){for(var t=O.__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 Ho(){for(var e;e=Gn.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ot),e.__H.__h.forEach(Wt),e.__H.__h=[]}catch(t){e.__H.__h=[],x.__e(t,e.__v)}}x.__b=function(e){O=null,Vn&&Vn(e)},x.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Kn&&Kn(e,t)},x.__r=function(e){Yn&&Yn(e),ae=0;var t=(O=e.__c).__H;t&&(Ft===O?(t.__h=[],O.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach(ot),t.__h.forEach(Wt),t.__h=[],ae=0)),Ft=O},x.diffed=function(e){qn&&qn(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Gn.push(t)!==1&&zn===x.requestAnimationFrame||((zn=x.requestAnimationFrame)||Uo)(Ho)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),Ft=O=null},x.__c=function(e,t){t.some(function(n){try{n.__h.forEach(ot),n.__h=n.__h.filter(function(r){return!r.__||Wt(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],x.__e(r,n.__v)}}),Zn&&Zn(e,t)},x.unmount=function(e){Xn&&Xn(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{ot(r)}catch(o){t=o}}),n.__H=void 0,t&&x.__e(t,n.__v))};var er=typeof requestAnimationFrame=="function";function Uo(e){var t,n=function(){clearTimeout(r),er&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);er&&(t=requestAnimationFrame(n))}function ot(e){var t=O,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),O=t}function Wt(e){var t=O;e.__c=e.__(),O=t}function jt(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function tr(e,t){return typeof t=="function"?t(e):t}var L=function(){return L=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},L.apply(this,arguments)};function he(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 Fo(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Bo=/^((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)-.*))$/,Wo=Fo(function(e){return Bo.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function nr(e,t){for(var n in t)e[n]=t[n];return e}function zt(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 rr(e,t){var n=t(),r=M({t:{__:n,u:t}}),o=r[0].t,i=r[1];return ke(function(){o.__=n,o.u=t,Gt(o)&&i({t:o})},[e,n,t]),X(function(){return Gt(o)&&i({t:o}),e(function(){Gt(o)&&i({t:o})})},[e]),n}function Gt(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 or(e){e()}function ir(e){return e}function sr(){return[!1,or]}var ar=ke;function Vt(e,t){this.props=e,this.context=t}function jo(e,t){function n(o){var i=this.props.ref,s=i==o.ref;return!s&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!s:zt(this.props,o)}function r(o){return this.shouldComponentUpdate=n,D(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r.type=e,r}(Vt.prototype=new V).isPureReactComponent=!0,Vt.prototype.shouldComponentUpdate=function(e,t){return zt(this.props,e)||zt(this.state,t)};var cr=v.__b;v.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),cr&&cr(e)};var zo=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Go(e){function t(n){var r=nr({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=zo,t.render=e,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var lr=function(e,t){return e==null?null:J(J(e).map(t))},Vo={map:lr,forEach:lr,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},Yo=v.__e;v.__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)}Yo(e,t,n,r)};var ur=v.unmount;function fr(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=nr({},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 fr(r,t,n)})),e}function dr(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return dr(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 it(){this.__u=0,this.o=null,this.__b=null}function _r(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function qo(e){var t,n,r,o=null;function i(s){if(t||(t=e()).then(function(a){a&&(o=a.default||a),r=!0},function(a){n=a,r=!0}),n)throw n;if(!r)throw t;return o?D(o,s):null}return i.displayName="Lazy",i.__f=!0,i}function Be(){this.i=null,this.l=null}v.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),ur&&ur(e)},(it.prototype=new V).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var o=_r(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(a):a())};n.__R=s;var a=function(){if(!--r.__u){if(r.state.__a){var u=r.state.__a;r.__v.__k[0]=dr(u,u.__c.__P,u.__c.__O)}var l;for(r.setState({__a:r.__b=null});l=r.o.pop();)l.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},it.prototype.componentWillUnmount=function(){this.o=[]},it.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]=fr(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&D(H,null,e.fallback);return o&&(o.__u&=-33),[D(H,null,t.__a?null:e.children),o]};var hr=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 Xo(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){se(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},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)}}}se(D(Zo,{context:t.context},e.__v),t.v)}function Ko(e,t){var n=D(Xo,{__v:e,h:t});return n.containerInfo=t,n}(Be.prototype=new V).__a=function(e){var t=this,n=_r(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),hr(t,e,r)):o()};n?n(i):i()}},Be.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},Be.prototype.componentDidUpdate=Be.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){hr(e,n,t)})};var pr=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Qo=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Jo=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ei=/[A-Z0-9]/g,ti=typeof document<"u",ni=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function ri(e,t,n){return t.__k==null&&(t.textContent=""),se(e,t),typeof n=="function"&&n(),e?e.__c:null}function oi(e,t,n){return Ht(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 mr=v.event;function ii(){}function si(){return this.cancelBubble}function ai(){return this.defaultPrevented}v.event=function(e){return mr&&(e=mr(e)),e.persist=ii,e.isPropagationStopped=si,e.isDefaultPrevented=ai,e.nativeEvent=e};var Yt,ci={enumerable:!1,configurable:!0,get:function(){return this.class}},gr=v.vnode;v.vnode=function(e){typeof e.type=="string"&&(function(t){var n=t.props,r=t.type,o={},i=r.indexOf("-")===-1;for(var s in n){var a=n[s];if(!(s==="value"&&"defaultValue"in n&&a==null||ti&&s==="children"&&r==="noscript"||s==="class"||s==="className")){var u=s.toLowerCase();s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&a===!0?a="":u==="translate"&&a==="no"?a=!1:u[0]==="o"&&u[1]==="n"?u==="ondoubleclick"?s="ondblclick":u!=="onchange"||r!=="input"&&r!=="textarea"||ni(n.type)?u==="onfocus"?s="onfocusin":u==="onblur"?s="onfocusout":Jo.test(s)&&(s=u):u=s="oninput":i&&Qo.test(s)?s=s.replace(ei,"-$&").toLowerCase():a===null&&(a=void 0),u==="oninput"&&o[s=u]&&(s="oninputCapture"),o[s]=a}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=J(n.children).forEach(function(l){l.props.selected=o.value.indexOf(l.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=J(n.children).forEach(function(l){l.props.selected=o.multiple?o.defaultValue.indexOf(l.props.value)!=-1:o.defaultValue==l.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",ci)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o})(e),e.$$typeof=pr,gr&&gr(e)};var yr=v.__r;v.__r=function(e){yr&&yr(e),Yt=e.__c};var vr=v.diffed;v.diffed=function(e){vr&&vr(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),Yt=null};var li={ReactCurrentDispatcher:{current:{readContext:function(e){return Yt.__n[e.__c].props.value},useCallback:ce,useContext:Fe,useDebugValue:rt,useDeferredValue:ir,useEffect:X,useId:Jn,useImperativeHandle:Qn,useInsertionEffect:ar,useLayoutEffect:ke,useMemo:ee,useReducer:Bt,useRef:nt,useState:M,useSyncExternalStore:rr,useTransition:sr}}};function ui(e){return D.bind(null,e)}function st(e){return!!e&&e.$$typeof===pr}function fi(e){return st(e)&&e.type===H}function di(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function _i(e){return st(e)?Ut.apply(null,arguments):e}function hi(e){return!!e.__k&&(se(null,e),!0)}function pi(e){return e&&(e.base||e.nodeType===1&&e)||null}var mi=function(e,t){return e(t)},gi=function(e,t){return e(t)},yi=H,vi=st,te={useState:M,useId:Jn,useReducer:Bt,useEffect:X,useLayoutEffect:ke,useInsertionEffect:ar,useTransition:sr,useDeferredValue:ir,useSyncExternalStore:rr,startTransition:or,useRef:nt,useImperativeHandle:Qn,useMemo:ee,useCallback:ce,useContext:Fe,useDebugValue:rt,version:"18.3.1",Children:Vo,render:ri,hydrate:oi,unmountComponentAtNode:hi,createPortal:Ko,createElement:D,createContext:Mn,createFactory:ui,cloneElement:_i,createRef:$o,Fragment:H,isValidElement:st,isElement:vi,isFragment:fi,isMemo:di,findDOMNode:pi,Component:V,PureComponent:Vt,memo:jo,forwardRef:Go,flushSync:gi,unstable_batchedUpdates:mi,StrictMode:yi,Suspense:it,SuspenseList:Be,lazy:qo,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:li};function Ci(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qt,Cr;function Si(){return Cr||(Cr=1,qt=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 s=Object.keys(t),a=Object.keys(n);if(s.length!==a.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(n),l=0;l<s.length;l++){var d=s[l];if(!u(d))return!1;var c=t[d],h=n[d];if(i=r?r.call(o,c,h,d):void 0,i===!1||i===void 0&&c!==h)return!1}return!0}),qt}var Ei=Si();const wi=Ci(Ei);var T="-ms-",We="-moz-",I="-webkit-",Sr="comm",at="rule",Zt="decl",bi="@import",Er="@keyframes",$i="@layer",wr=Math.abs,Xt=String.fromCharCode,Kt=Object.assign;function ki(e,t){return A(e,0)^45?(((t<<2^A(e,0))<<2^A(e,1))<<2^A(e,2))<<2^A(e,3):0}function br(e){return e.trim()}function ne(e,t){return(e=t.exec(e))?e[0]:e}function S(e,t,n){return e.replace(t,n)}function ct(e,t,n){return e.indexOf(t,n)}function A(e,t){return e.charCodeAt(t)|0}function Ie(e,t,n){return e.slice(t,n)}function K(e){return e.length}function $r(e){return e.length}function je(e,t){return t.push(e),e}function Ii(e,t){return e.map(t).join("")}function kr(e,t){return e.filter(function(n){return!ne(n,t)})}var lt=1,Ne=1,Ir=0,W=0,R=0,Oe="";function ut(e,t,n,r,o,i,s,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:lt,column:Ne,length:s,return:"",siblings:a}}function le(e,t){return Kt(ut("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Te(e){for(;e.root;)e=le(e.root,{children:[e]});je(e,e.siblings)}function Ni(){return R}function Oi(){return R=W>0?A(Oe,--W):0,Ne--,R===10&&(Ne=1,lt--),R}function Y(){return R=W<Ir?A(Oe,W++):0,Ne++,R===10&&(Ne=1,lt++),R}function pe(){return A(Oe,W)}function ft(){return W}function dt(e,t){return Ie(Oe,e,t)}function Qt(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 Ti(e){return lt=Ne=1,Ir=K(Oe=e),W=0,[]}function xi(e){return Oe="",e}function Jt(e){return br(dt(W-1,en(e===91?e+2:e===40?e+1:e)))}function Ri(e){for(;(R=pe())&&R<33;)Y();return Qt(e)>2||Qt(R)>3?"":" "}function Ai(e,t){for(;--t&&Y()&&!(R<48||R>102||R>57&&R<65||R>70&&R<97););return dt(e,ft()+(t<6&&pe()==32&&Y()==32))}function en(e){for(;Y();)switch(R){case e:return W;case 34:case 39:e!==34&&e!==39&&en(R);break;case 40:e===41&&en(e);break;case 92:Y();break}return W}function Pi(e,t){for(;Y()&&e+R!==57;)if(e+R===84&&pe()===47)break;return"/*"+dt(t,W-1)+"*"+Xt(e===47?e:Y())}function Li(e){for(;!Qt(pe());)Y();return dt(e,W)}function Di(e){return xi(_t("",null,null,null,[""],e=Ti(e),0,[0],e))}function _t(e,t,n,r,o,i,s,a,u){for(var l=0,d=0,c=s,h=0,_=0,g=0,C=1,E=1,m=1,p=0,b="",k=o,N=i,w=r,y=b;E;)switch(g=p,p=Y()){case 40:if(g!=108&&A(y,c-1)==58){ct(y+=S(Jt(p),"&","&\f"),"&\f",wr(l?a[l-1]:0))!=-1&&(m=-1);break}case 34:case 39:case 91:y+=Jt(p);break;case 9:case 10:case 13:case 32:y+=Ri(g);break;case 92:y+=Ai(ft()-1,7);continue;case 47:switch(pe()){case 42:case 47:je(Mi(Pi(Y(),ft()),t,n,u),u);break;default:y+="/"}break;case 123*C:a[l++]=K(y)*m;case 125*C:case 59:case 0:switch(p){case 0:case 125:E=0;case 59+d:m==-1&&(y=S(y,/\f/g,"")),_>0&&K(y)-c&&je(_>32?Or(y+";",r,n,c-1,u):Or(S(y," ","")+";",r,n,c-2,u),u);break;case 59:y+=";";default:if(je(w=Nr(y,t,n,l,d,o,a,b,k=[],N=[],c,i),i),p===123)if(d===0)_t(y,t,w,w,k,i,c,a,N);else switch(h===99&&A(y,3)===110?100:h){case 100:case 108:case 109:case 115:_t(e,w,w,r&&je(Nr(e,w,w,0,0,o,a,b,o,k=[],c,N),N),o,N,c,a,r?k:N);break;default:_t(y,w,w,w,[""],N,0,a,N)}}l=d=_=0,C=m=1,b=y="",c=s;break;case 58:c=1+K(y),_=g;default:if(C<1){if(p==123)--C;else if(p==125&&C++==0&&Oi()==125)continue}switch(y+=Xt(p),p*C){case 38:m=d>0?1:(y+="\f",-1);break;case 44:a[l++]=(K(y)-1)*m,m=1;break;case 64:pe()===45&&(y+=Jt(Y())),h=pe(),d=c=K(b=y+=Li(ft())),p++;break;case 45:g===45&&K(y)==2&&(C=0)}}return i}function Nr(e,t,n,r,o,i,s,a,u,l,d,c){for(var h=o-1,_=o===0?i:[""],g=$r(_),C=0,E=0,m=0;C<r;++C)for(var p=0,b=Ie(e,h+1,h=wr(E=s[C])),k=e;p<g;++p)(k=br(E>0?_[p]+" "+b:S(b,/&\f/g,_[p])))&&(u[m++]=k);return ut(e,t,n,o===0?at:a,u,l,d,c)}function Mi(e,t,n,r){return ut(e,t,n,Sr,Xt(Ni()),Ie(e,2,-2),0,r)}function Or(e,t,n,r,o){return ut(e,t,n,Zt,Ie(e,0,r),Ie(e,r+1,-1),r,o)}function Tr(e,t,n){switch(ki(e,t)){case 5103:return I+"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 I+e+e;case 4789:return We+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return I+e+We+e+T+e+e;case 5936:switch(A(e,t+11)){case 114:return I+e+T+S(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return I+e+T+S(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return I+e+T+S(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return I+e+T+e+e;case 6165:return I+e+T+"flex-"+e+e;case 5187:return I+e+S(e,/(\w+).+(:[^]+)/,I+"box-$1$2"+T+"flex-$1$2")+e;case 5443:return I+e+T+"flex-item-"+S(e,/flex-|-self/g,"")+(ne(e,/flex-|baseline/)?"":T+"grid-row-"+S(e,/flex-|-self/g,""))+e;case 4675:return I+e+T+"flex-line-pack"+S(e,/align-content|flex-|-self/g,"")+e;case 5548:return I+e+T+S(e,"shrink","negative")+e;case 5292:return I+e+T+S(e,"basis","preferred-size")+e;case 6060:return I+"box-"+S(e,"-grow","")+I+e+T+S(e,"grow","positive")+e;case 4554:return I+S(e,/([^-])(transform)/g,"$1"+I+"$2")+e;case 6187:return S(S(S(e,/(zoom-|grab)/,I+"$1"),/(image-set)/,I+"$1"),e,"")+e;case 5495:case 3959:return S(e,/(image-set\([^]*)/,I+"$1$`$1");case 4968:return S(S(e,/(.+:)(flex-)?(.*)/,I+"box-pack:$3"+T+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+I+e+e;case 4200:if(!ne(e,/flex-|baseline/))return T+"grid-column-align"+Ie(e,t)+e;break;case 2592:case 3360:return T+S(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,ne(r.props,/grid-\w+-end/)})?~ct(e+(n=n[t].value),"span",0)?e:T+S(e,"-start","")+e+T+"grid-row-span:"+(~ct(n,"span",0)?ne(n,/\d+/):+ne(n,/\d+/)-+ne(e,/\d+/))+";":T+S(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return ne(r.props,/grid-\w+-start/)})?e:T+S(S(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return S(e,/(.+)-inline(.+)/,I+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(K(e)-1-t>6)switch(A(e,t+1)){case 109:if(A(e,t+4)!==45)break;case 102:return S(e,/(.+:)(.+)-([^]+)/,"$1"+I+"$2-$3$1"+We+(A(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ct(e,"stretch",0)?Tr(S(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return S(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,i,s,a,u,l){return T+o+":"+i+l+(s?T+o+"-span:"+(a?u:+u-+i)+l:"")+e});case 4949:if(A(e,t+6)===121)return S(e,":",":"+I)+e;break;case 6444:switch(A(e,A(e,14)===45?18:11)){case 120:return S(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+I+(A(e,14)===45?"inline-":"")+"box$3$1"+I+"$2$3$1"+T+"$2box$3")+e;case 100:return S(e,":",":"+T)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return S(e,"scroll-","scroll-snap-")+e}return e}function ht(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Hi(e,t,n,r){switch(e.type){case $i:if(e.children.length)break;case bi:case Zt:return e.return=e.return||e.value;case Sr:return"";case Er:return e.return=e.value+"{"+ht(e.children,r)+"}";case at:if(!K(e.value=e.props.join(",")))return""}return K(n=ht(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ui(e){var t=$r(e);return function(n,r,o,i){for(var s="",a=0;a<t;a++)s+=e[a](n,r,o,i)||"";return s}}function Fi(e){return function(t){t.root||(t=t.return)&&e(t)}}function Bi(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 Er:return ht([le(e,{value:S(e.value,"@","@"+I)})],r);case at:if(e.length)return Ii(n=e.props,function(o){switch(ne(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Te(le(e,{props:[S(o,/:(read-\w+)/,":"+We+"$1")]})),Te(le(e,{props:[o]})),Kt(e,{props:kr(n,r)});break;case"::placeholder":Te(le(e,{props:[S(o,/:(plac\w+)/,":"+I+"input-$1")]})),Te(le(e,{props:[S(o,/:(plac\w+)/,":"+We+"$1")]})),Te(le(e,{props:[S(o,/:(plac\w+)/,T+"input-$1")]})),Te(le(e,{props:[o]})),Kt(e,{props:kr(n,r)});break}return""})}}var Wi={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},$={},me=typeof process<"u"&&$!==void 0&&($.REACT_APP_SC_ATTR||$.SC_ATTR)||"data-styled",xr="active",Rr="data-styled-version",pt="6.1.19",tn=`/*!sc*/ `,mt=typeof window<"u"&&typeof document<"u",ji=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&$!==void 0&&$.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&$.REACT_APP_SC_DISABLE_SPEEDY!==""?$.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&$.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&$!==void 0&&$.SC_DISABLE_SPEEDY!==void 0&&$.SC_DISABLE_SPEEDY!==""?$.SC_DISABLE_SPEEDY!=="false"&&$.SC_DISABLE_SPEEDY:$.NODE_ENV!=="production"),Ar=/invalid hook call/i,gt=new Set,zi=function(e,t){if($.NODE_ENV!=="production"){var n=t?' with the id of "'.concat(t,'"'):"",r="The component ".concat(e).concat(n,` has been created dynamically. `)+`You may see this warning because you've called styled inside another component. To resolve this only create new StyledComponents outside of any render method and function component. See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info. `,o=console.error;try{var i=!0;console.error=function(s){for(var a=[],u=1;u<arguments.length;u++)a[u-1]=arguments[u];Ar.test(s)?(i=!1,gt.delete(r)):o.apply(void 0,he([s],a,!1))},nt(),i&&!gt.has(r)&&(console.warn(r),gt.add(r))}catch(s){Ar.test(s.message)&&gt.delete(r)}finally{console.error=o}}},yt=Object.freeze([]),xe=Object.freeze({});function Gi(e,t,n){return n===void 0&&(n=xe),e.theme!==n.theme&&e.theme||t||n.theme}var nn=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"]),Vi=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Yi=/(^-|-$)/g;function Pr(e){return e.replace(Vi,"-").replace(Yi,"")}var qi=/(a)(d)/gi,vt=52,Lr=function(e){return String.fromCharCode(e+(e>25?39:97))};function rn(e){var t,n="";for(t=Math.abs(e);t>vt;t=t/vt|0)n=Lr(t%vt)+n;return(Lr(t%vt)+n).replace(qi,"$1-$2")}var on,Dr=5381,ge=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Mr=function(e){return ge(Dr,e)};function Hr(e){return rn(Mr(e)>>>0)}function Ur(e){return $.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function sn(e){return typeof e=="string"&&($.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var Fr=typeof Symbol=="function"&&Symbol.for,Br=Fr?Symbol.for("react.memo"):60115,Zi=Fr?Symbol.for("react.forward_ref"):60112,Xi={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ki={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Wr={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Qi=((on={})[Zi]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},on[Br]=Wr,on);function jr(e){return("type"in(t=e)&&t.type.$$typeof)===Br?Wr:"$$typeof"in e?Qi[e.$$typeof]:Xi;var t}var Ji=Object.defineProperty,es=Object.getOwnPropertyNames,zr=Object.getOwnPropertySymbols,ts=Object.getOwnPropertyDescriptor,ns=Object.getPrototypeOf,Gr=Object.prototype;function Vr(e,t,n){if(typeof t!="string"){if(Gr){var r=ns(t);r&&r!==Gr&&Vr(e,r,n)}var o=es(t);zr&&(o=o.concat(zr(t)));for(var i=jr(e),s=jr(t),a=0;a<o.length;++a){var u=o[a];if(!(u in Ki||n&&n[u]||s&&u in s||i&&u in i)){var l=ts(t,u);try{Ji(e,u,l)}catch{}}}}return e}function ye(e){return typeof e=="function"}function an(e){return typeof e=="object"&&"styledComponentId"in e}function ve(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function cn(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function Re(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function ln(e,t,n){if(n===void 0&&(n=!1),!n&&!Re(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=ln(e[r],t[r]);else if(Re(t))for(var r in t)e[r]=ln(e[r],t[r]);return e}function un(e,t){Object.defineProperty(e,"toString",{value:t})}var rs=$.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s. `,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. - Are you trying to reuse it across renders? - Are you accidentally calling collectStyles twice? `,3:`Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser. `,4:`The \`StyleSheetManager\` expects a valid target or sheet prop! - Does this error occur on the client and is your target falsy? - Does this error occur on the server and is the sheet falsy? `,5:`The clone method cannot be used on the client! - Are you running in a client-like environment on the server? - Are you trying to run SSR on the client? `,6:`Trying to insert a new style tag, but the given Node is unmounted! - Are you using a custom target that isn't mounted? - Does your document not have a valid head element? - Have you accidentally removed a style tag manually? `,7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:`ThemeProvider: Please make your "theme" prop an object. `,9:"Missing document `<head>`\n\n",10:`Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021 `,11:`_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements. `,12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:`%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details. `,14:`ThemeProvider: "theme" prop is required. `,15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}