Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 3.129.71.13
/*
Input Mask plugin for jquery
http://github.com/RobinHerbots/jquery.inputmask
Copyright (c) 2010 - 2014 Robin Herbots
Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
Version: 2.4.18
*/
(function(e){if(void 0===e.fn.inputmask){var a=function(a){var b=document.createElement("input");a="on"+a;var f=a in b;f||(b.setAttribute(a,"return;"),f="function"==typeof b[a]);return f},c=function(a,b,f){return(a=f.aliases[a])?(a.alias&&c(a.alias,void 0,f),e.extend(!0,f,a),e.extend(!0,f,b),!0):!1},d=function(a){function b(f){a.numericInput&&(f=f.split("").reverse().join(""));var c=!1,d=0,l=a.greedy,h=a.repeat;"*"==h&&(l=!1);1==f.length&&!1==l&&0!=h&&(a.placeholder="");f=e.map(f.split(""),function(f,
b){var e=[];if(f==a.escapeChar)c=!0;else if(f!=a.optionalmarker.start&&f!=a.optionalmarker.end||c){var l=a.definitions[f];if(l&&!c)for(var h=0;h<l.cardinality;h++)e.push(a.placeholder.charAt((d+h)%a.placeholder.length));else e.push(f),c=!1;d+=e.length;return e}});for(var g=f.slice(),t=1;t<h&&l;t++)g=g.concat(f.slice());return{mask:g,repeat:h,greedy:l}}function f(f){a.numericInput&&(f=f.split("").reverse().join(""));var b=!1,c=!1,d=!1;return e.map(f.split(""),function(f,e){var l=[];if(f==a.escapeChar)c=
!0;else{if(f!=a.optionalmarker.start||c){if(f!=a.optionalmarker.end||c){var h=a.definitions[f];if(h&&!c){for(var g=h.prevalidator,n=g?g.length:0,t=1;t<h.cardinality;t++){var k=n>=t?g[t-1]:[],u=k.validator,k=k.cardinality;l.push({fn:u?"string"==typeof u?RegExp(u):new function(){this.test=u}:/./,cardinality:k?k:1,optionality:b,newBlockMarker:!0==b?d:!1,offset:0,casing:h.casing,def:h.definitionSymbol||f});!0==b&&(d=!1)}l.push({fn:h.validator?"string"==typeof h.validator?RegExp(h.validator):new function(){this.test=
h.validator}:/./,cardinality:h.cardinality,optionality:b,newBlockMarker:d,offset:0,casing:h.casing,def:h.definitionSymbol||f})}else l.push({fn:null,cardinality:0,optionality:b,newBlockMarker:d,offset:0,casing:null,def:f}),c=!1;d=!1;return l}b=!1}else b=!0;d=!0}})}function d(f){for(var b=f.length,e=0;e<b&&f.charAt(e)!=a.optionalmarker.start;e++);var c=[f.substring(0,e)];e<b&&c.push(f.substring(e+1,b));return c}function c(n,k,m){for(var s=0,x=0,q=k.length,r=0;r<q&&!(k.charAt(r)==a.optionalmarker.start&&
s++,k.charAt(r)==a.optionalmarker.end&&x++,0<s&&s==x);r++);s=[k.substring(0,r)];r<q&&s.push(k.substring(r+1,q));r=d(s[0]);1<r.length?(k=n+r[0]+(a.optionalmarker.start+r[1]+a.optionalmarker.end)+(1<s.length?s[1]:""),-1==e.inArray(k,g)&&""!=k&&(g.push(k),q=b(k),h.push({mask:k,_buffer:q.mask,buffer:q.mask.slice(),tests:f(k),lastValidPosition:-1,greedy:q.greedy,repeat:q.repeat,metadata:m})),k=n+r[0]+(1<s.length?s[1]:""),-1==e.inArray(k,g)&&""!=k&&(g.push(k),q=b(k),h.push({mask:k,_buffer:q.mask,buffer:q.mask.slice(),
tests:f(k),lastValidPosition:-1,greedy:q.greedy,repeat:q.repeat,metadata:m})),1<d(r[1]).length&&c(n+r[0],r[1]+s[1],m),1<s.length&&1<d(s[1]).length&&(c(n+r[0]+(a.optionalmarker.start+r[1]+a.optionalmarker.end),s[1],m),c(n+r[0],s[1],m))):(k=n+s,-1==e.inArray(k,g)&&""!=k&&(g.push(k),q=b(k),h.push({mask:k,_buffer:q.mask,buffer:q.mask.slice(),tests:f(k),lastValidPosition:-1,greedy:q.greedy,repeat:q.repeat,metadata:m})))}var h=[],g=[];e.isFunction(a.mask)&&(a.mask=a.mask.call(this,a));e.isArray(a.mask)?
e.each(a.mask,function(a,f){void 0!=f.mask?c("",f.mask.toString(),f):c("",f.toString())}):c("",a.mask.toString());return a.greedy?h:h.sort(function(a,f){return a.mask.length-f.mask.length})},g=null!==navigator.userAgent.match(/msie 10/i),b=null!==navigator.userAgent.match(/iphone/i),h=null!==navigator.userAgent.match(/android.*safari.*/i),k=null!==navigator.userAgent.match(/android.*chrome.*/i),E=a("paste")?"paste":a("input")?"input":"propertychange",m=function(a,c,f,d){function l(){return a[c]}function m(){return l().tests}
function t(){return l()._buffer}function n(){return l().buffer}function M(b,d,z){function h(a,b,c,ia){for(var d=x(a),e=c?1:0,z="",$=b.buffer,g=b.tests[d].cardinality;g>e;g--)z+=D($,d-(g-1));c&&(z+=c);return null!=b.tests[d].fn?b.tests[d].fn.test(z,$,a,ia,f):c==D(b._buffer,a,!0)||c==f.skipOptionalPartCharacter?{refresh:!0,c:D(b._buffer,a,!0),pos:a}:!1}if(z=!0===z){var g=h(b,l(),d,z);!0===g&&(g={pos:b});return g}var aa=[],g=!1,k=c,t=n().slice(),m=l().lastValidPosition;B(b);var u=[];e.each(a,function(a,
f){if("object"==typeof f){c=a;var e=b,v=l().lastValidPosition,p;if(v==m){if(1<e-m)for(v=-1==v?0:v;v<e&&(p=h(v,l(),t[v],!0),!1!==p);v++)C(n(),v,t[v],!0),!0===p&&(p={pos:v}),p=p.pos||v,l().lastValidPosition<p&&(l().lastValidPosition=p);if(!s(e)&&!h(e,l(),d,z)){v=r(e)-e;for(p=0;p<v&&!1===h(++e,l(),d,z);p++);u.push(c)}}(l().lastValidPosition>=m||c==k)&&0<=e&&e<q()&&(g=h(e,l(),d,z),!1!==g&&(!0===g&&(g={pos:e}),p=g.pos||e,l().lastValidPosition<p&&(l().lastValidPosition=p)),aa.push({activeMasksetIndex:a,
result:g}))}});c=k;return function(f,c){var z=!1;e.each(c,function(a,b){if(z=-1==e.inArray(b.activeMasksetIndex,f)&&!1!==b.result)return!1});if(z)c=e.map(c,function(b,c){if(-1==e.inArray(b.activeMasksetIndex,f))return b;a[b.activeMasksetIndex].lastValidPosition=m});else{var g=-1,l=-1,P;e.each(c,function(a,b){-1!=e.inArray(b.activeMasksetIndex,f)&&!1!==b.result&(-1==g||g>b.result.pos)&&(g=b.result.pos,l=b.activeMasksetIndex)});c=e.map(c,function(c,z){if(-1!=e.inArray(c.activeMasksetIndex,f)){if(c.result.pos==
g)return c;if(!1!==c.result){for(var k=b;k<g;k++)if(P=h(k,a[c.activeMasksetIndex],a[l].buffer[k],!0),!1===P){a[c.activeMasksetIndex].lastValidPosition=g-1;break}else C(a[c.activeMasksetIndex].buffer,k,a[l].buffer[k],!0),a[c.activeMasksetIndex].lastValidPosition=k;P=h(g,a[c.activeMasksetIndex],d,!0);!1!==P&&(C(a[c.activeMasksetIndex].buffer,g,d,!0),a[c.activeMasksetIndex].lastValidPosition=g);return c}}})}return c}(u,aa)}function K(){var f=c,b={activeMasksetIndex:0,lastValidPosition:-1,next:-1};e.each(a,
function(a,f){"object"==typeof f&&(c=a,l().lastValidPosition>b.lastValidPosition?(b.activeMasksetIndex=a,b.lastValidPosition=l().lastValidPosition,b.next=r(l().lastValidPosition)):l().lastValidPosition==b.lastValidPosition&&(-1==b.next||b.next>r(l().lastValidPosition))&&(b.activeMasksetIndex=a,b.lastValidPosition=l().lastValidPosition,b.next=r(l().lastValidPosition)))});c=-1!=b.lastValidPosition&&a[f].lastValidPosition==b.lastValidPosition?f:b.activeMasksetIndex;f!=c&&(S(n(),r(b.lastValidPosition),
q()),l().writeOutBuffer=!0);p.data("_inputmask").activeMasksetIndex=c}function s(a){a=x(a);a=m()[a];return void 0!=a?a.fn:!1}function x(a){return a%m().length}function q(){return f.getMaskLength(t(),l().greedy,l().repeat,n(),f)}function r(a){var b=q();if(a>=b)return b;for(;++a<b&&!s(a););return a}function B(a){if(0>=a)return 0;for(;0<--a&&!s(a););return a}function C(a,b,f,c){c&&(b=Z(a,b));c=m()[x(b)];var e=f;if(void 0!=e&&void 0!=c)switch(c.casing){case "upper":e=f.toUpperCase();break;case "lower":e=
f.toLowerCase()}a[b]=e}function D(a,b,f){f&&(b=Z(a,b));return a[b]}function Z(a,b){for(var f;void 0==a[b]&&a.length<q();)for(f=0;void 0!==t()[f];)a.push(t()[f++]);return b}function G(a,b,f){a._valueSet(b.join(""));void 0!=f&&w(a,f)}function S(a,b,f,c){for(var e=q();b<f&&b<e;b++)!0===c?s(b)||C(a,b,""):C(a,b,D(t().slice(),b,!0))}function Q(a,b){var f=x(b);C(a,b,D(t(),f))}function I(a){return f.placeholder.charAt(a%f.placeholder.length)}function J(b,f,d,g,h){g=void 0!=g?g.slice():V(b._valueGet()).split("");
e.each(a,function(a,b){"object"==typeof b&&(b.buffer=b._buffer.slice(),b.lastValidPosition=-1,b.p=-1)});!0!==d&&(c=0);f&&b._valueSet("");q();e.each(g,function(a,c){if(!0===h){var g=l().p,g=-1==g?g:B(g),U=-1==g?a:r(g);-1==e.inArray(c,t().slice(g+1,U))&&W.call(b,void 0,!0,c.charCodeAt(0),f,d,a)}else W.call(b,void 0,!0,c.charCodeAt(0),f,d,a)});!0===d&&-1!=l().p&&(l().lastValidPosition=B(l().p))}function ja(a){return e.inputmask.escapeRegex.call(this,a)}function V(a){return a.replace(RegExp("("+ja(t().join(""))+
")*$"),"")}function X(a){var b=n(),f=b.slice(),c,e;for(e=f.length-1;0<=e;e--)if(c=x(e),m()[c].optionality)if(s(e)&&M(e,b[e],!0))break;else f.pop();else break;G(a,f)}function ka(a,b){if(!m()||!0!==b&&a.hasClass("hasDatepicker"))return a[0]._valueGet();var c=e.map(n(),function(a,b){return s(b)&&M(b,a,!0)?a:null}),c=(y?c.reverse():c).join("");return void 0!=f.onUnMask?f.onUnMask.call(this,n().join(""),c):c}function F(a){!y||"number"!=typeof a||f.greedy&&""==f.placeholder||(a=n().length-a);return a}function w(a,
b,c){var d=a.jquery&&0<a.length?a[0]:a;if("number"==typeof b)b=F(b),c=F(c),e(a).is(":visible")&&(c="number"==typeof c?c:b,d.scrollLeft=d.scrollWidth,!1==f.insertMode&&b==c&&c++,d.setSelectionRange?(d.selectionStart=b,d.selectionEnd=h?b:c):d.createTextRange&&(a=d.createTextRange(),a.collapse(!0),a.moveEnd("character",c),a.moveStart("character",b),a.select()));else{if(!e(a).is(":visible"))return{begin:0,end:0};d.setSelectionRange?(b=d.selectionStart,c=d.selectionEnd):document.selection&&document.selection.createRange&&
(a=document.selection.createRange(),b=0-a.duplicate().moveStart("character",-1E5),c=b+a.text.length);b=F(b);c=F(c);return{begin:b,end:c}}}function N(b){if("*"!=f.repeat){var d=!1,g=0,h=c;e.each(a,function(a,f){if("object"==typeof f){c=a;var e=B(q());if(f.lastValidPosition>=g&&f.lastValidPosition==e){for(var h=!0,l=0;l<=e;l++){var k=s(l),U=x(l);if(k&&(void 0==b[l]||b[l]==I(l))||!k&&b[l]!=t()[U]){h=!1;break}}if(d=d||h)return!1}g=f.lastValidPosition}});c=h;return d}}function la(a){a=e._data(a).events;
e.each(a,function(a,b){e.each(b,function(a,b){if("inputmask"==b.namespace&&"setvalue"!=b.type){var f=b.handler;b.handler=function(a){if(this.readOnly||this.disabled)a.preventDefault;else return f.apply(this,arguments)}}})})}function ma(a){var b;Object.getOwnPropertyDescriptor&&(b=Object.getOwnPropertyDescriptor(a,"value"));if(b&&b.get){if(!a._valueGet){var f=b.get,c=b.set;a._valueGet=function(){return y?f.call(this).split("").reverse().join(""):f.call(this)};a._valueSet=function(a){c.call(this,y?
a.split("").reverse().join(""):a)};Object.defineProperty(a,"value",{get:function(){var a=e(this),b=e(this).data("_inputmask"),c=b.masksets,d=b.activeMasksetIndex;return b&&b.opts.autoUnmask?a.inputmask("unmaskedvalue"):f.call(this)!=c[d]._buffer.join("")?f.call(this):""},set:function(a){c.call(this,a);e(this).triggerHandler("setvalue.inputmask")}})}}else if(document.__lookupGetter__&&a.__lookupGetter__("value"))a._valueGet||(f=a.__lookupGetter__("value"),c=a.__lookupSetter__("value"),a._valueGet=
function(){return y?f.call(this).split("").reverse().join(""):f.call(this)},a._valueSet=function(a){c.call(this,y?a.split("").reverse().join(""):a)},a.__defineGetter__("value",function(){var a=e(this),b=e(this).data("_inputmask"),c=b.masksets,d=b.activeMasksetIndex;return b&&b.opts.autoUnmask?a.inputmask("unmaskedvalue"):f.call(this)!=c[d]._buffer.join("")?f.call(this):""}),a.__defineSetter__("value",function(a){c.call(this,a);e(this).triggerHandler("setvalue.inputmask")}));else if(a._valueGet||(a._valueGet=
function(){return y?this.value.split("").reverse().join(""):this.value},a._valueSet=function(a){this.value=y?a.split("").reverse().join(""):a}),void 0==e.valHooks.text||!0!=e.valHooks.text.inputmaskpatch)f=e.valHooks.text&&e.valHooks.text.get?e.valHooks.text.get:function(a){return a.value},c=e.valHooks.text&&e.valHooks.text.set?e.valHooks.text.set:function(a,b){a.value=b;return a},jQuery.extend(e.valHooks,{text:{get:function(a){var b=e(a);if(b.data("_inputmask")){if(b.data("_inputmask").opts.autoUnmask)return b.inputmask("unmaskedvalue");
a=f(a);b=b.data("_inputmask");return a!=b.masksets[b.activeMasksetIndex]._buffer.join("")?a:""}return f(a)},set:function(a,b){var f=e(a),d=c(a,b);f.data("_inputmask")&&f.triggerHandler("setvalue.inputmask");return d},inputmaskpatch:!0}})}function ba(a,b,f,c){var d=n();if(!1!==c)for(;!s(a)&&0<=a-1;)a--;for(c=a;c<b&&c<q();c++)if(s(c)){Q(d,c);var e=r(c),g=D(d,e);if(g!=I(e))if(e<q()&&!1!==M(c,g,!0)&&m()[x(c)].def==m()[x(e)].def)C(d,c,g,!0);else if(s(c))break}else Q(d,c);void 0!=f&&C(d,B(b),f);if(!1==
l().greedy){b=V(d.join("")).split("");d.length=b.length;c=0;for(f=d.length;c<f;c++)d[c]=b[c];0==d.length&&(l().buffer=t().slice())}return a}function ca(a,b,f){var c=n();if(D(c,a,!0)!=I(a))for(var d=B(b);d>a&&0<=d;d--)if(s(d)){var e=B(d),g=D(c,e);g!=I(e)&&!1!==M(e,g,!0)&&m()[x(d)].def==m()[x(e)].def&&(C(c,d,g,!0),Q(c,e))}else Q(c,d);void 0!=f&&D(c,a)==I(a)&&C(c,a,f);a=c.length;if(!1==l().greedy){f=V(c.join("")).split("");c.length=f.length;d=0;for(e=c.length;d<e;d++)c[d]=f[d];0==c.length&&(l().buffer=
t().slice())}return b-(a-c.length)}function da(b,c,d){if(f.numericInput||y){switch(c){case f.keyCode.BACKSPACE:c=f.keyCode.DELETE;break;case f.keyCode.DELETE:c=f.keyCode.BACKSPACE}if(y){var e=d.end;d.end=d.begin;d.begin=e}}e=!0;d.begin==d.end?(e=c==f.keyCode.BACKSPACE?d.begin-1:d.begin,f.isNumeric&&""!=f.radixPoint&&n()[e]==f.radixPoint&&(d.begin=n().length-1==e?d.begin:c==f.keyCode.BACKSPACE?e:r(e),d.end=d.begin),e=!1,c==f.keyCode.BACKSPACE?d.begin--:c==f.keyCode.DELETE&&d.end++):1!=d.end-d.begin||
f.insertMode||(e=!1,c==f.keyCode.BACKSPACE&&d.begin--);S(n(),d.begin,d.end);var g=q();if(!1==f.greedy)ba(d.begin,g,void 0,!y&&c==f.keyCode.BACKSPACE&&!e);else{for(var h=d.begin,k=d.begin;k<d.end;k++)if(s(k)||!e)h=ba(d.begin,g,void 0,!y&&c==f.keyCode.BACKSPACE&&!e);e||(d.begin=h)}c=r(-1);S(n(),d.begin,d.end,!0);J(b,!1,void 0==a[1]||c>=d.end,n());l().lastValidPosition<c?(l().lastValidPosition=-1,l().p=c):l().p=d.begin}function ea(a){Y=!1;var c=this,d=e(c),g=a.keyCode,h=w(c);g==f.keyCode.BACKSPACE||
g==f.keyCode.DELETE||b&&127==g||a.ctrlKey&&88==g?(a.preventDefault(),88==g&&(H=n().join("")),da(c,g,h),K(),G(c,n(),l().p),c._valueGet()==t().join("")&&d.trigger("cleared"),f.showTooltip&&d.prop("title",l().mask)):g==f.keyCode.END||g==f.keyCode.PAGE_DOWN?setTimeout(function(){var b=r(l().lastValidPosition);f.insertMode||b!=q()||a.shiftKey||b--;w(c,a.shiftKey?h.begin:b,b)},0):g==f.keyCode.HOME&&!a.shiftKey||g==f.keyCode.PAGE_UP?w(c,0,a.shiftKey?h.begin:0):g==f.keyCode.ESCAPE||90==g&&a.ctrlKey?(J(c,
!0,!1,H.split("")),d.click()):g!=f.keyCode.INSERT||a.shiftKey||a.ctrlKey?!1!=f.insertMode||a.shiftKey||(g==f.keyCode.RIGHT?setTimeout(function(){var a=w(c);w(c,a.begin)},0):g==f.keyCode.LEFT&&setTimeout(function(){var a=w(c);w(c,a.begin-1)},0)):(f.insertMode=!f.insertMode,w(c,f.insertMode||h.begin!=q()?h.begin:h.begin-1));d=w(c);!0===f.onKeyDown.call(this,a,n(),f)&&w(c,d.begin,d.end);fa=-1!=e.inArray(g,f.ignorables)}function W(b,d,g,h,k,t){if(void 0==g&&Y)return!1;Y=!0;var m=e(this);b=b||window.event;
g=d?g:b.which||b.charCode||b.keyCode;if(!(!0===d||b.ctrlKey&&b.altKey)&&(b.ctrlKey||b.metaKey||fa))return!0;if(g){!0!==d&&46==g&&!1==b.shiftKey&&","==f.radixPoint&&(g=44);var u,p,s=String.fromCharCode(g);d?(g=k?t:l().lastValidPosition+1,u={begin:g,end:g}):u=w(this);t=y?1<u.begin-u.end||1==u.begin-u.end&&f.insertMode:1<u.end-u.begin||1==u.end-u.begin&&f.insertMode;var T=c;t&&(c=T,e.each(a,function(a,b){"object"==typeof b&&(c=a,l().undoBuffer=n().join(""))}),da(this,f.keyCode.DELETE,u),f.insertMode||
e.each(a,function(a,b){"object"==typeof b&&(c=a,ca(u.begin,q()),l().lastValidPosition=r(l().lastValidPosition))}),c=T);var x=n().join("").indexOf(f.radixPoint);f.isNumeric&&!0!==d&&-1!=x&&(f.greedy&&u.begin<=x?(u.begin=B(u.begin),u.end=u.begin):s==f.radixPoint&&(u.begin=x,u.end=u.begin));var A=u.begin;g=M(A,s,k);!0===k&&(g=[{activeMasksetIndex:c,result:g}]);var v=-1;e.each(g,function(a,b){c=b.activeMasksetIndex;l().writeOutBuffer=!0;var d=b.result;if(!1!==d){var e=!1,g=n();!0!==d&&(e=d.refresh,A=
void 0!=d.pos?d.pos:A,s=void 0!=d.c?d.c:s);if(!0!==e){if(!0==f.insertMode){d=q();for(g=g.slice();D(g,d,!0)!=I(d)&&d>=A;)d=0==d?-1:B(d);d>=A?(ca(A,q(),s),g=l().lastValidPosition,d=r(g),d!=q()&&g>=A&&D(n(),d,!0)!=I(d)&&(l().lastValidPosition=d)):l().writeOutBuffer=!1}else C(g,A,s,!0);if(-1==v||v>r(A))v=r(A)}else!k&&(g=A<q()?A+1:A,-1==v||v>g)&&(v=g);v>l().p&&(l().p=v)}});!0!==k&&(c=T,K());if(!1!==h&&(e.each(g,function(a,b){if(b.activeMasksetIndex==c)return p=b,!1}),void 0!=p)){var E=this;setTimeout(function(){f.onKeyValidation.call(E,
p.result,f)},0);if(l().writeOutBuffer&&!1!==p.result){var F=n();h=d?void 0:f.numericInput?A>x?B(v):s==f.radixPoint?v-1:B(v-1):v;G(this,F,h);!0!==d&&setTimeout(function(){!0===N(F)&&m.trigger("complete");O=!0;m.trigger("input")},0)}else t&&(l().buffer=l().undoBuffer.split(""))}f.showTooltip&&m.prop("title",l().mask);b&&b.preventDefault()}}function na(a){var b=e(this),c=a.keyCode,d=n();k&&c==f.keyCode.BACKSPACE&&ga==this._valueGet()&&ea.call(this,a);f.onKeyUp.call(this,a,d,f);c==f.keyCode.TAB&&f.showMaskOnFocus&&
(b.hasClass("focus.inputmask")&&0==this._valueGet().length?(d=t().slice(),G(this,d),w(this,0),H=n().join("")):(G(this,d),d.join("")==t().join("")&&-1!=e.inArray(f.radixPoint,d)?(w(this,F(0)),b.click()):w(this,F(0),F(q()))))}function ha(a){if(!0===O)return O=!1,!0;a=e(this);ga=n().join("");J(this,!1,!1);G(this,n());!0===N(n())&&a.trigger("complete");a.click()}function oa(b){p=e(b);if(p.is(":input")){p.data("_inputmask",{masksets:a,activeMasksetIndex:c,opts:f,isRTL:!1});f.showTooltip&&p.prop("title",
l().mask);l().greedy=l().greedy?l().greedy:0==l().repeat;if(null!=p.attr("maxLength")){var d=p.prop("maxLength");-1<d&&e.each(a,function(a,b){"object"==typeof b&&"*"==b.repeat&&(b.repeat=d)});q()>=d&&-1<d&&(d<t().length&&(t().length=d),!1==l().greedy&&(l().repeat=Math.round(d/t().length)),p.prop("maxLength",2*q()))}ma(b);f.numericInput&&(f.isNumeric=f.numericInput);("rtl"==b.dir||f.numericInput&&f.rightAlignNumerics||f.isNumeric&&f.rightAlignNumerics)&&p.css("text-align","right");if("rtl"==b.dir||
f.numericInput){b.dir="ltr";p.removeAttr("dir");var h=p.data("_inputmask");h.isRTL=!0;p.data("_inputmask",h);y=!0}p.unbind(".inputmask");p.removeClass("focus.inputmask");p.closest("form").bind("submit",function(){H!=n().join("")&&p.change()}).bind("reset",function(){setTimeout(function(){p.trigger("setvalue")},0)});p.bind("mouseenter.inputmask",function(){!e(this).hasClass("focus.inputmask")&&f.showMaskOnHover&&this._valueGet()!=n().join("")&&G(this,n())}).bind("blur.inputmask",function(){var b=e(this),
d=this._valueGet(),g=n();b.removeClass("focus.inputmask");H!=n().join("")&&b.change();f.clearMaskOnLostFocus&&""!=d&&(d==t().join("")?this._valueSet(""):X(this));!1===N(g)&&(b.trigger("incomplete"),f.clearIncomplete&&(e.each(a,function(a,b){"object"==typeof b&&(b.buffer=b._buffer.slice(),b.lastValidPosition=-1)}),c=0,f.clearMaskOnLostFocus?this._valueSet(""):(g=t().slice(),G(this,g))))}).bind("focus.inputmask",function(){var a=e(this),b=this._valueGet();f.showMaskOnFocus&&!a.hasClass("focus.inputmask")&&
(!f.showMaskOnHover||f.showMaskOnHover&&""==b)&&this._valueGet()!=n().join("")&&G(this,n(),r(l().lastValidPosition));a.addClass("focus.inputmask");H=n().join("")}).bind("mouseleave.inputmask",function(){var a=e(this);f.clearMaskOnLostFocus&&(a.hasClass("focus.inputmask")||this._valueGet()==a.attr("placeholder")||(this._valueGet()==t().join("")||""==this._valueGet()?this._valueSet(""):X(this)))}).bind("click.inputmask",function(){var a=this;setTimeout(function(){var b=w(a),c=n();if(b.begin==b.end){var b=
y?F(b.begin):b.begin,d=l().lastValidPosition,c=f.isNumeric?!1===f.skipRadixDance&&""!=f.radixPoint&&-1!=e.inArray(f.radixPoint,c)?f.numericInput?r(e.inArray(f.radixPoint,c)):e.inArray(f.radixPoint,c):r(d):r(d);b<c?s(b)?w(a,b):w(a,r(b)):w(a,c)}},0)}).bind("dblclick.inputmask",function(){var a=this;setTimeout(function(){w(a,0,r(l().lastValidPosition))},0)}).bind(E+".inputmask dragdrop.inputmask drop.inputmask",function(a){if(!0===O)return O=!1,!0;var b=this,c=e(b);if("propertychange"==a.type&&b._valueGet().length<=
q())return!0;setTimeout(function(){var a=void 0!=f.onBeforePaste?f.onBeforePaste.call(this,b._valueGet()):b._valueGet();J(b,!0,!1,a.split(""),!0);!0===N(n())&&c.trigger("complete");c.click()},0)}).bind("setvalue.inputmask",function(){J(this,!0);H=n().join("");this._valueGet()==t().join("")&&this._valueSet("")}).bind("complete.inputmask",f.oncomplete).bind("incomplete.inputmask",f.onincomplete).bind("cleared.inputmask",f.oncleared).bind("keyup.inputmask",na);k?p.bind("input.inputmask",ha):p.bind("keydown.inputmask",
ea).bind("keypress.inputmask",W);g&&p.bind("input.inputmask",ha);J(b,!0,!1);H=n().join("");var u;try{u=document.activeElement}catch(m){}u===b?(p.addClass("focus.inputmask"),w(b,r(l().lastValidPosition))):f.clearMaskOnLostFocus?n().join("")==t().join("")?b._valueSet(""):X(b):G(b,n());la(b)}}var y=!1,H=n().join(""),p,ga,Y=!1,O=!1,fa=!1;if(void 0!=d)switch(d.action){case "isComplete":return N(d.buffer);case "unmaskedvalue":return y=d.$input.data("_inputmask").isRTL,ka(d.$input,d.skipDatepickerCheck);
case "mask":oa(d.el);break;case "format":return p=e({}),p.data("_inputmask",{masksets:a,activeMasksetIndex:c,opts:f,isRTL:f.numericInput}),f.numericInput&&(f.isNumeric=f.numericInput,y=!0),J(p,!1,!1,d.value.split(""),!0),n().join("")}};e.inputmask={defaults:{placeholder:"_",optionalmarker:{start:"[",end:"]"},quantifiermarker:{start:"{",end:"}"},groupmarker:{start:"(",end:")"},escapeChar:"\\",mask:null,oncomplete:e.noop,onincomplete:e.noop,oncleared:e.noop,repeat:0,greedy:!0,autoUnmask:!1,clearMaskOnLostFocus:!0,
insertMode:!0,clearIncomplete:!1,aliases:{},onKeyUp:e.noop,onKeyDown:e.noop,onBeforePaste:void 0,onUnMask:void 0,showMaskOnFocus:!0,showMaskOnHover:!0,onKeyValidation:e.noop,skipOptionalPartCharacter:" ",showTooltip:!1,numericInput:!1,isNumeric:!1,radixPoint:"",skipRadixDance:!1,rightAlignNumerics:!0,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:[8,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,b,c,d,
g){g=a.length;b||("*"==c?g=d.length+1:1<c&&(g+=a.length*(c-1)));return g}},escapeRegex:function(a){return a.replace(RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\)","gim"),"\\$1")},format:function(a,b){var f=e.extend(!0,{},e.inputmask.defaults,b);c(f.alias,b,f);return m(d(f),0,f,{action:"format",value:a})}};e.fn.inputmask=function(a,b){var f=e.extend(!0,{},e.inputmask.defaults,b),g,h=0;if("string"===typeof a)switch(a){case "mask":return c(f.alias,b,f),g=d(f),0==g.length?this:this.each(function(){m(e.extend(!0,
{},g),0,f,{action:"mask",el:this})});case "unmaskedvalue":var k=e(this);return k.data("_inputmask")?(g=k.data("_inputmask").masksets,h=k.data("_inputmask").activeMasksetIndex,f=k.data("_inputmask").opts,m(g,h,f,{action:"unmaskedvalue",$input:k})):k.val();case "remove":return this.each(function(){var a=e(this);if(a.data("_inputmask")){g=a.data("_inputmask").masksets;h=a.data("_inputmask").activeMasksetIndex;f=a.data("_inputmask").opts;this._valueSet(m(g,h,f,{action:"unmaskedvalue",$input:a,skipDatepickerCheck:!0}));
a.removeData("_inputmask");a.unbind(".inputmask");a.removeClass("focus.inputmask");var b;Object.getOwnPropertyDescriptor&&(b=Object.getOwnPropertyDescriptor(this,"value"));b&&b.get?this._valueGet&&Object.defineProperty(this,"value",{get:this._valueGet,set:this._valueSet}):document.__lookupGetter__&&this.__lookupGetter__("value")&&this._valueGet&&(this.__defineGetter__("value",this._valueGet),this.__defineSetter__("value",this._valueSet));try{delete this._valueGet,delete this._valueSet}catch(c){this._valueSet=
this._valueGet=void 0}}});case "getemptymask":return this.data("_inputmask")?(g=this.data("_inputmask").masksets,h=this.data("_inputmask").activeMasksetIndex,g[h]._buffer.join("")):"";case "hasMaskedValue":return this.data("_inputmask")?!this.data("_inputmask").opts.autoUnmask:!1;case "isComplete":return g=this.data("_inputmask").masksets,h=this.data("_inputmask").activeMasksetIndex,f=this.data("_inputmask").opts,m(g,h,f,{action:"isComplete",buffer:this[0]._valueGet().split("")});case "getmetadata":if(this.data("_inputmask"))return g=
this.data("_inputmask").masksets,h=this.data("_inputmask").activeMasksetIndex,g[h].metadata;break;default:return c(a,b,f)||(f.mask=a),g=d(f),0==g.length?this:this.each(function(){m(e.extend(!0,{},g),h,f,{action:"mask",el:this})})}else{if("object"==typeof a)return f=e.extend(!0,{},e.inputmask.defaults,a),c(f.alias,a,f),g=d(f),0==g.length?this:this.each(function(){m(e.extend(!0,{},g),h,f,{action:"mask",el:this})});if(void 0==a)return this.each(function(){var a=e(this).attr("data-inputmask");if(a&&""!=
a)try{var a=a.replace(RegExp("'","g"),'"'),d=e.parseJSON("{"+a+"}");e.extend(!0,d,b);f=e.extend(!0,{},e.inputmask.defaults,d);c(f.alias,d,f);f.alias=void 0;e(this).inputmask(f)}catch(g){}})}}}})(jQuery);
(function(e){e.extend(e.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"}});e.extend(e.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(a,c,d,g,b){return!0},cardinality:8,prevalidator:function(){for(var a=[],c=0;8>c;c++)a[c]=function(){var a=c;return{validator:function(c,b,e,k,E){if(E.regex["urlpre"+(a+1)]){var m=c;0<a+1-c.length&&(m=b.join("").substring(0,a+1-c.length)+""+m);c=E.regex["urlpre"+(a+1)].test(m);if(!k&&!c){e-=a;for(k=0;k<E.defaultPrefix.length;k++)b[e]=E.defaultPrefix[k],e++;for(k=0;k<m.length-1;k++)b[e]=m[k],e++;return{pos:e}}return c}return!1},
cardinality:a}}();return a}()},r:{validator:".",cardinality:50}},insertMode:!1,autoUnmask:!1},ip:{mask:["[[x]y]z.[[x]y]z.[[x]y]z.x[yz]","[[x]y]z.[[x]y]z.[[x]y]z.[[x]y][z]"],definitions:{x:{validator:"[012]",cardinality:1,definitionSymbol:"i"},y:{validator:function(a,c,d,g,b){a=-1<d-1&&"."!=c[d-1]?c[d-1]+a:"0"+a;return/2[0-5]|[01][0-9]/.test(a)},cardinality:1,definitionSymbol:"i"},z:{validator:function(a,c,d,g,b){-1<d-1&&"."!=c[d-1]?(a=c[d-1]+a,a=-1<d-2&&"."!=c[d-2]?c[d-2]+a:"0"+a):a="00"+a;return/25[0-5]|2[0-4][0-9]|[01][0-9][0-9]/.test(a)},
cardinality:1,definitionSymbol:"i"}}}})})(jQuery);
(function(e){e.extend(e.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}]}});e.extend(e.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=e.inputmask.escapeRegex.call(this,a);return RegExp("((0[1-9]|[12][0-9]|3[01])"+a+"[01])")},val2:function(a){a=e.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,c,d){var g=parseInt(a.concat(c.toString().slice(a.length)));a=parseInt(a.concat(d.toString().slice(a.length)));return(NaN!=g?c<=g&&g<=d:!1)||(NaN!=a?c<=a&&a<=d:!1)},determinebaseyear:function(a,c,d){var g=(new Date).getFullYear();if(a>g)return a;if(c<g){for(var g=c.toString().slice(0,2),b=c.toString().slice(2,4);c<g+d;)g--;c=g+b;return a>c?a:c}return g},onKeyUp:function(a,c,d){c=e(this);a.ctrlKey&&a.keyCode==
d.keyCode.RIGHT&&(a=new Date,c.val(a.getDate().toString()+(a.getMonth()+1).toString()+a.getFullYear().toString()))},definitions:{1:{validator:function(a,c,d,g,b){var e=b.regex.val1.test(a);return g||e||a.charAt(1)!=b.separator&&-1=="-./".indexOf(a.charAt(1))||!(e=b.regex.val1.test("0"+a.charAt(0)))?e:(c[d-1]="0",{pos:d,c:a.charAt(0)})},cardinality:2,prevalidator:[{validator:function(a,c,d,g,b){var e=b.regex.val1pre.test(a);return g||e||!(e=b.regex.val1.test("0"+a))?e:(c[d]="0",d++,{pos:d})},cardinality:1}]},
2:{validator:function(a,c,d,g,b){var e=c.join("").substr(0,3);-1!=e.indexOf(b.placeholder[0])&&(e="01"+b.separator);var k=b.regex.val2(b.separator).test(e+a);return g||k||a.charAt(1)!=b.separator&&-1=="-./".indexOf(a.charAt(1))||!(k=b.regex.val2(b.separator).test(e+"0"+a.charAt(0)))?k:(c[d-1]="0",{pos:d,c:a.charAt(0)})},cardinality:2,prevalidator:[{validator:function(a,c,d,g,b){var e=c.join("").substr(0,3);-1!=e.indexOf(b.placeholder[0])&&(e="01"+b.separator);var k=b.regex.val2pre(b.separator).test(e+
a);return g||k||!(k=b.regex.val2(b.separator).test(e+"0"+a))?k:(c[d]="0",d++,{pos:d})},cardinality:1}]},y:{validator:function(a,c,d,g,b){if(b.isInYearRange(a,b.yearrange.minyear,b.yearrange.maxyear)){if(c.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,c,d,g,b){var e=b.isInYearRange(a,b.yearrange.minyear,b.yearrange.maxyear);if(!g&&!e){g=b.determinebaseyear(b.yearrange.minyear,b.yearrange.maxyear,
a+"0").toString().slice(0,1);if(e=b.isInYearRange(g+a,b.yearrange.minyear,b.yearrange.maxyear))return c[d++]=g[0],{pos:d};g=b.determinebaseyear(b.yearrange.minyear,b.yearrange.maxyear,a+"0").toString().slice(0,2);if(e=b.isInYearRange(g+a,b.yearrange.minyear,b.yearrange.maxyear))return c[d++]=g[0],c[d++]=g[1],{pos:d}}return e},cardinality:1},{validator:function(a,c,d,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,
a).toString().slice(0,2);if(h=b.isInYearRange(a[0]+e[1]+a[1],b.yearrange.minyear,b.yearrange.maxyear))return c[d++]=e[1],{pos:d};e=b.determinebaseyear(b.yearrange.minyear,b.yearrange.maxyear,a).toString().slice(0,2);b.isInYearRange(e+a,b.yearrange.minyear,b.yearrange.maxyear)?c.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 c[d-1]=e[0],c[d++]=e[1],c[d++]=a[0],{pos:d}}return h},cardinality:2},{validator:function(a,c,d,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=e.inputmask.escapeRegex.call(this,a);return RegExp("((0[13-9]|1[012])"+a+"[0-3])|(02"+a+"[0-2])")},val2:function(a){a=e.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,
c,d){c=e(this);a.ctrlKey&&a.keyCode==d.keyCode.RIGHT&&(a=new Date,c.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,c,d){c=e(this);a.ctrlKey&&a.keyCode==d.keyCode.RIGHT&&(a=new Date,c.val(a.getFullYear().toString()+(a.getMonth()+1).toString()+a.getDate().toString()))},definitions:{2:{validator:function(a,c,d,e,b){var h=c.join("").substr(5,3);-1!=h.indexOf(b.placeholder[5])&&
(h="01"+b.separator);var k=b.regex.val2(b.separator).test(h+a);if(!(e||k||a.charAt(1)!=b.separator&&-1=="-./".indexOf(a.charAt(1)))&&(k=b.regex.val2(b.separator).test(h+"0"+a.charAt(0))))return c[d-1]="0",{pos:d,c:a.charAt(0)};if(k){if(c.join("").substr(4,4)+a!=b.leapday)return!0;a=parseInt(c.join("").substr(0,4),10);return 0===a%4?0===a%100?0===a%400?!0:!1:!0:!1}return k},cardinality:2,prevalidator:[{validator:function(a,c,d,e,b){var h=c.join("").substr(5,3);-1!=h.indexOf(b.placeholder[5])&&(h="01"+
b.separator);var k=b.regex.val2pre(b.separator).test(h+a);return e||k||!(k=b.regex.val2(b.separator).test(h+"0"+a))?k:(c[d]="0",d++,{pos:d})},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]/,ampm:/^[a|p|A|P][m|M]/},timeseparator:":",hourFormat:"24",definitions:{h:{validator:function(a,c,d,e,
b){var h=b.regex.hrs.test(a);return e||h||a.charAt(1)!=b.timeseparator&&-1=="-.:".indexOf(a.charAt(1))||!(h=b.regex.hrs.test("0"+a.charAt(0)))?h&&"24"!==b.hourFormat&&b.regex.hrs24.test(a)?(a=parseInt(a,10),c[d+5]=24==a?"a":"p",c[d+6]="m",a-=12,10>a?(c[d]=a.toString(),c[d-1]="0"):(c[d]=a.toString().charAt(1),c[d-1]=a.toString().charAt(0)),{pos:d,c:c[d]}):h:(c[d-1]="0",c[d]=a.charAt(0),d++,{pos:d})},cardinality:2,prevalidator:[{validator:function(a,c,d,e,b){var h=b.regex.hrspre.test(a);return e||h||
!(h=b.regex.hrs.test("0"+a))?h:(c[d]="0",d++,{pos:d})},cardinality:1}]},t:{validator:function(a,c,d,e,b){return b.regex.ampm.test(a+"m")},casing:"lower",cardinality:1}},insertMode:!1,autoUnmask:!1},datetime12:{mask:"1/2/y h:s t\\m",placeholder:"dd/mm/yyyy hh:mm xm",alias:"datetime",hourFormat:"12"},"hh:mm t":{mask:"h:s t\\m",placeholder:"hh:mm xm",alias:"datetime",hourFormat:"12"},"h:s t":{mask:"h:s t\\m",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"},"mm/yyyy":{mask:"1/y",placeholder:"mm/yyyy",leapday:"donotuse",separator:"/",alias:"mm/dd/yyyy"}})})(jQuery);
(function(e){e.extend(e.inputmask.defaults.aliases,{decimal:{mask:"~",placeholder:"",repeat:"*",greedy:!1,numericInput:!1,isNumeric:!0,digits:"*",groupSeparator:"",radixPoint:".",groupSize:3,autoGroup:!1,allowPlus:!0,allowMinus:!0,integerDigits:"*",defaultValue:"",prefix:"",suffix:"",getMaskLength:function(a,c,d,g,b){var h=a.length;c||("*"==d?h=g.length+1:1<d&&(h+=a.length*(d-1)));a=e.inputmask.escapeRegex.call(this,b.groupSeparator);b=e.inputmask.escapeRegex.call(this,b.radixPoint);g=g.join("");
b=g.replace(RegExp(a,"g"),"").replace(RegExp(b),"");return h+(g.length-b.length)},postFormat:function(a,c,d,g){if(""==g.groupSeparator)return c;var b=a.slice();e.inArray(g.radixPoint,a);d||b.splice(c,0,"?");b=b.join("");if(g.autoGroup||d&&-1!=b.indexOf(g.groupSeparator)){for(var h=e.inputmask.escapeRegex.call(this,g.groupSeparator),b=b.replace(RegExp(h,"g"),""),h=b.split(g.radixPoint),b=h[0],k=RegExp("([-+]?[\\d?]+)([\\d?]{"+g.groupSize+"})");k.test(b);)b=b.replace(k,"$1"+g.groupSeparator+"$2"),b=
b.replace(g.groupSeparator+g.groupSeparator,g.groupSeparator);1<h.length&&(b+=g.radixPoint+h[1])}a.length=b.length;g=0;for(h=b.length;g<h;g++)a[g]=b.charAt(g);b=e.inArray("?",a);d||a.splice(b,1);return d?c:b},regex:{number:function(a){var c=e.inputmask.escapeRegex.call(this,a.groupSeparator),d=e.inputmask.escapeRegex.call(this,a.radixPoint),g=isNaN(a.digits)?a.digits:"{0,"+a.digits+"}";return RegExp("^"+(a.allowPlus||a.allowMinus?"["+(a.allowPlus?"+":"")+(a.allowMinus?"-":"")+"]?":"")+"(\\d+|\\d{1,"+
a.groupSize+"}(("+c+"\\d{"+a.groupSize+"})?)+)("+d+"\\d"+g+")?$")}},onKeyDown:function(a,c,d){var g=e(this);if(a.keyCode==d.keyCode.TAB){if(a=e.inArray(d.radixPoint,c),-1!=a){for(var b=g.data("_inputmask").masksets,g=g.data("_inputmask").activeMasksetIndex,h=1;h<=d.digits&&h<d.getMaskLength(b[g]._buffer,b[g].greedy,b[g].repeat,c,d);h++)if(void 0==c[a+h]||""==c[a+h])c[a+h]="0";this._valueSet(c.join(""))}}else if(a.keyCode==d.keyCode.DELETE||a.keyCode==d.keyCode.BACKSPACE)return d.postFormat(c,0,!0,
d),this._valueSet(c.join("")),!0},definitions:{"~":{validator:function(a,c,d,g,b){if(""==a)return!1;if(!g&&1>=d&&"0"===c[0]&&/[\d-]/.test(a)&&1==c.join("").length)return c[0]="",{pos:0};var h=g?c.slice(0,d):c.slice();h.splice(d,0,a);var h=h.join(""),k=e.inputmask.escapeRegex.call(this,b.groupSeparator),h=h.replace(RegExp(k,"g"),""),k=b.regex.number(b).test(h);if(!k&&(h+="0",k=b.regex.number(b).test(h),!k)){k=h.lastIndexOf(b.groupSeparator);for(k=h.length-k;3>=k;k++)h+="0";k=b.regex.number(b).test(h);
if(!k&&!g&&a==b.radixPoint&&(k=b.regex.number(b).test("0"+h+"0")))return c[d]="0",d++,{pos:d}}return!1==k||g||a==b.radixPoint?k:{pos:b.postFormat(c,d,!1,b)}},cardinality:1,prevalidator:null}},insertMode:!0,autoUnmask:!1},integer:{regex:{number:function(a){var c=e.inputmask.escapeRegex.call(this,a.groupSeparator);return RegExp("^"+(a.allowPlus||a.allowMinus?"["+(a.allowPlus?"+":"")+(a.allowMinus?"-":"")+"]?":"")+"(\\d+|\\d{1,"+a.groupSize+"}(("+c+"\\d{"+a.groupSize+"})?)+)$")}},alias:"decimal"}})})(jQuery);
(function(e){e.extend(e.inputmask.defaults.aliases,{Regex:{mask:"r",greedy:!1,repeat:"*",regex:null,regexTokens:null,tokenizer:/\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g,quantifierFilter:/[0-9]+[^,]/,definitions:{r:{validator:function(a,c,d,e,b){function h(){this.matches=[];this.isLiteral=this.isQuantifier=this.isGroup=!1}function k(){var a=
new h,c,d=[];for(b.regexTokens=[];c=b.tokenizer.exec(b.regex);)switch(c=c[0],c.charAt(0)){case "[":case "\\":0<d.length?d[d.length-1].matches.push(c):a.matches.push(c);break;case "(":!a.isGroup&&0<a.matches.length&&b.regexTokens.push(a);a=new h;a.isGroup=!0;d.push(a);break;case ")":c=d.pop();0<d.length?d[d.length-1].matches.push(c):(b.regexTokens.push(c),a=new h);break;case "{":var e=new h;e.isQuantifier=!0;e.matches.push(c);0<d.length?d[d.length-1].matches.push(e):a.matches.push(e);break;default:e=
new h,e.isLiteral=!0,e.matches.push(c),0<d.length?d[d.length-1].matches.push(e):a.matches.push(e)}0<a.matches.length&&b.regexTokens.push(a)}function E(a,c){var d=!1;c&&(m+="(",L++);for(var e=0;e<a.matches.length;e++){var g=a.matches[e];if(!0==g.isGroup)d=E(g,!0);else if(!0==g.isQuantifier){for(var g=g.matches[0],h=b.quantifierFilter.exec(g)[0].replace("}",""),h=m+"{1,"+h+"}",k=0;k<L;k++)h+=")";d=RegExp("^("+h+")$");d=d.test(R);m+=g}else if(!0==g.isLiteral){for(var g=g.matches[0],h=m,K="",k=0;k<L;k++)K+=
")";for(k=0;k<g.length&&!(h=(h+g[k]).replace(/\|$/,""),d=RegExp("^("+h+K+")$"),d=d.test(R));k++);m+=g}else{m+=g;h=m.replace(/\|$/,"");for(k=0;k<L;k++)h+=")";d=RegExp("^("+h+")$");d=d.test(R)}if(d)break}c&&(m+=")",L--);return d}null==b.regexTokens&&k();e=c.slice();var m="";c=!1;var L=0;e.splice(d,0,a);var R=e.join("");for(a=0;a<b.regexTokens.length&&!(h=b.regexTokens[a],c=E(h,h.isGroup));a++);return c},cardinality:1}}}})})(jQuery);
(function(e){e.extend(e.inputmask.defaults.aliases,{phone:{url:"phone-codes/phone-codes.json",mask:function(a){a.definitions={p:{validator:function(){return!1},cardinality:1},"#":{validator:"[0-9]",cardinality:1}};var c=[];e.ajax({url:a.url,async:!1,dataType:"json",success:function(a){c=a}});c.splice(0,0,"+p(ppp)ppp-pppp");return c}}})})(jQuery);
|