(function(){var e=function(e){var t=this;e.require().script("mvc/dom.cur_styles").done(function(){var n=function(){var t=/button|select/i,n={},r={width:["Left","Right"],height:["Top","Bottom"],oldOuterHeight:e.fn.outerHeight,oldOuterWidth:e.fn.outerWidth,oldInnerWidth:e.fn.innerWidth,oldInnerHeight:e.fn.innerHeight};e.each({width:"Width",height:"Height"},function(i,s){n[i]=function(n,s){var o=0;if(!t.test(n.nodeName)){var u=[];e.each(r[i],function(){var t=this;e.each(s,function(e,n){n&&u.push(e+t+(e=="border"?"Width":""))})}),e.each(e.curStyles(n,u),function(e,t){o+=parseFloat(t)||0})}return o},e.fn["outer"+s]=function(e,t){var o=this[0];return typeof e=="number"?(o&&this[i](e-n[i](o,{padding:!0,border:!0,margin:t})),this):o?r["oldOuter"+s].call(this,e):null},e.fn["inner"+s]=function(e){var t=this[0];return typeof e=="number"?(t&&this[i](e-n[i](t,{padding:!0})),this):t?r["oldInner"+s].call(this,e):null};var o=function(t){return function(r){r.state==0&&(r.start=e(r.elem)[i](),r.end=r.end-n[i](r.elem,t)),r.elem.style[i]=r.pos*(r.end-r.start)+r.start+"px"}};e.fx.step["outer"+s]=o({padding:!0,border:!0}),e.fx.step["outer"+s+"Margin"]=o({padding:!0,border:!0,margin:!0}),e.fx.step["inner"+s]=o({padding:!0})})};n(),t.resolveWith(n)})};dispatch("mvc/dom.dimensions").containing(e).to("Foundry/2.1 Modules")})();