/* pwstrength-bootstrap 2018-02-25 - GPLv3 & MIT License */ !function(r){var e={};!function(r,e){"use strict";r.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"},r.t=function(o){var s="";return(s=e?e.t(o):r.fallback[o])===o?"":s}}(e,window.i18next);var o={};try{if(!r&&module&&module.exports){var r=require("jquery"),s=require("jsdom").jsdom;r=r(s().defaultView)}}catch(r){}!function(r,e){"use strict";var o={};e.forbiddenSequences=["0123456789","abcdefghijklmnopqrstuvwxyz","qwertyuiop","asdfghjkl","zxcvbnm","!@#$%^&*()_+"],o.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},o.wordMinLength=function(r,e,o){var s=e.length,t=Math.pow(s,r.rules.raisePower);return sr.common.maxChar?o:t},o.wordInvalidChar=function(r,e,o){return r.common.invalidCharsRegExp.test(e)?o:0},o.wordMinLengthStaticScore=function(r,e,o){return e.lengthr.common.maxChar?0:o},o.wordSimilarToUsername=function(e,o,s){var t=r(e.common.usernameField).val();return t&&o.toLowerCase().match(t.replace(/[\-\[\]\/\{\}\(\)\*\+\=\?\:\.\\\^\$\|\!\,]/g,"\\$&").toLowerCase())?s:0},o.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},o.wordRepetitions=function(r,e,o){return e.match(/(.)\1\1/)?o:0},o.wordSequences=function(o,s,t){var n,a=!1;return s.length>2&&(r.each(e.forbiddenSequences,function(e,o){if(!a){var t=[o,o.split("").reverse().join("")];r.each(t,function(r,e){for(n=0;n-1&&(a=!0)})}}),a)?t:0},o.wordLowercase=function(r,e,o){return e.match(/[a-z]/)&&o},o.wordUppercase=function(r,e,o){return e.match(/[A-Z]/)&&o},o.wordOneNumber=function(r,e,o){return e.match(/\d+/)&&o},o.wordThreeNumbers=function(r,e,o){return e.match(/(.*[0-9].*[0-9].*[0-9])/)&&o},o.wordOneSpecialChar=function(r,e,o){return e.match(/[!,@,#,$,%,\^,&,*,?,_,~]/)&&o},o.wordTwoSpecialChar=function(r,e,o){return e.match(/(.*[!,@,#,$,%,\^,&,*,?,_,~].*[!,@,#,$,%,\^,&,*,?,_,~])/)&&o},o.wordUpperLowerCombo=function(r,e,o){return e.match(/([a-z].*[A-Z])|([A-Z].*[a-z])/)&&o},o.wordLetterNumberCombo=function(r,e,o){return e.match(/([a-zA-Z])/)&&e.match(/([0-9])/)&&o},o.wordLetterNumberCharCombo=function(r,e,o){return e.match(/([a-zA-Z0-9].*[!,@,#,$,%,\^,&,*,?,_,~])|([!,@,#,$,%,\^,&,*,?,_,~].*[a-zA-Z0-9])/)&&o},o.wordIsACommonPassword=function(e,o,s){return r.inArray(o,e.rules.commonPasswords)>=0?s:0},e.validation=o,e.executeRules=function(o,s){var t=0;return r.each(o.rules.activated,function(n,a){if(a){var i,c,u=o.rules.scores[n],d=e.validation[n];r.isFunction(d)||(d=o.rules.extra[n]),r.isFunction(d)&&((i=d(o,s,u))&&(t+=i),(i<0||!r.isNumeric(i)&&!i)&&(c=o.ui.spanError(o,n)).length>0&&o.instances.errors.push(c))}}),t}}(r,o);try{module&&module.exports&&(module.exports=o)}catch(r){}var t={};t.common={},t.common.minChar=6,t.common.maxChar=20,t.common.usernameField="#username",t.common.invalidCharsRegExp=new RegExp(/[\s,'"]/),t.common.userInputs=[],t.common.onLoad=void 0,t.common.onKeyUp=void 0,t.common.onScore=void 0,t.common.zxcvbn=!1,t.common.zxcvbnTerms=[],t.common.events=["keyup","change","paste"],t.common.debug=!1,t.rules={},t.rules.extra={},t.rules.scores={wordNotEmail:-100,wordMinLength:-50,wordMaxLength:-50,wordInvalidChar:-100,wordSimilarToUsername:-100,wordSequences:-20,wordTwoCharacterClasses:2,wordRepetitions:-25,wordLowercase:1,wordUppercase:3,wordOneNumber:3,wordThreeNumbers:5,wordOneSpecialChar:3,wordTwoSpecialChar:5,wordUpperLowerCombo:2,wordLetterNumberCombo:2,wordLetterNumberCharCombo:2,wordIsACommonPassword:-100},t.rules.activated={wordNotEmail:!0,wordMinLength:!0,wordMaxLength:!1,wordInvalidChar:!1,wordSimilarToUsername:!0,wordSequences:!0,wordTwoCharacterClasses:!0,wordRepetitions:!0,wordLowercase:!0,wordUppercase:!0,wordOneNumber:!0,wordThreeNumbers:!0,wordOneSpecialChar:!0,wordTwoSpecialChar:!0,wordUpperLowerCombo:!0,wordLetterNumberCombo:!0,wordLetterNumberCharCombo:!0,wordIsACommonPassword:!0},t.rules.raisePower=1.4,t.rules.commonPasswords=["123456","password","12345678","qwerty","123456789","12345","1234","111111","1234567","dragon","123123","baseball","abc123","football","monkey","letmein","696969","shadow","master","666666","qwertyuiop","123321","mustang","1234567890","michael","654321","pussy","superman","1qaz2wsx","7777777","fuckyou","121212","000000","qazwsx","123qwe","killer","trustno1","jordan","jennifer","zxcvbnm","asdfgh","hunter","buster","soccer","harley","batman","andrew","tigger","sunshine","iloveyou","fuckme","2000","charlie","robert","thomas","hockey","ranger","daniel","starwars","klaster","112233","george","asshole","computer","michelle","jessica","pepper","1111","zxcvbn","555555","11111111","131313","freedom","777777","pass","fuck","maggie","159753","aaaaaa","ginger","princess","joshua","cheese","amanda","summer","love","ashley","6969","nicole","chelsea","biteme","matthew","access","yankees","987654321","dallas","austin","thunder","taylor","matrix"],t.ui={},t.ui.bootstrap2=!1,t.ui.bootstrap4=!1,t.ui.colorClasses=["danger","danger","danger","warning","warning","success"],t.ui.showProgressBar=!0,t.ui.progressBarEmptyPercentage=1,t.ui.progressBarMinPercentage=1,t.ui.progressExtraCssClasses="",t.ui.progressBarExtraCssClasses="",t.ui.showPopover=!1,t.ui.popoverPlacement="bottom",t.ui.showStatus=!1,t.ui.spanError=function(r,e){"use strict";var o=r.i18n.t(e);return o?''+o+"":""},t.ui.popoverError=function(e){"use strict";var o=e.instances.errors,s="
"+e.i18n.t("errorList")+"
    ";return r.each(o,function(r,e){s+="
  • "+e+"
  • "}),s+="
"},t.ui.showVerdicts=!0,t.ui.showVerdictsInsideProgressBar=!1,t.ui.useVerdictCssClass=!1,t.ui.showErrors=!1,t.ui.showScore=!1,t.ui.container=void 0,t.ui.viewports={progress:void 0,verdict:void 0,errors:void 0,score:void 0},t.ui.scores=[0,14,26,38,50],t.i18n={},t.i18n.t=e.t;var n={};!function(r,e){"use strict";var o=["error","warning","success"],s=["veryWeak","weak","normal","medium","strong","veryStrong"];e.getContainer=function(e,o){var s;return(s=r(e.ui.container))&&1===s.length||(s=o.parent()),s},e.findElement=function(r,e,o){return e?r.find(e).find(o):r.find(o)},e.getUIElements=function(r,o){var s,t;return r.instances.viewports?r.instances.viewports:(s=e.getContainer(r,o),t={},t.$progressbar=e.findElement(s,r.ui.viewports.progress,"div.progress"),r.ui.showVerdictsInsideProgressBar&&(t.$verdict=t.$progressbar.find("span.password-verdict")),r.ui.showPopover||(r.ui.showVerdictsInsideProgressBar||(t.$verdict=e.findElement(s,r.ui.viewports.verdict,"span.password-verdict")),t.$errors=e.findElement(s,r.ui.viewports.errors,"ul.error-list")),t.$score=e.findElement(s,r.ui.viewports.score,"span.password-score"),r.instances.viewports=t,t)},e.initProgressBar=function(o,s){var t=e.getContainer(o,s),n="
",o.ui.showVerdictsInsideProgressBar&&(n+=""),n+="
",o.ui.viewports.progress?t.find(o.ui.viewports.progress).append(n):r(n).insertAfter(s)},e.initHelper=function(o,s,t,n){var a=e.getContainer(o,s);n?a.find(n).append(t):r(t).insertAfter(s)},e.initVerdict=function(r,o){e.initHelper(r,o,"",r.ui.viewports.verdict)},e.initErrorList=function(r,o){e.initHelper(r,o,"
    ",r.ui.viewports.errors)},e.initScore=function(r,o){e.initHelper(r,o,"",r.ui.viewports.score)},e.initPopover=function(r,e){e.popover("destroy"),e.popover({html:!0,placement:r.ui.popoverPlacement,trigger:"manual",content:" "})},e.initUI=function(r,o){r.ui.showPopover?e.initPopover(r,o):(r.ui.showErrors&&e.initErrorList(r,o),r.ui.showVerdicts&&!r.ui.showVerdictsInsideProgressBar&&e.initVerdict(r,o)),r.ui.showProgressBar&&e.initProgressBar(r,o),r.ui.showScore&&e.initScore(r,o)},e.updateProgressBar=function(o,s,t,n){var a=e.getUIElements(o,s).$progressbar,i=a.find(".progress-bar"),c="progress-";o.ui.bootstrap2&&(i=a.find(".bar"),c=""),r.each(o.ui.colorClasses,function(r,e){o.ui.bootstrap4?i.removeClass("bg-"+e):i.removeClass(c+"bar-"+e)}),o.ui.bootstrap4?i.addClass("bg-"+o.ui.colorClasses[t]):i.addClass(c+"bar-"+o.ui.colorClasses[t]),i.css("width",n+"%")},e.updateVerdict=function(r,o,s,t){var n=e.getUIElements(r,o).$verdict;n.removeClass(r.ui.colorClasses.join(" ")),s>-1&&n.addClass(r.ui.colorClasses[s]),r.ui.showVerdictsInsideProgressBar&&n.css("white-space","nowrap"),n.html(t)},e.updateErrors=function(o,s,t){var n=e.getUIElements(o,s).$errors,a="";t||r.each(o.instances.errors,function(r,e){a+="
  • "+e+"
  • "}),n.html(a)},e.updateScore=function(r,o,s,t){var n=e.getUIElements(r,o).$score,a="";t||(a=s.toFixed(2)),n.html(a)},e.updatePopover=function(r,e,o,s){var t=e.data("bs.popover"),n="",a=!0;r.ui.showVerdicts&&!r.ui.showVerdictsInsideProgressBar&&o.length>0&&(n="
    "+o+"
    ",a=!1),r.ui.showErrors&&(r.instances.errors.length>0&&(a=!1),n+=r.ui.popoverError(r)),a||s?e.popover("hide"):(r.ui.bootstrap2&&(t=e.data("popover")),t.$arrow&&t.$arrow.parents("body").length>0?e.find("+ .popover .popover-content").html(n):(t.options.content=n,e.popover("show")))},e.updateFieldStatus=function(e,s,t,n){var a=e.ui.bootstrap2?".control-group":".form-group",i=s.parents(a).first();r.each(o,function(r,o){e.ui.bootstrap2||(o="has-"+o),i.removeClass(o)}),n||(t=o[Math.floor(t/2)],e.ui.bootstrap2||(t="has-"+t),i.addClass(t))},e.percentage=function(r,e,o){var s=Math.floor(100*e/o),t=r.ui.progressBarMinPercentage;return s=s<=t?t:s,s=s>100?100:s},e.getVerdictAndCssClass=function(r,e){var o,t;return void 0===e?["",0]:(o=e<=r.ui.scores[0]?0:e