!function(n){var o={};function r(e){if(o[e])return o[e].exports;var t=o[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}r.m=n,r.c=o,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,n){n(1),e.exports=n(3)},function(e,t,n){var o,r,a;function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}"undefined"!=typeof self&&self,r=[t,n(2)],void 0===(a="function"==typeof(o=function(e,n){var r=window.document,t=new function e(){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,"loading",!1),s(this,"ajaxRequest",null),s(this,"barGraph",null),s(this,"zone",null),s(this,"zoneEmpty",null),s(this,"zoneLoading",null),s(this,"contentLoaded",function(){i.zone=r.getElementById("sfrZone"),i.zoneEmpty=r.getElementById("sfrZone_empty"),i.zoneLoading=r.getElementById("sfrZone_loading"),i.barGraph=r.getElementById("bargraph"),null!==i.barGraph&&(i.barGraph.classList.add("show"),i.barGraph.passwordStrengthCalculator=new n,i.isInternetExplorer()?i.loadInternetExplorerPolyfill():i.attachToElement("sfrpassword","keyup",i.callTestPassword.bind(i))),i.attachToElement("sfrCountry","change",i.countryChanged.bind(i)),i.attachToElement("sfrCountry","keyup",i.countryChanged.bind(i)),i.attachToElement("uploadButton","change",i.uploadFile),i.attachToElement("removeImageButton","click",i.removeFile.bind(i))}),s(this,"showElement",function(e){e.classList.remove("d-none"),e.classList.add("d-block")}),s(this,"hideElement",function(e){e.classList.remove("d-block"),e.classList.add("d-none")}),s(this,"attachToElement",function(e,t,n){var o="object"===l(e)?e:r.getElementById(e);o&&o.addEventListener?o.addEventListener(t,n,!1):o&&o.attachEvent("on"+t,n)}),s(this,"callTestPassword",function(e){var t=e.target,n=i.barGraph.passwordStrengthCalculator.calculate(t.value);if("meter"===i.barGraph.tagName.toLowerCase())i.barGraph.value=n.score;else{var o=Math.min(Math.floor(n.score/3.4),10),r=(i.barGraph.contentDocument||i.barGraph.contentWindow.document).getElementsByClassName("blind"),a=i;Array.from(r).forEach(function(e,t){a[t<o?"hideElement":"showElement"](e)})}}),s(this,"isInternetExplorer",function(){var e=navigator.userAgent;return-1<e.indexOf("MSIE ")||-1<e.indexOf("Trident/")}),s(this,"loadInternetExplorerPolyfill",function(){var e=i,t=r.getElementsByTagName("body").item(0),n=r.createElement("script");n.setAttribute("type","text/javascript"),n.setAttribute("src","https://unpkg.com/meter-polyfill/dist/meter-polyfill.min.js"),n.onload=function(){meterPolyfill(e.barGraph),e.attachToElement("sfrpassword","keyup",e.callTestPassword.bind(this))},t.appendChild(n)}),s(this,"countryChanged",function(e){if(("keyup"===e.type&&(40===e.keyCode||38===e.keyCode)||"change"===e.type)&&!0!==i.loading&&i.zone){var t=e.target||e.srcElement,n=t.options[t.selectedIndex].value;i.loading=!0,i.zone.disabled=!0,i.hideElement(i.zoneEmpty),i.showElement(i.zoneLoading),i.ajaxRequest=new XMLHttpRequest,i.ajaxRequest.onreadystatechange=i.xhrReadyStateChanged.bind(i),i.ajaxRequest.open("POST","index.php?eID=sf_register"),i.ajaxRequest.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),i.ajaxRequest.send("tx_sfregister[action]=zones&tx_sfregister[parent]="+n)}}),s(this,"xhrReadyStateChanged",function(e){var t=e.target;if(4===t.readyState&&200===t.status){var n=JSON.parse(t.responseText);i.hideElement(i.zoneLoading),"error"===n.status||0===n.data.length?i.showElement(i.zoneEmpty):i.addZoneOptions(n.data)}i.loading=!1}),s(this,"addZoneOptions",function(e){i.zone.length=0,i.zone.options=[],e.forEach(function(e,t){this.options[t]=new Option(e.label,e.value)}.bind(i.zone)),i.zone.disabled=!1}),s(this,"uploadFile",function(){r.getElementById("uploadFile").value=i.value}),s(this,"removeFile",function(){r.getElementById("removeImage").value=1,i.submitForm()}),s(this,"submitForm",function(){r.getElementById("sfrForm").submit()});var t=this;t.attachToElement(r,"DOMContentLoaded",t.contentLoaded.bind(t))};window.sfRegister_submitForm=function(){t.submitForm()},e.SfRegister=t})?o.apply(t,r):o)||(e.exports=a)},function(e,t,n){var o,r,a;function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}r=[],void 0===(a="function"==typeof(o=function(){return function e(){var l=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,"verdictLength",function(e){var t=0,n="",o=e.length;switch(!0){case 0<o&&o<5:n="3 points for length ("+o+")",t=3;break;case 4<o&&o<8:n="6 points for length ("+o+")",t=6;break;case 7<o&&o<16:n="12 points for length ("+o+")",t=12;break;case 15<o:n="18 points for length ("+o+")",t=18}return{score:t,log:n}}),i(this,"verdictLetter",function(e){var t=0,n="",o=e.match(/[a-z]/),r=e.match(/[A-Z]/);return o?n=r?(t=7,"7 points for letters are mixed"):(t=5,"5 point for at least one lower case char"):r&&(t=5,n="5 points for at least one upper case char"),{score:t,log:n}}),i(this,"verdictNumbers",function(e){var t=0,n="",o=e.replace(/\D/gi,"");return 1<o.length?(t=7,n="7 points for at least three numbers"):0<o.length&&(t=5,n="5 points for at least one number"),{score:t,log:n}}),i(this,"verdictSpecialChars",function(e){var t=0,n="",o=e.replace(/[\w\s]/gi,"");return 1<o.length?(t=10,n="10 points for at least two special chars"):0<o.length&&(t=5,n="5 points for at least one special char"),{score:t,log:n}}),i(this,"verdictCombos",function(e){var t=0,n="";return 7===e.letter&&0<e.number&&0<e.special?(t=6,n="6 combo points for letters, numbers and special characters"):0<e.letter&&0<e.number&&0<e.special?(t=4,n="4 combo points for letters, numbers and special characters"):7===e.letter&&0<e.number?(t=2,n="2 combo points for mixed case letters and numbers"):0<e.letter&&0<e.number?(t=1,n="1 combo points for letters and numbers"):7===e.letter&&(t=1,n="1 combo points for mixed case letters"),{score:t,log:n}}),i(this,"finalVerdict",function(e){return e<16?"very weak":15<e&&e<25?"weak":24<e&&e<35?"mediocre":34<e&&e<45?"strong":"stronger"}),i(this,"calculate",function(e){var t=l.verdictLength(e),n=l.verdictLetter(e),o=l.verdictNumbers(e),r=l.verdictSpecialChars(e),a=l.verdictCombos({letter:n.score,number:o.score,special:r.score}),i=t.score+n.score+o.score+r.score+a.score,s=[t.log,n.log,o.log,r.log,a.log,i+" points final score"].join("\n");return{score:i,verdict:l.finalVerdict(i),log:s}})}})?o.apply(t,r):o)||(e.exports=a)},function(e,t,n){}])