(function(d,a,b){function c(x,n){var q=d("> .slick__slider",n).length?d("> .slick__slider",n):d(n);var C=d("> .slick__arrow",n);var v=q.data("slick")?d.extend({},b.slick,q.data("slick")):d.extend({},b.slick);var s=d.type(v.responsive)==="array"&&v.responsive.length?v.responsive:false;var z=v.appendDots;var A;var m=v.lazyLoad==="blazy"&&a.blazy;var B=q.find(".media--player").length;var w=q.hasClass("unslick");if(!w){v.appendDots=z===".slick__arrow"?C:(z||d(q))}if(s){for(A in s){if(s.hasOwnProperty(A)&&s[A].settings!=="unslick"){s[A].settings=d.extend({},b.slick,g(v),s[A].settings)}}}q.data("slick",v);v=q.data("slick");function e(){if(v.randomize&&!q.hasClass("slick-initiliazed")){f()}if(!w){q.on("init.sl",function(r,o){if(z===".slick__arrow"){d(o.$dots).insertAfter(o.$prevArrow)}var i=q.find(".slick-cloned.slick-active .b-lazy:not(.b-loaded)");if(m&&i.length){a.blazy.init.load(i)}})}if(m){q.on("beforeChange.sl",function(){u(true)})}else{d(".media--loading",q).closest(".slide__content").addClass("is-loading")}q.on("setPosition.sl",function(o,i){h(i)})}function u(o){if(q.find(".b-lazy:not(.b-loaded)").length){var i=q.find(o?".slide:not(.slick-cloned) .b-lazy:not(.b-loaded)":".slick-active .b-lazy:not(.b-loaded)");if(i.length){a.blazy.init.load(i)}}}function y(){if(B){j()}if(m){u(false)}}function p(){q.parent().on("click.sl",".slick-down",function(o){o.preventDefault();var i=d(this);d("html, body").stop().animate({scrollTop:d(i.data("target")).offset().top-(i.data("offset")||0)},800,"easeOutQuad" in d.easing&&v.easing?v.easing:"swing")});if(v.mouseWheel){q.on("mousewheel.sl",function(i,o){i.preventDefault();return q.slick(o<0?"slickNext":"slickPrev")})}if(!m){q.on("lazyLoaded lazyLoadError",function(r,o,i){k(i)})}q.on("afterChange.sl",y);if(B){q.on("click.sl",".media__icon--close",j);q.on("click.sl",".media__icon--play",l)}}function k(i){var r=d(i);var t=r.closest(".slide")||r.closest(".unslick");r.parentsUntil(t).removeClass(function(D,E){return(E.match(/(\S+)loading/g)||[]).join(" ")});var o=r.closest(".media--background");if(o.length&&o.find("> img").length){o.css("background-image","url("+r.attr("src")+")");o.find("> img").remove();o.removeAttr("data-lazy")}}function f(){q.children().sort(function(){return 0.5-Math.random()}).each(function(){q.append(this)})}function h(o){var i=o.slideCount<=o.options.slidesToShow;var r=i||o.options.arrows===false;if(q.attr("id")===o.$slider.attr("id")){if(!o.options.centerPadding||o.options.centerPadding==="0"){o.$list.css("padding","")}if(i&&o.$slideTrack.width()<=o.$slider.width()){o.$slideTrack.css({left:"",transform:""})}var t=q.find(".b-loaded ~ .b-loader");if(t.length){t.remove()}C[r?"addClass":"removeClass"]("visually-hidden")}}function j(){q.removeClass("is-paused");if(q.find(".is-playing").length){q.find(".is-playing").removeClass("is-playing").find(".media__icon--close").click()}}function l(){q.addClass("is-paused").slick("slickPause")}function g(i){return w?{}:{slide:i.slide,lazyLoad:i.lazyLoad,dotsClass:i.dotsClass,rtl:i.rtl,prevArrow:d(".slick-prev",C),nextArrow:d(".slick-next",C),appendArrows:C,customPaging:function(E,F){var o=E.$slides.eq(F).find("[data-thumb]")||null;var t='<img alt="'+a.t(o.find("img").attr("alt"))+'" src="'+o.data("thumb")+'">';var D=o.length&&i.dotsClass.indexOf("thumbnail")>0?'<div class="slick-dots__thumbnail">'+t+"</div>":"";var r=E.defaults.customPaging(E,F);return D?r.add(D):r}}}e();q.slick(g(v));p();if(w){q.slick("unslick")}d(n).addClass("slick--initialized")}a.behaviors.slick={attach:function(e){d(".slick",e).once("slick").each(c)}}})(jQuery,Drupal,drupalSettings);
