Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch '1.x' into 2.x

  • Loading branch information...
commit 9f13d58b125bd255b472f68f2167004af0a6d15c 2 parents 4931426 + 53fff1c
@RobinHerbots authored
View
BIN  dist/jQuery.InputMask.2.1.8.nupkg
Binary file not shown
View
5 dist/jquery.inputmask.bundle.js
@@ -2003,7 +2003,10 @@ Optional extensions on the jquery.inputmask base
},
'integer': {
regex: {
- number: function (groupSeparator, groupSize) { return new RegExp("^([\+\-]?\\d*)$"); }
+ number: function (groupSeparator, groupSize) {
+ var escapedGroupSeparator = $.inputmask.escapeRegex.call(this, groupSeparator);
+ return new RegExp("^[\+-]?(\\d+|\\d{1," + groupSize + "}((" + escapedGroupSeparator + "\\d{" + groupSize + "})?)+)$");
+ }
},
alias: "decimal"
}
View
90 dist/jquery.inputmask.bundle.min.js
@@ -5,64 +5,64 @@
Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
Version: 2.1.8
*/
-(function(j){void 0==j.fn.inputmask&&(j.inputmask={defaults:{placeholder:"_",optionalmarker:{start:"[",end:"]"},escapeChar:"\\",mask:null,oncomplete:j.noop,onincomplete:j.noop,oncleared:j.noop,repeat:0,greedy:!0,autoUnmask:!1,clearMaskOnLostFocus:!0,insertMode:!0,clearIncomplete:!1,aliases:{},onKeyUp:j.noop,onKeyDown:j.noop,showMaskOnFocus:!0,showMaskOnHover:!0,onKeyValidation:j.noop,skipOptionalPartCharacter:" ",numericInput:!1,radixPoint:"",definitions:{9:{validator:"[0-9]",cardinality:1},a:{validator:"[A-Za-z\u0410-\u044f\u0401\u0451]",
+(function(k){void 0==k.fn.inputmask&&(k.inputmask={defaults:{placeholder:"_",optionalmarker:{start:"[",end:"]"},escapeChar:"\\",mask:null,oncomplete:k.noop,onincomplete:k.noop,oncleared:k.noop,repeat:0,greedy:!0,autoUnmask:!1,clearMaskOnLostFocus:!0,insertMode:!0,clearIncomplete:!1,aliases:{},onKeyUp:k.noop,onKeyDown:k.noop,showMaskOnFocus:!0,showMaskOnHover:!0,onKeyValidation:k.noop,skipOptionalPartCharacter:" ",numericInput:!1,radixPoint:"",definitions:{9:{validator:"[0-9]",cardinality:1},a:{validator:"[A-Za-z\u0410-\u044f\u0401\u0451]",
cardinality:1},"*":{validator:"[A-Za-z\u0410-\u044f\u0401\u04510-9]",cardinality:1}},keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91},ignorables:[9,13,19,27,33,34,35,36,37,
-38,39,40,45,46,93,112,113,114,115,116,117,118,119,120,121,122,123],getMaskLength:function(a,d,c){var e=a.length;!d&&1<c&&(e+=a.length*(c-1));return e}},val:j.fn.val,escapeRegex:function(a){return a.replace(RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\)","gim"),"\\$1")}},j.fn.inputmask=function(a,d){function c(a,b){var d=k.aliases[a];return d?(d.alias&&c(d.alias),j.extend(!0,k,d),j.extend(!0,k,b),!0):!1}function e(a){var b=!1,c=0,d=k.greedy,e=k.repeat;1==a.length&&!1==d&&(k.placeholder=
-"");for(var a=j.map(a.split(""),function(a){var s=[];if(a==k.escapeChar)b=true;else if(a!=k.optionalmarker.start&&a!=k.optionalmarker.end||b){var d=k.definitions[a];if(d&&!b)for(a=0;a<d.cardinality;a++)s.push(I(c+a));else{s.push(a);b=false}c=c+s.length;return s}}),h=a.slice(),m=1;m<e&&d;m++)h=h.concat(a.slice());return{mask:h,repeat:e,greedy:d}}function b(a){var b=!1,c=!1,d=!1;return j.map(a.split(""),function(a){var s=[];if(a==k.escapeChar)c=!0;else if(a==k.optionalmarker.start&&!c)d=b=!0;else if(a==
-k.optionalmarker.end&&!c)b=!1,d=!0;else{var e=k.definitions[a];if(e&&!c){for(var j=e.prevalidator,h=j?j.length:0,g=1;g<e.cardinality;g++){var f=h>=g?j[g-1]:[],l=f.validator,f=f.cardinality;s.push({fn:l?"string"==typeof l?RegExp(l):new function(){this.test=l}:/./,cardinality:f?f:1,optionality:b,newBlockMarker:!0==b?d:!1,offset:0,casing:e.casing,def:a});!0==b&&(d=!1)}s.push({fn:e.validator?"string"==typeof e.validator?RegExp(e.validator):new function(){this.test=e.validator}:/./,cardinality:e.cardinality,
-optionality:b,newBlockMarker:d,offset:0,casing:e.casing,def:a})}else s.push({fn:null,cardinality:0,optionality:b,newBlockMarker:d,offset:0,casing:null,def:a}),c=!1;d=!1;return s}})}function h(){function a(d,j){var h=j.split(k.optionalmarker.end,2),g,m,l=h[0].split(k.optionalmarker.start);1<l.length?(g=d+l[0]+(k.optionalmarker.start+l[1]+k.optionalmarker.end)+(1<h.length?h[1]:""),m=e(g),c.push({_buffer:m.mask,tests:b(g),lastValidPosition:0,greedy:m.greedy,repeat:m.repeat}),g=d+l[0]+(1<h.length?h[1]:
-""),m=e(g),c.push({_buffer:m.mask,tests:b(g),lastValidPosition:0,greedy:m.greedy,repeat:m.repeat}),1<h.length&&1<h[1].split(k.optionalmarker.start).length&&(a(d+l[0]+(k.optionalmarker.start+l[1]+k.optionalmarker.end),h[1]),a(d+l[0],h[1]))):(g=d+h,m=e(g),c.push({_buffer:m.mask,tests:b(g),lastValidPosition:0,greedy:m.greedy,repeat:m.repeat}))}var c=[];a("",k.mask.toString());return c}function g(){return q[p].tests}function l(){return q[p]._buffer}function y(a,b,c,d,e){function h(a,f){for(var s=G(a),
-e=b?1:0,j="",g=f.tests[s].cardinality;g>e;g--)j+=D(c,s-(g-1));b&&(j+=b);return null!=f.tests[s].fn?f.tests[s].fn.test(j,c,a,d,k):!1}if(d)return h(a,q[p]);var g=[],l=!1,o=p;j.each(q,function(d){p=d;var f=a;if(o!=p&&!B(a)){if(b==this._buffer[f]||b==k.skipOptionalPartCharacter)return g[d]={refresh:!0},this.lastValidPosition=f,!1;f=e?E(c,a):z(c,a)}if((e||k.numericInput?this.lastValidPosition<=k.numericInput?r(c):z(c,f):this.lastValidPosition>=E(c,f))&&0<=f&&f<r(c))g[d]=h(f,this),!1!==g[d]?(!0===g[d]&&
-(g[d]={pos:f}),this.lastValidPosition=g[d].pos||f):this.lastValidPosition=e?z(c,a):E(c,a)});p=o;T(c,a,o,e);l=g[p]||l;setTimeout(function(){k.onKeyValidation.call(this,l,k)},0);return l}function T(a,b,c,d){j.each(q,function(e){if(d||k.numericInput?this.lastValidPosition<=b:this.lastValidPosition>=b){p=e;if(p!=c){var e=r(a),h=l();if(d||k.numericInput)a.reverse(),h.reverse();for(var j=a.length=b;j<e;j++){var g=G(j);J(a,j,D(h,g))}d&&a.reverse()}return!1}})}function B(a){a=G(a);a=g()[a];return void 0!=
-a?a.fn:!1}function G(a){return a%g().length}function I(a){return k.placeholder.charAt(a%k.placeholder.length)}function r(a){return k.getMaskLength(l(),q[p].greedy,q[p].repeat,a,k)}function z(a,b){var c=r(a);if(b>=c)return c;for(var d=b;++d<c&&!B(d););return d}function E(a,b){var c=b;if(0>=c)return 0;for(;0<--c&&!B(c););return c}function J(a,b,c){var d=g()[G(b)],e=c;if(void 0!=e)switch(d.casing){case "upper":e=c.toUpperCase();break;case "lower":e=c.toLowerCase()}a[b]=e}function D(a,b,c){c&&(b=V(a,
-b));return a[b]}function V(a,b,c){if(c)for(;0>b&&a.length<r(a);){c=l().length-1;for(b=l().length;void 0!==l()[c];)a.unshift(l()[c--])}else for(;void 0==a[b]&&a.length<r(a);)for(c=0;void 0!==l()[c];)a.push(l()[c++]);return b}function F(a,b,c){a._valueSet(b.join(""));void 0!=c&&(M?setTimeout(function(){o(a,c)},100):o(a,c))}function W(a,b,c){for(var d=r(a);b<c&&b<d;b++)J(a,b,D(l().slice(),b))}function N(a,b){var c=G(b);J(a,b,D(l(),c))}function C(a,b,c,d){var e=j(a).data("inputmask").isRTL,h=U(a._valueGet(),
+38,39,40,45,46,93,112,113,114,115,116,117,118,119,120,121,122,123],getMaskLength:function(a,d,c){var e=a.length;!d&&1<c&&(e+=a.length*(c-1));return e}},val:k.fn.val,escapeRegex:function(a){return a.replace(RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\)","gim"),"\\$1")}},k.fn.inputmask=function(a,d){function c(a,b){var d=j.aliases[a];return d?(d.alias&&c(d.alias),k.extend(!0,j,d),k.extend(!0,j,b),!0):!1}function e(a){var b=!1,c=0,d=j.greedy,e=j.repeat;1==a.length&&!1==d&&(j.placeholder=
+"");for(var a=k.map(a.split(""),function(a){var s=[];if(a==j.escapeChar)b=true;else if(a!=j.optionalmarker.start&&a!=j.optionalmarker.end||b){var d=j.definitions[a];if(d&&!b)for(a=0;a<d.cardinality;a++)s.push(I(c+a));else{s.push(a);b=false}c=c+s.length;return s}}),h=a.slice(),m=1;m<e&&d;m++)h=h.concat(a.slice());return{mask:h,repeat:e,greedy:d}}function b(a){var b=!1,c=!1,d=!1;return k.map(a.split(""),function(a){var s=[];if(a==j.escapeChar)c=!0;else if(a==j.optionalmarker.start&&!c)d=b=!0;else if(a==
+j.optionalmarker.end&&!c)b=!1,d=!0;else{var e=j.definitions[a];if(e&&!c){for(var k=e.prevalidator,h=k?k.length:0,g=1;g<e.cardinality;g++){var f=h>=g?k[g-1]:[],l=f.validator,f=f.cardinality;s.push({fn:l?"string"==typeof l?RegExp(l):new function(){this.test=l}:/./,cardinality:f?f:1,optionality:b,newBlockMarker:!0==b?d:!1,offset:0,casing:e.casing,def:a});!0==b&&(d=!1)}s.push({fn:e.validator?"string"==typeof e.validator?RegExp(e.validator):new function(){this.test=e.validator}:/./,cardinality:e.cardinality,
+optionality:b,newBlockMarker:d,offset:0,casing:e.casing,def:a})}else s.push({fn:null,cardinality:0,optionality:b,newBlockMarker:d,offset:0,casing:null,def:a}),c=!1;d=!1;return s}})}function h(){function a(d,k){var h=k.split(j.optionalmarker.end,2),g,m,l=h[0].split(j.optionalmarker.start);1<l.length?(g=d+l[0]+(j.optionalmarker.start+l[1]+j.optionalmarker.end)+(1<h.length?h[1]:""),m=e(g),c.push({_buffer:m.mask,tests:b(g),lastValidPosition:0,greedy:m.greedy,repeat:m.repeat}),g=d+l[0]+(1<h.length?h[1]:
+""),m=e(g),c.push({_buffer:m.mask,tests:b(g),lastValidPosition:0,greedy:m.greedy,repeat:m.repeat}),1<h.length&&1<h[1].split(j.optionalmarker.start).length&&(a(d+l[0]+(j.optionalmarker.start+l[1]+j.optionalmarker.end),h[1]),a(d+l[0],h[1]))):(g=d+h,m=e(g),c.push({_buffer:m.mask,tests:b(g),lastValidPosition:0,greedy:m.greedy,repeat:m.repeat}))}var c=[];a("",j.mask.toString());return c}function g(){return q[p].tests}function l(){return q[p]._buffer}function y(a,b,c,d,e){function h(a,f){for(var s=G(a),
+e=b?1:0,k="",g=f.tests[s].cardinality;g>e;g--)k+=D(c,s-(g-1));b&&(k+=b);return null!=f.tests[s].fn?f.tests[s].fn.test(k,c,a,d,j):!1}if(d)return h(a,q[p]);var g=[],l=!1,o=p;k.each(q,function(d){p=d;var f=a;if(o!=p&&!B(a)){if(b==this._buffer[f]||b==j.skipOptionalPartCharacter)return g[d]={refresh:!0},this.lastValidPosition=f,!1;f=e?E(c,a):z(c,a)}if((e||j.numericInput?this.lastValidPosition<=j.numericInput?r(c):z(c,f):this.lastValidPosition>=E(c,f))&&0<=f&&f<r(c))g[d]=h(f,this),!1!==g[d]?(!0===g[d]&&
+(g[d]={pos:f}),this.lastValidPosition=g[d].pos||f):this.lastValidPosition=e?z(c,a):E(c,a)});p=o;T(c,a,o,e);l=g[p]||l;setTimeout(function(){j.onKeyValidation.call(this,l,j)},0);return l}function T(a,b,c,d){k.each(q,function(e){if(d||j.numericInput?this.lastValidPosition<=b:this.lastValidPosition>=b){p=e;if(p!=c){var e=r(a),k=l();if(d||j.numericInput)a.reverse(),k.reverse();for(var h=a.length=b;h<e;h++){var g=G(h);J(a,h,D(k,g))}d&&a.reverse()}return!1}})}function B(a){a=G(a);a=g()[a];return void 0!=
+a?a.fn:!1}function G(a){return a%g().length}function I(a){return j.placeholder.charAt(a%j.placeholder.length)}function r(a){return j.getMaskLength(l(),q[p].greedy,q[p].repeat,a,j)}function z(a,b){var c=r(a);if(b>=c)return c;for(var d=b;++d<c&&!B(d););return d}function E(a,b){var c=b;if(0>=c)return 0;for(;0<--c&&!B(c););return c}function J(a,b,c){var d=g()[G(b)],e=c;if(void 0!=e)switch(d.casing){case "upper":e=c.toUpperCase();break;case "lower":e=c.toLowerCase()}a[b]=e}function D(a,b,c){c&&(b=V(a,
+b));return a[b]}function V(a,b,c){if(c)for(;0>b&&a.length<r(a);){c=l().length-1;for(b=l().length;void 0!==l()[c];)a.unshift(l()[c--])}else for(;void 0==a[b]&&a.length<r(a);)for(c=0;void 0!==l()[c];)a.push(l()[c++]);return b}function F(a,b,c){a._valueSet(b.join(""));void 0!=c&&(M?setTimeout(function(){o(a,c)},100):o(a,c))}function W(a,b,c){for(var d=r(a);b<c&&b<d;b++)J(a,b,D(l().slice(),b))}function N(a,b){var c=G(b);J(a,b,D(l(),c))}function C(a,b,c,d){var e=k(a).data("inputmask").isRTL,h=U(a._valueGet(),
e).split(""),m=r(b);if(e){var o=h.reverse();o.length=m;for(var x=0;x<m;x++){var t=G(m-(x+1));null==g()[t].fn&&o[x]!=D(l(),t)?(o.splice(x,0,D(l(),t)),o.length=m):o[x]=o[x]||D(l(),t)}h=o.reverse()}W(b,0,b.length);b.length=l().length;for(var f=o=-1,A,C=h.length,t=0==C?m:-1,x=0;x<C;x++)for(var u=f+1;u<m;u++)if(B(u)){var E=h[x];!1!==(A=y(u,E,b,!c,e))?(!0!==A&&(u=void 0!=A.pos?A.pos:u,E=void 0!=A.c?A.c:E),J(b,u,E),o=f=u):(N(b,u),E==I(u)&&(t=f=u));break}else if(N(b,u),o==f&&(o=u),f=u,h[x]==D(b,u))break;
-if(!1==q[p].greedy)for(x=U(b.join(""),e).split("");b.length!=x.length;)e?b.shift():b.pop();c&&F(a,b);return e?k.numericInput?""!=k.radixPoint&&-1!=j.inArray(k.radixPoint,b)&&!0!==d?j.inArray(k.radixPoint,b):z(b,m):z(b,t):z(b,o)}function P(a){return j.inputmask.escapeRegex.call(this,a)}function U(a,b){return b?a.replace(RegExp("^("+P(l().join(""))+")*"),""):a.replace(RegExp("("+P(l().join(""))+")*$"),"")}function X(a,b){C(a,b,!1);var c=b.slice(),d,e;if(j(a).data("inputmask").isRTL)for(e=0;e<=c.length-
-1;e++)if(d=G(e),g()[d].optionality)if(!B(e)||!y(e,b[e],b,!0))c.splice(0,1);else break;else break;else for(e=c.length-1;0<=e;e--)if(d=G(e),g()[d].optionality)if(!B(e)||!y(e,b[e],b,!0))c.pop();else break;else break;F(a,c)}function Q(a,b){var c=a[0];if(g()&&(!0===b||!a.hasClass("hasDatepicker"))){var d=l().slice();C(c,d);return j.map(d,function(a,b){return B(b)&&y(b,a,d,!0)?a:null}).join("")}return c._valueGet()}function o(a,b,c){if(j(a).is(":visible"))if(a=a.jquery&&0<a.length?a[0]:a,"number"==typeof b){c=
-"number"==typeof c?c:b;!1==k.insertMode&&b==c&&c++;if(a.setSelectionRange)a.setSelectionRange(b,c);else if(a.createTextRange){var d=a.createTextRange();d.collapse(!0);d.moveEnd("character",c);d.moveStart("character",b);d.select()}a.focus()}else{var e=M?d:null,d=null;null==e&&(a.setSelectionRange?(b=a.selectionStart,c=a.selectionEnd):document.selection&&document.selection.createRange&&(d=document.selection.createRange(),b=0-d.duplicate().moveStart("character",-1E5),c=b+d.text.length),e={begin:b,end:c});
-return e}}function R(a){var b=!1;currentActiveMasksetIndex=p;highestValidPosition=0;j.each(q,function(c,d){p=c;var e=r(a);if(d.lastValidPosition>=highestValidPosition&&d.lastValidPosition==e-1){for(var h=!0,j=0;j<e;j++){var k=B(j);if(k&&a[j]==I(j)||!k&&a[j]!=l()[j]){h=!1;break}}if(b=b||h)return!1}highestValidPosition=d.lastValidPosition});p=currentActiveMasksetIndex;return b}function S(a){function b(a){a=j._data(a).events;j.each(a,function(a,b){j.each(b,function(a,b){if("inputmask"==b.namespace){var c=
-b.handler;b.handler=function(){return this.readOnly||this.disabled?!1:c.apply(this,arguments)}}})})}function c(a){var b;Object.getOwnPropertyDescriptor&&(b=Object.getOwnPropertyDescriptor(a,"value"));if(b&&b.get)a._valueGet||(a._valueGet=b.get,a._valueSet=b.set,Object.defineProperty(a,"value",{get:function(){var a=j(this),b=j(this).data("inputmask"),c=b.masksets,d=b.activeMasksetIndex;return b&&b.autoUnmask?a.inputmask("unmaskedvalue"):this._valueGet()!=c[d]._buffer.join("")?this._valueGet():""},
-set:function(a){this._valueSet(a);j(this).triggerHandler("setvalue.inputmask")}}));else if(document.__lookupGetter__&&a.__lookupGetter__("value"))a._valueGet||(a._valueGet=a.__lookupGetter__("value"),a._valueSet=a.__lookupSetter__("value"),a.__defineGetter__("value",function(){var a=j(this),b=j(this).data("inputmask"),c=b.masksets,d=b.activeMasksetIndex;return b&&b.autoUnmask?a.inputmask("unmaskedvalue"):this._valueGet()!=c[d]._buffer.join("")?this._valueGet():""}),a.__defineSetter__("value",function(a){this._valueSet(a);
-j(this).triggerHandler("setvalue.inputmask")}));else if(a._valueGet||(a._valueGet=function(){return this.value},a._valueSet=function(a){this.value=a}),!0!=j.fn.val.inputmaskpatch)j.fn.val=function(){if(arguments.length==0){var a=j(this);if(a.data("inputmask")){if(a.data("inputmask").autoUnmask)return a.inputmask("unmaskedvalue");var a=j.inputmask.val.apply(a),b=j(this).data("inputmask");return a!=b.masksets[b.activeMasksetIndex]._buffer.join("")?a:""}return j.inputmask.val.apply(a)}var c=arguments;
-return this.each(function(){var a=j(this),b=j.inputmask.val.apply(a,c);a.data("inputmask")&&a.triggerHandler("setvalue.inputmask");return b})},j.extend(j.fn.val,{inputmaskpatch:!0})}function d(a,b){if(k.numericInput&&""!=k.radixPoint){var c=a._valueGet().indexOf(k.radixPoint);v=b.begin<=c||b.end<=c||-1==c}}function e(a,b,c){for(;!B(a)&&0<=a-1;)a--;for(var d=a;d<b&&d<r(f);d++)if(B(d)){N(f,d);var h=z(f,d),j=D(f,h);if(j!=I(h))if(h<r(f)&&!1!==y(d,j,f,!0,v)&&g()[G(d)].def==g()[G(h)].def)J(f,d,D(f,h)),
+if(!1==q[p].greedy)for(x=U(b.join(""),e).split("");b.length!=x.length;)e?b.shift():b.pop();c&&F(a,b);return e?j.numericInput?""!=j.radixPoint&&-1!=k.inArray(j.radixPoint,b)&&!0!==d?k.inArray(j.radixPoint,b):z(b,m):z(b,t):z(b,o)}function P(a){return k.inputmask.escapeRegex.call(this,a)}function U(a,b){return b?a.replace(RegExp("^("+P(l().join(""))+")*"),""):a.replace(RegExp("("+P(l().join(""))+")*$"),"")}function X(a,b){C(a,b,!1);var c=b.slice(),d,e;if(k(a).data("inputmask").isRTL)for(e=0;e<=c.length-
+1;e++)if(d=G(e),g()[d].optionality)if(!B(e)||!y(e,b[e],b,!0))c.splice(0,1);else break;else break;else for(e=c.length-1;0<=e;e--)if(d=G(e),g()[d].optionality)if(!B(e)||!y(e,b[e],b,!0))c.pop();else break;else break;F(a,c)}function Q(a,b){var c=a[0];if(g()&&(!0===b||!a.hasClass("hasDatepicker"))){var d=l().slice();C(c,d);return k.map(d,function(a,b){return B(b)&&y(b,a,d,!0)?a:null}).join("")}return c._valueGet()}function o(a,b,c){if(k(a).is(":visible"))if(a=a.jquery&&0<a.length?a[0]:a,"number"==typeof b){c=
+"number"==typeof c?c:b;!1==j.insertMode&&b==c&&c++;if(a.setSelectionRange)a.setSelectionRange(b,c);else if(a.createTextRange){var d=a.createTextRange();d.collapse(!0);d.moveEnd("character",c);d.moveStart("character",b);d.select()}a.focus()}else{var e=M?d:null,d=null;null==e&&(a.setSelectionRange?(b=a.selectionStart,c=a.selectionEnd):document.selection&&document.selection.createRange&&(d=document.selection.createRange(),b=0-d.duplicate().moveStart("character",-1E5),c=b+d.text.length),e={begin:b,end:c});
+return e}}function R(a){var b=!1;currentActiveMasksetIndex=p;highestValidPosition=0;k.each(q,function(c,d){p=c;var e=r(a);if(d.lastValidPosition>=highestValidPosition&&d.lastValidPosition==e-1){for(var h=!0,j=0;j<e;j++){var k=B(j);if(k&&a[j]==I(j)||!k&&a[j]!=l()[j]){h=!1;break}}if(b=b||h)return!1}highestValidPosition=d.lastValidPosition});p=currentActiveMasksetIndex;return b}function S(a){function b(a){a=k._data(a).events;k.each(a,function(a,b){k.each(b,function(a,b){if("inputmask"==b.namespace){var c=
+b.handler;b.handler=function(){return this.readOnly||this.disabled?!1:c.apply(this,arguments)}}})})}function c(a){var b;Object.getOwnPropertyDescriptor&&(b=Object.getOwnPropertyDescriptor(a,"value"));if(b&&b.get)a._valueGet||(a._valueGet=b.get,a._valueSet=b.set,Object.defineProperty(a,"value",{get:function(){var a=k(this),b=k(this).data("inputmask"),c=b.masksets,d=b.activeMasksetIndex;return b&&b.autoUnmask?a.inputmask("unmaskedvalue"):this._valueGet()!=c[d]._buffer.join("")?this._valueGet():""},
+set:function(a){this._valueSet(a);k(this).triggerHandler("setvalue.inputmask")}}));else if(document.__lookupGetter__&&a.__lookupGetter__("value"))a._valueGet||(a._valueGet=a.__lookupGetter__("value"),a._valueSet=a.__lookupSetter__("value"),a.__defineGetter__("value",function(){var a=k(this),b=k(this).data("inputmask"),c=b.masksets,d=b.activeMasksetIndex;return b&&b.autoUnmask?a.inputmask("unmaskedvalue"):this._valueGet()!=c[d]._buffer.join("")?this._valueGet():""}),a.__defineSetter__("value",function(a){this._valueSet(a);
+k(this).triggerHandler("setvalue.inputmask")}));else if(a._valueGet||(a._valueGet=function(){return this.value},a._valueSet=function(a){this.value=a}),!0!=k.fn.val.inputmaskpatch)k.fn.val=function(){if(arguments.length==0){var a=k(this);if(a.data("inputmask")){if(a.data("inputmask").autoUnmask)return a.inputmask("unmaskedvalue");var a=k.inputmask.val.apply(a),b=k(this).data("inputmask");return a!=b.masksets[b.activeMasksetIndex]._buffer.join("")?a:""}return k.inputmask.val.apply(a)}var c=arguments;
+return this.each(function(){var a=k(this),b=k.inputmask.val.apply(a,c);a.data("inputmask")&&a.triggerHandler("setvalue.inputmask");return b})},k.extend(k.fn.val,{inputmaskpatch:!0})}function d(a,b){if(j.numericInput&&""!=j.radixPoint){var c=a._valueGet().indexOf(j.radixPoint);v=b.begin<=c||b.end<=c||-1==c}}function e(a,b,c){for(;!B(a)&&0<=a-1;)a--;for(var d=a;d<b&&d<r(f);d++)if(B(d)){N(f,d);var h=z(f,d),j=D(f,h);if(j!=I(h))if(h<r(f)&&!1!==y(d,j,f,!0,v)&&g()[G(d)].def==g()[G(h)].def)J(f,d,D(f,h)),
N(f,h);else{if(B(d))break}else if(void 0==c)break}else N(f,d);void 0!=c&&J(f,v?b:E(f,b),c);f=U(f.join(""),v).split("");0==f.length&&(f=l().slice());return a}function h(a,b,c,d){for(;a<=b&&a<r(f);a++)if(B(a)){var e=D(f,a);J(f,a,c);if(e!=I(a))if(c=z(f,a),c<r(f))if(!1!==y(c,e,f,!0,v)&&g()[G(a)].def==g()[G(c)].def)c=e;else if(B(c))break;else c=e;else break;else if(!0!==d)break}else N(f,a);d=f.length;f=U(f.join(""),v).split("");0==f.length&&(f=l().slice());return b-(d-f.length)}function m(a){u=!1;var b=
-this,c=a.keyCode,g=o(b);d(b,g);if(c==k.keyCode.BACKSPACE||c==k.keyCode.DELETE||Z&&127==c){var w=r(f);if(0==g.begin&&g.end==w)p=0,f=l().slice(),F(b,f),o(b,C(b,f,!1));else if(1<g.end-g.begin||1==g.end-g.begin&&k.insertMode)W(f,g.begin,g.end),T(f,g.begin,p),F(b,f),o(v?C(b,f,!1):g.begin);else{var n=g.begin;c==k.keyCode.DELETE?(n<K&&(n=K),n<w&&(k.numericInput&&""!=k.radixPoint&&f[n]==k.radixPoint?(n=f.length-1==n?n:z(f,n),n=e(n,w)):v?(n=h(K,n,I(n),!0),n=z(f,n)):n=e(n,w),T(f,n,p),F(b,f,n))):c==k.keyCode.BACKSPACE&&
-n>K&&(n-=1,k.numericInput&&""!=k.radixPoint&&f[n]==k.radixPoint?(n=h(K,f.length-1==n?n:n-1,I(n),!0),n++):v?(n=h(K,n,I(n),!0),n=f[n+1]==k.radixPoint?n+1:z(f,n)):n=e(n,w),T(f,n,p),F(b,f,n))}b._valueGet()==l().join("")&&j(b).trigger("cleared");a.preventDefault()}else c==k.keyCode.END||c==k.keyCode.PAGE_DOWN?setTimeout(function(){var c=C(b,f,!1,!0);!k.insertMode&&(c==r(f)&&!a.shiftKey)&&c--;o(b,a.shiftKey?g.begin:c,c)},0):c==k.keyCode.HOME||c==k.keyCode.PAGE_UP?o(b,0,a.shiftKey?g.begin:0):c==k.keyCode.ESCAPE?
-(b._valueSet(O),o(b,0,C(b,f))):c==k.keyCode.INSERT?(k.insertMode=!k.insertMode,o(b,!k.insertMode&&g.begin==r(f)?g.begin-1:g.begin)):a.ctrlKey&&88==c?setTimeout(function(){o(b,C(b,f,!0))},0):k.insertMode||(c==k.keyCode.RIGHT?(w=g.begin==g.end?g.end+1:g.end,w=w<r(f)?w:g.end,o(b,a.shiftKey?g.begin:w,a.shiftKey?w+1:w)):c==k.keyCode.LEFT&&(w=g.begin-1,w=0<w?w:0,o(b,w,a.shiftKey?g.end:w)));k.onKeyDown.call(this,a,f,k);P=-1!=j.inArray(c,k.ignorables)}function S(a){if(u)return!1;u=!0;var b=j(this),a=a||window.event,
-c=a.which||a.charCode||a.keyCode,d=String.fromCharCode(c);if(k.numericInput&&d==k.radixPoint){var g=this._valueGet().indexOf(k.radixPoint);o(this,z(f,-1!=g?g:r(f)))}if(a.ctrlKey||a.altKey||a.metaKey||P)return!0;if(c){b.trigger("input");var l=o(this),s=r(f),c=!0;W(f,l.begin,l.end);if(v){var g=E(f,l.end),m;if(!1!==(m=y(g==s||D(f,g)==k.radixPoint?E(f,g):g,d,f,!1,v))){var H=!1;!0!==m&&(H=m.refresh,g=void 0!=m.pos?m.pos:g,d=void 0!=m.c?m.c:d);if(!0!==H)if(s=r(f),m=K,!0==k.insertMode){if(!0==q[p].greedy)for(H=
-f.slice();D(H,m,!0)!=I(m)&&m<=g;)m=m==s?s+1:z(f,m);m<=g&&(q[p].greedy||f.length<s)?(f[K]!=I(K)&&f.length<s&&(H=V(f,-1,v),0!=l.end&&(g+=H),s=f.length),e(m,g,d)):c=!1}else J(f,g,d);c&&(F(this,f,k.numericInput?g+1:g),setTimeout(function(){R(f)&&b.trigger("complete")},0))}else M&&F(this,f,l.begin)}else if(g=z(f,l.begin-1),V(f,g,v),!1!==(m=y(g,d,f,!1,v))){H=!1;!0!==m&&(H=m.refresh,g=void 0!=m.pos?m.pos:g,d=void 0!=m.c?m.c:d);if(!0!==H)if(!0==k.insertMode){l=r(f);for(H=f.slice();D(H,l,!0)!=I(l)&&l>=g;)l=
-0==l?-1:E(f,l);l>=g?h(g,f.length,d):c=!1}else J(f,g,d);c&&(d=z(f,g),F(this,f,d),setTimeout(function(){R(f)&&b.trigger("complete")},0))}else M&&F(this,f,l.begin);a.preventDefault()}}function x(a){var b=j(this),c=a.keyCode;k.onKeyUp.call(this,a,f,k);c==k.keyCode.TAB&&(b.hasClass("focus.inputmask")&&0==this._valueGet().length&&k.showMaskOnFocus)&&(f=l().slice(),F(this,f),v||o(this,0),O=this._valueGet())}var t=j(a);if(t.is(":input")){var f=l().slice();q[p].greedy=q[p].greedy?q[p].greedy:0==q[p].repeat;
-var A=t.prop("maxLength");r(f)>A&&-1<A&&(A<l().length&&(l().length=A),!1==q[p].greedy&&(q[p].repeat=Math.round(A/l().length)),t.prop("maxLength",2*r(f)));t.data("inputmask",{masksets:q,activeMasksetIndex:p,autoUnmask:k.autoUnmask,definitions:k.definitions,isRTL:!1});c(a);var f=l().slice(),O=a._valueGet(),u=!1,P=!1,L=-1,K=z(f,-1);E(f,r(f));var v=!1;if("rtl"==a.dir||k.numericInput)a.dir="ltr",t.css("text-align","right"),t.removeAttr("dir"),A=t.data("inputmask"),A.isRTL=!0,t.data("inputmask",A),v=!0;
-t.unbind(".inputmask");t.removeClass("focus.inputmask");t.bind("mouseenter.inputmask",function(){if(!j(this).hasClass("focus.inputmask")&&k.showMaskOnHover){var a=this._valueGet().length;if(a<f.length){a==0&&(f=l().slice());F(this,f)}}}).bind("blur.inputmask",function(){var a=j(this),b=this._valueGet();a.removeClass("focus.inputmask");b!=O&&a.change();k.clearMaskOnLostFocus&&b!=""&&(b==l().join("")?this._valueSet(""):X(this,f));if(!R(f)){a.trigger("incomplete");if(k.clearIncomplete)if(k.clearMaskOnLostFocus)this._valueSet("");
-else{f=l().slice();F(this,f)}}}).bind("focus.inputmask",function(){var a=j(this),b=this._valueGet();if(k.showMaskOnFocus&&!a.hasClass("focus.inputmask")&&(!k.showMaskOnHover||k.showMaskOnHover&&b=="")){b=b.length;if(b<f.length){b==0&&(f=l().slice());o(this,C(this,f,true))}}a.addClass("focus.inputmask");O=this._valueGet()}).bind("mouseleave.inputmask",function(){var a=j(this);k.clearMaskOnLostFocus&&(a.hasClass("focus.inputmask")||(this._valueGet()==l().join("")||this._valueGet()==""?this._valueSet(""):
+this,c=a.keyCode,g=o(b);d(b,g);if(c==j.keyCode.BACKSPACE||c==j.keyCode.DELETE||Z&&127==c){var w=r(f);if(0==g.begin&&g.end==w)p=0,f=l().slice(),F(b,f),o(b,C(b,f,!1));else if(1<g.end-g.begin||1==g.end-g.begin&&j.insertMode)W(f,g.begin,g.end),T(f,g.begin,p),F(b,f),o(v?C(b,f,!1):g.begin);else{var n=g.begin;c==j.keyCode.DELETE?(n<K&&(n=K),n<w&&(j.numericInput&&""!=j.radixPoint&&f[n]==j.radixPoint?(n=f.length-1==n?n:z(f,n),n=e(n,w)):v?(n=h(K,n,I(n),!0),n=z(f,n)):n=e(n,w),T(f,n,p),F(b,f,n))):c==j.keyCode.BACKSPACE&&
+n>K&&(n-=1,j.numericInput&&""!=j.radixPoint&&f[n]==j.radixPoint?(n=h(K,f.length-1==n?n:n-1,I(n),!0),n++):v?(n=h(K,n,I(n),!0),n=f[n+1]==j.radixPoint?n+1:z(f,n)):n=e(n,w),T(f,n,p),F(b,f,n))}b._valueGet()==l().join("")&&k(b).trigger("cleared");a.preventDefault()}else c==j.keyCode.END||c==j.keyCode.PAGE_DOWN?setTimeout(function(){var c=C(b,f,!1,!0);!j.insertMode&&(c==r(f)&&!a.shiftKey)&&c--;o(b,a.shiftKey?g.begin:c,c)},0):c==j.keyCode.HOME||c==j.keyCode.PAGE_UP?o(b,0,a.shiftKey?g.begin:0):c==j.keyCode.ESCAPE?
+(b._valueSet(O),o(b,0,C(b,f))):c==j.keyCode.INSERT?(j.insertMode=!j.insertMode,o(b,!j.insertMode&&g.begin==r(f)?g.begin-1:g.begin)):a.ctrlKey&&88==c?setTimeout(function(){o(b,C(b,f,!0))},0):j.insertMode||(c==j.keyCode.RIGHT?(w=g.begin==g.end?g.end+1:g.end,w=w<r(f)?w:g.end,o(b,a.shiftKey?g.begin:w,a.shiftKey?w+1:w)):c==j.keyCode.LEFT&&(w=g.begin-1,w=0<w?w:0,o(b,w,a.shiftKey?g.end:w)));j.onKeyDown.call(this,a,f,j);P=-1!=k.inArray(c,j.ignorables)}function S(a){if(u)return!1;u=!0;var b=k(this),a=a||window.event,
+c=a.which||a.charCode||a.keyCode,d=String.fromCharCode(c);if(j.numericInput&&d==j.radixPoint){var g=this._valueGet().indexOf(j.radixPoint);o(this,z(f,-1!=g?g:r(f)))}if(a.ctrlKey||a.altKey||a.metaKey||P)return!0;if(c){b.trigger("input");var l=o(this),s=r(f),c=!0;W(f,l.begin,l.end);if(v){var g=E(f,l.end),m;if(!1!==(m=y(g==s||D(f,g)==j.radixPoint?E(f,g):g,d,f,!1,v))){var H=!1;!0!==m&&(H=m.refresh,g=void 0!=m.pos?m.pos:g,d=void 0!=m.c?m.c:d);if(!0!==H)if(s=r(f),m=K,!0==j.insertMode){if(!0==q[p].greedy)for(H=
+f.slice();D(H,m,!0)!=I(m)&&m<=g;)m=m==s?s+1:z(f,m);m<=g&&(q[p].greedy||f.length<s)?(f[K]!=I(K)&&f.length<s&&(H=V(f,-1,v),0!=l.end&&(g+=H),s=f.length),e(m,g,d)):c=!1}else J(f,g,d);c&&(F(this,f,j.numericInput?g+1:g),setTimeout(function(){R(f)&&b.trigger("complete")},0))}else M&&F(this,f,l.begin)}else if(g=z(f,l.begin-1),V(f,g,v),!1!==(m=y(g,d,f,!1,v))){H=!1;!0!==m&&(H=m.refresh,g=void 0!=m.pos?m.pos:g,d=void 0!=m.c?m.c:d);if(!0!==H)if(!0==j.insertMode){l=r(f);for(H=f.slice();D(H,l,!0)!=I(l)&&l>=g;)l=
+0==l?-1:E(f,l);l>=g?h(g,f.length,d):c=!1}else J(f,g,d);c&&(d=z(f,g),F(this,f,d),setTimeout(function(){R(f)&&b.trigger("complete")},0))}else M&&F(this,f,l.begin);a.preventDefault()}}function x(a){var b=k(this),c=a.keyCode;j.onKeyUp.call(this,a,f,j);c==j.keyCode.TAB&&(b.hasClass("focus.inputmask")&&0==this._valueGet().length&&j.showMaskOnFocus)&&(f=l().slice(),F(this,f),v||o(this,0),O=this._valueGet())}var t=k(a);if(t.is(":input")){var f=l().slice();q[p].greedy=q[p].greedy?q[p].greedy:0==q[p].repeat;
+var A=t.prop("maxLength");r(f)>A&&-1<A&&(A<l().length&&(l().length=A),!1==q[p].greedy&&(q[p].repeat=Math.round(A/l().length)),t.prop("maxLength",2*r(f)));t.data("inputmask",{masksets:q,activeMasksetIndex:p,autoUnmask:j.autoUnmask,definitions:j.definitions,isRTL:!1});c(a);var f=l().slice(),O=a._valueGet(),u=!1,P=!1,L=-1,K=z(f,-1);E(f,r(f));var v=!1;if("rtl"==a.dir||j.numericInput)a.dir="ltr",t.css("text-align","right"),t.removeAttr("dir"),A=t.data("inputmask"),A.isRTL=!0,t.data("inputmask",A),v=!0;
+t.unbind(".inputmask");t.removeClass("focus.inputmask");t.bind("mouseenter.inputmask",function(){if(!k(this).hasClass("focus.inputmask")&&j.showMaskOnHover){var a=this._valueGet().length;if(a<f.length){a==0&&(f=l().slice());F(this,f)}}}).bind("blur.inputmask",function(){var a=k(this),b=this._valueGet();a.removeClass("focus.inputmask");b!=O&&a.change();j.clearMaskOnLostFocus&&b!=""&&(b==l().join("")?this._valueSet(""):X(this,f));if(!R(f)){a.trigger("incomplete");if(j.clearIncomplete)if(j.clearMaskOnLostFocus)this._valueSet("");
+else{f=l().slice();F(this,f)}}}).bind("focus.inputmask",function(){var a=k(this),b=this._valueGet();if(j.showMaskOnFocus&&!a.hasClass("focus.inputmask")&&(!j.showMaskOnHover||j.showMaskOnHover&&b=="")){b=b.length;if(b<f.length){b==0&&(f=l().slice());o(this,C(this,f,true))}}a.addClass("focus.inputmask");O=this._valueGet()}).bind("mouseleave.inputmask",function(){var a=k(this);j.clearMaskOnLostFocus&&(a.hasClass("focus.inputmask")||(this._valueGet()==l().join("")||this._valueGet()==""?this._valueSet(""):
X(this,f)))}).bind("click.inputmask",function(){var a=this;setTimeout(function(){var b=o(a);if(b.begin==b.end){var c=b.begin;L=C(a,f,false);d(a,b);v?o(a,c>L&&(y(c,f[c],f,true,v)!==false||!B(c))?c:L):o(a,c<L&&(y(c,f[c],f,true,v)!==false||!B(c))?c:L)}},0)}).bind("dblclick.inputmask",function(){var a=this;setTimeout(function(){o(a,0,L)},0)}).bind("keydown.inputmask",m).bind("keypress.inputmask",S).bind("keyup.inputmask",x).bind($+".inputmask dragdrop.inputmask drop.inputmask",function(){var a=this;setTimeout(function(){o(a,
-C(a,f,true));R(f)&&t.trigger("complete")},0)}).bind("setvalue.inputmask",function(){O=this._valueGet();C(this,f,true);this._valueGet()==l().join("")&&this._valueSet("")}).bind("complete.inputmask",k.oncomplete).bind("incomplete.inputmask",k.onincomplete).bind("cleared.inputmask",k.oncleared);var L=C(a,f,!0),Q;try{Q=document.activeElement}catch(Y){}Q===a?(t.addClass("focus.inputmask"),o(a,L)):k.clearMaskOnLostFocus&&(a._valueGet()==l().join("")?a._valueSet(""):X(a,f));b(a)}}var k=j.extend(!0,{},j.inputmask.defaults,
-d),$=function(a){var b=document.createElement("input"),a="on"+a,c=a in b;c||(b.setAttribute(a,"return;"),c="function"==typeof b[a]);return c}("paste")?"paste":"input",Z=null!=navigator.userAgent.match(/iphone/i),M=null!=navigator.userAgent.match(/android.*mobile safari.*/i);if(M)var Y=navigator.userAgent.match(/mobile safari.*/i),M=533>=parseInt(RegExp(/[0-9]+/).exec(Y));var q,p=0;if("string"==typeof a)switch(a){case "mask":return c(k.alias,d),q=h(),this.each(function(){S(this)});case "unmaskedvalue":return q=
-this.data("inputmask").masksets,p=this.data("inputmask").activeMasksetIndex,k.definitions=this.data("inputmask").definitions,Q(this);case "remove":return this.each(function(){var a=j(this),b=this;setTimeout(function(){if(a.data("inputmask")){q=a.data("inputmask").masksets;p=a.data("inputmask").activeMasksetIndex;k.definitions=a.data("inputmask").definitions;b._valueSet(Q(a,!0));a.removeData("inputmask");a.unbind(".inputmask");a.removeClass("focus.inputmask");var c;Object.getOwnPropertyDescriptor&&
+C(a,f,true));R(f)&&t.trigger("complete")},0)}).bind("setvalue.inputmask",function(){O=this._valueGet();C(this,f,true);this._valueGet()==l().join("")&&this._valueSet("")}).bind("complete.inputmask",j.oncomplete).bind("incomplete.inputmask",j.onincomplete).bind("cleared.inputmask",j.oncleared);var L=C(a,f,!0),Q;try{Q=document.activeElement}catch(Y){}Q===a?(t.addClass("focus.inputmask"),o(a,L)):j.clearMaskOnLostFocus&&(a._valueGet()==l().join("")?a._valueSet(""):X(a,f));b(a)}}var j=k.extend(!0,{},k.inputmask.defaults,
+d),$=function(a){var b=document.createElement("input"),a="on"+a,c=a in b;c||(b.setAttribute(a,"return;"),c="function"==typeof b[a]);return c}("paste")?"paste":"input",Z=null!=navigator.userAgent.match(/iphone/i),M=null!=navigator.userAgent.match(/android.*mobile safari.*/i);if(M)var Y=navigator.userAgent.match(/mobile safari.*/i),M=533>=parseInt(RegExp(/[0-9]+/).exec(Y));var q,p=0;if("string"==typeof a)switch(a){case "mask":return c(j.alias,d),q=h(),this.each(function(){S(this)});case "unmaskedvalue":return q=
+this.data("inputmask").masksets,p=this.data("inputmask").activeMasksetIndex,j.definitions=this.data("inputmask").definitions,Q(this);case "remove":return this.each(function(){var a=k(this),b=this;setTimeout(function(){if(a.data("inputmask")){q=a.data("inputmask").masksets;p=a.data("inputmask").activeMasksetIndex;j.definitions=a.data("inputmask").definitions;b._valueSet(Q(a,!0));a.removeData("inputmask");a.unbind(".inputmask");a.removeClass("focus.inputmask");var c;Object.getOwnPropertyDescriptor&&
(c=Object.getOwnPropertyDescriptor(b,"value"));c&&c.get?b._valueGet&&Object.defineProperty(b,"value",{get:b._valueGet,set:b._valueSet}):document.__lookupGetter__&&b.__lookupGetter__("value")&&b._valueGet&&(b.__defineGetter__("value",b._valueGet),b.__defineSetter__("value",b._valueSet));delete b._valueGet;delete b._valueSet}},0)});case "getemptymask":return this.data("inputmask")?(q=this.data("inputmask").masksets,p=this.data("inputmask").activeMasksetIndex,q[p]._buffer.join("")):"";case "hasMaskedValue":return this.data("inputmask")?
-!this.data("inputmask").autoUnmask:!1;case "isComplete":return q=this.data("inputmask").masksets,p=this.data("inputmask").activeMasksetIndex,k.definitions=this.data("inputmask").definitions,R(this[0].split(""));default:return c(a,d)||(k.mask=a),q=h(),this.each(function(){S(this)})}else{if("object"==typeof a)return k=j.extend(!0,{},j.inputmask.defaults,a),c(k.alias,a),q=h(),this.each(function(){S(this)});if(void 0==a)return this.each(function(){var a=j(this).attr("data-inputmask");if(a&&""!=a)try{var a=
-a.replace(RegExp("'","g"),'"'),b=j.parseJSON("{"+a+"}");k=j.extend(!0,{},j.inputmask.defaults,b);c(k.alias,b);k.alias=void 0;j(this).inputmask(k)}catch(d){}})}return this})})(jQuery);
-(function(j){j.extend(j.inputmask.defaults.definitions,{A:{validator:"[A-Za-z]",cardinality:1,casing:"upper"},"#":{validator:"[A-Za-z\u0410-\u044f\u0401\u04510-9]",cardinality:1,casing:"upper"}});j.extend(j.inputmask.defaults.aliases,{url:{mask:"ir",placeholder:"",separator:"",defaultPrefix:"http://",regex:{urlpre1:/[fh]/,urlpre2:/(ft|ht)/,urlpre3:/(ftp|htt)/,urlpre4:/(ftp:|http|ftps)/,urlpre5:/(ftp:\/|ftps:|http:|https)/,urlpre6:/(ftp:\/\/|ftps:\/|http:\/|https:)/,urlpre7:/(ftp:\/\/|ftps:\/\/|http:\/\/|https:\/)/,
-urlpre8:/(ftp:\/\/|ftps:\/\/|http:\/\/|https:\/\/)/},definitions:{i:{validator:function(){return!0},cardinality:8,prevalidator:function(){for(var a=[],d=0;8>d;d++)a[d]=function(){var a=d;return{validator:function(d,b,h,g,j){if(j.regex["urlpre"+(a+1)]){var y=d;0<a+1-d.length&&(y=b.join("").substring(0,a+1-d.length)+""+y);d=j.regex["urlpre"+(a+1)].test(y);if(!g&&!d){h-=a;for(g=0;g<j.defaultPrefix.length;g++)b[h]=j.defaultPrefix[g],h++;for(g=0;g<y.length-1;g++)b[h]=y[g],h++;return{pos:h}}return d}return!1},
+!this.data("inputmask").autoUnmask:!1;case "isComplete":return q=this.data("inputmask").masksets,p=this.data("inputmask").activeMasksetIndex,j.definitions=this.data("inputmask").definitions,R(this[0].split(""));default:return c(a,d)||(j.mask=a),q=h(),this.each(function(){S(this)})}else{if("object"==typeof a)return j=k.extend(!0,{},k.inputmask.defaults,a),c(j.alias,a),q=h(),this.each(function(){S(this)});if(void 0==a)return this.each(function(){var a=k(this).attr("data-inputmask");if(a&&""!=a)try{var a=
+a.replace(RegExp("'","g"),'"'),b=k.parseJSON("{"+a+"}");j=k.extend(!0,{},k.inputmask.defaults,b);c(j.alias,b);j.alias=void 0;k(this).inputmask(j)}catch(d){}})}return this})})(jQuery);
+(function(k){k.extend(k.inputmask.defaults.definitions,{A:{validator:"[A-Za-z]",cardinality:1,casing:"upper"},"#":{validator:"[A-Za-z\u0410-\u044f\u0401\u04510-9]",cardinality:1,casing:"upper"}});k.extend(k.inputmask.defaults.aliases,{url:{mask:"ir",placeholder:"",separator:"",defaultPrefix:"http://",regex:{urlpre1:/[fh]/,urlpre2:/(ft|ht)/,urlpre3:/(ftp|htt)/,urlpre4:/(ftp:|http|ftps)/,urlpre5:/(ftp:\/|ftps:|http:|https)/,urlpre6:/(ftp:\/\/|ftps:\/|http:\/|https:)/,urlpre7:/(ftp:\/\/|ftps:\/\/|http:\/\/|https:\/)/,
+urlpre8:/(ftp:\/\/|ftps:\/\/|http:\/\/|https:\/\/)/},definitions:{i:{validator:function(){return!0},cardinality:8,prevalidator:function(){for(var a=[],d=0;8>d;d++)a[d]=function(){var a=d;return{validator:function(d,b,h,g,k){if(k.regex["urlpre"+(a+1)]){var y=d;0<a+1-d.length&&(y=b.join("").substring(0,a+1-d.length)+""+y);d=k.regex["urlpre"+(a+1)].test(y);if(!g&&!d){h-=a;for(g=0;g<k.defaultPrefix.length;g++)b[h]=k.defaultPrefix[g],h++;for(g=0;g<y.length-1;g++)b[h]=y[g],h++;return{pos:h}}return d}return!1},
cardinality:a}}();return a}()}},insertMode:!1,autoUnmask:!1},ip:{mask:"i.i.i.i",definitions:{i:{validator:"25[0-5]|2[0-4][0-9]|[01][0-9][0-9]",cardinality:3,prevalidator:[{validator:"[0-2]",cardinality:1},{validator:"2[0-5]|[01][0-9]",cardinality:2}]}}}})})(jQuery);
-(function(j){j.extend(j.inputmask.defaults.definitions,{h:{validator:"[01][0-9]|2[0-3]",cardinality:2,prevalidator:[{validator:"[0-2]",cardinality:1}]},s:{validator:"[0-5][0-9]",cardinality:2,prevalidator:[{validator:"[0-5]",cardinality:1}]},d:{validator:"0[1-9]|[12][0-9]|3[01]",cardinality:2,prevalidator:[{validator:"[0-3]",cardinality:1}]},m:{validator:"0[1-9]|1[012]",cardinality:2,prevalidator:[{validator:"[01]",cardinality:1}]},y:{validator:"(19|20)\\d{2}",cardinality:4,prevalidator:[{validator:"[12]",
-cardinality:1},{validator:"(19|20)",cardinality:2},{validator:"(19|20)\\d",cardinality:3}]}});j.extend(j.inputmask.defaults.aliases,{"dd/mm/yyyy":{mask:"1/2/y",placeholder:"dd/mm/yyyy",regex:{val1pre:/[0-3]/,val1:/0[1-9]|[12][0-9]|3[01]/,val2pre:function(a){a=j.inputmask.escapeRegex.call(this,a);return RegExp("((0[1-9]|[12][0-9]|3[01])"+a+"[01])")},val2:function(a){a=j.inputmask.escapeRegex.call(this,a);return RegExp("((0[1-9]|[12][0-9])"+a+"(0[1-9]|1[012]))|(30"+a+"(0[13-9]|1[012]))|(31"+a+"(0[13578]|1[02]))")}},
-leapday:"29/02/",separator:"/",yearrange:{minyear:1900,maxyear:2099},isInYearRange:function(a,d,c){var e=parseInt(a.concat(d.toString().slice(a.length))),a=parseInt(a.concat(c.toString().slice(a.length)));return(NaN!=e?d<=e&&e<=c:!1)||(NaN!=a?d<=a&&a<=c:!1)},determinebaseyear:function(a,d){var c=(new Date).getFullYear();return a>c?a:d<c?d:c},onKeyUp:function(a,d,c){d=j(this);a.ctrlKey&&a.keyCode==c.keyCode.RIGHT&&(a=new Date,d.val(a.getDate().toString()+(a.getMonth()+1).toString()+a.getFullYear().toString()))},
+(function(k){k.extend(k.inputmask.defaults.definitions,{h:{validator:"[01][0-9]|2[0-3]",cardinality:2,prevalidator:[{validator:"[0-2]",cardinality:1}]},s:{validator:"[0-5][0-9]",cardinality:2,prevalidator:[{validator:"[0-5]",cardinality:1}]},d:{validator:"0[1-9]|[12][0-9]|3[01]",cardinality:2,prevalidator:[{validator:"[0-3]",cardinality:1}]},m:{validator:"0[1-9]|1[012]",cardinality:2,prevalidator:[{validator:"[01]",cardinality:1}]},y:{validator:"(19|20)\\d{2}",cardinality:4,prevalidator:[{validator:"[12]",
+cardinality:1},{validator:"(19|20)",cardinality:2},{validator:"(19|20)\\d",cardinality:3}]}});k.extend(k.inputmask.defaults.aliases,{"dd/mm/yyyy":{mask:"1/2/y",placeholder:"dd/mm/yyyy",regex:{val1pre:/[0-3]/,val1:/0[1-9]|[12][0-9]|3[01]/,val2pre:function(a){a=k.inputmask.escapeRegex.call(this,a);return RegExp("((0[1-9]|[12][0-9]|3[01])"+a+"[01])")},val2:function(a){a=k.inputmask.escapeRegex.call(this,a);return RegExp("((0[1-9]|[12][0-9])"+a+"(0[1-9]|1[012]))|(30"+a+"(0[13-9]|1[012]))|(31"+a+"(0[13578]|1[02]))")}},
+leapday:"29/02/",separator:"/",yearrange:{minyear:1900,maxyear:2099},isInYearRange:function(a,d,c){var e=parseInt(a.concat(d.toString().slice(a.length))),a=parseInt(a.concat(c.toString().slice(a.length)));return(NaN!=e?d<=e&&e<=c:!1)||(NaN!=a?d<=a&&a<=c:!1)},determinebaseyear:function(a,d){var c=(new Date).getFullYear();return a>c?a:d<c?d:c},onKeyUp:function(a,d,c){d=k(this);a.ctrlKey&&a.keyCode==c.keyCode.RIGHT&&(a=new Date,d.val(a.getDate().toString()+(a.getMonth()+1).toString()+a.getFullYear().toString()))},
definitions:{1:{validator:function(a,d,c,e,b){var h=b.regex.val1.test(a);if(!e&&!h&&(a.charAt(1)==b.separator||-1!="-./".indexOf(a.charAt(1))))if(h=b.regex.val1.test("0"+a.charAt(0)))return d[c-1]="0",{pos:c,c:a.charAt(0)};return h},cardinality:2,prevalidator:[{validator:function(a,d,c,e,b){var h=b.regex.val1pre.test(a);return!e&&!h&&(h=b.regex.val1.test("0"+a))?(d[c]="0",c++,{pos:c}):h},cardinality:1}]},2:{validator:function(a,d,c,e,b){var h=d.join("").substr(0,3),g=b.regex.val2(b.separator).test(h+
a);if(!e&&!g&&(a.charAt(1)==b.separator||-1!="-./".indexOf(a.charAt(1))))if(g=b.regex.val2(b.separator).test(h+"0"+a.charAt(0)))return d[c-1]="0",{pos:c,c:a.charAt(0)};return g},cardinality:2,prevalidator:[{validator:function(a,d,c,e,b){var h=d.join("").substr(0,3),g=b.regex.val2pre(b.separator).test(h+a);return!e&&!g&&(g=b.regex.val2(b.separator).test(h+"0"+a))?(d[c]="0",c++,{pos:c}):g},cardinality:1}]},y:{validator:function(a,d,c,e,b){if(b.isInYearRange(a,b.yearrange.minyear,b.yearrange.maxyear)){if(d.join("").substr(0,
6)!=b.leapday)return!0;a=parseInt(a,10);return 0===a%4?0===a%100?0===a%400?!0:!1:!0:!1}return!1},cardinality:4,prevalidator:[{validator:function(a,d,c,e,b){var h=b.isInYearRange(a,b.yearrange.minyear,b.yearrange.maxyear);if(!e&&!h){e=b.determinebaseyear(b.yearrange.minyear,b.yearrange.maxyear).toString().slice(0,1);if(h=b.isInYearRange(e+a,b.yearrange.minyear,b.yearrange.maxyear))return d[c++]=e[0],{pos:c};e=b.determinebaseyear(b.yearrange.minyear,b.yearrange.maxyear).toString().slice(0,2);if(h=b.isInYearRange(e+
a,b.yearrange.minyear,b.yearrange.maxyear))return d[c++]=e[0],d[c++]=e[1],{pos:c}}return h},cardinality:1},{validator:function(a,d,c,e,b){var h=b.isInYearRange(a,b.yearrange.minyear,b.yearrange.maxyear);if(!e&&!h){e=b.determinebaseyear(b.yearrange.minyear,b.yearrange.maxyear).toString().slice(0,2);if(h=b.isInYearRange(e+a[1],b.yearrange.minyear,b.yearrange.maxyear))return d[c++]=e[1],{pos:c};e=b.determinebaseyear(b.yearrange.minyear,b.yearrange.maxyear).toString().slice(0,2);b.isInYearRange(e+a,b.yearrange.minyear,
-b.yearrange.maxyear)?d.join("").substr(0,6)!=b.leapday?h=!0:(b=parseInt(a,10),h=0===b%4?0===b%100?0===b%400?!0:!1:!0:!1):h=!1;if(h)return d[c-1]=e[0],d[c++]=e[1],d[c++]=a[0],{pos:c}}return h},cardinality:2},{validator:function(a,d,c,e,b){return b.isInYearRange(a,b.yearrange.minyear,b.yearrange.maxyear)},cardinality:3}]}},insertMode:!1,autoUnmask:!1},"mm/dd/yyyy":{placeholder:"mm/dd/yyyy",alias:"dd/mm/yyyy",regex:{val2pre:function(a){a=j.inputmask.escapeRegex.call(this,a);return RegExp("((0[13-9]|1[012])"+
-a+"[0-3])|(02"+a+"[0-2])")},val2:function(a){a=j.inputmask.escapeRegex.call(this,a);return RegExp("((0[1-9]|1[012])"+a+"(0[1-9]|[12][0-9]))|((0[13-9]|1[012])"+a+"30)|((0[13578]|1[02])"+a+"31)")},val1pre:/[01]/,val1:/0[1-9]|1[012]/},leapday:"02/29/",onKeyUp:function(a,d,c){d=j(this);a.ctrlKey&&a.keyCode==c.keyCode.RIGHT&&(a=new Date,d.val((a.getMonth()+1).toString()+a.getDate().toString()+a.getFullYear().toString()))}},"yyyy/mm/dd":{mask:"y/1/2",placeholder:"yyyy/mm/dd",alias:"mm/dd/yyyy",leapday:"/02/29",
-onKeyUp:function(a,d,c){d=j(this);a.ctrlKey&&a.keyCode==c.keyCode.RIGHT&&(a=new Date,d.val(a.getFullYear().toString()+(a.getMonth()+1).toString()+a.getDate().toString()))},definitions:{2:{validator:function(a,d,c,e,b){var h=d.join("").substr(5,3),g=b.regex.val2(b.separator).test(h+a);if(!e&&!g&&(a.charAt(1)==b.separator||-1!="-./".indexOf(a.charAt(1))))if(g=b.regex.val2(b.separator).test(h+"0"+a.charAt(0)))return d[c-1]="0",{pos:c,c:a.charAt(0)};if(g){if(d.join("").substr(4,4)+a!=b.leapday)return!0;
+b.yearrange.maxyear)?d.join("").substr(0,6)!=b.leapday?h=!0:(b=parseInt(a,10),h=0===b%4?0===b%100?0===b%400?!0:!1:!0:!1):h=!1;if(h)return d[c-1]=e[0],d[c++]=e[1],d[c++]=a[0],{pos:c}}return h},cardinality:2},{validator:function(a,d,c,e,b){return b.isInYearRange(a,b.yearrange.minyear,b.yearrange.maxyear)},cardinality:3}]}},insertMode:!1,autoUnmask:!1},"mm/dd/yyyy":{placeholder:"mm/dd/yyyy",alias:"dd/mm/yyyy",regex:{val2pre:function(a){a=k.inputmask.escapeRegex.call(this,a);return RegExp("((0[13-9]|1[012])"+
+a+"[0-3])|(02"+a+"[0-2])")},val2:function(a){a=k.inputmask.escapeRegex.call(this,a);return RegExp("((0[1-9]|1[012])"+a+"(0[1-9]|[12][0-9]))|((0[13-9]|1[012])"+a+"30)|((0[13578]|1[02])"+a+"31)")},val1pre:/[01]/,val1:/0[1-9]|1[012]/},leapday:"02/29/",onKeyUp:function(a,d,c){d=k(this);a.ctrlKey&&a.keyCode==c.keyCode.RIGHT&&(a=new Date,d.val((a.getMonth()+1).toString()+a.getDate().toString()+a.getFullYear().toString()))}},"yyyy/mm/dd":{mask:"y/1/2",placeholder:"yyyy/mm/dd",alias:"mm/dd/yyyy",leapday:"/02/29",
+onKeyUp:function(a,d,c){d=k(this);a.ctrlKey&&a.keyCode==c.keyCode.RIGHT&&(a=new Date,d.val(a.getFullYear().toString()+(a.getMonth()+1).toString()+a.getDate().toString()))},definitions:{2:{validator:function(a,d,c,e,b){var h=d.join("").substr(5,3),g=b.regex.val2(b.separator).test(h+a);if(!e&&!g&&(a.charAt(1)==b.separator||-1!="-./".indexOf(a.charAt(1))))if(g=b.regex.val2(b.separator).test(h+"0"+a.charAt(0)))return d[c-1]="0",{pos:c,c:a.charAt(0)};if(g){if(d.join("").substr(4,4)+a!=b.leapday)return!0;
a=parseInt(d.join("").substr(0,4),10);return 0===a%4?0===a%100?0===a%400?!0:!1:!0:!1}return g},cardinality:2,prevalidator:[{validator:function(a,d,c,e,b){var h=d.join("").substr(5,3),g=b.regex.val2pre(b.separator).test(h+a);return!e&&!g&&(g=b.regex.val2(b.separator).test(h+"0"+a))?(d[c]="0",c++,{pos:c}):g},cardinality:1}]}}},"dd.mm.yyyy":{mask:"1.2.y",placeholder:"dd.mm.yyyy",leapday:"29.02.",separator:".",alias:"dd/mm/yyyy"},"dd-mm-yyyy":{mask:"1-2-y",placeholder:"dd-mm-yyyy",leapday:"29-02-",separator:"-",
alias:"dd/mm/yyyy"},"mm.dd.yyyy":{mask:"1.2.y",placeholder:"mm.dd.yyyy",leapday:"02.29.",separator:".",alias:"mm/dd/yyyy"},"mm-dd-yyyy":{mask:"1-2-y",placeholder:"mm-dd-yyyy",leapday:"02-29-",separator:"-",alias:"mm/dd/yyyy"},"yyyy.mm.dd":{mask:"y.1.2",placeholder:"yyyy.mm.dd",leapday:".02.29",separator:".",alias:"yyyy/mm/dd"},"yyyy-mm-dd":{mask:"y-1-2",placeholder:"yyyy-mm-dd",leapday:"-02-29",separator:"-",alias:"yyyy/mm/dd"},datetime:{mask:"1/2/y h:s",placeholder:"dd/mm/yyyy hh:mm",alias:"dd/mm/yyyy",
regex:{hrspre:/[012]/,hrs24:/2[0-9]|1[3-9]/,hrs:/[01][0-9]|2[0-3]/,ampmpre:/[apAP]/,ampm:/^[a|p|A|P][m|M]/},timeseparator:":",hourFormat:"24",definitions:{h:{validator:function(a,d,c,e,b){var h=b.regex.hrs.test(a);if(!e&&!h&&(a.charAt(1)==b.timeseparator||-1!="-.:".indexOf(a.charAt(1))))if(h=b.regex.hrs.test("0"+a.charAt(0)))return d[c-1]="0",d[c]=a.charAt(0),c++,{pos:c};return h&&"24"!==b.hourFormat&&b.regex.hrs24.test(a)?(a=parseInt(a,10),d[c+5]=24==a?"a":"p",d[c+6]="m",a-=12,10>a?(d[c]=a.toString(),
d[c-1]="0"):(d[c]=a.toString().charAt(1),d[c-1]=a.toString().charAt(0)),{pos:c,c:d[c]}):h},cardinality:2,prevalidator:[{validator:function(a,d,c,e,b){var h=b.regex.hrspre.test(a);return!e&&!h&&(h=b.regex.hrs.test("0"+a))?(d[c]="0",c++,{pos:c}):h},cardinality:1}]},t:{validator:function(a,d,c,e,b){var h=b.regex.ampm.test(a);return!e&&!h&&(h=b.regex.ampm.test(a+"m"))?(d[c-1]=a.charAt(0),d[c]="m",c++,c):h},casing:"lower",cardinality:2,prevalidator:[{validator:function(a,d,c,e,b){if(e=b.regex.ampmpre.test(a))if(e=
b.regex.ampm.test(a+"m"))return d[c]=a,d[c+1]="m",c;return e},cardinality:1}]}},insertMode:!1,autoUnmask:!1},datetime12:{mask:"1/2/y h:s t",placeholder:"dd/mm/yyyy hh:mm xm",alias:"datetime",hourFormat:"12"},"hh:mm t":{mask:"h:s t",placeholder:"hh:mm xm",alias:"datetime",hourFormat:"12"},"h:s t":{mask:"h:s t",placeholder:"hh:mm xm",alias:"datetime",hourFormat:"12"},"hh:mm:ss":{mask:"h:s:s",autoUnmask:!1},"hh:mm":{mask:"h:s",autoUnmask:!1},date:{alias:"dd/mm/yyyy"}})})(jQuery);
-(function(j){j.extend(j.inputmask.defaults.aliases,{decimal:{mask:"~",placeholder:"",repeat:10,greedy:!1,numericInput:!0,digits:"*",groupSeparator:",",radixPoint:".",groupSize:3,autoGroup:!1,getMaskLength:function(a,d,c,e,b){var h=a.length;!d&&1<c&&(h+=a.length*(c-1));a=j.inputmask.escapeRegex.call(this,b.groupSeparator);b=j.inputmask.escapeRegex.call(this,b.radixPoint);e=e.join("");b=e.replace(RegExp(a,"g"),"").replace(RegExp(b),"");return h+(e.length-b.length)},postFormat:function(a,d,c,e){var b=
-a.slice();c||b.splice(d,0,"?");b=b.join("");if(e.autoGroup||c&&-1!=b.indexOf(e.groupSeparator)){for(var b=b.replace(RegExp("\\"+e.groupSeparator,"g"),""),h=b.split(e.radixPoint),b=h[0],g=RegExp("([-+]?[\\d?]+)([\\d?]{"+e.groupSize+"})");g.test(b);)b=b.replace(g,"$1"+e.groupSeparator+"$2"),b=b.replace(e.groupSeparator+e.groupSeparator,e.groupSeparator);1<h.length&&(b+=e.radixPoint+h[1])}a.length=b.length;e=0;for(h=b.length;e<h;e++)a[e]=b.charAt(e);d=c?d:j.inArray("?",a);c||a.splice(d,1);return d},
-regex:{number:function(a,d,c,e){a=j.inputmask.escapeRegex.call(this,a);c=j.inputmask.escapeRegex.call(this,c);e=isNaN(e)?e:"{0,"+e+"}";return RegExp("^[+-]?(\\d+|\\d{1,"+d+"}(("+a+"\\d{"+d+"})?)+)("+c+"\\d"+e+")?$")}},onKeyDown:function(a,d,c){var e=j(this);if(a.keyCode==c.keyCode.TAB){if(a=this._valueGet(),d=a.indexOf(c.radixPoint),-1!=d){for(var b=1;b<c.digits;b++)a[d+b]&&(a+="0");a!==e.val()&&e.val(a)}}else if(a.keyCode==c.keyCode.DELETE||a.keyCode==c.keyCode.BACKSPACE)c.postFormat(d,0,!0,c),this._valueSet(d.join(""))},
+(function(k){k.extend(k.inputmask.defaults.aliases,{decimal:{mask:"~",placeholder:"",repeat:10,greedy:!1,numericInput:!0,digits:"*",groupSeparator:",",radixPoint:".",groupSize:3,autoGroup:!1,getMaskLength:function(a,d,c,e,b){var h=a.length;!d&&1<c&&(h+=a.length*(c-1));a=k.inputmask.escapeRegex.call(this,b.groupSeparator);b=k.inputmask.escapeRegex.call(this,b.radixPoint);e=e.join("");b=e.replace(RegExp(a,"g"),"").replace(RegExp(b),"");return h+(e.length-b.length)},postFormat:function(a,d,c,e){var b=
+a.slice();c||b.splice(d,0,"?");b=b.join("");if(e.autoGroup||c&&-1!=b.indexOf(e.groupSeparator)){for(var b=b.replace(RegExp("\\"+e.groupSeparator,"g"),""),h=b.split(e.radixPoint),b=h[0],g=RegExp("([-+]?[\\d?]+)([\\d?]{"+e.groupSize+"})");g.test(b);)b=b.replace(g,"$1"+e.groupSeparator+"$2"),b=b.replace(e.groupSeparator+e.groupSeparator,e.groupSeparator);1<h.length&&(b+=e.radixPoint+h[1])}a.length=b.length;e=0;for(h=b.length;e<h;e++)a[e]=b.charAt(e);d=c?d:k.inArray("?",a);c||a.splice(d,1);return d},
+regex:{number:function(a,d,c,e){a=k.inputmask.escapeRegex.call(this,a);c=k.inputmask.escapeRegex.call(this,c);e=isNaN(e)?e:"{0,"+e+"}";return RegExp("^[+-]?(\\d+|\\d{1,"+d+"}(("+a+"\\d{"+d+"})?)+)("+c+"\\d"+e+")?$")}},onKeyDown:function(a,d,c){var e=k(this);if(a.keyCode==c.keyCode.TAB){if(a=this._valueGet(),d=a.indexOf(c.radixPoint),-1!=d){for(var b=1;b<c.digits;b++)a[d+b]&&(a+="0");a!==e.val()&&e.val(a)}}else if(a.keyCode==c.keyCode.DELETE||a.keyCode==c.keyCode.BACKSPACE)c.postFormat(d,0,!0,c),this._valueSet(d.join(""))},
definitions:{"~":{validator:function(a,d,c,e,b){if(""==a)return!1;if(1==c&&"0"===d[0]&&/[\d-]/.test(a))return d[0]="",{pos:0};var h=e?d.slice(0,c):d.slice();h.splice(c+1,0,a);h=h.join("");b.autoGroup&&!e&&(h=h.replace(RegExp("\\"+b.groupSeparator,"g"),""));var g=b.regex.number(b.groupSeparator,b.groupSize,b.radixPoint,b.digits).test(h);if(!g&&(h+="0",g=b.regex.number(b.groupSeparator,b.groupSize,b.radixPoint,b.digits).test(h),!g)){g=h.lastIndexOf(b.groupSeparator);for(i=h.length-g;3>=i;i++)h+="0";
-g=b.regex.number(b.groupSeparator,b.groupSize,b.radixPoint,b.digits).test(h);if(!g&&!e&&a==b.radixPoint&&(g=b.regex.number(b.groupSeparator,b.groupSize,b.radixPoint,b.digits).test("0"+h+"0")))return d[c]="0",c++,{pos:c}}return!1!=g&&!e&&a!=b.radixPoint?{pos:b.postFormat(d,c+1,!1,b)}:g},cardinality:1,prevalidator:null}},insertMode:!0,autoUnmask:!1},"non-negative-decimal":{regex:{number:function(a,d,c,e){a=j.inputmask.escapeRegex.call(this,a);c=j.inputmask.escapeRegex.call(this,c);e=isNaN(e)?e:"{0,"+
-e+"}";return RegExp("^[+]?(\\d+|\\d{1,"+d+"}(("+a+"\\d{"+d+"})?)+)("+c+"\\d"+e+")?$")}},alias:"decimal"},integer:{regex:{number:function(){return/^([+-]?\d*)$/}},alias:"decimal"}})})(jQuery);
+g=b.regex.number(b.groupSeparator,b.groupSize,b.radixPoint,b.digits).test(h);if(!g&&!e&&a==b.radixPoint&&(g=b.regex.number(b.groupSeparator,b.groupSize,b.radixPoint,b.digits).test("0"+h+"0")))return d[c]="0",c++,{pos:c}}return!1!=g&&!e&&a!=b.radixPoint?{pos:b.postFormat(d,c+1,!1,b)}:g},cardinality:1,prevalidator:null}},insertMode:!0,autoUnmask:!1},"non-negative-decimal":{regex:{number:function(a,d,c,e){a=k.inputmask.escapeRegex.call(this,a);c=k.inputmask.escapeRegex.call(this,c);e=isNaN(e)?e:"{0,"+
+e+"}";return RegExp("^[+]?(\\d+|\\d{1,"+d+"}(("+a+"\\d{"+d+"})?)+)("+c+"\\d"+e+")?$")}},alias:"decimal"},integer:{regex:{number:function(a,d){var c=k.inputmask.escapeRegex.call(this,a);return RegExp("^[+-]?(\\d+|\\d{1,"+d+"}(("+c+"\\d{"+d+"})?)+)$")}},alias:"decimal"}})})(jQuery);
View
2  dist/min/jquery.inputmask.numeric.extensions.js
@@ -3,4 +3,4 @@ c.slice();d||a.splice(e,0,"?");a=a.join("");if(b.autoGroup||d&&-1!=a.indexOf(b.g
regex:{number:function(c,e,d,b){c=h.inputmask.escapeRegex.call(this,c);d=h.inputmask.escapeRegex.call(this,d);b=isNaN(b)?b:"{0,"+b+"}";return RegExp("^[+-]?(\\d+|\\d{1,"+e+"}(("+c+"\\d{"+e+"})?)+)("+d+"\\d"+b+")?$")}},onKeyDown:function(c,e,d){var b=h(this);if(c.keyCode==d.keyCode.TAB){if(c=this._valueGet(),e=c.indexOf(d.radixPoint),-1!=e){for(var a=1;a<d.digits;a++)c[e+a]&&(c+="0");c!==b.val()&&b.val(c)}}else if(c.keyCode==d.keyCode.DELETE||c.keyCode==d.keyCode.BACKSPACE)d.postFormat(e,0,!0,d),this._valueSet(e.join(""))},
definitions:{"~":{validator:function(c,e,d,b,a){if(""==c)return!1;if(1==d&&"0"===e[0]&&/[\d-]/.test(c))return e[0]="",{pos:0};var f=b?e.slice(0,d):e.slice();f.splice(d+1,0,c);f=f.join("");a.autoGroup&&!b&&(f=f.replace(RegExp("\\"+a.groupSeparator,"g"),""));var g=a.regex.number(a.groupSeparator,a.groupSize,a.radixPoint,a.digits).test(f);if(!g&&(f+="0",g=a.regex.number(a.groupSeparator,a.groupSize,a.radixPoint,a.digits).test(f),!g)){g=f.lastIndexOf(a.groupSeparator);for(i=f.length-g;3>=i;i++)f+="0";
g=a.regex.number(a.groupSeparator,a.groupSize,a.radixPoint,a.digits).test(f);if(!g&&!b&&c==a.radixPoint&&(g=a.regex.number(a.groupSeparator,a.groupSize,a.radixPoint,a.digits).test("0"+f+"0")))return e[d]="0",d++,{pos:d}}return!1!=g&&!b&&c!=a.radixPoint?{pos:a.postFormat(e,d+1,!1,a)}:g},cardinality:1,prevalidator:null}},insertMode:!0,autoUnmask:!1},"non-negative-decimal":{regex:{number:function(c,e,d,b){c=h.inputmask.escapeRegex.call(this,c);d=h.inputmask.escapeRegex.call(this,d);b=isNaN(b)?b:"{0,"+
-b+"}";return RegExp("^[+]?(\\d+|\\d{1,"+e+"}(("+c+"\\d{"+e+"})?)+)("+d+"\\d"+b+")?$")}},alias:"decimal"},integer:{regex:{number:function(){return/^([+-]?\d*)$/}},alias:"decimal"}})})(jQuery);
+b+"}";return RegExp("^[+]?(\\d+|\\d{1,"+e+"}(("+c+"\\d{"+e+"})?)+)("+d+"\\d"+b+")?$")}},alias:"decimal"},integer:{regex:{number:function(c,e){var d=h.inputmask.escapeRegex.call(this,c);return RegExp("^[+-]?(\\d+|\\d{1,"+e+"}(("+d+"\\d{"+e+"})?)+)$")}},alias:"decimal"}})})(jQuery);
View
5 js/jquery.inputmask.numeric.extensions.js
@@ -152,7 +152,10 @@ Optional extensions on the jquery.inputmask base
},
'integer': {
regex: {
- number: function (groupSeparator, groupSize) { return new RegExp("^([\+\-]?\\d*)$"); }
+ number: function (groupSeparator, groupSize) {
+ var escapedGroupSeparator = $.inputmask.escapeRegex.call(this, groupSeparator);
+ return new RegExp("^[\+-]?(\\d+|\\d{1," + groupSize + "}((" + escapedGroupSeparator + "\\d{" + groupSize + "})?)+)$");
+ }
},
alias: "decimal"
}
Please sign in to comment.
Something went wrong with that request. Please try again.