1/**handles:timelineJS,rmp_menu_touchSwipe,rmp_menu_scripts**/ 2/** 3 * Timeline - a horizontal / vertical timeline component 4 * v. 1.2.0 5 * Copyright Mike Collins 6 * MIT License 7 */ 8"use strict";var _slicedToArray=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],n=!0,l=!1,s=void 0;try{for(var a,r=e[Symbol.iterator]();!(n=(a=r.next()).done)&&(i.push(a.value),!t||i.length!==t);n=!0);}catch(e){l=!0,s=e}finally{try{!n&&r.return&&r.return()}finally{if(l)throw s}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function timeline(e,v){var g=[],p="Timeline:",t=window.innerWidth,i=void 0,o=0,b={forceVerticalMode:{type:"integer",defaultValue:600},horizontalStartPosition:{type:"string",acceptedValues:["bottom","top"],defaultValue:"top"},mode:{type:"string",acceptedValues:["horizontal","vertical"],defaultValue:"vertical"},moveItems:{type:"integer",defaultValue:1},rtlMode:{type:"boolean",acceptedValues:[!0,!1],defaultValue:!1},startIndex:{type:"integer",defaultValue:0},verticalStartPosition:{type:"string",acceptedValues:["left","right"],defaultValue:"left"},verticalTrigger:{type:"string",defaultValue:"15%"},visibleItems:{type:"integer",defaultValue:3}};function n(e,t,i){t.classList.add(i),e.parentNode.insertBefore(t,e),t.appendChild(e)}function l(e,t){var i=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,l=b.verticalTrigger.defaultValue.match(/(\d*\.?\d*)(.*)/),s=t.unit,a=t.value,r=n;if("px"===s&&n<=a){console.warn('The value entered for the setting "verticalTrigger" is larger than the window height. The default value will be used instead.');var o=_slicedToArray(l,3);a=o[1],s=o[2]}return"px"===s?r=parseInt(r-a,10):"%"===s&&(r=parseInt(r*((100-a)/100),10)),i.top<=r&&i.left<=(window.innerWidth||document.documentElement.clientWidth)&&0<=i.top+i.height&&0<=i.left+i.width}function d(e,t){e.style.webkitTransform=t,e.style.msTransform=t,e.style.transform=t}function c(e){var t="translate3d(-"+e.items[o].offsetLeft+"px, 0, 0)";d(e.scroller,t)}function s(e){var s,t,i,n,l,a,r;o=e.settings.rtlMode?e.items.length>e.settings.visibleItems?e.items.length-e.settings.visibleItems:0:e.settings.startIndex,e.timelineEl.classList.add("timeline--horizontal"),s=e,window.innerWidth>s.settings.forceVerticalMode&&(s.itemWidth=s.wrap.offsetWidth/s.settings.visibleItems,s.items.forEach(function(e){e.style.width=s.itemWidth+"px"}),s.scrollerWidth=s.itemWidth*s.items.length,s.scroller.style.width=s.scrollerWidth+"px",function(){var n=0,l=0;s.items.forEach(function(e,t){e.style.height="auto";var i=e.offsetHeight;t%2==0?l=l<i?i:l:n=n<i?i:n});var i="translateY("+l+"px)";s.items.forEach(function(e,t){t%2==0?(e.style.height=l+"px","bottom"===s.settings.horizontalStartPosition?(e.classList.add("timeline__item--bottom"),d(e,i)):e.classList.add("timeline__item--top")):(e.style.height=n+"px","bottom"!==s.settings.horizontalStartPosition?(e.classList.add("timeline__item--bottom"),d(e,i)):e.classList.add("timeline__item--top"))}),s.scroller.style.height=l+n+"px"}()),c(e),function(e){if(e.items.length>e.settings.visibleItems){var t=document.createElement("button"),i=document.createElement("button"),n=e.items[0].offsetHeight;t.className="timeline-nav-button timeline-nav-button--prev",i.className="timeline-nav-button timeline-nav-button--next",t.textContent="Previous",i.textContent="Next",t.style.top=n+"px",i.style.top=n+"px",0===o?t.disabled=!0:o===e.items.length-e.settings.visibleItems&&(i.disabled=!0),e.timelineEl.appendChild(t),e.timelineEl.appendChild(i)}}(e),function(e){var t=e.timelineEl.querySelector(".timeline-divider");t&&e.timelineEl.removeChild(t);var i=e.items[0].offsetHeight,n=document.createElement("span");n.className="timeline-divider",n.style.top=i+"px",e.timelineEl.appendChild(n)}(e),i=(t=e).timelineEl.querySelectorAll(".timeline-nav-button"),n=t.timelineEl.querySelector(".timeline-nav-button--prev"),l=t.timelineEl.querySelector(".timeline-nav-button--next"),a=t.items.length-t.settings.visibleItems,r=parseInt(t.settings.moveItems,10),[].forEach.call(i,function(e){e.addEventListener("click",function(e){e.preventDefault(),0===(o=this.classList.contains("timeline-nav-button--next")?o+=r:o-=r)||o<0?(o=0,n.disabled=!0,l.disabled=!1):o===a||a<o?(o=a,n.disabled=!1,l.disabled=!0):(n.disabled=!1,l.disabled=!1),c(t)})})}function a(){g.forEach(function(e){e.timelineEl.style.opacity=0,e.timelineEl.classList.contains("timeline--loaded")||e.items.forEac
8h(function(e){n(e.querySelector(".timeline__content"),document.createElement("div"),"timeline__content__wrap"),n(e.querySelector(".timeline__content__wrap"),document.createElement("div"),"timeline__item__inner")}),function(e){e.timelineEl.classList.remove("timeline--horizontal","timeline--mobile"),e.scroller.removeAttribute("style"),e.items.forEach(function(e){e.removeAttribute("style"),e.classList.remove("animated","fadeIn","timeline__item--left","timeline__item--right")});var t=e.timelineEl.querySelectorAll(".timeline-nav-button");[].forEach.call(t,function(e){e.parentNode.removeChild(e)})}(e),window.innerWidth<=e.settings.forceVerticalMode&&e.timelineEl.classList.add("timeline--mobile"),"horizontal"===e.settings.mode&&window.innerWidth>e.settings.forceVerticalMode?s(e):function(i){var n=0;i.items.forEach(function(e,t){e.classList.remove("animated","fadeIn"),!l(e,i.settings.verticalTrigger)&&0<t?e.classList.add("animated"):n=t,t%2==("left"===i.settings.verticalStartPosition?1:0)&&window.innerWidth>i.settings.forceVerticalMode?e.classList.add("timeline__item--right"):e.classList.add("timeline__item--left")});for(var e=0;e<n;e+=1)i.items[e].classList.remove("animated","fadeIn");window.addEventListener("scroll",function(){i.items.forEach(function(e){l(e,i.settings.verticalTrigger)&&e.classList.add("fadeIn")})})}(e),e.timelineEl.classList.add("timeline--loaded"),setTimeout(function(){e.timelineEl.style.opacity=1},500)})}e.length&&[].forEach.call(e,function(e){var t=e.id?"#"+e.id:"."+e.className,i="could not be found as a direct descendant of",n=e.dataset,l=void 0,s=void 0,a=void 0,r={};try{if(!(l=e.querySelector(".timeline__wrap")))throw new Error(p+" .timeline__wrap "+i+" "+t);if(!(s=l.querySelector(".timeline__items")))throw new Error(p+" .timeline__items "+i+" .timeline__wrap");a=[].slice.call(s.children,0)}catch(e){return console.warn(e.message),!1}Object.keys(b).forEach(function(e){var t,i;r[e]=b[e].defaultValue,n[e]?r[e]=n[e]:v&&v[e]&&(r[e]=v[e]),"integer"===b[e].type?r[e]&&(t=r[e],i=e,"number"==typeof t||t%1==0||(console.warn(p+' The value "'+t+'" entered for the setting "'+i+'" is not an integer.'),0))||(r[e]=b[e].defaultValue):"string"===b[e].type&&b[e].acceptedValues&&-1===b[e].acceptedValues.indexOf(r[e])&&(console.warn(p+' The value "'+r[e]+'" entered for the setting "'+e+'" was not recognised.'),r[e]=b[e].defaultValue)});var o=b.verticalTrigger.defaultValue.match(/(\d*\.?\d*)(.*)/),d=r.verticalTrigger.match(/(\d*\.?\d*)(.*)/),c=_slicedToArray(d,3),m=c[1],u=c[2],f=!0;if(m||(console.warn(p+" No numercial value entered for the 'verticalTrigger' setting."),f=!1),"px"!==u&&"%"!==u&&(console.warn(p+" The setting 'verticalTrigger' must be a percentage or pixel value."),f=!1),"%"===u&&(100<m||m<0)?(console.warn(p+" The 'verticalTrigger' setting value must be between 0 and 100 if using a percentage value."),f=!1):"px"===u&&m<0&&(console.warn(p+" The 'verticalTrigger' setting value must be above 0 if using a pixel value."),f=!1),!1===f){var h=_slicedToArray(o,3);m=h[1],u=h[2]}r.verticalTrigger={unit:u,value:m},r.moveItems>r.visibleItems&&(console.warn(p+' The value of "moveItems" ('+r.moveItems+') is larger than the number of "visibleItems" ('+r.visibleItems+'). The value of "visibleItems" has been used instead.'),r.moveItems=r.visibleItems),r.startIndex>a.length-r.visibleItems&&a.length>r.visibleItems?(console.warn(p+" The 'startIndex' setting must be between 0 and "+(a.length-r.visibleItems)+" for this timeline. The value of "+(a.length-r.visibleItems)+" has been used instead."),r.startIndex=a.length-r.visibleItems):a.length<=r.visibleItems?(console.warn(p+" The number of items in the timeline must exceed the number of visible items to use the 'startIndex' option."),r.startIndex=0):r.startIndex<0&&(console.warn(p+" The 'startIndex' setting must be between 0 and "+(a.length-r.visibleItems)+" for this timeline. The value of 0 has been used instead."),r.startIndex=0),g.push({timelineEl:e,wrap:l,scroller:s,items:a,settings:r})}),a(),window.addEventListener("resize",function(){clearTimeout(i),i=setTimeout(function(){var e=window.innerWidth;e!==t&&(a(),t=e)},250)})}window.jQuery&&(window.jQuery.fn.timeline=function(e){return timeline(this,e),this}); 9/*! 10 * @fileOverview TouchSwipe - jQuery Plugin 11 * @version 1.6.18 12 * 13 * @author Matt Bryson http://www.github.com/mattbryson 14 * @see https://github.com/mattbryson/TouchSwipe-Jquery-Plugin 15 * @see http://labs.rampinteractive.co.uk/touchSwipe/ 16 * @see http://plugins.jquery.com/project/touchSwipe 17 * @license 18 * Copyright (c) 2010-2015 Matt Bryson 19 * Dual licensed under the MIT or GPL Version 2 licenses. 20 * 21 */ 22!function(factory){"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],factory):factory("undefined"!=typeof module&&module.exports?require("jquery"):jQuery)}(function($){"use strict";function init(options){return!options||void 0!==options.allowPageScroll||void 0===options.swipe&&void 0===options.swipeStatus||(options.allowPageScroll=NONE),void 0!==options.click&&void 0===options.tap&&(options.tap=options.click),options||(options={}),options=$.extend({},$.fn.swipe.defaults,options),this.each(function(){var $this=$(this),plugin=$this.data(PLUGIN_NS);plugin||(plugin=new TouchSwipe(this,options),$this.data(PLUGIN_NS,plugin))})}function TouchSwipe(element,options){function touchStart(jqEvent){if(!(getTouchInProgress()||$(jqEvent.target).closest(options.excludedElements,$element).length>0)){var event=jqEvent.originalEvent?jqEvent.originalEvent:jqEvent;if(!event.pointerType||"mouse"!=event.pointerType||0!=options.fallbackToMouseEvents){var ret,touches=event.touches,evt=touches?touches[0]:event;return phase=PHASE_START,touches?fingerCount=touches.length:options.preventDefaultEvents!==!1&&jqEvent.preventDefault(),distance=0,direction=null,currentDirection=null,pinchDirection=null,duration=0,startTouchesDistance=0,endTouchesDistance=0,pinchZoom=1,pinchDistance=0,maximumsMap=createMaximumsData(),cancelMultiFingerRelease(),createFingerData(0,evt),!touches||fingerCount===options.fingers||options.fingers===ALL_FINGERS||hasPinches()?(startTime=getTimeStamp(),2==fingerCount&&(createFingerData(1,touches[1]),startTouchesDistance=endTouchesDistance=calculateTouchesDistance(fingerData[0].start,f
vendor: 16,482 bytes, line 22
22ingerData[1].start)),(options.swipeStatus||options.pinchStatus)&&(ret=triggerHandler(event,phase))):ret=!1,ret===!1?(phase=PHASE_CANCEL,triggerHandler(event,phase),ret):(options.hold&&(holdTimeout=setTimeout($.proxy(function(){$element.trigger("hold",[event.target]),options.hold&&(ret=options.hold.call($element,event,event.target))},this),options.longTapThreshold)),setTouchInProgress(!0),null)}}}function touchMove(jqEvent){var event=jqEvent.originalEvent?jqEvent.originalEvent:jqEvent;if(phase!==PHASE_END&&phase!==PHASE_CANCEL&&!inMultiFingerRelease()){var ret,touches=event.touches,evt=touches?touches[0]:event,currentFinger=updateFingerData(evt);if(endTime=getTimeStamp(),touches&&(fingerCount=touches.length),options.hold&&clearTimeout(holdTimeout),phase=PHASE_MOVE,2==fingerCount&&(0==startTouchesDistance?(createFingerData(1,touches[1]),startTouchesDistance=endTouchesDistance=calculateTouchesDistance(fingerData[0].start,fingerData[1].start)):(updateFingerData(touches[1]),endTouchesDistance=calculateTouchesDistance(fingerData[0].end,fingerData[1].end),pinchDirection=calculatePinchDirection(fingerData[0].end,fingerData[1].end)),pinchZoom=calculatePinchZoom(startTouchesDistance,endTouchesDistance),pinchDistance=Math.abs(startTouchesDistance-endTouchesDistance)),fingerCount===options.fingers||options.fingers===ALL_FINGERS||!touches||hasPinches()){if(direction=calculateDirection(currentFinger.start,currentFinger.end),currentDirection=calculateDirection(currentFinger.last,currentFinger.end),validateDefaultEvent(jqEvent,currentDirection),distance=calculateDistance(currentFinger.start,currentFinger.end),duration=calculateDuration(),setMaxDistance(direction,distance),ret=triggerHandler(event,phase),!options.triggerOnTouchEnd||options.triggerOnTouchLeave){var inBounds=!0;if(options.triggerOnTouchLeave){var bounds=getbounds(this);inBounds=isInBounds(currentFinger.end,bounds)}!options.triggerOnTouchEnd&&inBounds?phase=getNextPhase(PHASE_MOVE):options.triggerOnTouchLeave&&!inBounds&&(phase=getNextPhase(PHASE_END)),phase!=PHASE_CANCEL&&phase!=PHASE_END||triggerHandler(event,phase)}}else phase=PHASE_CANCEL,triggerHandler(event,phase);ret===!1&&(phase=PHASE_CANCEL,triggerHandler(event,phase))}}function touchEnd(jqEvent){var event=jqEvent.originalEvent?jqEvent.originalEvent:jqEvent,touches=event.touches;if(touches){if(touches.length&&!inMultiFingerRelease())return startMultiFingerRelease(event),!0;if(touches.length&&inMultiFingerRelease())return!0}return inMultiFingerRelease()&&(fingerCount=fingerCountAtRelease),endTime=getTimeStamp(),duration=calculateDuration(),didSwipeBackToCancel()||!validateSwipeDistance()?(phase=PHASE_CANCEL,triggerHandler(event,phase)):options.triggerOnTouchEnd||options.triggerOnTouchEnd===!1&&phase===PHASE_MOVE?(options.preventDefaultEvents!==!1&&jqEvent.cancelable!==!1&&jqEvent.preventDefault(),phase=PHASE_END,triggerHandler(event,phase)):!options.triggerOnTouchEnd&&hasTap()?(phase=PHASE_END,triggerHandlerForGesture(event,phase,TAP)):phase===PHASE_MOVE&&(phase=PHASE_CANCEL,triggerHandler(event,phase)),setTouchInProgress(!1),null}function touchCancel(){fingerCount=0,endTime=0,startTime=0,startTouchesDistance=0,endTouchesDistance=0,pinchZoom=1,cancelMultiFingerRelease(),setTouchInProgress(!1)}function touchLeave(jqEvent){var event=jqEvent.originalEvent?jqEvent.originalEvent:jqEvent;options.triggerOnTouchLeave&&(phase=getNextPhase(PHASE_END),triggerHandler(event,phase))}function removeListeners(){$element.off(START_EV,touchStart),$element.off(CANCEL_EV,touchCancel),$element.off(MOVE_EV,touchMove),$element.off(END_EV,touchEnd),LEAVE_EV&&$element.off(LEAVE_EV,touchLeave),setTouchInProgress(!1)}function getNextPhase(currentPhase){var nextPhase=currentPhase,validTime=validateSwipeTime(),validDistance=validateSwipeDistance(),didCancel=didSwipeBackToCancel();return!validTime||didCancel?nextPhase=PHASE_CANCEL:!validDistance||currentPhase!=PHASE_MOVE||options.triggerOnTouchEnd&&!options.triggerOnTouchLeave?!validDistance&¤tPhase==PHASE_END&&options.triggerOnTouchLeave&&(nextPhase=PHASE_CANCEL):nextPhase=PHASE_END,nextPhase}function triggerHandler(event,phase){var ret,touches=event.touches;return(didSwipe()||hasSwipes())&&(ret=triggerHandlerForGesture(event,phase,SWIPE)),(didPinch()||hasPinches())&&ret!==!1&&(ret=triggerHandlerForGesture(event,phase,PINCH)),didDoubleTap()&&ret!==!1?ret=triggerHandlerForGesture(event,phase,DOUBLE_TAP):didLongTap()&&ret!==!1?ret=triggerHandlerForGesture(event,phase,LONG_TAP):didTap()&&ret!==!1&&(ret=triggerHandlerForGesture(event,phase,TAP)),phase===PHASE_CANCEL&&touchCancel(event),phase===PHASE_END&&(touches?touches.length||touchCancel(event):touchCancel(event)),ret}function triggerHandlerForGesture(event,phase,gesture){var ret;if(gesture==SWIPE){if($element.trigger("swipeStatus",[phase,direction||null,distance||0,duration||0,fingerCount,fingerData,currentDirection]),options.swipeStatus&&(ret=options.swipeStatus.call($element,event,phase,direction||null,distance||0,duration||0,fingerCount,fingerData,currentDirection),ret===!1))return!1;if(phase==PHASE_END&&validateSwipe()){if(clearTimeout(singleTapTimeout),clearTimeout(holdTimeout),$element.trigger("swipe",[direction,distance,duration,fingerCount,fingerData,currentDirection]),options.swipe&&(ret=options.swipe.call($element,event,direction,distance,duration,fingerCount,fingerData,currentDirection),ret===!1))return!1;switch(direction){case LEFT:$element.trigger("swipeLeft",[direction,distance,duration,fingerCount,fingerData,currentDirection]),options.swipeLeft&&(ret=options.swipeLeft.call($element,event,direction,distance,duration,fingerCount,fingerData,currentDirection));break;case RIGHT:$element.trigger("swipeRight",[direction,distance,duration,fingerCount,fingerData,currentDirection]),options.swipeRight&&(ret=options.swipeRight.call($element,event,direction,distance,duration,fingerCount,fingerData,currentDirection));break;case UP:$element.trigger("swipeUp",[direction,distance,duration,fingerCount,fingerData,currentDirection]),options.swipeUp&&(ret=options.swipeUp.call($element,event,direction,distance,duration,fingerCount,fingerData,currentDirection));break;case DOWN:$element.trigger("swipeDown",[direction,distance,duration,fingerCount,fingerData,currentDirection]),options.swipeDown&&(ret=options.swipeDown.call($element,event,direction,distance,duration,fingerCount,fingerData,currentDirection))}}}if(gesture==PINCH){if($element.trigger("pinchStatus",[phase,pinchDirection||null,pinchDistance||0,duration||0,fingerCount,pinchZoom,fingerData]),options.pinchStatus&&(ret=options.pinchStatus.call($element,event,phase,pinchDirection||null,pinchDistance||0,duration||0,fingerCount,pinchZoom,fingerData),ret===!1))return!1;if(phase==PHASE_END&&validatePinch())switch(pinchDirection){case IN:$element.trigger("pinchIn",[pinchDirection||null,pinchDistance||0,duration||0,fingerCount,pinchZoom,fingerData]),options.pinchIn&&(ret=options.pinchIn.call($element,event,pinchDirection||null,pinchDistance||0,duration||0,fingerCount,pinchZoom,fingerData));break;case OUT:$element.trigger("pinchOut",[pinchDirection||null,pinchDistance||0,duration||0,fingerCount,pinchZoom,fingerData]),options.pinchOut&&(ret=options.pinchOut.call($element,event,pinchDirection||null,pinchDistance||0,duration||0,fingerCount,pinchZoom,fingerData))}}return gesture==TAP?phase!==PHASE_CANCEL&&phase!==PHASE_END||(clearTimeout(singleTapTimeout),clearTimeout(holdTimeout),hasDoubleTap()&&!inDoubleTap()?(doubleTapStartTime=getTimeStamp(),singleTapTimeout=setTimeout($.proxy(function(){doubleTapStartTime=null,$element.trigger("tap",[event.target]),options.tap&&(ret=options.tap.call($element,event,event.target))},this),options.doubleTapThreshold)):(doubleTapStartTime=null,$element.trigger("tap",[event.target]),options.tap&&(ret=options.tap.call($element,event,event.target)))):gesture==DOUBLE_TAP?phase!==PHASE_CANCEL&&phase!==PHASE_END||(clearTimeout(singleTapTimeout),clearTimeout(holdTimeout),doubleTapStartTime=null,$element.trigger("doubletap",[event.target]),options.doubleTap&&(ret=options.doubleTap.call($element,event,event.target))):gesture==LONG_TAP&&(phase!==PHASE_CANCEL&&phase!==PHASE_END||(clearTimeout(singleTapTimeout),doubleTapStartTime=null,$element.trigger("longtap",[event.target]),options.longTap&&(ret=options.longTap.call($element,event,event.target)))),ret}function validateSwipeDistance(){var valid=!0;return null!==options.threshold&&(valid=distance>=options.threshold),valid}function didSwipeBackToCancel(){var cancelled=!1;return null!==options.cancelThreshold&&null!==direction&&(cancelled=getMaxDistance(direction)-distance>=options.cancelThreshold),cancelled}function validatePinchDistance(){return null!==options.pinchThreshold?pinchDistance>=options.pinchThreshold:!0}function validateSwipeTime(){var result;return result=options.maxTimeThreshold?!(duration>=options.maxTimeThreshold):!0}function validateDefaultEvent(jqEvent,direction){if(options.preventDefaultEvents!==!1)if(options.allowPageScroll===NONE)jqEvent.preventDefault();else{var auto=options.allowPageScroll===AUTO;switch(direction){case LEFT:(options.swipeLeft&&auto||!auto&&options.allowPageScroll!=HORIZONTAL)&&jqEvent.preventDefault();break;case RIGHT:(options.swipeRight&&auto||!auto&&options.allowPageScroll!=HORIZONTAL)&&jqEvent.preventDefault();break;case UP:(options.swipeUp&&auto||!auto&&options.allowPageScroll!=VERTICAL)&&jqEvent.preventDefault();break;case DOWN:(options.swipeDown&&auto||!auto&&options.allowPageScroll!=VERTICAL)&&jqEvent.preventDefault();break;case NONE:}}}function validatePinch(){var hasCorrectFingerCount=validateFingers(),hasEndPoint=validateEndPoint(),hasCorrectDistance=validatePinchDistance();return hasCorrectFingerCount&&hasEndPoint&&hasCorrectDistance}function hasPinches(){return!!(options.pinchStatus||options.pinchIn||options.pinchOut)}function didPinch(){return!(!validatePinch()||!hasPinches())}function validateSwipe(){var hasValidTime=validateSwipeTime(),hasValidDistance=validateSwipeDistance(),hasCorrectFingerCount=validateFingers(),hasEndPoint=validateEndPoint(),didCancel=didSwipeBackToCancel(),valid=!didCancel&&hasEndPoint&&hasCorrectFingerCount&&hasValidDistance&&hasValidTime;return valid}function hasSwipes(){return!!(options.swipe||options.swipeStatus||options.swipeLeft||options.swipeRight||options.swipeUp||options.swipeDown)}function didSwipe(){return!(!validateSwipe()||!hasSwipes())}function validateFingers(){return fingerCount===options.fingers||options.fingers===ALL_FINGERS||!SUPPORTS_TOUCH}function validateEndPoint(){return 0!==fingerData[0].end.x}function hasTap(){return!!options.tap}function hasDoubleTap(){return!!options.doubleTap}function hasLongTap(){return!!options.longTap}function validateDoubleTap(){if(null==doubleTapStartTime)return!1;var now=getTimeStamp();return hasDoubleTap()&&now-doubleTapStartTime<=options.doubleTapThreshold}function inDoubleTap(){return validateDoubleTap()}function validateTap(){return(1===fingerCount||!SUPPORTS_TOUCH)&&(isNaN(distance)||distance<options.threshold)}function validateLongTap(){return duration>options.longTapThreshold&&DOUBLE_TAP_THRESHOLD>distance}function didTap(){return!(!validateTap()||!hasTap())}function didDoubleTap(){return!(!validateDoubleTap()||!hasDoubleTap())}function didLongTap(){return!(!validateLongTap()||!hasLongTap())}function startMultiFingerRelease(event){previousTouchEndTime=getTimeStamp(),fingerCountAtRelease=event.touches.length+1}function cancelMultiFingerRelease(){previousTouchEndTime=0,fingerCountAtRelease=0}function inMultiFingerRelease(){var withinThreshold=!1;if(previousTouchEndTime){var diff=getTimeStamp()-previousTouchEndTime;diff<=options.fingerReleaseThreshold&&(withinThreshold=!0)}return withinThreshold}function getTouchInProgress(){return!($element.data(PLUGIN_NS+"_intouch")!==!0)}function setTouchInProgress(val){$element&&(val===!0?($element.on(MOVE_EV,touchMove),$element.on(END_EV,touchEnd),LEAVE_EV&&$element.on(LEAVE_EV,touchLeave)):($element.off(MOVE_EV,touchMove,!1),$element.off(END_EV,touchEnd,!1),LEAVE_EV&&$element.off(LEAVE_EV,touchLeave,!1)),$element.data(PLUGIN_NS+"_intouch",val===!0))}function createFingerData(id,evt){var f={start:{x:0,y:0},last:{x:0,y:0},end:{x:0,y:0}};return f.start.x=f.last.x=f.end.x=evt.pageX||evt.clientX,f.start.y=f.last.y=f.end.y=evt.pageY||evt.clientY,fingerData[id]=f,f}function updateFingerData(evt){var id=void 0!==evt.identifier?evt.identifier:0,f=getFingerData(id);return null===f&&(f=createFingerData(id,evt)),f.last.x=f.end.x,f.last.y=f.end.y,f.end.x=evt.pageX||evt.clientX,f.end.y=evt.pageY||evt.clientY,f}function getFingerData(id){return fingerData[id]||null}function setMaxDistance(direction,distance){direction!=NONE&&(distance=Math.max(distance,getMaxDistance(direction)),maximumsMap[direction].distance=distance)}function getMaxDistance(direction){return maximumsMap[direction]?maximumsMap[direction].distance:void 0}function createMaximumsData(){var maxData={};return maxData[LEFT]=createMaximumVO(LEFT),maxData[RIGHT]=createMaximumVO(RIGHT),maxData[UP]=createMaximumVO(UP),maxData[DOWN]=createMaximumVO(DOWN),maxData}function createMaximumVO(dir){return{direction:dir,distance:0}}function calculateDuration(){return endTime-startTime}function calculateTouchesDistance(startPoint,endPoint){var diffX=Math.abs(startPoint.x-endPoint.x),diffY=Math.abs(startPoint.y-endPoint.y);return Math.round(Math.sqrt(diffX*diffX+diffY*diffY))}function calculatePinchZoom(startDistance,endDistance){var percent=endDistance/startDistance*1;return percent.toFixed(2)}function calculatePinchDirection(){return 1>pinchZoom?OUT:IN}function calculateDistance(startPoint,endPoint){return Math.round(Math.sqrt(Math.pow(endPoint.x-startPoint.x,2)+Math.pow(endPoint.y-startPoint.y,2)))}function calculateAngle(startPoint,endPoint){var x=startPoint.x-endPoint.x,y=endPoint.y-startPoint.y,r=Math.atan2(y,x),angle=Math.round(180*r/Math.PI);return 0>angle&&(angle=360-Math.abs(angle)),angle}function calculateDirection(startPoint,endPoint){if(comparePoints(startPoint,endPoint))return NONE;var angle=calculateAngle(startPoint,endPoint);return 45>=angle&&angle>=0?LEFT:360>=angle&&angle>=315?LEFT:angle>=135&&225>=angle?RIGHT:angle>45&&135>angle?DOWN:UP}function getTimeStamp(){var now=new Date;return now.getTime()}function getbounds(el){el=$(el);var offset=el.offset(),bounds={left:offset.left,right:offset.left+el.outerWidth(),top:offset.top,bottom:offset.top+el.outerHeight()};return bounds}function isInBounds(point,bounds){return point.x>bounds.left&&point.x<bounds.right&&point.y>bounds.top&&point.y<bounds.bottom}function comparePoints(pointA,pointB){return pointA.x==pointB.x&&pointA.y==pointB.y}var options=$.extend({},options),useTouchEvents=SUPPORTS_TOUCH||SUPPORTS_POINTER||!options.fallbackToMouseEvents,START_EV=useTouchEvents?SUPPORTS_POINTER?SUPPORTS_POINTER_IE10?"MSPointerDown":"pointerdown":"touchstart":"mousedown",MOVE_EV=useTouchEvents?SUPPORTS_POINTER?SUPPORTS_POINTER_IE10?"MSPointerMove":"pointermove":"touchmove":"mousemove",END_EV=useTouchEvents?SUPPORTS_POINTER?SUPPORTS_POINTER_IE10?"MSPointerUp":"pointerup":"touchend":"mouseup",LEAVE_EV=useTouchEvents?SUPPORTS_POINTER?"mouseleave":null:"mouseleave",CANCEL_EV=SUPPORTS_POINTER?SUPPORTS_POINTER_IE10?"MSPointerCancel":"pointercancel":"touchcancel",distance=0,direction=null,currentDirection=null,duration=0,startTouchesDistance=0,endTouchesDistance=0,pinchZoom=1,pinchDistance=0,pinchDirection=0,maximumsMap=null,$element=$(element),phase="start",fingerCount=0,fingerData={},startTime=0,endTime=0,previousTouchEndTime=0,fingerCountAtRelease=0,doubleTapStartTime=0,singleTapTimeout=null,holdTimeout=null;try{$element.on(START_EV,touchStart),$element.on(CANCEL_EV,touchCancel)}catch(e){$.error("events not supported "+START_EV+","+CANCEL_EV+" on jQuery.swipe")}this.enable=function(){return this.disable(),$element.on(START_EV,touchStart),$element.on(CANCEL_EV,touchCancel),$element},this.disable=function(){return removeListeners(),$element},this.destroy=function(){removeListeners(),$element.data(PLUGIN_NS,null),$element=null},this.option=function(property,value){if("object"==typeof property)options=$.extend(options,property);else if(void 0!==options[property]){if(void 0===value)return options[property];options[property]=value}else{if(!property)return options;$.error("Option "+property+" does not exist on jQuery.swipe.options")}return null}}var VERSION="1.6.18",LEFT="left",RIGHT="right",UP="up",DOWN="down",IN="in",OUT="out",
22NONE="none",AUTO="auto",SWIPE="swipe",PINCH="pinch",TAP="tap",DOUBLE_TAP="doubletap",LONG_TAP="longtap",HORIZONTAL="horizontal",VERTICAL="vertical",ALL_FINGERS="all",DOUBLE_TAP_THRESHOLD=10,PHASE_START="start",PHASE_MOVE="move",PHASE_END="end",PHASE_CANCEL="cancel",SUPPORTS_TOUCH="ontouchstart"in window,SUPPORTS_POINTER_IE10=window.navigator.msPointerEnabled&&!window.PointerEvent&&!SUPPORTS_TOUCH,SUPPORTS_POINTER=(window.PointerEvent||window.navigator.msPointerEnabled)&&!SUPPORTS_TOUCH,PLUGIN_NS="TouchSwipe",defaults={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:".noSwipe",preventDefaultEvents:!0};$.fn.swipe=function(method){var $this=$(this),plugin=$this.data(PLUGIN_NS);if(plugin&&"string"==typeof method){if(plugin[method])return plugin[method].apply(plugin,Array.prototype.slice.call(arguments,1));$.error("Method "+method+" does not exist on jQuery.swipe")}else if(plugin&&"object"==typeof method)plugin.option.apply(plugin,arguments);else if(!(plugin||"object"!=typeof method&&method))return init.apply(this,arguments);return $this},$.fn.swipe.version=VERSION,$.fn.swipe.defaults=defaults,$.fn.swipe.phases={PHASE_START:PHASE_START,PHASE_MOVE:PHASE_MOVE,PHASE_END:PHASE_END,PHASE_CANCEL:PHASE_CANCEL},$.fn.swipe.directions={LEFT:LEFT,RIGHT:RIGHT,UP:UP,DOWN:DOWN,IN:IN,OUT:OUT},$.fn.swipe.pageScroll={NONE:NONE,HORIZONTAL:HORIZONTAL,VERTICAL:VERTICAL,AUTO:AUTO},$.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,FOUR:4,FIVE:5,ALL:ALL_FINGERS}}); 23jQuery(document).ready(function(e){class t{constructor(n){if(t.activeToggleClass="is-active",t.openContainerClass="rmp-menu-open",t.activeSubMenuArrowClass="rmp-menu-subarrow-active",t.subMenuClass=".rmp-submenu",t.activeTopMenuClass="rmp-topmenu-active",this.options=n,this.menuId=this.options.menu_id,this.trigger="#rmp_menu_trigger-"+this.menuId,this.isOpen=!1,this.container="#rmp-container-"+this.menuId,this.headerBar="#rmp-header-bar-"+this.menuId,this.menuWrap="ul#rmp-menu-"+this.menuId,this.pageOverlay="#rmp-page-overlay-"+this.menuId,this.subMenuArrow=".rmp-menu-subarrow",this.wrapper=".rmp-container",this.linkElement=".rmp-menu-item-link",this.pageWrapper=this.options.page_wrapper,this.use_desktop_menu=this.options.use_desktop_menu,this.originalHeight="",this.animationSpeed=1e3*this.options.animation_speed,this.hamburgerBreakpoint=this.options.tablet_breakpoint,this.subMenuTransitionTime=1e3*this.options.sub_menu_speed,this.smoothScrollSpeed=1e3*this.options.smooth_scroll_speed,this.options.button_click_trigger.length>0&&(this.trigger=this.trigger+" , "+this.options.button_click_trigger),"inside-element"==this.options.button_position_type){var i=e(this.trigger).attr("data-destination");e(this.trigger).appendTo(e(i).parent())}this.init()}smoothScrollToLocation(t){t.target.hash&&e("html, body").animate({scrollTop:e(t.target.hash).offset().top},500)}init(){let t=this;if("on"==this.options.button_trigger_type_click&&e(this.trigger).on("click",function(e){e.stopPropagation(),t.triggerMenu()}),"on"==this.options.button_trigger_type_hover&&e(this.trigger).on("mouseover",function(e){e.stopPropagation(),t.triggerMenu()}),e(t.menuWrap).find(t.subMenuArrow).on("click",function(e){e.preventDefault(),e.stopPropagation(),t.triggerSubArrow(this)}),"on"==t.options.menu_close_on_body_click&&e(document).on("click","body",function(n){e(window).width()<t.hamburgerBreakpoint&&(!t.isOpen||!e(n.target).closest(t.container).length&&!e(n.target).closest(t.target).length)&&t.closeMenu()}),"on"==t.options.menu_close_on_scroll&&e(window).scroll(function(n){if(e(window).width()<t.hamburgerBreakpoint){let i=e(".rmp-search-box");!(i&&i.is(":focus"))&&t.isOpen&&t.closeMenu()}}),e(document).on("keydown",function(t){let n=e(".rmp-container.rmp-menu-open");if(n.length){let i=n.find(".rmp-selected-menu-item").length?n.find(".rmp-selected-menu-item"):n.find(".rmp-menu-current-item"),s=e(".rmp-container.rmp-menu-open"),r=n.find(".rmp-menu-item");if(9===t.keyCode){if(r.removeClass("rmp-selected-menu-item"),i.length){if(i.hasClass("rmp-menu-item-has-children")){i.children(".rmp-menu-item-link").first().find(".rmp-menu-subarrow").click();i.find(".rmp-submenu").children(".rmp-menu-item").first().addClass("rmp-selected-menu-item").children(".rmp-menu-item-link").first().focus()}else{let o=i.next(".rmp-menu-item");if(o.length)o.addClass("rmp-selected-menu-item").children(".rmp-menu-item-link").first().focus();else{let a=i.closest(".rmp-submenu");if(a.length){let m=a.closest(".rmp-menu-item"),p=m.next(".rmp-menu-item");if(m.children(".rmp-menu-item-link").first().find(".rmp-menu-subarrow").click(),p.length)p.addClass("rmp-selected-menu-item").children(".rmp-menu-item-link").first().focus();else{let u=m.closest(".rmp-submenu").closest(".rmp-menu-item").next(".rmp-menu-item");u.length?u.find(".rmp-menu-item-link").addClass("rmp-selected-menu-item").children(".rmp-menu-item-link").first().focus():s.find(".rmp-menu-item").first().addClass("rmp-selected-menu-item").children(".rmp-menu-item-link").first().focus()}}else s.find(".rmp-menu-item").first().addClass("rmp-selected-menu-item").children(".rmp-menu-item-link").first().focus()}}}
23else r.first().addClass("rmp-selected-menu-item").children(".rmp-menu-item-link").first().focus();t.preventDefault()}13===t.keyCode&&i.length&&i.click()}}),"on"==t.options.enable_touch_gestures){let n=t.options.menu_appear_from;"top"==t.options.menu_appear_from?n="up":"bottom"==t.options.menu_appear_from&&(n="down");let i="horizontal";("left"==n||"right"==n)&&(i="vertical"),e(t.container).swipe({swipe:function(i,s,r,o,a,m){e(window).width()<t.hamburgerBreakpoint&&s==n&&t.closeMenu()},threshold:25,allowPageScroll:i,excludedElements:"button, input, select, textarea, a, .noSwipe, .rmp-search-box"})}if("on"==t.options.menu_close_on_link_click&&e(this.menuWrap+" "+t.linkElement).on("click",function(n){if(e(window).width()<t.hamburgerBreakpoint){if(n.preventDefault(),"on"==t.options.menu_item_click_to_trigger_submenu&&e(this).is(".rmp-menu-item-has-children > "+t.linkElement))return;let i=e(this).attr("href"),s=void 0===e(this).attr("target")?"_self":e(this).attr("target");if(t.isOpen){if(e(n.target).closest(this.subMenuArrow).length)return;void 0!==i&&(t.closeMenu(),setTimeout(function(){window.open(i,s)},t.animationSpeed))}}}),"on"==t.options.use_slide_effect&&e(".rmp-go-back").on("click",function(){t.backUpSlide(this)}),"on"==t.options.show_menu_on_page_load&&e(window).width()<t.hamburgerBreakpoint&&t.openMenu(),e(document).on("keyup",function(n){if(e(window).width()<t.hamburgerBreakpoint){let i=n.keyCode.toString(),s=t.options.keyboard_shortcut_open_menu,r=t.options.keyboard_shortcut_close_menu;e.isArray(s)&&-1!==e.inArray(i,s)&&!t.isOpen?t.openMenu():e.isArray(r)&&-1!==e.inArray(i,r)&&t.isOpen&&t.closeMenu()}}),"on"==t.options.menu_item_click_to_trigger_submenu&&e(this.menuWrap+" .rmp-menu-item-has-children > "+t.linkElement).on("click",function(n){e(window).width()<t.hamburgerBreakpoint&&(n.preventDefault(),t.triggerSubArrow(e(this).children(".rmp-menu-subarrow").first()))}),"on"==t.options.smooth_scroll_on&&e(this.menuWrap+" "+t.linkElement).on("click",function(e){t.smoothScrollToLocation(e)}),"on"==t.options.desktop_submenu_open_on_click&&e(t.menuWrap+" li.rmp-menu-item-has-children a.rmp-menu-item-link").on("click",function(n){if(e(window).width()>t.hamburgerBreakpoint){n.stopPropagation(),n.preventDefault(),n.stopImmediatePropagation();var i=e(this).siblings(".rmp-submenu");if(!(!i.length||e(this).attr("data-click")))return e(this).attr("data-click",!0),i.addClass("rmp-submenu-animate-on"),i.show(),!1;window.location=this.href}}),"on"==t.options.use_desktop_menu&&"on"==t.options.desktop_menu_hide_and_show){var s,r=0,o=e(t.container);"on"==t.options.use_header_bar&&(o=e(t.headerBar)),e(window).scroll(function(){if(e(window).width()>t.hamburgerBreakpoint){var n=o.height();s<(r=e(window).scrollTop())&&r>n?(o.fadeOut(100),o.css({transform:"translateY( -"+n+"px )"})):(o.fadeIn(100),o.css({transform:""})),s=r}})}"on"==t.options.use_header_bar&&"on"==t.options.header_bar_scroll_enable&&e(window).scroll(function(){let n=e(t.headerBar);e(window).scrollTop()>n.height()?n.addClass("header-scolling-bg-color"):n.removeClass("header-scolling-bg-color")}),this.setActiveMenuItemOnLoad()}setActiveMenuItemOnLoad(){let n=window.location.href,i=e(this.menuWrap).find("a");i.each(function(){if(this.href===n)return e(this).closest(".rmp-menu-item-has-children").addClass(t.activeTopMenuClass),!1})}setWrapperTranslate(){let t,n;switch(this.options.menu_appear_from){case"left":t="translateX("+this.menuWidth()+"px)",n="translateX(-"+this.menuWidth()+"px)";break;case"right":t="translateX(-"+this.menuWidth()+"px)",n="translateX("+this.menuWidth()+"px)";break;case"top":t="translateY("+this.wrapperHeight()+"px)",n="translateY(-"+this.menuHeight()+"px)";break;case"bottom":t="translateY(-"+this.menuHeight()+"px)",n="translateY("+this.menuHeight()+"px)"}"push"==this.options.animation_type&&(e(this.pageWrapper).css({transform:t}),"body"==this.pageWrapper&&e(this.container).css({transform:n})),"on"==this.options.button_push_with_animation&&e(this.trigger).css({transform:t})}clearWrapperTranslate(){"push"==this.options.animation_type&&e(this.pageWrapper).css({transform:""}),"on"==this.options.button_push_with_animation&&e(this.trigger).css({transform:""})}fadeMenuIn(){e(this.container).fadeIn(this.animationSpeed)}fadeMenuOut(){e(this.container).fadeOut(this.animationSpeed,function(){e(this).css("display","")})}openMenu(){var n=this;e(this.trigger).addClass(t.activeToggleClass),e(this.container).addClass(t.o
23penContainerClass),"on"==this.options.menu_overlay&&e(this.pageOverlay).addClass(t.activeToggleClass),"fade"==this.options.animation_type?this.fadeMenuIn():this.setWrapperTranslate(),"on"==n.options.fade_submenus&&e(".rmp-menu > li").each(function(t){e(this).show(),e(this).animate({opacity:0},0),"left"==n.options.fade_submenus_side&&e(this).animate({"margin-left":"-150px"},0),"right"==n.options.fade_submenus_side&&e(this).animate({"margin-left":"150px"},0),e(this).delay(n.options.fade_submenus_delay*t).animate({"margin-left":"0",opacity:1},n.options.fade_submenus_delay)}),"on"==n.options.use_slide_effect&&e(window).width()<=n.hamburgerBreakpoint&&e(n.menuWrap).promise().done(function(){n.originalHeight=e(n.menuWrap).height(),e(n.menuWrap).css({height:n.originalHeight})}),"on"==n.options.menu_disable_scrolling&&e("body").css("overflow","hidden"),this.isOpen=!0}closeMenu(){e(this.trigger).removeClass(t.activeToggleClass),e(this.container).removeClass(t.openContainerClass),"on"==this.options.menu_overlay&&e(this.pageOverlay).removeClass(t.activeToggleClass),"fade"==this.options.animation_type?this.fadeMenuOut():this.clearWrapperTranslate(),"on"==this.options.menu_disable_scrolling&&e("body").css("overflow","auto"),this.isOpen=!1}triggerMenu(){this.isOpen?this.closeMenu():this.openMenu()}triggerSubArrow(n){var i=this,s=e(n).parent().siblings(t.subMenuClass);if("on"==i.options.use_slide_effect){if(e(window).width()<=i.hamburgerBreakpoint){e(i.container).find(".rmp-submenu-open").removeClass("rmp-submenu-open"),s.addClass("rmp-submenu-open"),s.parentsUntil(i.menuWrap).addClass("rmp-submenu-open");let r=e(n).parents(".rmp-submenu").data("depth"),o=100*(r=void 0===r?1:r);e(i.menuWrap).css({transform:"translateX(-"+o+"%)"}),e(i.menuWrap).css({height:s.height()+"px"})}}else{if("on"==i.options.accordion_animation){var a=s.parents(".rmp-menu-item-has-children").last().siblings(".rmp-menu-item-has-children"),m=s.parents(".rmp-menu-item-has-children").first().siblings(".rmp-menu-item-has-children");a.children(".rmp-submenu").slideUp(i.subMenuTransitionTime,"linear").removeClass("rmp-submenu-open"),a.each(function(){e(this).find(i.subMenuArrow).first().html(i.options.inactive_toggle_contents),e(this).find(i.subMenuArrow).first().removeClass(t.activeSubMenuArrowClass)}),m.children(".rmp-submenu").slideUp(i.subMenuTransitionTime,"linear").removeClass("rmp-submenu-open"),m.each(function(){e(this).find(i.subMenuArrow).first().html(i.options.inactive_toggle_contents),e(this).find(i.subMenuArrow).first().removeClass(t.activeSubMenuArrowClass)})}s.hasClass("rmp-submenu-open")?(s.slideUp(i.subMenuTransitionTime,"linear",function(){e(this).css("display","")}).removeClass("rmp-submenu-open"),e(n).html(i.options.inactive_toggle_contents),e(n).removeClass(t.activeSubMenuArrowClass)):(s.slideDown(i.subMenuTransitionTime,"linear").addClass("rmp-submenu-open"),e(n).html(i.options.active_toggle_contents),e(n).addClass(t.activeSubMenuArrowClass))}}pushMenuTrigger(t){"on"==this.options.button_push_with_animation&&e(this.trigger).css({transform:this.menuWidth()})}menuHeight(){return e(this.container).height()}menuWidth(){return e(this.container).width()}wrapperHeight(){return e(this.wrapper).height()}backUpSlide(t){let n=parseInt(e(this.menuWrap)[0].style.transform.replace(/^\D+/g,""))-100;e(this.menuWrap).css({transform:"translateX(-"+n+"%)"});let i=e(t).parent("ul").parent("li").parent(".rmp-submenu").height();i?e(this.menuWrap+this.menuId).css({height:i+"px"}):e(this.menuWrap).css({height:this.originalHeight})}}for(let n=0;n<rmp_menu.menu.length;n++)new t(rmp_menu.menu[n]);"undefined"!=typeof twentytwenty&&e("header#site-header").find("ul.primary-menu").removeClass("primary-menu"),e(".rmp-mega-menu-container").each(function(){var t=e(this).parent().offset(),n=e("body").width()-t.left,i=e(this).width();e(window).width()>rmp_menu.menu[0].tablet_breakpoint&&i>n&&e(this).css("margin-left","-"+(i-n)+"px")})});
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.