PageSourceSearch

https://www.listening-books.org.uk/static/web/js/build.js?_m=1778739995

js listening-books.org.uk collected 2026-09-24 09:31:41 UTC 316,080 bytes, 1 lines download raw bytes

1var anim={init:function(){anim.points()},points:function(){$(".home-page .moduled").not(".testamonials").find(".row").waypoint(function(t){"down"==t&&($(this.element).addClass("animated fadeIn"),this.destroy())},{offset:"80%"})}};$(document).ready(anim.init);var helper={init:function(){},simplerHtmlToModal:function(t,e,i){var t=$(t),e=$(e),i=$(i);t.on("click",function(){var t=$(this).siblings(i).html();e.html(t)})},fadeOutElem:function(t,e){$(t).length>0&&setTimeout(function(){$(t).fadeOut()},e)},headerScroll:function(t,e){var i=$(window),o=$(t);i.scrollTop()>=30?o.addClass(e):o.removeClass(e),i.on("scroll",function(){i.scrollTop()>30?o.addClass(e):o.removeClass(e)})},playVideo:function(t){$(".play_JS").on("click",function(){var t=$(this),e=$(this).find("video");e.get(0).paused?($(this).find(".video-overlay").addClass("faded"),$(e).get(0).play()):(e.get(0).pause(),e.get(0).currentTime=0,t.find(".video-overlay").removeClass("faded")),e.get(0).addEventListener("webkitendfullscreen",function(){t.find(".video-overlay").removeClass("faded"),e.get(0).currentTime=0})})},open:function(t,e,i,o,s){$(document).mouseup(function(n){if($(n.target).is(t)||$(n.target).is(o))$(e).hasClass(i)?($(e).removeClass(i),s&&$(s).removeClass("opened")):($(e).addClass(i),"#search, #close-search"==t&&$("#auto-complete").focus(),s&&$(s).addClass("opened"));else{var r=$(e);r.is(n.target)||0!==r.has(n.target).length||(r.removeClass("opened"),s&&$(s).removeClass("opened"))}})},toggleElem:function(t,e,i,o,s){var t=$(t),e=$(e);s&&$(document).mouseup(function(t){var o=e;o.is(t.target)||0!==o.has(t.target).length||o.removeClass(i)}),t.on("click",function(){e.hasClass(i)?(e.removeClass(i),o&&t.removeClass(o)):(e.addClass(i),o&&t.addClass(o))})},removeClass:function(t,e,i,o){var t=$(t),e=$(e);t.on("click",function(t){o&&t.preventDefault(),e.removeClass(i)})},scroller:function(t,e,i){var o=$(t),s=$("html, body");o.on("click",function(){var t=this.hash;if(t&&this.href.slice(0,-t.length-1)==location.href.slice(0,-location.hash.length-1))return s.animate({scrollTop:$(t).offset().top-e},"normal",function(){location.hash=t}),i})},scrollTo:function(t,e,i,o){var s=$(t),n=$("html, body");s.on("click",function(){return n.animate({scrollTop:$(e).offset().top-i},"normal",function(){}),o})},checkHash:function(t){if(window.location.hash){var e=window.location.hash.substring(1);if(e=t)return alert(e),!0}},scrollOnLoad:function(t,e){window.location.hash&&window.location.hash.substring(1)==t&&$("html, body").animate({scrollTop:$(e).offset().top-140},"1",function(){})},toggleBodyClass:function(t,e){var t=$(t),i=$("body");t.on("click",function(){i.hasClass(e)?i.removeClass(e):i.addClass(e)})},tabs:function(t,e,i){var t=$(t),o=$(e);if(t.on("click",function(){var s=$(this).data("tab");o.hide(),$(e+'[data-tab-target="'+s+'"]').fadeIn(),t.removeClass(i),$('[data-tab="'+s+'"]').addClass(i),$(window).width()<768&&$("html, body").animate({scrollTop:$(e+'[data-tab-target="'+s+'"]').offset().top-120},300),$(".de_slider").owlCarousel({loop:!1,items:1,dots:!1})}),window.location.hash){var s=window.location.hash.split("-");return"#tab"==s[0]&&(o.hide(),t.removeClass(i),$(e+'[data-tab-target="'+s[1]+'"]').fadeIn(),$('[data-tab="'+s[1]+'"]').addClass(i),$("html, body").animate({scrollTop:$(e+'[data-tab-target="'+s[1]+'"]').offset().top-160},300)),!1}},transferToModal:function(t,e){var t=$(t),e=$(e);t.on("click",function(){var t=$(this).data(),i=[".image",".title",".date",".date1",".desc1",".date2",".desc2",".detail-url"];e.find(i[0]).attr("src",t.image),e.find(i[1]).text(t.title),e.find(i[2]).text(t.date),e.find(i[3]).text(t.date1),e.find(i[4]).text(t.desc1),e.find(i[5]).text(t.date2),e.find(i[6]).text(t.desc2),e.find(i[7]).attr("href",t.detailUrl)})},SingleInfoToModal:function(t,e){var t=$(t),i=$("#team-modal-name"),o=$("#team-modal-info");t.on("click",function(){var t=$(this).data("name"),e=$(this).data("desc");$(i).empty().html(t),$(o).empty().html(e)})},overlays:function(t,e){var t=$(t),i=(e=$(e)).find("h3"),o=$(".overlay-close"),s=$(".open-panel"),n=$(".overlays");s.on("click",function(){var t=$(this).data("panel");$('[data-subpanel="'+t+'"]').addClass("opened")}),t.on("click",function(){e.hasClass("opened")?(e.removeClass("opened"),n.removeClass("opened")):e.addClass("opened")}),$(i).on("click",function(){$(this).closest(".overlays").removeClass("opened")}),$(o).on("click",function(){$(this).closest(".overlays").removeClass("opened")})}},plugin={init:function(){plugin.sliders(),plugin.homeScroll(),plugin.NiceScroll(),plugin.ratings(),plugin.share(),plugin.recommendedSlider(),plugin.tooltips(),plugin.datePick(),plugin.autoComplete()},autoComplete:function(){var t={url:function(t){return"/ajax/library/search-global?q="+t}
1,requestDelay:250,getValue:"name",cssClasses:"auto-complete",highlightPhrase:!0,template:{type:"custom",method:function(t,e){return"<p>"+t+"</p><span>"+e.type+"</span>"}},list:{maxNumberOfElements:10,showAnimation:{type:"slide"},hideAnimation:{type:"slide"},onClickEvent:function(){var t=$("#auto-complete").getSelectedItemData().ss;$("#auto-complete").val(t),$("#auto-complete-form").submit()}}};$("#auto-complete").easyAutocomplete(t)},datePick:function(){$(".datepicker").datepicker({autoclose:!0,format:"yyyy-mm-dd",startDate:"-100y",startView:"2",clearBtn:!0,defaultViewDate:{year:"1970",month:"01",day:"01"}})},tooltips:function(){$(".tooltips").tooltipster({theme:"tooltipster-noir",maxWidth:300})},sliders:function(){$("#length_slider").ionRangeSlider({type:"double",grid:!1,min:0,max:360,from:0,to:100,step:15,hide_min_max:!0,postfix:"",prettify:function(t){return t<60?t+" min":t%60==0?Math.round(t/60)+"h":Math.round(t/60)+"h "+Math.round(t%60)+"min"},onFinish:function(t){$("#lsf").submit()}})},homeScroll:function(){$(".home_slider").each(function(){$(this).find(".slide").length<2&&$(this).addClass("single")});$(".home_slider .slider").bxSlider({infiniteLoop:!0,pause:5e3,speed:500,minSlides:1,auto:!1,autoHover:!0,autoControls:!0,keyboardEnabled:!0,mode:"fade",touchEnabled:!0,controls:!0,pager:!0,pagerSelector:$(".home_slider_nav"),onSliderLoad:function(t){$(".home_slider .slide").eq(0).addClass("actived")},onSlideAfter:function(t,e,i){$(".home_slider .slide").removeClass("actived"),t.addClass("actived")},onSlideAfter:function(t,e,i){$(".home_slider .slide").removeClass("actived"),t.addClass("actived")}}),$("._module.slider .slider").bxSlider({infiniteLoop:!0,pause:5e3,speed:500,auto:!0,minSlides:1,controls:!0,pager:!1})},NiceScroll:function(){$(".type_scroll").niceScroll({cursorcolor:"#8075f1",autohidemode:!1,cursorborderradius:"0px"})},ratings:function(){function t(t,e){$(document).one("click",".star-empty",function(){$("#countRating").val(t)})}$("#rate").stars({stars:5,emptyIcon:"star-unrated",filledIcon:"star-rated",starClass:"star-empty",click:function(e){$(this).parent().attr("data-bookID");t(e)}})},share:function(){$("#share").jsSocials({shares:["facebook"],showCount:!0})},recommendedSlider:function(){$(".recommended_slider").slick({infinite:!0,slidesToShow:4,slidesToScroll:4,dots:!0,responsive:[{breakpoint:1400,settings:{slidesToShow:3,slidesToScroll:3,infinite:!0,dots:!0}},{breakpoint:1100,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1}}]})}};$(document).ready(plugin.init);var app={init:function(){app.headerScroll(),app.playTeaser(),helper.scrollTo(".icon-scroll",".single_text",100),helper.open("#menu *","#main-menu","opened","#mobile-close-menu li"),helper.open("#search, #close-search","#main-search","opened"),helper.open("#ux","#access","opened"),app.resolve(),app.toggleClientStatus(),app.cardCheck(),app.Accessibility(),app.filters(),app.quiz(),app.details(),app.seeMore(),app.showGrid(),app.playHero(),app.dateInput(),app.readURL(),app.openVideo(),app.toggleFilters(),app.toggleTranscript()},toggleTranscript:function(){$(".transcript span").on("click",function(){$(this).toggleClass("active"),$(this).siblings().slideToggle()})},toggleFilters:function(t){$(".show-subfilters").on("click",function(t){t.preventDefault(),$(this).hasClass("active")?$(this).removeClass("active").parent().removeClass("active"):$(this).addClass("active").parent().addClass("active")})},openVideo:function(){var t=$(".iframe-holder iframe");
1$(".open-video").on("click",function(){var e=$(this).attr("data-video");t.attr("src",e)}),$(document).on("closing",".video-remodal",function(e){t.attr("src","")})},readURL:function(t){$("#addFile").on("change",function(){if(console.log($(this).files),$(this).files&&$(this).files[0]){var t=new FileReader;t.onload=function(t){$("#avatarImg").attr("src",t.target.result)},t.readAsDataURL($(this).files[0])}})},dateInput:function(){var t=jQuery(".member_dob");t.bind("keyup","keydown",function(e){if(8!==e.which){var i=t.val().length;if(2===i||5===i){var o=t.val();o+="/",t.val(o)}}})},playHero:function(){if($("#video").length>0){videos=document.querySelectorAll("#video"),video.pause();$(".icon-play-large").on("click",function(){$(this).parent().addClass("play"),$("#video").addClass("played"),video.play()}),$(".overlay").on("click",function(){console.log(video.paused),video.paused?video.play():video.pause()})}},showGrid:function(){$(".show-grid").on("click",function(){$(".hidden-grid").addClass("opened"),$(this).fadeOut()})},playTeaser:function(){var t=document.getElementById("player");
1$(".play-teaser").on("click",function(){var e=$(this).attr("data-teaser");document.getElementById("player").src=e,$(".play-teaser").not($(this)).removeClass("icon-played"),$(this).hasClass("icon-played")?$(this).removeClass("icon-played"):($(this).addClass("icon-played"),t.load(),t.play())}),$(t).on("ended",function(){$(".play-teaser").not($(this)).removeClass("icon-played")})},headerScroll:function(){var t=$(window),e=$("header.header");t.scrollTop()>=30?e.addClass("smaller"):e.removeClass("smaller"),t.on("scroll",function(){t.scrollTop()>30?e.addClass("smaller"):e.removeClass("smaller")})},resolve:function(){$(".resolve").on("click",function(){$(this).hasClass("resolved")?$(this).removeClass("resolved").html("Mark as resolved <span></span>"):$(this).addClass("resolved").html("Resolved <span></span>")})},toggleClientStatus:function(){$(".toggle").on("click",function(){var t=$(this).attr("data-text");$(".text-to-change").html(t),$(this).hasClass("show-additional")?$(".s2_right, .s3_left, .yes_no").fadeIn():$(".s2_right, .s3_left, .yes_no").fadeOut()})},cardCheck:function(){var t=$("img.Card"),e=$("img.Renev");t.on("click",function(){t.removeClass("active"),$(this).addClass("active");var e=$(this).attr("data-card");$(".Card_type").val(e)}),e.on("click",function(){$(this).hasClass("active")?($(this).removeClass("active"),$(".autorenev_input").val(0)):($(this).addClass("active"),$(".If_renev").val(1))})},Accessibility:function(){$(".invertColour.on").on("click",function(){$("html").addClass("inverted"),"undefined"!=typeof Storage&&(localStorage.inverted="true")}),"true"==localStorage.inverted&&$("html").addClass("inverted"),$(".invertColour.off").on("click",function(){$("html").removeClass("inverted"),"undefined"!=typeof Storage&&(localStorage.inverted="false")}),$(".fontSizes.increse").on("click",function(){$("html").addClass("increse_font").removeClass("max"),"undefined"!=typeof Storage&&(localStorage.fontLaarge="true",localStorage.fontMax="false")}),$(".fontSizes.max").on("click",function(){$("html").addClass("increse_font max"),"undefined"!=typeof Storage&&(localStorage.fontLaarge="true",localStorage.fontMax="true")}),$(".fontSizes.decrese").on("click",function(){$("html").removeClass("increse_font").removeClass("max"),"undefined"!=typeof Storage&&(localStorage.fontLaarge="false",localStorage.fontMax="false")}),"true"==localStorage.fontLaarge&&$("html").addClass("increse_font"),"true"==localStorage.fontMax&&$("html").addClass("max")},filters:function(){var t=$(".show-filters"),e="._search_filter",i=$("#close-side-filter");t.on("click",function(){$(this).hasClass("open")?($(this).removeClass("open"),$(e).removeClass("open")):($(this).addClass("open"),$(e).addClass("open"))}),i.on("click",function(){$(this).removeClass("open"),$(e).removeClass("open")})},quiz:function(){$(".answer p").on("click",function(){var t=$(this).attr("data-number"),e=$(this).parent().attr("data-correct");$(this).addClass("selected"),$(this).siblings().off("click"),t===e?($(this).addClass("good"),$(this).parent().addClass("good")):($(this).addClass("wrong"),$(this).parent().addClass("wrong"),$(this).parent().find('[data-number="'+e+'"]').addClass("good"))})},details:function(){var t=$(".show-more-icon");$(".detailed");t.on("click",function(){$(".detailed").removeClass("open"),$(this).siblings(".detailed").addClass("open")}),$(".close-detail").on("click",function(){$(".detailed").removeClass("open")})},seeMore:function(){$(".see-more").on("click",function(){$(this).hide().parent().siblings().fadeIn()})}};$(document).ready(app.init);var lb={init:function(){},blogLike:function(t){var e=$(t),i=e.data("bid"),o=0;e.hasClass("likes-off")&&(o=1),$.ajax({type:"POST",url:"/blog-like",complete:function(t){var i=jQuery.parseJSON(t.responseText);"OK"!==i.status?alert("There was a problem submitting your request."):($("#blog-likes-zone").html(i.html),e.hasClass("likes-off")?e.removeClass("likes-off").addClass("likes"):e.removeClass("likes").addClass("likes-off"))},data:{bid:i,action:o,_token:$("#g_csrf").val()}})},readPhoto:function(t){if(t.files&&t.files[0]){var e=new FileReader;e.onload=function(t){$("#avatarimage").attr("src",t.target.result)}
1,e.readAsDataURL(t.files[0]),$("#saveimage").fadeIn()}},newsletter:function(t,e){$(t).html('<i class="fa fa-spinner fa-spin" style="color:#ffffff;"></i> &nbsp; Please Wait...');var i=0===e?"unsubscribe":"subscribe";$.ajax({type:"POST",url:"/my/preferences/"+i,complete:function(t){"OK"!==jQuery.parseJSON(t.responseText).status&&alert("There was a problem submitting your "+i+" request."),$("#newsletter-but").hide(),$("#newsletter-conf").show()},data:{_token:$("#g_csrf").val()}})},deleteReview:function(t){confirm("Are you sure you want to delete this review permanently?")&&($("#x-review-"+t).fadeOut(),$.ajax({type:"POST",url:"/my/reviews/delete",complete:function(t){"OK"!==jQuery.parseJSON(t.responseText).status&&alert("There was a problem deleting your review."),window.location.reload()},data:{rid:t,_token:$("#g_csrf").val()}}))},wishlistOperations:function(){$("#sortable").sortable({containment:".right_grey",axis:"y",handle:".icon-sort",items:".col-sm-12.flex.align-items-center",update:function(t,e){var o=[];for(i=0;i<$("[data-item-id]").length;i++)o.push($("[data-item-id]").eq(i).attr("data-item-id"));$.ajax({type:"POST",url:"/my/wishlist/save-order",complete:function(t){"OK"!==jQuery.parseJSON(t.responseText).status&&alert("There was a problem deleting the book.")},data:{list:o.join(","),_token:$("#g_csrf").val()}})}}),$("span.icon-close").on("click",function(){if(!confirm("Are you sure you want to remove this book from your list?"))return!1;var t=$(this).closest(".flex.align-items-center").data("item-id");$(this).closest(".flex.align-items-center").remove(),$.ajax({type:"POST",url:"/my/wishlist/delete",complete:function(t){"OK"!==jQuery.parseJSON(t.responseText).status&&alert("There was a problem deleting the book.")},data:{id:t,_token:$("#g_csrf").val()}})})},favouriteListOperations:function(){$("span.icon-close").on("click",function(){if(!confirm("Are you sure you want to remove this favourites list?"))return!1;var t=$(this).data("list-id");$("#fave-list-"+t).remove(),$.ajax({type:"POST",url:"/my/favourites/delete-list",complete:function(t){"OK"!==jQuery.parseJSON(t.responseText).status&&alert("There was a problem deleting the list.")},data:{id:t,_token:$("#g_csrf").val()}})})},favouriteListDetailOperations:function(){var t=$("#x-list-id").val();$("#sortable").sortable({containment:".right_grey",axis:"y",handle:".icon-sort",items:".col-sm-12.flex.align-items-center",update:function(e,o){var s=[];for(i=0;i<$("[data-item-id]").length;i++)s.push($("[data-item-id]").eq(i).attr("data-item-id"));$.ajax({type:"POST",url:"/my/favourites/save-order",complete:function(t){"OK"!==jQuery.parseJSON(t.responseText).status&&alert("There was a problem deleting the book.")},data:{id:t,list:s.join(","),_token:$("#g_csrf").val()}})}}
1),$("#myonoffswitch").on("change",function(){var e=$(this).prop("checked")?1:0;$.ajax({type:"POST",url:"/my/favourites/change-privacy",complete:function(t){"OK"!==jQuery.parseJSON(t.responseText).status&&alert("There was a problem changing the privacy setting for the list.")},data:{id:t,action:e,_token:$("#g_csrf").val()}})}),$("span.icon-close").on("click",function(){if(!confirm("Are you sure you want to remove this book from your list?"))return!1;var e=$(this).closest(".flex.align-items-center").data("item-id");$(this).closest(".flex.align-items-center").remove(),$.ajax({type:"POST",url:"/my/favourites/delete",complete:function(t){"OK"!==jQuery.parseJSON(t.responseText).status&&alert("There was a problem deleting the book.")},data:{id:e,list_id:t,_token:$("#g_csrf").val()}})})},requestListOperations:function(){$("#sortable").sortable({containment:".right_grey",axis:"y",handle:".icon-sort",items:".col-sm-12.flex.align-items-center",update:function(t,e){var o=[];for(i=0;i<$("[data-item-id]").length;i++)o.push($("[data-item-id]").eq(i).attr("data-item-id"));$.ajax({type:"POST",url:"/my/books/save-order",complete:function(t){"OK"!==jQuery.parseJSON(t.responseText).status&&alert("There was a problem removing the book.")},data:{list:o.join(","),_token:$("#g_csrf").val()}})}}),$("span.icon-close").on("click",function(){if(!confirm("Are you sure you want to remove this book from your list?"))return!1;var t=$(this).closest(".flex.align-items-center").data("item-id");$(this).closest(".flex.align-items-center").remove(),$.ajax({type:"POST",url:"/my/books/delete",complete:function(t){"OK"!==jQuery.parseJSON(t.responseText).status&&alert("There was a problem removing the book.")},data:{id:t,_token:$("#g_csrf").val()}})})},bookWish:function(t,e){var i=$(t);i.html('<i class="fa fa-spinner fa-spin"></i>'),$.ajax({type:"POST",url:"/book-wish",complete:function(t){var e=jQuery.parseJSON(t.responseText);"OK"!==e.status?alert("There was a problem submitting your request."):i.parent().html(e.html)},data:{bid:e,_token:$("#g_csrf").val()}})},bookFavourite:function(t,e,i){var o=$(t);o.html('<i class="fa fa-spinner fa-spin" style="color:#ffffff;"></i>'),$.ajax({type:"POST",url:"/book-favourite",complete:function(t){var e=jQuery.parseJSON(t.responseText);"OK"!==e.status?alert("There was a problem submitting your request."):(o.parent().html(e.html),$("#fave-list-zone").html('<a data-remodal-target="add-to-playlist" class="icon-wishlist green"><i class="fa fa-heart" aria-hidden="true" style="color:#65E1D5;"></i> &nbsp; In Favourites List</a>'))},data:{bid:e,lid:i,_token:$("#g_csrf").val()}})},bookRequest:function(t,e){var i=$(t);i.html('<i class="fa fa-spinner fa-spin" style="color:#ffffff;"></i>'),$.ajax({type:"POST",url:"/book-request",complete:function(t){var e=jQuery.parseJSON(t.responseText);"OK"!==e.status?alert("There was a problem submitting your request."):(i.parent().html(e.html),$("#xmodal-br-heading").html(e.mheading),$("#xmodal-br-contents").html(e.mcontents),$("[data-remodal-id=xmodal-br]").remodal().open())},data:{bid:e,_token:$("#g_csrf").val()}})},streamRequest:function(t,e){var i=$(t);i.html('<i class="fa fa-spinner fa-spin" style="color:#ffffff;"></i>'),$.ajax({type:"POST",url:"/book-stream-request",complete:function(t){var e=jQuery.parseJSON(t.responseText);"OK"!==e.status?alert("There was a problem submitting your request."):(i.parent().html(e.html),$("#xmodal-br-heading").html(e.mheading),$("#xmodal-br-contents").html(e.mcontents),$("[data-remodal-id=xmodal-br]").remodal().open())},data:{bid:e,_token:$("#g_csrf").val()}})},checkout:function(t,e){var i=$(t);i.html('<i class="fa fa-spinner fa-spin" style="color:#ffffff;"></i>'),$.ajax({type:"POST",url:"/book-stream-checkout",complete:function(t){var e=jQuery.parseJSON(t.responseText);"OK"!==e.status?alert("There was a problem submitting your request."):"YES"===e.success?window.location.href=e.url:(i.html(e.html),alert("There was a problem checking out the book. Please contact us."))},data:{rid:e,_token:$("#g_csrf").val()}})},holdRequest:function(t,e){var i=$(t);i.html('<i class="fa fa-spinner fa-spin" style="color:#ffffff;"></i>'),$.ajax({type:"POST",url:"/book-hold-request",complete:function(t){var e=jQuery.parseJSON(t.responseText);"OK"!==e.status?alert("There was a problem submitting your request."):(i.parent().html(e.html),$("#xmodal-br-heading").html(e.mheading),$("#xmodal-br-contents").html(e.mcontents),$("[data-remodal-id=xmodal-br]").remodal().open())},data:{bid:e,_token:$("#g_csrf").val()}})},placeHold:function(t,e){var i=$(t);i.html('<i class="fa fa-spinner fa-spin" style="color:#ffffff;"></i>'),$.ajax({type:"POST",url:"/book-hold-process",complete:function(t){var e=jQuery.parseJSON(t.responseText);"OK"!==e.status?alert("There was a problem submitting your request."):"YES"===e.success?$("#xmodal-br-contents").html(e.mcontents):(i.html(e.html),alert("There was a problem placing a hold on the book. Please contact us."))},data:{rid:e,_token:$("#g_csrf").val()}})}
1,loadBook:function(t,e,i,o){$("#book-load-zone").html('<h1 style="text-align:center;"><i class="fa fa-spinner fa-spin"></i></h1>'),$("html, body").animate({scrollTop:$("#book-load-zone").offset().top-50},"normal"),$.ajax({type:"POST",url:"/my/loans/load",complete:function(t){var e=jQuery.parseJSON(t.responseText);"OK"!==e.status?alert("There was a problem submitting your request."):$("#book-load-zone").html(e.html)},data:{bid:t,odf:e,mp3:i,ret:o,_token:$("#g_csrf").val()}})},loadBookV2:function(t){$("#book-load-zone").html('<h1 style="text-align:center;"><i class="fa fa-spinner fa-spin"></i></h1>'),$("html, body").animate({scrollTop:$("#book-load-zone").offset().top-50},"normal"),$.ajax({type:"POST",url:"/my/loans/load-v2",complete:function(t){var e=jQuery.parseJSON(t.responseText);"OK"!==e.status?alert("There was a problem submitting your request."):$("#book-load-zone").html(e.html)},data:{bid:t,_token:$("#g_csrf").val()}})},loadBookLimited:function(t){$("#book-load-zone").html('<h1 style="text-align:center;"><i class="fa fa-spinner fa-spin"></i></h1>'),$("html, body").animate({scrollTop:$("#book-load-zone").offset().top-50},"normal"),$.ajax({type:"POST",url:"/my/streaming/load",complete:function(t){var e=jQuery.parseJSON(t.responseText);"OK"!==e.status?alert("There was a problem submitting your request."):$("#book-load-zone").html(e.html)},data:{bid:t,_token:$("#g_csrf").val()}})},loadBookLimitedV2:function(t){$("#book-load-zone").html('<h1 style="text-align:center;"><i class="fa fa-spinner fa-spin"></i></h1>'),$("html, body").animate({scrollTop:$("#book-load-zone").offset().top-50},"normal"),$.ajax({type:"POST",url:"/my/streaming/load-v2",complete:function(t){var e=jQuery.parseJSON(t.responseText);"OK"!==e.status?alert("There was a problem submitting your request."):$("#book-load-zone").html(e.html)},data:{bid:t,_token:$("#g_csrf").val()}})},returnClick:function(t){$("[data-remodal-id=xmodal-return"+t+"]").remodal({hashTracking:!1}).open()},returnProcess:function(t,e){$(t).html('<i class="fa fa-spinner fa-spin" style="color:#ffffff;"></i>'),$.ajax({type:"POST",url:"/my/loans/return",complete:function(t){"OK"!==jQuery.parseJSON(t.responseText).status?alert("There was a problem submitting your request."):window.location.reload()},data:{rid:e,_token:$("#g_csrf").val()}})},removeHoldClick:function(t){$("[data-remodal-id=xmodal-remove-hold"+t+"]").remodal({hashTracking:!1}).open()},removeHoldProcess:function(t,e){$(t).html('<i class="fa fa-spinner fa-spin" style="color:#ffffff;"></i>'),$.ajax({type:"POST",url:"/my/holds/remove-hold",complete:function(t){"OK"!==jQuery.parseJSON(t.responseText).status?alert("There was a problem submitting your request."):window.location.reload()},data:{rid:e,_token:$("#g_csrf").val()}})},removeSuspensionClick:function(t){$("[data-remodal-id=xmodal-remove-suspension"+t+"]").remodal({hashTracking:!1}).open()},removeSuspensionProcess:function(t,e){$(t).html('<i class="fa fa-spinner fa-spin" style="color:#ffffff;"></i>'),$.ajax({type:"POST",url:"/my/holds/remove-suspension",complete:function(t){"OK"!==jQuery.parseJSON(t.responseText).status?alert("There was a problem submitting your request."):window.location.reload()},data:{rid:e,_token:$("#g_csrf").val()}})},addSuspensionClick:function(t){$("[data-remodal-id=xmodal-add-suspension"+t+"]").remodal({hashTracking:!1}).open()},addSuspensionProcess:function(t,e,i){$(t).html('<i class="fa fa-spinner fa-spin" style="color:#ffffff;"></i>'),$.ajax({type:"POST",url:"/my/holds/add-suspension",complete:function(t){"OK"!==jQuery.parseJSON(t.responseText).status?alert("There was a problem submitting your request."):window.location.reload()},data:{rid:e,days:i,_token:$("#g_csrf").val()}})},checkoutFromHold:function(t,e){var i=$(t);i.html('<i class="fa fa-spinner fa-spin" style="color:#ffffff;"></i>'),$.ajax({type:"POST",url:"/my/holds/checkout",complete:function(t){var e=jQuery.parseJSON(t.responseText);"OK"!==e.status?alert("There was a problem submitting your request. Please refresh the page and try again."):"YES"===e.success?window.location.href=e.url:(i.html(e.html),alert("There was a problem checking out the book. Please contact us."))},data:{rid:e,_token:$("#g_csrf").val()}})},joinPaymentOption:function(t){switch(po=t.value,po){case"paypal":window.location.href="/join?step=4&pm=paypal";break;case"cheque":window.location.href="/join?step=4&pm=cheque";break;case"dd":window.location.href="/join?step=4&pm=dd";break;case"dd2":window.location.href="/join?step=4&pm=dd2";break;case"invoice":window.location.href="/join?step=4&pm=invoice"}},applyDiscount:function(t){$(t).html('<i class="fa fa-spinner fa-spin" style="color:#ffffff;"></i>'),$("#discount-code-form-clone textarea").val($("#discount-code-box").val()),$("#discount-code-form-clone").submit()},renewClick:function(t){$("[data-remodal-id=xmodal-renew"+t+"]").remodal({hashTracking:!1}).open()},renewProcess:function(t,e){$(t).html('<i class="fa fa-spinner fa-spin" style="color:#ffffff;"></i>'),$.ajax({type:"POST",url:"/my/loans/renew",complete:function(t){"OK"!==jQuery.parseJSON(t.responseText).status?(alert("There was a problem renewing your book. It could be that the book was already on hold by another member."),window.location.reload()):window.location.reload()},data:{rid:e,_token:$("#g_csrf").val()}})}};$(document).ready(lb.init),$("#accordion").find(".accordion-toggle").
1click(function(){$(".accordion-toggle").removeClass("opened"),$(this).addClass("opened").next().slideToggle("fast"),$(".accordion-content").not($(this).next()).slideUp("fast")});var EasyAutocomplete=function(t){return t.Configuration=function(t){function e(t){return void 0!==o[t]&&null!==o[t]}function i(t,e){function i(e,o){for(var n in o)void 0===e[n]&&t.log("Property '"+n+"' does not exist in EasyAutocomplete options API."),"object"==typeof e[n]&&-1===$.inArray(n,s)&&i(e[n],o[n])}i(o,e)}var o={data:"list-required",url:"list-required",dataType:"json",listLocation:function(t){return t},xmlElementName:"",getValue:function(t){return t},autocompleteOff:!0,placeholder:!1,ajaxCallback:function(){},matchResponseProperty:!1,list:{sort:{enabled:!1,method:function(t,e){return t=o.getValue(t),e=o.getValue(e),t<e?-1:t>e?1:0}},maxNumberOfElements:6,hideOnEmptyPhrase:!0,match:{enabled:!1,caseSensitive:!1,method:function(t,e){return t.search(e)>-1}},showAnimation:{type:"normal",time:400,callback:function(){}},hideAnimation:{type:"normal",time:400,callback:function(){}},onClickEvent:function(){},onSelectItemEvent:function(){},onLoadEvent:function(){},onChooseEvent:function(){},onKeyEnterEvent:function(){},onMouseOverEvent:function(){},onMouseOutEvent:function(){},onShowListEvent:function(){},onHideListEvent:function(){}},highlightPhrase:!0,theme:"",cssClasses:"",minCharNumber:0,requestDelay:0,adjustWidth:!0,ajaxSettings:{},preparePostData:function(t,e){return t},loggerEnabled:!0,template:"",categoriesAssigned:!1,categories:[{maxNumberOfElements:4}]},s=["ajaxSettings","template"];this.get=function(t){return o[t]},this.equals=function(t,i){return!(!e(t)||o[t]!==i)},this.checkDataUrlProperties=function(){return!("list-required"===o.url&&"list-required"===o.data)},this.checkRequiredProperties=function(){for(var t in o)if("required"===o[t])return logger.error("Option "+t+" must be defined"),!1;return!0},this.printPropertiesThatDoesntExist=function(t,e){i(t,e)},function(){if("xml"===t.dataType&&(t.getValue||(t.getValue=function(t){return $(t).text()}),t.list||(t.list={}),t.list.sort||(t.list.sort={}),t.list.sort.method=function(e,i){return e=t.getValue(e),i=t.getValue(i),e<i?-1:e>i?1:0},t.list.match||(t.list.match={}),t.list.match.method=function(t,e){return t.search(e)>-1}),void 0!==t.categories&&t.categories instanceof Array){for(var e=[],i=0,s=t.categories.length;i<s;i+=1){var n=t.categories[i];for(var r in o.categories[0])void 0===n[r]&&(n[r]=o.categories[0][r]);e.push(n)}t.categories=e}}(),function(){function e(t,i){var o=t||{};for(var s in t)void 0!==i[s]&&null!==i[s]&&("object"!=typeof i[s]||i[s]instanceof Array?o[s]=i[s]:e(t[s],i[s]));return void 0!==i.data&&null!==i.data&&"object"==typeof i.data&&(o.data=i.data),o}o=e(o,t)}(),!0===o.loggerEnabled&&i(console,t),void 0!==t.ajaxSettings&&"object"==typeof t.ajaxSettings?o.ajaxSettings=t.ajaxSettings:o.ajaxSettings={},function(){"list-required"!==o.url&&"function"!=typeof o.url&&(e=o.url,o.url=function(){return e});if(void 0!==o.ajaxSettings.url&&"function"!=typeof o.ajaxSettings.url){var e=o.ajaxSettings.url;o.ajaxSettings.url=function(){return e}}if("string"==typeof o.listLocation){var i=o.listLocation;"XML"===o.dataType.toUpperCase()?o.listLocation=function(t){return $(t).find(i)}:o.listLocation=function(t){return t[i]}}if("string"==typeof o.getValue){var s=o.getValue;o.getValue=function(t){return t[s]}}void 0!==t.categories&&(o.categoriesAssigned=!0)}()},t}(EasyAutocomplete||{}),EasyAutocomplete=function(t){return t.Constants=function(){var t={CONTAINER_CLASS:"easy-autocomplete-container",CONTAINER_ID:"eac-container-",WRAPPER_CSS_CLASS:"easy-autocomplete"};this.getValue=function(e){return t[e]}},t}((EasyAutocomplete=function(t){return t.Logger=function(){this.error=function(t){console.log("ERROR: "+t)},this.warning=function(t){console.log("WARNING: "+t)}},t}(EasyAutocomplete||{}))||{}),EasyAutocomplete=function(t){return t.proccess=function(e,i,o){function s(t,i){return e.get("list").match.caseSensitive||("string"==typeof t&&(t=t.toLowerCase()),i=i.toLowerCase()),e.get("list").match.method(t,i)}t.proccess.match=s;var n=i.data;return n=function(t,i){var o=[],n="";if(e.get("list").match.enabled)for(var r=0,a=t.length;r<a;r+=1)n=e.get("getValue")(t[r]),s(n,i)&&o.push(t[r]);else o=t;return o}(n,o),n=function(t){return void 0!==i.maxNumberOfElements&&t.length>i.maxNumberOfElements&&(t=t.slice(0,i.maxNumberOfElements)),t}(n),n=function(t){return e.get("list").sort.enabled&&t.sort(e.get("list").sort.method),t}(n)},t}((EasyAutocomplete=function(t){return t.ListBuilderService=function(t,e){function i(e,i){var o={};if(o="XML"===t.get("dataType").toUpperCase()?function(){var o,s={};return void 0!==e.xmlElementName&&(s.xmlElementName=e.xmlElementName),void 0!==e.listLocation?o=e.listLocation:void 0!==t.get("listLocation")&&(o=t.get("listLocation")),void 0!==o?"string"==typeof o?s.data=$(i).find(o):"function"==typeof o&&(s.data=o(i)):s.data=i,s}():function(){var t={};return void 0!==e.listLocation?"string"==typeof e.listLocation?t.data=i[e.listLocation]:"function"==typeof e.listLocation&&(t.data=e.listLocation(i)):t.data=i,t}(),void 0!==e.header&&(o.header=e.header),void 0!==e.maxNumberOfElements&&(o.maxNumberOfElements=e.maxNumberOfElements),void 0!==t.get("list").maxNumberOfElements&&(o.maxListSize=t.get("list").maxNumberOfElements),void 0!==e.getValue)if("string"==typeof e.getValue){var s=e.getValue;o.getValue=function(t){return t[s]}}else"function"==typeof e.getValue&&(o.getValue=e.getValue);else o.getValue=t.get("getValue");return o}function o(e){var i=[];return void 0===e.xmlElementName&&(e.xmlElementName=t.get("xmlElementName")),$(e.data).find(e.xmlElementName).each(function(){i.push(this)}),i}this.init=function(e){var i=[],o={};return o.data=t.get("listLocation")(e),o.getValue=t.get("getValue"),o.maxListSize=t.get("list").maxNumberOfElements,i.push(o),i},this.updateCategories=function(e,o){if(t.get("categoriesAssigned")){e=[];for(var s=0;s<t.get("categories").length;s+=1){var n=i(t.get("categories")[s],o);e.push(n)}}return e},this.convertXml=function(e){if("XML"===t.get("dataType").toUpperCase())for(var i=0;i<e.length;i+=1)e[i].data=o(e[i]);return e},this.processData=function(i,o){for(var s=0,n=i.length;s<n;s+=1)i[s].data=e(t,i[s],o);return i},this.checkIfDataExists=function(t){for(var e=0,i=t.length;e<i;e+=1)if(void 0!==t[e].data&&t[e].data instanceof Array&&t[e].data.length>0)return!0;return!1}},t}(EasyAutocomplete||{}))||{}),EasyAutocomplete=function(t){return t.main=function(e,i){function o(){return 0===w.length?void g.error("Input field doesn't exist."):f.checkDataUrlProperties()?f.checkRequiredProperties()?(s(),void r()):void g.error("Will not work without mentioned properties."):void g.error("One of options variables 'data' or 'url' must be defined.")}function s(){function t(){var t=w.outerWidth();w.parent().css("width",t)}function e(t,e){return f.get("highlightPhrase")&&""!==e?o(t,e):t}function i(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function o(t,e){var o=i(e);return(t+"").replace(new RegExp("("+o+")","gi"),"<b>$1</b>")}w.parent().hasClass(u.getValue("WRAPPER_CSS_CLASS"))&&(w.next("."+u.getValue("CONTAINER_CLASS")).remove(),w.unwrap()),function(){var e=$
1("<div>"),i=u.getValue("WRAPPER_CSS_CLASS");f.get("theme")&&""!==f.get("theme")&&(i+=" eac-"+f.get("theme")),f.get("cssClasses")&&""!==f.get("cssClasses")&&(i+=" "+f.get("cssClasses")),""!==m.getTemplateClass()&&(i+=" "+m.getTemplateClass()),e.addClass(i),w.wrap(e),!0===f.get("adjustWidth")&&t()}(),function(){var t=$("<div>").addClass(u.getValue("CONTAINER_CLASS"));t.attr("id",n()).prepend($("<ul>")),t.on("show.eac",function(){if(w.is(":focus")){switch(f.get("list").showAnimation.type){case"slide":var e=f.get("list").showAnimation.time,i=f.get("list").showAnimation.callback;t.find("ul").slideDown(e,i);break;case"fade":var e=f.get("list").showAnimation.time,i=f.get("list").showAnimation.callback;t.find("ul").fadeIn(e);break;default:t.find("ul").show()}f.get("list").onShowListEvent()}}).on("hide.eac",function(){switch(f.get("list").hideAnimation.type){case"slide":var e=f.get("list").hideAnimation.time,i=f.get("list").hideAnimation.callback;t.find("ul").slideUp(e,i);break;case"fade":var e=f.get("list").hideAnimation.time,i=f.get("list").hideAnimation.callback;t.find("ul").fadeOut(e,i);break;default:t.find("ul").hide()}f.get("list").onHideListEvent()}).on("selectElement.eac",function(){t.find("ul li").removeClass("selected"),t.find("ul li").eq(x).addClass("selected"),f.get("list").onSelectItemEvent()}).on("loadElements.eac",function(i,o,s){var n="",r=t.find("ul");r.empty().detach(),b=[];for(var a=0,l=0,d=o.length;l<d;l+=1){var h=o[l].data;if(0!==h.length){void 0!==o[l].header&&o[l].header.length>0&&r.append("<div class='eac-category' >"+o[l].header+"</div>");for(var p=0,u=h.length;p<u&&a<o[l].maxListSize;p+=1)n=$("<li><div class='eac-item'></div></li>"),function(){var t=p,i=a,r=o[l].getValue(h[t]);n.find(" > div").on("click",function(){w.val(r).trigger("change"),x=i,c(i),f.get("list").onClickEvent(),f.get("list").onChooseEvent()}).mouseover(function(){x=i,c(i),f.get("list").onMouseOverEvent()}).mouseout(function(){f.get("list").onMouseOutEvent()}).html(m.build(e(r,s),h[t]))}(),r.append(n),b.push(h[p]),a+=1}}t.append(r),f.get("list").onLoadEvent()}),w.after(t)}(),y=$("#"+n()),f.get("placeholder")&&w.attr("placeholder",f.get("placeholder"))}function n(){var t=w.attr("id");return t=u.getValue("CONTAINER_ID")+t}function r(){function t(){w.focusout(function(){var t,e=w.val();f.get("list").match.caseSensitive||(e=e.toLowerCase());for(var i=0,o=b.length;i<o;i+=1)if(t=f.get("getValue")(b[i]),f.get("list").match.caseSensitive||(t=t.toLowerCase()),t===e)return x=i,void c(x)})}function e(){w.off("keyup").keyup(function(t){function e(t){function e(t,e){return!1===f.get("matchResponseProperty")||("string"==typeof f.get("matchResponseProperty")?e[f.get("matchResponseProperty")]===t:"function"!=typeof f.get("matchResponseProperty")||f.get("matchResponseProperty")(e)===t)}if(!(t.length<f.get("minCharNumber"))){if("list-required"!==f.get("data")){var i=f.get("data"),o=v.init(i);o=v.updateCategories(o,i),d(o=v.processData(o,t),t),w.parent().find("li").length>0?a():l()}var s=function(){var t={},e=f.get("ajaxSettings")||{};for(var i in e)t[i]=e[i];return t}();void 0!==s.url&&""!==s.url||(s.url=f.get("url")),void 0!==s.dataType&&""!==s.dataType||(s.dataType=f.get("dataType")),void 0!==s.url&&"list-required"!==s.url&&(s.url=s.url(t),s.data=f.get("preparePostData")(s.data,t),$.ajax(s).done(function(i){var o=v.init(i);o=v.updateCategories(o,i),o=v.convertXml(o),e(t,i)&&(o=v.processData(o,t),d(o,t)),v.checkIfDataExists(o)&&w.parent().find("li").length>0?a():l(),f.get("ajaxCallback")()}).fail(function(){g.warning("Fail to load response data")}).always(function(){}))}}switch(t.keyCode){case 27:l(),h();break;case 38:t.preventDefault(),b.length>0&&x>0&&(x-=1,w.val(f.get("getValue")(b[x])),c(x));break;case 40:t.preventDefault(),b.length>0&&x<b.length-1&&(x+=1,w.val(f.get("getValue")(b[x])),c(x));break;default:if(t.keyCode>40||8===t.keyCode||0===t.keyCode){var i=w.val();!0!==f.get("list").hideOnEmptyPhrase||8!==t.keyCode||""!==i?f.get("requestDelay")>0?(void 0!==p&&clearTimeout(p),p=setTimeout(function(){e(i)},f.get("requestDelay"))):e(i):l()}}})}function i(){w.on("keydown",function(t){if(38===(t=t||window.event).keyCode)return suppressKeypress=!0,!1}).keydown(function(t){13===t.keyCode&&x>-1&&(w.val(f.get("getValue")(b[x])),f.get("list").onKeyEnterEvent(),f.get("list").onChooseEvent(),x=-1,l(),t.preventDefault())})}function o(){w.off("keypress")}function s(){w.focus(function(){""!==w.val()&&b.length>0&&(x=-1,a())})}function n(){w.blur(function(){setTimeout(function(){x=-1,l()},250)})}function r(){w.attr("autocomplete","off")}_("autocompleteOff",!0)&&r(),t(),e(),i(),o(),s(),n()}function a(){y.trigger("show.eac")}function l(){y.trigger("hide.eac")}function c(t){y.trigger("selectElement.eac",t)}function d(t,e){y.trigger("loadElements.eac",[t,e])}function h(){w.trigger("blur")}var p,u=new t.Constants,f=new t.Configuration(i),g=new t.Logger,m=new t.Template(i.template),v=new t.ListBuilderService(f,t.proccess),_=f.equals,w=e,y="",b=[],x=-1;t.consts=u,this.getConstants=function(){return u},this.getConfiguration=function(){return f},this.getContainer=function(){return y}
1,this.getSelectedItemIndex=function(){return x},this.getItems=function(){return b},this.getItemData=function(t){return b.length<t||void 0===b[t]?-1:b[t]},this.getSelectedItemData=function(){return this.getItemData(x)},this.build=function(){s()},this.init=function(){o()}},t.eacHandles=[],t.getHandle=function(e){return t.eacHandles[e]},t.inputHasId=function(t){return void 0!==$(t).attr("id")&&$(t).attr("id").length>0},t.assignRandomId=function(e){var i="";do{i="eac-"+Math.floor(1e4*Math.random())}while(0!==$("#"+i).length);elementId=t.consts.getValue("CONTAINER_ID")+i,$(e).attr("id",i)},t.setHandle=function(e,i){t.eacHandles[i]=e},t}((EasyAutocomplete=function(t){return t.Template=function(t){var e={basic:{type:"basic",method:function(t){return t},cssClass:""},description:{type:"description",fields:{description:"description"},method:function(t){return t+" - description"},cssClass:"eac-description"},iconLeft:{type:"iconLeft",fields:{icon:""},method:function(t){return t},cssClass:"eac-icon-left"},iconRight:{type:"iconRight",fields:{iconSrc:""},method:function(t){return t},cssClass:"eac-icon-right"},links:{type:"links",fields:{link:""},method:function(t){return t},cssClass:""},custom:{type:"custom",method:function(){},cssClass:""}},i=function(t){var i,o=t.fields;return"description"===t.type?(i=e.description.method,"string"==typeof o.description?i=function(t,e){return t+" - <span>"+e[o.description]+"</span>"}:"function"==typeof o.description&&(i=function(t,e){return t+" - <span>"+o.description(e)+"</span>"}),i):"iconRight"===t.type?("string"==typeof o.iconSrc?i=function(t,e){return t+"<img class='eac-icon' src='"+e[o.iconSrc]+"' />"}:"function"==typeof o.iconSrc&&(i=function(t,e){return t+"<img class='eac-icon' src='"+o.iconSrc(e)+"' />"}),i):"iconLeft"===t.type?("string"==typeof o.iconSrc?i=function(t,e){return"<img class='eac-icon' src='"+e[o.iconSrc]+"' />"+t}:"function"==typeof o.iconSrc&&(i=function(t,e){return"<img class='eac-icon' src='"+o.iconSrc(e)+"' />"+t}),i):"links"===t.type?("string"==typeof o.link?i=function(t,e){return"<a href='"+e[o.link]+"' >"+t+"</a>"}:"function"==typeof o.link&&(i=function(t,e){return"<a href='"+o.link(e)+"' >"+t+"</a>"}),i):"custom"===t.type?t.method:e.basic.method};this.getTemplateClass=function(t){return t&&t.type&&t.type&&e[t.type]?function(){var i=e[t.type].cssClass;return function(){return i}}():function(){return""}}(t),this.build=function(t){return t&&t.type&&t.type&&e[t.type]?i(t):e.basic.method}(t)},t}(EasyAutocomplete||{}))||{});!function(t){t.fn.easyAutocomplete=function(e){return this.each(function(){var i=t(this),o=new EasyAutocomplete.main(i,e);EasyAutocomplete.inputHasId(i)||EasyAutocomplete.assignRandomId(i),o.init(),EasyAutocomplete.setHandle(o,i.attr("id"))})},t.fn.getSelectedItemIndex=function(){var e=t(this).attr("id");return void 0!==e?EasyAutocomplete.getHandle(e).getSelectedItemIndex():-1},t.fn.getItems=function(){var e=t(this).attr("id");return void 0!==e?EasyAutocomplete.getHandle(e).getItems():-1},t.fn.getItemData=function(e){var i=t(this).attr("id");return void 0!==i&&e>-1?EasyAutocomplete.getHandle(i).getItemData(e):-1},t.fn.getSelectedItemData=function(){var e=t(this).attr("id");return void 0!==e?EasyAutocomplete.getHandle(e).getSelectedItemData():-1}}(jQuery),function(t){var e={mode:"horizontal",slideSelector:"",infiniteLoop:!0,hideControlOnEnd:!1,speed:500,easing:null,slideMargin:0,startSlide:0,randomStart:!1,captions:!1,ticker:!1,tickerHover:!1,adaptiveHeight:!1,adaptiveHeightSpeed:500,video:!1,useCSS:!0,preloadImages:"visible",responsive:!0,slideZIndex:50,wrapperClass:"bx-wrapper",touchEnabled:!0,swipeThreshold:50,oneToOneTouch:!0,preventDefaultSwipeX:!0,preventDefaultSwipeY:!1,ariaLive:!0,ariaHidden:!0,keyboardEnabled:!1,pager:!0,pagerType:"full",pagerShortSeparator:" / ",pagerSelector:null,buildPager:null,pagerCustom:null,controls:!0,nextText:"Next",prevText:"Prev",nextSelector:null,prevSelector:null,autoControls:!1,startText:"Start",stopText:"Stop",autoControlsCombine:!1,autoControlsSelector:null,auto:!1,pause:4e3,autoStart:!0,autoDirection:"next",stopAutoOnClick:!1,autoHover:!1,autoDelay:0,autoSlideForOnePage:!1,minSli
vendor: 11,629 bytes, line 1
1des:1,maxSlides:1,moveSlides:0,slideWidth:0,shrinkItems:!1,onSliderLoad:function(){return!0},onSlideBefore:function(){return!0},onSlideAfter:function(){return!0},onSlideNext:function(){return!0},onSlidePrev:function(){return!0},onSliderResize:function(){return!0},onAutoChange:function(){return!0}};t.fn.bxSlider=function(o){if(0===this.length)return this;if(this.length>1)return this.each(function(){t(this).bxSlider(o)}),this;var s={},n=this,r=t(window).width(),a=t(window).height();if(!t(n).data("bxSlider")){var l=function(){t(n).data("bxSlider")||(s.settings=t.extend({},e,o),s.settings.slideWidth=parseInt(s.settings.slideWidth),s.children=n.children(s.settings.slideSelector),s.children.length<s.settings.minSlides&&(s.settings.minSlides=s.children.length),s.children.length<s.settings.maxSlides&&(s.settings.maxSlides=s.children.length),s.settings.randomStart&&(s.settings.startSlide=Math.floor(Math.random()*s.children.length)),s.active={index:s.settings.startSlide},s.carousel=s.settings.minSlides>1||s.settings.maxSlides>1,s.carousel&&(s.settings.preloadImages="all"),s.minThreshold=s.settings.minSlides*s.settings.slideWidth+(s.settings.minSlides-1)*s.settings.slideMargin,s.maxThreshold=s.settings.maxSlides*s.settings.slideWidth+(s.settings.maxSlides-1)*s.settings.slideMargin,s.working=!1,s.controls={},s.interval=null,s.animProp="vertical"===s.settings.mode?"top":"left",s.usingCSS=s.settings.useCSS&&"fade"!==s.settings.mode&&function(){for(var t=document.createElement("div"),e=["WebkitPerspective","MozPerspective","OPerspective","msPerspective"],i=0;i<e.length;i++)if(void 0!==t.style[e[i]])return s.cssPrefix=e[i].replace("Perspective","").toLowerCase(),s.animProp="-"+s.cssPrefix+"-transform",!0;return!1}(),"vertical"===s.settings.mode&&(s.settings.maxSlides=s.settings.minSlides),n.data("origStyle",n.attr("style")),n.children(s.settings.slideSelector).each(function(){t(this).data("origStyle",t(this).attr("style"))}),c())},c=function(){var e=s.children.eq(s.settings.startSlide);n.wrap('<div class="'+s.settings.wrapperClass+'"><div class="bx-viewport"></div></div>'),s.viewport=n.parent(),s.settings.ariaLive&&!s.settings.ticker&&s.viewport.attr("aria-live","polite"),s.loader=t('<div class="bx-loading" />'),s.viewport.prepend(s.loader),n.css({width:"horizontal"===s.settings.mode?1e3*s.children.length+215+"%":"auto",position:"relative"}),s.usingCSS&&s.settings.easing?n.css("-"+s.cssPrefix+"-transition-timing-function",s.settings.easing):s.settings.easing||(s.settings.easing="swing"),s.viewport.css({width:"100%",overflow:"hidden",position:"relative"}),s.viewport.parent().css({maxWidth:u()}),s.children.css({float:"horizontal"===s.settings.mode?"left":"none",listStyle:"none",position:"relative"}),s.children.css("width",f()),"horizontal"===s.settings.mode&&s.settings.slideMargin>0&&s.children.css("marginRight",s.settings.slideMargin),"vertical"===s.settings.mode&&s.settings.slideMargin>0&&s.children.css("marginBottom",s.settings.slideMargin),"fade"===s.settings.mode&&(s.children.css({position:"absolute",zIndex:0,display:"none"}),s.children.eq(s.settings.startSlide).css({zIndex:s.settings.slideZIndex,display:"block"})),s.controls.el=t('<div class="bx-controls" />'),s.settings.captions&&S(),s.active.last=s.settings.startSlide===m()-1,s.settings.video&&n.fitVids(),"none"===s.settings.preloadImages?e=null:("all"===s.settings.preloadImages||s.settings.ticker)&&(e=s.children),s.settings.ticker?s.settings.pager=!1:(s.settings.controls&&x(),s.settings.auto&&s.settings.autoControls&&k(),s.settings.pager&&b(),(s.settings.controls||s.settings.autoControls||s.settings.pager)&&s.viewport.after(s.controls.el)),null===e?h():d(e,h)},d=function(e,i){var o=e.find('img:not([src=""]), iframe').length,s=0;0!==o?e.find('img:not([src=""]), iframe').each(function(){t(this).one("load error",function(){++s===o&&i()}).each(function(){(this.complete||""==this.src)&&t(this).trigger("load")})}):i()},h=function(){if(s.settings.infiniteLoop&&"fade"!==s.settings.mode&&!s.settings.ticker){var e="vertical"===s.settings.mode?s.settings.minSlides:s.settings.maxSlides,i=s.children.slice(0,e).clone(!0).addClass("bx-clone"),o=s.children.slice(-e).clone(!0).addClass("bx-clone");s.settings.ariaHidden&&(i.attr("aria-hidden",!0),o.attr("aria-hidden",!0)),n.append(i).prepend(o)}s.loader.remove(),_(),"vertical"===s.settings.mode&&(s.settings.adaptiveHeight=!0),s.viewport.height(p()),n.redrawSlider(),s.settings.onSliderLoad.call(n,s.active.index),s.initialized=!0,s.settings.responsive&&t(window).on("resize",Y),s.settings.auto&&s.settings.autoStart&&(m()>1||s.settings.autoSlideForOnePage)&&L(),s.settings.ticker&&N(),s.settings.pager&&O(s.settings.startSlide),s.settings.controls&&A(),navigator.maxTouchPoints>0&&U(),s.settings.keyboardEnabled&&!s.settings.ticker&&t(document).keydown(H)},p=function(){var e=0,o=t();if("vertical"===s.settings.mode||s.settings.adaptiveHeight)if(s.carousel){var n=1===s.settings.moveSlides?s.active.index:s.active.index*v();for(o=s.children.eq(n),i=1;i<=s.settings.maxSlides-1;i++)o=n+i>=s.children.length?o.add(s.children.eq(i-1)):o.add(s.children.eq(n+i))}else o=s.children.eq(s.active.index);else o=s.children;return"vertical"===s.settings.mode?(o.each(function(i){e+=t(this).outerHeight()}),s.settings.slideMargin>0&&(e+=s.settings.slideMargin*(s.settings.minSlides-1))):e=Math.max.apply(Math,o.map(function(){return t(this).outerHeight(!1)}).get()),"border-box"===s.viewport.css("box-sizing")?e+=parseFloat(s.viewport.css("padding-top"))+parseFloat(s.viewport.css("padding-bottom"))+parseFloat(s.viewport.css("border-top-width"))+parseFloat(s.viewport.css("border-bottom-width")):"padding-box"===s.viewport.css("box-sizing")&&(e+=parseFloat(s.viewport.css("padding-top"))+parseFloat(s.viewport.css("padding-bottom"))),e},u=function(){var t="100%";return s.settings.slideWidth>0&&(t="horizontal"===s.settings.mode?s.settings.maxSlides*s.settings.slideWidth+(s.settings.maxSlides-1)*s.settings.slideMargin:s.settings.slideWidth),t},f=function(){var t=s.settings.slideWidth,e=s.viewport.width();if(0===s.settings.slideWidth||s.settings.slideWidth>e&&!s.carousel||"vertical"===s.settings.mode)t=e;else if(s.settings.maxSlides>1&&"horizontal"===s.settings.mode){if(e>s.maxThreshold)return t;e<s.minThreshold?t=(e-s.settings.slideMargin*(s.settings.minSlides-1))/s.settings.minSlides:s.settings.shrinkItems&&(t=Math.floor((e+s.settings.slideMargin)/Math.ceil((e+s.settings.slideMargin)/(t+s.settings.slideMargin))-s.settings.slideMargin))}return t},g=function(){var t=1,e=null;return"horizontal"===s.settings.mode&&s.settings.slideWidth>0?s.viewport.width()<s.minThreshold?t=s.settings.minSlides:s.viewport.width()>s.maxThreshold?t=s.settings.maxSlides:(e=s.children.first().width()+s.settings.slideMargin,t=Math.floor((s.viewport.width()+s.settings.slideMargin)/e)||1):"vertical"===s.settings.mode&&(t=s.settings.minSlides),t},m=function(){var t=0,e=0,i=0;if(s.settings.moveSlides>0){if(!s.settings.infiniteLoop){for(;e<s.children.length;)++t,e=i+g(),i+=s.settings.moveSlides<=g()?s.settings.moveSlides:g();return i}t=Math.ceil(s.children.length/v())}else t=Math.ceil(s.children.length/g());return t},v=function(){return s.settings.moveSlides>0&&s.settings.moveSlides<=g()?s.settings.moveSlides:g()},_=function(){var t,e,i;s.children.length>s.settings.maxSlides&&s.active.last&&!s.settings.infiniteLoop?"horizontal"===s.settings.mode?(t=(e=s.children.last()).position(),w(-(t.left-(s.viewport.width()-e.outerWidth())),"reset",0)):"vertical"===s.settings.mode&&(i=s.children.length-s.settings.minSlides,t=s.children.eq(i).position(),w(-t.top,"reset",0)):(t=s.children.eq(s.active.index*v()).position(),s.active.index===m()-1&&(s.active.last=!0),void 0!==t&&("horizontal"===s.settings.mode?w(-t.left,"reset",0):"vertical"===s.settings.mode&&w(-t.top,"reset",0)))},w=function(e,i,o,r){var a,l;s.usingCSS?(l="vertical"===s.settings.mode?"translate3d(0, "+e+"px, 0)":"translate3d("+e+"px, 0, 0)",n.css("-"+s.cssPrefix+"-transition-duration",o/1e3+"s"),"slide"===i?(n.css(s.animProp,l),0!==o?n.on("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(e){t(e.target).is(n)&&(n.off("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),z())}):z()):"reset"===i?n.css(s.animProp,l):"ticker"===i&&(n.css("-"+s.cssPrefix+"-transition-timing-function","linear"),n.css(s.animProp,l),0!==o?n.on("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(e){t(e.target).is(n)&&(n.off("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),w(r.resetValue,"reset",0),F())}):(w(r.resetValue,"reset",0),F()))):((a={})[s.animProp]=e,"slide"===i?n.animate(a,o,s.settings.easing,function(){z()}):"reset"===i?n.css(s.animProp,e):"ticker"===i&&n.animate(a,o,"linear",function(){w(r.resetValue,"reset",0),F()}))},y=function(){for(var e="",i="",o=m(),n=0;n<o;n++)i="",s.settings.buildPager&&t.isFunction(s.settings.buildPager)||s.settings.pagerCustom?(i=s.settings.buildPager(n),s.pagerEl.addClass("bx-custom-pager")):(i=n+1,s.pagerEl.addClass("bx-default-pager")),e+='<div class="bx-pager-item"><a href="" data-slide-index="'+n+'" class="bx-pager-link">'+i+"</a></div>";s.pagerEl.html(e)},b=function(){s.settings.pagerCustom?s.pagerEl=t(s.settings.pagerCustom):(s.pagerEl=t('<div class="bx-pager" />'),s.settings.pagerSelector?t(s.settings.pagerSelector).html(s.pagerEl):s.controls.el.addClass("bx-has-pager").append(s.pagerEl),y()),s.pagerEl.on("click touchend","a",E)},x=function(){s.controls.next=t('<a class="bx-next" href="">'+s.settings.nextText+"</a>"),s.controls.prev=t('<a class="bx-prev" href="">'+s.settings.prevText+"</a>"),s.controls.next.on("click touchend",C),s.controls.prev.on("click touchend",$),s.settings.nextSelector&&t(s.settings.nextSelector).append(s.controls.next),s.settings.prevSelector&&t(s.settings.prevSelector).append(s.controls.prev),s.settings.nextSelector||s.settings.prevSelector||(s.controls.directionEl=t('<div class="bx-controls-direction" />'),s.controls.directionEl.append(s.controls.prev).append(s.controls.next),s.controls.el.addClass("bx-has-controls-direction").append(s.controls.directionEl))},k=function(){s.controls.start=t('<div class="bx-controls-auto-item"><a class="bx-start" href="">'+s.settings.startText+"</a></div>"),s.controls.stop=t('<div class="bx-controls-auto-item"><a class="bx-stop" href="">'+s.settings.stopText+"</a></div>"),s.controls.autoEl=t('<div class="bx-controls-auto" />'),s.controls.autoEl.on("click",".bx-start",T),s.controls.autoEl.on("click",".bx-stop",D),s.settings.autoControlsCombine?s.controls.autoEl.append(s.controls.start):s.controls.autoEl.append(s.controls.start).append(s.controls.stop),s.settings.autoControlsSelector?t(s.settings.autoControlsSelector).html(s.controls.autoEl):s.controls.el.addClass("bx-has-controls-auto").append(s.controls.autoEl),M(s.settings.autoStart?"stop":"start")},S=function(){s.children.each(function(e){var i=t(this).find("img:first").attr("title");void 0!==i&&(""+i).length&&t(this).append('<div class="bx-caption"><span>'+i+"</span></div>")})},C=function(t){t.preventDefault(),s.controls.el.hasClass("disabled")||(s.settings.auto&&s.settings.stopAutoOnClick&&n.stopAuto(),n.goToNextSlide())},$=function(t){t.preventDefault(),s.controls.el.hasClass("disabled")||(s.settings.auto&&s.settings.stopAutoOnClick&&n.stopAuto(),n.goToPrevSlide())},T=function(t){n.startAuto(),t.preventDefault()},D=function(t){n.stopAuto(),t.preventDefault()},E=function(e){var i,o;e.preventDefault(),s.controls.el.hasClass("disabled")||(s.settings.auto&&s.settings.stopAutoOnClick&&n.stopAuto(),void 0!==(i=t(e.currentTarget)).attr("data-sli
1de-index")&&(o=parseInt(i.attr("data-slide-index")))!==s.active.index&&n.goToSlide(o))},O=function(e){var i=s.children.length;if("short"===s.settings.pagerType)return s.settings.maxSlides>1&&(i=Math.ceil(s.children.length/s.settings.maxSlides)),void s.pagerEl.html(e+1+s.settings.pagerShortSeparator+i);s.pagerEl.find("a").removeClass("active"),s.pagerEl.each(function(i,o){t(o).find("a").eq(e).addClass("active")})},z=function(){if(s.settings.infiniteLoop){var t="";0===s.active.index?t=s.children.eq(0).position():s.active.index===m()-1&&s.carousel?t=s.children.eq((m()-1)*v()).position():s.active.index===s.children.length-1&&(t=s.children.eq(s.children.length-1).position()),t&&("horizontal"===s.settings.mode?w(-t.left,"reset",0):"vertical"===s.settings.mode&&w(-t.top,"reset",0))}s.working=!1,s.settings.onSlideAfter.call(n,s.children.eq(s.active.index),s.oldIndex,s.active.index)},M=function(t){s.settings.autoControlsCombine?s.controls.autoEl.html(s.controls[t]):(s.controls.autoEl.find("a").removeClass("active"),s.controls.autoEl.find("a:not(.bx-"+t+")").addClass("active"))}
vendor: 9,250 bytes, line 1
1,A=function(){1===m()?(s.controls.prev.addClass("disabled"),s.controls.next.addClass("disabled")):!s.settings.infiniteLoop&&s.settings.hideControlOnEnd&&(0===s.active.index?(s.controls.prev.addClass("disabled"),s.controls.next.removeClass("disabled")):s.active.index===m()-1?(s.controls.next.addClass("disabled"),s.controls.prev.removeClass("disabled")):(s.controls.prev.removeClass("disabled"),s.controls.next.removeClass("disabled")))},P=function(){n.startAuto()},I=function(){n.stopAuto()},L=function(){s.settings.autoDelay>0?setTimeout(n.startAuto,s.settings.autoDelay):(n.startAuto(),t(window).focus(P).blur(I)),s.settings.autoHover&&n.hover(function(){s.interval&&(n.stopAuto(!0),s.autoPaused=!0)},function(){s.autoPaused&&(n.startAuto(!0),s.autoPaused=null)})},N=function(){var e,i,o,r,a,l,c,d,h=0;"next"===s.settings.autoDirection?n.append(s.children.clone().addClass("bx-clone")):(n.prepend(s.children.clone().addClass("bx-clone")),e=s.children.first().position(),h="horizontal"===s.settings.mode?-e.left:-e.top),w(h,"reset",0),s.settings.pager=!1,s.settings.controls=!1,s.settings.autoControls=!1,s.settings.tickerHover&&(s.usingCSS?(r="horizontal"===s.settings.mode?4:5,s.viewport.hover(function(){i=n.css("-"+s.cssPrefix+"-transform"),o=parseFloat(i.split(",")[r]),w(o,"reset",0)},function(){d=0,s.children.each(function(e){d+="horizontal"===s.settings.mode?t(this).outerWidth(!0):t(this).outerHeight(!0)}),a=s.settings.speed/d,l="horizontal"===s.settings.mode?"left":"top",c=a*(d-Math.abs(parseInt(o))),F(c)})):s.viewport.hover(function(){n.stop()},function(){d=0,s.children.each(function(e){d+="horizontal"===s.settings.mode?t(this).outerWidth(!0):t(this).outerHeight(!0)}),a=s.settings.speed/d,l="horizontal"===s.settings.mode?"left":"top",c=a*(d-Math.abs(parseInt(n.css(l)))),F(c)})),F()},F=function(t){var e,i,o=t||s.settings.speed,r={left:0,top:0},a={left:0,top:0};"next"===s.settings.autoDirection?r=n.find(".bx-clone").first().position():a=s.children.first().position(),e="horizontal"===s.settings.mode?-r.left:-r.top,i="horizontal"===s.settings.mode?-a.left:-a.top,w(e,"ticker",o,{resetValue:i})},j=function(e){var i=t(window),o={top:i.scrollTop(),left:i.scrollLeft()},s=e.offset();return o.right=o.left+i.width(),o.bottom=o.top+i.height(),s.right=s.left+e.outerWidth(),s.bottom=s.top+e.outerHeight(),!(o.right<s.left||o.left>s.right||o.bottom<s.top||o.top>s.bottom)},H=function(t){var e=document.activeElement.tagName.toLowerCase();if(null==new RegExp(e,["i"]).exec("input|textarea")&&j(n)){if(39===t.keyCode)return C(t),!1;if(37===t.keyCode)return $(t),!1}},U=function(){s.touch={start:{x:0,y:0},end:{x:0,y:0}},s.viewport.on("touchstart MSPointerDown pointerdown",W),s.viewport.on("click",".bxslider a",function(t){s.viewport.hasClass("click-disabled")&&(t.preventDefault(),s.viewport.removeClass("click-disabled"))})},W=function(e){if("touchstart"===e.type||0===e.button){if(t(window).scroll(function(i){t(this).scrollTop()>0||e.preventDefault()}),s.controls.el.addClass("disabled"),s.working)s.controls.el.removeClass("disabled");else{s.touch.originalPos=n.position();var i=e.originalEvent,o=void 0!==i.changedTouches?i.changedTouches:[i];if("function"==typeof PointerEvent&&void 0===i.pointerId)return;s.touch.start.x=o[0].pageX,s.touch.start.y=o[0].pageY,s.viewport.get(0).setPointerCapture&&(s.pointerId=i.pointerId,s.viewport.get(0).setPointerCapture(s.pointerId)),s.originalClickTarget=i.originalTarget||i.target,s.originalClickButton=i.button,s.originalClickButtons=i.buttons,s.originalEventType=i.type,s.hasMove=!1,s.viewport.on("touchmove MSPointerMove pointermove",q),s.viewport.on("touchend MSPointerUp pointerup",V),s.viewport.on("MSPointerCancel pointercancel",R)}}},R=function(t){t.preventDefault(),w(s.touch.originalPos.left,"reset",0),s.controls.el.removeClass("disabled"),s.viewport.off("MSPointerCancel pointercancel",R),s.viewport.off("touchmove MSPointerMove pointermove",q),s.viewport.off("touchend MSPointerUp pointerup",V),s.viewport.get(0).releasePointerCapture&&s.viewport.get(0).releasePointerCapture(s.pointerId)},q=function(t){var e=t.originalEvent,i=void 0!==e.changedTouches?e.changedTouches:[e],o=Math.abs(i[0].pageX-s.touch.start.x),n=Math.abs(i[0].pageY-s.touch.start.y),r=0,a=0;s.hasMove=!0,3*o>n&&s.settings.preventDefaultSwipeX?t.preventDefault():3*n>o&&s.settings.preventDefaultSwipeY&&t.preventDefault(),"touchmove"!==t.type&&t.preventDefault(),"fade"!==s.settings.mode&&s.settings.oneToOneTouch&&("horizontal"===s.settings.mode?(a=i[0].pageX-s.touch.start.x,r=s.touch.originalPos.left+a):(a=i[0].pageY-s.touch.start.y,r=s.touch.originalPos.top+a),w(r,"reset",0))},V=function(e){e.preventDefault(),s.viewport.off("touchmove MSPointerMove pointermove",q),s.controls.el.removeClass("disabled");var i=e.originalEvent,o=void 0!==i.changedTouches?i.changedTouches:[i],r=0,a=0;s.touch.end.x=o[0].pageX,s.touch.end.y=o[0].pageY,"fade"===s.settings.mode?(a=Math.abs(s.touch.start.x-s.touch.end.x))>=s.settings.swipeThreshold&&(s.touch.start.x>s.touch.end.x?n.goToNextSlide():n.goToPrevSlide(),n.stopAuto()):("horizontal"===s.settings.mode?(a=s.touch.end.x-s.touch.start.x,r=s.touch.originalPos.left):(a=s.touch.end.y-s.touch.start.y,r=s.touch.originalPos.top),!s.settings.infiniteLoop&&(0===s.active.index&&a>0||s.active.last&&a<0)?w(r,"reset",200):Math.abs(a)>=s.settings.swipeThreshold?(a<0?n.goToNextSlide():n.goToPrevSlide(),n.stopAuto()):w(r,"reset",200)),s.viewport.off("touchend MSPointerUp pointerup",V),s.viewport.get(0).releasePointerCapture&&s.viewport.get(0).releasePointerCapture(s.pointerId),!1!==s.hasMove||0!==s.originalClickButton&&"touchstart"!==s.originalEventType||t(s.originalClickTarget).trigger({type:"click",button:s.originalClickButton,buttons:s.originalClickButtons})},Y=function(e){if(s.initialized)if(s.working)window.setTimeout(Y,10);else{var i=t(window).width(),o=t(window).height();r===i&&a===o||(r=i,a=o,n.redrawSlider(),s.settings.onSliderResize.call(n,s.active.index))}},B=function(t){var e=g();s.settings.ariaHidden&&!s.settings.ticker&&(s.children.attr("aria-hidden","true"),s.children.slice(t,t+e).attr("aria-hidden","false"))},X=function(t){return t<0?s.settings.infiniteLoop?m()-1:s.active.index:t>=m()?s.settings.infiniteLoop?0:s.active.index:t};return n.goToSlide=function(e,i){var o,r,a,l,c=!0,d=0,h={left:0,top:0},u=null;if(s.oldIndex=s.active.index,s.active.index=X(e),!s.working&&s.active.index!==s.oldIndex){if(s.working=!0,void 0!==(c=s.settings.onSlideBefore.call(n,s.children.eq(s.active.index),s.oldIndex,s.active.index))&&!c)return s.active.index=s.oldIndex,void(s.working=!1);"next"===i?s.settings.onSlideNext.call(n,s.children.eq(s.active.index),s.oldIndex,s.active.index)||(c=!1):"prev"===i&&(s.settings.onSlidePrev.call(n,s.children.eq(s.active.index),s.oldIndex,s.active.index)||(c=!1)),s.active.last=s.active.index>=m()-1,(s.settings.pager||s.settings.pagerCustom)&&O(s.active.index),s.settings.controls&&A(),"fade"===s.settings.mode?(s.settings.adaptiveHeight&&s.viewport.height()!==p()&&s.viewport.animate({height:p()},s.settings.adaptiveHeightSpeed),s.children.filter(":visible").fadeOut(s.settings.speed).css({zIndex:0}),s.children.eq(s.active.index).css("zIndex",s.settings.slideZIndex+1).fadeIn(s.settings.speed,function(){t(this).css("zIndex",s.settings.slideZIndex),z()})):(s.settings.adaptiveHeight&&s.viewport.height()!==p()&&s.viewport.animate({height:p()},s.settings.adaptiveHeightSpeed),!s.settings.infiniteLoop&&s.carousel&&s.active.last?"horizontal"===s.settings.mode?(h=(u=s.children.eq(s.children.length-1)).position(),d=s.viewport.width()-u.outerWidth()):(o=s.children.length-s.settings.minSlides,h=s.children.eq(o).position()):s.carousel&&s.active.last&&"prev"===i?(r=1===s.settings.moveSlides?s.settings.maxSlides-v():(m()-1)*v()-(s.children.length-s.settings.maxSlides),h=(u=n.children(".bx-clone").eq(r)).position()):"next"===i&&0===s.active.index?(h=n.find("> .bx-clone").eq(s.settings.maxSlides).position(),s.active.last=!1):e>=0&&(l=e*parseInt(v()),h=s.children.eq(l).position()),void 0!==h&&(a="horizontal"===s.settings.mode?-(h.left-d):-h.top,w(a,"slide",s.settings.speed)),s.working=!1),s.settings.ariaHidden&&B(s.active.index*v())}},n.goToNextSlide=function(){if((s.settings.infiniteLoop||!s.active.last)&&!0!==s.working){var t=parseInt(s.active.index)+1;n.goToSlide(t,"next")}},n.goToPrevSlide=function(){if((s.settings.infiniteLoop||0!==s.active.index)&&!0!==s.working){var t=parseInt(s.active.index)-1;n.goToSlide(t,"prev")}},n.startAuto=function(t){s.interval||(s.interval=setInterval(function(){"next"===s.settings.autoDirection?n.goToNextSlide():n.goToPrevSlide()},s.settings.pause),s.settings.onAutoChange.call(n,!0),s.settings.autoControls&&!0!==t&&M("stop"))},n.stopAuto=function(t){s.autoPaused&&(s.autoPaused=!1),s.interval&&(clearInterval(s.interval),s.interval=null,s.settings.onAutoChange.call(n,!1),s.settings.autoControls&&!0!==t&&M("start"))},n.getCurrentSlide=function(){return s.active.index},n.getCurrentSlideElement=function(){return s.children.eq(s.active.index)},n.getSlideElement=function(t){return s.children.eq(t)},n.getSlideCount=function(){return s.children.length},n.isWorking=function(){return s.working},n.redrawSlider=function(){s.children.add(n.find(".bx-clone")).outerWidth(f(
1)),s.viewport.css("height",p()),s.settings.ticker||_(),s.active.last&&(s.active.index=m()-1),s.active.index>=m()&&(s.active.last=!0),s.settings.pager&&!s.settings.pagerCustom&&(y(),O(s.active.index)),s.settings.ariaHidden&&B(s.active.index*v())},n.destroySlider=function(){s.initialized&&(s.initialized=!1,t(".bx-clone",this).remove(),s.children.each(function(){void 0!==t(this).data("origStyle")?t(this).attr("style",t(this).data("origStyle")):t(this).removeAttr("style")}),void 0!==t(this).data("origStyle")?this.attr("style",t(this).data("origStyle")):t(this).removeAttr("style"),t(this).unwrap().unwrap(),s.controls.el&&s.controls.el.remove(),s.controls.next&&s.controls.next.remove(),s.controls.prev&&s.controls.prev.remove(),s.pagerEl&&s.settings.controls&&!s.settings.pagerCustom&&s.pagerEl.remove(),t(".bx-caption",this).remove(),s.controls.autoEl&&s.controls.autoEl.remove(),clearInterval(s.interval),s.settings.responsive&&t(window).off("resize",Y),s.settings.keyboardEnabled&&t(document).off("keydown",H),t(this).removeData("bxSlider"),t(window).off("blur",I).off("focus",P))},n.reloadSlider=function(e){void 0!==e&&(o=e),n.destroySlider(),l(),t(n).data("bxSlider",this)},l(),t(n).data("bxSlider",this),this}}}(jQuery),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof exports?require("jquery"):jQuery)}(function(t,e){function i(){return new Date(Date.UTC.apply(Date,arguments))}function o(){var t=new Date;return i(t.getFullYear(),t.getMonth(),t.getDate())}function s(t,e){return t.getUTCFullYear()===e.getUTCFullYear()&&t.getUTCMonth()===e.getUTCMonth()&&t.getUTCDate()===e.getUTCDate()}function n(i,o){return function(){return o!==e&&t.fn.datepicker.deprecated(o),this[i].apply(this,arguments)}}function r(t){return t&&!isNaN(t.getTime())}function a(e,i){var o,s=t(e).data(),n={},r=new RegExp("^"+i.toLowerCase()+"([A-Z])");i=new RegExp("^"+i.toLowerCase());for(var a in s)i.test(a)&&(o=a.replace(r,function(t,e){return e.toLowerCase()}),n[o]=s[a]);return n}function l(e){var i={};if(m[e]||(e=e.split("-")[0],m[e])){var o=m[e];return t.each(g,function(t,e){e in o&&(i[e]=o[e])}),i}}var c=function(){var e={get:function(t){return this.slice(t)[0]},contains:function(t){for(var e=t&&t.valueOf(),i=0,o=this.length;i<o;i++)if(0<=this[i].valueOf()-e&&this[i].valueOf()-e<864e5)return i;return-1},remove:function(t){this.splice(t,1)},replace:function(e){e&&(t.isArray(e)||(e=[e]),this.clear(),this.push.apply(this,e))},clear:function(){this.length=0},copy:function(){var t=new c;return t.replace(this),t}};return function(){var i=[];return i.push.apply(i,arguments),t.extend(i,e),i}}(),d=function(e,i){t.data(e,"datepicker",this),this._events=[],this._secondaryEvents=[],this._process_options(i),this.dates=new c,this.viewDate=this.o.defaultViewDate,this.focusDate=null,this.element=t(e),this.isInput=this.element.is("input"),this.inputField=this.isInput?this.element:this.element.find("input"),this.component=!!this.element.hasClass("date")&&this.element.find(".add-on, .input-group-addon, .input-group-append, .input-group-prepend, .btn"),this.component&&0===this.component.length&&(this.component=!1),this.isInline=!this.component&&this.element.is("div"),this.picker=t(v.template),this._check_template(this.o.templates.leftArrow)&&this.picker.find(".prev").html(this.o.templates.leftArrow),this._check_template(this.o.templates.rightArrow)&&this.picker.find(".next").html(this.o.templates.rightArrow),this._buildEvents(),this._attachEvents(),this.isInline?this.picker.addClass("datepicker-inline").appendTo(this.element):this.picker.addClass("datepicker-dropdown dropdown-menu"),this.o.rtl&&this.picker.addClass("datepicker-rtl"),this.o.calendarWeeks&&this.picker.find(".datepicker-days .datepicker-switch, thead .datepicker-title, tfoot .today, tfoot .clear").attr("colspan",function(t,e){return Number(e)+1}),this._process_options({startDate:this._o.startDate,endDate:this._o.endDate,daysOfWeekDisabled:this.o.daysOfWeekDisabled,daysOfWeekHighlighted:this.o.daysOfWeekHighlighted,datesDisabled:this.o.datesDisabled}),this._allow_update=!1,this.setViewMode(this.o.startView),this._allow_update=!0,this.fillDow(),this.fillMonths(),this.update(),this.isInline&&this.show()};d.prototype={constructor:d,_resolveViewName:function(e){return t.each(v.viewM
vendor: 25,516 bytes, line 1
1odes,function(i,o){if(e===i||-1!==t.inArray(e,o.names))return e=i,!1}),e},_resolveDaysOfWeek:function(e){return t.isArray(e)||(e=e.split(/[,\s]*/)),t.map(e,Number)},_check_template:function(i){try{return i!==e&&""!==i&&((i.match(/[<>]/g)||[]).length<=0||t(i).length>0)}catch(t){return!1}},_process_options:function(e){this._o=t.extend({},this._o,e);var s=this.o=t.extend({},this._o),n=s.language;m[n]||(n=n.split("-")[0],m[n]||(n=f.language)),s.language=n,s.startView=this._resolveViewName(s.startView),s.minViewMode=this._resolveViewName(s.minViewMode),s.maxViewMode=this._resolveViewName(s.maxViewMode),s.startView=Math.max(this.o.minViewMode,Math.min(this.o.maxViewMode,s.startView)),!0!==s.multidate&&(s.multidate=Number(s.multidate)||!1,!1!==s.multidate&&(s.multidate=Math.max(0,s.multidate))),s.multidateSeparator=String(s.multidateSeparator),s.weekStart%=7,s.weekEnd=(s.weekStart+6)%7;var r=v.parseFormat(s.format);s.startDate!==-1/0&&(s.startDate?s.startDate instanceof Date?s.startDate=this._local_to_utc(this._zero_time(s.startDate)):s.startDate=v.parseDate(s.startDate,r,s.language,s.assumeNearbyYear):s.startDate=-1/0),s.endDate!==1/0&&(s.endDate?s.endDate instanceof Date?s.endDate=this._local_to_utc(this._zero_time(s.endDate)):s.endDate=v.parseDate(s.endDate,r,s.language,s.assumeNearbyYear):s.endDate=1/0),s.daysOfWeekDisabled=this._resolveDaysOfWeek(s.daysOfWeekDisabled||[]),s.daysOfWeekHighlighted=this._resolveDaysOfWeek(s.daysOfWeekHighlighted||[]),s.datesDisabled=s.datesDisabled||[],t.isArray(s.datesDisabled)||(s.datesDisabled=s.datesDisabled.split(",")),s.datesDisabled=t.map(s.datesDisabled,function(t){return v.parseDate(t,r,s.language,s.assumeNearbyYear)});var a=String(s.orientation).toLowerCase().split(/\s+/g),l=s.orientation.toLowerCase();if(a=t.grep(a,function(t){return/^auto|left|right|top|bottom$/.test(t)}),s.orientation={x:"auto",y:"auto"},l&&"auto"!==l)if(1===a.length)switch(a[0]){case"top":case"bottom":s.orientation.y=a[0];break;case"left":case"right":s.orientation.x=a[0]}else l=t.grep(a,function(t){return/^left|right$/.test(t)}),s.orientation.x=l[0]||"auto",l=t.grep(a,function(t){return/^top|bottom$/.test(t)}),s.orientation.y=l[0]||"auto";if(s.defaultViewDate instanceof Date||"string"==typeof s.defaultViewDate)s.defaultViewDate=v.parseDate(s.defaultViewDate,r,s.language,s.assumeNearbyYear);else if(s.defaultViewDate){var c=s.defaultViewDate.year||(new Date).getFullYear(),d=s.defaultViewDate.month||0,h=s.defaultViewDate.day||1;s.defaultViewDate=i(c,d,h)}else s.defaultViewDate=o()},_applyEvents:function(t){for(var i,o,s,n=0;n<t.length;n++)i=t[n][0],2===t[n].length?(o=e,s=t[n][1]):3===t[n].length&&(o=t[n][1],s=t[n][2]),i.on(s,o)},_unapplyEvents:function(t){for(var i,o,s,n=0;n<t.length;n++)i=t[n][0],2===t[n].length?(s=e,o=t[n][1]):3===t[n].length&&(s=t[n][1],o=t[n][2]),i.off(o,s)},_buildEvents:function(){var e={keyup:t.proxy(function(e){-1===t.inArray(e.keyCode,[27,37,39,38,40,32,13,9])&&this.update()},this),keydown:t.proxy(this.keydown,this),paste:t.proxy(this.paste,this)};!0===this.o.showOnFocus&&(e.focus=t.proxy(this.show,this)),this.isInput?this._events=[[this.element,e]]:this.component&&this.inputField.length?this._events=[[this.inputField,e],[this.component,{click:t.proxy(this.show,this)}]]:this._events=[[this.element,{click:t.proxy(this.show,this),keydown:t.proxy(this.keydown,this)}]],this._events.push([this.element,"*",{blur:t.proxy(function(t){this._focused_from=t.target},this)}],[this.element,{blur:t.proxy(function(t){this._focused_from=t.target},this)}]),this.o.immediateUpdates&&this._events.push([this.element,{"changeYear changeMonth":t.proxy(function(t){this.update(t.date)},this)}]),this._secondaryEvents=[[this.picker,{click:t.proxy(this.click,this)}],[this.picker,".prev, .next",{click:t.proxy(this.navArrowsClick,this)}],[this.picker,".day:not(.disabled)",{click:t.proxy(this.dayCellClick,this)}],[t(window),{resize:t.proxy(this.place,this)}],[t(document),{"mousedown touchstart":t.proxy(function(t){this.element.is(t.target)||this.element.find(t.target).length||this.picker.is(t.target)||this.picker.find(t.target).length||this.isInline||this.hide()},this)}]]},_attachEvents:function(){this._detachEvents(),this._applyEvents(this._events)},_detachEvents:function(){this._unapplyEvents(this._events)},_attachSecondaryEvents:function(){this._detachSecondaryEvents(),this._applyEvents(this._secondaryEvents)},_detachSecondaryEvents:function(){this._unapplyEvents(this._secondaryEvents)},_trigger:function(e,i){var o=i||this.dates.get(-1),s=this._utc_to_local(o);this.element.trigger({type:e,date:s,viewMode:this.viewMode,dates:t.map(this.dates,this._utc_to_local),format:t.proxy(function(t,e){0===arguments.length?(t=this.dates.length-1,e=this.o.format):"string"==typeof t&&(e=t,t=this.dates.length-1),e=e||this.o.format;var i=this.dates.get(t);return v.formatDate(i,e,this.o.language)},this)})},show:function(){if(!(this.inputField.is(":disabled")||this.inputField.prop("readonly")&&!1===this.o.enableOnReadonly))return this.isInline||this.picker.appendTo(this.o.container),this.place(),this.picker.show(),this._attachSecondaryEvents(),this._trigger("show"),(window.navigator.msMaxTouchPoints||"ontouchstart"in document)&&this.o.disableTouchKeyboard&&t(this.element).blur(),this},hide:function(){return this.isInline||!this.picker.is(":visible")?this:(this.focusDate=null,this.picker.hide().detach(),this._detachSecondaryEvents(),this.setViewMode(this.o.startView),this.o.forceParse&&this.inputField.val()&&this.setValue(),this._trigger("hide"),this)},destroy:function(){return this.hide(),this._detachEvents(),this._detachSecondaryEvents(),this.picker.remove(),delete this.element.data().datepicker,this.isInput||delete this.element.data().date,this},paste:function(e){var i;if(e.originalEvent.clipboardData&&e.originalEvent.clipboardData.types&&-1!==t.inArray("text/plain",e.originalEvent.clipboardData.types))i=e.originalEvent.clipboardData.getData("text/plain");else{if(!window.clipboardData)return;i=window.clipboardData.getData("Text")}this.setDate(i),this.update(),e.preventDefault()},_utc_to_local:function(t){if(!t)return t;var e=new Date(t.getTime()+6e4*t.getTimezoneOffset());return e.getTimezoneOffset()!==t.getTimezoneOffset()&&(e=new Date(t.getTime()+6e4*e.getTimezoneOffset())),e},_local_to_utc:function(t){return t&&new Date(t.getTime()-6e4*t.getTimezoneOffset())},_zero_time:function(t){return t&&new Date(t.getFullYear(),t.getMonth(),t.getDate())},_zero_utc_time:function(t){return t&&i(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate())},getDates:function(){return t.map(this.dates,this._utc_to_local)},getUTCDates:function(){return t.map(this.dates,function(t){return new Date(t)})},getDate:function(){return this._utc_to_local(this.getUTCDate())},getUTCDate:function(){var t=this.dates.get(-1);return t!==e?new Date(t):null},clearDates:function(){this.inputField.val(""),this.update(),this._trigger("changeDate"),this.o.autoclose&&this.hide()},setDates:function(){var e=t.isArray(arguments[0])?arguments[0]:arguments;return this.update.apply(this,e),this._trigger("changeDate"),this.setValue(),this},setUTCDates:function(){var e=t.isArray(arguments[0])?arguments[0]:arguments;return this.setDates.apply(this,t.map(e,this._utc_to_local)),this},setDate:n("setDates"),setUTCDate:n("setUTCDates"),remove:n("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead"),setValue:function(){var t=this.getFormattedDate();return this.inputField.val(t),this},getFormattedDate:function(i){i===e&&(i=this.o.format);var o=this.o.language;return t.map(this.dates,function(t){return v.formatDate(t,i,o)}).join(this.o.multidateSeparator)},getStartDate:function(){return this.o.startDate},setStartDate:function(t){return this._process_options({startDate:t}),this.update(),this.updateNavArrows(),this},getEndDate:function(){return this.o.endDate},setEndDate:function(t){return this._process_options({endDate:t}),this.update(),this.updateNavArrows(),this},setDaysOfWeekDisabled:function(t){return this._process_options({daysOfWeekDisabled:t}),this.update(),this},setDaysOfWeekHighlighted:function(t){return this._process_options({daysOfWeekHighlighted:t}),this.update(),this},setDatesDisabled:function(t){return this._process_options({datesDisabled:t}),this.update(),this},place:function(){if(this.isInline)return this;var e=this.picker.outerWidth(),i=this.picker.outerHeight(),o=t(this.o.container),s=o.width(),n="body"===this.o.container?t(document).scrollTop():o.scrollTop(),r=o.offset(),a=[0];this.element.parents().each(function(){var e=t(this).css("z-index");"auto"!==e&&0!==Number(e)&&a.push(Number(e))});var l=Math.max.apply(Math,a)+this.o.zIndexOffset,c=this.component?this.component.parent().offset():this.element.offset(),d=this.component?this.component.outerHeight(!0):this.element.outerHeight(!1),h=this.component?this.component.outerWidth(!0):this.element.outerWidth(!1),p=c.left-r.left,u=c.top-r.top;"body"!==this.o.container&&(u+=n),this.picker.removeClass("datepicker-orient-top datepicker-orient-bottom datepicker-orient-right datepicker-orient-left"),"auto"!==this.o.orientation.x?(this.picker.addClass("datepicker-orient-"+this.o.orientation.x),"right"===this.o.orientation.x&&(p-=e-h)):c.left<0?(this.picker.addClass("datepicker-orient-left"),p-=c.left-10):p+e>s?(this.picker.addClass("datepicker-orient-right"),p+=h-e):this.o.rtl?this.picker.addClass("datepicker-orient-right"):this.picker.addClass("datepicker-orient-left");var f,g=this.o.orientation.y;if("auto"===g&&(f=-n+u-i,g=f<0?"bottom":"top"),this.picker.addClass("datepicker-orient-"+g),"top"===g?u-=i+parseInt(this.picker.css("padding-top")):u+=d,this.o.rtl){var m=s-(p+h);this.picker.css({top:u,right:m,zIndex:l})}else this.picker.css({top:u,left:p,zIndex:l});return this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var e=this.dates.copy(),i=[],o=!1;return arguments.length?(t.each(arguments,t.proxy(function(t,e){e instanceof Date&&(e=this._local_to_utc(e)),i.push(e)},this)),o=!0):(i=this.isInput?this.element.val():this.element.data("date")||this.inputField.val(),i=i&&this.o.multidate?i.split(this.o.multidateSeparator):[i],delete this.element.data().date),i=t.map(i,t.proxy(function(t){return v.parseDate(t,this.o.format,this.o.language,this.o.assumeNearbyYear)},this)),i=t.grep(i,t.proxy(function(t){return!this.dateWithinRange(t)||!t},this),!0),this.dates.replace(i),this.o.updateViewDate&&(this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDate<this.o.startDate?this.viewDate=new Date(this.o.startDate):this.viewDate>this.o.endDate?this.viewDate=new Date(this.o.endDate):this.viewDate=this.o.defaultViewDate),o?(this.setValue(),this.element.change()):this.dates.length&&String(e)!==String(this.dates)&&o&&(this._trigger("changeDate"),this.element.change()),!this.dates.length&&e.length&&(this._trigger("clearDate"),this.element.change()),this.fill(),this},fillDow:function(){if(this.o.showWeekDays){var e=this.o.weekStart,i="<tr>";for(this.o.calendarWeeks&&(i+='<th class="cw">&#160;</th>');e<this.o.weekStart+7;)i+='<th class="dow',-1!==t.inArray(e,this.o.daysOfWeekDisabled)&&(i+=" disabled"),i+='">'+m[this.o.language].daysMin[e++%7]+"</th>";i+="</tr>",this.picker.find(".datepicker-days thead").append(i)}},fillMonths:function(){for(var t,e=this._utc_to_local(this.viewDate),i="",o=0;o<12;o++)t=e&&e.getMonth()===o?" focused":"",i+='<span class="month'+t+'">'+m[this.o.language].monthsShort[o]+"</span>";this.picker.find(".datepicker-months td").html(i)},setRange:function(e){e&&e.length?this.range=t.map(e,function(t){return t.valueOf()}):delete this.range,this.fill()},getClassNames:function(e){var i=[],n=this.viewDate.getUTCFullYear(),r=this.viewDate.getUTCMonth(),a=o();return e.getUTCFullYear()<n||e.getUTCFullYear()===n&&e.getUTCMonth()<r?i.push("old"):(e.getUTCFullYear()>n||e.getUTCFullYear()===n&&e.getUTCMonth()>r)&&i.push("new"),this.focusDate&&e.valueOf()===this.focusDate.valueOf()&&i.push("focused"),this.o.todayHighlight&&s(e,a)&&i.push("today"),-1!==this.dates.contains(e)&&i.push("active"),this.dateWithinRange(e)||i.push("disabled"),this.dateIsDisabled(e)&&i.push("disabled","disabled-date"),-1!==t.inArray(e.getUTCDay(),this.o.daysOfWeekHighlighted)&&i.push("highlighted"),this.range&&(e>this.range[0]&&e<this.range[this.range.length-1]&&i.push("range"),-1!==t.inArray(e.valueOf(),this.range)&&i.push("selected"),e.valueOf()===this.range[0]&&i.push("range-start"),e.valueOf()===this.range[this.range.length-1]&&i.push("range-end")),i},_fill_yearsView:function(i,o,s,n,r,a,l){for(var c,d,h,p="",u=s/10,f=this.picker.find(i),g=Math.floor(n/s)*s,m=g+9*u,v=Math.floor(this.viewDate.getFullYear()/u)*u,_=t.map(this.dates,function(t){return Math.floor(t.getUTCFullYear()/u)*u}),w=g-u;w<=m+u;w+=u)c=[o],d=null,w===g-u?c.push("old"):w===m+u&&c.push("new"),-1!==t.inArray(w,_)&&c.push("active"),(w<r||w>a)&&c.push("disabled"),w===v&&c.push("focused"),l!==t.noop&&((h=l(new Date(w,0,1)))===e?h={}:"boolean"==typeof h?h={enabled:h}:"string"==typeof h&&(h={classes:h}),!1===h.enabled&&c.push("disabled"),h.classes&&(c=c.concat(h.classes.split(/\s+/))),h.tooltip&&(d=h.tooltip)),p+='<span class="'+c.join(" ")+'"'+(d?' title="'+d+'"':"")+">"+w+"</span>";f.find(".datepicker-switch").text(g+"-"+m),f.find("td").html(p)},fill:function(){var s,n,r=new Date(this.viewDate),a=r.getUTCFullYear(),l=r.getUTCMonth(),c=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,d=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,h=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,p=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,u=m[this.o.language].today||m.en.today||"",f=m[this.o.language].clear||m.en.clear||"",g=m[this.o.language].titleFormat||m.en.titleFormat,_=o(),w=(!0===this.o.todayBtn||"linked"===this.o.todayBtn)&&_>=this.o.startDate&&_<=this.o.endDate&&!this.weekOfDateIsDisabled(_);if(!isNaN(a)&&!isNaN(l)){this.picker.find(".datepicker-days .datepicker-switch").text(v.formatDate(r,g,this.o.language)),this.picker.find("tfoot .today").text(u).css("display",w?"table-cell":"none"),this.picker.find("tfoot .clear").text(f).css("display",!0===this.o.clearBtn?"table-cell":"none"),this.picker.find("thead .datepicker-title").text(this.o.title).css("display","string"==typeof this.o.title&&""!==this.o.title?"table-cell":"none"),this.updateNavArrows(),this.fillMonths();var y=i(a,l,0),b=y.getUTCDate();y.setUTCDate(b-(y.getUTCDay()-this.o.weekStart+7)%7);var x=new Date(y);y.getUTCFullYear()<100&&x.setUTCFullYear(y.getUTCFullYear()),x.setUTCDate(x.getUTCDate()+42),x=x.valueOf();for(var k,S,C=[];y.valueOf()<x;){if((k=y.getUTCDay())===this.o.weekStart&&(C.push("<tr>"),this.o.calendarWeeks)){var $=new Date(+y+(this.o.weekStart-k-7)%7*864e5),T=new Date(Number($)+(11-$.getUTCDay())%7*864e5),D=new Date(Number(D=i(T.getUTCFullYear(),0,1))+(11-D.getUTCDay())%7*864e5),E=(T-D)/864e5/7+1;C.push('<td class="cw">'+E+"</td>")}(S=this.getClassNames(y)).push("day");var O=y.getUTCDate();this.o.beforeShowDay!==t.noop&&((n=this.o.beforeShowDay(this._utc_to_local(y)))===e?n={}:"boolean"==typeof n?n={enabled:n}:"string"==typeof n&&(n={classes:n}),!1===n.enabled&&S.push("disabled"),n.classes&&(S=S.concat(n.classes.split(/\s+/))),n.tooltip&&(s=n.tooltip),n.content&&(O=n.content)),S=t.isFunction(t.uniqueSort)?t.uniqueSort(S):t.unique(S),C.push('<td class="'+S.join(" ")+'"'+(s?' title="'+s+'"':"")+' data-date="'+y.getTime().toString()+'">'+O+"</td>"),s=null,k===this.o.weekEnd&&C.push("</tr>"),y.setUTCDate(y.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").html(C.join(""));var z=m[this.o.language].monthsTitle||m.en.monthsTitle||"Months",M=this.picker.find(".datepicker-months").find(".datepicker-switch").text(this.o.maxViewMode<2?z:a).end().find("tbody span").removeClass("active");if(t.each(this.dates,function(t,e){e.getUTCFullYear()===a&&M.eq(e.getUTCMonth()).addClass("active")}),(a<c||a>h)&&M.addClass("disabled"),a===c&&M.slice(0,d).addClass("disabled"),a===h&&M.slice(p+1).addClass("disabled"),this.o.beforeShowMonth!==t.noop){var A=this;t.each(M,function(i,o){var s=new Date(a,i,1),n=A.o.beforeShowMonth(s);n===e?n={}:"boolean"==typeof n?n={enabled:n}:"string"==typeof n&&(n={classes:n}),!1!==n.enabled||t(o).hasClass("disabled")||t(o).addClass("disabled"),n.classes&&t(o).addClass(n.classes),n.tooltip&&t(o).prop("title",n.tooltip)})}this._fill_yearsView(".datepicker-years","year",10,a,c,h,this.o.beforeShowYear),this._fill_yearsView(".datepicker-decades","decade",100,a,c,h,this.o.beforeShowDecade),this._fill_yearsView(".datepicker-centuries","century",1e3,a,c,h,this.o.beforeShowCentury)}},updateNavArrows:function(){if(this._allow_update){var t,e,i=new Date(this.viewDate),o=i.getUTCFullYear(),s=i.getUTCMonth(),n=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,r=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,a=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,l=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,c=1;switch(this.viewMode){case 4:c*=10;case 3:c*=10;case 2:c*=10;case 1:t=Math.floor(o/c)*c<=n,e=Math.floor(o/c)*c+c>a;break;case 0:t=o<=n&&s<=r,e=o>=a&&s>=l}this.picker.find(".prev").toggleClass("disabled",t),this.picker.find(".next").toggleClass("disabled",e)}},click:function(e){e.preventDefault(),e.stopPropagation();var s,n,r,a;(s=t(e.target)).hasClass("datepicker-switch")&&this.viewMode!==this.o.maxViewMode&&this.setViewMode(this.viewMode+1),s.hasClass("today")&&!s.hasClass("day")&&(this.setViewMode(0),this._setDate(o(),"linked"===this.o.todayBtn?null:"view")),s.hasClass("clear")&&this.clearDates(),s.hasClass("disabled")||(s.hasClass("month")||s.hasClass("year")||s.hasClass("decade")||s.hasClass("century"))&&(this.viewDate.setUTCDate(1),n=1,1===this.viewMode?(a=s.parent().find("span").index(s),r=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(a)):(a=0,r=Number(s.text()),this.viewDate.setUTCFullYear(r)),this._trigger(v.viewModes[this.viewMode-1].e,this.viewDate),this.viewMode===this.o.minViewMode?this._setDate(i(r,a,n)):(this.setViewMode(this.viewMode-1),this.fill())),this.picker.is(":visible")&&this._focused_from&&this._focused_from.focus(),delete this._focused_from},dayCellClick:function(e){var i=t(e.currentTarget).data("date"),o=new Date(i);this.o.updateViewDate&&(o.getUTCFullYear()!==this.viewDate.getUTCFullYear()&&this._trigger("changeYear",this.viewDate),o.getUTCMonth()!==this.viewDate.getUTCMonth()&&this._trigger("changeMonth",this.viewDate)),this._setDate(o)},navArrowsClick:function(e){var i=t(e.currentTarget).hasClass("prev")?-1:1;0!==this.viewMode&&(i*=12*v.viewModes[this.viewMode].navStep),this.viewDate=this.moveMonth(this.viewDate,i),this._trigger(v.viewModes[this.viewMode].e,this.viewDate),this.fill()},_toggle_multidate:function(t){var e=this.dates.contains(t);if(t||this.dates.clear(),-1!==e?(!0===this.o.multidate||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(e):!1===this.o.multidate?(this.dates.clear(),this.dates.push(t)):this.dates.push(t),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(t,e){e&&"date"!==e||this._toggle_multidate(t&&new Date(t)),(!e&&this.o.updateViewDate||"view"===e)&&(this.viewDate=t&&new Date(t)),this.fill(),this.setValue(),e&&"view"===e||this._trigger("changeDate"),this.inputField.trigger("change"),!this.o.autoclose||e&&"date"!==e||this.hide()},moveDay:function(t,e){var i=new Date(t);return i.setUTCDate(t.getUTCDate()+e),i},moveWeek:function(t,e){return this.moveDay(t,7*e)},moveMonth:function(t,e){if(!r(t))return this.o.defaultViewDate;if(!e)return t;var i,o,s=new Date(t.valueOf()),n=s.getUTCDate(),a=s.getUTCMonth(),l=Math.abs(e);if(e=e>0?1:-1,1===l)o=-1===e?function(){return s.getUTCMonth()===a}:function(){return s.getUTCMonth()!==i},i=a+e,s.setUTCMonth(i),i=(i+12)%12;else{for(var c=0;c<l;c++)s=this.moveMonth(s,e);i=s.getUTCMonth(),s.setUTCDate(n),o=function(){return i!==s.getUTCMonth()}}for(;o();)s.setUTCDate(--n),s.setUTCMonth(i);return s},moveYear:function(t,e){return this.moveMonth(t,12*e)},moveAvailableDate:function(t,e,i){do{if(t=this[i](t,e),!this.dateWithinRange(t))return!1;i="moveDay"}while(this.dateIsDisabled(t));return t},weekOfDateIsDisabled:function(e){return-1!==t.inArray(e.getUTCDay(),this.o.daysOfWeekDisabled)},dateIsDisabled:function(e){return this.weekOfDateIsDisabled(e)||t.grep(this.o.datesDisabled,function(t){return s(e,t)}).length>0},dateWithinRange:function(t){return t>=this.o.startDate&&t<=this.o.endDate},keydown:function(t){if(this.picker.is(":visible")){var e,i,o=!1,s=this.focusDate||this.viewDate;switch(t.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),t.preventDefault(),t.stopPropagation();break;case 37:case 38:case 39:case 40:if(!this.o.keyboardNavigation||7===this.o.daysOfWeekDisabled.length)break;e=37===t.keyCode||38===t.keyCode?-1:1,0===this.viewMode?t.ctrlKey?(i=this.moveAvailableDate(s,e,"moveYear"))&&this._trigger("changeYear",this.viewDate):t.shiftKey?(i=this.moveAvailableDate(s,e,"moveMonth"))&&this._trigger("changeMonth",this.viewDate):37===t.keyCode||39===t.keyCode?i=this.moveAvailableDate(s,e,"moveDay"):this.weekOfDateIsDisabled(s)||(i=this.moveAvailableDate(s,e,"moveWeek")):1===this.viewMode?(38!==t.keyCode&&40!==t.keyCode||(e*=4),i=this.moveAvailableDate(s,e,"moveMonth")):2===this.viewMode&&(38!==t.keyCode&&40!==t.keyCode||(e*=4),i=this.moveAvailableDate(s,e,"moveYear")),i&&(this.focusDate=this.viewDate=i,this.setValue(),this.fill(),t.preventDefault());break;case 13:if(!this.o.forceParse)break;s=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(s),o=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(t.preventDefault(),t.stopPropagation(),this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}o&&(this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.inputField.trigger("change"))}else 40!==t.keyCode&&27!==t.keyCode||(this.show(),t.stopPropagation())},setViewMode:function(t){this.viewMode=t,this.picker.children("div").hide().filter(".datepicker-"+v.viewModes[this.viewMode].clsName).show(),this.updateNavArrows(),this._trigger("changeViewMode",new Date(this.viewDate))}};var h=function(e,i){t.data(e,"datepicker",this),this.element=t(e),this.inputs=t.map(i.inputs,function(t){return t.jquery?t[0]:t}),delete i.inputs,this.keepEmptyValues=i.keepEmptyValues,delete i.keepEmptyValues,u.call(t(this.inputs),i).on("changeDate",t.proxy(this.dateUpdated,this)),this.pickers=t.map(this.inputs,function(e){return t.data(e,"datepicker")}),this.updateDates()};h.prototype={updateDates:function(){this.dates=t.map(this.pickers,function(t){return t.getUTCDate()}),this.updateRanges()},updateRanges:function(){var e=t.map(this.dates,function(t){return t.valueOf()});t.each(this.pickers,function(t,i){i.setRange(e)})},clearDates:function(){t.each(this.pickers,function(t,e){e.clearDates()})},dateUpdated:function(i){if(!this.updating){this.updating=!0;var o=t.data(i.target,"datepicker");if(o!==e){var s=o.getUTCDate(),n=this.keepEmptyValues,r=t.inArray(i.target,this.inputs),a=r-1,l=r+1,c=this.inputs.length;if(-1!==r){if(t.each(this.pickers,function(t,e){e.getUTCDate()||e!==o&&n||e.setUTCDate(s)}),s<this.dates[a])for(;a>=0&&s<this.dates[a];)this.pickers[a--].setUTCDate(s);else if(s>this.dates[l])for(;l<c&&s>this.dates[l];)this.pickers[l++].setUTCDate(s);this.updateDates(),delete this.updating}}}},destroy:function(){t.map(this.pickers,function(t){t.destroy()}),t(this.inputs).off("changeDate",this.dateUpdated),delete this.element.data().datepicker},remove:n("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead")};var p=t.fn.datepicker,u=function(i){var o=Array.apply(null,arguments);o.shift();var s;if(this.each(function(){var e=t(this),n=e.data("datepicker"),r="object"==typeof i&&i;if(!n){var c=a(this,"date"),p=l(t.extend({},f,c,r).language),u=t.extend({},f,p,c,r);e.hasClass("input-daterange")||u.inputs?(t.extend(u,{inputs:u.inputs||e.find("input").toArray()}),n=new h(this,u)):n=new d(this,u),e.data("datepicker",n)}"string"==typeof i&&"function"==typeof n[i]&&(s=n[i].apply(n,o))}),s===e||s instanceof d||s instanceof h)return this;if(this.length>1)throw new Error("Using only allowed for the collection of a single element ("+i+" function)");return s};t.fn.datepicker=u;var f=t.fn.datepicker.defaults={assumeNearbyYear:!1,autoclose:!1,beforeShowDay:t.noop,beforeShowMonth:t.noop,beforeShowYear:t.noop,beforeShowDecade:t.noop,beforeShowCentury:t.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],daysOfWeekHighlighted:[],datesDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",keepEmptyValues:!1,keyboardNavigation:!0,language:"en",minViewMode:0,maxViewMode:4,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-1/0,startView:0,todayBtn:!1,todayHighlight:!1,updateViewDate:!0,weekStart:0,disableTouchKeyboard:!1,enableOnReadonly:!0,showOnFocus:!0,zIndexOffset:10,container:"body",immediateUpdates:!1,title:"",templates:{leftArrow:"&#x00AB;",rightArrow:"&#x00BB;"},showWeekDays:!0},g=t.fn.datepicker.locale_opts=["format","rtl","weekStart"];t.fn.datepicker.Constructor=d;var m=t.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1ay","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM yyyy"}},v={viewModes:[{names:["days","month"],clsName:"days",e:"changeMonth"},{names:["months","year"],clsName:"months",e:"changeYear",navStep:1},{names:["years","decade"],clsName:"years",e:"changeDecade",navStep:10},{names:["decades","century"],clsName:"decades",e:"changeCentury",navStep:100},{names:["centuries","millennium"],clsName:"centuries",e:"changeMillennium",navStep:1e3}],validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\u5e74\u6708\u65e5\[-`{-~\t\n\r]+/g,parseFormat:function(t){if("function"==typeof t.toValue&&"function"==typeof t.toDisplay)return t;var e=t.replace(this.validParts,"\0").split("\0"),i=t.match(this.validParts);if(!e||!e.length||!i||0===i.length)throw new Error("Invalid date format.");return{separators:e,parts:i}},parseDate:function(i,s,n,r){function a(t,e){return!0===e&&(e=10),t<100&&(t+=2e3)>(new Date).getFullYear()+e&&(t-=100),t}function l(){var t=this.slice(0,c[u].length),e=c[u].slice(0,t.length);return t.toLowerCase()===e.toLowerCase()}if(!i)return e;if(i instanceof Date)return i;if("string"==typeof s&&(s=v.parseFormat(s)),s.toValue)return s.toValue(i,s,n);var c,h,p,u,f,g={d:"moveDay",m:"moveMonth",w:"moveWeek",y:"moveYear"},_={yesterday:"-1d",today:"+0d",tomorrow:"+1d"};if(i in _&&(i=_[i]),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/i.test(i)){for(c=i.match(/([\-+]\d+)([dmwy])/gi),i=new Date,u=0;u<c.length;u++)h=c[u].match(/([\-+]\d+)([dmwy])/i),p=Number(h[1]),f=g[h[2].toLowerCase()],i=d.prototype[f](i,p);return d.prototype._zero_utc_time(i)}c=i&&i.match(this.nonpunctuation)||[];var w,y,b={},x=["yyyy","yy","M","MM","m","mm","d","dd"],k={yyyy:function(t,e){return t.setUTCFullYear(r?a(e,r):e)},m:function(t,e){if(isNaN(t))return t;for(e-=1;e<0;)e+=12;for(e%=12,t.setUTCMonth(e);t.getUTCMonth()!==e;)t.setUTCDate(t.getUTCDate()-1);return t},d:function(t,e){return t.setUTCDate(e)}};k.yy=k.yyyy,k.M=k.MM=k.mm=k.m,k.dd=k.d,i=o();var S=s.parts.slice();if(c.length!==S.length&&(S=t(S).filter(function(e,i){return-1!==t.inArray(i,x)}).toArray()),c.length===S.length){var C;for(u=0,C=S.length;u<C;u++){if(w=parseInt(c[u],10),h=S[u],isNaN(w))switch(h){case"MM":y=t(m[n].months).filter(l),w=t.inArray(y[0],m[n].months)+1;break;case"M":y=t(m[n].monthsShort).filter(l),w=t.inArray(y[0],m[n].monthsShort)+1}b[h]=w}var $,T;for(u=0;u<x.length;u++)(T=x[u])in b&&!isNaN(b[T])&&($=new Date(i),k[T]($,b[T]),isNaN($)||(i=$))}return i},formatDate:function(e,i,o){if(!e)return"";if("string"==typeof i&&(i=v.parseFormat(i)),i.toDisplay)return i.toDisplay(e,i,o);var s={d:e.getUTCDate(),D:m[o].daysShort[e.getUTCDay()],DD:m[o].days[e.getUTCDay()],m:e.getUTCMonth()+1,M:m[o].monthsShort[e.getUTCMonth()],MM:m[o].months[e.getUTCMonth()],yy:e.getUTCFullYear().toString().substring(2),yyyy:e.getUTCFullYear()};s.dd=(s.d<10?"0":"")+s.d,s.mm=(s.m<10?"0":"")+s.m,e=[];for(var n=t.extend([],i.separators),r=0,a=i.parts.length;r<=a;r++)n.length&&e.push(n.shift()),e.push(s[i.parts[r]]);return e.join("")},headTemplate:'<thead><tr><th colspan="7" class="datepicker-title"></th></tr><tr><th class="prev">'+f.templates.leftArrow+'</th><th colspan="5" class="datepicker-switch"></th><th class="next">'+f.templates.rightArrow+"</th></tr></thead>",contTemplate:'<tbody><tr><td colspan="7"></td></tr></tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"></th></tr><tr><th colspan="7" class="clear"></th></tr></tfoot>'};v.template='<div class="datepicker"><div class="datepicker-days"><table class="table-condensed">'+v.headTemplate+"<tbody></tbody>"+v.footTemplate+'</table></div><div class="datepicker-months"><table class="table-condensed">'+v.headTemplate+v.contTemplate+v.footTemplate+'</table></div><div class="datepicker-years"><table class="table-condensed">'+v.headTemplate+v.contTemplate+v.footTemplate+'</table></div><div class="datepicker-decades"><table class="table-condensed">'+v.headTemplate+v.contTemplate+v.footTemplate+'</table></div><div class="datepicker-centuries"><table class="table-condensed">'+v.headTemplate+v.contTemplate+v.footTemplate+"</table></div></div>",t.fn.datepicker.DPGlobal=v,t.fn.datepicker.noConflict=function(){return t.fn.datepicker=p,this},t.fn.datepicker.version="1.9.0",t.fn.datepicker.deprecated=function(t){var e=window.console;e&&e.warn&&e.warn("DEPRECATED: "+t)},t(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(e){var i=t(this);i.data("datepicker")||(e.preventDefault(),u.call(i,"show"))}),t(function(){u.call(t('[data-provide="datepicker-inline"]'))})}),function(t){"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,document,window,navigator)}):"object"==typeof exports?t(require("jquery"),document,window,navigator):t(jQuery,document,window,navigator)}
1(function(t,e,i,o,s){"use strict";var n=0,r=function(){var e,i=o.userAgent,s=/msie\s\d+/i;return i.search(s)>0&&(e=s.exec(i).toString(),(e=e.split(" ")[1])<9)&&(t("html").addClass("lt-ie9"),!0)}();Function.prototype.bind||(Function.prototype.bind=function(t){var e=this,i=[].slice;if("function"!=typeof e)throw new TypeError;var o=i.call(arguments,1),s=function(){if(this instanceof s){var n=function(){};n.prototype=e.prototype;var r=new n,a=e.apply(r,o.concat(i.call(arguments)));return Object(a)===a?a:r}return e.apply(t,o.concat(i.call(arguments)))};return s}),Array.prototype.indexOf||(Array.prototype.indexOf=function(t,e){var i;if(null==this)throw new TypeError('"this" is null or not defined');var o=Object(this),s=o.length>>>0;if(0===s)return-1;var n=+e||0;if(Math.abs(n)===1/0&&(n=0),n>=s)return-1;for(i=Math.max(n>=0?n:s-Math.abs(n),0);i<s;){if(i in o&&o[i]===t)return i;i++}return-1});var a=function(o,n,r){this.VERSION="2.2.0",this.input=o,this.plugin_count=r,this.current_plugin=0,this.calc_count=0,this.update_tm=0,this.old_from=0,this.old_to=0,this.old_min_interval=null,this.raf_id=null,this.dragging=!1,this.force_redraw=!1,this.no_diapason=!1,this.has_tab_index=!0,this.is_key=!1,this.is_update=!1,this.is_start=!0,this.is_finish=!1,this.is_active=!1,this.is_resize=!1,this.is_click=!1,n=n||{},this.$cache={win:t(i),body:t(e.body),input:t(o),cont:null,rs:null,min:null,max:null,from:null,to:null,single:null,bar:null,line:null,s_single:null,s_from:null,s_to:null,shad_single:null,shad_from:null,shad_to:null,edge:null,grid:null,grid_labels:[]},this.coords={x_gap:0,x_pointer:0,w_rs:0,w_rs_old:0,w_handle:0,p_gap:0,p_gap_left:0,p_gap_right:0,p_step:0,p_pointer:0,p_handle:0,p_single_fake:0,p_single_real:0,p_from_fake:0,p_from_real:0,p_to_fake:0,p_to_real:0,p_bar_x:0,p_bar_w:0,grid_gap:0,big_num:0,big:[],big_w:[],big_p:[],big_x:[]},this.labels={w_min:0,w_max:0,w_from:0,w_to:0,w_single:0,p_min:0,p_max:0,p_from_fake:0,p_from_left:0,p_to_fake:0,p_to_left:0,p_single_fake:0,p_single_left:0};var a,l,c,d=this.$cache.input,h=d.prop("value");a={type:"single",min:10,max:100,from:null,to:null,step:1,min_interval:0,max_interval:0,drag_interval:!1,values:[],p_values:[],from_fixed:!1,from_min:null,from_max:null,from_shadow:!1,to_fixed:!1,to_min:null,to_max:null,to_shadow:!1,prettify_enabled:!0,prettify_separator:" ",prettify:null,force_edges:!1,keyboard:!0,grid:!1,grid_margin:!0,grid_num:4,grid_snap:!1,hide_min_max:!1,hide_from_to:!1,prefix:"",postfix:"",max_postfix:"",decorate_both:!0,values_separator:" — ",input_values_separator:";",disable:!1,block:!1,extra_classes:"",scope:null,onStart:null,onChange:null,onFinish:null,onUpdate:null},"INPUT"!==d[0].nodeName&&console&&console.warn&&console.warn("Base element should be <input>!",d[0]),(l={type:d.data("type"),min:d.data("min"),max:d.data("max"),from:d.data("from"),to:d.data("to"),step:d.data("step"),min_interval:d.data("minInterval"),max_interval:d.data("maxInterval"),drag_interval:d.data("dragInterval"),values:d.data("values"),from_fixed:d.data("fromFixed"),from_min:d.data("fromMin"),from_max:d.data("fromMax"),from_shadow:d.data("fromShadow"),to_fixed:d.data("toFixed"),to_min:d.data("toMin"),to_max:d.data("toMax"),to_shadow:d.data("toShadow"),prettify_enabled:d.data("prettifyEnabled"),prettify_separator:d.data("prettifySeparator"),force_edges:d.data("forceEdges"),keyboard:d.data("keyboard"),grid:d.data("grid"),grid_margin:d.data("gridMargin"),grid_num:d.data("gridNum"),grid_snap:d.data("gridSnap"),hide_min_max:d.data("hideMinMax"),hide_from_to:d.data("hideFromTo"),prefix:d.data("prefix"),postfix:d.data("postfix"),max_postfix:d.data("maxPostfix"),decorate_both:d.data("decorateBoth"),values_separator:d.data("valuesSeparator"),input_values_separator:d.data("inputValuesSeparator"),disable:d.data("disable"),block:d.data("block"),extra_classes:d.data("extraClasses")}).values=l.values&&l.values.split(",");for(c in l)l.hasOwnProperty(c)&&(l[c]!==s&&""!==l[c]||delete l[c]);h!==s&&""!==h&&((h=h.split(l.input_values_separator||n.input_values_separator||";"))[0]&&h[0]==+h[0]&&(h[0]=+h[0]),h[1]&&h[1]==+h[1]&&(h[1]=+h[1]),n&&n.values&&n.values.length?(a.from=h[0]&&n.values.indexOf(h[0]),a.to=h[1]&&n.values.indexOf(h[1])):(a.from=h[0]&&+h[0],a.to=h[1]&&+h[1])),t.extend(a,n),t.extend(a,l),this.options=a,this.update_check={},this.validate(),this.result={input:this.$cache.input,slider:null,min:this.options.min,max:this.options.max,from:this.options.from,from_percent:0,from_value:null,to:this.options.to,to_percent:0,to_value:null},this.init()};a.prototype={init:function(t){this.no_diapason=!1,this.coords.p_step=this.convertToPercent(this.options.step,!0),this.target="base",this.toggleInput(),this.append(),this.setMinMax(),t?(this.force_redraw=!0,this.calc(!0),this.callOnUpdate()):(this.force_redraw=!0,this.calc(!0),this.callOnStart()),this.updateScene()},append:function(){var t='<span class="irs js-irs-'+this.plugin_count+" "+this.options.extra_classes+'"></span>';this.$cache.input.before(t),this.$cache.input.prop("readonly",!0),this.$cache.cont=this.$cache.input.prev(),this.result.slider=this.$cache.cont,this.$cache.cont.html('<span class="irs"><span class="irs-line" tabindex="0"><span class="irs-line-left"></span><span class="irs-line-mid"></span><span class="irs-line-right"></span></span><span class="irs-min">0</span><span class="irs-max">1</span><span class="irs-from">0</span><span class="irs-to">0</span><span class="irs-single">0</span></span><span class="irs-grid"></span><span class="irs-bar"></span>
1'),this.$cache.rs=this.$cache.cont.find(".irs"),this.$cache.min=this.$cache.cont.find(".irs-min"),this.$cache.max=this.$cache.cont.find(".irs-max"),this.$cache.from=this.$cache.cont.find(".irs-from"),this.$cache.to=this.$cache.cont.find(".irs-to"),this.$cache.single=this.$cache.cont.find(".irs-single"),this.$cache.bar=this.$cache.cont.find(".irs-bar"),this.$cache.line=this.$cache.cont.find(".irs-line"),this.$cache.grid=this.$cache.cont.find(".irs-grid"),"single"===this.options.type?(this.$cache.cont.append('<span class="irs-bar-edge"></span><span class="irs-shadow shadow-single"></span><span class="irs-slider single"></span>'),this.$cache.edge=this.$cache.cont.find(".irs-bar-edge"),this.$cache.s_single=this.$cache.cont.find(".single"),this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.shad_single=this.$cache.cont.find(".shadow-single")):(this.$cache.cont.append('<span class="irs-shadow shadow-from"></span><span class="irs-shadow shadow-to"></span><span class="irs-slider from"></span><span class="irs-slider to"></span>'),this.$cache.s_from=this.$cache.cont.find(".from"),this.$cache.s_to=this.$cache.cont.find(".to"),this.$cache.shad_from=this.$cache.cont.find(".shadow-from"),this.$cache.shad_to=this.$cache.cont.find(".shadow-to"),this.setTopHandler()),this.options.hide_from_to&&(this.$cache.from[0].style.display="none",this.$cache.to[0].style.display="none",this.$cache.single[0].style.display="none"),this.appendGrid(),this.options.disable?(this.appendDisableMask(),this.$cache.input[0].disabled=!0):(this.$cache.input[0].disabled=!1,this.removeDisableMask(),this.bindEvents()),this.options.disable||(this.options.block?this.appendDisableMask():this.removeDisableMask()),this.options.drag_interval&&(this.$cache.bar[0].style.cursor="ew-resize")},setTopHandler:function(){var t=this.options.min,e=this.options.max,i=this.options.from,o=this.options.to;i>t&&o===e?this.$cache.s_from.addClass("type_last"):o<e&&this.$cache.s_to.addClass("type_last")},changeLevel:function(t){switch(t){case"single":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_single_fake),this.$cache.s_single.addClass("state_hover");break;case"from":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_from_fake),this.$cache.s_from.addClass("state_hover"),this.$cache.s_from.addClass("type_last"),this.$cache.s_to.removeClass("type_last");break;case"to":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_to_fake),this.$cache.s_to.addClass("state_hover"),this.$cache.s_to.addClass("type_last"),this.$cache.s_from.removeClass("type_last");break;case"both":this.coords.p_gap_left=this.toFixed(this.coords.p_pointer-this.coords.p_from_fake),this.coords.p_gap_right=this.toFixed(this.coords.p_to_fake-this.coords.p_pointer),this.$cache.s_to.removeClass("type_last"),this.$cache.s_from.removeClass("type_last")}},appendDisableMask:function(){this.$cache.cont.append('<span class="irs-disable-mask"></span>'),this.$cache.cont.addClass("irs-disabled")},removeDisableMask:function(){this.$cache.cont.remove(".irs-disable-mask"),this.$cache.cont.removeClass("irs-disabled")},remove:function(){this.$cache.cont.remove(),this.$cache.cont=null,this.$cache.line.off("keydown.irs_"+this.plugin_count),this.$cache.body.off("touchmove.irs_"+this.plugin_count),this.$cache.body.off("mousemove.irs_"+this.plugin_count),this.$cache.win.off("touchend.irs_"+this.plugin_count),this.$cache.win.off("mouseup.irs_"+this.plugin_count),r&&(this.$cache.body.off("mouseup.irs_"+this.plugin_count),this.$cache.body.off("mouseleave.irs_"+this.plugin_count)),this.$cache.grid_labels=[],this.coords.big=[],this.coords.big_w=[],this.coords.big_p=[],this.coords.big_x=[],cancelAnimationFrame(this.raf_id)},bindEvents:function(){this.no_diapason||(this.$cache.body.on("touchmove.irs_"+this.plugin_count,this.pointerMove.bind(this)),this.$cache.body.on("mousemove.irs_"+this.plugin_count,this.pointerMove.bind(this)),this.$cache.win.on("touchend.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.win.on("mouseup.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.line.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.line.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.line.on("focus.irs_"+this.plugin_count,this.pointerFocus.bind(this)),this.options.drag_interval&&"double"===this.options.type?(this.$cache.bar.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"both")),this.$cache.bar.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"both"))):(this.$cache.bar.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.bar.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))),"single"===this.options.type?(this.$cache.single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.s_single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.shad_single.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.s_single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.edge.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_single.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))):(this.$cache.single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,null)),this.$cache.single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,null)),this.$cache.from.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.s_from.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.to.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.s_to.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.shad_from.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_to.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.from.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.s_from.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.to.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.s_to.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.shad_from.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_to.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))),this.options.keyboard&&this.$cache.line.on("key
1down.irs_"+this.plugin_count,this.key.bind(this,"keyboard")),r&&(this.$cache.body.on("mouseup.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.body.on("mouseleave.irs_"+this.plugin_count,this.pointerUp.bind(this))))},pointerFocus:function(t){if(!this.target){var e,i;e=(i="single"===this.options.type?this.$cache.single:this.$cache.from).offset().left,e+=i.width()/2-1,this.pointerClick("single",{preventDefault:function(){},pageX:e})}},pointerMove:function(t){if(this.dragging){var e=t.pageX||t.originalEvent.touches&&t.originalEvent.touches[0].pageX;this.coords.x_pointer=e-this.coords.x_gap,this.calc()}},pointerUp:function(e){this.current_plugin===this.plugin_count&&this.is_active&&(this.is_active=!1,this.$cache.cont.find(".state_hover").removeClass("state_hover"),this.force_redraw=!0,r&&t("*").prop("unselectable",!1),this.updateScene(),this.restoreOriginalMinInterval(),(t.contains(this.$cache.cont[0],e.target)||this.dragging)&&this.callOnFinish(),this.dragging=!1)},pointerDown:function(e,i){i.preventDefault();var o=i.pageX||i.originalEvent.touches&&i.originalEvent.touches[0].pageX;2!==i.button&&("both"===e&&this.setTempMinInterval(),e||(e=this.target||"from"),this.current_plugin=this.plugin_count,this.target=e,this.is_active=!0,this.dragging=!0,this.coords.x_gap=this.$cache.rs.offset().left,this.coords.x_pointer=o-this.coords.x_gap,this.calcPointerPercent(),this.changeLevel(e),r&&t("*").prop("unselectable",!0),this.$cache.line.trigger("focus"),this.updateScene())},pointerClick:function(t,e){e.preventDefault();var i=e.pageX||e.originalEvent.touches&&e.originalEvent.touches[0].pageX;2!==e.button&&(this.current_plugin=this.plugin_count,this.target=t,this.is_click=!0,this.coords.x_gap=this.$cache.rs.offset().left,this.coords.x_pointer=+(i-this.coords.x_gap).toFixed(),this.force_redraw=!0,this.calc(),this.$cache.line.trigger("focus"))},key:function(t,e){if(!(this.current_plugin!==this.plugin_count||e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)){switch(e.which){case 83:case 65:case 40:case 37:e.preventDefault(),this.moveByKey(!1);break;case 87:case 68:case 38:case 39:e.preventDefault(),this.moveByKey(!0)}return!0}},moveByKey:function(t){var e=this.coords.p_pointer,i=(this.options.max-this.options.min)/100;i=this.options.step/i,t?e+=i:e-=i,this.coords.x_pointer=this.toFixed(this.coords.w_rs/100*e),this.is_key=!0,this.calc()},setMinMax:function(){if(this.options){if(this.options.hide_min_max)return this.$cache.min[0].style.display="none",void(this.$cache.max[0].style.display="none");if(this.options.values.length)this.$cache.min.html(this.decorate(this.options.p_values[this.options.min])),this.$cache.max.html(this.decorate(this.options.p_values[this.options.max]));else{var t=this._prettify(this.options.min),e=this._prettify(this.options.max);this.result.min_pretty=t,this.result.max_pretty=e,this.$cache.min.html(this.decorate(t,this.options.min)),this.$cache.max.html(this.decorate(e,this.options.max))}this.labels.w_min=this.$cache.min.outerWidth(!1),this.labels.w_max=this.$cache.max.outerWidth(!1)}},setTempMinInterval:function(){var t=this.result.to-this.result.from;null===this.old_min_interval&&(this.old_min_interval=this.options.min_interval),this.options.min_interval=t},restoreOriginalMinInterval:function(){null!==this.old_min_interval&&(this.options.min_interval=this.old_min_interval,this.old_min_interval=null)},calc:function(t){if(this.options&&((10===++this.calc_count||t)&&(this.calc_count=0,this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.calcHandlePercent()),this.coords.w_rs)){this.calcPointerPercent();var e=this.getHandleX();switch("both"===this.target&&(this.coords.p_gap=0,e=this.getHandleX()),"click"===this.target&&(this.coords.p_gap=this.coords.p_handle/2,e=this.getHandleX(),this.options.drag_interval?this.target="both_one":this.target=this.chooseHandle(e)),this.target){case"base":var i=(this.options.max-this.options.min)/100,o=(this.result.from-this.options.min)/i,s=(this.result.to-this.options.min)/i;this.coords.p_single_real=this.toFixed(o),this.coords.p_from_real=this.toFixed(o),this.coords.p_to_real=this.toFixed(s),this.coords.p_single_real=this.checkDiapason(this.coords.p_single_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_single_fake=this.convertToFakePercent(this.coords.p_single_real),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real),this.target=null;break;case"single":if(this.options.from_fixed)break;this.coords.p_single_real=this.convertToRealPercent(e),this.coords.p_single_real=this.calcWithStep(this.coords.p_single_real),this.coords.p_single_real=this.checkDiapason(this.coords.p_single_real,this.options.from_min,this.options.from_max),this.coords.p_single_fake=this.convertToFakePercent(this.coords.p_single_real);break;case"from":if(this.options.from_fixed)break;this.coords.p_from_real=this.convertToRealPercent(e),this.coords.p_from_real=this.calcWithStep(this.coords.p_from_real),this.coords.p_from_real>this.coords.p_to_real&&(this.coords.p_from_real=this.coords.p_to_real),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkMinInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),this.coords.p_from_real=this.checkMaxInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real);break;case"to":if(this.options.to_fixed)break;this.coords.p_to_real=this.convertToRealPercent(e),this.coords.p_to_real=this.calcWithStep(this.coords.p_to_real),this.coords.p_to_real<this.coords.p_from_real&&(this.coords.p_to_real=this.coords.p_from_real),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_to_real=this.checkMinInterval(this.coords.p_to_real,this.coords.p_from_real,"to"),this.coords.p_to_real=this.checkMaxInterval(this.coords.p_to_real,this.coords.p_from_real,"to"),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real);break;case"both":if(this.options.from_fixed||this.options.to_fixed)break;e=this.toFixed(e+.001*this.coords.p_handle),this.coords.p_from_real=this.convertToRealPercent(e)-this.coords.p_gap_left,this.coords.p_from_real=this.calcWithStep(this.coords.p_from_real),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkMinInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real),this.coords.p_to_real=this.convertToRealPercent(e)+this.coords.p_gap_right,this.coords.p_to_real=this.calcWithStep(this.coords.p_to_real),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_to_real=this.checkMinInterval(this.coords.p_to_real,this.coords.p_from_real,"to"),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real);break;case"both_one":if(this.options.from_fixed||this.options.to_fixed)break;var n=this.convertToRealPercent(e),r=this.result.from_percent,a=this.result.to_percent-r,l=a/2,c=n-l,d=n+l;c<0&&(d=(c=0)+a),d>100&&(c=(d=100)-a),this.coords.p_from_real=this.calcWithStep(c),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real),this.coords.p_to_real=this.calcWithStep(d),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real)}"single"===this.options.type?(this.coords.p_bar_x=this.coords.p_handle/2,this.coords.p_bar_w=this.coords.p_single_fake,this.result.from_percent=this.coords.p_single_real,this.result.from=this.convertToValue(this.coords.p_single_real),this.result.from_pretty=this._prettify(this.result.from),this.options.values.length&&(this.result.from_value=this.options.values[this.result.from])):(this.coords.p_bar_x=this.toFixed(this.coords.p_from_fake+this.coords.p_handle/2),this.coords.p_bar_w=this.toFixed(this.coords.p_to_fake-this.coords.p_from_fake),this.result.from_percent=this.coords.p_from_real,this.result.from=this.convertToValue(this.coords.p_from_real),this.result.from_pretty=this._prettify(this.result.from),this.result.to_percent=this.coords.p_to_real,this.result.to=this.convertToValue(this.coords.p_to_real),this.result.to_pretty=this._prettify(this.result.to),this.options.values.length&&(this.result.from_value=this.options.values[this.result.from],this.result.to_value=this.options.values[this.result.to])),this.calcMinMax(),this.calcLabels()}}
1,calcPointerPercent:function(){this.coords.w_rs?(this.coords.x_pointer<0||isNaN(this.coords.x_pointer)?this.coords.x_pointer=0:this.coords.x_pointer>this.coords.w_rs&&(this.coords.x_pointer=this.coords.w_rs),this.coords.p_pointer=this.toFixed(this.coords.x_pointer/this.coords.w_rs*100)):this.coords.p_pointer=0},convertToRealPercent:function(t){return t/(100-this.coords.p_handle)*100},convertToFakePercent:function(t){return t/100*(100-this.coords.p_handle)},getHandleX:function(){var t=100-this.coords.p_handle,e=this.toFixed(this.coords.p_pointer-this.coords.p_gap);return e<0?e=0:e>t&&(e=t),e},calcHandlePercent:function(){"single"===this.options.type?this.coords.w_handle=this.$cache.s_single.outerWidth(!1):this.coords.w_handle=this.$cache.s_from.outerWidth(!1),this.coords.p_handle=this.toFixed(this.coords.w_handle/this.coords.w_rs*100)},chooseHandle:function(t){return"single"===this.options.type?"single":t>=this.coords.p_from_real+(this.coords.p_to_real-this.coords.p_from_real)/2?this.options.to_fixed?"from":"to":this.options.from_fixed?"to":"from"},calcMinMax:function(){this.coords.w_rs&&(this.labels.p_min=this.labels.w_min/this.coords.w_rs*100,this.labels.p_max=this.labels.w_max/this.coords.w_rs*100)},calcLabels:function(){this.coords.w_rs&&!this.options.hide_from_to&&("single"===this.options.type?(this.labels.w_single=this.$cache.single.outerWidth(!1),this.labels.p_single_fake=this.labels.w_single/this.coords.w_rs*100,this.labels.p_single_left=this.coords.p_single_fake+this.coords.p_handle/2-this.labels.p_single_fake/2,this.labels.p_single_left=this.checkEdges(this.labels.p_single_left,this.labels.p_single_fake)):(this.labels.w_from=this.$cache.from.outerWidth(!1),this.labels.p_from_fake=this.labels.w_from/this.coords.w_rs*100,this.labels.p_from_left=this.coords.p_from_fake+this.coords.p_handle/2-this.labels.p_from_fake/2,this.labels.p_from_left=this.toFixed(this.labels.p_from_left),this.labels.p_from_left=this.checkEdges(this.labels.p_from_left,this.labels.p_from_fake),this.labels.w_to=this.$cache.to.outerWidth(!1),this.labels.p_to_fake=this.labels.w_to/this.coords.w_rs*100,this.labels.p_to_left=this.coords.p_to_fake+this.coords.p_handle/2-this.labels.p_to_fake/2,this.labels.p_to_left=this.toFixed(this.labels.p_to_left),this.labels.p_to_left=this.checkEdges(this.labels.p_to_left,this.labels.p_to_fake),this.labels.w_single=this.$cache.single.outerWidth(!1),this.labels.p_single_fake=this.labels.w_single/this.coords.w_rs*100,this.labels.p_single_left=(this.labels.p_from_left+this.labels.p_to_left+this.labels.p_to_fake)/2-this.labels.p_single_fake/2,this.labels.p_single_left=this.toFixed(this.labels.p_single_left),this.labels.p_single_left=this.checkEdges(this.labels.p_single_left,this.labels.p_single_fake)))},updateScene:function(){this.raf_id&&(cancelAnimationFrame(this.raf_id),this.raf_id=null),clearTimeout(this.update_tm),this.update_tm=null,this.options&&(this.drawHandles(),this.is_active?this.raf_id=requestAnimationFrame(this.updateScene.bind(this)):this.update_tm=setTimeout(this.updateScene.bind(this),300))},drawHandles:function(){this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.coords.w_rs&&(this.coords.w_rs!==this.coords.w_rs_old&&(this.target="base",this.is_resize=!0),(this.coords.w_rs!==this.coords.w_rs_old||this.force_redraw)&&(this.setMinMax(),this.calc(!0),this.drawLabels(),this.options.grid&&(this.calcGridMargin(),this.calcGridLabels()),this.force_redraw=!0,this.coords.w_rs_old=this.coords.w_rs,this.drawShadow()),this.coords.w_rs&&(this.dragging||this.force_redraw||this.is_key)&&((this.old_from!==this.result.from||this.old_to!==this.result.to||this.force_redraw||this.is_key)&&(this.drawLabels(),this.$cache.bar[0].style.left=this.coords.p_bar_x+"%",this.$cache.bar[0].style.width=this.coords.p_bar_w+"%","single"===this.options.type?(this.$cache.s_single[0].style.left=this.coords.p_single_fake+"%",this.$cache.single[0].style.left=this.labels.p_single_left+"%"):(this.$cache.s_from[0].style.left=this.coords.p_from_fake+"%",this.$cache.s_to[0].style.left=this.coords.p_to_fake+"%",(this.old_from!==this.result.from||this.force_redraw)&&(this.$cache.from[0].style.left=this.labels.p_from_left+"%"),(this.old_to!==this.result.to||this.force_redraw)&&(this.$cache.to[0].style.left=this.labels.p_to_left+"%"),this.$cache.single[0].style.left=this.labels.p_single_left+"%"),this.writeToInput(),this.old_from===this.result.from&&this.old_to===this.result.to||this.is_start||(this.$cache.input.trigger("change"),this.$cache.input.trigger("input")),this.old_from=this.result.from,this.old_to=this.result.to,this.is_resize||this.is_update||this.is_start||this.is_finish||this.callOnChange(),(this.is_key||this.is_click)&&(this.is_key=!1,this.is_click=!1,this.callOnFinish()),this.is_update=!1,this.is_resize=!1,this.is_finish=!1),this.is_start=!1,this.is_key=!1,this.is_click=!1,this.force_redraw=!1))},drawLabels:function(){if(this.options){var t,e,i,o,s,n=this.options.values.length,r=this.options.p_values;if(!this.options.hide_from_to)if("single"===this.options.type)n?(t=this.decorate(r[this.result.from]),this.$cache.single.html(t)):(o=this._prettify(this.result.from),t=this.decorate(o,this.result.from),this.$cache.single.html(t)),this.calcLabels(),this.labels.p_single_left<this.labels.p_min+1?this.$cache.min[0].style.visibility="hidden":this.$cache.min[0].style.visibility="visible",this.labels.p_single_left+this.labels.p_single_fake>100-this.labels.p_max-1?this.$cache.max[0].style.visibility="hidden":this.$cache.max[0].style.visibility="visible";else{n?(this.options.decorate_both?(t=this.decorate(r[this.result.from]),t+=this.options.values_separator,t+=this.decorate(r[this.result.to])):t=this.decorate(r[this.result.from]+this.options.values_separator+r[this.result.to]),e=this.decorate(r[this.result.from]),i=this.decorate(r[this.result.to]),this.$cache.single.html(t),this.$cache.from.html(e),this.$cache.to.html(i)):(o=this._prettify(this.result.from),s=this._prettify(this.result.to),this.options.decorate_both?(t=this.decorate(o,this.result.from),t+=this.options.values_separator,t+=this.decorate(s,this.result.to)):t=this.decorate(o+this.options.values_separator+s,this.result.to),e=this.decorate(o,this.result.from),i=this.decorate(s,this.result.to),this.$cache.single.html(t),this.$cache.from.html(e),this.$cache.to.html(i)),this.calcLabels();var a=Math.min(this.labels.p_single_left,this.labels.p_from_left),l=this.labels.p_single_left+this.labels.p_single_fake,c=this.labels.p_to_left+this.labels.p_to_fake,d=Math.max(l,c);this.labels.p_from_left+this.labels.p_from_fake>=this.labels.p_to_left?(this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.single[0].style.visibility="visible",this.result.from===this.result.to?("from"===this.target?this.$cache.from[0].style.visibility="visible":"to"===this.target?this.$cache.to[0].style.visibility="visible":this.target||(this.$cache.from[0].style.visibility="visible"),this.$cache.single[0].style.visibility="hidden",d=c):(this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.single[0].style.visibility="visible",d=Math.max(l,c))):(this.$cache.from[0].style.visibility="visible",this.$cache.to[0].style.visibility="visible",this.$cache.single[0].style.visibility="hidden"),a<this.labels.p_min+1?this.$cache.min[0].style.visibility="hidden":this.$cache.min[0].style.visibility="visible",d>100-this.labels.p_max-1?this.$cache.max[0].style.visibility="hidden":this.$cache.max[0].style.visibility="visible"}}},drawShadow:function(){var t,e,i,o,s=this.options,n=this.$cache,r="number"==typeof s.from_min&&!isNaN(s.from_min),a="number"==typeof s.from_max&&!isNaN(s.from_max),l="number"==typeof s.to_min&&!isNaN(s.to_min),c="number"==typeof s.to_max&&!isNaN(s.to_max);"single"===s.type?s.from_shadow&&(r||a)?(t=this.convertToPercent(r?s.from_min:s.min),e=this.convertToPercent(a?s.from_max:s.max)-t,t=this.toFixed(t-this.coords.p_handle/100*t),e=this.toFixed(e-this.coords.p_handle/100*e),t+=this.coords.p_handle/2,n.shad_single[0].style.display="block",n.shad_single[0].style.left=t+"%",n.shad_single[0].style.width=e+"%"):n.shad_single[0].style.display="none":(s.from_shadow&&(r||a)?(t=this.convertToPercent(r?s.from_min:s.min),e=this.convertToPercent(a?s.from_max:s.max)-t,t=this.toFixed(t-this.coords.p_handle/100*t),e=this.toFixed(e-this.coords.p_handle/100*e),t+=this.coords.p_handle/2,n.shad_from[0].style.display="block",n.shad_from[0].style.left=t+"%",n.shad_from[0].style.width=e+"%"):n.shad_from[0].style.display="none",s.to_shadow&&(l||c)?(i=this.convertToPercent(l?s.to_min:s.min),o=this.convertToPercent(c?s.to_max:s.max)-i,i=this.toFixed(i-this.coords.p_handle/100*i),o=this.toFixed(o-this.coords.p_handle/100*o),i+=this.coords.p_handle/2,n.shad_to[0].style.display="block",n.shad_to[0].style.left=i+"%",n.shad_to[0].style.width=o+"%"):n.shad_to[0].style.display="none")}
1,writeToInput:function(){"single"===this.options.type?(this.options.values.length?this.$cache.input.prop("value",this.result.from_value):this.$cache.input.prop("value",this.result.from),this.$cache.input.data("from",this.result.from)):(this.options.values.length?this.$cache.input.prop("value",this.result.from_value+this.options.input_values_separator+this.result.to_value):this.$cache.input.prop("value",this.result.from+this.options.input_values_separator+this.result.to),this.$cache.input.data("from",this.result.from),this.$cache.input.data("to",this.result.to))},callOnStart:function(){this.writeToInput(),this.options.onStart&&"function"==typeof this.options.onStart&&(this.options.scope?this.options.onStart.call(this.options.scope,this.result):this.options.onStart(this.result))},callOnChange:function(){this.writeToInput(),this.options.onChange&&"function"==typeof this.options.onChange&&(this.options.scope?this.options.onChange.call(this.options.scope,this.result):this.options.onChange(this.result))},callOnFinish:function(){this.writeToInput(),this.options.onFinish&&"function"==typeof this.options.onFinish&&(this.options.scope?this.options.onFinish.call(this.options.scope,this.result):this.options.onFinish(this.result))},callOnUpdate:function(){this.writeToInput(),this.options.onUpdate&&"function"==typeof this.options.onUpdate&&(this.options.scope?this.options.onUpdate.call(this.options.scope,this.result):this.options.onUpdate(this.result))},toggleInput:function(){this.$cache.input.toggleClass("irs-hidden-input"),this.has_tab_index?this.$cache.input.prop("tabindex",-1):this.$cache.input.removeProp("tabindex"),this.has_tab_index=!this.has_tab_index},convertToPercent:function(t,e){var i,o,s=this.options.max-this.options.min,n=s/100;return s?(i=e?t:t-this.options.min,o=i/n,this.toFixed(o)):(this.no_diapason=!0,0)},convertToValue:function(t){var e,i,o=this.options.min,s=this.options.max,n=o.toString().split(".")[1],r=s.toString().split(".")[1],a=0,l=0;if(0===t)return this.options.min;if(100===t)return this.options.max;n&&(a=e=n.length),r&&(a=i=r.length),e&&i&&(a=e>=i?e:i),o<0&&(o=+(o+(l=Math.abs(o))).toFixed(a),s=+(s+l).toFixed(a));var c,d=(s-o)/100*t+o,h=this.options.step.toString().split(".")[1];return h?d=+d.toFixed(h.length):(d/=this.options.step,d=+(d*=this.options.step).toFixed(0)),l&&(d-=l),(c=h?+d.toFixed(h.length):this.toFixed(d))<this.options.min?c=this.options.min:c>this.options.max&&(c=this.options.max),c},calcWithStep:function(t){var e=Math.round(t/this.coords.p_step)*this.coords.p_step;return e>100&&(e=100),100===t&&(e=100),this.toFixed(e)},checkMinInterval:function(t,e,i){var o,s,n=this.options;return n.min_interval?(o=this.convertToValue(t),s=this.convertToValue(e),"from"===i?s-o<n.min_interval&&(o=s-n.min_interval):o-s<n.min_interval&&(o=s+n.min_interval),this.convertToPercent(o)):t},checkMaxInterval:function(t,e,i){var o,s,n=this.options;return n.max_interval?(o=this.convertToValue(t),s=this.convertToValue(e),"from"===i?s-o>n.max_interval&&(o=s-n.max_interval):o-s>n.max_interval&&(o=s+n.max_interval),this.convertToPercent(o)):t},checkDiapason:function(t,e,i){var o=this.convertToValue(t),s=this.options;return"number"!=typeof e&&(e=s.min),"number"!=typeof i&&(i=s.max),o<e&&(o=e),o>i&&(o=i),this.convertToPercent(o)},toFixed:function(t){return+(t=t.toFixed(20))},_prettify:function(t){return this.options.prettify_enabled?this.options.prettify&&"function"==typeof this.options.prettify?this.options.prettify(t):this.prettify(t):t},prettify:function(t){return t.toString().replace(/(\d{1,3}(?=(?:\d\d\d)+(?!\d)))/g,"$1"+this.options.prettify_separator)},checkEdges:function(t,e){return this.options.force_edges?(t<0?t=0:t>100-e&&(t=100-e),this.toFixed(t)):this.toFixed(t)},validate:function(){var t,e,i=this.options,o=this.result,s=i.values,n=s.length;if("string"==typeof i.min&&(i.min=+i.min),"string"==typeof i.max&&(i.max=+i.max),"string"==typeof i.from&&(i.from=+i.from),"string"==typeof i.to&&(i.to=+i.to),"string"==typeof i.step&&(i.step=+i.step),"string"==typeof i.from_min&&(i.from_min=+i.from_min),"string"==typeof i.from_max&&(i.from_max=+i.from_max),"string"==typeof i.to_min&&(i.to_min=+i.to_min),"string"==typeof i.to_max&&(i.to_max=+i.to_max),"string"==typeof i.grid_num&&(i.grid_num=+i.grid_num),i.max<i.min&&(i.max=i.min),n)for(i.p_values=[],i.min=0,i.max=n-1,i.step=1,i.grid_num=i.max,i.grid_snap=!0,e=0;e<n;e++)t=+s[e],isNaN(t)?t=s[e]:(s[e]=t,t=this._prettify(t)),i.p_values.push(t);("number"!=typeof i.from||isNaN(i.from))&&(i.from=i.min),("number"!=typeof i.to||isNaN(i.to))&&(i.to=i.max),"single"===i.type?(i.from<i.min&&(i.from=i.min),i.from>
1i.max&&(i.from=i.max)):(i.from<i.min&&(i.from=i.min),i.from>i.max&&(i.from=i.max),i.to<i.min&&(i.to=i.min),i.to>i.max&&(i.to=i.max),this.update_check.from&&(this.update_check.from!==i.from&&i.from>i.to&&(i.from=i.to),this.update_check.to!==i.to&&i.to<i.from&&(i.to=i.from)),i.from>i.to&&(i.from=i.to),i.to<i.from&&(i.to=i.from)),("number"!=typeof i.step||isNaN(i.step)||!i.step||i.step<0)&&(i.step=1),"number"==typeof i.from_min&&i.from<i.from_min&&(i.from=i.from_min),"number"==typeof i.from_max&&i.from>i.from_max&&(i.from=i.from_max),"number"==typeof i.to_min&&i.to<i.to_min&&(i.to=i.to_min),"number"==typeof i.to_max&&i.from>i.to_max&&(i.to=i.to_max),o&&(o.min!==i.min&&(o.min=i.min),o.max!==i.max&&(o.max=i.max),(o.from<o.min||o.from>o.max)&&(o.from=i.from),(o.to<o.min||o.to>o.max)&&(o.to=i.to)),("number"!=typeof i.min_interval||isNaN(i.min_interval)||!i.min_interval||i.min_interval<0)&&(i.min_interval=0),("number"!=typeof i.max_interval||isNaN(i.max_interval)||!i.max_interval||i.max_interval<0)&&(i.max_interval=0),i.min_interval&&i.min_interval>i.max-i.min&&(i.min_interval=i.max-i.min),i.max_interval&&i.max_interval>i.max-i.min&&(i.max_interval=i.max-i.min)},decorate:function(t,e){var i="",o=this.options;return o.prefix&&(i+=o.prefix),i+=t,o.max_postfix&&(o.values.length&&t===o.p_values[o.max]?(i+=o.max_postfix,o.postfix&&(i+=" ")):e===o.max&&(i+=o.max_postfix,o.postfix&&(i+=" "))),o.postfix&&(i+=o.postfix),i},updateFrom:function(){this.result.from=this.options.from,this.result.from_percent=this.convertToPercent(this.result.from),this.result.from_pretty=this._prettify(this.result.from),this.options.values&&(this.result.from_value=this.options.values[this.result.from])},updateTo:function(){this.result.to=this.options.to,this.result.to_percent=this.convertToPercent(this.result.to),this.result.to_pretty=this._prettify(this.result.to),this.options.values&&(this.result.to_value=this.options.values[this.result.to])},updateResult:function(){this.result.min=this.options.min,this.result.max=this.options.max,this.updateFrom(),this.updateTo()},appendGrid:function(){if(this.options.grid){var t,e,i,o,s,n=this.options,r=n.max-n.min,a=n.grid_num,l=0,c=0,d=4,h="";for(this.calcGridMargin(),n.grid_snap?r>50?(a=50/n.step,l=this.toFixed(n.step/.5)):(a=r/n.step,l=this.toFixed(n.step/(r/100))):l=this.toFixed(100/a),a>4&&(d=3),a>7&&(d=2),a>14&&(d=1),a>28&&(d=0),t=0;t<a+1;t++){for(i=d,(c=this.toFixed(l*t))>100&&(c=100),this.coords.big[t]=c,o=(c-l*(t-1))/(i+1),e=1;e<=i&&0!==c;e++)h+='<span class="irs-grid-pol small" style="left: '+this.toFixed(c-o*e)+'%"></span>';h+='<span class="irs-grid-pol" style="left: '+c+'%"></span>',s=this.convertToValue(c),h+='<span class="irs-grid-text js-grid-text-'+t+'" style="left: '+c+'%">'+(s=n.values.length?n.p_values[s]:this._prettify(s))+"</span>"}this.coords.big_num=Math.ceil(a+1),this.$cache.cont.addClass("irs-with-grid"),this.$cache.grid.html(h),this.cacheGridLabels()}},cacheGridLabels:function(){var t,e,i=this.coords.big_num;for(e=0;e<i;e++)t=this.$cache.grid.find(".js-grid-text-"+e),this.$cache.grid_labels.push(t);this.calcGridLabels()},calcGridLabels:function(){var t,e,i=[],o=[],s=this.coords.big_num;for(t=0;t<s;t++)this.coords.big_w[t]=this.$cache.grid_labels[t].outerWidth(!1),this.coords.big_p[t]=this.toFixed(this.coords.big_w[t]/this.coords.w_rs*100),this.coords.big_x[t]=this.toFixed(this.coords.big_p[t]/2),i[t]=this.toFixed(this.coords.big[t]-this.coords.big_x[t]),o[t]=this.toFixed(i[t]+this.coords.big_p[t]);for(this.options.force_edges&&(i[0]<-this.coords.grid_gap&&(i[0]=-this.coords.grid_gap,o[0]=this.toFixed(i[0]+this.coords.big_p[0]),this.coords.big_x[0]=this.coords.grid_gap),o[s-1]>100+this.coords.grid_gap&&(o[s-1]=100+this.coords.grid_gap,i[s-1]=this.toFixed(o[s-1]-this.coords.big_p[s-1]),this.coords.big_x[s-1]=this.toFixed(this.coords.big_p[s-1]-this.coords.grid_gap))),this.calcGridCollision(2,i,o),this.calcGridCollision(4,i,o),t=0;t<s;t++)e=this.$cache.grid_labels[t][0],this.coords.big_x[t]!==Number.POSITIVE_INFINITY&&(e.style.marginLeft=-this.coords.big_x[t]+"%")},calcGridCollision:function(t,e,i){var o,s,n,r=this.coords.big_num;for(o=0;o<r&&!((s=o+t/2)>=r);o+=t)n=this.$cache.grid_labels[s][0],i[o]<=e[s]?n.style.visibility="visible":n.style.visibility="hidden"},calcGridMargin:function(){this.options.grid_margin&&(this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.coords.w_rs&&("single"===this.options.type?this.coords.w_handle=this.$cache.s_single.outerWidth(!1):this.coords.w_handle=this.$cache.s_from.outerWidth(!1),this.coords.p_handle=this.toFixed(this.coords.w_handle/this.coords.w_rs*100),this.coords.grid_gap=this.toFixed(this.coords.p_handle/2-.1),this.$cache.grid[
10].style.width=this.toFixed(100-this.coords.p_handle)+"%",this.$cache.grid[0].style.left=this.coords.grid_gap+"%"))},update:function(e){this.input&&(this.is_update=!0,this.options.from=this.result.from,this.options.to=this.result.to,this.update_check.from=this.result.from,this.update_check.to=this.result.to,this.options=t.extend(this.options,e),this.validate(),this.updateResult(e),this.toggleInput(),this.remove(),this.init(!0))},reset:function(){this.input&&(this.updateResult(),this.update())},destroy:function(){this.input&&(this.toggleInput(),this.$cache.input.prop("readonly",!1),t.data(this.input,"ionRangeSlider",null),this.remove(),this.input=null,this.options=null)}},t.fn.ionRangeSlider=function(e){return this.each(function(){t.data(this,"ionRangeSlider")||t.data(this,"ionRangeSlider",new a(this,e,n++))})},function(){for(var t=0,e=["ms","moz","webkit","o"],o=0;o<e.length&&!i.requestAnimationFrame;++o)i.requestAnimationFrame=i[e[o]+"RequestAnimationFrame"],i.cancelAnimationFrame=i[e[o]+"CancelAnimationFrame"]||i[e[o]+"CancelRequestAnimationFrame"];i.requestAnimationFrame||(i.requestAnimationFrame=function(e,o){var s=(new Date).getTime(),n=Math.max(0,16-(s-t)),r=i.setTimeout(function(){e(s+n)},n);return t=s+n,r}),i.cancelAnimationFrame||(i.cancelAnimationFrame=function(t){clearTimeout(t)})}()}),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){var e=-1,i=-1,o=function(t){return parseFloat(t)||0},s=function(e){var i=null,s=[];return t(e).each(function(){var e=t(this),n=e.offset().top-o(e.css("margin-top")),r=s.length>0?s[s.length-1]:null;null===r?s.push(e):Math.floor(Math.abs(i-n))<=1?s[s.length-1]=r.add(e):s.push(e),i=n}),s},n=function(e){var i={byRow:!0,property:"height",target:null,remove:!1};return"object"==typeof e?t.extend(i,e):("boolean"==typeof e?i.byRow=e:"remove"===e&&(i.remove=!0),i)},r=t.fn.matchHeight=function(e){var i=n(e);if(i.remove){var o=this;return this.css(i.property,""),t.each(r._groups,function(t,e){e.elements=e.elements.not(o)}),this}return this.length<=1&&!i.target?this:(r._groups.push({elements:this,options:i}),r._apply(this,i),this)};r.version="0.7.0",r._groups=[],r._throttle=80,r._maintainScroll=!1,r._beforeUpdate=null,r._afterUpdate=null,r._rows=s,r._parse=o,r._parseOptions=n,r._apply=function(e,i){var a=n(i),l=t(e),c=[l],d=t(window).scrollTop(),h=t("html").outerHeight(!0),p=l.parents().filter(":hidden");return p.each(function(){var e=t(this);e.data("style-cache",e.attr("style"))}),p.css("display","block"),a.byRow&&!a.target&&(l.each(function(){var e=t(this),i=e.css("display");"inline-block"!==i&&"flex"!==i&&"inline-flex"!==i&&(i="block"),e.data("style-cache",e.attr("style")),e.css({display:i,"padding-top":"0","padding-bottom":"0","margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px",overflow:"hidden"})}),c=s(l),l.each(function(){var e=t(this);e.attr("style",e.data("style-cache")||"")})),t.each(c,function(e,i){var s=t(i),n=0;if(a.target)n=a.target.outerHeight(!1);else{if(a.byRow&&s.length<=1)return void s.css(a.property,"");s.each(function(){var e=t(this),i=e.attr("style"),o=e.css("display");"inline-block"!==o&&"flex"!==o&&"inline-flex"!==o&&(o="block");var s={display:o};s[a.property]="",e.css(s),e.outerHeight(!1)>n&&(n=e.outerHeight(!1)),i?e.attr("style",i):e.css("display","")})}s.each(function(){var e=t(this),i=0;a.target&&e.is(a.target)||("border-box"!==e.css("box-sizing")&&(i+=o(e.css("border-top-width"))+o(e.css("border-bottom-width")),i+=o(e.css("padding-top"))+o(e.css("padding-bottom"))),e.css(a.property,n-i+"px"))})}),p.each(function(){var e=t(this);e.attr("style",e.data("style-cache")||null)}),r._maintainScroll&&t(window).scrollTop(d/h*t("html").outerHeight(!0)),this},r._applyDataApi=function(){var e={};t("[data-match-height], [data-mh]").each(function(){var i=t(this),o=i.attr("data-mh")||i.attr("data-match-height");e[o]=o in e?e[o].add(i):i}),t.each(e,function(){this.matchHeight(!0)})};var a=function(e){r._beforeUpdate&&r._beforeUpdate(e,r._groups),t.each(r._groups,function(){r._apply(this.elements,this.options)}),r._afterUpdate&&r._afterUpdate(e,r._groups)};r._update=function(o,s){if(s&&"resize"===s.type){var n=t(window).width();if(n===e)return;e=n}o?-1===i&&(i=setTimeout(function(){a(s),i=-1},r._throttle)):a(s)},t(r._applyDataApi),t(window).bind("load",function(t){r._update(!1,t)}),t(window).bind("resize orientationchange",function(t){r._update(!0,t)})}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){"use strict";var e=!1,i=!1,o=0,s=2e3,n=0,r=t,a=document,l=window,c=r(l),d=[],h=l.requestAnimationFrame||l.webkitRequestAnimationFrame||l.mozRequestAnimationFrame||!1,p=l.cancelAnimationFrame||l.webkitCancelAnimationFrame||l.mozCancelAnimationFrame||!1;if(h)l.cancelAnimationFrame||(p=function(t){});else{var u=0;h=function(t,e){var i=(new Date).getTime(),o=Math.max(0,16-(i-u)),s=l.setTimeout(function(){t(i+o)},o);return u=i+o,s},p=function(t){l.clearTimeout(t)}}var f=l.MutationObserver||l.WebKitMutationObserver||!1,g=Date.now||function(){return(new Date).getTime()},m={zindex:"auto",cursoropacitymin:0,cursoropacitymax:1,cursorcolor:"#424242",cursorwidth:"6px",cursorborder:"1px solid #fff",cursorborderradiu
1s:"5px",scrollspeed:40,mousescrollstep:27,touchbehavior:!1,emulatetouch:!1,hwacceleration:!0,usetransition:!0,boxzoom:!1,dblclickzoom:!0,gesturezoom:!0,grabcursorenabled:!0,autohidemode:!0,background:"",iframeautoresize:!0,cursorminheight:32,preservenativescrolling:!0,railoffset:!1,railhoffset:!1,bouncescroll:!0,spacebarenabled:!0,railpadding:{top:0,right:0,left:0,bottom:0},disableoutline:!0,horizrailenabled:!0,railalign:"right",railvalign:"bottom",enabletranslate3d:!0,enablemousewheel:!0,enablekeyboard:!0,smoothscroll:!0,sensitiverail:!0,enablemouselockapi:!0,cursorfixedheight:!1,directionlockdeadzone:6,hidecursordelay:400,nativeparentscrolling:!0,enablescrollonselection:!0,overflowx:!0,overflowy:!0,cursordragspeed:.3,rtlmode:"auto",cursordragontouch:!1,oneaxismousemode:"auto",scriptpath:function(){var t=a.currentScript||function(){var t=a.getElementsByTagName("script");return!!t.length&&t[t.length-1]}(),e=t?t.src.split("?")[0]:"";return e.split("/").length>0?e.split("/").slice(0,-1).join("/")+"/":""}(),preventmultitouchscrolling:!0,disablemutationobserver:!1,enableobserver:!0,scrollbarid:!1},v=!1,_=function(){if(v)return v;var t=a.createElement("DIV"),e=t.style,i=navigator.userAgent,o=navigator.platform,s={};return s.haspointerlock="pointerLockElement"in a||"webkitPointerLockElement"in a||"mozPointerLockElement"in a,s.isopera="opera"in l,s.isopera12=s.isopera&&"getUserMedia"in navigator,s.isoperamini="[object OperaMini]"===Object.prototype.toString.call(l.operamini),s.isie="all"in a&&"attachEvent"in t&&!s.isopera,s.isieold=s.isie&&!("msInterpolationMode"in e),s.isie7=s.isie&&!s.isieold&&(!("documentMode"in a)||7===a.documentMode),s.isie8=s.isie&&"documentMode"in a&&8===a.documentMode,s.isie9=s.isie&&"performance"in l&&9===a.documentMode,s.isie10=s.isie&&"performance"in l&&10===a.documentMode,s.isie11="msRequestFullscreen"in t&&a.documentMode>=11,s.ismsedge="msCredentials"in l,s.ismozilla="MozAppearance"in e,s.iswebkit=!s.ismsedge&&"WebkitAppearance"in e,s.ischrome=s.iswebkit&&"chrome"in l,s.ischrome38=s.ischrome&&"touchAction"in e,s.ischrome22=!s.ischrome38&&s.ischrome&&s.haspointerlock,s.ischrome26=!s.ischrome38&&s.ischrome&&"transition"in e,s.cantouch="ontouchstart"in a.documentElement||"ontouchstart"in l,s.hasw3ctouch=(l.PointerEvent||!1)&&(navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0),s.hasmstouch=!s.hasw3ctouch&&(l.MSPointerEvent||!1),s.ismac=/^mac$/i.test(o),s.isios=s.cantouch&&/iphone|ipad|ipod/i.test(o),s.isios4=s.isios&&!("seal"in Object),s.isios7=s.isios&&"webkitHidden"in a,s.isios8=s.isios&&"hidden"in a,s.isios10=s.isios&&l.Proxy,s.isandroid=/android/i.test(i),s.haseventlistener="addEventListener"in t,s.trstyle=!1,s.hastransform=!1,s.hastranslate3d=!1,s.transitionstyle=!1,s.hastransition=!1,s.transitionend=!1,s.trstyle="transform",s.hastransform="transform"in e||function(){for(var t=["msTransform","webkitTransform","MozTransform","OTransform"],i=0,o=t.length;i<o;i++)if(void 0!==e[t[i]]){s.trstyle=t[i];break}s.hastransform=!!s.trstyle}(),s.hastransform&&(e[s.trstyle]="translate3d(1px,2px,3px)",s.hastranslate3d=/translate3d/.test(e[s.trstyle])),s.transitionstyle="transition",s.prefixstyle="",s.transitionend="transitionend",s.hastransition="transition"in e||function(){s.transitionend=!1;for(var t=["webkitTransition","msTransition","MozTransition","OTransition","OTransition","KhtmlTransition"],i=["-webkit-","-ms-","-moz-","-o-","-o","-khtml-"],o=["webkitTransitionEnd","msTransitionEnd","transitionend","otransitionend","oTransitionEnd","KhtmlTransitionEnd"],n=0,r=t.length;n<r;n++)if(t[n]in e){s.transitionstyle=t[n],s.prefixstyle=i[n],s.transitionend=o[n];break}s.ischrome26&&(s.prefixstyle=i[1]),s.hastransition=s.transitionstyle}(),s.cursorgrabvalue=function(){var t=["grab","-webkit-grab","-moz-grab"];(s.ischrome&&!s.ischrome38||s.isie)&&(t=[]);for(var i=0,o=t.length;i<o;i++){var n=t[i];if(e.cursor=n,e.cursor==n)return n}return"url(https://cdnjs.cloudflare.com/ajax/libs/slider-pro/1.3.0/css/images/openhand.cur),n-resize"}(),s.hasmousecapture="setCapture"in t,s.hasMutationObserver=!1!==f,t=null,v=s,s},w=function(t,u){function v(){var t=C.doc.css(z.trstyle);return!(!t||"matrix"!=t.substr(0,6))&&t.replace(/^.*\((.*)\)$/g,"$1").replace(/px/g,"").split(/, +/)}function w(){var t=C.win;
1if("zIndex"in t)return t.zIndex();for(;t.length>0;){if(9==t[0].nodeType)return!1;var e=t.css("zIndex");if(!isNaN(e)&&0!==e)return parseInt(e);t=t.parent()}return!1}function b(t,e,i){var o=t.css(e),s=parseFloat(o);if(isNaN(s)){var n=3==(s=P[o]||0)?i?C.win.outerHeight()-C.win.innerHeight():C.win.outerWidth()-C.win.innerWidth():1;return C.isie8&&s&&(s+=1),n?s:0}return s}function x(t,e,i,o){C._bind(t,e,function(o){var s={original:o=o||l.event,target:o.target||o.srcElement,type:"wheel",deltaMode:"MozMousePixelScroll"==o.type?0:1,deltaX:0,deltaZ:0,preventDefault:function(){return o.preventDefault?o.preventDefault():o.returnValue=!1,!1},stopImmediatePropagation:function(){o.stopImmediatePropagation?o.stopImmediatePropagation():o.cancelBubble=!0}};return"mousewheel"==e?(o.wheelDeltaX&&(s.deltaX=-.025*o.wheelDeltaX),o.wheelDeltaY&&(s.deltaY=-.025*o.wheelDeltaY),!s.deltaY&&!s.deltaX&&(s.deltaY=-.025*o.wheelDelta)):s.deltaY=o.detail,i.call(t,s)},o)}function k(t,e,i,o){C.scrollrunning||(C.newscrolly=C.getScrollTop(),C.newscrollx=C.getScrollLeft(),H=g());var s=g()-H;if(H=g(),s>350?U=1:U+=(2-U)/10,t=t*U|0,e=e*U|0,t){if(o)if(t<0){if(C.getScrollLeft()>=C.page.maxw)return!0}else if(C.getScrollLeft()<=0)return!0;var n=t>0?1:-1;j!==n&&(C.scrollmom&&C.scrollmom.stop(),C.newscrollx=C.getScrollLeft(),j=n),C.lastdeltax-=t}if(e){if(function(){var t=C.getScrollTop();if(e<0){if(t>=C.page.maxh)return!0}else if(t<=0)return!0}()){if(T.nativeparentscrolling&&i&&!C.ispage&&!C.zoomactive)return!0;var r=C.view.h>>1;C.newscrolly<-r?(C.newscrolly=-r,e=-1):C.newscrolly>C.page.maxh+r?(C.newscrolly=C.page.maxh+r,e=1):e=0}var a=e>0?1:-1;F!==a&&(C.scrollmom&&C.scrollmom.stop(),C.newscrolly=C.getScrollTop(),F=a),C.lastdeltay-=e}(e||t)&&C.synched("relativexy",function(){var t=C.lastdeltay+C.newscrolly;C.lastdeltay=0;var e=C.lastdeltax+C.newscrollx;C.lastdeltax=0,C.rail.drag||C.doScrollPos(e,t)})}function S(t,e,i){var o,s;return!(i||!W)||(0===t.deltaMode?(o=-t.deltaX*(T.mousescrollstep/54)|0,s=-t.deltaY*(T.mousescrollstep/54)|0):1===t.deltaMode&&(o=-t.deltaX*T.mousescrollstep*50/80|0,s=-t.deltaY*T.mousescrollstep*50/80|0),e&&T.oneaxismousemode&&0===o&&s&&(o=s,s=0,i&&(o<0?C.getScrollLeft()>=C.page.maxw:C.getScrollLeft()<=0)&&(s=o,o=0)),C.isrtlmode&&(o=-o),k(o,s,i,!0)?void(i&&(W=!0)):(W=!1,t.stopImmediatePropagation(),t.preventDefault()))}var C=this;this.version="3.7.6",this.name="nicescroll",this.me=u;var $=r("body"),T=this.opt={doc:$,win:!1};if(r.extend(T,m),T.snapbackspeed=80,t)for(var D in T)void 0!==t[D]&&(T[D]=t[D]);if(T.disablemutationobserver&&(f=!1),this.doc=T.doc,this.iddoc=this.doc&&this.doc[0]?this.doc[0].id||"":"",this.ispage=/^BODY|HTML/.test(T.win?T.win[0].nodeName:this.doc[0].nodeName),this.haswrapper=!1!==T.win,this.win=T.win||(this.ispage?c:this.doc),this.docscroll=this.ispage&&!this.haswrapper?c:this.win,this.body=$,this.viewport=!1,this.isfixed=!1,this.iframe=!1,this.isiframe="IFRAME"==this.doc[0].nodeName&&"IFRAME"==this.win[0].nodeName,this.istextarea="TEXTAREA"==this.win[0].nodeName,this.forcescreen=!1,this.canshowonmouseevent="scroll"!=T.autohidemode,this.onmousedown=!1,this.onmouseup=!1,this.onmousemove=!1,this.onmousewheel=!1,this.onkeypress=!1,this.ongesturezoom=!1,this.onclick=!1,this.onscrollstart=!1,this.onscrollend=!1,this.onscrollcancel=!1,this.onzoomin=!1,this.onzoomout=!1,this.view=!1,this.page=!1,this.scroll={x:0,y:0},this.scrollratio={x:0,y:0},this.cursorheight=20,this.scrollvaluemax=0,"auto"==T.rtlmode){var E=this.win[0]==l?this.body:this.win,O=E.css("writing-mode")||E.css("-webkit-writing-mode")||E.css("-ms-writing-mode")||E.css("-moz-writing-mode");"horizontal-tb"==O||"lr-tb"==O||""===O?(this.isrtlmode="rtl"==E.css("direction"),this.isvertical=!1):(this.isrtlmode="vertical-rl"==O||"tb"==O||"tb-rl"==O||"rl-tb"==O,this.isvertical="vertical-rl"==O||"tb"==O||"tb-rl"==O)}else this.isrtlmode=!0===T.rtlmode,this.isvertical=!1;if(this.scrollrunning=!1,this.scrollmom=!1,this.observer=!1,this.observerremover=!1,this.observerbody=!1,!1!==T.scrollbarid)this.id=T.scrollbarid;else do{this.id="ascrail"+s++}while(a.getElementById(this.id));this.rail=!1,this.cursor=!1,this.cursorfreezed=!1,this.selectiondrag=!1,this.zoom=!1,this.zoomactive=!1,this.hasfocus=!1,this.hasmousefocus=!1,this.railslocked=!1,this.locked=!1,this.hidden=!1,this.cursoractive=!0,this.wheelprevented=!1,this.overflowx=T.overflowx,this.overflowy=T.overflowy,this.nativescrollingarea=!1,this.checkarea=0,this.events=[],this.saved={},this.delaylist={},this.synclist={},this.lastdeltax=0,this.lastdeltay=0,this.detected=_();var z=r.extend({},this.detected);this.canhwscroll=z.hastransform&&T.hwacceleration,this.ishwscroll=this.canhwscroll&&C.haswrapper,this.isrtlmode?this.isvertical?this.hasreversehr=!(z.iswebkit||z.isie||z.isie11):this.hasreversehr=!(z.iswebkit||z.isie&&!z.isie10&&!z.isie11):this.hasreversehr=!1,this.istouchcapable=!1,z.cantouch||!z.hasw3ctouch&&!z.hasmstouch?!z.cantouch||z.isios||z.isandroid||!z.iswebkit&&!z.ismozilla||(this.istouchcapable=!0):this.istouchcapable=!0,T.enablemouselockapi||(z.hasmousecapture=!1,z.haspointerlock=!1),this.debounced=function(t,e,
1i){C&&(C.delaylist[t]||!1||(C.delaylist[t]={h:h(function(){C.delaylist[t].fn.call(C),C.delaylist[t]=!1},i)},e.call(C)),C.delaylist[t].fn=e)},this.synched=function(t,e){C.synclist[t]?C.synclist[t]=e:(C.synclist[t]=e,h(function(){C&&(C.synclist[t]&&C.synclist[t].call(C),C.synclist[t]=null)}))},this.unsynched=function(t){C.synclist[t]&&(C.synclist[t]=!1)},this.css=function(t,e){for(var i in e)C.saved.css.push([t,i,t.css(i)]),t.css(i,e[i])},this.scrollTop=function(t){return void 0===t?C.getScrollTop():C.setScrollTop(t)},this.scrollLeft=function(t){return void 0===t?C.getScrollLeft():C.setScrollLeft(t)};var M=function(t,e,i,o,s,n,r){this.st=t,this.ed=e,this.spd=i,this.p1=o||0,this.p2=s||1,this.p3=n||0,this.p4=r||1,this.ts=g(),this.df=e-t};if(M.prototype={B2:function(t){return 3*(1-t)*(1-t)*t},B3:function(t){return 3*(1-t)*t*t},B4:function(t){return t*t*t},getPos:function(){return(g()-this.ts)/this.spd},getNow:function(){var t=(g()-this.ts)/this.spd,e=this.B2(t)+this.B3(t)+this.B4(t);return t>=1?this.ed:this.st+this.df*e|0},update:function(t,e){return this.st=this.getNow(),this.ed=t,this.spd=e,this.ts=g(),this.df=this.ed-this.st,this}},this.ishwscroll){this.doc.translate={x:0,y:0,tx:"0px",ty:"0px"},z.hastranslate3d&&z.isios&&this.doc.css("-webkit-backface-visibility","hidden"),this.getScrollTop=function(t){if(!t){var e=v();if(e)return 16==e.length?-e[13]:-e[5];if(C.timerscroll&&C.timerscroll.bz)return C.timerscroll.bz.getNow()}return C.doc.translate.y},this.getScrollLeft=function(t){if(!t){var e=v();if(e)return 16==e.length?-e[12]:-e[4];if(C.timerscroll&&C.timerscroll.bh)return C.timerscroll.bh.getNow()}return C.doc.translate.x},this.notifyScrollEvent=function(t){var e=a.createEvent("UIEvents");e.initUIEvent("scroll",!1,!1,l,1),e.niceevent=!0,t.dispatchEvent(e)};var A=this.isrtlmode?1:-1;z.hastranslate3d&&T.enabletranslate3d?(this.setScrollTop=function(t,e){C.doc.translate.y=t,C.doc.translate.ty=-1*t+"px",C.doc.css(z.trstyle,"translate3d("+C.doc.translate.tx+","+C.doc.translate.ty+",0)"),e||C.notifyScrollEvent(C.win[0])},this.setScrollLeft=function(t,e){C.doc.translate.x=t,C.doc.translate.tx=t*A+"px",C.doc.css(z.trstyle,"translate3d("+C.doc.translate.tx+","+C.doc.translate.ty+",0)"),e||C.notifyScrollEvent(C.win[0])}):(this.setScrollTop=function(t,e){C.doc.translate.y=t,C.doc.translate.ty=-1*t+"px",C.doc.css(z.trstyle,"translate("+C.doc.translate.tx+","+C.doc.translate.ty+")"),e||C.notifyScrollEvent(C.win[0])},this.setScrollLeft=function(t,e){C.doc.translate.x=t,C.doc.translate.tx=t*A+"px",C.doc.css(z.trstyle,"translate("+C.doc.translate.tx+","+C.doc.translate.ty+")"),e||C.notifyScrollEvent(C.win[0])})}else this.getScrollTop=function(){return C.docscroll.scrollTop()},this.setScrollTop=function(t){C.docscroll.scrollTop(t)},this.getScrollLeft=function(){return C.hasreversehr?C.detected.ismozilla?C.page.maxw-Math.abs(C.docscroll.scrollLeft()):C.page.maxw-C.docscroll.scrollLeft():C.docscroll.scrollLeft()},this.setScrollLeft=function(t){return setTimeout(function(){if(C)return C.hasreversehr&&(t=C.detected.ismozilla?-(C.page.maxw-t):C.page.maxw-t),C.docscroll.scrollLeft(t)},1)};this.getTarget=function(t){return!!t&&(t.target?t.target:!!t.srcElement&&t.srcElement)},this.hasParent=function(t,e){if(!t)return!1;for(var i=t.target||t.srcElement||t||!1;i&&i.id!=e;)i=i.parentNode||!1;return!1!==i};var P={thin:1,medium:3,thick:5};this.getDocumentScrollOffset=function(){return{top:l.pageYOffset||a.documentElement.scrollTop,left:l.pageXOffset||a.documentElement.scrollLeft}},this.getOffset=function(){if(C.isfixed){var t=C.win.offset(),e=C.getDocumentScrollOffset();return t.top-=e.top,t.left-=e.left,t}var i=C.win.offset();if(!C.viewport)return i;var o=C.viewport.offset();return{top:i.top-o.top,left:i.left-o.left}},this.updateScrollBar=function(t){var e,i;if(C.ishwscroll)C.rail.css({height:C.win.innerHeight()-(T.railpadding.top+T.railpadding.bottom)}),C.railh&&C.railh.css({width:C.win.innerWidth()-(T.railpadding.left+T.railpadding.right)});else{var o=C.getOffset();if(e={top:o.top,left:o.left-(T.railpadding.left+T.railpadding.right)},e.top+=b(C.win,"border-top-width",!0),e.left+=C.rail.align?C.win.outerWidth()-b(C.win,"border-right-width")-C.rail.width:b(C.win,"border-left-width"),(i=T.railoffset)&&(i.top&&(e.top+=i.top),i.left&&(e.left+=i.left)),C.railslocked||C.rail.css({top:e.top,left
1:e.left,height:(t?t.h:C.win.innerHeight())-(T.railpadding.top+T.railpadding.bottom)}),C.zoom&&C.zoom.css({top:e.top+1,left:1==C.rail.align?e.left-20:e.left+C.rail.width+4}),C.railh&&!C.railslocked){e={top:o.top,left:o.left},(i=T.railhoffset)&&(i.top&&(e.top+=i.top),i.left&&(e.left+=i.left));var s=C.railh.align?e.top+b(C.win,"border-top-width",!0)+C.win.innerHeight()-C.railh.height:e.top+b(C.win,"border-top-width",!0),n=e.left+b(C.win,"border-left-width");C.railh.css({top:s-(T.railpadding.top+T.railpadding.bottom),left:n,width:C.railh.width})}}},this.doRailClick=function(t,e,i){var o,s,n,r;C.railslocked||(C.cancelEvent(t),"pageY"in t||(t.pageX=t.clientX+a.documentElement.scrollLeft,t.pageY=t.clientY+a.documentElement.scrollTop),e?(o=i?C.doScrollLeft:C.doScrollTop,n=i?(t.pageX-C.railh.offset().left-C.cursorwidth/2)*C.scrollratio.x:(t.pageY-C.rail.offset().top-C.cursorheight/2)*C.scrollratio.y,C.unsynched("relativexy"),o(0|n)):(o=i?C.doScrollLeftBy:C.doScrollBy,n=i?C.scroll.x:C.scroll.y,r=i?t.pageX-C.railh.offset().left:t.pageY-C.rail.offset().top,s=i?C.view.w:C.view.h,o(n>=r?s:-s)))},C.newscrolly=C.newscrollx=0,C.hasanimationframe="requestAnimationFrame"in l,C.hascancelanimationframe="cancelAnimationFrame"in l,C.hasborderbox=!1,this.init=function(){if(C.saved.css=[],z.isoperamini)return!0;if(z.isandroid&&!("hidden"in a))return!0;T.emulatetouch=T.emulatetouch||T.touchbehavior,C.hasborderbox=l.getComputedStyle&&"border-box"===l.getComputedStyle(a.body)["box-sizing"];var t={"overflow-y":"hidden"};if((z.isie11||z.isie10)&&(t["-ms-overflow-style"]="none"),C.ishwscroll&&(this.doc.css(z.transitionstyle,z.prefixstyle+"transform 0ms ease-out"),z.transitionend&&C.bind(C.doc,z.transitionend,C.onScrollTransitionEnd,!1)),C.zindex="auto",C.ispage||"auto"!=T.zindex?C.zindex=T.zindex:C.zindex=w()||"auto",!C.ispage&&"auto"!=C.zindex&&C.zindex>n&&(n=C.zindex),C.isie&&0===C.zindex&&"auto"==T.zindex&&(C.zindex="auto"),!C.ispage||!z.isieold){var s=C.docscroll;C.ispage&&(s=C.haswrapper?C.win:C.doc),C.css(s,t),C.ispage&&(z.isie11||z.isie)&&C.css(r("html"),t),!z.isios||C.ispage||C.haswrapper||C.css($,{"-webkit-overflow-scrolling":"touch"});var d=r(a.createElement("div"));d.css({position:"relative",top:0,float:"right",width:T.cursorwidth,height:0,"background-color":T.cursorcolor,border:T.cursorborder,"background-clip":"padding-box","-webkit-border-radius":T.cursorborderradius,"-moz-border-radius":T.cursorborderradius,"border-radius":T.cursorborderradius}),d.addClass("nicescroll-cursors"),C.cursor=d;var h=r(a.createElement("div"));h.attr("id",C.id),h.addClass("nicescroll-rails nicescroll-rails-vr");var p,u,g=["left","right","top","bottom"];for(var m in g)u=g[m],(p=T.railpadding[u]||0)&&h.css("padding-"+u,p+"px");h.append(d),h.width=Math.max(parseFloat(T.cursorwidth),d.outerWidth()),h.css({width:h.width+"px",zIndex:C.zindex,background:T.background,cursor:"default"}),h.visibility=!0,h.scrollable=!0,h.align="left"==T.railalign?0:1,C.rail=h,C.rail.drag=!1;var v=!1;!T.boxzoom||C.ispage||z.isieold||(v=a.createElement("div"),C.bind(v,"click",C.doZoom),C.bind(v,"mouseenter",function(){C.zoom.css("opacity",T.cursoropacitymax)}),C.bind(v,"mouseleave",function(){C.zoom.css("opacity",T.cursoropacitymin)}),C.zoom=r(v),C.zoom.css({cursor:"pointer",zIndex:C.zindex,backgroundImage:"url("+T.scriptpath+"zoomico.png)",height:18,width:18,backgroundPosition:"0 0"}),T.dblclickzoom&&C.bind(C.win,"dblclick",C.doZoom),z.cantouch&&T.gesturezoom&&(C.ongesturezoom=function(t){return t.scale>1.5&&C.doZoomIn(t),t.scale<.8&&C.doZoomOut(t),C.cancelEvent(t)},C.bind(C.win,"gestureend",C.ongesturezoom))),C.railh=!1;var _;if(T.horizrailenabled&&(C.css(s,{overflowX:"hidden"}),(d=r(a.createElement("div"))).css({position:"absolute",top:0,height:T.cursorwidth,width:0,backgroundColor:T.cursorcolor,border:T.cursorborder,backgroundClip:"padding-box","-webkit-border-radius":T.cursorborderradius,"-moz-border-radius":T.cursorborderradius,"border-radius":T.cursorborderradius}),z.isieold&&d.css("overflow","hidden"),d.addClass("nicescroll-cursors"),C.cursorh=d,(_=r(a.createElement("div"))).attr("id",C.id+"-hr"),_.addClass("nicescroll-rails nicescroll-rails-hr"),_.height=Math.max(parseFloat(T.cursorwidth),d.outerHeight()),_.css({height:_.height+"px",zIndex:C.zindex,background:T.background}),_.append(d),_.visibility=!0,_.scrollable=!0,_.align="top"==T.railvalign?0:1,C.railh=_,C.railh.drag=!1),C.ispage)h.css({position:"fixed",top:0,height:"100%"}),h.css(h.align?{right:0}:{left:0}),C.body.append(h),C.railh&&(_.css({position:"fixed",left:0,width:"100%"}),_.css(_.align?{bottom:0}:{top:0}),C.body.append(_));else{if(C.ishwscroll){"static"==C.win.css("position")&&C.css(C.win,{position:"relative"});var b="HTML"==C.win[0].nodeName?C.body:C.win;r(b).scrollTop(0).scrollLeft(0),C.zoom&&(C.zoom.css({position:"absolute",top:1,right:0,"margin-right":h.width+4}),b.append(C.zoom)),h.css({position:"absolute",top:0}),h.css(h.align?{right:0}:{left:0}),b.append(h),_&&(_.css({position:"absolute",left:0,bottom:0}),_.css(_.align?{bottom:0}:{top:0}),b.append(_))}else{C.isfixed="fixed"==C.win.css("position");var x=C.isfixed?"fixed":"absolute";C.isfixed||(C.viewport=C.getViewport(C.win[0])),C.viewport&&(C.body=C.viewport,/fixed|absolute/.test(C.viewport.css("position"))||C.css(C.viewport,{position:"relative"})),h.css({position:x}),C.zoom&&C.zoom.css({position:x}),C.updateScrollBar(),C.body.append(h),C.zoom&&C.body.append(C.zoom),C.railh&&(_.css({position:x}),C.body.append(_))}z.isios&&C.css(C.win,{"-webkit-tap-highlight-color":"rgba(0,0,0,0)","-webkit-touch-callout":"none"}),T.disableoutline&&(z.isie&&C.win.attr("hideFocus","true"),z.iswebkit&&C.win.css("outline","none"))}if(!1===T.autohidemode?(C.autohidedom=!1,C.rail.css({opacity:T.curs
1oropacitymax}),C.railh&&C.railh.css({opacity:T.cursoropacitymax})):!0===T.autohidemode||"leave"===T.autohidemode?(C.autohidedom=r().add(C.rail),z.isie8&&(C.autohidedom=C.autohidedom.add(C.cursor)),C.railh&&(C.autohidedom=C.autohidedom.add(C.railh)),C.railh&&z.isie8&&(C.autohidedom=C.autohidedom.add(C.cursorh))):"scroll"==T.autohidemode?(C.autohidedom=r().add(C.rail),C.railh&&(C.autohidedom=C.autohidedom.add(C.railh))):"cursor"==T.autohidemode?(C.autohidedom=r().add(C.cursor),C.railh&&(C.autohidedom=C.autohidedom.add(C.cursorh))):"hidden"==T.autohidemode&&(C.autohidedom=!1,C.hide(),C.railslocked=!1),z.cantouch||C.istouchcapable||T.emulatetouch||z.hasmstouch){C.scrollmom=new y(C),C.ontouchstart=function(t){if(C.locked)return!1;if(t.pointerType&&("mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE))return!1;if(C.hasmoving=!1,C.scrollmom.timer&&(C.triggerScrollEnd(),C.scrollmom.stop()),!C.railslocked){var e=C.getTarget(t);if(e&&/INPUT/i.test(e.nodeName)&&/range/i.test(e.type))return C.stopPropagation(t);var i="mousedown"===t.type;if(!("clientX"in t)&&"changedTouches"in t&&(t.clientX=t.changedTouches[0].clientX,t.clientY=t.changedTouches[0].clientY),C.forcescreen){var o=t;(t={original:t.original?t.original:t}).clientX=o.screenX,t.clientY=o.screenY}if(C.rail.drag={x:t.clientX,y:t.clientY,sx:C.scroll.x,sy:C.scroll.y,st:C.getScrollTop(),sl:C.getScrollLeft(),pt:2,dl:!1,tg:e},C.ispage||!T.directionlockdeadzone)C.rail.drag.dl="f";else{var s={w:c.width(),h:c.height()},n=C.getContentSize(),a=n.h-s.h,l=n.w-s.w;C.rail.scrollable&&!C.railh.scrollable?C.rail.drag.ck=a>0&&"v":!C.rail.scrollable&&C.railh.scrollable?C.rail.drag.ck=l>0&&"h":C.rail.drag.ck=!1}if(T.emulatetouch&&C.isiframe&&z.isie){var d=C.win.position();C.rail.drag.x+=d.left,C.rail.drag.y+=d.top}if(C.hasmoving=!1,C.lastmouseup=!1,C.scrollmom.reset(t.clientX,t.clientY),e&&i){if(!/INPUT|SELECT|BUTTON|TEXTAREA/i.test(e.nodeName))return z.hasmousecapture&&e.setCapture(),T.emulatetouch?(e.onclick&&!e._onclick&&(e._onclick=e.onclick,e.onclick=function(t){if(C.hasmoving)return!1;e._onclick.call(this,t)}),C.cancelEvent(t)):C.stopPropagation(t);/SUBMIT|CANCEL|BUTTON/i.test(r(e).attr("type"))&&(C.preventclick={tg:e,click:!1})}}},C.ontouchend=function(t){if(!C.rail.drag)return!0;if(2==C.rail.drag.pt){if(t.pointerType&&("mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE))return!1;C.rail.drag=!1;var e="mouseup"===t.type;if(C.hasmoving&&(C.scrollmom.doMomentum(),C.lastmouseup=!0,C.hideCursor(),z.hasmousecapture&&a.releaseCapture(),e))return C.cancelEvent(t)}else if(1==C.rail.drag.pt)return C.onmouseup(t)};var k=T.emulatetouch&&C.isiframe&&!z.hasmousecapture,S=.3*T.directionlockdeadzone|0;C.ontouchmove=function(t,e){if(!C.rail.drag)return!0;if(t.targetTouches&&T.preventmultitouchscrolling&&t.targetTouches.length>1)return!0;if(t.pointerType&&("mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE))return!0;if(2==C.rail.drag.pt){"changedTouches"in t&&(t.clientX=t.changedTouches[0].clientX,t.clientY=t.changedTouches[0].clientY);var i,o;if(o=i=0,k&&!e){var s=C.win.position();o=-s.left,i=-s.top}var n=t.clientY+i,r=n-C.rail.drag.y,l=t.clientX+o,c=l-C.rail.drag.x,d=C.rail.drag.st-r;if(C.ishwscroll&&T.bouncescroll)d<0?d=Math.round(d/2):d>C.page.maxh&&(d=C.page.maxh+Math.round((d-C.page.maxh)/2));else if(d<0?(d=0,n=0):d>C.page.maxh&&(d=C.page.maxh,n=0),0===n&&!C.hasmoving)return C.ispage||(C.rail.drag=!1),!0;var h=C.getScrollLeft();if(C.railh&&C.railh.scrollable&&(h=C.isrtlmode?c-C.rail.drag.sl:C.rail.drag.sl-c,C.ishwscroll&&T.bouncescroll?h<0?h=Math.round(h/2):h>C.page.maxw&&(h=C.page.maxw+Math.round((h-C.page.maxw)/2)):(h<0&&(h=0,l=0),h>C.page.maxw&&(h=C.page.maxw,l=0))),!C.hasmoving){if(C.rail.drag.y===t.clientY&&C.rail.drag.x===t.clientX)return C.cancelEvent(t);var p=Math.abs(r),u=Math.abs(c),f=T.directionlockdeadzone;if(C.rail.drag.ck?"v"==C.rail.drag.ck?u>f&&p<=S?C.rail.drag=!1:p>f&&(C.rail.drag.dl="v"):"h"==C.rail.drag.ck&&(p>f&&u<=S?C.rail.drag=!1:u>f&&(C.rail.drag.dl="h")):p>f&&u>f?C.rail.drag.dl="f":p>f?C.rail.drag.dl=u>S?"f":"v":u>f&&(C.rail.drag.dl=p>S?"f":"h"),!C.rail.drag.dl)return C.cancelEvent(t);C.triggerScrollStart(t.clientX,t.clientY,0,0,0),C.hasmoving=!0}return C.preventclick&&!C.preventclick.click&&(C.preventclick.click=C.preventclick.tg.oncl
1ick||!1,C.preventclick.tg.onclick=C.onpreventclick),C.rail.drag.dl&&("v"==C.rail.drag.dl?h=C.rail.drag.sl:"h"==C.rail.drag.dl&&(d=C.rail.drag.st)),C.synched("touchmove",function(){C.rail.drag&&2==C.rail.drag.pt&&(C.prepareTransition&&C.resetTransition(),C.rail.scrollable&&C.setScrollTop(d),C.scrollmom.update(l,n),C.railh&&C.railh.scrollable?(C.setScrollLeft(h),C.showCursor(d,h)):C.showCursor(d),z.isie10&&a.selection.clear())}),C.cancelEvent(t)}return 1==C.rail.drag.pt?C.onmousemove(t):void 0},C.ontouchstartCursor=function(t,e){if(!C.rail.drag||3==C.rail.drag.pt){if(C.locked)return C.cancelEvent(t);C.cancelScroll(),C.rail.drag={x:t.touches[0].clientX,y:t.touches[0].clientY,sx:C.scroll.x,sy:C.scroll.y,pt:3,hr:!!e};var i=C.getTarget(t);return!C.ispage&&z.hasmousecapture&&i.setCapture(),C.isiframe&&!z.hasmousecapture&&(C.saved.csspointerevents=C.doc.css("pointer-events"),C.css(C.doc,{"pointer-events":"none"})),C.cancelEvent(t)}},C.ontouchendCursor=function(t){if(C.rail.drag){if(z.hasmousecapture&&a.releaseCapture(),C.isiframe&&!z.hasmousecapture&&C.doc.css("pointer-events",C.saved.csspointerevents),3!=C.rail.drag.pt)return;return C.rail.drag=!1,C.cancelEvent(t)}},C.ontouchmoveCursor=function(t){if(C.rail.drag){if(3!=C.rail.drag.pt)return;if(C.cursorfreezed=!0,C.rail.drag.hr){C.scroll.x=C.rail.drag.sx+(t.touches[0].clientX-C.rail.drag.x),C.scroll.x<0&&(C.scroll.x=0);var e=C.scrollvaluemaxw;C.scroll.x>e&&(C.scroll.x=e)}else{C.scroll.y=C.rail.drag.sy+(t.touches[0].clientY-C.rail.drag.y),C.scroll.y<0&&(C.scroll.y=0);var i=C.scrollvaluemax;C.scroll.y>i&&(C.scroll.y=i)}return C.synched("touchmove",function(){C.rail.drag&&3==C.rail.drag.pt&&(C.showCursor(),C.rail.drag.hr?C.doScrollLeft(Math.round(C.scroll.x*C.scrollratio.x),T.cursordragspeed):C.doScrollTop(Math.round(C.scroll.y*C.scrollratio.y),T.cursordragspeed))}),C.cancelEvent(t)}}}if(C.onmousedown=function(t,e){if(!C.rail.drag||1==C.rail.drag.pt){if(C.railslocked)return C.cancelEvent(t);C.cancelScroll(),C.rail.drag={x:t.clientX,y:t.clientY,sx:C.scroll.x,sy:C.scroll.y,pt:1,hr:e||!1};var i=C.getTarget(t);return z.hasmousecapture&&i.setCapture(),C.isiframe&&!z.hasmousecapture&&(C.saved.csspointerevents=C.doc.css("pointer-events"),C.css(C.doc,{"pointer-events":"none"})),C.hasmoving=!1,C.cancelEvent(t)}},C.onmouseup=function(t){if(C.rail.drag)return 1!=C.rail.drag.pt||(z.hasmousecapture&&a.releaseCapture(),C.isiframe&&!z.hasmousecapture&&C.doc.css("pointer-events",C.saved.csspointerevents),C.rail.drag=!1,C.cursorfreezed=!1,C.hasmoving&&C.triggerScrollEnd(),C.cancelEvent(t))},C.onmousemove=function(t){if(C.rail.drag){if(1!==C.rail.drag.pt)return;if(z.ischrome&&0===t.which)return C.onmouseup(t);if(C.cursorfreezed=!0,C.hasmoving||C.triggerScrollStart(t.clientX,t.clientY,0,0,0),C.hasmoving=!0,C.rail.drag.hr){C.scroll.x=C.rail.drag.sx+(t.clientX-C.rail.drag.x),C.scroll.x<0&&(C.scroll.x=0);var e=C.scrollvaluemaxw;C.scroll.x>e&&(C.scroll.x=e)}else{C.scroll.y=C.rail.drag.sy+(t.clientY-C.rail.drag.y),C.scroll.y<0&&(C.scroll.y=0);var i=C.scrollvaluemax;C.scroll.y>i&&(C.scroll.y=i)}return C.synched("mousemove",function(){C.cursorfreezed&&(C.showCursor(),C.rail.drag.hr?C.scrollLeft(Math.round(C.scroll.x*C.scrollratio.x)):C.scrollTop(Math.round(C.scroll.y*C.scrollratio.y)))}),C.cancelEvent(t)}C.checkarea=0},z.cantouch||T.emulatetouch)C.onpreventclick=function(t){if(C.preventclick)return C.preventclick.tg.onclick=C.preventclick.click,C.preventclick=!1,C.cancelEvent(t)},C.onclick=!z.isios&&function(t){return!C.lastmouseup||(C.lastmouseup=!1,C.cancelEvent(t))},T.grabcursorenabled&&z.cursorgrabvalue&&(C.css(C.ispage?C.doc:C.win,{cursor:z.cursorgrabvalue}),C.css(C.rail,{cursor:z.cursorgrabvalue}));else{var D=function(t){if(C.selectiondrag){if(t){var e=C.win.outerHeight(),i=t.pageY-C.selectiondrag.top;i>0&&i<e&&(i=0),i>=e&&(i-=e),C.selectiondrag.df=i}if(0!==C.selectiondrag.df){var o=-2*C.selectiondrag.df/6|0;C.doScrollBy(o),C.debounced("doselectionscroll",function(){D()},50)}}};C.hasTextSelected="getSelection"in a?function(){return a.getSelection().rangeCount>0}:"selection"in a?function(){return"None"!=a.selection.type}:function(){return!1},C.onselectionstart=function(t){C.ispage||(C.selectiondrag=C.win.offset())},C.onselectionend=function(t){C.selectiondrag=!1},C.onselectiondrag=function(t){C.selectiondrag&&C.hasTextSelected()&&C.debounced("selectionscroll",function(){D(t)},250)}}if(z.hasw3ctouch?(C.css(C.ispage?r("html"):C.win,{"touch-action":"none"}),C.css(C.rail,{"touch-action":"none"}),C.css(C.cursor,{"touch-action":"none"}),C.bind(C.win,"pointerdown",C.ontouchstart),C.bind(a,"pointerup",C.ontouchend),C.delegate(a,"pointermove",C.ontouchmove)):z.hasmstouch?(C.css(C.ispage?r("html"):C.win,{"-ms-touch-action":"none"}),C.css(C.rail,{"-ms-touch-action":"none"}),C.css(C.cursor,{"-ms-touch-action":"none"}),C.bind(C.win,"MSPointerDown",C.ontouchstart),C.bind(a,"MSPointerUp",C.ontouchend),C.delegate(a,"MSPointerMove",C.ontouchmove),C.bind(C.cursor,"MSGestureHold",function(t){t.preventDefault()}),C.bind(C.cursor,"contextmenu",function(t){t.preventDefault()})):z.cantouch&&(C.bind(C.win,"touchstart",C.ontouchstart,!1,!0),C.bind(a,"touchend",C.ontouchend,!1,!0),C.bind(a,"touchcancel",C.ontouchend,!1,!0),C.delegate(a,"touchmove",C.ontouchmove,!1,!0)),T.emulatetouch&&(C.bind(C.win,"mousedown",C.ontouchstart,!1,!0),C.bind(a,"mouseup",C.ontouchend,!1,!0),C.bind(a,"mousemove",C.ontouchmove,!1,!0)),(T.cursordragontouch||!z.cantouch&&!T.emulatetouch)&&(C.rail.css({cursor:"default"}),C.railh&&C.railh.css({cursor:"default"}),C.jqbind(C.rail,"mouseenter",function(){if(!C.ispage&&!C.win.is(":visible"))return!1;C.canshowonmouseevent&&C.showCursor(),C.rail.active=!0}
1),C.jqbind(C.rail,"mouseleave",function(){C.rail.active=!1,C.rail.drag||C.hideCursor()}),T.sensitiverail&&(C.bind(C.rail,"click",function(t){C.doRailClick(t,!1,!1)}),C.bind(C.rail,"dblclick",function(t){C.doRailClick(t,!0,!1)}),C.bind(C.cursor,"click",function(t){C.cancelEvent(t)}),C.bind(C.cursor,"dblclick",function(t){C.cancelEvent(t)})),C.railh&&(C.jqbind(C.railh,"mouseenter",function(){if(!C.ispage&&!C.win.is(":visible"))return!1;C.canshowonmouseevent&&C.showCursor(),C.rail.active=!0}),C.jqbind(C.railh,"mouseleave",function(){C.rail.active=!1,C.rail.drag||C.hideCursor()}),T.sensitiverail&&(C.bind(C.railh,"click",function(t){C.doRailClick(t,!1,!0)}),C.bind(C.railh,"dblclick",function(t){C.doRailClick(t,!0,!0)}),C.bind(C.cursorh,"click",function(t){C.cancelEvent(t)}),C.bind(C.cursorh,"dblclick",function(t){C.cancelEvent(t)})))),T.cursordragontouch&&(this.istouchcapable||z.cantouch)&&(C.bind(C.cursor,"touchstart",C.ontouchstartCursor),C.bind(C.cursor,"touchmove",C.ontouchmoveCursor),C.bind(C.cursor,"touchend",C.ontouchendCursor),C.cursorh&&C.bind(C.cursorh,"touchstart",function(t){C.ontouchstartCursor(t,!0)}),C.cursorh&&C.bind(C.cursorh,"touchmove",C.ontouchmoveCursor),C.cursorh&&C.bind(C.cursorh,"touchend",C.ontouchendCursor)),T.emulatetouch||z.isandroid||z.isios?(C.bind(z.hasmousecapture?C.win:a,"mouseup",C.ontouchend),C.onclick&&C.bind(a,"click",C.onclick),T.cursordragontouch?(C.bind(C.cursor,"mousedown",C.onmousedown),C.bind(C.cursor,"mouseup",C.onmouseup),C.cursorh&&C.bind(C.cursorh,"mousedown",function(t){C.onmousedown(t,!0)}),C.cursorh&&C.bind(C.cursorh,"mouseup",C.onmouseup)):(C.bind(C.rail,"mousedown",function(t){t.preventDefault()}),C.railh&&C.bind(C.railh,"mousedown",function(t){t.preventDefault()}))):(C.bind(z.hasmousecapture?C.win:a,"mouseup",C.onmouseup),C.bind(a,"mousemove",C.onmousemove),C.onclick&&C.bind(a,"click",C.onclick),C.bind(C.cursor,"mousedown",C.onmousedown),C.bind(C.cursor,"mouseup",C.onmouseup),C.railh&&(C.bind(C.cursorh,"mousedown",function(t){C.onmousedown(t,!0)}),C.bind(C.cursorh,"mouseup",C.onmouseup)),!C.ispage&&T.enablescrollonselection&&(C.bind(C.win[0],"mousedown",C.onselectionstart),C.bind(a,"mouseup",C.onselectionend),C.bind(C.cursor,"mouseup",C.onselectionend),C.cursorh&&C.bind(C.cursorh,"mouseup",C.onselectionend),C.bind(a,"mousemove",C.onselectiondrag)),C.zoom&&(C.jqbind(C.zoom,"mouseenter",function(){C.canshowonmouseevent&&C.showCursor(),C.rail.active=!0}),C.jqbind(C.zoom,"mouseleave",function(){C.rail.active=!1,C.rail.drag||C.hideCursor()}))),T.enablemousewheel&&(C.isiframe||C.mousewheel(z.isie&&C.ispage?a:C.win,C.onmousewheel),C.mousewheel(C.rail,C.onmousewheel),C.railh&&C.mousewheel(C.railh,C.onmousewheelhr)),C.ispage||z.cantouch||/HTML|^BODY/.test(C.win[0].nodeName)||(C.win.attr("tabindex")||C.win.attr({tabindex:++o}),C.bind(C.win,"focus",function(t){e=C.getTarget(t).id||C.getTarget(t)||!1,C.hasfocus=!0,C.canshowonmouseevent&&C.noticeCursor()}),C.bind(C.win,"blur",function(t){e=!1,C.hasfocus=!1}),C.bind(C.win,"mouseenter",function(t){i=C.getTarget(t).id||C.getTarget(t)||!1,C.hasmousefocus=!0,C.canshowonmouseevent&&C.noticeCursor()}),C.bind(C.win,"mouseleave",function(t){i=!1,C.hasmousefocus=!1,C.rail.drag||C.hideCursor()})),C.onkeypress=function(t){if(C.railslocked&&0===C.page.maxh)return!0;t=t||l.event;var o=C.getTarget(t);if(o&&/INPUT|TEXTAREA|SELECT|OPTION/.test(o.nodeName)&&(!o.getAttribute("type")&&!o.type||!/submit|button|cancel/i.tp))return!0;if(r(o).attr("contenteditable"))return!0;if(C.hasfocus||C.hasmousefocus&&!e||C.ispage&&!e&&!i){var s=t.keyCode;if(C.railslocked&&27!=s)return C.cancelEvent(t);var n=t.ctrlKey||!1,a=t.shiftKey||!1,c=!1;switch(s){case 38:case 63233:C.doScrollBy(72),c=!0;break;case 40:case 63235:C.doScrollBy(-72),c=!0;break;case 37:case 63232:C.railh&&(n?C.doScrollLeft(0):C.doScrollLeftBy(72),c=!0);break;case 39:case 63234:C.railh&&(n?C.doScrollLeft(C.page.maxw):C.doScrollLeftBy(-72),c=!0);break;case 33:case 63276:C.doScrollBy(C.view.h),c=!0;break;case 34:case 63277:C.doScrollBy(-C.view.h),c=!0;break;case 36:case 63273:C.railh&&n?C.doScrollPos(0,0):C.doScrollTo(0),c=!0;break;
1case 35:case 63275:C.railh&&n?C.doScrollPos(C.page.maxw,C.page.maxh):C.doScrollTo(C.page.maxh),c=!0;break;case 32:T.spacebarenabled&&(a?C.doScrollBy(C.view.h):C.doScrollBy(-C.view.h),c=!0);break;case 27:C.zoomactive&&(C.doZoom(),c=!0)}if(c)return C.cancelEvent(t)}},T.enablekeyboard&&C.bind(a,z.isopera&&!z.isopera12?"keypress":"keydown",C.onkeypress),C.bind(a,"keydown",function(t){(t.ctrlKey||!1)&&(C.wheelprevented=!0)}),C.bind(a,"keyup",function(t){t.ctrlKey||!1||(C.wheelprevented=!1)}),C.bind(l,"blur",function(t){C.wheelprevented=!1}),C.bind(l,"resize",C.onscreenresize),C.bind(l,"orientationchange",C.onscreenresize),C.bind(l,"load",C.lazyResize),z.ischrome&&!C.ispage&&!C.haswrapper){var E=C.win.attr("style"),O=parseFloat(C.win.css("width"))+1;C.win.css("width",O),C.synched("chromefix",function(){C.win.attr("style",E)})}if(C.onAttributeChange=function(t){C.lazyResize(C.isieold?250:30)},T.enableobserver&&(C.isie11||!1===f||(C.observerbody=new f(function(t){if(t.forEach(function(t){if("attributes"==t.type)return $.hasClass("modal-open")&&$.hasClass("modal-dialog")&&!r.contains(r(".modal-dialog")[0],C.doc[0])?C.hide():C.show()}),C.me.clientWidth!=C.page.width||C.me.clientHeight!=C.page.height)return C.lazyResize(30)}),C.observerbody.observe(a.body,{childList:!0,subtree:!0,characterData:!1,attributes:!0,attributeFilter:["class"]})),!C.ispage&&!C.haswrapper)){var M=C.win[0];!1!==f?(C.observer=new f(function(t){t.forEach(C.onAttributeChange)}),C.observer.observe(M,{childList:!0,characterData:!1,attributes:!0,subtree:!1}),C.observerremover=new f(function(t){t.forEach(function(t){if(t.removedNodes.length>0)for(var e in t.removedNodes)if(C&&t.removedNodes[e]===M)return C.remove()})}),C.observerremover.observe(M.parentNode,{childList:!0,characterData:!1,attributes:!1,subtree:!1})):(C.bind(M,z.isie&&!z.isie9?"propertychange":"DOMAttrModified",C.onAttributeChange),z.isie9&&M.attachEvent("onpropertychange",C.onAttributeChange),C.bind(M,"DOMNodeRemoved",function(t){t.target===M&&C.remove()}))}!C.ispage&&T.boxzoom&&C.bind(l,"resize",C.resizeZoom),C.istextarea&&(C.bind(C.win,"keydown",C.lazyResize),C.bind(C.win,"mouseup",C.lazyResize)),C.lazyResize(30)}if("IFRAME"==this.doc[0].nodeName){var A=function(){C.iframexd=!1;var e;try{(e="contentDocument"in this?this.contentDocument:this.contentWindow._doc).domain}catch(t){C.iframexd=!0,e=!1}if(C.iframexd)return"console"in l&&console.log("NiceScroll error: policy restriced iframe"),!0;if(C.forcescreen=!0,C.isiframe&&(C.iframe={doc:r(e),html:C.doc.contents().find("html")[0],body:C.doc.contents().find("body")[0]},C.getContentSize=function(){return{w:Math.max(C.iframe.html.scrollWidth,C.iframe.body.scrollWidth),h:Math.max(C.iframe.html.scrollHeight,C.iframe.body.scrollHeight)}},C.docscroll=r(C.iframe.body)),!z.isios&&T.iframeautoresize&&!C.isiframe){C.win.scrollTop(0),C.doc.height("");var i=Math.max(e.getElementsByTagName("html")[0].scrollHeight,e.body.scrollHeight);C.doc.height(i)}C.lazyResize(30),C.css(r(C.iframe.body),t),z.isios&&C.haswrapper&&C.css(r(e.body),{"-webkit-transform":"translate3d(0,0,0)"}),"contentWindow"in this?C.bind(this.contentWindow,"scroll",C.onscroll):C.bind(e,"scroll",C.onscroll),T.enablemousewheel&&C.mousewheel(e,C.onmousewheel),T.enablekeyboard&&C.bind(e,z.isopera?"keypress":"keydown",C.onkeypress),z.cantouch?(C.bind(e,"touchstart",C.ontouchstart),C.bind(e,"touchmove",C.ontouchmove)):T.emulatetouch&&(C.bind(e,"mousedown",C.ontouchstart),C.bind(e,"mousemove",function(t){return C.ontouchmove(t,!0)}),T.grabcursorenabled&&z.cursorgrabvalue&&C.css(r(e.body),{cursor:z.cursorgrabvalue})),C.bind(e,"mouseup",C.ontouchend),C.zoom&&(T.dblclickzoom&&C.bind(e,"dblclick",C.doZoom),C.ongesturezoom&&C.bind(e,"gestureend",C.ongesturezoom))};this.doc[0].readyState&&"complete"===this.doc[0].readyState&&setTimeout(function(){A.call(C.doc[0],!1)},500),C.bind(this.doc,"load",A)}},this.showCursor=function(t,e){if(C.cursortimeout&&(clearTimeout(C.cursortimeout),C.cursortimeout=0),C.rail){if(C.autohidedom&&(C.autohidedom.stop().css({opacity:T.cursoropacitymax}),C.cursoractive=!0),C.rail.drag&&1==C.rail.drag.pt||(void 0!==t&&!1!==t&&(C.scroll.y=t/C.scrollratio.y|0),void 0!==e&&(C.scroll.x=e/C.scrollratio.x|0)),C.cursor.css({height:C.cursorheight,top:C.scroll.y}),C.cursorh){var i=C.hasreversehr?C.scrollvaluemaxw-C.scroll.x:C.scroll.x;C.cursorh.css({width:C.cursorwidth,left:!C.rail.align&&C.rail.visibility?i+C.rail.width:i}),C.cursoractive=!0}
1C.zoom&&C.zoom.stop().css({opacity:T.cursoropacitymax})}},this.hideCursor=function(t){C.cursortimeout||C.rail&&C.autohidedom&&(C.hasmousefocus&&"leave"===T.autohidemode||(C.cursortimeout=setTimeout(function(){C.rail.active&&C.showonmouseevent||(C.autohidedom.stop().animate({opacity:T.cursoropacitymin}),C.zoom&&C.zoom.stop().animate({opacity:T.cursoropacitymin}),C.cursoractive=!1),C.cursortimeout=0},t||T.hidecursordelay)))},this.noticeCursor=function(t,e,i){C.showCursor(e,i),C.rail.active||C.hideCursor(t)},this.getContentSize=C.ispage?function(){return{w:Math.max(a.body.scrollWidth,a.documentElement.scrollWidth),h:Math.max(a.body.scrollHeight,a.documentElement.scrollHeight)}}:C.haswrapper?function(){return{w:C.doc[0].offsetWidth,h:C.doc[0].offsetHeight}}:function(){return{w:C.docscroll[0].scrollWidth,h:C.docscroll[0].scrollHeight}},this.onResize=function(t,e){if(!C||!C.win)return!1;var i=C.page.maxh,o=C.page.maxw,s=C.view.h,n=C.view.w;if(C.view={w:C.ispage?C.win.width():C.win[0].clientWidth,h:C.ispage?C.win.height():C.win[0].clientHeight},C.page=e||C.getContentSize(),C.page.maxh=Math.max(0,C.page.h-C.view.h),C.page.maxw=Math.max(0,C.page.w-C.view.w),C.page.maxh==i&&C.page.maxw==o&&C.view.w==n&&C.view.h==s){if(C.ispage)return C;var r=C.win.offset();if(C.lastposition){var a=C.lastposition;if(a.top==r.top&&a.left==r.left)return C}C.lastposition=r}return 0===C.page.maxh?(C.hideRail(),C.scrollvaluemax=0,C.scroll.y=0,C.scrollratio.y=0,C.cursorheight=0,C.setScrollTop(0),C.rail&&(C.rail.scrollable=!1)):(C.page.maxh-=T.railpadding.top+T.railpadding.bottom,C.rail.scrollable=!0),0===C.page.maxw?(C.hideRailHr(),C.scrollvaluemaxw=0,C.scroll.x=0,C.scrollratio.x=0,C.cursorwidth=0,C.setScrollLeft(0),C.railh&&(C.railh.scrollable=!1)):(C.page.maxw-=T.railpadding.left+T.railpadding.right,C.railh&&(C.railh.scrollable=T.horizrailenabled)),C.railslocked=C.locked||0===C.page.maxh&&0===C.page.maxw,C.railslocked?(C.ispage||C.updateScrollBar(C.view),!1):(C.hidden||(C.rail.visibility||C.showRail(),C.railh&&!C.railh.visibility&&C.showRailHr()),C.istextarea&&C.win.css("resize")&&"none"!=C.win.css("resize")&&(C.view.h-=20),C.cursorheight=Math.min(C.view.h,Math.round(C.view.h*(C.view.h/C.page.h))),C.cursorheight=T.cursorfixedheight?T.cursorfixedheight:Math.max(T.cursorminheight,C.cursorheight),C.cursorwidth=Math.min(C.view.w,Math.round(C.view.w*(C.view.w/C.page.w))),C.cursorwidth=T.cursorfixedheight?T.cursorfixedheight:Math.max(T.cursorminheight,C.cursorwidth),C.scrollvaluemax=C.view.h-C.cursorheight-(T.railpadding.top+T.railpadding.bottom),C.hasborderbox||(C.scrollvaluemax-=C.cursor[0].offsetHeight-C.cursor[0].clientHeight),C.railh&&(C.railh.width=C.page.maxh>0?C.view.w-C.rail.width:C.view.w,C.scrollvaluemaxw=C.railh.width-C.cursorwidth-(T.railpadding.left+T.railpadding.right)),C.ispage||C.updateScrollBar(C.view),C.scrollratio={x:C.page.maxw/C.scrollvaluemaxw,y:C.page.maxh/C.scrollvaluemax},C.getScrollTop()>C.page.maxh?C.doScrollTop(C.page.maxh):(C.scroll.y=C.getScrollTop()/C.scrollratio.y|0,C.scroll.x=C.getScrollLeft()/C.scrollratio.x|0,C.cursoractive&&C.noticeCursor()),C.scroll.y&&0===C.getScrollTop()&&C.doScrollTo(C.scroll.y*C.scrollratio.y|0),C)},this.resize=C.onResize;var I=0;this.onscreenresize=function(t){clearTimeout(I);var e=!C.ispage&&!C.haswrapper;e&&C.hideRails(),I=setTimeout(function(){C&&(e&&C.showRails(),C.resize()),I=0},120)},this.lazyResize=function(t){return clearTimeout(I),t=isNaN(t)?240:t,I=setTimeout(function(){C&&C.resize(),I=0},t),C},this.jqbind=function(t,e,i){C.events.push({e:t,n:e,f:i,q:!0}),r(t).on(e,i)},this.mousewheel=function(t,e,i){var o="jquery"in t?t[0]:t;if("onwheel"in a.createElement("div"))C._bind(o,"wheel",e,i||!1);else{var s=void 0!==a.onmousewheel?"mousewheel":"DOMMouseScroll";x(o,s,e,i||!1),"DOMMouseScroll"==s&&x(o,"MozMousePixelScroll",e,i||!1)}};var L=!1;if(z.haseventlistener){try{var N=Object.defineProperty({},"passive",{get:function(){L=!0}});l.addEventListener("test",null,N)}catch(t){}this.stopPropagation=function(t){return!!t&&((t=t.original?t.original:t).stopPropagation(),!1)},this.cancelEvent=function(t){return t.cancelable&&t.preventDefault(),t.stopImmediatePropagation(),t.preventManipulation&&t.preventManipulation(),!1}}else Event.prototype.preventDefault=function(){this.returnValue=!1},Event.prototype.stopPropagation=function(){this.cancelBubble=!0},l.constructor.prototype.addEventListener=a.constructor.prototype.addEventListener=Element.prototype.addEventListener=function(t,e,
1i){this.attachEvent("on"+t,e)},l.constructor.prototype.removeEventListener=a.constructor.prototype.removeEventListener=Element.prototype.removeEventListener=function(t,e,i){this.detachEvent("on"+t,e)},this.cancelEvent=function(t){return(t=t||l.event)&&(t.cancelBubble=!0,t.cancel=!0,t.returnValue=!1),!1},this.stopPropagation=function(t){return(t=t||l.event)&&(t.cancelBubble=!0),!1};this.delegate=function(t,e,i,o,s){var n=d[e]||!1;n||(n={a:[],l:[],f:function(t){for(var e=n.l,i=!1,o=e.length-1;o>=0;o--)if(!1===(i=e[o].call(t.target,t)))return!1;return i}},C.bind(t,e,n.f,o,s),d[e]=n),C.ispage?(n.a=[C.id].concat(n.a),n.l=[i].concat(n.l)):(n.a.push(C.id),n.l.push(i))},this.undelegate=function(t,e,i,o,s){var n=d[e]||!1;if(n&&n.l)for(var r=0,a=n.l.length;r<a;r++)n.a[r]===C.id&&(n.a.splice(r),n.l.splice(r),0===n.a.length&&(C._unbind(t,e,n.l.f),d[e]=null))},this.bind=function(t,e,i,o,s){var n="jquery"in t?t[0]:t;C._bind(n,e,i,o||!1,s||!1)},this._bind=function(t,e,i,o,s){C.events.push({e:t,n:e,f:i,b:o,q:!1}),L&&s?t.addEventListener(e,i,{passive:!1,capture:o}):t.addEventListener(e,i,o||!1)},this._unbind=function(t,e,i,o){d[e]?C.undelegate(t,e,i,o):t.removeEventListener(e,i,o)},this.unbindAll=function(){for(var t=0;t<C.events.length;t++){var e=C.events[t];e.q?e.e.unbind(e.n,e.f):C._unbind(e.e,e.n,e.f,e.b)}},this.showRails=function(){return C.showRail().showRailHr()},this.showRail=function(){return 0===C.page.maxh||!C.ispage&&"none"==C.win.css("display")||(C.rail.visibility=!0,C.rail.css("display","block")),C},this.showRailHr=function(){return C.railh&&(0===C.page.maxw||!C.ispage&&"none"==C.win.css("display")||(C.railh.visibility=!0,C.railh.css("display","block"))),C},this.hideRails=function(){return C.hideRail().hideRailHr()},this.hideRail=function(){return C.rail.visibility=!1,C.rail.css("display","none"),C},this.hideRailHr=function(){return C.railh&&(C.railh.visibility=!1,C.railh.css("display","none")),C},this.show=function(){return C.hidden=!1,C.railslocked=!1,C.showRails()},this.hide=function(){return C.hidden=!0,C.railslocked=!0,C.hideRails()},this.toggle=function(){return C.hidden?C.show():C.hide()},this.remove=function(){C.stop(),C.cursortimeout&&clearTimeout(C.cursortimeout);for(var t in C.delaylist)C.delaylist[t]&&p(C.delaylist[t].h);C.doZoomOut(),C.unbindAll(),z.isie9&&C.win[0].detachEvent("onpropertychange",C.onAttributeChange),!1!==C.observer&&C.observer.disconnect(),!1!==C.observerremover&&C.observerremover.disconnect(),!1!==C.observerbody&&C.observerbody.disconnect(),C.events=null,C.cursor&&C.cursor.remove(),C.cursorh&&C.cursorh.remove(),C.rail&&C.rail.remove(),C.railh&&C.railh.remove(),C.zoom&&C.zoom.remove();for(var e=0;e<C.saved.css.length;e++){var i=C.saved.css[e];i[0].css(i[1],void 0===i[2]?"":i[2])}C.saved=!1,C.me.data("__nicescroll","");var o=r.nicescroll;o.each(function(t){if(this&&this.id===C.id){delete o[t];for(var e=++t;e<o.length;e++,t++)o[t]=o[e];--o.length&&delete o[o.length]}});for(var s in C)C[s]=null,delete C[s];C=null},this.scrollstart=function(t){return this.onscrollstart=t,C},this.scrollend=function(t){return this.onscrollend=t,C},this.scrollcancel=function(t){return this.onscrollcancel=t,C},this.zoomin=function(t){return this.onzoomin=t,C},this.zoomout=function(t){return this.onzoomout=t,C},this.isScrollable=function(t){var e=t.target?t.target:t;if("OPTION"==e.nodeName)return!0;for(;e&&1==e.nodeType&&e!==this.me[0]&&!/^BODY|HTML/.test(e.nodeName);){var i=r(e),o=i.css("overflowY")||i.css("overflowX")||i.css("overflow")||"";if(/scroll|auto/.test(o))return e.clientHeight!=e.scrollHeight;e=!!e.parentNode&&e.parentNode}return!1},this.getViewport=function(t){for(var e=!(!t||!t.parentNode)&&t.parentNode;e&&1==e.nodeType&&!/^BODY|HTML/.test(e.nodeName);){var i=r(e);if(/fixed|absolute/.test(i.css("position")))return i;var o=i.css("overflowY")||i.css("overflowX")||i.css("overflow")||"";if(/scroll|auto/.test(o)&&e.clientHeight!=e.scrollHeight)return i;if(i.getNiceScroll().length>0)return i;e=!!e.parentNode&&e.parentNode}return!1},this.triggerScrollStart=function(t,e,i,o,s){if(C.onscrollstart){var n={type:"scrollstart",current:{x:t,y:e},request:{x:i,y:o},end:{x:C.newscrollx,y:C.newscrolly},speed:s};C.onscrollstart.call(C,n)}},this.triggerScrollEnd=function(){if(C.onscrollend){var t=C.getScrollLeft(),e=C.get
1ScrollTop(),i={type:"scrollend",current:{x:t,y:e},end:{x:t,y:e}};C.onscrollend.call(C,i)}};var F=0,j=0,H=0,U=1,W=!1;if(this.onmousewheel=function(t){if(C.wheelprevented||C.locked)return!1;if(C.railslocked)return C.debounced("checkunlock",C.resize,250),!1;if(C.rail.drag)return C.cancelEvent(t);if("auto"===T.oneaxismousemode&&0!==t.deltaX&&(T.oneaxismousemode=!1),T.oneaxismousemode&&0===t.deltaX&&!C.rail.scrollable)return!C.railh||!C.railh.scrollable||C.onmousewheelhr(t);var e=g(),i=!1;if(T.preservenativescrolling&&C.checkarea+600<e&&(C.nativescrollingarea=C.isScrollable(t),i=!0),C.checkarea=e,C.nativescrollingarea)return!0;var o=S(t,!1,i);return o&&(C.checkarea=0),o},this.onmousewheelhr=function(t){if(!C.wheelprevented){if(C.railslocked||!C.railh.scrollable)return!0;if(C.rail.drag)return C.cancelEvent(t);var e=g(),i=!1;return T.preservenativescrolling&&C.checkarea+600<e&&(C.nativescrollingarea=C.isScrollable(t),i=!0),C.checkarea=e,!!C.nativescrollingarea||(C.railslocked?C.cancelEvent(t):S(t,!0,i))}},this.stop=function(){return C.cancelScroll(),C.scrollmon&&C.scrollmon.stop(),C.cursorfreezed=!1,C.scroll.y=Math.round(C.getScrollTop()*(1/C.scrollratio.y)),C.noticeCursor(),C},this.getTransitionSpeed=function(t){return 80+t/72*T.scrollspeed|0},T.smoothscroll)if(C.ishwscroll&&z.hastransition&&T.usetransition&&T.smoothscroll){var R="";this.resetTransition=function(){R="",C.doc.css(z.prefixstyle+"transition-duration","0ms")},this.prepareTransition=function(t,e){var i=e?t:C.getTransitionSpeed(t),o=i+"ms";return R!==o&&(R=o,C.doc.css(z.prefixstyle+"transition-duration",o)),i},this.doScrollLeft=function(t,e){var i=C.scrollrunning?C.newscrolly:C.getScrollTop();C.doScrollPos(t,i,e)},this.doScrollTop=function(t,e){var i=C.scrollrunning?C.newscrollx:C.getScrollLeft();C.doScrollPos(i,t,e)},this.cursorupdate={running:!1,start:function(){var t=this;if(!t.running){t.running=!0;var e=function(){t.running&&h(e),C.showCursor(C.getScrollTop(),C.getScrollLeft()),C.notifyScrollEvent(C.win[0])};h(e)}},stop:function(){this.running=!1}},this.doScrollPos=function(t,e,i){var o=C.getScrollTop(),s=C.getScrollLeft();if(((C.newscrolly-o)*(e-o)<0||(C.newscrollx-s)*(t-s)<0)&&C.cancelScroll(),T.bouncescroll?(e<0?e=e/2|0:e>C.page.maxh&&(e=C.page.maxh+(e-C.page.maxh)/2|0),t<0?t=t/2|0:t>C.page.maxw&&(t=C.page.maxw+(t-C.page.maxw)/2|0)):(e<0?e=0:e>C.page.maxh&&(e=C.page.maxh),t<0?t=0:t>C.page.maxw&&(t=C.page.maxw)),C.scrollrunning&&t==C.newscrollx&&e==C.newscrolly)return!1;C.newscrolly=e,C.newscrollx=t;var n=C.getScrollTop(),r=C.getScrollLeft(),a={};a.x=t-r,a.y=e-n;var l=0|Math.sqrt(a.x*a.x+a.y*a.y),c=C.prepareTransition(l);C.scrollrunning||(C.scrollrunning=!0,C.triggerScrollStart(r,n,t,e,c),C.cursorupdate.start()),C.scrollendtrapped=!0,z.transitionend||(C.scrollendtrapped&&clearTimeout(C.scrollendtrapped),C.scrollendtrapped=setTimeout(C.onScrollTransitionEnd,c)),C.setScrollTop(C.newscrolly),C.setScrollLeft(C.newscrollx)},this.cancelScroll=function(){if(!C.scrollendtrapped)return!0;var t=C.getScrollTop(),e=C.getScrollLeft();return C.scrollrunning=!1,z.transitionend||clearTimeout(z.transitionend),C.scrollendtrapped=!1,C.resetTransition(),C.setScrollTop(t),C.railh&&C.setScrollLeft(e),C.timerscroll&&C.timerscroll.tm&&clearInterval(C.timerscroll.tm),C.timerscroll=!1,C.cursorfreezed=!1,C.cursorupdate.stop(),C.showCursor(t,e),C},this.onScrollTransitionEnd=function(){if(C.scrollendtrapped){var t=C.getScrollTop(),e=C.getScrollLeft();if(t<0?t=0:t>C.page.maxh&&(t=C.page.maxh),e<0?e=0:e>C.page.maxw&&(e=C.page.maxw),t!=C.newscrolly||e!=C.newscrollx)return C.doScrollPos(e,t,T.snapbackspeed);C.scrollrunning&&C.triggerScrollEnd(),C.scrollrunning=!1,C.scrollendtrapped=!1,C.resetTransition(),C.timerscroll=!1,C.setScrollTop(t),C.railh&&C.setScrollLeft(e),C.cursorupdate.stop(),C.noticeCursor(!1,t,e),C.cursorfreezed=!1}}}else this.doScrollLeft=function(t,e){var i=C.scrollrunning?C.newscrolly:C.getScrollTop();C.doScrollPos(t,i,e)},this.doScrollTop=function(t,e){var i=C.scrollrunning?C.newscrollx:C.getScrollLeft();C.doScrollPos(i,t,e)},this.doScrollPos=function(t,e,i){var o=C.getScrollTop(),s=C.getScrollLeft();((C.newscrolly-o)*(e-o)<0||(C.newscrollx-s)*(t-s)<0)&&C.cancelScroll();var n=!1;if(C.bouncescroll&&C.rail.visibility||(e<0?(e=0,n=!0):e>C.page.maxh&&(e=C.page.maxh,n=!0)),C.bouncescroll&&C.railh.visibility||(t<0?(t=0,n=!0):t>C.page.maxw&&(t=C.page.maxw,n=!0)),C.scrollrunning&&C.newscrolly===e&&C.newscrollx===t)return!0;C.newscrolly=e,C.newscrollx=t,C.dst={},C.dst.x=t-s,C.dst.y=e-o,C.dst.px=s,C.dst.py=o;var r=0|Math.sqrt(C.dst.x*C.dst.x+C.dst.y*C.dst.y),a=C.getTransitionSpeed(r);C.bzscroll={};var l=n?1:.58;C.bzscroll.x=new M(s,C.newscrollx,a,0,0,l,1),C.bzscroll.y=new M(o,C.newscrolly,a,0,0,l,1),g();var c=function(){if(C.scrollrunning){var t=C.bzscroll.y.getPos();C.setScrollLeft(C.bzscroll.x.getNow()),C.setScrollTop(C.bzscroll.y.getNow()),t<=1?C.timer=h(c):(C.scrollrunning=!1,C.timer=0,C.triggerScrollEnd())}};C.scrollrunning||(C.triggerScrollStart(s,o,t,e,a),C.scrollrunning=!0,C.timer=h(c))},this.cancelScroll=function(){return C.timer&&p(C.timer),C.timer=0,C.bzscroll=!1,C.scrollrunning=!1,C};else this.doScrollLeft=function(t,e){var i=C.getScrollTop();C.doScrollPos(t,i,e)},this.doScrollTop=function(t,e){var i=C.getScrollLeft();C.doScrollPos(i,t,e)}
1,this.doScrollPos=function(t,e,i){var o=t>C.page.maxw?C.page.maxw:t;o<0&&(o=0);var s=e>C.page.maxh?C.page.maxh:e;s<0&&(s=0),C.synched("scroll",function(){C.setScrollTop(s),C.setScrollLeft(o)})},this.cancelScroll=function(){};this.doScrollBy=function(t,e){k(0,t)},this.doScrollLeftBy=function(t,e){k(t,0)},this.doScrollTo=function(t,e){var i=e?Math.round(t*C.scrollratio.y):t;i<0?i=0:i>C.page.maxh&&(i=C.page.maxh),C.cursorfreezed=!1,C.doScrollTop(t)},this.checkContentSize=function(){var t=C.getContentSize();t.h==C.page.h&&t.w==C.page.w||C.resize(!1,t)},C.onscroll=function(t){C.rail.drag||C.cursorfreezed||C.synched("scroll",function(){C.scroll.y=Math.round(C.getScrollTop()/C.scrollratio.y),C.railh&&(C.scroll.x=Math.round(C.getScrollLeft()/C.scrollratio.x)),C.noticeCursor()})},C.bind(C.docscroll,"scroll",C.onscroll),this.doZoomIn=function(t){if(!C.zoomactive){C.zoomactive=!0,C.zoomrestore={style:{}};var e=["position","top","left","zIndex","backgroundColor","marginTop","marginBottom","marginLeft","marginRight"],i=C.win[0].style;for(var o in e){var s=e[o];C.zoomrestore.style[s]=void 0!==i[s]?i[s]:""}C.zoomrestore.style.width=C.win.css("width"),C.zoomrestore.style.height=C.win.css("height"),C.zoomrestore.padding={w:C.win.outerWidth()-C.win.width(),h:C.win.outerHeight()-C.win.height()},z.isios4&&(C.zoomrestore.scrollTop=c.scrollTop(),c.scrollTop(0)),C.win.css({position:z.isios4?"absolute":"fixed",top:0,left:0,zIndex:n+100,margin:0});var r=C.win.css("backgroundColor");return(""===r||/transparent|rgba\(0, 0, 0, 0\)|rgba\(0,0,0,0\)/.test(r))&&C.win.css("backgroundColor","#fff"),C.rail.css({zIndex:n+101}),C.zoom.css({zIndex:n+102}),C.zoom.css("backgroundPosition","0 -18px"),C.resizeZoom(),C.onzoomin&&C.onzoomin.call(C),C.cancelEvent(t)}},this.doZoomOut=function(t){if(C.zoomactive)return C.zoomactive=!1,C.win.css("margin",""),C.win.css(C.zoomrestore.style),z.isios4&&c.scrollTop(C.zoomrestore.scrollTop),C.rail.css({"z-index":C.zindex}),C.zoom.css({"z-index":C.zindex}),C.zoomrestore=!1,C.zoom.css("backgroundPosition","0 0"),C.onResize(),C.onzoomout&&C.onzoomout.call(C),C.cancelEvent(t)},this.doZoom=function(t){return C.zoomactive?C.doZoomOut(t):C.doZoomIn(t)},this.resizeZoom=function(){if(C.zoomactive){var t=C.getScrollTop();C.win.css({width:c.width()-C.zoomrestore.padding.w+"px",height:c.height()-C.zoomrestore.padding.h+"px"}),C.onResize(),C.setScrollTop(Math.min(C.page.maxh,t))}},this.init(),r.nicescroll.push(this)},y=function(t){var e=this;this.nc=t,this.lastx=0,this.lasty=0,this.speedx=0,this.speedy=0,this.lasttime=0,this.steptime=0,this.snapx=!1,this.snapy=!1,this.demulx=0,this.demuly=0,this.lastscrollx=-1,this.lastscrolly=-1,this.chkx=0,this.chky=0,this.timer=0,this.reset=function(t,i){e.stop(),e.steptime=0,e.lasttime=g(),e.speedx=0,e.speedy=0,e.lastx=t,e.lasty=i,e.lastscrollx=-1,e.lastscrolly=-1},this.update=function(t,i){var o=g();e.steptime=o-e.lasttime,e.lasttime=o;var s=i-e.lasty,n=t-e.lastx,r=e.nc.getScrollTop()+s,a=e.nc.getScrollLeft()+n;e.snapx=a<0||a>e.nc.page.maxw,e.snapy=r<0||r>e.nc.page.maxh,e.speedx=n,e.speedy=s,e.lastx=t,e.lasty=i},this.stop=function(){e.nc.unsynched("domomentum2d"),e.timer&&clearTimeout(e.timer),e.timer=0,e.lastscrollx=-1,e.lastscrolly=-1},this.doSnapy=function(t,i){var o=!1;i<0?(i=0,o=!0):i>e.nc.page.maxh&&(i=e.nc.page.maxh,o=!0),t<0?(t=0,o=!0):t>e.nc.page.maxw&&(t=e.nc.page.maxw,o=!0),o?e.nc.doScrollPos(t,i,e.nc.opt.snapbackspeed):e.nc.triggerScrollEnd()},this.doMomentum=function(t){var i=g(),o=t?i+t:e.lasttime,s=e.nc.getScrollLeft(),n=e.nc.getScrollTop(),r=e.nc.page.maxh,a=e.nc.page.maxw;e.speedx=a>0?Math.min(60,e.speedx):0,e.speedy=r>0?Math.min(60,e.speedy):0;var l=o&&i-o<=60;(n<0||n>r||s<0||s>a)&&(l=!1);var c=!(!e.speedy||!l)&&e.speedy,d=!(!e.speedx||!l)&&e.speedx;if(c||d){var h=Math.max(16,e.steptime);if(h>50){var p=h/50;e.speedx*=p,e.speedy*=p,h=50}e.demulxy=0,e.lastscrollx=e.nc.getScrollLeft(),e.chkx=e.lastscrollx,e.lastscrolly=e.nc.getScrollTop(),e.chky=e.lastscrolly;var u=e.lastscrollx,f=e.lastscrolly,m=function(){var t=g()-i>600?.04:.02;e.speedx&&(u=Math.floor(e.lastscrollx-e.speedx*(1-e.demulxy)),e.lastscrollx=u,(u<0||u>a)&&(t=.1)),e.speedy&&(f=Math.floor(e.lastscrolly-e.speedy*(1-e.demulxy)),e.lastscrolly=f,(f<0||f>r)&&(t=.1)),e.demulxy=Math.min(1,e.demulxy+t),e.nc.synched("domomentum2d",function(){e.speedx&&(e.nc.getScrollLeft(),e.chkx=u,e.nc.setScrollLeft(u)),e.speedy&&(e.nc.getScrollTop(),e.chky=f,e.nc.setScrollTop(f)),e.timer||(e.nc.hideCursor(),e.doSnapy(u,f))}),e.demulxy<1?e.timer=setTimeout(m,h):(e.stop(),e.nc.hideCursor(),e.doSnapy(u,f))};m()}
1else e.doSnapy(e.nc.getScrollLeft(),e.nc.getScrollTop())}},b=t.fn.scrollTop;t.cssHooks.pageYOffset={get:function(t,e,i){var o=r.data(t,"__nicescroll")||!1;return o&&o.ishwscroll?o.getScrollTop():b.call(t)},set:function(t,e){var i=r.data(t,"__nicescroll")||!1;return i&&i.ishwscroll?i.setScrollTop(parseInt(e)):b.call(t,e),this}},t.fn.scrollTop=function(t){if(void 0===t){var e=!!this[0]&&(r.data(this[0],"__nicescroll")||!1);return e&&e.ishwscroll?e.getScrollTop():b.call(this)}return this.each(function(){var e=r.data(this,"__nicescroll")||!1;e&&e.ishwscroll?e.setScrollTop(parseInt(t)):b.call(r(this),t)})};var x=t.fn.scrollLeft;r.cssHooks.pageXOffset={get:function(t,e,i){var o=r.data(t,"__nicescroll")||!1;return o&&o.ishwscroll?o.getScrollLeft():x.call(t)},set:function(t,e){var i=r.data(t,"__nicescroll")||!1;return i&&i.ishwscroll?i.setScrollLeft(parseInt(e)):x.call(t,e),this}},t.fn.scrollLeft=function(t){if(void 0===t){var e=!!this[0]&&(r.data(this[0],"__nicescroll")||!1);return e&&e.ishwscroll?e.getScrollLeft():x.call(this)}return this.each(function(){var e=r.data(this,"__nicescroll")||!1;e&&e.ishwscroll?e.setScrollLeft(parseInt(t)):x.call(r(this),t)})};var k=function(t){var e=this;if(this.length=0,this.name="nicescrollarray",this.each=function(t){return r.each(e,t),e},this.push=function(t){e[e.length]=t,e.length++},this.eq=function(t){return e[t]},t)for(var i=0;i<t.length;i++){var o=r.data(t[i],"__nicescroll")||!1;o&&(this[this.length]=o,this.length++)}return this};!function(t,e,i){for(var o=0,s=e.length;o<s;o++)i(t,e[o])}(k.prototype,["show","hide","toggle","onResize","resize","remove","stop","doScrollPos"],function(t,e){t[e]=function(){var t=arguments;return this.each(function(){this[e].apply(this,t)})}}),t.fn.getNiceScroll=function(t){return void 0===t?new k(this):this[t]&&r.data(this[t],"__nicescroll")||!1},(t.expr.pseudos||t.expr[":"]).nicescroll=function(t){return void 0!==r.data(t,"__nicescroll")},r.fn.niceScroll=function(t,e){void 0!==e||"object"!=typeof t||"jquery"in t||(e=t,t=!1);var i=new k;return this.each(function(){var o=r(this),s=r.extend({},e);if(t){var n=r(t);s.doc=n.length>1?r(t,o):n,s.win=o}!("doc"in s)||"win"in s||(s.win=o);var a=o.data("__nicescroll")||!1;a||(s.doc=s.doc||o,a=new w(s,o),o.data("__nicescroll",a)),i.push(a)}),1===i.length?i[0]:i},l.NiceScroll={getjQuery:function(){return t}},r.nicescroll||(r.nicescroll=new k,r.nicescroll.options=m)}),function(){"use strict";function t(o){if(!o)throw new Error("No options passed to Waypoint constructor");if(!o.element)throw new Error("No element option passed to Waypoint constructor");if(!o.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+e,this.options=t.Adapter.extend({},t.defaults,o),this.element=this.options.element,this.adapter=new t.Adapter(this.element),this.callback=o.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=t.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=t.Context.findOrCreateByElement(this.options.context),t.offsetAliases[this.options.offset]&&(this.options.offset=t.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),i[this.key]=this,e+=1}var e=0,i={};t.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},t.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},t.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete i[this.key]},t.prototype.disable=function(){return this.enabled=!1,this},t.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},t.prototype.next=function(){return this.group.next(this)},t.prototype.previous=function(){return this.group.previous(this)},t.invokeAll=function(t){var e=[];for(var o in i)e.push(i[o]);for(var s=0,n=e.length;n>s;s++)e[s][t]()},t.destroyAll=function(){t.invokeAll("destroy")},t.disableAll=function(){t.invokeAll("disable")},t.enableAll=function(){t.Context.refreshAll();for(var e in i)i[e].enabled=!0;return this},t.refreshAll=function(){t.Context.refreshAll()}
vendor: 5,247 bytes, line 1
1,t.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},t.viewportWidth=function(){return document.documentElement.clientWidth},t.adapters=[],t.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},t.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=t}(),function(){"use strict";function t(t){window.setTimeout(t,1e3/60)}function e(t){this.element=t,this.Adapter=s.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+i,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,o[t.waypointContextKey]=this,i+=1,s.windowContext||(s.windowContext=!0,s.windowContext=new e(window)),this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}var i=0,o={},s=window.Waypoint,n=window.onload;e.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},e.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical),i=this.element==this.element.window;t&&e&&!i&&(this.adapter.off(".waypoints"),delete o[this.key])},e.prototype.createThrottledResizeHandler=function(){function t(){e.handleResize(),e.didResize=!1}var e=this;this.adapter.on("resize.waypoints",function(){e.didResize||(e.didResize=!0,s.requestAnimationFrame(t))})},e.prototype.createThrottledScrollHandler=function(){function t(){e.handleScroll(),e.didScroll=!1}var e=this;this.adapter.on("scroll.waypoints",function(){(!e.didScroll||s.isTouch)&&(e.didScroll=!0,s.requestAnimationFrame(t))})},e.prototype.handleResize=function(){s.Context.refreshAll()},e.prototype.handleScroll=function(){var t={},e={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var i in e){var o=e[i],s=o.newScroll>o.oldScroll?o.forward:o.backward;for(var n in this.waypoints[i]){var r=this.waypoints[i][n];if(null!==r.triggerPoint){var a=o.oldScroll<r.triggerPoint,l=o.newScroll>=r.triggerPoint,c=a&&l,d=!a&&!l;(c||d)&&(r.queueTrigger(s),t[r.group.id]=r.group)}}}for(var h in t)t[h].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},e.prototype.innerHeight=function(){return this.element==this.element.window?s.viewportHeight():this.adapter.innerHeight()},e.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},e.prototype.innerWidth=function(){return this.element==this.element.window?s.viewportWidth():this.adapter.innerWidth()},e.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var i in this.waypoints[e])t.push(this.waypoints[e][i]);for(var o=0,s=t.length;s>o;o++)t[o].destroy()},e.prototype.refresh=function(){var t,e=this.element==this.element.window,i=e?void 0:this.adapter.offset(),o={};this.handleScroll(),t={horizontal:{contextOffset:e?0:i.left,contextScroll:e?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:e?0:i.top,contextScroll:e?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};for(var n in t){var r=t[n];for(var a in this.waypoints[n]){var l,c,d,h,p,u=this.waypoints[n][a],f=u.options.offset,g=u.triggerPoint,m=0,v=null==g;u.element!==u.element.window&&(m=u.adapter.offset()[r.offsetProp]),"function"==typeof f?f=f.apply(u):"string"==typeof f&&(f=parseFloat(f),u.options.offset.indexOf("%")>-1&&(f=Math.ceil(r.contextDimension*f/100))),l=r.contextScroll-r.contextOffset,u.triggerPoint=Math.floor(m+l-f),c=g<r.oldScroll,d=u.triggerPoint>=r.oldScroll,h=c&&d,p=!c&&!d,!v&&h?(u.queueTrigger(r.backward),o[u.group.id]=u.group):!v&&p?(u.queueTrigger(r.forward),o[u.group.id]=u.group):v&&r.oldScroll>=u.triggerPoint&&(u.queueTrigger(r.forward),o[u.group.id]=u.group)}}return s.requestAnimationFrame(function(){for(var t in o)o[t].flushTriggers()}),this},e.findOrCreateByElement=function(t){return e.findByElement(t)||new e(t)},e.refreshAll=function(){for(var t in o)o[t].refresh()},e.findByElement=function(t){return o[t.waypointContextKey]},window.onload=function(){n&&n(),e.refreshAll()},s.requestAnimationFrame=function(e){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t).call(window,e)},s.Context=e}(),function(){"use strict";function t(t,e){return t.triggerPoint-e.triggerPoint}function e(t,e){return e.triggerPoint-t.triggerPoint}function i(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),o[this.axis][this.name]=this}var o={vertical:{},horizontal:{}},s=window.Waypoint;i.prototype.add=function(t){this.waypoints.push(t)},i.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],r
1ight:[]}},i.prototype.flushTriggers=function(){for(var i in this.triggerQueues){var o=this.triggerQueues[i],s="up"===i||"left"===i;o.sort(s?e:t);for(var n=0,r=o.length;r>n;n+=1){var a=o[n];(a.options.continuous||n===o.length-1)&&a.trigger([i])}}this.clearTriggerQueues()},i.prototype.next=function(e){this.waypoints.sort(t);var i=s.Adapter.inArray(e,this.waypoints);return i===this.waypoints.length-1?null:this.waypoints[i+1]},i.prototype.previous=function(e){this.waypoints.sort(t);var i=s.Adapter.inArray(e,this.waypoints);return i?this.waypoints[i-1]:null},i.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},i.prototype.remove=function(t){var e=s.Adapter.inArray(t,this.waypoints);e>-1&&this.waypoints.splice(e,1)},i.prototype.first=function(){return this.waypoints[0]},i.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},i.findOrCreate=function(t){return o[t.axis][t.name]||new i(t)},s.Group=i}(),function(){"use strict";function t(t){this.$element=e(t)}var e=window.jQuery,i=window.Waypoint;e.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(e,i){t.prototype[i]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[i].apply(this.$element,t)}}),e.each(["extend","inArray","isEmptyObject"],function(i,o){t[o]=e[o]}),i.adapters.push({name:"jquery",Adapter:t}),i.Adapter=t}(),function(){"use strict";function t(t){return function(){var i=[],o=arguments[0];return t.isFunction(arguments[0])&&(o=t.extend({},arguments[1]),o.handler=arguments[0]),this.each(function(){var s=t.extend({},o,{element:this});"string"==typeof s.context&&(s.context=t(this).closest(s.context)[0]),i.push(new e(s))}),i}}var e=window.Waypoint;window.jQuery&&(window.jQuery.fn.waypoint=t(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=t(window.Zepto))}(),function(t,e,i){function o(t,i){var o=e(t);o.data(s,this),this._$element=o,this.shares=[],this._init(i),this._render()}var s="JSSocials",n=function(t,i){return e.isFunction(t)?t.apply(i,e.makeArray(arguments).slice(2)):t},r=/(\.(jpeg|png|gif|bmp|svg)$|^data:image\/(jpeg|png|gif|bmp|svg\+xml);base64)/i,a=/(&?[a-zA-Z0-9]+=)?\{([a-zA-Z0-9]+)\}/g,l={G:1e9,M:1e6,K:1e3},c={};o.prototype={url:"",text:"",shareIn:"blank",showLabel:function(t){return!1===this.showCount?t>this.smallScreenWidth:t>=this.largeScreenWidth},showCount:function(t){return!(t<=this.smallScreenWidth)||"inside"},smallScreenWidth:640,largeScreenWidth:1024,resizeTimeout:200,elementClass:"jssocials",sharesClass:"jssocials-shares",shareClass:"jssocials-share",shareButtonClass:"jssocials-share-button",shareLinkClass:"jssocials-share-link",shareLogoClass:"jssocials-share-logo",shareLabelClass:"jssocials-share-label",shareLinkCountClass:"jssocials-share-link-count",shareCountBoxClass:"jssocials-share-count-box",shareCountClass:"jssocials-share-count",shareZeroCountClass:"jssocials-share-no-count",_init:function(t){this._initDefaults(),e.extend(this,t),this._initShares(),this._attachWindowResizeCallback()},_initDefaults:function(){this.url=t.location.href,this.text=e.trim(e("meta[name=description]").attr("content")||e("title").text())},_initShares:function(){this.shares=e.map(this.shares,e.proxy(function(t){"string"==typeof t&&(t={share:t});var i=t.share&&c[t.share];if(!i&&!t.renderer)throw Error("Share '"+t.share+"' is not found");return e.extend({url:this.url,text:this.text},i,t)},this))},_attachWindowResizeCallback:function(){e(t).on("resize",e.proxy(this._windowResizeHandler,this))},_detachWindowResizeCallback:function(){e(t).off("resize",this._windowResizeHandler)},_windowResizeHandler:function(){(e.isFunction(this.showLabel)||e.isFunction(this.showCount))&&(t.clearTimeout(this._resizeTimer),this._resizeTimer=setTimeout(e.proxy(this.refresh,this),this.resizeTimeout))},_render:function(){this._clear(),this._defineOptionsByScreen(),this._$element.addClass(this.elementClass),this._$shares=e("<div>").addClass(this.sharesClass).appendTo(this._$element),this._renderShares()},_defineOptionsByScreen:function(){this._screenWidth=e(t).width(),this._showLabel=n(this.showLabel,this,this._screenWidth),this._showCount=n(this.showCount,this,this._screenWidth)},_renderShares:function(){e.each(this.shares,e.proxy(function(t,e){this._renderShare(e)},this))},_renderShare:function(t){(e.isFunction(t.renderer)?e(t.renderer()):this._createShare(t)).addClass(this.shareClass).addClass(t.share?"jssocials-share-"+t.share:"").addClass(t.css).appendTo(this._$shares)},_createShare:function(t){var i=e("<div>"),o=this._createShareLink(t).appendTo(i);if(this._showCount){var s="inside"===this._showCount,n=s?o:e("<div>").addClass(this.shareCountBoxClass).appendTo(i);n.addClass(s?this.shareLinkCountClass:this.shareCountBoxClass),this._renderShareCount(t,n)}return i},_createShareLink:function(t){var i=this._getShareStrategy(t).call(t,{shareUrl:this._getShareUrl(t)});return i.addClass(this.shareLinkClass).append(this._createShareLogo(t)),this._showLabel&&i.append(this._createShareLabel(t)),e.each(this.on||{},function(o,s){e.isFunction(s)&&i.on(o,e.proxy(s,t))}),i},_getShareStrategy:function(t){var e=d[t.shareIn||this.shareIn];if(!e)throw Error("Share strategy '"+this.shareIn+"' not found");return e},_getShareUrl:function(t){var e=n(t.shareUrl,t);return this._formatShareUrl(e,t)},_createShareLogo:function(t){var i=t.logo,o=r.test(i)?e("<img>").attr("src",t.logo):e("<i>").addClass(i);return o.addClass(this.shareLogoClass),o},_createShareLabel:function(t){return e("<span>").addClass(this.shareLabelClass).text(t.label)},_renderShareCount:function(t,i){var o=e("<span>").addClass(this.shareCountClass);i.addClass(this.shareZeroCountClass).append(o),this._loadCount(t).done(e.proxy(function(t){t&&(i.removeClass(this.shareZeroCountClass),o.text(t))},this))},_loadCount:function(t){var i=e.Deferred(),o=this._getCountUrl(t);if(!o)return i.resolve(0).promise();var s=e.proxy(function(e){i.resolve(this._getCountValue(e,t))},this);return e.getJSON(o).done(s).fail(function(){e.get(o).done(s).fail(function(){i.resolve(0)})}),i.promise()},_getCountUrl:function(t){var e=n(t.countUrl,t);return this._formatShareUrl(e,t)},_getCountValue:function(t,i){var o=(e.isFunction(i.getCount)?i.getCount(t):t)||0;return"string"==typeof o?o:this._formatNumber(o)},_formatNumber:function(t){return e.each(l,function(e,i){return t>=i?(t=parseFloat((t/i).toFixed(2))+e,!1):void 0}),t},_formatShareUrl:function(e,i){return e.replace(a,function(e,o,s){var n=i[s]||"";return n?(o||"")+t.encodeURIComponent(n):""})},_clear:function(){t.clearTimeout(this._resizeTimer),this._$element.empty()},_passOptionToShares:function(t,i){var o=this.shares;e.each(["url","text"],function(s,n){n===t&&e.each(o,function(e,o){o[t]=i})})},_normalizeShare:function(t){return e.isNumeric(t)?this.shares[t]:"string"==typeof t?e.grep(this.shares,function(e){return e.share===t})[0]:t},refresh:function(){this._render()},destroy:function(){this._clear(),this._detachWindowResizeCallback(),this._$element.removeClass(this.elementClass).removeData(s)},option:function(t,e){return 1===arguments.length?this[t]:(this[t]=e,this._passOptionToShares(t,e),void this.refresh())}
1,shareOption:function(t,e,i){return t=this._normalizeShare(t),2===arguments.length?t[e]:(t[e]=i,void this.refresh())}},e.fn.jsSocials=function(t){var i=e.makeArray(arguments).slice(1),n=this;return this.each(function(){var r,a=e(this),l=a.data(s);if(l)if("string"==typeof t){if(void 0!==(r=l[t].apply(l,i))&&r!==l)return n=r,!1}else l._detachWindowResizeCallback(),l._init(t),l._render();else new o(a,t)}),n};var d={popup:function(i){return e("<a>").attr("href","#").on("click",function(){return t.open(i.shareUrl,null,"width=600, height=400, location=0, menubar=0, resizeable=0, scrollbars=0, status=0, titlebar=0, toolbar=0"),!1})},blank:function(t){return e("<a>").attr({target:"_blank",href:t.shareUrl})},self:function(t){return e("<a>").attr({target:"_self",href:t.shareUrl})}};t.jsSocials={Socials:o,shares:c,shareStrategies:d,setDefaults:function(t){var i;e.isPlainObject(t)?i=o.prototype:(i=c[t],t=arguments[1]||{}),e.extend(i,t)}}}(window,jQuery),function(t,e,i){jQuery.extend(i.shares,{email:{label:"E-mail",logo:"fa fa-at",shareUrl:"mailto:{to}?subject={text}&body={url}",countUrl:"",shareIn:"self"},twitter:{label:"Tweet",logo:"fa fa-twitter",shareUrl:"https://twitter.com/share?url={url}&text={text}&via={via}&hashtags={hashtags}",countUrl:""},facebook:{label:"Like",logo:"fa fa-facebook",shareUrl:"https://facebook.com/sharer/sharer.php?u={url}",countUrl:"https://graph.facebook.com/?id={url}",getCount:function(t){return t.share&&t.share.share_count||0}},vkontakte:{label:"Like",logo:"fa fa-vk",shareUrl:"https://vk.com/share.php?url={url}&title={title}&description={text}",countUrl:"https://vk.com/share.php?act=count&index=1&url={url}",getCount:function(t){return parseInt(t.slice(15,-2).split(", ")[1])}},googleplus:{label:"+1",logo:"fa fa-google",shareUrl:"https://plus.google.com/share?url={url}",countUrl:""},linkedin:{label:"Share",logo:"fa fa-linkedin",shareUrl:"https://www.linkedin.com/shareArticle?mini=true&url={url}",countUrl:"https://www.linkedin.com/countserv/count/share?format=jsonp&url={url}&callback=?",getCount:function(t){return t.count}},pinterest:{label:"Pin it",logo:"fa fa-pinterest",shareUrl:"https://pinterest.com/pin/create/bookmarklet/?media={media}&url={url}&description={text}",countUrl:"https://api.pinterest.com/v1/urls/count.json?&url={url}&callback=?",getCount:function(t){return t.count}},stumbleupon:{label:"Share",logo:"fa fa-stumbleupon",shareUrl:"http://www.stumbleupon.com/submit?url={url}&title={title}",countUrl:"https://cors-anywhere.herokuapp.com/https://www.stumbleupon.com/services/1.01/badge.getinfo?url={url}",getCount:function(t){return t.result.views}},telegram:{label:"Telegram",logo:"fa fa-paper-plane",shareUrl:"tg://msg?text={url} {text}",countUrl:"",shareIn:"self"},whatsapp:{label:"WhatsApp",logo:"fa fa-whatsapp",shareUrl:"whatsapp://send?text={url} {text}",countUrl:"",shareIn:"self"},line:{label:"LINE",logo:"fa fa-comment",shareUrl:"http://line.me/R/msg/text/?{text} {url}",countUrl:""},viber:{label:"Viber",logo:"fa fa-volume-control-phone",shareUrl:"viber://forward?text={url} {text}",countUrl:"",shareIn:"self"},pocket:{label:"Pocket",logo:"fa fa-get-pocket",shareUrl:"https://getpocket.com/save?url={url}&title={title}",countUrl:""},messenger:{label:"Share",logo:"fa fa-commenting",shareUrl:"fb-messenger://share?link={url}",countUrl:"",shareIn:"self"}})}(window,0,window.jsSocials),function(t){"use strict";t.fn.lightbox=function(e){var i={margin:50,nav:!0,blur:!0,minSize:0},o={items:[],lightbox:null,image:null,current:null,locked:!1,caption:null,init:function(e){o.items=e;var s="lightbox-"+Math.floor(1e5*Math.random()+1);t("body").append('<div id="'+s+'" class="lightbox" style="display:none;"><a href="#" class="lightbox__close lightbox__button"></a><a href="#" class="lightbox__nav lightbox__nav--prev lightbox__button"></a><a href="#" class="lightbox__nav lightbox__nav--next lightbox__button"></a><div href="#" class="lightbox__caption"><p></p></div></div>'),o.lightbox=t("#"+s),o.caption=t(".lightbox__caption",o.lightbox),o.items.length>1&&i.nav?t(".lightbox__nav",o.lightbox).show():t(".lightbox__nav",o.lightbox).hide(),o.bindEvents()},loadImage:function(){i.blur&&t("body").addClass("blurred"),t("img",o.lightbox).remove(),o.lightbox.fadeIn("fast").append('<span class="lightbox__loading"></span>');var e=t('<img src="'+t(o.current).attr("href")+'" draggable="false">');t(e).on("load",function(){t(".lightbox__loading").remove(),o.lightbox.append(e),o.image=t("img",o.lightbox).hide(),o.resizeImage(),o.setCaption()})},setCaption:function(){var e=t(o.current).data("caption");e&&e.length>0?(o.caption.fadeIn(),t("p",o.caption).text(e)):o.caption.hide()},resizeImage:function(){var e,s,n,r,a;s=t(window).height()-i.margin,n=t(window).outerWidth(!0)-i.margin,o.image.width("").height(""),r=o.image.height(),(a=o.image.width())>n&&(e=n/a,a=n,r=Math.round(r*e)),r>s&&(e=s/r,r=s,a=Math.round(a*e)),o.image.width(a).height(r).css({top:(t(window).height()-o.image.outerHeight())/2+"px",left:(t(window).width()-o.image.outerWidth())/2+"px"}).show(),o.locked=!1},getCurrentIndex:function(){return t.inArray(o.current,o.items)},next:function(){if(o.locked)return!1;o.locked=!0,o.getCurrentIndex()>
1=o.items.length-1?t(o.items[0]).click():t(o.items[o.getCurrentIndex()+1]).click()},previous:function(){if(o.locked)return!1;o.locked=!0,o.getCurrentIndex()<=0?t(o.items[o.items.length-1]).click():t(o.items[o.getCurrentIndex()-1]).click()},bindEvents:function(){t(o.items).click(function(e){if(o.lightbox.is(":visible")||!(t(window).width()<i.minSize||t(window).height()<i.minSize)){var s=t(this)[0];e.preventDefault(),o.current=s,o.loadImage(),t(document).on("keydown",function(t){27===t.keyCode&&o.close(),39===t.keyCode&&o.next(),37===t.keyCode&&o.previous()})}else t(this).attr("target","_blank")}),o.lightbox.on("click",function(t){this===t.target&&o.close()}),t(o.lightbox).on("click",".lightbox__nav--prev",function(){return o.previous(),!1}),t(o.lightbox).on("click",".lightbox__nav--next",function(){return o.next(),!1}),t(o.lightbox).on("click",".lightbox__close",function(){return o.close(),!1}),t(window).resize(function(){o.image&&o.resizeImage()})},close:function(){t(document).off("keydown"),t(o.lightbox).fadeOut("fast"),t("body").removeClass("blurred")}};t.extend(i,e),o.init(this)}}(jQuery),function(t,e){"function"==typeof define&&define.amd?define(["jquery"],function(i){return e(t,i)}):"object"==typeof exports?e(t,require("jquery")):e(t,t.jQuery||t.Zepto)}(this,function(t,e){"use strict";function i(t){if(x&&"none"===t.css("animation-name")&&"none"===t.css("-webkit-animation-name")&&"none"===t.css("-moz-animation-name")&&"none"===t.css("-o-animation-name")&&"none"===t.css("-ms-animation-name"))return 0;var e,i,o,s,n=t.css("animation-duration")||t.css("-webkit-animation-duration")||t.css("-moz-animation-duration")||t.css("-o-animation-duration")||t.css("-ms-animation-duration")||"0s",r=t.css("animation-delay")||t.css("-webkit-animation-delay")||t.css("-moz-animation-delay")||t.css("-o-animation-delay")||t.css("-ms-animation-delay")||"0s",a=t.css("animation-iteration-count")||t.css("-webkit-animation-iteration-count")||t.css("-moz-animation-iteration-count")||t.css("-o-animation-iteration-count")||t.css("-ms-animation-iteration-count")||"1";for(n=n.split(", "),r=r.split(", "),a=a.split(", "),s=0,i=n.length,e=Number.NEGATIVE_INFINITY;s<i;s++)(o=parseFloat(n[s])*parseInt(a[s],10)+parseFloat(r[s]))>e&&(e=o);return e}function o(){if(e(document.body).height()<=e(window).height())return 0;var t,i,o=document.createElement("div"),s=document.createElement("div");return o.style.visibility="hidden",o.style.width="100px",document.body.appendChild(o),t=o.offsetWidth,o.style.overflow="scroll",s.style.width="100%",o.appendChild(s),i=s.offsetWidth,o.parentNode.removeChild(o),t-i}function s(){if(!k){var t,i,s=e("html"),n=d("is-locked");s.hasClass(n)||(i=e(document.body),t=parseInt(i.css("padding-right"),10)+o(),i.css("padding-right",t+"px"),s.addClass(n))}}function n(){if(!k){var t,i,s=e("html"),n=d("is-locked");s.hasClass(n)&&(i=e(document.body),t=parseInt(i.css("padding-right"),10)-o(),i.css("padding-right",t+"px"),s.removeClass(n))}}function r(t,e,i,o){var s=d("is",e),n=[d("is",y.CLOSING),d("is",y.OPENING),d("is",y.CLOSED),d("is",y.OPENED)].join(" ");t.$bg.removeClass(n).addClass(s),t.$overlay.removeClass(n).addClass(s),t.$wrapper.removeClass(n).addClass(s),t.$modal.removeClass(n).addClass(s),t.state=e,!i&&t.$modal.trigger({type:e,reason:o},[{reason:o}])}function a(t,o,s){var n=0,r=function(t){t.target===this&&n++},a=function(t){t.target===this&&0==--n&&(e.each(["$bg","$overlay","$wrapper","$modal"],function(t,e){s[e].off(v+" "+_)}),o())};e.each(["$bg","$overlay","$wrapper","$modal"],function(t,e){s[e].on(v,r).on(_,a)}),t(),0===i(s.$bg)&&0===i(s.$overlay)&&0===i(s.$wrapper)&&0===i(s.$modal)&&(e.each(["$bg","$overlay","$wrapper","$modal"],function(t,e){s[e].off(v+" "+_)}),o())}function l(t){t.state!==y.CLOSED&&(e.each(["$bg","$overlay","$wrapper","$modal"],function(e,i){t[i].off(v+" "+_)}),t.$bg.removeClass(t.settings.modifier),t.$overlay.removeClass(t.settings.modifier).hide(),t.$wrapper.hide(),n(),r(t,y.CLOSED,!0))}function c(t){var e,i,o,s,n={};for(s=0,i=(e=(t=t.replace(/\s*:\s*/g,":").replace(/\s*,\s*/g,",")).split(",")).length;s<i;s++)e[s]=e[s].split(":"),("string"==typeof(o=e[s][1])||o instanceof String)&&(o="true"===o||"false"!==o&&o),("string"==typeof o||o instanceof String)&&(o=isNaN(o)?o:+o),n[e[s][0]]=o;return n}function d(){for(var t=m,e=0;e<arguments.length;++e)t+="-"+arguments[e];return t}function h(){var t,i,o=location.hash.replace("#","");if(o){try{i=e("[data-"+g+'-id="'+o+'"]')}catch(t){}i&&i.length&&(t=e[g].lookup[i.data(g)])&&t.settings.hashTracking&&t.open()}else u&&u.state===y.OPENED&&u.settings.hashTracking&&u.close()}function p(t,i){var o=e(document.body),s=this;s.settings=e.extend({},w,i),s.index=e[g].lookup.push(s)-1,s.state=y.CLOSED,s.$overlay=e("."+d("overlay")),null!==s.settings.appendTo&&s.settings.appendTo.length&&(o=e(s.settings.appendTo)),s.$overlay.length||(s.$overlay=e("<div>").addClass(d("overlay")+" "+d("is",y.CLOSED)).hide(),o.append(s.$overlay)),s.$bg=e("."+d("bg")).addClass(d("is",y.CLOSED)),s.$modal=t.addClass(m+" "+d("is-initialized")+" "+s.settings.modifier+" "+d("is",y.CLOSED)).attr("tabindex","-1"),s.$wrapper=e("<div>").addClass(d("wrapper")+" "+s.settings.modifier+" "+d("is",y.CLOSED)).hide().append(s.$modal),o.append(s.$wrapper),s.$wrapper.on("click."+m,"[data-"+g+'-action="close"]',function(t){t.preventDefault(),s.close()}),s.$wrapper.on("click."+m,"[data-"+g+'-action="cancel"]',function(t){t.preventDefault(),s.$modal.trigger(b.CANCELLATION),s.settings.closeOnCancel&&s.close(b.CANCELLATION)}),s.$wrapper.on("click."+m,"[data-"+g+'-action="confirm"]',function(t){t.preventDefault(),s.$modal.trigger(b.CONFIRMATION),s.settings.closeOnConfirm&&s.close(b.CONFIRMATION)}),s.$wrapper.on("click."+m,function(t){e(t.target).hasClass(d("wrapper"))&&s.settings.closeOnOutsideClick&&s.close()})}var u,f,g="remodal",m=t.REMODAL_GLOBALS&&t.REMODAL_GLOBALS.NAMESPACE||g,v=e.map(["animationstart","webkitAnimationStart","MSAnimationStart","oAnimationStart"],function(t){return t+"."+m}).join(" "),_=e.map(["animationend","webkitAnimationEnd","MSAnimationEnd","oAnimationEnd"],function(t){return t+"."+m}).join(" "),w=e.extend({hashTracking:!0,closeOnConfirm:!0,closeOnCancel:!0,
1closeOnEscape:!0,closeOnOutsideClick:!0,modifier:"",appendTo:null},t.REMODAL_GLOBALS&&t.REMODAL_GLOBALS.DEFAULTS),y={CLOSING:"closing",CLOSED:"closed",OPENING:"opening",OPENED:"opened"},b={CONFIRMATION:"confirmation",CANCELLATION:"cancellation"},x=function(){var t=document.createElement("div").style;return void 0!==t.animationName||void 0!==t.WebkitAnimationName||void 0!==t.MozAnimationName||void 0!==t.msAnimationName||void 0!==t.OAnimationName}(),k=/iPad|iPhone|iPod/.test(navigator.platform);p.prototype.open=function(){var t,i=this;i.state!==y.OPENING&&i.state!==y.CLOSING&&((t=i.$modal.attr("data-"+g+"-id"))&&i.settings.hashTracking&&(f=e(window).scrollTop(),location.hash=t),u&&u!==i&&l(u),u=i,s(),i.$bg.addClass(i.settings.modifier),i.$overlay.addClass(i.settings.modifier).show(),i.$wrapper.show().scrollTop(0),i.$modal.focus(),a(function(){r(i,y.OPENING)},function(){r(i,y.OPENED)},i))},p.prototype.close=function(t){var i=this;i.state!==y.OPENING&&i.state!==y.CLOSING&&(i.settings.hashTracking&&i.$modal.attr("data-"+g+"-id")===location.hash.substr(1)&&(location.hash="",e(window).scrollTop(f)),a(function(){r(i,y.CLOSING,!1,t)},function(){i.$bg.removeClass(i.settings.modifier),i.$overlay.removeClass(i.settings.modifier).hide(),i.$wrapper.hide(),n(),r(i,y.CLOSED,!1,t)},i))},p.prototype.getState=function(){return this.state},p.prototype.destroy=function(){var t=e[g].lookup;l(this),this.$wrapper.remove(),delete t[this.index],0===e.grep(t,function(t){return!!t}).length&&(this.$overlay.remove(),this.$bg.removeClass(d("is",y.CLOSING)+" "+d("is",y.OPENING)+" "+d("is",y.CLOSED)+" "+d("is",y.OPENED)))},e[g]={lookup:[]},e.fn[g]=function(t){var i,o;return this.each(function(s,n){null==(o=e(n)).data(g)?(i=new p(o,t),o.data(g,i.index),i.settings.hashTracking&&o.attr("data-"+g+"-id")===location.hash.substr(1)&&i.open()):i=e[g].lookup[o.data(g)]}),i},e(document).ready(function(){e(document).on("click","[data-"+g+"-target]",function(t){t.preventDefault();var i=t.currentTarget.getAttribute("data-"+g+"-target"),o=e("[data-"+g+'-id="'+i+'"]');e[g].lookup[o.data(g)].open()}),e(document).find("."+m).each(function(t,i){var o=e(i),s=o.data(g+"-options");s?("string"==typeof s||s instanceof String)&&(s=c(s)):s={},o[g](s)}),e(document).on("keydown."+m,function(t){u&&u.settings.closeOnEscape&&u.state===y.OPENED&&27===t.keyCode&&u.close()}),e(window).on("hashchange."+m,h)})}),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){"use strict";var e=window.Slick||{};(e=function(){var e=0;return function(i,o){var s,n=this;n.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:t(i),appendDots:t(i),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,i){return t('<button type="button" />').text(i+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},n.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},t.extend(n,n.initials),n.activeBreakpoint=null,n.animType=null,n.animProp=null,n.breakpoints=[],n.breakpointSettings=[],n.cssTransitions=!1,n.focussed=!1,n.interrupted=!1,n.hidden="hidden",n.paused=!0,n.positionProp=null,n.respondTo=null,n.rowCount=1,n.shouldClick=!0,n.$slider=t(i),n.$slidesCache=null,n.transformType=null,n.transitionType=null,n.visibilityChange="visibilitychange",n.windowWidth=0,n.windowTimer=null,s=t(i).data("slick")||{},n.options=t.extend({},n.defaults,o,s),n.currentSlide=n.options.initialSlide,n.originalSettings=n.options,void 0!==document.mozHidden?(n.hidden="mozHidden",n.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(n.hidden="webkitHidden",n.visibilityChange="webkitvisibilitychange"),n.autoPlay=t.proxy(n.autoPlay,n),n.autoPlayClear=t.proxy(n.autoPlayClear,n),n.autoPlayIterator=t.proxy(n.autoPlayIterator,n),n.changeSlide=t.proxy(n.changeSlide,n),n.clickHandler=t.proxy(n.clickHandler,n),n.selectHandler=t.proxy(n.selectHandler,n),n.setPosition=t.proxy(n.setPosition,n),n.swipeHandler=t.proxy(n.swipeHandler,n),n.dragHandler=t.proxy(n.dragHandler,n),n.keyHandler=t.proxy(n.keyHandler,n),n.instanceUid=e++,n.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,n.registerBreakpoints(),n.init(!0)}}()).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},e.prototype.addSlide=e.prototype.slickAdd=function(e,i,o){var s=this;if("boolean"==typeof i)o=i,i=null;else if(i<0||i>=s.slideCount)return!1;s.unload(),"number"==typeof i?0===i&&0===s.$slides.length?t(e).appendTo(s.$slideTrack):o?t(e).insertBefore(s.$slides.eq(i)):t(e).insertAfter(s.$slides.eq(i)):!0===o?t(e).prependTo(s.$slideTrack):t(e).appendTo(s.$slideTrack),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.append(s.$slides),s.$slides.each(function(e,i){t(i).attr("data-slick-index",e)}),s.$slidesCache=s.$slides,s.reinit()},e.prototype.animateHeight=function(){var t=this;if(1===t.options.slidesToShow&&!0===t.options.adaptiveHeight&&!1===t.options.vertical){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.animate({height:e},t.options.speed)}},e.prototype.animateSlide=function(e,i){var o={},s=this;s.animateHeight(),!0===s.options.rtl&&!1===s.options.vertical&&(e=-e),!1===s.transformsEnabled?!1===s.options.vertical?s.$slideTrack.animate({left:e},s.options.speed,s.options.easing,i):s.$slideTrack.animate({top:e},s.options.speed,s.options.easing,i):!1===s.cssTransitions?(!0===s.options.rtl&&(s.currentLeft=-s.currentLeft),t({animStart:s.currentLeft}).animate({animStart:e},{duration:s.options.speed,easing:s.options.easing,step:function(t){t=Math.ceil(t),!1===s.options.vertical?(o[s.animType]="translate("+t+"px, 0px)",s.$slideTrack.css(o)):(o[s.animType]="translate(0px,"+t+"px)",s.$slideTrack.css(o))},complete:function(){i&&i.call()}})):(s.applyTransition(),e=Math.ceil(e),!1===s.options.vertical?o[s.animType]="translate3d("+e+"px, 0px, 0px)":o[s.animType]="translate3d(0px,"+e+"px, 0px)",s.$slideTrack.css(o),i&&setTimeout(function(){s.disableTransition(),i.call()},s.options.speed))},e.prototype.getNavTarget=function(){var e=this,i=e.options.asNavFor;return i&&null!==i&&(i=t(i).not(e.$slider)),i},e.prototype.asNavFor=function(e){var i=this.getNavTarget();null!==i&&"object"==typeof i&&i.each(function(){var i=t(this).slick("getSlick");i.unslicked||i.slideHandler(e,!0)})},e.prototype.applyTransition=function(t){var e=this,i={};!1===e.options.fade?i[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:i[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,!1===e.options.fade?e.$slideTrack.css(i):e.$slides.eq(t).css(i)},e.prototype.autoPlay=function(){var t=this;t.autoPlayClear(),t.slideCount>t.options.slidesToShow&&(t.autoPlayTimer=setInterval(t.autoPlayIterator,t.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){var t=this;t.autoPlayTimer&&clearInterval(t.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var t=this,e=t.currentSlide+t.options.slidesToScroll;
1t.paused||t.interrupted||t.focussed||(!1===t.options.infinite&&(1===t.direction&&t.currentSlide+1===t.slideCount-1?t.direction=0:0===t.direction&&(e=t.currentSlide-t.options.slidesToScroll,t.currentSlide-1==0&&(t.direction=1))),t.slideHandler(e))},e.prototype.buildArrows=function(){var e=this;!0===e.options.arrows&&(e.$prevArrow=t(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=t(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),!0!==e.options.infinite&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},e.prototype.buildDots=function(){var e,i,o=this;if(!0===o.options.dots){for(o.$slider.addClass("slick-dotted"),i=t("<ul />").addClass(o.options.dotsClass),e=0;e<=o.getDotCount();e+=1)i.append(t("<li />").append(o.options.customPaging.call(this,o,e)));o.$dots=i.appendTo(o.options.appendDots),o.$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.$slides.each(function(e,i){t(i).attr("data-slick-index",e).data("originalStyling",t(i).attr("style")||"")}),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?t('<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),!0!==e.options.centerMode&&!0!==e.options.swipeToSlide||(e.options.slidesToScroll=1),t("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),!0===e.options.draggable&&e.$list.addClass("draggable")},e.prototype.buildRows=function(){var t,e,i,o,s,n,r,a=this;if(o=document.createDocumentFragment(),n=a.$slider.children(),a.options.rows>1){for(r=a.options.slidesPerRow*a.options.rows,s=Math.ceil(n.length/r),t=0;t<s;t++){var l=document.createElement("div");for(e=0;e<a.options.rows;e++){var c=document.createElement("div");for(i=0;i<a.options.slidesPerRow;i++){var d=t*r+(e*a.options.slidesPerRow+i);n.get(d)&&c.appendChild(n.get(d))}l.appendChild(c)}o.appendChild(l)}a.$slider.empty().append(o),a.$slider.children().children().children().css({width:100/a.options.slidesPerRow+"%",display:"inline-block"})}},e.prototype.checkResponsive=function(e,i){var o,s,n,r=this,a=!1,l=r.$slider.width(),c=window.innerWidth||t(window).width();if("window"===r.respondTo?n=c:"slider"===r.respondTo?n=l:"min"===r.respondTo&&(n=Math.min(c,l)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){s=null;for(o in r.breakpoints)r.breakpoints.hasOwnProperty(o)&&(!1===r.originalSettings.mobileFirst?n<r.breakpoints[o]&&(s=r.breakpoints[o]):n>r.breakpoints[o]&&(s=r.breakpoints[o]));null!==s?null!==r.activeBreakpoint?(s!==r.activeBreakpoint||i)&&(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=t.extend({},r.originalSettings,r.breakpointSettings[s]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),a=s):(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=t.extend({},r.originalSettings,r.breakpointSettings[s]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),a=s):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e),a=s),e||!1===a||r.$slider.trigger("breakpoint",[r,a])}},e.prototype.changeSlide=function(e,i){var o,s,n,r=this,a=t(e.currentTarget);switch(a.is("a")&&e.preventDefault(),a.is("li")||(a=a.closest("li")),n=r.slideCount%r.options.slidesToScroll!=0,o=n?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll,e.data.message){case"previous":s=0===o?r.options.slidesToScroll:r.o
1ptions.slidesToShow-o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-s,!1,i);break;case"next":s=0===o?r.options.slidesToScroll:o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+s,!1,i);break;case"index":var l=0===e.data.index?0:e.data.index||a.index()*r.options.slidesToScroll;r.slideHandler(r.checkNavigable(l),!1,i),a.children().trigger("focus");break;default:return}},e.prototype.checkNavigable=function(t){var e,i;if(e=this.getNavigableIndexes(),i=0,t>e[e.length-1])t=e[e.length-1];else for(var o in e){if(t<e[o]){t=i;break}i=e[o]}return t},e.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&(t("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",t.proxy(e.interrupt,e,!0)).off("mouseleave.slick",t.proxy(e.interrupt,e,!1)),!0===e.options.accessibility&&e.$dots.off("keydown.slick",e.keyHandler)),e.$slider.off("focus.slick blur.slick"),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide),!0===e.options.accessibility&&(e.$prevArrow&&e.$prevArrow.off("keydown.slick",e.keyHandler),e.$nextArrow&&e.$nextArrow.off("keydown.slick",e.keyHandler))),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.
1slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),t(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),!0===e.options.accessibility&&e.$list.off("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&t(e.$slideTrack).children().off("click.slick",e.selectHandler),t(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),t(window).off("resize.slick.slick-"+e.instanceUid,e.resize),t("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),t(window).off("load.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",t.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",t.proxy(e.interrupt,e,!1))},e.prototype.cleanUpRows=function(){var t,e=this;e.options.rows>1&&((t=e.$slides.children().children()).removeAttr("style"),e.$slider.empty().append(t))},e.prototype.clickHandler=function(t){!1===this.shouldClick&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault())},e.prototype.destroy=function(e){var i=this;i.autoPlayClear(),i.touchObject={},i.cleanUpEvents(),t(".slick-cloned",i.$slider).detach(),i.$dots&&i.$dots.remove(),i.$prevArrow&&i.$prevArrow.length&&(i.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.prevArrow)&&i.$prevArrow.remove()),i.$nextArrow&&i.$nextArrow.length&&(i.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.nextArrow)&&i.$nextArrow.remove()),i.$slides&&(i.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){t(this).attr("style",t(this).data("originalStyling"))}),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.detach(),i.$list.detach(),i.$slider.append(i.$slides)),i.cleanUpRows(),i.$slider.removeClass("slick-slider"),i.$slider.removeClass("slick-initialized"),i.$slider.removeClass("slick-dotted"),i.unslicked=!0,e||i.$slider.trigger("destroy",[i])},e.prototype.disableTransition=function(t){var e=this,i={};i[e.transitionType]="",!1===e.options.fade?e.$slideTrack.css(i):e.$slides.eq(t).css(i)},e.prototype.fadeSlide=function(t,e){var i=this;!1===i.cssTransitions?(i.$slides.eq(t).css({zIndex:i.options.zIndex}),i.$slides.eq(t).animate({opacity:1},i.options.speed,i.options.easing,e)):(i.applyTransition(t),i.$slides.eq(t).css({opacity:1,zIndex:i.options.zIndex}),e&&setTimeout(function(){i.disableTransition(t),e.call()},i.options.speed))},e.prototype.fadeSlideOut=function(t){var e=this;!1===e.cssTransitions?e.$slides.eq(t).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(t),e.$slides.eq(t).css({opacity:0,zIndex:e.options.zIndex-2}))},e.prototype.filterSlides=e.prototype.slickFilter=function(t){var e=this;null!==t&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(t).appendTo(e.$slideTrack),e.reinit())},e.prototype.focusHandler=function(){var e=this;e.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(i){i.stopImmediatePropagation();var o=t(this);setTimeout(function(){e.options.pauseOnFocus&&(e.focussed=o.is(":focus"),e.autoPlay())},0)})},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){return this.currentSlide},e.prototype.getDotCount=function(){var t=this,e=0,i=0,o=0;if(!0===t.options.infinite)if(t.slideCount<=t.options.slidesToShow)++o;else for(;e<t.slideCount;)++o,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else if(!0===t.options.centerMode)o=t.slideCount;else if(t.options.asNavFor)for(;e<t.slideCount;)++o,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else o=1+Math.ceil((t.slideCount-t.options.slidesToShow)/t.options.slidesToScroll);return o-1},e.prototype.getLeft=function(t){var e,i,o,s,n=this,r=0;return n.slideOffset=0,i=n.$slides.first().outerHeight(!0),!0===n.options.infinite?(n.slideCount>n.options.slidesToShow&&(n.slideOffset=n.slideWidth*n.options.slidesToShow*-1,s=-1,!0===n.options.vertical&&!0===n.options.centerMode&&(2===n.options.slidesToShow?s=-1.5:1===n.options.slidesToShow&&(s=-2)),r=i*n.options.slidesToShow*s),n.slideCount%n.options.slidesToScroll!=0&&t+n.options.slidesToScroll>n.slideCount&&n.slideCount>n.options.slidesToShow&&(t>n.slideCount?(n.slideOffset=(n.options.slidesToShow-(t-n.slideCount))*n.slideWidth*-1,r=(n.options.slidesToShow-(t-n.slideCount))*i*-1):(n.slideOffset=n.slideCount%n.options.slidesToScroll*n.slideWidth*-1,r=n.slideCount%n.options.slidesToScroll*i*-1))):t+n.options.slidesToShow>n.slideCount&&(n.slideOffset=(t+n.options.slidesToShow-n.slideCount)*n.slideWidth,r=(t+n.options.slidesToShow-n.slideCount)*i),n.slideCount<=n.options.slidesToShow&&(n.slideOffset=0,r=0),!0===n.options.centerMode&&n.slideCount<=n.options.slidesToShow?n.slideOffset=n.slideWidth*Math.floor(n.options.slidesToShow)/2-n.slideWidth*n.slideCount/2:!0===n.options.centerMode&&!0===n.options.infinite?n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)-n.slideWidth:!0===n.options.centerMode&&(n.slideOffset=0,n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)),e=!1===n.options.vertical?t*n.slideWidth*-1+n.slideOffset:t*i*-1+r,!0===n.options.variableWidth&&(o=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(t):n.$slideTrack.children(".slick-slide").eq(t+n.options.slidesToShow),e=!0===n.options.rtl?o[0]?-1*(n.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,!0===n.options.centerMode&&(o=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(t):n.$slideTrack.children(".slick-slide").eq(t+n.options.slidesToShow+1),e=!0===n.options.rtl?o[0]?-1*(n.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,e+=(n.$list.width()-o.outerWidth())/2)),e},e.prototype.getOption=e.prototype.slickGetOption=function(t){return this.options[t]},e.prototype.getNavigableIndexes=function(){var t,e=this,i=0,o=0,s=[];for(!1===e.options.infinite?t=e.slideCount:(i=-1*e.options.slidesToScroll,o=-1*e.options.slidesToScroll,t=2*e.slideCount);i<t;)s.push(i),i=o+e.options.slidesToScroll,o+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return s},e.prototype.getSlick=function(){return this},e.prototype.getSlideCount=function(){var e,i,o=this;return i=!0===o.options.centerMode?o.slideWidth*Math.floor(o.options.slidesToShow/2):0,!0===o.options.swipeToSlide?(o.$slideTrack.find(".slick-slide").each(function(s,n){if(n.offsetLeft-i+t(n).outerWidth()/2>-1*o.swipeLeft)return e=n,!1}),Math.abs(t(e).attr("data-slick-index")-o.currentSlide)||1):o.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(t,e){this.changeSlide({data:{message:"index",index:
1parseInt(t)}},e)},e.prototype.init=function(e){var i=this;t(i.$slider).hasClass("slick-initialized")||(t(i.$slider).addClass("slick-initialized"),i.buildRows(),i.buildOut(),i.setProps(),i.startLoad(),i.loadSlider(),i.initializeEvents(),i.updateArrows(),i.updateDots(),i.checkResponsive(!0),i.focusHandler()),e&&i.$slider.trigger("init",[i]),!0===i.options.accessibility&&i.initADA(),i.options.autoplay&&(i.paused=!1,i.autoPlay())},e.prototype.initADA=function(){var e=this,i=Math.ceil(e.slideCount/e.options.slidesToShow),o=e.getNavigableIndexes().filter(function(t){return t>=0&&t<e.slideCount});e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==e.$dots&&(e.$slides.not(e.$slideTrack.find(".slick-cloned")).each(function(i){var s=o.indexOf(i);t(this).attr({role:"tabpanel",id:"slick-slide"+e.instanceUid+i,tabindex:-1}),-1!==s&&t(this).attr({"aria-describedby":"slick-slide-control"+e.instanceUid+s})}),e.$dots.attr("role","tablist").find("li").each(function(s){var n=o[s];t(this).attr({role:"presentation"}),t(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+e.instanceUid+s,"aria-controls":"slick-slide"+e.instanceUid+n,"aria-label":s+1+" of "+i,"aria-selected":null,tabindex:"-1"})}).eq(e.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var s=e.currentSlide,n=s+e.options.slidesToShow;s<n;s++)e.$slides.eq(s).attr("tabindex",0);e.activateADA()},e.prototype.initArrowEvents=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},t.changeSlide),t.$nextArrow.off("click.slick").on("click.slick",{message:"next"},t.changeSlide),!0===t.options.accessibility&&(t.$prevArrow.on("keydown.slick",t.keyHandler),t.$nextArrow.on("keydown.slick",t.keyHandler)))},e.prototype.initDotEvents=function(){var e=this;!0===e.options.dots&&(t("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),!0===e.options.accessibility&&e.$dots.on("keydown.slick",e.keyHandler)),!0===e.options.dots&&!0===e.options.pauseOnDotsHover&&t("li",e.$dots).on("mouseenter.slick",t.proxy(e.interrupt,e,!0)).on("mouseleave.slick",t.proxy(e.interrupt,e,!1))},e.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",t.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",t.proxy(e.interrupt,e,!1)))},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),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"}
1,e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),t(document).on(e.visibilityChange,t.proxy(e.visibility,e)),!0===e.options.accessibility&&e.$list.on("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&t(e.$slideTrack).children().on("click.slick",e.selectHandler),t(window).on("orientationchange.slick.slick-"+e.instanceUid,t.proxy(e.orientationChange,e)),t(window).on("resize.slick.slick-"+e.instanceUid,t.proxy(e.resize,e)),t("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),t(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),t(e.setPosition)},e.prototype.initUI=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.show(),t.$nextArrow.show()),!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&t.$dots.show()},e.prototype.keyHandler=function(t){var e=this;t.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===t.keyCode&&!0===e.options.accessibility?e.changeSlide({data:{message:!0===e.options.rtl?"next":"previous"}}):39===t.keyCode&&!0===e.options.accessibility&&e.changeSlide({data:{message:!0===e.options.rtl?"previous":"next"}}))},e.prototype.lazyLoad=function(){function e(e){t("img[data-lazy]",e).each(function(){var e=t(this),i=t(this).attr("data-lazy"),o=t(this).attr("data-srcset"),s=t(this).attr("data-sizes")||n.$slider.attr("data-sizes"),r=document.createElement("img");r.onload=function(){e.animate({opacity:0}
vendor: 5,095 bytes, line 1
1,100,function(){o&&(e.attr("srcset",o),s&&e.attr("sizes",s)),e.attr("src",i).animate({opacity:1},200,function(){e.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),n.$slider.trigger("lazyLoaded",[n,e,i])})},r.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),n.$slider.trigger("lazyLoadError",[n,e,i])},r.src=i})}var i,o,s,n=this;if(!0===n.options.centerMode?!0===n.options.infinite?s=(o=n.currentSlide+(n.options.slidesToShow/2+1))+n.options.slidesToShow+2:(o=Math.max(0,n.currentSlide-(n.options.slidesToShow/2+1)),s=n.options.slidesToShow/2+1+2+n.currentSlide):(o=n.options.infinite?n.options.slidesToShow+n.currentSlide:n.currentSlide,s=Math.ceil(o+n.options.slidesToShow),!0===n.options.fade&&(o>0&&o--,s<=n.slideCount&&s++)),i=n.$slider.find(".slick-slide").slice(o,s),"anticipated"===n.options.lazyLoad)for(var r=o-1,a=s,l=n.$slider.find(".slick-slide"),c=0;c<n.options.slidesToScroll;c++)r<0&&(r=n.slideCount-1),i=(i=i.add(l.eq(r))).add(l.eq(a)),r--,a++;e(i),n.slideCount<=n.options.slidesToShow?e(n.$slider.find(".slick-slide")):n.currentSlide>=n.slideCount-n.options.slidesToShow?e(n.$slider.find(".slick-cloned").slice(0,n.options.slidesToShow)):0===n.currentSlide&&e(n.$slider.find(".slick-cloned").slice(-1*n.options.slidesToShow))},e.prototype.loadSlider=function(){var t=this;t.setPosition(),t.$slideTrack.css({opacity:1}),t.$slider.removeClass("slick-loading"),t.initUI(),"progressive"===t.options.lazyLoad&&t.progressiveLazyLoad()},e.prototype.next=e.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},e.prototype.orientationChange=function(){var t=this;t.checkResponsive(),t.setPosition()},e.prototype.pause=e.prototype.slickPause=function(){var t=this;t.autoPlayClear(),t.paused=!0},e.prototype.play=e.prototype.slickPlay=function(){var t=this;t.autoPlay(),t.options.autoplay=!0,t.paused=!1,t.focussed=!1,t.interrupted=!1},e.prototype.postSlide=function(e){var i=this;i.unslicked||(i.$slider.trigger("afterChange",[i,e]),i.animating=!1,i.slideCount>i.options.slidesToShow&&i.setPosition(),i.swipeLeft=null,i.options.autoplay&&i.autoPlay(),!0===i.options.accessibility&&(i.initADA(),i.options.focusOnChange&&t(i.$slides.get(i.currentSlide)).attr("tabindex",0).focus()))},e.prototype.prev=e.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},e.prototype.preventDefault=function(t){t.preventDefault()},e.prototype.progressiveLazyLoad=function(e){e=e||1;var i,o,s,n,r,a=this,l=t("img[data-lazy]",a.$slider);l.length?(i=l.first(),o=i.attr("data-lazy"),s=i.attr("data-srcset"),n=i.attr("data-sizes")||a.$slider.attr("data-sizes"),(r=document.createElement("img")).onload=function(){s&&(i.attr("srcset",s),n&&i.attr("sizes",n)),i.attr("src",o).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===a.options.adaptiveHeight&&a.setPosition(),a.$slider.trigger("lazyLoaded",[a,i,o]),a.progressiveLazyLoad()},r.onerror=function(){e<3?setTimeout(function(){a.progressiveLazyLoad(e+1)},500):(i.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),a.$slider.trigger("lazyLoadError",[a,i,o]),a.progressiveLazyLoad())},r.src=o):a.$slider.trigger("allImagesLoaded",[a])},e.prototype.refresh=function(e){var i,o,s=this;o=s.slideCount-s.options.slidesToShow,!s.options.infinite&&s.currentSlide>o&&(s.currentSlide=o),s.slideCount<=s.options.slidesToShow&&(s.currentSlide=0),i=s.currentSlide,s.destroy(!0),t.extend(s,s.initials,{currentSlide:i}),s.init(),e||s.changeSlide({data:{message:"index",index:i}},!1)},e.prototype.registerBreakpoints=function(){var e,i,o,s=this,n=s.options.responsive||null;if("array"===t.type(n)&&n.length){s.respondTo=s.options.respondTo||"window";for(e in n)if(o=s.breakpoints.length-1,n.hasOwnProperty(e)){for(i=n[e].breakpoint;o>=0;)s.breakpoints[o]&&s.breakpoints[o]===i&&s.breakpoints.splice(o,1),o--;s.breakpoints.push(i),s.breakpointSettings[i]=n[e].settings}s.breakpoints.sort(function(t,e){return s.options.mobileFirst?t-e:e-t})}},e.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),!0===e.options.focusOnSelect&&t(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},e.prototype.resize=function(){var e=this;t(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=t(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()},50))}
1,e.prototype.removeSlide=e.prototype.slickRemove=function(t,e,i){var o=this;if(t="boolean"==typeof t?!0===(e=t)?0:o.slideCount-1:!0===e?--t:t,o.slideCount<1||t<0||t>o.slideCount-1)return!1;o.unload(),!0===i?o.$slideTrack.children().remove():o.$slideTrack.children(this.options.slide).eq(t).remove(),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slidesCache=o.$slides,o.reinit()},e.prototype.setCSS=function(t){var e,i,o=this,s={};!0===o.options.rtl&&(t=-t),e="left"==o.positionProp?Math.ceil(t)+"px":"0px",i="top"==o.positionProp?Math.ceil(t)+"px":"0px",s[o.positionProp]=t,!1===o.transformsEnabled?o.$slideTrack.css(s):(s={},!1===o.cssTransitions?(s[o.animType]="translate("+e+", "+i+")",o.$slideTrack.css(s)):(s[o.animType]="translate3d("+e+", "+i+", 0px)",o.$slideTrack.css(s)))},e.prototype.setDimensions=function(){var t=this;!1===t.options.vertical?!0===t.options.centerMode&&t.$list.css({padding:"0px "+t.options.centerPadding}):(t.$list.height(t.$slides.first().outerHeight(!0)*t.options.slidesToShow),!0===t.options.centerMode&&t.$list.css({padding:t.options.centerPadding+" 0px"})),t.listWidth=t.$list.width(),t.listHeight=t.$list.height(),!1===t.options.vertical&&!1===t.options.variableWidth?(t.slideWidth=Math.ceil(t.listWidth/t.options.slidesToShow),t.$slideTrack.width(Math.ceil(t.slideWidth*t.$slideTrack.children(".slick-slide").length))):!0===t.options.variableWidth?t.$slideTrack.width(5e3*t.slideCount):(t.slideWidth=Math.ceil(t.listWidth),t.$slideTrack.height(Math.ceil(t.$slides.first().outerHeight(!0)*t.$slideTrack.children(".slick-slide").length)));var e=t.$slides.first().outerWidth(!0)-t.$slides.first().width();!1===t.options.variableWidth&&t.$slideTrack.children(".slick-slide").width(t.slideWidth-e)},e.prototype.setFade=function(){var e,i=this;i.$slides.each(function(o,s){e=i.slideWidth*o*-1,!0===i.options.rtl?t(s).css({position:"relative",right:e,top:0,zIndex:i.options.zIndex-2,opacity:0}
1):t(s).css({position:"relative",left:e,top:0,zIndex:i.options.zIndex-2,opacity:0})}),i.$slides.eq(i.currentSlide).css({zIndex:i.options.zIndex-1,opacity:1})},e.prototype.setHeight=function(){var t=this;if(1===t.options.slidesToShow&&!0===t.options.adaptiveHeight&&!1===t.options.vertical){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.css("height",e)}},e.prototype.setOption=e.prototype.slickSetOption=function(){var e,i,o,s,n,r=this,a=!1;if("object"===t.type(arguments[0])?(o=arguments[0],a=arguments[1],n="multiple"):"string"===t.type(arguments[0])&&(o=arguments[0],s=arguments[1],a=arguments[2],"responsive"===arguments[0]&&"array"===t.type(arguments[1])?n="responsive":void 0!==arguments[1]&&(n="single")),"single"===n)r.options[o]=s;else if("multiple"===n)t.each(o,function(t,e){r.options[t]=e});else if("responsive"===n)for(i in s)if("array"!==t.type(r.options.responsive))r.options.responsive=[s[i]];else{for(e=r.options.responsive.length-1;e>=0;)r.options.responsive[e].breakpoint===s[i].breakpoint&&r.options.responsive.splice(e,1),e--;r.options.responsive.push(s[i])}a&&(r.unload(),r.reinit())},e.prototype.setPosition=function(){var t=this;t.setDimensions(),t.setHeight(),!1===t.options.fade?t.setCSS(t.getLeft(t.currentSlide)):t.setFade(),t.$slider.trigger("setPosition",[t])},e.prototype.setProps=function(){var t=this,e=document.body.style;t.positionProp=!0===t.options.vertical?"top":"left","top"===t.positionProp?t.$slider.addClass("slick-vertical"):t.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||!0===t.options.useCSS&&(t.cssTransitions=!0),t.options.fade&&("number"==typeof t.options.zIndex?t.options.zIndex<3&&(t.options.zIndex=3):t.options.zIndex=t.defaults.zIndex),void 0!==e.OTransform&&(t.animType="OTransform",t.transformType="-o-transform",t.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.MozTransform&&(t.animType="MozTransform",t.transformType="-moz-transform",t.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(t.animType=!1)),void 0!==e.webkitTransform&&(t.animType="webkitTransform",t.transformType="-webkit-transform",t.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.msTransform&&(t.animType="msTransform",t.transformType="-ms-transform",t.transitionType="msTransition",void 0===e.msTransform&&(t.animType=!1)),void 0!==e.transform&&!1!==t.animType&&(t.animType="transform",t.transformType="transform",t.transitionType="transition"),t.transformsEnabled=t.options.useTransform&&null!==t.animType&&!1!==t.animType},e.prototype.setSlideClasses=function(t){var e,i,o,s,n=this;if(i=n.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),n.$slides.eq(t).addClass("slick-current"),!0===n.options.centerMode){var r=n.options.slidesToShow%2==0?1:0;e=Math.floor(n.options.slidesToShow/2),!0===n.options.infinite&&(t>=e&&t<=n.slideCount-1-e?n.$slides.slice(t-e+r,t+e+1).addClass("slick-active").attr("aria-hidden","false"):(o=n.options.slidesToShow+t,i.slice(o-e+1+r,o+e+2).addClass("slick-active").attr("aria-hidden","false")),0===t?i.eq(i.length-1-n.options.slidesToShow).addClass("slick-center"):t===n.slideCount-1&&i.eq(n.options.slidesToShow).addClass("slick-center")),n.$slides.eq(t).addClass("slick-center")}else t>=0&&t<=n.slideCount-n.options.slidesToShow?n.$slides.slice(t,t+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):i.length<=n.options.slidesToShow?i.addClass("slick-active").attr("aria-hidden","false"):(s=n.slideCount%n.options.slidesToShow,o=!0===n.options.infinite?n.options.slidesToShow+t:t,n.options.slidesToShow==n.options.slidesToScroll&&n.slideCount-t<n.options.slidesToShow?i.slice(o-(n.options.slidesToShow-s),o+s).addClass("slick-active").attr("aria-hidden","false"):i.slice(o,o+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==n.options.lazyLoad&&"anticipated"!==n.options.lazyLoad||n.lazyLoad()},e.prototype.setupInfinite=function(){var e,i,o,s=this;if(!0===s.options.fade&&(s.options.centerMode=!1),!0===s.options.infinite&&!1===s.options.fade&&(i=null,s.slideCount>s.options.slidesToShow)){for(o=!0===s.options.centerMode?s.options.slidesToShow+1:s.options.slidesToShow,e=s.slideCount;e>s.slideCount-o;e-=1)i=e-1,t(s.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i-s.slideCount).prependTo(s.$slideTrack).addClass("slick-cloned");for(e=0;e<o+s.slideCount;e+=1)i=e,t(s.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i+s.slideCount).appendTo(s.$slideTrack).addClass("slick-cloned");s.$slideTrack.find(".slick-cloned").find("[id]").each(function(){t(this).attr("id","")})}},e.prototype.interrupt=function(t){var e=this;t||e.autoPlay(),e.interrupted=t},e.prototype.selectHandler=function(e){var i=this,o=t(e.target).is(".slick-slide")?t(e.target):t(e.target).parents(".slick-slide"),s=parseInt(o.attr("data-slick-index"));s||(s=0),i.slideCount<=i.options.slidesToShow?i.slideHandler(s,!1,!0):i.slideHandler(s)}
1,e.prototype.slideHandler=function(t,e,i){var o,s,n,r,a,l=null,c=this;if(e=e||!1,!(!0===c.animating&&!0===c.options.waitForAnimate||!0===c.options.fade&&c.currentSlide===t))if(!1===e&&c.asNavFor(t),o=t,l=c.getLeft(o),r=c.getLeft(c.currentSlide),c.currentLeft=null===c.swipeLeft?r:c.swipeLeft,!1===c.options.infinite&&!1===c.options.centerMode&&(t<0||t>c.getDotCount()*c.options.slidesToScroll))!1===c.options.fade&&(o=c.currentSlide,!0!==i?c.animateSlide(r,function(){c.postSlide(o)}):c.postSlide(o));else if(!1===c.options.infinite&&!0===c.options.centerMode&&(t<0||t>c.slideCount-c.options.slidesToScroll))!1===c.options.fade&&(o=c.currentSlide,!0!==i?c.animateSlide(r,function(){c.postSlide(o)}):c.postSlide(o));else{if(c.options.autoplay&&clearInterval(c.autoPlayTimer),s=o<0?c.slideCount%c.options.slidesToScroll!=0?c.slideCount-c.slideCount%c.options.slidesToScroll:c.slideCount+o:o>=c.slideCount?c.slideCount%c.options.slidesToScroll!=0?0:o-c.slideCount:o,c.animating=!0,c.$slider.trigger("beforeChange",[c,c.currentSlide,s]),n=c.currentSlide,c.currentSlide=s,c.setSlideClasses(c.currentSlide),c.options.asNavFor&&(a=(a=c.getNavTarget()).slick("getSlick")).slideCount<=a.options.slidesToShow&&a.setSlideClasses(c.currentSlide),c.updateDots(),c.updateArrows(),!0===c.options.fade)return!0!==i?(c.fadeSlideOut(n),c.fadeSlide(s,function(){c.postSlide(s)})):c.postSlide(s),void c.animateHeight();!0!==i?c.animateSlide(l,function(){c.postSlide(s)}):c.postSlide(s)}},e.prototype.startLoad=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.hide(),t.$nextArrow.hide()),!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&t.$dots.hide(),t.$slider.addClass("slick-loading")},e.prototype.swipeDirection=function(){var t,e,i,o,s=this;return t=s.touchObject.startX-s.touchObject.curX,e=s.touchObject.startY-s.touchObject.curY,i=Math.atan2(e,t),(o=Math.round(180*i/Math.PI))<0&&(o=360-Math.abs(o)),o<=45&&o>=0?!1===s.options.rtl?"left":"right":o<=360&&o>=315?!1===s.options.rtl?"left":"right":o>=135&&o<=225?!1===s.options.rtl?"right":"left":!0===s.options.verticalSwiping?o>=35&&o<=135?"down":"up":"vertical"},e.prototype.swipeEnd=function(t){var e,i,o=this;if(o.dragging=!1,o.swiping=!1,o.scrolling)return o.scrolling=!1,!1;if(o.interrupted=!1,o.shouldClick=!(o.touchObject.swipeLength>10),void 0===o.touchObject.curX)return!1;if(!0===o.touchObject.edgeHit&&o.$slider.trigger("edge",[o,o.swipeDirection()]),o.touchObject.swipeLength>=o.touchObject.minSwipe){switch(i=o.swipeDirection()){case"left":case"down":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide+o.getSlideCount()):o.currentSlide+o.getSlideCount(),o.currentDirection=0;break;case"right":case"up":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide-o.getSlideCount()):o.currentSlide-o.getSlideCount(),o.currentDirection=1}"vertical"!=i&&(o.slideHandler(e),o.touchObject={},o.$slider.trigger("swipe",[o,i]))}else o.touchObject.startX!==o.touchObject.curX&&(o.slideHandler(o.currentSlide),o.touchObject={})},e.prototype.swipeHandler=function(t){var e=this;if(!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==t.type.indexOf("mouse")))switch(e.touchObject.fingerCount=t.originalEvent&&void 0!==t.originalEvent.touches?t.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),t.data.action){case"start":e.swipeStart(t);break;case"move":e.swipeMove(t);break;case"end":e.swipeEnd(t)}},e.prototype.swipeMove=function(t){var e,i,o,s,n,r,a=this;return n=void 0!==t.originalEvent?t.originalEvent.touches:null,!(!a.dragging||a.scrolling||n&&1!==n.length)&&(e=a.getLeft(a.currentSlide),a.touchObject.curX=void 0!==n?n[0].pageX:t.clientX,a.touchObject.curY=void 0!==n?n[0].pageY:t.clientY,a.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(a.touchObject.curX-a.touchObject.startX,2))),r=Math.round(Math.sqrt(Math.pow(a.touchObject.curY-a.touchObject.startY,2))),!a.options.verticalSwiping&&!a.swiping&&r>4?(a.scrolling=!0,!1):(!0===a.options.verticalSwiping&&(a.touchObject.swipeLength=r),i=a.swipeDirection(),void 0!==t.originalEvent&&a.touchObject.swipeLength>4&&(a.swiping=!0,t.preventDefault()),s=(!1===a.options.rtl?1:-1)*(a.touchObject.curX>a.touchObject.startX?1:-1),!0===a.options.verticalSwiping&&(s=a.touchObject.curY>a.touchObject.startY?1:-1),o=a.touchObject.swipeLength,a.touchObject.edgeHit=!1,!1===a.options.infinite&&(0===a.currentSlide&&"right"===i||a.currentSlide>=a.getDotCount()&&"left"===i)&&(o=a.touchObject.swipeLength*a.options.edgeFriction,a.touchObject.edgeHit=!0),!1===a.options.vertical?a.swipeLeft=e+o*s:a.swipeLeft=e+o*(a.$list.height()/a.listWidth)*s,!0===a.options.verticalSwiping&&(a.swipeLeft=e+o*s),!0!==a.options.fade&&!1!==a.options.touchMove&&(!0===a.animating?(a.swipeLeft=null,!1):void a.setCSS(a.swipeLeft))))},e.prototype.swipeStart=function(t){var e,i=this;if(i.interrupted=!0,1!==i.touchObject.fingerCount||i.slideCount<=i.options.slidesToShow)return i.touchObject={},!1;void 0!==t.originalEvent&&void 0!==t.originalEvent.touches&&(e=t.originalEvent.touches[0]),i.touchObject.startX=i.touchObject.curX=void 0!==e?e.pageX:t.clientX,i.touchObject.startY=i.touchObject.curY=void 0!==e?e.pageY:t.clientY,i.dragging=!0},e.prototype.unfilterSlides=e.prototype.slickUnfilter=function(){var t=this;null!==t.$slidesCache&&(t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.appendTo(t.$slideTrack),t.reinit())},e.prototype.unload=function(){var e=this;t(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")}
1,e.prototype.unslick=function(t){var e=this;e.$slider.trigger("unslick",[e,t]),e.destroy()},e.prototype.updateArrows=function(){var t=this;Math.floor(t.options.slidesToShow/2),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&!t.options.infinite&&(t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===t.currentSlide?(t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):t.currentSlide>=t.slideCount-t.options.slidesToShow&&!1===t.options.centerMode?(t.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):t.currentSlide>=t.slideCount-1&&!0===t.options.centerMode&&(t.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},e.prototype.updateDots=function(){var t=this;null!==t.$dots&&(t.$dots.find("li").removeClass("slick-active").end(),t.$dots.find("li").eq(Math.floor(t.currentSlide/t.options.slidesToScroll)).addClass("slick-active"))},e.prototype.visibility=function(){var t=this;t.options.autoplay&&(document[t.hidden]?t.interrupted=!0:t.interrupted=!1)},t.fn.slick=function(){var t,i,o=this,s=arguments[0],n=Array.prototype.slice.call(arguments,1),r=o.length;for(t=0;t<r;t++)if("object"==typeof s||void 0===s?o[t].slick=new e(o[t],s):i=o[t].slick[s].apply(o[t].slick,n),void 0!==i)return i;return o}}),function(t){t.fn.stars=function(e){for(var i=t.extend({stars:5,emptyIcon:"fa-star-o",filledIcon:"fa-star",color:"#E4AD22",starClass:"",value:0,text:null,click:function(){}},e),o=this,s=0;s<i.stars;s++){var n=t("<i>").addClass("fa").addClass(i.emptyIcon).addClass(i.starClass);i.text&&n.attr("data-rating-text",i.text[s]),"none"!==i.color&&n.css("color",i.color),this.append(n)}if(i.text){var r=t("<div>").addClass("rating-text");this.append(r)}var a=this.find("i");if(a.on("mouseover",function(){var e=t(this).index()+1,s=a.slice(0,e);events.removeFilledStars(a,i),events.fillStars(s,i),i.text&&o.find(".rating-text").html(t(this).data("rating-text"))}).on("mouseout",function(){events.removeFilledStars(a,i),events.fillStars(a.filter(".selected"),i),i.text&&o.find(".rating-text").html("")}).on("click",function(){var e=t(this).index();i.value=e+1,a.removeClass("selected").slice(0,i.value).addClass("selected"),i.click.call(a.get(e),i.value)}),events={removeFilledStars:function(t,e){return t.removeClass(e.filledIcon).addClass(e.emptyIcon),t},fillStars:function(t,e){return t.removeClass(e.emptyIcon).addClass(e.filledIcon),t}},i.value>0){var l=a.slice(0,i.value);events.fillStars(l,i).addClass("selected")}return this}}(jQuery),function(t,e){"function"==typeof define&&define.amd?define(["jquery"],function(t){return e(t)}):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(0,function(t){function e(t){this.$container,this.constraints=null,this.__$tooltip,this.__init(t)}function i(e,i){var o=!0;return t.each(e,function(t,s){return void 0===i[t]||e[t]!==i[t]?(o=!1,!1):void 0}),o}function o(e){var i=e.attr("id"),o=i?r.window.document.getElementById(i):null;return o?o===e[0]:t.contains(r.window.document.body,e[0])}var s={animation:"fade",animationDuration:350,content:null,contentAsHTML:!1,contentCloning:!1,debug:!0,delay:300,delayTouch:[300,500],functionInit:null,functionBefore:null,functionReady:null,functionAfter:null,functionFormat:null,IEmin:6,interactive:!1,multiple:!1,parent:null,plugins:["sideTip"],repositionOnScroll:!1,restoration:"none",selfDestruction:!0,theme:[],timer:0,trackerInterval:500,trackOrigin:!1,trackTooltip:!1,trigger:"hover",triggerClose:{click:!1,mouseleave:!1,originClick:!1,scroll:!1,tap:!1,touchleave:!1},triggerOpen:{click:!1,mouseenter:!1,tap:!1,touchstart:!1},updateAnimation:"rotate",zIndex:9999999},n="undefined"!=typeof window?window:null,r={hasTouchCapability:!(!n||!("ontouchstart"in n||n.DocumentTouch&&n.document instanceof n.DocumentTouch||n.navigator.maxTouchPoints)),hasTransitions:function(){if(!n)return!1;var t=(n.document.body||n.document.documentElement).style,e="transition",i=["Moz","Webkit","Khtml","O","ms"];if("string"==typeof t[e])return!0;e=e.charAt(0).toUpperCase()+e.substr(1);for(var o=0;o<i.length;o++)if("string"==typeof t[i[o]+e])return!0;return!1}(),IE:!1,semVer:"4.2.6",window:n},a=function(){this.__$emitterPrivate=t({}),this.__$emitterPublic=t({}),this.__instancesLatestArr=[],this.__plugins={},this._env=r};a.prototype={__bridge:function(e,i,o){if(!i[o]){var n=function(){};n.prototype=e;var r=new n;r.__init&&r.__init(i),t.each(e,function(t,e){0!=t.indexOf("__")&&(i[t]?s.debug&&console.log("The "+t+" method of the "+o+" plugin conflicts with another plugin or native methods"):(i[t]=function(){return r[t].apply(r,Array.prototype.slice.apply(arguments))},i[t].bridged=r))}),i[o]=r}return this},__setWindow:function(t){return r.window=t,this},_getRuler:function(t){return new e(t)},_off:function(){return this.__$emitterPrivate.off.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_on:function(){return this.__$emitterPrivate.on.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_one:function(){return this.__$emitterPrivate.one.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_plugin:function(e){var i=this;if("string"==typeof e){var o=e,s=null;return o.indexOf(".")>0?s=i.__plugins[o]:t.each(i.__plugins,function(t,e){return e.name.substring(e.name.length-o.length-1)=="."+o?(s=e,!1):void 0}),s}if(e.name.indexOf(".")<0)throw new Error("Plugins must be namespaced");return i.__plugins[e.name]=e,e.core&&i.__bridge(e.core,i,e.name),this},_trigger:function(){var t=Array.prototype.slice.apply(arguments);return"string"==typeof t[0]&&(t[0]={type:t[0]}),this.__$emitterPrivate.trigger.apply(this.__$emitterPrivate,t),this.__$emitterPublic.trigger.apply(this.__$emitterPublic,t),this},instances:function(e){var i=[];return t(e||".tooltipstered").each(function(){var e=t(this),o=e.data("tooltipster-ns");o&&t.each(o,function(t,o){i.push(e.data(o))})}),i},instancesLatest:function(){return this.__instancesLatestArr},off:function(){return this.__$emitterPublic.off.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},on:function(){return this.__$emitterPublic.on.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},one:function(){return this.__$emitterPublic.one.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},origins:function(e){return t((e?e+" ":"")+".tooltipstered").toArray()},setDefaults:function(e){return t.extend(s,e),this},triggerHandler:function(){return this.__$emitterPublic.triggerHandler.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this}},t.tooltipster=new a,t.Tooltipster=function(e,i){this.__callbacks={close:[],open:[]},this.__closingTime,this.__Content,this.__contentBcr,this.__destroyed=!1,this.__$emitterPrivate=t({}),this.__$emitterPublic=t({}),this.__enabled=!0,this.__garbageCollector,this.__Geometry,this.__lastPosition,this.__namespace="tooltipster-"+Math.round(1e6*Math.random()),this.__options,this.__$originParents,this.__pointerIsOverOrigin=!1,this.__previousThemes=[],this.__state="closed",this.__timeouts={close:[],open:null},this.__touchEvents=[],this.__tracker=null,this._$origin,this._$tooltip,this.__init(e,i)},t.Tooltipster.prototype={__init:function(e,i){var o=this;if(o._$origin=t(e),o.__options=t.extend(!0,{},s,i),o.__optionsFormat(),!r.IE||r.IE>=o.__options.IEmin){var n=null;if(void 0===o._$origin.data("tooltipster-initialTitle")&&(void 0===(n=o._$origin.attr("title"))&&(n=null),o._$origin.data("tooltipster-initialTitle",n)),null!==o.__options.content)o.__contentSet(o.__options.content);else{var a,l=o._$origin.attr("data-tooltip-content");l&&(a=t(l)),a&&a[0]?o.__contentSet(a.first()):o.__contentSet(n)}o._$origin.removeAttr("title").addClass("tooltipstered"),o.__prepareOrigin(),o.__prepareGC(),t.each(o.__options.plugins,function(t,e){o._plug(e)}),r.hasTouchCapability&&t(r.window.document.body).on("touchmove."+o.__namespace+"-triggerOpen",function(t){o._touchRecordEvent(t)}),o._on("created",function(){o.__prepareTooltip()})._on("repositioned",function(t){o.__lastPosition=t.position})}else o.__options.disabled=!0},__contentInsert:function(){var t=this,e=t._$tooltip.find(".tooltipster-content"),i=t.__Content;return t._trigger({type:"format",content:t.__Content,format:function(t){i=t}}
vendor: 34,020 bytes, line 1
1),t.__options.functionFormat&&(i=t.__options.functionFormat.call(t,t,{origin:t._$origin[0]},t.__Content)),"string"!=typeof i||t.__options.contentAsHTML?e.empty().append(i):e.text(i),t},__contentSet:function(e){return e instanceof t&&this.__options.contentCloning&&(e=e.clone(!0)),this.__Content=e,this._trigger({type:"updated",content:e}),this},__destroyError:function(){throw new Error("This tooltip has been destroyed and cannot execute your method call.")},__geometry:function(){var e=this,i=e._$origin,o=e._$origin.is("area");if(o){var s=e._$origin.parent().attr("name");i=t('img[usemap="#'+s+'"]')}var n=i[0].getBoundingClientRect(),a=t(r.window.document),l=t(r.window),c=i,d={available:{document:null,window:null},document:{size:{height:a.height(),width:a.width()}},window:{scroll:{left:r.window.scrollX||r.window.document.documentElement.scrollLeft,top:r.window.scrollY||r.window.document.documentElement.scrollTop},size:{height:l.height(),width:l.width()}},origin:{fixedLineage:!1,offset:{},size:{height:n.bottom-n.top,width:n.right-n.left},usemapImage:o?i[0]:null,windowOffset:{bottom:n.bottom,left:n.left,right:n.right,top:n.top}}};if(o){var h=e._$origin.attr("shape"),p=e._$origin.attr("coords");if(p&&(p=p.split(","),t.map(p,function(t,e){p[e]=parseInt(t)})),"default"!=h)switch(h){case"circle":var u=p[0],f=p[1],g=p[2],m=f-g,v=u-g;d.origin.size.height=2*g,d.origin.size.width=d.origin.size.height,d.origin.windowOffset.left+=v,d.origin.windowOffset.top+=m;break;case"rect":var _=p[0],w=p[1],y=p[2],b=p[3];d.origin.size.height=b-w,d.origin.size.width=y-_,d.origin.windowOffset.left+=_,d.origin.windowOffset.top+=w;break;case"poly":for(var x=0,k=0,S=0,C=0,$="even",T=0;T<p.length;T++){var D=p[T];"even"==$?(D>S&&(S=D,0===T&&(x=S)),x>D&&(x=D),$="odd"):(D>C&&(C=D,1==T&&(k=C)),k>D&&(k=D),$="even")}d.origin.size.height=C-k,d.origin.size.width=S-x,d.origin.windowOffset.left+=x,d.origin.windowOffset.top+=k}}for(e._trigger({type:"geometry",edit:function(t){d.origin.size.height=t.height,d.origin.windowOffset.left=t.left,d.origin.windowOffset.top=t.top,d.origin.size.width=t.width},geometry:{height:d.origin.size.height,left:d.origin.windowOffset.left,top:d.origin.windowOffset.top,width:d.origin.size.width}}),d.origin.windowOffset.right=d.origin.windowOffset.left+d.origin.size.width,d.origin.windowOffset.bottom=d.origin.windowOffset.top+d.origin.size.height,d.origin.offset.left=d.origin.windowOffset.left+d.window.scroll.left,d.origin.offset.top=d.origin.windowOffset.top+d.window.scroll.top,d.origin.offset.bottom=d.origin.offset.top+d.origin.size.height,d.origin.offset.right=d.origin.offset.left+d.origin.size.width,d.available.document={bottom:{height:d.document.size.height-d.origin.offset.bottom,width:d.document.size.width},left:{height:d.document.size.height,width:d.origin.offset.left},right:{height:d.document.size.height,width:d.document.size.width-d.origin.offset.right},top:{height:d.origin.offset.top,width:d.document.size.width}},d.available.window={bottom:{height:Math.max(d.window.size.height-Math.max(d.origin.windowOffset.bottom,0),0),width:d.window.size.width},left:{height:d.window.size.height,width:Math.max(d.origin.windowOffset.left,0)},right:{height:d.window.size.height,width:Math.max(d.window.size.width-Math.max(d.origin.windowOffset.right,0),0)},top:{height:Math.max(d.origin.windowOffset.top,0),width:d.window.size.width}};"html"!=c[0].tagName.toLowerCase();){if("fixed"==c.css("position")){d.origin.fixedLineage=!0;break}c=c.parent()}return d},__optionsFormat:function(){return"number"==typeof this.__options.animationDuration&&(this.__options.animationDuration=[this.__options.animationDuration,this.__options.animationDuration]),"number"==typeof this.__options.delay&&(this.__options.delay=[this.__options.delay,this.__options.delay]),"number"==typeof this.__options.delayTouch&&(this.__options.delayTouch=[this.__options.delayTouch,this.__options.delayTouch]),"string"==typeof this.__options.theme&&(this.__options.theme=[this.__options.theme]),null===this.__options.parent?this.__options.parent=t(r.window.document.body):"string"==typeof this.__options.parent&&(this.__options.parent=t(this.__options.parent)),"hover"==this.__options.trigger?(this.__options.triggerOpen={mouseenter:!0,touchstart:!0},this.__options.triggerClose={mouseleave:!0,originClick:!0,touchleave:!0}):"click"==this.__options.trigger&&(this.__options.triggerOpen={click:!0,tap:!0},this.__options.triggerClose={click:!0,tap:!0}),this._trigger("options"),this},__prepareGC:function(){var e=this;return e.__options.selfDestruction?e.__garbageCollector=setInterval(function(){var i=(new Date).getTime();e.__touchEvents=t.grep(e.__touchEvents,function(t,e){return i-t.time>6e4}),o(e._$origin)||e.close(function(){e.destroy()})},2e4):clearInterval(e.__garbageCollector),e},__prepareOrigin:function(){var t=this;if(t._$origin.off("."+t.__namespace+"-triggerOpen"),r.hasTouchCapability&&t._$origin.on("touchstart."+t.__namespace+"-triggerOpen touchend."+t.__namespace+"-triggerOpen touchcancel."+t.__namespace+"-triggerOpen",function(e){t._touchRecordEvent(e)}),t.__options.triggerOpen.click||t.__options.triggerOpen.tap&&r.hasTouchCapability){e="";t.__options.triggerOpen.click&&(e+="click."+t.__namespace+"-triggerOpen "),t.__options.triggerOpen.tap&&r.hasTouchCapability&&(e+="touchend."+t.__namespace+"-triggerOpen"),t._$origin.on(e,function(e){t._touchIsMeaningfulEvent(e)&&t._open(e)})}if(t.__options.triggerOpen.mouseenter||t.__options.triggerOpen.touchstart&&r.hasTouchCapability){e="";t.__options.triggerOpen.mouseenter&&(e+="mouseenter."+t.__namespace+"-triggerOpen "),t.__options.triggerOpen.touchstart&&r.hasTouchCapability&&(e+="touchstart."+t.__namespace+"-triggerOpen"),t._$origin.on(e,function(e){!t._touchIsTouchEvent(e)&&t._touchIsEmulatedEvent(e)||(t.__pointerIsOverOrigin=!0,t._openShortly(e))})}if(t.__options.triggerClose.mouseleave||t.__options.triggerClose.touchleave&&r.hasTouchCapability){var e="";t.__options.triggerClose.mouseleave&&(e+="mouseleave."+t.__namespace+"-triggerOpen "),t.__options.triggerClose.touchleave&&r.hasTouchCapability&&(e+="touchend."+t.__namespace+"-triggerOpen touchcancel."+t.__namespace+"-triggerOpen"),t._$origin.on(e,function(e){t._touchIsMeaningfulEvent(e)&&(t.__pointerIsOverOrigin=!1)})}return t},__prepareTooltip:function(){var e=this,i=e.__options.interactive?"auto":"";return e._$tooltip.attr("id",e.__namespace).css({"pointer-events":i,zIndex:e.__options.zIndex}),t.each(e.__previousThemes,function(t,i){e._$tooltip.removeClass(i)}),t.each(e.__options.theme,function(t,i){e._$tooltip.addClass(i)}),e.__previousThemes=t.merge([],e.__options.theme),e},__scrollHandler:function(e){var i=this;if(i.__options.triggerClose.scroll)i._close(e);else if(o(i._$origin)&&o(i._$tooltip)){var s=null;if(e.target===r.window.document)i.__Geometry.origin.fixedLineage||i.__options.repositionOnScroll&&i.reposition(e);else{s=i.__geometry();var n=!1;if("fixed"!=i._$origin.css("position")&&i.__$originParents.each(function(e,i){var o=t(i),r=o.css("overflow-x"),a=o.css("overflow-y");if("visible"!=r||"visible"!=a){var l=i.getBoundingClientRect();if("visible"!=r&&(s.origin.windowOffset.left<l.left||s.origin.windowOffset.right>l.right))return n=!0,!1;if("visible"!=a&&(s.origin.windowOffset.top<l.top||s.origin.windowOffset.bottom>l.bottom))return n=!0,!1}return"fixed"!=o.css("position")&&void 0}),n)i._$tooltip.css("visibility","hidden");else if(i._$tooltip.css("visibility","visible"),i.__options.repositionOnScroll)i.reposition(e);else{var a=s.origin.offset.left-i.__Geometry.origin.offset.left,l=s.origin.offset.top-i.__Geometry.origin.offset.top;i._$tooltip.css({left:i.__lastPosition.coord.left+a,top:i.__lastPosition.coord.top+l})}}i._trigger({type:"scroll",event:e,geo:s})}return i},__stateSet:function(t){return this.__state=t,this._trigger({type:"state",state:t}),this},__timeoutsClear:function(){return clearTimeout(this.__timeouts.open),this.__timeouts.open=null,t.each(this.__timeouts.close,function(t,e){clearTimeout(e)}),this.__timeouts.close=[],this},__trackerStart:function(){var t=this,e=t._$tooltip.find(".tooltipster-content");return t.__options.trackTooltip&&(t.__contentBcr=e[0].getBoundingClientRect()),t.__tracker=setInterval(function(){if(o(t._$origin)&&o(t._$tooltip)){if(t.__options.trackOrigin){var s=t.__geometry(),n=!1;i(s.origin.size,t.__Geometry.origin.size)&&(t.__Geometry.origin.fixedLineage?i(s.origin.windowOffset,t.__Geometry.origin.windowOffset)&&(n=!0):i(s.origin.offset,t.__Geometry.origin.offset)&&(n=!0)),n||(t.__options.triggerClose.mouseleave?t._close():t.reposition())}if(t.__options.trackTooltip){var r=e[0].getBoundingClientRect();r.height===t.__contentBcr.height&&r.width===t.__contentBcr.width||(t.reposition(),t.__contentBcr=r)}}else t._close()},t.__options.trackerInterval),t},_close:function(e,i,o){var s=this,n=!0;if(s._trigger({type:"close",event:e,stop:function(){n=!1}}),n||o){i&&s.__callbacks.close.push(i),s.__callbacks.open=[],s.__timeoutsClear();var a=function(){t.each(s.__callbacks.close,function(t,i){i.call(s,s,{event:e,origin:s._$origin[0]})}),s.__callbacks.close=[]};if("closed"!=s.__state){var l=!0,c=(new Date).getTime()+s.__options.animationDuration[1];if("disappearing"==s.__state&&c>s.__closingTime&&s.__options.animationDuration[1]>0&&(l=!1),l){s.__closingTime=c,"disappearing"!=s.__state&&s.__stateSet("disappearing");var d=function(){clearInterval(s.__tracker),s._trigger({type:"closing",event:e}),s._$tooltip.off("."+s.__namespace+"-triggerClose").removeClass("tooltipster-dying"),t(r.window).off("."+s.__namespace+"-triggerClose"),s.__$originParents.each(function(e,i){t(i).off("scroll."+s.__namespace+"-triggerClose")}),s.__$originParents=null,t(r.window.document.body).off("."+s.__namespace+"-triggerClose"),s._$origin.off("."+s.__namespace+"-triggerClose"),s._off("dismissable"),s.__stateSet("closed"),s._trigger({type:"after",event:e}),s.__options.functionAfter&&s.__options.functionAfter.call(s,s,{event:e,origin:s._$origin[0]}),a()};r.hasTransitions?(s._$tooltip.css({"-moz-animation-duration":s.__options.animationDuration[1]+"ms","-ms-animation-duration":s.__options.animationDuration[1]+"ms","-o-animation-duration":s.__options.animationDuration[1]+"ms","-webkit-animation-duration":s.__options.animationDuration[1]+"ms","animation-duration":s.__options.animationDuration[1]+"ms","transition-duration":s.__options.animationDuration[1]+"ms"}),s._$tooltip.clearQueue().removeClass("tooltipster-show").addClass("tooltipster-dying"),s.__options.animationDuration[1]>0&&s._$tooltip.delay(s.__options.animationDuration[1]),s._$tooltip.queue(d)):s._$tooltip.stop().fadeOut(s.__options.animationDuration[1],d)}}else a()}return s},_off:function(){return this.__$emitterPrivate.off.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_on:function(){return this.__$emitterPrivate.on.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_one:function(){return this.__$emitterPrivate.one.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_open:function(e,i){var s=this;if(!s.__destroying&&o(s._$origin)&&s.__enabled){var n=!0;if("closed"==s.__state&&(s._trigger({type:"before",event:e,stop:function(){n=!1}}),n&&s.__options.functionBefore&&(n=s.__options.functionBefore.call(s,s,{event:e,origin:s._$origin[0]}))),!1!==n&&null!==s.__Content){i&&s.__callbacks.open.push(i),s.__callbacks.close=[],s.__timeoutsClear();var a,l=function(){"stable"!=s.__state&&s.__stateSet("stable"),t.each(s.__callbacks.open,function(t,e){e.call(s,s,{origin:s._$origin[0],tooltip:s._$tooltip[0]})}),s.__callbacks.open=[]};if("closed"!==s.__state)a=0,"disappearing"===s.__state?(s.__stateSet("appearing"),r.hasTransitions?(s._$tooltip.clearQueue().removeClass("tooltipster-dying").addClass("tooltipster-show"),s.__options.animationDuration[0]>0&&s._$tooltip.delay(s.__options.animationDuration[0]),s._$tooltip.queue(l)):s._$tooltip.stop().fadeIn(l)):"stable"==s.__state&&l();else{if(s.__stateSet("appearing"),a=s.__options.animationDuration[0],s.__contentInsert(),s.reposition(e,!0),r.hasTransitions?(s._$tooltip.addClass("tooltipster-"+s.__options.animation).addClass("tooltipster-initial").css({"-moz-animation-duration":s.__options.animationDuration[0]+"ms","-ms-animation-duration":s.__options.animationDuration[0]+"ms","-o-animation-duration":s.__options.animationDuration[0]+"ms","-webkit-animation-duration":s.__options.animationDuration[0]+"ms","animation-duration":s.__options.animationDuration[0]+"ms","transition-duration":s.__options.animationDuration[0]+"ms"}),setTimeout(function(){"closed"!=s.__state&&(s._$tooltip.addClass("tooltipster-show").removeClass("tooltipster-initial"),s.__options.animationDuration[0]>0&&s._$tooltip.delay(s.__options.animationDuration[0]),s._$tooltip.queue(l))},0)):s._$tooltip.css("display","none").fadeIn(s.__options.animationDuration[0],l),s.__trackerStart(),t(r.window).on("resize."+s.__namespace+"-triggerClose",function(e){var i=t(document.activeElement);(i.is("input")||i.is("textarea"))&&t.contains(s._$tooltip[0],i[0])||s.reposition(e)}).on("scroll."+s.__namespace+"-triggerClose",function(t){s.__scrollHandler(t)}),s.__$originParents=s._$origin.parents(),s.__$originParents.each(function(e,i){t(i).on("scroll."+s.__namespace+"-triggerClose",function(t){s.__scrollHandler(t)})}),s.__options.triggerClose.mouseleave||s.__options.triggerClose.touchleave&&r.hasTouchCapability){s._on("dismissable",function(t){t.dismissable?t.delay?(p=setTimeout(function(){s._close(t.event)},t.delay),s.__timeouts.close.push(p)):s._close(t):clearTimeout(p)});var c=s._$origin,d="",h="",p=null;s.__options.interactive&&(c=c.add(s._$tooltip)),s.__options.triggerClose.mouseleave&&(d+="mouseenter."+s.__namespace+"-triggerClose ",h+="mouseleave."+s.__namespace+"-triggerClose "),s.__options.triggerClose.touchleave&&r.hasTouchCapability&&(d+="touchstart."+s.__namespace+"-triggerClose",h+="touchend."+s.__namespace+"-triggerClose touchcancel."+s.__namespace+"-triggerClose"),c.on(h,function(t){if(s._touchIsTouchEvent(t)||!s._touchIsEmulatedEvent(t)){var e="mouseleave"==t.type?s.__options.delay:s.__options.delayTouch;s._trigger({delay:e[1],dismissable:!0,event:t,type:"dismissable"})}}).on(d,function(t){!s._touchIsTouchEvent(t)&&s._touchIsEmulatedEvent(t)||s._trigger({dismissable:!1,event:t,type:"dismissable"})})}s.__options.triggerClose.originClick&&s._$origin.on("click."+s.__namespace+"-triggerClose",function(t){s._touchIsTouchEvent(t)||s._touchIsEmulatedEvent(t)||s._close(t)}),(s.__options.triggerClose.click||s.__options.triggerClose.tap&&r.hasTouchCapability)&&setTimeout(function(){if("closed"!=s.__state){var e="",i=t(r.window.document.body);s.__options.triggerClose.click&&(e+="click."+s.__namespace+"-triggerClose "),s.__options.triggerClose.tap&&r.hasTouchCapability&&(e+="touchend."+s.__namespace+"-triggerClose"),i.on(e,function(e){s._touchIsMeaningfulEvent(e)&&(s._touchRecordEvent(e),s.__options.interactive&&t.contains(s._$tooltip[0],e.target)||s._close(e))}),s.__options.triggerClose.tap&&r.hasTouchCapability&&i.on("touchstart."+s.__namespace+"-triggerClose",function(t){s._touchRecordEvent(t)})}},0),s._trigger("ready"),s.__options.functionReady&&s.__options.functionReady.call(s,s,{origin:s._$origin[0],tooltip:s._$tooltip[0]})}if(s.__options.timer>0){p=setTimeout(function(){s._close()},s.__options.timer+a);s.__timeouts.close.push(p)}}}return s},_openShortly:function(t){var e=this,i=!0;if("stable"!=e.__state&&"appearing"!=e.__state&&!e.__timeouts.open&&(e._trigger({type:"start",event:t,stop:function(){i=!1}}),i)){var o=0==t.type.indexOf("touch")?e.__options.delayTouch:e.__options.delay;o[0]?e.__timeouts.open=setTimeout(function(){e.__timeouts.open=null,e.__pointerIsOverOrigin&&e._touchIsMeaningfulEvent(t)?(e._trigger("startend"),e._open(t)):e._trigger("startcancel")},o[0]):(e._trigger("startend"),e._open(t))}return e},_optionsExtract:function(e,i){var o=this,s=t.extend(!0,{},i),n=o.__options[e];return n||(n={},t.each(i,function(t,e){var i=o.__options[t];void 0!==i&&(n[t]=i)})),t.each(s,function(e,i){void 0!==n[e]&&("object"!=typeof i||i instanceof Array||null==i||"object"!=typeof n[e]||n[e]instanceof Array||null==n[e]?s[e]=n[e]:t.extend(s[e],n[e]))}),s},_plug:function(e){var i=t.tooltipster._plugin(e);if(!i)throw new Error('The "'+e+'" plugin is not defined');return i.instance&&t.tooltipster.__bridge(i.instance,this,i.name),this},_touchIsEmulatedEvent:function(t){for(var e=!1,i=(new Date).getTime(),o=this.__touchEvents.length-1;o>=0;o--){var s=this.__touchEvents[o];if(!(i-s.time<500))break;s.target===t.target&&(e=!0)}return e},_touchIsMeaningfulEvent:function(t){return this._touchIsTouchEvent(t)&&!this._touchSwiped(t.target)||!this._touchIsTouchEvent(t)&&!this._touchIsEmulatedEvent(t)},_touchIsTouchEvent:function(t){return 0==t.type.indexOf("touch")},_touchRecordEvent:function(t){return this._touchIsTouchEvent(t)&&(t.time=(new Date).getTime(),this.__touchEvents.push(t)),this},_touchSwiped:function(t){for(var e=!1,i=this.__touchEvents.length-1;i>=0;i--){var o=this.__touchEvents[i];if("touchmove"==o.type){e=!0;break}if("touchstart"==o.type&&t===o.target)break}return e},_trigger:function(){var e=Array.prototype.slice.apply(arguments);return"string"==typeof e[0]&&(e[0]={type:e[0]}),e[0].instance=this,e[0].origin=this._$origin?this._$origin[0]:null,e[0].tooltip=this._$tooltip?this._$tooltip[0]:null,this.__$emitterPrivate.trigger.apply(this.__$emitterPrivate,e),t.tooltipster._trigger.apply(t.tooltipster,e),this.__$emitterPublic.trigger.apply(this.__$emitterPublic,e),this},_unplug:function(e){var i=this;if(i[e]){var o=t.tooltipster._plugin(e);o.instance&&t.each(o.instance,function(t,o){i[t]&&i[t].bridged===i[e]&&delete i[t]}),i[e].__destroy&&i[e].__destroy(),delete i[e]}return i},close:function(t){return this.__destroyed?this.__destroyError():this._close(null,t),this},content:function(t){var e=this;if(void 0===t)return e.__Content;if(e.__destroyed)e.__destroyError();else if(e.__contentSet(t),null!==e.__Content){if("closed"!==e.__state&&(e.__contentInsert(),e.reposition(),e.__options.updateAnimation))if(r.hasTransitions){var i=e.__options.updateAnimation;e._$tooltip.addClass("tooltipster-update-"+i),setTimeout(function(){"closed"!=e.__state&&e._$tooltip.removeClass("tooltipster-update-"+i)},1e3)}else e._$tooltip.fadeTo(200,.5,function(){"closed"!=e.__state&&e._$tooltip.fadeTo(200,1)})}else e._close();return e},destroy:function(){var e=this;if(e.__destroyed)e.__destroyError();else{"closed"!=e.__state?e.option("animationDuration",0)._close(null,null,!0):e.__timeoutsClear(),e._trigger("destroy"),e.__destroyed=!0,e._$origin.removeData(e.__namespace).off("."+e.__namespace+"-triggerOpen"),t(r.window.document.body).off("."+e.__namespace+"-triggerOpen");var i=e._$origin.data("tooltipster-ns");if(i)if(1===i.length){var o=null;"previous"==e.__options.restoration?o=e._$origin.data("tooltipster-initialTitle"):"current"==e.__options.restoration&&(o="string"==typeof e.__Content?e.__Content:t("<div></div>").append(e.__Content).html()),o&&e._$origin.attr("title",o),e._$origin.removeClass("tooltipstered"),e._$origin.removeData("tooltipster-ns").removeData("tooltipster-initialTitle")}else i=t.grep(i,function(t,i){return t!==e.__namespace}),e._$origin.data("tooltipster-ns",i);e._trigger("destroyed"),e._off(),e.off(),e.__Content=null,e.__$emitterPrivate=null,e.__$emitterPublic=null,e.__options.parent=null,e._$origin=null,e._$tooltip=null,t.tooltipster.__instancesLatestArr=t.grep(t.tooltipster.__instancesLatestArr,function(t,i){return e!==t}),clearInterval(e.__garbageCollector)}return e},disable:function(){return this.__destroyed?(this.__destroyError(),this):(this._close(),this.__enabled=!1,this)},elementOrigin:function(){return this.__destroyed?void this.__destroyError():this._$origin[0]},elementTooltip:function(){return this._$tooltip?this._$tooltip[0]:null},enable:function(){return this.__enabled=!0,this},hide:function(t){return this.close(t)},instance:function(){return this},off:function(){return this.__destroyed||this.__$emitterPublic.off.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},on:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.on.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},one:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.one.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},open:function(t){return this.__destroyed?this.__destroyError():this._open(null,t),this},option:function(e,i){return void 0===i?this.__options[e]:(this.__destroyed?this.__destroyError():(this.__options[e]=i,this.__optionsFormat(),t.inArray(e,["trigger","triggerClose","triggerOpen"])>=0&&this.__prepareOrigin(),"selfDestruction"===e&&this.__prepareGC()),this)},reposition:function(t,e){var i=this;return i.__destroyed?i.__destroyError():"closed"!=i.__state&&o(i._$origin)&&(e||o(i._$tooltip))&&(e||i._$tooltip.detach(),i.__Geometry=i.__geometry(),i._trigger({type:"reposition",event:t,helper:{geo:i.__Geometry}})),i},show:function(t){return this.open(t)},status:function(){return{destroyed:this.__destroyed,enabled:this.__enabled,open:"closed"!==this.__state,state:this.__state}},triggerHandler:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.triggerHandler.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this}},t.fn.tooltipster=function(){var e=Array.prototype.slice.apply(arguments),i="You are using a single HTML element as content for several tooltips. You probably want to set the contentCloning option to TRUE.";if(0===this.length)return this;if("string"==typeof e[0]){var o="#*$~&";return this.each(function(){var s=t(this).data("tooltipster-ns"),n=s?t(this).data(s[0]):null;if(!n)throw new Error("You called Tooltipster's \""+e[0]+'" method on an uninitialized element');if("function"!=typeof n[e[0]])throw new Error('Unknown method "'+e[0]+'"');this.length>1&&"content"==e[0]&&(e[1]instanceof t||"object"==typeof e[1]&&null!=e[1]&&e[1].tagName)&&!n.__options.contentCloning&&n.__options.debug&&console.log(i);var r=n[e[0]](e[1],e[2]);return r!==n||"instance"===e[0]?(o=r,!1):void 0}),"#*$~&"!==o?o:this}t.tooltipster.__instancesLatestArr=[];var n=e[0]&&void 0!==e[0].multiple,r=n&&e[0].multiple||!n&&s.multiple,a=e[0]&&void 0!==e[0].content,l=a&&e[0].content||!a&&s.content,c=e[0]&&void 0!==e[0].contentCloning,d=c&&e[0].contentCloning||!c&&s.contentCloning,h=e[0]&&void 0!==e[0].debug,p=h&&e[0].debug||!h&&s.debug;return this.length>1&&(l instanceof t||"object"==typeof l&&null!=l&&l.tagName)&&!d&&p&&console.log(i),this.each(function(){var i=!1,o=t(this),s=o.data("tooltipster-ns"),n=null;s?r?i=!0:p&&(console.log("Tooltipster: one or more tooltips are already attached to the element below. Ignoring."),console.log(this)):i=!0,i&&(n=new t.Tooltipster(this,e[0]),s||(s=[]),s.push(n.__namespace),o.data("tooltipster-ns",s),o.data(n.__namespace,n),n.__options.functionInit&&n.__options.functionInit.call(n,n,{origin:this}),n._trigger("init")),t.tooltipster.__instancesLatestArr.push(n)}),this},e.prototype={__init:function(e){this.__$tooltip=e,this.__$tooltip.css({left:0,overflow:"hidden",position:"absolute",top:0}).find(".tooltipster-content").css("overflow","auto"),this.$container=t('<div class="tooltipster-ruler"></div>').append(this.__$tooltip).appendTo(r.window.document.body)},__forceRedraw:function(){var t=this.__$tooltip.parent();this.__$tooltip.detach(),this.__$tooltip.appendTo(t)},constrain:function(t,e){return this.constraints={width:t,height:e},this.__$tooltip.css({display:"block",height:"",overflow:"auto",width:t}),this},destroy:function(){this.__$tooltip.detach().find(".tooltipster-content").css({display:"",overflow:""}),this.$container.remove()},free:function(){return this.constraints=null,this.__$tooltip.css({display:"",height:"",overflow:"visible",width:""}),this},measure:function(){this.__forceRedraw();var t=this.__$tooltip[0].getBoundingClientRect(),e={size:{height:t.height||t.bottom-t.top,width:t.width||t.right-t.left}};if(this.constraints){var i=this.__$tooltip.find(".tooltipster-content"),o=this.__$tooltip.outerHeight(),s=i[0].getBoundingClientRect(),n={height:o<=this.constraints.height,width:t.width<=this.constraints.width&&s.width>=i[0].scrollWidth-1};e.fits=n.height&&n.width}return r.IE&&r.IE<=11&&e.size.width!==r.window.document.documentElement.clientWidth&&(e.size.width=Math.ceil(e.size.width)+1),e}};var l=navigator.userAgent.toLowerCase();-1!=l.indexOf("msie")?r.IE=parseInt(l.split("msie")[1]):-1!==l.toLowerCase().indexOf("trident")&&-1!==l.indexOf(" rv:11")?r.IE=11:-1!=l.toLowerCase().indexOf("edge/")&&(r.IE=parseInt(l.toLowerCase().split("edge/")[1]));var c="tooltipster.sideTip";return t.tooltipster._plugin({name:c,instance:{__defaults:function(){return{arrow:!0,distance:6,functionPosition:null,maxWidth:null,minIntersection:16,minWidth:0,position:null,side:"top",viewportAware:!0}},__init:function(t){var e=this;e.__instance=t,e.__namespace="tooltipster-sideTip-"+Math.round(1e6*Math.random()),e.__previousState="closed",e.__options,e.__optionsFormat(),e.__instance._on("state."+e.__namespace,function(t){"closed"==t.state?e.__close():"appearing"==t.state&&"closed"==e.__previousState&&e.__create(),e.__previousState=t.state}),e.__instance._on("options."+e.__namespace,function(){e.__optionsFormat()}),e.__instance._on("reposition."+e.__namespace,function(t){e.__reposition(t.event,t.helper)})},__close:function(){this.__instance.content()instanceof t&&this.__instance.content().detach(),this.__instance._$tooltip.remove(),this.__instance._$tooltip=null},__create:function(){var e=t('<div class="tooltipster-base tooltipster-sidetip"><div class="tooltipster-box"><div class="tooltipster-content"></div></div><div class="tooltipster-arrow"><div class="tooltipster-arrow-uncropped"><div class="tooltipster-arrow-border"></div><div class="tooltipster-arrow-background"></div></div></div></div>');this.__options.arrow||e.find(".tooltipster-box").css("margin",0).end().find(".tooltipster-arrow").hide(),this.__options.minWidth&&e.css("min-width",this.__options.minWidth+"px"),this.__options.maxWidth&&e.css("max-width",this.__options.maxWidth+"px"),this.__instance._$tooltip=e,this.__instance._trigger("created")},__destroy:function(){this.__instance._off("."+self.__namespace)},__optionsFormat:function(){var e=this;if(e.__options=e.__instance._optionsExtract(c,e.__defaults()),e.__options.position&&(e.__options.side=e.__options.position),"object"!=typeof e.__options.distance&&(e.__options.distance=[e.__options.distance]),e.__options.distance.length<4&&(void 0===e.__options.distance[1]&&(e.__options.distance[1]=e.__options.distance[0]),void 0===e.__options.distance[2]&&(e.__options.distance[2]=e.__options.distance[0]),void 0===e.__options.distance[3]&&(e.__options.distance[3]=e.__options.distance[1]),e.__options.distance={top:e.__options.distance[0],right:e.__options.distance[1],bottom:e.__options.distance[2],left:e.__options.distance[3]}),"string"==typeof e.__options.side){var i={top:"bottom",right:"left",bottom:"top",left:"right"};e.__options.side=[e.__options.side,i[e.__options.side]],"left"==e.__options.side[0]||"right"==e.__options.side[0]?e.__options.side.push("top","bottom"):e.__options.side.push("right","left")}6===t.tooltipster._env.IE&&!0!==e.__options.arrow&&(e.__options.arrow=!1)},__reposition:function(e,i){var o,s=this,n=s.__targetFind(i),r=[];s.__instance._$tooltip.detach();var a=s.__instance._$tooltip.clone(),l=t.tooltipster._getRuler(a),c=!1,d=s.__instance.option("animation");switch(d&&a.removeClass("tooltipster-"+d),t.each(["window","document"],function(o,d){var h=null;if(s.__instance._trigger({container:d,helper:i,satisfied:c,takeTest:function(t){h=t},results:r,type:"positionTest"}),1==h||0!=h&&0==c&&("window"!=d||s.__options.viewportAware))for(var o=0;o<s.__options.side.length;o++){var p={horizontal:0,vertical:0},u=s.__options.side[o];"top"==u||"bottom"==u?p.vertical=s.__options.distance[u]:p.horizontal=s.__options.distance[u],s.__sideChange(a,u),t.each(["natural","constrained"],function(t,o){if(h=null,s.__instance._trigger({container:d,event:e,helper:i,mode:o,results:r,satisfied:c,side:u,takeTest:function(t){h=t},type:"positionTest"}),1==h||0!=h&&0==c){var a={container:d,distance:p,fits:null,mode:o,outerSize:null,side:u,size:null,target:n[u],whole:null},f=("natural"==o?l.free():l.constrain(i.geo.available[d][u].width-p.horizontal,i.geo.available[d][u].height-p.vertical)).measure();if(a.size=f.size,a.outerSize={height:f.size.height+p.vertical,width:f.size.width+p.horizontal},"natural"==o?i.geo.available[d][u].width>=a.outerSize.width&&i.geo.available[d][u].height>=a.outerSize.height?a.fits=!0:a.fits=!1:a.fits=f.fits,"window"==d&&(a.fits?a.whole="top"==u||"bottom"==u?i.geo.origin.windowOffset.right>=s.__options.minIntersection&&i.geo.window.size.width-i.geo.origin.windowOffset.left>=s.__options.minIntersection:i.geo.origin.windowOffset.bottom>=s.__options.minIntersection&&i.geo.window.size.height-i.geo.origin.windowOffset.top>=s.__options.minIntersection:a.whole=!1),r.push(a),a.whole)c=!0;else if("natural"==a.mode&&(a.fits||a.size.width<=i.geo.available[d][u].width))return!1}})}}),s.__instance._trigger({edit:function(t){r=t},event:e,helper:i,results:r,type:"positionTested"}),r.sort(function(t,e){if(t.whole&&!e.whole)return-1;if(!t.whole&&e.whole)return 1;if(t.whole&&e.whole){i=s.__options.side.indexOf(t.side);return(o=s.__options.side.indexOf(e.side))>i?-1:i>o?1:"natural"==t.mode?-1:1}if(t.fits&&!e.fits)return-1;if(!t.fits&&e.fits)return 1;if(t.fits&&e.fits){var i=s.__options.side.indexOf(t.side),o=s.__options.side.indexOf(e.side);return o>i?-1:i>o?1:"natural"==t.mode?-1:1}return"document"==t.container&&"bottom"==t.side&&"natural"==t.mode?-1:1}),o=r[0],o.coord={},o.side){case"left":case"right":o.coord.top=Math.floor(o.target-o.size.height/2);break;case"bottom":case"top":o.coord.left=Math.floor(o.target-o.size.width/2)}switch(o.side){case"left":o.coord.left=i.geo.origin.windowOffset.left-o.outerSize.width;break;case"right":o.coord.left=i.geo.origin.windowOffset.right+o.distance.horizontal;break;case"top":o.coord.top=i.geo.origin.windowOffset.top-o.outerSize.height;break;case"bottom":o.coord.top=i.geo.origin.windowOffset.bottom+o.distance.vertical}"window"==o.container?"top"==o.side||"bottom"==o.side?o.coord.left<0?i.geo.origin.windowOffset.right-this.__options.minIntersection>=0?o.coord.left=0:o.coord.left=i.geo.origin.windowOffset.right-this.__options.minIntersection-1:o.coord.left>i.geo.window.size.width-o.size.width&&(i.geo.origin.windowOffset.left+this.__options.minIntersection<=i.geo.window.size.width?o.coord.left=i.geo.window.size.width-o.size.width:o.coord.left=i.geo.origin.windowOffset.left+this.__options.minIntersection+1-o.size.width):o.coord.top<0?i.geo.origin.windowOffset.bottom-this.__options.minIntersection>=0?o.coord.top=0:o.coord.top=i.geo.origin.windowOffset.bottom-this.__options.minIntersection-1:o.coord.top>i.geo.window.size.height-o.size.height&&(i.geo.origin.windowOffset.top+this.__options.minIntersection<=i.geo.window.size.height?o.coord.top=i.geo.window.size.height-o.size.height:o.coord.top=i.geo.origin.windowOffset.top+this.__options.minIntersection+1-o.size.height):(o.coord.left>i.geo.window.size.width-o.size.width&&(o.coord.left=i.geo.window.size.width-o.size.width),o.coord.left<0&&(o.coord.left=0)),s.__sideChange(a,o.side),i.tooltipClone=a[0],i.tooltipParent=s.__instance.option("parent").parent[0],i.mode=o.mode,i.whole=o.whole,i.origin=s.__instance._$origin[0],i.tooltip=s.__instance._$tooltip[0],delete o.container,delete o.fits,delete o.mode,delete o.outerSize,delete o.whole,o.distance=o.distance.horizontal||o.distance.vertical;var h=t.extend(!0,{},o);if(s.__instance._trigger({edit:function(t){o=t},event:e,helper:i,position:h,type:"position"}),s.__options.functionPosition){var p=s.__options.functionPosition.call(s,s.__instance,i,h);p&&(o=p)}l.destroy();var u,f;"top"==o.side||"bottom"==o.side?(u={prop:"left",val:o.target-o.coord.left},f=o.size.width-this.__options.minIntersection):(u={prop:"top",val:o.target-o.coord.top},f=o.size.height-this.__options.minIntersection),u.val<this.__options.minIntersection?u.val=this.__options.minIntersection:u.val>f&&(u.val=f);var g;g=i.geo.origin.fixedLineage?i.geo.origin.windowOffset:{left:i.geo.origin.windowOffset.left+i.geo.window.scroll.left,top:i.geo.origin.windowOffset.top+i.geo.window.scroll.top},o.coord={left:g.left+(o.coord.left-i.geo.origin.windowOffset.left),top:g.top+(o.coord.top-i.geo.origin.windowOffset.top)},s.__sideChange(s.__instance._$tooltip,o.side),i.geo.origin.fixedLineage?s.__instance._$tooltip.css("position","fixed"):s.__instance._$tooltip.css("position",""),s.__instance._$tooltip.css({left:o.coord.left,top:o.coord.top,height:o.size.height,width:o.size.width}).find(".tooltipster-arrow").css({left:"",top:""}).css(u.prop,u.val),s.__instance._$tooltip.appendTo(s.__instance.option("parent")),s.__instance._trigger({type:"repositioned",event:e,position:o})},__sideChange:function(t,e){t.removeClass("tooltipster-bottom").removeClass("tooltipster-left").removeClass("tooltipster-right").removeClass("tooltipster-top").addClass("tooltipster-"+e)},__targetFind:function(t){var e={},i=this.__instance._$origin[0].getClientRects();if(i.length>1&&1==this.__instance._$origin.css("opacity")&&(this.__instance._$origin.css("opacity",.99),i=this.__instance._$origin[0].getClientRects(),this.__instance._$origin.css("opacity",1)),i.length<2)e.top=Math.floor(t.geo.origin.windowOffset.left+t.geo.origin.size.width/2),e.bottom=e.top,e.left=Math.floor(t.geo.origin.windowOffset.top+t.geo.origin.size.height/2),e.right=e.left;else{var o=i[0];e.top=Math.floor(o.left+(o.right-o.left)/2),o=i.length>2?i[Math.ceil(i.length/2)-1]:i[0],e.right=Math.floor(o.top+(o.bottom-o.top)/2),o=i[i.length-1],e.bottom=Math.floor(o.left+(o.right-o.left)/2),o=i.length>2?i[Math.ceil((i.length+1)/2)-1]:i[i.length-1],e.left=Math.floor(o.top+(o.bottom-o.top)/2)}return e}}}),t});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.