function pwc(){var n=document.getElementById("password"),t=document.getElementById("ConfirmPassword"),i=document.getElementById("OldPassword"),r=document.getElementById("width");if(n.value==null||n.value=="",t.value==null||t.value=="",i.value==null||i.value=="")return alert("Please Fill All Fields."),!1;if(n.value!==t.value)return alert("The new password and confirmation password do not match."),!1;call("/Account/Password","POST","OldPassword="+i.value+"&Password="+n.value+"&ConfirmPassword="+t.value+"&Width="+r.value)}function call(n,t,i){$("#frm").html("");$.ajax({url:n,type:t,data:i,dataType:"text",success:function(n){$("#frm").html(n);modal.style.display="block"},error:function(n,t){alert(t);$("#modal").removeAttr("style").hide()}})}jQuery(document).ready(function(){"use strict";var n={};n.ui={container:"#pwd-container",showVerdictsInsideProgressBar:!0,viewports:{progress:".pwstrength_viewport_progress"}};n.common={debug:!0,onLoad:function(){$("#messages").text("Start typing password")}};$("#password").pwstrength(n);$("#width").val($(window).width())}),function(n){var r={},n,u,t,i,f;try{!n&&module&&module.exports&&(n=require("jquery"),u=require("jsdom").jsdom,n=n(u().parentWindow))}catch(e){}(function(n,t){"use strict";var i={};t.forbiddenSequences=["0123456789","abcdefghijklmnopqrstuvwxyz","qwertyuiop","asdfghjkl","zxcvbnm","!@#$%^&*()_+"];i.wordNotEmail=function(n,t,i){return t.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)?i:0};i.wordLength=function(n,t,i){var u=t.length,r=Math.pow(u,n.rules.raisePower);return u<n.common.minChar&&(r=r+i),r};i.wordSimilarToUsername=function(t,i,r){var u=n(t.common.usernameField).val();return u&&i.toLowerCase().match(u.toLowerCase())?r:0};i.wordTwoCharacterClasses=function(n,t,i){return t.match(/([a-z].*[A-Z])|([A-Z].*[a-z])/)||t.match(/([a-zA-Z])/)&&t.match(/([0-9])/)||t.match(/(.[!,@,#,$,%,\^,&,*,?,_,~])/)&&t.match(/[a-zA-Z0-9_]/)?i:0};i.wordRepetitions=function(n,t,i){return t.match(/(.)\1\1/)?i:0};i.wordSequences=function(i,r,u){var e=!1,f;return r.length>2&&(n.each(t.forbiddenSequences,function(t,i){var u=[i,i.split("").reverse().join("")];n.each(u,function(n,t){for(f=0;f<r.length-2;f+=1)t.indexOf(r.toLowerCase().substring(f,f+3))>-1&&(e=!0)})}),e)?u:0};i.wordLowercase=function(n,t,i){return t.match(/[a-z]/)&&i};i.wordUppercase=function(n,t,i){return t.match(/[A-Z]/)&&i};i.wordOneNumber=function(n,t,i){return t.match(/\d+/)&&i};i.wordThreeNumbers=function(n,t,i){return t.match(/(.*[0-9].*[0-9].*[0-9])/)&&i};i.wordOneSpecialChar=function(n,t,i){return t.match(/.[!,@,#,$,%,\^,&,*,?,_,~]/)&&i};i.wordTwoSpecialChar=function(n,t,i){return t.match(/(.*[!,@,#,$,%,\^,&,*,?,_,~].*[!,@,#,$,%,\^,&,*,?,_,~])/)&&i};i.wordUpperLowerCombo=function(n,t,i){return t.match(/([a-z].*[A-Z])|([A-Z].*[a-z])/)&&i};i.wordLetterNumberCombo=function(n,t,i){return t.match(/([a-zA-Z])/)&&t.match(/([0-9])/)&&i};i.wordLetterNumberCharCombo=function(n,t,i){return t.match(/([a-zA-Z0-9].*[!,@,#,$,%,\^,&,*,?,_,~])|([!,@,#,$,%,\^,&,*,?,_,~].*[a-zA-Z0-9])/)&&i};t.validation=i;t.executeRules=function(i,r){var u=0;return n.each(i.rules.activated,function(f,e){if(e){var c=i.rules.scores[f],s=t.validation[f],o,h;n.isFunction(s)||(s=i.rules.extra[f]);n.isFunction(s)&&(o=s(i,r,c),o&&(u+=o),(o<0||!n.isNumeric(o)&&!o)&&(h=i.ui.spanError(i,f),h.length>0&&i.instances.errors.push(h)))}}),u}})(n,r);try{module&&module.exports&&(module.exports=r)}catch(e){}t={};t.common={};t.common.minChar=6;t.common.usernameField="#username";t.common.userInputs=[];t.common.onLoad=undefined;t.common.onKeyUp=undefined;t.common.zxcvbn=!1;t.common.debug=!1;t.rules={};t.rules.extra={};t.rules.scores={wordNotEmail:-100,wordLength:-50,wordSimilarToUsername:-100,wordSequences:-50,wordTwoCharacterClasses:2,wordRepetitions:-25,wordLowercase:1,wordUppercase:3,wordOneNumber:3,wordThreeNumbers:5,wordOneSpecialChar:3,wordTwoSpecialChar:5,wordUpperLowerCombo:2,wordLetterNumberCombo:2,wordLetterNumberCharCombo:2};t.rules.activated={wordNotEmail:!0,wordLength:!0,wordSimilarToUsername:!0,wordSequences:!0,wordTwoCharacterClasses:!1,wordRepetitions:!1,wordLowercase:!0,wordUppercase:!0,wordOneNumber:!0,wordThreeNumbers:!0,wordOneSpecialChar:!0,wordTwoSpecialChar:!0,wordUpperLowerCombo:!0,wordLetterNumberCombo:!0,wordLetterNumberCharCombo:!0};t.rules.raisePower=1.4;t.ui={};t.ui.bootstrap2=!1;t.ui.showProgressBar=!0;t.ui.showPopover=!1;t.ui.showStatus=!1;t.ui.spanError=function(n,t){"use strict";var i=n.ui.errorMessages[t];return i?'<span style="color: #d52929">'+i+"<\/span>":""};t.ui.popoverError=function(t){"use strict";var i="<div>Errors:<ul class='error-list' style='margin-bottom: 0;'>";return n.each(t,function(n,t){i+="<li>"+t+"<\/li>"}),i+="<\/ul><\/div>"};t.ui.errorMessages={wordLength:"Your password is too short",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"};t.ui.verdicts=["Weak","Normal","Medium","Strong","Very Strong"];t.ui.showVerdicts=!0;t.ui.showVerdictsInsideProgressBar=!1;t.ui.showErrors=!0;t.ui.container=undefined;t.ui.viewports={progress:undefined,verdict:undefined,errors:undefined};t.ui.scores=[14,26,38,50];i={},function(n,t){"use strict";var r=["danger","warning","success"],i=["error","warning","success"];t.getContainer=function(t,i){var r;return r=n(t.ui.container),r&&r.length===1||(r=i.parent()),r};t.findElement=function(n,t,i){return t?n.find(t).find(i):n.find(i)};t.getUIElements=function(n,i){var u,r;return n.instances.viewports?n.instances.viewports:(u=t.getContainer(n,i),r={},r.$progressbar=t.findElement(u,n.ui.viewports.progress,"div.progress"),n.ui.showVerdictsInsideProgressBar&&(r.$verdict=r.$progressbar.find("span.password-verdict")),n.ui.showPopover||(n.ui.showVerdictsInsideProgressBar||(r.$verdict=t.findElement(u,n.ui.viewports.verdict,"span.password-verdict")),r.$errors=t.findElement(u,n.ui.viewports.errors,"ul.error-list")),n.instances.viewports=r,r)};t.initProgressBar=function(i,r){var f=t.getContainer(i,r),u="<div class='progress'><div class='";i.ui.bootstrap2||(u+="progress-");u+="bar'>";i.ui.showVerdictsInsideProgressBar&&(u+="<span class='password-verdict'><\/span>");u+="<\/div><\/div>";i.ui.viewports.progress?f.find(i.ui.viewports.progress).append(u):n(u).insertAfter(r)};t.initHelper=function(i,r,u,f){var e=t.getContainer(i,r);f?e.find(f).append(u):n(u).insertAfter(r)};t.initVerdict=function(n,i){t.initHelper(n,i,"<span class='password-verdict'><\/span>",n.ui.viewports.verdict)};t.initErrorList=function(n,i){t.initHelper(n,i,"<ul class='error-list'><\/ul>",n.ui.viewports.errors)};t.initPopover=function(n,t){t.popover("destroy");t.popover({html:!0,placement:"bottom",trigger:"manual",content:" "})};t.initUI=function(n,i){n.ui.showPopover?t.initPopover(n,i):(n.ui.showErrors&&t.initErrorList(n,i),n.ui.showVerdicts&&!n.ui.showVerdictsInsideProgressBar&&t.initVerdict(n,i));n.ui.showProgressBar&&t.initProgressBar(n,i)};t.possibleProgressBarClasses=["danger","warning","success"];t.updateProgressBar=function(i,u,f,e){var h=t.getUIElements(i,u).$progressbar,o=h.find(".progress-bar"),s="progress-";i.ui.bootstrap2&&(o=h.find(".bar"),s="");n.each(t.possibleProgressBarClasses,function(n,t){o.removeClass(s+"bar-"+t)});o.addClass(s+"bar-"+r[f]);o.css("width",e+"%")};t.updateVerdict=function(n,i,r){var u=t.getUIElements(n,i).$verdict;u.text(r)};t.updateErrors=function(i,r){var f=t.getUIElements(i,r).$errors,u="";n.each(i.instances.errors,function(n,t){u+="<li>"+t+"<\/li>"});f.html(u)};t.updatePopover=function(n,t,i){var r=t.data("bs.popover"),u="",f=!0;if(n.ui.showVerdicts&&!n.ui.showVerdictsInsideProgressBar&&i.length>0&&(u="<h5><span class='password-verdict'>"+i+"<\/span><\/h5>",f=!1),n.ui.showErrors&&(n.instances.errors.length>0&&(f=!1),u+=n.ui.popoverError(n.instances.errors)),f){t.popover("hide");return}n.ui.bootstrap2&&(r=t.data("popover"));r.$arrow&&r.$arrow.parents("body").length>0?t.find("+ .popover .popover-content").html(u):(r.options.content=u,t.popover("show"))};t.updateFieldStatus=function(t,r,u){var e=t.ui.bootstrap2?".control-group":".form-group",f=r.parents(e).first();n.each(i,function(n,i){t.ui.bootstrap2||(i="has-"+i);f.removeClass(i)});u=i[u];t.ui.bootstrap2||(u="has-"+u);f.addClass(u)};t.percentage=function(n,t){var i=Math.floor(100*n/t);return i=i<0?0:i,i>100?100:i};t.getVerdictAndCssClass=function(n,t){var i,r,u;return t<=0?(i=0,u=-1,r=n.ui.verdicts[0]):t<n.ui.scores[0]?(i=0,u=0,r=n.ui.verdicts[0]):t<n.ui.scores[1]?(i=0,u=1,r=n.ui.verdicts[1]):t<n.ui.scores[2]?(i=1,u=2,r=n.ui.verdicts[2]):t<n.ui.scores[3]?(i=1,u=3,r=n.ui.verdicts[3]):(i=2,u=4,r=n.ui.verdicts[4]),[r,i,u]};t.updateUI=function(n,i,r){var u,e,f;u=t.getVerdictAndCssClass(n,r);f=u[0];u=u[1];n.ui.showProgressBar&&(e=t.percentage(r,n.ui.scores[3]),t.updateProgressBar(n,i,u,e),n.ui.showVerdictsInsideProgressBar&&t.updateVerdict(n,i,f));n.ui.showStatus&&t.updateFieldStatus(n,i,u);n.ui.showPopover?t.updatePopover(n,i,f):(n.ui.showVerdicts&&!n.ui.showVerdictsInsideProgressBar&&t.updateVerdict(n,i,f),n.ui.showErrors&&t.updateErrors(n,i))}}(n,i);f={},function(n,u){"use strict";var f,e;f=function(t){var s=n(t.target),u=s.data("pwstrength-bootstrap"),h=s.val(),o,f,c,e;if(u!==undefined&&(u.instances.errors=[],u.common.zxcvbn?(o=[],n.each(u.common.userInputs,function(t,i){o.push(n(i).val())}),o.push(n(u.common.usernameField).val()),e=zxcvbn(h,o).entropy):e=r.executeRules(u,h),i.updateUI(u,s,e),f=i.getVerdictAndCssClass(u,e),c=f[2],f=f[0],u.common.debug&&console.log(e+" - "+f),n.isFunction(u.common.onKeyUp)))u.common.onKeyUp(t,{score:e,verdictText:f,verdictLevel:c})};u.init=function(r){return this.each(function(u,e){var h=n.extend(!0,{},t),s=n.extend(!0,h,r),o=n(e);s.instances={};o.data("pwstrength-bootstrap",s);o.on("keyup",f);o.on("change",f);o.on("onpaste",f);i.initUI(s,o);n.trim(o.val())&&o.trigger("keyup");n.isFunction(s.common.onLoad)&&s.common.onLoad()}),this};u.destroy=function(){this.each(function(t,r){var u=n(r),e=u.data("pwstrength-bootstrap"),f=i.getUIElements(e,u);f.$progressbar.remove();f.$verdict.remove();f.$errors.remove();u.removeData("pwstrength-bootstrap")})};u.forceUpdate=function(){this.each(function(n,t){var i={target:t};f(i)})};u.addRule=function(t,i,r,u){this.each(function(f,e){var o=n(e).data("pwstrength-bootstrap");o.rules.activated[t]=u;o.rules.scores[t]=r;o.rules.extra[t]=i})};e=function(t,i,r){this.each(function(u,f){n(f).data("pwstrength-bootstrap").rules[i][t]=r})};u.changeScore=function(n,t){e.call(this,n,"scores",t)};u.ruleActive=function(n,t){e.call(this,n,"activated",t)};n.fn.pwstrength=function(t){var i;return u[t]?i=u[t].apply(this,Array.prototype.slice.call(arguments,1)):typeof t!="object"&&t?n.error("Method "+t+" does not exist on jQuery.pwstrength-bootstrap"):i=u.init.apply(this,arguments),i}}(n,f)}(jQuery);var modal=document.getElementById("modal")