(function(c){var d=function(d){return parseInt(d,10)||0};c.each(["min","max"],function(e,a){c.fn[a+"Size"]=function(b){var c;return b?(b.width!==void 0&&this.css(a+"-width",b.width),b.height!==void 0&&this.css(a+"-height",b.height),this):(b=this.css(a+"-width"),c=this.css(a+"-height"),{width:a==="max"&&(b===void 0||b==="none"||d(b)===-1)&&Number.MAX_VALUE||d(b),height:a==="max"&&(c===void 0||c==="none"||d(c)===-1)&&Number.MAX_VALUE||d(c)})}});c.fn.isVisible=function(){return this.is(":visible")};
c.each(["border","margin","padding"],function(e,a){c.fn[a]=function(b){return b?(b.top!==void 0&&this.css(a+"-top"+(a==="border"?"-width":""),b.top),b.bottom!==void 0&&this.css(a+"-bottom"+(a==="border"?"-width":""),b.bottom),b.left!==void 0&&this.css(a+"-left"+(a==="border"?"-width":""),b.left),b.right!==void 0&&this.css(a+"-right"+(a==="border"?"-width":""),b.right),this):{top:d(this.css(a+"-top"+(a==="border"?"-width":""))),bottom:d(this.css(a+"-bottom"+(a==="border"?"-width":""))),left:d(this.css(a+
"-left"+(a==="border"?"-width":""))),right:d(this.css(a+"-right"+(a==="border"?"-width":"")))}}})})(jQuery);
