/**handles:imagesloaded,masonry,jquery-masonry**/
/*! This file is auto-generated */
/*!
 * imagesLoaded PACKAGED v4.1.4
 * JavaScript is all like "You images are done yet or what?"
 * MIT License
 */

!function(e,t){"function"==typeof define&amp;&amp;define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&amp;&amp;module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&amp;&amp;t){var i=this._events=this._events||{},n=i[e]=i[e]||[];return n.indexOf(t)==-1&amp;&amp;n.push(t),this}},t.once=function(e,t){if(e&amp;&amp;t){this.on(e,t);var i=this._onceEvents=this._onceEvents||{},n=i[e]=i[e]||{};return n[t]=!0,this}},t.off=function(e,t){var i=this._events&amp;&amp;this._events[e];if(i&amp;&amp;i.length){var n=i.indexOf(t);return n!=-1&amp;&amp;i.splice(n,1),this}},t.emitEvent=function(e,t){var i=this._events&amp;&amp;this._events[e];if(i&amp;&amp;i.length){i=i.slice(0),t=t||[];for(var n=this._onceEvents&amp;&amp;this._onceEvents[e],o=0;o&lt;i.length;o++){var r=i[o],s=n&amp;&amp;n[r];s&amp;&amp;(this.off(e,r),delete n[r]),r.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e}),function(e,t){&quot;use strict&quot;;&quot;function&quot;==typeof define&amp;&amp;define.amd?define([&quot;ev-emitter/ev-emitter&quot;],function(i){return t(e,i)}):&quot;object&quot;==typeof module&amp;&amp;module.exports?module.exports=t(e,require(&quot;ev-emitter&quot;)):e.imagesLoaded=t(e,e.EvEmitter)}(&quot;undefined&quot;!=typeof window?window:this,function(e,t){function i(e,t){for(var i in t)e[i]=t[i];return e}function n(e){if(Array.isArray(e))return e;var t=&quot;object&quot;==typeof e&amp;&amp;&quot;number&quot;==typeof e.length;return t?d.call(e):[e]}function o(e,t,r){if(!(this instanceof o))return new o(e,t,r);var s=e;return&quot;string&quot;==typeof e&amp;&amp;(s=document.querySelectorAll(e)),s?(this.elements=n(s),this.options=i({},this.options),&quot;function&quot;==typeof t?r=t:i(this.options,t),r&amp;&amp;this.on(&quot;always&quot;,r),this.getImages(),h&amp;&amp;(this.jqDeferred=new h.Deferred),void setTimeout(this.check.bind(this))):void a.error(&quot;Bad element for imagesLoaded &quot;+(s||e))}function r(e){this.img=e}function s(e,t){this.url=e,this.element=t,this.img=new Image}var h=e.jQuery,a=e.console,d=Array.prototype.slice;o.prototype=Object.create(t.prototype),o.prototype.options={},o.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},o.prototype.addElementImages=function(e){&quot;IMG&quot;==e.nodeName&amp;&amp;this.addImage(e),this.options.background===!0&amp;&amp;this.addElementBackgroundImages(e);var t=e.nodeType;if(t&amp;&amp;u[t]){for(var i=e.querySelectorAll(&quot;img&quot;),n=0;n&lt;i.length;n++){var o=i[n];this.addImage(o)}if(&quot;string&quot;==typeof this.options.background){var r=e.querySelectorAll(this.options.background);for(n=0;n&lt;r.length;n++){var s=r[n];this.addElementBackgroundImages(s)}}}};var u={1:!0,9:!0,11:!0};return o.prototype.addElementBackgroundImages=function(e){var t=getComputedStyle(e);if(t)for(var i=/url\(([&#039;&quot;])?(.*?)\1\)/gi,n=i.exec(t.backgroundImage);null!==n;){var o=n&amp;&amp;n[2];o&amp;&amp;this.addBackground(o,e),n=i.exec(t.backgroundImage)}},o.prototype.addImage=function(e){var t=new r(e);this.images.push(t)},o.prototype.addBackground=function(e,t){var i=new s(e,t);this.images.push(i)},o.prototype.check=function(){function e(e,i,n){setTimeout(function(){t.progress(e,i,n)})}var t=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEach(function(t){t.once(&quot;progress&quot;,e),t.check()}):void this.complete()},o.prototype.progress=function(e,t,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent(&quot;progress&quot;,[this,e,t]),this.jqDeferred&amp;&amp;this.jqDeferred.notify&amp;&amp;this.jqDeferred.notify(this,e),this.progressedCount==this.images.length&amp;&amp;this.complete(),this.options.debug&amp;&amp;a&amp;&amp;a.log(&quot;progress: &quot;+i,e,t)},o.prototype.complete=function(){var e=this.hasAnyBroken?&quot;fail&quot;:&quot;done&quot;;if(this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent(&quot;always&quot;,[this]),this.jqDeferred){var t=this.hasAnyBroken?&quot;reject&quot;:&quot;resolve&quot;;this.jqDeferred[t](this)}},r.prototype=Object.create(t.prototype),r.prototype.check=function(){var e=this.getIsImageComplete();return e?void this.confirm(0!==this.img.naturalWidth,&quot;naturalWidth&quot;):(this.proxyImage=new Image,this.proxyImage.addEventListener(&quot;load&quot;,this),this.proxyImage.addEventListener(&quot;error&quot;,this),this.img.addEventListener(&quot;load&quot;,this),this.img.addEventListener(&quot;error&quot;,this),void(this.proxyImage.src=this.img.src))},r.prototype.getIsImageComplete=function(){return this.img.complete&amp;&amp;this.img.naturalWidth},r.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent(&quot;progress&quot;,[this,this.img,t])},r.prototype.handleEvent=function(e){var t=&quot;on&quot;+e.type;this[t]&amp;&amp;this[t](e)},r.prototype.onload=function(){this.confirm(!0,&quot;onload&quot;),this.unbindEvents()},r.prototype.onerror=function(){this.confirm(!1,&quot;onerror&quot;),this.unbindEvents()},r.prototype.unbindEvents=function(){this.proxyImage.removeEventListener(&quot;load&quot;,this),this.proxyImage.removeEventListener(&quot;error&quot;,this),this.img.removeEventListener(&quot;load&quot;,this),this.img.removeEventListener(&quot;error&quot;,this)},s.prototype=Object.create(r.prototype),s.prototype.check=function(){this.img.addEventListener(&quot;load&quot;,this),this.img.addEventListener(&quot;error&quot;,this),this.img.src=this.url;var e=this.getIsImageComplete();e&amp;&amp;(this.confirm(0!==this.img.naturalWidth,&quot;naturalWidth&quot;),this.unbindEvents())},s.prototype.unbindEvents=function(){this.img.removeEventListener(&quot;load&quot;,this),this.img.removeEventListener(&quot;error&quot;,this)},s.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent(&quot;progress&quot;,[this,this.element,t])},o.makeJQueryPlugin=function(t){t=t||e.jQuery,t&amp;&amp;(h=t,h.fn.imagesLoaded=function(e,t){var i=new o(this,e,t);return i.jqDeferred.promise(h(this))})},o.makeJQueryPlugin(),o});
/*! This file is auto-generated */
/*!
 * Masonry PACKAGED v4.2.2
 * Cascading grid layout library
 * https://masonry.desandro.com
 * MIT License
 * by David DeSandro
 */

!function(t,e){&quot;function&quot;==typeof define&amp;&amp;define.amd?define(&quot;jquery-bridget/jquery-bridget&quot;,[&quot;jquery&quot;],function(i){return e(t,i)}):&quot;object&quot;==typeof module&amp;&amp;module.exports?module.exports=e(t,require(&quot;jquery&quot;)):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){&quot;use strict&quot;;function i(i,r,a){function h(t,e,n){var o,r=&quot;$().&quot;+i+&#039;(&quot;&#039;+e+&#039;&quot;)&#039;;return t.each(function(t,h){var u=a.data(h,i);if(!u)return void s(i+&quot; not initialized. Cannot call methods, i.e. &quot;+r);var d=u[e];if(!d||&quot;_&quot;==e.charAt(0))return void s(r+&quot; is not a valid method&quot;);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&amp;&amp;(r.prototype.option||(r.prototype.option=function(t){a.isPlainObject(t)&amp;&amp;(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if(&quot;string&quot;==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&amp;&amp;t.bridget||(t.bridget=i)}var o=Array.prototype.slice,r=t.console,s=&quot;undefined&quot;==typeof r?function(){}:function(t){r.error(t)};return n(e||t.jQuery),i}),function(t,e){&quot;function&quot;==typeof define&amp;&amp;define.amd?define(&quot;ev-emitter/ev-emitter&quot;,e):&quot;object&quot;==typeof module&amp;&amp;module.exports?module.exports=e():t.EvEmitter=e()}(&quot;undefined&quot;!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&amp;&amp;e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&amp;&amp;n.push(e),this}},e.once=function(t,e){if(t&amp;&amp;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&amp;&amp;this._events[t];if(i&amp;&amp;i.length){var n=i.indexOf(e);return-1!=n&amp;&amp;i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&amp;&amp;this._events[t];if(i&amp;&amp;i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&amp;&amp;this._onceEvents[t],o=0;o<i>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 https://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);s=200==Math.round(t(o.width)),r.isBoxSizeOuter=s,i.removeChild(e)}}function r(e){if(o(),"string"==typeof e&amp;&amp;(e=document.querySelector(e)),e&amp;&amp;"object"==typeof e&amp;&amp;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&gt;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,z=a.borderTopWidth+a.borderBottomWidth,E=d&amp;&amp;s,b=t(r.width);b!==!1&amp;&amp;(a.width=b+(E?0:p+_));var x=t(r.height);return x!==!1&amp;&amp;(a.height=x+(E?0:g+z)),a.innerWidth=a.width-(p+_),a.innerHeight=a.height-(g+z),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&amp;&amp;define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&amp;&amp;module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i&lt;e.length;i++){var n=e[i],o=n+&quot;MatchesSelector&quot;;if(t[o])return o}}();return function(e,i){return e[t](i)}}),function(t,e){&quot;function&quot;==typeof define&amp;&amp;define.amd?define(&quot;fizzy-ui-utils/utils&quot;,[&quot;desandro-matches-selector/matches-selector&quot;],function(i){return e(t,i)}):&quot;object&quot;==typeof module&amp;&amp;module.exports?module.exports=e(t,require(&quot;desandro-matches-selector&quot;)):t.fizzyUIUtils=e(t,t.matchesSelector)}(window,function(t,e){var i={};i.extend=function(t,e){for(var i in e)t[i]=e[i];return t},i.modulo=function(t,e){return(t%e+e)%e};var n=Array.prototype.slice;i.makeArray=function(t){if(Array.isArray(t))return t;if(null===t||void 0===t)return[];var e=&quot;object&quot;==typeof t&amp;&amp;&quot;number&quot;==typeof t.length;return e?n.call(t):[t]},i.removeFrom=function(t,e){var i=t.indexOf(e);-1!=i&amp;&amp;t.splice(i,1)},i.getParent=function(t,i){for(;t.parentNode&amp;&amp;t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return&quot;string&quot;==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e=&quot;on&quot;+t.type;this[e]&amp;&amp;this[e](t)},i.filterFindElements=function(t,n){t=i.makeArray(t);var o=[];return t.forEach(function(t){if(t instanceof HTMLElement){if(!n)return void o.push(t);e(t,n)&amp;&amp;o.push(t);for(var i=t.querySelectorAll(n),r=0;r&lt;i.length;r++)o.push(i[r])}}),o},i.debounceMethod=function(t,e,i){i=i||100;var n=t.prototype[e],o=e+&quot;Timeout&quot;;t.prototype[e]=function(){var t=this[o];clearTimeout(t);var e=arguments,r=this;this[o]=setTimeout(function(){n.apply(r,e),delete r[o]},i)}},i.docReady=function(t){var e=document.readyState;&quot;complete&quot;==e||&quot;interactive&quot;==e?setTimeout(t):document.addEventListener(&quot;DOMContentLoaded&quot;,t)},i.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+&quot;-&quot;+i}).toLowerCase()};var o=t.console;return i.htmlInit=function(e,n){i.docReady(function(){var r=i.toDashed(n),s=&quot;data-&quot;+r,a=document.querySelectorAll(&quot;[&quot;+s+&quot;]&quot;),h=document.querySelectorAll(&quot;.js-&quot;+r),u=i.makeArray(a).concat(i.makeArray(h)),d=s+&quot;-options&quot;,l=t.jQuery;u.forEach(function(t){var i,r=t.getAttribute(s)||t.getAttribute(d);try{i=r&amp;&amp;JSON.parse(r)}catch(a){return void(o&amp;&amp;o.error(&quot;Error parsing &quot;+s+&quot; on &quot;+t.className+&quot;: &quot;+a))}var h=new e(t,i);l&amp;&amp;l.data(t,n,h)})})},i}),function(t,e){&quot;function&quot;==typeof define&amp;&amp;define.amd?define(&quot;outlayer/item&quot;,[&quot;ev-emitter/ev-emitter&quot;,&quot;get-size/get-size&quot;],e):&quot;object&quot;==typeof module&amp;&amp;module.exports?module.exports=e(require(&quot;ev-emitter&quot;),require(&quot;get-size&quot;)):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize))}(window,function(t,e){&quot;use strict&quot;;function i(t){for(var e in t)return!1;return e=null,!0}function n(t,e){t&amp;&amp;(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}function o(t){return t.replace(/([A-Z])/g,function(t){return&quot;-&quot;+t.toLowerCase()})}var r=document.documentElement.style,s=&quot;string&quot;==typeof r.transition?&quot;transition&quot;:&quot;WebkitTransition&quot;,a=&quot;string&quot;==typeof r.transform?&quot;transform&quot;:&quot;WebkitTransform&quot;,h={WebkitTransition:&quot;webkitTransitionEnd&quot;,transition:&quot;transitionend&quot;}[s],u={transform:a,transition:s,transitionDuration:s+&quot;Duration&quot;,transitionProperty:s+&quot;Property&quot;,transitionDelay:s+&quot;Delay&quot;},d=n.prototype=Object.create(t.prototype);d.constructor=n,d._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:&quot;absolute&quot;})},d.handleEvent=function(t){var e=&quot;on&quot;+t.type;this[e]&amp;&amp;this[e](t)},d.getSize=function(){this.size=e(this.element)},d.css=function(t){var e=this.element.style;for(var i in t){var n=u[i]||i;e[n]=t[i]}},d.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption(&quot;originLeft&quot;),i=this.layout._getOption(&quot;originTop&quot;),n=t[e?&quot;left&quot;:&quot;right&quot;],o=t[i?&quot;top&quot;:&quot;bottom&quot;],r=parseFloat(n),s=parseFloat(o),a=this.layout.size;-1!=n.indexOf(&quot;%&quot;)&amp;&amp;(r=r/100*a.width),-1!=o.indexOf(&quot;%&quot;)&amp;&amp;(s=s/100*a.height),r=isNaN(r)?0:r,s=isNaN(s)?0:s,r-=e?a.paddingLeft:a.paddingRight,s-=i?a.paddingTop:a.paddingBottom,this.position.x=r,this.position.y=s},d.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption(&quot;originLeft&quot;),n=this.layout._getOption(&quot;originTop&quot;),o=i?&quot;paddingLeft&quot;:&quot;paddingRight&quot;,r=i?&quot;left&quot;:&quot;right&quot;,s=i?&quot;right&quot;:&quot;left&quot;,a=this.position.x+t[o];e[r]=this.getXValue(a),e[s]=&quot;&quot;;var h=n?&quot;paddingTop&quot;:&quot;paddingBottom&quot;,u=n?&quot;top&quot;:&quot;bottom&quot;,d=n?&quot;bottom&quot;:&quot;top&quot;,l=this.position.y+t[h];e[u]=this.getYValue(l),e[d]=&quot;&quot;,this.css(e),this.emitEvent(&quot;layout&quot;,[this])},d.getXValue=function(t){var e=this.layout._getOption(&quot;horizontal&quot;);return this.layout.options.percentPosition&amp;&amp;!e?t/this.layout.size.width*100+&quot;%&quot;:t+&quot;px&quot;},d.getYValue=function(t){var e=this.layout._getOption(&quot;horizontal&quot;);return this.layout.options.percentPosition&amp;&amp;e?t/this.layout.size.height*100+&quot;%&quot;:t+&quot;px&quot;},d._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,o=t==this.position.x&amp;&amp;e==this.position.y;if(this.setPosition(t,e),o&amp;&amp;!this.isTransitioning)return void this.layoutPosition();var r=t-i,s=e-n,a={};a.transform=this.getTranslate(r,s),this.transition({to:a,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},d.getTranslate=function(t,e){var i=this.layout._getOption(&quot;originLeft&quot;),n=this.layout._getOption(&quot;originTop&quot;);return t=i?t:-t,e=n?e:-e,&quot;translate3d(&quot;+t+&quot;px, &quot;+e+&quot;px, 0)&quot;},d.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},d.moveTo=d._transitionTo,d.setPosition=function(t,e){this.position.x=parseFloat(t),this.position.y=parseFloat(e)},d._nonTransition=function(t){this.css(t.to),t.isCleaning&amp;&amp;this._removeStyles(t.to);for(var e in t.onTransitionEnd)t.onTransitionEnd[e].call(this)},d.transition=function(t){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(t);var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&amp;&amp;(e.clean[i]=!0);if(t.from){this.css(t.from);var n=this.element.offsetHeight;n=null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0};var l=&quot;opacity,&quot;+o(a);d.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;t=&quot;number&quot;==typeof t?t+&quot;ms&quot;:t,this.css({transitionProperty:l,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(h,this,!1)}},d.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},d.onotransitionend=function(t){this.ontransitionend(t)};var c={&quot;-webkit-transform&quot;:&quot;transform&quot;};d.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,n=c[t.propertyName]||t.propertyName;if(delete e.ingProperties[n],i(e.ingProperties)&amp;&amp;this.disableTransition(),n in e.clean&amp;&amp;(this.element.style[t.propertyName]=&quot;&quot;,delete e.clean[n]),n in e.onEnd){var o=e.onEnd[n];o.call(this),delete e.onEnd[n]}this.emitEvent(&quot;transitionEnd&quot;,[this])}},d.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(h,this,!1),this.isTransitioning=!1},d._removeStyles=function(t){var e={};for(var i in t)e[i]=&quot;&quot;;this.css(e)};var f={transitionProperty:&quot;&quot;,transitionDuration:&quot;&quot;,transitionDelay:&quot;&quot;};return d.removeTransitionStyles=function(){this.css(f)},d.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+&quot;ms&quot;},d.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:&quot;&quot;}),this.emitEvent(&quot;remove&quot;,[this])},d.remove=function(){return s&amp;&amp;parseFloat(this.layout.options.transitionDuration)?(this.once(&quot;transitionEnd&quot;,function(){this.removeElem()}),void this.hide()):void this.removeElem()},d.reveal=function(){delete this.isHidden,this.css({display:&quot;&quot;});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty(&quot;visibleStyle&quot;);e[i]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},d.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent(&quot;reveal&quot;)},d.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return&quot;opacity&quot;;for(var i in e)return i},d.hide=function(){this.isHidden=!0,this.css({display:&quot;&quot;});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty(&quot;hiddenStyle&quot;);e[i]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},d.onHideTransitionEnd=function(){this.isHidden&amp;&amp;(this.css({display:&quot;none&quot;}),this.emitEvent(&quot;hide&quot;))},d.destroy=function(){this.css({position:&quot;&quot;,left:&quot;&quot;,right:&quot;&quot;,top:&quot;&quot;,bottom:&quot;&quot;,transition:&quot;&quot;,transform:&quot;&quot;})},n}),function(t,e){&quot;use strict&quot;;&quot;function&quot;==typeof define&amp;&amp;define.amd?define(&quot;outlayer/outlayer&quot;,[&quot;ev-emitter/ev-emitter&quot;,&quot;get-size/get-size&quot;,&quot;fizzy-ui-utils/utils&quot;,&quot;./item&quot;],function(i,n,o,r){return e(t,i,n,o,r)}):&quot;object&quot;==typeof module&amp;&amp;module.exports?module.exports=e(t,require(&quot;ev-emitter&quot;),require(&quot;get-size&quot;),require(&quot;fizzy-ui-utils&quot;),require(&quot;./item&quot;)):t.Outlayer=e(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item)}(window,function(t,e,i,n,o){&quot;use strict&quot;;function r(t,e){var i=n.getQueryElement(t);if(!i)return void(h&amp;&amp;h.error(&quot;Bad element for &quot;+this.constructor.namespace+&quot;: &quot;+(i||t)));this.element=i,u&amp;&amp;(this.$element=u(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e);var o=++l;this.element.outlayerGUID=o,c[o]=this,this._create();var r=this._getOption(&quot;initLayout&quot;);r&amp;&amp;this.layout()}function s(t){function e(){t.apply(this,arguments)}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e}function a(t){if(&quot;number&quot;==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),i=e&amp;&amp;e[1],n=e&amp;&amp;e[2];if(!i.length)return 0;i=parseFloat(i);var o=m[n]||1;return i*o}var h=t.console,u=t.jQuery,d=function(){},l=0,c={};r.namespace=&quot;outlayer&quot;,r.Item=o,r.defaults={containerStyle:{position:&quot;relative&quot;},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:&quot;0.4s&quot;,hiddenStyle:{opacity:0,transform:&quot;scale(0.001)&quot;},visibleStyle:{opacity:1,transform:&quot;scale(1)&quot;}};var f=r.prototype;n.extend(f,e.prototype),f.option=function(t){n.extend(this.options,t)},f._getOption=function(t){var e=this.constructor.compatOptions[t];return e&amp;&amp;void 0!==this.options[e]?this.options[e]:this.options[t]},r.compatOptions={initLayout:&quot;isInitLayout&quot;,horizontal:&quot;isHorizontal&quot;,layoutInstant:&quot;isLayoutInstant&quot;,originLeft:&quot;isOriginLeft&quot;,originTop:&quot;isOriginTop&quot;,resize:&quot;isResizeBound&quot;,resizeContainer:&quot;isResizingContainer&quot;},f._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle);var t=this._getOption(&quot;resize&quot;);t&amp;&amp;this.bindResize()},f.reloadItems=function(){this.items=this._itemize(this.element.children)},f._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],o=0;o&lt;e.length;o++){var r=e[o],s=new i(r,this);n.push(s)}return n},f._filterFindItemElements=function(t){return n.filterFindElements(t,this.options.itemSelector)},f.getItemElements=function(){return this.items.map(function(t){return t.element})},f.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption(&quot;layoutInstant&quot;),e=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},f._init=f.layout,f._resetLayout=function(){this.getSize()},f.getSize=function(){this.size=i(this.element)},f._getMeasurement=function(t,e){var n,o=this.options[t];o?(&quot;string&quot;==typeof o?n=this.element.querySelector(o):o instanceof HTMLElement&amp;&amp;(n=o),this[t]=n?i(n)[e]:o):this[t]=0},f.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},f._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},f._layoutItems=function(t,e){if(this._emitCompleteOnItems(&quot;layout&quot;,t),t&amp;&amp;t.length){var i=[];t.forEach(function(t){var n=this._getItemLayoutPosition(t);n.item=t,n.isInstant=e||t.isLayoutInstant,i.push(n)},this),this._processLayoutQueue(i)}},f._getItemLayoutPosition=function(){return{x:0,y:0}},f._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},f.updateStagger=function(){var t=this.options.stagger;return null===t||void 0===t?void(this.stagger=0):(this.stagger=a(t),this.stagger)},f._positionItem=function(t,e,i,n,o){n?t.goTo(e,i):(t.stagger(o*this.stagger),t.moveTo(e,i))},f._postLayout=function(){this.resizeContainer()},f.resizeContainer=function(){var t=this._getOption(&quot;resizeContainer&quot;);if(t){var e=this._getContainerSize();e&amp;&amp;(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},f._getContainerSize=d,f._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&amp;&amp;(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?&quot;width&quot;:&quot;height&quot;]=t+&quot;px&quot;}},f._emitCompleteOnItems=function(t,e){function i(){o.dispatchEvent(t+&quot;Complete&quot;,null,[e])}function n(){s++,s==r&amp;&amp;i()}var o=this,r=e.length;if(!e||!r)return void i();var s=0;e.forEach(function(e){e.once(t,n)})},f.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;if(this.emitEvent(t,n),u)if(this.$element=this.$element||u(this.element),e){var o=u.Event(e);o.type=t,this.$element.trigger(o,i)}else this.$element.trigger(t,i)},f.ignore=function(t){var e=this.getItem(t);e&amp;&amp;(e.isIgnored=!0)},f.unignore=function(t){var e=this.getItem(t);e&amp;&amp;delete e.isIgnored},f.stamp=function(t){t=this._find(t),t&amp;&amp;(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},f.unstamp=function(t){t=this._find(t),t&amp;&amp;t.forEach(function(t){n.removeFrom(this.stamps,t),this.unignore(t)},this)},f._find=function(t){return t?(&quot;string&quot;==typeof t&amp;&amp;(t=this.element.querySelectorAll(t)),t=n.makeArray(t)):void 0},f._manageStamps=function(){this.stamps&amp;&amp;this.stamps.length&amp;&amp;(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},f._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},f._manageStamp=d,f._getElementOffset=function(t){var e=t.getBoundingClientRect(),n=this._boundingRect,o=i(t),r={left:e.left-n.left-o.marginLeft,top:e.top-n.top-o.marginTop,right:n.right-e.right-o.marginRight,bottom:n.bottom-e.bottom-o.marginBottom};return r},f.handleEvent=n.handleEvent,f.bindResize=function(){t.addEventListener(&quot;resize&quot;,this),this.isResizeBound=!0},f.unbindResize=function(){t.removeEventListener(&quot;resize&quot;,this),this.isResizeBound=!1},f.onresize=function(){this.resize()},n.debounceMethod(r,&quot;onresize&quot;,100),f.resize=function(){this.isResizeBound&amp;&amp;this.needsResizeLayout()&amp;&amp;this.layout()},f.needsResizeLayout=function(){var t=i(this.element),e=this.size&amp;&amp;t;return e&amp;&amp;t.innerWidth!==this.size.innerWidth},f.addItems=function(t){var e=this._itemize(t);return e.length&amp;&amp;(this.items=this.items.concat(e)),e},f.appended=function(t){var e=this.addItems(t);e.length&amp;&amp;(this.layoutItems(e,!0),this.reveal(e))},f.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},f.reveal=function(t){if(this._emitCompleteOnItems(&quot;reveal&quot;,t),t&amp;&amp;t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.reveal()})}},f.hide=function(t){if(this._emitCompleteOnItems(&quot;hide&quot;,t),t&amp;&amp;t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.hide()})}},f.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},f.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},f.getItem=function(t){for(var e=0;e&lt;this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},f.getItems=function(t){t=n.makeArray(t);var e=[];return t.forEach(function(t){var i=this.getItem(t);i&amp;&amp;e.push(i)},this),e},f.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems(&quot;remove&quot;,e),e&amp;&amp;e.length&amp;&amp;e.forEach(function(t){t.remove(),n.removeFrom(this.items,t)},this)},f.destroy=function(){var t=this.element.style;t.height=&quot;&quot;,t.position=&quot;&quot;,t.width=&quot;&quot;,this.items.forEach(function(t){t.destroy()}),this.unbindResize();var e=this.element.outlayerGUID;delete c[e],delete this.element.outlayerGUID,u&amp;&amp;u.removeData(this.element,this.constructor.namespace)},r.data=function(t){t=n.getQueryElement(t);var e=t&amp;&amp;t.outlayerGUID;return e&amp;&amp;c[e]},r.create=function(t,e){var i=s(r);return i.defaults=n.extend({},r.defaults),n.extend(i.defaults,e),i.compatOptions=n.extend({},r.compatOptions),i.namespace=t,i.data=r.data,i.Item=s(o),n.htmlInit(i,t),u&amp;&amp;u.bridget&amp;&amp;u.bridget(t,i),i};var m={ms:1,s:1e3};return r.Item=o,r}),function(t,e){&quot;function&quot;==typeof define&amp;&amp;define.amd?define([&quot;outlayer/outlayer&quot;,&quot;get-size/get-size&quot;],e):&quot;object&quot;==typeof module&amp;&amp;module.exports?module.exports=e(require(&quot;outlayer&quot;),require(&quot;get-size&quot;)):t.Masonry=e(t.Outlayer,t.getSize)}(window,function(t,e){var i=t.create(&quot;masonry&quot;);i.compatOptions.fitWidth=&quot;isFitWidth&quot;;var n=i.prototype;return n._resetLayout=function(){this.getSize(),this._getMeasurement(&quot;columnWidth&quot;,&quot;outerWidth&quot;),this._getMeasurement(&quot;gutter&quot;,&quot;outerWidth&quot;),this.measureColumns(),this.colYs=[];for(var t=0;ts?"round":"floor";r=Math[a](r),this.cols=Math.max(r,1)},n.getContainerWidth=function(){var t=this._getOption("fitWidth"),i=t?this.element.parentNode:this.element,n=e(i);this.containerWidth=n&amp;&amp;n.innerWidth},n._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=e&amp;&amp;1&gt;e?"round":"ceil",n=Math[i](t.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var o=this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition",r=this[o](n,t),s={x:this.columnWidth*r.col,y:r.y},a=r.y+t.size.outerHeight,h=n+r.col,u=r.col;h&gt;u;u++)this.colYs[u]=a;return s},n._getTopColPosition=function(t){var e=this._getTopColGroup(t),i=Math.min.apply(Math,e);return{col:e.indexOf(i),y:i}},n._getTopColGroup=function(t){if(2&gt;t)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;i&gt;n;n++)e[n]=this._getColGroupY(n,t);return e},n._getColGroupY=function(t,e){if(2&gt;e)return this.colYs[t];var i=this.colYs.slice(t,t+e);return Math.max.apply(Math,i)},n._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,n=t&gt;1&amp;&amp;i+t&gt;this.cols;i=n?0:i;var o=e.size.outerWidth&amp;&amp;e.size.outerHeight;return this.horizontalColIndex=o?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},n._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&gt;=l;l++)this.colYs[l]=Math.max(d,this.colYs[l])},n._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&amp;&amp;(t.width=this._getContainerFitWidth()),t},n._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&amp;&amp;0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},n.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},i});
/*!
 * Masonry v2 shim
 * to maintain backwards compatibility
 * as of Masonry v3.1.2
 *
 * Cascading grid layout library
 * http://masonry.desandro.com
 * MIT License
 * by David DeSandro
 */
!function(a){"use strict";var b=a.Masonry;b.prototype._remapV2Options=function(){this._remapOption("gutterWidth","gutter"),this._remapOption("isResizable","isResizeBound"),this._remapOption("isRTL","isOriginLeft",function(a){return!a});var a=this.options.isAnimated;if(void 0!==a&amp;&amp;(this.options.transitionDuration=a?this.options.transitionDuration:0),void 0===a||a){var b=this.options.animationOptions,c=b&amp;&amp;b.duration;c&amp;&amp;(this.options.transitionDuration="string"==typeof c?c:c+"ms")}},b.prototype._remapOption=function(a,b,c){var d=this.options[a];void 0!==d&amp;&amp;(this.options[b]=c?c(d):d)};var c=b.prototype._create;b.prototype._create=function(){var a=this;this._remapV2Options(),c.apply(this,arguments),setTimeout(function(){jQuery(a.element).addClass("masonry")},0)};var d=b.prototype.layout;b.prototype.layout=function(){this._remapV2Options(),d.apply(this,arguments)};var e=b.prototype.option;b.prototype.option=function(){e.apply(this,arguments),this._remapV2Options()};var f=b.prototype._itemize;b.prototype._itemize=function(a){var b=f.apply(this,arguments);return jQuery(a).addClass("masonry-brick"),b};var g=b.prototype.measureColumns;b.prototype.measureColumns=function(){var a=this.options.columnWidth;a&amp;&amp;"function"==typeof a&amp;&amp;(this.getContainerWidth(),this.columnWidth=a(this.containerWidth)),g.apply(this,arguments)},b.prototype.reload=function(){this.reloadItems.apply(this,arguments),this.layout.apply(this)};var h=b.prototype.destroy;b.prototype.destroy=function(){var a=this.getItemElements();jQuery(this.element).removeClass("masonry"),jQuery(a).removeClass("masonry-brick"),h.apply(this,arguments)}}(window);