scanbot-web-sdk
Version:
Scanbot Web Document and Barcode Scanner SDK
31 lines (29 loc) • 849 kB
JavaScript
/*! For license information please see ScanbotSDK.min.js.LICENSE.txt */
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var i in n)("object"==typeof exports?exports:e)[i]=n[i]}}(window,(function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=50)}([function(e,t,n){"use strict";n.r(t),n.d(t,"Component",(function(){return A})),n.d(t,"Fragment",(function(){return b})),n.d(t,"createContext",(function(){return Z})),n.d(t,"createElement",(function(){return v})),n.d(t,"createRef",(function(){return y})),n.d(t,"useCallback",(function(){return fe})),n.d(t,"useContext",(function(){return pe})),n.d(t,"useDebugValue",(function(){return ge})),n.d(t,"useEffect",(function(){return le})),n.d(t,"useErrorBoundary",(function(){return ve})),n.d(t,"useId",(function(){return Ce})),n.d(t,"useImperativeHandle",(function(){return me})),n.d(t,"useLayoutEffect",(function(){return ue})),n.d(t,"useMemo",(function(){return he})),n.d(t,"useReducer",(function(){return ce})),n.d(t,"useRef",(function(){return de})),n.d(t,"useState",(function(){return se})),n.d(t,"Children",(function(){return _e})),n.d(t,"PureComponent",(function(){return Be})),n.d(t,"StrictMode",(function(){return bt})),n.d(t,"Suspense",(function(){return Ve})),n.d(t,"SuspenseList",(function(){return je})),n.d(t,"__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",(function(){return ut})),n.d(t,"cloneElement",(function(){return pt})),n.d(t,"createFactory",(function(){return mt})),n.d(t,"createPortal",(function(){return Ge})),n.d(t,"default",(function(){return Bt})),n.d(t,"findDOMNode",(function(){return vt})),n.d(t,"flushSync",(function(){return yt})),n.d(t,"forwardRef",(function(){return Le})),n.d(t,"hydrate",(function(){return et})),n.d(t,"isElement",(function(){return xt})),n.d(t,"isFragment",(function(){return ft})),n.d(t,"isValidElement",(function(){return ht})),n.d(t,"lazy",(function(){return ze})),n.d(t,"memo",(function(){return Ie})),n.d(t,"render",(function(){return $e})),n.d(t,"startTransition",(function(){return At})),n.d(t,"unmountComponentAtNode",(function(){return gt})),n.d(t,"unstable_batchedUpdates",(function(){return Ct})),n.d(t,"useDeferredValue",(function(){return St})),n.d(t,"useInsertionEffect",(function(){return Et})),n.d(t,"useSyncExternalStore",(function(){return Dt})),n.d(t,"useTransition",(function(){return wt})),n.d(t,"version",(function(){return dt}));var i,o,r,a,s,c,l,u,d={},m=[],h=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,f=Array.isArray;function p(e,t){for(var n in t)e[n]=t[n];return e}function g(e){var t=e.parentNode;t&&t.removeChild(e)}function v(e,t,n){var o,r,a,s={};for(a in t)"key"==a?o=t[a]:"ref"==a?r=t[a]:s[a]=t[a];if(arguments.length>2&&(s.children=arguments.length>3?i.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===s[a]&&(s[a]=e.defaultProps[a]);return C(e,s,o,r,null)}function C(e,t,n,i,a){var s={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==a?++r:a,__i:-1,__u:0};return null==a&&null!=o.vnode&&o.vnode(s),s}function y(){return{current:null}}function b(e){return e.children}function A(e,t){this.props=e,this.context=t}function S(e,t){if(null==t)return e.__?S(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?S(e):null}function w(e,t,n){var i,r=e.__v,a=r.__e,s=e.__P;if(s)return(i=p({},r)).__v=r.__v+1,o.vnode&&o.vnode(i),F(s,i,r,e.__n,void 0!==s.ownerSVGElement,32&r.__u?[a]:null,t,null==a?S(r):a,!!(32&r.__u),n),i.__v=r.__v,i.__.__k[i.__i]=i,i.__d=void 0,i.__e!=a&&E(i),i}function E(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return E(e)}}function x(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!D.__r++||s!==o.debounceRendering)&&((s=o.debounceRendering)||c)(D)}function D(){var e,t,n,i=[],r=[];for(a.sort(l);e=a.shift();)e.__d&&(n=a.length,t=w(e,i,r)||t,0===n||a.length>n?(N(i,t,r),r.length=i.length=0,t=void 0,a.sort(l)):t&&o.__c&&o.__c(t,m));t&&N(i,t,r),D.__r=0}function T(e,t,n,i,o,r,a,s,c,l,u){var h,f,p,g,v,C=i&&i.__k||m,y=t.length;for(n.__d=c,B(n,t,C),c=n.__d,h=0;h<y;h++)null!=(p=n.__k[h])&&"boolean"!=typeof p&&"function"!=typeof p&&(f=-1===p.__i?d:C[p.__i]||d,p.__i=h,F(e,p,f,o,r,a,s,c,l,u),g=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&V(f.ref,null,p),u.push(p.ref,p.__c||g,p)),null==v&&null!=g&&(v=g),65536&p.__u||f.__k===p.__k?c=I(p,c,e):"function"==typeof p.type&&void 0!==p.__d?c=p.__d:g&&(c=g.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=c,n.__e=v}function B(e,t,n){var i,o,r,a,s,c=t.length,l=n.length,u=l,d=0;for(e.__k=[],i=0;i<c;i++)null!=(o=e.__k[i]=null==(o=t[i])||"boolean"==typeof o||"function"==typeof o?null:"string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?C(null,o,null,null,o):f(o)?C(b,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?C(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,s=k(o,n,a=i+d,u),o.__i=s,r=null,-1!==s&&(u--,(r=n[s])&&(r.__u|=131072)),null==r||null===r.__v?(-1==s&&d--,"function"!=typeof o.type&&(o.__u|=65536)):s!==a&&(s===a+1?d++:s>a?u>c-a?d+=s-a:d--:d=s<a&&s==a-1?s-a:0,s!==i+d&&(o.__u|=65536))):(r=n[i])&&null==r.key&&r.__e&&0==(131072&r.__u)&&(r.__e==e.__d&&(e.__d=S(r)),W(r,r,!1),n[i]=null,u--);if(u)for(i=0;i<l;i++)null!=(r=n[i])&&0==(131072&r.__u)&&(r.__e==e.__d&&(e.__d=S(r)),W(r,r))}function I(e,t,n){var i,o;if("function"==typeof e.type){for(i=e.__k,o=0;i&&o<i.length;o++)i[o]&&(i[o].__=e,t=I(i[o],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function O(e,t){return t=t||[],null==e||"boolean"==typeof e||(f(e)?e.some((function(e){O(e,t)})):t.push(e)),t}function k(e,t,n,i){var o=e.key,r=e.type,a=n-1,s=n+1,c=t[n];if(null===c||c&&o==c.key&&r===c.type)return n;if(i>(null!=c&&0==(131072&c.__u)?1:0))for(;a>=0||s<t.length;){if(a>=0){if((c=t[a])&&0==(131072&c.__u)&&o==c.key&&r===c.type)return a;a--}if(s<t.length){if((c=t[s])&&0==(131072&c.__u)&&o==c.key&&r===c.type)return s;s++}}return-1}function L(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||h.test(t)?n:n+"px"}function P(e,t,n,i,o){var r;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof i&&(e.style.cssText=i=""),i)for(t in i)n&&t in n||L(e.style,t,"");if(n)for(t in n)i&&n[t]===i[t]||L(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])r=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+r]=n,n?i?n.u=i.u:(n.u=Date.now(),e.addEventListener(t,r?R:_,r)):e.removeEventListener(t,r?R:_,r);else{if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&"role"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function _(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(o.event?o.event(e):e)}}function R(e){if(this.l)return this.l[e.type+!0](o.event?o.event(e):e)}function F(e,t,n,i,r,a,s,c,l,u){var d,m,h,g,v,C,y,S,w,E,x,D,B,I,O,k=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(l=!!(32&n.__u),a=[c=t.__e=n.__e]),(d=o.__b)&&d(t);e:if("function"==typeof k)try{if(S=t.props,w=(d=k.contextType)&&i[d.__c],E=d?w?w.props.value:d.__:i,n.__c?y=(m=t.__c=n.__c).__=m.__E:("prototype"in k&&k.prototype.render?t.__c=m=new k(S,E):(t.__c=m=new A(S,E),m.constructor=k,m.render=z),w&&w.sub(m),m.props=S,m.state||(m.state={}),m.context=E,m.__n=i,h=m.__d=!0,m.__h=[],m._sb=[]),null==m.__s&&(m.__s=m.state),null!=k.getDerivedStateFromProps&&(m.__s==m.state&&(m.__s=p({},m.__s)),p(m.__s,k.getDerivedStateFromProps(S,m.__s))),g=m.props,v=m.state,m.__v=t,h)null==k.getDerivedStateFromProps&&null!=m.componentWillMount&&m.componentWillMount(),null!=m.componentDidMount&&m.__h.push(m.componentDidMount);else{if(null==k.getDerivedStateFromProps&&S!==g&&null!=m.componentWillReceiveProps&&m.componentWillReceiveProps(S,E),!m.__e&&(null!=m.shouldComponentUpdate&&!1===m.shouldComponentUpdate(S,m.__s,E)||t.__v===n.__v)){for(t.__v!==n.__v&&(m.props=S,m.state=m.__s,m.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),x=0;x<m._sb.length;x++)m.__h.push(m._sb[x]);m._sb=[],m.__h.length&&s.push(m);break e}null!=m.componentWillUpdate&&m.componentWillUpdate(S,m.__s,E),null!=m.componentDidUpdate&&m.__h.push((function(){m.componentDidUpdate(g,v,C)}))}if(m.context=E,m.props=S,m.__P=e,m.__e=!1,D=o.__r,B=0,"prototype"in k&&k.prototype.render){for(m.state=m.__s,m.__d=!1,D&&D(t),d=m.render(m.props,m.state,m.context),I=0;I<m._sb.length;I++)m.__h.push(m._sb[I]);m._sb=[]}else do{m.__d=!1,D&&D(t),d=m.render(m.props,m.state,m.context),m.state=m.__s}while(m.__d&&++B<25);m.state=m.__s,null!=m.getChildContext&&(i=p(p({},i),m.getChildContext())),h||null==m.getSnapshotBeforeUpdate||(C=m.getSnapshotBeforeUpdate(g,v)),T(e,f(O=null!=d&&d.type===b&&null==d.key?d.props.children:d)?O:[O],t,n,i,r,a,s,c,l,u),m.base=t.__e,t.__u&=-161,m.__h.length&&s.push(m),y&&(m.__E=m.__=null)}catch(e){t.__v=null,l||null!=a?(t.__e=c,t.__u|=l?160:32,a[a.indexOf(c)]=null):(t.__e=n.__e,t.__k=n.__k),o.__e(e,t,n)}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=M(n.__e,t,n,i,r,a,s,l,u);(d=o.diffed)&&d(t)}function N(e,t,n){for(var i=0;i<n.length;i++)V(n[i],n[++i],n[++i]);o.__c&&o.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){o.__e(e,t.__v)}}))}function M(e,t,n,o,r,a,s,c,l){var u,m,h,p,v,C,y,b=n.props,A=t.props,w=t.type;if("svg"===w&&(r=!0),null!=a)for(u=0;u<a.length;u++)if((v=a[u])&&"setAttribute"in v==!!w&&(w?v.localName===w:3===v.nodeType)){e=v,a[u]=null;break}if(null==e){if(null===w)return document.createTextNode(A);e=r?document.createElementNS("http://www.w3.org/2000/svg",w):document.createElement(w,A.is&&A),a=null,c=!1}if(null===w)b===A||c&&e.data===A||(e.data=A);else{if(a=a&&i.call(e.childNodes),b=n.props||d,!c&&null!=a)for(b={},u=0;u<e.attributes.length;u++)b[(v=e.attributes[u]).name]=v.value;for(u in b)v=b[u],"children"==u||("dangerouslySetInnerHTML"==u?h=v:"key"===u||u in A||P(e,u,null,v,r));for(u in A)v=A[u],"children"==u?p=v:"dangerouslySetInnerHTML"==u?m=v:"value"==u?C=v:"checked"==u?y=v:"key"===u||c&&"function"!=typeof v||b[u]===v||P(e,u,v,b[u],r);if(m)c||h&&(m.__html===h.__html||m.__html===e.innerHTML)||(e.innerHTML=m.__html),t.__k=[];else if(h&&(e.innerHTML=""),T(e,f(p)?p:[p],t,n,o,r&&"foreignObject"!==w,a,s,a?a[0]:n.__k&&S(n,0),c,l),null!=a)for(u=a.length;u--;)null!=a[u]&&g(a[u]);c||(u="value",void 0!==C&&(C!==e[u]||"progress"===w&&!C||"option"===w&&C!==b[u])&&P(e,u,C,b[u],!1),u="checked",void 0!==y&&y!==e[u]&&P(e,u,y,b[u],!1))}return e}function V(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){o.__e(e,n)}}function W(e,t,n){var i,r;if(o.unmount&&o.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||V(i,null,t)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){o.__e(e,t)}i.base=i.__P=null,e.__c=void 0}if(i=e.__k)for(r=0;r<i.length;r++)i[r]&&W(i[r],t,n||"function"!=typeof e.type);n||null==e.__e||g(e.__e),e.__=e.__e=e.__d=void 0}function z(e,t,n){return this.constructor(e,n)}function j(e,t,n){var r,a,s,c;o.__&&o.__(e,t),a=(r="function"==typeof n)?null:n&&n.__k||t.__k,s=[],c=[],F(t,e=(!r&&n||t).__k=v(b,null,[e]),a||d,d,void 0!==t.ownerSVGElement,!r&&n?[n]:a?null:t.firstChild?i.call(t.childNodes):null,s,!r&&n?n:a?a.__e:t.firstChild,r,c),e.__d=void 0,N(s,e,c)}function H(e,t){j(e,t,H)}function U(e,t,n){var o,r,a,s,c=p({},e.props);for(a in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)"key"==a?o=t[a]:"ref"==a?r=t[a]:c[a]=void 0===t[a]&&void 0!==s?s[a]:t[a];return arguments.length>2&&(c.children=arguments.length>3?i.call(arguments,2):n),C(e.type,c,o||e.key,r||e.ref,null)}function Z(e,t){var n={__c:t="__cC"+u++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,i;return this.getChildContext||(n=[],(i={})[t]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,x(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}i=m.slice,o={__e:function(e,t,n,i){for(var o,r,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((r=o.constructor)&&null!=r.getDerivedStateFromError&&(o.setState(r.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,i||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},r=0,A.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof e&&(e=e(p({},n),this.props)),e&&p(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),x(this))},A.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),x(this))},A.prototype.render=b,a=[],c="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,l=function(e,t){return e.__v.__b-t.__v.__b},D.__r=0,u=0;var G,Y,Q,X,q=0,K=[],J=[],$=o,ee=$.__b,te=$.__r,ne=$.diffed,ie=$.__c,oe=$.unmount,re=$.__;function ae(e,t){$.__h&&$.__h(Y,e,q||t),q=0;var n=Y.__H||(Y.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:J}),n.__[e]}function se(e){return q=1,ce(xe,e)}function ce(e,t,n){var i=ae(G++,2);if(i.t=e,!i.__c&&(i.__=[n?n(t):xe(void 0,t),function(e){var t=i.__N?i.__N[0]:i.__[0],n=i.t(t,e);t!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=Y,!Y.u)){var o=function(e,t,n){if(!i.__c.__H)return!0;var o=i.__c.__H.__.filter((function(e){return!!e.__c}));if(o.every((function(e){return!e.__N})))return!r||r.call(this,e,t,n);var a=!1;return o.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}})),!(!a&&i.__c.props===e)&&(!r||r.call(this,e,t,n))};Y.u=!0;var r=Y.shouldComponentUpdate,a=Y.componentWillUpdate;Y.componentWillUpdate=function(e,t,n){if(this.__e){var i=r;r=void 0,o(e,t,n),r=i}a&&a.call(this,e,t,n)},Y.shouldComponentUpdate=o}return i.__N||i.__}function le(e,t){var n=ae(G++,3);!$.__s&&Ee(n.__H,t)&&(n.__=e,n.i=t,Y.__H.__h.push(n))}function ue(e,t){var n=ae(G++,4);!$.__s&&Ee(n.__H,t)&&(n.__=e,n.i=t,Y.__h.push(n))}function de(e){return q=5,he((function(){return{current:e}}),[])}function me(e,t,n){q=6,ue((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function he(e,t){var n=ae(G++,7);return Ee(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function fe(e,t){return q=8,he((function(){return e}),t)}function pe(e){var t=Y.context[e.__c],n=ae(G++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(Y)),t.props.value):e.__}function ge(e,t){$.useDebugValue&&$.useDebugValue(t?t(e):e)}function ve(e){var t=ae(G++,10),n=se();return t.__=e,Y.componentDidCatch||(Y.componentDidCatch=function(e,i){t.__&&t.__(e,i),n[1](e)}),[n[0],function(){n[1](void 0)}]}function Ce(){var e=ae(G++,11);if(!e.__){for(var t=Y.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function ye(){for(var e;e=K.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Se),e.__H.__h.forEach(we),e.__H.__h=[]}catch(t){e.__H.__h=[],$.__e(t,e.__v)}}$.__b=function(e){Y=null,ee&&ee(e)},$.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),re&&re(e,t)},$.__r=function(e){te&&te(e),G=0;var t=(Y=e.__c).__H;t&&(Q===Y?(t.__h=[],Y.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=J,e.__N=e.i=void 0}))):(t.__h.forEach(Se),t.__h.forEach(we),t.__h=[],G=0)),Q=Y},$.diffed=function(e){ne&&ne(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==K.push(t)&&X===$.requestAnimationFrame||((X=$.requestAnimationFrame)||Ae)(ye)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==J&&(e.__=e.__V),e.i=void 0,e.__V=J}))),Q=Y=null},$.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Se),e.__h=e.__h.filter((function(e){return!e.__||we(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],$.__e(n,e.__v)}})),ie&&ie(e,t)},$.unmount=function(e){oe&&oe(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Se(e)}catch(e){t=e}})),n.__H=void 0,t&&$.__e(t,n.__v))};var be="function"==typeof requestAnimationFrame;function Ae(e){var t,n=function(){clearTimeout(i),be&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);be&&(t=requestAnimationFrame(n))}function Se(e){var t=Y,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),Y=t}function we(e){var t=Y;e.__c=e.__(),Y=t}function Ee(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function xe(e,t){return"function"==typeof t?t(e):t}function De(e,t){for(var n in t)e[n]=t[n];return e}function Te(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var i in t)if("__source"!==i&&e[i]!==t[i])return!0;return!1}function Be(e,t){this.props=e,this.context=t}function Ie(e,t){function n(e){var n=this.props.ref,i=n==e.ref;return!i&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!i:Te(this.props,e)}function i(t){return this.shouldComponentUpdate=n,v(e,t)}return i.displayName="Memo("+(e.displayName||e.name)+")",i.prototype.isReactComponent=!0,i.__f=!0,i}(Be.prototype=new A).isPureReactComponent=!0,Be.prototype.shouldComponentUpdate=function(e,t){return Te(this.props,e)||Te(this.state,t)};var Oe=o.__b;o.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Oe&&Oe(e)};var ke="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Le(e){function t(t){var n=De({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=ke,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Pe=function(e,t){return null==e?null:O(O(e).map(t))},_e={map:Pe,forEach:Pe,count:function(e){return e?O(e).length:0},only:function(e){var t=O(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:O},Re=o.__e;o.__e=function(e,t,n,i){if(e.then)for(var o,r=t;r=r.__;)if((o=r.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);Re(e,t,n,i)};var Fe=o.unmount;function Ne(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=De({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Ne(e,t,n)}))),e}function Me(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return Me(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function Ve(){this.__u=0,this.t=null,this.__b=null}function We(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function ze(e){var t,n,i;function o(o){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){i=e})),i)throw i;if(!n)throw t;return v(n,o)}return o.displayName="Lazy",o.__f=!0,o}function je(){this.u=null,this.o=null}o.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Fe&&Fe(e)},(Ve.prototype=new A).__c=function(e,t){var n=t.__c,i=this;null==i.t&&(i.t=[]),i.t.push(n);var o=We(i.__v),r=!1,a=function(){r||(r=!0,n.__R=null,o?o(s):s())};n.__R=a;var s=function(){if(!--i.__u){if(i.state.__a){var e=i.state.__a;i.__v.__k[0]=Me(e,e.__c.__P,e.__c.__O)}var t;for(i.setState({__a:i.__b=null});t=i.t.pop();)t.forceUpdate()}};i.__u++||32&t.__u||i.setState({__a:i.__b=i.__v.__k[0]}),e.then(a,a)},Ve.prototype.componentWillUnmount=function(){this.t=[]},Ve.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=Ne(this.__b,n,i.__O=i.__P)}this.__b=null}var o=t.__a&&v(b,null,e.fallback);return o&&(o.__u&=-33),[v(b,null,t.__a?null:e.children),o]};var He=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function Ue(e){return this.getChildContext=function(){return e.context},e.children}function Ze(e){var t=this,n=e.i;t.componentWillUnmount=function(){j(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),j(v(Ue,{context:t.context},e.__v),t.l)}function Ge(e,t){var n=v(Ze,{__v:e,i:t});return n.containerInfo=t,n}(je.prototype=new A).__a=function(e){var t=this,n=We(t.__v),i=t.o.get(e);return i[0]++,function(o){var r=function(){t.props.revealOrder?(i.push(o),He(t,e,i)):o()};n?n(r):r()}},je.prototype.render=function(e){this.u=null,this.o=new Map;var t=O(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},je.prototype.componentDidUpdate=je.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){He(e,n,t)}))};var Ye="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Qe=/^(?: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]/,Xe=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,qe=/[A-Z0-9]/g,Ke="undefined"!=typeof document,Je=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function $e(e,t,n){return null==t.__k&&(t.textContent=""),j(e,t),"function"==typeof n&&n(),e?e.__c:null}function et(e,t,n){return H(e,t),"function"==typeof n&&n(),e?e.__c:null}A.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(A.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var tt=o.event;function nt(){}function it(){return this.cancelBubble}function ot(){return this.defaultPrevented}o.event=function(e){return tt&&(e=tt(e)),e.persist=nt,e.isPropagationStopped=it,e.isDefaultPrevented=ot,e.nativeEvent=e};var rt,at={enumerable:!1,configurable:!0,get:function(){return this.class}},st=o.vnode;o.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,i={};for(var o in t){var r=t[o];if(!("value"===o&&"defaultValue"in t&&null==r||Ke&&"children"===o&&"noscript"===n||"class"===o||"className"===o)){var a=o.toLowerCase();"defaultValue"===o&&"value"in t&&null==t.value?o="value":"download"===o&&!0===r?r="":"translate"===a&&"no"===r?r=!1:"ondoubleclick"===a?o="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||Je(t.type)?"onfocus"===a?o="onfocusin":"onblur"===a?o="onfocusout":Xe.test(o)?o=a:-1===n.indexOf("-")&&Qe.test(o)?o=o.replace(qe,"-$&").toLowerCase():null===r&&(r=void 0):a=o="oninput","oninput"===a&&i[o=a]&&(o="oninputCapture"),i[o]=r}}"select"==n&&i.multiple&&Array.isArray(i.value)&&(i.value=O(t.children).forEach((function(e){e.props.selected=-1!=i.value.indexOf(e.props.value)}))),"select"==n&&null!=i.defaultValue&&(i.value=O(t.children).forEach((function(e){e.props.selected=i.multiple?-1!=i.defaultValue.indexOf(e.props.value):i.defaultValue==e.props.value}))),t.class&&!t.className?(i.class=t.class,Object.defineProperty(i,"className",at)):(t.className&&!t.class||t.class&&t.className)&&(i.class=i.className=t.className),e.props=i}(e),e.$$typeof=Ye,st&&st(e)};var ct=o.__r;o.__r=function(e){ct&&ct(e),rt=e.__c};var lt=o.diffed;o.diffed=function(e){lt&<(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),rt=null};var ut={ReactCurrentDispatcher:{current:{readContext:function(e){return rt.__n[e.__c].props.value}}}},dt="17.0.2";function mt(e){return v.bind(null,e)}function ht(e){return!!e&&e.$$typeof===Ye}function ft(e){return ht(e)&&e.type===b}function pt(e){return ht(e)?U.apply(null,arguments):e}function gt(e){return!!e.__k&&(j(null,e),!0)}function vt(e){return e&&(e.base||1===e.nodeType&&e)||null}var Ct=function(e,t){return e(t)},yt=function(e,t){return e(t)},bt=b;function At(e){e()}function St(e){return e}function wt(){return[!1,At]}var Et=ue,xt=ht;function Dt(e,t){var n=t(),i=se({h:{__:n,v:t}}),o=i[0].h,r=i[1];return ue((function(){o.__=n,o.v=t,Tt(o)&&r({h:o})}),[e,n,t]),le((function(){return Tt(o)&&r({h:o}),e((function(){Tt(o)&&r({h:o})}))}),[e]),n}function Tt(e){var t,n,i=e.v,o=e.__;try{var r=i();return!((t=o)===(n=r)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(e){return!0}}var Bt={useState:se,useId:Ce,useReducer:ce,useEffect:le,useLayoutEffect:ue,useInsertionEffect:ue,useTransition:wt,useDeferredValue:St,useSyncExternalStore:Dt,startTransition:At,useRef:de,useImperativeHandle:me,useMemo:he,useCallback:fe,useContext:pe,useDebugValue:ge,version:"17.0.2",Children:_e,render:$e,hydrate:et,unmountComponentAtNode:gt,createPortal:Ge,createElement:v,createContext:Z,createFactory:mt,cloneElement:pt,createRef:y,Fragment:b,isValidElement:ht,isElement:ht,isFragment:ft,findDOMNode:vt,Component:A,PureComponent:Be,memo:Ie,forwardRef:Le,flushSync:yt,unstable_batchedUpdates:Ct,StrictMode:b,Suspense:Ve,SuspenseList:je,lazy:ze,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ut}},function(e,t,n){"use strict";n.d(t,"i",(function(){return o})),n.d(t,"o",(function(){return r})),n.d(t,"h",(function(){return a})),n.d(t,"g",(function(){return s})),n.d(t,"j",(function(){return c})),n.d(t,"a",(function(){return l})),n.d(t,"f",(function(){return u})),n.d(t,"b",(function(){return d})),n.d(t,"l",(function(){return m})),n.d(t,"c",(function(){return h})),n.d(t,"e",(function(){return f})),n.d(t,"k",(function(){return p})),n.d(t,"d",(function(){return g})),n.d(t,"n",(function(){return v})),n.d(t,"m",(function(){return C})),n.d(t,"q",(function(){return y})),n.d(t,"p",(function(){return b}));var i=n(6);class o extends i.a{constructor(e={}){super(),this.sbColorPrimary="#C8193C",this.sbColorPrimaryDisabled="#F5F5F5",this.sbColorNegative="#FF3737",this.sbColorPositive="#4EFFB4",this.sbColorWarning="#FFCE5C",this.sbColorSecondary="#FFEDEE",this.sbColorSecondaryDisabled="#F5F5F5",this.sbColorOnPrimary="#FFFFFF",this.sbColorOnSecondary="#C8193C",this.sbColorSurface="#FFFFFF",this.sbColorOutline="#EFEFEF",this.sbColorOnSurfaceVariant="#707070",this.sbColorOnSurface="#000000",this.sbColorSurfaceLow="#00000026",this.sbColorSurfaceHigh="#0000007A",this.sbColorModalOverlay="#000000A3",void 0!==e.sbColorPrimary&&(this.sbColorPrimary=e.sbColorPrimary),void 0!==e.sbColorPrimaryDisabled&&(this.sbColorPrimaryDisabled=e.sbColorPrimaryDisabled),void 0!==e.sbColorNegative&&(this.sbColorNegative=e.sbColorNegative),void 0!==e.sbColorPositive&&(this.sbColorPositive=e.sbColorPositive),void 0!==e.sbColorWarning&&(this.sbColorWarning=e.sbColorWarning),void 0!==e.sbColorSecondary&&(this.sbColorSecondary=e.sbColorSecondary),void 0!==e.sbColorSecondaryDisabled&&(this.sbColorSecondaryDisabled=e.sbColorSecondaryDisabled),void 0!==e.sbColorOnPrimary&&(this.sbColorOnPrimary=e.sbColorOnPrimary),void 0!==e.sbColorOnSecondary&&(this.sbColorOnSecondary=e.sbColorOnSecondary),void 0!==e.sbColorSurface&&(this.sbColorSurface=e.sbColorSurface),void 0!==e.sbColorOutline&&(this.sbColorOutline=e.sbColorOutline),void 0!==e.sbColorOnSurfaceVariant&&(this.sbColorOnSurfaceVariant=e.sbColorOnSurfaceVariant),void 0!==e.sbColorOnSurface&&(this.sbColorOnSurface=e.sbColorOnSurface),void 0!==e.sbColorSurfaceLow&&(this.sbColorSurfaceLow=e.sbColorSurfaceLow),void 0!==e.sbColorSurfaceHigh&&(this.sbColorSurfaceHigh=e.sbColorSurfaceHigh),void 0!==e.sbColorModalOverlay&&(this.sbColorModalOverlay=e.sbColorModalOverlay)}}class r extends i.a{constructor(e={}){super(),this.visible=!0,this.text="",this.color="#FFFFFF",this.useShadow=!1,void 0!==e.visible&&(this.visible=e.visible),void 0!==e.text&&(this.text=e.text),void 0!==e.color&&(this.color=e.color),void 0!==e.useShadow&&(this.useShadow=e.useShadow)}}class a extends i.a{constructor(e={}){super(),this.visible=!0,this.color="#FFFFFF",void 0!==e.visible&&(this.visible=e.visible),void 0!==e.color&&(this.color=e.color)}}class s extends i.a{constructor(e={}){super(),this.visible=!0,this.color="#FFFFFF",this.accessibilityDescription="",void 0!==e.visible&&(this.visible=e.visible),void 0!==e.color&&(this.color=e.color),void 0!==e.accessibilityDescription&&(this.accessibilityDescription=e.accessibilityDescription)}}class c extends i.a{constructor(e={}){super(),this.strokeColor="#FFFFFFFF",this.fillColor="#FFFFFF30",this.strokeWidth=2,this.cornerRadius=0,void 0!==e.strokeColor&&(this.strokeColor=e.strokeColor),void 0!==e.fillColor&&(this.fillColor=e.fillColor),void 0!==e.strokeWidth&&(this.strokeWidth=e.strokeWidth),void 0!==e.cornerRadius&&(this.cornerRadius=e.cornerRadius)}}class l extends i.a{constructor(e={}){super(),this.strokeColor="#FFFFFFFF",this.fillColor="#FFFFFF30",this.strokeWidth=2,void 0!==e.strokeColor&&(this.strokeColor=e.strokeColor),void 0!==e.fillColor&&(this.fillColor=e.fillColor),void 0!==e.strokeWidth&&(this.strokeWidth=e.strokeWidth)}}class u extends i.a{constructor(e={}){super(),this.iconVisible=!0,this.color="#FFFFFF",this.useShadow=!1,void 0!==e.iconVisible&&(this.iconVisible=e.iconVisible),void 0!==e.color&&(this.color=e.color),void 0!==e.useShadow&&(this.useShadow=e.useShadow)}}class d extends i.a{constructor(e={}){super(),this.visible=!0,this.background=new l({}),this.foregroundColor="?sbColorOnSurface",void 0!==e.visible&&(this.visible=e.visible),void 0!==e.background&&(this.background=new l(e.background)),void 0!==e.foregroundColor&&(this.foregroundColor=e.foregroundColor)}}class m extends i.a{constructor(e={}){super(),this.visible=!0,this.accessibilityDescription="",this.backgroundColor="#0000007A",this.foregroundColor="#FFFFFF",this.activeBackgroundColor="#FFCE5C",this.activeForegroundColor="#1C1B1F",void 0!==e.visible&&(this.visible=e.visible),void 0!==e.accessibilityDescription&&(this.accessibilityDescription=e.accessibilityDescription),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.foregroundColor&&(this.foregroundColor=e.foregroundColor),void 0!==e.activeBackgroundColor&&(this.activeBackgroundColor=e.activeBackgroundColor),void 0!==e.activeForegroundColor&&(this.activeForegroundColor=e.activeForegroundColor)}}class h extends i.a{constructor(e={}){super(),this.badgeBackgroundColor="#FFFFFF",this.badgeForegroundColor="#C8193C",this.visible=!0,this.backgroundColor="#0000007A",this.foregroundColor="#FFFFFF",this.activeBackgroundColor="#FFCE5C",this.activeForegroundColor="#1C1B1F",void 0!==e.badgeBackgroundColor&&(this.badgeBackgroundColor=e.badgeBackgroundColor),void 0!==e.badgeForegroundColor&&(this.badgeForegroundColor=e.badgeForegroundColor),void 0!==e.visible&&(this.visible=e.visible),void 0!==e.backgroundColor&&(this.backgroundColor=e.backgroundColor),void 0!==e.foregroundColor&&(this.foregroundColor=e.foregroundColor),void 0!==e.activeBackgroundColor&&(this.activeBackgroundColor=e.activeBackgroundColor),void 0!==e.activeForegroundColor&&(this.activeForegroundColor=e.activeForegroundColor)}}class f extends i.a{constructor(e={}){super(),this.visible=!0,this.text="",this.accessibilityDescription="",this.background=new l({}),this.foreground=new u({}),void 0!==e.visible&&(this.visible=e.visible),void 0!==e.text&&(this.text=e.text),void 0!==e.accessibilityDescription&&(this.accessibilityDescription=e.accessibilityDescription),void 0!==e.background&&(this.background=new l(e.background)),void 0!==e.foreground&&(this.foreground=new u(e.foreground))}}class p extends i.a{constructor(e={}){super(),this.title=new r({}),this.accessibilityDescription="",this.icon=new a({}),void 0!==e.title&&(this.title=new r(e.title)),void 0!==e.accessibilityDescription&&(this.accessibilityDescription=e.accessibilityDescription),void 0!==e.icon&&(this.icon=new a(e.icon))}}class g extends i.a{constructor(e={}){super(),this.visible=!0,this.title=new r({}),this.accessibilityDescription="",this.background=new l({}),this.icon=new a({}),void 0!==e.visible&&(this.visible=e.visible),void 0!==e.title&&(this.title=new r(e.title)),void 0!==e.accessibilityDescription&&(this.accessibilityDescription=e.accessibilityDescription),void 0!==e.background&&(this.background=new l(e.background)),void 0!==e.icon&&(this.icon=new a(e.icon))}}const v=["MODERN_BEEP","CLASSIC_BEEP"];class C extends i.a{constructor(e={}){super(),this.successBeepEnabled=!0,this.soundType="MODERN_BEEP",void 0!==e.successBeepEnabled&&(this.successBeepEnabled=e.successBeepEnabled),void 0!==e.soundType&&(this.soundType=e.soundType)}}class y extends i.a{constructor(e={}){super(),this.enabled=!1,void 0!==e.enabled&&(this.enabled=e.enabled)}}class b extends i.a{constructor(e={}){super(),this.autoCancelTimeout=0,this.initialScanDelay=0,void 0!==e.autoCancelTimeout&&(this.autoCancelTimeout=e.autoCancelTimeout),void 0!==e.initialScanDelay&&(this.initialScanDelay=e.initialScanDelay)}}},function(e,t){e.exports=window["@mui"]},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return r})),n.d(t,"d",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"e",(function(){return c}));var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var r=function(){return r=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};function a(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}Object.create;function s(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function c(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}Object.create},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"d",(function(){return l})),n.d(t,"e",(function(){return u}));var i=n(0),o=n(14),r=n(17);const a=Object(i.createContext)(null);function s(e){return{getColorValue:t=>l(t,e)}}class c{static setPalette(e){this.palette=e}static setLocalization(e){this.localization=e}static getColorValue(e){return l(e,this.palette)}static getPolygonColorValues(e,t){return new o.PolygonStyle({fillColor:t?c.getColorValue(e.fillColor):"transparent",strokeColor:t?c.getColorValue(e.strokeColor):"transparent",strokeWidth:e.strokeWidth,cornerRadius:e.cornerRadius})}static getLocalizedText(e,t=[]){return u(e,t,this.localization)}}function l(e,t){if(e){if(e.startsWith("?")){if(!t)throw new Error("Palette is not set");const n=e.slice(1);if(n in t)return t[n];r.a.debugWarn(`Color ${n} not found in palette`)}return e}r.a.debugWarn("Color is missing")}function u(e,t=[],n){if(e.startsWith("?")){if(!n)throw new Error("Localization is not set");const t=e.slice(1);t in n?e=n[t]:r.a.debugWarn(`Text localization key ${t} was not found in the localization table`)}for(let n of t)e=e.replace("%d",n);return e}c.palette=null,c.localization=null},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));class i{_marker(){}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));class i{}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(31);class o{constructor(e,t){this.x=e,this.y=t}static toPolygon(e,t){return[o.scaleDownTo(e[0],t),o.scaleDownTo(e[1],t),o.scaleDownTo(e[2],t),o.scaleDownTo(e[3],t)]}static scaleToPoint(e,t,n,i){return new o(i*(e.x-t),i*(e.y-n))}static scaleListToHtmlElement(e,t,n){return e.map((e=>o.scaleToHtmlElement(e,t,n)))}static scaleToHtmlElement(e,t,n){return new o(e.x*(n.clientWidth/t.width),e.y*(n.clientHeight/t.height))}static scaleUpTo(e,t){return new o(e.x*t.width,e.y*t.height)}static scaleDownTo(e,t){return new o(e.x/t.width,e.y/t.height)}static fromHtmlElement(e){return new o(e.offsetLeft,e.offsetTop)}static withScale(e,t,n){return new o(e/n,t/n)}static fromCoordinates(e,t,n,i){if(!e||!t)return new o(0,0);const r=new o(e,t);return i=null!=i?i:1,1===(n=n?n%4:0)?o.withScale(r.y,-r.x,i):2===n?o.withScale(-r.x,-r.y,i):3===n?o.withScale(-r.y,r.x,i):o.withScale(r.x,r.y,i)}static centerOf(e){const t=e.reduce(((e,t)=>e+t.x),0)/e.length,n=e.reduce(((e,t)=>e+t.y),0)/e.length;return new o(t,n)}static smallerSizeOfQuad(e){const t=Math.max(...e.map((e=>e.x)))-Math.min(...e.map((e=>e.x))),n=Math.max(...e.map((e=>e.y)))-Math.min(...e.map((e=>e.y)));return Math.min(t,n)}static empty(){return new o(0,0)}static centerX(e){if(e)return(o.highestX(e)+o.lowestX(e))/2}static highestX(e){if(e)return Math.max(...e.map((e=>e.x)))}static lowestX(e){if(e)return Math.min(...e.map((e=>e.x)))}static lowestY(e){if(e)return Math.min(...e.map((e=>e.y)))}static highestY(e){if(e)return Math.max(...e.map((e=>e.y)))}static width(e){if(e)return o.highestX(e)-o.lowestX(e)}static left(e){if(e)return e.reduce(((e,t)=>e.x<t.x?e:t))}static right(e){if(e)return e.reduce(((e,t)=>e.x>t.x?e:t))}static toSvgString(e){if(void 0!==e)return e.map((e=>`${e.x.toFixed(2)},${e.y.toFixed(2)}`)).join(" ")}static toSvgPathStringWithRoundedCorners(e,t=0){if(void 0===e)return;function n(e,t,n){const i=Math.atan2(e.y-t.y,e.x-t.x);return{x:e.x-n*Math.cos(i),y:e.y-n*Math.sin(i)}}let i="";const r=n(e[0],e[1],o.distance(e[0],e[1])/2);i+=`M ${r.x} ${r.y}`;for(let r=0;r<e.length;r++){const a=e[r],s=e[(r+1)%e.length],c=e[(r+2)%e.length],l=n(s,c,o.distance(s,c)/2),u=Math.abs(Math.atan2(s.y-a.y,s.x-a.x)-Math.atan2(s.y-c.y,s.x-c.x)),d=u>Math.PI?2*Math.PI-u:u,m=Math.min(Math.sqrt(Math.pow(s.x-a.x,2)+Math.pow(s.y-a.y,2)),Math.sqrt(Math.pow(s.x-c.x,2)+Math.pow(s.y-c.y,2))),h=Math.min(t,m*Math.tan(d/2)/2),f=Math.abs(h/Math.tan(d/2)),p=(s.x-a.x)*(s.y-c.y)-(s.x-c.x)*(s.y-a.y)<0?1:0,g=n(s,a,f),v=n(s,c,f);i+=` L${g.x} ${g.y}`,i+=` A${h} ${h} 0 0 ${p} ${v.x} ${v.y}`,i+=` L${l.x} ${l.y}`}return i+" Z"}static distance(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}static subtract(e,t){return new o(e.x-t.x,e.y-t.y)}static add(e,t){return new o(e.x+t.x,e.y+t.y)}static multiply(e,t){return new o(e.x*t,e.y*t)}static cross(e,t){return e.x*t.y-e.y*t.x}static clamp(e,t){return new o(Object(i.a)(e.x,0,t.width),Object(i.a)(e.y,0,t.height))}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a}));var i=n(0),o=n(4);function r(e){return{color:o.b.getColorValue(e.color),textShadow:e.useShadow?"1px 1px 2px":""}}function a(e){return e.config.visible?i.default.createElement("span",{ref:e.innerRef,style:Object.assign(Object.assign({},e.style),r(e.config))},o.b.getLocalizedText(e.config.text,e.replacementArgs)):null}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(7);class o{constructor(e,t){this.width=e,this.height=t}isPortrait(){return this.height>this.width}ratio(e){return e?this.height/this.width:this.width/this.height}ratioDiff(e,t){return this.ratio(t)/e.ratio(t)}static isEmpty(e){return!e||(0===e.width||0===e.height)}static toPolygon(e){return[new i.a(0,0),new i.a(e.width,0),new i.a(e.width,e.height),new i.a(0,e.height)]}static fromHtmlElement(e){return e?new o(e.clientWidth,e.clientHeight):new o(0,0)}static fromJson(e){return new o(e.width,e.height)}static subtractFrom(e,t){return new o(e.width-t,e.height-t)}static empty(){return new o(0,0)}}},function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"e",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"f",(function(){return l})),n.d(t,"g",(function(){return u})),n.d(t,"a",(function(){return d}));var i=n(1),o=n(6);class r extends o.a{constructor(e={}){super(),this.visible=!0,this.deselected=new i.j({strokeColor:"?sbColorSurface",fillColor:"#00000000",strokeWidth:2,cornerRadius:2}),this.selected=new i.j({strokeColor:"?sbColorPositive",fillColor:"#00000000",strokeWidth:2,cornerRadius:2}),void 0!==e.visible&&(this.visible=e.visible),void 0!==e.deselected&&(this.deselected=new i.j(e.deselected)),void 0!==e.selected&&(this.selected=new i.j(e.selected))}}const a=["DISABLED","STACKED","BELOW","ABOVE"];class s extends o.a{constructor(e={}){super(),this.imageVisible=!0,this.titleSelected=new i.o({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),this.subtitleSelected=new i.o({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),this.titleDeselected=new i.o({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),this.subtitleDeselected=new i.o({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),this.backgroundSelected=new i.j({strokeColor:"?sbColorPositive",fillColor:"?sbColorPositive",strokeWidth:0,cornerRadius:10}),this.backgroundDeselected=new i.j({strokeColor:"?sbColorSurface",fillColor:"?sbColorSurface",strokeWidth:0,cornerRadius:10}),void 0!==e.imageVisible&&(this.imageVisible=e.imageVisible),void 0!==e.titleSelected&&(this.titleSelected=new i.o(e.titleSelected)),void 0!==e.subtitleSelected&&(this.subtitleSelected=new i.o(e.subtitleSelected)),void 0!==e.titleDeselected&&(this.titleDeselected=new i.o(e.titleDeselected)),void 0!==e.subtitleDeselected&&(this.subtitleDeselected=new i.o(e.subtitleDeselected)),void 0!==e.backgroundSelected&&(this.backgroundSelected=new i.j(e.backgroundSelected)),void 0!==e.backgroundDeselected&&(this.backgroundDeselected=new i.j(e.backgroundDeselected))}}class c extends o.a{constructor(e={}){super(),this.visible=!1,this.counterBadge=new i.b({background:new i.a({}),foregroundColor:"?sbColorOnSurface"}),this.automaticSelectionEnabled=!1,this.barcodeItemInfoPosition="BELOW",this.polygon=new r({visible:!0,deselected:new i.j({}),selected:new i.j({})}),this.barcodeItemConfiguration=new s({imageVisible:!0,titleSelected:new i.o({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),subtitleSelected:new i.o({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),titleDeselected:new i.o({text:"BARCODE_TITLE",color:"?sbColorOnSurface"}),subtitleDeselected:new i.o({text:"BARCODE_SUBTITLE",color:"?sbColorOnSurfaceVariant"}),backgroundSelected:new i.j({strokeColor:"?sbColorPositive",fillColor:"?sbColorPositive",strokeWidth:1,cornerRadius:5}),backgroundDeselected:new i.j({strokeColor:"?sbColorSurface",fillColor:"?sbColorSurface",strokeWidth:1,cornerRadius:5})}),void 0!==e.visible&&(this.visible=e.visible),void 0!==e.counterBadge&&(this.counterBadge=new i.b(e.counterBadge)),void 0!==e.automaticSelectionEnabled&&(this.automaticSelectionEnabled=e.automaticSelectionEnabled),void 0!==e.barcodeItemInfoPosition&&(this.barcodeItemInfoPosition=e.barcodeItemInfoPosition),void 0!==e.polygon&&(this.polygon=new r(e.polygon)),void 0!==e.barcodeItemConfiguration&&(this.barcodeItemConfiguration=new s(e.barcodeItemConfiguration))}}class l extends o.a{constructor(e={}){super(),this.visible=!0,this.partiallyScanned=new i.j({strokeColor:"?sbColorWarning",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),this.rejected=new i.j({strokeColor:"?sbColorSurface",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),this.completed=new i.j({strokeColor:"?sbColorPositive",fillColor:"#00000000",strokeWidth:3,cornerRadius:5}),void 0!==e.visible&&(this.visible=e.visible),void 0!==e.partiallyScanned&&(this.partiallyScanned=new i.j(e.partiallyScanned)),void 0!==e.rejected&&(this.rejected=new i.j(e.rejected)),void 0!==e.completed&&(this.completed=new i.j(e.completed))}}class u extends o.a{constructor(e={}){super(),this.partiallyScanned=new i.b({visible:!0,background:new i.a({strokeColor:"#FFFFFF30",fillColor:"?sbColorWarning",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),this.rejected=new i.b({visible:!0,background:new i.a({strokeColor:"#FFFFFF30",fillColor:"?sbColorNegative",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),this.completed=new i.b({visible:!0,background:new i.a({strokeColor:"#FFFFFF30",fillColor:"?sbColorPositive",strokeWidth:0}),foregroundColor:"?sbColorOnSurface"}),void 0!==e.partiallyScanned&&(this.partiallyScanned=new i.b(e.partiallyScanned)),void 0!==e.rejected&&(this.rejected=new i.b(e.rejected)),void 0!==e.completed&&(this.completed=new i.b(e.completed))}}class d extends o.a{constructor(e={}){super(),this.visible=!1,this.automaticSelectionEnabled=!0,this.polygon=new l({}),this.badge=new u({}),void 0!==e.visible&&(this.visible=e.visible),void 0!==e.automaticSelectionEnabled&&(this.automaticSelectionEnabled=e.automaticSelectionEnabled),void 0!==e.polygon&&(this.polygon=new l(e.polygon)),void 0!==e.badge&&(this.badge=new u(e.badge))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return d}));var i=n(0),o=n(41);const r=n(26).a.svg`
animation: rotate 2s linear infinite;
width: 50px;
height: 50px;
& .path {
stroke-linecap: round;
animation: dash 1.5s ease-in-out infinite;
}
@keyframes rotate {
100% {
transform: rotate(360deg);
}
}
@keyframes dash {
0% {
stroke-dasharray: 1, 140;
stroke-dashoffset: 0;
}
50% {
stroke-dasharray: 80, 140;
stroke-dashoffset: -30;
}
100% {
stroke-dasharray: 80, 140;
stroke-dashoffset: -120;
}
}
`;var a=e=>i.default.createElement(r,{viewBox:"0 0 50 50"},i.default.createElement("circle",{className:"path",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"3",stroke:e.color||"black"})),s=n(27),c=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class l{}class u{constructor(){this.videoReady=!1,this.sdkReady=!1}}class d extends i.default.Component{constructor(e){super(e),this.onVideoReady=()=>{this.setState({videoReady:!0},(()=>{const{onSuccess:e}=this.props;e&&e(this)}))},this.onVideoError=e=>{if(!0===this.state.videoReady){const{onError:t}=this.props.configuration;t?t(e):console.error(e)}else{const{onFailure:t}=this.props;t&&t(e),this.dispose()}},this.state=new u}get bridge(){var e;return(null!==(e=this.props.sdk)&&void 0!==e?e:o.a.instance).bridge}dispose(){const{container:e}=this.props;e&&Object(i.render)(null,e)}componentDidMount(){this.disposed=!1,this.bridge.awaitInitialized().then((()=>{this.setState({sdkReady:!0})}))}componentWillUnmount(){this.disposed=!0}isSupported(){return"localhost"===location.hostname||"https:"===location.protocol}swapCameraFacing(e){this.camera.swapCameraFacing(e)}switchCamera(e,t){return c(this,void 0,void 0,(function*(){this.camera.switchCamera(e,t)}))}getActiveCameraInfo(){return this.camera.getActiveCameraInfo()}fetchAvailableCameras(){return s.a.INSTANCE.load()}renderSpinner(e){return this.state.videoReady&&this.state.sdkReady?null:i.default.createElement("div",{"data-sb-spinner":"1",style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:500}},i.default.createElement(a,{color:e}))}setTorchState(e){return this.camera.setTorchState(e)}}d.DEFAULT_DETECTION_RESOLUTION=600,d.DETECTION_RESULTION_4K=3840},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((i=i.apply(e,t||[])).next())}))};class o extends Error{constructor(e,t,n){super(t),this.name="",this.name=e,this.message=t,this.webApiError=n}static mediaDevicesUndefined(){return new o(this.MESSAGE.DEVICES_UNDEFINED,"Does your device even have a camera? If so, please use a secure context (HTTPS) or use 'localhost' explicitly.")}st