//>>built
define("dojox/validate/_base",["dojo/_base/lang","dojo/regexp","dojo/number","./regexp"],function(h,m,k,l){var d=h.getObject("dojox.validate",!0);d.isText=function(b,a){a="object"==typeof a?a:{};return/^\s*$/.test(b)||"number"==typeof a.length&&a.length!=b.length||"number"==typeof a.minlength&&a.minlength>b.length||"number"==typeof a.maxlength&&a.maxlength<b.length?!1:!0};d._isInRangeCache={};d.isInRange=function(b,a){b=k.parse(b,a);if(isNaN(b))return!1;a="object"==typeof a?a:{};var f="number"==typeof a.max?
a.max:Infinity,e="number"==typeof a.min?a.min:-Infinity,c=d._isInRangeCache,g=b+"max"+f+"min"+e+"dec"+("string"==typeof a.decimal?a.decimal:".");if("undefined"!=typeof c[g])return c[g];c[g]=!(b<e||b>f);return c[g]};d.isNumberFormat=function(b,a){return(new RegExp("^"+l.numberFormat(a)+"$","i")).test(b)};d.isValidLuhn=function(b){var a=0;h.isString(b)||(b=String(b));b=b.replace(/[- ]/g,"");var f=b.length%2;for(var e=0;e<b.length;e++){var c=parseInt(b.charAt(e));e%2==f&&(c*=2);9<c&&(c-=9);a+=c}return!(a%
10)};return d});