/* pwstrength-bootstrap 2018-08-28 - GPLv3 & MIT License */ !function(s){var r={};!function(o,s){"use strict";o.fallback={wordMinLength:"Your password is too short",wordMaxLength:"Your password is too long",wordInvalidChar:"Your password contains an invalid character",wordNotEmail:"Do not use your email as your password",wordSimilarToUsername:"Your password cannot contain your username",wordTwoCharacterClasses:"Use different character classes",wordRepetitions:"Too many repetitions",wordSequences:"Your password contains sequences",errorList:"Errors:",veryWeak:"Very Weak",weak:"Weak",normal:"Normal",medium:"Medium",strong:"Strong",veryStrong:"Very Strong"},o.t=function(r){var e="";return(e=s?s.t(r):o.fallback[r])===r?"":e}}(r,window.i18next);var u={};try{if(!s&&module&&module.exports){s=require("jquery");var e=require("jsdom").jsdom;s=s(e().defaultView)}}catch(r){}!function(u,d){"use strict";var r={};d.forbiddenSequences=["0123456789","abcdefghijklmnopqrstuvwxyz","qwertyuiop","asdfghjkl","zxcvbnm","!@#$%^&*()_+"],r.wordNotEmail=function(r,e,o){return e.match(/^([\w\!\#$\%\&\'\*\+\-\/\=\?\^\`{\|\}\~]+\.)*[\w\!\#$\%\&\'\*\+\-\/\=\?\^\`{\|\}\~]+@((((([a-z0-9]{1}[a-z0-9\-]{0,62}[a-z0-9]{1})|[a-z])\.)+[a-z]{2,6})|(\d{1,3}\.){3}\d{1,3}(\:\d{1,5})?)$/i)?o:0},r.wordMinLength=function(r,e,o){var s=e.length,t=Math.pow(s,r.rules.raisePower);return sr.common.maxChar?o:t},r.wordInvalidChar=function(r,e,o){return r.common.invalidCharsRegExp.test(e)?o:0},r.wordMinLengthStaticScore=function(r,e,o){return e.lengthr.common.maxChar?0:o},r.wordSimilarToUsername=function(r,e,o){var s=u(r.common.usernameField).val();return s&&e.toLowerCase().match(s.replace(/[\-\[\]\/\{\}\(\)\*\+\=\?\:\.\\\^\$\|\!\,]/g,"\\$&").toLowerCase())?o:0},r.wordTwoCharacterClasses=function(r,e,o){return e.match(/([a-z].*[A-Z])|([A-Z].*[a-z])/)||e.match(/([a-zA-Z])/)&&e.match(/([0-9])/)||e.match(/(.[!,@,#,$,%,\^,&,*,?,_,~])/)&&e.match(/[a-zA-Z0-9_]/)?o:0},r.wordRepetitions=function(r,e,o){return e.match(/(.)\1\1/)?o:0},r.wordSequences=function(r,s,e){var t,n=!1;return 2'+o+"":""},d.ui.popoverError=function(r){"use strict";var e=r.instances.errors,o="
"+r.i18n.t("errorList")+"
    ";return s.each(e,function(r,e){o+="
  • "+e+"
  • "}),o+="
"},d.ui.showVerdicts=!0,d.ui.showVerdictsInsideProgressBar=!1,d.ui.useVerdictCssClass=!1,d.ui.showErrors=!1,d.ui.showScore=!1,d.ui.container=void 0,d.ui.viewports={progress:void 0,verdict:void 0,errors:void 0,score:void 0},d.ui.scores=[0,14,26,38,50],d.i18n={},d.i18n.t=r.t;var p={};!function(i,c){"use strict";var n=["error","warning","success"],t=["veryWeak","weak","normal","medium","strong","veryStrong"];c.getContainer=function(r,e){var o;return(o=i(r.ui.container))&&1===o.length||(o=e.parent()),o},c.findElement=function(r,e,o){return e?r.find(e).find(o):r.find(o)},c.getUIElements=function(r,e){var o,s;return r.instances.viewports?r.instances.viewports:(o=c.getContainer(r,e),(s={}).$progressbar=c.findElement(o,r.ui.viewports.progress,"div.progress"),r.ui.showVerdictsInsideProgressBar&&(s.$verdict=s.$progressbar.find("span.password-verdict")),r.ui.showPopover||(r.ui.showVerdictsInsideProgressBar||(s.$verdict=c.findElement(o,r.ui.viewports.verdict,"span.password-verdict")),s.$errors=c.findElement(o,r.ui.viewports.errors,"ul.error-list")),s.$score=c.findElement(o,r.ui.viewports.score,"span.password-score"),r.instances.viewports=s)},c.initProgressBar=function(r,e){var o=c.getContainer(r,e),s="
",r.ui.showVerdictsInsideProgressBar&&(s+=""),s+="
",r.ui.viewports.progress?o.find(r.ui.viewports.progress).append(s):i(s).insertAfter(e)},c.initHelper=function(r,e,o,s){var t=c.getContainer(r,e);s?t.find(s).append(o):i(o).insertAfter(e)},c.initVerdict=function(r,e){c.initHelper(r,e,"",r.ui.viewports.verdict)},c.initErrorList=function(r,e){c.initHelper(r,e,"
    ",r.ui.viewports.errors)},c.initScore=function(r,e){c.initHelper(r,e,"",r.ui.viewports.score)},c.initPopover=function(r,e){e.popover("destroy"),e.popover({html:!0,placement:r.ui.popoverPlacement,trigger:"manual",content:" "})},c.initUI=function(r,e){r.ui.showPopover?c.initPopover(r,e):(r.ui.showErrors&&c.initErrorList(r,e),r.ui.showVerdicts&&!r.ui.showVerdictsInsideProgressBar&&c.initVerdict(r,e)),r.ui.showProgressBar&&c.initProgressBar(r,e),r.ui.showScore&&c.initScore(r,e)},c.updateProgressBar=function(o,r,e,s){var t=c.getUIElements(o,r).$progressbar,n=t.find(".progress-bar"),a="progress-";o.ui.bootstrap2&&(n=t.find(".bar"),a=""),i.each(o.ui.colorClasses,function(r,e){o.ui.bootstrap2||o.ui.bootstrap3?n.removeClass(a+"bar-"+e):n.removeClass("bg-"+e)}),o.ui.bootstrap2||o.ui.bootstrap3?n.addClass(a+"bar-"+o.ui.colorClasses[e]):n.addClass("bg-"+o.ui.colorClasses[e]),n.css("width",s+"%")},c.updateVerdict=function(r,e,o,s){var t=c.getUIElements(r,e).$verdict;t.removeClass(r.ui.colorClasses.join(" ")),-1"+e+""}),s.html(t)},c.updateScore=function(r,e,o,s){var t=c.getUIElements(r,e).$score,n="";s||(n=o.toFixed(2)),t.html(n)},c.updatePopover=function(r,e,o,s){var t=e.data("bs.popover"),n="",a=!0;r.ui.showVerdicts&&!r.ui.showVerdictsInsideProgressBar&&0"+o+"",a=!1),r.ui.showErrors&&(0