<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">!function(t,e,i){"function"==typeof define&amp;&amp;define.amd?define("begrid",e):"object"==typeof module&amp;&amp;module.exports?module.exports=e(i):t.BeGrid=e(i)}(window,function(t){"use strict";var e=t(window),i=function(i){null==i||t(i).hasClass("be-grid-initialized")||(this.init(i),e.load(function(){this.ele.isotope("layout")}.bind(this)))};return i.prototype.init=function(e){null!=e&amp;&amp;(this.ele=t(e),this.setDefaultProps(),this.setLayout(),this.setGutter(),this.initGridAnimation(),this.grid(),this.initEvents(),this.filterItems())},i.prototype.initEvents=function(){e.on("load",function(){this.ele.isotope("layout")}.bind(this)),e.on("debouncedresize",function(){var e=this.ele.find("audio, video"),i=this.ele.find(".be-slider");this.grid(),0&lt;e.length&amp;&amp;e.each(function(){var e=t(this).data().mediaelementplayer;"object"==typeof e&amp;&amp;(e.setPlayerSize(),e.setControlsSize())}),0&lt;i.length&amp;&amp;(i.each(function(){var e=t(this);e.hasClass("flickity-enabled")&amp;&amp;e.flickity("reposition")}),this.ele.isotope("layout"))}.bind(this))},i.prototype.setDefaultProps=function(){this.cols=3,this.gutter=0,this.elementsToReveal=null,this.animationType="revealAllAtOnce",this.layout="masonry"},i.prototype.setGutter=function(){this.gutter=parseInt(this.ele.attr("data-gutter"))||0},i.prototype.setLayout=function(){"metro"===this.ele.attr("data-layout")&amp;&amp;(this.layout="metro")},i.prototype.setCols=function(){var t=parseInt(this.ele.attr("data-cols"))||3,i=e.width();if(1024&lt;i)this.cols=t;else if(959&lt;i)switch(t){case 1:this.cols=1;break;case 2:this.cols=2;break;case 3:default:this.cols=3}else 767&lt;i?this.cols=1==t?1:2:null!=this.ele.attr("data-mobile-cols")?this.cols=parseInt(this.ele.attr("data-mobile-cols")):this.cols=1},i.prototype.initGridAnimation=function(){this.animationType="1"===this.ele.attr("data-scroll-reveal")?"scrollReveal":"revealAllAtOnce",this.elementsToReveal=this.ele.find(".be-col"),this.addAnimationClass(),"scrollReveal"===this.animationType&amp;&amp;e.on("scroll",function(){this.triggerScrollReveal()}.bind(this))},i.prototype.addAnimationClass=function(){var t=this.ele.attr("data-animation-target")||".be-col",e=this.ele.attr("data-animation")||"be-col-hide";this.ele.find(t).addClass(e)},i.prototype.triggerScrollReveal=function(){if("scrollReveal"===this.animationType&amp;&amp;0&lt;this.elementsToReveal.length){var e=this.elementsToReveal.filter(function(){return t(this).isVisible(-100)});0&lt;e.length&amp;&amp;(e.each(function(e,i){var s=t(i),a=null==this.ele.attr("data-animation")?"be-col-visible":"be-start-animation",l=this.ele.attr("data-animation-target");null!=l&amp;&amp;(s=s.find(l)),s.css("transition-delay",150*e+"ms"),s.addClass(a)}.bind(this)),this.elementsToReveal=this.elementsToReveal.not(e))}},i.prototype.filterItems=function(){"1"===this.ele.attr("data-filter-items")&amp;&amp;this.ele.parent().on("click",".sort-items",function(e){var i=t(e.currentTarget).data("id"),s=t([]);if(!t(e.currentTarget).hasClass("current_choice")){this.ele.parent().find(".sort-items").removeClass("current_choice"),t(e.currentTarget).addClass("current_choice");var a=this.ele.find(".be-col");a.css({transform:"scale(0)",transition:"all 0.3s ease"}),setTimeout(function(){a.find(".be-start-animation").css("transition-delay",""),a.css({transform:"",transition:""}),this.ele.isotope({filter:function(){var e=t(this).data("category-names");if("all"===i||e.indexOf(i)&gt;-1)return s=s.add(t(this)),!0},transitionDuration:0}),s.find(".be-start-animation").removeClass("be-start-animation"),this.elementsToReveal=s,setTimeout(function(){"scrollReveal"===this.animationType?this.triggerScrollReveal():this.revealAllAtOnce()}.bind(this),0)}.bind(this),300)}}.bind(this))},i.prototype.revealAllAtOnce=function(){"revealAllAtOnce"===this.animationType&amp;&amp;0&lt;this.elementsToReveal.length&amp;&amp;(this.elementsToReveal.each(function(e,i){var s=t(i),a=null==this.ele.attr("data-animation")?"be-col-visible":"be-start-animation",l=this.ele.attr("data-animation-target");null!=l&amp;&amp;(s=s.find(l)),s.css("transition-delay",150*e+"ms"),s.addClass(a)}.bind(this)),this.elementsToReveal=t([]))},i.prototype.grid=function(){this.setCols(),this.setWidth(),this.setGiantCells(),this.renderLayout()},i.prototype.setWidth=function(){this.ele.width("");var i,s,a=this.ele.width(),l=e.width(),n=this.ele.find(".be-col");console.log(a);a=Math.floor(a/this.cols)*this.cols+this.cols,console.log(a),this.ele.width(a),s=a/this.cols,"masonry"==this.layout?n.outerWidth(s):(767&lt;l&amp;&amp;0&lt;(i=n.filter(function(){return t(this).hasClass("be-double-width-cell")||t(this).hasClass("be-double-width-height-cell")})).length&amp;&amp;(n=n.not(i),i.outerWidth(2*s)),n.outerWidth(s))},i.prototype.setGiantCells=function(){if("metro"==this.layout){var i=isNaN(parseFloat(this.ele.attr("data-aspect-ratio")))?1:parseFloat(this.ele.attr("data-aspect-ratio")),s=this.ele.width()/this.cols-this.gutter,a=e.width(),l=s/i,n=(l=Math.round(100*l)/100,this.ele.find(".be-double-width-cell")),o=this.ele.find(".be-double-height-cell"),r=this.ele.find(".be-double-width-height-cell");0&lt;n.length&amp;&amp;n.each(function(e,i){var n,o=t(i);n=767&lt;a?l/(2*s+this.gutter):l/s,isNaN(n)||(n*=100,o.find(".be-grid-placeholder").css("padding-bottom",n+"%"))}.bind(this)),0&lt;o.length&amp;&amp;o.each(function(e,i){var a=t(i),n=(2*l+this.gutter)/s;isNaN(n)||(n*=100,a.find(".be-grid-placeholder").css("padding-bottom",n+"%"))}.bind(this)),0&lt;r.length&amp;&amp;r.each(function(e,i){var n,o=t(i);n=767&lt;a?(2*l+this.gutter)/(2*s+this.gutter):(2*l+this.gutter)/s,isNaN(n)||(n*=100,o.find(".be-grid-placeholder").css("padding-bottom",n+"%"))}.bind(this))}},i.prototype.renderLayout=function(){var t=this.ele.width()/this.cols;this.ele.isotope({isInitLayout:!1,itemSelector:".be-col",resize:!1,masonry:{columnWidth:t}}),this.ele.on("layoutComplete",function(){this.ele.hasClass("be-grid-initialized")||(this.ele.addClass("be-grid-initialized"),setTimeout(function(){"scrollReveal"===this.animationType?this.triggerScrollReveal():this.revealAllAtOnce(),BeLazyLoad.lazyLoad()}.bind(this),0))}.bind(this)),this.ele.isotope()},i},jQuery);</pre></body></html>