!function(t){t.extend(t.fn,{validate:function(e){if(!this.length)returnvoid(e&&e.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing."));vari=t.data(this[0],"validator");returni?i:(this.attr("novalidate","novalidate"),i=newt.validator(e,this[0]),t.data(this[0],"validator",i),i.settings.onsubmit&&(this.validateDelegate(":submit","click",function(e){i.settings.submitHandler&&(i.submitButton=e.target),t(e.target).hasClass("cancel")&&(i.cancelSubmit=!0)}),this.submit(function(e){functions(){vars;returni.settings.submitHandler?(i.submitButton&&(s=t("<input type='hidden'/>").attr("name",i.submitButton.name).val(i.submitButton.value).appendTo(i.currentForm)),i.settings.submitHandler.call(i,i.currentForm,e),i.submitButton&&s.remove(),!1):!0}returni.settings.debug&&e.preventDefault(),i.cancelSubmit?(i.cancelSubmit=!1,s()):i.form()?i.pendingRequest?(i.formSubmitted=!0,!1):s():(i.focusInvalid(),!1)})),i)},valid:function(){if(t(this[0]).is("form"))returnthis.validate().form();vare=!0,i=t(this[0].form).validate();returnthis.each(function(){e&=i.element(this)}),e},removeAttrs:function(e){vari={},s=this;returnt.each(e.split(/\s/),function(t,e){i[e]=s.attr(e),s.removeAttr(e)}),i},rules:function(e,i){vars=this[0];if(e){varn=t.data(s.form,"validator").settings,r=n.rules,a=t.validator.staticRules(s);switch(e){case"add":t.extend(a,t.validator.normalizeRule(i)),r[s.name]=a,i.messages&&(n.messages[s.name]=t.extend(n.messages[s.name],i.messages));break;case"remove":if(!i)returndeleter[s.name],a;varu={};returnt.each(i.split(/\s/),function(t,e){u[e]=a[e],deletea[e]}),u}}varo=t.validator.normalizeRules(t.extend({},t.validator.classRules(s),t.validator.attributeRules(s),t.validator.dataRules(s),t.validator.staticRules(s)),s);if(o.required){varh=o.required;deleteo.required,o=t.extend({required:h},o)}returno}}),t.extend(t.expr[":"],{blank:function(e){return!t.trim(""+e.value)},filled:function(e){return!!t.trim(""+e.value)},unchecked:function(t){return!t.checked}}),t.validator=function(e,i){this.settings=t.extend(!0,{},t.validator.defaults,e),this.currentForm=i,this.init()},t.validator.format=function(e,i){return1===arguments.length?function(){vari=t.makeArray(arguments);returni.unshift(e),t.validator.format.apply(this,i)}:(arguments.length>2&&i.constructor!==Array&&(i=t.makeArray(arguments).slice(1)),i.constructor!==Array&&(i=[i]),t.each(i,function(t,i){e=e.replace(newRegExp("\\{"+t+"\\}","g"),function(){returni})}),e)},t.extend(t.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"ui-pakgon-text-error",validClass:"valid",errorElement:"ui-pakgon-input-error",focusInvalid:!0,errorContainer:t([]),errorLabelContainer:t([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(t,e){this.lastActive=t,this.settings.focusCleanup&&!this.blockFocusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,t,this.settings.errorClass,this.settings.validClass),this.addWrapper(this.errorsFor(t)).hide())},onfocusout:function(t,e){this.checkable(t)||!(t.nameinthis.submitted)&&this.optional(t)||this.element(t)},onkeyup:function(t,e){(9!==e.which||""!==this.elementValue(t))&&(t.nameinthis.submitted||t===this.lastElement)&&this.element(t)},onclick:function(t,e){t.nameinthis.submitted?this.element(t):t.parentNode.nameinthis.submitted&&this.element(t.parentNode)},highlight:function(e,i,s){"radio"===e.type?this.findByName(e.name).addClass(i).removeClass(s):t(e).addClass(i).removeClass(s)},unhighlight:function(e,i,s){"radio"===e.type?this.findByName(e.name).removeClass(i).addClass(s):t(e).removeClass(i).addClass(s)}},setDefaults:function(e){t.extend(t.validator.defaults,e)},messages:{required:"โปรดระบุ",remote:"โปรดแก้ไขให้ถูกต้อง",email:"โปรดระบุที่อยู่อีเมล์ที่ถูกต้อง",url:"โปรดระบุ URL ที่ถูกต้อง",date:"โปรดระบุวันที่ ที่ถูกต้อง",dateISO:"โปรดระบุวันที่ ที่ถูกต้อง (ระบบ ISO).",number:"โปรดระบุทศนิยมที่ถูกต้อง",digits:"โปรดระบุจำนวนเต็มที่ถูกต้อง",creditcard:"โปรดระบุรหัสบัตรเครดิตที่ถูกต้อง",equalTo:"โปรดระบุค่าเดิมอีกครั้ง",accept:"โปรดระบุค่าที่มีส่วนขยายที่ถูกต้อง",maxlength:t.validator.format("โปรดอย่าระบุค่าที่ยาวกว่า {0} อักขระ"),minlength:t.validator.format("โปรดอย่าระบุค่าที่สั้นกว่า {0} อักขระ"),rangelength:t.validator.format("โปรดระบุค่าความยาวระหว่าง {0} ถึง {1} อักขระ"),range:t.validator.format("โปรดระบุค่าระหว่าง {0} และ {1}"),max:t.validator.format("โปรดระบุค่าน้อยกว่าหรือเท่ากับ {0}"),min:t.validator.format("โปรดระบุค่ามากกว่าหรือเท่ากับ {0}")},autoCreateRanges:!1,prototype:{init:function(){functione(e){vari=t.data(this[0].form,"validator"),s="on"+e.type.replace(/^validate/,"");i.settings[s]&&i.settings[s].call(i,this[0],e)}this.labelContainer=t(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||t(this.currentForm),this.containers=t(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();vari=this.groups={};t.each(this.settings.groups,function(e,s){"string"==typeofs&&(s=s.split(/\s/)),t.each(s,function(t,s){i[s]=e})});vars=this.settings.rules;t.each(s,function(e,i){s[e]=t.validator.normalizeRule(i)}),t(this.currentForm).validateDelegate(":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'] ,[type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'] ","focusin focusout keyup",e).validateDelegate("[type='radio'], [type='checkbox'], select, option","click",e),this.settings.invalidHandler&&t(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler)},form:function(){returnthis.checkForm(),t.extend(this.submitted,this.errorMap),this.invalid=t.extend({},this.errorMap),this.valid()||t(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(vart=0,e=this.currentElements=this.elements();e[t];t++)this.check(e[t]);returnthis.valid()},element:function(e){e=this.validationTargetFor(this.clean(e)),this.lastElement=e,this.prepareElement(e),this.currentElements=t(e);vari=this.check(e)!==!1;returni?deletethis.invalid[e.name]:this.invalid[e.name]=!0,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),i},showErrors:function(e){if(e){t.extend(this.errorMap,e),this.errorList=[];for(variine)this.errorList.push({message:e[i],element:this.findByName(i)[0]});this.successList=t.grep(this.successList,function(t){return!(t.nameine)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){t.fn.resetForm&&t(this.currentForm).resetForm(),this.submitted={},this.lastElement=null,this.prepareForm(),this.hideErrors(),this.elements().removeClass(this.settings.errorClass).removeData("previousValue")},numberOfInvalids:function(){returnthis.objectLength(this.invalid)},objectLength:function(t){vare=0;for(variint)e++;returne},hideErrors:function(){this.addWrapper(this.toHide).hide()},valid:function(){return0===this.size()},size:function(){returnthis.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{t(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(e){}},findLastActive:function(){vare=this.lastActive;returne&&1===t.grep(this.errorList,function(t){returnt.element.name===e.name}).length&&e},elements:function(){vare=this,i={};returnt(this.currentForm).find("input, select, textarea").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){if(!this.name)throwwindow.console&&console.error("%o has no name assigned",this),newError("Failed to validate, found an element with no name assigned. See console for element reference.");returnthis.nameini||!e.objectLength(t(this).rules())?!1:(i[this.name]=!0,!0)})},clean:function(e){returnt(e)[0]},errors:function(){vare=this.settings.errorClass.replace(" ",".");returnt(this.settings.errorElement+"."+e,this.errorContext)},reset:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=t([]),this.toHide=t([]),this.currentElements=t([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(t){this.reset(),this.toHide=this.errorsFor(t)},elementValue:function(e){vari=t(e).attr("type"),s=t(e).val();return"radio"===i||"checkbox"===i?t("input[name='"+t(e).attr("name")+"']:checked").val():"string"==typeofs?s.replace(/\r/g,""):s},check:function(e){e=this.validationTargetFor(this.clean(e));vari,s=t(e).rules(),n=!1,r=this.elementValue(e);for(varains){varu={method:a,parameters:s[a]};try{if(i=t.validator.methods[a].call(this,r,e,u.parameters),"dependency-mismatch"===i){n=!0;continue}if(n=!1,"pending"===i)returnvoid(this.toHide=this.toHide.not(this.errorsFor(e)));if(!i)returnthis.formatAndAdd(e,u),!1}catch(o){throwthis.settings.debug&&window.console&&console.log("Exception occured when checking element "+e.id+", check the '"+u.method+"' method.",o),o}}returnn?void0:(this.objectLength(s)&&this.successList.push(e),!0)},customDataMessage:function(e,i){returnt(e).data("msg-"+i.toLowerCase())||e.attributes&&t(e).attr("data-msg-"+i.toLowerCase())},customMessage:function(t,e){vari=this.settings.messages[t];returni&&(i.constructor===String?i:i[e])},findDefined:function(){for(vart=0;t<arguments.length;t++)if(void0!==arguments[t])returnarguments[t]},defaultMessage:function(e,i){returnthis.findDefined(this.customMessage(e.name,i),this.customDataMessage(e,i),!this.settings.ignoreTitle&&e.title||void0,t.validator.messages[i],"<strong>Warning: No message defined for "+e.name+"</strong>")},formatAndAdd:function(e,i){vars=this.defaultMessage(e,i.method),n=/\$?\{(\d+)\}/g;"function"==typeofs?s=s.call(this,i.parameters,e):n.test(s)&&(s=t.validator.format(s.replace(n,"{$1}"),i.parameters)),this.errorList.push({message:s,element:e}),this.errorMap[e.name]=s,this.submitted[e.name]=s},addWrapper:function(t){returnthis.settings.wrapper&&(t=t.add(t.parent(this.settings.wrapper))),t},defaultShowErrors:function(){vart,e;for(t=0;this.errorList[t];t++){vari=this.errorList[t];this.settings.highlight&&this.settings.highlight.call(this,i.element,this.settings.errorClass,this.settings.validClass),this.showLabel(i.element,i.message)}if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(t=0;this.successList[t];t++)this.showLabel(this.successList[t]);if(this.settings.unhighlight)for(t=0,e=this.validElements();e[t];t++)this.settings.unhighlight.call(this,e[t],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(){returnt(this.errorList).map(function(){returnthis.element})},showLabel:function(e,i){vars=this.errorsFor(e);s.length?(s.removeClass(this.settings.validClass).addClass(this.settings.errorClass),s.attr("generated")&&s.html(i)):(s=t("<"+this.settings.errorElement+"/>").attr({"for":this.idOrName(e),generated:!0}).addClass(this.settings.errorClass).html(i||""),this.settings.wrapper&&(s=s.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.append(s).length||(this.settings.errorPlacement?this.settings.errorPlacement(s,t(e)):s.insertAfter(e))),!i&&this.settings.success&&(s.text(""),"string"==typeofthis.settings.success?s.addClass(this.settings.success):this.settings.success(s,e)),this.toShow=this.toShow.add(s)},errorsFor:function(e){vari=this.idOrName(e);returnthis.errors().filter(function(){returnt(this).attr("for")===i})},idOrName:function(t){returnthis.groups[t.name]||(this.checkable(t)?t.name:t.id||t.name)},validationTargetFor:function(t){returnthis.checkable(t)&&(t=this.findByName(t.name).not(this.settings.ignore)[0]),t},checkable:function(t){return/radio|checkbox/i.test(t.type)},findByName:function(e){returnt(this.currentForm).find("[name='"+e+"']")},getLength:function(e,i){switch(i.nodeName.toLowerCase()){case"select":returnt("option:selected",i).length;case"input":if(this.checkable(i))returnthis.findByName(i.name).filter(":checked").length}returne.length},depend:function(t,e){returnthis.dependTypes[typeoft]?this.dependTypes[typeoft](t,e):!0},dependTypes:{"boolean":function(t,e){returnt},string:function(e,i){return!!t(e,i.form).length},"function":function(t,e){returnt(e)}},optional:function(e){vari=this.elementValue(e);return!t.validator.methods.required.call(this,i,e)&&"dependency-mismatch"},startRequest:function(t){this.pending[t.name]||(this.pendingRequest++,this.pending[t.name]=!0)},stopRequest:function(e,i){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),deletethis.pending[e.name],i&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(t(this.currentForm).submit(),this.formSubmitted=!1):!i&&0===this.pendingRequest&&this.formSubmitted&&(t(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(e){returnt.data(e,"previousValue")||t.data(e,"previousValue",{old:null,valid:!0,message:this.defaultMessage(e,"remote")})}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(e,i){e.constructor===String?this.classRuleSettings[e]=i:t.extend(this.classRuleSettings,e)},classRules:function(e){vari={},s=t(e).attr("class");returns&&t.each(s.split(" "),function(){thisint.validator.classRuleSettings&&t.extend(i,t.validator.classRuleSettings[this])}),i},attributeRules:function(e){vari={},s=t(e);for(varnint.validator.methods){varr;"required"===n?(r=s.get(0).getAttribute(n),""===r&&(r=!0),r=!!r):r=s.attr(n),r?i[n]=r:s[0].getAttribute("type")===n&&(i[n]=!0)}returni.maxlength&&/-1|2147483647|524288/.test(i.maxlength)&&deletei.maxlength,i},dataRules:function(e){vari,s,n={},r=t(e);for(iint.validator.methods)s=r.data("rule-"+i.toLowerCase()),void0!==s&&(n[i]=s);returnn},staticRules:function(e){vari={},s=t.data(e.form,"validator");returns.settings.rules&&(i=t.validator.normalizeRule(s.settings.rules[e.name])||{}),i},normalizeRules:function(e,i){returnt.each(e,function(s,n){if(n===!1)returnvoiddeletee[s];if(n.param||n.depends){varr=!0;switch(typeofn.depends){case"string":r=!!t(n.depends,i.form).length;break;case"function":r=n.depends.call(i,i)}r?e[s]=void0!==n.param?n.param:!0:deletee[s]}}),t.each(e,function(s,n){e[s]=t.isFunction(n)?n(i):n}),t.each(["minlength","maxlength","min","max"],function(){e[this]&&(e[this]=Number(e[this]))}),t.each(["rangelength","range"],function(){vari;e[this]&&(t.isArray(e[this])?e[this]=[Number(e[this][0]),Number(e[this][1])]:"string"==typeofe[this]&&(i=e[this].split(/[\s,]+/),e[this]=[Number(i[0]),Number(i[1])]))}),t.validator.autoCreateRanges&&(e.min&&e.max&&(e.range=[e.min,e.max],deletee.min,deletee.max),e.minlength&&e.maxlength&&(e.rangelength=[e.minlength,e.maxlength],deletee.minlength,deletee.maxlength)),e},normalizeRule:function(e){if("string"==typeofe){vari={};t.each(e.split(/\s/),function(){i[this]=!0}),e=i}returne},addMethod:function(e,i,s){t.validator.methods[e]=i,t.validator.messages[e]=void0!==s?s:t.validator.messages[e],i.length<3&&t.validator.addClassRules(e,t.validator.normalizeRule(e))},methods:{required:function(e,i,s){if(!this.depend(s,i))return"dependency-mismatch";if("select"===i.nodeName.toLowerCase()){varn=t(i).val();returnn&&n.length>0}returnthis.checkable(i)?this.getLength(e,i)>0:t.trim(e).length>0},remote:function(e,i,s){if(this.optional(i))return"dependency-mismatch";varn=this.previousValue(i);if(this.settings.messages[i.name]||(this.settings.messages[i.name]={}),n.originalMessage=this.settings.messages[i.name].remote,this.settings.messages[i.name].remote=n.message,s="string"==typeofs&&{url:s}||s,n.old===e)returnn.valid;n.old=e;varr=this;this.startRequest(i);vara={};returna[i.name]=e,t.ajax(t.extend(!0,{url:s,mode:"abort",port:"validate"+i.name,dataType:"json",data:a,success:function(s){r.settings.messages[i.name].remote=n.originalMessage;vara=s===!0||"true"===s;if(a){varu=r.formSubmitted;r.prepareElement(i),r.formSubmitted=u,r.successList.push(i),deleter.invalid[i.name],r.showErrors()}else{varo={},h=s||r.defaultMessage(i,"remote");o[i.name]=n.message=t.isFunction(h)?h(e):h,r.invalid[i.name]=!0,r.showErrors(o)}n.valid=a,r.stopRequest(i,a)}},s)),"pending"},minlength:function(e,i,s){varn=t.isArray(e)?e.length:this.getLength(t.trim(e),i);returnthis.optional(i)||n>=s},maxlength:function(e,i,s){varn=t.isArray(e)?e.length:this.getLength(t.trim(e),i);returnthis.optional(i)||s>=n},rangelength:function(e,i,s){varn=t.isArray(e)?e.length:this.getLength(t.trim(e),i);returnthis.optional(i)||n>=s[0]&&n<=s[1]},min:function(t,e,i){returnthis.optional(e)||t>=i},max:function(t,e,i){returnthis.optional(e)||i>=t},range:function(t,e,i){returnthis.optional(e)||t>=i[0]&&t<=i[1]},email:function(t,e){returnthis.optional(e)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i.test(t)},url:function(t,e){returnthis.optional(e)||/^(https?|s?ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(t)},date:function(t,e){returnthis.optional(e)||!/Invalid|NaN/.test(newDate(t).toString())},dateISO:function(t,e){returnthis.optional(e)||/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}$/.test(t)},number:function(t,e){returnthis.optional(e)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(t)},digits:function(t,e){returnthis.optional(e)||/^\d+$/.test(t)},creditcard:function(t,e){if(this.optional(e))return"dependency-mismatch";if(/[^0-9 \-]+/.test(t))return!1;vari=0,s=0,n=!1;t=t.replace(/\D/g,"");for(varr=t.length-1;r>=0;r--){vara=t.charAt(r);s=parseInt(a,10),n&&(s*=2)>9&&(s-=9),i+=s,n=!n}returni%10===0},equalTo:function(e,i,s){varn=t(s);returnthis.settings.onfocusout&&n.unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){t(i).valid()}),e===n.val()}}}),t.format=t.validator.format}(jQuery),function(t){vare={};if(t.ajaxPrefilter)t.ajaxPrefilter(function(t,i,s){varn=t.port;"abort"===t.mode&&(e[n]&&e[n].abort(),e[n]=s)});else{vari=t.ajax;t.ajax=function(s){varn=("mode"ins?s:t.ajaxSettings).mode,r=("port"ins?s:t.ajaxSettings).port;return"abort"===n?(e[r]&&e[r].abort(),e[r]=i.apply(this,arguments)):i.apply(this,arguments)}}}(jQuery),function(t){t.extend(t.fn,{validateDelegate:function(e,i,s){returnthis.bind(i,function(i){varn=t(i.target);returnn.is(e)?s.apply(n,arguments):void0})}})}(jQuery);