Plugin Directory

Changeset 2605471


Ignore:
Timestamp:
09/27/2021 10:39:07 AM (3 years ago)
Author:
aigenseer
Message:

fix no worker found

Location:
qr-scanner-redirect/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • qr-scanner-redirect/trunk/assets/qr-scanner-redirect.js

    r2604068 r2605471  
    3636 * This source code is licensed under the MIT license found in the
    3737 * LICENSE file in the root directory of this source tree.
    38  */var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,l=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,s=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,m=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,b=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,k=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function C(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case d:case f:case a:case c:case l:case m:return e;default:switch(e=e&&e.$$typeof){case u:case p:case v:case g:case s:return e;default:return t}}case i:return t}}}function x(e){return C(e)===f}t.AsyncMode=d,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=s,t.Element=o,t.ForwardRef=p,t.Fragment=a,t.Lazy=v,t.Memo=g,t.Portal=i,t.Profiler=c,t.StrictMode=l,t.Suspense=m,t.isAsyncMode=function(e){return x(e)||C(e)===d},t.isConcurrentMode=x,t.isContextConsumer=function(e){return C(e)===u},t.isContextProvider=function(e){return C(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return C(e)===p},t.isFragment=function(e){return C(e)===a},t.isLazy=function(e){return C(e)===v},t.isMemo=function(e){return C(e)===g},t.isPortal=function(e){return C(e)===i},t.isProfiler=function(e){return C(e)===c},t.isStrictMode=function(e){return C(e)===l},t.isSuspense=function(e){return C(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===f||e===c||e===l||e===m||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===g||e.$$typeof===s||e.$$typeof===u||e.$$typeof===p||e.$$typeof===y||e.$$typeof===k||e.$$typeof===w||e.$$typeof===b)},t.typeOf=C},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(69).default;function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}e.exports=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var c=a?Object.getOwnPropertyDescriptor(e,l):null;c&&(c.get||c.set)?Object.defineProperty(i,l,c):i[l]=e[l]}return i.default=e,n&&n.set(e,i),i},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=n=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(77)},function(e,t,n){var r=n(72);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(74)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(t=n(73)(!1)).push([e.i,'.qrscanner video {\n  position: fixed;\n  right: 0;\n  bottom: 0;\n  min-width: 100%;\n  min-height: 100%;\n}\n\n\n:root {\n  --main-qrcode-border: 3px;\n  --main-qrcode-scanner-width: 25vh;\n  --main-qrcode-scanner-height-move: 23.5vh;\n}\n\n.ocrloader {\n  width: var(--main-qrcode-scanner-width);\n  height: var(--main-qrcode-scanner-width);\n  z-index: 1;\n  position: absolute;\n  left: 50%;\n  top: 50%;\n  transform: translate(-50%,-50%);\n  backface-visibility: hidden;\n}\n.ocrloader span {\n  position: absolute;\n  left: 0;\n  top: 0;\n  width: 100%;\n  height: 1.5vh;\n  background-color: rgba(45, 183, 183, 0.54);\n  z-index: 2;\n  -webkit-animation: action 1s infinite  alternate;\n  animation: action 1s infinite  alternate;\n}\n\n\n\n.ocrloader:before,  .ocrloader:after,\nem:after, em:before {\n    z-index: 3;\n    border-color: #000;\n    content: "";\n    position: absolute;\n    width: 19px;\n    height: 16px;\n    border-style: solid;\n    border-width: 0px;\n  }\n.ocrloader:before {\n    left: 0;\n    top: 0;\n    border-left-width: var(--main-qrcode-border);\n    border-top-width: var(--main-qrcode-border);\n  }\n.ocrloader:after {\n    right: 0;\n    top: 0;\n    border-right-width: var(--main-qrcode-border);\n    border-top-width: var(--main-qrcode-border);\n  }\nem:before {\n  left: 0;\n  bottom: 0;\n  border-left-width: var(--main-qrcode-border);\n  border-bottom-width: var(--main-qrcode-border);\n}\nem:after {\n  right: 0;\n  bottom: 0;\n  border-right-width: var(--main-qrcode-border);\n  border-bottom-width: var(--main-qrcode-border);\n}\n\n\n@keyframes move {\n  /* 0%, 100% { transform: translateY(300%); }\n  50% { transform: translateY(0%); }\n  75% { transform: translateY(800%); } */\n  0%, 100% {\n    bottom: 0;\n  }\n  50% {\n    bottom: 100px;\n  }\n}\n\n@-webkit-keyframes action {\n        0% { transform: translateY(0); }\n        100% { transform: translateY(var(--main-qrcode-scanner-height-move)); }\n}\n@keyframes action {\n    0% { transform: translateY(0); }\n    100% { transform: translateY(var(--main-qrcode-scanner-height-move)); }\n}\n',""]),e.exports=t},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(a=r,l=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(l),"/*# ".concat(c," */")),i=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(i).concat([o]).join("\n")}var a,l,c;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var l=0;l<e.length;l++){var c=[].concat(e[l]);r&&o[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},function(e,t,n){var r,o,i={},a=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===o&&(o=r.apply(this,arguments)),o}),l=function(e,t){return t?t.querySelector(e):document.querySelector(e)},c=function(e){var t={};return function(e,n){if("function"==typeof e)return e();if(void 0===t[e]){var r=l.call(this,e,n);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}}(),s=null,u=0,d=[],f=n(75);function p(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=i[r.id];if(o){o.refs++;for(var a=0;a<o.parts.length;a++)o.parts[a](r.parts[a]);for(;a<r.parts.length;a++)o.parts.push(y(r.parts[a],t))}else{var l=[];for(a=0;a<r.parts.length;a++)l.push(y(r.parts[a],t));i[r.id]={id:r.id,refs:1,parts:l}}}}function m(e,t){for(var n=[],r={},o=0;o<e.length;o++){var i=e[o],a=t.base?i[0]+t.base:i[0],l={css:i[1],media:i[2],sourceMap:i[3]};r[a]?r[a].parts.push(l):n.push(r[a]={id:a,parts:[l]})}return n}function h(e,t){var n=c(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=d[d.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),d.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var o=c(e.insertAt.before,n);n.insertBefore(t,o)}}function g(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=d.indexOf(e);t>=0&&d.splice(t,1)}function v(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var r=function(){0;return n.nc}();r&&(e.attrs.nonce=r)}return b(t,e.attrs),h(e,t),t}function b(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function y(e,t){var n,r,o,i;if(t.transform&&e.css){if(!(i="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=i}if(t.singleton){var a=u++;n=s||(s=v(t)),r=C.bind(null,n,a,!1),o=C.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",b(t,e.attrs),h(e,t),t}(t),r=B.bind(null,n,t),o=function(){g(n),n.href&&URL.revokeObjectURL(n.href)}):(n=v(t),r=x.bind(null,n),o=function(){g(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=m(e,t);return p(n,t),function(e){for(var r=[],o=0;o<n.length;o++){var a=n[o];(l=i[a.id]).refs--,r.push(l)}e&&p(m(e,t),t);for(o=0;o<r.length;o++){var l;if(0===(l=r[o]).refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete i[l.id]}}}};var k,w=(k=[],function(e,t){return k[e]=t,k.filter(Boolean).join("\n")});function C(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=w(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function x(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function B(e,t,n){var r=n.css,o=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&o;(t.convertToAbsoluteUrls||i)&&(r=f(r)),o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var a=new Blob([r],{type:"text/css"}),l=e.href;e.href=URL.createObjectURL(a),l&&URL.revokeObjectURL(l)}},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,t){var o,i=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i)?e:(o=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:r+i.replace(/^\.\//,""),"url("+JSON.stringify(o)+")")}))}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),i=n(8),a=n.n(i),l=n(1),c=n(100),s=n(20);var u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(c.a)(e,Object(l.a)({defaultTheme:s.a},t))},d=n(52),f=(n(5),n(34)),p=n(98),m=n(36);var h=function(e){var t=e.children,n=e.theme,r=Object(p.a)(),i=o.a.useMemo((function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):Object(l.a)({},e,t)}(r,n);return null!=e&&(e[m.a]=null!==r),e}),[n,r]);return o.a.createElement(f.a.Provider,{value:i},t)},g=function(){function e(){}return e.getDefaultSettings=function(){return{force:!1,disableButton:!1,openNewTab:!0,primaryColor:"#000",primaryContrastText:"#fff",titleSelectDevice:"Select device",titlePermissionFailed:"Permission failed",contentPermissionFailed:"Your browser has no permission for the camera. Please activate the permission.",titleWaitPermission:"Wait for your permission",titleScanQRCode:"QR-Code-Scanner",titleRedirect:"Forwarding",contentRedirect:'Would you like to redirect to the url "%URL"',failedReadQRImage:"No QR-Code found on the picture.",noPermissionDialogTitle:"No camera permission",noPermissionDialogText:"Your browser has no access to your camera. You can still upload a photo to use the QR scanner.",noPermissionDialogButton:"Choose a photo",assetURLPath:""}},e.init=function(t){window.hasOwnProperty(t)?window.qrscannerredirect.settings=Object.assign(e.getDefaultSettings(),window.qrscannerredirect.settings):window.qrscannerredirect={settings:e.getDefaultSettings()},window.qrscannerredirect.app_name=t},e.getFailedReadQRImage=function(){return window.qrscannerredirect.settings.failedReadQRImage},e.getNoPermissionDialogTitle=function(){return window.qrscannerredirect.settings.noPermissionDialogTitle},e.getNoPermissionDialogText=function(){return window.qrscannerredirect.settings.noPermissionDialogText},e.getNoPermissionDialogButton=function(){return window.qrscannerredirect.settings.noPermissionDialogButton},e.getTitlePermissionFailed=function(){return window.qrscannerredirect.settings.titlePermissionFailed},e.getContentPermissionFailed=function(){return window.qrscannerredirect.settings.contentPermissionFailed},e.isButtonDisabled=function(){return window.qrscannerredirect.settings.disableButton},e.getContentRedirect=function(){return window.qrscannerredirect.settings.contentRedirect},e.getTitleRedirect=function(){return window.qrscannerredirect.settings.titleRedirect},e.getTitleWaitPermission=function(){return window.qrscannerredirect.settings.titleWaitPermission},e.getTitleScanQRCode=function(){return window.qrscannerredirect.settings.titleScanQRCode},e.getTitleSelectDevice=function(){return window.qrscannerredirect.settings.titleSelectDevice},e.getPrimaryColor=function(){return window.qrscannerredirect.settings.primaryColor},e.getPrimaryContrastText=function(){return window.qrscannerredirect.settings.primaryContrastText},e.isForce=function(){return window.qrscannerredirect.settings.force},e.isOpenNewTab=function(){return window.qrscannerredirect.settings.openNewTab},e.getAssetURLPath=function(){return window.qrscannerredirect.settings.assetURLPath},e}(),v=function(){function e(){}return e.validURL=function(e){return!!new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(e)},e.isValidHttpUrl=function(e){var t;try{t=new URL(e)}catch(e){return!1}return"http:"===t.protocol||"https:"===t.protocol},e}(),b=n(49),y=n.n(b),k=n(3),w=n(2),C=n(4),x=n(10),B=n(9),P=n(11),S=n(31),E=n(16),O=n(14),I=n(26),T=n(18),j=o.a.createContext(null);function N(e,t){var n=Object.create(null);return e&&r.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&Object(r.isValidElement)(e)?t(e):e}(e)})),n}function M(e,t,n){return null!=n[t]?n[t]:e.props[t]}function A(e,t,n){var o=N(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var c in t){if(o[c])for(r=0;r<o[c].length;r++){var s=o[c][r];l[o[c][r]]=n(s)}l[c]=n(c)}for(r=0;r<i.length;r++)l[i[r]]=n(i[r]);return l}(t,o);return Object.keys(i).forEach((function(a){var l=i[a];if(Object(r.isValidElement)(l)){var c=a in t,s=a in o,u=t[a],d=Object(r.isValidElement)(u)&&!u.props.in;!s||c&&!d?s||!c||d?s&&c&&Object(r.isValidElement)(u)&&(i[a]=Object(r.cloneElement)(l,{onExited:n.bind(null,l),in:u.props.in,exit:M(l,"exit",e),enter:M(l,"enter",e)})):i[a]=Object(r.cloneElement)(l,{in:!1}):i[a]=Object(r.cloneElement)(l,{onExited:n.bind(null,l),in:!0,exit:M(l,"exit",e),enter:M(l,"enter",e)})}})),i}var R=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},z=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Object(I.a)(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Object(T.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,o,i=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,o=a,N(n.children,(function(e){return Object(r.cloneElement)(e,{onExited:o.bind(null,e),in:!0,appear:M(e,"appear",n),enter:M(e,"enter",n),exit:M(e,"exit",n)})}))):A(e,i,a),firstRender:!1}},n.handleExited=function(e,t){var n=N(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Object(l.a)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Object(O.a)(e,["component","childFactory"]),i=this.state.contextValue,a=R(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?o.a.createElement(j.Provider,{value:i},a):o.a.createElement(j.Provider,{value:i},o.a.createElement(t,r,a))},t}(o.a.Component);z.propTypes={},z.defaultProps={component:"div",childFactory:function(e){return e}};var D=z,L="undefined"==typeof window?r.useEffect:r.useLayoutEffect;var W=function(e){var t=e.classes,n=e.pulsate,o=void 0!==n&&n,i=e.rippleX,a=e.rippleY,l=e.rippleSize,c=e.in,s=e.onExited,u=void 0===s?function(){}:s,d=e.timeout,f=r.useState(!1),p=f[0],m=f[1],h=Object(w.a)(t.ripple,t.rippleVisible,o&&t.ripplePulsate),g={width:l,height:l,top:-l/2+a,left:-l/2+i},v=Object(w.a)(t.child,p&&t.childLeaving,o&&t.childPulsate),b=Object(P.a)(u);return L((function(){if(!c){m(!0);var e=setTimeout(b,d);return function(){clearTimeout(e)}}}),[b,c,d]),r.createElement("span",{className:h,style:g},r.createElement("span",{className:v}))},_=r.forwardRef((function(e,t){var n=e.center,o=void 0!==n&&n,i=e.classes,a=e.className,c=Object(k.a)(e,["center","classes","className"]),s=r.useState([]),u=s[0],d=s[1],f=r.useRef(0),p=r.useRef(null);r.useEffect((function(){p.current&&(p.current(),p.current=null)}),[u]);var m=r.useRef(!1),h=r.useRef(null),g=r.useRef(null),v=r.useRef(null);r.useEffect((function(){return function(){clearTimeout(h.current)}}),[]);var b=r.useCallback((function(e){var t=e.pulsate,n=e.rippleX,o=e.rippleY,a=e.rippleSize,l=e.cb;d((function(e){return[].concat(Object(E.a)(e),[r.createElement(W,{key:f.current,classes:i,timeout:550,pulsate:t,rippleX:n,rippleY:o,rippleSize:a})])})),f.current+=1,p.current=l}),[i]),y=r.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.pulsate,i=void 0!==r&&r,a=t.center,l=void 0===a?o||t.pulsate:a,c=t.fakeElement,s=void 0!==c&&c;if("mousedown"===e.type&&m.current)m.current=!1;else{"touchstart"===e.type&&(m.current=!0);var u,d,f,p=s?null:v.current,y=p?p.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(l||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(y.width/2),d=Math.round(y.height/2);else{var k=e.touches?e.touches[0]:e,w=k.clientX,C=k.clientY;u=Math.round(w-y.left),d=Math.round(C-y.top)}if(l)(f=Math.sqrt((2*Math.pow(y.width,2)+Math.pow(y.height,2))/3))%2==0&&(f+=1);else{var x=2*Math.max(Math.abs((p?p.clientWidth:0)-u),u)+2,B=2*Math.max(Math.abs((p?p.clientHeight:0)-d),d)+2;f=Math.sqrt(Math.pow(x,2)+Math.pow(B,2))}e.touches?null===g.current&&(g.current=function(){b({pulsate:i,rippleX:u,rippleY:d,rippleSize:f,cb:n})},h.current=setTimeout((function(){g.current&&(g.current(),g.current=null)}),80)):b({pulsate:i,rippleX:u,rippleY:d,rippleSize:f,cb:n})}}),[o,b]),C=r.useCallback((function(){y({},{pulsate:!0})}),[y]),x=r.useCallback((function(e,t){if(clearTimeout(h.current),"touchend"===e.type&&g.current)return e.persist(),g.current(),g.current=null,void(h.current=setTimeout((function(){x(e,t)})));g.current=null,d((function(e){return e.length>0?e.slice(1):e})),p.current=t}),[]);return r.useImperativeHandle(t,(function(){return{pulsate:C,start:y,stop:x}}),[C,y,x]),r.createElement("span",Object(l.a)({className:Object(w.a)(i.root,a),ref:v},c),r.createElement(D,{component:null,exit:!0},u))})),F=Object(C.a)((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(r.memo(_)),Z=r.forwardRef((function(e,t){var n=e.action,o=e.buttonRef,a=e.centerRipple,c=void 0!==a&&a,s=e.children,u=e.classes,d=e.className,f=e.component,p=void 0===f?"button":f,m=e.disabled,h=void 0!==m&&m,g=e.disableRipple,v=void 0!==g&&g,b=e.disableTouchRipple,y=void 0!==b&&b,C=e.focusRipple,x=void 0!==C&&C,E=e.focusVisibleClassName,O=e.onBlur,I=e.onClick,T=e.onFocus,j=e.onFocusVisible,N=e.onKeyDown,M=e.onKeyUp,A=e.onMouseDown,R=e.onMouseLeave,z=e.onMouseUp,D=e.onTouchEnd,L=e.onTouchMove,W=e.onTouchStart,_=e.onDragLeave,Z=e.tabIndex,U=void 0===Z?0:Z,V=e.TouchRippleProps,G=e.type,H=void 0===G?"button":G,q=Object(k.a)(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),X=r.useRef(null);var Q=r.useRef(null),Y=r.useState(!1),$=Y[0],K=Y[1];h&&$&&K(!1);var J=Object(S.a)(),ee=J.isFocusVisible,te=J.onBlurVisible,ne=J.ref;function re(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;return Object(P.a)((function(r){return t&&t(r),!n&&Q.current&&Q.current[e](r),!0}))}r.useImperativeHandle(n,(function(){return{focusVisible:function(){K(!0),X.current.focus()}}}),[]),r.useEffect((function(){$&&x&&!v&&Q.current.pulsate()}),[v,x,$]);var oe=re("start",A),ie=re("stop",_),ae=re("stop",z),le=re("stop",(function(e){$&&e.preventDefault(),R&&R(e)})),ce=re("start",W),se=re("stop",D),ue=re("stop",L),de=re("stop",(function(e){$&&(te(e),K(!1)),O&&O(e)}),!1),fe=Object(P.a)((function(e){X.current||(X.current=e.currentTarget),ee(e)&&(K(!0),j&&j(e)),T&&T(e)})),pe=function(){var e=i.findDOMNode(X.current);return p&&"button"!==p&&!("A"===e.tagName&&e.href)},me=r.useRef(!1),he=Object(P.a)((function(e){x&&!me.current&&$&&Q.current&&" "===e.key&&(me.current=!0,e.persist(),Q.current.stop(e,(function(){Q.current.start(e)}))),e.target===e.currentTarget&&pe()&&" "===e.key&&e.preventDefault(),N&&N(e),e.target===e.currentTarget&&pe()&&"Enter"===e.key&&!h&&(e.preventDefault(),I&&I(e))})),ge=Object(P.a)((function(e){x&&" "===e.key&&Q.current&&$&&!e.defaultPrevented&&(me.current=!1,e.persist(),Q.current.stop(e,(function(){Q.current.pulsate(e)}))),M&&M(e),I&&e.target===e.currentTarget&&pe()&&" "===e.key&&!e.defaultPrevented&&I(e)})),ve=p;"button"===ve&&q.href&&(ve="a");var be={};"button"===ve?(be.type=H,be.disabled=h):("a"===ve&&q.href||(be.role="button"),be["aria-disabled"]=h);var ye=Object(B.a)(o,t),ke=Object(B.a)(ne,X),we=Object(B.a)(ye,ke),Ce=r.useState(!1),xe=Ce[0],Be=Ce[1];r.useEffect((function(){Be(!0)}),[]);var Pe=xe&&!v&&!h;return r.createElement(ve,Object(l.a)({className:Object(w.a)(u.root,d,$&&[u.focusVisible,E],h&&u.disabled),onBlur:de,onClick:I,onFocus:fe,onKeyDown:he,onKeyUp:ge,onMouseDown:oe,onMouseLeave:le,onMouseUp:ae,onDragLeave:ie,onTouchEnd:se,onTouchMove:ue,onTouchStart:ce,ref:we,tabIndex:h?-1:U},be,q),s,Pe?r.createElement(F,Object(l.a)({ref:Q,center:c},V)):null)})),U=Object(C.a)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(Z),V=n(6),G=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.color,c=void 0===a?"default":a,s=e.component,u=void 0===s?"button":s,d=e.disabled,f=void 0!==d&&d,p=e.disableElevation,m=void 0!==p&&p,h=e.disableFocusRipple,g=void 0!==h&&h,v=e.endIcon,b=e.focusVisibleClassName,y=e.fullWidth,C=void 0!==y&&y,x=e.size,B=void 0===x?"medium":x,P=e.startIcon,S=e.type,E=void 0===S?"button":S,O=e.variant,I=void 0===O?"text":O,T=Object(k.a)(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),j=P&&r.createElement("span",{className:Object(w.a)(o.startIcon,o["iconSize".concat(Object(V.a)(B))])},P),N=v&&r.createElement("span",{className:Object(w.a)(o.endIcon,o["iconSize".concat(Object(V.a)(B))])},v);return r.createElement(U,Object(l.a)({className:Object(w.a)(o.root,o[I],i,"inherit"===c?o.colorInherit:"default"!==c&&o["".concat(I).concat(Object(V.a)(c))],"medium"!==B&&[o["".concat(I,"Size").concat(Object(V.a)(B))],o["size".concat(Object(V.a)(B))]],m&&o.disableElevation,f&&o.disabled,C&&o.fullWidth),component:u,disabled:f,focusRipple:!g,focusVisibleClassName:Object(w.a)(o.focusVisible,b),ref:t,type:E},T),r.createElement("span",{className:o.label},j,n,N))})),H=Object(C.a)((function(e){return{root:Object(l.a)({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:Object(x.a)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(x.a)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(x.a)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(Object(x.a)(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:Object(x.a)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(Object(x.a)(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:Object(x.a)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(G),q=n(48),X=Object(q.a)(r.createElement("path",{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z"}),"AttachFile"),Q=Object(q.a)(r.createElement("path",{d:"M10 20H5v2h5v2l3-3-3-3v2zm4 0v2h5v-2h-5zM12 8c1.1 0 2-.9 2-2s-.9-2-2-2-1.99.9-1.99 2S10.9 8 12 8zm5-8H7C5.9 0 5 .9 5 2v14c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2zM7 2h10v10.5c0-1.67-3.33-2.5-5-2.5s-5 .83-5 2.5V2z"}),"CameraFront"),Y=n(13),$=n(99),K=n(12),J=n(15);var ee="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;var te=r.forwardRef((function(e,t){var n=e.children,o=e.container,a=e.disablePortal,l=void 0!==a&&a,c=e.onRendered,s=r.useState(null),u=s[0],d=s[1],f=Object(B.a)(r.isValidElement(n)?n.ref:null,t);return ee((function(){l||d(function(e){return e="function"==typeof e?e():e,i.findDOMNode(e)}(o)||document.body)}),[o,l]),ee((function(){if(u&&!l)return Object(J.a)(t,u),function(){Object(J.a)(t,null)}}),[t,u,l]),ee((function(){c&&(u||l)&&c()}),[c,u,l]),l?r.isValidElement(n)?r.cloneElement(n,{ref:f}):n:u?i.createPortal(n,u):u})),ne=n(25),re=n(37);var oe=n(21);var ie=n(33);function ae(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function le(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function ce(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0,i=[t,n].concat(Object(E.a)(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===i.indexOf(e)&&-1===a.indexOf(e.tagName)&&ae(e,o)}))}function se(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function ue(e,t){var n,r=[],o=[],i=e.container;if(!t.disableScrollLock){if(function(e){var t=Object(K.a)(e);return t.body===e?Object(ie.a)(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){var a=function(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}();r.push({value:i.style.paddingRight,key:"padding-right",el:i}),i.style["padding-right"]="".concat(le(i)+a,"px"),n=Object(K.a)(i).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(le(e)+a,"px")}))}var l=i.parentElement,c="HTML"===l.nodeName&&"scroll"===window.getComputedStyle(l)["overflow-y"]?l:i;r.push({value:c.style.overflow,key:"overflow",el:c}),c.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){o[t]?e.style.paddingRight=o[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var de=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modals=[],this.containers=[]}return Object(oe.a)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&ae(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);ce(t,e.mountNode,e.modalRef,r,!0);var o=se(this.containers,(function(e){return e.container===t}));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=se(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=ue(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=se(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&ae(e.modalRef,!0),ce(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var o=r.modals[r.modals.length-1];o.modalRef&&ae(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();var fe=function(e){var t=e.children,n=e.disableAutoFocus,o=void 0!==n&&n,a=e.disableEnforceFocus,l=void 0!==a&&a,c=e.disableRestoreFocus,s=void 0!==c&&c,u=e.getDoc,d=e.isEnabled,f=e.open,p=r.useRef(),m=r.useRef(null),h=r.useRef(null),g=r.useRef(),v=r.useRef(null),b=r.useCallback((function(e){v.current=i.findDOMNode(e)}),[]),y=Object(B.a)(t.ref,b),k=r.useRef();return r.useEffect((function(){k.current=f}),[f]),!k.current&&f&&"undefined"!=typeof window&&(g.current=u().activeElement),r.useEffect((function(){if(f){var e=Object(K.a)(v.current);o||!v.current||v.current.contains(e.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex",-1),v.current.focus());var t=function(){null!==v.current&&(e.hasFocus()&&!l&&d()&&!p.current?v.current&&!v.current.contains(e.activeElement)&&v.current.focus():p.current=!1)},n=function(t){!l&&d()&&9===t.keyCode&&e.activeElement===v.current&&(p.current=!0,t.shiftKey?h.current.focus():m.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var r=setInterval((function(){t()}),50);return function(){clearInterval(r),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),s||(g.current&&g.current.focus&&g.current.focus(),g.current=null)}}}),[o,l,s,d,f]),r.createElement(r.Fragment,null,r.createElement("div",{tabIndex:0,ref:m,"data-test":"sentinelStart"}),r.cloneElement(t,{ref:y}),r.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelEnd"}))},pe={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},me=r.forwardRef((function(e,t){var n=e.invisible,o=void 0!==n&&n,i=e.open,a=Object(k.a)(e,["invisible","open"]);return i?r.createElement("div",Object(l.a)({"aria-hidden":!0,ref:t},a,{style:Object(l.a)({},pe.root,o?pe.invisible:{},a.style)})):null}));var he=new de,ge=r.forwardRef((function(e,t){var n=Object(p.a)(),o=Object($.a)({name:"MuiModal",props:Object(l.a)({},e),theme:n}),a=o.BackdropComponent,c=void 0===a?me:a,s=o.BackdropProps,u=o.children,d=o.closeAfterTransition,f=void 0!==d&&d,m=o.container,h=o.disableAutoFocus,g=void 0!==h&&h,v=o.disableBackdropClick,b=void 0!==v&&v,y=o.disableEnforceFocus,w=void 0!==y&&y,C=o.disableEscapeKeyDown,x=void 0!==C&&C,S=o.disablePortal,E=void 0!==S&&S,O=o.disableRestoreFocus,I=void 0!==O&&O,T=o.disableScrollLock,j=void 0!==T&&T,N=o.hideBackdrop,M=void 0!==N&&N,A=o.keepMounted,R=void 0!==A&&A,z=o.manager,D=void 0===z?he:z,L=o.onBackdropClick,W=o.onClose,_=o.onEscapeKeyDown,F=o.onRendered,Z=o.open,U=Object(k.a)(o,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),V=r.useState(!0),G=V[0],H=V[1],q=r.useRef({}),X=r.useRef(null),Q=r.useRef(null),Y=Object(B.a)(Q,t),J=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(o),ee=function(){return Object(K.a)(X.current)},oe=function(){return q.current.modalRef=Q.current,q.current.mountNode=X.current,q.current},ie=function(){D.mount(oe(),{disableScrollLock:j}),Q.current.scrollTop=0},le=Object(P.a)((function(){var e=function(e){return e="function"==typeof e?e():e,i.findDOMNode(e)}(m)||ee().body;D.add(oe(),e),Q.current&&ie()})),ce=r.useCallback((function(){return D.isTopModal(oe())}),[D]),se=Object(P.a)((function(e){X.current=e,e&&(F&&F(),Z&&ce()?ie():ae(Q.current,!0))})),ue=r.useCallback((function(){D.remove(oe())}),[D]);if(r.useEffect((function(){return function(){ue()}}),[ue]),r.useEffect((function(){Z?le():J&&f||ue()}),[Z,ue,J,f,le]),!R&&!Z&&(!J||G))return null;var de=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:re.a}),pe={};return void 0===u.props.tabIndex&&(pe.tabIndex=u.props.tabIndex||"-1"),J&&(pe.onEnter=Object(ne.a)((function(){H(!1)}),u.props.onEnter),pe.onExited=Object(ne.a)((function(){H(!0),f&&ue()}),u.props.onExited)),r.createElement(te,{ref:se,container:m,disablePortal:E},r.createElement("div",Object(l.a)({ref:Y,onKeyDown:function(e){"Escape"===e.key&&ce()&&(_&&_(e),x||(e.stopPropagation(),W&&W(e,"escapeKeyDown")))},role:"presentation"},U,{style:Object(l.a)({},de.root,!Z&&G?de.hidden:{},U.style)}),M?null:r.createElement(c,Object(l.a)({open:Z,onClick:function(e){e.target===e.currentTarget&&(L&&L(e),!b&&W&&W(e,"backdropClick"))}},s)),r.createElement(fe,{disableEnforceFocus:w,disableAutoFocus:g,disableRestoreFocus:I,getDoc:ee,isEnabled:ce,open:Z},r.cloneElement(u,pe))))})),ve=n(39),be=!1,ye=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o="exited",r.appearStatus="entering"):o="entered":o=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",r.state={status:o},r.nextCallback=null,r}Object(T.a)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(t="entering"):"entering"!==n&&"entered"!==n||(t="exiting")}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),"entering"===t?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[a.a.findDOMNode(this),r],i=o[0],l=o[1],c=this.getTimeouts(),s=r?c.appear:c.enter;!e&&!n||be?this.safeSetState({status:"entered"},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,l),this.safeSetState({status:"entering"},(function(){t.props.onEntering(i,l),t.onTransitionEnd(s,(function(){t.safeSetState({status:"entered"},(function(){t.props.onEntered(i,l)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:a.a.findDOMNode(this);t&&!be?(this.props.onExit(r),this.safeSetState({status:"exiting"},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:a.a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],l=o[1];this.props.addEndListener(i,l)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if("unmounted"===e)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,Object(O.a)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return o.a.createElement(j.Provider,{value:null},"function"==typeof n?n(e,r):o.a.cloneElement(o.a.Children.only(n),r))},t}(o.a.Component);function ke(){}ye.contextType=j,ye.propTypes={},ye.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ke,onEntering:ke,onEntered:ke,onExit:ke,onExiting:ke,onExited:ke},ye.UNMOUNTED="unmounted",ye.EXITED="exited",ye.ENTERING="entering",ye.ENTERED="entered",ye.EXITING="exiting";var we=ye,Ce=n(17);function xe(e,t){var n=e.timeout,r=e.style,o=void 0===r?{}:r;return{duration:o.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:o.transitionDelay}}var Be={entering:{opacity:1},entered:{opacity:1}},Pe={enter:Ce.b.enteringScreen,exit:Ce.b.leavingScreen},Se=r.forwardRef((function(e,t){var n=e.children,o=e.disableStrictModeCompat,i=void 0!==o&&o,a=e.in,c=e.onEnter,u=e.onEntered,d=e.onEntering,f=e.onExit,m=e.onExited,h=e.onExiting,g=e.style,v=e.TransitionComponent,b=void 0===v?we:v,y=e.timeout,w=void 0===y?Pe:y,C=Object(k.a)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),x=Object(p.a)()||s.a,P=x.unstable_strictMode&&!i,S=r.useRef(null),E=Object(B.a)(n.ref,t),O=Object(B.a)(P?S:void 0,E),I=function(e){return function(t,n){if(e){var r=P?[S.current,t]:[t,n],o=Object(ve.a)(r,2),i=o[0],a=o[1];void 0===a?e(i):e(i,a)}}},T=I(d),j=I((function(e,t){!function(e){e.scrollTop}(e);var n=xe({style:g,timeout:w},{mode:"enter"});e.style.webkitTransition=x.transitions.create("opacity",n),e.style.transition=x.transitions.create("opacity",n),c&&c(e,t)})),N=I(u),M=I(h),A=I((function(e){var t=xe({style:g,timeout:w},{mode:"exit"});e.style.webkitTransition=x.transitions.create("opacity",t),e.style.transition=x.transitions.create("opacity",t),f&&f(e)})),R=I(m);return r.createElement(b,Object(l.a)({appear:!0,in:a,nodeRef:P?S:void 0,onEnter:j,onEntered:N,onEntering:T,onExit:A,onExited:R,onExiting:M,timeout:w},C),(function(e,t){return r.cloneElement(n,Object(l.a)({style:Object(l.a)({opacity:0,visibility:"exited"!==e||a?void 0:"hidden"},Be[e],g,n.props.style),ref:O},t))}))})),Ee=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.invisible,c=void 0!==a&&a,s=e.open,u=e.transitionDuration,d=e.TransitionComponent,f=void 0===d?Se:d,p=Object(k.a)(e,["children","classes","className","invisible","open","transitionDuration","TransitionComponent"]);return r.createElement(f,Object(l.a)({in:s,timeout:u},p),r.createElement("div",{className:Object(w.a)(o.root,i,c&&o.invisible),"aria-hidden":!0,ref:t},n))})),Oe=Object(C.a)({root:{zIndex:-1,position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},{name:"MuiBackdrop"})(Ee),Ie=r.forwardRef((function(e,t){var n=e.classes,o=e.className,i=e.component,a=void 0===i?"div":i,c=e.square,s=void 0!==c&&c,u=e.elevation,d=void 0===u?1:u,f=e.variant,p=void 0===f?"elevation":f,m=Object(k.a)(e,["classes","className","component","square","elevation","variant"]);return r.createElement(a,Object(l.a)({className:Object(w.a)(n.root,o,"outlined"===p?n.outlined:n["elevation".concat(d)],!s&&n.rounded),ref:t},m))})),Te=Object(C.a)((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),Object(l.a)({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(Ie),je={enter:Ce.b.enteringScreen,exit:Ce.b.leavingScreen},Ne=r.forwardRef((function(e,t){var n=e.BackdropProps,o=e.children,i=e.classes,a=e.className,c=e.disableBackdropClick,s=void 0!==c&&c,u=e.disableEscapeKeyDown,d=void 0!==u&&u,f=e.fullScreen,p=void 0!==f&&f,m=e.fullWidth,h=void 0!==m&&m,g=e.maxWidth,v=void 0===g?"sm":g,b=e.onBackdropClick,y=e.onClose,C=e.onEnter,x=e.onEntered,B=e.onEntering,P=e.onEscapeKeyDown,S=e.onExit,E=e.onExited,O=e.onExiting,I=e.open,T=e.PaperComponent,j=void 0===T?Te:T,N=e.PaperProps,M=void 0===N?{}:N,A=e.scroll,R=void 0===A?"paper":A,z=e.TransitionComponent,D=void 0===z?Se:z,L=e.transitionDuration,W=void 0===L?je:L,_=e.TransitionProps,F=e["aria-describedby"],Z=e["aria-labelledby"],U=Object(k.a)(e,["BackdropProps","children","classes","className","disableBackdropClick","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","onEnter","onEntered","onEntering","onEscapeKeyDown","onExit","onExited","onExiting","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps","aria-describedby","aria-labelledby"]),G=r.useRef();return r.createElement(ge,Object(l.a)({className:Object(w.a)(i.root,a),BackdropComponent:Oe,BackdropProps:Object(l.a)({transitionDuration:W},n),closeAfterTransition:!0},s?{disableBackdropClick:s}:{},{disableEscapeKeyDown:d,onEscapeKeyDown:P,onClose:y,open:I,ref:t},U),r.createElement(D,Object(l.a)({appear:!0,in:I,timeout:W,onEnter:C,onEntering:B,onEntered:x,onExit:S,onExiting:O,onExited:E,role:"none presentation"},_),r.createElement("div",{className:Object(w.a)(i.container,i["scroll".concat(Object(V.a)(R))]),onMouseUp:function(e){e.target===e.currentTarget&&e.target===G.current&&(G.current=null,b&&b(e),!s&&y&&y(e,"backdropClick"))},onMouseDown:function(e){G.current=e.target}},r.createElement(j,Object(l.a)({elevation:24,role:"dialog","aria-describedby":F,"aria-labelledby":Z},M,{className:Object(w.a)(i.paper,i["paperScroll".concat(Object(V.a)(R))],i["paperWidth".concat(Object(V.a)(String(v)))],M.className,p&&i.paperFullScreen,h&&i.paperFullWidth)}),o))))})),Me=Object(C.a)((function(e){return{root:{"@media print":{position:"absolute !important"}},scrollPaper:{display:"flex",justifyContent:"center",alignItems:"center"},scrollBody:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}},container:{height:"100%","@media print":{height:"auto"},outline:0},paper:{margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},paperScrollPaper:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},paperScrollBody:{display:"inline-block",verticalAlign:"middle",textAlign:"left"},paperWidthFalse:{maxWidth:"calc(100% - 64px)"},paperWidthXs:{maxWidth:Math.max(e.breakpoints.values.xs,444),"&$paperScrollBody":Object(Y.a)({},e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64),{maxWidth:"calc(100% - 64px)"})},paperWidthSm:{maxWidth:e.breakpoints.values.sm,"&$paperScrollBody":Object(Y.a)({},e.breakpoints.down(e.breakpoints.values.sm+64),{maxWidth:"calc(100% - 64px)"})},paperWidthMd:{maxWidth:e.breakpoints.values.md,"&$paperScrollBody":Object(Y.a)({},e.breakpoints.down(e.breakpoints.values.md+64),{maxWidth:"calc(100% - 64px)"})},paperWidthLg:{maxWidth:e.breakpoints.values.lg,"&$paperScrollBody":Object(Y.a)({},e.breakpoints.down(e.breakpoints.values.lg+64),{maxWidth:"calc(100% - 64px)"})},paperWidthXl:{maxWidth:e.breakpoints.values.xl,"&$paperScrollBody":Object(Y.a)({},e.breakpoints.down(e.breakpoints.values.xl+64),{maxWidth:"calc(100% - 64px)"})},paperFullWidth:{width:"calc(100% - 64px)"},paperFullScreen:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,"&$paperScrollBody":{margin:0,maxWidth:"100%"}}}}),{name:"MuiDialog"})(Ne),Ae={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},Re=r.forwardRef((function(e,t){var n=e.align,o=void 0===n?"inherit":n,i=e.classes,a=e.className,c=e.color,s=void 0===c?"initial":c,u=e.component,d=e.display,f=void 0===d?"initial":d,p=e.gutterBottom,m=void 0!==p&&p,h=e.noWrap,g=void 0!==h&&h,v=e.paragraph,b=void 0!==v&&v,y=e.variant,C=void 0===y?"body1":y,x=e.variantMapping,B=void 0===x?Ae:x,P=Object(k.a)(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),S=u||(b?"p":B[C]||Ae[C])||"span";return r.createElement(S,Object(l.a)({className:Object(w.a)(i.root,a,"inherit"!==C&&i[C],"initial"!==s&&i["color".concat(Object(V.a)(s))],g&&i.noWrap,m&&i.gutterBottom,b&&i.paragraph,"inherit"!==o&&i["align".concat(Object(V.a)(o))],"initial"!==f&&i["display".concat(Object(V.a)(f))]),ref:t},P))})),ze=Object(C.a)((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(Re),De=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.disableTypography,c=void 0!==a&&a,s=Object(k.a)(e,["children","classes","className","disableTypography"]);return r.createElement("div",Object(l.a)({className:Object(w.a)(o.root,i),ref:t},s),c?n:r.createElement(ze,{component:"h2",variant:"h6"},n))})),Le=Object(C.a)({root:{margin:0,padding:"16px 24px",flex:"0 0 auto"}},{name:"MuiDialogTitle"})(De),We=r.forwardRef((function(e,t){var n=e.disableSpacing,o=void 0!==n&&n,i=e.classes,a=e.className,c=Object(k.a)(e,["disableSpacing","classes","className"]);return r.createElement("div",Object(l.a)({className:Object(w.a)(i.root,a,!o&&i.spacing),ref:t},c))})),_e=Object(C.a)({root:{display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},spacing:{"& > :not(:first-child)":{marginLeft:8}}},{name:"MuiDialogActions"})(We),Fe=n(38),Ze=n.n(Fe),Ue=r.forwardRef((function(e,t){var n=e.edge,o=void 0!==n&&n,i=e.children,a=e.classes,c=e.className,s=e.color,u=void 0===s?"default":s,d=e.disabled,f=void 0!==d&&d,p=e.disableFocusRipple,m=void 0!==p&&p,h=e.size,g=void 0===h?"medium":h,v=Object(k.a)(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return r.createElement(U,Object(l.a)({className:Object(w.a)(a.root,c,"default"!==u&&a["color".concat(Object(V.a)(u))],f&&a.disabled,"small"===g&&a["size".concat(Object(V.a)(g))],{start:a.edgeStart,end:a.edgeEnd}[o]),centerRipple:!0,focusRipple:!m,disabled:f,ref:t},v),r.createElement("span",{className:a.label},i))})),Ve=Object(C.a)((function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:Object(x.a)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(x.a)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(x.a)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(Ue),Ge=Object(C.a)((function(e){return{root:{borderBottom:"1px solid "+e.palette.divider,margin:0,display:"flex",alignItems:"center",zIndex:1},typography:{width:"100%"},closeButton:{color:e.palette.primary.contrastText}}}))((function(e){var t=e.children,n=e.classes,r=e.onClose,i=e.className;return o.a.createElement(Le,{disableTypography:!0,className:n.root+" "+i+" dialogbar dialog-title"},o.a.createElement(ze,{className:n.typography,variant:"h6"},t),r?o.a.createElement(Ve,{"aria-label":"Close",className:n.closeButton,onClick:r},o.a.createElement(Ze.a,null)):null)})),He=Object(C.a)((function(e){return{root:{borderTop:"1px solid "+e.palette.divider,margin:0,justifyContent:"space-between",bottom:0,width:"100%"}}}))(_e),qe=(n(71),function(){function e(){}return e.getQRScannerWorker=function(){return new Worker(g.getAssetURLPath()+"qr-scanner-worker.js")},e}()),Xe=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function l(e){try{c(r.throw(e))}catch(e){i(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,l)}c((r=r.apply(e,t||[])).next())}))},Qe=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}};function Ye(e){var t,n,i=null;return Object(r.useEffect)((function(){!function(r){try{null!=i&&((i=i).srcObject=r,i.addEventListener("loadedmetadata",(function(){null!=i&&(n=t.getContext("2d"),function t(){var r=this,o=qe.getQRScannerWorker();setTimeout((function(){return Xe(r,void 0,void 0,(function(){var r;return Qe(this,(function(a){if(null!=i&&null!=n&&"function"==typeof n.drawImage)try{n.drawImage(i,0,0),r=n.getImageData(0,0,n.canvas.width,n.canvas.height),o.addEventListener("message",(function(n){null!==n.data?e.onFetchCode(n.data):t()}),!1),o.postMessage([r])}catch(e){console.log(e)}return[2]}))}))}),500)}())}),!1))}catch(e){console.error(e)}}(e.mediaStream)})),o.a.createElement("div",{className:Object(w.a)("qsr-scanner","qrscanner")},o.a.createElement("div",{className:Object(w.a)("qsr-ocr-loader","ocrloader")},o.a.createElement("em",null),o.a.createElement("span",null)),o.a.createElement("video",{className:Object(w.a)("qsr-video"),ref:function(e){return i=e},autoPlay:!0,loop:!0,muted:!0,playsInline:!0}),o.a.createElement("canvas",{style:{display:"none"},ref:function(e){return t=e},width:640,height:480}))}var $e=r.createContext({}),Ke=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.component,c=void 0===a?"ul":a,s=e.dense,u=void 0!==s&&s,d=e.disablePadding,f=void 0!==d&&d,p=e.subheader,m=Object(k.a)(e,["children","classes","className","component","dense","disablePadding","subheader"]),h=r.useMemo((function(){return{dense:u}}),[u]);return r.createElement($e.Provider,{value:h},r.createElement(c,Object(l.a)({className:Object(w.a)(o.root,i,u&&o.dense,!f&&o.padding,p&&o.subheader),ref:t},m),p,n))})),Je=Object(C.a)({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(Ke),et=n(32),tt="undefined"==typeof window?r.useEffect:r.useLayoutEffect,nt=r.forwardRef((function(e,t){var n=e.alignItems,o=void 0===n?"center":n,a=e.autoFocus,c=void 0!==a&&a,s=e.button,u=void 0!==s&&s,d=e.children,f=e.classes,p=e.className,m=e.component,h=e.ContainerComponent,g=void 0===h?"li":h,v=e.ContainerProps,b=(v=void 0===v?{}:v).className,y=Object(k.a)(v,["className"]),C=e.dense,x=void 0!==C&&C,P=e.disabled,S=void 0!==P&&P,E=e.disableGutters,O=void 0!==E&&E,I=e.divider,T=void 0!==I&&I,j=e.focusVisibleClassName,N=e.selected,M=void 0!==N&&N,A=Object(k.a)(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),R=r.useContext($e),z={dense:x||R.dense||!1,alignItems:o},D=r.useRef(null);tt((function(){c&&D.current&&D.current.focus()}),[c]);var L=r.Children.toArray(d),W=L.length&&Object(et.a)(L[L.length-1],["ListItemSecondaryAction"]),_=r.useCallback((function(e){D.current=i.findDOMNode(e)}),[]),F=Object(B.a)(_,t),Z=Object(l.a)({className:Object(w.a)(f.root,p,z.dense&&f.dense,!O&&f.gutters,T&&f.divider,S&&f.disabled,u&&f.button,"center"!==o&&f.alignItemsFlexStart,W&&f.secondaryAction,M&&f.selected),disabled:S},A),V=m||"li";return u&&(Z.component=m||"div",Z.focusVisibleClassName=Object(w.a)(f.focusVisible,j),V=U),W?(V=Z.component||m?V:"div","li"===g&&("li"===V?V="div":"li"===Z.component&&(Z.component="div")),r.createElement($e.Provider,{value:z},r.createElement(g,Object(l.a)({className:Object(w.a)(f.container,b),ref:F},y),r.createElement(V,Z,L),L.pop()))):r.createElement($e.Provider,{value:z},r.createElement(V,Object(l.a)({ref:F},Z),L))})),rt=Object(C.a)((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(nt),ot=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.disableTypography,c=void 0!==a&&a,s=e.inset,u=void 0!==s&&s,d=e.primary,f=e.primaryTypographyProps,p=e.secondary,m=e.secondaryTypographyProps,h=Object(k.a)(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),g=r.useContext($e).dense,v=null!=d?d:n;null==v||v.type===ze||c||(v=r.createElement(ze,Object(l.a)({variant:g?"body2":"body1",className:o.primary,component:"span",display:"block"},f),v));var b=p;return null==b||b.type===ze||c||(b=r.createElement(ze,Object(l.a)({variant:"body2",className:o.secondary,color:"textSecondary",display:"block"},m),b)),r.createElement("div",Object(l.a)({className:Object(w.a)(o.root,i,g&&o.dense,u&&o.inset,v&&b&&o.multiline),ref:t},h),v,b)})),it=Object(C.a)({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(ot);function at(e){var t=Object(r.useState)(e.open),n=t[0],i=t[1],a=Object(r.useState)(e.options),l=a[0],c=a[1];function s(){i(!1),e.onSelect(null)}return Object(r.useEffect)((function(){return i(e.open)}),[e.open]),Object(r.useEffect)((function(){return c(e.options)}),[e.options]),o.a.createElement(Me,{className:Object(w.a)("qsr-dialog-root","qsr-dialog-select-root"),open:n,onClose:s},o.a.createElement(Le,{className:Object(w.a)("qsr-dialog-title","qsr-dialog-select-title")},e.title),o.a.createElement("div",null,o.a.createElement(Je,null,l.map((function(t,n){return o.a.createElement(rt,{className:Object(w.a)("qsr-dialog-list-item","qsr-dialog-select-list-item"),button:!0,selected:t.selected,onClick:function(){t.selected||function(t){e.onSelect(t),s()}(t)},key:n},o.a.createElement(it,{className:Object(w.a)("qsr-dialog-list-item-text","qsr-dialog-select-list-item-text"),primary:t.label}))})))))}var lt=function(){function e(){}return e.isMobile=function(){return/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)},e.isIOSMobile=function(){return/iPhone|iPad|iPod/i.test(navigator.userAgent)},e}();function ct(e){function t(){window.removeEventListener("focus",t)}return o.a.createElement("div",{className:Object(w.a)("qsr-ios-file-root")},o.a.createElement("input",{className:Object(w.a)("qsr-ios-file-input"),type:"file",accept:".png, .jpg, .jpeg",onChange:function(n){window.removeEventListener("focus",t),void 0!==n.target.files&&(n.persist(),function(t,n){var r=t[0];r?(n.target.value="",e.onSelectFile(r)):e.onSelectFile(null)}(n.target.files,n))},onClick:function(){e.onSelectFile(null),window.addEventListener("focus",t)},capture:"camera"}))}var st=r.forwardRef((function(e,t){var n=e.classes,o=e.className,i=e.color,a=void 0===i?"primary":i,c=e.disableShrink,s=void 0!==c&&c,u=e.size,d=void 0===u?40:u,f=e.style,p=e.thickness,m=void 0===p?3.6:p,h=e.value,g=void 0===h?0:h,v=e.variant,b=void 0===v?"indeterminate":v,y=Object(k.a)(e,["classes","className","color","disableShrink","size","style","thickness","value","variant"]),C={},x={},B={};if("determinate"===b||"static"===b){var P=2*Math.PI*((44-m)/2);C.strokeDasharray=P.toFixed(3),B["aria-valuenow"]=Math.round(g),C.strokeDashoffset="".concat(((100-g)/100*P).toFixed(3),"px"),x.transform="rotate(-90deg)"}return r.createElement("div",Object(l.a)({className:Object(w.a)(n.root,o,"inherit"!==a&&n["color".concat(Object(V.a)(a))],{determinate:n.determinate,indeterminate:n.indeterminate,static:n.static}[b]),style:Object(l.a)({width:d,height:d},x,f),ref:t,role:"progressbar"},B,y),r.createElement("svg",{className:n.svg,viewBox:"".concat(22," ").concat(22," ").concat(44," ").concat(44)},r.createElement("circle",{className:Object(w.a)(n.circle,s&&n.circleDisableShrink,{determinate:n.circleDeterminate,indeterminate:n.circleIndeterminate,static:n.circleStatic}[b]),style:C,cx:44,cy:44,r:(44-m)/2,fill:"none",strokeWidth:m})))})),ut=Object(C.a)((function(e){return{root:{display:"inline-block"},static:{transition:e.transitions.create("transform")},indeterminate:{animation:"$circular-rotate 1.4s linear infinite"},determinate:{transition:e.transitions.create("transform")},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},svg:{display:"block"},circle:{stroke:"currentColor"},circleStatic:{transition:e.transitions.create("stroke-dashoffset")},circleIndeterminate:{animation:"$circular-dash 1.4s ease-in-out infinite",strokeDasharray:"80px, 200px",strokeDashoffset:"0px"},circleDeterminate:{transition:e.transitions.create("stroke-dashoffset")},"@keyframes circular-rotate":{"0%":{transformOrigin:"50% 50%"},"100%":{transform:"rotate(360deg)"}},"@keyframes circular-dash":{"0%":{strokeDasharray:"1px, 200px",strokeDashoffset:"0px"},"50%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-15px"},"100%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-125px"}},circleDisableShrink:{animation:"none"}}}),{name:"MuiCircularProgress",flip:!1})(st),dt=u((function(e){return{backdrop:{zIndex:10,color:"#fff"}}}));function ft(e){var t=dt(),n=Object(r.useState)(!1),i=n[0],a=n[1];return Object(r.useEffect)((function(){return a(e.open)}),[e.open]),o.a.createElement(Oe,{className:Object(w.a)("qsr-backdrop",t.backdrop),open:i},o.a.createElement(ut,{className:Object(w.a)("qsr-backdrop-circular-progress"),color:"inherit"}))}var pt=Object(q.a)(r.createElement("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),mt=r.forwardRef((function(e,t){var n=e.classes,o=e.className,i=e.dividers,a=void 0!==i&&i,c=Object(k.a)(e,["classes","className","dividers"]);return r.createElement("div",Object(l.a)({className:Object(w.a)(n.root,o,a&&n.dividers),ref:t},c))})),ht=Object(C.a)((function(e){return{root:{flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"8px 24px","&:first-child":{paddingTop:20}},dividers:{padding:"16px 24px",borderTop:"1px solid ".concat(e.palette.divider),borderBottom:"1px solid ".concat(e.palette.divider)}}}),{name:"MuiDialogContent"})(mt),gt=r.forwardRef((function(e,t){return r.createElement(ze,Object(l.a)({component:"p",variant:"body1",color:"textSecondary",ref:t},e))})),vt=Object(C.a)({root:{marginBottom:12}},{name:"MuiDialogContentText"})(gt);function bt(e){var t=Object(r.useState)(e.open),n=t[0],i=t[1],a=Object(r.useState)(e.title),l=a[0],c=a[1],s=Object(r.useState)(e.text),u=s[0],d=s[1];function f(){i(!1),e.onClose()}return Object(r.useEffect)((function(){return c(e.title)}),[e.title]),Object(r.useEffect)((function(){return d(e.text)}),[e.text]),Object(r.useEffect)((function(){return i(e.open)}),[e.open]),o.a.createElement(Me,{className:Object(w.a)("qsr-dialog-root","qsr-dialog-ok-root"),open:n,onClose:function(){return f()},maxWidth:"md"},o.a.createElement(Le,{className:Object(w.a)("qsr-dialog-title","qsr-dialog-ok-title")},l),o.a.createElement(ht,{className:Object(w.a)("qsr-dialog-content","qsr-dialog-ok-content")},o.a.createElement(vt,{className:Object(w.a)("qsr-dialog-content-text","qsr-dialog-ok-content-text")},u)),o.a.createElement(_e,{className:Object(w.a)("qsr-dialog-actions","qsr-dialog-ok-actions")},o.a.createElement(H,{className:Object(w.a)("qsr-dialog-button","qsr-dialog-ok-button"),onClick:f},o.a.createElement(pt,{fontSize:"large"}))))}var yt=function(){function e(){}return e.selectFile=function(){return new Promise((function(e,t){var n=document.createElement("input");n.type="file",n.style.display="none",n.onchange=function(t){var n=t.target.files[0];n&&e(n)},document.body.appendChild(n),n.click()}))},e.readImageFromFile=function(e){return new Promise((function(t,n){try{var r=new FileReader,o=new Image;o.onload=function(){t(o)},r.onload=function(e){o.src=e.target.result},r.readAsDataURL(e)}catch(e){return Promise.reject(e)}}))},e}(),kt=n(51),wt=n.n(kt),Ct=function(){function e(){}return e.readArrayBuffer=function(e,t,n){return this.readUint8ClampedArray(new Uint8ClampedArray(e),t,n)},e.readUint8ClampedArray=function(e,t,n){try{var r=wt()(e,t,n);return null!==r?r.data:null}catch(e){return console.log(e),null}},e}(),xt=function(){function e(){}return e.scanFile=function(t){return e.readImageFromFilex(t)},e.readImageFromFile=function(t,n){return new Promise((function(r,o){yt.readImageFromFile(n).then((function(n){var o=t.getContext("2d");if(null!==o){var i=void 0,a={width:175,height:175},l=null,c=0;do{if(c++,a.width=2*a.width<n.width?2*a.width:n.width,a.height=2*a.height<n.height?2*a.height:n.height,t.height=a.height,t.width=a.width,o.drawImage(n,0,0,a.width,a.height),i=o.getImageData(0,0,a.width,a.height),null!==(l=Ct.readUint8ClampedArray(i.data,i.width,i.height)))break}while((a.width!==n.width||a.height!==n.height)&&c<e.MAX_SCANS);r(l)}})).catch((function(e){return o(e)}))}))},e.readImageFromFilex=function(t){return new Promise((function(n,r){yt.readImageFromFile(t).then((function(t){var o=[],i={width:175,height:175},a=0;do{a++,i.width=2*i.width<t.width?2*i.width:t.width,i.height=2*i.height<t.height?2*i.height:t.height,o.push(Object.assign({},i))}while((i.width!==t.width||i.height!==t.height)&&a<e.MAX_SCANS);e.loopReadImage(o,t).then((function(e){return n(e)})).catch((function(e){return r(e)}))})).catch((function(e){return r(e)}))}))},e.loopReadImage=function(t,n){return new Promise((function(r,o){var i=t.shift();void 0!==i?e.readImageFromFileWithSize(n,i.width,i.height).then((function(i){null!==i?r(i):setTimeout((function(){return e.loopReadImage(t,n).then((function(e){return r(e)})).catch((function(e){return o(e)}))}),500)})).catch((function(e){return o(e)})):r(null)}))},e.readImageFromFileWithSize=function(e,t,n){return new Promise((function(r,o){var i=qe.getQRScannerWorker(),a=document.createElement("canvas"),l=a.getContext("2d");if(null!==l){a.height=n,a.width=t,l.drawImage(e,0,0,t,n);var c=l.getImageData(0,0,t,n);i.addEventListener("message",(function(e){console.log("??"),r(e.data)}),!1),i.postMessage([c])}else r(null)}))},e.MAX_SCANS=15,e}(),Bt=u((function(e){return{root:{width:500},content:{position:"relative",display:"flex",height:"100%",alignItems:"center",overflow:"hidden",justifyContent:"center"},dialogColor:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},dialogActions:{minHeight:"64px",zIndex:1,background:e.palette.primary.main,position:"fixed",justifyContent:"space-around"},dialogActionsButton:{width:"100%"}}})),Pt="";function St(e){var t=Bt(),n=e.videoStream.getDevices().length,i=Object(r.useState)(e.videoStream.getCurrentStream()),a=i[0],l=i[1],c=Object(r.useState)(!1),s=c[0],u=c[1],d=Object(r.useState)(!1),f=d[0],p=d[1],m=Object(r.useState)(!1),h=m[0],v=m[1];function b(t){void 0===t&&(t=null),e.onClose(t)}function y(){switch(n){case 2:k(e.videoStream.getDevices([Pt])[0].id);break;default:u(!0)}}function k(t){Pt=t,e.videoStream.getStreamByDeviceId(Pt).then((function(e){return l(e)}))}function C(){yt.selectFile().then((function(e){return B(e)}))}function x(e){null!==e&&B(e)}function B(t){p(!0),xt.scanFile(t).then((function(t){p(!1),null!==t?e.onClose(t):v(!0)})).catch((function(e){p(!1)}))}return o.a.createElement(Me,{className:Object(w.a)("qsr-dialog-root","qsr-dialog-scanner-root"),fullScreen:!0,open:!0,onClose:function(){return b()}},o.a.createElement(Ge,{className:Object(w.a)("qsr-dialog-title","qsr-dialog-scanner-title",t.dialogColor),onClose:function(){return b()}},g.getTitleScanQRCode()),o.a.createElement(ft,{open:f}),o.a.createElement(bt,{open:h,title:"Failed",text:g.getFailedReadQRImage(),onClose:function(){return v(!1)}}),o.a.createElement("div",{className:Object(w.a)("qsr-dialog-content","qsr-dialog-scanner-content",t.content)},o.a.createElement(Ye,{mediaStream:a,onFetchCode:b})),o.a.createElement(at,{open:s,title:g.getTitleSelectDevice(),options:e.videoStream.getDevices().map((function(e){return Object.assign(e,{selected:Pt===e.id})})),onSelect:function(e){return null!=(t=e)&&k(t.id),void u(!1);var t}}),o.a.createElement(He,{className:Object(w.a)("qsr-dialog-root","qsr-dialog-scanner-actions",t.dialogActions)},lt.isIOSMobile()?o.a.createElement(ct,{onSelectFile:x}):o.a.createElement(H,{onClick:C,color:"primary",className:Object(w.a)("qsr-dialog-button","qsr-dialog-scanner-button","qsr-dialog-scanner-button-file",t.dialogActionsButton)},o.a.createElement(X,{fontSize:"large",className:t.dialogColor})),o.a.createElement(H,{onClick:y,color:"primary",className:Object(w.a)("qsr-dialog-button","qsr-dialog-scanner-button","qsr-dialog-scanner-button-camera",t.dialogActionsButton)},o.a.createElement(Q,{fontSize:"large",className:t.dialogColor}))))}var Et=Object(q.a)(r.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function Ot(e){var t=Object(r.useState)(!0),n=t[0],i=t[1],a=Object(r.useState)(e.title),l=a[0],c=a[1],s=Object(r.useState)(e.text),u=s[0],d=s[1];function f(t){void 0===t&&(t=!1),i(!1),e.onClose(t)}return Object(r.useEffect)((function(){return c(e.title)}),[e.title]),Object(r.useEffect)((function(){return d(e.text)}),[e.text]),o.a.createElement(Me,{className:Object(w.a)("qsr-dialog-root","qsr-dialog-confirm-root"),open:n,onClose:function(){return f()},maxWidth:"md"},o.a.createElement(Le,{className:Object(w.a)("qsr-dialog-title","qsr-dialog-confirm-title")},l),o.a.createElement(ht,{className:Object(w.a)("qsr-dialog-content","qsr-dialog-confirm-content")},o.a.createElement(vt,{className:Object(w.a)("qsr-dialog-content-text","qsr-dialog-confirm-content-text")},u)),o.a.createElement(_e,{className:Object(w.a)("qsr-dialog-actions","qsr-dialog-confirm-actions")},o.a.createElement(H,{className:Object(w.a)("qsr-dialog-button","qsr-dialog-confirm-button-clear"),onClick:function(){return f()}},o.a.createElement(Et,{fontSize:"large"})),o.a.createElement(H,{className:Object(w.a)("qsr-dialog-button","qsr-dialog-confirm-button-check"),onClick:function(){return f(!0)}},o.a.createElement(pt,{fontSize:"large"}))))}var It=Object(C.a)((function(e){return{root:{borderBottom:"1px solid "+e.palette.divider,margin:0,display:"flex",zIndex:1},typography:{width:"100%",display:"flex",alignItems:"center"},closeButton:{}}}))((function(e){var t=e.children,n=e.classes,r=e.onClose,i=e.className;return o.a.createElement(Le,{disableTypography:!0,className:n.root+" "+i+" dialogbar dialog-title"},o.a.createElement(ze,{className:n.typography,variant:"h6"},t),r?o.a.createElement(Ve,{"aria-label":"Close",className:n.closeButton,onClick:r},o.a.createElement(Ze.a,null)):null)})),Tt=u((function(e){return{root:{width:500},dialogActions:{display:"flex",justifyContent:"center"}}}));function jt(e){var t=Tt(),n=Object(r.useState)(!1),i=n[0],a=n[1],l=Object(r.useState)(!1),c=l[0],s=l[1];function u(t){a(!0),xt.scanFile(t).then((function(t){a(!1),null!==t?e.onClose(t):s(!0)})).catch((function(e){a(!1)}))}return o.a.createElement(Me,{className:Object(w.a)("qsr-dialog-root","qsr-dialog-fqs-root"),open:!0},o.a.createElement(It,{className:Object(w.a)("qsr-dialog-title","qsr-dialog-fqs-title"),onClose:function(){e.onClose(null)}},g.getNoPermissionDialogTitle()),o.a.createElement(ht,{className:Object(w.a)("qsr-dialog-content","qsr-dialog-fqs-content"),dividers:!0},o.a.createElement(ze,{className:Object(w.a)("qsr-dialog-content-text","qsr-dialog-fqs-content-text"),gutterBottom:!0},g.getNoPermissionDialogText())),o.a.createElement(ft,{open:i}),o.a.createElement(bt,{open:c,title:"Failed",text:g.getFailedReadQRImage(),onClose:function(){return s(!1)}}),o.a.createElement(_e,{className:Object(w.a)("qsr-dialog-actions","qsr-dialog-fqs-actions",t.dialogActions)},lt.isIOSMobile()?o.a.createElement(ct,{onSelectFile:function(e){null!==e&&u(e)}}):o.a.createElement(H,{className:Object(w.a)("qsr-dialog-button","qsr-dialog-fqs-button"),onClick:function(){yt.selectFile().then((function(e){return u(e)}))},color:"primary"},o.a.createElement(X,{fontSize:"large"}),g.getNoPermissionDialogButton())))}var Nt=function(){function e(){}return e.getPrefixName=function(){return"qr-scanner-redirect"},e.getKeyWithPrefix=function(t){return[e.getPrefixName(),t].join(",")},e.get=function(t){return localStorage.getItem(e.getKeyWithPrefix(t))},e.getValueOrDefault=function(t,n){var r=e.get(t);return null!==r?r:n},e.set=function(t,n){localStorage.setItem(e.getKeyWithPrefix(t),n)},e.delete=function(t){localStorage.removeItem(e.getKeyWithPrefix(t))},e}(),Mt=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function l(e){try{c(r.throw(e))}catch(e){i(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,l)}c((r=r.apply(e,t||[])).next())}))},At=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}},Rt=function(){function e(){this.DEFAULT_MEDIATRACK_CONSTRAINTS={facingMode:"user"},this.stream=null,this.currentMediaTrackConstraints=null,this.devices=[]}return e.getInstance=function(){var t=this;return new Promise((function(n,r){return Mt(t,void 0,void 0,(function(){var t;return At(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),null!==e.currentInstance?[3,2]:(e.currentInstance=new e,[4,e.currentInstance.setup()]);case 1:o.sent(),o.label=2;case 2:return n(e.currentInstance),[3,4];case 3:return t=o.sent(),e.destory(),r(t),[3,4];case 4:return[2]}}))}))}))},e.destory=function(){null!=e.currentInstance&&e.currentInstance.close(),e.currentInstance=null},e.prototype.setup=function(){var e=this;return new Promise((function(t,n){return Mt(e,void 0,void 0,(function(){var e,r,o,i,a;return At(this,(function(l){switch(l.label){case 0:return l.trys.push([0,3,,4]),e=this,[4,this.getMediaDeviceInfo()];case 1:return e.devices=l.sent().map((function(e){return{label:e.label.replace(/ (\(.*?\))/g,""),id:e.deviceId}})),r=this.DEFAULT_MEDIATRACK_CONSTRAINTS,lt.isMobile()&&(r={facingMode:{exact:"environment"}}),null!==(o=Nt.get("deviceId"))&&(r=this.getMediaTrackConstraintsById(o)),i=this,[4,this.getMediaStreamByConstraints(r)];case 2:if(i.stream=l.sent(),null==this.stream)throw new Error("Stream are null");return t(),[3,4];case 3:return a=l.sent(),n(a),[3,4];case 4:return[2]}}))}))}))},e.prototype.getSortAndFilterMediaDeviceInfoList=function(e){return e.filter((function(e){return"videoinput"===e.kind})).sort((function(e,t){return e.label.includes("back")&&t.label.includes("front")?-1:e.label.includes("front")&&t.label.includes("back")?1:0}))},e.prototype.getMediaDeviceInfo=function(){var e=this;return new Promise((function(t,n){return Mt(e,void 0,void 0,(function(){var e,r;return At(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,navigator.mediaDevices.enumerateDevices()];case 1:return e=o.sent(),t(this.getSortAndFilterMediaDeviceInfoList(e)),[3,3];case 2:return r=o.sent(),n(r),[3,3];case 3:return[2]}}))}))}))},e.prototype.close=function(){null!=this.stream&&(this.stream.getTracks().forEach((function(e){return e.stop()})),this.stream=null)},e.prototype.getMediaStreamByConstraints=function(e){var t=this;return new Promise((function(n,r){return Mt(t,void 0,void 0,(function(){var t,o;return At(this,(function(i){switch(i.label){case 0:return null===this.stream||this.currentMediaTrackConstraints!==e?[3,1]:(n(this.stream),[3,4]);case 1:return i.trys.push([1,3,,4]),null!==this.stream&&this.currentMediaTrackConstraints!==e&&this.close(),t=this,[4,navigator.mediaDevices.getUserMedia({video:e})];case 2:return t.stream=i.sent(),this.currentMediaTrackConstraints=e,n(this.stream),[3,4];case 3:return o=i.sent(),r(o),[3,4];case 4:return[2]}}))}))}))},e.prototype.getDevices=function(e){return void 0===e&&(e=[]),this.devices.filter((function(t){return!e.includes(t.id)}))},e.prototype.getCurrentStream=function(){return this.stream},e.prototype.getStreamByDeviceId=function(e){var t=this;return new Promise((function(n,r){return Mt(t,void 0,void 0,(function(){var t,o;return At(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),Nt.set("deviceId",e),t=this,[4,this.getMediaStreamByConstraints(this.getMediaTrackConstraintsById(e))];case 1:return t.stream=i.sent(),n(this.stream),[3,3];case 2:return o=i.sent(),r(o),[3,3];case 3:return[2]}}))}))}))},e.prototype.getMediaTrackConstraintsById=function(e){return{deviceId:{exact:e}}},e.currentInstance=null,e}(),zt=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function l(e){try{c(r.throw(e))}catch(e){i(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,l)}c((r=r.apply(e,t||[])).next())}))},Dt=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}},Lt=u({root:{width:500},img:{width:"4em"}});var Wt=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,l=i.length;a<l;a++,o++)r[o]=i[a];return r},_t=document.getElementById("qrscannerredirect");g.init("qrscannerredirect"),Wt(document.getElementsByClassName("qr-scanner-redirect-open")).forEach((function(e){null!=e&&e.addEventListener("click",(function(){var e;null===(e=null===window||void 0===window?void 0:window.qrscannerredirect)||void 0===e||e.open()}))})),i.render(r.createElement((function(){var e=Lt(),t=Object(r.useState)(null),n=t[0],i=t[1],a=Object(r.useState)(null),l=a[0],c=a[1],s=Object(d.a)({palette:{primary:{main:g.getPrimaryColor(),contrastText:g.getPrimaryContrastText()}}}),u=null;function f(){c(o.a.createElement(jt,{onClose:function(e){c(null),b(e)}}))}function p(){null===n&&(c(o.a.createElement(Me,{className:Object(w.a)("qsr-dialog-root","qsr-dialog-permission-msg-root"),open:!0,disableEscapeKeyDown:!0,onClose:function(e){return!1}},o.a.createElement(Le,{className:Object(w.a)("qsr-dialog-title","qsr-dialog-permission-msg-title")},g.getTitleWaitPermission()))),Rt.getInstance().then((function(e){c(null),i(o.a.createElement(St,{videoStream:e,onClose:b}))})).catch((function(e){console.log(e),c(o.a.createElement(bt,{open:!0,title:g.getTitlePermissionFailed(),text:g.getContentPermissionFailed(),onClose:f}))})))}function m(e){g.isOpenNewTab()&&"function"==typeof window.open?window.open(e,"_blank").focus():window.location.href=e}function b(e){if(void 0===e&&(e=null),null!=e){if(v.validURL(e)||v.isValidHttpUrl(e))if(g.isForce())m(e);else{var t=g.getContentRedirect().replace("%URL",e);i(null),c(o.a.createElement(Ot,{title:g.getTitleRedirect(),text:t,onClose:function(t){return function(e,t){return zt(this,void 0,void 0,(function(){return Dt(this,(function(n){return e?m(t):c(null),[2]}))}))}(t,e)}}))}}else Rt.destory(),i(null)}return g.isButtonDisabled()||(u=o.a.createElement(H,{className:Object(w.a)("qsr-open-button"),onClick:function(){return p()}},o.a.createElement("img",{src:y.a,className:e.img,alt:"qrcode"}))),window.qrscannerredirect.open=function(){return p()},window.qrscannerredirect.openFileReader=function(){return f()},o.a.createElement(h,{theme:s},l,u,n)}),null),_t)},function(e,t,n){"use strict";n.r(t),n.d(t,"capitalize",(function(){return r.a})),n.d(t,"createChainedFunction",(function(){return o.a})),n.d(t,"createSvgIcon",(function(){return i.a})),n.d(t,"debounce",(function(){return a})),n.d(t,"deprecatedPropType",(function(){return l.a})),n.d(t,"isMuiElement",(function(){return c.a})),n.d(t,"ownerDocument",(function(){return s.a})),n.d(t,"ownerWindow",(function(){return u.a})),n.d(t,"requirePropFactory",(function(){return d})),n.d(t,"setRef",(function(){return f.a})),n.d(t,"unsupportedProp",(function(){return p})),n.d(t,"useControlled",(function(){return h})),n.d(t,"useEventCallback",(function(){return g.a})),n.d(t,"useForkRef",(function(){return v.a})),n.d(t,"unstable_useId",(function(){return b})),n.d(t,"useIsFocusVisible",(function(){return y.a}));var r=n(6),o=n(25),i=n(48);function a(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=this,l=function(){e.apply(a,o)};clearTimeout(t),t=setTimeout(l,n)}return r.clear=function(){clearTimeout(t)},r}var l=n(19),c=n(32),s=n(12),u=n(33);function d(e){return function(){return null}}var f=n(15);function p(e,t,n,r,o){return null}var m=n(0);function h(e){var t=e.controlled,n=e.default,r=(e.name,e.state,m.useRef(void 0!==t).current),o=m.useState(n),i=o[0],a=o[1];return[r?t:i,m.useCallback((function(e){r||a(e)}),[])]}var g=n(11),v=n(9);function b(e){var t=m.useState(e),n=t[0],r=t[1],o=e||n;return m.useEffect((function(){null==n&&r("mui-".concat(Math.round(1e5*Math.random())))}),[n]),o}var y=n(31)},,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(1),o=n(24);function i(e){return e&&"object"===Object(o.a)(e)&&e.constructor===Object}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},o=n.clone?Object(r.a)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(i(t[r])&&r in e?o[r]=a(e[r],t[r],n):o[r]=t[r])})),o}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),o=n.n(r),i=n(34);function a(){return o.a.useContext(i.a)}},function(e,t,n){"use strict";function r(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return pn}));var r=n(3),o=n(1),i=n(0),a=n.n(i),l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c="object"===("undefined"==typeof window?"undefined":l(window))&&"object"===("undefined"==typeof document?"undefined":l(document))&&9===document.nodeType;var s=n(21),u=n(18),d=n(26),f=n(14),p={}.constructor;function m(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(m);if(e.constructor!==p)return e;var t={};for(var n in e)t[n]=m(e[n]);return t}function h(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=m(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var g=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},v=function(e,t){if(void 0===t&&(t=!1),!Array.isArray(e))return e;var n="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=", "),n+=g(e[r]," ");else n=g(e,", ");return t||"!important"!==e[e.length-1]||(n+=" !important"),n};function b(e,t){for(var n="",r=0;r<t;r++)n+="  ";return n+e}function y(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,a=t.fallbacks;if(e&&i++,a)if(Array.isArray(a))for(var l=0;l<a.length;l++){var c=a[l];for(var s in c){var u=c[s];null!=u&&(r&&(r+="\n"),r+=b(s+": "+v(u)+";",i))}}else for(var d in a){var f=a[d];null!=f&&(r&&(r+="\n"),r+=b(d+": "+v(f)+";",i))}for(var p in t){var m=t[p];null!=m&&"fallbacks"!==p&&(r&&(r+="\n"),r+=b(p+": "+v(m)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r="\n"+r+"\n"),b(e+" {"+r,--i)+b("}",i)):r}var k=/([[\].#*$><+~=|^:(),"'`\s])/g,w="undefined"!=typeof CSS&&CSS.escape,C=function(e){return w?w(e):e.replace(k,"\\$1")},x=function(){function e(e,t,n){this.type="style",this.key=void 0,this.isProcessed=!1,this.style=void 0,this.renderer=void 0,this.renderable=void 0,this.options=void 0;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!r)return this;var l=i&&a;if(l?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return l?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var c=this.options.sheet;return c&&c.attached,this},e}(),B=function(e){function t(t,n,r){var o;(o=e.call(this,t,n,r)||this).selectorText=void 0,o.id=void 0,o.renderable=void 0;var i=r.selector,a=r.scoped,l=r.sheet,c=r.generateId;return i?o.selectorText=i:!1!==a&&(o.id=c(Object(d.a)(Object(d.a)(o)),l),o.selectorText="."+C(o.id)),o}Object(u.a)(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=v(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Object(o.a)({},e,{allowEmpty:!0}):e;return y(this.selectorText,this.style,n)},Object(s.a)(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(x),P={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new B(e,t,n)}},S={indent:1,children:!0},E=/@([\w-]+)/,O=function(){function e(e,t,n){this.type="conditional",this.at=void 0,this.key=void 0,this.query=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e;var r=e.match(E);for(var i in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new $(Object(o.a)({},n,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.toString=function(e){if(void 0===e&&(e=S),null==e.indent&&(e.indent=S.indent),null==e.children&&(e.children=S.children),!1===e.children)return this.query+" {}";var t=this.rules.toString(e);return t?this.query+" {\n"+t+"\n}":""},e}(),I=/@media|@supports\s+/,T={onCreateRule:function(e,t,n){return I.test(e)?new O(e,t,n):null}},j={indent:1,children:!0},N=/@keyframes\s+([\w-]+)/,M=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.key=void 0,this.name=void 0,this.id=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0;var r=e.match(N);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var i=n.scoped,a=n.sheet,l=n.generateId;for(var c in this.id=!1===i?this.name:C(l(this,a)),this.rules=new $(Object(o.a)({},n,{parent:this})),t)this.rules.add(c,t[c],Object(o.a)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){if(void 0===e&&(e=j),null==e.indent&&(e.indent=j.indent),null==e.children&&(e.children=j.children),!1===e.children)return this.at+" "+this.id+" {}";var t=this.rules.toString(e);return t&&(t="\n"+t+"\n"),this.at+" "+this.id+" {"+t+"}"},e}(),A=/@keyframes\s+/,R=/\$([\w-]+)/g,z=function(e,t){return"string"==typeof e?e.replace(R,(function(e,n){return n in t?t[n]:e})):e},D=function(e,t,n){var r=e[t],o=z(r,n);o!==r&&(e[t]=o)},L={onCreateRule:function(e,t,n){return"string"==typeof e&&A.test(e)?new M(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&D(e,"animation-name",n.keyframes),"animation"in e&&D(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return z(e,r.keyframes);default:return e}}},W=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).renderable=void 0,t}return Object(u.a)(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Object(o.a)({},e,{allowEmpty:!0}):e;return y(this.key,this.style,n)},t}(x),_={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new W(e,t,n):null}},F=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.key=void 0,this.style=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.style)){for(var t="",n=0;n<this.style.length;n++)t+=y(this.at,this.style[n]),this.style[n+1]&&(t+="\n");return t}return y(this.at,this.style,e)},e}(),Z=/@font-face/,U={onCreateRule:function(e,t,n){return Z.test(e)?new F(e,t,n):null}},V=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.key=void 0,this.style=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return y(this.key,this.style,e)},e}(),G={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new V(e,t,n):null}},H=function(){function e(e,t,n){this.type="simple",this.key=void 0,this.value=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),q={"@charset":!0,"@import":!0,"@namespace":!0},X=[P,T,L,_,U,G,{onCreateRule:function(e,t,n){return e in q?new H(e,t,n):null}}],Q={process:!0},Y={force:!0,process:!0},$=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=void 0,this.classes=void 0,this.keyframes=void 0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,i=r.parent,a=r.sheet,l=r.jss,c=r.Renderer,s=r.generateId,u=r.scoped,d=Object(o.a)({classes:this.classes,parent:i,sheet:a,jss:l,Renderer:c,generateId:s,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},n),f=e;e in this.raw&&(f=e+"-d"+this.counter++),this.raw[f]=t,f in this.classes&&(d.selector="."+C(this.classes[f]));var p=h(f,t,d);if(!p)return null;this.register(p);var m=void 0===d.index?this.index.length:d.index;return this.index.splice(m,0,p),p},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof B?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof M&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof B?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof M&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.map[e],t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=Q);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var l=t,c=l.style;if(i.onUpdate(n,t,a,r),r.process&&c&&c!==l.style){for(var s in i.onProcessStyle(l.style,l,a),l.style){var u=l.style[s];u!==c[s]&&l.prop(s,u,Y)}for(var d in c){var f=l.style[d],p=c[d];null==f&&f!==p&&l.prop(d,null,Y)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=0;o<this.index.length;o++){var i=this.index[o].toString(e);(i||r)&&(t&&(t+="\n"),t+=i)}return t},e}(),K=function(){function e(e,t){for(var n in this.options=void 0,this.deployed=void 0,this.attached=void 0,this.rules=void 0,this.renderer=void 0,this.classes=void 0,this.keyframes=void 0,this.queue=void 0,this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=Object(o.a)({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new $(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),J=function(){function e(){this.plugins={internal:[],external:[]},this.registry=void 0}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),ee=new(function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=Object(f.a)(t,["attached"]),o="",i=0;i<this.registry.length;i++){var a=this.registry[i];null!=n&&a.attached!==n||(o&&(o+="\n"),o+=a.toString(r))}return o},Object(s.a)(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}()),te="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),ne="2f1acc6c3a606b082e5eef5e54414ffb";null==te[ne]&&(te[ne]=0);var re=te[ne]++,oe=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var o="",i="";return r&&(r.options.classNamePrefix&&(i=r.options.classNamePrefix),null!=r.options.jss.id&&(o=String(r.options.jss.id))),e.minify?""+(i||"c")+re+o+t:i+n.key+"-"+re+(o?"-"+o:"")+"-"+t}},ie=function(e){var t;return function(){return t||(t=e()),t}},ae=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},le=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=v(n,!0),"!important"===n[n.length-1]))return e.style.setProperty(t,r,"important"),!0;e.attributeStyleMap?e.attributeStyleMap.set(t,r):e.style.setProperty(t,r)}catch(e){return!1}return!0},ce=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},se=function(e,t){return e.selectorText=t,e.selectorText===t},ue=ie((function(){return document.querySelector("head")}));function de(e){var t=ee.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if((n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e))&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var o=function(e){for(var t=ue(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var fe=ie((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),pe=function(e,t,n){try{if("insertRule"in e)e.insertRule(t,n);else if("appendRule"in e){e.appendRule(t)}}catch(e){return!1}return e.cssRules[n]},me=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},he=function(){function e(e){this.getPropertyValue=ae,this.setProperty=le,this.removeProperty=ce,this.setSelector=se,this.element=void 0,this.sheet=void 0,this.hasInsertedRules=!1,this.cssRules=[],e&&ee.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var i=fe();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=de(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else ue().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,o=n;if("conditional"===e.type||"keyframes"===e.type){var i=me(n,t);if(!1===(o=pe(n,r.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(r.rules,o),o}var a=e.toString();if(!a)return!1;var l=me(n,t),c=pe(n,a,l);return!1!==c&&(this.hasInsertedRules=!0,this.refCssRule(e,l,c),c)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof K&&(this.cssRules[t]=n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),ge=0,ve=function(){function e(e){this.id=ge++,this.version="10.7.1",this.plugins=new J,this.options={id:{minify:!1},createGenerateId:oe,Renderer:c?he:null,plugins:[]},this.generateId=oe({minify:!1});for(var t=0;t<X.length;t++)this.plugins.use(X[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=Object(o.a)({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===ee.index?0:ee.index+1);var r=new K(e,Object(o.a)({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),ee.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var r=Object(o.a)({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var i=h(e,t,r);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}();var be="object"==typeof CSS&&null!=CSS&&"number"in CSS,ye=function(e){return new ve(e)};
     38 */var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,l=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,s=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,m=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,b=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,k=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function C(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case d:case f:case a:case c:case l:case m:return e;default:switch(e=e&&e.$$typeof){case u:case p:case v:case g:case s:return e;default:return t}}case i:return t}}}function x(e){return C(e)===f}t.AsyncMode=d,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=s,t.Element=o,t.ForwardRef=p,t.Fragment=a,t.Lazy=v,t.Memo=g,t.Portal=i,t.Profiler=c,t.StrictMode=l,t.Suspense=m,t.isAsyncMode=function(e){return x(e)||C(e)===d},t.isConcurrentMode=x,t.isContextConsumer=function(e){return C(e)===u},t.isContextProvider=function(e){return C(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return C(e)===p},t.isFragment=function(e){return C(e)===a},t.isLazy=function(e){return C(e)===v},t.isMemo=function(e){return C(e)===g},t.isPortal=function(e){return C(e)===i},t.isProfiler=function(e){return C(e)===c},t.isStrictMode=function(e){return C(e)===l},t.isSuspense=function(e){return C(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===f||e===c||e===l||e===m||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===g||e.$$typeof===s||e.$$typeof===u||e.$$typeof===p||e.$$typeof===y||e.$$typeof===k||e.$$typeof===w||e.$$typeof===b)},t.typeOf=C},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(69).default;function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}e.exports=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var c=a?Object.getOwnPropertyDescriptor(e,l):null;c&&(c.get||c.set)?Object.defineProperty(i,l,c):i[l]=e[l]}return i.default=e,n&&n.set(e,i),i},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=n=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(77)},function(e,t,n){var r=n(72);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(74)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(t=n(73)(!1)).push([e.i,'.qrscanner video {\n  position: fixed;\n  right: 0;\n  bottom: 0;\n  min-width: 100%;\n  min-height: 100%;\n}\n\n\n:root {\n  --main-qrcode-border: 3px;\n  --main-qrcode-scanner-width: 25vh;\n  --main-qrcode-scanner-height-move: 23.5vh;\n}\n\n.ocrloader {\n  width: var(--main-qrcode-scanner-width);\n  height: var(--main-qrcode-scanner-width);\n  z-index: 1;\n  position: absolute;\n  left: 50%;\n  top: 50%;\n  transform: translate(-50%,-50%);\n  backface-visibility: hidden;\n}\n.ocrloader span {\n  position: absolute;\n  left: 0;\n  top: 0;\n  width: 100%;\n  height: 1.5vh;\n  background-color: rgba(45, 183, 183, 0.54);\n  z-index: 2;\n  -webkit-animation: action 1s infinite  alternate;\n  animation: action 1s infinite  alternate;\n}\n\n\n\n.ocrloader:before,  .ocrloader:after,\nem:after, em:before {\n    z-index: 3;\n    border-color: #000;\n    content: "";\n    position: absolute;\n    width: 19px;\n    height: 16px;\n    border-style: solid;\n    border-width: 0px;\n  }\n.ocrloader:before {\n    left: 0;\n    top: 0;\n    border-left-width: var(--main-qrcode-border);\n    border-top-width: var(--main-qrcode-border);\n  }\n.ocrloader:after {\n    right: 0;\n    top: 0;\n    border-right-width: var(--main-qrcode-border);\n    border-top-width: var(--main-qrcode-border);\n  }\nem:before {\n  left: 0;\n  bottom: 0;\n  border-left-width: var(--main-qrcode-border);\n  border-bottom-width: var(--main-qrcode-border);\n}\nem:after {\n  right: 0;\n  bottom: 0;\n  border-right-width: var(--main-qrcode-border);\n  border-bottom-width: var(--main-qrcode-border);\n}\n\n\n@keyframes move {\n  /* 0%, 100% { transform: translateY(300%); }\n  50% { transform: translateY(0%); }\n  75% { transform: translateY(800%); } */\n  0%, 100% {\n    bottom: 0;\n  }\n  50% {\n    bottom: 100px;\n  }\n}\n\n@-webkit-keyframes action {\n        0% { transform: translateY(0); }\n        100% { transform: translateY(var(--main-qrcode-scanner-height-move)); }\n}\n@keyframes action {\n    0% { transform: translateY(0); }\n    100% { transform: translateY(var(--main-qrcode-scanner-height-move)); }\n}\n',""]),e.exports=t},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(a=r,l=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(l),"/*# ".concat(c," */")),i=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(i).concat([o]).join("\n")}var a,l,c;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var l=0;l<e.length;l++){var c=[].concat(e[l]);r&&o[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},function(e,t,n){var r,o,i={},a=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===o&&(o=r.apply(this,arguments)),o}),l=function(e,t){return t?t.querySelector(e):document.querySelector(e)},c=function(e){var t={};return function(e,n){if("function"==typeof e)return e();if(void 0===t[e]){var r=l.call(this,e,n);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}}(),s=null,u=0,d=[],f=n(75);function p(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=i[r.id];if(o){o.refs++;for(var a=0;a<o.parts.length;a++)o.parts[a](r.parts[a]);for(;a<r.parts.length;a++)o.parts.push(y(r.parts[a],t))}else{var l=[];for(a=0;a<r.parts.length;a++)l.push(y(r.parts[a],t));i[r.id]={id:r.id,refs:1,parts:l}}}}function m(e,t){for(var n=[],r={},o=0;o<e.length;o++){var i=e[o],a=t.base?i[0]+t.base:i[0],l={css:i[1],media:i[2],sourceMap:i[3]};r[a]?r[a].parts.push(l):n.push(r[a]={id:a,parts:[l]})}return n}function h(e,t){var n=c(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=d[d.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),d.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var o=c(e.insertAt.before,n);n.insertBefore(t,o)}}function g(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=d.indexOf(e);t>=0&&d.splice(t,1)}function v(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var r=function(){0;return n.nc}();r&&(e.attrs.nonce=r)}return b(t,e.attrs),h(e,t),t}function b(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function y(e,t){var n,r,o,i;if(t.transform&&e.css){if(!(i="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=i}if(t.singleton){var a=u++;n=s||(s=v(t)),r=C.bind(null,n,a,!1),o=C.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",b(t,e.attrs),h(e,t),t}(t),r=B.bind(null,n,t),o=function(){g(n),n.href&&URL.revokeObjectURL(n.href)}):(n=v(t),r=x.bind(null,n),o=function(){g(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=m(e,t);return p(n,t),function(e){for(var r=[],o=0;o<n.length;o++){var a=n[o];(l=i[a.id]).refs--,r.push(l)}e&&p(m(e,t),t);for(o=0;o<r.length;o++){var l;if(0===(l=r[o]).refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete i[l.id]}}}};var k,w=(k=[],function(e,t){return k[e]=t,k.filter(Boolean).join("\n")});function C(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=w(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function x(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function B(e,t,n){var r=n.css,o=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&o;(t.convertToAbsoluteUrls||i)&&(r=f(r)),o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var a=new Blob([r],{type:"text/css"}),l=e.href;e.href=URL.createObjectURL(a),l&&URL.revokeObjectURL(l)}},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,t){var o,i=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i)?e:(o=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:r+i.replace(/^\.\//,""),"url("+JSON.stringify(o)+")")}))}},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),i=n(8),a=n.n(i),l=n(1),c=n(100),s=n(20);var u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(c.a)(e,Object(l.a)({defaultTheme:s.a},t))},d=n(52),f=(n(5),n(34)),p=n(98),m=n(36);var h=function(e){var t=e.children,n=e.theme,r=Object(p.a)(),i=o.a.useMemo((function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):Object(l.a)({},e,t)}(r,n);return null!=e&&(e[m.a]=null!==r),e}),[n,r]);return o.a.createElement(f.a.Provider,{value:i},t)},g=function(){function e(){}return e.getDefaultSettings=function(){return{force:!1,disableButton:!1,openNewTab:!0,primaryColor:"#000",primaryContrastText:"#fff",titleSelectDevice:"Select device",titlePermissionFailed:"Permission failed",contentPermissionFailed:"Your browser has no permission for the camera. Please activate the permission.",titleWaitPermission:"Wait for your permission",titleScanQRCode:"QR-Code-Scanner",titleRedirect:"Forwarding",contentRedirect:'Would you like to redirect to the url "%URL"',failedReadQRImage:"No QR-Code found on the picture.",noPermissionDialogTitle:"No camera permission",noPermissionDialogText:"Your browser has no access to your camera. You can still upload a photo to use the QR scanner.",noPermissionDialogButton:"Choose a photo",assetURLPath:""}},e.init=function(t){window.hasOwnProperty(t)?window.qrscannerredirect.settings=Object.assign(e.getDefaultSettings(),window.qrscannerredirect.settings):window.qrscannerredirect={settings:e.getDefaultSettings()},window.qrscannerredirect.app_name=t},e.getFailedReadQRImage=function(){return window.qrscannerredirect.settings.failedReadQRImage},e.getNoPermissionDialogTitle=function(){return window.qrscannerredirect.settings.noPermissionDialogTitle},e.getNoPermissionDialogText=function(){return window.qrscannerredirect.settings.noPermissionDialogText},e.getNoPermissionDialogButton=function(){return window.qrscannerredirect.settings.noPermissionDialogButton},e.getTitlePermissionFailed=function(){return window.qrscannerredirect.settings.titlePermissionFailed},e.getContentPermissionFailed=function(){return window.qrscannerredirect.settings.contentPermissionFailed},e.isButtonDisabled=function(){return window.qrscannerredirect.settings.disableButton},e.getContentRedirect=function(){return window.qrscannerredirect.settings.contentRedirect},e.getTitleRedirect=function(){return window.qrscannerredirect.settings.titleRedirect},e.getTitleWaitPermission=function(){return window.qrscannerredirect.settings.titleWaitPermission},e.getTitleScanQRCode=function(){return window.qrscannerredirect.settings.titleScanQRCode},e.getTitleSelectDevice=function(){return window.qrscannerredirect.settings.titleSelectDevice},e.getPrimaryColor=function(){return window.qrscannerredirect.settings.primaryColor},e.getPrimaryContrastText=function(){return window.qrscannerredirect.settings.primaryContrastText},e.isForce=function(){return window.qrscannerredirect.settings.force},e.isOpenNewTab=function(){return window.qrscannerredirect.settings.openNewTab},e.getAssetURLPath=function(){return window.qrscannerredirect.settings.assetURLPath},e}(),v=function(){function e(){}return e.validURL=function(e){return!!new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(e)},e.isValidHttpUrl=function(e){var t;try{t=new URL(e)}catch(e){return!1}return"http:"===t.protocol||"https:"===t.protocol},e}(),b=n(49),y=n.n(b),k=n(3),w=n(2),C=n(4),x=n(10),B=n(9),P=n(11),S=n(31),E=n(16),O=n(14),I=n(26),T=n(18),j=o.a.createContext(null);function N(e,t){var n=Object.create(null);return e&&r.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&Object(r.isValidElement)(e)?t(e):e}(e)})),n}function M(e,t,n){return null!=n[t]?n[t]:e.props[t]}function A(e,t,n){var o=N(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var l={};for(var c in t){if(o[c])for(r=0;r<o[c].length;r++){var s=o[c][r];l[o[c][r]]=n(s)}l[c]=n(c)}for(r=0;r<i.length;r++)l[i[r]]=n(i[r]);return l}(t,o);return Object.keys(i).forEach((function(a){var l=i[a];if(Object(r.isValidElement)(l)){var c=a in t,s=a in o,u=t[a],d=Object(r.isValidElement)(u)&&!u.props.in;!s||c&&!d?s||!c||d?s&&c&&Object(r.isValidElement)(u)&&(i[a]=Object(r.cloneElement)(l,{onExited:n.bind(null,l),in:u.props.in,exit:M(l,"exit",e),enter:M(l,"enter",e)})):i[a]=Object(r.cloneElement)(l,{in:!1}):i[a]=Object(r.cloneElement)(l,{onExited:n.bind(null,l),in:!0,exit:M(l,"exit",e),enter:M(l,"enter",e)})}})),i}var R=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},z=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Object(I.a)(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Object(T.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,o,i=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,o=a,N(n.children,(function(e){return Object(r.cloneElement)(e,{onExited:o.bind(null,e),in:!0,appear:M(e,"appear",n),enter:M(e,"enter",n),exit:M(e,"exit",n)})}))):A(e,i,a),firstRender:!1}},n.handleExited=function(e,t){var n=N(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Object(l.a)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Object(O.a)(e,["component","childFactory"]),i=this.state.contextValue,a=R(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?o.a.createElement(j.Provider,{value:i},a):o.a.createElement(j.Provider,{value:i},o.a.createElement(t,r,a))},t}(o.a.Component);z.propTypes={},z.defaultProps={component:"div",childFactory:function(e){return e}};var D=z,L="undefined"==typeof window?r.useEffect:r.useLayoutEffect;var W=function(e){var t=e.classes,n=e.pulsate,o=void 0!==n&&n,i=e.rippleX,a=e.rippleY,l=e.rippleSize,c=e.in,s=e.onExited,u=void 0===s?function(){}:s,d=e.timeout,f=r.useState(!1),p=f[0],m=f[1],h=Object(w.a)(t.ripple,t.rippleVisible,o&&t.ripplePulsate),g={width:l,height:l,top:-l/2+a,left:-l/2+i},v=Object(w.a)(t.child,p&&t.childLeaving,o&&t.childPulsate),b=Object(P.a)(u);return L((function(){if(!c){m(!0);var e=setTimeout(b,d);return function(){clearTimeout(e)}}}),[b,c,d]),r.createElement("span",{className:h,style:g},r.createElement("span",{className:v}))},_=r.forwardRef((function(e,t){var n=e.center,o=void 0!==n&&n,i=e.classes,a=e.className,c=Object(k.a)(e,["center","classes","className"]),s=r.useState([]),u=s[0],d=s[1],f=r.useRef(0),p=r.useRef(null);r.useEffect((function(){p.current&&(p.current(),p.current=null)}),[u]);var m=r.useRef(!1),h=r.useRef(null),g=r.useRef(null),v=r.useRef(null);r.useEffect((function(){return function(){clearTimeout(h.current)}}),[]);var b=r.useCallback((function(e){var t=e.pulsate,n=e.rippleX,o=e.rippleY,a=e.rippleSize,l=e.cb;d((function(e){return[].concat(Object(E.a)(e),[r.createElement(W,{key:f.current,classes:i,timeout:550,pulsate:t,rippleX:n,rippleY:o,rippleSize:a})])})),f.current+=1,p.current=l}),[i]),y=r.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.pulsate,i=void 0!==r&&r,a=t.center,l=void 0===a?o||t.pulsate:a,c=t.fakeElement,s=void 0!==c&&c;if("mousedown"===e.type&&m.current)m.current=!1;else{"touchstart"===e.type&&(m.current=!0);var u,d,f,p=s?null:v.current,y=p?p.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(l||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(y.width/2),d=Math.round(y.height/2);else{var k=e.touches?e.touches[0]:e,w=k.clientX,C=k.clientY;u=Math.round(w-y.left),d=Math.round(C-y.top)}if(l)(f=Math.sqrt((2*Math.pow(y.width,2)+Math.pow(y.height,2))/3))%2==0&&(f+=1);else{var x=2*Math.max(Math.abs((p?p.clientWidth:0)-u),u)+2,B=2*Math.max(Math.abs((p?p.clientHeight:0)-d),d)+2;f=Math.sqrt(Math.pow(x,2)+Math.pow(B,2))}e.touches?null===g.current&&(g.current=function(){b({pulsate:i,rippleX:u,rippleY:d,rippleSize:f,cb:n})},h.current=setTimeout((function(){g.current&&(g.current(),g.current=null)}),80)):b({pulsate:i,rippleX:u,rippleY:d,rippleSize:f,cb:n})}}),[o,b]),C=r.useCallback((function(){y({},{pulsate:!0})}),[y]),x=r.useCallback((function(e,t){if(clearTimeout(h.current),"touchend"===e.type&&g.current)return e.persist(),g.current(),g.current=null,void(h.current=setTimeout((function(){x(e,t)})));g.current=null,d((function(e){return e.length>0?e.slice(1):e})),p.current=t}),[]);return r.useImperativeHandle(t,(function(){return{pulsate:C,start:y,stop:x}}),[C,y,x]),r.createElement("span",Object(l.a)({className:Object(w.a)(i.root,a),ref:v},c),r.createElement(D,{component:null,exit:!0},u))})),F=Object(C.a)((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(r.memo(_)),Z=r.forwardRef((function(e,t){var n=e.action,o=e.buttonRef,a=e.centerRipple,c=void 0!==a&&a,s=e.children,u=e.classes,d=e.className,f=e.component,p=void 0===f?"button":f,m=e.disabled,h=void 0!==m&&m,g=e.disableRipple,v=void 0!==g&&g,b=e.disableTouchRipple,y=void 0!==b&&b,C=e.focusRipple,x=void 0!==C&&C,E=e.focusVisibleClassName,O=e.onBlur,I=e.onClick,T=e.onFocus,j=e.onFocusVisible,N=e.onKeyDown,M=e.onKeyUp,A=e.onMouseDown,R=e.onMouseLeave,z=e.onMouseUp,D=e.onTouchEnd,L=e.onTouchMove,W=e.onTouchStart,_=e.onDragLeave,Z=e.tabIndex,U=void 0===Z?0:Z,V=e.TouchRippleProps,G=e.type,H=void 0===G?"button":G,q=Object(k.a)(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),X=r.useRef(null);var Q=r.useRef(null),Y=r.useState(!1),$=Y[0],K=Y[1];h&&$&&K(!1);var J=Object(S.a)(),ee=J.isFocusVisible,te=J.onBlurVisible,ne=J.ref;function re(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;return Object(P.a)((function(r){return t&&t(r),!n&&Q.current&&Q.current[e](r),!0}))}r.useImperativeHandle(n,(function(){return{focusVisible:function(){K(!0),X.current.focus()}}}),[]),r.useEffect((function(){$&&x&&!v&&Q.current.pulsate()}),[v,x,$]);var oe=re("start",A),ie=re("stop",_),ae=re("stop",z),le=re("stop",(function(e){$&&e.preventDefault(),R&&R(e)})),ce=re("start",W),se=re("stop",D),ue=re("stop",L),de=re("stop",(function(e){$&&(te(e),K(!1)),O&&O(e)}),!1),fe=Object(P.a)((function(e){X.current||(X.current=e.currentTarget),ee(e)&&(K(!0),j&&j(e)),T&&T(e)})),pe=function(){var e=i.findDOMNode(X.current);return p&&"button"!==p&&!("A"===e.tagName&&e.href)},me=r.useRef(!1),he=Object(P.a)((function(e){x&&!me.current&&$&&Q.current&&" "===e.key&&(me.current=!0,e.persist(),Q.current.stop(e,(function(){Q.current.start(e)}))),e.target===e.currentTarget&&pe()&&" "===e.key&&e.preventDefault(),N&&N(e),e.target===e.currentTarget&&pe()&&"Enter"===e.key&&!h&&(e.preventDefault(),I&&I(e))})),ge=Object(P.a)((function(e){x&&" "===e.key&&Q.current&&$&&!e.defaultPrevented&&(me.current=!1,e.persist(),Q.current.stop(e,(function(){Q.current.pulsate(e)}))),M&&M(e),I&&e.target===e.currentTarget&&pe()&&" "===e.key&&!e.defaultPrevented&&I(e)})),ve=p;"button"===ve&&q.href&&(ve="a");var be={};"button"===ve?(be.type=H,be.disabled=h):("a"===ve&&q.href||(be.role="button"),be["aria-disabled"]=h);var ye=Object(B.a)(o,t),ke=Object(B.a)(ne,X),we=Object(B.a)(ye,ke),Ce=r.useState(!1),xe=Ce[0],Be=Ce[1];r.useEffect((function(){Be(!0)}),[]);var Pe=xe&&!v&&!h;return r.createElement(ve,Object(l.a)({className:Object(w.a)(u.root,d,$&&[u.focusVisible,E],h&&u.disabled),onBlur:de,onClick:I,onFocus:fe,onKeyDown:he,onKeyUp:ge,onMouseDown:oe,onMouseLeave:le,onMouseUp:ae,onDragLeave:ie,onTouchEnd:se,onTouchMove:ue,onTouchStart:ce,ref:we,tabIndex:h?-1:U},be,q),s,Pe?r.createElement(F,Object(l.a)({ref:Q,center:c},V)):null)})),U=Object(C.a)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(Z),V=n(6),G=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.color,c=void 0===a?"default":a,s=e.component,u=void 0===s?"button":s,d=e.disabled,f=void 0!==d&&d,p=e.disableElevation,m=void 0!==p&&p,h=e.disableFocusRipple,g=void 0!==h&&h,v=e.endIcon,b=e.focusVisibleClassName,y=e.fullWidth,C=void 0!==y&&y,x=e.size,B=void 0===x?"medium":x,P=e.startIcon,S=e.type,E=void 0===S?"button":S,O=e.variant,I=void 0===O?"text":O,T=Object(k.a)(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),j=P&&r.createElement("span",{className:Object(w.a)(o.startIcon,o["iconSize".concat(Object(V.a)(B))])},P),N=v&&r.createElement("span",{className:Object(w.a)(o.endIcon,o["iconSize".concat(Object(V.a)(B))])},v);return r.createElement(U,Object(l.a)({className:Object(w.a)(o.root,o[I],i,"inherit"===c?o.colorInherit:"default"!==c&&o["".concat(I).concat(Object(V.a)(c))],"medium"!==B&&[o["".concat(I,"Size").concat(Object(V.a)(B))],o["size".concat(Object(V.a)(B))]],m&&o.disableElevation,f&&o.disabled,C&&o.fullWidth),component:u,disabled:f,focusRipple:!g,focusVisibleClassName:Object(w.a)(o.focusVisible,b),ref:t,type:E},T),r.createElement("span",{className:o.label},j,n,N))})),H=Object(C.a)((function(e){return{root:Object(l.a)({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:Object(x.a)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(x.a)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(x.a)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(Object(x.a)(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:Object(x.a)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(Object(x.a)(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:Object(x.a)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(G),q=n(48),X=Object(q.a)(r.createElement("path",{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z"}),"AttachFile"),Q=Object(q.a)(r.createElement("path",{d:"M10 20H5v2h5v2l3-3-3-3v2zm4 0v2h5v-2h-5zM12 8c1.1 0 2-.9 2-2s-.9-2-2-2-1.99.9-1.99 2S10.9 8 12 8zm5-8H7C5.9 0 5 .9 5 2v14c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2zM7 2h10v10.5c0-1.67-3.33-2.5-5-2.5s-5 .83-5 2.5V2z"}),"CameraFront"),Y=n(13),$=n(99),K=n(12),J=n(15);var ee="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;var te=r.forwardRef((function(e,t){var n=e.children,o=e.container,a=e.disablePortal,l=void 0!==a&&a,c=e.onRendered,s=r.useState(null),u=s[0],d=s[1],f=Object(B.a)(r.isValidElement(n)?n.ref:null,t);return ee((function(){l||d(function(e){return e="function"==typeof e?e():e,i.findDOMNode(e)}(o)||document.body)}),[o,l]),ee((function(){if(u&&!l)return Object(J.a)(t,u),function(){Object(J.a)(t,null)}}),[t,u,l]),ee((function(){c&&(u||l)&&c()}),[c,u,l]),l?r.isValidElement(n)?r.cloneElement(n,{ref:f}):n:u?i.createPortal(n,u):u})),ne=n(25),re=n(37);var oe=n(21);var ie=n(33);function ae(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function le(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function ce(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0,i=[t,n].concat(Object(E.a)(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===i.indexOf(e)&&-1===a.indexOf(e.tagName)&&ae(e,o)}))}function se(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function ue(e,t){var n,r=[],o=[],i=e.container;if(!t.disableScrollLock){if(function(e){var t=Object(K.a)(e);return t.body===e?Object(ie.a)(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){var a=function(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}();r.push({value:i.style.paddingRight,key:"padding-right",el:i}),i.style["padding-right"]="".concat(le(i)+a,"px"),n=Object(K.a)(i).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(le(e)+a,"px")}))}var l=i.parentElement,c="HTML"===l.nodeName&&"scroll"===window.getComputedStyle(l)["overflow-y"]?l:i;r.push({value:c.style.overflow,key:"overflow",el:c}),c.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){o[t]?e.style.paddingRight=o[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var de=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modals=[],this.containers=[]}return Object(oe.a)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&ae(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);ce(t,e.mountNode,e.modalRef,r,!0);var o=se(this.containers,(function(e){return e.container===t}));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=se(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=ue(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=se(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&ae(e.modalRef,!0),ce(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var o=r.modals[r.modals.length-1];o.modalRef&&ae(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();var fe=function(e){var t=e.children,n=e.disableAutoFocus,o=void 0!==n&&n,a=e.disableEnforceFocus,l=void 0!==a&&a,c=e.disableRestoreFocus,s=void 0!==c&&c,u=e.getDoc,d=e.isEnabled,f=e.open,p=r.useRef(),m=r.useRef(null),h=r.useRef(null),g=r.useRef(),v=r.useRef(null),b=r.useCallback((function(e){v.current=i.findDOMNode(e)}),[]),y=Object(B.a)(t.ref,b),k=r.useRef();return r.useEffect((function(){k.current=f}),[f]),!k.current&&f&&"undefined"!=typeof window&&(g.current=u().activeElement),r.useEffect((function(){if(f){var e=Object(K.a)(v.current);o||!v.current||v.current.contains(e.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex",-1),v.current.focus());var t=function(){null!==v.current&&(e.hasFocus()&&!l&&d()&&!p.current?v.current&&!v.current.contains(e.activeElement)&&v.current.focus():p.current=!1)},n=function(t){!l&&d()&&9===t.keyCode&&e.activeElement===v.current&&(p.current=!0,t.shiftKey?h.current.focus():m.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var r=setInterval((function(){t()}),50);return function(){clearInterval(r),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),s||(g.current&&g.current.focus&&g.current.focus(),g.current=null)}}}),[o,l,s,d,f]),r.createElement(r.Fragment,null,r.createElement("div",{tabIndex:0,ref:m,"data-test":"sentinelStart"}),r.cloneElement(t,{ref:y}),r.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelEnd"}))},pe={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},me=r.forwardRef((function(e,t){var n=e.invisible,o=void 0!==n&&n,i=e.open,a=Object(k.a)(e,["invisible","open"]);return i?r.createElement("div",Object(l.a)({"aria-hidden":!0,ref:t},a,{style:Object(l.a)({},pe.root,o?pe.invisible:{},a.style)})):null}));var he=new de,ge=r.forwardRef((function(e,t){var n=Object(p.a)(),o=Object($.a)({name:"MuiModal",props:Object(l.a)({},e),theme:n}),a=o.BackdropComponent,c=void 0===a?me:a,s=o.BackdropProps,u=o.children,d=o.closeAfterTransition,f=void 0!==d&&d,m=o.container,h=o.disableAutoFocus,g=void 0!==h&&h,v=o.disableBackdropClick,b=void 0!==v&&v,y=o.disableEnforceFocus,w=void 0!==y&&y,C=o.disableEscapeKeyDown,x=void 0!==C&&C,S=o.disablePortal,E=void 0!==S&&S,O=o.disableRestoreFocus,I=void 0!==O&&O,T=o.disableScrollLock,j=void 0!==T&&T,N=o.hideBackdrop,M=void 0!==N&&N,A=o.keepMounted,R=void 0!==A&&A,z=o.manager,D=void 0===z?he:z,L=o.onBackdropClick,W=o.onClose,_=o.onEscapeKeyDown,F=o.onRendered,Z=o.open,U=Object(k.a)(o,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),V=r.useState(!0),G=V[0],H=V[1],q=r.useRef({}),X=r.useRef(null),Q=r.useRef(null),Y=Object(B.a)(Q,t),J=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(o),ee=function(){return Object(K.a)(X.current)},oe=function(){return q.current.modalRef=Q.current,q.current.mountNode=X.current,q.current},ie=function(){D.mount(oe(),{disableScrollLock:j}),Q.current.scrollTop=0},le=Object(P.a)((function(){var e=function(e){return e="function"==typeof e?e():e,i.findDOMNode(e)}(m)||ee().body;D.add(oe(),e),Q.current&&ie()})),ce=r.useCallback((function(){return D.isTopModal(oe())}),[D]),se=Object(P.a)((function(e){X.current=e,e&&(F&&F(),Z&&ce()?ie():ae(Q.current,!0))})),ue=r.useCallback((function(){D.remove(oe())}),[D]);if(r.useEffect((function(){return function(){ue()}}),[ue]),r.useEffect((function(){Z?le():J&&f||ue()}),[Z,ue,J,f,le]),!R&&!Z&&(!J||G))return null;var de=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:re.a}),pe={};return void 0===u.props.tabIndex&&(pe.tabIndex=u.props.tabIndex||"-1"),J&&(pe.onEnter=Object(ne.a)((function(){H(!1)}),u.props.onEnter),pe.onExited=Object(ne.a)((function(){H(!0),f&&ue()}),u.props.onExited)),r.createElement(te,{ref:se,container:m,disablePortal:E},r.createElement("div",Object(l.a)({ref:Y,onKeyDown:function(e){"Escape"===e.key&&ce()&&(_&&_(e),x||(e.stopPropagation(),W&&W(e,"escapeKeyDown")))},role:"presentation"},U,{style:Object(l.a)({},de.root,!Z&&G?de.hidden:{},U.style)}),M?null:r.createElement(c,Object(l.a)({open:Z,onClick:function(e){e.target===e.currentTarget&&(L&&L(e),!b&&W&&W(e,"backdropClick"))}},s)),r.createElement(fe,{disableEnforceFocus:w,disableAutoFocus:g,disableRestoreFocus:I,getDoc:ee,isEnabled:ce,open:Z},r.cloneElement(u,pe))))})),ve=n(39),be=!1,ye=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o="exited",r.appearStatus="entering"):o="entered":o=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",r.state={status:o},r.nextCallback=null,r}Object(T.a)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(t="entering"):"entering"!==n&&"entered"!==n||(t="exiting")}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),"entering"===t?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[a.a.findDOMNode(this),r],i=o[0],l=o[1],c=this.getTimeouts(),s=r?c.appear:c.enter;!e&&!n||be?this.safeSetState({status:"entered"},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,l),this.safeSetState({status:"entering"},(function(){t.props.onEntering(i,l),t.onTransitionEnd(s,(function(){t.safeSetState({status:"entered"},(function(){t.props.onEntered(i,l)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:a.a.findDOMNode(this);t&&!be?(this.props.onExit(r),this.safeSetState({status:"exiting"},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:a.a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],l=o[1];this.props.addEndListener(i,l)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if("unmounted"===e)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,Object(O.a)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return o.a.createElement(j.Provider,{value:null},"function"==typeof n?n(e,r):o.a.cloneElement(o.a.Children.only(n),r))},t}(o.a.Component);function ke(){}ye.contextType=j,ye.propTypes={},ye.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ke,onEntering:ke,onEntered:ke,onExit:ke,onExiting:ke,onExited:ke},ye.UNMOUNTED="unmounted",ye.EXITED="exited",ye.ENTERING="entering",ye.ENTERED="entered",ye.EXITING="exiting";var we=ye,Ce=n(17);function xe(e,t){var n=e.timeout,r=e.style,o=void 0===r?{}:r;return{duration:o.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:o.transitionDelay}}var Be={entering:{opacity:1},entered:{opacity:1}},Pe={enter:Ce.b.enteringScreen,exit:Ce.b.leavingScreen},Se=r.forwardRef((function(e,t){var n=e.children,o=e.disableStrictModeCompat,i=void 0!==o&&o,a=e.in,c=e.onEnter,u=e.onEntered,d=e.onEntering,f=e.onExit,m=e.onExited,h=e.onExiting,g=e.style,v=e.TransitionComponent,b=void 0===v?we:v,y=e.timeout,w=void 0===y?Pe:y,C=Object(k.a)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),x=Object(p.a)()||s.a,P=x.unstable_strictMode&&!i,S=r.useRef(null),E=Object(B.a)(n.ref,t),O=Object(B.a)(P?S:void 0,E),I=function(e){return function(t,n){if(e){var r=P?[S.current,t]:[t,n],o=Object(ve.a)(r,2),i=o[0],a=o[1];void 0===a?e(i):e(i,a)}}},T=I(d),j=I((function(e,t){!function(e){e.scrollTop}(e);var n=xe({style:g,timeout:w},{mode:"enter"});e.style.webkitTransition=x.transitions.create("opacity",n),e.style.transition=x.transitions.create("opacity",n),c&&c(e,t)})),N=I(u),M=I(h),A=I((function(e){var t=xe({style:g,timeout:w},{mode:"exit"});e.style.webkitTransition=x.transitions.create("opacity",t),e.style.transition=x.transitions.create("opacity",t),f&&f(e)})),R=I(m);return r.createElement(b,Object(l.a)({appear:!0,in:a,nodeRef:P?S:void 0,onEnter:j,onEntered:N,onEntering:T,onExit:A,onExited:R,onExiting:M,timeout:w},C),(function(e,t){return r.cloneElement(n,Object(l.a)({style:Object(l.a)({opacity:0,visibility:"exited"!==e||a?void 0:"hidden"},Be[e],g,n.props.style),ref:O},t))}))})),Ee=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.invisible,c=void 0!==a&&a,s=e.open,u=e.transitionDuration,d=e.TransitionComponent,f=void 0===d?Se:d,p=Object(k.a)(e,["children","classes","className","invisible","open","transitionDuration","TransitionComponent"]);return r.createElement(f,Object(l.a)({in:s,timeout:u},p),r.createElement("div",{className:Object(w.a)(o.root,i,c&&o.invisible),"aria-hidden":!0,ref:t},n))})),Oe=Object(C.a)({root:{zIndex:-1,position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},{name:"MuiBackdrop"})(Ee),Ie=r.forwardRef((function(e,t){var n=e.classes,o=e.className,i=e.component,a=void 0===i?"div":i,c=e.square,s=void 0!==c&&c,u=e.elevation,d=void 0===u?1:u,f=e.variant,p=void 0===f?"elevation":f,m=Object(k.a)(e,["classes","className","component","square","elevation","variant"]);return r.createElement(a,Object(l.a)({className:Object(w.a)(n.root,o,"outlined"===p?n.outlined:n["elevation".concat(d)],!s&&n.rounded),ref:t},m))})),Te=Object(C.a)((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),Object(l.a)({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(Ie),je={enter:Ce.b.enteringScreen,exit:Ce.b.leavingScreen},Ne=r.forwardRef((function(e,t){var n=e.BackdropProps,o=e.children,i=e.classes,a=e.className,c=e.disableBackdropClick,s=void 0!==c&&c,u=e.disableEscapeKeyDown,d=void 0!==u&&u,f=e.fullScreen,p=void 0!==f&&f,m=e.fullWidth,h=void 0!==m&&m,g=e.maxWidth,v=void 0===g?"sm":g,b=e.onBackdropClick,y=e.onClose,C=e.onEnter,x=e.onEntered,B=e.onEntering,P=e.onEscapeKeyDown,S=e.onExit,E=e.onExited,O=e.onExiting,I=e.open,T=e.PaperComponent,j=void 0===T?Te:T,N=e.PaperProps,M=void 0===N?{}:N,A=e.scroll,R=void 0===A?"paper":A,z=e.TransitionComponent,D=void 0===z?Se:z,L=e.transitionDuration,W=void 0===L?je:L,_=e.TransitionProps,F=e["aria-describedby"],Z=e["aria-labelledby"],U=Object(k.a)(e,["BackdropProps","children","classes","className","disableBackdropClick","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","onEnter","onEntered","onEntering","onEscapeKeyDown","onExit","onExited","onExiting","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps","aria-describedby","aria-labelledby"]),G=r.useRef();return r.createElement(ge,Object(l.a)({className:Object(w.a)(i.root,a),BackdropComponent:Oe,BackdropProps:Object(l.a)({transitionDuration:W},n),closeAfterTransition:!0},s?{disableBackdropClick:s}:{},{disableEscapeKeyDown:d,onEscapeKeyDown:P,onClose:y,open:I,ref:t},U),r.createElement(D,Object(l.a)({appear:!0,in:I,timeout:W,onEnter:C,onEntering:B,onEntered:x,onExit:S,onExiting:O,onExited:E,role:"none presentation"},_),r.createElement("div",{className:Object(w.a)(i.container,i["scroll".concat(Object(V.a)(R))]),onMouseUp:function(e){e.target===e.currentTarget&&e.target===G.current&&(G.current=null,b&&b(e),!s&&y&&y(e,"backdropClick"))},onMouseDown:function(e){G.current=e.target}},r.createElement(j,Object(l.a)({elevation:24,role:"dialog","aria-describedby":F,"aria-labelledby":Z},M,{className:Object(w.a)(i.paper,i["paperScroll".concat(Object(V.a)(R))],i["paperWidth".concat(Object(V.a)(String(v)))],M.className,p&&i.paperFullScreen,h&&i.paperFullWidth)}),o))))})),Me=Object(C.a)((function(e){return{root:{"@media print":{position:"absolute !important"}},scrollPaper:{display:"flex",justifyContent:"center",alignItems:"center"},scrollBody:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}},container:{height:"100%","@media print":{height:"auto"},outline:0},paper:{margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},paperScrollPaper:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},paperScrollBody:{display:"inline-block",verticalAlign:"middle",textAlign:"left"},paperWidthFalse:{maxWidth:"calc(100% - 64px)"},paperWidthXs:{maxWidth:Math.max(e.breakpoints.values.xs,444),"&$paperScrollBody":Object(Y.a)({},e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64),{maxWidth:"calc(100% - 64px)"})},paperWidthSm:{maxWidth:e.breakpoints.values.sm,"&$paperScrollBody":Object(Y.a)({},e.breakpoints.down(e.breakpoints.values.sm+64),{maxWidth:"calc(100% - 64px)"})},paperWidthMd:{maxWidth:e.breakpoints.values.md,"&$paperScrollBody":Object(Y.a)({},e.breakpoints.down(e.breakpoints.values.md+64),{maxWidth:"calc(100% - 64px)"})},paperWidthLg:{maxWidth:e.breakpoints.values.lg,"&$paperScrollBody":Object(Y.a)({},e.breakpoints.down(e.breakpoints.values.lg+64),{maxWidth:"calc(100% - 64px)"})},paperWidthXl:{maxWidth:e.breakpoints.values.xl,"&$paperScrollBody":Object(Y.a)({},e.breakpoints.down(e.breakpoints.values.xl+64),{maxWidth:"calc(100% - 64px)"})},paperFullWidth:{width:"calc(100% - 64px)"},paperFullScreen:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,"&$paperScrollBody":{margin:0,maxWidth:"100%"}}}}),{name:"MuiDialog"})(Ne),Ae={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},Re=r.forwardRef((function(e,t){var n=e.align,o=void 0===n?"inherit":n,i=e.classes,a=e.className,c=e.color,s=void 0===c?"initial":c,u=e.component,d=e.display,f=void 0===d?"initial":d,p=e.gutterBottom,m=void 0!==p&&p,h=e.noWrap,g=void 0!==h&&h,v=e.paragraph,b=void 0!==v&&v,y=e.variant,C=void 0===y?"body1":y,x=e.variantMapping,B=void 0===x?Ae:x,P=Object(k.a)(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),S=u||(b?"p":B[C]||Ae[C])||"span";return r.createElement(S,Object(l.a)({className:Object(w.a)(i.root,a,"inherit"!==C&&i[C],"initial"!==s&&i["color".concat(Object(V.a)(s))],g&&i.noWrap,m&&i.gutterBottom,b&&i.paragraph,"inherit"!==o&&i["align".concat(Object(V.a)(o))],"initial"!==f&&i["display".concat(Object(V.a)(f))]),ref:t},P))})),ze=Object(C.a)((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(Re),De=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.disableTypography,c=void 0!==a&&a,s=Object(k.a)(e,["children","classes","className","disableTypography"]);return r.createElement("div",Object(l.a)({className:Object(w.a)(o.root,i),ref:t},s),c?n:r.createElement(ze,{component:"h2",variant:"h6"},n))})),Le=Object(C.a)({root:{margin:0,padding:"16px 24px",flex:"0 0 auto"}},{name:"MuiDialogTitle"})(De),We=r.forwardRef((function(e,t){var n=e.disableSpacing,o=void 0!==n&&n,i=e.classes,a=e.className,c=Object(k.a)(e,["disableSpacing","classes","className"]);return r.createElement("div",Object(l.a)({className:Object(w.a)(i.root,a,!o&&i.spacing),ref:t},c))})),_e=Object(C.a)({root:{display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},spacing:{"& > :not(:first-child)":{marginLeft:8}}},{name:"MuiDialogActions"})(We),Fe=n(38),Ze=n.n(Fe),Ue=r.forwardRef((function(e,t){var n=e.edge,o=void 0!==n&&n,i=e.children,a=e.classes,c=e.className,s=e.color,u=void 0===s?"default":s,d=e.disabled,f=void 0!==d&&d,p=e.disableFocusRipple,m=void 0!==p&&p,h=e.size,g=void 0===h?"medium":h,v=Object(k.a)(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return r.createElement(U,Object(l.a)({className:Object(w.a)(a.root,c,"default"!==u&&a["color".concat(Object(V.a)(u))],f&&a.disabled,"small"===g&&a["size".concat(Object(V.a)(g))],{start:a.edgeStart,end:a.edgeEnd}[o]),centerRipple:!0,focusRipple:!m,disabled:f,ref:t},v),r.createElement("span",{className:a.label},i))})),Ve=Object(C.a)((function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:Object(x.a)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(x.a)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(x.a)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(Ue),Ge=Object(C.a)((function(e){return{root:{borderBottom:"1px solid "+e.palette.divider,margin:0,display:"flex",alignItems:"center",zIndex:1},typography:{width:"100%"},closeButton:{color:e.palette.primary.contrastText}}}))((function(e){var t=e.children,n=e.classes,r=e.onClose,i=e.className;return o.a.createElement(Le,{disableTypography:!0,className:n.root+" "+i+" dialogbar dialog-title"},o.a.createElement(ze,{className:n.typography,variant:"h6"},t),r?o.a.createElement(Ve,{"aria-label":"Close",className:n.closeButton,onClick:r},o.a.createElement(Ze.a,null)):null)})),He=Object(C.a)((function(e){return{root:{borderTop:"1px solid "+e.palette.divider,margin:0,justifyContent:"space-between",bottom:0,width:"100%"}}}))(_e),qe=(n(71),function(){function e(){}return e.getQRScannerWorker=function(){return new Worker(g.getAssetURLPath()+"qr-scanner-worker.js")},e}()),Xe=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function l(e){try{c(r.throw(e))}catch(e){i(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,l)}c((r=r.apply(e,t||[])).next())}))},Qe=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}};function Ye(e){var t,n,i=null,a=qe.getQRScannerWorker();function l(){var e=this;setTimeout((function(){return Xe(e,void 0,void 0,(function(){var e;return Qe(this,(function(t){if(null!=i&&null!=n&&"function"==typeof n.drawImage)try{n.drawImage(i,0,0),e=n.getImageData(0,0,n.canvas.width,n.canvas.height),a.postMessage([e])}catch(e){console.log(e)}return[2]}))}))}),500)}return a.addEventListener("message",(function(t){null!==t.data?e.onFetchCode(t.data):l()}),!1),Object(r.useEffect)((function(){!function(e){try{null!=i&&((i=i).srcObject=e,i.addEventListener("loadedmetadata",(function(){null!=i&&(n=t.getContext("2d"),l())}),!1))}catch(e){console.error(e)}}(e.mediaStream)})),o.a.createElement("div",{className:Object(w.a)("qsr-scanner","qrscanner")},o.a.createElement("div",{className:Object(w.a)("qsr-ocr-loader","ocrloader")},o.a.createElement("em",null),o.a.createElement("span",null)),o.a.createElement("video",{className:Object(w.a)("qsr-video"),ref:function(e){return i=e},autoPlay:!0,loop:!0,muted:!0,playsInline:!0}),o.a.createElement("canvas",{style:{display:"none"},ref:function(e){return t=e},width:640,height:480}))}var $e=r.createContext({}),Ke=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.component,c=void 0===a?"ul":a,s=e.dense,u=void 0!==s&&s,d=e.disablePadding,f=void 0!==d&&d,p=e.subheader,m=Object(k.a)(e,["children","classes","className","component","dense","disablePadding","subheader"]),h=r.useMemo((function(){return{dense:u}}),[u]);return r.createElement($e.Provider,{value:h},r.createElement(c,Object(l.a)({className:Object(w.a)(o.root,i,u&&o.dense,!f&&o.padding,p&&o.subheader),ref:t},m),p,n))})),Je=Object(C.a)({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(Ke),et=n(32),tt="undefined"==typeof window?r.useEffect:r.useLayoutEffect,nt=r.forwardRef((function(e,t){var n=e.alignItems,o=void 0===n?"center":n,a=e.autoFocus,c=void 0!==a&&a,s=e.button,u=void 0!==s&&s,d=e.children,f=e.classes,p=e.className,m=e.component,h=e.ContainerComponent,g=void 0===h?"li":h,v=e.ContainerProps,b=(v=void 0===v?{}:v).className,y=Object(k.a)(v,["className"]),C=e.dense,x=void 0!==C&&C,P=e.disabled,S=void 0!==P&&P,E=e.disableGutters,O=void 0!==E&&E,I=e.divider,T=void 0!==I&&I,j=e.focusVisibleClassName,N=e.selected,M=void 0!==N&&N,A=Object(k.a)(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),R=r.useContext($e),z={dense:x||R.dense||!1,alignItems:o},D=r.useRef(null);tt((function(){c&&D.current&&D.current.focus()}),[c]);var L=r.Children.toArray(d),W=L.length&&Object(et.a)(L[L.length-1],["ListItemSecondaryAction"]),_=r.useCallback((function(e){D.current=i.findDOMNode(e)}),[]),F=Object(B.a)(_,t),Z=Object(l.a)({className:Object(w.a)(f.root,p,z.dense&&f.dense,!O&&f.gutters,T&&f.divider,S&&f.disabled,u&&f.button,"center"!==o&&f.alignItemsFlexStart,W&&f.secondaryAction,M&&f.selected),disabled:S},A),V=m||"li";return u&&(Z.component=m||"div",Z.focusVisibleClassName=Object(w.a)(f.focusVisible,j),V=U),W?(V=Z.component||m?V:"div","li"===g&&("li"===V?V="div":"li"===Z.component&&(Z.component="div")),r.createElement($e.Provider,{value:z},r.createElement(g,Object(l.a)({className:Object(w.a)(f.container,b),ref:F},y),r.createElement(V,Z,L),L.pop()))):r.createElement($e.Provider,{value:z},r.createElement(V,Object(l.a)({ref:F},Z),L))})),rt=Object(C.a)((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(nt),ot=r.forwardRef((function(e,t){var n=e.children,o=e.classes,i=e.className,a=e.disableTypography,c=void 0!==a&&a,s=e.inset,u=void 0!==s&&s,d=e.primary,f=e.primaryTypographyProps,p=e.secondary,m=e.secondaryTypographyProps,h=Object(k.a)(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),g=r.useContext($e).dense,v=null!=d?d:n;null==v||v.type===ze||c||(v=r.createElement(ze,Object(l.a)({variant:g?"body2":"body1",className:o.primary,component:"span",display:"block"},f),v));var b=p;return null==b||b.type===ze||c||(b=r.createElement(ze,Object(l.a)({variant:"body2",className:o.secondary,color:"textSecondary",display:"block"},m),b)),r.createElement("div",Object(l.a)({className:Object(w.a)(o.root,i,g&&o.dense,u&&o.inset,v&&b&&o.multiline),ref:t},h),v,b)})),it=Object(C.a)({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(ot);function at(e){var t=Object(r.useState)(e.open),n=t[0],i=t[1],a=Object(r.useState)(e.options),l=a[0],c=a[1];function s(){i(!1),e.onSelect(null)}return Object(r.useEffect)((function(){return i(e.open)}),[e.open]),Object(r.useEffect)((function(){return c(e.options)}),[e.options]),o.a.createElement(Me,{className:Object(w.a)("qsr-dialog-root","qsr-dialog-select-root"),open:n,onClose:s},o.a.createElement(Le,{className:Object(w.a)("qsr-dialog-title","qsr-dialog-select-title")},e.title),o.a.createElement("div",null,o.a.createElement(Je,null,l.map((function(t,n){return o.a.createElement(rt,{className:Object(w.a)("qsr-dialog-list-item","qsr-dialog-select-list-item"),button:!0,selected:t.selected,onClick:function(){t.selected||function(t){e.onSelect(t),s()}(t)},key:n},o.a.createElement(it,{className:Object(w.a)("qsr-dialog-list-item-text","qsr-dialog-select-list-item-text"),primary:t.label}))})))))}var lt=function(){function e(){}return e.isMobile=function(){return/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)},e.isIOSMobile=function(){return/iPhone|iPad|iPod/i.test(navigator.userAgent)},e}();function ct(e){function t(){window.removeEventListener("focus",t)}return o.a.createElement("div",{className:Object(w.a)("qsr-ios-file-root")},o.a.createElement("input",{className:Object(w.a)("qsr-ios-file-input"),type:"file",accept:".png, .jpg, .jpeg",onChange:function(n){window.removeEventListener("focus",t),void 0!==n.target.files&&(n.persist(),function(t,n){var r=t[0];r?(n.target.value="",e.onSelectFile(r)):e.onSelectFile(null)}(n.target.files,n))},onClick:function(){e.onSelectFile(null),window.addEventListener("focus",t)},capture:"camera"}))}var st=r.forwardRef((function(e,t){var n=e.classes,o=e.className,i=e.color,a=void 0===i?"primary":i,c=e.disableShrink,s=void 0!==c&&c,u=e.size,d=void 0===u?40:u,f=e.style,p=e.thickness,m=void 0===p?3.6:p,h=e.value,g=void 0===h?0:h,v=e.variant,b=void 0===v?"indeterminate":v,y=Object(k.a)(e,["classes","className","color","disableShrink","size","style","thickness","value","variant"]),C={},x={},B={};if("determinate"===b||"static"===b){var P=2*Math.PI*((44-m)/2);C.strokeDasharray=P.toFixed(3),B["aria-valuenow"]=Math.round(g),C.strokeDashoffset="".concat(((100-g)/100*P).toFixed(3),"px"),x.transform="rotate(-90deg)"}return r.createElement("div",Object(l.a)({className:Object(w.a)(n.root,o,"inherit"!==a&&n["color".concat(Object(V.a)(a))],{determinate:n.determinate,indeterminate:n.indeterminate,static:n.static}[b]),style:Object(l.a)({width:d,height:d},x,f),ref:t,role:"progressbar"},B,y),r.createElement("svg",{className:n.svg,viewBox:"".concat(22," ").concat(22," ").concat(44," ").concat(44)},r.createElement("circle",{className:Object(w.a)(n.circle,s&&n.circleDisableShrink,{determinate:n.circleDeterminate,indeterminate:n.circleIndeterminate,static:n.circleStatic}[b]),style:C,cx:44,cy:44,r:(44-m)/2,fill:"none",strokeWidth:m})))})),ut=Object(C.a)((function(e){return{root:{display:"inline-block"},static:{transition:e.transitions.create("transform")},indeterminate:{animation:"$circular-rotate 1.4s linear infinite"},determinate:{transition:e.transitions.create("transform")},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},svg:{display:"block"},circle:{stroke:"currentColor"},circleStatic:{transition:e.transitions.create("stroke-dashoffset")},circleIndeterminate:{animation:"$circular-dash 1.4s ease-in-out infinite",strokeDasharray:"80px, 200px",strokeDashoffset:"0px"},circleDeterminate:{transition:e.transitions.create("stroke-dashoffset")},"@keyframes circular-rotate":{"0%":{transformOrigin:"50% 50%"},"100%":{transform:"rotate(360deg)"}},"@keyframes circular-dash":{"0%":{strokeDasharray:"1px, 200px",strokeDashoffset:"0px"},"50%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-15px"},"100%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-125px"}},circleDisableShrink:{animation:"none"}}}),{name:"MuiCircularProgress",flip:!1})(st),dt=u((function(e){return{backdrop:{zIndex:10,color:"#fff"}}}));function ft(e){var t=dt(),n=Object(r.useState)(!1),i=n[0],a=n[1];return Object(r.useEffect)((function(){return a(e.open)}),[e.open]),o.a.createElement(Oe,{className:Object(w.a)("qsr-backdrop",t.backdrop),open:i},o.a.createElement(ut,{className:Object(w.a)("qsr-backdrop-circular-progress"),color:"inherit"}))}var pt=Object(q.a)(r.createElement("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),mt=r.forwardRef((function(e,t){var n=e.classes,o=e.className,i=e.dividers,a=void 0!==i&&i,c=Object(k.a)(e,["classes","className","dividers"]);return r.createElement("div",Object(l.a)({className:Object(w.a)(n.root,o,a&&n.dividers),ref:t},c))})),ht=Object(C.a)((function(e){return{root:{flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"8px 24px","&:first-child":{paddingTop:20}},dividers:{padding:"16px 24px",borderTop:"1px solid ".concat(e.palette.divider),borderBottom:"1px solid ".concat(e.palette.divider)}}}),{name:"MuiDialogContent"})(mt),gt=r.forwardRef((function(e,t){return r.createElement(ze,Object(l.a)({component:"p",variant:"body1",color:"textSecondary",ref:t},e))})),vt=Object(C.a)({root:{marginBottom:12}},{name:"MuiDialogContentText"})(gt);function bt(e){var t=Object(r.useState)(e.open),n=t[0],i=t[1],a=Object(r.useState)(e.title),l=a[0],c=a[1],s=Object(r.useState)(e.text),u=s[0],d=s[1];function f(){i(!1),e.onClose()}return Object(r.useEffect)((function(){return c(e.title)}),[e.title]),Object(r.useEffect)((function(){return d(e.text)}),[e.text]),Object(r.useEffect)((function(){return i(e.open)}),[e.open]),o.a.createElement(Me,{className:Object(w.a)("qsr-dialog-root","qsr-dialog-ok-root"),open:n,onClose:function(){return f()},maxWidth:"md"},o.a.createElement(Le,{className:Object(w.a)("qsr-dialog-title","qsr-dialog-ok-title")},l),o.a.createElement(ht,{className:Object(w.a)("qsr-dialog-content","qsr-dialog-ok-content")},o.a.createElement(vt,{className:Object(w.a)("qsr-dialog-content-text","qsr-dialog-ok-content-text")},u)),o.a.createElement(_e,{className:Object(w.a)("qsr-dialog-actions","qsr-dialog-ok-actions")},o.a.createElement(H,{className:Object(w.a)("qsr-dialog-button","qsr-dialog-ok-button"),onClick:f},o.a.createElement(pt,{fontSize:"large"}))))}var yt=function(){function e(){}return e.selectFile=function(){return new Promise((function(e,t){var n=document.createElement("input");n.type="file",n.style.display="none",n.onchange=function(t){var n=t.target.files[0];n&&e(n)},document.body.appendChild(n),n.click()}))},e.readImageFromFile=function(e){return new Promise((function(t,n){try{var r=new FileReader,o=new Image;o.onload=function(){t(o)},r.onload=function(e){o.src=e.target.result},r.readAsDataURL(e)}catch(e){return Promise.reject(e)}}))},e}(),kt=n(51),wt=n.n(kt),Ct=function(){function e(){}return e.readArrayBuffer=function(e,t,n){return this.readUint8ClampedArray(new Uint8ClampedArray(e),t,n)},e.readUint8ClampedArray=function(e,t,n){try{var r=wt()(e,t,n);return null!==r?r.data:null}catch(e){return console.log(e),null}},e}(),xt=function(){function e(){}return e.scanFile=function(t){return e.readImageFromFilex(t)},e.readImageFromFile=function(t,n){return new Promise((function(r,o){yt.readImageFromFile(n).then((function(n){var o=t.getContext("2d");if(null!==o){var i=void 0,a={width:175,height:175},l=null,c=0;do{if(c++,a.width=2*a.width<n.width?2*a.width:n.width,a.height=2*a.height<n.height?2*a.height:n.height,t.height=a.height,t.width=a.width,o.drawImage(n,0,0,a.width,a.height),i=o.getImageData(0,0,a.width,a.height),null!==(l=Ct.readUint8ClampedArray(i.data,i.width,i.height)))break}while((a.width!==n.width||a.height!==n.height)&&c<e.MAX_SCANS);r(l)}})).catch((function(e){return o(e)}))}))},e.readImageFromFilex=function(t){return new Promise((function(n,r){yt.readImageFromFile(t).then((function(t){var o=[],i={width:175,height:175},a=0;do{a++,i.width=2*i.width<t.width?2*i.width:t.width,i.height=2*i.height<t.height?2*i.height:t.height,o.push(Object.assign({},i))}while((i.width!==t.width||i.height!==t.height)&&a<e.MAX_SCANS);e.loopReadImage(o,t).then((function(e){return n(e)})).catch((function(e){return r(e)}))})).catch((function(e){return r(e)}))}))},e.loopReadImage=function(t,n){return new Promise((function(r,o){var i=t.shift();void 0!==i?e.readImageFromFileWithSize(n,i.width,i.height).then((function(i){null!==i?r(i):setTimeout((function(){return e.loopReadImage(t,n).then((function(e){return r(e)})).catch((function(e){return o(e)}))}),500)})).catch((function(e){return o(e)})):r(null)}))},e.readImageFromFileWithSize=function(e,t,n){return new Promise((function(r,o){var i=qe.getQRScannerWorker(),a=document.createElement("canvas"),l=a.getContext("2d");if(null!==l){a.height=n,a.width=t,l.drawImage(e,0,0,t,n);var c=l.getImageData(0,0,t,n);i.addEventListener("message",(function(e){console.log("??"),r(e.data)}),!1),i.postMessage([c])}else r(null)}))},e.MAX_SCANS=15,e}(),Bt=u((function(e){return{root:{width:500},content:{position:"relative",display:"flex",height:"100%",alignItems:"center",overflow:"hidden",justifyContent:"center"},dialogColor:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},dialogActions:{minHeight:"64px",zIndex:1,background:e.palette.primary.main,position:"fixed",justifyContent:"space-around"},dialogActionsButton:{width:"100%"}}})),Pt="";function St(e){var t=Bt(),n=e.videoStream.getDevices().length,i=Object(r.useState)(e.videoStream.getCurrentStream()),a=i[0],l=i[1],c=Object(r.useState)(!1),s=c[0],u=c[1],d=Object(r.useState)(!1),f=d[0],p=d[1],m=Object(r.useState)(!1),h=m[0],v=m[1];function b(t){void 0===t&&(t=null),e.onClose(t)}function y(){switch(n){case 2:k(e.videoStream.getDevices([Pt])[0].id);break;default:u(!0)}}function k(t){Pt=t,e.videoStream.getStreamByDeviceId(Pt).then((function(e){return l(e)}))}function C(){yt.selectFile().then((function(e){return B(e)}))}function x(e){null!==e&&B(e)}function B(t){p(!0),xt.scanFile(t).then((function(t){p(!1),null!==t?e.onClose(t):v(!0)})).catch((function(e){p(!1)}))}return o.a.createElement(Me,{className:Object(w.a)("qsr-dialog-root","qsr-dialog-scanner-root"),fullScreen:!0,open:!0,onClose:function(){return b()}},o.a.createElement(Ge,{className:Object(w.a)("qsr-dialog-title","qsr-dialog-scanner-title",t.dialogColor),onClose:function(){return b()}},g.getTitleScanQRCode()),o.a.createElement(ft,{open:f}),o.a.createElement(bt,{open:h,title:"Failed",text:g.getFailedReadQRImage(),onClose:function(){return v(!1)}}),o.a.createElement("div",{className:Object(w.a)("qsr-dialog-content","qsr-dialog-scanner-content",t.content)},o.a.createElement(Ye,{mediaStream:a,onFetchCode:b})),o.a.createElement(at,{open:s,title:g.getTitleSelectDevice(),options:e.videoStream.getDevices().map((function(e){return Object.assign(e,{selected:Pt===e.id})})),onSelect:function(e){return null!=(t=e)&&k(t.id),void u(!1);var t}}),o.a.createElement(He,{className:Object(w.a)("qsr-dialog-root","qsr-dialog-scanner-actions",t.dialogActions)},lt.isIOSMobile()?o.a.createElement(ct,{onSelectFile:x}):o.a.createElement(H,{onClick:C,color:"primary",className:Object(w.a)("qsr-dialog-button","qsr-dialog-scanner-button","qsr-dialog-scanner-button-file",t.dialogActionsButton)},o.a.createElement(X,{fontSize:"large",className:t.dialogColor})),o.a.createElement(H,{onClick:y,color:"primary",className:Object(w.a)("qsr-dialog-button","qsr-dialog-scanner-button","qsr-dialog-scanner-button-camera",t.dialogActionsButton)},o.a.createElement(Q,{fontSize:"large",className:t.dialogColor}))))}var Et=Object(q.a)(r.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function Ot(e){var t=Object(r.useState)(!0),n=t[0],i=t[1],a=Object(r.useState)(e.title),l=a[0],c=a[1],s=Object(r.useState)(e.text),u=s[0],d=s[1];function f(t){void 0===t&&(t=!1),i(!1),e.onClose(t)}return Object(r.useEffect)((function(){return c(e.title)}),[e.title]),Object(r.useEffect)((function(){return d(e.text)}),[e.text]),o.a.createElement(Me,{className:Object(w.a)("qsr-dialog-root","qsr-dialog-confirm-root"),open:n,onClose:function(){return f()},maxWidth:"md"},o.a.createElement(Le,{className:Object(w.a)("qsr-dialog-title","qsr-dialog-confirm-title")},l),o.a.createElement(ht,{className:Object(w.a)("qsr-dialog-content","qsr-dialog-confirm-content")},o.a.createElement(vt,{className:Object(w.a)("qsr-dialog-content-text","qsr-dialog-confirm-content-text")},u)),o.a.createElement(_e,{className:Object(w.a)("qsr-dialog-actions","qsr-dialog-confirm-actions")},o.a.createElement(H,{className:Object(w.a)("qsr-dialog-button","qsr-dialog-confirm-button-clear"),onClick:function(){return f()}},o.a.createElement(Et,{fontSize:"large"})),o.a.createElement(H,{className:Object(w.a)("qsr-dialog-button","qsr-dialog-confirm-button-check"),onClick:function(){return f(!0)}},o.a.createElement(pt,{fontSize:"large"}))))}var It=Object(C.a)((function(e){return{root:{borderBottom:"1px solid "+e.palette.divider,margin:0,display:"flex",zIndex:1},typography:{width:"100%",display:"flex",alignItems:"center"},closeButton:{}}}))((function(e){var t=e.children,n=e.classes,r=e.onClose,i=e.className;return o.a.createElement(Le,{disableTypography:!0,className:n.root+" "+i+" dialogbar dialog-title"},o.a.createElement(ze,{className:n.typography,variant:"h6"},t),r?o.a.createElement(Ve,{"aria-label":"Close",className:n.closeButton,onClick:r},o.a.createElement(Ze.a,null)):null)})),Tt=u((function(e){return{root:{width:500},dialogActions:{display:"flex",justifyContent:"center"}}}));function jt(e){var t=Tt(),n=Object(r.useState)(!1),i=n[0],a=n[1],l=Object(r.useState)(!1),c=l[0],s=l[1];function u(t){a(!0),xt.scanFile(t).then((function(t){a(!1),null!==t?e.onClose(t):s(!0)})).catch((function(e){a(!1)}))}return o.a.createElement(Me,{className:Object(w.a)("qsr-dialog-root","qsr-dialog-fqs-root"),open:!0},o.a.createElement(It,{className:Object(w.a)("qsr-dialog-title","qsr-dialog-fqs-title"),onClose:function(){e.onClose(null)}},g.getNoPermissionDialogTitle()),o.a.createElement(ht,{className:Object(w.a)("qsr-dialog-content","qsr-dialog-fqs-content"),dividers:!0},o.a.createElement(ze,{className:Object(w.a)("qsr-dialog-content-text","qsr-dialog-fqs-content-text"),gutterBottom:!0},g.getNoPermissionDialogText())),o.a.createElement(ft,{open:i}),o.a.createElement(bt,{open:c,title:"Failed",text:g.getFailedReadQRImage(),onClose:function(){return s(!1)}}),o.a.createElement(_e,{className:Object(w.a)("qsr-dialog-actions","qsr-dialog-fqs-actions",t.dialogActions)},lt.isIOSMobile()?o.a.createElement(ct,{onSelectFile:function(e){null!==e&&u(e)}}):o.a.createElement(H,{className:Object(w.a)("qsr-dialog-button","qsr-dialog-fqs-button"),onClick:function(){yt.selectFile().then((function(e){return u(e)}))},color:"primary"},o.a.createElement(X,{fontSize:"large"}),g.getNoPermissionDialogButton())))}var Nt=function(){function e(){}return e.getPrefixName=function(){return"qr-scanner-redirect"},e.getKeyWithPrefix=function(t){return[e.getPrefixName(),t].join(",")},e.get=function(t){return localStorage.getItem(e.getKeyWithPrefix(t))},e.getValueOrDefault=function(t,n){var r=e.get(t);return null!==r?r:n},e.set=function(t,n){localStorage.setItem(e.getKeyWithPrefix(t),n)},e.delete=function(t){localStorage.removeItem(e.getKeyWithPrefix(t))},e}(),Mt=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function l(e){try{c(r.throw(e))}catch(e){i(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,l)}c((r=r.apply(e,t||[])).next())}))},At=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}},Rt=function(){function e(){this.DEFAULT_MEDIATRACK_CONSTRAINTS={facingMode:"user"},this.stream=null,this.currentMediaTrackConstraints=null,this.devices=[]}return e.getInstance=function(){var t=this;return new Promise((function(n,r){return Mt(t,void 0,void 0,(function(){var t;return At(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),null!==e.currentInstance?[3,2]:(e.currentInstance=new e,[4,e.currentInstance.setup()]);case 1:o.sent(),o.label=2;case 2:return n(e.currentInstance),[3,4];case 3:return t=o.sent(),e.destory(),r(t),[3,4];case 4:return[2]}}))}))}))},e.destory=function(){null!=e.currentInstance&&e.currentInstance.close(),e.currentInstance=null},e.prototype.setup=function(){var e=this;return new Promise((function(t,n){return Mt(e,void 0,void 0,(function(){var e,r,o,i,a;return At(this,(function(l){switch(l.label){case 0:return l.trys.push([0,3,,4]),e=this,[4,this.getMediaDeviceInfo()];case 1:return e.devices=l.sent().map((function(e){return{label:e.label.replace(/ (\(.*?\))/g,""),id:e.deviceId}})),r=this.DEFAULT_MEDIATRACK_CONSTRAINTS,lt.isMobile()&&(r={facingMode:{exact:"environment"}}),null!==(o=Nt.get("deviceId"))&&(r=this.getMediaTrackConstraintsById(o)),i=this,[4,this.getMediaStreamByConstraints(r)];case 2:if(i.stream=l.sent(),null==this.stream)throw new Error("Stream are null");return t(),[3,4];case 3:return a=l.sent(),n(a),[3,4];case 4:return[2]}}))}))}))},e.prototype.getSortAndFilterMediaDeviceInfoList=function(e){return e.filter((function(e){return"videoinput"===e.kind})).sort((function(e,t){return e.label.includes("back")&&t.label.includes("front")?-1:e.label.includes("front")&&t.label.includes("back")?1:0}))},e.prototype.getMediaDeviceInfo=function(){var e=this;return new Promise((function(t,n){return Mt(e,void 0,void 0,(function(){var e,r;return At(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,navigator.mediaDevices.enumerateDevices()];case 1:return e=o.sent(),t(this.getSortAndFilterMediaDeviceInfoList(e)),[3,3];case 2:return r=o.sent(),n(r),[3,3];case 3:return[2]}}))}))}))},e.prototype.close=function(){null!=this.stream&&(this.stream.getTracks().forEach((function(e){return e.stop()})),this.stream=null)},e.prototype.getMediaStreamByConstraints=function(e){var t=this;return new Promise((function(n,r){return Mt(t,void 0,void 0,(function(){var t,o;return At(this,(function(i){switch(i.label){case 0:return null===this.stream||this.currentMediaTrackConstraints!==e?[3,1]:(n(this.stream),[3,4]);case 1:return i.trys.push([1,3,,4]),null!==this.stream&&this.currentMediaTrackConstraints!==e&&this.close(),t=this,[4,navigator.mediaDevices.getUserMedia({video:e})];case 2:return t.stream=i.sent(),this.currentMediaTrackConstraints=e,n(this.stream),[3,4];case 3:return o=i.sent(),r(o),[3,4];case 4:return[2]}}))}))}))},e.prototype.getDevices=function(e){return void 0===e&&(e=[]),this.devices.filter((function(t){return!e.includes(t.id)}))},e.prototype.getCurrentStream=function(){return this.stream},e.prototype.getStreamByDeviceId=function(e){var t=this;return new Promise((function(n,r){return Mt(t,void 0,void 0,(function(){var t,o;return At(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),Nt.set("deviceId",e),t=this,[4,this.getMediaStreamByConstraints(this.getMediaTrackConstraintsById(e))];case 1:return t.stream=i.sent(),n(this.stream),[3,3];case 2:return o=i.sent(),r(o),[3,3];case 3:return[2]}}))}))}))},e.prototype.getMediaTrackConstraintsById=function(e){return{deviceId:{exact:e}}},e.currentInstance=null,e}(),zt=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function l(e){try{c(r.throw(e))}catch(e){i(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,l)}c((r=r.apply(e,t||[])).next())}))},Dt=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}},Lt=u({root:{width:500},img:{width:"4em"}});var Wt=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,l=i.length;a<l;a++,o++)r[o]=i[a];return r},_t=document.getElementById("qrscannerredirect");g.init("qrscannerredirect"),Wt(document.getElementsByClassName("qr-scanner-redirect-open")).forEach((function(e){null!=e&&e.addEventListener("click",(function(){var e;null===(e=null===window||void 0===window?void 0:window.qrscannerredirect)||void 0===e||e.open()}))})),i.render(r.createElement((function(){var e=Lt(),t=Object(r.useState)(null),n=t[0],i=t[1],a=Object(r.useState)(null),l=a[0],c=a[1],s=Object(d.a)({palette:{primary:{main:g.getPrimaryColor(),contrastText:g.getPrimaryContrastText()}}}),u=null;function f(){c(o.a.createElement(jt,{onClose:function(e){c(null),b(e)}}))}function p(){null===n&&(c(o.a.createElement(Me,{className:Object(w.a)("qsr-dialog-root","qsr-dialog-permission-msg-root"),open:!0,disableEscapeKeyDown:!0,onClose:function(e){return!1}},o.a.createElement(Le,{className:Object(w.a)("qsr-dialog-title","qsr-dialog-permission-msg-title")},g.getTitleWaitPermission()))),Rt.getInstance().then((function(e){c(null),i(o.a.createElement(St,{videoStream:e,onClose:b}))})).catch((function(e){console.log(e),c(o.a.createElement(bt,{open:!0,title:g.getTitlePermissionFailed(),text:g.getContentPermissionFailed(),onClose:f}))})))}function m(e){g.isOpenNewTab()&&"function"==typeof window.open?window.open(e,"_blank").focus():window.location.href=e}function b(e){if(void 0===e&&(e=null),null!=e){if(v.validURL(e)||v.isValidHttpUrl(e))if(g.isForce())m(e);else{var t=g.getContentRedirect().replace("%URL",e);i(null),c(o.a.createElement(Ot,{title:g.getTitleRedirect(),text:t,onClose:function(t){return function(e,t){return zt(this,void 0,void 0,(function(){return Dt(this,(function(n){return e?m(t):c(null),[2]}))}))}(t,e)}}))}}else Rt.destory(),i(null)}return g.isButtonDisabled()||(u=o.a.createElement(H,{className:Object(w.a)("qsr-open-button"),onClick:function(){return p()}},o.a.createElement("img",{src:y.a,className:e.img,alt:"qrcode"}))),window.qrscannerredirect.open=function(){return p()},window.qrscannerredirect.openFileReader=function(){return f()},o.a.createElement(h,{theme:s},l,u,n)}),null),_t)},function(e,t,n){"use strict";n.r(t),n.d(t,"capitalize",(function(){return r.a})),n.d(t,"createChainedFunction",(function(){return o.a})),n.d(t,"createSvgIcon",(function(){return i.a})),n.d(t,"debounce",(function(){return a})),n.d(t,"deprecatedPropType",(function(){return l.a})),n.d(t,"isMuiElement",(function(){return c.a})),n.d(t,"ownerDocument",(function(){return s.a})),n.d(t,"ownerWindow",(function(){return u.a})),n.d(t,"requirePropFactory",(function(){return d})),n.d(t,"setRef",(function(){return f.a})),n.d(t,"unsupportedProp",(function(){return p})),n.d(t,"useControlled",(function(){return h})),n.d(t,"useEventCallback",(function(){return g.a})),n.d(t,"useForkRef",(function(){return v.a})),n.d(t,"unstable_useId",(function(){return b})),n.d(t,"useIsFocusVisible",(function(){return y.a}));var r=n(6),o=n(25),i=n(48);function a(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=this,l=function(){e.apply(a,o)};clearTimeout(t),t=setTimeout(l,n)}return r.clear=function(){clearTimeout(t)},r}var l=n(19),c=n(32),s=n(12),u=n(33);function d(e){return function(){return null}}var f=n(15);function p(e,t,n,r,o){return null}var m=n(0);function h(e){var t=e.controlled,n=e.default,r=(e.name,e.state,m.useRef(void 0!==t).current),o=m.useState(n),i=o[0],a=o[1];return[r?t:i,m.useCallback((function(e){r||a(e)}),[])]}var g=n(11),v=n(9);function b(e){var t=m.useState(e),n=t[0],r=t[1],o=e||n;return m.useEffect((function(){null==n&&r("mui-".concat(Math.round(1e5*Math.random())))}),[n]),o}var y=n(31)},,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(1),o=n(24);function i(e){return e&&"object"===Object(o.a)(e)&&e.constructor===Object}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},o=n.clone?Object(r.a)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(i(t[r])&&r in e?o[r]=a(e[r],t[r],n):o[r]=t[r])})),o}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),o=n.n(r),i=n(34);function a(){return o.a.useContext(i.a)}},function(e,t,n){"use strict";function r(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return pn}));var r=n(3),o=n(1),i=n(0),a=n.n(i),l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c="object"===("undefined"==typeof window?"undefined":l(window))&&"object"===("undefined"==typeof document?"undefined":l(document))&&9===document.nodeType;var s=n(21),u=n(18),d=n(26),f=n(14),p={}.constructor;function m(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(m);if(e.constructor!==p)return e;var t={};for(var n in e)t[n]=m(e[n]);return t}function h(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=m(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var g=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},v=function(e,t){if(void 0===t&&(t=!1),!Array.isArray(e))return e;var n="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=", "),n+=g(e[r]," ");else n=g(e,", ");return t||"!important"!==e[e.length-1]||(n+=" !important"),n};function b(e,t){for(var n="",r=0;r<t;r++)n+="  ";return n+e}function y(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,a=t.fallbacks;if(e&&i++,a)if(Array.isArray(a))for(var l=0;l<a.length;l++){var c=a[l];for(var s in c){var u=c[s];null!=u&&(r&&(r+="\n"),r+=b(s+": "+v(u)+";",i))}}else for(var d in a){var f=a[d];null!=f&&(r&&(r+="\n"),r+=b(d+": "+v(f)+";",i))}for(var p in t){var m=t[p];null!=m&&"fallbacks"!==p&&(r&&(r+="\n"),r+=b(p+": "+v(m)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r="\n"+r+"\n"),b(e+" {"+r,--i)+b("}",i)):r}var k=/([[\].#*$><+~=|^:(),"'`\s])/g,w="undefined"!=typeof CSS&&CSS.escape,C=function(e){return w?w(e):e.replace(k,"\\$1")},x=function(){function e(e,t,n){this.type="style",this.key=void 0,this.isProcessed=!1,this.style=void 0,this.renderer=void 0,this.renderable=void 0,this.options=void 0;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!r)return this;var l=i&&a;if(l?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return l?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var c=this.options.sheet;return c&&c.attached,this},e}(),B=function(e){function t(t,n,r){var o;(o=e.call(this,t,n,r)||this).selectorText=void 0,o.id=void 0,o.renderable=void 0;var i=r.selector,a=r.scoped,l=r.sheet,c=r.generateId;return i?o.selectorText=i:!1!==a&&(o.id=c(Object(d.a)(Object(d.a)(o)),l),o.selectorText="."+C(o.id)),o}Object(u.a)(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=v(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Object(o.a)({},e,{allowEmpty:!0}):e;return y(this.selectorText,this.style,n)},Object(s.a)(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(x),P={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new B(e,t,n)}},S={indent:1,children:!0},E=/@([\w-]+)/,O=function(){function e(e,t,n){this.type="conditional",this.at=void 0,this.key=void 0,this.query=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e;var r=e.match(E);for(var i in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new $(Object(o.a)({},n,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.toString=function(e){if(void 0===e&&(e=S),null==e.indent&&(e.indent=S.indent),null==e.children&&(e.children=S.children),!1===e.children)return this.query+" {}";var t=this.rules.toString(e);return t?this.query+" {\n"+t+"\n}":""},e}(),I=/@media|@supports\s+/,T={onCreateRule:function(e,t,n){return I.test(e)?new O(e,t,n):null}},j={indent:1,children:!0},N=/@keyframes\s+([\w-]+)/,M=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.key=void 0,this.name=void 0,this.id=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0;var r=e.match(N);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var i=n.scoped,a=n.sheet,l=n.generateId;for(var c in this.id=!1===i?this.name:C(l(this,a)),this.rules=new $(Object(o.a)({},n,{parent:this})),t)this.rules.add(c,t[c],Object(o.a)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){if(void 0===e&&(e=j),null==e.indent&&(e.indent=j.indent),null==e.children&&(e.children=j.children),!1===e.children)return this.at+" "+this.id+" {}";var t=this.rules.toString(e);return t&&(t="\n"+t+"\n"),this.at+" "+this.id+" {"+t+"}"},e}(),A=/@keyframes\s+/,R=/\$([\w-]+)/g,z=function(e,t){return"string"==typeof e?e.replace(R,(function(e,n){return n in t?t[n]:e})):e},D=function(e,t,n){var r=e[t],o=z(r,n);o!==r&&(e[t]=o)},L={onCreateRule:function(e,t,n){return"string"==typeof e&&A.test(e)?new M(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&D(e,"animation-name",n.keyframes),"animation"in e&&D(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return z(e,r.keyframes);default:return e}}},W=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).renderable=void 0,t}return Object(u.a)(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Object(o.a)({},e,{allowEmpty:!0}):e;return y(this.key,this.style,n)},t}(x),_={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new W(e,t,n):null}},F=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.key=void 0,this.style=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.style)){for(var t="",n=0;n<this.style.length;n++)t+=y(this.at,this.style[n]),this.style[n+1]&&(t+="\n");return t}return y(this.at,this.style,e)},e}(),Z=/@font-face/,U={onCreateRule:function(e,t,n){return Z.test(e)?new F(e,t,n):null}},V=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.key=void 0,this.style=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return y(this.key,this.style,e)},e}(),G={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new V(e,t,n):null}},H=function(){function e(e,t,n){this.type="simple",this.key=void 0,this.value=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),q={"@charset":!0,"@import":!0,"@namespace":!0},X=[P,T,L,_,U,G,{onCreateRule:function(e,t,n){return e in q?new H(e,t,n):null}}],Q={process:!0},Y={force:!0,process:!0},$=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=void 0,this.classes=void 0,this.keyframes=void 0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,i=r.parent,a=r.sheet,l=r.jss,c=r.Renderer,s=r.generateId,u=r.scoped,d=Object(o.a)({classes:this.classes,parent:i,sheet:a,jss:l,Renderer:c,generateId:s,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},n),f=e;e in this.raw&&(f=e+"-d"+this.counter++),this.raw[f]=t,f in this.classes&&(d.selector="."+C(this.classes[f]));var p=h(f,t,d);if(!p)return null;this.register(p);var m=void 0===d.index?this.index.length:d.index;return this.index.splice(m,0,p),p},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof B?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof M&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof B?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof M&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.map[e],t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=Q);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var l=t,c=l.style;if(i.onUpdate(n,t,a,r),r.process&&c&&c!==l.style){for(var s in i.onProcessStyle(l.style,l,a),l.style){var u=l.style[s];u!==c[s]&&l.prop(s,u,Y)}for(var d in c){var f=l.style[d],p=c[d];null==f&&f!==p&&l.prop(d,null,Y)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=0;o<this.index.length;o++){var i=this.index[o].toString(e);(i||r)&&(t&&(t+="\n"),t+=i)}return t},e}(),K=function(){function e(e,t){for(var n in this.options=void 0,this.deployed=void 0,this.attached=void 0,this.rules=void 0,this.renderer=void 0,this.classes=void 0,this.keyframes=void 0,this.queue=void 0,this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=Object(o.a)({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new $(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),J=function(){function e(){this.plugins={internal:[],external:[]},this.registry=void 0}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),ee=new(function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=Object(f.a)(t,["attached"]),o="",i=0;i<this.registry.length;i++){var a=this.registry[i];null!=n&&a.attached!==n||(o&&(o+="\n"),o+=a.toString(r))}return o},Object(s.a)(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}()),te="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),ne="2f1acc6c3a606b082e5eef5e54414ffb";null==te[ne]&&(te[ne]=0);var re=te[ne]++,oe=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var o="",i="";return r&&(r.options.classNamePrefix&&(i=r.options.classNamePrefix),null!=r.options.jss.id&&(o=String(r.options.jss.id))),e.minify?""+(i||"c")+re+o+t:i+n.key+"-"+re+(o?"-"+o:"")+"-"+t}},ie=function(e){var t;return function(){return t||(t=e()),t}},ae=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},le=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=v(n,!0),"!important"===n[n.length-1]))return e.style.setProperty(t,r,"important"),!0;e.attributeStyleMap?e.attributeStyleMap.set(t,r):e.style.setProperty(t,r)}catch(e){return!1}return!0},ce=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},se=function(e,t){return e.selectorText=t,e.selectorText===t},ue=ie((function(){return document.querySelector("head")}));function de(e){var t=ee.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if((n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e))&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var o=function(e){for(var t=ue(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var fe=ie((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),pe=function(e,t,n){try{if("insertRule"in e)e.insertRule(t,n);else if("appendRule"in e){e.appendRule(t)}}catch(e){return!1}return e.cssRules[n]},me=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},he=function(){function e(e){this.getPropertyValue=ae,this.setProperty=le,this.removeProperty=ce,this.setSelector=se,this.element=void 0,this.sheet=void 0,this.hasInsertedRules=!1,this.cssRules=[],e&&ee.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var i=fe();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=de(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else ue().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,o=n;if("conditional"===e.type||"keyframes"===e.type){var i=me(n,t);if(!1===(o=pe(n,r.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(r.rules,o),o}var a=e.toString();if(!a)return!1;var l=me(n,t),c=pe(n,a,l);return!1!==c&&(this.hasInsertedRules=!0,this.refCssRule(e,l,c),c)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof K&&(this.cssRules[t]=n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),ge=0,ve=function(){function e(e){this.id=ge++,this.version="10.7.1",this.plugins=new J,this.options={id:{minify:!1},createGenerateId:oe,Renderer:c?he:null,plugins:[]},this.generateId=oe({minify:!1});for(var t=0;t<X.length;t++)this.plugins.use(X[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=Object(o.a)({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===ee.index?0:ee.index+1);var r=new K(e,Object(o.a)({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),ee.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var r=Object(o.a)({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var i=h(e,t,r);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}();var be="object"==typeof CSS&&null!=CSS&&"number"in CSS,ye=function(e){return new ve(e)};
    3939/**
    4040 * A better abstraction over CSS.
  • qr-scanner-redirect/trunk/include/shortcode.php

    r2604068 r2605471  
    2828  $s = $qsr_pluginsettings->getAll('settings', true);
    2929  $l = $qsr_pluginsettings->getAll('language', true);
    30   $e = ["assetURLPath" => plugins_url( '/assets/', __FILE__ )];
     30  $e = ["assetURLPath" => plugins_url( '../assets/', __FILE__ )];
    3131  $settings = json_encode((array_merge((array) $l, (array) $s, $e)));
    3232  add_action( 'wp_head', 'qsr_inline_style' );
  • qr-scanner-redirect/trunk/index.php

    r2604071 r2605471  
    44 * Plugin URI:        https://github.com/aigenseer/qr-scanner-redirect
    55 * Description:       Wordpress web qr-scanner with redirect function
    6  * Version:           1.1.7
     6 * Version:           1.1.8
    77 * Requires at least: 5.2
    88 * Requires PHP:      7.2
Note: See TracChangeset for help on using the changeset viewer.