tocco-widget-bundle 0.1.67 → 0.1.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/login.js CHANGED
@@ -69,7 +69,7 @@ e.exports=function(){"use strict";function e(t){return e="function"==typeof Symb
69
69
  *
70
70
  * This source code is licensed under the MIT license found in the
71
71
  * LICENSE file in the root directory of this source tree.
72
- */var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case l:case p:case a:case c:case i:case f:return e;default:switch(e=e&&e.$$typeof){case u:case d:case g:case m:case s:return e;default:return t}}case o:return t}}}function k(e){return x(e)===p}t.AsyncMode=l,t.ConcurrentMode=p,t.ContextConsumer=u,t.ContextProvider=s,t.Element=r,t.ForwardRef=d,t.Fragment=a,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=c,t.StrictMode=i,t.Suspense=f,t.isAsyncMode=function(e){return k(e)||x(e)===l},t.isConcurrentMode=k,t.isContextConsumer=function(e){return x(e)===u},t.isContextProvider=function(e){return x(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===d},t.isFragment=function(e){return x(e)===a},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===c},t.isStrictMode=function(e){return x(e)===i},t.isSuspense=function(e){return x(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===p||e===c||e===i||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===s||e.$$typeof===u||e.$$typeof===d||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=x},38163:(e,t,n)=>{"use strict";e.exports=n(66526)},1024:e=>{"use strict";e.exports=t},30314:t=>{"use strict";t.exports=e},71298:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},38088:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},87462:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},88911:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:()=>r})},83029:(e,t,n)=>{"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{Z:()=>r})},61086:(e,t,n)=>{"use strict";function r(e,t,n,r,o,a,i){try{var c=e[a](i),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,a){var i=e.apply(t,n);function c(e){r(i,o,a,c,s,"next",e)}function s(e){r(i,o,a,c,s,"throw",e)}c(void 0)}))}}n.d(t,{Z:()=>o})},11259:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:()=>r})},44822:(e,t,n)=>{"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,{Z:()=>o})},46927:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>r})},3640:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},19241:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:()=>r})},32208:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}n.d(t,{Z:()=>o})},72753:(e,t,n)=>{"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:()=>r})},56265:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:()=>r})},8486:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(46927);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},56315:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:()=>r})},99357:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(73891);function o(e,t){if(t&&("object"===(0,r.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}},68957:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(83029);var o=n(61917),a=n(56265);function i(e,t){return(0,r.Z)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}(e,t)||(0,o.Z)(e,t)||(0,a.Z)()}},91411:(e,t,n)=>{"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{Z:()=>r})},45915:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(88911);var o=n(72753),a=n(61917);function i(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||(0,o.Z)(e)||(0,a.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},73891:(e,t,n)=>{"use strict";function r(e){return r="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},r(e)}n.d(t,{Z:()=>r})},61917:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(88911);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}},a={};function i(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,i),n.loaded=!0,n.exports}i.m=o,i.amdD=function(){throw new Error("define cannot be used indirect")},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,n)=>(i.f[n](e,t),t)),[])),i.u=e=>288===e?"chunk-ckeditor.966b93fab1f28a51ecbd.js":"chunk-"+({85:"code-editor",198:"vendor-fontawesome",614:"vendor-icons",877:"vendor-libphonenumber-js"}[e]||e)+"."+{85:"518cffead3ac4a62b00f",198:"a5995f2ba1e5d1e75ee9",414:"51c4062a5485a4775775",614:"b45f0f337eb768a9e3a9",759:"9337b4e21a78c273072d",817:"5758e51444b678849e3d",877:"04702eeaaa7a6d567205",909:"f0934a9b9f58a57b1c62"}[e]+".js",i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="tocco-widget-bundle:",i.l=(e,t,o,a)=>{if(n[e])n[e].push(t);else{var c,s;if(void 0!==o)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var p=u[l];if(p.getAttribute("src")==e||p.getAttribute("data-webpack")==r+o){c=p;break}}c||(s=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,i.nc&&c.setAttribute("nonce",i.nc),c.setAttribute("data-webpack",r+o),c.src=e),n[e]=[t];var d=(t,r)=>{c.onerror=c.onload=null,clearTimeout(f);var o=n[e];if(delete n[e],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach((e=>e(r))),t)return t(r)},f=setTimeout(d.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=d.bind(null,c.onerror),c.onload=d.bind(null,c.onload),s&&document.head.appendChild(c)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),i.j=535,i.p="/",(()=>{var e={535:0};i.f.j=(t,n)=>{var r=i.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var a=i.p+i.u(t),c=new Error;i.l(a,(n=>{if(i.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;c.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",c.name="ChunkLoadError",c.type=o,c.request=a,r[1](c)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[a,c,s]=n,u=0;if(a.some((t=>0!==e[t]))){for(r in c)i.o(c,r)&&(i.m[r]=c[r]);if(s)s(i)}for(t&&t(n);u<a.length;u++)o=a[u],i.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunktocco_widget_bundle=self.webpackChunktocco_widget_bundle||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),i.nc=void 0;var c={};return(()=>{"use strict";i.r(c);var e=i(55954),t=i(59713),n=i.n(t),r=i(10317),o=i.n(r),a=i(22731),s=i(19743),u=i(45430),l=i(23369),p=i(45697),d=i.n(p),f=i(98773);const h={propTypes:d().shape({embedType:d().oneOf(f.Nc),widgetConfigKey:function(e,t,n){if("widget"===e.embedType&&!e[t])return new Error("Prop `"+t+"` is missing for `"+n+"`. Validation failed.")}})};var m=i(74806),g=i(50558),v=i(28655),y=i.n(v),b=i(1024),w=i.n(b),x=i(58804),k=i(48926),O=i.n(k),_=i(63038),E=i.n(_),S=i(87757),A=i.n(S);function C(){return C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C.apply(this,arguments)}function P(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var j=function(e){var t,n;function r(){var t;return(t=e.call(this)||this).handleExpired=t.handleExpired.bind(P(t)),t.handleErrored=t.handleErrored.bind(P(t)),t.handleChange=t.handleChange.bind(P(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(P(t)),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getValue=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this.props.grecaptcha.getResponse(this._widgetId):null},o.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},o.execute=function(){var e=this.props.grecaptcha;if(e&&void 0!==this._widgetId)return e.execute(this._widgetId);this._executeRequested=!0},o.executeAsync=function(){var e=this;return new Promise((function(t,n){e.executionResolve=t,e.executionReject=n,e.execute()}))},o.reset=function(){this.props.grecaptcha&&void 0!==this._widgetId&&this.props.grecaptcha.reset(this._widgetId)},o.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},o.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},o.handleChange=function(e){this.props.onChange&&this.props.onChange(e),this.executionResolve&&(this.executionResolve(e),delete this.executionReject,delete this.executionResolve)},o.explicitRender=function(){if(this.props.grecaptcha&&this.props.grecaptcha.render&&void 0===this._widgetId){var e=document.createElement("div");this._widgetId=this.props.grecaptcha.render(e,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge}),this.captcha.appendChild(e)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},o.componentDidMount=function(){this.explicitRender()},o.componentDidUpdate=function(){this.explicitRender()},o.componentWillUnmount=function(){void 0!==this._widgetId&&(this.delayOfCaptchaIframeRemoving(),this.reset())},o.delayOfCaptchaIframeRemoving=function(){var e=document.createElement("div");for(document.body.appendChild(e),e.style.display="none";this.captcha.firstChild;)e.appendChild(this.captcha.firstChild);setTimeout((function(){document.body.removeChild(e)}),5e3)},o.handleRecaptchaRef=function(e){this.captcha=e},o.render=function(){var e=this.props,t=(e.sitekey,e.onChange,e.theme,e.type,e.tabindex,e.onExpired,e.onErrored,e.size,e.stoken,e.grecaptcha,e.badge,e.hl,function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl"]));return w().createElement("div",C({},t,{ref:this.handleRecaptchaRef}))},r}(w().Component);j.displayName="ReCAPTCHA",j.propTypes={sitekey:o().string.isRequired,onChange:o().func,grecaptcha:o().object,theme:o().oneOf(["dark","light"]),type:o().oneOf(["image","audio"]),tabindex:o().number,onExpired:o().func,onErrored:o().func,size:o().oneOf(["compact","normal","invisible"]),stoken:o().string,hl:o().string,badge:o().oneOf(["bottomright","bottomleft","inline"])},j.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var D=i(33188),T=i.n(D);function M(){return M=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},M.apply(this,arguments)}var Z={},I=0;var R="onloadcallback";const N=(L=function(){return"https://"+(("undefined"!=typeof window&&window.recaptchaOptions||{}).useRecaptchaNet?"recaptcha.net":"www.google.com")+"/recaptcha/api.js?onload="+R+"&render=explicit"},B=(B={callbackName:R,globalName:"grecaptcha"})||{},function(e){var t=e.displayName||e.name||"Component",n=function(t){var n,r;function o(e,n){var r;return(r=t.call(this,e,n)||this).state={},r.__scriptURL="",r}r=t,(n=o).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r;var a=o.prototype;return a.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+I++),this.__scriptLoaderID},a.setupScriptURL=function(){return this.__scriptURL="function"==typeof L?L():L,this.__scriptURL},a.asyncScriptLoaderHandleLoad=function(e){var t=this;this.setState(e,(function(){return t.props.asyncScriptOnLoad&&t.props.asyncScriptOnLoad(t.state)}))},a.asyncScriptLoaderTriggerOnScriptLoaded=function(){var e=Z[this.__scriptURL];if(!e||!e.loaded)throw new Error("Script is not loaded.");for(var t in e.observers)e.observers[t](e);delete window[B.callbackName]},a.componentDidMount=function(){var e=this,t=this.setupScriptURL(),n=this.asyncScriptLoaderGetScriptLoaderID(),r=B,o=r.globalName,a=r.callbackName,i=r.scriptId;if(o&&void 0!==window[o]&&(Z[t]={loaded:!0,observers:{}}),Z[t]){var c=Z[t];return c&&(c.loaded||c.errored)?void this.asyncScriptLoaderHandleLoad(c):void(c.observers[n]=function(t){return e.asyncScriptLoaderHandleLoad(t)})}var s={};s[n]=function(t){return e.asyncScriptLoaderHandleLoad(t)},Z[t]={loaded:!1,observers:s};var u=document.createElement("script");for(var l in u.src=t,u.async=!0,B.attributes)u.setAttribute(l,B.attributes[l]);i&&(u.id=i);var p=function(e){if(Z[t]){var n=Z[t].observers;for(var r in n)e(n[r])&&delete n[r]}};a&&"undefined"!=typeof window&&(window[a]=function(){return e.asyncScriptLoaderTriggerOnScriptLoaded()}),u.onload=function(){var e=Z[t];e&&(e.loaded=!0,p((function(t){return!a&&(t(e),!0)})))},u.onerror=function(){var e=Z[t];e&&(e.errored=!0,p((function(t){return t(e),!0})))},document.body.appendChild(u)},a.componentWillUnmount=function(){var e=this.__scriptURL;if(!0===B.removeOnUnmount)for(var t=document.getElementsByTagName("script"),n=0;n<t.length;n+=1)t[n].src.indexOf(e)>-1&&t[n].parentNode&&t[n].parentNode.removeChild(t[n]);var r=Z[e];r&&(delete r.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===B.removeOnUnmount&&delete Z[e])},a.render=function(){var t=B.globalName,n=this.props,r=(n.asyncScriptOnLoad,n.forwardedRef),o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(n,["asyncScriptOnLoad","forwardedRef"]);return t&&"undefined"!=typeof window&&(o[t]=void 0!==window[t]?window[t]:void 0),o.ref=r,(0,b.createElement)(e,o)},o}(b.Component),r=(0,b.forwardRef)((function(e,t){return(0,b.createElement)(n,M({},e,{forwardedRef:t}))}));return r.displayName="AsyncScriptLoader("+t+")",r.propTypes={asyncScriptOnLoad:o().func},T()(r,e)})(j);var L,B;const F=N;var H,U=i(44012),W=i(34206),z=i(21934),Y=i(26069),V=i(35997),q="LOGIN_FORM",G="PASSWORD_REQUEST",$="TWOSTEPLOGIN",K="PASSWORD_UPDATE",X="TWOSTEPLOGIN_ACTIVATION",Q=i(51032),J=i(65035),ee=i(7281),te=i(88601),ne=i(91411),re=i(58129);const oe=x.ZP.div.withConfig({displayName:"StyledButtonGroup"})(H||(H=(0,ne.Z)(["\n display: flex;\n\n &&& > "," {\n :not(:first-child) {\n margin-left: -1px;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n\n :not(:last-child) {\n margin-right: 0;\n border-right: 0;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n }\n"])),re.Z);var ae,ie,ce,se,ue,le,pe=x.ZP.input.withConfig({displayName:"StyledLoginFormInput"})(ae||(ae=y()(["\n /* stylelint-disable-next-line block-no-empty */\n @keyframes onAutoFillStart {\n from {\n }\n }\n\n && {\n transition: background-color 50000s, color 50000s, filter 50000s;\n\n &:-webkit-autofill {\n animation-duration: 50000s;\n animation-name: onAutoFillStart;\n }\n padding-top: 0.7rem;\n padding-bottom: 0.7rem;\n }\n ","\n"])),Q.k9),de=x.ZP.div.withConfig({displayName:"StyledLoginFormInputWrapper"})(ie||(ie=y()(["\n && {\n ","\n }\n"])),Q.yP),fe=(0,x.ZP)(J.Z).withConfig({displayName:"StyledLoginButton"})(ce||(ce=y()(["\n &&& {\n font-size: ",";\n border-radius: ",";\n display: flex;\n justify-content: center;\n padding: 1.25rem 0;\n width: 100%;\n margin-top: 20px;\n margin-bottom: 10px;\n\n &:not(:last-child) {\n margin-right: 0;\n }\n }\n"])),ee.Z.font(1.3),te.Z.radii("large")),he=(0,x.ZP)(J.Z).withConfig({displayName:"StyledTransparentButton"})(se||(se=y()(["\n &&& {\n margin-right: 0;\n background-color: transparent;\n color: ",";\n padding: 1.25rem 0;\n width: 100%;\n justify-content: center;\n\n &:hover {\n background-color: transparent;\n }\n }\n"])),te.Z.color("primary")),me=x.ZP.div.withConfig({displayName:"StyledLoginFormWrapper"})(ue||(ue=y()(["\n "," {\n margin-top: 1.8rem;\n width: auto;\n flex-direction: column;\n\n "," {\n flex-grow: 1;\n }\n }\n"])),oe,re.Z),ge=i(85893);const ve=function(e){var t=e.captchaKey,n=e.changePage,r=e.intl,o=e.login,a=e.loginPending,i=e.message,c=e.password,s=e.recaptchaActivated,u=e.setPassword,l=e.setUsername,p=e.showTitle,d=e.username,f=(0,b.useState)(!1),h=E()(f,2),m=h[0],g=h[1],v=(0,b.useRef)(),y=function(e){return r.formatMessage({id:e})},x=V.Z.usePrevious(s),k=(0,b.useCallback)(function(){var e=O()(A().mark((function e(t){var n;return A().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&t.preventDefault(),n=null,!s){e.next=7;break}return e.next=5,v.current.executeAsync();case 5:n=e.sent,v.current.reset();case 7:o(d,c,n);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[o,d,c,s]),_=function(e){"onAutoFillStart"===e.animationName&&g(!0)};(0,b.useEffect)((function(){s&&!x&&k()}),[s,x,k]);var S=!!d,C=!S;return(0,ge.jsxs)(me,{children:[p&&(le||(le=(0,ge.jsxs)(w().Fragment,{children:[(0,ge.jsx)(W.ZP.H5,{children:(0,ge.jsx)(U.Z,{id:"client.login.form.title"})}),(0,ge.jsx)(W.ZP.P,{children:(0,ge.jsx)(U.Z,{id:"client.login.form.introduction"})})]}))),(0,ge.jsxs)("form",{onSubmit:k,children:[(0,ge.jsx)(z.Z,{hasValue:!!d||m,id:"login-username",label:y("client.login.form.userPlaceholder"),children:(0,ge.jsx)(de,{children:(0,ge.jsx)(pe,{autoFocus:C,name:"user","data-cy":"login-form_user-input",onChange:function(e){l(e.target.value),g(!1)},required:!0,type:"text",value:d,onAnimationStart:_,onFocus:function(e){return e.target.select()}})})}),(0,ge.jsx)(z.Z,{hasValue:!!c||m,id:"login-password",label:y("client.login.form.passwordPlaceholder"),children:(0,ge.jsx)(de,{children:(0,ge.jsx)(pe,{autoFocus:S,name:"password","data-cy":"login-form_password-input",onChange:function(e){u(e.target.value),g(!1)},required:!0,type:"password",value:c,onAnimationStart:_,onFocus:function(e){return e.target.select()}})})}),i&&i.text&&(0,ge.jsx)(Y.ZP.List,{children:(0,ge.jsx)(Y.ZP.Item,{condition:i.negative?"danger":"base",label:i.text})}),t&&s&&(0,ge.jsx)(F,{ref:v,badge:"bottomright",size:"invisible",sitekey:t,hl:r.locale}),(0,ge.jsx)(fe,{disabled:!m&&(a||""===d||""===c),ink:"primary",look:"raised",label:y("client.login.form.button"),pending:a,type:"submit","data-cy":"login-form_login-button"}),(0,ge.jsx)(he,{label:y("client.login.form.forgotLink"),onClick:function(){return n(G)},"data-cy":"login-form_request-button"})]})]})},ye=ve;var be="login/INITIALIZE",we="Login/LOGIN",xe="Login/CHANGE_PAGE",ke="Login/SET_USERNAME",Oe="Login/SET_PASSWORD",_e="login/SET_CAPTCHA_KEY",Ee=function(e){return{type:xe,payload:{page:e}}},Se=function(e){return{type:ke,payload:{username:e}}},Ae=function(e){return{type:Oe,payload:{password:e}}},Ce={changePage:Ee,setUsername:Se,setPassword:Ae,login:function(e,t,n){return{type:we,payload:{username:e,password:t,captchaToken:n}}}};const Pe=(0,g.connect)((function(e){return{username:e.login.username,password:e.login.password,message:e.loginForm.message,loginPending:e.loginForm.loginPending,captchaKey:e.login.captchaKey,recaptchaActivated:e.loginForm.recaptchaActivated}}),Ce)((0,m.ZP)(ye));var je,De;const Te=function(e){var t=e.username,n=e.requestPassword,r=e.intl,o=e.showTitle,a=e.pending,i=e.changePage,c=(0,b.useState)(t||""),s=E()(c,2),u=s[0],l=s[1],p=function(e){return r.formatMessage({id:e})};return(0,ge.jsxs)(me,{children:[o&&(je||(je=(0,ge.jsx)(W.ZP.H5,{children:(0,ge.jsx)(U.Z,{id:"client.login.passwordRequest.title"})}))),De||(De=(0,ge.jsx)(W.ZP.P,{children:(0,ge.jsx)(U.Z,{id:"client.login.passwordRequest.introduction"})})),(0,ge.jsxs)("form",{onSubmit:function(e){e.preventDefault(),n(u)},children:[(0,ge.jsx)(z.Z,{hasValue:Boolean(u),id:"login-username",label:p("client.login.form.userPlaceholder"),children:(0,ge.jsx)(de,{children:(0,ge.jsx)(pe,{name:"user",onChange:function(e){l(e.target.value)},required:!0,type:"text",value:u,"data-cy":"password-request_input"})})}),(0,ge.jsx)(fe,{look:"raised",disabled:!u||a,ink:"primary",label:p("client.login.passwordRequest.button"),pending:a,type:"submit","data-cy":"password-request_submit-button"}),(0,ge.jsx)(he,{disabled:a,label:p("client.login.passwordRequest.abortButton"),name:"abort",onClick:function(){return i(q)},"data-cy":"password-request_abort-button"})]})]})};var Me="Login/REQUEST_PASSWORD",Ze="Login/PASSWORD_REQUEST",Ie="Login/SET_USERNAME",Re=function(e){return{type:Ze,payload:{passwordRequest:e}}},Ne={changePage:Ee,requestPassword:function(e){return{type:Me,payload:{username:e}}}};const Le=(0,g.connect)((function(e){return{username:e.login.username,pending:e.loginForm.loginPending}}),Ne)((0,m.ZP)(Te));var Be=i(50258),Fe=i(78958),He={INVALID_CREDENTIALS:"client.login.passwordUpdate.invalidCredentials",UNEXPECTED_ERROR:"client.login.passwordUpdate.unexpectedError"};const Ue=function(e){return(0,ge.jsx)(Y.ZP.List,{children:(0,ge.jsx)(Y.ZP.Item,{condition:Fe.Z.condition.DANGER,children:(0,ge.jsx)(U.Z,{id:(t=e.errorCode,He[t]||"client.login.passwordUpdate.failure")})})});var t};const We=function(e){return(0,ge.jsx)(Y.ZP.List,{children:e.rules.map((function(t,n){var r=null,o=t.message;if(e.errors){var a=e.errors[t.name];!0===a?r=Fe.Z.condition.DANGER:"string"==typeof a?(r=Fe.Z.condition.DANGER,o=a):r=Fe.Z.condition.SUCCESS}return(0,ge.jsx)(Y.ZP.Item,{condition:r,label:o},n)}))})};var ze,Ye,Ve=x.ZP.input.attrs((function(e){return{type:"password"}})).withConfig({displayName:"StyledPasswordInput"})(ze||(ze=y()(["\n && {\n ","\n }\n"])),Q.k9),qe=x.ZP.div.withConfig({displayName:"StyledPasswordInputWrapper"})(Ye||(Ye=y()(["\n && {\n ","\n }\n"])),Q.yP);const Ge=function(e){return(0,ge.jsx)(z.Z,{hasValue:!!e.value,id:"".concat(e.name,"-input"),immutable:!0===e.readOnly,label:e.label,signal:e.value?void 0===e.valid?null:e.valid?Fe.Z.condition.SUCCESS:Fe.Z.condition.DANGER:null,children:(0,ge.jsx)(qe,{immutable:!0===e.readOnly,children:(0,ge.jsx)(Ve,{id:"".concat(e.name,"-input"),value:e.value,onChange:function(t){return e.onChange(t.target.value)},disabled:!0===e.readOnly,immutable:!0===e.readOnly,onKeyDown:e.onKeyDown,autoFocus:e.autoFocus})})})};var $e;const Ke=x.ZP.div($e||($e=y()(["\n "," {\n width: 100%;\n }\n"])),re.Z);var Xe,Qe,Je,et,tt;function nt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?nt(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ot=x.ZP.div.withConfig({displayName:"StyledValidationRulesWrapper"})(Xe||(Xe=y()(["\n margin: 1rem;\n"])));const at=function(e){var t=e.captchaKey,n=e.fetchValidationRules,r=e.forcedUpdate,o=e.initialized,a=e.intl,i=e.password,c=e.savePassword,s=e.showOldPasswordField,u=e.showTitle,l=e.updateNewPassword,p=e.updateNewPasswordRepeat,d=e.updateOldPassword,f=e.validationRules,h=(0,b.useRef)();(0,b.useEffect)((function(){n()}),[n]),(0,b.useEffect)((function(){f&&o()}),[f,o]);var m=function(){var e=O()(A().mark((function e(t){var n;return A().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),!0!==g()){e.next=7;break}return e.next=4,h.current.executeAsync();case 4:n=e.sent,h.current.reset(),c(n);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),g=function(){return!!i.newPasswordRepeat&&(i.newPassword===i.newPasswordRepeat&&!i.passwordUpdatePending)},v=function(e){return a.formatMessage({id:e})};if(!f)return Qe||(Qe=(0,ge.jsx)(Be.Z,{}));var y=i.passwordUpdatePending,w=!i.oldPassword&&s||i.passwordUpdatePending,x=!i.newPassword||i.passwordUpdatePending||i.newPasswordValidationErrors&&Object.keys(i.newPasswordValidationErrors).length>0;return(0,ge.jsxs)(Ke,{children:[u&&(Je||(Je=(0,ge.jsx)(W.ZP.H5,{children:(0,ge.jsx)(U.Z,{id:"client.login.passwordUpdate.title"})}))),r&&(et||(et=(0,ge.jsx)(W.ZP.P,{children:(0,ge.jsx)(U.Z,{id:"client.login.passwordUpdate.introduction"})}))),(0,ge.jsxs)("form",{onSubmit:m,children:[!0===s&&(0,ge.jsx)(Ge,rt({tabIndex:1,label:v("client.login.passwordUpdate.oldPassword"),name:"oldPassword",value:i.oldPassword,onChange:d,readOnly:y,autoFocus:!0},i.passwordUpdateFailed&&"INVALID_CREDENTIALS"===i.passwordUpdateErrorCode&&{valid:!1})),(0,ge.jsx)(Ge,{tabIndex:2,label:v("client.login.passwordUpdate.newPassword"),name:"newPassword",value:i.newPassword,onChange:l,readOnly:w,autoFocus:!0!==s,valid:!x}),(0,ge.jsx)(ot,{children:(0,ge.jsx)(We,{rules:f,errors:i.newPasswordValidationErrors,rulesNeutral:!i.newPassword})}),(0,ge.jsx)(Ge,{tabIndex:3,label:v("client.login.passwordUpdate.newPasswordRepeat"),name:"newPasswordRepeat",value:i.newPasswordRepeat,onChange:p,readOnly:x,valid:g()}),i.newPasswordRepeat&&i.newPassword!==i.newPasswordRepeat&&(tt||(tt=(0,ge.jsx)(Y.ZP.List,{children:(0,ge.jsx)(Y.ZP.Item,{condition:"danger",label:(0,ge.jsx)(U.Z,{id:"client.login.passwordUpdate.noMatch"})})}))),!0===i.passwordUpdateFailed&&(0,ge.jsx)(Ue,{errorCode:i.passwordUpdateErrorCode}),(0,ge.jsx)(fe,{pending:i.passwordUpdatePending,disabled:!1===g(),ink:"primary",label:v("client.login.passwordUpdate.saveButton"),look:"raised",type:"submit"}),t&&(0,ge.jsx)(F,{ref:h,badge:"bottomright",size:"invisible",sitekey:t,hl:a.locale})]})]})},it=at;var ct="INITIALIZED",st="PasswordUpdateDialog/UPDATE_OLD_PASSWORD",ut="PasswordUpdateDialog/UPDATE_NEW_PASSWORD",lt="PasswordUpdateDialog/SET_NEW_PASSWORD",pt="PasswordUpdateDialog/SET_NEW_PASSWORD_VALIDATION_ERRORS",dt="PasswordUpdateDialog/UPDATE_NEW_PASSWORD_REPEAT",ft="PasswordUpdateDialog/SAVE_PASSWORD",ht="PasswordUpdateDialog/SAVE_PASSWORD_SUCCESS",mt="PasswordUpdateDialog/SAVE_PASSWORD_FAILURE",gt="PasswordUpdateDialog/VALIDATE",vt="PasswordUpdateDialog/RESET_PASSWORD_UPDATED_FAILED",yt=function(e){return{type:st,payload:{oldPassword:e}}},bt=function(e){return{type:pt,payload:{errors:e}}},wt=function(e,t){return{type:mt,payload:{errorCode:e,validationMessages:t}}},xt="PasswordUpdateDialog/FETCH_VALIDATION_RULES",kt="PasswordUpdateDialog/SET_VALIDATION_RULES",Ot={updateOldPassword:yt,updateNewPassword:function(e){return{type:ut,payload:{newPassword:e}}},updateNewPasswordRepeat:function(e){return{type:dt,payload:{newPasswordRepeat:e}}},fetchValidationRules:function(){return{type:xt}},savePassword:function(e){return{type:ft,payload:{captchaToken:e}}},initialized:function(){return{type:ct}}};const _t=(0,g.connect)((function(e){return{password:e.passwordUpdate.password,validationRules:e.passwordUpdate.validationRules,showOldPasswordField:e.passwordUpdate.dialog.showOldPasswordField,forcedUpdate:e.passwordUpdate.dialog.forcedUpdate,captchaKey:e.login.captchaKey}}),Ot)((0,m.ZP)(it));var Et,St,At,Ct,Pt,jt,Dt=i(27023),Tt="two-factor-connector/INITIALIZE",Mt="two-factor-connector/SET_TWO_STEP_ACTIVE",Zt="two-factor-connector/SET_SECRET",It="two-factor-connector/SET_USER_NAME",Rt="two-factor-connector/REQUEST_SECRET",Nt="two-factor-connector/GO_TO_SECRET_VERIFICATION",Lt="two-factor-connector/GO_TO_START",Bt="two-factor-connector/GO_TO_SECRET",Ft="two-factor-connector/VERIFY_CODE",Ht="root/SUCCESS",Ut="root/SET_SETUP_SUCCESSFUL",Wt="root/GO_TO_RESULT",zt=function(){return{type:Tt}},Yt=function(e){return{type:Mt,payload:{twoFactorActive:e}}},Vt=function(e){return{type:Zt,payload:{secret:e}}},qt=function(e){return{type:It,payload:{username:e}}},Gt=function(){return{type:Lt}},$t=function(e){return{type:Ut,payload:{setupSuccessful:e}}},Kt=i(88162),Xt=x.ZP.div.withConfig({displayName:"StyledButtonWrapper"})(Et||(Et=y()(["\n display: flex;\n justify-content: flex-end;\n margin-top: ",";\n\n > "," {\n margin-right: 0;\n }\n"])),ee.Z.space(.5),re.Z),Qt=x.ZP.div.withConfig({displayName:"StyledMessageWrapper"})(St||(St=y()(["\n display: grid;\n grid-template-columns: 9% 1fr;\n grid-column-gap: ",";\n"])),ee.Z.space(-.5)),Jt=x.ZP.span.withConfig({displayName:"StyledIconWrapper"})(At||(At=y()(["\n display: flex;\n align-items: center;\n color: ",";\n font-size: ",";\n\n > * {\n max-width: 100%;\n }\n"])),(function(e){return e.isSuccessful?te.Z.color("signal.success.text"):te.Z.color("signal.danger.text")}),ee.Z.font(10)),en=x.ZP.div.withConfig({displayName:"StyledTextWrapper"})(Ct||(Ct=y()(["\n display: flex;\n align-items: center;\n"])));const tn=function(e){var t=e.success,n=e.goToStart,r=e.setupSuccessful,o=e.intl,a=function(e){return o.formatMessage({id:e})};return r?(0,ge.jsxs)(ge.Fragment,{children:[Pt||(Pt=(0,ge.jsxs)(Qt,{children:[(0,ge.jsx)(Jt,{isSuccessful:!0,children:(0,ge.jsx)(Kt.Z,{icon:"check"})}),(0,ge.jsx)(en,{children:(0,ge.jsx)(W.ZP.P,{children:(0,ge.jsx)(U.Z,{id:"client.two-factor-connector.successfulText"})})})]})),(0,ge.jsx)(Xt,{children:(0,ge.jsx)(J.Z,{label:a("client.two-factor-connector.okButton"),ink:"primary",look:"raised",onClick:t})})]}):(0,ge.jsxs)(ge.Fragment,{children:[jt||(jt=(0,ge.jsxs)(Qt,{children:[(0,ge.jsx)(Jt,{isSuccessful:!1,children:(0,ge.jsx)(Kt.Z,{icon:"times"})}),(0,ge.jsx)(en,{children:(0,ge.jsx)(W.ZP.P,{children:(0,ge.jsx)(U.Z,{id:"client.two-factor-connector.errorText"})})})]})),(0,ge.jsx)(Xt,{children:(0,ge.jsx)(J.Z,{label:a("client.two-factor-connector.okButton"),ink:"primary",look:"raised",onClick:n})})]})};var nn={success:function(){return{type:Ht}},goToStart:Gt};const rn=(0,g.connect)((function(e){return{setupSuccessful:e.twoFactorConnector.setupSuccessful}}),nn)((0,m.ZP)(tn));i(46444);var on,an=Object.defineProperty,cn=Object.getOwnPropertySymbols,sn=Object.prototype.hasOwnProperty,un=Object.prototype.propertyIsEnumerable,ln=(e,t,n)=>t in e?an(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pn=(e,t)=>{for(var n in t||(t={}))sn.call(t,n)&&ln(e,n,t[n]);if(cn)for(var n of cn(t))un.call(t,n)&&ln(e,n,t[n]);return e},dn=(e,t)=>{var n={};for(var r in e)sn.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&cn)for(var r of cn(e))t.indexOf(r)<0&&un.call(e,r)&&(n[r]=e[r]);return n};(e=>{const t=class{constructor(e,n,r,o){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let i=[];for(let e=0;e<this.size;e++)i.push(!1);for(let e=0;e<this.size;e++)this.modules.push(i.slice()),this.isFunction.push(i.slice());this.drawFunctionPatterns();const c=this.addEccAndInterleave(r);if(this.drawCodewords(c),-1==o){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(o=t,e=n),this.applyMask(t)}}a(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}static encodeText(n,r){const o=e.QrSegment.makeSegments(n);return t.encodeSegments(o,r)}static encodeBinary(n,r){const o=e.QrSegment.makeBytes(n);return t.encodeSegments([o],r)}static encodeSegments(e,n,o=1,i=40,s=-1,u=!0){if(!(t.MIN_VERSION<=o&&o<=i&&i<=t.MAX_VERSION)||s<-1||s>7)throw new RangeError("Invalid value");let l,p;for(l=o;;l++){const r=8*t.getNumDataCodewords(l,n),o=c.getTotalBits(e,l);if(o<=r){p=o;break}if(l>=i)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])u&&p<=8*t.getNumDataCodewords(l,e)&&(n=e);let d=[];for(const t of e){r(t.mode.modeBits,4,d),r(t.numChars,t.mode.numCharCountBits(l),d);for(const e of t.getData())d.push(e)}a(d.length==p);const f=8*t.getNumDataCodewords(l,n);a(d.length<=f),r(0,Math.min(4,f-d.length),d),r(0,(8-d.length%8)%8,d),a(d.length%8==0);for(let e=236;d.length<f;e^=253)r(e,8,d);let h=[];for(;8*h.length<d.length;)h.push(0);return d.forEach(((e,t)=>h[t>>>3]|=e<<7-(7&t))),new t(l,n,h,s)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)0==n&&0==r||0==n&&r==t-1||n==t-1&&0==r||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let e=0;e<10;e++)n=n<<1^1335*(n>>>9);const r=21522^(t<<10|n);a(r>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,o(r,e));this.setFunctionModule(8,7,o(r,6)),this.setFunctionModule(8,8,o(r,7)),this.setFunctionModule(7,8,o(r,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,o(r,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,o(r,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,o(r,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;a(t>>>18==0);for(let e=0;e<18;e++){const n=o(t,e),r=this.size-11+e%3,a=Math.floor(e/3);this.setFunctionModule(r,a,n),this.setFunctionModule(a,r,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){const o=Math.max(Math.abs(r),Math.abs(n)),a=e+r,i=t+n;0<=a&&a<this.size&&0<=i&&i<this.size&&this.setFunctionModule(a,i,2!=o&&4!=o)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");const o=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],i=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],c=Math.floor(t.getNumRawDataModules(n)/8),s=o-c%o,u=Math.floor(c/o);let l=[];const p=t.reedSolomonComputeDivisor(i);for(let n=0,r=0;n<o;n++){let o=e.slice(r,r+u-i+(n<s?0:1));r+=o.length;const a=t.reedSolomonComputeRemainder(o,p);n<s&&o.push(0),l.push(o.concat(a))}let d=[];for(let e=0;e<l[0].length;e++)l.forEach(((t,n)=>{(e!=u-i||n>=s)&&d.push(t[e])}));return a(d.length==c),d}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let r=0;r<this.size;r++)for(let a=0;a<2;a++){const i=t-a,c=0==(t+1&2)?this.size-1-r:r;!this.isFunction[c][i]&&n<8*e.length&&(this.modules[c][i]=o(e[n>>>3],7-(7&n)),n++)}}a(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[n][i]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[n][i],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,a)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[i][n]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[i][n],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,a)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){const o=this.modules[n][r];o==this.modules[n][r+1]&&o==this.modules[n+1][r]&&o==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(const e of this.modules)n=e.reduce(((e,t)=>e+(t?1:0)),n);const r=this.size*this.size,o=Math.ceil(Math.abs(20*n-10*r)/r)-1;return a(0<=o&&o<=9),e+=o*t.PENALTY_N4,a(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return a(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let o=0;o<e;o++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map((e=>0));for(const o of e){const e=o^r.shift();r.push(0),n.forEach(((n,o)=>r[o]^=t.reedSolomonMultiply(n,e)))}return r}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return a(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];a(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};let n=t;function r(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function o(e,t){return 0!=(e>>>t&1)}function a(e){if(!e)throw new Error("Assertion error")}n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;const i=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(e){let t=[];for(const n of e)r(n,8,t);return new i(i.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!i.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let n=0;n<e.length;){const o=Math.min(e.length-n,3);r(parseInt(e.substr(n,o),10),3*o+1,t),n+=o}return new i(i.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!i.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t,n=[];for(t=0;t+2<=e.length;t+=2){let o=45*i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));o+=i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),r(o,11,n)}return t<e.length&&r(i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new i(i.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:i.isNumeric(e)?[i.makeNumeric(e)]:i.isAlphanumeric(e)?[i.makeAlphanumeric(e)]:[i.makeBytes(i.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)r(e,8,t);else if(e<16384)r(2,2,t),r(e,14,t);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");r(6,3,t),r(e,21,t)}return new i(i.Mode.ECI,0,t)}static isNumeric(e){return i.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return i.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(const r of e){const e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substr(n+1,2),16)),n+=2);return t}};let c=i;c.NUMERIC_REGEX=/^[0-9]*$/,c.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,c.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=c})(on||(on={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};let n=t;n.LOW=new t(0,1),n.MEDIUM=new t(1,0),n.QUARTILE=new t(2,3),n.HIGH=new t(3,2),e.Ecc=n})(t=e.QrCode||(e.QrCode={}))})(on||(on={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};let n=t;n.NUMERIC=new t(1,[10,12,14]),n.ALPHANUMERIC=new t(2,[9,11,13]),n.BYTE=new t(4,[8,16,16]),n.KANJI=new t(8,[8,10,12]),n.ECI=new t(7,[0,0,0]),e.Mode=n})(t=e.QrSegment||(e.QrSegment={}))})(on||(on={}));var fn=on,hn={L:fn.QrCode.Ecc.LOW,M:fn.QrCode.Ecc.MEDIUM,Q:fn.QrCode.Ecc.QUARTILE,H:fn.QrCode.Ecc.HIGH},mn=128,gn="L",vn="#FFFFFF",yn="#000000",bn=!1;
72
+ */var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case l:case p:case a:case c:case i:case f:return e;default:switch(e=e&&e.$$typeof){case u:case d:case g:case m:case s:return e;default:return t}}case o:return t}}}function k(e){return x(e)===p}t.AsyncMode=l,t.ConcurrentMode=p,t.ContextConsumer=u,t.ContextProvider=s,t.Element=r,t.ForwardRef=d,t.Fragment=a,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=c,t.StrictMode=i,t.Suspense=f,t.isAsyncMode=function(e){return k(e)||x(e)===l},t.isConcurrentMode=k,t.isContextConsumer=function(e){return x(e)===u},t.isContextProvider=function(e){return x(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===d},t.isFragment=function(e){return x(e)===a},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===c},t.isStrictMode=function(e){return x(e)===i},t.isSuspense=function(e){return x(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===p||e===c||e===i||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===s||e.$$typeof===u||e.$$typeof===d||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=x},38163:(e,t,n)=>{"use strict";e.exports=n(66526)},1024:e=>{"use strict";e.exports=t},30314:t=>{"use strict";t.exports=e},71298:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},38088:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},87462:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},88911:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:()=>r})},83029:(e,t,n)=>{"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{Z:()=>r})},61086:(e,t,n)=>{"use strict";function r(e,t,n,r,o,a,i){try{var c=e[a](i),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,a){var i=e.apply(t,n);function c(e){r(i,o,a,c,s,"next",e)}function s(e){r(i,o,a,c,s,"throw",e)}c(void 0)}))}}n.d(t,{Z:()=>o})},11259:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:()=>r})},44822:(e,t,n)=>{"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,{Z:()=>o})},46927:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>r})},3640:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},19241:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:()=>r})},32208:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}n.d(t,{Z:()=>o})},72753:(e,t,n)=>{"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:()=>r})},56265:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:()=>r})},8486:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(46927);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},56315:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:()=>r})},99357:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(73891);function o(e,t){if(t&&("object"===(0,r.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}},68957:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(83029);var o=n(61917),a=n(56265);function i(e,t){return(0,r.Z)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}(e,t)||(0,o.Z)(e,t)||(0,a.Z)()}},91411:(e,t,n)=>{"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{Z:()=>r})},45915:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(88911);var o=n(72753),a=n(61917);function i(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||(0,o.Z)(e)||(0,a.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},73891:(e,t,n)=>{"use strict";function r(e){return r="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},r(e)}n.d(t,{Z:()=>r})},61917:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(88911);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}},a={};function i(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,i),n.loaded=!0,n.exports}i.m=o,i.amdD=function(){throw new Error("define cannot be used indirect")},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,n)=>(i.f[n](e,t),t)),[])),i.u=e=>288===e?"chunk-ckeditor.966b93fab1f28a51ecbd.js":"chunk-"+({85:"code-editor",198:"vendor-fontawesome",614:"vendor-icons",877:"vendor-libphonenumber-js"}[e]||e)+"."+{85:"518cffead3ac4a62b00f",198:"bf7d7e49d7b58e3166c5",414:"51c4062a5485a4775775",614:"b45f0f337eb768a9e3a9",759:"9337b4e21a78c273072d",817:"5758e51444b678849e3d",877:"04702eeaaa7a6d567205",909:"f0934a9b9f58a57b1c62"}[e]+".js",i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="tocco-widget-bundle:",i.l=(e,t,o,a)=>{if(n[e])n[e].push(t);else{var c,s;if(void 0!==o)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var p=u[l];if(p.getAttribute("src")==e||p.getAttribute("data-webpack")==r+o){c=p;break}}c||(s=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,i.nc&&c.setAttribute("nonce",i.nc),c.setAttribute("data-webpack",r+o),c.src=e),n[e]=[t];var d=(t,r)=>{c.onerror=c.onload=null,clearTimeout(f);var o=n[e];if(delete n[e],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach((e=>e(r))),t)return t(r)},f=setTimeout(d.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=d.bind(null,c.onerror),c.onload=d.bind(null,c.onload),s&&document.head.appendChild(c)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),i.j=535,i.p="/",(()=>{var e={535:0};i.f.j=(t,n)=>{var r=i.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var a=i.p+i.u(t),c=new Error;i.l(a,(n=>{if(i.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;c.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",c.name="ChunkLoadError",c.type=o,c.request=a,r[1](c)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[a,c,s]=n,u=0;if(a.some((t=>0!==e[t]))){for(r in c)i.o(c,r)&&(i.m[r]=c[r]);if(s)s(i)}for(t&&t(n);u<a.length;u++)o=a[u],i.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunktocco_widget_bundle=self.webpackChunktocco_widget_bundle||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),i.nc=void 0;var c={};return(()=>{"use strict";i.r(c);var e=i(55954),t=i(59713),n=i.n(t),r=i(10317),o=i.n(r),a=i(22731),s=i(19743),u=i(45430),l=i(23369),p=i(45697),d=i.n(p),f=i(98773);const h={propTypes:d().shape({embedType:d().oneOf(f.Nc),widgetConfigKey:function(e,t,n){if("widget"===e.embedType&&!e[t])return new Error("Prop `"+t+"` is missing for `"+n+"`. Validation failed.")}})};var m=i(74806),g=i(50558),v=i(28655),y=i.n(v),b=i(1024),w=i.n(b),x=i(58804),k=i(48926),O=i.n(k),_=i(63038),E=i.n(_),S=i(87757),A=i.n(S);function C(){return C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C.apply(this,arguments)}function P(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var j=function(e){var t,n;function r(){var t;return(t=e.call(this)||this).handleExpired=t.handleExpired.bind(P(t)),t.handleErrored=t.handleErrored.bind(P(t)),t.handleChange=t.handleChange.bind(P(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(P(t)),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getValue=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this.props.grecaptcha.getResponse(this._widgetId):null},o.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},o.execute=function(){var e=this.props.grecaptcha;if(e&&void 0!==this._widgetId)return e.execute(this._widgetId);this._executeRequested=!0},o.executeAsync=function(){var e=this;return new Promise((function(t,n){e.executionResolve=t,e.executionReject=n,e.execute()}))},o.reset=function(){this.props.grecaptcha&&void 0!==this._widgetId&&this.props.grecaptcha.reset(this._widgetId)},o.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},o.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},o.handleChange=function(e){this.props.onChange&&this.props.onChange(e),this.executionResolve&&(this.executionResolve(e),delete this.executionReject,delete this.executionResolve)},o.explicitRender=function(){if(this.props.grecaptcha&&this.props.grecaptcha.render&&void 0===this._widgetId){var e=document.createElement("div");this._widgetId=this.props.grecaptcha.render(e,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge}),this.captcha.appendChild(e)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},o.componentDidMount=function(){this.explicitRender()},o.componentDidUpdate=function(){this.explicitRender()},o.componentWillUnmount=function(){void 0!==this._widgetId&&(this.delayOfCaptchaIframeRemoving(),this.reset())},o.delayOfCaptchaIframeRemoving=function(){var e=document.createElement("div");for(document.body.appendChild(e),e.style.display="none";this.captcha.firstChild;)e.appendChild(this.captcha.firstChild);setTimeout((function(){document.body.removeChild(e)}),5e3)},o.handleRecaptchaRef=function(e){this.captcha=e},o.render=function(){var e=this.props,t=(e.sitekey,e.onChange,e.theme,e.type,e.tabindex,e.onExpired,e.onErrored,e.size,e.stoken,e.grecaptcha,e.badge,e.hl,function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl"]));return w().createElement("div",C({},t,{ref:this.handleRecaptchaRef}))},r}(w().Component);j.displayName="ReCAPTCHA",j.propTypes={sitekey:o().string.isRequired,onChange:o().func,grecaptcha:o().object,theme:o().oneOf(["dark","light"]),type:o().oneOf(["image","audio"]),tabindex:o().number,onExpired:o().func,onErrored:o().func,size:o().oneOf(["compact","normal","invisible"]),stoken:o().string,hl:o().string,badge:o().oneOf(["bottomright","bottomleft","inline"])},j.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var D=i(33188),T=i.n(D);function M(){return M=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},M.apply(this,arguments)}var Z={},I=0;var R="onloadcallback";const N=(L=function(){return"https://"+(("undefined"!=typeof window&&window.recaptchaOptions||{}).useRecaptchaNet?"recaptcha.net":"www.google.com")+"/recaptcha/api.js?onload="+R+"&render=explicit"},B=(B={callbackName:R,globalName:"grecaptcha"})||{},function(e){var t=e.displayName||e.name||"Component",n=function(t){var n,r;function o(e,n){var r;return(r=t.call(this,e,n)||this).state={},r.__scriptURL="",r}r=t,(n=o).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r;var a=o.prototype;return a.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+I++),this.__scriptLoaderID},a.setupScriptURL=function(){return this.__scriptURL="function"==typeof L?L():L,this.__scriptURL},a.asyncScriptLoaderHandleLoad=function(e){var t=this;this.setState(e,(function(){return t.props.asyncScriptOnLoad&&t.props.asyncScriptOnLoad(t.state)}))},a.asyncScriptLoaderTriggerOnScriptLoaded=function(){var e=Z[this.__scriptURL];if(!e||!e.loaded)throw new Error("Script is not loaded.");for(var t in e.observers)e.observers[t](e);delete window[B.callbackName]},a.componentDidMount=function(){var e=this,t=this.setupScriptURL(),n=this.asyncScriptLoaderGetScriptLoaderID(),r=B,o=r.globalName,a=r.callbackName,i=r.scriptId;if(o&&void 0!==window[o]&&(Z[t]={loaded:!0,observers:{}}),Z[t]){var c=Z[t];return c&&(c.loaded||c.errored)?void this.asyncScriptLoaderHandleLoad(c):void(c.observers[n]=function(t){return e.asyncScriptLoaderHandleLoad(t)})}var s={};s[n]=function(t){return e.asyncScriptLoaderHandleLoad(t)},Z[t]={loaded:!1,observers:s};var u=document.createElement("script");for(var l in u.src=t,u.async=!0,B.attributes)u.setAttribute(l,B.attributes[l]);i&&(u.id=i);var p=function(e){if(Z[t]){var n=Z[t].observers;for(var r in n)e(n[r])&&delete n[r]}};a&&"undefined"!=typeof window&&(window[a]=function(){return e.asyncScriptLoaderTriggerOnScriptLoaded()}),u.onload=function(){var e=Z[t];e&&(e.loaded=!0,p((function(t){return!a&&(t(e),!0)})))},u.onerror=function(){var e=Z[t];e&&(e.errored=!0,p((function(t){return t(e),!0})))},document.body.appendChild(u)},a.componentWillUnmount=function(){var e=this.__scriptURL;if(!0===B.removeOnUnmount)for(var t=document.getElementsByTagName("script"),n=0;n<t.length;n+=1)t[n].src.indexOf(e)>-1&&t[n].parentNode&&t[n].parentNode.removeChild(t[n]);var r=Z[e];r&&(delete r.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===B.removeOnUnmount&&delete Z[e])},a.render=function(){var t=B.globalName,n=this.props,r=(n.asyncScriptOnLoad,n.forwardedRef),o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(n,["asyncScriptOnLoad","forwardedRef"]);return t&&"undefined"!=typeof window&&(o[t]=void 0!==window[t]?window[t]:void 0),o.ref=r,(0,b.createElement)(e,o)},o}(b.Component),r=(0,b.forwardRef)((function(e,t){return(0,b.createElement)(n,M({},e,{forwardedRef:t}))}));return r.displayName="AsyncScriptLoader("+t+")",r.propTypes={asyncScriptOnLoad:o().func},T()(r,e)})(j);var L,B;const F=N;var H,U=i(44012),W=i(34206),z=i(21934),Y=i(26069),V=i(35997),q="LOGIN_FORM",G="PASSWORD_REQUEST",$="TWOSTEPLOGIN",K="PASSWORD_UPDATE",X="TWOSTEPLOGIN_ACTIVATION",Q=i(51032),J=i(65035),ee=i(7281),te=i(88601),ne=i(91411),re=i(58129);const oe=x.ZP.div.withConfig({displayName:"StyledButtonGroup"})(H||(H=(0,ne.Z)(["\n display: flex;\n\n &&& > "," {\n :not(:first-child) {\n margin-left: -1px;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n\n :not(:last-child) {\n margin-right: 0;\n border-right: 0;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n }\n"])),re.Z);var ae,ie,ce,se,ue,le,pe=x.ZP.input.withConfig({displayName:"StyledLoginFormInput"})(ae||(ae=y()(["\n /* stylelint-disable-next-line block-no-empty */\n @keyframes onAutoFillStart {\n from {\n }\n }\n\n && {\n transition: background-color 50000s, color 50000s, filter 50000s;\n\n &:-webkit-autofill {\n animation-duration: 50000s;\n animation-name: onAutoFillStart;\n }\n padding-top: 0.7rem;\n padding-bottom: 0.7rem;\n }\n ","\n"])),Q.k9),de=x.ZP.div.withConfig({displayName:"StyledLoginFormInputWrapper"})(ie||(ie=y()(["\n && {\n ","\n }\n"])),Q.yP),fe=(0,x.ZP)(J.Z).withConfig({displayName:"StyledLoginButton"})(ce||(ce=y()(["\n &&& {\n font-size: ",";\n border-radius: ",";\n display: flex;\n justify-content: center;\n padding: 1.25rem 0;\n width: 100%;\n margin-top: 20px;\n margin-bottom: 10px;\n\n &:not(:last-child) {\n margin-right: 0;\n }\n }\n"])),ee.Z.font(1.3),te.Z.radii("large")),he=(0,x.ZP)(J.Z).withConfig({displayName:"StyledTransparentButton"})(se||(se=y()(["\n &&& {\n margin-right: 0;\n background-color: transparent;\n color: ",";\n padding: 1.25rem 0;\n width: 100%;\n justify-content: center;\n\n &:hover {\n background-color: transparent;\n }\n }\n"])),te.Z.color("primary")),me=x.ZP.div.withConfig({displayName:"StyledLoginFormWrapper"})(ue||(ue=y()(["\n "," {\n margin-top: 1.8rem;\n width: auto;\n flex-direction: column;\n\n "," {\n flex-grow: 1;\n }\n }\n"])),oe,re.Z),ge=i(85893);const ve=function(e){var t=e.captchaKey,n=e.changePage,r=e.intl,o=e.login,a=e.loginPending,i=e.message,c=e.password,s=e.recaptchaActivated,u=e.setPassword,l=e.setUsername,p=e.showTitle,d=e.username,f=(0,b.useState)(!1),h=E()(f,2),m=h[0],g=h[1],v=(0,b.useRef)(),y=function(e){return r.formatMessage({id:e})},x=V.Z.usePrevious(s),k=(0,b.useCallback)(function(){var e=O()(A().mark((function e(t){var n;return A().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&t.preventDefault(),n=null,!s){e.next=7;break}return e.next=5,v.current.executeAsync();case 5:n=e.sent,v.current.reset();case 7:o(d,c,n);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[o,d,c,s]),_=function(e){"onAutoFillStart"===e.animationName&&g(!0)};(0,b.useEffect)((function(){s&&!x&&k()}),[s,x,k]);var S=!!d,C=!S;return(0,ge.jsxs)(me,{children:[p&&(le||(le=(0,ge.jsxs)(w().Fragment,{children:[(0,ge.jsx)(W.ZP.H5,{children:(0,ge.jsx)(U.Z,{id:"client.login.form.title"})}),(0,ge.jsx)(W.ZP.P,{children:(0,ge.jsx)(U.Z,{id:"client.login.form.introduction"})})]}))),(0,ge.jsxs)("form",{onSubmit:k,children:[(0,ge.jsx)(z.Z,{hasValue:!!d||m,id:"login-username",label:y("client.login.form.userPlaceholder"),children:(0,ge.jsx)(de,{children:(0,ge.jsx)(pe,{autoFocus:C,name:"user","data-cy":"login-form_user-input",onChange:function(e){l(e.target.value),g(!1)},required:!0,type:"text",value:d,onAnimationStart:_,onFocus:function(e){return e.target.select()}})})}),(0,ge.jsx)(z.Z,{hasValue:!!c||m,id:"login-password",label:y("client.login.form.passwordPlaceholder"),children:(0,ge.jsx)(de,{children:(0,ge.jsx)(pe,{autoFocus:S,name:"password","data-cy":"login-form_password-input",onChange:function(e){u(e.target.value),g(!1)},required:!0,type:"password",value:c,onAnimationStart:_,onFocus:function(e){return e.target.select()}})})}),i&&i.text&&(0,ge.jsx)(Y.ZP.List,{children:(0,ge.jsx)(Y.ZP.Item,{condition:i.negative?"danger":"base",label:i.text})}),t&&s&&(0,ge.jsx)(F,{ref:v,badge:"bottomright",size:"invisible",sitekey:t,hl:r.locale}),(0,ge.jsx)(fe,{disabled:!m&&(a||""===d||""===c),ink:"primary",look:"raised",label:y("client.login.form.button"),pending:a,type:"submit","data-cy":"login-form_login-button"}),(0,ge.jsx)(he,{label:y("client.login.form.forgotLink"),onClick:function(){return n(G)},"data-cy":"login-form_request-button"})]})]})},ye=ve;var be="login/INITIALIZE",we="Login/LOGIN",xe="Login/CHANGE_PAGE",ke="Login/SET_USERNAME",Oe="Login/SET_PASSWORD",_e="login/SET_CAPTCHA_KEY",Ee=function(e){return{type:xe,payload:{page:e}}},Se=function(e){return{type:ke,payload:{username:e}}},Ae=function(e){return{type:Oe,payload:{password:e}}},Ce={changePage:Ee,setUsername:Se,setPassword:Ae,login:function(e,t,n){return{type:we,payload:{username:e,password:t,captchaToken:n}}}};const Pe=(0,g.connect)((function(e){return{username:e.login.username,password:e.login.password,message:e.loginForm.message,loginPending:e.loginForm.loginPending,captchaKey:e.login.captchaKey,recaptchaActivated:e.loginForm.recaptchaActivated}}),Ce)((0,m.ZP)(ye));var je,De;const Te=function(e){var t=e.username,n=e.requestPassword,r=e.intl,o=e.showTitle,a=e.pending,i=e.changePage,c=(0,b.useState)(t||""),s=E()(c,2),u=s[0],l=s[1],p=function(e){return r.formatMessage({id:e})};return(0,ge.jsxs)(me,{children:[o&&(je||(je=(0,ge.jsx)(W.ZP.H5,{children:(0,ge.jsx)(U.Z,{id:"client.login.passwordRequest.title"})}))),De||(De=(0,ge.jsx)(W.ZP.P,{children:(0,ge.jsx)(U.Z,{id:"client.login.passwordRequest.introduction"})})),(0,ge.jsxs)("form",{onSubmit:function(e){e.preventDefault(),n(u)},children:[(0,ge.jsx)(z.Z,{hasValue:Boolean(u),id:"login-username",label:p("client.login.form.userPlaceholder"),children:(0,ge.jsx)(de,{children:(0,ge.jsx)(pe,{name:"user",onChange:function(e){l(e.target.value)},required:!0,type:"text",value:u,"data-cy":"password-request_input"})})}),(0,ge.jsx)(fe,{look:"raised",disabled:!u||a,ink:"primary",label:p("client.login.passwordRequest.button"),pending:a,type:"submit","data-cy":"password-request_submit-button"}),(0,ge.jsx)(he,{disabled:a,label:p("client.login.passwordRequest.abortButton"),name:"abort",onClick:function(){return i(q)},"data-cy":"password-request_abort-button"})]})]})};var Me="Login/REQUEST_PASSWORD",Ze="Login/PASSWORD_REQUEST",Ie="Login/SET_USERNAME",Re=function(e){return{type:Ze,payload:{passwordRequest:e}}},Ne={changePage:Ee,requestPassword:function(e){return{type:Me,payload:{username:e}}}};const Le=(0,g.connect)((function(e){return{username:e.login.username,pending:e.loginForm.loginPending}}),Ne)((0,m.ZP)(Te));var Be=i(50258),Fe=i(78958),He={INVALID_CREDENTIALS:"client.login.passwordUpdate.invalidCredentials",UNEXPECTED_ERROR:"client.login.passwordUpdate.unexpectedError"};const Ue=function(e){return(0,ge.jsx)(Y.ZP.List,{children:(0,ge.jsx)(Y.ZP.Item,{condition:Fe.Z.condition.DANGER,children:(0,ge.jsx)(U.Z,{id:(t=e.errorCode,He[t]||"client.login.passwordUpdate.failure")})})});var t};const We=function(e){return(0,ge.jsx)(Y.ZP.List,{children:e.rules.map((function(t,n){var r=null,o=t.message;if(e.errors){var a=e.errors[t.name];!0===a?r=Fe.Z.condition.DANGER:"string"==typeof a?(r=Fe.Z.condition.DANGER,o=a):r=Fe.Z.condition.SUCCESS}return(0,ge.jsx)(Y.ZP.Item,{condition:r,label:o},n)}))})};var ze,Ye,Ve=x.ZP.input.attrs((function(e){return{type:"password"}})).withConfig({displayName:"StyledPasswordInput"})(ze||(ze=y()(["\n && {\n ","\n }\n"])),Q.k9),qe=x.ZP.div.withConfig({displayName:"StyledPasswordInputWrapper"})(Ye||(Ye=y()(["\n && {\n ","\n }\n"])),Q.yP);const Ge=function(e){return(0,ge.jsx)(z.Z,{hasValue:!!e.value,id:"".concat(e.name,"-input"),immutable:!0===e.readOnly,label:e.label,signal:e.value?void 0===e.valid?null:e.valid?Fe.Z.condition.SUCCESS:Fe.Z.condition.DANGER:null,children:(0,ge.jsx)(qe,{immutable:!0===e.readOnly,children:(0,ge.jsx)(Ve,{id:"".concat(e.name,"-input"),value:e.value,onChange:function(t){return e.onChange(t.target.value)},disabled:!0===e.readOnly,immutable:!0===e.readOnly,onKeyDown:e.onKeyDown,autoFocus:e.autoFocus})})})};var $e;const Ke=x.ZP.div($e||($e=y()(["\n "," {\n width: 100%;\n }\n"])),re.Z);var Xe,Qe,Je,et,tt;function nt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?nt(Object(r),!0).forEach((function(t){n()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ot=x.ZP.div.withConfig({displayName:"StyledValidationRulesWrapper"})(Xe||(Xe=y()(["\n margin: 1rem;\n"])));const at=function(e){var t=e.captchaKey,n=e.fetchValidationRules,r=e.forcedUpdate,o=e.initialized,a=e.intl,i=e.password,c=e.savePassword,s=e.showOldPasswordField,u=e.showTitle,l=e.updateNewPassword,p=e.updateNewPasswordRepeat,d=e.updateOldPassword,f=e.validationRules,h=(0,b.useRef)();(0,b.useEffect)((function(){n()}),[n]),(0,b.useEffect)((function(){f&&o()}),[f,o]);var m=function(){var e=O()(A().mark((function e(t){var n;return A().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),!0!==g()){e.next=7;break}return e.next=4,h.current.executeAsync();case 4:n=e.sent,h.current.reset(),c(n);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),g=function(){return!!i.newPasswordRepeat&&(i.newPassword===i.newPasswordRepeat&&!i.passwordUpdatePending)},v=function(e){return a.formatMessage({id:e})};if(!f)return Qe||(Qe=(0,ge.jsx)(Be.Z,{}));var y=i.passwordUpdatePending,w=!i.oldPassword&&s||i.passwordUpdatePending,x=!i.newPassword||i.passwordUpdatePending||i.newPasswordValidationErrors&&Object.keys(i.newPasswordValidationErrors).length>0;return(0,ge.jsxs)(Ke,{children:[u&&(Je||(Je=(0,ge.jsx)(W.ZP.H5,{children:(0,ge.jsx)(U.Z,{id:"client.login.passwordUpdate.title"})}))),r&&(et||(et=(0,ge.jsx)(W.ZP.P,{children:(0,ge.jsx)(U.Z,{id:"client.login.passwordUpdate.introduction"})}))),(0,ge.jsxs)("form",{onSubmit:m,children:[!0===s&&(0,ge.jsx)(Ge,rt({tabIndex:1,label:v("client.login.passwordUpdate.oldPassword"),name:"oldPassword",value:i.oldPassword,onChange:d,readOnly:y,autoFocus:!0},i.passwordUpdateFailed&&"INVALID_CREDENTIALS"===i.passwordUpdateErrorCode&&{valid:!1})),(0,ge.jsx)(Ge,{tabIndex:2,label:v("client.login.passwordUpdate.newPassword"),name:"newPassword",value:i.newPassword,onChange:l,readOnly:w,autoFocus:!0!==s,valid:!x}),(0,ge.jsx)(ot,{children:(0,ge.jsx)(We,{rules:f,errors:i.newPasswordValidationErrors,rulesNeutral:!i.newPassword})}),(0,ge.jsx)(Ge,{tabIndex:3,label:v("client.login.passwordUpdate.newPasswordRepeat"),name:"newPasswordRepeat",value:i.newPasswordRepeat,onChange:p,readOnly:x,valid:g()}),i.newPasswordRepeat&&i.newPassword!==i.newPasswordRepeat&&(tt||(tt=(0,ge.jsx)(Y.ZP.List,{children:(0,ge.jsx)(Y.ZP.Item,{condition:"danger",label:(0,ge.jsx)(U.Z,{id:"client.login.passwordUpdate.noMatch"})})}))),!0===i.passwordUpdateFailed&&(0,ge.jsx)(Ue,{errorCode:i.passwordUpdateErrorCode}),(0,ge.jsx)(fe,{pending:i.passwordUpdatePending,disabled:!1===g(),ink:"primary",label:v("client.login.passwordUpdate.saveButton"),look:"raised",type:"submit"}),t&&(0,ge.jsx)(F,{ref:h,badge:"bottomright",size:"invisible",sitekey:t,hl:a.locale})]})]})},it=at;var ct="INITIALIZED",st="PasswordUpdateDialog/UPDATE_OLD_PASSWORD",ut="PasswordUpdateDialog/UPDATE_NEW_PASSWORD",lt="PasswordUpdateDialog/SET_NEW_PASSWORD",pt="PasswordUpdateDialog/SET_NEW_PASSWORD_VALIDATION_ERRORS",dt="PasswordUpdateDialog/UPDATE_NEW_PASSWORD_REPEAT",ft="PasswordUpdateDialog/SAVE_PASSWORD",ht="PasswordUpdateDialog/SAVE_PASSWORD_SUCCESS",mt="PasswordUpdateDialog/SAVE_PASSWORD_FAILURE",gt="PasswordUpdateDialog/VALIDATE",vt="PasswordUpdateDialog/RESET_PASSWORD_UPDATED_FAILED",yt=function(e){return{type:st,payload:{oldPassword:e}}},bt=function(e){return{type:pt,payload:{errors:e}}},wt=function(e,t){return{type:mt,payload:{errorCode:e,validationMessages:t}}},xt="PasswordUpdateDialog/FETCH_VALIDATION_RULES",kt="PasswordUpdateDialog/SET_VALIDATION_RULES",Ot={updateOldPassword:yt,updateNewPassword:function(e){return{type:ut,payload:{newPassword:e}}},updateNewPasswordRepeat:function(e){return{type:dt,payload:{newPasswordRepeat:e}}},fetchValidationRules:function(){return{type:xt}},savePassword:function(e){return{type:ft,payload:{captchaToken:e}}},initialized:function(){return{type:ct}}};const _t=(0,g.connect)((function(e){return{password:e.passwordUpdate.password,validationRules:e.passwordUpdate.validationRules,showOldPasswordField:e.passwordUpdate.dialog.showOldPasswordField,forcedUpdate:e.passwordUpdate.dialog.forcedUpdate,captchaKey:e.login.captchaKey}}),Ot)((0,m.ZP)(it));var Et,St,At,Ct,Pt,jt,Dt=i(27023),Tt="two-factor-connector/INITIALIZE",Mt="two-factor-connector/SET_TWO_STEP_ACTIVE",Zt="two-factor-connector/SET_SECRET",It="two-factor-connector/SET_USER_NAME",Rt="two-factor-connector/REQUEST_SECRET",Nt="two-factor-connector/GO_TO_SECRET_VERIFICATION",Lt="two-factor-connector/GO_TO_START",Bt="two-factor-connector/GO_TO_SECRET",Ft="two-factor-connector/VERIFY_CODE",Ht="root/SUCCESS",Ut="root/SET_SETUP_SUCCESSFUL",Wt="root/GO_TO_RESULT",zt=function(){return{type:Tt}},Yt=function(e){return{type:Mt,payload:{twoFactorActive:e}}},Vt=function(e){return{type:Zt,payload:{secret:e}}},qt=function(e){return{type:It,payload:{username:e}}},Gt=function(){return{type:Lt}},$t=function(e){return{type:Ut,payload:{setupSuccessful:e}}},Kt=i(88162),Xt=x.ZP.div.withConfig({displayName:"StyledButtonWrapper"})(Et||(Et=y()(["\n display: flex;\n justify-content: flex-end;\n margin-top: ",";\n\n > "," {\n margin-right: 0;\n }\n"])),ee.Z.space(.5),re.Z),Qt=x.ZP.div.withConfig({displayName:"StyledMessageWrapper"})(St||(St=y()(["\n display: grid;\n grid-template-columns: 9% 1fr;\n grid-column-gap: ",";\n"])),ee.Z.space(-.5)),Jt=x.ZP.span.withConfig({displayName:"StyledIconWrapper"})(At||(At=y()(["\n display: flex;\n align-items: center;\n color: ",";\n font-size: ",";\n\n > * {\n max-width: 100%;\n }\n"])),(function(e){return e.isSuccessful?te.Z.color("signal.success.text"):te.Z.color("signal.danger.text")}),ee.Z.font(10)),en=x.ZP.div.withConfig({displayName:"StyledTextWrapper"})(Ct||(Ct=y()(["\n display: flex;\n align-items: center;\n"])));const tn=function(e){var t=e.success,n=e.goToStart,r=e.setupSuccessful,o=e.intl,a=function(e){return o.formatMessage({id:e})};return r?(0,ge.jsxs)(ge.Fragment,{children:[Pt||(Pt=(0,ge.jsxs)(Qt,{children:[(0,ge.jsx)(Jt,{isSuccessful:!0,children:(0,ge.jsx)(Kt.Z,{icon:"check"})}),(0,ge.jsx)(en,{children:(0,ge.jsx)(W.ZP.P,{children:(0,ge.jsx)(U.Z,{id:"client.two-factor-connector.successfulText"})})})]})),(0,ge.jsx)(Xt,{children:(0,ge.jsx)(J.Z,{label:a("client.two-factor-connector.okButton"),ink:"primary",look:"raised",onClick:t})})]}):(0,ge.jsxs)(ge.Fragment,{children:[jt||(jt=(0,ge.jsxs)(Qt,{children:[(0,ge.jsx)(Jt,{isSuccessful:!1,children:(0,ge.jsx)(Kt.Z,{icon:"times"})}),(0,ge.jsx)(en,{children:(0,ge.jsx)(W.ZP.P,{children:(0,ge.jsx)(U.Z,{id:"client.two-factor-connector.errorText"})})})]})),(0,ge.jsx)(Xt,{children:(0,ge.jsx)(J.Z,{label:a("client.two-factor-connector.okButton"),ink:"primary",look:"raised",onClick:n})})]})};var nn={success:function(){return{type:Ht}},goToStart:Gt};const rn=(0,g.connect)((function(e){return{setupSuccessful:e.twoFactorConnector.setupSuccessful}}),nn)((0,m.ZP)(tn));i(46444);var on,an=Object.defineProperty,cn=Object.getOwnPropertySymbols,sn=Object.prototype.hasOwnProperty,un=Object.prototype.propertyIsEnumerable,ln=(e,t,n)=>t in e?an(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pn=(e,t)=>{for(var n in t||(t={}))sn.call(t,n)&&ln(e,n,t[n]);if(cn)for(var n of cn(t))un.call(t,n)&&ln(e,n,t[n]);return e},dn=(e,t)=>{var n={};for(var r in e)sn.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&cn)for(var r of cn(e))t.indexOf(r)<0&&un.call(e,r)&&(n[r]=e[r]);return n};(e=>{const t=class{constructor(e,n,r,o){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version value out of range");if(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=4*e+17;let i=[];for(let e=0;e<this.size;e++)i.push(!1);for(let e=0;e<this.size;e++)this.modules.push(i.slice()),this.isFunction.push(i.slice());this.drawFunctionPatterns();const c=this.addEccAndInterleave(r);if(this.drawCodewords(c),-1==o){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const n=this.getPenaltyScore();n<e&&(o=t,e=n),this.applyMask(t)}}a(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}static encodeText(n,r){const o=e.QrSegment.makeSegments(n);return t.encodeSegments(o,r)}static encodeBinary(n,r){const o=e.QrSegment.makeBytes(n);return t.encodeSegments([o],r)}static encodeSegments(e,n,o=1,i=40,s=-1,u=!0){if(!(t.MIN_VERSION<=o&&o<=i&&i<=t.MAX_VERSION)||s<-1||s>7)throw new RangeError("Invalid value");let l,p;for(l=o;;l++){const r=8*t.getNumDataCodewords(l,n),o=c.getTotalBits(e,l);if(o<=r){p=o;break}if(l>=i)throw new RangeError("Data too long")}for(const e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])u&&p<=8*t.getNumDataCodewords(l,e)&&(n=e);let d=[];for(const t of e){r(t.mode.modeBits,4,d),r(t.numChars,t.mode.numCharCountBits(l),d);for(const e of t.getData())d.push(e)}a(d.length==p);const f=8*t.getNumDataCodewords(l,n);a(d.length<=f),r(0,Math.min(4,f-d.length),d),r(0,(8-d.length%8)%8,d),a(d.length%8==0);for(let e=236;d.length<f;e^=253)r(e,8,d);let h=[];for(;8*h.length<d.length;)h.push(0);return d.forEach(((e,t)=>h[t>>>3]|=e<<7-(7&t))),new t(l,n,h,s)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)0==n&&0==r||0==n&&r==t-1||n==t-1&&0==r||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let n=t;for(let e=0;e<10;e++)n=n<<1^1335*(n>>>9);const r=21522^(t<<10|n);a(r>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,o(r,e));this.setFunctionModule(8,7,o(r,6)),this.setFunctionModule(8,8,o(r,7)),this.setFunctionModule(7,8,o(r,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,o(r,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,o(r,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,o(r,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;a(t>>>18==0);for(let e=0;e<18;e++){const n=o(t,e),r=this.size-11+e%3,a=Math.floor(e/3);this.setFunctionModule(r,a,n),this.setFunctionModule(a,r,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){const o=Math.max(Math.abs(r),Math.abs(n)),a=e+r,i=t+n;0<=a&&a<this.size&&0<=i&&i<this.size&&this.setFunctionModule(a,i,2!=o&&4!=o)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,1!=Math.max(Math.abs(r),Math.abs(n)))}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(e){const n=this.version,r=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(n,r))throw new RangeError("Invalid argument");const o=t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],i=t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],c=Math.floor(t.getNumRawDataModules(n)/8),s=o-c%o,u=Math.floor(c/o);let l=[];const p=t.reedSolomonComputeDivisor(i);for(let n=0,r=0;n<o;n++){let o=e.slice(r,r+u-i+(n<s?0:1));r+=o.length;const a=t.reedSolomonComputeRemainder(o,p);n<s&&o.push(0),l.push(o.concat(a))}let d=[];for(let e=0;e<l[0].length;e++)l.forEach(((t,n)=>{(e!=u-i||n>=s)&&d.push(t[e])}));return a(d.length==c),d}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let n=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let r=0;r<this.size;r++)for(let a=0;a<2;a++){const i=t-a,c=0==(t+1&2)?this.size-1-r:r;!this.isFunction[c][i]&&n<8*e.length&&(this.modules[c][i]=o(e[n>>>3],7-(7&n)),n++)}}a(n==8*e.length)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let n=0;n<this.size;n++){let r=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[n][i]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[n][i],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,a)*t.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,o=0,a=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[i][n]==r?(o++,5==o?e+=t.PENALTY_N1:o>5&&e++):(this.finderPenaltyAddHistory(o,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[i][n],o=1);e+=this.finderPenaltyTerminateAndCount(r,o,a)*t.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){const o=this.modules[n][r];o==this.modules[n][r+1]&&o==this.modules[n+1][r]&&o==this.modules[n+1][r+1]&&(e+=t.PENALTY_N2)}let n=0;for(const e of this.modules)n=e.reduce(((e,t)=>e+(t?1:0)),n);const r=this.size*this.size,o=Math.ceil(Math.abs(20*n-10*r)/r)-1;return a(0<=o&&o<=9),e+=o*t.PENALTY_N4,a(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{const e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2));let n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw new RangeError("Version number out of range");let n=(16*e+128)*e+64;if(e>=2){const t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return a(208<=n&&n<=29648),n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let n=[];for(let t=0;t<e-1;t++)n.push(0);n.push(1);let r=1;for(let o=0;o<e;o++){for(let e=0;e<n.length;e++)n[e]=t.reedSolomonMultiply(n[e],r),e+1<n.length&&(n[e]^=n[e+1]);r=t.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(e,n){let r=n.map((e=>0));for(const o of e){const e=o^r.shift();r.push(0),n.forEach(((n,o)=>r[o]^=t.reedSolomonMultiply(n,e)))}return r}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let r=7;r>=0;r--)n=n<<1^285*(n>>>7),n^=(t>>>r&1)*e;return a(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];a(t<=3*this.size);const n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};let n=t;function r(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function o(e,t){return 0!=(e>>>t&1)}function a(e){if(!e)throw new Error("Assertion error")}n.MIN_VERSION=1,n.MAX_VERSION=40,n.PENALTY_N1=3,n.PENALTY_N2=3,n.PENALTY_N3=40,n.PENALTY_N4=10,n.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],n.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=n;const i=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(e){let t=[];for(const n of e)r(n,8,t);return new i(i.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!i.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let n=0;n<e.length;){const o=Math.min(e.length-n,3);r(parseInt(e.substr(n,o),10),3*o+1,t),n+=o}return new i(i.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!i.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t,n=[];for(t=0;t+2<=e.length;t+=2){let o=45*i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t));o+=i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t+1)),r(o,11,n)}return t<e.length&&r(i.ALPHANUMERIC_CHARSET.indexOf(e.charAt(t)),6,n),new i(i.Mode.ALPHANUMERIC,e.length,n)}static makeSegments(e){return""==e?[]:i.isNumeric(e)?[i.makeNumeric(e)]:i.isAlphanumeric(e)?[i.makeAlphanumeric(e)]:[i.makeBytes(i.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)r(e,8,t);else if(e<16384)r(2,2,t),r(e,14,t);else{if(!(e<1e6))throw new RangeError("ECI assignment value out of range");r(6,3,t),r(e,21,t)}return new i(i.Mode.ECI,0,t)}static isNumeric(e){return i.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return i.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(const r of e){const e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)"%"!=e.charAt(n)?t.push(e.charCodeAt(n)):(t.push(parseInt(e.substr(n+1,2),16)),n+=2);return t}};let c=i;c.NUMERIC_REGEX=/^[0-9]*$/,c.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,c.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=c})(on||(on={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};let n=t;n.LOW=new t(0,1),n.MEDIUM=new t(1,0),n.QUARTILE=new t(2,3),n.HIGH=new t(3,2),e.Ecc=n})(t=e.QrCode||(e.QrCode={}))})(on||(on={})),(e=>{let t;(e=>{const t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};let n=t;n.NUMERIC=new t(1,[10,12,14]),n.ALPHANUMERIC=new t(2,[9,11,13]),n.BYTE=new t(4,[8,16,16]),n.KANJI=new t(8,[8,10,12]),n.ECI=new t(7,[0,0,0]),e.Mode=n})(t=e.QrSegment||(e.QrSegment={}))})(on||(on={}));var fn=on,hn={L:fn.QrCode.Ecc.LOW,M:fn.QrCode.Ecc.MEDIUM,Q:fn.QrCode.Ecc.QUARTILE,H:fn.QrCode.Ecc.HIGH},mn=128,gn="L",vn="#FFFFFF",yn="#000000",bn=!1;
73
73
  /**
74
74
  * @license qrcode.react
75
75
  * Copyright (c) Paul O'Shannessy