1/*! 2 * Isotope PACKAGED v3.0.6 3 * 4 * Licensed GPLv3 for open source use 5 * or Isotope Commercial License for commercial use 6 * 7 * https://isotope.metafizzy.co 8 * Copyright 2010-2018 Metafizzy 9 */ 10function 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 hasDisplayNone(e){return $(e).filter(function(){return"none"===$(this).css("display")}).length>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,a){function l(e,t,n){var o,s="$()."+i+'("'+t+'")';return e.each(function(e,l){var d=a.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 r(s+" is not a valid method")}else r(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=a.data(n,i);o?(o.option(t),o._init()):(o=new s(n,t),a.data(n,i,o))})}(a=a||t||e.jQuery)&&(s.prototype.option||(s.prototype.option=function(e){a.isPlainObject(e)&&(this.options=a.extend(!0,this.options,e))}),a.fn[i]=function(e){return"string"==typeof e?l(this,e,o.call(arguments,1
vendor: 3,650 bytes, line 10
10)):(d(this,e),this)},n(a))}function n(e){!e||e&&e.bridget||(e.bridget=i)}var o=Array.prototype.slice,s=e.console,r=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||a("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);r=200==Math.round(e(o.width)),s.isBoxSizeOuter=r,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 a={};a.width=t.offsetWidth,a.height=t.offsetHeight;for(var c=a.isBorderBox="border-box"==s.boxSizing,u=0;u<d;u++){var h=l[u],p=s[h],f=parseFloat(p);a[h]=isNaN(f)?0:f}var m=a.paddingLeft+a.paddingRight,g=a.paddingTop+a.paddingBottom,v=a.marginLeft+a.marginRight,y=a.marginTop+a.marginBottom,_=a.borderLeftWidth+a.borderRightWidth,w=a.borderTopWidth+a.borderBottomWidth,b=c&&r,$=e(s.width);!1!==$&&(a.width=$+(b?0:m+_));var S=e(s.height);return!1!==S&&(a.height=S+(b?0:g+w)),a.innerWidth=a.width-(m+_),a.innerHeight=a.height-(g+w),a.outerWidth=a.width+v,a.outerHeight=a.height+y,a}}var r,a="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",["de
10sandro-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),r="data-"+s,a=document.querySelectorAll("["+r+"]"),l=document.querySelectorAll(".js-"+s),d=i.makeArray(a).concat(i.makeArray(l)),c=r+"-options",u=e.jQuery;d.forEach(function(e){var i,s=e.getAttribute(r)||e.getAttribute(c);try{i=s&&JSON.parse(s)}catch(t){return void(o&&o.error("Error parsing "+r+" on "+e.className+": "+t))}var a=new t(e,i);u&&u.data(e,n,a)})})},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,r="string"==typeof s.transition?"transition":"WebkitTransition",a="string"==typeof s.transform?"transform":"WebkitTransform",l={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[r],d={transform:a,transition:r,transitionDuration:r+"Duration",transitionProperty:r+"Property",transitionDelay:r+"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":"right"],o=e[i?"top":"bottom"],s=parseFloat(n),r=parseFloat(o),a=this.layout.size;-1!=n.indexOf("%")&&(s=s/100*a.width),-1!=o.indexOf("%")&&(r=r/100*a.height),s=isNaN(s)?0:s,r=isNaN(r)?0:r,s-=t?a.paddingLeft:a.paddingRight,r-=i?a.paddingTop:a.paddingBottom,this.position.x=s,this.position.y=r},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",r=i?"right":"left",a=this.position.x+e[o];t[s]=this.getXValue(a),t[r]="";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,r=t-n,a={};a.transform=this.getTranslate(s,r),this.transition({to:a,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(a);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 r&&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);
vendor: 4,162 bytes, line 10
10if(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 r(e){function t(){e.apply(this,arguments)}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t}function a(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=a(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(){++r==s&&i()}var o=this,s=t.length;if(t&&s){var r=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: 13,955 bytes, lines 10-11
10else 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=r(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=r(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,this.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);return 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,r=n-o%n;s=Math[r&&r<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,r=i+n.col,a=n.col;a<r;a++)this.colYs[a]=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")?n.left:n.right,s=o+i.outerWidth,r=Math.floor(o/this.columnWidth);r=Math.max(0,r);var a=Math.floor(s/this.columnWidth);a-=s%this.columnWidth?0:1,a=Math.min(this.cols-1,a);for(var l=(this._getOption("originTop")?n.top:n.bottom)+i.outerHeight,d=r;d<=a;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 r=n.measureColumns;n.measureColumns=function(){this.items=this.isotope.filteredItems,r.call(this)};var a=n._getOption;return n._getOption=function(e){return"fitWidth"==e?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:a.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,r,a){return t(e,i,n,o,s,r,a)}):"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,r){function a(e,t){return function(i,n){for(var o=0;o<e.length;o++){var s=e[o],r=i.sortData[s],a=n.sortData[s];if(r>a||r<a)return(r>a?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=r;var u=c.prototype;u._create=function(){ 11for(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"],r.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=r.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()}
11),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),r=0;r<e.length;r++){var a=e[r];if(!a.isIgnored){var l=s(a);l&&i.push(a),l&&a.isHidden?n.push(a):l||a.isHidden||o.push(a)}}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),r=c.sortDataParsers[i[1]];return r?function(e){return e&&r(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=a(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}),$.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>"),r=$("<div class='eventsCalendar-currentTitle'><a href='#' class='monthTitle'></a></div>"),a=$("<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(r,$eventsCalendarDaysList),"current"===e)day=date.getDate(),n.append(a);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),r.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(r){c.eventsJson=r,s(c.eventsJson,e,t,i,n,o)}).error(function(){a("error getting json: ")}),n>""&&(c.wrap.find(".current").removeClass("current"),c.wrap.find("#dayList_"+n).addClass("current"))}function s(e,i,o,s,r,a){directionLeftMove="-="+c.directionLeftMove,eventContentHeight="auto",subtitle=c.wrap.find(".eventsCalendar-list-wrap .eventsCalendar-subtitle"),a?(""!=r?subtitle.html(d.txt_SpecificEvents_prev+n(r)+" "+d.monthNames[s]+" "+d.txt_SpecificEvents_after):subtitle.html(d.txt_SpecificEvents_prev+d.monthNames[s]+" "+d.txt_SpecificEvents_after),"prev"===a?directionLeftMove="+="+c.directionLeftMove:"day"!==a&&"month"!==a||(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=[];
11if((e=$(e).sort(t)).length){var a="";d.showDescription||(a="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,_=f[0],w=f[1],b=f[2];p=new Date(m,g,v,_,w,b)}else m=(p=new Date(parseInt(t.date))).getFullYear(),g=p.getMonth(),v=p.getDate(),y=g+1,_=p.getHours(),w=p.getMinutes();if(parseInt(w)<=9&&(w="0"+parseInt(w)),(0===i||i>u)&&!(!1!==s&&s!=g||""!=r&&r!=v||""!=o&&o!=m))if(!1===s&&p<new Date);else{eventStringDate=v+"/"+y+"/"+m;var $='<h4 class="eventTitle">'+t.title+"</h4>";if(t.url)var S='<a href="'+t.url+'" target="'+l+'" class="">',T="</a>";n.push('<li id="'+e+'" class="">'+S+'<time datetime="'+p+'"><em>'+eventStringDate+"</em><small>"+_+":"+w+"</small></time>"+$+'<div class="eventDesc '+a+'">'+t.description+"</div><i class='fa fa-plus-square'></i>"+T+"</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 r(){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 a(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),r(),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","Friday","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}
11,document.addEventListener("DOMContentLoaded",function(){$(".sub-banner").length||$(".main-banner").length||$(".header").hasClass("header__fixed")&&$("#content").addClass("mtop"),$("#controller").length||$(".header").hasClass("pt-top")&&$(".header").removeClass("pt-top"),$(window).on("load scroll resize orientationchange",function(){$(this).scrollTop()>100?$("[id^=header]").addClass("sticky"):$("[id^=header]").removeClass("sticky")}),$("#mobile-nav").mmenu({extensions:["theme-dark","pagedim-black","shadow-page","position-right","fx-menu-slide","fx-panels-slide-up"]}),$("#menu-trigger_custom").click(function(e){e.preventDefault(),$(this).toggleClass("active"),$("#menu").fadeToggle(),$(this).hasClass("active")?($("body").addClass("no-scroll"),$("#Header-100").addClass("menu-opened")):($("body").removeClass("no-scroll"),$("#Header-100").removeClass("menu-opened"))}),$("#Header-100 #custom_menu_wrapper .parent").click(function(e){$(e.target).is("a")||(console.log("Clicked on parent element"),$(this).toggleClass("expand"),$(".child-list",this).slideToggle("fast"))}
11),$(".menu-trigger").click(function(){var e=$(".menu_open_text");"Close"===e.text()?e.text("Menu"):e.text("Close")})}),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,r=window.pageYOffset,a=window.innerHeight;o+s>r+.1*a&&o<r+a&&(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");
11var 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"),r=$("#latest-testimonials_100 .testimonial__slider").attr("data-autoplay-speed"),a=$("#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:a?$(`#latest-testimonials_100 .${a}`):$("#latest-testimonials_100 .testimonial__slider"),fade:!!l&&!(i>1),swipe:o,autoplay:s,autoplaySpeed:r,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}}]})}),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).ready(function(){$("#template-consultant_102 .consultant-discipline").length>0&&($("body.edit").length||(str=$(".consultant-discipline").html(),""===$.trim(str)&&$(".consultant-discipline").hide()))}),document.addEventListener("DOMContentLoaded",function(){var e=Number($("#latest-blogs_100 .items__slider").attr("data-slides")),t="true"===$("#latest-blogs_100 .items__slider").attr("data-arrows"),i="true"===$("#latest-blogs_100 .items__slider").attr("data-dots"),n="true"===$("#latest-blogs_100 .items__slider").attr("data-infinite"),o="true"===$("#latest-blogs_100 .items__slider").attr("data-carousel"),s=$(".progress"),r=$(".slider__label");$("#latest-blogs_100 .items__slider").on("beforeChange",function(e,t,i,n){var o=n/(t.slideCount-1)*100;s.css("background-size",o+"% 100%").attr("aria-valuenow",o),r.text(o+"% completed")}),$("#latest-blogs_100 .items__slider").slick({slidesToShow:e,slidesToScroll:1,infinite:n,autoplaySpeed:5e3,arrows:t,dots:i,autoplay:o,prevArrow:$("#latest-blogs_100 .slide-m-prev"),nextArrow:$("#latest-blogs_100 .slide-m-next"),responsive:[{breakpoint:999,settings:{slidesToShow:e<=1?1:e>2?3:2,slidesToScroll:1}},{breakpoint:800,settings:{slidesToShow:e<=1?1:e>2?3:2,slidesToScroll:1}},{breakpoint:569,settings:{slidesToShow:1,slidesToScroll:1}}]})}),$(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}
11function 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,r,a={};o.isotope({itemSelector:".item",columnWidth:".item",percentPosition:!0,layoutMode:"fitRows",filter:function(){var e=$(this),t=!s||e.text().match(s),i=!r||e.is(r);return t&&i}});const l=window.location.search,d=new URLSearchParams(l);if(null!==d.get("discipline")){r="."+d.get("discipline"),o.isotope({filter:r});var c=$('.filter-select option[value*="'+r+'"]').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");r=$(this).val(),a[e]=r;var i=t(a);o.isotope({filter:i})}
11),$(".filter-btn").click(function(){var e=$(this).attr("data-filter-group");r=$(this).val(),a[e]=r;var i=t(a);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"),r=o.find("option:not(:first)").sort(n);o.empty().append(s).append(r),o.find("option").each(function(){$(this).siblings('[value="'+this.value+'"]').remove()})}}),document.addEventListener("DOMContentLoaded",function(){var e="true"===$("#latest-jobs_100 .jobs__slider").attr("data-dots"),t="true"===$("#latest-jobs_100 .jobs__slider").attr("data-arrows")||"true"===$(".slider-nav").attr("data-arrows"),i=Number($("#latest-jobs_100 .jobs__slider").attr("data-slides")),n=$("#latest-jobs_100 .jobs__slider").attr("data-scroll"),o=Number($("#latest-jobs_100 .jobs__slider").attr("data-speed")),s="true"===$("#latest-jobs_100 .jobs__slider").attr("data-infinite"),r="true"===$("#latest-jobs_100 .jobs__slider").attr("data-autoplay"),a=parseInt(n,10);$("#latest-jobs_100 .jobs__slider").slick({infinite:s,autoplay:r,autoplaySpeed:o,adaptiveHeight:!1,dots:e,arrows:t,slidesToShow:i,margin:20,prevArrow:$("#latest-jobs_100 .job-prev-slide"),nextArrow:$("#latest-jobs_100 .job-next-slide"),slidesToScroll:a,responsive:[{breakpoint:1280,settings:{slidesToShow:3,slidesToScroll:1}},{breakpoint:999,settings:{slidesToShow:2,slidesToScroll:1}},{breakpoint:640,settings:{slidesToShow:1,slidesToScroll:1}}]})}),window.addEventListener("DOMContentLoaded",function(){if($("#latest-clients_100 .clients__slider").length>0){var e=Number($("#latest-clients_100 .clients__slider").attr("data-slides")),t="true"===$("#latest-clients_100 .clients__slider").attr("data-arrows"),i="true"===$("#latest-clients_100 .clients__slider").attr("data-dots"),n="true"===$("#latest-clients_100 .clients__slider").attr("data-autoplay"),o=($("#latest-clients_100 .clients__slider").attr("data-scroll"),Number($("#latest-clients_100 .clients__slider").attr("data-autoplayspeed"))),s=Number($("#latest-clients_100 .clients__slider").attr("data-speed"));console.log(e),$("#latest-clients_100 .clients__slider").slick({slidesToShow:e<1?1:e,slidesToScroll:1,autoplay:n,autoplaySpeed:o,speed:s,cssEase:"linear",pauseOnHover:!0,pauseOnFocus:!0,draggable:!1,swipe:!1,infinite:!0,arrows:t,dots:i,responsive:[{breakpoint:1025,settings:{slidesToShow:e>4?4:e,slidesToScroll:1}},{breakpoint:992,settings:{slidesToShow:e>3?3:e,slidesToScroll:1}},{breakpoint:769,settings:{slidesToShow:e>2?2:e,slidesToScroll:1}},{breakpoint:576,settings:{slidesToShow:1,slidesToScroll:1}}]})}}),document.addEventListener("DOMContentLoaded",function(){$("body").on("click",".btn.linkedin",function(){$(".connecting-loader").stop().fadeIn(200)})}),document.addEventListener("DOMContentLoaded",function(){$("#new_job_application").length>0&&0!==$("#first-name").val().length&&($(".social-login.linkedin").hide(),$(".line-divider").hide())}),$(document).ready(function(){/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),$("#template-job_100 #sticky-apply").length>
110&&($(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)))}),window.addEventListener("DOMContentLoaded",function(){var e=$("#image-gallery_100 .img-gallery__slider").attr("data-slides"),t="true"===$("#image-gallery_100 .img-gallery__slider").attr("data-arrows"),i="true"===$("#image-gallery_100 .img-gallery__slider").attr("data-dots");$("#image-gallery_100 .img-gallery__slider").slick({slidesToShow:e,slidesToScroll:1,arrows:t,dots:i,autoplay:!0,responsive:[{breakpoint:1024,settings:{slidesToShow:2,slidesToScroll:1}},{breakpoint:999,settings:{slidesToShow:2,slidesToScroll:1}},{breakpoint:640,settings:{slidesToShow:1,slidesToScroll:1}}]})}),$(document).ready(function(){$("#template-branch_100 .branch-discipline").length>0&&($("body.edit").length||(str=$(".branch-discipline").html(),""===$.trim(str)&&$(".branch-discipline").hide()))}),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","false"),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),$("#events-calendar").length>0&&$("#events-calendar > div").eventCalendar({eventsjson:"/api/v1/events.json?per_page=100",eventsLimit:3,moveOpacity:0,showDescription:!1}),$("#events-calendar-mini").length>0&&$("#events-calendar-mini > div").eventCalendar({eventsjson:"/api/v1/events.json?per_page=100",eventsLimit:10,moveOpacity:1,showDescription:!1}),$(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=$
11(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>")}}),document.addEventListener("DOMContentLoaded",function(){/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent);jQuery.fn.exists=function(){return this.length>0}, 12$("body").hasClass("edit")||(""===$.trim($("#general-content_102 .header .title").text())&&$("#general-content_102 .header").hide(),""===$.trim($("#general-content_102 .cta-content-below").text())&&$("#general-content_102 .cta-content-below").hide())}),window.addEventListener("load",function(){$("#Count-Up-Content-100 .items__slider").slick({arrows:!0,dots:!1,infinite:!0,speed:1e3,autoplaySpeed:4e3,autoplay:!0,slidesToShow:4,slidesToScroll:2,prevArrow:$("#Count-Up-Content-100 .prev-slide"),nextArrow:$("#Count-Up-Content-100 .next-slide"),responsive:[{breakpoint:820,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:430,settings:{slidesToShow:1,slidesToScroll:1}}]})}),window.addEventListener("load",function(){function e(){var e=document.getElementById("tab-selector").value;document.querySelectorAll(".tab-content").forEach(function(e){e.classList.remove("active")});var t=document.getElementById(e);t&&t.classList.add("active")}var t=document.getElementById("tab-selector");t&&t.addEventListener("change",e),document.addEventListener("DOMContentLoaded",function(){var e=document.getElementById("tab1_form");e&&e.classList.add("active")}),e()}),window.addEventListener("load",function(){$(this).scrollTop()>100&&$("#Header-100").addClass("sticky"),$(window).scroll(function(){$(this).scrollTop()>100?$("#Header-100").addClass("sticky"):$("#Header-100").removeClass("sticky")}),($("#menu .menu-item:last-child").text().indexOf("Level Up")>=0||$("#menu .menu-item:last-child").text().indexOf("Discovered"))&&$("#menu .menu-item:last-child").addClass("level-up"),$("#menu-trigger").click(function(e){e.preventDefault(),$(this).toggleClass("active"),$("#menu").fadeToggle(),$(this).hasClass("active")?($("body").addClass("no-scroll"),$("#Header-100").addClass("menu-opened")):($("body").removeClass("no-scroll"),$("#Header-100").removeClass("menu-opened"))}),$(document).on("keyup",function(e){9===e.keyCode&&console.log("Tab key is pressed")})}),window.addEventListener("load",function(){if(document.querySelector(".tab")){const e=document.querySelectorAll(".tab"),t=document.querySelectorAll(".tab-content");e[0].classList.add("active"),t[0].classList.add("active"),e.forEach(i=>{i.addEventListener("click",function(){const i=this.getAttribute("data-tab");e.forEach(e=>e.classList.toggle("active",e===this)),t.forEach(e=>e.classList.toggle("active",e.id===i))})})}}),document.addEventListener("DOMContentLoaded",function(){$(window).bind("load resize orientationchange",function(){$(window).width()<992&&($("#latest-featured-candidates_100 header.line .title").removeClass("left"),$("#latest-featured-candidates_100 header.line .title").removeClass("right"),$("#latest-featured-candidates_100 header.line .title").addClass("center"))});var e="true"===$("#latest-featured-candidates_100 .candidates__slider").attr("data-dots"),t="true"===$("#latest-featured-candidates_100 .candidates__slider").attr("data-arrows"),i=$("#latest-featured-candidates_100 .candidates__slider").attr("data-sli
12des");$("#latest-featured-candidates_100 .candidates__slider").attr("autoplay-speed");$("#latest-featured-candidates_100 .candidates__slider").slick({infinite:!0,autoplay:!0,speed:1e3,pauseOnHover:!1,focusOnSelect:!0,adaptiveHeight:!1,dots:e,arrows:t,slidesToShow:i,slidesToScroll:1,responsive:[{breakpoint:1170,settings:{slidesToShow:2,slidesToScroll:1}},{breakpoint:640,settings:{slidesToShow:1,slidesToScroll:1}}]})}),window.addEventListener("load",function(){$("#Latest-Testimonials-100 .items__slider").attr("data-slides"),$("#Latest-Testimonials-100 .items__slider").attr("data-arrows"),$("#Latest-Testimonials-100 .dots-wrapper");$("#Latest-Testimonials-100 .items__slider").slick({arrows:!1,dots:!1,infinite:!0,speed:1e3,autoplaySpeed:3e3,slidesToShow:3,slidesToScroll:1,autoplay:!0,responsive:[{breakpoint:1170,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:430,settings:{slidesToShow:1,slidesToScroll:1,adaptiveHeight:!0,fade:!0}}]})}),window.addEventListener("DOMContentLoaded",function(){function e(e){return $(e).data("value")}$("#Latest-Jobs-200 .items__slider").slick({dots:!1,arrows:!1,infinite:!0,autoplay:!0,autoplaySpeed:3e3,slidesToShow:3,slidesToScroll:1,responsive:[{breakpoint:1170,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:430,settings:{slidesToShow:1,slidesToScroll:1}}]}),$("#Latest-Jobs-200 .filter_dropdown .tag-name").on("click",function(){let t=e(this);console.log(t),$("#Latest-Jobs-200 .items__slider").slick("slickUnfilter"),$("#Latest-Jobs-200 .items__slider").slick("slickFilter",t)})}),document.addEventListener("DOMContentLoaded",function(){function e(){if(this.files){var e=this.files;console.log(e[0]),t(e)}}function t(e){var t=new FileReader;t.readAsText(e[0],"ISO-8859-1"),t.addEventListener("loadend",function(){i(t.result)})}function i(e){var t=Papa.parse(e,{header:!0}).data.filter(function(e){return!e.delete}).map(function(e){return{location:e.Location,jobType:e["Job Type"],industry:e.Industry,salary:e.Salary}}),i=document.querySelector("#salary-data-json .od_lava_text");i.innerHTML='<code id="salary-json-string">'+JSON.stringify(t)+"</code>",i.classList.add("od_not_saved"),save_all_dirty_editors()}/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent);jQuery.fn.exists=function(){return this.length>0};var n=document.getElementById("csvUpload");if(n&&n.addEventListener("change",e,!1),$("#salary-data-json #salary-json-string").exists()){var o=JSON.parse($("#salary-data-json #salary-json-string").text());const e='<option value="" selected>Select your location</option>',t='<option value="" selected>Select your job type</option>';
12var s=$("#locationSelect"),r=$("#jobTypeSelect"),a=$("#industryInput"),l=$("#industrySuggestions");s.append(e),r.append(t);var d={},c={},u=[];$.each(o,function(e,t){var i=t.location,n=t.jobType,o=t.industry;i&&!d[i]&&(s.append('<option value="'+i+'">'+i+"</option>"),d[i]=!0),n&&!c[n]&&(r.append('<option value="'+n+'">'+n+"</option>"),c[n]=!0),o&&-1===$.inArray(o,u)&&u.push(o)}),s.on("change",function(){var e=$(this).val();console.log("Selected Location: "+e)}),r.on("change",function(){var e=$(this).val();console.log("Selected Job Type: "+e)}),a.on("input",function(){var e=$(this).val().toLowerCase();(l.empty(),e.length>0)&&u.filter(function(t){return t.toLowerCase().includes(e)}).forEach(function(e){l.append('<div class="autocomplete-suggestion">'+e+"</div>")})}),l.on("click",".autocomplete-suggestion",function(){a.val($(this).text()),l.empty()}),$("#searchButton").on("click",function(){var e=s.val(),t=r.val(),i=a.val();$(".display_wrapper").css("display","block");var n=$("#resultsTableBody");n.empty();var l=o.filter(function(n){var o=!e||n.location&&n.location===e,s=!t||n.jobType&&n.jobType===t,r=!i||n.industry&&n.industry===i;return o&&s&&r});l.length>0?$.each(l,function(e,t){if(t.industry&&t.salary){var i="<tr><td>"+t.industry+"</td><td>"+t.salary+"</td></tr>";n.append(i)}}):console.log("No results found matching the selected criteria.")})}}),window.addEventListener("load",function(){$("#Latest-Testimonials-200 .items__slider").attr("data-slides"),$("#Latest-Testimonials-100 .items__slider").attr("data-arrows"),$("#Latest-Testimonials-100 .dots-wrapper");$("#Latest-Testimonials-200 .items__slider").slick({arrows:!0,dots:!1,infinite:!0,speed:1e3,autoplaySpeed:3e3,slidesToShow:1,slidesToScroll:1,fade:!0,autoplay:!0,adaptiveHeight:!0,prevArrow:$("#Latest-Testimonials-200 .prev-slide"),nextArrow:$("#Latest-Testimonials-200 .next-slide")})}),window.addEventListener("DOMContentLoaded",function(){$("#Latest-Jobs-100 .items__slider").slick({dots:!1,arrows:!1,infinite:!0,autoplay:!0,autoplaySpeed:3e3,slidesToShow:3,slidesToScroll:1,responsive:[{breakpoint:1170,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:430,settings:{slidesToShow:1,slidesToScroll:1}}]})}),window.addEventListener("load",function(){$("#Latest-Blogs-100 .items__slider").slick({arrows:!1,dots:!1,infinite:!0,speed:1e3,autoplaySpeed:4e3,autoplay:!0,slidesToShow:2,slidesToScroll:1,responsive:[{breakpoint:820,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:430,settings:{slidesToShow:1,slidesToScroll:1}}]})}),document.addEventListener("DOMContentLoaded",function(){$("#latest-clients-100 .clients__slider").slick({dots:!1,arrows:!1,infinite:!0,autoplay:!0,autoplaySpeed:3e3,slidesToShow:5,slidesToScroll:1,responsive:[{breakpoint:1170,settings:{slidesToShow:3,slidesToScroll:1}},{breakpoint:430,settings:{slidesToShow:1,slidesToScroll:1}}]})}),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,r=window.pageYOffset,a=window.innerHeight;o+s>r+.1*a&&o<r+a&&(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.body.classList.contains("edit")||(document.querySelectorAll("section.gen-content").forEach(e=>{const t=e.querySelector(".content-info__text");if(!t)return;const i=t.textContent.trim().length>0,n=t.querySelector("img, video, iframe, svg");i||n||(e.style.display="none")}),$(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",".video-modal-close, .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");
12var e=$(this).attr("data-video"),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).ready(function(){const e=$("#general-content_100 #video.video-btn");e.length&&!e.data("video")&&e.hide()}),document.addEventListener("DOMContentLoaded",function(){/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent);if(jQuery.fn.exists=function(){return this.length>0},$("#stats_100").length){var e=0,t=0;$(window).scroll(function(){var i=$("#stats_100").offset().top-window.innerHeight,n=i+$("#stats_100").outerHeight(!0)+window.innerHeight;($(this).scrollTop()>n||$(this).scrollTop()<i)&&(t=0),0===e&&0===t&&$(this).scrollTop()>i&&($(".count-up").children().each(function(){let e=$(this),i=e.text().replace(",","");$.isNumeric(i)&&jQuery({Counter:0}).animate({Counter:i},{duration:2e3,easing:"swing",step:function(){e.text(Math.ceil(this.Counter).toLocaleString("en"))},complete:function(){e.text(Number(i).toLocaleString("en")),t=1}})}),e=1)});var i=document.querySelectorAll("#stats_100 ul.content"),n=document.querySelectorAll("#stats_100 .header");i.forEach(e=>{if(!$("body").hasClass("edit")){let t=$(e).find("article");t.length>0&&t.children().length<1&&$(e).hide()}}),n.forEach(e=>{if(!$("body").hasClass("edit")){$(e).find(".title").children().length<1&&$(e).hide()}}),hasDisplayNone(i)&&hasDisplayNone(n)&&$("#stats_100").hide()}}),document.addEventListener("DOMContentLoaded",function(){var e=$
12("#latest-consultants-111 .consultants__slider").attr("data-slides"),t="true"===$("#latest-consultants-111 .consultants__slider").attr("data-dots"),i="true"===$("#latest-consultants-111 .consultants__slider").attr("data-arrows");$("#latest-consultants-111 .consultants__slider").slick({autoplay:!0,infinite:!0,variableWidth:!1,adaptiveHeight:!0,autoplaySpeed:5e3,speed:900,slidesToShow:e,slidesToScroll:1,dots:t,arrows:i,responsive:[{breakpoint:991,settings:{slidesToShow:1,slidesToScroll:1,dots:!1,arrows:!0}}]})}),document.addEventListener("DOMContentLoaded",function(){if(!$("body.edit").length&&($("#typed-strings span").each(function(){""===$(this).html().trim()&&$(this).remove()}),$("#typed").length))new Typed("#typed",{stringsElement:"#typed-strings",typeSpeed:25,backSpeed:40,backDelay:1500,startDelay:1e3,showCursor:!1,loop:!0});$("#main-banner-100 .banner__slider").slick({slidesToShow:1,slidesToScroll:1,pauseOnHover:!1,fade:!0,autoplay:!0,autoplaySpeed:3e3,speed:1800,dots:!1,arrows:!1,cssEase:"cubic-bezier(0.7, 0, 0.3, 1)",asNavFor:".tag-line__slider"}),$("#main-banner-100 .tag-line__slider").slick({slidesToShow:1,slidesToScroll:1,pauseOnHover:!1,fade:!0,autoplay:!0,autoplaySpeed:3e3,speed:1800,dots:!1,arrows:!1,cssEase:"cubic-bezier(0.7, 0, 0.3, 1)",asNavFor:".banner__slider"})}),document.addEventListener("DOMContentLoaded",function(){/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent);jQuery.fn.exists=function(){return this.length>0},$("body").hasClass("edit")||""!==$.trim($("#template-general_100 .content__main").html())||$("#template-general_100").hide()}),document.addEventListener("DOMContentLoaded",function(){var e=$
12("#latest-blogs-119 .blogs__slider").attr("data-slides"),t="true"===$("#latest-blogs-119 .blogs__slider").attr("data-arrows"),i="true"===$("#latest-blogs-119 .blogs__slider").attr("data-dots");$("#latest-blogs-119 .blogs__slider").slick({infinite:!0,autoplay:!0,speed:900,autoplaySpeed:5e3,dots:i,arrows:t,slidesToShow:e,slidesToScroll:1,cssEase:"linear",responsive:[{breakpoint:1280,settings:{slidesToShow:3,slidesToScroll:1}},{breakpoint:991,settings:{slidesToShow:2,slidesToScroll:1}},{breakpoint:768,settings:{slidesToShow:1,slidesToScroll:1,dots:!1,arrows:!0}}]})}),window.addEventListener("load",function(){if(document.querySelector("#Latest-Blogs-200")){var e,t;console.log("Started");var i=$(".items").isotope({itemSelector:".item",columnWidth:".grid-sizer",percentPosition:!0,layoutMode:"fitRows",filter:function(){var i=$(this),n=!e||i.text().match(e),o=!t||i.is(t);return n&&o}});$(".filter-buttons").on("click","button",function(){var e=$(this).attr("data-filter");i.isotope({filter:e})}),$(".filter-select").on("change",function(){t=$(this).val(),console.log(t)});var n=$("#quicksearch").keyup(o(function(){e=new RegExp(n.val(),"gi"),console.log(t),i.isotope(),l(s)}));function o(e,t){var i;return function(){function n(){e(),i=null}i&&clearTimeout(i),setTimeout(n,t||100)}}var s=4,r=s,a=i.data("isotope");function l(e){i.find(".hidden").removeClass("hidden");var t=a.filteredItems.slice(e,a.filteredItems.length).map(function(e){return e.element});$(t).addClass("hidden"),i.isotope("layout"),0==t.length?$("#load-more").hide():$("#load-more").show()}l(s),i.after('<div class="margin-top-30 text-center"><button id="load-more" class="btn btn-primary margin-top-5"> Load More</button></div>'),$("#load-more").click(function(){$("#filters").data("clicked")&&(r=s,j$("#filters").data("clicked",!1)),l(r+=s)})}}),window.addEventListener("load",function(){$("#Gallery-100 .images__slider").attr("data-slides");$("#Gallery-100 .images__slider").slick({infinite:!0,autoplay:!0,autoplaySpeed:3e3,infinite:!0,slidesToShow:5,slidesToScroll:1,arrows:!1,pauseOnHover:!0,pauseOnFocus:!0,cssEase:"linear",responsive:[{breakpoint:769,settings:{slidesToShow:2}},{breakpoint:430,settings:{slidesToShow:2}}]})}),document.addEventListener("DOMContentLoaded",function(){!$("body.edit").length>0&&$("#cta-block_100").height()<30&&$("#cta-block_100").hide()}),document.addEventListener("DOMContentLoaded",function(){var e=$
12("#latest-disciplines-111 .disciplines-wrapper .disciplines__slider").attr("data-slides"),t=Number($("#latest-disciplines-111 .disciplines-wrapper .disciplines__slider").attr("data-speed")),i="true"===$("#latest-disciplines-111 .disciplines-wrapper .disciplines__slider").attr("data-dots"),n="true"===$("#latest-disciplines-111 .disciplines-wrapper .disciplines__slider").attr("data-arrow");$("#latest-disciplines-111 .disciplines-wrapper .disciplines__slider").hasClass("customize-arrow")?$("#latest-disciplines-111 .disciplines-wrapper .disciplines__slider.customize-arrow").slick({autoplay:!0,autoplaySpeed:t,adaptiveHeight:!0,dots:i,arrows:n,slidesToShow:e,slidesToScroll:1,prevArrow:$("#latest-disciplines-111 .disciplines-wrapper .slider-arrows .slide-prev"),nextArrow:$("#latest-disciplines-111 .disciplines-wrapper .slider-arrows .slide-next"),responsive:[{breakpoint:1280,settings:{slidesToShow:3,slidesToScroll:1}},{breakpoint:992,settings:{slidesToShow:2,slidesToScroll:1}},{breakpoint:768,settings:{slidesToShow:1,slidesToScroll:1}}]}):$("#latest-disciplines-111 .disciplines-wrapper .disciplines__slider").slick({autoplay:!0,autoplaySpeed:t,adaptiveHeight:!1,dots:i,arrows:n,slidesToShow:e,slidesToScroll:1,responsive:[{breakpoint:1280,settings:{slidesToShow:3,slidesToScroll:1}},{breakpoint:992,settings:{slidesToShow:2,slidesToScroll:1}},{breakpoint:768,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.addEventListener("DOMContentLoaded",function(){/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent);jQuery.fn.exists=function(){return this.length>0},$("body").on("click",".linkedin",function(){$(".connecting-loader").stop().fadeIn(200)}),$("#menu").mmenu({extensions:["theme-dark","pagedim-black","shadow-page","position-right","fx-menu-slide","fx-panels-slide-up","fx-listitems-slide"]}),objectFitImages(),$("#header #main-nav ul.navigation_list > li").find("> a").each(function(){"#"==$(this).attr("href").charAt(0)&&$(this).click(function(){return!1})}),$("#query, #search_query").exists()&&$("#query, #search_query").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}}),$(".redirect select").change(function(e){var t=this.value;""!==t&&(document.location.href=t),e.preventDefault()});var e=$("table thead tr th").size();for(j=0;j<=e;j++){var t=$(" table thead th:nth-child("+j+")").text();$("table tr td:nth-child("+j+")").replaceWith(function(){return $('<td data-title="'+t+'">').append($(this).contents())})}if($(window).scroll(function(){$(this).scrollTop()>100?$("#header").addClass("sticky"):$("#header").removeClass("sticky")}),$("#inline-search").exists()){var i=$("#inline-search");$("#inline-search").height(i.height()),$(window).scroll(function(){$(window).scrollTop()>200?(i.addClass("ontop"),$("#mainBannerContent").addClass("search-ontop")):(i.removeClass("ontop"),$("#mainBannerContent").removeClass("search-ontop"))})}if($("#header").hasClass("h__fixed")&&$("#content, #haml-structure").addClass("mtop"),document.querySelector("#general_content_local")){let e=document.querySelector("#general_content_local .grid");null!=e.innerText&&""!=e.innerText&&" "!=e.innerText||(e.parentElement.style.display="none")}}),$(function(){$("a[href*='#']:not([href='#menu']):not(.submenu >
12 .mm-listitem__btn):not(.mm-btn.mm-btn_prev.mm-navbar__btn):not([href='#mm-0']):not([href='#sticky-apply']):not([href='#filter-sidebar'])").click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var e=$(this.hash);if((e=e.length?e:$("[name="+this.hash.slice(1)+"]")).length)return $("html, body").animate({scrollTop:e.offset().top-250},1e3),!1}})}),$(document).ajaxComplete(function(){$(".dynamic-form").removeClass("loader"),$(".dynamic-form .actions .btn").click(function(){var e=$("#header").outerHeight()+100;$(this).parentsUntil(".dynamic-form").parent().addClass("loader"),$(this).parentsUntil(".dynamic-form").children("form").append("<div class='loader-icon form'></div>"),$("html, body").animate({scrollTop:$(this).parentsUntil(".dynamic-form").parent().offset().top-e-60},300)})}),function(e){"use strict";function t(){function t(e){e=e||{},l=Object.assign({},a,e);var t=document.querySelectorAll(".mayon-counter");if(t.length){var n;for(n=0;n<t.length;n++)i(t[n]);o(t)}}function i(e){e.style.display="inline-block",e.style.textAlign="right";var t=s(e);t&&(e._numberNode=t,e._originalValue=t.nodeValue.trim(),l.fixedWidth&&(e.style.minWidth=e.offsetWidth+"px"),t.nodeValue=l.beginsWith)}function n(e){function t(n){var s=Math.min((n-d)/l.duration,1),r=a+(o-a)*s;i.nodeValue=r.toLocaleString(l.locale,c),s<1?requestAnimationFrame(t):(i.nodeValue=o.toLocaleString(l.locale,c),e.style.minWidth="")}var i=e._numberNode;if(i){var n=e._originalValue.replace(/,/g,"").replace(/[\u200B-\u200D\uFEFF]/g,"");if(!isNaN(n)){var o=Number(n),s=n.split("."),r=s.length>1?s[1].length:0,a=Number(l.beginsWith),d=performance.now(),c={minimumFractionDigits:r,maximumFractionDigits:r};requestAnimationFrame(t)}}}function o(t){var i,o;if(void 0!==e.IntersectionObserver)for(r=new e.IntersectionObserver(function(e){var t;for(t=0;t<e.length;t++){var i=e[t],o=i.target;i.isIntersecting?o.dataset.counted||(o.dataset.counted="true",n(o)):l.infinite&&delete o.dataset.counted}},{rootMargin:l.offsetTop+"px 0px "+l.offsetBottom+"px 0px"}),i=0;i<t.length;i++)r.observe(t[i]);else for(o=0;o<t.length;o++){var s=t[o];s.dataset.counted||(s.dataset.counted="true",n(s))}}function s(e){var t;if(3===e.nodeType&&""!==(e.nodeValue||"").trim())return e;for(t=0;t<e.childNodes.length;t++){var i=s(e.childNodes[t]);if(i)return i}return null}var r,a={offsetTop:0,offsetBottom:0,duration:2e3,beginsWith:0,infinite:!1,fixedWidth:!0,locale:"en-US"},l={};return{init:t}}e.CountUp=t()}(window),window.addEventListener("load",function(){null===document.querySelector("body.edit")&&CountUp.init()}),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,r,a,l){if(null!=r)return r;var d=a;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 NowSignageFeed={LINKEDIN_TEMPLATE:'<article class="ns-feed feed__li clearfix lazyload"><a href="{0.permalink_url}" target="_blank"><figure><img src="{med_image_url}" data-src="{med_image_url}" alt="{title}"></figure><header><span class="social_icon"> <i class="fab fa-fw fa-linkedin-in"></i></span><h4 class="title">{title}</h4></header></a><a class="view-more" href="{0.permalink_url}" target="_blank">View more</a></article>',TWITTER_TEMPLATE:'<article class="ns-feed feed__li clearfix lazyload"><a href="{0.permalink_url}" target="_blank"><figure><img src="{med_image_url}" data-src="{med_image_url}" alt="{title}"></figure><header><span class="social_icon"> <i class="fa-brands fa-x-twitter"></i></span><h4 class="title">{title}</h4></header></a><a class="view-more" href="{0.permalink_url}" target="_blank">View more</a></article>',FACEBOOK_TEMPLATE:'<article class="ns-feed feed__li clearfix lazyload"><a href="{0.permalink_url}" target="_blank"><figure><img src="{med_image_url}" data-src="{med_image_url}" alt="{title}"></figure><header><span class="social_icon"> <i class="fab fa-fw fa-fw fa-facebook-f"></i></span><h4 class="title">{title}</h4></header></a><a class="view-more" href="{0.permalink_url}" target="_blank">View more</a></article>',INSTAGRAM_TEMPLATE:'<article class="ns-feed feed__li clearfix lazyload"><a href="{0.permalink_url}" target="_blank"><figure><img src="{med_image_url}" data-src="{med_image_url}" alt="{title}"></figure><header><span class="social_icon"> <i class="fab fa-fw fa-instagram"></i></span><h4 class="title">{title}</h4></header></a><a href="{0.permalink_url}" target="_blank">View more</a><a class="view-more" href="{0.permalink_url}" target="_blank">View more</a></article>',getChannel:function(e,t,i,n){$.ajax({url:"https://api.nowsignage.com/v1/c
12hannels/"+t+"?per_page=20",beforeSend:function(e){e.setRequestHeader("Authorization","Bearer 115126747aa3735c50c52b91a9c0f585")},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 data-src='{0}'/>",o=e.large_image_url||e.med_image_url||e.small_image_url;switch(o&&(i=format(n,o)),e.source){case"linkedin":if(o)t=this.LINKEDIN_TEMPLATE;else{t=$(this.LINKEDIN_TEMPLATE).addClass("no-image").prop("outerHTML")}break;case"twitter":if(o)t=this.TWITTER_TEMPLATE;else{t=$(this.TWITTER_TEMPLATE).addClass("no-image").prop("outerHTML")}break;case"facebook":if(o)t=this.FACEBOOK_TEMPLATE;else{t=$(this.FACEBOOK_TEMPLATE).addClass("no-image").prop("outerHTML")}break;case"instagram":if(o)t=this.INSTAGRAM_TEMPLATE;else{t=$(this.INSTAGRAM_TEMPLATE).addClass("no-image").prop("outerHTML")}break;case"youtube":if(o)t=this.YOUTUBE_TEMPLATE;else{t=$(this.YOUTUBE_TEMPLATE).addClass("no-image").prop("outerHTML")}break;case"rss":if(o)t=this.RSS_TEMPLATE;else{t=$(this.RSS_TEMPLATE).addClass("no-image").prop("outerHTML")}}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({autoplay:!0,autoplaySpeed:8e3,slidesToShow:4,slidesToScroll:2,arrows:!1,dots:!1,responsive:[{breakpoint:992,settings:{slidesToShow:2,slidesToScroll:1}},{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1}}]})},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(){NowSignageFeed.initialize({"feed-linkedin":"bdcb4c5da7d3c214237eedd9022df4b4","feed-twitter":"4b48ec1880029327b0887d38d0966dd3","feed-facebook":"14d8e0d6b0d9f80940b13e3f13b8df0c","feed-instagram":"1968da6312ffbf29cf6a037604b21a61"}),setTimeout(function(){$("i.stream-btn-linkedin").click()},1e3)}
12),$(window).load(function(){var e=$("#Socials-100s #nsFeedContent").attr("data-fallback-image");$("social-feeds").length&&($('img[src="null"]').attr("src",e),$('img[src=""]').attr("src",e).addClass("no-img"),$("img[src(unknown)]").attr("src",e),$('img[src="unknown"]').attr("src",e)),$(".nav-link").on("shown.bs.tab",function(){target=$(this).attr("data-feed"),console.log(target),$(target).slick("refresh")})}),function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof module&&"undefined"!=typeof exports?module.exports=t():e.Papa=t()}(this,function(){"use strict";function e(e){this._handle=null,this._finished=!1,this._completed=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var t=u(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new r(t),(this._handle.streamer=this)._config=t}.call(this,e),this.parseChunk=function(e,t){if(this.isFirstChunk&&p(this._config.beforeFirstChunk)){var i=this._config.beforeFirstChunk(e);void 0!==i&&(e=i)}this.isFirstChunk=!1;var n=this._partialLine+e;this._partialLine="";var o=this._handle.parse(n,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var s=o.meta.cursor;this._finished||(this._partialLine=n.substring(s-this._baseIndex),this._baseIndex=s),o&&o.data&&(this._rowCount+=o.data.length);var r=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(y)g.postMessage({results:o,workerId:$.WORKER_ID,finished:r});else if(p(this._config.chunk)&&!t){if(this._config.chunk(o,this._handle),this._handle.paused()||this._handle.aborted())return;o=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(o.data),this._completeResults.errors=this._completeResults.errors.concat(o.errors),this._completeResults.meta=o.meta),this._completed||!r||!p(this._config.complete)||o&&o.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),r||o&&o.meta.paused||this._nextChunk(),o}},this._sendError=function(e){p(this._config.error)?this._config.error(e):y&&this._config.error&&g.postMessage({workerId:$.WORKER_ID,error:e,finished:!1})}}function t(t){var i;(t=t||{}).chunkSize||(t.chunkSize=$.RemoteChunkSize),e.call(this,t),this._nextChunk=v?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(i=new XMLHttpRequest,this._config.withCredentials&&(i.withCredentials=this._config.withCredentials),v||(i.onload=h(this._chunkLoaded,this),i.onerror=h(this._chunkError,this)),i.open("GET",this._input,!v),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var t in e)i.setRequestHeader(t,e[t])}if(this._config.chunkSize){var n=this._start+this._config.chunkSize-1;i.setRequestHeader("Range","bytes="+this._start+"-"+n),i.setRequestHeader("If-None-Match","webkit-no-cache")}try{i.send()}catch(e){this._chunkError(e.message)}v&&0===i.status?this._chunkError():this._start+=this._config.chunkSize}},this._chunkLoaded=function(){4===i.readyState&&(i.status<200||400<=i.status?this._chunkError():(this._finished=!this._config.chunkSize||this._start>function(e){var t=e.getResponseHeader("Content-Range");return null===t?-1:parseInt(t.substr(t.lastIndexOf("/")+1))}(i),this.parseChunk(i.responseText)))},this._chunkError=function(e){var t=i.statusText||e;this._sendError(new Error(t))}}function i(t){ 13var i,n;(t=t||{}).chunkSize||(t.chunkSize=$.LocalChunkSize),e.call(this,t);var o="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,n=e.slice||e.webkitSlice||e.mozSlice,o?((i=new FileReader).onload=h(this._chunkLoaded,this),i.onerror=h(this._chunkError,this)):i=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input;if(this._config.chunkSize){var t=Math.min(this._start+this._config.chunkSize,this._input.size);e=n.call(e,this._start,t)}var s=i.readAsText(e,this._config.encoding);o||this._chunkLoaded({target:{result:s}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(i.error)}}function n(t){var i;e.call(this,t=t||{}),this.stream=function(e){return i=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e=this._config.chunkSize,t=e?i.substr(0,e):i;return i=e?i.substr(e):"",this._finished=!i,this.parseChunk(t)}}}function o(t){e.call(this,t=t||{});var i=[],n=!0,o=!1;this.pause=function(){e.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){e.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){o&&1===i.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),i.length?this.parseChunk(i.shift()):n=!0},this._streamData=h(function(e){try{i.push("string"==typeof e?e:e.toString(this._config.encoding)),n&&(n=!1,this._checkIsFinished(),this.parseChunk(i.shift()))}catch(e){this._streamError(e)}},this),this._streamError=h(function(e){this._streamCleanUp(),this._sendError(e)},this),this._streamEnd=h(function(){this._streamCleanUp(),o=!0,this._streamData("")},this),this._streamCleanUp=h(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function s(t){var i=require("stream").Duplex,n=u(t),o=!0,s=!1,r=[],a=null;this._onCsvData=function(e){for(var t=e.data,i=0;i<t.length;i++)a.push(t[i])||this._handle.paused()||this._handle.pause()},this._onCsvComplete=function(){a.push(null)},n.step=h(this._onCsvData,this),n.complete=h(this._onCsvComplete,this),e.call(this,n),this._nextChunk=function(){s&&1===r.length&&(this._finished=!0),r.length?r.shift()():o=!0},this._addToParseQueue=function(e,t){r.push(h(function(){if(this.parseChunk("string"==typeof e?e:e.toString(n.encoding)),p(t))return t()},this)),o&&(o=!1,this._nextChunk())},this._onRead=function(){this._handle.paused()&&this._handle.resume()},this._onWrite=function(e,t,i){this._addToParseQueue(e,i)},this._onWriteComplete=function(){s=!0,this._addToParseQueue("")}
13,this.getStream=function(){return a},(a=new i({readableObjectMode:!0,decodeStrings:!1,read:h(this._onRead,this),write:h(this._onWrite,this)})).once("finish",h(this._onWriteComplete,this))}function r(e){function t(){if(_&&l&&(o("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+$.DefaultDelimiter+"'"),l=!1),e.skipEmptyLines)for(var t=0;t<_.data.length;t++)1===_.data[t].length&&""===_.data[t][0]&&_.data.splice(t--,1);return i()&&function(){if(_){for(var t=0;i()&&t<_.data.length;t++)for(var n=0;n<_.data[t].length;n++){var o=_.data[t][n];e.trimHeaders&&(o=o.trim()),y.push(o)}_.data.splice(0,1)}}(),function(){if(!_||!e.header&&!e.dynamicTyping&&!e.transform)return _;for(var t=0;t<_.data.length;t++){var i,s=e.header?{}:[];for(i=0;i<_.data[t].length;i++){var r=i,a=_.data[t][i];e.header&&(r=i>=y.length?"__parsed_extra":y[i]),e.transform&&(a=e.transform(a,r)),a=n(r,a),"__parsed_extra"===r?(s[r]=s[r]||[],s[r].push(a)):s[r]=a}_.data[t]=s,e.header&&(i>y.length?o("FieldMismatch","TooManyFields","Too many fields: expected "+y.length+" fields but parsed "+i,m+t):i<y.length&&o("FieldMismatch","TooFewFields","Too few fields: expected "+y.length+" fields but parsed "+i,m+t))}return e.header&&_.meta&&(_.meta.fields=y),m+=_.data.length,_}()}function i(){return e.header&&0===y.length}function n(t,i){return n=t,e.dynamicTypingFunction&&void 0===e.dynamicTyping[n]&&(e.dynamicTyping[n]=e.dynamicTypingFunction(n)),!0===(e.dynamicTyping[n]||e.dynamicTyping)?"true"===i||"TRUE"===i||"false"!==i&&"FALSE"!==i&&(d.test(i)?parseFloat(i):c.test(i)?new Date(i):""===i?null:i):i;var n}function o(e,t,i,n){_.errors.push({type:e,code:t,message:i,row:n})}var s,r,l,d=/^\s*-?(\d*\.?\d+|\d+\.?\d*)(e[-+]?\d+)?\s*$/i,c=/(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))/,h=this,f=0,m=0,g=!1,v=!1,y=[],_={data:[],errors:[],meta:{}};if(p(e.step)){var w=e.step;e.step=function(n){if(_=n,i())t();else{if(t(),0===_.data.length)return;f+=n.data.length,e.preview&&f>e.preview?r.abort():w(_,h)}}}this.parse=function(i,n,o){if(e.newline||(e.newline=function(e){var t=(e=e.substr(0,1048576)).split("\r"),i=e.split("\n"),n=1<i.length&&i[0].length<t[0].length;if(1===t.length||n)return"\n";for(var o=0,s=0;s<t.length;s++)"\n"===t[s][0]&&o++;return o>=t.length/2?"\r\n":"\r"}(i)),l=!1,e.delimiter)p(e.delimiter)&&(e.delimiter=e.delimiter(i),_.meta.delimiter=e.delimiter);else{var d=function(t,i,n,o){for(var s,r,l,d=[",","\t","|",";",$.RECORD_SEP,$.UNIT_SEP],c=0;c<d.length;c++){var u=d[c],h=0,p=0,f=0;l=void 0;for(var m=new a({comments:o,delimiter:u,newline:i,preview:10}).parse(t),g=0;g<m.data.length;g++)if(n&&1===m.data[g].length&&0===m.data[g][0].length)f++;else{var v=m.data[g].length;p+=v,void 0!==l?1<v&&(h+=Math.abs(v-l),l=v):l=v}0<m.data.length&&(p/=m.data.length-f),(void 0===r||h<r)&&1.99<p&&(r=h,s=u)}return{successful:!!(e.delimiter=s),bestDelimiter:s}}(i,e.newline,e.skipEmptyLines,e.comments);d.successful?e.delimiter=d.bestDelimiter:(l=!0,e.delimiter=$.DefaultDelimiter),_.meta.delimiter=e.delimiter}var c=u(e);return e.preview&&e.header&&c.preview++,s=i,r=new a(c),_=r.parse(s,n,o),t(),g?{meta:{paused:!0}}:_||{meta:{paused:!1}}},this.paused=function(){return g},this.pause=function(){g=!0,r.abort(),s=s.substr(r.getCharIndex())},this.resume=function(){g=!1,h.streamer.parseChunk(s,!0)},this.aborted=function(){return v},this.abort=function(){v=!0,r.abort(),_.meta.aborted=!0,p(e.complete)&&e.complete(_),s=""}}function a(e){var t,i=(e=e||{}).delimiter,n=e.newline,o=e.comments,s=e.step,r=e.preview,a=e.fastMode,l=t=void 0===e.quoteChar?'"':e.quoteChar;if(void 0!==e.escapeChar&&(l=e.escapeChar),("string"!=typeof i||-1<$.BAD_DELIMITERS.indexOf(i))&&(i=","),o===i)throw"Comment character same as delimiter";!0===o?o="#":("string"!=typeof o||-1<$.BAD_DELIMITERS.indexOf(o))&&(o=!1),"\n"!==n&&"\r"!==n&&"\r\n"!==n&&(n="\n");var d=0,c=!1;this.parse=function(e,u,h){function f(e){C.push(e),x=d}function m(t){var i=0;if(-1!==t){var n=e.substring(D+1,t);n&&""===n.trim()&&(i=n.length)}return i}function g(t){return h||(void 0===t&&(t=e.substr(d)),E.push(t),d=w,f(E),T&&_()),y()}function v(t){d=t,f(E),E=[],z=e.indexOf(n,d)}function y(e){return{data:C,errors:k,meta:{delimiter:i,linebreak:n,aborted:c,truncated:!!e,cursor:x+(u||0)}}}function _(){s(y()),C=[],k=[]}if("string"!=typeof e)throw"Input must be a string";var w=e.length,b=i.length,$=n.length,S=o.length,T=p(s),C=[],k=[],E=[],x=d=0;if(!e)return y();if(a||!1!==a&&-1===e.indexOf(t)){for(var L=e.split(n),I=0;I<L.length;I++){if(E=L[I],d+=E.length,I!==L.length-1)d+=n.length;else if(h)return y();if(!o||E.substr(0,S)!==o){if(T){if(C=[],f(E.split(i)),_(),c)return y()}else f(E.split(i));if(r&&r<=I)return C=C.slice(0,r),y(!0)}}return y()}for(var D,O=e.indexOf(i,d),z=e.indexOf(n,d),M=new RegExp(l.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")+t,"g");;)if(e[d]!==t)if(o&&0===E.length&&e.substr(d,S)===o){if(-1===z)return y();
13d=z+$,z=e.indexOf(n,d),O=e.indexOf(i,d)}else if(-1!==O&&(O<z||-1===z))E.push(e.substring(d,O)),d=O+b,O=e.indexOf(i,d);else{if(-1===z)break;if(E.push(e.substring(d,z)),v(z+$),T&&(_(),c))return y();if(r&&C.length>=r)return y(!0)}else for(D=d,d++;;){if(-1===(D=e.indexOf(t,D+1)))return h||k.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:C.length,index:d}),g();if(D===w-1)return g(e.substring(d,D).replace(M,t));if(t!==l||e[D+1]!==l){if(t===l||0===D||e[D-1]!==l){var j=m(O);if(e[D+1+j]===i){E.push(e.substring(d,D).replace(M,t)),d=D+1+j+b,O=e.indexOf(i,d),z=e.indexOf(n,d);break}var A=m(z);if(e.substr(D+1+A,$)===n){if(E.push(e.substring(d,D).replace(M,t)),v(D+1+A+$),O=e.indexOf(i,d),T&&(_(),c))return y();if(r&&C.length>=r)return y(!0);break}k.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:C.length,index:d}),D++}}else D++}return g()},this.abort=function(){c=!0},this.getCharIndex=function(){return d}}function l(e){var t=e.data,i=w[t.workerId],n=!1;if(t.error)i.userError(t.error,t.file);else if(t.results&&t.results.data){var o={abort:function(){n=!0,d(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:c,resume:c};if(p(i.userStep)){for(var s=0;s<t.results.data.length&&(i.userStep({data:[t.results.data[s]],errors:t.results.errors,meta:t.results.meta},o),!n);s++);delete t.results}else p(i.userChunk)&&(i.userChunk(t.results,o,t.file),delete t.results)}t.finished&&!n&&d(t.workerId,t.results)}function d(e,t){var i=w[e];p(i.userComplete)&&i.userComplete(t),i.terminate(),delete w[e]}function c(){throw"Not implemented."}function u(e){if("object"!=typeof e||null===e)return e;var t=e instanceof Array?[]:{};for(var i in e)t[i]=u(e[i]);return t}function h(e,t){return function(){e.apply(t,arguments)}}function p(e){return"function"==typeof e}var f,m,g="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==g?g:{},v=!g.document&&!!g.postMessage,y=v&&/(\?|&)papaworker(=|&|$)/.test(g.location.search),_=!1,w={},b=0,$={parse:function(e,r){var a=(r=r||{}).dynamicTyping||!1;if(p(a)&&(r.dynamicTypingFunction=a,a={}),r.dynamicTyping=a,r.transform=!!p(r.transform)&&r.transform,r.worker&&$.WORKERS_SUPPORTED){var d=function(){if(!$.WORKERS_SUPPORTED)return!1;if(!_&&null===$.SCRIPT_PATH)throw new Error("Script path cannot be determined automatically when Papa Parse is loaded asynchronously. You need to set Papa.SCRIPT_PATH manually.");var e=$.SCRIPT_PATH||f;e+=(-1!==e.indexOf("?")?"&":"?")+"papaworker";var t=new g.Worker(e);return t.onmessage=l,t.id=b++,w[t.id]=t}();return d.userStep=r.step,d.userChunk=r.chunk,d.userComplete=r.complete,d.userError=r.error,r.step=p(r.step),r.chunk=p(r.chunk),r.complete=p(r.complete),r.error=p(r.error),delete r.worker,void d.postMessage({input:e,config:r,workerId:d.id})}var c=null;return e===$.NODE_STREAM_INPUT?(c=new s(r)).getStream():("string"==typeof e?c=r.download?new t(r):new n(r):!0===e.readable&&p(e.read)&&p(e.on)?c=new o(r):(g.File&&e instanceof File||e instanceof Object)&&(c=new i(r)),c.stream(e))},unparse:function(e,t){function i(e){if("object"!=typeof e)return[];var t=[];for(var i in e)t.push(i);return t}function n(e,t){var i="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var n=e instanceof Array&&0<e.length,s=!(t[0]instanceof Array);if(n&&r){for(var d=0;d<e.length;d++)0<d&&(i+=a),i+=o(e[d],d);0<t.length&&(i+=l)}for(var c=0;c<t.length;c++){for(var u=n?e.length:t[c].length,h=0;h<u;h++){0<h&&(i+=a);var p=n&&s?e[h]:h;i+=o(t[c][p],h)}c<t.length-1&&(i+=l)}return i}function o(e,t){if(null==e)return"";if(e.constructor===Date)return JSON.stringify(e).slice(1,25);e=e.toString().replace(c,d+d);var i="boolean"==typeof s&&s||s instanceof Array&&s[t]||function(e,t){for(var i=0;i<t.length;i++)if(-1<e.indexOf(t[i]))return!0;return!1}(e,$.BAD_DELIMITERS)||-1<e.indexOf(a)||" "===e.charAt(0)||" "===e.charAt(e.length-1);return i?d+e+d:e}var s=!1,r=!0,a=",",l="\r\n",d='"';"object"==typeof t&&("string"==typeof t.delimiter&&1===t.delimiter.length&&-1===$.BAD_DELIMITERS.indexOf(t.delimiter)&&(a=t.delimiter),("boolean"==typeof t.quotes||t.quotes instanceof Array)&&(s=t.quotes),"string"==typeof t.newline&&(l=t.newline),"string"==typeof t.quoteChar&&(d=t.quoteChar),"boolean"==typeof t.header&&(r=t.header));var c=new RegExp(d,"g");if("string"==typeof e&&(e=JSON.parse(e)),e instanceof Array){if(!e.length||e[0]instanceof Array)return n(null,e);if("object"==typeof e[0])return n(i(e[0]),e)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),e.data instanceof Array&&(e.fields||(e.fields=e.meta&&e.meta.fields),e.fields||(e.fields=e.data[0]instanceof Array?e.fields:i(e.data[0])),e.data[0]instanceof Array||"object"==typeof e.data[0]||(e.data=[e.data])),n(e.fields||[],e.data||[]);throw"exception: Unable to serialize unrecognized input"}};if($.RECORD_SEP=String.fromCharCode(30),$.UNIT_SEP=String.fromCharCode(31),$.BYTE_ORDER_MARK="\ufeff",$.BAD_DELIMITERS=["\r","\n",'"',$.BYTE_ORDER_MARK],$.WORKERS_SUPPORTED=!v&&!!g.Worker,$.SCRIPT_PATH=null,$.NODE_STREAM_INPUT=1,$.LocalChunkSize=10485760,$.RemoteChunkSize=5242880,$.DefaultDelimiter=",",$.Parser=a,$.ParserHandle=r,$.NetworkStreamer=t,$.FileStreamer=i,$.StringStreamer=n,$.ReadableStreamStreamer=o,$.DuplexStreamStreamer=s,g.jQuery){var S=g.jQuery;S.fn.parse=function(e){function t(){if(0!==o.length){var t,n,s,r,a=o[0];if(p(e.before)){var l=e.before(a.file,a.inputElem);if("object"==typeof l){if("abort"===l.action)return t="AbortError",n=a.file,s=a.inputElem,r=l.reason,void(p(e.error)&&e.error({name:t},n,s,r));if("skip"===l.action)return void i();"object"==typeof l.config&&(a.instanceConfig=S.extend(a.instanceConfig,l.config))}else if("skip"===l)return void i()}var d=a.instanceConfig.complete;a.instanceConfig.complete=function(e){p(d)&&d(e,a.file,a.inputElem),i()},$.parse(a.file,a.instanceConfig)}else p(e.complete)&&e.complete()}function i(){o.splice(0,1),t()}var n=e.config||{},o=[];return this.each(function(){if("INPUT"!==S(this).prop("tagName").toUpperCase()||"file"!==S(this).attr("type").toLowerCase()||!g.FileReader||!this.files||0===this.files.length)return!0;for(var e=0;e<this.files.length;
13e++)o.push({file:this.files[e],inputElem:this,instanceConfig:S.extend({},n)})}),t(),this}}return y?g.onmessage=function(e){var t=e.data;if(void 0===$.WORKER_ID&&t&&($.WORKER_ID=t.workerId),"string"==typeof t.input)g.postMessage({workerId:$.WORKER_ID,results:$.parse(t.input,t.config),finished:!0});else if(g.File&&t.input instanceof File||t.input instanceof Object){var i=$.parse(t.input,t.config);i&&g.postMessage({workerId:$.WORKER_ID,results:i,finished:!0})}}:$.WORKERS_SUPPORTED&&(m=document.getElementsByTagName("script"),f=m.length?m[m.length-1].src:"",document.body?document.addEventListener("DOMContentLoaded",function(){_=!0},!0):_=!0),(t.prototype=Object.create(e.prototype)).constructor=t,(i.prototype=Object.create(e.prototype)).constructor=i,(n.prototype=Object.create(n.prototype)).constructor=n,(o.prototype=Object.create(e.prototype)).constructor=o,(s.prototype=Object.create(e.prototype)).constructor=s,$}),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>')}function 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+)(?:|\/\?)/,r=/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/,a=o,l=o,d=o.match(r),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):a.includes("amazonaws")?(i(a),!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.