1function initJobAlertLoc(){var e,t,i=$("#alerts-location"),n=i.attr("placeholder");i.length>0&&(e=function(e){var t;return e.loading?e.text:(t="",t="<div class='select2-result-repository clearfix'> <div class='select2-result'><div class='select2-result-repository__title'>"+e.name+"</div>",e.hierarchy&&(t+="<div class='select2-result-repository__description'>"+e.hierarchy+"</div>"),t)},t=function(e){return e.name||e.text},i.select2({placeholder:n,ajax:{dataType:"json",url:"/api/v1/locations",delay:500,data:function(e){return{name:e.term,page:e.page}},processResults:function(e,t){return t.page=t.page||1,{results:e.data,pagination:{more:20*t.page<e.total_count}}},cache:!0},escapeMarkup:function(e){return e},minimumInputLength:3,templateResult:e,templateSelection:t}))}function updateEmailFrequency(){var e=$("#set-up-job-alerts .job-alerts-mail form"),t=$(".alert-frequency input");e.length>0&&$(".alert-frequency label").click(function(){label_selected=$(this),checkbox_selected=$(this).parent().find("input"),t.not(checkbox_selected).prop("checked",!1),$(".alert-frequency label").removeClass("active"),label_selected.addClass("active");var i=e.serialize()+"&"+checkbox_selected.attr("name")+"="+checkbox_selected.val();$.ajax({type:"patch",url:e.attr("action"),dataType:"json",data:i,success:function(){},error:function(){console.log("An error occurred."),checkbox_selected.prop("checked",!1),label_selected.removeClass("active")}})})}function deleteJobAlert(){$(".delete-alert").on("click",function(e){e.stopImmediatePropagation(),e.preventDefault(),url=$(this).attr("href"),job_alert=$(this).parent(),$.ajax({type:"delete",url:url,dataType:"script",success:function(){job_alert.remove()},error:function(){console.log("error")}})})}function setupJobAlert(){function e(e){var t=$("#job-alerts-list-tag");$("#job-alerts-list-tag .flash-notice").hide();var i=e.id,n="<div class='card-alert'>";n+="<a href='"+e.slug+"'>"+e.title+"</a>",n+="<a href='/job_alerts/"+i+"' class='delete-alert cross-delete'><i class='fa fa-times' aria-hidden='true'></i></a>",n+="</div>",t.prepend(n)}if($("#create-job-alert").length>0){var t=$("#create-job-alert form"),i=$("#create-job-alert form button");t.submit(function(n){console.log("submitted"),n.preventDefault(),i.prop("disabled",!0);var o=t.serialize();$.ajax({type:t.attr("method"),url:t.attr("action"),dataType:"json",data:o,success:function(t){e(t),i.prop("disabled",!1),$("#create-job-alert form")[0].reset()},error:function(){console.log("An error occurred.")}})})}}function openNav(){document.getElementById("myNav").style.width="auto"}function closeNav(){document.getElementById("myNav").style.width="0%"}function openCardNav(){document.getElementById("mycardNav").style.width="auto"}function closeCardNav(){document.getElementById("mycardNav").style.width="0%"}function myFunction(){var e=document.getElementById("myTopnav");"topnav"===e.className?e.className+=" responsive":e.className="topnav"}function ImageLoader(e){function t(){if(i.length>0){var t=i.onView();if(t.length>0){for(var n=0;n<t.length;n++){var o=new Image;o.onload=function(e){o.src=t[e].getAttribute("virtual-image"),t[e].appendChild(o)}(n)}"function"==typeof e&&e()}}}var i=Array.prototype.slice.call(document.querySelectorAll("[virtual-image]"));return window.onscroll=t,window.onload=t,Array.prototype.onView=function(){for(var e=this,t=[],i=0;i<e.length;i++){var n=e[i],o=n.getBoundingClientRect().top-document.body.getBoundingClientRect().top,s=n.clientHeight||n.offsetHeight,a=window.pageYOffset,r=window.innerHeight;o+s>a+.1*r&&o<a+r&&(t.push(n),e.splice(i,1),i--)}return t},t()}$.fn.eventCalendar=function(e){function t(e,t){return e.date.toLowerCase()>t.date.toLowerCase()?1:-1}function i(e,t,i){var n=$("<div class='eventsCalendar-slider'></div>"),s=$("<div class='eventsCalendar-monthWrap'></div>"),a=$("<div class='eventsCalendar-currentTitle'><a href='#' class='monthTitle'></a></div>"),r=$("<a href='#' class='arrow prev'><span>"+d.txt_prev+"</span></a><a href='#' class='arrow next'><span>"+d.txt_next+"</span></a>");if($eventsCalendarDaysList=$("<ul class='eventsCalendar-daysList'></ul>"),date=new Date,c.wrap.find(".eventsCalendar-slider").size()?c.wrap.find(".eventsCalendar-slider").append(s):(c.wrap.prepend(n),n.append(s)),c.wrap.find(".eventsCalendar-monthWrap.currentMonth").removeClass("currentMonth").addClass("oldMonth"),s.addClass("currentMonth").append(a,$eventsCalendarDaysList),"current"===e)day=date.getDate(),n.append(r);else{date=new Date(c.wrap.attr("data-current-year"),c.wrap.attr("data-current-month"),1,0,0,0),day=0,moveOfMonth=1,"prev"===e&&(moveOfMonth=-1),date.setMonth(date.getMonth()+moveOfMonth);var l=new Date;date.getMonth()===l.getMonth()&&(day=l.getDate())}t=date.getFullYear();var u=(new Date).getFullYear();i=date.getMonth();"current"!=e&&o(d.eventsLimit,t,i,!1,e),c.wrap.attr("data-current-month",i).attr("data-current-year",t),a.find(".monthTitle").html(d.monthNames[i]+" "+t);var h=32-new Date(t,i,32).getDate(),p=[];if(d.showDayAsWeeks){if($eventsCalendarDaysList.addClass("showAsWeek"),d.showDayNameInCalendar){$eventsCalendarDaysList.addClass("showDayNames");var f=0;for(d.startWeekOnMonday&&(f=1);f<7;f++)p.push('<li class="eventsCalendar-day-header">'+d.dayNamesShort[f]+"</li>"),6===f&&d.startWeekOnMonday&&p.push('<li class="eventsCalendar-day-header">'+d.dayNamesShort[0]+"</li>")}dt=new Date(t,i,1);var m=dt.getDay();for(d.startWeekOnMonday&&(m=dt.getDay()-1),m<0&&(m=6),f=m;f>0;f--)p.push('<li class="eventsCalendar-day empty"></li>')}for(dayCount=1;dayCount<=h;dayCount++){var g="";day>0&&dayCount===day&&t===u&&(g="today"),p.push('<li id="dayList_'+dayCount+'" rel="'+dayCount+'" class="eventsCalendar-day '+g+'"><a href="#">'+dayCount+"</a></li>")}$eventsCalendarDaysList.append(p.join("")),n.css("height",s.height()+"px")}function n(e){var t,i=e.length,n=e.charAt(i-1);return t=2===i&&"1"===e.charAt(0)?"th":"1"===n?"st":"2"===n?"nd":"3"===n?"rd":"th",e+"<sup>"+t+"</sup>"}function o(e,t,i,n,o){e=e||0,t=t||"",n=n||"";if(void 0!==i)i=i;else i="";c.wrap.find(".eventsCalendar-loading").fadeIn(),d.jsonData?(d.cacheJson=!0,c.eventsJson=d.jsonData,s(c.eventsJson,e,t,i,n,o)):d.cacheJson&&o?s(c.eventsJson,e,t,i,n,o):$.getJSON(d.eventsjson+"?limit="+e+"&year="+t+"&month="+i+"&day="+n,function(a){c.eventsJson=a,s(c.eventsJson,e,t,i,n,o)}).error(function(){r("error getting json: ")}),n>""&&(c.wrap.find(".current").removeClass("current"),c.wrap.find("#dayList_"+n).addClass("current"))}function s(e,i,o,s,a,r){directionLeftMove="-="+c.directionLeftMove,eventContentHeight="auto",subtitle=c.wrap.find(".eventsCalendar-list-wrap .eventsCalendar-subtitle"),r?(""!=a?subt
1itle.html(d.txt_SpecificEvents_prev+n(a)+" "+d.monthNames[s]+" "+d.txt_SpecificEvents_after):subtitle.html(d.txt_SpecificEvents_prev+d.monthNames[s]+" "+d.txt_SpecificEvents_after),"prev"===r?directionLeftMove="+="+c.directionLeftMove:"day"!==r&&"month"!==r||(directionLeftMove="+=0",eventContentHeight=0)):(subtitle.html(d.txt_NextEvents),eventContentHeight="auto",directionLeftMove="-=0"),c.wrap.find(".eventsCalendar-list").animate({opacity:d.moveOpacity,left:directionLeftMove,height:eventContentHeight},d.moveSpeed,function(){c.wrap.find(".eventsCalendar-list").css({left:0,height:"auto"}).hide();var n=[];if((e=$(e).sort(t)).length){var r="";d.showDescription||(r="hidden");var l="_self";d.openEventInNewWindow&&(l="_target");var u=0;$.each(e,function(e,t){if("human"==d.jsonDateFormat){var h=t.date.split(" "),p=h[0].split("-"),f=h[1].split(":"),m=p[0],g=parseInt(p[1])-1,v=parseInt(p[2]),y=parseInt(g)+1,b=f[0],w=f[1],_=f[2];p=new Date(m,g,v,b,w,_)}else m=(p=new Date(parseInt(t.date))).getFullYear(),g=p.getMonth(),v=p.getDate(),y=g+1,b=p.getHours(),w=p.getMinutes();if(parseInt(w)<=9&&(w="0"+parseInt(w)),(0===i||i>u)&&!(!1!==s&&s!=g||""!=a&&a!=v||""!=o&&o!=m))if(!1===s&&p<new Date);else{eventStringDate=v+"/"+y+"/"+m;var x='<h4 class="eventTitle">'+t.title+"</h4>";if(t.url)var S='<a href="'+t.url+'" target="'+l+'" class="">',E="</a>";n.push('<li id="'+e+'" class="">'+S+'<time datetime="'+p+'"><em>'+eventStringDate+"</em><small>"+b+":"+w+"</small></time>"+x+'<div class="eventDesc '+r+'">'+t.description+"</div><i class='fa fa-plus-square'></i>"+E+"</li>"),u++}m==c.wrap.attr("data-current-year")&&g==c.wrap.attr("data-current-month")&&c.wrap.find(".currentMonth .eventsCalendar-daysList #dayList_"+parseInt(v)).addClass("dayWithEvents")})}n.length||n.push('<li class="eventsCalendar-noEvents"><p>'+d.txt_noEvents+"</p></li>"),c.wrap.find(".eventsCalendar-loading").hide(),c.wrap.find(".eventsCalendar-list").html(n.join("")),c.wrap.find(".eventsCalendar-list").animate({opacity:1,height:"toggle"},d.moveSpeed)}),l()}function a(){c.wrap.find(".arrow").click(function(e){if(e.preventDefault(),$(this).hasClass("next")){i("next");var t="-="+c.directionLeftMove}else{i("prev");t="+="+c.directionLeftMove}c.wrap.find(".eventsCalendar-monthWrap.oldMonth").animate({opacity:d.moveOpacity,left:t},d.moveSpeed,function(){c.wrap.find(".eventsCalendar-monthWrap.oldMonth").remove()})})}function r(e){c.wrap.find(".eventsCalendar-list-wrap").html("<span class='eventsCalendar-loading error'>"+e+" "+d.eventsjson+"</span>")}function l(){c.directionLeftMove=c.wrap.width(),c.wrap.find(".eventsCalendar-monthWrap").width(c.wrap.width()+"px"),c.wrap.find(".eventsCalendar-list-wrap").width(c.wrap.width()+"px")}var d=$.extend({},$.fn.eventCalendar.defaults,e),c={wrap:"",directionLeftMove:"300",eventsJson:{}};this.each(function(){c.wrap=$(this),c.wrap.addClass("eventCalendar-wrap").append("<div class='eventsCalendar-list-wrap'><p class='eventsCalendar-subtitle'></p><span class='eventsCalendar-loading'></span><div class='eventsCalendar-list-content'><ul class='eventsCalendar-list'></ul></div></div>"),d.eventsScrollable&&c.wrap.find(".eventsCalendar-list-content").addClass("scrollable"),l(),$(window).resize(function(){l()}),i("current"),o(d.eventsLimit,!1,!1,!1,!1),a(),c.wrap.on("click",".eventsCalendar-day a",function(e){e.preventDefault(),o(!1,c.wrap.attr("data-current-year"),c.wrap.attr("data-current-month"),$(this).parent().attr("rel"),"day")}),c.wrap.on("click",".monthTitle",function(e){e.preventDefault();var t=c.wrap.attr("data-current-year"),i=c.wrap.attr("data-current-month");o(d.eventsLimit,t,i,!1,"month")})}),c.wrap.find(".eventsCalendar-list").on("click",".eventTitle",function(e){if(!d.showDescription){e.preventDefault();var t=$(this).parent().find(".eventDesc");if(!t.find("a").size()){var i=$(this).attr("href"),n=$(this).attr("target");t.append('<a href="'+i+'" target="'+n+'" class="bt">'+d.txt_GoToEventUrl+"</a>")}}})},$.fn.eventCalendar.defaults={eventsjson:"js/events.json",eventsLimit:4,monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1ay","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],txt_noEvents:"<i class='fa fa-info-circle'></i>There are no events on this date",txt_SpecificEvents_prev:"",txt_SpecificEvents_after:"Events:",txt_next:"next",txt_prev:"prev",txt_NextEvents:"Next Events",txt_GoToEventUrl:"See the event",showDayAsWeeks:!0,startWeekOnMonday:!0,showDayNameInCalendar:!0,showDescription:!1,onlyOneDescription:!0,openEventInNewWindow:!1,eventsScrollable:!1,jsonDateFormat:"timestamp",moveSpeed:500,moveOpacity:.15,jsonData:"",cacheJson:!0},function(e,t){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return t(e,i)}):"object"==typeof module&&module.exports?module.exports=t(e,require("jquery")):e.jQueryBridget=t(e,e.jQuery)}(window,function(e,t){"use strict";function i(i,s,r){function l(e,t,n){var o,s="$()."+i+'("'+t+'")';return e.each(function(e,l){var d=r.data(l,i);if(d){var c=d[t];if(c&&"_"!=t.charAt(0)){var u=c.apply(d,n);o=void 0===o?u:o}else a(s+" is not a valid method")}else a(i+" not initialized. Cannot call methods, i.e. "+s)}),void 0!==o?o:e}function d(e,t){e.each(function(e,n){var o=r.data(n,i);o?(o.option(t),o._init()):(o=new s(n,t),r.data(n,i,o))})}(r=r||t||e.jQuery)&&(s.prototype.option||(s.prototype.option=function(e){r.isPlainObject(e)&&(this.options=r.extend(!0,this.options,e))}),r.fn[i]=function(e){return"string"==typeof e?l(this,e,o.call(arguments,1)):(d(this,e),this)},n(r))}function n(e){!e||e&&e.bridget||(e.bridget=i)}var o=Array.prototype.slice,s=e.console,a=void 0===s?function(){}:function(e){s.error(e)};return n(t||e.jQuery),i}),function(e,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var i=this._events=this._events||{},n=i[e]=i[e]||[];return-1==n.indexOf(t)&&n.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var i=this._onceEvents=this._onceEvents||{};return(i[e]=i[e]||{})[t]=!0,this}},t.off=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){var n=i.indexOf(t);return-1!=n&&i.splice(n,1),this}},t.emitEvent=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){i=i.slice(0),t=t||[];for(var n=this._onceEvents&&this._onceEvents[e],o=0;o<i.length;o++){var s=i[o];n&&n[s]&&(this.off(e,s),delete n[s]),s.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e}),function(e,t){"function"==typeof define&&define.amd?define("get-size/get-size",t):"object"==typeof module&&module.exports?module.exports=t():e.getSize=t()}(window,function(){"use strict";function e(e){var t=parseFloat(e);return-1==e.indexOf("%")&&!isNaN(t)&&t}function t(){}function i(){for(var e={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},t=0;t<d;t++){e[l[t]]=0}return e}function n(e){var t=getComputedStyle(e);return t||r("Style returned "+t+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),t}function o(){if(!c){c=!0;var t=document.createElement("div");t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(t);var o=n(t);a=200==Math.round(e(o.width)),s.isBoxSizeOuter=a,i.removeChild(t)}}function s(t){if(o(),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var s=n(t);if("none"==s.display)return i();var r={};r.width=t.offsetWidth,r.height=t.offsetHeight;for(var c=r.isBorderBox="border-box"==s.boxSizing,u=0;u<d;u++){var h=l[u],p=s[h],f=parseFloat(p);r[h]=isNaN(f)?0:f}var m=r.paddingLeft+r.paddingRight,g=r.paddingTop+r.paddingBottom,v=r.marginLeft+r.marginRight,y=r.marginTop+r.marginBottom,b=r.borderLeftWidth+r.borderRightWidth,w=r.borderTopWidth+r.borderBottomWidth,_=c&&a,x=e(s.width);!1!==x&&(r.width=x+(_?0:m+b));var S=e(s.height);return!1!==S&&(r.height=S+(_?0:g+w)),r.innerWidth=r.width-(m+b),r.innerHe
vendor: 4,278 bytes, line 1
1ight=r.height-(g+w),r.outerWidth=r.width+v,r.outerHeight=r.height+y,r}}var a,r="undefined"==typeof console?t:function(e){console.error(e)},l=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],d=l.length,c=!1;return s}),function(e,t){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",t):"object"==typeof module&&module.exports?module.exports=t():e.matchesSelector=t()}(window,function(){"use strict";var e=function(){var e=window.Element.prototype;if(e.matches)return"matches";if(e.matchesSelector)return"matchesSelector";for(var t=["webkit","moz","ms","o"],i=0;i<t.length;i++){var n=t[i]+"MatchesSelector";if(e[n])return n}}();return function(t,i){return t[e](i)}}),function(e,t){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(i){return t(e,i)}):"object"==typeof module&&module.exports?module.exports=t(e,require("desandro-matches-selector")):e.fizzyUIUtils=t(e,e.matchesSelector)}(window,function(e,t){var i={extend:function(e,t){for(var i in t)e[i]=t[i];return e},modulo:function(e,t){return(e%t+t)%t}},n=Array.prototype.slice;i.makeArray=function(e){return Array.isArray(e)?e:null==e?[]:"object"==typeof e&&"number"==typeof e.length?n.call(e):[e]},i.removeFrom=function(e,t){var i=e.indexOf(t);-1!=i&&e.splice(i,1)},i.getParent=function(e,i){for(;e.parentNode&&e!=document.body;)if(e=e.parentNode,t(e,i))return e},i.getQueryElement=function(e){return"string"==typeof e?document.querySelector(e):e},i.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},i.filterFindElements=function(e,n){e=i.makeArray(e);var o=[];return e.forEach(function(e){if(e instanceof HTMLElement){if(!n)return void o.push(e);t(e,n)&&o.push(e);for(var i=e.querySelectorAll(n),s=0;s<i.length;s++)o.push(i[s])}}),o},i.debounceMethod=function(e,t,i){i=i||100;var n=e.prototype[t],o=t+"Timeout";e.prototype[t]=function(){var e=this[o];clearTimeout(e);var t=arguments,s=this;this[o]=setTimeout(function(){n.apply(s,t),delete s[o]},i)}},i.docReady=function(e){var t=document.readyState;"complete"==t||"interactive"==t?setTimeout(e):document.addEventListener("DOMContentLoaded",e)},i.toDashed=function(e){return e.replace(/(.)([A-Z])/g,function(e,t,i){return t+"-"+i}).toLowerCase()};var o=e.console;return i.htmlInit=function(t,n){i.docReady(function(){var s=i.toDashed(n),a="data-"+s,r=document.querySelectorAll("["+a+"]"),l=document.querySelectorAll(".js-"+s),d=i.makeArray(r).concat(i.makeArray(l)),c=a+"-options",u=e.jQuery;d.forEach(function(e){var i,s=e.getAttribute(a)||e.getAttribute(c);try{i=s&&JSON.parse(s)}catch(t){return void(o&&o.error("Error parsing "+a+" on "+e.className+": "+t))}var r=new t(e,i);u&&u.data(e,n,r)})})},i}),function(e,t){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],t):"object"==typeof module&&module.exports?module.exports=t(require("ev-emitter"),require("get-size")):(e.Outlayer={},e.Outlayer.Item=t(e.EvEmitter,e.getSize))}(window,function(e,t){"use strict";function i(e){for(var t in e)return!1;return!0}function n(e,t){e&&(this.element=e,this.layout=t,this.position={x:0,y:0},this._create())}function o(e){return e.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()})}var s=document.documentElement.style,a="string"==typeof s.transition?"transition":"WebkitTransition",r="string"==typeof s.transform?"transform":"WebkitTransform",l={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[a],d={transform:r,transition:a,transitionDuration:a+"Duration",transitionProperty:a+"Property",transitionDelay:a+"Delay"},c=n.prototype=Object.create(e.prototype);c.constructor=n,c._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},c.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},c.getSize=function(){this.size=t(this.element)},c.css=function(e){var t=this.element.style;for(var i in e){t[d[i]||i]=e[i]}},c.getPosition=function(){var e=getComputedStyle(this.element),t=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),n=e[t?"left"
1:"right"],o=e[i?"top":"bottom"],s=parseFloat(n),a=parseFloat(o),r=this.layout.size;-1!=n.indexOf("%")&&(s=s/100*r.width),-1!=o.indexOf("%")&&(a=a/100*r.height),s=isNaN(s)?0:s,a=isNaN(a)?0:a,s-=t?r.paddingLeft:r.paddingRight,a-=i?r.paddingTop:r.paddingBottom,this.position.x=s,this.position.y=a},c.layoutPosition=function(){var e=this.layout.size,t={},i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),o=i?"paddingLeft":"paddingRight",s=i?"left":"right",a=i?"right":"left",r=this.position.x+e[o];t[s]=this.getXValue(r),t[a]="";var l=n?"paddingTop":"paddingBottom",d=n?"top":"bottom",c=n?"bottom":"top",u=this.position.y+e[l];t[d]=this.getYValue(u),t[c]="",this.css(t),this.emitEvent("layout",[this])},c.getXValue=function(e){var t=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!t?e/this.layout.size.width*100+"%":e+"px"},c.getYValue=function(e){var t=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&t?e/this.layout.size.height*100+"%":e+"px"},c._transitionTo=function(e,t){this.getPosition();var i=this.position.x,n=this.position.y,o=e==this.position.x&&t==this.position.y;if(this.setPosition(e,t),!o||this.isTransitioning){var s=e-i,a=t-n,r={};r.transform=this.getTranslate(s,a),this.transition({to:r,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})}else this.layoutPosition()},c.getTranslate=function(e,t){return"translate3d("+(e=this.layout._getOption("originLeft")?e:-e)+"px, "+(t=this.layout._getOption("originTop")?t:-t)+"px, 0)"},c.goTo=function(e,t){this.setPosition(e,t),this.layoutPosition()},c.moveTo=c._transitionTo,c.setPosition=function(e,t){this.position.x=parseFloat(e),this.position.y=parseFloat(t)},c._nonTransition=function(e){for(var t in this.css(e.to),e.isCleaning&&this._removeStyles(e.to),e.onTransitionEnd)e.onTransitionEnd[t].call(this)},c.transition=function(e){if(parseFloat(this.layout.options.transitionDuration)){var t=this._transn;for(var i in e.onTransitionEnd)t.onEnd[i]=e.onTransitionEnd[i];for(i in e.to)t.ingProperties[i]=!0,e.isCleaning&&(t.clean[i]=!0);if(e.from){this.css(e.from);this.element.offsetHeight;0}this.enableTransition(e.to),this.css(e.to),this.isTransitioning=!0}else this._nonTransition(e)};var u="opacity,"+o(r);c.enableTransition=function(){if(!this.isTransitioning){var e=this.layout.options.transitionDuration;e="number"==typeof e?e+"ms":e,this.css({transitionProperty:u,transitionDuration:e,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(l,this,!1)}},c.onwebkitTransitionEnd=function(e){this.ontransitionend(e)},c.onotransitionend=function(e){this.ontransitionend(e)};var h={"-webkit-transform":"transform"};c.ontransitionend=function(e){if(e.target===this.element){var t=this._transn,n=h[e.propertyName]||e.propertyName;if(delete t.ingProperties[n],i(t.ingProperties)&&this.disableTransition(),n in t.clean&&(this.element.style[e.propertyName]="",delete t.clean[n]),n in t.onEnd)t.onEnd[n].call(this),delete t.onEnd[n];this.emitEvent("transitionEnd",[this])}},c.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(l,this,!1),this.isTransitioning=!1},c._removeStyles=function(e){var t={};for(var i in e)t[i]="";this.css(t)};var p={transitionProperty:"",transitionDuration:"",transitionDelay:""};return c.removeTransitionStyles=function(){this.css(p)},c.stagger=function(e){e=isNaN(e)?0:e,this.staggerDelay=e+"ms"},c.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},c.remove=function(){return a&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},c.reveal=function(){delete this.isHidden,this.css({display:""});var e=this.layout.options,t={};t[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:e.hiddenStyle,to:e.visibleStyle,isCleaning:!0,onTransitionEnd:t})},c.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},c.getHideRevealTransitionEndProperty=function(e){var t=this.layout.options[e];if(t.opacity)return"opacity";for(var i in t)return i},c.hide=function(){this.isHidden=!0,this.css({display:""});var e=this.layout.options,t={};t[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:e.visibleStyle,to:e.hiddenStyle,isCleaning:!0,onTransitionEnd:t})},c.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},c.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},n}),function(e,t){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(i,n,o,s){return t(e,i,n,o,s)}):"object"==typeof module&&module.exports?module.exports=t(e,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):e.Outlayer=t(e,e.EvEmitter,e.getSize,e.fizzyUIUtils,e.Outlayer.Item)}(window,function(e,t,i,n,o){"use strict";function s(e,t){var i=n.getQueryElement(e);
1if(i){this.element=i,d&&(this.$element=d(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(t);var o=++u;this.element.outlayerGUID=o,h[o]=this,this._create(),this._getOption("initLayout")&&this.layout()}else l&&l.error("Bad element for "+this.constructor.namespace+": "+(i||e))}function a(e){function t(){e.apply(this,arguments)}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t}function r(e){if("number"==typeof e)return e;var t=e.match(/(^\d*\.?\d*)(\w*)/),i=t&&t[1],n=t&&t[2];return i.length?(i=parseFloat(i))*(f[n]||1):0}var l=e.console,d=e.jQuery,c=function(){},u=0,h={};s.namespace="outlayer",s.Item=o,s.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var p=s.prototype;n.extend(p,t.prototype),p.option=function(e){n.extend(this.options,e)},p._getOption=function(e){var t=this.constructor.compatOptions[e];return t&&void 0!==this.options[t]?this.options[t]:this.options[e]},s.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},p._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},p.reloadItems=function(){this.items=this._itemize(this.element.children)},p._itemize=function(e){for(var t=this._filterFindItemElements(e),i=this.constructor.Item,n=[],o=0;o<t.length;o++){var s=new i(t[o],this);n.push(s)}return n},p._filterFindItemElements=function(e){return n.filterFindElements(e,this.options.itemSelector)},p.getItemElements=function(){return this.items.map(function(e){return e.element})},p.layout=function(){this._resetLayout(),this._manageStamps();var e=this._getOption("layoutInstant"),t=void 0!==e?e:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},p._init=p.layout,p._resetLayout=function(){this.getSize()},p.getSize=function(){this.size=i(this.element)},p._getMeasurement=function(e,t){var n,o=this.options[e];o?("string"==typeof o?n=this.element.querySelector(o):o instanceof HTMLElement&&(n=o),this[e]=n?i(n)[t]:o):this[e]=0},p.layoutItems=function(e,t){e=this._getItemsForLayout(e),this._layoutItems(e,t),this._postLayout()},p._getItemsForLayout=function(e){return e.filter(function(e){return!e.isIgnored})},p._layoutItems=function(e,t){if(this._emitCompleteOnItems("layout",e),e&&e.length){var i=[];e.forEach(function(e){var n=this._getItemLayoutPosition(e);n.item=e,n.isInstant=t||e.isLayoutInstant,i.push(n)},this),this._processLayoutQueue(i)}},p._getItemLayoutPosition=function(){return{x:0,y:0}},p._processLayoutQueue=function(e){this.updateStagger(),e.forEach(function(e,t){this._positionItem(e.item,e.x,e.y,e.isInstant,t)},this)},p.updateStagger=function(){var e=this.options.stagger;return null==e?void(this.stagger=0):(this.stagger=r(e),this.stagger)},p._positionItem=function(e,t,i,n,o){n?e.goTo(t,i):(e.stagger(o*this.stagger),e.moveTo(t,i))},p._postLayout=function(){this.resizeContainer()},p.resizeContainer=function(){if(this._getOption("resizeContainer")){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},p._getContainerSize=c,p._setContainerMeasure=function(e,t){if(void 0!==e){var i=this.size;i.isBorderBox&&(e+=t?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),e=Math.max(e,0),this.element.style[t?"width":"height"]=e+"px"}},p._emitCompleteOnItems=function(e,t){function i(){o.dispatchEvent(e+"Complete",null,[t])}function n(){++a==s&&i()}var o=this,s=t.length;if(t&&s){var a=0;t.forEach(function(t){t.once(e,n)})}else i()},p.dispatchEvent=function(e,t,i){var n=t?[t].concat(i):i;if(this.emitEvent(e,n),d)if(this.$element=this.$element||d(this.element),t){var o=d.Event(t);o.type=e,this.$element.trigger(o,i)}
vendor: 5,139 bytes, lines 1-2
1else this.$element.trigger(e,i)},p.ignore=function(e){var t=this.getItem(e);t&&(t.isIgnored=!0)},p.unignore=function(e){var t=this.getItem(e);t&&delete t.isIgnored},p.stamp=function(e){(e=this._find(e))&&(this.stamps=this.stamps.concat(e),e.forEach(this.ignore,this))},p.unstamp=function(e){(e=this._find(e))&&e.forEach(function(e){n.removeFrom(this.stamps,e),this.unignore(e)},this)},p._find=function(e){if(e)return"string"==typeof e&&(e=this.element.querySelectorAll(e)),n.makeArray(e)},p._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},p._getBoundingRect=function(){var e=this.element.getBoundingClientRect(),t=this.size;this._boundingRect={left:e.left+t.paddingLeft+t.borderLeftWidth,top:e.top+t.paddingTop+t.borderTopWidth,right:e.right-(t.paddingRight+t.borderRightWidth),bottom:e.bottom-(t.paddingBottom+t.borderBottomWidth)}},p._manageStamp=c,p._getElementOffset=function(e){var t=e.getBoundingClientRect(),n=this._boundingRect,o=i(e);return{left:t.left-n.left-o.marginLeft,top:t.top-n.top-o.marginTop,right:n.right-t.right-o.marginRight,bottom:n.bottom-t.bottom-o.marginBottom}},p.handleEvent=n.handleEvent,p.bindResize=function(){e.addEventListener("resize",this),this.isResizeBound=!0},p.unbindResize=function(){e.removeEventListener("resize",this),this.isResizeBound=!1},p.onresize=function(){this.resize()},n.debounceMethod(s,"onresize",100),p.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},p.needsResizeLayout=function(){var e=i(this.element);return this.size&&e&&e.innerWidth!==this.size.innerWidth},p.addItems=function(e){var t=this._itemize(e);return t.length&&(this.items=this.items.concat(t)),t},p.appended=function(e){var t=this.addItems(e);t.length&&(this.layoutItems(t,!0),this.reveal(t))},p.prepended=function(e){var t=this._itemize(e);if(t.length){var i=this.items.slice(0);this.items=t.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(t,!0),this.reveal(t),this.layoutItems(i)}},p.reveal=function(e){if(this._emitCompleteOnItems("reveal",e),e&&e.length){var t=this.updateStagger();e.forEach(function(e,i){e.stagger(i*t),e.reveal()})}},p.hide=function(e){if(this._emitCompleteOnItems("hide",e),e&&e.length){var t=this.updateStagger();e.forEach(function(e,i){e.stagger(i*t),e.hide()})}},p.revealItemElements=function(e){var t=this.getItems(e);this.reveal(t)},p.hideItemElements=function(e){var t=this.getItems(e);this.hide(t)},p.getItem=function(e){for(var t=0;t<this.items.length;t++){var i=this.items[t];if(i.element==e)return i}},p.getItems=function(e){e=n.makeArray(e);var t=[];return e.forEach(function(e){var i=this.getItem(e);i&&t.push(i)},this),t},p.remove=function(e){var t=this.getItems(e);this._emitCompleteOnItems("remove",t),t&&t.length&&t.forEach(function(e){e.remove(),n.removeFrom(this.items,e)},this)},p.destroy=function(){var e=this.element.style;e.height="",e.position="",e.width="",this.items.forEach(function(e){e.destroy()}),this.unbindResize();var t=this.element.outlayerGUID;delete h[t],delete this.element.outlayerGUID,d&&d.removeData(this.element,this.constructor.namespace)},s.data=function(e){var t=(e=n.getQueryElement(e))&&e.outlayerGUID;return t&&h[t]},s.create=function(e,t){var i=a(s);return i.defaults=n.extend({},s.defaults),n.extend(i.defaults,t),i.compatOptions=n.extend({},s.compatOptions),i.namespace=e,i.data=s.data,i.Item=a(o),n.htmlInit(i,e),d&&d.bridget&&d.bridget(e,i),i};var f={ms:1,s:1e3};return s.Item=o,s}),function(e,t){"function"==typeof define&&define.amd?define("isotope-layout/js/item",["outlayer/outlayer"],t):"object"==typeof module&&module.exports?module.exports=t(require("outlayer")):(e.Isotope=e.Isotope||{},e.Isotope.Item=t(e.Outlayer))}(window,function(e){"use strict";function t(){e.Item.apply(this,arguments)}var i=t.prototype=Object.create(e.Item.prototype),n=i._create;i._create=function(){this.id=this.layout.itemGUID++,n.call(this),this.sortData={}},i.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id, 2this.sortData.random=Math.random();var e=this.layout.options.getSortData,t=this.layout._sorters;for(var i in e){var n=t[i];this.sortData[i]=n(this.element,this)}}};var o=i.destroy;return i.destroy=function(){o.apply(this,arguments),this.css({display:""})},t}),function(e,t){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-mode",["get-size/get-size","outlayer/outlayer"],t):"object"==typeof module&&module.exports?module.exports=t(require("get-size"),require("outlayer")):(e.Isotope=e.Isotope||{},e.Isotope.LayoutMode=t(e.getSize,e.Outlayer))}(window,function(e,t){"use strict";function i(e){this.isotope=e,e&&(this.options=e.options[this.namespace],this.element=e.element,this.items=e.filteredItems,this.size=e.size)}var n=i.prototype;return["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"].forEach(function(e){n[e]=function(){return t.prototype[e].apply(this.isotope,arguments)}}),n.needsVerticalResizeLayout=function(){var t=e(this.isotope.element);
2return this.isotope.size&&t&&t.innerHeight!=this.isotope.size.innerHeight},n._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},n.getColumnWidth=function(){this.getSegmentSize("column","Width")},n.getRowHeight=function(){this.getSegmentSize("row","Height")},n.getSegmentSize=function(e,t){var i=e+t,n="outer"+t;if(this._getMeasurement(i,n),!this[i]){var o=this.getFirstItemSize();this[i]=o&&o[n]||this.isotope.size["inner"+t]}},n.getFirstItemSize=function(){var t=this.isotope.filteredItems[0];return t&&t.element&&e(t.element)},n.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},n.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},i.modes={},i.create=function(e,t){function o(){i.apply(this,arguments)}return o.prototype=Object.create(n),o.prototype.constructor=o,t&&(o.options=t),o.prototype.namespace=e,i.modes[e]=o,o},i}),function(e,t){"function"==typeof define&&define.amd?define("masonry-layout/masonry",["outlayer/outlayer","get-size/get-size"],t):"object"==typeof module&&module.exports?module.exports=t(require("outlayer"),require("get-size")):e.Masonry=t(e.Outlayer,e.getSize)}(window,function(e,t){var i=e.create("masonry");i.compatOptions.fitWidth="isFitWidth";var n=i.prototype;return n._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var e=0;e<this.cols;e++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},n.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var e=this.items[0],i=e&&e.element;this.columnWidth=i&&t(i).outerWidth||this.containerWidth}var n=this.columnWidth+=this.gutter,o=this.containerWidth+this.gutter,s=o/n,a=n-o%n;s=Math[a&&a<1?"round":"floor"](s),this.cols=Math.max(s,1)},n.getContainerWidth=function(){var e=this._getOption("fitWidth")?this.element.parentNode:this.element,i=t(e);this.containerWidth=i&&i.innerWidth},n._getItemLayoutPosition=function(e){e.getSize();var t=e.size.outerWidth%this.columnWidth,i=Math[t&&t<1?"round":"ceil"](e.size.outerWidth/this.columnWidth);i=Math.min(i,this.cols);for(var n=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](i,e),o={x:this.columnWidth*n.col,y:n.y},s=n.y+e.size.outerHeight,a=i+n.col,r=n.col;r<a;r++)this.colYs[r]=s;return o},n._getTopColPosition=function(e){var t=this._getTopColGroup(e),i=Math.min.apply(Math,t);return{col:t.indexOf(i),y:i}},n._getTopColGroup=function(e){if(e<2)return this.colYs;for(var t=[],i=this.cols+1-e,n=0;n<i;n++)t[n]=this._getColGroupY(n,e);return t},n._getColGroupY=function(e,t){if(t<2)return this.colYs[e];var i=this.colYs.slice(e,e+t);return Math.max.apply(Math,i)},n._getHorizontalColPosition=function(e,t){var i=this.horizontalColIndex%this.cols;i=e>1&&i+e>this.cols?0:i;var n=t.size.outerWidth&&t.size.outerHeight;return this.horizontalColIndex=n?i+e:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,e)}},n._manageStamp=function(e){var i=t(e),n=this._getElementOffset(e),o=this._getOption("originLeft")?
vendor: 5,729 bytes, line 2
2n.left:n.right,s=o+i.outerWidth,a=Math.floor(o/this.columnWidth);a=Math.max(0,a);var r=Math.floor(s/this.columnWidth);r-=s%this.columnWidth?0:1,r=Math.min(this.cols-1,r);for(var l=(this._getOption("originTop")?n.top:n.bottom)+i.outerHeight,d=a;d<=r;d++)this.colYs[d]=Math.max(l,this.colYs[d])},n._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var e={height:this.maxY};return this._getOption("fitWidth")&&(e.width=this._getContainerFitWidth()),e},n._getContainerFitWidth=function(){for(var e=0,t=this.cols;--t&&0===this.colYs[t];)e++;return(this.cols-e)*this.columnWidth-this.gutter},n.needsResizeLayout=function(){var e=this.containerWidth;return this.getContainerWidth(),e!=this.containerWidth},i}),function(e,t){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/masonry",["../layout-mode","masonry-layout/masonry"],t):"object"==typeof module&&module.exports?module.exports=t(require("../layout-mode"),require("masonry-layout")):t(e.Isotope.LayoutMode,e.Masonry)}(window,function(e,t){"use strict";var i=e.create("masonry"),n=i.prototype,o={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(var s in t.prototype)o[s]||(n[s]=t.prototype[s]);var a=n.measureColumns;n.measureColumns=function(){this.items=this.isotope.filteredItems,a.call(this)};var r=n._getOption;return n._getOption=function(e){return"fitWidth"==e?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:r.apply(this.isotope,arguments)},i}),function(e,t){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/fit-rows",["../layout-mode"],t):"object"==typeof exports?module.exports=t(require("../layout-mode")):t(e.Isotope.LayoutMode)}(window,function(e){"use strict";var t=e.create("fitRows"),i=t.prototype;return i._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},i._getItemLayoutPosition=function(e){e.getSize();var t=e.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter;0!==this.x&&t+this.x>i&&(this.x=0,this.y=this.maxY);var n={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+e.size.outerHeight),this.x+=t,n},i._getContainerSize=function(){return{height:this.maxY}},t}),function(e,t){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/vertical",["../layout-mode"],t):"object"==typeof module&&module.exports?module.exports=t(require("../layout-mode")):t(e.Isotope.LayoutMode)}(window,function(e){"use strict";var t=e.create("vertical",{horizontalAlignment:0}),i=t.prototype;return i._resetLayout=function(){this.y=0},i._getItemLayoutPosition=function(e){e.getSize();var t=(this.isotope.size.innerWidth-e.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=e.size.outerHeight,{x:t,y:i}},i._getContainerSize=function(){return{height:this.y}},t}),function(e,t){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","desandro-matches-selector/matches-selector","fizzy-ui-utils/utils","isotope-layout/js/item","isotope-layout/js/layout-mode","isotope-layout/js/layout-modes/masonry","isotope-layout/js/layout-modes/fit-rows","isotope-layout/js/layout-modes/vertical"],function(i,n,o,s,a,r){return t(e,i,n,o,s,a,r)}):"object"==typeof module&&module.exports?module.exports=t(e,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("isotope-layout/js/item"),require("isotope-layout/js/layout-mode"),require("isotope-layout/js/layout-modes/masonry"),require("isotope-layout/js/layout-modes/fit-rows"),require("isotope-layout/js/layout-modes/vertical")):e.Isotope=t(e,e.Outlayer,e.getSize,e.matchesSelector,e.fizzyUIUtils,e.Isotope.Item,e.Isotope.LayoutMode)}(window,function(e,t,i,n,o,s,a){function r(e,t){return function(i,n){for(var o=0;o<e.length;o++){var s=e[o],a=i.sortData[s],r=n.sortData[s];if(a>r||a<r)return(a>r?1:-1)*((void 0!==t[s]?t[s]:t)?1:-1)}return 0}}var l=e.jQuery,d=String.prototype.trim?function(e){return e.trim()}:function(e){return e.replace(/^\s+|\s+$/g,"")},c=t.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});c.Item=s,c.LayoutMode=a;var u=c.prototype;u._create=function(){for(var e in this.itemGUID=0,this._sorters={},this._getSorters(),t.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"],a.modes)this._initLayoutMode(e)},u.reloadItems=function(){this.itemGUID=0,t.prototype.reloadItems.call(this)},u._itemize=function(){for(var e=t.prototype._itemize.apply(this,arguments),i=0;i<e.length;i++){e[i].id=this.itemGUID++}return this._updateItemsSortData(e),e},u._initLayoutMode=function(e){var t=a.modes[e],i=this.options[e]||{};this.options[e]=t.options?o.extend(t.options,i):i,this.modes[e]=new t(this)},u.layout=function(){return!this._isLayoutInited&&this._getOption("initLayout")?void this.arrange():void this._layout()},u._layout=function(){var e=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,e),this._isLayoutInited=!0},u.arrange=function(e){this.option(e),this._getIsInstant();var t=this._filter(this.items);this.filteredItems=t.matches,this._bindArrangeComplete(),this._isInstant?this._noTransition(this._hideReveal,[t]):this._hideReveal(t),this._sort(),this._layout()},u._init=u.arrange,u._hideReveal=function(e){this.reveal(e.needReveal),this.hide(e.needHide)},u._getIsInstant=function(){var e=this._getOption("layoutInstant"),t=void 0!==e?e:!this._isLayoutInited;return this._isInstant=t,t},u._bindArrangeComplete=function(){function e(){t&&i&&n&&o.dispatchEvent("arrangeComplete",null,[o.filteredItems])}var t,i,n,o=this;this.once("layoutComplete",function(){t=!0,e()}
2),this.once("hideComplete",function(){i=!0,e()}),this.once("revealComplete",function(){n=!0,e()})},u._filter=function(e){var t=this.options.filter;t=t||"*";for(var i=[],n=[],o=[],s=this._getFilterTest(t),a=0;a<e.length;a++){var r=e[a];if(!r.isIgnored){var l=s(r);l&&i.push(r),l&&r.isHidden?n.push(r):l||r.isHidden||o.push(r)}}return{matches:i,needReveal:n,needHide:o}},u._getFilterTest=function(e){return l&&this.options.isJQueryFiltering?function(t){return l(t.element).is(e)}:"function"==typeof e?function(t){return e(t.element)}:function(t){return n(t.element,e)}},u.updateSortData=function(e){var t;e?(e=o.makeArray(e),t=this.getItems(e)):t=this.items,this._getSorters(),this._updateItemsSortData(t)},u._getSorters=function(){var e=this.options.getSortData;for(var t in e){var i=e[t];this._sorters[t]=h(i)}},u._updateItemsSortData=function(e){for(var t=e&&e.length,i=0;t&&i<t;i++){e[i].updateSortData()}};var h=function(){function e(e){if("string"!=typeof e)return e;var i=d(e).split(" "),n=i[0],o=n.match(/^\[(.+)\]$/),s=t(o&&o[1],n),a=c.sortDataParsers[i[1]];return a?function(e){return e&&a(s(e))}:function(e){return e&&s(e)}}function t(e,t){return e?function(t){return t.getAttribute(e)}:function(e){var i=e.querySelector(t);return i&&i.textContent}}return e}();c.sortDataParsers={parseInt:function(e){return parseInt(e,10)},parseFloat:function(e){return parseFloat(e)}},u._sort=function(){if(this.options.sortBy){var e=o.makeArray(this.options.sortBy);this._getIsSameSortBy(e)||(this.sortHistory=e.concat(this.sortHistory));var t=r(this.sortHistory,this.options.sortAscending);this.filteredItems.sort(t)}},u._getIsSameSortBy=function(e){for(var t=0;t<e.length;t++)if(e[t]!=this.sortHistory[t])return!1;return!0},u._mode=function(){var e=this.options.layoutMode,t=this.modes[e];if(!t)throw new Error("No layout mode: "+e);return t.options=this.options[e],t},u._resetLayout=function(){t.prototype._resetLayout.call(this),this._mode()._resetLayout()},u._getItemLayoutPosition=function(e){return this._mode()._getItemLayoutPosition(e)},u._manageStamp=function(e){this._mode()._manageStamp(e)},u._getContainerSize=function(){return this._mode()._getContainerSize()},u.needsResizeLayout=function(){return this._mode().needsResizeLayout()},u.appended=function(e){var t=this.addItems(e);if(t.length){var i=this._filterRevealAdded(t);this.filteredItems=this.filteredItems.concat(i)}},u.prepended=function(e){var t=this._itemize(e);if(t.length){this._resetLayout(),this._manageStamps();var i=this._filterRevealAdded(t);this.layoutItems(this.filteredItems),this.filteredItems=i.concat(this.filteredItems),this.items=t.concat(this.items)}},u._filterRevealAdded=function(e){var t=this._filter(e);return this.hide(t.needHide),this.reveal(t.matches),this.layoutItems(t.matches,!0),t.matches},u.insert=function(e){var t=this.addItems(e);if(t.length){var i,n,o=t.length;for(i=0;i<o;i++)n=t[i],this.element.appendChild(n.element);var s=this._filter(t).matches;for(i=0;i<o;i++)t[i].isLayoutInstant=!0;for(this.arrange(),i=0;i<o;i++)delete t[i].isLayoutInstant;this.reveal(s)}};var p=u.remove;return u.remove=function(e){e=o.makeArray(e);var t=this.getItems(e);p.call(this,e);for(var i=t&&t.length,n=0;i&&n<i;n++){var s=t[n];o.removeFrom(this.filteredItems,s)}},u.shuffle=function(){for(var e=0;e<this.items.length;e++){this.items[e].sortData.random=Math.random()}this.options.sortBy="random",this._sort(),this._layout()},u._noTransition=function(e,t){var i=this.options.transitionDuration;this.options.transitionDuration=0;var n=e.apply(this,t);return this.options.transitionDuration=i,n},u.getFilteredItemElements=function(){return this.filteredItems.map(function(e){return e.element})},c}),document.addEventListener("DOMContentLoaded",function(){$("#events-calendar").length>0&&$("#events-calendar").eventCalendar({eventsjson:"/api/v1/events.json",eventsLimit:10,moveOpacity:1,showDescription:!0})}),document.addEventListener("DOMContentLoaded",function(){if($("#profile-preview #img-upload").length>0)new Dropzone("#img-upload form",{method:"put",paramName:"user[avatar]",dictDefaultMessage:"Drag-and-drop your CV here, or click to select the file",createImageThumbnails:!1,clickable:"#img-upload",init:function(){this.on("success",function(){location.reload()})}})}),document.addEventListener("DOMContentLoaded",function(){$("#profile-preview .profile-bar #bar").length>0&&$.ajax({url:"/dashboard/profile_progress",dataType:"json",success:function(e){console.log(e),result=e.percentage_completed+"%",$("#profile-preview .profile-bar #bar").css("width",result),$("#profile-preview .profile-bar #percent").css("left",result),$("#profile-preview .profile-bar #percent").text(result)},error:function(){console.log("An error occurred.")}})}),document.addEventListener("DOMContentLoaded",function(){if($(".drag-drop #dropzone.documents").length>0)new Dropzone("#dropzone.documents > form",{method:"put",paramName:"user[documents][]",dictDefaultMessage:"Drag-and-drop your CV here, or click to select the file",clickable:"#dropzone.documents",maxFiles:20,autoQueue:!1,init:function(){this.on("addedfiles",function(e){e.length>20?(this.removeAllFiles(),alert("Upload is restricted to 20 files at on time. Please select up to 20 files")):this.enqueueFiles(e)}),this.on("queuecomplete",function(){setTimeout(function(){location.reload()},1e3)})}})}),document.addEventListener("DOMContentLoaded",function(){if($(".drag-drop #dropzone.cover-letters").length>0)new Dropzone("#dropzone.cover-letters > form",{method:"put",paramName:"user[cover_letters][]",dictDefaultMessage:"Drag-and-drop your CV here, or click to select the file",clickable:"#dropzone.cover-letters",init:function(){this.on("success",function(){0===this.getUploadingFiles().length&&0===this.getQueuedFiles().length?localStorage.setItem("cluploaded","true"):localStorage.setItem("cluploaded","fal
2se"),location.reload()})}})}),document.addEventListener("DOMContentLoaded",function(){const e=window.location.href.includes("jac")?1:null;if($(".drag-drop #dropzone.cvs-drop").length>0)new Dropzone("#dropzone.cvs-drop > form",{method:"put",paramName:"user[cvs][]",dictDefaultMessage:"Drag-and-drop your CV here, or click to select the file",clickable:"#dropzone.cvs-drop",maxFiles:e,init:function(){this.on("success",function(){0===this.getUploadingFiles().length&&0===this.getQueuedFiles().length?localStorage.setItem("cvuploaded","true"):localStorage.setItem("cvuploaded","false"),location.reload()})}})}),document.addEventListener("DOMContentLoaded",function(){$("#suggested-jobs .suggested-jobs").length>0&&$(".suggested-jobs-wrapper").slick({slidesToShow:3,slidesToScroll:1,autoplay:!0,arrows:!0,autoplaySpeed:7e3,dots:!0,vertical:!0,verticalSwiping:!0,responsive:[{breakpoint:600,settings:{slidesToShow:2,slidesToScroll:2}}]})}),document.addEventListener("DOMContentLoaded",function(){$("#saved-jobs .saved-jobs").length>0&&$(".saved-jobs-wrapper").slick({slidesToShow:2,slidesToScroll:1,autoplay:!0,arrows:!0,autoplaySpeed:7e3,dots:!0,vertical:!0,verticalSwiping:!0,responsive:[{breakpoint:600,settings:{slidesToShow:2,slidesToScroll:2}}]})}),document.addEventListener("DOMContentLoaded",function(){initJobAlertLoc(),setupJobAlert(),deleteJobAlert(),updateEmailFrequency()}),$(document).ajaxComplete(function(){deleteJobAlert()}),$(".requests-title").on("click",function(){$(".rtbf-wrapper .rtbf-description").toggleClass("minimize"),$(".requests-title").toggleClass("active")}),$(".requests-title-sar").on("click",function(){$(".rtbf-wrapper-sar .rtbf-description-sar").toggleClass("minimize"),$(".requests-title-sar").toggleClass("active")}),$("#flash-notice.alert").fadeTo(7e3,500).slideUp(500,function(){$("#flash-notice.alert").slideUp(500)}),$(document).ajaxComplete(function(){jQuery(document).ready(function(){jQuery(".tabs .tab-links a").on("click",function(e){var t=jQuery(this).attr("href");jQuery(".tabs "+t).show().siblings().hide(),jQuery(this).parent("li").addClass("active").siblings().removeClass("active"),e.preventDefault()})})});var main=function(){$(".add-new").click(function(){$(".dropdown-menu").toggle()})};$(document).ready(main),$(document).ready(function(){/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),$("#template-job_100 #sticky-apply").length>
20&&($(window).scroll(function(){var e=$(".header").outerHeight();$("#sticky-apply").css("top",e+"px"),$(window).scrollTop()>=$(".job-apply").offset().top-e?$("#sticky-apply").slideDown():$("#sticky-apply").slideUp(600)}),$(window).on("resize",debounce(function(){$("#sticky-apply").css("top",$(".header").outerHeight()+"px")},150)))}),$(document).ready(function(){function e(e,t){return $(t).text().toUpperCase()<$(e).text().toUpperCase()?1:-1}if($("#search_blogs.filters #search-group").length>0&&$("#search-group .filter-select .tag-name").sort(e).appendTo("#search-group .filter-select"),$("#search_blogs.filters #search-group-2").length>0&&$("#search-group-2 .filter-select .tag-name").sort(e).appendTo("#search-group-2 .filter-select"),$("#search_blogs").length>0){var t,i,n=$(".items").isotope({itemSelector:".item",columnWidth:".item",percentPosition:!0,layoutMode:"fitRows",filter:function(){var e=$(this),n=!t||e.text().match(t),o=!i||e.is(i);return n&&o}});$(".filter-buttons").on("click","button",function(){var e=$(this).attr("data-filter");n.isotope({filter:e})}),$(".filter-select").on("change",function(){i=$(this).val(),n.isotope()});var o=$("#quicksearch").keyup(s(function(){t=new RegExp(o.val(),"gi"),n.isotope()}));function s(e,t){var i;return function(){function n(){e(),i=null}i&&clearTimeout(i),setTimeout(n,t||100)}}}}),document.addEventListener("DOMContentLoaded",function(){if($("#haml-structure.blog").length){var e=$(".col-md-4 div:nth-of-type(2) ul li:first-child a p").text();e=e.substring(e.indexOf("by")-1),$(".col-md-4 div:nth-of-type(2) ul li:first-child a p").replaceWith("<p>"+e+"</p>");var t=$(".col-md-4 div:nth-of-type(2) ul li:nth-of-type(2) a p").text();t=t.substring(t.indexOf("by")-1),$(".col-md-4 div:nth-of-type(2) ul li:nth-of-type(2) a p").replaceWith("<p>"+t+"</p>");var i=$(".col-md-4 div:nth-of-type(2) ul li:nth-of-type(3) a p").text();i=i.substring(i.indexOf("by")-1),$(".col-md-4 div:nth-of-type(2) ul li:nth-of-type(3) a p").replaceWith("<p>"+i+"</p>");var n=$(".col-md-4 div:nth-of-type(2) ul li:nth-of-type(4) a p").text();n=n.substring(n.indexOf("by")-1),$(".col-md-4 div:nth-of-type(2) ul li:nth-of-type(4) a p").replaceWith("<p>"+n+"</p>");var o=$(".col-md-4 div:nth-of-type(2) ul li:last-child a p").text();o=o.substring(o.indexOf("by")-1),$(".col-md-4 div:nth-of-type(2) ul li:last-child a p").replaceWith("<p>"+o+"</p>")}}),window.addEventListener("DOMContentLoaded",function(){if($("#side-consultants_100").length>0){$("#side-consultants_100 .team__slider").attr("data-slides");var e="true"===$("#side-consultants_100 .team__slider").attr("data-arrows"),t="true"===$("#side-consultants_100 .team__slider").attr("data-dots");$("#side-consultants_100 .team__slider").slick({slidesToShow:2,slidesToScroll:1,autoplay:!0,arrows:e,dots:t,infinite:!1,vertical:!0,responsive:[{breakpoint:1170,settings:{slidesToShow:3,slidesToScroll:1}},{breakpoint:767,settings:{slidesToShow:2,slidesToScroll:1}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1,dots:!1}}]})}}),document.addEventListener("DOMContentLoaded",function(){if($("#blogs.blogs-tag-page").length>0){var e=$(".blogs-nav header h4 > span").attr("id");$("#categories > option").each(function(){$(this).attr("id")==e&&$(this).attr("selected",!0)})}}),document.addEventListener("DOMContentLoaded",function(){function e(e){function t(){function t(e){for(var t=[],i=0;i<e.length;i++){var n=e[i],o=n.getBoundingClientRect().top-document.body.getBoundingClientRect().top,s=n.clientHeight||n.offsetHeight,a=window.pageYOffset,r=window.innerHeight;o+s>a+.1*r&&o<a+r&&(t.push(n),e.splice(i,1),i--)}return t}if(i.length>0){var n=t(i);if(n.length>0){for(var o=0;o<n.length;o++){var s=new Image;s.onload=function(e){s.src=n[e].getAttribute("virtual-image"),n[e].appendChild(s)}(o)}"function"==typeof e&&e()}}}var i=Array.prototype.slice.call(document.querySelectorAll("[virtual-image]"));return window.onscroll=t,window.onload=t,t()}$(document).ready(function(){function e(){function e(){event.preventDefault(),$("body").removeClass("show-video-modal overflow-hidden"),$("#vimeo").attr("src","")}$(".js-trigger-video-modal").on("click",function(e){e.preventDefault();var t="https://player.vimeo.com/video/"+$(this).attr("data-vimeo-id");$("#vimeo").attr("src",t),$("body").addClass("show-video-modal overflow-hidden")}),$("body").on("click",".close-video-modal, .video-modal .overlay",function(){e()}),$("body").keyup(function(t){27==t.keyCode&&e()})}e()}),$(window).on("load",function(){e(objectFitImages)}),$("#video-modal-vimeo").append('<div class="video-modal-container"></div><button class="video-modal-close"><span>close modal</span></button><span class="video-modal-overlay"></span>'),$(".vimeo-video").click(function(){$(this).attr("id");
2var e=$(this).attr("data-video-id"),t=/(http|https)?:\/\/(www\.|player\.)?vimeo\.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|video\/|)(\d+)(?:|\/\?)/,i=e.match(t);i&&i[2]&&i[2],$(".video-modal-container").html('<iframe width="560" height="315" src="https://player.vimeo.com/video/'+e+'"frameborder="0" allow="autoplay; fullscreen" allowfullscreen></iframe>'),$(".video-modal-close, .video-modal-overlay").click(function(){$(".video-modal-container").empty(),$("#video-modal-vimeo").removeClass("launched")}),$("#video-modal-vimeo").addClass("launched")})}),document.addEventListener("DOMContentLoaded",function(){var e="true"===$("#latest-testimonials_100 .testimonial__slider").attr("data-arrows"),t="true"===$("#latest-testimonials_100 .testimonial__slider").attr("data-dots"),i=Number($("#latest-testimonials_100 .testimonial__slider").attr("data-slides")),n="true"===$("#latest-testimonials_100 .testimonial__slider").attr("data-navarrows"),o="true"===$("#latest-testimonials_100 .testimonial__slider").attr("data-swipe"),s="true"===$("#latest-testimonials_100 .testimonial__slider").attr("data-autoplay"),a=$("#latest-testimonials_100 .testimonial__slider").attr("data-autoplay-speed"),r=$("#latest-testimonials_100 .testimonial__slider").attr("data-append-dots"),l="true"===$("#latest-testimonials_100 .testimonial__slider").attr("data-fade"),d="true"===$("#latest-testimonials_100 .testimonial__slider").attr("data-infinite"),c="true"===$("#latest-testimonials_100 .testimonial__slider").attr("data-centerMode"),u=$("#latest-testimonials_100 .testimonial__slider").attr("data-centerPadding"),h="true"===$("#latest-testimonials_100 .testimonial__slider").attr("data-adaptiveHeight"),p="true"===$("#latest-testimonials_100 .testimonial__slider").attr("data-pauseOnHover");$("#latest-testimonials_100").length>0&&$("#latest-testimonials_100 .testimonial__slider").slick({adaptiveHeight:h,slidesToScroll:i,slidesToShow:i,arrows:e,prevArrow:n?$("#latest-testimonials_100 .prev-slide"):"<button type='button' class='slick-prev'><i class='fa fa-fw fa-angle-left'></i></button>",nextArrow:n?$("#latest-testimonials_100 .next-slide"):"<button type='button' class='slick-next'><i class='fa fa-fw fa-angle-right'></i></button>",dots:t,appendDots:r?$(`#latest-testimonials_100 .${r}`):$("#latest-testimonials_100 .testimonial__slider"),fade:!!l&&!(i>1),swipe:o,autoplay:s,autoplaySpeed:a,infinite:d,centerMode:c,centerPadding:u,pauseOnHover:p,responsive:[{breakpoint:1200,settings:{slidesToScroll:i<=1?1:2,slidesToShow:i<=1?1:2}},{breakpoint:768,settings:{slidesToScroll:1,slidesToShow:1,fade:!0,adaptiveHeight:!0}}]})}),$(document).ready(function(){function e(e,t){var i;return function(){function n(){e(),i=null}i&&clearTimeout(i),setTimeout(n,t||100)}}function t(e){var t="";for(var i in e)t+=e[i];return t}function i(){var e=$(this).attr("style");e&&-1!==e.indexOf("height: 0px")?$(this).prev().is("header")&&$(this).prev().hide(400):$(this).prev().is("header")&&$(this).prev().show(400)}function n(e,t){return $(t).text().toUpperCase()<$(e).text().toUpperCase()?1:-1}if($("#search.filters").each(function(){const n=$(this);let o=n.siblings(".items");if(o.length||(o=n.parent().siblings(".items")),!o.length)return;var s,a,r={};o.isotope({itemSelector:".item",columnWidth:".item",percentPosition:!0,layoutMode:"fitRows",filter:function(){var e=$
2(this),t=!s||e.text().match(s),i=!a||e.is(a);return t&&i}});const l=window.location.search,d=new URLSearchParams(l);if(null!==d.get("discipline")){a="."+d.get("discipline"),o.isotope({filter:a});var c=$('.filter-select option[value*="'+a+'"]').attr("value");null!==c&&$(".filter-select").val(c)}$(".filter-buttons").on("click","button",function(){var e=$(this).attr("data-filter");o.isotope({filter:e})}),$(".filter-select").on("change",function(){var e=$(this).attr("data-filter-group");a=$(this).val(),r[e]=a;var i=t(r);o.isotope({filter:i})}),$(".filter-btn").click(function(){var e=$(this).attr("data-filter-group");a=$(this).val(),r[e]=a;var i=t(r);o.isotope({filter:i})});var u=$("#quicksearch").keyup(e(function(){s=new RegExp(u.val(),"gi"),o.isotope()}));$(".consultants.trim-title").exists()&&o.on("arrangeComplete",i)}),$("#search.filters #tag-filter").length>0){var o=$("#tag-filter .filter-select"),s=o.find("option:first"),a=o.find("option:not(:first)").sort(n);o.empty().append(s).append(a),o.find("option").each(function(){$(this).siblings('[value="'+this.value+'"]').remove()})}}),document.addEventListener("DOMContentLoaded",function(){var e=$
2("#clients-111 .clients__slider").attr("data-slides"),t="true"===$("#clients-111 .clients__slider").attr("data-arrows"),i="true"===$("#clients-111 .clients__slider").attr("data-dots");$("#clients-111 .clients__slider").slick({infinite:!0,autoplay:!0,autoplaySpeed:2e3,adaptiveHeight:!1,arrows:t,dots:i,slidesToShow:e,slidesToScroll:1,draggable:!0,responsive:[{breakpoint:991,settings:{slidesToShow:2,slidesToScroll:1}},{breakpoint:640,settings:{slidesToShow:1,slidesToScroll:1}}]})}),document.addEventListener("DOMContentLoaded",function(){var e="true"===$("#latest-testimonials-120 .testimonials__slider").attr("data-dots"),t=$("#latest-testimonials-120 .testimonials__slider").attr("data-slides"),i="true"===$("#latest-testimonials-120 .testimonials__slider").attr("data-arrows"),n=$("#latest-testimonials-120 .testimonials__slider").attr("autoplay-speed");$("#latest-testimonials-120 .testimonials__slider").hasClass("customize-arrow")?$("#latest-testimonials-120 .testimonials__slider.customize-arrow").slick({infinite:!0,autoplay:!1,autoplaySpeed:n,speed:1e3,pauseOnHover:!1,focusOnSelect:!0,adaptiveHeight:!0,dots:e,arrows:i,slidesToShow:t,slidesToScroll:1,prevArrow:$("#latest-testimonials-120 .slider-arrows .testimonial-prev"),nextArrow:$("#latest-testimonials-120 .slider-arrows .testimonial-next"),responsive:[{breakpoint:1280,settings:{slidesToShow:t,slidesToScroll:1}},{breakpoint:1e3,settings:{slidesToShow:t-1,slidesToScroll:1}},{breakpoint:768,settings:{slidesToShow:1,slidesToScroll:1,dots:!1,arrows:!0}}]}):$("#latest-testimonials-120 .testimonials__slider").slick({infinite:!0,autoplay:!0,autoplaySpeed:n,speed:1e3,pauseOnHover:!1,focusOnSelect:!0,adaptiveHeight:!1,dots:e,arrows:i,slidesToShow:t,slidesToScroll:1,responsive:[{breakpoint:1280,settings:{slidesToShow:t,slidesToScroll:1}},{breakpoint:1e3,settings:{slidesToShow:t-1,slidesToScroll:1}},{breakpoint:768,settings:{slidesToShow:1,slidesToScroll:1,dots:!1,arrows:!0}}]})}),$(document).ready(function(){$(".close").click(function(){$("#newsalert_100").hide(),$("[id^=header]").removeClass("moffset")}),$("#newsalert_100").each(function(){$("[id^=header]").addClass("moffset")})}), 3/* 4 * jQuery carouFredSel 6.2.0 5 * Demo's and documentation: 6 * caroufredsel.dev7studios.com 7 * 8 * Copyright (c) 2013 Fred Heusschen 9 * www.frebsite.nl 10 * 11 * Dual licensed under the MIT and GPL licenses. 12 * http://en.wikipedia.org/wiki/MIT_License 13 * http://en.wikipedia.org/wiki/GNU_General_Public_License 14 */ 15eval(function(e,t,i,n,o,s){if(o=function(e){return(e<t?"":o(parseInt(e/t)))+((e%=t)>35?String.fromCharCode(e+29):e.toString(36))},!"".replace(/^/,String)){for(;i--;)s[o(i)]=n[i]||o(i);n=[function(e){return s[e]}],o=function(){return"\\w+"},i=1}for(;i--;)n[i]&&(e=e.replace(new RegExp("\\b"+o(i)+"\\b","g"),n[i]));return e 16}("(D($){8($.1s.1v){H}$.1s.6i=$.1s.1v=D(u,w){8(1l.S==0){18(J,'6j 55 6k 1j \"'+1l.4o+'\".');H 1l}8(1l.S>1){H 1l.1W(D(){$(1l).1v(u,w)})}F y=1l,$12=1l[0],56=L;8(y.1q('57')){56=y.1P('3o','4p');y.T('3o',['4q',J])}F z={};z.59=D(o,a,b){o=3S($12,o);o.E=6l($12,o.E);o.1K=6m($12,o.1K);o.N=6n($12,o.N);o.14=5a($12,o.14);o.16=5a($12,o.16);o.1b=6o($12,o.1b);o.1r=6p($12,o.1r);o.1Q=6q($12,o.1Q);8(a){31=$.1L(J,{},$.1s.1v.5b,o)}7=$.1L(J,{},$.1s.1v.5b,o);7.d=6r(7);A.2l=(7.2l=='5c'||7.2l=='1m')?'16':'14';F c=y.13(),2m=5d($1n,7,'P');8(3p(7.25)){7.25='7Q'+G.3T}7.3U=5e(7,2m);7.E=6s(7.E,7,c,b);7[7.d['P']]=6t(7[7.d['P']],7,c);7[7.d['1e']]=6u(7[7.d['1e']],7,c);8(7.2H){8(!3V(7[7.d['P']])){7[7.d['P']]='2I%'}}8(3V(7[7.d['P']])){A.6v=J;A.4r=7[7.d['P']];7[7.d['P']]=4s(2m,A.4r);8(!7.E.M){7.E.U.1d=J}}8(7.2H){7.1R=L;7.1i=[0,0,0,0];7.1B=L;7.E.U.1d=L}O{8(!7.E.M){7=6w(7,2m)}8(!7[7.d['P']]){8(!7.E.U.1d&&Y(7.E[7.d['P']])&&7.E.1t=='*'){7[7.d['P']]=7.E.M*7.E[7.d['P']];7.1B=L}O{7[7.d['P']]='1d'}}8(1z(7.1B)){7.1B=(Y(7[7.d['P']]))?'5f':L}8(7.E.U.1d){7.E.M=32(c,7,0)}}8(7.E.1t!='*'&&!7.E.U.1d){7.E.U.4t=7.E.M;7.E.M=3W(c,7,0)}7.E.M=2x(7.E.M,7,7.E.U.2c,$12);7.E.U.20=7.E.M;8(7.2H){8(!7.E.U.34){7.E.U.34=7.E.M}8(!7.E.U.1X){7.E.U.1X=7.E.M}7=5g(7,c,2m)}O{7.1i=6x(7.1i);8(7.1B=='3q'){7.1B='1m'}O 8(7.1B=='5h'){7.1B='35'}1F(7.1B){R'5f':R'1m':R'35':8(7[7.d['P']]!='1d'){7=5i(7,c);7.1R=J}17;2J:7.1B=L;7.1R=(7.1i[0]==0&&7.1i[1]==0&&7.1i[2]==0&&7.1i[3]==0)?L:J;17}}8(!Y(7.1K.1M)){7.1K.1M=6y}8(1z(7.1K.E)){7.1K.E=(7.2H||7.E.U.1d||7.E.1t!='*')?'M':7.E.M}7.N=$.1L(J,{},7.1K,7.N);7.14=$.1L(J,{},7.1K,7.14);7.16=$.1L(J,{},7.1K,7.16);7.1b=$.1L(J,{},7.1K,7.1b);7.N=6z($12,7.N);7.14=5j($12,7.14);7.16=5j($12,7.16);7.1b=6A($12,7.1b);7.1r=6B($12,7.1r);7.1Q=6C($12,7.1Q);8(7.2n){7.2n=5k(7.2n)}8(7.N.5l){7.N.4u=7.N.5l;3X('N.5l','N.4u')}8(7.N.5m){7.N.4v=7.N.5m;3X('N.5m','N.4v')}8(7.N.5n){7.N.4w=7.N.5n;3X('N.5n','N.4w')}8(7.N.5o){7.N.2K=7.N.5o;3X('N.5o','N.2K')}};z.6D=D(){y.1q('57',J);F a=y.13(),3Y=6E(y,['6F','6G','3r','3q','35','5h','1m','3Z','P','1e','6H','1S','5p','6I']),5q='7R';1F(3Y.3r){R'6J':R'7S':5q=3Y.3r;17}8(G.3s=='36'){41($1n)}O{$1n.Z(3Y)}$1n.Z({'7T':'3t','3r':5q});41(y);y.1q('6K',3Y.3Z);y.Z({'6F':'1m','6G':'42','3r':'6J','3q':0,'35':'N','5h':'N','1m':0,'6H':0,'1S':0,'5p':0,'6I':0});4x(a,7);41(a);8(7.2H){5r(7,a)}};z.6L=D(){z.5s();y.11(I('6M',G),D(e,a){e.1g();8(!A.2d){8(7.N.W){7.N.W.3a(2y('4y',G))}}A.2d=J;8(7.N.1G){7.N.1G=L;y.T(I('3b',G),a)}H J});y.11(I('5t',G),D(e){e.1g();8(A.26){43(V)}H J});y.11(I('3b',G),D(e,a,b){e.1g();1u=3u(1u);8(a&&A.26){V.2d=J;F c=2o()-V.2L;V.1M-=c;8(V.4z){V.4z.1M-=c}8(V.4A){V.4A.1M-=c}43(V,L)}8(!A.27&&!A.26){8(b){1u.3v+=2o()-1u.2L}}8(!A.27){8(7.N.W){7.N.W.3a(2y('6N',G))}}A.27=J;8(7.N.4v){F d=7.N.2K-1u.3v,3c=2I-1H.2z(d*2I/7.N.2K);7.N.4v.1h($12,3c,d)}H J});y.11(I('1G',G),D(e,b,c,d){e.1g();1u=3u(1u);F v=[b,c,d],t=['2M','28','3d'],a=3e(v,t);b=a[0];c=a[1];d=a[2];8(b!='14'&&b!='16'){b=A.2l}8(!Y(c)){c=0}8(!1k(d)){d=L}8(d){A.2d=L;7.N.1G=J}8(!7.N.1G){e.2e();H 18(G,'3w 4y: 2p 3f.')}8(A.27){8(7.N.W){7.N.W.2N(2y('4y',G));7.N.W.2N(2y('6N',G))}}A.27=L;1u.2L=2o();F f=7.N.2K+c;44=f-1u.3v;3c=2I-1H.2z(44*2I/f);8(7.N.1f){1u.1f=7U(D(){F a=2o()-1u.2L+1u.3v,3c=1H.2z(a*2I/f);7.N.1f.4B.1h(7.N.1f.2q[0],3c)},7.N.1f.5u)}1u.N=7V(D(){8(7.N.1f){7.N.1f.4B.1h(7.N.1f.2q[0],2I)}8(7.N.4w){7.N.4w.1h($12,3c,44)}8(A.26){y.T(I('1G',G),b)}O{y.T(I(b,G),7.N)}},44);8(7.N.4u){7.N.4u.1h($12,3c,44)}H J});y.11(I('3g',G),D(e){e.1g();8(V.2d){V.2d=L;A.27=L;A.26=J;V.2L=2o();3x(V,G)}O{y.T(I('1G',G))}H J});y.11(I('14',G)+' '+I('16',G),D(e,b,f,g,h){e.1g();8(A.2d||y.2f(':3t')){e.2e();H 18(G,'3w 4y 7W 3t: 2p 3f.')}F i=(Y(7.E.4C))?7.E.4C:7.E.M+1;8(i>K.Q){e.2e();H 18(G,'2p 6O E ('+K.Q+' Q, '+i+' 6P): 2p 3f.')}F v=[b,f,g,h],t=['2A','28/2M','D','3d'],a=3e(v,t);b=a[0];f=a[1];g=a[2];h=a[3];F k=e.5v.19(G.3y.45.S);8(!1T(b)){b={}}8(1o(g)){b.3h=g}8(1k(h)){b.2O=h}b=$.1L(J,{},7[k],b);8(b.5w&&!b.5w.1h($12,k)){e.2e();H 18(G,'7X \"5w\" 7Y L.')}8(!Y(f)){8(7.E.1t!='*'){f='M'}O{F m=[f,b.E,7[k].E];1j(F a=0,l=m.S;a<l;a++){8(Y(m[a])||m[a]=='6Q'||m[a]=='M'){f=m[a];17}}}1F(f){R'6Q':e.2e();
16H y.1P(I(k+'7Z',G),[b,g]);17;R'M':8(!7.E.U.1d&&7.E.1t=='*'){f=7.E.M}17}}8(V.2d){y.T(I('3g',G));y.T(I('2O',G),[k,[b,f,g]]);e.2e();H 18(G,'3w 80 3f.')}8(b.1M>0){8(A.26){8(b.2O){8(b.2O=='2P'){2g=[]}8(b.2O!='X'||2g.S==0){y.T(I('2O',G),[k,[b,f,g]])}}e.2e();H 18(G,'3w 81 3f.')}}1u.3v=0;y.T(I('6R'+k,G),[b,f]);8(7.2n){F s=7.2n,c=[b,f];1j(F j=0,l=s.S;j<l;j++){F d=k;8(!s[j][2]){d=(d=='14')?'16':'14'}8(!s[j][1]){c[0]=s[j][0].1P('3o',['6S',d])}c[1]=f+s[j][3];s[j][0].T('3o',['6R'+d,c])}}H J});y.11(I('82',G),D(e,b,c){e.1g();F d=y.13();8(!7.1U){8(K.X==0){8(7.3z){y.T(I('16',G),K.Q-1)}H e.2e()}}1Y(d,7);8(!Y(c)){8(7.E.U.1d){c=4D(d,7,K.Q-1)}O 8(7.E.1t!='*'){F f=(Y(b.E))?b.E:5x(y,7);c=6T(d,7,K.Q-1,f)}O{c=7.E.M}c=4E(c,7,b.E,$12)}8(!7.1U){8(K.Q-c<K.X){c=K.Q-K.X}}7.E.U.20=7.E.M;8(7.E.U.1d){F g=2x(32(d,7,K.Q-c),7,7.E.U.2c,$12);8(7.E.M+c<=g&&c<K.Q){c++;g=2x(32(d,7,K.Q-c),7,7.E.U.2c,$12)}7.E.M=g}O 8(7.E.1t!='*'){F g=3W(d,7,K.Q-c);7.E.M=2x(g,7,7.E.U.2c,$12)}1Y(d,7,J);8(c==0){e.2e();H 18(G,'0 E 46 1K: 2p 3f.')}18(G,'6U '+c+' E 5y.');K.X+=c;2h(K.X>=K.Q){K.X-=K.Q}8(!7.1U){8(K.X==0&&b.4F){b.4F.1h($12,'14')}8(!7.3z){3A(7,K.X,G)}}y.13().19(K.Q-c,K.Q).83(y);8(K.Q<7.E.M+c){y.13().19(0,(7.E.M+c)-K.Q).4G(J).47(y)}F d=y.13(),3i=6V(d,7,c),2i=6W(d,7),1Z=d.1N(c-1),21=3i.2P(),2r=2i.2P();1Y(d,7);F h=0,2B=0;8(7.1B){F p=4H(2i,7);h=p[0];2B=p[1]}F i=(h<0)?7.1i[7.d[3]]:0;F j=L,2Q=$();8(7.E.M<c){2Q=d.19(7.E.U.20,c);8(b.1V=='6X'){F k=7.E[7.d['P']];j=2Q;1Z=2r;5z(j);7.E[7.d['P']]='1d'}}F l=L,3B=2R(d.19(0,c),7,'P'),2j=4I(4J(2i,7,J),7,!7.1R),3C=0,29={},4K={},2s={},2S={},4L={},2T={},5A={},2U=5B(b,7,c,3B);1F(b.1V){R'1I':R'1I-1w':3C=2R(d.19(0,7.E.M),7,'P');17}8(j){7.E[7.d['P']]=k}1Y(d,7,J);8(2B>=0){1Y(21,7,7.1i[7.d[1]])}8(h>=0){1Y(1Z,7,7.1i[7.d[3]])}8(7.1B){7.1i[7.d[1]]=2B;7.1i[7.d[3]]=h}2T[7.d['1m']]=-(3B-i);5A[7.d['1m']]=-(3C-i);4K[7.d['1m']]=2j[7.d['P']];F m=D(){},1O=D(){},1C=D(){},3D=D(){},2C=D(){},5C=D(){},1D=D(){},3E=D(){},1x=D(){},1y=D(){},1J=D(){};1F(b.1V){R'3j':R'1I':R'1I-1w':R'22':R'22-1w':l=y.4G(J).47($1n);17}1F(b.1V){R'3j':R'22':R'22-1w':l.13().19(0,c).2t();l.13().19(7.E.U.20).2t();17;R'1I':R'1I-1w':l.13().19(7.E.M).2t();l.Z(5A);17}y.Z(2T);V=48(2U,b.2u,G);29[7.d['1m']]=(7.1R)?7.1i[7.d[3]]:0;8(7[7.d['P']]=='1d'||7[7.d['1e']]=='1d'){m=D(){$1n.Z(2j)};1O=D(){V.1a.1c([$1n,2j])}}8(7.1R){8(2r.4M(1Z).S){2s[7.d['1S']]=1Z.1q('2a');8(h<0){1Z.Z(2s)}O{1D=D(){1Z.Z(2s)};3E=D(){V.1a.1c([1Z,2s])}}}1F(b.1V){R'1I':R'1I-1w':l.13().1N(c-1).Z(2s);17}8(2r.4M(21).S){2S[7.d['1S']]=21.1q('2a');1C=D(){21.Z(2S)};3D=D(){V.1a.1c([21,2S])}}8(2B>=0){4L[7.d['1S']]=2r.1q('2a')+7.1i[7.d[1]];2C=D(){2r.Z(4L)};5C=D(){V.1a.1c([2r,4L])}}}1J=D(){y.Z(29)};F n=7.E.M+c-K.Q;1y=D(){8(n>0){y.13().19(K.Q).2t();3i=$(y.13().19(K.Q-(7.E.M-n)).3F().6Y(y.13().19(0,n).3F()))}5D(j);8(7.1R){F a=y.13().1N(7.E.M+c-1);a.Z(7.d['1S'],a.1q('2a'))}};F o=5E(3i,2Q,2i,c,'14',2U,2j);1x=D(){5F(y,l,b);A.26=L;2b.3h=4a($12,b,'3h',o,2b);2g=5G(y,2g,G);8(!A.27){y.T(I('1G',G))}};A.26=J;1u=3u(1u);2b.3G=4a($12,b,'3G',o,2b);1F(b.1V){R'42':y.Z(29);m();1C();2C();1D();1J();1y();1x();17;R'1w':V.1a.1c([y,{'1E':0},D(){m();1C();2C();1D();1J();1y();V=48(2U,b.2u,G);V.1a.1c([y,{'1E':1},1x]);3x(V,G)}]);17;R'3j':y.Z({'1E':0});V.1a.1c([l,{'1E':0}]);V.1a.1c([y,{'1E':1},1x]);1O();1C();2C();1D();1J();1y();17;R'1I':V.1a.1c([l,29,D(){1C();2C();1D();1J();1y();1x()}]);1O();17;R'1I-1w':V.1a.1c([y,{'1E':0}]);V.1a.1c([l,29,D(){y.Z({'1E':1});1C();2C();1D();1J();1y();1x()}]);1O();17;R'22':V.1a.1c([l,4K,1x]);1O();1C();2C();1D();1J();1y();17;R'22-1w':y.Z({'1E':0});V.1a.1c([y,{'1E':1}]);V.1a.1c([l,4K,1x]);1O();1C();2C();1D();1J();1y();17;2J:V.1a.1c([y,29,D(){1y();1x()}]);1O();3D();5C();3E();17}3x(V,G);5H(7.25,y,G);y.T(I('3H',G),[L,2j]);H J});y.11(I('84',G),D(e,c,d){e.1g();F f=y.13();8(!7.1U){8(K.X==7.E.M){8(7.3z){y.T(I('14',G),K.Q-1)}H e.2e()}}1Y(f,7);8(!Y(d)){8(7.E.1t!='*'){F g=(Y(c.E))?c.E:5x(y,7);d=6Z(f,7,0,g)}O{d=7.E.M}d=4E(d,7,c.E,$12)}F h=(K.X==0)?K.Q:K.X;8(!7.1U){8(7.E.U.1d){F i=32(f,7,d),g=4D(f,7,h-1)}O{F i=7.E.M,g=7.E.M}8(d+i>h){d=h-g}}7.E.U.20=7.E.M;8(7.E.U.1d){F i=2x(5I(f,7,d,h),7,7.E.U.2c,$12);2h(7.E.M-d>=i&&d<K.Q){d++;i=2x(5I(f,7,d,h),7,7.E.U.2c,$12)}7.E.M=i}O 8(7.E.1t!='*'){F i=3W(f,7,d);7.E.M=2x(i,7,7.E.U.2c,$12)}1Y(f,7,J);8(d==0){e.2e();H 18(G,'0 E 46 1K: 2p 3f.')}18(G,'6U '+d+' E 70.');K.X-=d;2h(K.X<0){K.X+=K.Q}8(!7.1U){8(K.X==7.E.M&&c.4F){c.4F.1h($12,'16')}8(!7.3z){3A(7,K.X,G)}}8(K.Q<7.E.M+d){y.13().19(0,(7.E.M+d)-K.Q).4G(J).47(y)}F f=y.13(),3i=71(f,7),2i=72(f,7,d),1Z=f.1N(d-1),21=3i.2P(),2r=2i.2P();1Y(f,7);F j=0,2B=0;8(7.1B){F p=4H(2i,7);j=p[0];2B=p[1]}F k=L,2Q=$();
168(7.E.U.20<d){2Q=f.19(7.E.U.20,d);8(c.1V=='6X'){F l=7.E[7.d['P']];k=2Q;1Z=21;5z(k);7.E[7.d['P']]='1d'}}F m=L,3B=2R(f.19(0,d),7,'P'),2j=4I(4J(2i,7,J),7,!7.1R),3C=0,29={},4N={},2s={},2S={},2T={},2U=5B(c,7,d,3B);1F(c.1V){R'22':R'22-1w':3C=2R(f.19(0,7.E.U.20),7,'P');17}8(k){7.E[7.d['P']]=l}8(7.1B){8(7.1i[7.d[1]]<0){7.1i[7.d[1]]=0}}1Y(f,7,J);1Y(21,7,7.1i[7.d[1]]);8(7.1B){7.1i[7.d[1]]=2B;7.1i[7.d[3]]=j}2T[7.d['1m']]=(7.1R)?7.1i[7.d[3]]:0;F n=D(){},1O=D(){},1C=D(){},3D=D(){},1D=D(){},3E=D(){},1x=D(){},1y=D(){},1J=D(){};1F(c.1V){R'3j':R'1I':R'1I-1w':R'22':R'22-1w':m=y.4G(J).47($1n);m.13().19(7.E.U.20).2t();17}1F(c.1V){R'3j':R'1I':R'1I-1w':y.Z('3Z',1);m.Z('3Z',0);17}V=48(2U,c.2u,G);29[7.d['1m']]=-3B;4N[7.d['1m']]=-3C;8(j<0){29[7.d['1m']]+=j}8(7[7.d['P']]=='1d'||7[7.d['1e']]=='1d'){n=D(){$1n.Z(2j)};1O=D(){V.1a.1c([$1n,2j])}}8(7.1R){F o=2r.1q('2a');8(2B>=0){o+=7.1i[7.d[1]]}2r.Z(7.d['1S'],o);8(1Z.4M(21).S){2S[7.d['1S']]=21.1q('2a')}1C=D(){21.Z(2S)};3D=D(){V.1a.1c([21,2S])};F q=1Z.1q('2a');8(j>0){q+=7.1i[7.d[3]]}2s[7.d['1S']]=q;1D=D(){1Z.Z(2s)};3E=D(){V.1a.1c([1Z,2s])}}1J=D(){y.Z(2T)};F r=7.E.M+d-K.Q;1y=D(){8(r>0){y.13().19(K.Q).2t()}F a=y.13().19(0,d).47(y).2P();8(r>0){2i=3I(f,7)}5D(k);8(7.1R){8(K.Q<7.E.M+d){F b=y.13().1N(7.E.M-1);b.Z(7.d['1S'],b.1q('2a')+7.1i[7.d[1]])}a.Z(7.d['1S'],a.1q('2a'))}};F s=5E(3i,2Q,2i,d,'16',2U,2j);1x=D(){y.Z('3Z',y.1q('6K'));5F(y,m,c);A.26=L;2b.3h=4a($12,c,'3h',s,2b);2g=5G(y,2g,G);8(!A.27){y.T(I('1G',G))}};A.26=J;1u=3u(1u);2b.3G=4a($12,c,'3G',s,2b);1F(c.1V){R'42':y.Z(29);n();1C();1D();1J();1y();1x();17;R'1w':V.1a.1c([y,{'1E':0},D(){n();1C();1D();1J();1y();V=48(2U,c.2u,G);V.1a.1c([y,{'1E':1},1x]);3x(V,G)}]);17;R'3j':y.Z({'1E':0});V.1a.1c([m,{'1E':0}]);V.1a.1c([y,{'1E':1},1x]);1O();1C();1D();1J();1y();17;R'1I':y.Z(7.d['1m'],$1n[7.d['P']]());V.1a.1c([y,2T,1x]);1O();1C();1D();1y();17;R'1I-1w':y.Z(7.d['1m'],$1n[7.d['P']]());V.1a.1c([m,{'1E':0}]);V.1a.1c([y,2T,1x]);1O();1C();1D();1y();17;R'22':V.1a.1c([m,4N,1x]);1O();1C();1D();1J();1y();17;R'22-1w':y.Z({'1E':0});V.1a.1c([y,{'1E':1}]);V.1a.1c([m,4N,1x]);1O();1C();1D();1J();1y();17;2J:V.1a.1c([y,29,D(){1J();1y();1x()}]);1O();3D();3E();17}3x(V,G);5H(7.25,y,G);y.T(I('3H',G),[L,2j]);H J});y.11(I('3k',G),D(e,b,c,d,f,g,h){e.1g();F v=[b,c,d,f,g,h],t=['2M/28/2A','28','3d','2A','2M','D'],a=3e(v,t);f=a[3];g=a[4];h=a[5];b=3J(a[0],a[1],a[2],K,y);8(b==0){H L}8(!1T(f)){f=L}8(g!='14'&&g!='16'){8(7.1U){g=(b<=K.Q/2)?'16':'14'}O{g=(K.X==0||K.X>b)?'16':'14'}}8(g=='14'){b=K.Q-b}y.T(I(g,G),[f,b,h]);H J});y.11(I('85',G),D(e,a,b){e.1g();F c=y.1P(I('4b',G));H y.1P(I('5J',G),[c-1,a,'14',b])});y.11(I('86',G),D(e,a,b){e.1g();F c=y.1P(I('4b',G));H y.1P(I('5J',G),[c+1,a,'16',b])});y.11(I('5J',G),D(e,a,b,c,d){e.1g();8(!Y(a)){a=y.1P(I('4b',G))}F f=7.1b.E||7.E.M,1X=1H.2z(K.Q/f)-1;8(a<0){a=1X}8(a>1X){a=0}H y.1P(I('3k',G),[a*f,0,J,b,c,d])});y.11(I('73',G),D(e,s){e.1g();8(s){s=3J(s,0,J,K,y)}O{s=0}s+=K.X;8(s!=0){8(K.Q>0){2h(s>K.Q){s-=K.Q}}y.87(y.13().19(s,K.Q))}H J});y.11(I('2n',G),D(e,s){e.1g();8(s){s=5k(s)}O 8(7.2n){s=7.2n}O{H 18(G,'6j 88 46 2n.')}F n=y.1P(I('4p',G)),x=J;1j(F j=0,l=s.S;j<l;j++){8(!s[j][0].1P(I('3k',G),[n,s[j][3],J])){x=L}}H x});y.11(I('2O',G),D(e,a,b){e.1g();8(1o(a)){a.1h($12,2g)}O 8(2V(a)){2g=a}O 8(!1z(a)){2g.1c([a,b])}H 2g});y.11(I('89',G),D(e,b,c,d,f){e.1g();F v=[b,c,d,f],t=['2M/2A','2M/28/2A','3d','28'],a=3e(v,t);b=a[0];c=a[1];d=a[2];f=a[3];8(1T(b)&&!2v(b)){b=$(b)}O 8(1p(b)){b=$(b)}8(!2v(b)||b.S==0){H 18(G,'2p a 5K 2A.')}8(1z(c)){c='4c'}4x(b,7);41(b);F g=c,4d='4d';8(c=='4c'){8(d){8(K.X==0){c=K.Q-1;4d='74'}O{c=K.X;K.X+=b.S}8(c<0){c=0}}O{c=K.Q-1;4d='74'}}O{c=3J(c,f,d,K,y)}F h=y.13().1N(c);8(h.S){h[4d](b)}O{18(G,'8a 8b-3r 4M 6k! 8c 8d 46 75 4c.');y.76(b)}8(g!='4c'&&!d){8(c<K.X){K.X+=b.S}}K.Q=y.13().S;8(K.X>=K.Q){K.X-=K.Q}y.T(I('4O',G));y.T(I('5L',G));H J});y.11(I('77',G),D(e,c,d,f){e.1g();F v=[c,d,f],t=['2M/28/2A','3d','28'],a=3e(v,t);c=a[0];d=a[1];f=a[2];F g=L;8(c 2W $&&c.S>1){h=$();c.1W(D(i,a){F b=y.T(I('77',G),[$(1l),d,f]);8(b){h=h.8e(b)}});H h}8(1z(c)||c=='4c'){h=y.13().2P()}O{c=3J(c,f,d,K,y);F h=y.13().1N(c);8(h.S){8(c<K.X){K.X-=h.S}}}8(h&&h.S){h.8f();K.Q=y.13().S;y.T(I('4O',G))}H h});y.11(I('3G',G)+' '+I('3h',G),D(e,a){e.1g();F b=e.5v.19(G.3y.45.S);8(2V(a)){2b[b]=a}8(1o(a)){2b[b].1c(a)}H 2b[b]});y.11(I('4p',G),D(e,a){e.1g();8(K.X==0){F b=0}O{F b=K.Q-K.X}8(1o(a)){a.1h($12,b)}H b});y.11(I('4b',G),D(e,a){e.1g();F b=7.1b.E||7.E.M,1X=1H.2z(K.Q/b-1),2k;8(K.X==0){2k=0}O 8(K.X<K.Q%b){2k=0}O 8(K.X==b&&!7.1U){2k=1X}O{2k=1H.78((K.Q-K.X)/b)}8(2k<0){2k=0}8(2k>1X){2k=1X}8(1o(a)){a.1h($12,2k)}H 2k});y.11(I('8g',G),D(e,a){e.1g();F b=3I(y.13(),7);8(1o(a)){a.1h($12,b)}H b});y.11(I('19',G),D(e,f,l,b){e.1g();8(K.Q==0){H L}F v=[f,l,b],t=['28','28','D'],a=3e(v,t);f=(Y(a[0]))?a[0]:0;l=(Y(a[1]))?a[1]:K.Q;b=a[2];f+=K.X;l+=K.X;
168(E.Q>0){2h(f>K.Q){f-=K.Q}2h(l>K.Q){l-=K.Q}2h(f<0){f+=K.Q}2h(l<0){l+=K.Q}}F c=y.13(),$i;8(l>f){$i=c.19(f,l)}O{$i=$(c.19(f,K.Q).3F().6Y(c.19(0,l).3F()))}8(1o(b)){b.1h($12,$i)}H $i});y.11(I('27',G)+' '+I('2d',G)+' '+I('26',G),D(e,a){e.1g();F b=e.5v.19(G.3y.45.S),5M=A[b];8(1o(a)){a.1h($12,5M)}H 5M});y.11(I('6S',G),D(e,a,b,c){e.1g();F d=L;8(1o(a)){a.1h($12,7)}O 8(1T(a)){31=$.1L(J,{},31,a);8(b!==L)d=J;O 7=$.1L(J,{},7,a)}O 8(!1z(a)){8(1o(b)){F f=4P('7.'+a);8(1z(f)){f=''}b.1h($12,f)}O 8(!1z(b)){8(2X c!=='3d')c=J;4P('31.'+a+' = b');8(c!==L)d=J;O 4P('7.'+a+' = b')}O{H 4P('7.'+a)}}8(d){1Y(y.13(),7);z.59(31);z.5N();F g=4Q(y,7);y.T(I('3H',G),[J,g])}H 7});y.11(I('5L',G),D(e,a,b){e.1g();8(1z(a)){a=$('8h')}O 8(1p(a)){a=$(a)}8(!2v(a)||a.S==0){H 18(G,'2p a 5K 2A.')}8(!1p(b)){b='a.6i'}a.8i(b).1W(D(){F h=1l.79||'';8(h.S>0&&y.13().7a($(h))!=-1){$(1l).23('5O').5O(D(e){e.2D();y.T(I('3k',G),h)})}});H J});y.11(I('3H',G),D(e,b,c){e.1g();8(!7.1b.1A){H}F d=7.1b.E||7.E.M,4R=1H.2z(K.Q/d);8(b){8(7.1b.3K){7.1b.1A.13().2t();7.1b.1A.1W(D(){1j(F a=0;a<4R;a++){F i=y.13().1N(3J(a*d,0,J,K,y));$(1l).76(7.1b.3K.1h(i[0],a+1))}})}7.1b.1A.1W(D(){$(1l).13().23(7.1b.3L).1W(D(a){$(1l).11(7.1b.3L,D(e){e.2D();y.T(I('3k',G),[a*d,-7.1b.4S,J,7.1b])})})})}F f=y.1P(I('4b',G))+7.1b.4S;8(f>=4R){f=0}8(f<0){f=4R-1}7.1b.1A.1W(D(){$(1l).13().2N(2y('7b',G)).1N(f).3a(2y('7b',G))});H J});y.11(I('4O',G),D(e){F a=7.E.M,2E=y.13(),2m=5d($1n,7,'P');K.Q=2E.S;8(A.4r){7.3U=2m;7[7.d['P']]=4s(2m,A.4r)}O{7.3U=5e(7,2m)}8(7.2H){7.E.P=7.E.3M.P;7.E.1e=7.E.3M.1e;7=5g(7,2E,2m);a=7.E.M;5r(7,2E)}O 8(7.E.U.1d){a=32(2E,7,0)}O 8(7.E.1t!='*'){a=3W(2E,7,0)}8(!7.1U&&K.X!=0&&a>K.X){8(7.E.U.1d){F b=4D(2E,7,K.X)-K.X}O 8(7.E.1t!='*'){F b=7c(2E,7,K.X)-K.X}O{F b=7.E.M-K.X}18(G,'8j 8k-1U: 8l '+b+' E 5y.');y.T(I('14',G),b)}7.E.M=2x(a,7,7.E.U.2c,$12);7.E.U.20=7.E.M;7=5i(7,2E);F c=4Q(y,7);y.T(I('3H',G),[J,c]);4T(7,K.Q,G);3A(7,K.X,G);H c});y.11(I('4q',G),D(e,a){e.1g();1u=3u(1u);y.1q('57',L);y.T(I('5t',G));8(a){y.T(I('73',G))}4U(y.13());4U(y);z.5s();z.5P();8(G.3s=='36'){4U($1n)}O{$1n.8m(y)}H J});y.11(I('18',G),D(e){18(G,'3w P: '+7.P);18(G,'3w 1e: '+7.1e);18(G,'7d 8n: '+7.E.P);18(G,'7d 8o: '+7.E.1e);18(G,'4e 4f E M: '+7.E.M);8(7.N.1G){18(G,'4e 4f E 5Q 8p: '+7.N.E)}8(7.14.W){18(G,'4e 4f E 5Q 5y: '+7.14.E)}8(7.16.W){18(G,'4e 4f E 5Q 70: '+7.16.E)}H G.18});y.11('3o',D(e,n,o){e.1g();H y.1P(I(n,G),o)})};z.5s=D(){y.23(I('',G));y.23(I('',G,L));y.23('3o')};z.5N=D(){z.5P();4T(7,K.Q,G);3A(7,K.X,G);8(7.N.2F){F b=3N(7.N.2F);$1n.11(I('4V',G,L),D(){y.T(I('3b',G),b)}).11(I('4W',G,L),D(){y.T(I('3g',G))})}8(7.N.W){7.N.W.11(I(7.N.3L,G,L),D(e){e.2D();F a=L,b=3O;8(A.27){a='1G'}O 8(7.N.4X){a='3b';b=3N(7.N.4X)}8(a){y.T(I(a,G),b)}})}8(7.14.W){7.14.W.11(I(7.14.3L,G,L),D(e){e.2D();y.T(I('14',G))});8(7.14.2F){F b=3N(7.14.2F);7.14.W.11(I('4V',G,L),D(){y.T(I('3b',G),b)}).11(I('4W',G,L),D(){y.T(I('3g',G))})}}8(7.16.W){7.16.W.11(I(7.16.3L,G,L),D(e){e.2D();y.T(I('16',G))});8(7.16.2F){F b=3N(7.16.2F);7.16.W.11(I('4V',G,L),D(){y.T(I('3b',G),b)}).11(I('4W',G,L),D(){y.T(I('3g',G))})}}8(7.1b.1A){8(7.1b.2F){F b=3N(7.1b.2F);7.1b.1A.11(I('4V',G,L),D(){y.T(I('3b',G),b)}).11(I('4W',G,L),D(){y.T(I('3g',G))})}}8(7.14.2Y||7.16.2Y){$(4g).11(I('7e',G,L,J,J),D(e){F k=e.7f;8(k==7.16.2Y){e.2D();y.T(I('16',G))}8(k==7.14.2Y){e.2D();y.T(I('14',G))}})}8(7.1b.4Y){$(4g).11(I('7e',G,L,J,J),D(e){F k=e.7f;8(k>=49&&k<58){k=(k-49)*7.E.M;8(k<=K.Q){e.2D();y.T(I('3k',G),[k,0,J,7.1b])}}})}8($.1s.1r){F c='8q'8r 3l;8((c&&7.1r.4h)||(!c&&7.1r.5R)){F d=$.1L(J,{},7.14,7.1r),7g=$.1L(J,{},7.16,7.1r),5S=D(){y.T(I('14',G),[d])},5T=D(){y.T(I('16',G),[7g])};1F(7.2l){R'5c':R'7h':7.1r.2G.8s=5T;7.1r.2G.8t=5S;17;2J:7.1r.2G.8u=5T;7.1r.2G.8v=5S}8(A.1r){y.1r('4q')}$1n.1r(7.1r.2G);$1n.Z('7i','8w');A.1r=J}}8($.1s.1Q){8(7.1Q){F f=$.1L(J,{},7.14,7.1Q),7j=$.1L(J,{},7.16,7.1Q);8(A.1Q){$1n.23(I('1Q',G,L))}$1n.11(I('1Q',G,L),D(e,a){e.2D();8(a>0){y.T(I('14',G),[f])}O{y.T(I('16',G),[7j])}});A.1Q=J}}8(7.N.1G){y.T(I('1G',G),7.N.5U)}8(A.6v){F g=D(e){y.T(I('5t',G));8(7.N.5V&&!A.27){y.T(I('1G',G))}1Y(y.13(),7);y.T(I('4O',G))};F h=$(3l),4i=3O;8($.5W&&G.5X=='5W'){4i=$.5W(8x,g)}O 8($.4Z&&G.5X=='4Z'){4i=$.4Z(8y,g)}O{F i=0,5Y=0;4i=D(){F a=h.P(),5Z=h.1e();8(a!=i||5Z!=5Y){g();i=a;5Y=5Z}}}h.11(I('8z',G,L,J,J),4i)}};
16z.5P=D(){F a=I('',G),3P=I('',G,L);61=I('',G,L,J,J);$(4g).23(61);$(3l).23(61);$1n.23(3P);8(7.N.W){7.N.W.23(3P)}8(7.14.W){7.14.W.23(3P)}8(7.16.W){7.16.W.23(3P)}8(7.1b.1A){7.1b.1A.23(3P);8(7.1b.3K){7.1b.1A.13().2t()}}8(A.1r){y.1r('4q');$1n.Z('7i','2J');A.1r=L}8(A.1Q){A.1Q=L}4T(7,'4j',G);3A(7,'2N',G)};8(1k(w)){w={'18':w}}F A={'2l':'16','27':J,'26':L,'2d':L,'1Q':L,'1r':L},K={'Q':y.13().S,'X':0},1u={'N':3O,'1f':3O,'2L':2o(),'3v':0},V={'2d':L,'1M':0,'2L':0,'2u':'','1a':[]},2b={'3G':[],'3h':[]},2g=[],G=$.1L(J,{},$.1s.1v.7k,w),7={},31=$.1L(J,{},u),$1n=(G.3s=='36')?y.36():y.8A('<'+G.3s.55+' 8B=\"'+G.3s.7l+'\" />').36();G.4o=y.4o;G.3T=$.1s.1v.3T++;G.2Z=(G.2Z&&$.1s.2Z)?'2Z':'8C';z.59(31,J,56);z.6D();z.6L();z.5N();8(2V(7.E.3m)){F B=7.E.3m}O{F B=[];8(7.E.3m!=0){B.1c(7.E.3m)}}8(7.25){B.8D(4k(7m(7.25),10))}8(B.S>0){1j(F a=0,l=B.S;a<l;a++){F s=B[a];8(s==0){62}8(s===J){s=3l.8E.79;8(s.S<1){62}}O 8(s==='7n'){s=1H.4l(1H.7n()*K.Q)}8(y.1P(I('3k',G),[s,0,J,{1V:'42'}])){17}}}F C=4Q(y,7),7o=3I(y.13(),7);8(7.7p){7.7p.1h($12,{'P':C.P,'1e':C.1e,'E':7o})}y.T(I('3H',G),[J,C]);y.T(I('5L',G));8(G.18){y.T(I('18',G))}H y};$.1s.1v.3T=1;$.1s.1v.5b={'2n':L,'3z':J,'1U':J,'2H':L,'2l':'1m','E':{'3m':0},'1K':{'2u':'7q','1M':6y,'2F':L,'3L':'5O','2O':L}};$.1s.1v.7k={'18':L,'2Z':L,'5X':'4Z','3y':{'45':'','7r':'8F'},'3s':{'55':'8G','7l':'8H'},'63':{}};$.1s.1v.7s=D(a){H'<a 8I=\"#\"><7t>'+a+'</7t></a>'};$.1s.1v.7u=D(a){$(1l).Z('P',a+'%')};$.1s.1v.25={3F:D(n){n+='=';F b=4g.25.3Q(';');1j(F a=0,l=b.S;a<l;a++){F c=b[a];2h(c.8J(0)==' '){c=c.19(1)}8(c.3R(n)==0){H c.19(n.S)}}H 0},64:D(n,v,d){F e=\"\";8(d){F a=7v 7w();a.8K(a.2o()+(d*24*60*60*8L));e=\"; 8M=\"+a.8N()}4g.25=n+'='+v+e+'; 8O=/'},2t:D(n){$.1s.1v.25.64(n,\"\",-1)}};D 48(d,e,c){8(c.2Z=='2Z'){8(e=='7q'){e='8P'}}H{1a:[],1M:d,8Q:d,2u:e,2L:2o()}}D 3x(s,c){1j(F a=0,l=s.1a.S;a<l;a++){F b=s.1a[a];8(!b){62}b[0][c.2Z](b[1],s.1M,s.2u,b[2])}}D 43(s,c){8(!1k(c)){c=J}8(1T(s.4z)){43(s.4z,c)}1j(F a=0,l=s.1a.S;a<l;a++){F b=s.1a[a];b[0].6M(J);8(c){b[0].Z(b[1]);8(1o(b[2])){b[2]()}}}8(1T(s.4A)){43(s.4A,c)}}D 5F(a,b,o){8(b){b.2t()}1F(o.1V){R'1w':R'3j':R'1I-1w':R'22-1w':a.Z('1t','');a.Z('1E',1);17}}D 4a(d,o,b,a,c){8(o[b]){o[b].1h(d,a)}8(c[b].S){1j(F i=0,l=c[b].S;i<l;i++){c[b][i].1h(d,a)}}H[]}D 5G(a,q,c){8(q.S){a.T(I(q[0][0],c),q[0][1]);q.8R()}H q}D 5z(b){b.1W(D(){F a=$(1l);a.1q('7x',a.2f(':3t')).4j()})}D 5D(b){8(b){b.1W(D(){F a=$(1l);8(!a.1q('7x')){a.4m()}})}}D 3u(t){8(t.N){8S(t.N)}8(t.1f){8T(t.1f)}H t}D 5E(a,b,c,d,e,f,g){H{'P':g.P,'1e':g.1e,'E':{'20':a,'8U':b,'M':c},'1K':{'E':d,'2l':e,'1M':f}}}D 5B(a,o,b,c){F d=a.1M;8(a.1V=='42'){H 0}8(d=='N'){d=o.1K.1M/o.1K.E*b}O 8(d<10){d=c/d}8(d<1){H 0}8(a.1V=='1w'){d=d/2}H 1H.78(d)}D 4T(o,t,c){F a=(Y(o.E.4C))?o.E.4C:o.E.M+1;8(t=='4m'||t=='4j'){F f=t}O 8(a>t){18(c,'2p 6O E ('+t+' Q, '+a+' 6P): 8V 8W.');F f='4j'}O{F f='4m'}F s=(f=='4m')?'2N':'3a',h=2y('3t',c);8(o.N.W){o.N.W[f]()[s](h)}8(o.14.W){o.14.W[f]()[s](h)}8(o.16.W){o.16.W[f]()[s](h)}8(o.1b.1A){o.1b.1A[f]()[s](h)}}D 3A(o,f,c){8(o.1U||o.3z)H;F a=(f=='2N'||f=='3a')?f:L,51=2y('8X',c);8(o.N.W&&a){o.N.W[a](51)}8(o.14.W){F b=a||(f==0)?'3a':'2N';o.14.W[b](51)}8(o.16.W){F b=a||(f==o.E.M)?'3a':'2N';o.16.W[b](51)}}D 3S(a,b){8(1o(b)){b=b.1h(a)}O 8(1z(b)){b={}}H b}D 6l(a,b){b=3S(a,b);8(Y(b)){b={'M':b}}O 8(b=='1d'){b={'M':b,'P':b,'1e':b}}O 8(!1T(b)){b={}}H b}D 6m(a,b){b=3S(a,b);8(Y(b)){8(b<=50){b={'E':b}}O{b={'1M':b}}}O 8(1p(b)){b={'2u':b}}O 8(!1T(b)){b={}}H b}D 52(a,b){b=3S(a,b);8(1p(b)){F c=65(b);8(c==-1){b=$(b)}O{b=c}}H b}D 6n(a,b){b=52(a,b);8(2v(b)){b={'W':b}}O 8(1k(b)){b={'1G':b}}O 8(Y(b)){b={'2K':b}}8(b.1f){8(1p(b.1f)||2v(b.1f)){b.1f={'2q':b.1f}}}H b}D 6z(a,b){8(1o(b.W)){b.W=b.W.1h(a)}8(1p(b.W)){b.W=$(b.W)}8(!1k(b.1G)){b.1G=J}8(!Y(b.5U)){b.5U=0}8(1z(b.4X)){b.4X=J}8(!1k(b.5V)){b.5V=J}8(!Y(b.2K)){b.2K=(b.1M<10)?8Y:b.1M*5}8(b.1f){8(1o(b.1f.2q)){b.1f.2q=b.1f.2q.1h(a)}8(1p(b.1f.2q)){b.1f.2q=$(b.1f.2q)}8(b.1f.2q){8(!1o(b.1f.4B)){b.1f.4B=$.1s.1v.7u}8(!Y(b.1f.5u)){b.1f.5u=50}}O{b.1f=L}}H b}D 5a(a,b){b=52(a,b);8(2v(b)){b={'W':b}}O 8(Y(b)){b={'2Y':b}}H b}D 5j(a,b){8(1o(b.W)){b.W=b.W.1h(a)}8(1p(b.W)){b.W=$(b.W)}8(1p(b.2Y)){b.2Y=65(b.2Y)}H b}D 6o(a,b){b=52(a,b);8(2v(b)){b={'1A':b}}O 8(1k(b)){b={'4Y':b}}H b}D 6A(a,b){8(1o(b.1A)){b.1A=b.1A.1h(a)}8(1p(b.1A)){b.1A=$(b.1A)}8(!Y(b.E)){b.E=L}8(!1k(b.4Y)){b.4Y=L}
168(!1o(b.3K)&&!53(b.3K)){b.3K=$.1s.1v.7s}8(!Y(b.4S)){b.4S=0}H b}D 6p(a,b){8(1o(b)){b=b.1h(a)}8(1z(b)){b={'4h':L}}8(3p(b)){b={'4h':b}}O 8(Y(b)){b={'E':b}}H b}D 6B(a,b){8(!1k(b.4h)){b.4h=J}8(!1k(b.5R)){b.5R=L}8(!1T(b.2G)){b.2G={}}8(!1k(b.2G.7y)){b.2G.7y=L}H b}D 6q(a,b){8(1o(b)){b=b.1h(a)}8(3p(b)){b={}}O 8(Y(b)){b={'E':b}}O 8(1z(b)){b=L}H b}D 6C(a,b){H b}D 3J(a,b,c,d,e){8(1p(a)){a=$(a,e)}8(1T(a)){a=$(a,e)}8(2v(a)){a=e.13().7a(a);8(!1k(c)){c=L}}O{8(!1k(c)){c=J}}8(!Y(a)){a=0}8(!Y(b)){b=0}8(c){a+=d.X}a+=b;8(d.Q>0){2h(a>=d.Q){a-=d.Q}2h(a<0){a+=d.Q}}H a}D 4D(i,o,s){F t=0,x=0;1j(F a=s;a>=0;a--){F j=i.1N(a);t+=(j.2f(':M'))?j[o.d['2w']](J):0;8(t>o.3U){H x}8(a==0){a=i.S}x++}}D 7c(i,o,s){H 66(i,o.E.1t,o.E.U.4t,s)}D 6T(i,o,s,m){H 66(i,o.E.1t,m,s)}D 66(i,f,m,s){F t=0,x=0;1j(F a=s,l=i.S;a>=0;a--){x++;8(x==l){H x}F j=i.1N(a);8(j.2f(f)){t++;8(t==m){H x}}8(a==0){a=l}}}D 5x(a,o){H o.E.U.4t||a.13().19(0,o.E.M).1t(o.E.1t).S}D 32(i,o,s){F t=0,x=0;1j(F a=s,l=i.S-1;a<=l;a++){F j=i.1N(a);t+=(j.2f(':M'))?j[o.d['2w']](J):0;8(t>o.3U){H x}x++;8(x==l+1){H x}8(a==l){a=-1}}}D 5I(i,o,s,l){F v=32(i,o,s);8(!o.1U){8(s+v>l){v=l-s}}H v}D 3W(i,o,s){H 68(i,o.E.1t,o.E.U.4t,s,o.1U)}D 6Z(i,o,s,m){H 68(i,o.E.1t,m+1,s,o.1U)-1}D 68(i,f,m,s,c){F t=0,x=0;1j(F a=s,l=i.S-1;a<=l;a++){x++;8(x>=l){H x}F j=i.1N(a);8(j.2f(f)){t++;8(t==m){H x}}8(a==l){a=-1}}}D 3I(i,o){H i.19(0,o.E.M)}D 6V(i,o,n){H i.19(n,o.E.U.20+n)}D 6W(i,o){H i.19(0,o.E.M)}D 71(i,o){H i.19(0,o.E.U.20)}D 72(i,o,n){H i.19(n,o.E.M+n)}D 4x(i,o,d){8(o.1R){8(!1p(d)){d='2a'}i.1W(D(){F j=$(1l),m=4k(j.Z(o.d['1S']),10);8(!Y(m)){m=0}j.1q(d,m)})}}D 1Y(i,o,m){8(o.1R){F x=(1k(m))?m:L;8(!Y(m)){m=0}4x(i,o,'7z');i.1W(D(){F j=$(1l);j.Z(o.d['1S'],((x)?j.1q('7z'):m+j.1q('2a')))})}}D 41(i){i.1W(D(){F j=$(1l);j.1q('7A',j.7B('7C')||'')})}D 4U(i){i.1W(D(){F j=$(1l);j.7B('7C',j.1q('7A')||'')})}D 5r(o,b){F c=o.E.M,7D=o.E[o.d['P']],69=o[o.d['1e']],7E=3V(69);b.1W(D(){F a=$(1l),6a=7D-7F(a,o,'8Z');a[o.d['P']](6a);8(7E){a[o.d['1e']](4s(6a,69))}})}D 4Q(a,o){F b=a.36(),$i=a.13(),$v=3I($i,o),54=4I(4J($v,o,J),o,L);b.Z(54);8(o.1R){F p=o.1i,r=p[o.d[1]];8(o.1B&&r<0){r=0}F c=$v.2P();c.Z(o.d['1S'],c.1q('2a')+r);a.Z(o.d['3q'],p[o.d[0]]);a.Z(o.d['1m'],p[o.d[3]])}a.Z(o.d['P'],54[o.d['P']]+(2R($i,o,'P')*2));a.Z(o.d['1e'],6b($i,o,'1e'));H 54}D 4J(i,o,a){H[2R(i,o,'P',a),6b(i,o,'1e',a)]}D 6b(i,o,a,b){8(!1k(b)){b=L}8(Y(o[o.d[a]])&&b){H o[o.d[a]]}8(Y(o.E[o.d[a]])){H o.E[o.d[a]]}a=(a.6c().3R('P')>-1)?'2w':'3n';H 4n(i,o,a)}D 4n(i,o,b){F s=0;1j(F a=0,l=i.S;a<l;a++){F j=i.1N(a);F m=(j.2f(':M'))?j[o.d[b]](J):0;8(s<m){s=m}}H s}D 2R(i,o,b,c){8(!1k(c)){c=L}8(Y(o[o.d[b]])&&c){H o[o.d[b]]}8(Y(o.E[o.d[b]])){H o.E[o.d[b]]*i.S}F d=(b.6c().3R('P')>-1)?'2w':'3n',s=0;1j(F a=0,l=i.S;a<l;a++){F j=i.1N(a);s+=(j.2f(':M'))?j[o.d[d]](J):0}H s}D 5d(a,o,d){F b=a.2f(':M');8(b){a.4j()}F s=a.36()[o.d[d]]();8(b){a.4m()}H s}D 5e(o,a){H(Y(o[o.d['P']]))?o[o.d['P']]:a}D 6d(i,o,b){F s=L,v=L;1j(F a=0,l=i.S;a<l;a++){F j=i.1N(a);F c=(j.2f(':M'))?j[o.d[b]](J):0;8(s===L){s=c}O 8(s!=c){v=J}8(s==0){v=J}}H v}D 7F(i,o,d){H i[o.d['90'+d]](J)-i[o.d[d.6c()]]()}D 4s(s,o){8(3V(o)){o=4k(o.19(0,-1),10);8(!Y(o)){H s}s*=o/2I}H s}D I(n,c,a,b,d){8(!1k(a)){a=J}8(!1k(b)){b=J}8(!1k(d)){d=L}8(a){n=c.3y.45+n}8(b){n=n+'.'+c.3y.7r}8(b&&d){n+=c.3T}H n}D 2y(n,c){H(1p(c.63[n]))?c.63[n]:n}D 4I(a,o,p){8(!1k(p)){p=J}F b=(o.1R&&p)?o.1i:[0,0,0,0];F c={};c[o.d['P']]=a[0]+b[1]+b[3];c[o.d['1e']]=a[1]+b[0]+b[2];H c}D 3e(c,d){F e=[];1j(F a=0,7G=c.S;a<7G;a++){1j(F b=0,7H=d.S;b<7H;b++){8(d[b].3R(2X c[a])>-1&&1z(e[b])){e[b]=c[a];17}}}H e}D 6x(p){8(1z(p)){H[0,0,0,0]}8(Y(p)){H[p,p,p,p]}8(1p(p)){p=p.3Q('91').7I('').3Q('92').7I('').3Q(' ')}8(!2V(p)){H[0,0,0,0]}1j(F i=0;i<4;i++){p[i]=4k(p[i],10)}1F(p.S){R 0:H[0,0,0,0];R 1:H[p[0],p[0],p[0],p[0]];R 2:H[p[0],p[1],p[0],p[1]];R 3:H[p[0],p[1],p[2],p[1]];2J:H[p[0],p[1],p[2],p[3]]}}D 4H(a,o){F x=(Y(o[o.d['P']]))?1H.2z(o[o.d['P']]-2R(a,o,'P')):0;1F(o.1B){R'1m':H[0,x];R'35':H[x,0];R'5f':2J:H[1H.2z(x/2),1H.4l(x/2)]}}D 6r(o){F a=[['P','7J','2w','1e','7K','3n','1m','3q','1S',0,1,2,3],['1e','7K','3n','P','7J','2w','3q','1m','5p',3,2,1,0]];F b=a[0].S,7L=(o.2l=='35'||o.2l=='1m')?0:1;F c={};1j(F d=0;d<b;d++){c[a[0][d]]=a[7L][d]}H c}D 4E(x,o,a,b){F v=x;8(1o(a)){v=a.1h(b,v)}O 8(1p(a)){F p=a.3Q('+'),m=a.3Q('-');8(m.S>p.S){F c=J,6e=m[0],30=m[1]}O{F c=L,6e=p[0],30=p[1]}1F(6e){R'93':v=(x%2==1)?x-1:x;17;R'94':v=(x%2==0)?x-1:x;17;2J:v=x;17}30=4k(30,10);8(Y(30)){8(c){30=-30}v+=30}}8(!Y(v)||v<1){v=1}H v}D 2x(x,o,a,b){H 6f(4E(x,o,a,b),o.E.U)}D 6f(v,i){8(Y(i.34)&&v<i.34){v=i.34}8(Y(i.1X)&&v>i.1X){v=i.1X}8(v<1){v=1}H v}D 5k(s){8(!2V(s)){s=[[s]]}8(!2V(s[0])){s=[s]}1j(F j=0,l=s.S;j<l;j++){8(1p(s[j][0])){s[j][0]=$(s[j][0])}8(!1k(s[j][1])){s[j][1]=J}8(!1k(s[j][2])){s[j][2]=J}8(!Y(s[j][3])){s[j][3]=0}}H s}D 65(k){8(k=='35'){H 39}8(k=='1m'){H 37}8(k=='5c'){H 38}8(k=='7h'){H 40}H-1}D 5H(n,a,c){8(n){F v=a.1P(I('4p',c));$.1s.1v.25.64(n,v)}}D 7m(n){F c=$.1s.1v.25.3F(n);H(c=='')?0:c}D 6E(a,b){F c={};1j(F p=0,l=b.S;p<l;p++){c[b[p]]=a.Z(b[p])}H c}D 6s(a,b,c,d){8(!1T(a.U)){a.U={}}8(!1T(a.3M)){a.3M={}}8(a.3m==0&&Y(d)){a.3m=d}8(1T(a.M)){a.U.34=a.M.34;a.U.1X=a.M.1X;a.M=L}O 8(1p(a.M)){8(a.M=='1d'){a.U.1d=J}O{a.U.2c=a.M}a.M=L}O 8(1o(a.M)){a.U.2c=a.M;a.M=L}8(!1p(a.1t)){a.1t=(c.1t(':3t').S>0)?':M':'*'}8(!a[b.d['P']]){8(b.2H){18(J,'7M a '+b.d['P']+' 1j 75 E!');a[b.d['P']]=4n(c,b,'2w')}O{a[b.d['P']]=(6d(c,b,'2w'))?'1d':c[b.d['2w']](J)}}8(!a[b.d['1e']]){a[b.d['1e']]=(6d(c,b,'3n'))?'1d':c[b.d['3n']](J)}a.3M.P=a.P;a.3M.1e=a.1e;H a}D 6w(a,b){8(a.E[a.d['P']]=='1d'){a.E.U.1d=J}8(!a.E.U.1d){8(Y(a[a.d['P']])){a.E.M=1H.4l(a[a.d['P']]/a.E[a.d['P']])}O{a.E.M=1H.4l(b/a.E[a.d['P']]);a[a.d['P']]=a.E.M*a.E[a.d['P']];8(!a.E.U.2c){a.1B=L}}8(a.E.M=='95'||a.E.M<1){18(J,'2p a 5K 28 4f M E: 7M 46 \"1d\".');a.E.U.1d=J}}H a}D 6t(a,b,c){8(a=='N'){a=4n(c,b,'2w')}H a}D 6u(a,b,c){8(a=='N'){a=4n(c,b,'3n')}8(!a){a=b.E[b.d['1e']]}H a}D 5i(o,a){F p=4H(3I(a,o),o);o.1i[o.d[1]]=p[1];o.1i[o.d[3]]=p[0];H o}D 5g(o,a,b){F c=6f(1H.2z(o[o.d['P']]/o.E[o.d['P']]),o.E.U);8(c>a.S){c=a.S}F d=1H.4l(o[o.d['P']]/c);o.E.M=c;o.E[o.d['P']]=d;o[o.d['P']]=c*d;H o}D 3N(p){8(1p(p)){F i=(p.3R('96')>-1)?J:L,r=(p.3R('3g')>-1)?J:L}O{F i=r=L}H[i,r]}D 97(a){H(Y(a))?a:3O}D 6g(a){H(a===3O)}D 1z(a){H(6g(a)||2X a=='7N'||a===''||a==='7N')}D 2V(a){H(a 2W 98)}D 2v(a){H(a 2W 7O)}D 1T(a){H((a 2W 99||2X a=='2A')&&!6g(a)&&!2v(a)&&!2V(a))}D Y(a){H((a 2W 4e||2X a=='28')&&!9a(a))}D 1p(a){H((a 2W 9b||2X a=='2M')&&!1z(a)&&!3p(a)&&!53(a))}D 1o(a){H(a 2W 9c||2X a=='D')}D 1k(a){H(a 2W 9d||2X a=='3d'||3p(a)||53(a))}D 3p(a){H(a===J||a==='J')}D 53(a){H(a===L||a==='L')}D 3V(x){H(1p(x)&&x.19(-1)=='%')}D 2o(){H 7v 7w().2o()}D 3X(o,n){18(J,o+' 2f 9e, 9f 1j 9g 9h 9i 9j. 9k '+n+' 9l.')}D 18(d,m){8(!1z(3l.6h)&&!1z(3l.6h.7P)){8(1T(d)){F s=' ('+d.4o+')';d=d.18}O{F s=''}8(!d){H L}8(1p(m)){m='1v'+s+': '+m}O{m=['1v'+s+':',m]}3l.6h.7P(m)}H L}$.1L($.2u,{'9m':D(t){F a=t*t;H t*(-a*t+4*a-6*t+4)},'9n':D(t){H t*(4*t*t-9*t+6)},'9o':D(t){F a=t*t;H t*(33*a*a-9p*a*t+9q*a-67*t+15)}})})(7O);",62,585,"|||||||opts|if|||||||||||||||||||||||||||||||function|items|var|conf|return|cf_e|true|itms|false|visible|auto|else|width|total|case|length|trigger|visibleConf|scrl|button|first|is_number|css||bind|tt0|children|prev||next|break|debug|slice|anims|pagination|push|variable|height|progress|stopPropagation|call|padding|for|is_boolean|this|left|wrp|is_function|is_string|data|swipe|fn|filter|tmrs|carouFredSel|fade|_onafter|_moveitems|is_undefined|container|align|_s_paddingold|_s_paddingcur|op
16acity|switch|play|Math|cover|_position|scroll|extend|duration|eq|_a_wrapper|triggerHandler|mousewheel|usePadding|marginRight|is_object|circular|fx|each|max|sz_resetMargin|i_cur_l|old|i_old_l|uncover|unbind||cookie|isScrolling|isPaused|number|a_cfs|_cfs_origCssMargin|clbk|adjust|isStopped|stopImmediatePropagation|is|queu|while|i_new|w_siz|nr|direction|avail_primary|synchronise|getTime|Not|bar|i_new_l|a_cur|remove|easing|is_jquery|outerWidth|cf_getItemsAdjust|cf_c|ceil|object|pR|_s_paddingnew|preventDefault|a_itm|pauseOnHover|options|responsive|100|default|timeoutDuration|startTime|string|removeClass|queue|last|i_skp|ms_getTotalSize|a_old|a_lef|a_dur|is_array|instanceof|typeof|key|transition|adj|opts_orig|gn_getVisibleItemsNext||min|right|parent||||addClass|pause|perc|boolean|cf_sortParams|scrolling|resume|onAfter|i_old|crossfade|slideTo|window|start|outerHeight|_cfs_triggerEvent|is_true|top|position|wrapper|hidden|sc_clearTimers|timePassed|Carousel|sc_startScroll|events|infinite|nv_enableNavi|i_siz|i_siz_vis|_a_paddingold|_a_paddingcur|get|onBefore|updatePageStatus|gi_getCurrentItems|gn_getItemIndex|anchorBuilder|event|sizesConf|bt_pauseOnHoverConfig|null|ns2|split|indexOf|go_getObject|serialNumber|maxDimension|is_percentage|gn_getVisibleItemsNextFilter|deprecated|orgCSS|zIndex||sz_storeOrigCss|none|sc_stopScroll|dur2|prefix|to|appendTo|sc_setScroll||sc_fireCallbacks|currentPage|end|before|Number|of|document|onTouch|onResize|hide|parseInt|floor|show|ms_getTrueLargestSize|selector|currentPosition|destroy|primarySizePercentage|ms_getPercentage|org|onTimeoutStart|onTimeoutPause|onTimeoutEnd|sz_storeMargin|stopped|pre|post|updater|minimum|gn_getVisibleItemsPrev|cf_getAdjust|onEnd|clone|cf_getAlignPadding|cf_mapWrapperSizes|ms_getSizes|a_wsz|a_new|not|a_cfs_vis|updateSizes|eval|sz_setSizes|pgs|deviation|nv_showNavi|sz_restoreOrigCss|mouseenter|mouseleave|pauseOnEvent|keys|throttle||di|go_getNaviObject|is_false|sz|element|starting_position|_cfs_isCarousel||_cfs_init|go_getPrevNextObject|defaults|up|ms_getParentSize|ms_getMaxDimension|center|in_getResponsiveValues|bottom|in_getAlignPadding|go_complementPrevNextObject|cf_getSynchArr|onPauseStart|onPausePause|onPauseEnd|pauseDuration|marginBottom|newPosition|sz_setResponsiveSizes|_cfs_unbind_events|finish|interval|type|conditions|gn_getVisibleOrg|backward|sc_hideHiddenItems|a_lef_vis|sc_getDuration|_a_paddingnew|sc_showHiddenItems|sc_mapCallbackArguments|sc_afterScroll|sc_fireQueue|cf_setCookie|gn_getVisibleItemsNextTestCircular|slideToPage|valid|linkAnchors|value|_cfs_bind_buttons|click|_cfs_unbind_buttons|scrolled|onMouse|swP|swN|delay|pauseOnResize|debounce|onWindowResize|_windowHeight|nh||ns3|continue|classnames|set|cf_getKeyCode|gn_getItemsPrevFilter||gn_getItemsNextFilter|seco|nw|ms_getLargestSize|toLowerCase|ms_hasVariableSizes|sta|cf_getItemAdjustMinMax|is_null|console|caroufredsel|No|found|go_getItemsObject|go_getScrollObject|go_getAutoObject|go_getPaginationObject|go_getSwipeObject|go_getMousewheelObject|cf_getDimensions|in_complementItems|in_complementPrimarySize|in_complementSecondarySize|upDateOnWindowResize|in_complementVisibleItems|cf_getPadding|500|go_complementAutoObject|go_complementPaginationObject|go_complementSwipeObject|go_complementMousewheelObject|_cfs_build|in_mapCss|textAlign|float|marginTop|marginLeft|absolute|_cfs_origCssZindex|_cfs_bind_events|stop|paused|enough|needed|page|slide_|configuration|gn_getScrollItemsPrevFilter|Scrolling|gi_getOldItemsPrev|gi_getNewItemsPrev|directscroll|concat|gn_getScrollItemsNextFilter|forward|gi_getOldItemsNext|gi_getNewItemsNext|jumpToStart|after|the|append|removeItem|round|hash|index|selected|gn_getVisibleItemsPrevFilter|Item|keyup|keyCode|scN|down|cursor|mcN|configs|classname|cf_getCookie|random|itm|onCreate|swing|namespace|pageAnchorBuilder|span|progressbarUpdater|new|Date|_cfs_isHidden|triggerOnTouchEnd|_cfs_tempCssMargin|_cfs_origCss|attr|style|newS|secp|ms_getPaddingBorderMargin|l1|l2|join|innerWidth|innerHeight|dx|Set|undefined|jQuery|log|caroufredsel_cookie_|relative|fixed|overflow|setInterval|setTimeout|or|Callback|returned|Page|resumed|currently|slide_prev|prependTo|slide_next|prevPage|nextPage|prepend|carousel|insertItem|Correct|insert|Appending|item|add|detach|currentVisible|body|find|Preventing|non|sliding|replaceWith|widths|heights|automatically|ontouchstart|in|swipeUp|swipeDown|swipeLeft|swipeRight|move|200|300|resize|wrap|class|animate|unshift|location|cfs|div|caroufredsel_wrapper|href|charAt|setTime|1000|expires|toGMTString|path|ease|orgDuration|shift|clearTimeout|clearInterval|skipped|Hiding|navigation|disabled|2500|Width|outer|px|em|even|odd|Infinity|immediate|bt_mousesheelNumber|Array|Object|isNaN|String|Function|Boolean|DEPRECATED|support|it|will|be|removed|Use|instead|quadratic|cubic|elastic|106|126".split("|"),0,{})) 17/** 18 * BxSlider v4.1.2 - Fully loaded, responsive content slider 19 * http://bxslider.com 20 * 21 * Copyright 2014, Steven Wanderski - http://stevenwanderski.com - http://bxcreative.com 22 * Written while drinking Belgian ales and listening to jazz 23 * 24 * Released under the MIT license - http://opensource.org/licenses/MIT 25 */,function(e){var t={},n={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,touchEnabled:!0,swipeThreshold:50,oneToOneTouch:!0,preventDefaultSwipeX:!0,preventDefaultSwipeY:!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",autoHover:!1,autoDelay:0,minSli
25des:1,maxSlides:1,moveSlides:0,slideWidth:0,onSliderLoad:function(){},onSlideBefore:function(){},onSlideAfter:function(){},onSlideNext:function(){},onSlidePrev:function(){},onSliderResize:function(){}};e.fn.bxSlider=function(o){if(0==this.length)return this;if(this.length>1)return this.each(function(){e(this).bxSlider(o)}),this;var s={},a=this;t.el=this;var r=e(window).width(),l=e(window).height(),d=function(){s.settings=e.extend({},n,o),s.settings.slideWidth=parseInt(s.settings.slideWidth),s.children=a.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(){var e=document.createElement("div"),t=["WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var i in t)if(void 0!==e.style[t[i]])return s.cssPrefix=t[i].replace("Perspective","").toLowerCase(),s.animProp="-"+s.cssPrefix+"-transform",!0;return!1}(),"vertical"==s.settings.mode&&(s.settings.maxSlides=s.settings.minSlides),a.data("origStyle",a.attr("style")),a.children(s.settings.slideSelector).each(function(){e(this).data("origStyle",e(this).attr("style"))}),c()},c=function(){a.wrap('<div class="bx-wrapper"><div class="bx-viewport"></div></div>'),s.viewport=a.parent(),s.loader=e('<div class="bx-loading" />'),s.viewport.prepend(s.loader),a.css({width:"horizontal"==s.settings.mode?100*s.children.length+215+"%":"auto",position:"relative"}),s.usingCSS&&s.settings.easing?a.css("-"+s.cssPrefix+"-transition-timing-function",s.settings.easing):s.settings.easing||(s.settings.easing="swing"),g(),s.viewport.css({width:"100%",overflow:"hidden",position:"relative"}),s.viewport.parent().css({maxWidth:f()}),s.settings.pager||s.viewport.parent().css({margin:"0 auto 0px"}),s.children.css({float:"horizontal"==s.settings.mode?"left":"none",listStyle:"none",position:"relative"}),s.children.css("width",m()),"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=e('<div class="bx-controls" />'),s.settings.captions&&D(),s.active.last=s.settings.startSlide==v()-1,s.settings.video&&a.fitVids();var t=s.children.eq(s.settings.startSlide);"all"==s.settings.preloadImages&&(t=s.children),s.settings.ticker?s.settings.pager=!1:(s.settings.pager&&x(),s.settings.controls&&S(),s.settings.auto&&s.settings.autoControls&&E(),(s.settings.controls||s.settings.autoControls||s.settings.pager)&&s.viewport.after(s.controls.el)),u(t,h)},u=function(t,i){var n=t.find("img, iframe").length;if(0!=n){var o=0;t.find("img, iframe").each(function(){e(this).one("load",function(){++o==n&&i()}).each(function(){this.complete&&e(this).load()})})}else i()},h=function(){if(s.settings.infiniteLoop&&"fade"!=s.settings.mode&&!s.settings.ticker){var t="vertical"==s.settings.mode?s.settings.minSlides:s.settings.maxSlides,i=s.children.slice(0,t).clone().addClass("bx-clone"),n=s.children.slice(-t).clone().addClass("bx-clone");a.append(i).prepend(n)}s.loader.remove(),b(),"vertical"==s.settings.mode&&(s.settings.adaptiveHeight=!0),s.viewport.height(p()),a.redrawSlider(),s.settings.onSliderLoad(s.active.index),s.initialized=!0,s.settings.responsive&&e(window).bind("resize",W),s.settings.auto&&s.settings.autoStart&&z(),s.settings.ticker&&H(),s.settings.pager&&k(s.settings.startSlide),s.settings.controls&&O(),s.settings.touchEnabled&&!s.settings.ticker&&j()},p=function(){var t=0,n=e();if("vertical"==s.settings.mode||s.settings.adaptiveHeight)if(s.carousel){var o=1==s.settings.moveSlides?s.active.index:s.active.index*y();for(n=s.children.eq(o),i=1;i<=s.settings.maxSlides-1;i++)n=o+i>=s.children.length?n.add(s.children.eq(i-1)):n.add(s.children.eq(o+i))}else n=s.children.eq(s.active.index);else n=s.children;return"vertical"==s.settings.mode?(n.each(function(){t+=e(this).outerHeight()}),s.settings.slideMargin>0&&(t+=s.settings.slideMargin*(s.settings.minSlides-1))):t=Math.max.apply(Math,n.map(function(){return e(this).outerHeight(!1)}).get()),t},f=function(){var e="100%";return s.settings.slideWidth>0&&(e="horizontal"==s.settings.mode?s.settings.maxSlides*s.settings.slideWidth+(s.settings.maxSlides-1)*s.settings.slideMargin:s.settings.slideWidth),e},m=function(){var e=s.settings.slideWidth,t=s.viewport.width();return 0==s.settings.slideWidth||s.settings.slideWidth>t&&!s.carousel||"vertical"==s.settings.mode?e=t:s.settings.maxSlides>1&&"horizontal"==s.settings.mode&&(t>s.maxThreshold||t<s.minThreshold&&(e=(t-s.settings.slideMargin*(s.settings.minSlides-1))/s.settings.minSlides)),e},g=function(){var e=1;if("horizontal"==s.settings.mode&&s.settings.slideWidth>0)if(s.viewport.width()<s.minThreshold)e=s.settings.minSlides;else if(s.viewport.width()>s.maxThreshold)e=s.settings.maxSlides;else{var t=s.children.first().width();e=Math.floor(s.viewport.width()/t)}else"vertical"==s.settings.mode&&(e=s.settings.minSlides);return e},v=function(){var e=0;if(s.settings.moveSlides>0)if(s.settings.infiniteLoop)e=s.children.length/y();else for(var t=0,i=0;t<s.children.length;)++e,t=i+g(),i+=s.settings.moveSlides<=g()?s.settings.moveSlides:g();else e=Math.ceil(s.children.length/g());return e},y=function(){return s.settings.moveSlides>0&&s.settings.moveSlides<=g()?s.settings.moveSlides:g()},b=function(){if(s.children.length>s.settings.maxSlides&&s.active.last&&!s.settings.infiniteLoop){if("horizontal"==s.settings.mode){var e=s.children.last(
25),t=e.position();w(-(t.left-(s.viewport.width()-e.width())),"reset",0)}else if("vertical"==s.settings.mode){var i=s.children.length-s.settings.minSlides;t=s.children.eq(i).position();w(-t.top,"reset",0)}}else{t=s.children.eq(s.active.index*y()).position();s.active.index==v()-1&&(s.active.last=!0),null!=t&&("horizontal"==s.settings.mode?w(-t.left,"reset",0):"vertical"==s.settings.mode&&w(-t.top,"reset",0))}},w=function(e,t,i,n){if(s.usingCSS){var o="vertical"==s.settings.mode?"translate3d(0, "+e+"px, 0)":"translate3d("+e+"px, 0, 0)";a.css("-"+s.cssPrefix+"-transition-duration",i/1e3+"s"),"slide"==t?(a.css(s.animProp,o),a.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){a.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),L()})):"reset"==t?a.css(s.animProp,o):"ticker"==t&&(a.css("-"+s.cssPrefix+"-transition-timing-function","linear"),a.css(s.animProp,o),a.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){a.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),w(n.resetValue,"reset",0),P()}))}else{var r={};r[s.animProp]=e,"slide"==t?a.animate(r,i,s.settings.easing,function(){L()}):"reset"==t?a.css(s.animProp,e):"ticker"==t&&a.animate(r,speed,"linear",function(){w(n.resetValue,"reset",0),P()})}},_=function(){for(var t="",i=v(),n=0;i>n;n++){var o="";s.settings.buildPager&&e.isFunction(s.settings.buildPager)?(o=s.settings.buildPager(n),s.pagerEl.addClass("bx-custom-pager")):(o=n+1,s.pagerEl.addClass("bx-default-pager")),t+='<div class="bx-pager-item"><a href="" data-slide-index="'+n+'" class="bx-pager-link">'+o+"</a></div>"}s.pagerEl.html(t)},x=function(){s.settings.pagerCustom?s.pagerEl=e(s.settings.pagerCustom):(s.pagerEl=e('<div class="bx-pager" />'),s.settings.pagerSelector?e(s.settings.pagerSelector).html(s.pagerEl):s.controls.el.addClass("bx-has-pager").append(s.pagerEl),_()),s.pagerEl.on("click","a",M)},S=function(){s.controls.next=e('<a class="bx-next" href="">'+s.settings.nextText+"</a>"),s.controls.prev=e('<a class="bx-prev" href="">'+s.settings.prevText+"</a>"),s.controls.next.bind("click",$),s.controls.prev.bind("click",I),s.settings.nextSelector&&e(s.settings.nextSelector).append(s.controls.next),s.settings.prevSelector&&e(s.settings.prevSelector).append(s.controls.prev),s.settings.nextSelector||s.settings.prevSelector||(s.controls.directionEl=e('<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))},E=function(){s.controls.start=e('<div class="bx-controls-auto-item"><a class="bx-start" href="">'+s.settings.startText+"</a></div>"),s.controls.stop=e('<div class="bx-controls-auto-item"><a class="bx-stop" href="">'+s.settings.stopText+"</a></div>"),s.controls.autoEl=e('<div class="bx-controls-auto" />'),s.controls.autoEl.on("click",".bx-start",T),s.controls.autoEl.on("click",".bx-stop",C),s.settings.autoControlsCombine?s.controls.autoEl.append(s.controls.start):s.controls.autoEl.append(s.controls.start).append(s.controls.stop),s.settings.autoControlsSelector?e(s.settings.autoControlsSelector).html(s.controls.autoEl):s.controls.el.addClass("bx-has-controls-auto").append(s.controls.autoEl),F(s.settings.autoStart?"stop":"start")},D=function(){s.children.each(function(){var t=e(this).find("img:first").attr("title");null!=t&&(""+t).length&&e(this).append('<div class="bx-caption"><span>'+t+"</span></div>")})},$=function(e){s.settings.auto&&a.stopAuto(),a.goToNextSlide(),e.preventDefault()},I=function(e){s.settings.auto&&a.stopAuto(),a.goToPrevSlide(),e.preventDefault()},T=function(e){a.startAuto(),e.preventDefault()},C=function(e){a.stopAuto(),e.preventDefault()},M=function(t){s.settings.auto&&a.stopAuto();var i=e(t.currentTarget),n=parseInt(i.attr("data-slide-index"));n!=s.active.index&&a.goToSlide(n),t.preventDefault()},k=function(t){var i=s.children.length;return"short"==s.settings.pagerType?(s.settings.maxSlides>1&&(i=Math.ceil(s.children.length/s.settings.maxSlides)),void s.pagerEl.html(t+1+s.settings.pagerShortSeparator+i)):(s.pagerEl.find("a").removeClass("active"),void s.pagerEl.each(function(i,n){e(n).find("a").eq(t).addClass("active")}))},L=function(){if(s.settings.infiniteLoop){var e="";0==s.active.index?e=s.children.eq(0).position():s.active.index==v()-1&&s.carousel?e=s.children.eq((v()-1)*y()).position():s.active.index==s.children.length-1&&(e=s.children.eq(s.children.length-1).position()),e&&("horizontal"==s.settings.mode?w(-e.left,"reset",0):"vertical"==s.settings.mode&&w(-e.top,"reset",0))}s.working=!1,s.settings.onSlideAfter(s.children.eq(s.active.index),s.oldIndex,s.active.index)},F=function(e){s.settings.autoControlsCombine?s.controls.autoEl.html(s.controls[e]):(s.controls.autoEl.find("a").removeClass("active"),s.controls.autoEl.find("a:not(.bx-"+e+")").addClass("active"))}
25,O=function(){1==v()?(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==v()-1?(s.controls.next.addClass("disabled"),s.controls.prev.removeClass("disabled")):(s.controls.prev.removeClass("disabled"),s.controls.next.removeClass("disabled")))},z=function(){s.settings.autoDelay>0?setTimeout(a.startAuto,s.settings.autoDelay):a.startAuto(),s.settings.autoHover&&a.hover(function(){s.interval&&(a.stopAuto(!0),s.autoPaused=!0)},function(){s.autoPaused&&(a.startAuto(!0),s.autoPaused=null)})},H=function(){var t=0;if("next"==s.settings.autoDirection)a.append(s.children.clone().addClass("bx-clone"));else{a.prepend(s.children.clone().addClass("bx-clone"));var i=s.children.first().position();t="horizontal"==s.settings.mode?-i.left:-i.top}w(t,"reset",0),s.settings.pager=!1,s.settings.controls=!1,s.settings.autoControls=!1,s.settings.tickerHover&&!s.usingCSS&&s.viewport.hover(function(){a.stop()},function(){var t=0;s.children.each(function(){t+="horizontal"==s.settings.mode?e(this).outerWidth(!0):e(this).outerHeight(!0)});var i=s.settings.speed/t,n="horizontal"==s.settings.mode?"left":"top",o=i*(t-Math.abs(parseInt(a.css(n))));P(o)}),P()},P=function(e){speed=e||s.settings.speed;var t={left:0,top:0},i={left:0,top:0};"next"==s.settings.autoDirection?t=a.find(".bx-clone").first().position():i=s.children.first().position();var n="horizontal"==s.settings.mode?-t.left:-t.top,o="horizontal"==s.settings.mode?-i.left:-i.top;w(n,"ticker",speed,{resetValue:o})},j=function(){s.touch={start:{x:0,y:0},end:{x:0,y:0}},s.viewport.bind("touchstart",G)},G=function(e){if(s.working)e.preventDefault();else{s.touch.originalPos=a.position();var t=e.originalEvent;s.touch.start.x=t.changedTouches[0].pageX,s.touch.start.y=t.changedTouches[0].pageY,s.viewport.bind("touchmove",N),s.viewport.bind("touchend",A)}},N=function(e){var t=e.originalEvent,i=Math.abs(t.changedTouches[0].pageX-s.touch.start.x),n=Math.abs(t.changedTouches[0].pageY-s.touch.start.y);if((3*i>n&&s.settings.preventDefaultSwipeX||3*n>i&&s.settings.preventDefaultSwipeY)&&e.preventDefault(),"fade"!=s.settings.mode&&s.settings.oneToOneTouch){var o=0;if("horizontal"==s.settings.mode){var a=t.changedTouches[0].pageX-s.touch.start.x;o=s.touch.originalPos.left+a}else{a=t.changedTouches[0].pageY-s.touch.start.y;o=s.touch.originalPos.top+a}w(o,"reset",0)}},A=function(e){s.viewport.unbind("touchmove",N);var t=e.originalEvent,i=0;if(s.touch.end.x=t.changedTouches[0].pageX,s.touch.end.y=t.changedTouches[0].pageY,"fade"==s.settings.mode){(n=Math.abs(s.touch.start.x-s.touch.end.x))>=s.settings.swipeThreshold&&(s.touch.start.x>s.touch.end.x?a.goToNextSlide():a.goToPrevSlide(),a.stopAuto())}else{var n=0;"horizontal"==s.settings.mode?(n=s.touch.end.x-s.touch.start.x,i=s.touch.originalPos.left):(n=s.touch.end.y-s.touch.start.y,i=s.touch.originalPos.top),!s.settings.infiniteLoop&&(0==s.active.index&&n>0||s.active.last&&0>n)?w(i,"reset",200):Math.abs(n)>=s.settings.swipeThreshold?(0>n?a.goToNextSlide():a.goToPrevSlide(),a.stopAuto()):w(i,"reset",200)}s.viewport.unbind("touchend",A)},W=function(){var t=e(window).width(),i=e(window).height();(r!=t||l!=i)&&(r=t,l=i,a.redrawSlider(),s.settings.onSliderResize.call(a,s.active.index))};return a.goToSlide=function(t,i){if(!s.working&&s.active.index!=t)if(s.working=!0,s.oldIndex=s.active.index,s.active.index=0>t?v()-1:t>=v()?0:t,s.settings.onSlideBefore(s.children.eq(s.active.index),s.oldIndex,s.active.index),"next"==i?s.settings.onSlideNext(s.children.eq(s.active.index),s.oldIndex,s.active.index):"prev"==i&&s.settings.onSlidePrev(s.children.eq(s.active.index),s.oldIndex,s.active.index),s.active.last=s.active.index>=v()-1,s.settings.pager&&k(s.active.index),s.settings.controls&&O(),"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(){e(this).css("zIndex",s.settings.slideZIndex),L()});
25else{s.settings.adaptiveHeight&&s.viewport.height()!=p()&&s.viewport.animate({height:p()},s.settings.adaptiveHeightSpeed);var n=0,o={left:0,top:0};if(!s.settings.infiniteLoop&&s.carousel&&s.active.last)if("horizontal"==s.settings.mode){o=(l=s.children.eq(s.children.length-1)).position(),n=s.viewport.width()-l.outerWidth()}else{var r=s.children.length-s.settings.minSlides;o=s.children.eq(r).position()}else if(s.carousel&&s.active.last&&"prev"==i){var l,d=1==s.settings.moveSlides?s.settings.maxSlides-y():(v()-1)*y()-(s.children.length-s.settings.maxSlides);o=(l=a.children(".bx-clone").eq(d)).position()}else if("next"==i&&0==s.active.index)o=a.find("> .bx-clone").eq(s.settings.maxSlides).position(),s.active.last=!1;else if(t>=0){var c=t*y();o=s.children.eq(c).position()}if(void 0!==o){var u="horizontal"==s.settings.mode?-(o.left-n):-o.top;w(u,"slide",s.settings.speed)}}},a.goToNextSlide=function(){if(s.settings.infiniteLoop||!s.active.last){var e=parseInt(s.active.index)+1;a.goToSlide(e,"next")}},a.goToPrevSlide=function(){if(s.settings.infiniteLoop||0!=s.active.index){var e=parseInt(s.active.index)-1;a.goToSlide(e,"prev")}},a.startAuto=function(e){s.interval||(s.interval=setInterval(function(){"next"==s.settings.autoDirection?a.goToNextSlide():a.goToPrevSlide()},s.settings.pause),s.settings.autoControls&&1!=e&&F("stop"))},a.stopAuto=function(e){s.interval&&(clearInterval(s.interval),s.interval=null,s.settings.autoControls&&1!=e&&F("start"))},a.getCurrentSlide=function(){return s.active.index},a.getCurrentSlideElement=function(){return s.children.eq(s.active.index)},a.getSlideCount=function(){return s.children.length},a.redrawSlider=function(){s.children.add(a.find(".bx-clone")).outerWidth(m()),s.viewport.css("height",p()),s.settings.ticker||b(),s.active.last&&(s.active.index=v()-1),s.active.index>=v()&&(s.active.last=!0),s.settings.pager&&!s.settings.pagerCustom&&(_(),k(s.active.index))},a.destroySlider=function(){s.initialized&&(s.initialized=!1,e(".bx-clone",this).remove(),s.children.each(function(){null!=e(this).data("origStyle")?e(this).attr("style",e(this).data("origStyle")):e(this).removeAttr("style")}),null!=e(this).data("origStyle")?this.attr("style",e(this).data("origStyle")):e(this).removeAttr("style"),e(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.pagerEl.remove(),e(".bx-caption",this).remove(),s.controls.autoEl&&s.controls.autoEl.remove(),clearInterval(s.interval),s.settings.responsive&&e(window).unbind("resize",W))},a.reloadSlider=function(e){null!=e&&(o=e),a.destroySlider(),d()},d(),this}}(jQuery),document.addEventListener("DOMContentLoaded",function(){function e(){$("#haml-structure.job .job-industy td:first").text("Specialisation:")}/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent);if(jQuery.fn.exists=function(){return this.length>0},$(".linkedin").click(function(){$(".connecting-loader").fadeIn(200)}),$("#menu").mmenu({extensions:["theme-dark","pagedim-black","shadow-page","position-right","fx-menu-slide","fx-panels-slide-up","fx-listitems-slide"]}),e(),$(".redirect select").change(function(e){var t=this.value;""!==t&&(document.location.href=t),e.preventDefault()}),$("#query, #search_query, #query-1").exists()&&$("#query, #search_query, #query-1").easyAutocomplete({url:"/api/v1/jobs/job_titles.json",getValue:"name",list:{match:{enabled:!0},showAnimation:{type:"slide",time:400,callback:function(){}},hideAnimation:{type:"slide",time:400,callback:function(){}},maxNumberOfElements:12}}),$(".scroller").on("click",function(e){e.preventDefault();var t=$(this).closest("section").next();$("#header");$("html, body").animate({scrollTop:t.offset().top},800)}),$("#featured-jobs").exists()&&$(".featured-jobs-wrapper").slick({infinite:!0,slidesToShow:3,slidesToScroll:3,autoplay:!0,autoplaySpeed:8e3,dots:!0,arrows:!0,responsive:[{breakpoint:1024,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:768,settings:{slidesToShow:2,slidesToScroll:2,dots:!1}},{breakpoint:701,settings:{slidesToShow:1,slidesToScroll:1,dots:!1}}]}
25),$("#updated-news").exists()&&$(".news-slider").slick({infinite:!0,slidesToShow:1,slidesToScroll:1,autoplay:!0,autoplaySpeed:8e3,dots:!0,arrows:!0,responsive:[{breakpoint:768,settings:{dots:!1}}]}),$("#content-disciplines").exists()&&$(".discipline-slider").slick({infinite:!0,slidesToShow:3,slidesToScroll:3,autoplay:!0,autoplaySpeed:8e3,dots:!0,arrows:!0,responsive:[{breakpoint:992,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:768,settings:{slidesToShow:2,slidesToScroll:2,dots:!1}},{breakpoint:601,settings:{slidesToShow:1,slidesToScroll:1,dots:!1}}]}),$("#content-testimonials").exists()&&$(".testimonial-slider").slick({infinite:!0,slidesToShow:3,slidesToScroll:3,dots:!0,arrows:!0,responsive:[{breakpoint:1024,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:768,settings:{slidesToShow:2,slidesToScroll:2,dots:!1}},{breakpoint:701,settings:{slidesToShow:1,slidesToScroll:1,dots:!1}}]}),$("#haml-structure.blog").exists()){var t=$(".col-md-4 div:nth-of-type(2) ul li:first-child a p").text();t=t.substring(t.indexOf("by")-1),$(".col-md-4 div:nth-of-type(2) ul li:first-child a p").replaceWith("<p>"+t+"</p>");var i=$(".col-md-4 div:nth-of-type(2) ul li:nth-of-type(2) a p").text();i=i.substring(i.indexOf("by")-1),$(".col-md-4 div:nth-of-type(2) ul li:nth-of-type(2) a p").replaceWith("<p>"+i+"</p>");var n=$(".col-md-4 div:nth-of-type(2) ul li:nth-of-type(3) a p").text();n=n.substring(n.indexOf("by")-1),$(".col-md-4 div:nth-of-type(2) ul li:nth-of-type(3) a p").replaceWith("<p>"+n+"</p>");var o=$(".col-md-4 div:nth-of-type(2) ul li:nth-of-type(4) a p").text();o=o.substring(o.indexOf("by")-1),$(".col-md-4 div:nth-of-type(2) ul li:nth-of-type(4) a p").replaceWith("<p>"+o+"</p>");var s=$(".col-md-4 div:nth-of-type(2) ul li:last-child a p").text();s=s.substring(s.indexOf("by")-1),$(".col-md-4 div:nth-of-type(2) ul li:last-child a p").replaceWith("<p>"+s+"</p>")}if(document.getElementById("image-slider")&&$(function(){var e=$
25("#image-slider #slides").carouFredSel({responsive:!0,width:"100%",height:"variable",auto:!0,items:{visible:1,height:"variable",start:"random"},scroll:{duration:500,timeoutDuration:6e3,fx:"crossfade"},pagination:"#pager"});$("body").hasClass("edit")&&e.trigger("destroy")}),$("#disciplines > ul > li > a").on("click",function(e){$("body").hasClass("edit")&&e.preventDefault()}),!$("body.edit").exists()&&$("#main-banner").exists()){var a=document.querySelector(".ml9 > h1");a.innerHTML=a.textContent.replace(/\w+/g,"<span class='group'>$&</span>"),document.querySelectorAll(".ml9 > h1 .group").forEach(function(e){e.innerHTML=e.textContent.replace(/\S/g,"<span class='letter'>$&</span>")}),a.classList.add("show"),anime.timeline().add({targets:".ml9 .letter",scale:[0,1],duration:1500,elasticity:600,delay:function(e,t){return 45*(t+1)},opacity:1})}$("#haml-structure #pjax-content .page-title").exists()&&$(".page-title").text("Job Search"),$(window).on("popstate",function(){location.reload(!0)})}),function(e){"use strict";function t(e){var t=new Error(e);return t.name="ValueError",t}function i(e){return function(i){var n=Array.prototype.slice.call(arguments,1),o=0,s="UNDEFINED";return i.replace(/([{}])\1|[{](.*?)(?:!(.+?))?[}]/g,function(i,a,r,l){if(null!=a)return a;var d=r;if(d.length>0){if("IMPLICIT"===s)throw t("cannot switch from implicit to explicit numbering");s="EXPLICIT"}else{if("EXPLICIT"===s)throw t("cannot switch from explicit to implicit numbering");s="IMPLICIT",d=String(o),o+=1}var c=d.split("."),u=(/^\d+$/.test(c[0])?c:["0"].concat(c)).reduce(function(e,t){return e.reduce(function(e,i){return null!=i&&t in Object(i)?["function"==typeof i[t]?i[t]():i[t]]:[]},[])},[n]).reduce(function(e,t){return t},"");if(null==l)return u;if(Object.prototype.hasOwnProperty.call(e,l))return e[l](u);throw t('no transformer named "'+l+'"')})}}var n=i({});n.create=i,n.extend=function(t,n){var o=i(n);t.format=function(){var t=Array.prototype.slice.call(arguments);return t.unshift(this),o.apply(e,t)}},"undefined"!=typeof module?module.exports=n:"function"==typeof define&&define.amd?define(function(){return n}):e.format=n}.call(this,this);var NowSignageTwenty={LINKEDIN_TEMPLATE:'<div class="s-item in-block clearfix"><div class="s-item-wrap"><a href="{permalink_url}" target="_blank" rel="noopener" class="s-fig-wrap"><figure class="s-fig">{1}</figure></a><article class=\'s-content\'><a class="s-media tag-label" href="{permalink_url}" target="_blank" rel="noopener">{source}</a><a class="s-text" target="_blank" rel="noopener" href="{permalink_url}">{message}</a><footer class="s-footer"><a class="s-like" href="{permalink_url}" target="_blank" rel="noopener"><i class="fa fa-heart" aria-hidden="true"></i></a><a class="s-follow" href="{permalink_url}" target="_blank" rel="noopener">Follow</a></footer></article></div></div>',TWITTER_TEMPLATE:'<div class="s-item tw-block clearfix"><div class="s-item-wrap"><a href="{permalink_url}" target="_blank" rel="noopener" class="s-fig-wrap"><figure class="s-fig">{1}</figure></a><article class=\'s-content\'><a class="s-media tag-label" href="{permalink_url}" target="_blank" rel="noopener">{source}</a><a class="s-text" target="_blank" rel="noopener" href="{permalink_url}">{message}</a><footer class="s-footer"><a class="s-like" href="{permalink_url}" target="_blank" rel="noopener"><i class="fa fa-heart" aria-hidden="true"></i></a><a class="s-follow" href="{permalink_url}" target="_blank" rel="noopener">Follow</a></footer></article></div></div>',FACEBOOK_TEMPLATE:'<div class="s-item fb-block clearfix"><div class="s-item-wrap"><a href="{permalink_url}" target="_blank" rel="noopener" class="s-fig-wrap"><figure class="s-fig">{1}</figure></a><article class=\'s-content\'><a class="s-media tag-label" href="{permalink_url}" target="_blank" rel="noopener">{source}</a><a class="s-text" target="_blank" rel="noopener" href="{permalink_url}">{message}</a><footer class="s-footer"><a class="s-like" href="{permalink_url}" target="_blank" rel="noopener"><i class="fa fa-heart" aria-hidden="true"></i></a><a class="s-follow" href="{permalink_url}" target="_blank" rel="noopener">Follow</a></footer></article></div></div>',INSTAGRAM_TEMPLATE:'<div class="s-item ig-block clearfix"><div class="s-item-wrap"><a href="{permalink_url}" target="_blank" rel="noopener" class="s-fig-wrap"><figure class="s-fig">{1}</figure></a><article class=\'s-content\'><a class="s-media tag-label" href="{permalink_url}" target="_blank" rel="noopener">{source}</a><a class="s-text" target="_blank" rel="noopener" href="{permalink_url}">{message}</a><footer class="s-footer"><a class="s-like" href="{permalink_url}" target="_blank" rel="noopener"><i class="fa fa-heart" aria-hidden="true"></i></a><a class="s-follow" href="{permalink_url}" target="_blank" rel="noopener">Follow</a></footer></article></div></div>',getChannel:function(e,t,i,n){$.ajax({url:"https://api.nowsignage.com/v1/c
vendor: 19,895 bytes, lines 25-26
25hannels/"+t,beforeSend:function(e){e.setRequestHeader("Authorization","Bearer 93630440a8582783e8469e0f95434c78")},success:function(t){"function"==typeof i&&i(e,t)},error:function(e,t,i){"function"==typeof n&&n(e.status,i)}})},decorateEntry:function(e){if(void 0!==e){var t="",i="",n="<img src='{0}'/>",o=e.large_image_url||e.med_image_url||e.small_image_url;switch(o?i=format(n,o):o&&"undefined"!==o&&null!==o||(i=format(n,"https://d3jh33bzyw1wep.cloudfront.net/s3/W1siZiIsInRoZW1lX2Fzc2V0cy8xNTM5MDkxODkyL21heXRyaXgtcGVvcGxlL3BuZy9tYXl0cml4LWxvZ28tY29sb3IucG5nIl1d")),null===e.message&&(e.message=""),e.source){case"linkedin":t=this.LINKEDIN_TEMPLATE;break;case"twitter":t=this.TWITTER_TEMPLATE;break;case"facebook":t=this.FACEBOOK_TEMPLATE;break;case"instagram":t=this.INSTAGRAM_TEMPLATE}return format(t,e,i,this.timeSince(e.created_at))}},timeSince:function(e){var t,i,n,o="second",s={year:31536e3,month:2592e3,day:86400,hour:3600,minute:60};if("object"!=typeof e&&(e=new Date(e)),e>new Date)return"in the future";for(n in t=Math.floor((new Date-e)/1e3),s)if((i=Math.floor(t/s[n]))>=1){o=n;break}return 0===i&&(i=t),1!=i&&(o+="s"),i+" "+o+" ago"},initSlick:function(e){$(e).slick({infinite:!0,slidesToShow:3,slidesToScroll:3,autoplay:!1,dots:!0,arrows:!0,responsive:[{breakpoint:992,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:768,settings:{slidesToShow:2,slidesToScroll:2,dots:!1}},{breakpoint:601,settings:{slidesToShow:1,slidesToScroll:1,dots:!1}}]}),$(".social-slick-nav .btn-down").click(function(){$(e).slick("slickNext")}),$(".social-slick-nav .btn-up").click(function(){$(e).slick("slickPrev")})},onSuccess:function(e,t){for(var i="",n=t.published_content.entries,o=0;o<n.length;o++)i+=this.decorateEntry(n[o]);document.getElementById(e).innerHTML=i,this.initSlick("#"+e)},initialize:function(e){for(var t in e)$("#"+t).length>0&&this.getChannel(t,e[t],this.onSuccess.bind(this))}};$(document).ready(function(){NowSignageTwenty.initialize({"feed-social":"71a0c228872adccc257edbc77f0fd903"})}),$(document).ajaxComplete(function(){$("#social-feed .s-fig img").on("error",function(){$(this).unbind("error").addClass("fallback").attr("src","https://d3jh33bzyw1wep.cloudfront.net/s3/W1siZiIsInRoZW1lX2Fzc2V0cy8xNTc0MTUyNTMwL3Blb3BsZS1mdXNpb24vcG5nL2Jsb2ctYmctbG9nby5wbmciXV0")})}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.anime=t()}(this,function(){"use strict";function e(e,t,i){return Math.min(Math.max(e,t),i)}function t(e,t){return e.indexOf(t)>-1}function i(e,t){return e.apply(null,t)}function n(e){var t=/\(([^)]+)\)/.exec(e);return t?t[1].split(",").map(function(e){return parseFloat(e)}):[]}function o(t,i){function o(e){var t=i?i*e/1e3:e;return t=u<1?Math.exp(-t*u*c)*(p*Math.cos(h*t)+f*Math.sin(h*t)):(p+f*t)*Math.exp(-t*c),0===e||1===e?e:1-t}var s=n(t),a=e(U.und(s[0])?1:s[0],.1,100),r=e(U.und(s[1])?100:s[1],.1,100),l=e(U.und(s[2])?10:s[2],.1,100),d=e(U.und(s[3])?0:s[3],.1,100),c=Math.sqrt(r/a),u=l/(2*Math.sqrt(r*a)),h=u<1?c*Math.sqrt(1-u*u):0,p=1,f=u<1?(u*c-d)/h:-d+c;return i?o:function(){var e=Y.springs[t];if(e)return e;for(var i=0,n=0;;)if(1===o(i+=1/6)){if(++n>=16)break}else n=0;var s=i*(1/6)*1e3;return Y.springs[t]=s,s}}function s(e){return void 0===e&&(e=10),function(t){return Math.round(t*e)*(1/e)}}function a(e,t){if(U.fnc(e))return e;var a=e.split("(")[0],r=X[a],l=n(e);switch(a){case"spring":return o(e,t);case"cubicBezier":return i(V,l);case"steps":return i(s,l);default:return i(r,l)}}function r(e){try{return document.querySelectorAll(e)}catch(e){return}}function l(e,t){for(var i=e.length,n=arguments.length>=2?arguments[1]:void 0,o=[],s=0;s<i;s++)if(s in e){var a=e[s];t.call(n,a,s,e)&&o.push(a)}return o}function d(e){return e.reduce(function(e,t){return e.concat(U.arr(t)?d(t):t)},[])}function c(e){return U.arr(e)?e:(U.str(e)&&(e=r(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function u(e,t){return e.some(function(e){return e===t})}function h(e){var t={};for(var i in e)t[i]=e[i];return t}function p(e,t){var i=h(e);for(var n in e)i[n]=t.hasOwnProperty(n)?t[n]:e[n];return i}function f(e,t){var i=h(e);for(var n in t)i[n]=U.und(e[n])?t[n]:e[n];return i}function m(e){return U.rgb(e)?(i=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(t=e))?"rgba("+i[1]+",1)":t:U.hex(e)?(n=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,i,n){return t+t+i+i+n+n}),o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n),"rgba("+parseInt(o[1],16)+","+parseInt(o[2],16)+","+parseInt(o[3],16)+",1)"):U.hsl(e)?function(e){function t(e,t,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}var i,n,o,s=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e),a=parseInt(s[1],10)/360,r=parseInt(s[2],10)/100,l=parseInt(s[3],10)/100,d=s[4]||1;if(0==r)i=n=o=l;else{var c=l<.5?l*(1+r):l+r-l*r,u=2*l-c;i=t(u,c,a+1/3),n=t(u,c,a),o=t(u,c,a-1/3)}return"rgba("+255*i+","+255*n+","+255*o+","+d+")"}(e):void 0;var t,i,n,o}function g(e){var t=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e);if(t)return t[1]}function v(e,t){return U.fnc(e)?e(t.target,t.id,t.total):e}function y(e,t){return e.getAttribute(t)}function b(e,t,i){if(u([i,"deg","rad","turn"],g(t)))return t;var n=Y.CSS[t+i];if(!U.und(n))return n 26;var o=document.createElement(e.tagName),s=e.parentNode&&e.parentNode!==document?e.parentNode:document.body;s.appendChild(o),o.style.position="absolute",o.style.width=100+i;var a=100/o.offsetWidth;s.removeChild(o);var r=a*parseFloat(t);return Y.CSS[t+i]=r,r}function w(e,t,i){if(t in e.style){var n=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o=e.style[t]||getComputedStyle(e).getPropertyValue(n)||"0";return i?b(e,o,i):o}}function _(e,t){return U.dom(e)&&!U.inp(e)&&(y(e,t)||U.svg(e)&&e[t])?"attribute":U.dom(e)&&u(B,t)?"transform":U.dom(e)&&"transform"!==t&&w(e,t)?"css":null!=e[t]?"object":void 0}function x(e){if(U.dom(e)){for(var t,i=e.style.transform||"",n=/(\w+)\(([^)]*)\)/g,o=new Map;t=n.exec(i);)o.set(t[1],t[2]);return o}}function S(e,i,n,o){var s,a=t(i,"scale")?1:0+(t(s=i,"translate")||"perspective"===s?"px":t(s,"rotate")||t(s,"skew")?"deg":void 0),r=x(e).get(i)||a;return n&&(n.transforms.list.set(i,r),n.transforms.last=i),o?b(e,r,o):r}function E(e,t,i,n){switch(_(e,t)){case"transform":return S(e,t,n,i);case"css":return w(e,t,i);case"attribute":return y(e,t);default:return e[t]||0}}function D(e,t){var i=/^(\*=|\+=|-=)/.exec(e);if(!i)return e;var n=g(e)||0,o=parseFloat(t),s=parseFloat(e.replace(i[0],""));switch(i[0][0]){case"+":return o+s+n;case"-":return o-s+n;case"*":return o*s+n}}function $(e,t){if(U.col(e))return m(e);if(/\s/g.test(e))return e;var i=g(e),n=i?e.substr(0,e.length-i.length):e;return t?n+t:n}function I(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function T(e){for(var t,i=e.points,n=0,o=0;o<i.numberOfItems;o++){var s=i.getItem(o);o>0&&(n+=I(t,s)),t=s}return n}function C(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return s=e,2*Math.PI*y(s,"r");case"rect":return 2*y(o=e,"width")+2*y(o,"height");case"line":return I({x:y(n=e,"x1"),y:y(n,"y1")},{x:y(n,"x2"),y:y(n,"y2")});case"polyline":return T(e);case"polygon":return i=(t=e).points,T(t)+I(i.getItem(i.numberOfItems-1),i.getItem(0))}var t,i,n,o,s}function M(e,t){var i=t||{},n=i.el||function(e){for(var t=e.parentNode;U.svg(t)&&U.svg(t.parentNode);)t=t.parentNode;return t}(e),o=n.getBoundingClientRect(),s=y(n,"viewBox"),a=o.width,r=o.height,l=i.viewBox||(s?s.split(" "):[0,0,a,r]);return{el:n,viewBox:l,x:l[0]/1,y:l[1]/1,w:a/l[2],h:r/l[3]}}function k(e,t){function i(i){void 0===i&&(i=0);var n=t+i>=1?t+i:0;return e.el.getPointAtLength(n)}var n=M(e.el,e.svg),o=i(),s=i(-1),a=i(1);switch(e.property){case"x":return(o.x-n.x)*n.w;case"y":return(o.y-n.y)*n.h;case"angle":return 180*Math.atan2(a.y-s.y,a.x-s.x)/Math.PI}}function L(e,t){var i=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,n=$(U.pth(e)?e.totalLength:e,t)+"";return{original:n,numbers:n.match(i)?n.match(i).map(Number):[0],strings:U.str(e)||t?n.split(i):[]}}function F(e){return l(e?d(U.arr(e)?e.map(c):c(e)):[],function(e,t,i){return i.indexOf(e)===t})}function O(e){var t=F(e);return t.map(function(e,i){return{target:e,id:i,total:t.length,transforms:{list:x(e)}}})}function z(e,t){var i=h(t);if(/^spring/.test(i.easing)&&(i.duration=o(i.easing)),U.arr(e)){var n=e.length;2!==n||U.obj(e[0])?U.fnc(t.duration)||(i.duration=t.duration/n):e={value:e}}var s=U.arr(e)?e:[e];return s.map(function(e,i){var n=U.obj(e)&&!U.pth(e)?e:{value:e};return U.und(n.delay)&&(n.delay=i?0:t.delay),U.und(n.endDelay)&&(n.endDelay=i===s.length-1?t.endDelay:0),n}).map(function(e){return f(e,i)})}function H(e,t){var i=[],n=t.keyframes;for(var o in n&&(t=f(function(e){for(var t=l(d(e.map(function(e){return Object.keys(e)})),function(e){return U.key(e)}).reduce(function(e,t){return e.indexOf(t)<0&&e.push(t),e},[]),i={},n=function(n){var o=t[n];i[o]=e.map(function(e){var t={};for(var i in e)U.key(i)?i==o&&(t.value=e[i]):t[i]=e[i];return t})},o=0;o<t.length;o++)n(o);return i}(n),t)),t)U.key(o)&&i.push({name:o,tweens:z(t[o],e)});return i}function P(e,t){var i;return e.tweens.map(function(n){var o=function(e,t){var i={};for(var n in e){var o=v(e[n],t);U.arr(o)&&1===(o=o.map(function(e){return v(e,t)})).length&&(o=o[0]),i[n]=o}return i.duration=parseFloat(i.duration),i.delay=parseFloat(i.delay),i}(n,t),s=o.value,r=U.arr(s)?s[1]:s,l=g(r),d=E(t.target,e.name,l,t),c=i?i.to.original:d,u=U.arr(s)?s[0]:c,h=g(u)||g(d),p=l||h;return U.und(r)&&(r=c),o.from=L(u,p),o.to=L(D(r,u),p),o.start=i?i.end:0,o.end=o.start+o.delay+o.duration+o.endDelay,o.easing=a(o.easing,o.duration),o.isPath=U.pth(s),o.isColor=U.col(o.from.original),o.isColor&&(o.round=1),i=o,o})}function j(e,t){O(e).forEach(function(e){for(var i in t){var n=v(t[i],e),o=e.target,s=g(n),a=E(o,i,s,e),r=D($(n,s||g(a)),a),l=_(o,i);Z[l](o,i,r,e.transforms,!0)}})}function G(e,t){return l(d(e.map(function(e){return t.map(function(t){return function(e,t){var i=_(e.target,t.name);if(i){var n=P(t,e),o=n[n.length-1];return{type:i,property:t.name,animatable:e,tweens:n,duration:o.end,delay:n[0].delay,endDelay:o.endDelay}}}(e,t)})})),function(e){return!U.und(e)})}function N(e,t){var i=e.length,n=function(e){return e.timelineOffset?e.timelineOffset:0},o={};return o.duration=i?Math.max.apply(Math,e.map(function(e){return n(e)+e.duration})):t.duration,o.delay=i?Math.min.apply(Math,e.map(function(e){return n(e)+e.delay})):t.delay,o.endDelay=i?o.duration-Math.max.apply(Math,e.map(function(e){return n(e)+e.duration-e.endDelay})):t.endDelay,o}function A(t){function i(e){var t=window.Promise&&new Promise(function(e){return $=e});return e.finished=t,t}function n(){var e=I.direction;"alternate"!==e&&(I.direction="normal"!==e?"normal":"reverse"),I.reversed=!I.reversed,u.forEach(function(e){return e.reversed=I.reversed})}function o(e){return I.reversed?I.duration-e:e}function s(){x=0,S=o(I.currentTime)*(1/A.speed)}function a(e,t){t&&t.seek(e-t.timelineOffset)}function r(t){for(var i=0,n=I.animations,o=n.length;i<o;){var s=n[i],a=s.animatable,r=s.tweens,d=r.length-1,c=r[d];d&&(c=l(r,function(e){return t<e.end})[0]||c);for(var u=e(t-c.start-c.delay,0,c.duration)/c.duration,h=isNaN(u)?1:c.easing(u),p=c.to.strings,f=c.round,m=[],g=c.to.numbers.length,v=void 0,y=0;y<g;y++){var b=void 0,w=c.to.numbers[y],_=c.from.numbers[y]||0;b=c.isPath?k(c.value,h*w):_+h*(w-_),f&&(c.isColor&&y>2||(b=Math.round(b*f)/f)),m.push(b)}var x=p.length;if(x){v=p[0];for(var S=0;S<x;S++){p[S];var E=p[S+1],D=m[S];isNaN(D)||(v+=E?D+E:D+" ")}}else v=m[0];Z[s.type](a.target,s.property,v,a.transforms),s.currentValue=v,i++}}function d(e){I[e]&&!I.passThrough&&I[e](I)}function c(t){var s=I.duration,l=I.delay,c=s-I.endDelay,h=o(t);I.progress=e(h/s*100,0,100),I.reversePlayback=h<I.currentTime,u&&function(e){if(I.reversePlayback)for(var t=D;t--;)a(e,u[t]);else for(var i=0;i<D;i++)a(e,u[i])}(h),!I.began&&I.currentTime>0&&(I.began=!0,d("begin")),!I.loopBegan&&I.currentTime>0&&(I.loopBegan=!0,d("loopBegin")),h<=l&&0!==I.currentTime&&r(0),(h>=c&&I.currentTime!==s||!s)&&r(s),h>l&&h<c?(I.changeBegan||(I.changeBegan=!0,I.changeCompleted=!1,d("changeBegin")),d("change"),r(h)):I.changeBegan&&(I.changeCompleted=!0,I.changeBegan=!1,d("changeComplete")),I.currentTime=e(h,0,s),I.began&&d("update"),t>=s&&(S=0,I.remaining&&!0!==I.remaining&&I.remaining--,I.remaining?(x=E,d("loopComplete"),I.loopBegan=!1,"alternate"===I.direction&&n()):(I.paused=!0,I.completed||(I.completed=!0,d("loopComplete"),d("complete"),!I.passThrough&&"Promise"in window&&($(),i(I)))))}void 0===t&&(t={});var u,h,m,g,v,y,b,w,_,x=0,S=0,E=0,D=0,$=null,I=(m=p(K,h=t),v=H(g=p(Q,h),h),w=N(b=G(y=O(h.targets),v),g),_=ee,ee++,f(m,{id:_,children:[],animatables:y,animations:b,duration:w.duration,delay:w.delay,endDelay:w.endDelay}));return i(I),I.reset=function(){var e=I.direction;I.passThrough=!1,I.currentTime=0,I.progress=0,I.paused=!0,I.began=!1,I.loopBegan=!1,I.changeBegan=!1,I.completed=!1,I.changeCompleted=!1,I.reversePlayback=!1,I.reversed="reverse"===e,I.remaining=I.loop,u=I.children;for(var t=D=u.length;t--;)I.children[t].reset();(I.reversed&&!0!==I.loop||"alternate"===e&&1===I.loop)&&I.remaining++,r(I.reversed?I.duration:0)},I.set=function(e,t){return j(e,t),I},I.tick=function(e){E=e,x||(x=E),c((E+(S-x))*A.speed)},I.seek=function(e){c(o(e))},I.pause=function(){I.paused=!0,s()},I.play=function(){I.paused&&(I.completed&&I.reset(),I.paused=!1,te.push(I),s(),q||ne())},I.reverse=function(){n(),s()},I.restart=function(){I.reset(),I.play()},I.reset(),I.autoplay&&I.play(),I}function W(e,t){for(var i=t.length;i--;)u(e,t[i].animatable.target)&&t.splice(i,1)}var R,J,q,K={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},Q={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},B=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective"],Y={CSS:{},springs:{}},U={arr:function(e){return Array.isArray(e)},obj:function(e){return t(Object.prototype.toString.call(e),"Object")},pth:function(e){return U.obj(e)&&e.hasOwnProperty("totalLength")},svg:function(e){return e instanceof SVGElement},inp:function(e){return e instanceof HTMLInputElement},dom:function(e){return e.nodeType||U.svg(e)},str:function(e){return"string"==typeof e},fnc:function(e){return"function"==typeof e},und:function(e){return void 0===e},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return U.hex(e)||U.rgb(e)||U.hsl(e)},key:function(e){return!K.hasOwnProperty(e)&&!Q.hasOwnProperty(e)&&"targets"!==e&&"keyframes"!==e}},V=function(){function e(e,t){return 1-3*t+3*e}function t(e,t){return 3*t-6*e}function i(e){return 3*e}function n(n,o,s){return((e(o,s)*n+t(o,s))*n+i(o))*n}function o(n,o,s){return 3*e(o,s)*n*n+2*t(o,s)*n+i(o)}var s=11,a=1/(s-1);return function(e,t,i,r){function l(t){for(var r=0,l=1,c=s-1;l!==c&&d[l]<=t;++l)r+=a;var u=r+(t-d[--l])/(d[l+1]-d[l])*a,h=o(u,e,i);return h>=.001?function(e,t,i,s){for(var a=0;a<4;++a){var r=o(t,i,s);if(0===r)return t;t-=(n(t,i,s)-e)/r}return t}(t,u,e,i):0===h?u:function(e,t,i,o,s){for(var a,r,l=0;(a=n(r=t+(i-t)/2,o,s)-e)>0?i=r:t=r,Math.abs(a)>1e-7&&++l<10;);return r}(t,r,r+a,e,i)}if(0<=e&&e<=1&&0<=i&&i<=1){var d=new Float32Array(s);if(e!==t||i!==r)for(var c=0;c<s;++c)d[c]=n(c*a,e,i);return function(o){return e===t&&i===r||0===o||1===o?o:n(l(o),t,r)}}}}(),X=(R={linear:function(){return function(e){return e}}},J={Sine:function(){return function(e){return 1-Math.cos(e*Math.PI/2)}},Circ:function(){return function(e){return 1-Math.sqrt(1-e*e)}},Back:function(){return function(e){return e*e*(3*e-2)}},Bounce:function(){return function(e){for(var t,i=4;e<((t=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*t-2)/22-e,2)}},Elastic:function(t,i){void 0===t&&(t=1),void 0===i&&(i=.5);var n=e(t,1,10),o=e(i,.1,2);return function(e){return 0===e||1===e?e:-n*Math.pow(2,10*(e-1))*Math.sin((e-1-o/(2*Math.PI)*Math.asin(1/n))*(2*Math.PI)/o)}}},["Quad","Cubic","Quart","Quint","Expo"].forEach(function(e,t){J[e]=function(){return function(e){return Math.pow(e,t+2)}}}),Object.keys(J).forEach(function(e){var t=J[e];R["easeIn"+e]=t,R["easeOut"+e]=function(e,i){return function(n){return 1-t(e,i)(1-n)}},R["easeInOut"+e]=function(e,i){return function(n){return n<.5?t(e,i)(2*n)/2:1-t(e,i)(-2*n+2)/2}}}),R),Z={css:function(e,t,i){return e.style[t]=i},attribute:function(e,t,i){return e.setAttribute(t,i)},object:function(e,t,i){return e[t]=i},transform:function(e,t,i,n,o){if(n.list.set(t,i),t===n.last||o){var s="";n.list.forEach(function(e,t){s+=t+"("+e+") "}),e.style.transform=s}}},ee=0,te=[],ie=[],ne=function(){function e(){q=requestAnimationFrame(t)}function t(t){var i=te.length;if(i){for(var n=0;n<i;){var o=te[n];if(o.paused){var s=te.indexOf(o);s>-1&&(te.splice(s,1),i=te.length)}else o.tick(t);n++}e()}else q=cancelAnimationFrame(q)}return e}();return"undefined"!=typeof document&&document.addEventListener("visibilitychange",function(){document.hidden?(te.forEach(function(e){return e.pause()}),ie=te.slice(0),A.running=te=[]):ie.forEach(function(e){return e.play()})}),A.version="3.1.0",A.speed=1,A.running=te,A.remove=function(e){for(var t=F(e),i=te.length;i--;){var n=te[i],o=n.animations,s=n.children;W(t,o);for(var a=s.length;a--;){var r=s[a],l=r.animations;W(t,l),l.length||r.children.length||s.splice(a,1)}o.length||s.length||n.pause()}},A.get=E,A.set=j,A.convertPx=b,A.path=function(e,t){var i=U.str(e)?r(e)[0]:e,n=t||100;return function(e){return{property:e,el:i,svg:M(i),totalLength:C(i)*(n/100)}}},A.setDashoffset=function(e){var t=C(e);return e.setAttribute("stroke-dasharray",t),t},A.stagger=function(e,t){void 0===t&&(t={});var i=t.direction||"normal",n=t.easing?a(t.easing):null,o=t.grid,s=t.axis,r=t.from||0,l="first"===r,d="center"===r,c="last"===r,u=U.arr(e),h=u?parseFloat(e[0]):parseFloat(e),p=u?parseFloat(e[1]):0,f=g(u?e[1]:e)||0,m=t.start||0+(u?h:0),v=[],y=0;return function(e,t,a){if(l&&(r=0),d&&(r=(a-1)/2),c&&(r=a-1),!v.length){for(var g=0;g<a;g++){if(o){var b=d?(o[0]-1)/2:r%o[0],w=d?(o[1]-1)/2:Math.floor(r/o[0]),_=b-g%o[0],x=w-Math.floor(g/o[0]),S=Math.sqrt(_*_+x*x);"x"===s&&(S=-_),"y"===s&&(S=-x),v.push(S)}else v.push(Math.abs(r-g));y=Math.max.apply(Math,v)}n&&(v=v.map(function(e){return n(e/y)*y})),"reverse"===i&&(v=v.map(function(e){return s?e<0?-1*e:-e:Math.abs(y-e)}))}return m+(u?(p-h)/y:h)*(Math.round(100*v[t])/100)+f}},A.timeline=function(e){void 0===e&&(e={});var t=A(e);return t.duration=0,t.add=function(i,n){function o(e){e.passThrough=!0}var s=te.indexOf(t),a=t.children;s>-1&&te.splice(s,1);for(var r=0;r<a.length;r++)o(a[r]);var l=f(i,p(Q,e));l.targets=l.targets||e.targets;var d=t.duration;l.autoplay=!1,l.direction=t.direction,l.timelineOffset=U.und(n)?d:D(n,d),o(t),t.seek(l.timelineOffset);var c=A(l);o(c),a.push(c);var u=N(a,e);return t.delay=u.delay,t.endDelay=u.endDelay,t.duration=u.duration,t.seek(0),t.reset(),t.autoplay&&t.play(),t},t},A.easing=a,A.penner=X,A.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e},A}),$(window).load(function(){ImageLoader()}),document.addEventListener("DOMContentLoaded",function(){function e(e){function t(e,t){$(".video-modal-container").html('<iframe width="560" height="315" src="'+e+t+'?rel=0&autoplay=1&loop=1&modestbranding=1" frameborder="0" allow="autoplay" allowfullscreen></iframe>')}function i(e){$(".video-modal-container").html('<video controls autoplay> <source src="'+e+'" type="video/mp4">Sorry this video is not supported</video>')}
26function n(e){var t="";t=e.includes("/rails/")?window.location.origin+e:e,$(".video-modal-container").html('<video width="560" height="315" autoplay="true" controls><source src="'+t+'" type="video/mp4"></video>')}var o=e,s=/(http|https)?:\/\/(www\.|player\.)?vimeo\.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|video\/|)(\d+)(?:|\/\?)/,a=/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/,r=o,l=o,d=o.match(a),c=o.match(s);return d&&11==d[2].length?(t("https://www.youtube-nocookie.com/embed/",d[2]),!0):c&&c[4]?(t("https://player.vimeo.com/video/",c[4]),!0):r.includes("amazonaws")?(i(r),!0):!(!l.includes("/rails/active_storage/blobs")&&!l.includes("/proxy_blobs/"))&&(n(l),!0)}var t,i;$(".video-handler").length>0&&(console.log("handled!"),$("body").append('<div id="video-handler_modal" class="video-modal"></div>'),$(".video-modal").append('<div class="video-modal-container"></div><button class="video-modal-close"><span>close modal</span></button><span class="video-modal-overlay"></span>'),$(".video-handler").click(function(n){n.preventDefault(),i=t,t=$(this).attr("data-video"),i!=t?e(t)?($(".video-modal-close, .video-modal-overlay").click(function(){$(".video-modal-container video").length>0?($(".video-modal-container video").get(0).pause(),$(".video-modal-container video").get(0).currentTime="0"):$(".video-modal-container").empty(),$(".video-modal").removeClass("launched")}),$("#video-handler_modal.video-modal").addClass("launched")):alert("Sorry, the video is not supported"):($("#video-handler_modal.video-modal").addClass("launched"),$(".video-modal-container video").length>0?$(".video-modal-container video").get(0).play():e(t)?($(".video-modal-close, .video-modal-overlay").click(function(){$(".video-modal-container video").length>0?($(".video-modal-container video").get(0).pause(),$(".video-modal-container video").get(0).currentTime="0"):$(".video-modal-container").empty(),$(".video-modal").removeClass("launched")}),$("#video-handler_modal.video-modal").addClass("launched")):alert("Sorry, the video is not supported"))}))});
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.