+", check the '"+rule.method+"' method",e);throwe;}}if(dependencyMismatch)return;if(this.objectLength(rules))this.successList.push(element);returntrue;},customMetaMessage:function(element,method){if(!$.metadata)return;varmeta=this.settings.meta?$(element).metadata()[this.settings.meta]:$(element).metadata();returnmeta&&meta.messages&&meta.messages[method];},customMessage:function(name,method){varm=this.settings.messages[name];returnm&&(m.constructor==String?m:m[method]);},findDefined:function(){for(vari=0;i<arguments.length;i++){if(arguments[i]!==undefined)returnarguments[i];}returnundefined;},defaultMessage:function(element,method){returnthis.findDefined(this.customMessage(element.name,method),this.customMetaMessage(element,method),!this.settings.ignoreTitle&&element.title||undefined,$.validator.messages[method],"<strong>Warning: No message defined for "+element.name+"</strong>");},formatAndAdd:function(element,rule){varmessage=this.defaultMessage(element,rule.method),theregex=/\$?\{(\d+)\}/g;if(typeofmessage=="function"){message=message.call(this,rule.parameters,element);}elseif(theregex.test(message)){message=jQuery.format(message.replace(theregex,'{$1}'),rule.parameters);}this.errorList.push({message:message,element:element});this.errorMap[element.name]=message;this.submitted[element.name]=message;},addWrapper:function(toToggle){if(this.settings.wrapper)toToggle=toToggle.add(toToggle.parent(this.settings.wrapper));returntoToggle;},defaultShowErrors:function(){for(vari=0;this.errorList[i];i++){varerror=this.errorList[i];this.settings.highlight&&this.settings.highlight.call(this,error.element,this.settings.errorClass,this.settings.validClass);this.showLabel(error.element,error.message);}if(this.errorList.length){this.toShow=this.toShow.add(this.containers);}if(this.settings.success){for(vari=0;this.successList[i];i++){this.showLabel(this.successList[i]);}}if(this.settings.unhighlight){for(vari=0,elements=this.validElements();elements[i];i++){this.settings.unhighlight.call(this,elements[i],this.settings.errorClass,this.settings.validClass);}}this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show();},validElements:function(){returnthis.currentElements.not(this.invalidElements());},invalidElements:function(){return$(this.errorList).map(function(){returnthis.element;});},showLabel:function(element,message){varlabel=this.errorsFor(element);if(label.length){label.removeClass().addClass(this.settings.errorClass);label.attr("generated")&&label.html(message);}else{label=$("<"+this.settings.errorElement+"/>").attr({"for":this.idOrName(element),generated:true}).addClass(this.settings.errorClass).html(message||"");if(this.settings.wrapper){label=label.hide().show().wrap("<"+this.settings.wrapper+"/>").parent();}if(!this.labelContainer.append(label).length)this.settings.errorPlacement?this.settings.errorPlacement(label,$(element)):label.insertAfter(element);}if(!message&&this.settings.success){label.text("");typeofthis.settings.success=="string"?label.addClass(this.settings.success):this.settings.success(label);}this.toShow=this.toShow.add(label);},errorsFor:function(element){varname=this.idOrName(element);returnthis.errors().filter(function(){return$(this).attr('for')==name;});},idOrName:function(element){returnthis.groups[element.name]||(this.checkable(element)?element.name:element.id||element.name);},checkable:function(element){return/radio|checkbox/i.test(element.type);},findByName:function(name){varform=this.currentForm;return$(document.getElementsByName(name)).map(function(index,element){returnelement.form==form&&element.name==name&&element||null;});},getLength:function(value,element){switch(element.nodeName.toLowerCase()){case'select':return$("option:selected",element).length;case'input':if(this.checkable(element))returnthis.findByName(element.name).filter(':checked').length;}returnvalue.length;},depend:function(param,element){returnthis.dependTypes[typeofparam]?this.dependTypes[typeofparam](param,element):true;},dependTypes:{"boolean":function(param,