!function(){"use strict";function e(e,t,n){e.setCustomValidity(e.value!==t.value?n:"")}for(var t,n=document.querySelectorAll("input[compareTo], input[data-compareTo]"),o=0;t=n[o];o++){var r=t.form,a=t.getAttribute("compareTo")||t.getAttribute("data-compareTo")||t.getAttribute("compare-to")||t.getAttribute("data-compare-to"),i=r.querySelectorAll('[name="'+a+'"]');if(0!==i.length)if(i.length>1)console.error("CompareTo found more than one ("+i.length+') elements with the name "'+a+'". Please ensure that only one element with that name exists.');else{var l=i[0],s=t.getAttribute("compareToError")||t.getAttribute("data-compareToError")||t.getAttribute("compare-to-error")||t.getAttribute("data-compare-to-error")||"These passwords don't match.",m=function(t,n,o){return function(){e(t,n,o)}}(t,l,s);t.addEventListener("change",m),l.addEventListener("change",m)}else console.error('CompareTo could not find an element with the name "'+a+'". Please ensure that one element with that name exists.')}}();