zul.inp.Longbox=zk.$extends(zul.inp.NumberInputWidget,{coerceFromString_:function(a){if(!a)return null;var b=zk.fmt.Number.unformat(this._format,a,!1,this._localizedSymbols),c=new zk.Long(b.raw),d=c.$toString();if(b.raw!=d&&b.raw!="-"+d)return{error:zk.fmt.Text.format(msgzul.INTEGER_REQUIRED,a)};b.divscale&&c.scale(-b.divscale);return this._isOutRange(c.$toString())?{error:zk.fmt.Text.format(msgzul.OUT_OF_RANGE+"(\u22129223372036854775808 - 9223372036854775807)")}:c},coerceToString_:function(a){var b=
this._format;return null!=a?"string"==typeof a?a:b?zk.fmt.Number.format(b,a.$toString(),this._rounding,this._localizedSymbols):a.$toLocaleString():""},_isOutRange:function(a){var b="-"==a.charAt(0);b&&(a=a.substring(1));if(19<a.length)return!0;if(19>a.length)return!1;b=b?"9223372036854775808":"9223372036854775807";for(var c=0;19>c;++c){if(a.charAt(c)>b.charAt(c))return!0;if(a.charAt(c)<b.charAt(c))break}return!1},marshall_:function(a){return a?a.$toString():a},unmarshall_:function(a){return a?new zk.Long(a):
a}});
