text: var app=angular.module("PortfolioApp",["ngRoute","slick"]);app.config(function($routeProvider){"ngInject";$routeProvider.when("/",{controller:"HomeController",templateUrl:"js/angular/views/home-view.html"}).when("/work/:projectId",{controller:"ProjectController",templateUrl:"js/angular/views/project-view.html"}).otherwise({redirectTo:"/"})}),app.controller("HomeController",["$scope","projects",function($scope,projects){"ngInject";function bindListeners(){$("header").on("click",".mobile-toggle",function(){$(this).toggleClass("active")}),$("header, .about").on("click",".nav-link",function(e){e.preventDefault(),e.stopImmediatePropagation(),$(window).width()<=740&&$(".mobile-toggle").removeClass("active");var anchor=$(this).attr("href");$("html, body").animate({scrollTop:$(anchor).offset().top-70},500)})}projects.success(function(data){$scope.projects=data}),angular.element(document).ready(function(){bindListeners()})}]),app.controller("ProjectController",["$scope","$routeParams","$http",function($scope,$routeParams,$http,$sce){"ngInject";$scope.video=!1,$http.get("projects/"+$routeParams.projectId+".json").success(function(data){$scope.detail=data}).error(function(data){console.log("Failed to get data")})}]),app.factory("projects",["$http",function($http){"ngInject";return $http.get("projects/project-list.json").success(function(data){return data}).error(function(data){return data})}]),app.filter("safe",function($sce){"ngInject";return function(val){return $sce.trustAsHtml(val)}}),!function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery"],i):i(jQuery)}(function(i){"use strict";var e=window.Slick||{};e=function(){function e(e,s){var o,n,l=this;if(l.defaults={accessibility:!0,arrows:!0,autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",dots:!0,draggable:!0,easing:"linear",fade:!1,infinite:!0,lazyLoad:"ondemand",onBeforeChange:null,onAfterChange:null,onInit:null,onReInit:null,pauseOnHover:!0,responsive:null,slide:"div",slidesToShow:1,slidesToScroll:1,speed:300,swipe:!0,touchMove:!0,touchThreshold:5,vertical:!1},l.initials={animating:!1,autoPlayTimer:null,currentSlide:0,currentLeft:null,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1},i.extend(l,l.initials),l.activeBreakpoint=null,l.animType=null,l.animProp=null,l.breakpoints=[],l.breakpointSettings=[],l.cssTransitions=!1,l.paused=!1,l.positionProp=null,l.$slider=i(e),l.$slidesCache=null,l.transitionType=null,l.windowWidth=0,l.windowTimer=null,l.options=i.extend({},l.defaults,s),l.originalSettings=l.options,o=l.options.responsive||null,o&&o.length>-1){for(n in o)o.hasOwnProperty(n)&&(l.breakpoints.push(o[n].breakpoint),l.breakpointSettings[o[n].breakpoint]=o[n].settings);l.breakpoints.sort(function(i,e){return e-i})}l.autoPlay=i.proxy(l.autoPlay,l),l.autoPlayClear=i.proxy(l.autoPlayClear,l),l.changeSlide=i.proxy(l.changeSlide,l),l.setPosition=i.proxy(l.setPosition,l),l.swipeHandler=i.proxy(l.swipeHandler,l),l.dragHandler=i.proxy(l.dragHandler,l),l.keyHandler=i.proxy(l.keyHandler,l),l.autoPlayIterator=i.proxy(l.autoPlayIterator,l),l.instanceUid=t++,l.init()}var t=0;return e}(),e.prototype.addSlide=function(e,t,s){var o=this;if("boolean"==typeof t)s=t,t=null;else if(0>t||t>=o.slideCount)return!1;o.unload(),"number"==typeof t?0===t&&0===o.$slides.length?i(e).appendTo(o.$slideTrack):s?i(e).insertBefore(o.$slides.eq(t)):i(e).insertAfter(o.$slides.eq(t)):s===!0?i(e).prependTo(o.$slideTrack):i(e).appendTo(o.$slideTrack),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).remove(),o.$slideTrack.append(o.$slides),o.reinit()},e.prototype.animateSlide=function(e,t){var s={},o=this;o.transformsEnabled===!1?o.options.vertical===!1?o.$slideTrack.animate({left:e},o.options.speed,o.options.easing,t):o.$slideTrack.animate({top:e},o.options.speed,o.options.easing,t):o.cssTransitions===!1?i({animStart:o.currentLeft}).animate({animStart:e},{duration:o.options.speed,easing:o.options.easing,step:function(i){o.options.vertical===!1?(s[o.animType]="translate("+i+"px, 0px)",o.$slideTrack.css(s)):(s[o.animType]="translate(0px,"+i+"px,0px)",o.$slideTrack.css(s))},complete:function(){t&&t.call()}}):(o.applyTransition(),o.options.vertical===!1?s[o.animType]="translate3d("+e+"px, 0px, 0px)":s[o.animType]="translate3d(0px,"+e+"px, 0px)",o.$slideTrack.css(s),t&&setTimeout(function(){o.disableTransition(),t.call()},o.options.speed))},e.prototype.applyTransition=function(i){var e,t,s=this;e=s.options.fade===!1?s.transitionType+" "+s.options.speed+"ms "+s.options.cssEase:"opacity "+s.options.speed+"ms "+s.options.cssEase,t=s.options.vertical===!1?s.listWidth/2+" 50%":"",s.options.fade===!1?s.$slideTrack.css({transition:e,transformOrigin:t}):s.$slides.eq(i).css({transition:e})},e.prototype.autoPlay=function(){var i=this;i.autoPlayTimer&&clearInterval(i.autoPlayTimer),i.slideCount>i.options.slidesToShow&&i.paused!==!0&&(i.autoPlayTimer=setInterval(i.autoPlayIterator,i.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){var i=this;i.autoPlayTimer&&clearInterval(i.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var i=this;i.options.infinite===!1?1===i.direction?(i.currentSlide+1===i.slideCount-1&&(i.direction=0),i.slideHandler(i.currentSlide+i.options.slidesToScroll)):(i.currentSlide-1===0&&(i.direction=1),i.slideHandler(i.currentSlide-i.options.slidesToScroll)):i.slideHandler(i.currentSlide+i.options.slidesToScroll)},e.prototype.buildArrows=function(){var e=this;if(e.options.arrows===!0&&e.slideCount>e.options.slidesToShow){var t=document.getElementById("slickDots");e.$prevArrow=i('<button type="button" class="slick-prev" tabIndex="-1">Previous</button>').prependTo(t),e.$nextArrow=i('<button type="button" class="slick-next" tabIndex="-1">Next</button>').appendTo(t),e.options.infinite!==!0&&e.$prevArrow.addClass("slick-disabled")}},e.prototype.buildDots=function(){var e,t,s=this;if(s.options.dots===!0&&s.slideCount>s.options.slidesToShow){for(t='<ul class="slick-dots" id="slickDots">',e=0;e<=s.getDotCount();e+=1)t+='<li><a href="javascript:void(0)" tabIndex="-1">'+e+"</a></li>";t+="</ul>",s.$dots=i(t).appendTo(s.$slider),s.$dots.find("li").first().addClass("slick-active")}},e.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slidesCache=e.$slides,e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?i('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),e.options.accessibility===!0&&e.$list.prop("tabIndex",0),e.options.centerMode===!0&&(e.options.infinite=!0,e.options.slidesToScroll=1,e.options.slidesToShow%2===0&&(e.options.slidesToShow=3)),i("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildDots(),e.buildArrows(),e.setSlideClasses(0),e.options.draggable===!0&&e.$list.addClass("draggable")},e.prototype.checkResponsive=function(){var e,t,s=this;if(s.originalSettings.responsive&&s.originalSettings.responsive.length>-1&&null!==s.originalSettings.responsive){t=null;for(e in s.breakpoints)s.breakpoints.hasOwnProperty(e)&&i(window).width()<s.breakpoints[e]&&(t=s.breakpoints[e]);null!==t?null!==s.activeBreakpoint?t!==s.activeBreakpoint&&(s.activeBreakpoint=t,s.options=i.extend({},s.defaults,s.breakpointSettings[t]),s.refresh()):(s.activeBreakpoint=t,s.options=i.extend({},s.defaults,s.breakpointSettings[t]),s.refresh()):null!==s.activeBreakpoint&&(s.activeBreakpoint=null,s.options=i.extend({},s.defaults,s.originalSettings),s.refresh())}},e.prototype.changeSlide=function(e){var t=this;switch(e.data.message){case"previous":t.slideHandler(t.currentSlide-t.options.slidesToScroll);break;case"next":t.slideHandler(t.currentSlide+t.options.slidesToScroll);break;case"index":t.slideHandler((i(e.target).parent().index()-1)*t.options.slidesToScroll);break;default:return!1}},e.prototype.destroy=function(){var e=this;e.autoPlayClear(),e.touchObject={},i(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&(e.$prevArrow.remove(),e.$nextArrow.remove()),e.$slides.unwrap().unwrap(),e.$slides.removeClass("slick-slide slick-active slick-visible").removeAttr("style"),e.$slider.removeClass("slick-slider"),e.$slider.removeClass("slick-initialized"),e.$list.off(".slick"),i(window).off(".slick-"+e.instanceUid)},e.prototype.disableTransition=function(i){var e=this;e.options.fade===!1?e.$slideTrack.css({transition:"",transformOrigin:""}):e.$slides.eq(i).css({transition:""})},e.prototype.fadeSlide=function(i,e){var t=this;t.cssTransitions===!1?(t.$slides.eq(i).css({zIndex:1e3}),t.$slides.eq(i).animate({opacity:1},t.options.speed,t.options.easing,e)):(t.applyTransition(i),t.$slides.eq(i).css({opacity:1,zIndex:1e3}),e&&setTimeout(function(){t.disableTransition(i),e.call()},t.options.speed))},e.prototype.filterSlides=function(i){var e=this;null!==i&&(e.unload(),e.$slideTrack.children(this.options.slide).remove(),e.$slidesCache.filter(i).appendTo(e.$slideTrack),e.reinit())},e.prototype.getDotCount=function(){var i,e=this,t=0,s=0,o=0;for(i=e.options.infinite===!0?e.slideCount+e.options.slidesToShow-e.options.slidesToScroll:e.slideCount;i>t;)o++,s+=e.options.slidesToScroll,t=s+e.options.slidesToShow;return o},e.prototype.getLeft=function(i){var e,t=this;return t.slideOffset=0,t.options.infinite===!0?(t.slideCount>t.options.slidesToShow&&(t.slideOffset=t.slideWidth*t.options.slidesToShow*-1),t.slideCount%t.options.slidesToScroll!==0&&i+t.options.slidesToScroll>t.slideCount&&t.slideCount>t.options.slidesToShow&&(t.slideOffset=t.slideCount%t.options.slidesToShow*t.slideWidth*-1)):t.slideCount%t.options.slidesToShow!==0&&i+t.options.slidesToScroll>t.slideCount&&t.slideCount>t.options.slidesToShow&&(t.slideOffset=t.slideCount%t.options.slidesToShow*t.slideWidth),t.options.centerMode===!0&&(t.slideOffset+=t.slideWidth*Math.floor(t.options.slidesToShow/2)-t.slideWidth),e=t.options.vertical===!1?i*t.slideWidth*-1+t.slideOffset:t.options.infinite===!0?i*t.listHeight*-1-t.listHeight:i*t.listHeight*-1},e.prototype.init=function(){var e=this;i(e.$slider).hasClass("slick-initialized")||(i(e.$slider).addClass("slick-initialized"),e.buildOut(),e.setProps(),e.startLoad(),e.loadSlider(),e.initializeEvents(),e.checkResponsive()),null!==e.options.onInit&&e.options.onInit.call(this,e)},e.prototype.initArrowEvents=function(){var i=this;i.options.arrows===!0&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.on("click.slick",{message:"previous"},i.changeSlide),i.$nextArrow.on("click.slick",{message:"next"},i.changeSlide))},e.prototype.initDotEvents=function(){var e=this;e.options.dots===!0&&e.slideCount>e.options.slidesToShow&&i("li a",e.$dots).on("click.slick",{message:"index"},e.changeSlide)},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"},e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("dragstart.slick",function(i){i.preventDefault()}),e.options.pauseOnHover===!0&&e.options.autoplay===!0&&(e.$list.on("mouseenter.slick",e.autoPlayClear),e.$list.on("mouseleave.slick",e.autoPlay)),e.$list.on("keydown.slick",e.keyHandler),i(window).on("orientationchange.slick.slick-"+e.instanceUid,function(){e.checkResponsive(),e.setPosition()}),i(window).on("resize.slick.slick-"+e.instanceUid,function(){i(window).width!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=i(window).width(),e.checkResponsive(),e.setPosition()},50))}),i(window).on("load.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.initUI=function(){var i=this;i.options.arrows===!0&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.show(),i.$nextArrow.show()),i.options.dots===!0&&i.slideCount>i.options.slidesToShow&&i.$dots.show(),i.options.autoplay===!0&&i.autoPlay()},e.prototype.keyHandler=function(i){var e=this;37===i.keyCode?e.changeSlide({data:{message:"previous"}}):39===i.keyCode&&e.changeSlide({data:{message:"next"}})},e.prototype.lazyLoad=function(){var e,t,s,o,n=this;n.options.centerMode===!0?(s=n.options.slidesToShow+n.currentSlide-1,o=s+n.options.slidesToShow+2):(s=n.options.infinite?n.options.slidesToShow+n.currentSlide:n.currentSlide,o=s+n.options.slidesToShow),e=n.$slider.find(".slick-slide").slice(s,o),i("img[data-lazy]",e).not("[src]").each(function(){i(this).attr("src",i(this).attr("data-lazy")).removeClass("slick-loading")}),n.currentSlide>=n.slideCount-n.options.slidesToShow?(t=n.$slider.find(".slick-cloned").slice(0,n.options.slidesToShow),i("img[data-lazy]",t).not("[src]").each(function(){i(this).attr("src",i(this).attr("data-lazy")).removeClass("slick-loading")})):0===n.currentSlide&&(t=n.$slider.find(".slick-cloned").slice(-1*n.options.slidesToShow),i("img[data-lazy]",t).not("[src]").each(function(){i(this).attr("src",i(this).attr("data-lazy")).removeClass("slick-loading")}))},e.prototype.loadSlider=function(){var e=this;e.setPosition(),e.$slideTrack.css({opacity:1}),"complete"!==document.readyState?i(window).load(function(){e.$slider.removeClass("slick-loading"),e.initUI(),"progressive"===e.options.lazyLoad&&e.progressiveLazyLoad()}):(e.$slider.removeClass("slick-loading"),e.initUI(),"progressive"===e.options.lazyLoad&&e.progressiveLazyLoad())},e.prototype.postSlide=function(i){var e=this;null!==e.options.onAfterChange&&i!==e.currentSlide&&e.options.onAfterChange.call(this,e,i),e.animating=!1,e.currentSlide=i,e.setPosition(),e.swipeLeft=null,e.updateDots(),e.updateArrows(),e.options.autoplay===!0&&e.paused===!1&&e.autoPlay(),e.setSlideClasses(e.currentSlide)},e.prototype.progressiveLazyLoad=function(){var e,t,s=this;e=i("img[data-lazy]").not("[src]").length,e>0&&(t=i(i("img[data-lazy]",s.$slider).not("[src]").get(0)),t.attr("src",t.attr("data-lazy")).removeClass("slick-loading").load(function(){s.progressiveLazyLoad()}))},e.prototype.refresh=function(){var e=this;e.destroy(),i.extend(e,e.initials),e.init()},e.prototype.reinit=function(){var e=this;e.$slides=i(e.options.slide+":not(.slick-cloned)",e.$slideTrack).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.setProps(),e.setupInfinite(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.setSlideClasses(0),e.setPosition(),null!==e.options.onReInit&&e.options.onReInit.call(this,e)},e.prototype.removeSlide=function(i,e){var t=this;return"boolean"==typeof i?(e=i,i=e===!0?0:t.slideCount-1):i=e===!0?--i:i,!(t.slideCount<1||0>i||i>t.slideCount-1)&&(t.unload(),t.$slideTrack.children(this.options.slide).eq(i).remove(),t.$slides=t.$slideTrack.children(this.options.slide),t.$slideTrack.children(this.options.slide).remove(),t.$slideTrack.append(t.$slides),void t.reinit())},e.prototype.setCSS=function(i){var e,t,s=this,o={};e="left"==s.positionProp?i+"px":"0px",t="top"==s.positionProp?i+"px":"0px",o[s.positionProp]=i,s.transformsEnabled===!1?s.$slideTrack.css(o):(o={},s.cssTransitions===!1?(o[s.animType]="translate("+e+", "+t+")",s.$slideTrack.css(o)):(o[s.animType]="translate3d("+e+", "+t+", 0px)",s.$slideTrack.css(o)))},e.prototype.setDimensions=function(){var i=this;i.options.centerMode===!0?i.$list.find(".slick-slide").width(i.slideWidth):i.$list.find(".slick-slide").width(i.slideWidth),i.options.vertical===!1?(i.$slideTrack.width(Math.ceil(i.slideWidth*i.$slider.find(".slick-slide").length)),i.options.centerMode===!0&&i.$list.css({padding:"0px "+i.options.centerPadding})):(i.$list.height(i.$slides.first().outerHeight()),i.$slideTrack.height(Math.ceil(i.listHeight*i.$slider.find(".slick-slide").length)),i.options.centerMode===!0&&i.$list.css({padding:i.options.centerPadding+" 0px"}))},e.prototype.setFade=function(){var e,t=this;t.$slides.each(function(s,o){e=t.slideWidth*s*-1,i(o).css({position:"relative",left:e,top:0,zIndex:800,opacity:0})}),t.$slides.eq(t.currentSlide).css({zIndex:900,opacity:1})},e.prototype.setPosition=function(){var i=this;i.setValues(),i.setDimensions(),i.options.fade===!1?i.setCSS(i.getLeft(i.currentSlide)):i.setFade()},e.prototype.setProps=function(){var i=this;i.positionProp=i.options.vertical===!0?"top":"left","top"===i.positionProp?i.$slider.addClass("slick-vertical"):i.$slider.removeClass("slick-vertical"),(void 0!==document.body.style.WebkitTransition||void 0!==document.body.style.MozTransition||void 0!==document.body.style.msTransition)&&(i.cssTransitions=!0),void 0!==document.body.style.MozTransform&&(i.animType="MozTransform",i.transitionType="-moz-transform"),void 0!==document.body.style.webkitTransform&&(i.animType="webkitTransform",i.transitionType="-webkit-transform"),void 0!==document.body.style.msTransform&&(i.animType="msTransform",i.transitionType="-ms-transform"),i.transformsEnabled=null!==i.animType},e.prototype.setValues=function(){var i=this;i.listWidth=i.$list.width(),i.listHeight=i.$list.height(),i.slideWidth=Math.ceil(i.listWidth/i.options.slidesToShow)},e.prototype.setSlideClasses=function(i){var e,t,s,o=this;o.$slider.find(".slick-slide").removeClass("slick-active").removeClass("slick-center"),t=o.$slider.find(".slick-slide"),o.options.centerMode===!0?(e=Math.floor(o.options.slidesToShow/2),i>=e&&i<=o.slideCount-1-e?o.$slides.slice(i-e,i+e+1).addClass("slick-active"):(s=o.options.slidesToShow+i,t.slice(s-e+1,s+e+2).addClass("slick-active")),0===i?t.eq(t.length-1-o.options.slidesToShow).addClass("slick-center"):i===o.slideCount-1&&t.eq(o.options.slidesToShow).addClass("slick-center"),o.$slides.eq(i).addClass("slick-center")):i>0&&i<o.slideCount-o.options.slidesToShow?o.$slides.slice(i,i+o.options.slidesToShow).addClass("slick-active"):(s=o.options.slidesToShow+i,t.slice(s,s+o.options.slidesToShow).addClass("slick-active")),"ondemand"===o.options.lazyLoad&&o.lazyLoad()},e.prototype.setupInfinite=function(){var e,t,s,o=this;if((o.options.fade===!0||o.options.vertical===!0)&&(o.options.slidesToShow=1,o.options.slidesToScroll=1,o.options.centerMode=!1),o.options.infinite===!0&&o.options.fade===!1&&(t=null,o.slideCount>o.options.slidesToShow)){for(s=o.options.centerMode===!0?o.options.slidesToShow+1:o.options.slidesToShow,e=o.slideCount;e>o.slideCount-s;e-=1)t=e-1,i(o.$slides[t]).clone().prependTo(o.$slideTrack).addClass("slick-cloned");for(e=0;s>e;e+=1)t=e,i(o.$slides[t]).clone().appendTo(o.$slideTrack).addClass("slick-cloned")}},e.prototype.slideHandler=function(i){var e,t,s,o=null,n=this;return n.animating!==!0&&(e=i,o=n.getLeft(e),s=n.getLeft(n.currentSlide),n.options.infinite===!1&&(0>i||i>n.slideCount-n.options.slidesToShow)?(e=n.currentSlide,n.animateSlide(s,function(){n.postSlide(e)}),!1):(n.options.autoplay===!0&&clearInterval(n.autoPlayTimer),n.currentLeft=null===n.swipeLeft?s:n.swipeLeft,t=0>e?n.slideCount%n.options.slidesToScroll!==0?n.slideCount-n.slideCount%n.options.slidesToScroll:n.slideCount-n.options.slidesToScroll:e>n.slideCount-1?0:e,n.animating=!0,null!==n.options.onBeforeChange&&i!==n.currentSlide&&n.options.onBeforeChange.call(this,n,n.currentSlide),n.options.fade===!0?(n.fadeSlide(t,function(){n.postSlide(t)}),!1):void n.animateSlide(o,function(){n.postSlide(t)})))},e.prototype.startLoad=function(){var i=this;i.options.arrows===!0&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.hide(),i.$nextArrow.hide()),i.options.dots===!0&&i.slideCount>i.options.slidesToShow&&i.$dots.hide(),i.$slider.addClass("slick-loading")},e.prototype.swipeDirection=function(){var i,e,t,s,o=this;return i=o.touchObject.startX-o.touchObject.curX,e=o.touchObject.startY-o.touchObject.curY,t=Math.atan2(e,i),s=Math.round(180*t/Math.PI),0>s&&(s=360-Math.abs(s)),45>=s&&s>=0?"left":360>=s&&s>=315?"left":s>=135&&225>=s?"right":"vertical"},e.prototype.swipeEnd=function(e){var t=this;if(t.$list.removeClass("dragging"),void 0===t.touchObject.curX)return!1;if(t.touchObject.swipeLength>=t.touchObject.minSwipe)switch(i(e.target).on("click.slick",function(e){e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),i(e.target).off("click.slick")}),t.swipeDirection()){case"left":t.slideHandler(t.currentSlide+t.options.slidesToScroll),t.touchObject={};break;case"right":t.slideHandler(t.currentSlide-t.options.slidesToScroll),t.touchObject={}}else t.slideHandler(t.currentSlide),t.touchObject={}},e.prototype.swipeHandler=function(i){var e=this;if(i.originalEvent&&i.originalEvent.touches&&e.options.swipe===!1)return!1;if(e.options.draggable===!1)return!1;switch(e.touchObject.fingerCount=i.originalEvent&&void 0!==i.originalEvent.touches?i.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,i.data.action){case"start":e.swipeStart(i);break;case"move":e.swipeMove(i);break;case"end":e.swipeEnd(i)}},e.prototype.swipeMove=function(i){var e,t,s,o,n=this;return o=void 0!==i.originalEvent?i.originalEvent.touches:null,e=n.getLeft(n.currentSlide),!(!n.$list.hasClass("dragging")||o&&1!==o.length)&&(n.touchObject.curX=void 0!==o?o[0].pageX:i.clientX,n.touchObject.curY=void 0!==o?o[0].pageY:i.clientY,n.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(n.touchObject.curX-n.touchObject.startX,2))),t=n.swipeDirection(),"vertical"!==t&&(void 0!==i.originalEvent&&i.preventDefault(),s=n.touchObject.curX>n.touchObject.startX?1:-1,n.options.vertical===!1?n.swipeLeft=e+n.touchObject.swipeLength*s:n.swipeLeft=e+n.touchObject.swipeLength*(n.listHeight/n.listWidth)*s,n.options.fade!==!0&&n.options.touchMove!==!1&&(n.animating===!0?(n.swipeLeft=null,!1):void n.setCSS(n.swipeLeft))))},e.prototype.swipeStart=function(i){var e,t=this;return 1!==t.touchObject.fingerCount||t.slideCount<=t.options.slidesToShow?(t.touchObject={},!1):(void 0!==i.originalEvent&&void 0!==i.originalEvent.touches&&(e=i.originalEvent.touches[0]),t.touchObject.startX=t.touchObject.curX=void 0!==e?e.pageX:i.clientX,t.touchObject.startY=t.touchObject.curY=void 0!==e?e.pageY:i.clientY,void t.$list.addClass("dragging"))},e.prototype.unfilterSlides=function(){var i=this;null!==i.$slidesCache&&(i.unload(),i.$slideTrack.children(this.options.slide).remove(),i.$slidesCache.appendTo(i.$slideTrack),i.reinit())},e.prototype.unload=function(){var e=this;i(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&(e.$prevArrow.remove(),e.$nextArrow.remove()),e.$slides.removeClass("slick-slide slick-active slick-visible").removeAttr("style")},e.prototype.updateArrows=function(){var i=this;i.options.arrows===!0&&i.options.infinite!==!0&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.removeClass("slick-disabled"),i.$nextArrow.removeClass("slick-disabled"),0===i.currentSlide?(i.$prevArrow.addClass("slick-disabled"),i.$nextArrow.removeClass("slick-disabled")):i.currentSlide>=i.slideCount-i.options.slidesToShow&&(i.$nextArrow.addClass("slick-disabled"),i.$prevArrow.removeClass("slick-disabled")))},e.prototype.updateDots=function(){var i=this;null!==i.$dots&&(i.$dots.find("li").removeClass("slick-active"),i.$dots.find("li").eq(i.currentSlide/i.options.slidesToScroll).addClass("slick-active"))},i.fn.slick=function(i){var t=this;return t.each(function(t,s){s.slick=new e(s,i)})},i.fn.slickAdd=function(i,e,t){var s=this;return s.each(function(s,o){o.slick.addSlide(i,e,t)})},i.fn.slickFilter=function(i){var e=this;return e.each(function(e,t){t.slick.filterSlides(i)})},i.fn.slickGoTo=function(i){var e=this;return e.each(function(e,t){t.slick.slideHandler(i)})},i.fn.slickNext=function(){var i=this;return i.each(function(i,e){e.slick.changeSlide({data:{message:"next"}})})},i.fn.slickPause=function(){var i=this;return i.each(function(i,e){e.slick.autoPlayClear(),e.slick.paused=!0})},i.fn.slickPlay=function(){var i=this;return i.each(function(i,e){e.slick.paused=!1,e.slick.autoPlay()})},i.fn.slickPrev=function(){var i=this;return i.each(function(i,e){e.slick.changeSlide({data:{message:"previous"}})})},i.fn.slickRemove=function(i,e){var t=this;return t.each(function(t,s){s.slick.removeSlide(i,e)})},i.fn.slickSetOption=function(i,e,t){var s=this;return s.each(function(s,o){o.slick.options[i]=e,t===!0&&(o.slick.unload(),o.slick.reinit())})},i.fn.slickUnfilter=function(){var i=this;return i.each(function(i,e){e.slick.unfilterSlides()})},i.fn.unslick=function(){var i=this;return i.each(function(i,e){e.slick.destroy()})}}),angular.module("slick",[]).directive("slick",["$timeout",function(a){return{restrict:"AEC",scope:{initOnload:"@",data:"=",currentIndex:"=",accessibility:"@",arrows:"@",autoplay:"@",autoplaySpeed:"@",centerMode:"@",centerPadding:"@",cssEase:"@",dots:"@",draggable:"@",easing:"@",fade:"@",infinite:"@",lazyLoad:"@",onBeforeChange:"&",onAfterChange:"&",onInit:"&",onReInit:"&",pauseOnHover:"@",responsive:"&",slide:"@",slidesToShow:"@",slidesToScroll:"@",speed:"@",swipe:"@",touchMove:"@",touchThreshold:"@",vertical:"@"},link:function(b,c){var d,e;return d=function(){return a(function(){var a,d;return d=$(c),null!=b.currentIndex&&(a=b.currentIndex),d.slick({accessibility:"false"!==b.accessibility,arrows:"false"!==b.arrows,autoplay:"true"===b.autoplay,autoplaySpeed:null!=b.autoplaySpeed?parseInt(b.autoplaySpeed,10):3e3,centerMode:"true"===b.centerMode,centerPadding:b.centerPadding||"50px",cssEase:b.cssEase||"ease",dots:"true"===b.dots,draggable:"false"!==b.draggable,easing:b.easing||"linear",fade:"true"===b.fade,infinite:"false"!==b.infinite,lazyLoad:b.lazyLoad||"ondemand",onBeforeChange:b.onBeforeChange||null,onAfterChange:function(c,d){return b.onAfterChange&&b.onAfterChange(),null!=a?b.$apply(function(){return a=d,b.currentIndex=d}):void 0},onInit:function(c){return b.onInit&&b.onInit(),null!=a?c.slideHandler(a):void 0},onReInit:b.onReInit||null,pauseOnHover:"false"!==b.pauseOnHover,responsive:b.responsive()||null,slide:b.slide||"div",slidesToShow:null!=b.slidesToShow?parseInt(b.slidesToShow,10):1,slidesToScroll:null!=b.slidesToScroll?parseInt(b.slidesToScroll,10):1,speed:null!=b.speed?parseInt(b.speed,10):300,swipe:"false"!==b.swipe,touchMove:"false"!==b.touchMove,touchThreshold:b.touchThreshold?parseInt(b.touchThreshold,10):5,vertical:"true"===b.vertical}),b.$watch("currentIndex",function(b){return null!=a&&null!=b&&b!==a?d.slickGoTo(b):void 0})})},b.initOnload?(e=!1,b.$watch("data",function(a){return null==a||e?void 0:(d(),e=!0)})):d()}}}]);