/*! * Masonry PACKAGED v4.2.2 * Cascading grid layout library * https://masonry.desandro.com * MIT License * by David DeSandro */(function(d,c){typeof define=="function"&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(l){return c(d,l)}):typeof module=="object"&&module.exports?module.exports=c(d,require("jquery")):d.jQueryBridget=c(d,d.jQuery)})(window,function(d,c){"use strict";function l(u,v,p){function f(g,n,o){var t,e="$()."+u+'("'+n+'")';return g.each(function(r,m){var _=p.data(m,u);if(!_)return void s(u+" not initialized. Cannot call methods, i.e. "+e);var z=_[n];if(!z||n.charAt(0)=="_")return void s(e+" is not a valid method");var E=z.apply(_,o);t=t===void 0?E:t}),t!==void 0?t:g}function y(g,n){g.each(function(o,t){var e=p.data(t,u);e?(e.option(n),e._init()):(e=new v(t,n),p.data(t,u,e))})}p=p||c||d.jQuery,p&&(v.prototype.option||(v.prototype.option=function(g){p.isPlainObject(g)&&(this.options=p.extend(!0,this.options,g))}),p.fn[u]=function(g){if(typeof g=="string"){var n=a.call(arguments,1);return f(this,g,n)}return y(this,g),this},h(p))}function h(u){!u||u&&u.bridget||(u.bridget=l)}var a=Array.prototype.slice,i=d.console,s=typeof i=="undefined"?function(){}:function(u){i.error(u)};return h(c||d.jQuery),l}),function(d,c){typeof define=="function"&&define.amd?define("ev-emitter/ev-emitter",c):typeof module=="object"&&module.exports?module.exports=c():d.EvEmitter=c()}(typeof window!="undefined"?window:this,function(){function d(){}var c=d.prototype;return c.on=function(l,h){if(l&&h){var a=this._events=this._events||{},i=a[l]=a[l]||[];return i.indexOf(h)==-1&&i.push(h),this}},c.once=function(l,h){if(l&&h){this.on(l,h);var a=this._onceEvents=this._onceEvents||{},i=a[l]=a[l]||{};return i[h]=!0,this}},c.off=function(l,h){var a=this._events&&this._events[l];if(a&&a.length){var i=a.indexOf(h);return i!=-1&&a.splice(i,1),this}},c.emitEvent=function(l,h){var a=this._events&&this._events[l];if(a&&a.length){a=a.slice(0),h=h||[];for(var i=this._onceEvents&&this._onceEvents[l],s=0;sg;g++){var n=v[g];y[n]=0}return y}function h(y){var g=getComputedStyle(y);return g||u("Style returned "+g+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),g}function a(){if(!f){f=!0;var y=document.createElement("div");y.style.width="200px",y.style.padding="1px 2px 3px 4px",y.style.borderStyle="solid",y.style.borderWidth="1px 2px 3px 4px",y.style.boxSizing="border-box";var g=document.body||document.documentElement;g.appendChild(y);var n=h(y);s=Math.round(d(n.width))==200,i.isBoxSizeOuter=s,g.removeChild(y)}}function i(y){if(a(),typeof y=="string"&&(y=document.querySelector(y)),y&&typeof y=="object"&&y.nodeType){var g=h(y);if(g.display=="none")return l();var n={};n.width=y.offsetWidth,n.height=y.offsetHeight;for(var o=n.isBorderBox=g.boxSizing=="border-box",t=0;p>t;t++){var e=v[t],r=g[e],m=parseFloat(r);n[e]=isNaN(m)?0:m}var _=n.paddingLeft+n.paddingRight,z=n.paddingTop+n.paddingBottom,E=n.marginLeft+n.marginRight,b=n.marginTop+n.marginBottom,x=n.borderLeftWidth+n.borderRightWidth,T=n.borderTopWidth+n.borderBottomWidth,I=o&&s,W=d(g.width);W!==!1&&(n.width=W+(I?0:_+x));var S=d(g.height);return S!==!1&&(n.height=S+(I?0:z+T)),n.innerWidth=n.width-(_+x),n.innerHeight=n.height-(z+T),n.outerWidth=n.width+E,n.outerHeight=n.height+b,n}}var s,u=typeof console=="undefined"?c:function(y){console.error(y)},v=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],p=v.length,f=!1;return i}),function(d,c){"use strict";typeof define=="function"&&define.amd?define("desandro-matches-selector/matches-selector",c):typeof module=="object"&&module.exports?module.exports=c():d.matchesSelector=c()}(window,function(){"use strict";var d=function(){var c=window.Element.prototype;if(c.matches)return"matches";if(c.matchesSelector)return"matchesSelector";for(var l=["webkit","moz","ms","o"],h=0;hp?"round":"floor";v=Math[f](v),this.cols=Math.max(v,1)},h.getContainerWidth=function(){var a=this._getOption("fitWidth"),i=a?this.element.parentNode:this.element,s=c(i);this.containerWidth=s&&s.innerWidth},h._getItemLayoutPosition=function(a){a.getSize();var i=a.size.outerWidth%this.columnWidth,s=i&&1>i?"round":"ceil",u=Math[s](a.size.outerWidth/this.columnWidth);u=Math.min(u,this.cols);for(var v=this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition",p=this[v](u,a),f={x:this.columnWidth*p.col,y:p.y},y=p.y+a.size.outerHeight,g=u+p.col,n=p.col;g>n;n++)this.colYs[n]=y;return f},h._getTopColPosition=function(a){var i=this._getTopColGroup(a),s=Math.min.apply(Math,i);return{col:i.indexOf(s),y:s}},h._getTopColGroup=function(a){if(2>a)return this.colYs;for(var i=[],s=this.cols+1-a,u=0;s>u;u++)i[u]=this._getColGroupY(u,a);return i},h._getColGroupY=function(a,i){if(2>i)return this.colYs[a];var s=this.colYs.slice(a,a+i);return Math.max.apply(Math,s)},h._getHorizontalColPosition=function(a,i){var s=this.horizontalColIndex%this.cols,u=a>1&&s+a>this.cols;s=u?0:s;var v=i.size.outerWidth&&i.size.outerHeight;return this.horizontalColIndex=v?s+a:this.horizontalColIndex,{col:s,y:this._getColGroupY(s,a)}},h._manageStamp=function(a){var i=c(a),s=this._getElementOffset(a),u=this._getOption("originLeft"),v=u?s.left:s.right,p=v+i.outerWidth,f=Math.floor(v/this.columnWidth);f=Math.max(0,f);var y=Math.floor(p/this.columnWidth);y-=p%this.columnWidth?0:1,y=Math.min(this.cols-1,y);for(var g=this._getOption("originTop"),n=(g?s.top:s.bottom)+i.outerHeight,o=f;y>=o;o++)this.colYs[o]=Math.max(n,this.colYs[o])},h._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var a={height:this.maxY};return this._getOption("fitWidth")&&(a.width=this._getContainerFitWidth()),a},h._getContainerFitWidth=function(){for(var a=0,i=this.cols;--i&&this.colYs[i]===0;)a++;return(this.cols-a)*this.columnWidth-this.gutter},h.needsResizeLayout=function(){var a=this.containerWidth;return this.getContainerWidth(),a!=this.containerWidth},l});