/*! * masonry packaged v4.1.1 * cascading grid layout library * http://masonry.desandro.com * mit license * by david desandro */ !function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jquerybridget=e(t,t.jquery)}(window,function(t,e){"use strict";function i(i,r,a){function h(t,e,n){var o,r="$()."+i+'("'+e+'")';return t.each(function(t,h){var u=a.data(h,i);if(!u)return void s(i+" not initialized. cannot call methods, i.e. "+r);var d=u[e];if(!d||"_"==e.charat(0))return void s(r+" is not a valid method");var l=d.apply(u,n);o=void 0===o?l:o}),void 0!==o?o:t}function u(t,e){t.each(function(t,n){var o=a.data(n,i);o?(o.option(e),o._init()):(o=new r(n,e),a.data(n,i,o))})}a=a||e||t.jquery,a&&(r.prototype.option||(r.prototype.option=function(t){a.isplainobject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if("string"==typeof t){var e=o.call(arguments,1);return h(this,t,e)}return u(this,t),this},n(a))}function n(t){!t||t&&t.bridget||(t.bridget=i)}var o=array.prototype.slice,r=t.console,s="undefined"==typeof r?function(){}:function(t){r.error(t)};return n(e||t.jquery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.evemitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexof(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceevents=this._onceevents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexof(e);return-1!=n&&i.splice(n,1),this}},e.emitevent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=0,o=i[n];e=e||[];for(var r=this._onceevents&&this._onceevents[t];o;){var s=r&&r[o];s&&(this.off(t,o),delete r[o]),o.apply(this,e),n+=s?0:1,o=i[n]}return this}},t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("get-size/get-size",[],function(){return e()}):"object"==typeof module&&module.exports?module.exports=e():t.getsize=e()}(window,function(){"use strict";function t(t){var e=parsefloat(t),i=-1==t.indexof("%")&&!isnan(e);return i&&e}function e(){}function i(){for(var t={width:0,height:0,innerwidth:0,innerheight:0,outerwidth:0,outerheight:0},e=0;u>e;e++){var i=h[e];t[i]=0}return t}function n(t){var e=getcomputedstyle(t);return e||a("style returned "+e+". are you running this code in a hidden iframe on firefox? see http://bit.ly/getsizebug1"),e}function o(){if(!d){d=!0;var e=document.createelement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderstyle="solid",e.style.borderwidth="1px 2px 3px 4px",e.style.boxsizing="border-box";var i=document.body||document.documentelement;i.appendchild(e);var o=n(e);r.isboxsizeouter=s=200==t(o.width),i.removechild(e)}}function r(e){if(o(),"string"==typeof e&&(e=document.queryselector(e)),e&&"object"==typeof e&&e.nodetype){var r=n(e);if("none"==r.display)return i();var a={};a.width=e.offsetwidth,a.height=e.offsetheight;for(var d=a.isborderbox="border-box"==r.boxsizing,l=0;u>l;l++){var c=h[l],f=r[c],m=parsefloat(f);a[c]=isnan(m)?0:m}var p=a.paddingleft+a.paddingright,g=a.paddingtop+a.paddingbottom,y=a.marginleft+a.marginright,v=a.margintop+a.marginbottom,_=a.borderleftwidth+a.borderrightwidth,e=a.bordertopwidth+a.borderbottomwidth,z=d&&s,b=t(r.width);b!==!1&&(a.width=b+(z?0:p+_));var x=t(r.height);return x!==!1&&(a.height=x+(z?0:g+e)),a.innerwidth=a.width-(p+_),a.innerheight=a.height-(g+e),a.outerwidth=a.width+y,a.outerheight=a.height+v,a}}var s,a="undefined"==typeof console?e:function(t){console.error(t)},h=["paddingleft","paddingright","paddingtop","paddingbottom","marginleft","marginright","margintop","marginbottom","borderleftwidth","borderrightwidth","bordertopwidth","borderbottomwidth"],u=h.length,d=!1;return r}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesselector=e()}(window,function(){"use strict";var t=function(){var t=element.prototype;if(t.matches)return"matches";if(t.matchesselector)return"matchesselector";for(var e=["webkit","moz","ms","o"],i=0;is?"round":"floor";r=math[a](r),this.cols=math.max(r,1)},i.prototype.getcontainerwidth=function(){var t=this._getoption("fitwidth"),i=t?this.element.parentnode:this.element,n=e(i);this.containerwidth=n&&n.innerwidth},i.prototype._getitemlayoutposition=function(t){t.getsize();var e=t.size.outerwidth%this.columnwidth,i=e&&1>e?"round":"ceil",n=math[i](t.size.outerwidth/this.columnwidth);n=math.min(n,this.cols);for(var o=this._getcolgroup(n),r=math.min.apply(math,o),s=o.indexof(r),a={x:this.columnwidth*s,y:r},h=r+t.size.outerheight,u=this.cols+1-o.length,d=0;u>d;d++)this.colys[s+d]=h;return a},i.prototype._getcolgroup=function(t){if(2>t)return this.colys;for(var e=[],i=this.cols+1-t,n=0;i>n;n++){var o=this.colys.slice(n,n+t);e[n]=math.max.apply(math,o)}return e},i.prototype._managestamp=function(t){var i=e(t),n=this._getelementoffset(t),o=this._getoption("originleft"),r=o?n.left:n.right,s=r+i.outerwidth,a=math.floor(r/this.columnwidth);a=math.max(0,a);var h=math.floor(s/this.columnwidth);h-=s%this.columnwidth?0:1,h=math.min(this.cols-1,h);for(var u=this._getoption("origintop"),d=(u?n.top:n.bottom)+i.outerheight,l=a;h>=l;l++)this.colys[l]=math.max(d,this.colys[l])},i.prototype._getcontainersize=function(){this.maxy=math.max.apply(math,this.colys);var t={height:this.maxy};return this._getoption("fitwidth")&&(t.width=this._getcontainerfitwidth()),t},i.prototype._getcontainerfitwidth=function(){for(var t=0,e=this.cols;--e&&0===this.colys[e];)t++;return(this.cols-t)*this.columnwidth-this.gutter},i.prototype.needsresizelayout=function(){var t=this.containerwidth;return this.getcontainerwidth(),t!=this.containerwidth},i});