(function(n){"use strict";function k(n){var t={},i;return n.selectionStart===undefined?(n.focus(),i=document.selection.createRange(),t.length=i.text.length,i.moveStart("character",-n.value.length),t.end=i.text.length,t.start=t.end-t.length):(t.start=n.selectionStart,t.end=n.selectionEnd,t.length=t.end-t.start),t}function u(n,t,i){if(n.selectionStart===undefined){n.focus();var r=n.createTextRange();r.collapse(!0);r.moveEnd("character",i);r.moveStart("character",t);r.select()}else n.selectionStart=t,n.selectionEnd=i}function d(t,i){n.each(i,function(n,r){typeof r=="function"?i[n]=r(t,i,n):typeof t.autoNumeric[r]=="function"&&(i[n]=t.autoNumeric[r](t,i,n))})}function e(n,t){typeof n[t]=="string"&&(n[t]*=1)}function v(n,t){var i,r,f,o,u,s;return d(n,t),t.oEvent=null,t.tagList=["b","caption","cite","code","dd","del","div","dfn","dt","em","h1","h2","h3","h4","h5","h6","ins","kdb","label","li","output","p","q","s","sample","span","strong","td","th","u","var"],i=t.vMax.toString().split("."),r=!t.vMin&&t.vMin!==0?[]:t.vMin.toString().split("."),e(t,"vMax"),e(t,"vMin"),e(t,"mDec"),t.mDec=t.mRound==="CHF"?"2":t.mDec,t.allowLeading=!0,t.aNeg=t.vMin<0?"-":"",i[0]=i[0].replace("-",""),r[0]=r[0].replace("-",""),t.mInt=Math.max(i[0].length,r[0].length,1),t.mDec===null&&(f=0,o=0,i[1]&&(f=i[1].length),r[1]&&(o=r[1].length),t.mDec=Math.max(f,o)),t.altDec===null&&t.mDec>0&&(t.aDec==="."&&t.aSep!==","?t.altDec=",":t.aDec===","&&t.aSep!=="."&&(t.altDec=".")),u=t.aNeg?"([-\\"+t.aNeg+"]?)":"(-?)",t.aNegRegAutoStrip=u,t.skipFirstAutoStrip=new RegExp(u+"[^-"+(t.aNeg?"\\"+t.aNeg:"")+"\\"+t.aDec+"\\d].*?(\\d|\\"+t.aDec+"\\d)"),t.skipLastAutoStrip=new RegExp("(\\d\\"+t.aDec+"?)[^\\"+t.aDec+"\\d]\\D*$"),s="-"+t.aNum+"\\"+t.aDec,t.allowedAutoStrip=new RegExp("[^"+s+"]","gi"),t.numRegAutoStrip=new RegExp(u+"(?:\\"+t.aDec+"?(\\d+\\"+t.aDec+"\\d+)|(\\d*(?:\\"+t.aDec+"\\d*)?))"),t}function t(n,t,i){var u,r,e,f;if(t.aSign)while(n.indexOf(t.aSign)>-1)n=n.replace(t.aSign,"");return n=n.replace(t.skipFirstAutoStrip,"$1$2"),n=n.replace(t.skipLastAutoStrip,"$1"),n=n.replace(t.allowedAutoStrip,""),t.altDec&&(n=n.replace(t.altDec,t.aDec)),u=n.match(t.numRegAutoStrip),n=u?[u[1],u[2],u[3]].join(""):"",(t.lZero==="allow"||t.lZero==="keep")&&i!=="strip"&&(r=[],e="",r=n.split(t.aDec),r[0].indexOf("-")!==-1&&(e="-",r[0]=r[0].replace("-","")),r[0].length>t.mInt&&r[0].charAt(0)==="0"&&(r[0]=r[0].slice(1)),n=e+r.join(t.aDec)),(i&&t.lZero==="deny"||i&&t.lZero==="allow"&&t.allowLeading===!1)&&(f="^"+t.aNegRegAutoStrip+"0*(\\d"+(i==="leading"?")":"|$)"),f=new RegExp(f),n=n.replace(f,"$1$2")),n}function f(n,t,i){return t=t.split(","),i==="set"||i==="focusout"?(n=n.replace("-",""),n=t[0]+n+t[1]):(i==="get"||i==="focusin"||i==="pageLoad")&&n.charAt(0)===t[0]&&(n=n.replace(t[0],"-"),n=n.replace(t[1],"")),n}function y(n,t,i){if(t&&i){var r=n.split(t);r[1]&&r[1].length>i&&(i>0?(r[1]=r[1].substring(0,i),n=r.join(t)):n=r[0])}return n}function s(n,t,i){return t&&t!=="."&&(n=n.replace(t,".")),i&&i!=="-"&&(n=n.replace(i,"-")),n.match(/\d/)||(n+="0"),n}function p(n,t){var r,i;return n&&(r=+n,r<1e-6&&r>-1?(n=+n,n<1e-6&&n>0&&(n=(n+10).toString(),n=n.substring(1)),n<0&&n>-1&&(n=(n-10).toString(),n="-"+n.substring(2)),n=n.toString()):(i=n.split("."),i[1]!==undefined&&(+i[1]==0?n=i[0]:(i[1]=i[1].replace(/0*$/,""),n=i.join("."))))),t.lZero==="keep"?n:n.replace(/^0*(\d)/,"$1")}function w(n,t,i){return i&&i!=="-"&&(n=n.replace("-",i)),t&&t!=="."&&(n=n.replace(".",t)),n}function h(i,r){i=t(i,r);i=y(i,r.aDec,r.mDec);i=s(i,r.aDec,r.aNeg);var u=+i;return r.oEvent==="set"&&(u<r.vMin||u>r.vMax)&&n.error("The value ("+u+") from the 'set' method falls outside of the vMin / vMax range"),u>=r.vMin&&u<=r.vMax}function o(n,t,i){return n===""||n===t.aNeg?t.wEmpty==="zero"?n+"0":t.wEmpty==="sign"||i?n+t.aSign:n:null}function c(n,i){var h,s,e,r,u,c;if(n=t(n,i),h=n.replace(",","."),s=o(n,i,!0),s!==null)return s;if(e="",e=i.dGroup===2?/(\d)((\d)(\d{2}?)+)$/:i.dGroup===4?/(\d)((\d{4}?)+)$/:/(\d)((\d{3}?)+)$/,r=n.split(i.aDec),i.altDec&&r.length===1&&(r=n.split(i.altDec)),u=r[0],i.aSep)while(e.test(u))u=u.replace(e,"$1"+i.aSep+"$2");return i.mDec!==0&&r.length>1?(r[1].length>i.mDec&&(r[1]=r[1].substring(0,i.mDec)),n=u+i.aDec+r[1]):n=u,i.aSign&&(c=n.indexOf(i.aNeg)!==-1,n=n.replace(i.aNeg,""),n=i.pSign==="p"?i.aSign+n:n+i.aSign,c&&(n=i.aNeg+n)),i.oEvent==="set"&&h<0&&i.nBracket!==null&&(n=f(n,i.nBracket,i.oEvent)),n}function l(n,t){var v;n=n===""?"0":n.toString();e(t,"mDec");t.mRound==="CHF"&&(n=(Math.round(n*20)/20).toString());var i="",r=0,f="",s=typeof t.aPad=="boolean"||t.aPad===null?t.aPad?t.mDec:0:+t.aPad,p=function(n){var t=s===0?/(\.(?:\d*[1-9])?)0*$/:s===1?/(\.\d(?:\d*[1-9])?)0*$/:new RegExp("(\\.\\d{"+s+"}(?:\\d*[1-9])?)0*$");return n=n.replace(t,"$1"),s===0&&(n=n.replace(/\.$/,"")),n};n.charAt(0)==="-"&&(f="-",n=n.replace("-",""));n.match(/^\d/)||(n="0"+n);f==="-"&&+n==0&&(f="");(+n>0&&t.lZero!=="keep"||n.length>0&&t.lZero==="allow")&&(n=n.replace(/^0*(\d)/,"$1"));var a=n.lastIndexOf("."),w=a===-1?n.length-1:a,h=n.length-1-w;if(h<=t.mDec){if(i=n,h<s)for(a===-1&&(i+="."),v="000000";h<s;)v=v.substring(0,s-h),i+=v,h+=v.length;else h>s?i=p(i):h===0&&s===0&&(i=i.replace(/\.$/,""));if(t.mRound!=="CHF")return+i==0?i:f+i;t.mRound==="CHF"&&(a=i.lastIndexOf("."),n=i)}var c=a+t.mDec,o=+n.charAt(c+1),u=n.substring(0,c+1).split(""),y=n.charAt(c)==="."?n.charAt(c-1)%2:n.charAt(c)%2,l=!0;if(y!==1&&(y=y===0&&n.substring(c+2,n.length)>0?1:0),o>4&&t.mRound==="S"||o>4&&t.mRound==="A"&&f===""||o>5&&t.mRound==="A"&&f==="-"||o>5&&t.mRound==="s"||o>5&&t.mRound==="a"&&f===""||o>4&&t.mRound==="a"&&f==="-"||o>5&&t.mRound==="B"||o===5&&t.mRound==="B"&&y===1||o>0&&t.mRound==="C"&&f===""||o>0&&t.mRound==="F"&&f==="-"||o>0&&t.mRound==="U"||t.mRound==="CHF")for(r=u.length-1;r>=0;r-=1)if(u[r]!=="."){if(t.mRound==="CHF"&&u[r]<=2&&l){u[r]=0;l=!1;break}if(t.mRound==="CHF"&&u[r]<=7&&l){u[r]=5;l=!1;break}if(t.mRound==="CHF"&&l?(u[r]=10,l=!1):u[r]=+u[r]+1,u[r]<10)break;r>0&&(u[r]="0")}return u=u.slice(0,c+1),i=p(u.join("")),+i==0?i:f+i}function b(t,i){this.settings=i;this.that=t;this.$that=n(t);this.formatted=!1;this.settingsClone=v(this.$that,this.settings);this.value=t.value}function r(t){return typeof t=="string"&&(t=t.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),t="#"+t.replace(/(:|\.)/g,"\\$1")),n(t)}function i(n,t,i){var r=n.data("autoNumeric"),u;return r||(r={},n.data("autoNumeric",r)),u=r.holder,(u===undefined&&t||i)&&(u=new b(n.get(0),t),r.holder=u),u}b.prototype={init:function(n){this.value=this.that.value;this.settingsClone=v(this.$that,this.settings);this.ctrlKey=n.ctrlKey;this.cmdKey=n.metaKey;this.shiftKey=n.shiftKey;this.selection=k(this.that);(n.type==="keydown"||n.type==="keyup")&&(this.kdCode=n.keyCode);this.which=n.which;this.processed=!1;this.formatted=!1},setSelection:function(n,t,i){n=Math.max(n,0);t=Math.min(t,this.that.value.length);this.selection={start:n,end:t,length:t-n};(i===undefined||i)&&u(this.that,n,t)},setPosition:function(n,t){this.setSelection(n,n,t)},getBeforeAfter:function(){var n=this.value,t=n.substring(0,this.selection.start),i=n.substring(this.selection.end,n.length);return[t,i]},getBeforeAfterStriped:function(){var n=this.getBeforeAfter();return n[0]=t(n[0],this.settingsClone),n[1]=t(n[1],this.settingsClone),n},normalizeParts:function(n,i){var r=this.settingsClone,e,u,f;return i=t(i,r),e=i.match(/^\d/)?!0:"leading",n=t(n,r,e),(n===""||n===r.aNeg)&&r.lZero==="deny"&&i>""&&(i=i.replace(/^0*(\d)/,"$1")),u=n+i,r.aDec&&(f=u.match(new RegExp("^"+r.aNegRegAutoStrip+"\\"+r.aDec)),f&&(n=n.replace(f[1],f[1]+"0"),u=n+i)),r.wEmpty==="zero"&&(u===r.aNeg||u==="")&&(n+="0"),[n,i]},setValueParts:function(n,t){var r=this.settingsClone,f=this.normalizeParts(n,t),i=f.join(""),u=f[0].length;return h(i,r)?(i=y(i,r.aDec,r.mDec),u>i.length&&(u=i.length),this.value=i,this.setPosition(u,!1),!0):!1},signPosition:function(){var n=this.settingsClone,u=n.aSign,i=this.that,t,f,r;return u?(t=u.length,n.pSign==="p")?(f=n.aNeg&&i.value&&i.value.charAt(0)===n.aNeg,f?[1,t+1]:[0,t]):(r=i.value.length,[r-t,r]):[1e3,-1]},expandSelectionOnSign:function(n){var t=this.signPosition(),i=this.selection;i.start<t[1]&&i.end>t[0]&&((i.start<t[0]||i.end>t[1])&&this.value.substring(Math.max(i.start,t[0]),Math.min(i.end,t[1])).match(/^\s*$/)?i.start<t[0]?this.setSelection(i.start,t[0],n):this.setSelection(t[1],i.end,n):this.setSelection(Math.min(i.start,t[0]),Math.max(i.end,t[1]),n))},checkPaste:function(){if(this.valuePartsBeforePaste!==undefined){var n=this.getBeforeAfter(),i=this.valuePartsBeforePaste;delete this.valuePartsBeforePaste;n[0]=n[0].substr(0,i[0].length)+t(n[0].substr(i[0].length),this.settingsClone);this.setValueParts(n[0],n[1])||(this.value=i.join(""),this.setPosition(i[0].length,!1))}},skipAllways:function(n){var t=this.kdCode,e=this.which,i=this.ctrlKey,r=this.cmdKey,s=this.shiftKey;if((i||r)&&n.type==="keyup"&&this.valuePartsBeforePaste!==undefined||s&&t===45)return this.checkPaste(),!1;if(t>=112&&t<=123||t>=91&&t<=93||t>=9&&t<=31||t<8&&(e===0||e===t)||t===144||t===145||t===45||(i||r)&&t===65)return!0;if((i||r)&&(t===67||t===86||t===88))return n.type==="keydown"&&this.expandSelectionOnSign(),(t===86||t===45)&&(n.type==="keydown"||n.type==="keypress"?this.valuePartsBeforePaste===undefined&&(this.valuePartsBeforePaste=this.getBeforeAfter()):this.checkPaste()),n.type==="keydown"||n.type==="keypress"||t===67;if(i||r)return!0;if(t===37||t===39){var f=this.settingsClone.aSep,u=this.selection.start,o=this.that.value;return n.type==="keydown"&&f&&!this.shiftKey&&(t===37&&o.charAt(u-2)===f?this.setPosition(u-1):t===39&&o.charAt(u+1)===f&&this.setPosition(u+1)),!0}return t>=34&&t<=40?!0:!1},processAllways:function(){var n;return this.kdCode===8||this.kdCode===46?(this.selection.length?(this.expandSelectionOnSign(!1),n=this.getBeforeAfterStriped(),this.setValueParts(n[0],n[1])):(n=this.getBeforeAfterStriped(),this.kdCode===8?n[0]=n[0].substring(0,n[0].length-1):n[1]=n[1].substring(1,n[1].length),this.setValueParts(n[0],n[1])),!0):!1},processKeypress:function(){var n=this.settingsClone,r=String.fromCharCode(this.which),u=this.getBeforeAfterStriped(),t=u[0],i=u[1];return r===n.aDec||n.altDec&&r===n.altDec||(r==="."||r===",")&&this.kdCode===110?!n.mDec||!n.aDec?!0:n.aNeg&&i.indexOf(n.aNeg)>-1?!0:t.indexOf(n.aDec)>-1?!0:i.indexOf(n.aDec)>0?!0:(i.indexOf(n.aDec)===0&&(i=i.substr(1)),this.setValueParts(t+n.aDec,i),!0):r==="-"||r==="+"?n.aNeg?(t===""&&i.indexOf(n.aNeg)>-1&&(t=n.aNeg,i=i.substring(1,i.length)),t=t.charAt(0)===n.aNeg?t.substring(1,t.length):r==="-"?n.aNeg+t:t,this.setValueParts(t,i),!0):!0:r>="0"&&r<="9"?(n.aNeg&&t===""&&i.indexOf(n.aNeg)>-1&&(t=n.aNeg,i=i.substring(1,i.length)),n.vMax<=0&&n.vMin<n.vMax&&this.value.indexOf(n.aNeg)===-1&&r!=="0"&&(t=n.aNeg+t),this.setValueParts(t+r,i),!0):!0},formatQuick:function(){var n=this.settingsClone,t=this.getBeforeAfterStriped(),o=this.value,f,s,i,r,e,u,l,h;if((n.aSep===""||n.aSep!==""&&o.indexOf(n.aSep)===-1)&&(n.aSign===""||n.aSign!==""&&o.indexOf(n.aSign)===-1)&&(f=[],s="",f=o.split(n.aDec),f[0].indexOf("-")>-1&&(s="-",f[0]=f[0].replace("-",""),t[0]=t[0].replace("-","")),f[0].length>n.mInt&&t[0].charAt(0)==="0"&&(t[0]=t[0].slice(1)),t[0]=s+t[0]),i=c(this.value,this.settingsClone),r=i.length,i){for(e=t[0].split(""),u=0,u;u<e.length;u+=1)e[u].match("\\d")||(e[u]="\\"+e[u]);l=new RegExp("^.*?"+e.join(".*?"));h=i.match(l);h?(r=h[0].length,(r===0&&i.charAt(0)!==n.aNeg||r===1&&i.charAt(0)===n.aNeg)&&n.aSign&&n.pSign==="p"&&(r=this.settingsClone.aSign.length+(i.charAt(0)==="-"?1:0))):n.aSign&&n.pSign==="s"&&(r-=n.aSign.length)}this.that.value=i;this.setPosition(r);this.formatted=!0}};var a={init:function(r){return this.each(function(){var e=n(this),a=e.data("autoNumeric"),b=e.data(),p,v,y;if(typeof a!="object"){if(p={aNum:"0123456789",aSep:",",dGroup:"3",aDec:".",altDec:null,aSign:"",pSign:"p",vMax:"9999999999999.99",vMin:"0.00",mDec:null,mRound:"S",aPad:!0,nBracket:null,wEmpty:"empty",lZero:"allow",aForm:!0,onSomeEvent:function(){}},a=n.extend({},p,b,r),a.aDec===a.aSep)return n.error("autoNumeric will not function properly when the decimal character aDec: '"+a.aDec+"' and thousand separator aSep: '"+a.aSep+"' are the same character"),this;e.data("autoNumeric",a)}else return this;if(a.runOnce=!1,v=i(e,a),n.inArray(e.prop("tagName").toLowerCase(),a.tagList)===-1&&e.prop("tagName").toLowerCase()!=="input")return n.error("The <"+e.prop("tagName").toLowerCase()+"> is not supported by autoNumeric()"),this;if(a.runOnce===!1&&a.aForm&&(e.is("input[type=text], input[type=hidden], input[type=tel], input:not([type])")&&(y=!0,e[0].value===""&&a.wEmpty==="empty"&&(e[0].value="",y=!1),e[0].value===""&&a.wEmpty==="sign"&&(e[0].value=a.aSign,y=!1),y&&e.autoNumeric("set",e.val())),n.inArray(e.prop("tagName").toLowerCase(),a.tagList)!==-1&&e.text()!==""&&e.autoNumeric("set",e.text())),a.runOnce=!0,e.is("input[type=text], input[type=hidden], input[type=tel], input:not([type])")){e.on("keydown.autoNumeric",function(t){return(v=i(e),v.settings.aDec===v.settings.aSep)?(n.error("autoNumeric will not function properly when the decimal character aDec: '"+v.settings.aDec+"' and thousand separator aSep: '"+v.settings.aSep+"' are the same character"),this):v.that.readOnly?(v.processed=!0,!0):(v.init(t),v.settings.oEvent="keydown",v.skipAllways(t))?(v.processed=!0,!0):v.processAllways()?(v.processed=!0,v.formatQuick(),t.preventDefault(),!1):(v.formatted=!1,!0)});e.on("keypress.autoNumeric",function(n){var t=i(e),r=t.processed;if(t.init(n),t.settings.oEvent="keypress",t.skipAllways(n))return!0;if(r)return n.preventDefault(),!1;if(t.processAllways()||t.processKeypress())return t.formatQuick(),n.preventDefault(),!1;t.formatted=!1});e.on("keyup.autoNumeric",function(n){var t=i(e),r;if((t.init(n),t.settings.oEvent="keyup",r=t.skipAllways(n),t.kdCode=0,delete t.valuePartsBeforePaste,e[0].value===t.settings.aSign&&(t.settings.pSign==="s"?u(this,0,0):u(this,t.settings.aSign.length,t.settings.aSign.length)),r)||this.value==="")return!0;t.formatted||t.formatQuick()});e.on("focusin.autoNumeric",function(){var n=i(e),r,t;n.settingsClone.oEvent="focusin";n.settingsClone.nBracket!==null&&(r=e.val(),e.val(f(r,n.settingsClone.nBracket,n.settingsClone.oEvent)));n.inVal=e.val();t=o(n.inVal,n.settingsClone,!0);t!==null&&(e.val(t),n.settings.pSign==="s"?u(this,0,0):u(this,n.settings.aSign.length,n.settings.aSign.length))});e.on("focusout.autoNumeric",function(){var a=i(e),n=a.settingsClone,r=e.val(),y=r,v,u;a.settingsClone.oEvent="focusout";v="";n.lZero==="allow"&&(n.allowLeading=!1,v="leading");r!==""&&(r=t(r,n,v),o(r,n)===null&&h(r,n,e[0])?(r=s(r,n.aDec,n.aNeg),r=l(r,n),r=w(r,n.aDec,n.aNeg)):r="");u=o(r,n,!1);u===null&&(u=c(r,n));u!==y&&e.val(u);u!==a.inVal&&(e.change(),delete a.inVal);n.nBracket!==null&&e.autoNumeric("get")<0&&(a.settingsClone.oEvent="focusout",e.val(f(e.val(),n.nBracket,n.oEvent)))})}})},destroy:function(){return n(this).each(function(){var t=n(this);t.off(".autoNumeric");t.removeData("autoNumeric")})},update:function(t){return n(this).each(function(){var f=r(n(this)),u=f.data("autoNumeric"),e;return typeof u!="object"?(n.error("You must initialize autoNumeric('init', {options}) prior to calling the 'update' method"),this):(e=f.autoNumeric("get"),u=n.extend(u,t),i(f,u,!0),u.aDec===u.aSep)?(n.error("autoNumeric will not function properly when the decimal character aDec: '"+u.aDec+"' and thousand separator aSep: '"+u.aSep+"' are the same character"),this):(f.data("autoNumeric",u),f.val()!==""||f.text()!=="")?f.autoNumeric("set",e):void 0})},set:function(i){if(i!==null)return n(this).each(function(){var o=r(n(this)),e=o.data("autoNumeric"),u=i.toString(),s=i.toString();return typeof e!="object"?(n.error("You must initialize autoNumeric('init', {options}) prior to calling the 'set' method"),this):(s!==o.attr("value")&&o.prop("tagName").toLowerCase()==="input"&&e.runOnce===!1&&(u=e.nBracket!==null?f(o.val(),e.nBracket,"pageLoad"):u,u=t(u,e)),(s===o.attr("value")||s===o.text())&&e.runOnce===!1&&(u=u.replace(",",".")),!n.isNumeric(+u))?"":(u=p(u,e),e.oEvent="set",u.toString(),u!==""&&(u=l(u,e)),u=w(u,e.aDec,e.aNeg),h(u,e)||(u=l("",e)),u=c(u,e),o.is("input[type=text], input[type=hidden], input[type=tel], input:not([type])"))?o.val(u):n.inArray(o.prop("tagName").toLowerCase(),e.tagList)!==-1?o.text(u):(n.error("The <"+o.prop("tagName").toLowerCase()+"> is not supported by autoNumeric()"),!1)})},get:function(){var e=r(n(this)),i=e.data("autoNumeric"),u;if(typeof i!="object")return n.error("You must initialize autoNumeric('init', {options}) prior to calling the 'get' method"),this;if(i.oEvent="get",u="",e.is("input[type=text], input[type=hidden], input[type=tel], input:not([type])"))u=e.eq(0).val();else if(n.inArray(e.prop("tagName").toLowerCase(),i.tagList)!==-1)u=e.eq(0).text();else return n.error("The <"+e.prop("tagName").toLowerCase()+"> is not supported by autoNumeric()"),!1;return u===""&&i.wEmpty==="empty"||u===i.aSign&&(i.wEmpty==="sign"||i.wEmpty==="empty")?"":(i.nBracket!==null&&u!==""&&(u=f(u,i.nBracket,i.oEvent)),(i.runOnce||i.aForm===!1)&&(u=t(u,i)),u=s(u,i.aDec,i.aNeg),+u==0&&i.lZero!=="keep"&&(u="0"),i.lZero==="keep")?u:p(u,i)},getString:function(){var f=!1,e=r(n(this)),o=e.serialize(),i=o.split("&"),h=n("form").index(e),t=0;for(t;t<i.length;t+=1){var u=i[t].split("="),s=n("form:eq("+h+') input[name="'+decodeURIComponent(u[0])+'"]'),c=s.data("autoNumeric");typeof c=="object"&&u[1]!==null&&(u[1]=s.autoNumeric("get"),i[t]=u.join("="),f=!0)}return f===!0?i.join("&"):o},getArray:function(){var t=!1,i=r(n(this)),u=i.serializeArray(),f=n("form").index(i);return(n.each(u,function(i,r){var u=n("form:eq("+f+') input[name="'+decodeURIComponent(r.name)+'"]'),e=u.data("autoNumeric");typeof e=="object"&&(r.value!==""&&(r.value=u.autoNumeric("get").toString()),t=!0)}),t===!0)?u:this},getSettings:function(){var t=r(n(this));return t.eq(0).data("autoNumeric")}};n.fn.autoNumeric=function(t){if(a[t])return a[t].apply(this,Array.prototype.slice.call(arguments,1));if(typeof t=="object"||!t)return a.init.apply(this,arguments);n.error('Method "'+t+'" is not supported by autoNumeric()')}})(jQuery)