/* Name: jQuery sameHeight 1.4.0 Author: giorgio.beggiora@gmail.com requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel https://gist.github.com/paulirish/1579671 Optional dependency: CSS-Element-Queries http://marcj.github.io/css-element-queries/ This plugin sets all the matched elements' height to the highest one, waiting for images in them to have their height setted (i.e. when they're loaded). It's compatible with elements in a container with the css property column-count greater than 1. Options: - compact (boolean) [default = false] : each row will have its own height. - responsive (boolean) [default = true] : if true, the max height depends from the elements' content, from css otherwise. - target: if an element is given, the height will be its one. - debounce: debounce in milliseconds, rounded by requestAnimationFrame. - observe (window/DOM element) [default = window]: elements which size changes must be detected. - columnCount (number/string) [default = 1]: closest ancestor's CSS column-count property's value ('auto' is not supported). If set to 'calc', each time the resize event is triggered the DOM will be traversed upward until an element with a column-count value greater than 1 will be found, so it's better to avoid it and explicitly set a number. Returns: An instance of the observer with the stop() method to stop listening the resize event (similar to the jQuery's off() method). */ Number.isFinite||(Number.isFinite=function(e){return"number"==typeof e&&isFinite(e)}),Number.isInteger||(Number.isInteger=function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}),window.requestAnimationFrame||(window.requestAnimationFrame=window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return setTimeout(e,1e3/60)}),window.cancelAnimationFrame||(window.cancelAnimationFrame=window.mozCancelAnimationFrame||function(e){clearTimeout(e)}),function(e){const n=this;var t=null,o=0,s={},u=0,a=0;function d(e,r){var t,o,i=Date.now();return arguments.length>2?(t=arguments[2],o=s[t]):(o={id:t=u++,start:i},s[t]=o),o&&(i-o.start1){u=b;break}a=a.parentNode}while(a.parentNode)}s=u>1?function(e,n){for(var r=e.length,t=[],o=Math.ceil(r/n),i=0;i