function Resizer(e){this.setResizables(e),this.init()}Resizer.prototype=function(){var e={setResizables:function(e){if(!Array.isArray(e))throw new Error("Invalid argument passed to Resizer.setResizables. Expected Array got "+typeof e);for(var i=0;i<e.length;i++)if(void 0===e[i].onResize)throw new Error("Invalid Resizable "+e[i].toString());this.resizables=e},init:function(){window.addEventListener("resize",this.onResize),this.onResize()},dispose:function(){window.removeEventListener("resize",this.onResize)},onResize:function(){if(Array.isArray(this.resizables))for(var e=0;e<this.resizables.length;e++)this.resizables[e].onResize();"undefined"!=typeof mediaQueries&&mediaQueries()}};return e}();