%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/projetos/prod.jornalshowdafe.com.br/wp-content/themes/__betheme/js/
Upload File :
Create Path :
Current File : /var/www/projetos/prod.jornalshowdafe.com.br/wp-content/themes/__betheme/js/plugins.min.js

!function(t){t.fn.twentytwenty=function(e){return e=t.extend({default_offset_pct:.5,orientation:"horizontal",before_label:"Before",after_label:"After",no_overlay:!1,move_slider_on_hover:!1,move_with_handle_only:!0,click_to_move:!1},e),this.each((function(){var i=e.default_offset_pct,o=t(this),n=e.orientation,r="vertical"===n?"down":"left",s="vertical"===n?"up":"right";o.data("before")&&(e.before_label=o.data("before")),o.data("after")&&(e.after_label=o.data("after")),o.wrap("<div class='twentytwenty-wrapper twentytwenty-"+n+"'></div>"),e.no_overlay||(o.append("<div class='twentytwenty-overlay'></div>"),(v=o.find(".twentytwenty-overlay")).append("<div class='twentytwenty-before-label' data-content='"+e.before_label+"'></div>"),v.append("<div class='twentytwenty-after-label' data-content='"+e.after_label+"'></div>"));var a=o.find("img:first"),l=o.find("img:last");o.append("<div class='twentytwenty-handle'></div>");var c=o.find(".twentytwenty-handle");function d(t){var e,i;e=t,t={w:(i=a.width())+"px",h:(t=a.height())+"px",cw:e*i+"px",ch:e*t+"px"};c.css("vertical"===n?"top":"left","vertical"===n?t.ch:t.cw),t=t,"vertical"===n?(a.css("clip","rect(0,"+t.w+","+t.ch+",0)"),l.css("clip","rect("+t.ch+","+t.w+","+t.h+",0)")):(a.css("clip","rect(0,"+t.cw+","+t.h+",0)"),l.css("clip","rect(0,"+t.w+","+t.h+","+t.cw+")")),o.css("height",t.h)}function u(t,e){var i;return i="vertical"===n?(e-f)/g:(t-h)/m,e=0,t=1,Math.max(e,Math.min(t,i))}function p(t){((t.distX>t.distY&&t.distX<-t.distY||t.distX<t.distY&&t.distX>-t.distY)&&"vertical"!==n||(t.distX<t.distY&&t.distX<-t.distY||t.distX>t.distY&&t.distX>-t.distY)&&"vertical"===n)&&t.preventDefault(),o.addClass("active"),h=o.offset().left,f=o.offset().top,m=a.width(),g=a.height()}c.append("<span class='twentytwenty-"+r+"-arrow'></span>"),c.append("<span class='twentytwenty-"+s+"-arrow'></span>"),o.addClass("twentytwenty-container"),a.addClass("twentytwenty-before"),l.addClass("twentytwenty-after"),t(window).on("resize.twentytwenty",(function(t){d(i)}));var h=0,f=0,m=0,g=0,v=function(t){o.hasClass("active")&&d(i=u(t.pageX,t.pageY))};r=function(){o.removeClass("active")};(s=e.move_with_handle_only?c:o).on("movestart",p),s.on("move",v),s.on("moveend",r),e.move_slider_on_hover&&(o.on("mouseenter",p),o.on("mousemove",v),o.on("mouseleave",r)),c.on("touchmove",(function(t){t.preventDefault()})),o.find("img").on("mousedown",(function(t){t.preventDefault()})),e.click_to_move&&o.on("click",(function(t){h=o.offset().left,f=o.offset().top,m=a.width(),g=a.height(),d(i=u(t.pageX,t.pageY))})),t(window).trigger("resize.twentytwenty")}))}}(jQuery),function(t){"function"==typeof define&&define.amd?define([],t):"undefined"!=typeof module&&null!==module&&module.exports?module.exports=t:t()}((function(){var t=Object.assign||window.jQuery&&jQuery.extend,e=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t,e){return window.setTimeout((function(){t()}),25)},i={textarea:!0,input:!0,select:!0,button:!0},o="mousemove",n="mouseup dragstart",r="mouseup",s="touchmove",a="touchend",l="touchend",c=/\s+/,d={bubbles:!0,cancelable:!0},u=Symbol("events");function p(t){return t[u]||(t[u]={})}function h(t,e,i,o,n){e=e.split(c);var r,s=p(t),a=e.length;function l(t){i(t,o)}for(;a--;)(s[r=e[a]]||(s[r]=[])).push([i,l]),t.addEventListener(r,l)}function f(t,e,i,o){e=e.split(c);var n,r,s,a=p(t),l=e.length;if(a)for(;l--;)if(r=a[n=e[l]])for(s=r.length;s--;)r[s][0]===i&&(t.removeEventListener(n,r[s][1]),r.splice(s,1))}function m(e,i,o){var n=function(t){return new CustomEvent(t,d)}(i);o&&t(n,o),e.dispatchEvent(n)}function g(t){var i=t,o=!1,n=!1;function r(t){o?(i(),e(r),n=!0,o=!1):n=!1}this.kick=function(t){o=!0,n||r()},this.end=function(t){var e=i;t&&(n?(i=o?function(){e(),t()}:t,o=!0):t())}}function v(){}function y(t){t.preventDefault()}function w(t,e){var i,o;if(t.identifiedTouch)return t.identifiedTouch(e);for(i=-1,o=t.length;++i<o;)if(t[i].identifier===e)return t[i]}function b(t,e){var i=w(t.changedTouches,e.identifier);if(i&&(i.pageX!==e.pageX||i.pageY!==e.pageY))return i}function S(t,e){C(t,e,t,T)}function x(t,e){T()}function T(){f(document,o,S),f(document,n,x)}function k(t){f(document,s,t.touchmove),f(document,a,t.touchend)}function C(t,e,i,o){var n=i.pageX-e.pageX,r=i.pageY-e.pageY;n*n+r*r<64||function(t,e,i,o,n,r){var s=t.targetTouches,a=t.timeStamp-e.timeStamp,l={altKey:t.altKey,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,startX:e.pageX,startY:e.pageY,distX:o,distY:n,deltaX:o,deltaY:n,pageX:i.pageX,pageY:i.pageY,velocityX:o/a,velocityY:n/a,identifier:e.identifier,targetTouches:s,finger:s?s.length:1,enableMove:function(){this.moveEnabled=!0,this.enableMove=v,t.preventDefault()}};m(e.target,"movestart",l),r(e)}(t,e,i,n,r,o)}function z(t,e){var i=e.timer;e.touch=t,e.timeStamp=t.timeStamp,i.kick()}function E(t,e){var i=e.target,n=e.event,s=e.timer;f(document,o,z),f(document,r,E),I(i,n,s,(function(){setTimeout((function(){f(i,"click",y)}),0)}))}function I(t,e,i,o){i.end((function(){return m(t,"moveend",e),o&&o()}))}if(h(document,"mousedown",(function(t){(function(t){return 1===t.which&&!t.ctrlKey&&!t.altKey})(t)&&(function(t){return!!t.target.tagName&&!!i[t.target.tagName.toLowerCase()]}(t)||(h(document,o,S,t),h(document,n,x,t)))})),h(document,"touchstart",(function(t){if(!i[t.target.tagName.toLowerCase()]){var e=t.changedTouches[0],o={target:e.target,pageX:e.pageX,pageY:e.pageY,identifier:e.identifier,touchmove:function(t,e){!function(t,e){var i=b(t,e);i&&C(t,e,i,k)}(t,e)},touchend:function(t,e){!function(t,e){w(t.changedTouches,e.identifier)&&k(e)}(t,e)}};h(document,s,o.touchmove,o),h(document,a,o.touchend,o)}})),h(document,"movestart",(function(t){if(!t.defaultPrevented&&t.moveEnabled){var e={startX:t.startX,startY:t.startY,pageX:t.pageX,pageY:t.pageY,distX:t.distX,distY:t.distY,deltaX:t.deltaX,deltaY:t.deltaY,velocityX:t.velocityX,velocityY:t.velocityY,identifier:t.identifier,targetTouches:t.targetTouches,finger:t.finger},i={target:t.target,event:e,timer:new g((function(t){(function(t,e,i){var o=i-t.timeStamp;t.distX=e.pageX-t.startX,t.distY=e.pageY-t.startY,t.deltaX=e.pageX-t.pageX,t.deltaY=e.pageY-t.pageY,t.velocityX=.3*t.velocityX+.7*t.deltaX/o,t.velocityY=.3*t.velocityY+.7*t.deltaY/o,t.pageX=e.pageX,t.pageY=e.pageY})(e,i.touch,i.timeStamp),m(i.target,"move",e)})),touch:void 0,timeStamp:t.timeStamp};void 0===t.identifier?(h(t.target,"click",y),h(document,o,z,i),h(document,r,E,i)):(i.activeTouchmove=function(t,e){!function(t,e){var i=e.event,o=e.timer,n=b(t,i);n&&(t.preventDefault(),i.targetTouches=t.targetTouches,e.touch=n,e.timeStamp=t.timeStamp,o.kick())}(t,e)},i.activeTouchend=function(t,e){!function(t,e){var i=e.target,o=e.event,n=e.timer;w(t.changedTouches,o.identifier)&&(function(t){f(document,s,t.activeTouchmove),f(document,l,t.activeTouchend)}(e),I(i,o,n))}(t,e)},h(document,s,i.activeTouchmove,i),h(document,l,i.activeTouchend,i))}})),window.jQuery){var _="startX startY pageX pageY distX distY deltaX deltaY velocityX velocityY".split(" ");jQuery.event.special.movestart={setup:function(){return h(this,"movestart",L),!1},teardown:function(){return f(this,"movestart",L),!1},add:P},jQuery.event.special.move={setup:function(){return h(this,"movestart",O),!1},teardown:function(){return f(this,"movestart",O),!1},add:P},jQuery.event.special.moveend={setup:function(){return h(this,"movestart",M),!1},teardown:function(){return f(this,"movestart",M),!1},add:P}}function L(t){t.enableMove()}function O(t){t.enableMove()}function M(t){t.enableMove()}function P(t){var e=t.handler;t.handler=function(t){for(var i,o=_.length;o--;)t[i=_[o]]=t.originalEvent[i];e.apply(this,arguments)}}})),function(t,e){"function"==typeof define&&define.amd?define(["jquery"],(function(t){return e(t)})):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(0,(function(t){var e=function(t,e){var i,o=document.createElement("canvas");t.appendChild(o),"object"==typeof G_vmlCanvasManager&&G_vmlCanvasManager.initElement(o);var n=o.getContext("2d");o.width=o.height=e.size;var r=1;window.devicePixelRatio>1&&(r=window.devicePixelRatio,o.style.width=o.style.height=[e.size,"px"].join(""),o.width=o.height=e.size*r,n.scale(r,r)),n.translate(e.size/2,e.size/2),n.rotate((e.rotate/180-.5)*Math.PI);var s=(e.size-e.lineWidth)/2;e.scaleColor&&e.scaleLength&&(s-=e.scaleLength+2),Date.now=Date.now||function(){return+new Date};var a=function(t,e,i){var o=0>=(i=Math.min(Math.max(-1,i||0),1));n.beginPath(),n.arc(0,0,s,0,2*Math.PI*i,o),n.strokeStyle=t,n.lineWidth=e,n.stroke()},l=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)},c=function(){e.scaleColor&&function(){var t,i;n.lineWidth=1,n.fillStyle=e.scaleColor,n.save();for(var o=24;o>0;--o)o%6==0?(i=e.scaleLength,t=0):(i=.6*e.scaleLength,t=e.scaleLength-i),n.fillRect(-e.size/2+t,0,i,1),n.rotate(Math.PI/12);n.restore()}(),e.trackColor&&a(e.trackColor,e.trackWidth||e.lineWidth,1)};this.getCanvas=function(){return o},this.getCtx=function(){return n},this.clear=function(){n.clearRect(e.size/-2,e.size/-2,e.size,e.size)},this.draw=function(t){var o;e.scaleColor||e.trackColor?n.getImageData&&n.putImageData?i?n.putImageData(i,0,0):(c(),i=n.getImageData(0,0,e.size*r,e.size*r)):(this.clear(),c()):this.clear(),n.lineCap=e.lineCap,o="function"==typeof e.barColor?e.barColor(t):e.barColor,a(o,e.lineWidth,t/100)}.bind(this),this.animate=function(t,i){var o=Date.now();e.onStart(t,i);var n=function(){var r=Math.min(Date.now()-o,e.animate.duration),s=e.easing(this,r,t,i-t,e.animate.duration);this.draw(s),e.onStep(t,i,s),r>=e.animate.duration?e.onStop(t,i):l(n)}.bind(this);l(n)}.bind(this)},i=function(t,i){var o={barColor:"#ef1e25",trackColor:"#f9f9f9",scaleColor:"#dfe0e0",scaleLength:5,lineCap:"round",lineWidth:3,trackWidth:void 0,size:110,rotate:0,animate:{duration:1e3,enabled:!0},easing:function(t,e,i,o,n){return 1>(e/=n/2)?o/2*e*e+i:-o/2*(--e*(e-2)-1)+i},onStart:function(t,e){},onStep:function(t,e,i){},onStop:function(t,e){}};if(void 0!==e)o.renderer=e;else{if("undefined"==typeof SVGRenderer)throw new Error("Please load either the SVG- or the CanvasRenderer");o.renderer=SVGRenderer}var n={},r=0,s=function(){for(var e in this.el=t,this.options=n,o)o.hasOwnProperty(e)&&(n[e]=i&&void 0!==i[e]?i[e]:o[e],"function"==typeof n[e]&&(n[e]=n[e].bind(this)));"string"==typeof n.easing&&"undefined"!=typeof jQuery&&jQuery.isFunction(jQuery.easing[n.easing])?n.easing=jQuery.easing[n.easing]:n.easing=o.easing,"number"==typeof n.animate&&(n.animate={duration:n.animate,enabled:!0}),"boolean"!=typeof n.animate||n.animate||(n.animate={duration:1e3,enabled:n.animate}),this.renderer=new n.renderer(t,n),this.renderer.draw(r),t.dataset&&t.dataset.percent?this.update(parseFloat(t.dataset.percent)):t.getAttribute&&t.getAttribute("data-percent")&&this.update(parseFloat(t.getAttribute("data-percent")))}.bind(this);this.update=function(t){return t=parseFloat(t),n.animate.enabled?this.renderer.animate(r,t):this.renderer.draw(t),r=t,this}.bind(this),this.disableAnimation=function(){return n.animate.enabled=!1,this},this.enableAnimation=function(){return n.animate.enabled=!0,this},s()};t.fn.easyPieChart=function(e){return this.each((function(){var o;t.data(this,"easyPieChart")||(o=t.extend({},e,t(this).data()),t.data(this,"easyPieChart",new i(this,o)))}))}})),function(t){t.fn.downCount=function(e,i){var o=t.extend({date:null,offset:null},e);o.date||t.error("Date is not defined."),Date.parse(o.date)||t.error("Incorrect date format, it should look like this, 12/24/2012 12:00:00.");var n=this,r=function(){var t=new Date,e=t.getTime()+6e4*t.getTimezoneOffset();return new Date(e+36e5*o.offset)},s=setInterval((function(){var t=new Date(o.date)-r();if(t<0)return clearInterval(s),void(i&&"function"==typeof i&&i());var e=6e4,a=60*e,l=24*a,c=Math.floor(t/l),d=Math.floor(t%l/a),u=Math.floor(t%a/e),p=Math.floor(t%e/1e3),h=1===(c=String(c).length>=2?c:"0"+c)?"day":"days",f=1===(d=String(d).length>=2?d:"0"+d)?"hour":"hours",m=1===(u=String(u).length>=2?u:"0"+u)?"minute":"minutes",g=1===(p=String(p).length>=2?p:"0"+p)?"second":"seconds";n.find(".days").text(c),n.find(".hours").text(d),n.find(".minutes").text(u),n.find(".seconds").text(p),n.find(".days_ref").text(h),n.find(".hours_ref").text(f),n.find(".minutes_ref").text(m),n.find(".seconds_ref").text(g)}),1e3)}}(jQuery),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,(function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},o=i[t]=i[t]||[];return-1==o.indexOf(e)&&o.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var o=i.indexOf(e);return-1!=o&&i.splice(o,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var o=this._onceEvents&&this._onceEvents[t],n=0;n<i.length;n++){var r=i[n];o&&o[r]&&(this.off(t,r),delete o[r]),r.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t})),function(t,e){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],(function(i){return e(t,i)})):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,(function(t,e){function i(t,e){for(var i in e)t[i]=e[i];return t}function o(t,e,n){if(!(this instanceof o))return new o(t,e,n);var r=t;return"string"==typeof t&&(r=document.querySelectorAll(t)),r?(this.elements=function(t){return Array.isArray(t)?t:"object"==typeof t&&"number"==typeof t.length?l.call(t):[t]}(r),this.options=i({},this.options),"function"==typeof e?n=e:i(this.options,e),n&&this.on("always",n),this.getImages(),s&&(this.jqDeferred=new s.Deferred),void setTimeout(this.check.bind(this))):void a.error("Bad element for imagesLoaded "+(r||t))}function n(t){this.img=t}function r(t,e){this.url=t,this.element=e,this.img=new Image}var s=t.jQuery,a=t.console,l=Array.prototype.slice;o.prototype=Object.create(e.prototype),o.prototype.options={},o.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},o.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&c[e]){for(var i=t.querySelectorAll("img"),o=0;o<i.length;o++){var n=i[o];this.addImage(n)}if("string"==typeof this.options.background){var r=t.querySelectorAll(this.options.background);for(o=0;o<r.length;o++){var s=r[o];this.addElementBackgroundImages(s)}}}};var c={1:!0,9:!0,11:!0};return o.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var i=/url\((['"])?(.*?)\1\)/gi,o=i.exec(e.backgroundImage);null!==o;){var n=o&&o[2];n&&this.addBackground(n,t),o=i.exec(e.backgroundImage)}},o.prototype.addImage=function(t){var e=new n(t);this.images.push(e)},o.prototype.addBackground=function(t,e){var i=new r(t,e);this.images.push(i)},o.prototype.check=function(){function t(t,i,o){setTimeout((function(){e.progress(t,i,o)}))}var e=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEach((function(e){e.once("progress",t),e.check()})):void this.complete()},o.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&a&&a.log("progress: "+i,t,e)},o.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){var e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}},n.prototype=Object.create(e.prototype),n.prototype.check=function(){return this.getIsImageComplete()?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),void(this.proxyImage.src=this.img.src))},n.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},n.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},n.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},n.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},n.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},n.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},r.prototype=Object.create(n.prototype),r.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},r.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},r.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},o.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&((s=e).fn.imagesLoaded=function(t,e){return new o(this,t,e).jqDeferred.promise(s(this))})},o.makeJQueryPlugin(),o})),function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],(function(i){return e(t,i)})):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,(function(t,e){"use strict";function i(i,r,a){function l(t,e,o){var n,r="$()."+i+'("'+e+'")';return t.each((function(t,l){var c=a.data(l,i);if(c){var d=c[e];if(d&&"_"!=e.charAt(0)){var u=d.apply(c,o);n=void 0===n?u:n}else s(r+" is not a valid method")}else s(i+" not initialized. Cannot call methods, i.e. "+r)})),void 0!==n?n:t}function c(t,e){t.each((function(t,o){var n=a.data(o,i);n?(n.option(e),n._init()):(n=new r(o,e),a.data(o,i,n))}))}(a=a||e||t.jQuery)&&(r.prototype.option||(r.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if("string"==typeof t){var e=n.call(arguments,1);return l(this,t,e)}return c(this,t),this},o(a))}function o(t){!t||t&&t.bridget||(t.bridget=i)}var n=Array.prototype.slice,r=t.console,s=void 0===r?function(){}:function(t){r.error(t)};return o(e||t.jQuery),i})),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,(function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},o=i[t]=i[t]||[];return-1==o.indexOf(e)&&o.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var o=i.indexOf(e);return-1!=o&&i.splice(o,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var o=this._onceEvents&&this._onceEvents[t],n=0;n<i.length;n++){var r=i[n];o&&o[r]&&(this.off(t,r),delete o[r]),r.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t})),function(t,e){"function"==typeof define&&define.amd?define("get-size/get-size",e):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,(function(){"use strict";function t(t){var e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}function e(t){var e=getComputedStyle(t);return e||r("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),e}function i(){if(!l){l=!0;var i=document.createElement("div");i.style.width="200px",i.style.padding="1px 2px 3px 4px",i.style.borderStyle="solid",i.style.borderWidth="1px 2px 3px 4px",i.style.boxSizing="border-box";var r=document.body||document.documentElement;r.appendChild(i);var s=e(i);n=200==Math.round(t(s.width)),o.isBoxSizeOuter=n,r.removeChild(i)}}function o(o){if(i(),"string"==typeof o&&(o=document.querySelector(o)),o&&"object"==typeof o&&o.nodeType){var r=e(o);if("none"==r.display)return function(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<a;e++)t[s[e]]=0;return t}();var l={};l.width=o.offsetWidth,l.height=o.offsetHeight;for(var c=l.isBorderBox="border-box"==r.boxSizing,d=0;d<a;d++){var u=s[d],p=r[u],h=parseFloat(p);l[u]=isNaN(h)?0:h}var f=l.paddingLeft+l.paddingRight,m=l.paddingTop+l.paddingBottom,g=l.marginLeft+l.marginRight,v=l.marginTop+l.marginBottom,y=l.borderLeftWidth+l.borderRightWidth,w=l.borderTopWidth+l.borderBottomWidth,b=c&&n,S=t(r.width);!1!==S&&(l.width=S+(b?0:f+y));var x=t(r.height);return!1!==x&&(l.height=x+(b?0:m+w)),l.innerWidth=l.width-(f+y),l.innerHeight=l.height-(m+w),l.outerWidth=l.width+g,l.outerHeight=l.height+v,l}}var n,r="undefined"==typeof console?function(){}:function(t){console.error(t)},s=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],a=s.length,l=!1;return o})),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,(function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var o=e[i]+"MatchesSelector";if(t[o])return o}}();return function(e,i){return e[t](i)}})),function(t,e){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],(function(i){return e(t,i)})):"object"==typeof module&&module.exports?module.exports=e(t,require("desandro-matches-selector")):t.fizzyUIUtils=e(t,t.matchesSelector)}(window,(function(t,e){var i={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e}},o=Array.prototype.slice;i.makeArray=function(t){return Array.isArray(t)?t:null==t?[]:"object"==typeof t&&"number"==typeof t.length?o.call(t):[t]},i.removeFrom=function(t,e){var i=t.indexOf(e);-1!=i&&t.splice(i,1)},i.getParent=function(t,i){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.filterFindElements=function(t,o){t=i.makeArray(t);var n=[];return t.forEach((function(t){if(t instanceof HTMLElement){if(!o)return void n.push(t);e(t,o)&&n.push(t);for(var i=t.querySelectorAll(o),r=0;r<i.length;r++)n.push(i[r])}})),n},i.debounceMethod=function(t,e,i){i=i||100;var o=t.prototype[e],n=e+"Timeout";t.prototype[e]=function(){var t=this[n];clearTimeout(t);var e=arguments,r=this;this[n]=setTimeout((function(){o.apply(r,e),delete r[n]}),i)}},i.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},i.toDashed=function(t){return t.replace(/(.)([A-Z])/g,(function(t,e,i){return e+"-"+i})).toLowerCase()};var n=t.console;return i.htmlInit=function(e,o){i.docReady((function(){var r=i.toDashed(o),s="data-"+r,a=document.querySelectorAll("["+s+"]"),l=document.querySelectorAll(".js-"+r),c=i.makeArray(a).concat(i.makeArray(l)),d=s+"-options",u=t.jQuery;c.forEach((function(t){var i,r=t.getAttribute(s)||t.getAttribute(d);try{i=r&&JSON.parse(r)}catch(e){return void(n&&n.error("Error parsing "+s+" on "+t.className+": "+e))}var a=new e(t,i);u&&u.data(t,o,a)}))}))},i})),function(t,e){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("get-size")):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize))}(window,(function(t,e){"use strict";function i(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}var o=document.documentElement.style,n="string"==typeof o.transition?"transition":"WebkitTransition",r="string"==typeof o.transform?"transform":"WebkitTransform",s={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[n],a={transform:r,transition:n,transitionDuration:n+"Duration",transitionProperty:n+"Property",transitionDelay:n+"Delay"},l=i.prototype=Object.create(t.prototype);l.constructor=i,l._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},l.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},l.getSize=function(){this.size=e(this.element)},l.css=function(t){var e=this.element.style;for(var i in t){e[a[i]||i]=t[i]}},l.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),o=t[e?"left":"right"],n=t[i?"top":"bottom"],r=parseFloat(o),s=parseFloat(n),a=this.layout.size;-1!=o.indexOf("%")&&(r=r/100*a.width),-1!=n.indexOf("%")&&(s=s/100*a.height),r=isNaN(r)?0:r,s=isNaN(s)?0:s,r-=e?a.paddingLeft:a.paddingRight,s-=i?a.paddingTop:a.paddingBottom,this.position.x=r,this.position.y=s},l.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),o=this.layout._getOption("originTop"),n=i?"paddingLeft":"paddingRight",r=i?"left":"right",s=i?"right":"left",a=this.position.x+t[n];e[r]=this.getXValue(a),e[s]="";var l=o?"paddingTop":"paddingBottom",c=o?"top":"bottom",d=o?"bottom":"top",u=this.position.y+t[l];e[c]=this.getYValue(u),e[d]="",this.css(e),this.emitEvent("layout",[this])},l.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},l.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},l._transitionTo=function(t,e){this.getPosition();var i=this.position.x,o=this.position.y,n=t==this.position.x&&e==this.position.y;if(this.setPosition(t,e),!n||this.isTransitioning){var r=t-i,s=e-o,a={};a.transform=this.getTranslate(r,s),this.transition({to:a,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})}else this.layoutPosition()},l.getTranslate=function(t,e){return"translate3d("+(t=this.layout._getOption("originLeft")?t:-t)+"px, "+(e=this.layout._getOption("originTop")?e:-e)+"px, 0)"},l.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},l.moveTo=l._transitionTo,l.setPosition=function(t,e){this.position.x=parseFloat(t),this.position.y=parseFloat(e)},l._nonTransition=function(t){for(var e in this.css(t.to),t.isCleaning&&this._removeStyles(t.to),t.onTransitionEnd)t.onTransitionEnd[e].call(this)},l.transition=function(t){if(parseFloat(this.layout.options.transitionDuration)){var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);if(t.from){this.css(t.from);this.element.offsetHeight;null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0}else this._nonTransition(t)};var c="opacity,"+function(t){return t.replace(/([A-Z])/g,(function(t){return"-"+t.toLowerCase()}))}(r);l.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;t="number"==typeof t?t+"ms":t,this.css({transitionProperty:c,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(s,this,!1)}},l.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},l.onotransitionend=function(t){this.ontransitionend(t)};var d={"-webkit-transform":"transform"};l.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,i=d[t.propertyName]||t.propertyName;if(delete e.ingProperties[i],function(t){for(var e in t)return!1;return!0}(e.ingProperties)&&this.disableTransition(),i in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[i]),i in e.onEnd)e.onEnd[i].call(this),delete e.onEnd[i];this.emitEvent("transitionEnd",[this])}},l.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(s,this,!1),this.isTransitioning=!1},l._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var u={transitionProperty:"",transitionDuration:"",transitionDelay:""};return l.removeTransitionStyles=function(){this.css(u)},l.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},l.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},l.remove=function(){return n&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",(function(){this.removeElem()})),void this.hide()):void this.removeElem()},l.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},l.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},l.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},l.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},l.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},l.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},i})),function(t,e){"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,o,n,r){return e(t,i,o,n,r)})):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):t.Outlayer=e(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item)}(window,(function(t,e,i,o,n){"use strict";function r(t,e){var i=o.getQueryElement(t);if(i){this.element=i,l&&(this.$element=l(this.element)),this.options=o.extend({},this.constructor.defaults),this.option(e);var n=++d;this.element.outlayerGUID=n,u[n]=this,this._create(),this._getOption("initLayout")&&this.layout()}else a&&a.error("Bad element for "+this.constructor.namespace+": "+(i||t))}function s(t){function e(){t.apply(this,arguments)}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e}var a=t.console,l=t.jQuery,c=function(){},d=0,u={};r.namespace="outlayer",r.Item=n,r.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=r.prototype;o.extend(p,e.prototype),p.option=function(t){o.extend(this.options,t)},p._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},r.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),o.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(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,o=[],n=0;n<e.length;n++){var r=new i(e[n],this);o.push(r)}return o},p._filterFindItemElements=function(t){return o.filterFindElements(t,this.options.itemSelector)},p.getItemElements=function(){return this.items.map((function(t){return t.element}))},p.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},p._init=p.layout,p._resetLayout=function(){this.getSize()},p.getSize=function(){this.size=i(this.element)},p._getMeasurement=function(t,e){var o,n=this.options[t];n?("string"==typeof n?o=this.element.querySelector(n):n instanceof HTMLElement&&(o=n),this[t]=o?i(o)[e]:n):this[t]=0},p.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},p._getItemsForLayout=function(t){return t.filter((function(t){return!t.isIgnored}))},p._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){var i=[];t.forEach((function(t){var o=this._getItemLayoutPosition(t);o.item=t,o.isInstant=e||t.isLayoutInstant,i.push(o)}),this),this._processLayoutQueue(i)}},p._getItemLayoutPosition=function(){return{x:0,y:0}},p._processLayoutQueue=function(t){this.updateStagger(),t.forEach((function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)}),this)},p.updateStagger=function(){var t=this.options.stagger;return null==t?void(this.stagger=0):(this.stagger=function(t){if("number"==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),i=e&&e[1],o=e&&e[2];return i.length?(i=parseFloat(i))*(h[o]||1):0}(t),this.stagger)},p._positionItem=function(t,e,i,o,n){o?t.goTo(e,i):(t.stagger(n*this.stagger),t.moveTo(e,i))},p._postLayout=function(){this.resizeContainer()},p.resizeContainer=function(){if(this._getOption("resizeContainer")){var t=this._getContainerSize();t&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))}},p._getContainerSize=c,p._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},p._emitCompleteOnItems=function(t,e){function i(){n.dispatchEvent(t+"Complete",null,[e])}function o(){++s==r&&i()}var n=this,r=e.length;if(e&&r){var s=0;e.forEach((function(e){e.once(t,o)}))}else i()},p.dispatchEvent=function(t,e,i){var o=e?[e].concat(i):i;if(this.emitEvent(t,o),l)if(this.$element=this.$element||l(this.element),e){var n=l.Event(e);n.type=t,this.$element.trigger(n,i)}else this.$element.trigger(t,i)},p.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},p.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},p.stamp=function(t){(t=this._find(t))&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},p.unstamp=function(t){(t=this._find(t))&&t.forEach((function(t){o.removeFrom(this.stamps,t),this.unignore(t)}),this)},p._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),o.makeArray(t)},p._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},p._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},p._manageStamp=c,p._getElementOffset=function(t){var e=t.getBoundingClientRect(),o=this._boundingRect,n=i(t);return{left:e.left-o.left-n.marginLeft,top:e.top-o.top-n.marginTop,right:o.right-e.right-n.marginRight,bottom:o.bottom-e.bottom-n.marginBottom}},p.handleEvent=o.handleEvent,p.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},p.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},p.onresize=function(){this.resize()},o.debounceMethod(r,"onresize",100),p.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},p.needsResizeLayout=function(){var t=i(this.element);return this.size&&t&&t.innerWidth!==this.size.innerWidth},p.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},p.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},p.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},p.reveal=function(t){if(this._emitCompleteOnItems("reveal",t),t&&t.length){var e=this.updateStagger();t.forEach((function(t,i){t.stagger(i*e),t.reveal()}))}},p.hide=function(t){if(this._emitCompleteOnItems("hide",t),t&&t.length){var e=this.updateStagger();t.forEach((function(t,i){t.stagger(i*e),t.hide()}))}},p.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},p.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},p.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},p.getItems=function(t){t=o.makeArray(t);var e=[];return t.forEach((function(t){var i=this.getItem(t);i&&e.push(i)}),this),e},p.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e),e&&e.length&&e.forEach((function(t){t.remove(),o.removeFrom(this.items,t)}),this)},p.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach((function(t){t.destroy()})),this.unbindResize();var e=this.element.outlayerGUID;delete u[e],delete this.element.outlayerGUID,l&&l.removeData(this.element,this.constructor.namespace)},r.data=function(t){var e=(t=o.getQueryElement(t))&&t.outlayerGUID;return e&&u[e]},r.create=function(t,e){var i=s(r);return i.defaults=o.extend({},r.defaults),o.extend(i.defaults,e),i.compatOptions=o.extend({},r.compatOptions),i.namespace=t,i.data=r.data,i.Item=s(n),o.htmlInit(i,t),l&&l.bridget&&l.bridget(t,i),i};var h={ms:1,s:1e3};return r.Item=n,r})),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/item",["outlayer/outlayer"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer")):(t.Isotope=t.Isotope||{},t.Isotope.Item=e(t.Outlayer))}(window,(function(t){"use strict";function e(){t.Item.apply(this,arguments)}var i=e.prototype=Object.create(t.Item.prototype),o=i._create;i._create=function(){this.id=this.layout.itemGUID++,o.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 t=this.layout.options.getSortData,e=this.layout._sorters;for(var i in t){var o=e[i];this.sortData[i]=o(this.element,this)}}};var n=i.destroy;return i.destroy=function(){n.apply(this,arguments),this.css({display:""})},e})),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-mode",["get-size/get-size","outlayer/outlayer"],e):"object"==typeof module&&module.exports?module.exports=e(require("get-size"),require("outlayer")):(t.Isotope=t.Isotope||{},t.Isotope.LayoutMode=e(t.getSize,t.Outlayer))}(window,(function(t,e){"use strict";function i(t){this.isotope=t,t&&(this.options=t.options[this.namespace],this.element=t.element,this.items=t.filteredItems,this.size=t.size)}var o=i.prototype;return["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"].forEach((function(t){o[t]=function(){return e.prototype[t].apply(this.isotope,arguments)}})),o.needsVerticalResizeLayout=function(){var e=t(this.isotope.element);return this.isotope.size&&e&&e.innerHeight!=this.isotope.size.innerHeight},o._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},o.getColumnWidth=function(){this.getSegmentSize("column","Width")},o.getRowHeight=function(){this.getSegmentSize("row","Height")},o.getSegmentSize=function(t,e){var i=t+e,o="outer"+e;if(this._getMeasurement(i,o),!this[i]){var n=this.getFirstItemSize();this[i]=n&&n[o]||this.isotope.size["inner"+e]}},o.getFirstItemSize=function(){var e=this.isotope.filteredItems[0];return e&&e.element&&t(e.element)},o.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},o.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},i.modes={},i.create=function(t,e){function n(){i.apply(this,arguments)}return n.prototype=Object.create(o),n.prototype.constructor=n,e&&(n.options=e),n.prototype.namespace=t,i.modes[t]=n,n},i})),function(t,e){"function"==typeof define&&define.amd?define("masonry-layout/masonry",["outlayer/outlayer","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer"),require("get-size")):t.Masonry=e(t.Outlayer,t.getSize)}(window,(function(t,e){var i=t.create("masonry");i.compatOptions.fitWidth="isFitWidth";var o=i.prototype;return o._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},o.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],i=t&&t.element;this.columnWidth=i&&e(i).outerWidth||this.containerWidth}var o=this.columnWidth+=this.gutter,n=this.containerWidth+this.gutter,r=n/o,s=o-n%o;r=Math[s&&s<1?"round":"floor"](r),this.cols=Math.max(r,1)},o.getContainerWidth=function(){var t=this._getOption("fitWidth")?this.element.parentNode:this.element,i=e(t);this.containerWidth=i&&i.innerWidth},o._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=Math[e&&e<1?"round":"ceil"](t.size.outerWidth/this.columnWidth);i=Math.min(i,this.cols);for(var o=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](i,t),n={x:this.columnWidth*o.col,y:o.y},r=o.y+t.size.outerHeight,s=i+o.col,a=o.col;a<s;a++)this.colYs[a]=r;return n},o._getTopColPosition=function(t){var e=this._getTopColGroup(t),i=Math.min.apply(Math,e);return{col:e.indexOf(i),y:i}},o._getTopColGroup=function(t){if(t<2)return this.colYs;for(var e=[],i=this.cols+1-t,o=0;o<i;o++)e[o]=this._getColGroupY(o,t);return e},o._getColGroupY=function(t,e){if(e<2)return this.colYs[t];var i=this.colYs.slice(t,t+e);return Math.max.apply(Math,i)},o._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols;i=t>1&&i+t>this.cols?0:i;var o=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=o?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},o._manageStamp=function(t){var i=e(t),o=this._getElementOffset(t),n=this._getOption("originLeft")?o.left:o.right,r=n+i.outerWidth,s=Math.floor(n/this.columnWidth);s=Math.max(0,s);var a=Math.floor(r/this.columnWidth);a-=r%this.columnWidth?0:1,a=Math.min(this.cols-1,a);for(var l=(this._getOption("originTop")?o.top:o.bottom)+i.outerHeight,c=s;c<=a;c++)this.colYs[c]=Math.max(l,this.colYs[c])},o._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},o._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},o.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},i})),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/masonry",["../layout-mode","masonry-layout/masonry"],e):"object"==typeof module&&module.exports?module.exports=e(require("../layout-mode"),require("masonry-layout")):e(t.Isotope.LayoutMode,t.Masonry)}(window,(function(t,e){"use strict";var i=t.create("masonry"),o=i.prototype,n={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(var r in e.prototype)n[r]||(o[r]=e.prototype[r]);var s=o.measureColumns;o.measureColumns=function(){this.items=this.isotope.filteredItems,s.call(this)};var a=o._getOption;return o._getOption=function(t){return"fitWidth"==t?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:a.apply(this.isotope,arguments)},i})),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/fit-rows",["../layout-mode"],e):"object"==typeof exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)}(window,(function(t){"use strict";var e=t.create("fitRows"),i=e.prototype;return i._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},i._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter;0!==this.x&&e+this.x>i&&(this.x=0,this.y=this.maxY);var o={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=e,o},i._getContainerSize=function(){return{height:this.maxY}},e})),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/vertical",["../layout-mode"],e):"object"==typeof module&&module.exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)}(window,(function(t){"use strict";var e=t.create("vertical",{horizontalAlignment:0}),i=e.prototype;return i._resetLayout=function(){this.y=0},i._getItemLayoutPosition=function(t){t.getSize();var e=(this.isotope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=t.size.outerHeight,{x:e,y:i}},i._getContainerSize=function(){return{height:this.y}},e})),function(t,e){"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,o,n,r,s,a){return e(t,i,o,n,r,s,a)})):"object"==typeof module&&module.exports?module.exports=e(t,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")):t.Isotope=e(t,t.Outlayer,t.getSize,t.matchesSelector,t.fizzyUIUtils,t.Isotope.Item,t.Isotope.LayoutMode)}(window,(function(t,e,i,o,n,r,s){var a=t.jQuery,l=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},c=e.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});c.Item=r,c.LayoutMode=s;var d=c.prototype;d._create=function(){for(var t in this.itemGUID=0,this._sorters={},this._getSorters(),e.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"],s.modes)this._initLayoutMode(t)},d.reloadItems=function(){this.itemGUID=0,e.prototype.reloadItems.call(this)},d._itemize=function(){for(var t=e.prototype._itemize.apply(this,arguments),i=0;i<t.length;i++){var o=t[i];o.id=this.itemGUID++}return this._updateItemsSortData(t),t},d._initLayoutMode=function(t){var e=s.modes[t],i=this.options[t]||{};this.options[t]=e.options?n.extend(e.options,i):i,this.modes[t]=new e(this)},d.layout=function(){return!this._isLayoutInited&&this._getOption("initLayout")?void this.arrange():void this._layout()},d._layout=function(){var t=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,t),this._isLayoutInited=!0},d.arrange=function(t){this.option(t),this._getIsInstant();var e=this._filter(this.items);this.filteredItems=e.matches,this._bindArrangeComplete(),this._isInstant?this._noTransition(this._hideReveal,[e]):this._hideReveal(e),this._sort(),this._layout()},d._init=d.arrange,d._hideReveal=function(t){this.reveal(t.needReveal),this.hide(t.needHide)},d._getIsInstant=function(){var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;return this._isInstant=e,e},d._bindArrangeComplete=function(){function t(){e&&i&&o&&n.dispatchEvent("arrangeComplete",null,[n.filteredItems])}var e,i,o,n=this;this.once("layoutComplete",(function(){e=!0,t()})),this.once("hideComplete",(function(){i=!0,t()})),this.once("revealComplete",(function(){o=!0,t()}))},d._filter=function(t){var e=this.options.filter;e=e||"*";for(var i=[],o=[],n=[],r=this._getFilterTest(e),s=0;s<t.length;s++){var a=t[s];if(!a.isIgnored){var l=r(a);l&&i.push(a),l&&a.isHidden?o.push(a):l||a.isHidden||n.push(a)}}return{matches:i,needReveal:o,needHide:n}},d._getFilterTest=function(t){return a&&this.options.isJQueryFiltering?function(e){return a(e.element).is(t)}:"function"==typeof t?function(e){return t(e.element)}:function(e){return o(e.element,t)}},d.updateSortData=function(t){var e;t?(t=n.makeArray(t),e=this.getItems(t)):e=this.items,this._getSorters(),this._updateItemsSortData(e)},d._getSorters=function(){var t=this.options.getSortData;for(var e in t){var i=t[e];this._sorters[e]=u(i)}},d._updateItemsSortData=function(t){for(var e=t&&t.length,i=0;e&&i<e;i++){t[i].updateSortData()}};var u=function(t){if("string"!=typeof t)return t;var e=l(t).split(" "),i=e[0],o=i.match(/^\[(.+)\]$/),n=function(t,e){return t?function(e){return e.getAttribute(t)}:function(t){var i=t.querySelector(e);return i&&i.textContent}}(o&&o[1],i),r=c.sortDataParsers[e[1]];return r?function(t){return t&&r(n(t))}:function(t){return t&&n(t)}};c.sortDataParsers={parseInt:function(t){return parseInt(t,10)},parseFloat:function(t){return parseFloat(t)}},d._sort=function(){if(this.options.sortBy){var t=n.makeArray(this.options.sortBy);this._getIsSameSortBy(t)||(this.sortHistory=t.concat(this.sortHistory));var e=function(t,e){return function(i,o){for(var n=0;n<t.length;n++){var r=t[n],s=i.sortData[r],a=o.sortData[r];if(s>a||s<a)return(s>a?1:-1)*((void 0!==e[r]?e[r]:e)?1:-1)}return 0}}(this.sortHistory,this.options.sortAscending);this.filteredItems.sort(e)}},d._getIsSameSortBy=function(t){for(var e=0;e<t.length;e++)if(t[e]!=this.sortHistory[e])return!1;return!0},d._mode=function(){var t=this.options.layoutMode,e=this.modes[t];if(!e)throw new Error("No layout mode: "+t);return e.options=this.options[t],e},d._resetLayout=function(){e.prototype._resetLayout.call(this),this._mode()._resetLayout()},d._getItemLayoutPosition=function(t){return this._mode()._getItemLayoutPosition(t)},d._manageStamp=function(t){this._mode()._manageStamp(t)},d._getContainerSize=function(){return this._mode()._getContainerSize()},d.needsResizeLayout=function(){return this._mode().needsResizeLayout()},d.appended=function(t){var e=this.addItems(t);if(e.length){var i=this._filterRevealAdded(e);this.filteredItems=this.filteredItems.concat(i)}},d.prepended=function(t){var e=this._itemize(t);if(e.length){this._resetLayout(),this._manageStamps();var i=this._filterRevealAdded(e);this.layoutItems(this.filteredItems),this.filteredItems=i.concat(this.filteredItems),this.items=e.concat(this.items)}},d._filterRevealAdded=function(t){var e=this._filter(t);return this.hide(e.needHide),this.reveal(e.matches),this.layoutItems(e.matches,!0),e.matches},d.insert=function(t){var e=this.addItems(t);if(e.length){var i,o,n=e.length;for(i=0;i<n;i++)o=e[i],this.element.appendChild(o.element);var r=this._filter(e).matches;for(i=0;i<n;i++)e[i].isLayoutInstant=!0;for(this.arrange(),i=0;i<n;i++)delete e[i].isLayoutInstant;this.reveal(r)}};var p=d.remove;return d.remove=function(t){t=n.makeArray(t);var e=this.getItems(t);p.call(this,t);for(var i=e&&e.length,o=0;i&&o<i;o++){var r=e[o];n.removeFrom(this.filteredItems,r)}},d.shuffle=function(){for(var t=0;t<this.items.length;t++){this.items[t].sortData.random=Math.random()}this.options.sortBy="random",this._sort(),this._layout()},d._noTransition=function(t,e){var i=this.options.transitionDuration;this.options.transitionDuration=0;var o=t.apply(this,e);return this.options.transitionDuration=i,o},d.getFilteredItemElements=function(){return this.filteredItems.map((function(t){return t.element}))},c})),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?t(require("jquery")):t(window.jQuery||window.Zepto)}((function(t){var e,i,o,n,r,s,a="Close",l="BeforeClose",c="MarkupParse",d="Open",u="Change",p="mfp",h="."+p,f="mfp-ready",m="mfp-removing",g="mfp-prevent-close",v=function(){},y=!!window.jQuery,w=t(window),b=function(t,i){e.ev.on(p+t+h,i)},S=function(e,i,o,n){var r=document.createElement("div");return r.className="mfp-"+e,o&&(r.innerHTML=o),n?i&&i.appendChild(r):(r=t(r),i&&r.appendTo(i)),r},x=function(i,o){e.ev.triggerHandler(p+i,o),e.st.callbacks&&(i=i.charAt(0).toLowerCase()+i.slice(1),e.st.callbacks[i]&&e.st.callbacks[i].apply(e,t.isArray(o)?o:[o]))},T=function(i){return i===s&&e.currTemplate.closeBtn||(e.currTemplate.closeBtn=t(e.st.closeMarkup.replace("%title%",e.st.tClose)),s=i),e.currTemplate.closeBtn},k=function(){t.magnificPopup.instance||((e=new v).init(),t.magnificPopup.instance=e)};v.prototype={constructor:v,init:function(){var i=navigator.appVersion;e.isLowIE=e.isIE8=document.all&&!document.addEventListener,e.isAndroid=/android/gi.test(i),e.isIOS=/iphone|ipad|ipod/gi.test(i),e.supportsTransition=function(){var t=document.createElement("p").style,e=["ms","O","Moz","Webkit"];if(void 0!==t.transition)return!0;for(;e.length;)if(e.pop()+"Transition"in t)return!0;return!1}(),e.probablyMobile=e.isAndroid||e.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),o=t(document),e.popupsCache={}},open:function(i){var n;if(!1===i.isObj){e.items=i.items.toArray(),e.index=0;var s,a=i.items;for(n=0;n<a.length;n++)if((s=a[n]).parsed&&(s=s.el[0]),s===i.el[0]){e.index=n;break}}else e.items=t.isArray(i.items)?i.items:[i.items],e.index=i.index||0;if(!e.isOpen){e.types=[],r="",i.mainEl&&i.mainEl.length?e.ev=i.mainEl.eq(0):e.ev=o,i.key?(e.popupsCache[i.key]||(e.popupsCache[i.key]={}),e.currTemplate=e.popupsCache[i.key]):e.currTemplate={},e.st=t.extend(!0,{},t.magnificPopup.defaults,i),e.fixedContentPos="auto"===e.st.fixedContentPos?!e.probablyMobile:e.st.fixedContentPos,e.st.modal&&(e.st.closeOnContentClick=!1,e.st.closeOnBgClick=!1,e.st.showCloseBtn=!1,e.st.enableEscapeKey=!1),e.bgOverlay||(e.bgOverlay=S("bg").on("click"+h,(function(){e.close()})),e.wrap=S("wrap").attr("tabindex",-1).on("click"+h,(function(t){e._checkIfClose(t.target)&&e.close()})),e.container=S("container",e.wrap)),e.contentContainer=S("content"),e.st.preloader&&(e.preloader=S("preloader",e.container,e.st.tLoading));var l=t.magnificPopup.modules;for(n=0;n<l.length;n++){var u=l[n];u=u.charAt(0).toUpperCase()+u.slice(1),e["init"+u].call(e)}x("BeforeOpen"),e.st.showCloseBtn&&(e.st.closeBtnInside?(b(c,(function(t,e,i,o){i.close_replaceWith=T(o.type)})),r+=" mfp-close-btn-in"):e.wrap.append(T())),e.st.alignTop&&(r+=" mfp-align-top"),e.fixedContentPos?e.wrap.css({overflow:e.st.overflowY,overflowX:"hidden",overflowY:e.st.overflowY}):e.wrap.css({top:w.scrollTop(),position:"absolute"}),(!1===e.st.fixedBgPos||"auto"===e.st.fixedBgPos&&!e.fixedContentPos)&&e.bgOverlay.css({height:o.height(),position:"absolute"}),e.st.enableEscapeKey&&o.on("keyup"+h,(function(t){27===t.keyCode&&e.close()})),w.on("resize"+h,(function(){e.updateSize()})),e.st.closeOnContentClick||(r+=" mfp-auto-cursor"),r&&e.wrap.addClass(r);var p=e.wH=w.height(),m={};if(e.fixedContentPos&&e._hasScrollBar(p)){var g=e._getScrollbarSize();g&&(m.marginRight=g)}e.fixedContentPos&&(e.isIE7?t("body, html").css("overflow","hidden"):m.overflow="hidden");var v=e.st.mainClass;return e.isIE7&&(v+=" mfp-ie7"),v&&e._addClassToMFP(v),e.updateItemHTML(),x("BuildControls"),t("html").css(m),e.bgOverlay.add(e.wrap).prependTo(e.st.prependTo||t(document.body)),e._lastFocusedEl=document.activeElement,setTimeout((function(){e.content?(e._addClassToMFP(f),e._setFocus()):e.bgOverlay.addClass(f),o.on("focusin"+h,e._onFocusIn)}),16),e.isOpen=!0,e.updateSize(p),x(d),i}e.updateItemHTML()},close:function(){e.isOpen&&(x(l),e.isOpen=!1,e.st.removalDelay&&!e.isLowIE&&e.supportsTransition?(e._addClassToMFP(m),setTimeout((function(){e._close()}),e.st.removalDelay)):e._close())},_close:function(){x(a);var i=m+" "+f+" ";if(e.bgOverlay.detach(),e.wrap.detach(),e.container.empty(),e.st.mainClass&&(i+=e.st.mainClass+" "),e._removeClassFromMFP(i),e.fixedContentPos){var n={marginRight:""};e.isIE7?t("body, html").css("overflow",""):n.overflow="",t("html").css(n)}o.off("keyup.mfp focusin"+h),e.ev.off(h),e.wrap.attr("class","mfp-wrap").removeAttr("style"),e.bgOverlay.attr("class","mfp-bg"),e.container.attr("class","mfp-container"),e.st.showCloseBtn&&(!e.st.closeBtnInside||!0===e.currTemplate[e.currItem.type])&&e.currTemplate.closeBtn&&e.currTemplate.closeBtn.detach(),e.st.autoFocusLast&&e._lastFocusedEl&&t(e._lastFocusedEl).focus(),e.currItem=null,e.content=null,e.currTemplate=null,e.prevHeight=0,x("AfterClose")},updateSize:function(t){if(e.isIOS){var i=document.documentElement.clientWidth/window.innerWidth,o=window.innerHeight*i;e.wrap.css("height",o),e.wH=o}else e.wH=t||w.height();e.fixedContentPos||e.wrap.css("height",e.wH),x("Resize")},updateItemHTML:function(){var i=e.items[e.index];e.contentContainer.detach(),e.content&&e.content.detach(),i.parsed||(i=e.parseEl(e.index));var o=i.type;if(x("BeforeChange",[e.currItem?e.currItem.type:"",o]),e.currItem=i,!e.currTemplate[o]){var r=!!e.st[o]&&e.st[o].markup;x("FirstMarkupParse",r),e.currTemplate[o]=!r||t(r)}n&&n!==i.type&&e.container.removeClass("mfp-"+n+"-holder");var s=e["get"+o.charAt(0).toUpperCase()+o.slice(1)](i,e.currTemplate[o]);e.appendContent(s,o),i.preloaded=!0,x(u,i),n=i.type,e.container.prepend(e.contentContainer),x("AfterChange")},appendContent:function(t,i){e.content=t,t?e.st.showCloseBtn&&e.st.closeBtnInside&&!0===e.currTemplate[i]?e.content.find(".mfp-close").length||e.content.append(T()):e.content=t:e.content="",x("BeforeAppend"),e.container.addClass("mfp-"+i+"-holder"),e.contentContainer.append(e.content)},parseEl:function(i){var o,n=e.items[i];if(n.tagName?n={el:t(n)}:(o=n.type,n={data:n,src:n.src}),n.el){for(var r=e.types,s=0;s<r.length;s++)if(n.el.hasClass("mfp-"+r[s])){o=r[s];break}n.src=n.el.attr("data-mfp-src"),n.src||(n.src=n.el.attr("href"))}return n.type=o||e.st.type||"inline",n.index=i,n.parsed=!0,e.items[i]=n,x("ElementParse",n),e.items[i]},addGroup:function(t,i){var o=function(o){o.mfpEl=this,e._openClick(o,t,i)};i||(i={});var n="click.magnificPopup";i.mainEl=t,i.items?(i.isObj=!0,t.off(n).on(n,o)):(i.isObj=!1,i.delegate?t.off(n).on(n,i.delegate,o):(i.items=t,t.off(n).on(n,o)))},_openClick:function(i,o,n){if((void 0!==n.midClick?n.midClick:t.magnificPopup.defaults.midClick)||!(2===i.which||i.ctrlKey||i.metaKey||i.altKey||i.shiftKey)){var r=void 0!==n.disableOn?n.disableOn:t.magnificPopup.defaults.disableOn;if(r)if(t.isFunction(r)){if(!r.call(e))return!0}else if(w.width()<r)return!0;i.type&&(i.preventDefault(),e.isOpen&&i.stopPropagation()),n.el=t(i.mfpEl),n.delegate&&(n.items=o.find(n.delegate)),e.open(n)}},updateStatus:function(t,o){if(e.preloader){i!==t&&e.container.removeClass("mfp-s-"+i),!o&&"loading"===t&&(o=e.st.tLoading);var n={status:t,text:o};x("UpdateStatus",n),t=n.status,o=n.text,e.preloader.html(o),e.preloader.find("a").on("click",(function(t){t.stopImmediatePropagation()})),e.container.addClass("mfp-s-"+t),i=t}},_checkIfClose:function(i){if(!t(i).hasClass(g)){var o=e.st.closeOnContentClick,n=e.st.closeOnBgClick;if(o&&n)return!0;if(!e.content||t(i).hasClass("mfp-close")||e.preloader&&i===e.preloader[0])return!0;if(i===e.content[0]||t.contains(e.content[0],i)){if(o)return!0}else if(n&&t.contains(document,i))return!0;return!1}},_addClassToMFP:function(t){e.bgOverlay.addClass(t),e.wrap.addClass(t)},_removeClassFromMFP:function(t){this.bgOverlay.removeClass(t),e.wrap.removeClass(t)},_hasScrollBar:function(t){return(e.isIE7?o.height():document.body.scrollHeight)>(t||w.height())},_setFocus:function(){(e.st.focus?e.content.find(e.st.focus).eq(0):e.wrap).focus()},_onFocusIn:function(i){if(i.target!==e.wrap[0]&&!t.contains(e.wrap[0],i.target))return e._setFocus(),!1},_parseMarkup:function(e,i,o){var n;o.data&&(i=t.extend(o.data,i)),x(c,[e,i,o]),t.each(i,(function(i,o){if(void 0===o||!1===o)return!0;if((n=i.split("_")).length>1){var r=e.find(h+"-"+n[0]);if(r.length>0){var s=n[1];"replaceWith"===s?r[0]!==o[0]&&r.replaceWith(o):"img"===s?r.is("img")?r.attr("src",o):r.replaceWith(t("<img>").attr("src",o).attr("class",r.attr("class"))):r.attr(n[1],o)}}else e.find(h+"-"+i).html(o)}))},_getScrollbarSize:function(){if(void 0===e.scrollbarSize){var t=document.createElement("div");t.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(t),e.scrollbarSize=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return e.scrollbarSize}},t.magnificPopup={instance:null,proto:v.prototype,modules:[],open:function(e,i){return k(),(e=e?t.extend(!0,{},e):{}).isObj=!0,e.index=i||0,this.instance.open(e)},close:function(){return t.magnificPopup.instance&&t.magnificPopup.instance.close()},registerModule:function(e,i){i.options&&(t.magnificPopup.defaults[e]=i.options),t.extend(this.proto,i.proto),this.modules.push(e)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&#215;</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},t.fn.magnificPopup=function(i){k();var o=t(this);if("string"==typeof i)if("open"===i){var n,r=y?o.data("magnificPopup"):o[0].magnificPopup,s=parseInt(arguments[1],10)||0;r.items?n=r.items[s]:(n=o,r.delegate&&(n=n.find(r.delegate)),n=n.eq(s)),e._openClick({mfpEl:n},o,r)}else e.isOpen&&e[i].apply(e,Array.prototype.slice.call(arguments,1));else i=t.extend(!0,{},i),y?o.data("magnificPopup",i):o[0].magnificPopup=i,e.addGroup(o,i);return o};var C,z,E,I="inline",_=function(){E&&(z.after(E.addClass(C)).detach(),E=null)};t.magnificPopup.registerModule(I,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){e.types.push(I),b(a+"."+I,(function(){_()}))},getInline:function(i,o){if(_(),i.src){var n=e.st.inline,r=t(i.src);if(r.length){var s=r[0].parentNode;s&&s.tagName&&(z||(C=n.hiddenClass,z=S(C),C="mfp-"+C),E=r.after(z).detach().removeClass(C)),e.updateStatus("ready")}else e.updateStatus("error",n.tNotFound),r=t("<div>");return i.inlineElement=r,r}return e.updateStatus("ready"),e._parseMarkup(o,{},i),o}}});var L,O="ajax",M=function(){L&&t(document.body).removeClass(L)},P=function(){M(),e.req&&e.req.abort()};t.magnificPopup.registerModule(O,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){e.types.push(O),L=e.st.ajax.cursor,b(a+"."+O,P),b("BeforeChange."+O,P)},getAjax:function(i){L&&t(document.body).addClass(L),e.updateStatus("loading");var o=t.extend({url:i.src,success:function(o,n,r){var s={data:o,xhr:r};x("ParseAjax",s),e.appendContent(t(s.data),O),i.finished=!0,M(),e._setFocus(),setTimeout((function(){e.wrap.addClass(f)}),16),e.updateStatus("ready"),x("AjaxContentAdded")},error:function(){M(),i.finished=i.loadError=!0,e.updateStatus("error",e.st.ajax.tError.replace("%url%",i.src))}},e.st.ajax.settings);return e.req=t.ajax(o),""}}});var $,A=function(i){if(i.data&&void 0!==i.data.title)return i.data.title;var o=e.st.image.titleSrc;if(o){if(t.isFunction(o))return o.call(e,i);if(i.el)return i.el.attr(o)||""}return""};t.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var i=e.st.image,o=".image";e.types.push("image"),b(d+o,(function(){"image"===e.currItem.type&&i.cursor&&t(document.body).addClass(i.cursor)})),b(a+o,(function(){i.cursor&&t(document.body).removeClass(i.cursor),w.off("resize"+h)})),b("Resize"+o,e.resizeImage),e.isLowIE&&b("AfterChange",e.resizeImage)},resizeImage:function(){var t=e.currItem;if(t&&t.img&&e.st.image.verticalFit){var i=0;e.isLowIE&&(i=parseInt(t.img.css("padding-top"),10)+parseInt(t.img.css("padding-bottom"),10)),t.img.css("max-height",e.wH-i)}},_onImageHasSize:function(t){t.img&&(t.hasSize=!0,$&&clearInterval($),t.isCheckingImgSize=!1,x("ImageHasSize",t),t.imgHidden&&(e.content&&e.content.removeClass("mfp-loading"),t.imgHidden=!1))},findImageSize:function(t){var i=0,o=t.img[0],n=function(r){$&&clearInterval($),$=setInterval((function(){o.naturalWidth>0?e._onImageHasSize(t):(i>200&&clearInterval($),3===++i?n(10):40===i?n(50):100===i&&n(500))}),r)};n(1)},getImage:function(i,o){var n=0,r=function(){i&&(i.img[0].complete?(i.img.off(".mfploader"),i===e.currItem&&(e._onImageHasSize(i),e.updateStatus("ready")),i.hasSize=!0,i.loaded=!0,x("ImageLoadComplete")):++n<200?setTimeout(r,100):s())},s=function(){i&&(i.img.off(".mfploader"),i===e.currItem&&(e._onImageHasSize(i),e.updateStatus("error",a.tError.replace("%url%",i.src))),i.hasSize=!0,i.loaded=!0,i.loadError=!0)},a=e.st.image,l=o.find(".mfp-img");if(l.length){var c=document.createElement("img");c.className="mfp-img",i.el&&i.el.find("img").length&&(c.alt=i.el.find("img").attr("alt")),i.img=t(c).on("load.mfploader",r).on("error.mfploader",s),c.src=i.src,l.is("img")&&(i.img=i.img.clone()),(c=i.img[0]).naturalWidth>0?i.hasSize=!0:c.width||(i.hasSize=!1)}return e._parseMarkup(o,{title:A(i),img_replaceWith:i.img},i),e.resizeImage(),i.hasSize?($&&clearInterval($),i.loadError?(o.addClass("mfp-loading"),e.updateStatus("error",a.tError.replace("%url%",i.src))):(o.removeClass("mfp-loading"),e.updateStatus("ready")),o):(e.updateStatus("loading"),i.loading=!0,i.hasSize||(i.imgHidden=!0,o.addClass("mfp-loading"),e.findImageSize(i)),o)}}});var H;t.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(t){return t.is("img")?t:t.find("img")}},proto:{initZoom:function(){var t,i=e.st.zoom,o=".zoom";if(i.enabled&&e.supportsTransition){var n,r,s=i.duration,c=function(t){var e=t.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),o="all "+i.duration/1e3+"s "+i.easing,n={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},r="transition";return n["-webkit-"+r]=n["-moz-"+r]=n["-o-"+r]=n[r]=o,e.css(n),e},d=function(){e.content.css("visibility","visible")};b("BuildControls"+o,(function(){if(e._allowZoom()){if(clearTimeout(n),e.content.css("visibility","hidden"),!(t=e._getItemToZoom()))return void d();(r=c(t)).css(e._getOffset()),e.wrap.append(r),n=setTimeout((function(){r.css(e._getOffset(!0)),n=setTimeout((function(){d(),setTimeout((function(){r.remove(),t=r=null,x("ZoomAnimationEnded")}),16)}),s)}),16)}})),b(l+o,(function(){if(e._allowZoom()){if(clearTimeout(n),e.st.removalDelay=s,!t){if(!(t=e._getItemToZoom()))return;r=c(t)}r.css(e._getOffset(!0)),e.wrap.append(r),e.content.css("visibility","hidden"),setTimeout((function(){r.css(e._getOffset())}),16)}})),b(a+o,(function(){e._allowZoom()&&(d(),r&&r.remove(),t=null)}))}},_allowZoom:function(){return"image"===e.currItem.type},_getItemToZoom:function(){return!!e.currItem.hasSize&&e.currItem.img},_getOffset:function(i){var o,n=(o=i?e.currItem.img:e.st.zoom.opener(e.currItem.el||e.currItem)).offset(),r=parseInt(o.css("padding-top"),10),s=parseInt(o.css("padding-bottom"),10);n.top-=t(window).scrollTop()-r;var a={width:o.width(),height:(y?o.innerHeight():o[0].offsetHeight)-s-r};return void 0===H&&(H=void 0!==document.createElement("p").style.MozTransform),H?a["-moz-transform"]=a.transform="translate("+n.left+"px,"+n.top+"px)":(a.left=n.left,a.top=n.top),a}}});var W="iframe",j=function(t){if(e.currTemplate[W]){var i=e.currTemplate[W].find("iframe");i.length&&(t||(i[0].src="//about:blank"),e.isIE8&&i.css("display",t?"block":"none"))}};t.magnificPopup.registerModule(W,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){e.types.push(W),b("BeforeChange",(function(t,e,i){e!==i&&(e===W?j():i===W&&j(!0))})),b(a+"."+W,(function(){j()}))},getIframe:function(i,o){var n=i.src,r=e.st.iframe;t.each(r.patterns,(function(){if(n.indexOf(this.index)>-1)return this.id&&(n="string"==typeof this.id?n.substr(n.lastIndexOf(this.id)+this.id.length,n.length):this.id.call(this,n)),n=this.src.replace("%id%",n),!1}));var s={};return r.srcAction&&(s[r.srcAction]=n),e._parseMarkup(o,s,i),e.updateStatus("ready"),o}}});var R=function(t){var i=e.items.length;return t>i-1?t-i:t<0?i+t:t},D=function(t,e,i){return t.replace(/%curr%/gi,e+1).replace(/%total%/gi,i)};t.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var i=e.st.gallery,n=".mfp-gallery";if(e.direction=!0,!i||!i.enabled)return!1;r+=" mfp-gallery",b(d+n,(function(){i.navigateByImgClick&&e.wrap.on("click"+n,".mfp-img",(function(){if(e.items.length>1)return e.next(),!1})),o.on("keydown"+n,(function(t){37===t.keyCode?e.prev():39===t.keyCode&&e.next()}))})),b("UpdateStatus"+n,(function(t,i){i.text&&(i.text=D(i.text,e.currItem.index,e.items.length))})),b(c+n,(function(t,o,n,r){var s=e.items.length;n.counter=s>1?D(i.tCounter,r.index,s):""})),b("BuildControls"+n,(function(){if(e.items.length>1&&i.arrows&&!e.arrowLeft){var o=i.arrowMarkup,n=e.arrowLeft=t(o.replace(/%title%/gi,i.tPrev).replace(/%dir%/gi,"left")).addClass(g),r=e.arrowRight=t(o.replace(/%title%/gi,i.tNext).replace(/%dir%/gi,"right")).addClass(g);n.click((function(){e.prev()})),r.click((function(){e.next()})),e.container.append(n.add(r))}})),b(u+n,(function(){e._preloadTimeout&&clearTimeout(e._preloadTimeout),e._preloadTimeout=setTimeout((function(){e.preloadNearbyImages(),e._preloadTimeout=null}),16)})),b(a+n,(function(){o.off(n),e.wrap.off("click"+n),e.arrowRight=e.arrowLeft=null}))},next:function(){e.direction=!0,e.index=R(e.index+1),e.updateItemHTML()},prev:function(){e.direction=!1,e.index=R(e.index-1),e.updateItemHTML()},goTo:function(t){e.direction=t>=e.index,e.index=t,e.updateItemHTML()},preloadNearbyImages:function(){var t,i=e.st.gallery.preload,o=Math.min(i[0],e.items.length),n=Math.min(i[1],e.items.length);for(t=1;t<=(e.direction?n:o);t++)e._preloadItem(e.index+t);for(t=1;t<=(e.direction?o:n);t++)e._preloadItem(e.index-t)},_preloadItem:function(i){if(i=R(i),!e.items[i].preloaded){var o=e.items[i];o.parsed||(o=e.parseEl(i)),x("LazyLoad",o),"image"===o.type&&(o.img=t('<img class="mfp-img" />').on("load.mfploader",(function(){o.hasSize=!0})).on("error.mfploader",(function(){o.hasSize=!0,o.loadError=!0,x("LazyLoadError",o)})).attr("src",o.src)),o.preloaded=!0}}}});var Y="retina";t.magnificPopup.registerModule(Y,{options:{replaceSrc:function(t){return t.src.replace(/\.\w+$/,(function(t){return"@2x"+t}))},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var t=e.st.retina,i=t.ratio;(i=isNaN(i)?i():i)>1&&(b("ImageHasSize."+Y,(function(t,e){e.img.css({"max-width":e.img[0].naturalWidth/i,width:"100%"})})),b("ElementParse."+Y,(function(e,o){o.src=t.replaceSrc(o,i)})))}}}}),k()})),function(t){"use strict";t.fn.enllax=function(e){var i=t(window).height(),o=t(document).height(),n=t.extend({ratio:0,type:"background",direction:"vertical"},e);t("[data-enllax-ratio]").each((function(){var e,r,s,a=t(this),l=a.offset().top,c=a.outerHeight(),d=a.data("enllax-ratio"),u=a.data("enllax-type"),p=a.data("enllax-direction");e=d||n.ratio,r=u||n.type,s=p||n.direction;var h=Math.round(l*e),f=Math.round((l-i/2+c)*e);"background"==r?"vertical"==s?a.css({"background-position":"center "+-h+"px"}):"horizontal"==s&&a.css({"background-position":-h+"px center"}):"foreground"==r&&("vertical"==s?a.css({"-webkit-transform":"translateY("+f+"px)","-moz-transform":"translateY("+f+"px)",transform:"translateY("+f+"px)"}):"horizontal"==s&&a.css({"-webkit-transform":"translateX("+f+"px)","-moz-transform":"translateX("+f+"px)",transform:"translateX("+f+"px)"})),t(window).on("scroll",(function(){var n=t(this).scrollTop();h=Math.round((l-n)*e),f=Math.round((l-i/2+c-n)*e),"background"==r?"vertical"==s?a.css({"background-position":"center "+-h+"px"}):"horizontal"==s&&a.css({"background-position":-h+"px center"}):"foreground"==r&&o>n&&("vertical"==s?a.css({"-webkit-transform":"translateY("+f+"px)","-moz-transform":"translateY("+f+"px)",transform:"translateY("+f+"px)"}):"horizontal"==s&&a.css({"-webkit-transform":"translateX("+f+"px)","-moz-transform":"translateX("+f+"px)",transform:"translateX("+f+"px)"}))}))}))}}(jQuery),function(t){var e,i,o=t.event;e=o.special.debouncedresize={setup:function(){t(this).on("resize",e.handler)},teardown:function(){t(this).off("resize",e.handler)},handler:function(t,n){var r=this,s=arguments,a=function(){t.type="debouncedresize",o.dispatch.apply(r,s)};i&&clearTimeout(i),n?a():i=setTimeout(a,e.threshold)},threshold:150}}(jQuery),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}((function(t){"use strict";var e=!1,i=!1,o=0,n=2e3,r=0,s=t,a=document,l=window,c=s(l),d=[],u=l.requestAnimationFrame||l.webkitRequestAnimationFrame||l.mozRequestAnimationFrame||!1,p=l.cancelAnimationFrame||l.webkitCancelAnimationFrame||l.mozCancelAnimationFrame||!1;if(u)l.cancelAnimationFrame||(p=function(t){});else{var h=0;u=function(t,e){var i=(new Date).getTime(),o=Math.max(0,16-(i-h)),n=l.setTimeout((function(){t(i+o)}),o);return h=i+o,n},p=function(t){l.clearTimeout(t)}}var f=l.MutationObserver||l.WebKitMutationObserver||!1,m=Date.now||function(){return(new Date).getTime()},g={zindex:"auto",cursoropacitymin:0,cursoropacitymax:1,cursorcolor:"#424242",cursorwidth:"6px",cursorborder:"1px solid #fff",cursorborderradius:"5px",scrollspeed:40,mousescrollstep:27,touchbehavior:!1,emulatetouch:!1,hwacceleration:!0,usetransition:!0,boxzoom:!1,dblclickzoom:!0,gesturezoom:!0,grabcursorenabled:!0,autohidemode:!0,background:"",iframeautoresize:!0,cursorminheight:32,preservenativescrolling:!0,railoffset:!1,railhoffset:!1,bouncescroll:!0,spacebarenabled:!0,railpadding:{top:0,right:0,left:0,bottom:0},disableoutline:!0,horizrailenabled:!0,railalign:"right",railvalign:"bottom",enabletranslate3d:!0,enablemousewheel:!0,enablekeyboard:!0,smoothscroll:!0,sensitiverail:!0,enablemouselockapi:!0,cursorfixedheight:!1,directionlockdeadzone:6,hidecursordelay:400,nativeparentscrolling:!0,enablescrollonselection:!0,overflowx:!0,overflowy:!0,cursordragspeed:.3,rtlmode:"auto",cursordragontouch:!1,oneaxismousemode:"auto",scriptpath:function(){var t=a.currentScript||function(){var t=a.getElementsByTagName("script");return!!t.length&&t[t.length-1]}(),e=t?t.src.split("?")[0]:"";return e.split("/").length>0?e.split("/").slice(0,-1).join("/")+"/":""}(),preventmultitouchscrolling:!0,disablemutationobserver:!1,enableobserver:!0,scrollbarid:!1},v=!1,y=function(){if(v)return v;var t=a.createElement("DIV"),e=t.style,i=navigator.userAgent,o=navigator.platform,n={};return n.haspointerlock="pointerLockElement"in a||"webkitPointerLockElement"in a||"mozPointerLockElement"in a,n.isopera="opera"in l,n.isopera12=n.isopera&&"getUserMedia"in navigator,n.isoperamini="[object OperaMini]"===Object.prototype.toString.call(l.operamini),n.isie="all"in a&&"attachEvent"in t&&!n.isopera,n.isieold=n.isie&&!("msInterpolationMode"in e),n.isie7=n.isie&&!n.isieold&&(!("documentMode"in a)||7===a.documentMode),n.isie8=n.isie&&"documentMode"in a&&8===a.documentMode,n.isie9=n.isie&&"performance"in l&&9===a.documentMode,n.isie10=n.isie&&"performance"in l&&10===a.documentMode,n.isie11="msRequestFullscreen"in t&&a.documentMode>=11,n.ismsedge="msCredentials"in l,n.ismozilla="MozAppearance"in e,n.iswebkit=!n.ismsedge&&"WebkitAppearance"in e,n.ischrome=n.iswebkit&&"chrome"in l,n.ischrome38=n.ischrome&&"touchAction"in e,n.ischrome22=!n.ischrome38&&n.ischrome&&n.haspointerlock,n.ischrome26=!n.ischrome38&&n.ischrome&&"transition"in e,n.cantouch="ontouchstart"in a.documentElement||"ontouchstart"in l,n.hasw3ctouch=!!l.PointerEvent&&(navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0),n.hasmstouch=!n.hasw3ctouch&&(l.MSPointerEvent||!1),n.ismac=/^mac$/i.test(o),n.isios=n.cantouch&&/iphone|ipad|ipod/i.test(o),n.isios4=n.isios&&!("seal"in Object),n.isios7=n.isios&&"webkitHidden"in a,n.isios8=n.isios&&"hidden"in a,n.isios10=n.isios&&l.Proxy,n.isandroid=/android/i.test(i),n.haseventlistener="addEventListener"in t,n.trstyle=!1,n.hastransform=!1,n.hastranslate3d=!1,n.transitionstyle=!1,n.hastransition=!1,n.transitionend=!1,n.trstyle="transform",n.hastransform="transform"in e||function(){for(var t=["msTransform","webkitTransform","MozTransform","OTransform"],i=0,o=t.length;i<o;i++)if(void 0!==e[t[i]]){n.trstyle=t[i];break}n.hastransform=!!n.trstyle}(),n.hastransform&&(e[n.trstyle]="translate3d(1px,2px,3px)",n.hastranslate3d=/translate3d/.test(e[n.trstyle])),n.transitionstyle="transition",n.prefixstyle="",n.transitionend="transitionend",n.hastransition="transition"in e||function(){n.transitionend=!1;for(var t=["webkitTransition","msTransition","MozTransition","OTransition","OTransition","KhtmlTransition"],i=["-webkit-","-ms-","-moz-","-o-","-o","-khtml-"],o=["webkitTransitionEnd","msTransitionEnd","transitionend","otransitionend","oTransitionEnd","KhtmlTransitionEnd"],r=0,s=t.length;r<s;r++)if(t[r]in e){n.transitionstyle=t[r],n.prefixstyle=i[r],n.transitionend=o[r];break}n.ischrome26&&(n.prefixstyle=i[1]),n.hastransition=n.transitionstyle}(),n.cursorgrabvalue=function(){var t=["grab","-webkit-grab","-moz-grab"];(n.ischrome&&!n.ischrome38||n.isie)&&(t=[]);for(var i=0,o=t.length;i<o;i++){var r=t[i];if(e.cursor=r,e.cursor==r)return r}return"url(https://cdnjs.cloudflare.com/ajax/libs/slider-pro/1.3.0/css/images/openhand.cur),n-resize"}(),n.hasmousecapture="setCapture"in t,n.hasMutationObserver=!1!==f,t=null,v=n,n},w=function(t,h){function v(){var t=k.doc.css(L.trstyle);return!(!t||"matrix"!=t.substr(0,6))&&t.replace(/^.*\((.*)\)$/g,"$1").replace(/px/g,"").split(/, +/)}function w(t,e,i){var o=t.css(e),n=parseFloat(o);if(isNaN(n)){var r=3==(n=P[o]||0)?i?k.win.outerHeight()-k.win.innerHeight():k.win.outerWidth()-k.win.innerWidth():1;return k.isie8&&n&&(n+=1),r?n:0}return n}function S(t,e,i,o){k._bind(t,e,(function(o){var n={original:o=o||l.event,target:o.target||o.srcElement,type:"wheel",deltaMode:"MozMousePixelScroll"==o.type?0:1,deltaX:0,deltaZ:0,preventDefault:function(){return o.preventDefault?o.preventDefault():o.returnValue=!1,!1},stopImmediatePropagation:function(){o.stopImmediatePropagation?o.stopImmediatePropagation():o.cancelBubble=!0}};return"mousewheel"==e?(o.wheelDeltaX&&(n.deltaX=-.025*o.wheelDeltaX),o.wheelDeltaY&&(n.deltaY=-.025*o.wheelDeltaY),!n.deltaY&&!n.deltaX&&(n.deltaY=-.025*o.wheelDelta)):n.deltaY=o.detail,i.call(t,n)}),o)}function x(t,e,i,o){k.scrollrunning||(k.newscrolly=k.getScrollTop(),k.newscrollx=k.getScrollLeft(),R=m());var n=m()-R;if(R=m(),n>350?D=1:D+=(2-D)/10,e=e*D|0,t=t*D|0){if(o)if(t<0){if(k.getScrollLeft()>=k.page.maxw)return!0}else if(k.getScrollLeft()<=0)return!0;var r=t>0?1:-1;j!==r&&(k.scrollmom&&k.scrollmom.stop(),k.newscrollx=k.getScrollLeft(),j=r),k.lastdeltax-=t}if(e){if(function(){var t=k.getScrollTop();if(e<0){if(t>=k.page.maxh)return!0}else if(t<=0)return!0}()){if(z.nativeparentscrolling&&i&&!k.ispage&&!k.zoomactive)return!0;var s=k.view.h>>1;k.newscrolly<-s?(k.newscrolly=-s,e=-1):k.newscrolly>k.page.maxh+s?(k.newscrolly=k.page.maxh+s,e=1):e=0}var a=e>0?1:-1;W!==a&&(k.scrollmom&&k.scrollmom.stop(),k.newscrolly=k.getScrollTop(),W=a),k.lastdeltay-=e}(e||t)&&k.synched("relativexy",(function(){var t=k.lastdeltay+k.newscrolly;k.lastdeltay=0;var e=k.lastdeltax+k.newscrollx;k.lastdeltax=0,k.rail.drag||k.doScrollPos(e,t)}))}function T(t,e,i){var o,n;return!(i||!Y)||(0===t.deltaMode?(o=-t.deltaX*(z.mousescrollstep/54)|0,n=-t.deltaY*(z.mousescrollstep/54)|0):1===t.deltaMode&&(o=-t.deltaX*z.mousescrollstep*50/80|0,n=-t.deltaY*z.mousescrollstep*50/80|0),e&&z.oneaxismousemode&&0===o&&n&&(o=n,n=0,i&&(o<0?k.getScrollLeft()>=k.page.maxw:k.getScrollLeft()<=0)&&(n=o,o=0)),k.isrtlmode&&(o=-o),x(o,n,i,!0)?void(i&&(Y=!0)):(Y=!1,t.stopImmediatePropagation(),t.preventDefault()))}var k=this;this.version="3.7.6",this.name="nicescroll",this.me=h;var C=s("body"),z=this.opt={doc:C,win:!1};if(s.extend(z,g),z.snapbackspeed=80,t)for(var E in z)void 0!==t[E]&&(z[E]=t[E]);if(z.disablemutationobserver&&(f=!1),this.doc=z.doc,this.iddoc=this.doc&&this.doc[0]&&this.doc[0].id||"",this.ispage=/^BODY|HTML/.test(z.win?z.win[0].nodeName:this.doc[0].nodeName),this.haswrapper=!1!==z.win,this.win=z.win||(this.ispage?c:this.doc),this.docscroll=this.ispage&&!this.haswrapper?c:this.win,this.body=C,this.viewport=!1,this.isfixed=!1,this.iframe=!1,this.isiframe="IFRAME"==this.doc[0].nodeName&&"IFRAME"==this.win[0].nodeName,this.istextarea="TEXTAREA"==this.win[0].nodeName,this.forcescreen=!1,this.canshowonmouseevent="scroll"!=z.autohidemode,this.onmousedown=!1,this.onmouseup=!1,this.onmousemove=!1,this.onmousewheel=!1,this.onkeypress=!1,this.ongesturezoom=!1,this.onclick=!1,this.onscrollstart=!1,this.onscrollend=!1,this.onscrollcancel=!1,this.onzoomin=!1,this.onzoomout=!1,this.view=!1,this.page=!1,this.scroll={x:0,y:0},this.scrollratio={x:0,y:0},this.cursorheight=20,this.scrollvaluemax=0,"auto"==z.rtlmode){var I=this.win[0]==l?this.body:this.win,_=I.css("writing-mode")||I.css("-webkit-writing-mode")||I.css("-ms-writing-mode")||I.css("-moz-writing-mode");"horizontal-tb"==_||"lr-tb"==_||""===_?(this.isrtlmode="rtl"==I.css("direction"),this.isvertical=!1):(this.isrtlmode="vertical-rl"==_||"tb"==_||"tb-rl"==_||"rl-tb"==_,this.isvertical="vertical-rl"==_||"tb"==_||"tb-rl"==_)}else this.isrtlmode=!0===z.rtlmode,this.isvertical=!1;if(this.scrollrunning=!1,this.scrollmom=!1,this.observer=!1,this.observerremover=!1,this.observerbody=!1,!1!==z.scrollbarid)this.id=z.scrollbarid;else do{this.id="ascrail"+n++}while(a.getElementById(this.id));this.rail=!1,this.cursor=!1,this.cursorfreezed=!1,this.selectiondrag=!1,this.zoom=!1,this.zoomactive=!1,this.hasfocus=!1,this.hasmousefocus=!1,this.railslocked=!1,this.locked=!1,this.hidden=!1,this.cursoractive=!0,this.wheelprevented=!1,this.overflowx=z.overflowx,this.overflowy=z.overflowy,this.nativescrollingarea=!1,this.checkarea=0,this.events=[],this.saved={},this.delaylist={},this.synclist={},this.lastdeltax=0,this.lastdeltay=0,this.detected=y();var L=s.extend({},this.detected);this.canhwscroll=L.hastransform&&z.hwacceleration,this.ishwscroll=this.canhwscroll&&k.haswrapper,this.isrtlmode?this.isvertical?this.hasreversehr=!(L.iswebkit||L.isie||L.isie11):this.hasreversehr=!(L.iswebkit||L.isie&&!L.isie10&&!L.isie11):this.hasreversehr=!1,this.istouchcapable=!1,(L.cantouch||!L.hasw3ctouch&&!L.hasmstouch)&&(!L.cantouch||L.isios||L.isandroid||!L.iswebkit&&!L.ismozilla)||(this.istouchcapable=!0),z.enablemouselockapi||(L.hasmousecapture=!1,L.haspointerlock=!1),this.debounced=function(t,e,i){k&&(k.delaylist[t]||(k.delaylist[t]={h:u((function(){k.delaylist[t].fn.call(k),k.delaylist[t]=!1}),i)},e.call(k)),k.delaylist[t].fn=e)},this.synched=function(t,e){k.synclist[t]?k.synclist[t]=e:(k.synclist[t]=e,u((function(){k&&(k.synclist[t]&&k.synclist[t].call(k),k.synclist[t]=null)})))},this.unsynched=function(t){k.synclist[t]&&(k.synclist[t]=!1)},this.css=function(t,e){for(var i in e)k.saved.css.push([t,i,t.css(i)]),t.css(i,e[i])},this.scrollTop=function(t){return void 0===t?k.getScrollTop():k.setScrollTop(t)},this.scrollLeft=function(t){return void 0===t?k.getScrollLeft():k.setScrollLeft(t)};var O=function(t,e,i,o,n,r,s){this.st=t,this.ed=e,this.spd=i,this.p1=o||0,this.p2=n||1,this.p3=r||0,this.p4=s||1,this.ts=m(),this.df=e-t};if(O.prototype={B2:function(t){return 3*(1-t)*(1-t)*t},B3:function(t){return 3*(1-t)*t*t},B4:function(t){return t*t*t},getPos:function(){return(m()-this.ts)/this.spd},getNow:function(){var t=(m()-this.ts)/this.spd,e=this.B2(t)+this.B3(t)+this.B4(t);return t>=1?this.ed:this.st+this.df*e|0},update:function(t,e){return this.st=this.getNow(),this.ed=t,this.spd=e,this.ts=m(),this.df=this.ed-this.st,this}},this.ishwscroll){this.doc.translate={x:0,y:0,tx:"0px",ty:"0px"},L.hastranslate3d&&L.isios&&this.doc.css("-webkit-backface-visibility","hidden"),this.getScrollTop=function(t){if(!t){var e=v();if(e)return 16==e.length?-e[13]:-e[5];if(k.timerscroll&&k.timerscroll.bz)return k.timerscroll.bz.getNow()}return k.doc.translate.y},this.getScrollLeft=function(t){if(!t){var e=v();if(e)return 16==e.length?-e[12]:-e[4];if(k.timerscroll&&k.timerscroll.bh)return k.timerscroll.bh.getNow()}return k.doc.translate.x},this.notifyScrollEvent=function(t){var e=a.createEvent("UIEvents");e.initUIEvent("scroll",!1,!1,l,1),e.niceevent=!0,t.dispatchEvent(e)};var M=this.isrtlmode?1:-1;L.hastranslate3d&&z.enabletranslate3d?(this.setScrollTop=function(t,e){k.doc.translate.y=t,k.doc.translate.ty=-1*t+"px",k.doc.css(L.trstyle,"translate3d("+k.doc.translate.tx+","+k.doc.translate.ty+",0)"),e||k.notifyScrollEvent(k.win[0])},this.setScrollLeft=function(t,e){k.doc.translate.x=t,k.doc.translate.tx=t*M+"px",k.doc.css(L.trstyle,"translate3d("+k.doc.translate.tx+","+k.doc.translate.ty+",0)"),e||k.notifyScrollEvent(k.win[0])}):(this.setScrollTop=function(t,e){k.doc.translate.y=t,k.doc.translate.ty=-1*t+"px",k.doc.css(L.trstyle,"translate("+k.doc.translate.tx+","+k.doc.translate.ty+")"),e||k.notifyScrollEvent(k.win[0])},this.setScrollLeft=function(t,e){k.doc.translate.x=t,k.doc.translate.tx=t*M+"px",k.doc.css(L.trstyle,"translate("+k.doc.translate.tx+","+k.doc.translate.ty+")"),e||k.notifyScrollEvent(k.win[0])})}else this.getScrollTop=function(){return k.docscroll.scrollTop()},this.setScrollTop=function(t){k.docscroll.scrollTop(t)},this.getScrollLeft=function(){return k.hasreversehr?k.detected.ismozilla?k.page.maxw-Math.abs(k.docscroll.scrollLeft()):k.page.maxw-k.docscroll.scrollLeft():k.docscroll.scrollLeft()},this.setScrollLeft=function(t){return setTimeout((function(){if(k)return k.hasreversehr&&(t=k.detected.ismozilla?-(k.page.maxw-t):k.page.maxw-t),k.docscroll.scrollLeft(t)}),1)};this.getTarget=function(t){return!!t&&(t.target?t.target:!!t.srcElement&&t.srcElement)},this.hasParent=function(t,e){if(!t)return!1;for(var i=t.target||t.srcElement||t||!1;i&&i.id!=e;)i=i.parentNode||!1;return!1!==i};var P={thin:1,medium:3,thick:5};this.getDocumentScrollOffset=function(){return{top:l.pageYOffset||a.documentElement.scrollTop,left:l.pageXOffset||a.documentElement.scrollLeft}},this.getOffset=function(){if(k.isfixed){var t=k.win.offset(),e=k.getDocumentScrollOffset();return t.top-=e.top,t.left-=e.left,t}var i=k.win.offset();if(!k.viewport)return i;var o=k.viewport.offset();return{top:i.top-o.top,left:i.left-o.left}},this.updateScrollBar=function(t){var e,i;if(k.ishwscroll)k.rail.css({height:k.win.innerHeight()-(z.railpadding.top+z.railpadding.bottom)}),k.railh&&k.railh.css({width:k.win.innerWidth()-(z.railpadding.left+z.railpadding.right)});else{var o=k.getOffset();if((e={top:o.top,left:o.left-(z.railpadding.left+z.railpadding.right)}).top+=w(k.win,"border-top-width",!0),e.left+=k.rail.align?k.win.outerWidth()-w(k.win,"border-right-width")-k.rail.width:w(k.win,"border-left-width"),(i=z.railoffset)&&(i.top&&(e.top+=i.top),i.left&&(e.left+=i.left)),k.railslocked||k.rail.css({top:e.top,left:e.left,height:(t?t.h:k.win.innerHeight())-(z.railpadding.top+z.railpadding.bottom)}),k.zoom&&k.zoom.css({top:e.top+1,left:1==k.rail.align?e.left-20:e.left+k.rail.width+4}),k.railh&&!k.railslocked){e={top:o.top,left:o.left},(i=z.railhoffset)&&(i.top&&(e.top+=i.top),i.left&&(e.left+=i.left));var n=k.railh.align?e.top+w(k.win,"border-top-width",!0)+k.win.innerHeight()-k.railh.height:e.top+w(k.win,"border-top-width",!0),r=e.left+w(k.win,"border-left-width");k.railh.css({top:n-(z.railpadding.top+z.railpadding.bottom),left:r,width:k.railh.width})}}},this.doRailClick=function(t,e,i){var o,n,r,s;k.railslocked||(k.cancelEvent(t),"pageY"in t||(t.pageX=t.clientX+a.documentElement.scrollLeft,t.pageY=t.clientY+a.documentElement.scrollTop),e?(o=i?k.doScrollLeft:k.doScrollTop,r=i?(t.pageX-k.railh.offset().left-k.cursorwidth/2)*k.scrollratio.x:(t.pageY-k.rail.offset().top-k.cursorheight/2)*k.scrollratio.y,k.unsynched("relativexy"),o(0|r)):(o=i?k.doScrollLeftBy:k.doScrollBy,r=i?k.scroll.x:k.scroll.y,s=i?t.pageX-k.railh.offset().left:t.pageY-k.rail.offset().top,n=i?k.view.w:k.view.h,o(r>=s?n:-n)))},k.newscrolly=k.newscrollx=0,k.hasanimationframe="requestAnimationFrame"in l,k.hascancelanimationframe="cancelAnimationFrame"in l,k.hasborderbox=!1,this.init=function(){if(k.saved.css=[],L.isoperamini)return!0;if(L.isandroid&&!("hidden"in a))return!0;z.emulatetouch=z.emulatetouch||z.touchbehavior,k.hasborderbox=l.getComputedStyle&&"border-box"===l.getComputedStyle(a.body)["box-sizing"];var t={"overflow-y":"hidden"};if((L.isie11||L.isie10)&&(t["-ms-overflow-style"]="none"),k.ishwscroll&&(this.doc.css(L.transitionstyle,L.prefixstyle+"transform 0ms ease-out"),L.transitionend&&k.bind(k.doc,L.transitionend,k.onScrollTransitionEnd,!1)),k.zindex="auto",k.ispage||"auto"!=z.zindex?k.zindex=z.zindex:k.zindex=function(){var t=k.win;if("zIndex"in t)return t.zIndex();for(;t.length>0;){if(9==t[0].nodeType)return!1;var e=t.css("zIndex");if(!isNaN(e)&&0!==e)return parseInt(e);t=t.parent()}return!1}()||"auto",!k.ispage&&"auto"!=k.zindex&&k.zindex>r&&(r=k.zindex),k.isie&&0===k.zindex&&"auto"==z.zindex&&(k.zindex="auto"),!k.ispage||!L.isieold){var n=k.docscroll;k.ispage&&(n=k.haswrapper?k.win:k.doc),k.css(n,t),k.ispage&&(L.isie11||L.isie)&&k.css(s("html"),t),!L.isios||k.ispage||k.haswrapper||k.css(C,{"-webkit-overflow-scrolling":"touch"});var d=s(a.createElement("div"));d.css({position:"relative",top:0,float:"right",width:z.cursorwidth,height:0,"background-color":z.cursorcolor,border:z.cursorborder,"background-clip":"padding-box","-webkit-border-radius":z.cursorborderradius,"-moz-border-radius":z.cursorborderradius,"border-radius":z.cursorborderradius}),d.addClass("nicescroll-cursors"),k.cursor=d;var u=s(a.createElement("div"));u.attr("id",k.id),u.addClass("nicescroll-rails nicescroll-rails-vr");var p,h,m=["left","right","top","bottom"];for(var g in m)h=m[g],(p=z.railpadding[h]||0)&&u.css("padding-"+h,p+"px");u.append(d),u.width=Math.max(parseFloat(z.cursorwidth),d.outerWidth()),u.css({width:u.width+"px",zIndex:k.zindex,background:z.background,cursor:"default"}),u.visibility=!0,u.scrollable=!0,u.align="left"==z.railalign?0:1,k.rail=u,k.rail.drag=!1;var v,y=!1;if(!z.boxzoom||k.ispage||L.isieold||(y=a.createElement("div"),k.bind(y,"click",k.doZoom),k.bind(y,"mouseenter",(function(){k.zoom.css("opacity",z.cursoropacitymax)})),k.bind(y,"mouseleave",(function(){k.zoom.css("opacity",z.cursoropacitymin)})),k.zoom=s(y),k.zoom.css({cursor:"pointer",zIndex:k.zindex,backgroundImage:"url("+z.scriptpath+"zoomico.png)",height:18,width:18,backgroundPosition:"0 0"}),z.dblclickzoom&&k.bind(k.win,"dblclick",k.doZoom),L.cantouch&&z.gesturezoom&&(k.ongesturezoom=function(t){return t.scale>1.5&&k.doZoomIn(t),t.scale<.8&&k.doZoomOut(t),k.cancelEvent(t)},k.bind(k.win,"gestureend",k.ongesturezoom))),k.railh=!1,z.horizrailenabled&&(k.css(n,{overflowX:"hidden"}),(d=s(a.createElement("div"))).css({position:"absolute",top:0,height:z.cursorwidth,width:0,backgroundColor:z.cursorcolor,border:z.cursorborder,backgroundClip:"padding-box","-webkit-border-radius":z.cursorborderradius,"-moz-border-radius":z.cursorborderradius,"border-radius":z.cursorborderradius}),L.isieold&&d.css("overflow","hidden"),d.addClass("nicescroll-cursors"),k.cursorh=d,(v=s(a.createElement("div"))).attr("id",k.id+"-hr"),v.addClass("nicescroll-rails nicescroll-rails-hr"),v.height=Math.max(parseFloat(z.cursorwidth),d.outerHeight()),v.css({height:v.height+"px",zIndex:k.zindex,background:z.background}),v.append(d),v.visibility=!0,v.scrollable=!0,v.align="top"==z.railvalign?0:1,k.railh=v,k.railh.drag=!1),k.ispage)u.css({position:"fixed",top:0,height:"100%"}),u.css(u.align?{right:0}:{left:0}),k.body.append(u),k.railh&&(v.css({position:"fixed",left:0,width:"100%"}),v.css(v.align?{bottom:0}:{top:0}),k.body.append(v));else{if(k.ishwscroll){"static"==k.win.css("position")&&k.css(k.win,{position:"relative"});var w="HTML"==k.win[0].nodeName?k.body:k.win;s(w).scrollTop(0).scrollLeft(0),k.zoom&&(k.zoom.css({position:"absolute",top:1,right:0,"margin-right":u.width+4}),w.append(k.zoom)),u.css({position:"absolute",top:0}),u.css(u.align?{right:0}:{left:0}),w.append(u),v&&(v.css({position:"absolute",left:0,bottom:0}),v.css(v.align?{bottom:0}:{top:0}),w.append(v))}else{k.isfixed="fixed"==k.win.css("position");var S=k.isfixed?"fixed":"absolute";k.isfixed||(k.viewport=k.getViewport(k.win[0])),k.viewport&&(k.body=k.viewport,/fixed|absolute/.test(k.viewport.css("position"))||k.css(k.viewport,{position:"relative"})),u.css({position:S}),k.zoom&&k.zoom.css({position:S}),k.updateScrollBar(),k.body.append(u),k.zoom&&k.body.append(k.zoom),k.railh&&(v.css({position:S}),k.body.append(v))}L.isios&&k.css(k.win,{"-webkit-tap-highlight-color":"rgba(0,0,0,0)","-webkit-touch-callout":"none"}),z.disableoutline&&(L.isie&&k.win.attr("hideFocus","true"),L.iswebkit&&k.win.css("outline","none"))}if(!1===z.autohidemode?(k.autohidedom=!1,k.rail.css({opacity:z.cursoropacitymax}),k.railh&&k.railh.css({opacity:z.cursoropacitymax})):!0===z.autohidemode||"leave"===z.autohidemode?(k.autohidedom=s().add(k.rail),L.isie8&&(k.autohidedom=k.autohidedom.add(k.cursor)),k.railh&&(k.autohidedom=k.autohidedom.add(k.railh)),k.railh&&L.isie8&&(k.autohidedom=k.autohidedom.add(k.cursorh))):"scroll"==z.autohidemode?(k.autohidedom=s().add(k.rail),k.railh&&(k.autohidedom=k.autohidedom.add(k.railh))):"cursor"==z.autohidemode?(k.autohidedom=s().add(k.cursor),k.railh&&(k.autohidedom=k.autohidedom.add(k.cursorh))):"hidden"==z.autohidemode&&(k.autohidedom=!1,k.hide(),k.railslocked=!1),L.cantouch||k.istouchcapable||z.emulatetouch||L.hasmstouch){k.scrollmom=new b(k),k.ontouchstart=function(t){if(k.locked)return!1;if(t.pointerType&&("mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE))return!1;if(k.hasmoving=!1,k.scrollmom.timer&&(k.triggerScrollEnd(),k.scrollmom.stop()),!k.railslocked){var e=k.getTarget(t);if(e&&/INPUT/i.test(e.nodeName)&&/range/i.test(e.type))return k.stopPropagation(t);var i="mousedown"===t.type;if(!("clientX"in t)&&"changedTouches"in t&&(t.clientX=t.changedTouches[0].clientX,t.clientY=t.changedTouches[0].clientY),k.forcescreen){var o=t;(t={original:t.original?t.original:t}).clientX=o.screenX,t.clientY=o.screenY}if(k.rail.drag={x:t.clientX,y:t.clientY,sx:k.scroll.x,sy:k.scroll.y,st:k.getScrollTop(),sl:k.getScrollLeft(),pt:2,dl:!1,tg:e},k.ispage||!z.directionlockdeadzone)k.rail.drag.dl="f";else{var n={w:c.width(),h:c.height()},r=k.getContentSize(),a=r.h-n.h,l=r.w-n.w;k.rail.scrollable&&!k.railh.scrollable?k.rail.drag.ck=a>0&&"v":!k.rail.scrollable&&k.railh.scrollable?k.rail.drag.ck=l>0&&"h":k.rail.drag.ck=!1}if(z.emulatetouch&&k.isiframe&&L.isie){var d=k.win.position();k.rail.drag.x+=d.left,k.rail.drag.y+=d.top}if(k.hasmoving=!1,k.lastmouseup=!1,k.scrollmom.reset(t.clientX,t.clientY),e&&i){if(!/INPUT|SELECT|BUTTON|TEXTAREA/i.test(e.nodeName))return L.hasmousecapture&&e.setCapture(),z.emulatetouch?(e.onclick&&!e._onclick&&(e._onclick=e.onclick,e.onclick=function(t){if(k.hasmoving)return!1;e._onclick.call(this,t)}),k.cancelEvent(t)):k.stopPropagation(t);/SUBMIT|CANCEL|BUTTON/i.test(s(e).attr("type"))&&(k.preventclick={tg:e,click:!1})}}},k.ontouchend=function(t){if(!k.rail.drag)return!0;if(2==k.rail.drag.pt){if(t.pointerType&&("mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE))return!1;k.rail.drag=!1;var e="mouseup"===t.type;if(k.hasmoving&&(k.scrollmom.doMomentum(),k.lastmouseup=!0,k.hideCursor(),L.hasmousecapture&&a.releaseCapture(),e))return k.cancelEvent(t)}else if(1==k.rail.drag.pt)return k.onmouseup(t)};var x=z.emulatetouch&&k.isiframe&&!L.hasmousecapture,T=.3*z.directionlockdeadzone|0;k.ontouchmove=function(t,e){if(!k.rail.drag)return!0;if(t.targetTouches&&z.preventmultitouchscrolling&&t.targetTouches.length>1)return!0;if(t.pointerType&&("mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE))return!0;if(2==k.rail.drag.pt){var i,o;if("changedTouches"in t&&(t.clientX=t.changedTouches[0].clientX,t.clientY=t.changedTouches[0].clientY),o=i=0,x&&!e){var n=k.win.position();o=-n.left,i=-n.top}var r=t.clientY+i,s=r-k.rail.drag.y,l=t.clientX+o,c=l-k.rail.drag.x,d=k.rail.drag.st-s;if(k.ishwscroll&&z.bouncescroll)d<0?d=Math.round(d/2):d>k.page.maxh&&(d=k.page.maxh+Math.round((d-k.page.maxh)/2));else if(d<0?(d=0,r=0):d>k.page.maxh&&(d=k.page.maxh,r=0),0===r&&!k.hasmoving)return k.ispage||(k.rail.drag=!1),!0;var u=k.getScrollLeft();if(k.railh&&k.railh.scrollable&&(u=k.isrtlmode?c-k.rail.drag.sl:k.rail.drag.sl-c,k.ishwscroll&&z.bouncescroll?u<0?u=Math.round(u/2):u>k.page.maxw&&(u=k.page.maxw+Math.round((u-k.page.maxw)/2)):(u<0&&(u=0,l=0),u>k.page.maxw&&(u=k.page.maxw,l=0))),!k.hasmoving){if(k.rail.drag.y===t.clientY&&k.rail.drag.x===t.clientX)return k.cancelEvent(t);var p=Math.abs(s),h=Math.abs(c),f=z.directionlockdeadzone;if(k.rail.drag.ck?"v"==k.rail.drag.ck?h>f&&p<=T?k.rail.drag=!1:p>f&&(k.rail.drag.dl="v"):"h"==k.rail.drag.ck&&(p>f&&h<=T?k.rail.drag=!1:h>f&&(k.rail.drag.dl="h")):p>f&&h>f?k.rail.drag.dl="f":p>f?k.rail.drag.dl=h>T?"f":"v":h>f&&(k.rail.drag.dl=p>T?"f":"h"),!k.rail.drag.dl)return k.cancelEvent(t);k.triggerScrollStart(t.clientX,t.clientY,0,0,0),k.hasmoving=!0}return k.preventclick&&!k.preventclick.click&&(k.preventclick.click=k.preventclick.tg.onclick||!1,k.preventclick.tg.onclick=k.onpreventclick),k.rail.drag.dl&&("v"==k.rail.drag.dl?u=k.rail.drag.sl:"h"==k.rail.drag.dl&&(d=k.rail.drag.st)),k.synched("touchmove",(function(){k.rail.drag&&2==k.rail.drag.pt&&(k.prepareTransition&&k.resetTransition(),k.rail.scrollable&&k.setScrollTop(d),k.scrollmom.update(l,r),k.railh&&k.railh.scrollable?(k.setScrollLeft(u),k.showCursor(d,u)):k.showCursor(d),L.isie10&&a.selection.clear())})),k.cancelEvent(t)}return 1==k.rail.drag.pt?k.onmousemove(t):void 0},k.ontouchstartCursor=function(t,e){if(!k.rail.drag||3==k.rail.drag.pt){if(k.locked)return k.cancelEvent(t);k.cancelScroll(),k.rail.drag={x:t.touches[0].clientX,y:t.touches[0].clientY,sx:k.scroll.x,sy:k.scroll.y,pt:3,hr:!!e};var i=k.getTarget(t);return!k.ispage&&L.hasmousecapture&&i.setCapture(),k.isiframe&&!L.hasmousecapture&&(k.saved.csspointerevents=k.doc.css("pointer-events"),k.css(k.doc,{"pointer-events":"none"})),k.cancelEvent(t)}},k.ontouchendCursor=function(t){if(k.rail.drag){if(L.hasmousecapture&&a.releaseCapture(),k.isiframe&&!L.hasmousecapture&&k.doc.css("pointer-events",k.saved.csspointerevents),3!=k.rail.drag.pt)return;return k.rail.drag=!1,k.cancelEvent(t)}},k.ontouchmoveCursor=function(t){if(k.rail.drag){if(3!=k.rail.drag.pt)return;if(k.cursorfreezed=!0,k.rail.drag.hr){k.scroll.x=k.rail.drag.sx+(t.touches[0].clientX-k.rail.drag.x),k.scroll.x<0&&(k.scroll.x=0);var e=k.scrollvaluemaxw;k.scroll.x>e&&(k.scroll.x=e)}else{k.scroll.y=k.rail.drag.sy+(t.touches[0].clientY-k.rail.drag.y),k.scroll.y<0&&(k.scroll.y=0);var i=k.scrollvaluemax;k.scroll.y>i&&(k.scroll.y=i)}return k.synched("touchmove",(function(){k.rail.drag&&3==k.rail.drag.pt&&(k.showCursor(),k.rail.drag.hr?k.doScrollLeft(Math.round(k.scroll.x*k.scrollratio.x),z.cursordragspeed):k.doScrollTop(Math.round(k.scroll.y*k.scrollratio.y),z.cursordragspeed))})),k.cancelEvent(t)}}}if(k.onmousedown=function(t,e){if(!k.rail.drag||1==k.rail.drag.pt){if(k.railslocked)return k.cancelEvent(t);k.cancelScroll(),k.rail.drag={x:t.clientX,y:t.clientY,sx:k.scroll.x,sy:k.scroll.y,pt:1,hr:e||!1};var i=k.getTarget(t);return L.hasmousecapture&&i.setCapture(),k.isiframe&&!L.hasmousecapture&&(k.saved.csspointerevents=k.doc.css("pointer-events"),k.css(k.doc,{"pointer-events":"none"})),k.hasmoving=!1,k.cancelEvent(t)}},k.onmouseup=function(t){if(k.rail.drag)return 1!=k.rail.drag.pt||(L.hasmousecapture&&a.releaseCapture(),k.isiframe&&!L.hasmousecapture&&k.doc.css("pointer-events",k.saved.csspointerevents),k.rail.drag=!1,k.cursorfreezed=!1,k.hasmoving&&k.triggerScrollEnd(),k.cancelEvent(t))},k.onmousemove=function(t){if(k.rail.drag){if(1!==k.rail.drag.pt)return;if(L.ischrome&&0===t.which)return k.onmouseup(t);if(k.cursorfreezed=!0,k.hasmoving||k.triggerScrollStart(t.clientX,t.clientY,0,0,0),k.hasmoving=!0,k.rail.drag.hr){k.scroll.x=k.rail.drag.sx+(t.clientX-k.rail.drag.x),k.scroll.x<0&&(k.scroll.x=0);var e=k.scrollvaluemaxw;k.scroll.x>e&&(k.scroll.x=e)}else{k.scroll.y=k.rail.drag.sy+(t.clientY-k.rail.drag.y),k.scroll.y<0&&(k.scroll.y=0);var i=k.scrollvaluemax;k.scroll.y>i&&(k.scroll.y=i)}return k.synched("mousemove",(function(){k.cursorfreezed&&(k.showCursor(),k.rail.drag.hr?k.scrollLeft(Math.round(k.scroll.x*k.scrollratio.x)):k.scrollTop(Math.round(k.scroll.y*k.scrollratio.y)))})),k.cancelEvent(t)}k.checkarea=0},L.cantouch||z.emulatetouch)k.onpreventclick=function(t){if(k.preventclick)return k.preventclick.tg.onclick=k.preventclick.click,k.preventclick=!1,k.cancelEvent(t)},k.onclick=!L.isios&&function(t){return!k.lastmouseup||(k.lastmouseup=!1,k.cancelEvent(t))},z.grabcursorenabled&&L.cursorgrabvalue&&(k.css(k.ispage?k.doc:k.win,{cursor:L.cursorgrabvalue}),k.css(k.rail,{cursor:L.cursorgrabvalue}));else{var E=function(t){if(k.selectiondrag){if(t){var e=k.win.outerHeight(),i=t.pageY-k.selectiondrag.top;i>0&&i<e&&(i=0),i>=e&&(i-=e),k.selectiondrag.df=i}if(0!==k.selectiondrag.df){var o=-2*k.selectiondrag.df/6|0;k.doScrollBy(o),k.debounced("doselectionscroll",(function(){E()}),50)}}};k.hasTextSelected="getSelection"in a?function(){return a.getSelection().rangeCount>0}:"selection"in a?function(){return"None"!=a.selection.type}:function(){return!1},k.onselectionstart=function(t){k.ispage||(k.selectiondrag=k.win.offset())},k.onselectionend=function(t){k.selectiondrag=!1},k.onselectiondrag=function(t){k.selectiondrag&&k.hasTextSelected()&&k.debounced("selectionscroll",(function(){E(t)}),250)}}if(L.hasw3ctouch?(k.css(k.ispage?s("html"):k.win,{"touch-action":"none"}),k.css(k.rail,{"touch-action":"none"}),k.css(k.cursor,{"touch-action":"none"}),k.bind(k.win,"pointerdown",k.ontouchstart),k.bind(a,"pointerup",k.ontouchend),k.delegate(a,"pointermove",k.ontouchmove)):L.hasmstouch?(k.css(k.ispage?s("html"):k.win,{"-ms-touch-action":"none"}),k.css(k.rail,{"-ms-touch-action":"none"}),k.css(k.cursor,{"-ms-touch-action":"none"}),k.bind(k.win,"MSPointerDown",k.ontouchstart),k.bind(a,"MSPointerUp",k.ontouchend),k.delegate(a,"MSPointerMove",k.ontouchmove),k.bind(k.cursor,"MSGestureHold",(function(t){t.preventDefault()})),k.bind(k.cursor,"contextmenu",(function(t){t.preventDefault()}))):L.cantouch&&(k.bind(k.win,"touchstart",k.ontouchstart,!1,!0),k.bind(a,"touchend",k.ontouchend,!1,!0),k.bind(a,"touchcancel",k.ontouchend,!1,!0),k.delegate(a,"touchmove",k.ontouchmove,!1,!0)),z.emulatetouch&&(k.bind(k.win,"mousedown",k.ontouchstart,!1,!0),k.bind(a,"mouseup",k.ontouchend,!1,!0),k.bind(a,"mousemove",k.ontouchmove,!1,!0)),(z.cursordragontouch||!L.cantouch&&!z.emulatetouch)&&(k.rail.css({cursor:"default"}),k.railh&&k.railh.css({cursor:"default"}),k.jqbind(k.rail,"mouseenter",(function(){if(!k.ispage&&!k.win.is(":visible"))return!1;k.canshowonmouseevent&&k.showCursor(),k.rail.active=!0})),k.jqbind(k.rail,"mouseleave",(function(){k.rail.active=!1,k.rail.drag||k.hideCursor()})),z.sensitiverail&&(k.bind(k.rail,"click",(function(t){k.doRailClick(t,!1,!1)})),k.bind(k.rail,"dblclick",(function(t){k.doRailClick(t,!0,!1)})),k.bind(k.cursor,"click",(function(t){k.cancelEvent(t)})),k.bind(k.cursor,"dblclick",(function(t){k.cancelEvent(t)}))),k.railh&&(k.jqbind(k.railh,"mouseenter",(function(){if(!k.ispage&&!k.win.is(":visible"))return!1;k.canshowonmouseevent&&k.showCursor(),k.rail.active=!0})),k.jqbind(k.railh,"mouseleave",(function(){k.rail.active=!1,k.rail.drag||k.hideCursor()})),z.sensitiverail&&(k.bind(k.railh,"click",(function(t){k.doRailClick(t,!1,!0)})),k.bind(k.railh,"dblclick",(function(t){k.doRailClick(t,!0,!0)})),k.bind(k.cursorh,"click",(function(t){k.cancelEvent(t)})),k.bind(k.cursorh,"dblclick",(function(t){k.cancelEvent(t)}))))),z.cursordragontouch&&(this.istouchcapable||L.cantouch)&&(k.bind(k.cursor,"touchstart",k.ontouchstartCursor),k.bind(k.cursor,"touchmove",k.ontouchmoveCursor),k.bind(k.cursor,"touchend",k.ontouchendCursor),k.cursorh&&k.bind(k.cursorh,"touchstart",(function(t){k.ontouchstartCursor(t,!0)})),k.cursorh&&k.bind(k.cursorh,"touchmove",k.ontouchmoveCursor),k.cursorh&&k.bind(k.cursorh,"touchend",k.ontouchendCursor)),z.emulatetouch||L.isandroid||L.isios?(k.bind(L.hasmousecapture?k.win:a,"mouseup",k.ontouchend),k.onclick&&k.bind(a,"click",k.onclick),z.cursordragontouch?(k.bind(k.cursor,"mousedown",k.onmousedown),k.bind(k.cursor,"mouseup",k.onmouseup),k.cursorh&&k.bind(k.cursorh,"mousedown",(function(t){k.onmousedown(t,!0)})),k.cursorh&&k.bind(k.cursorh,"mouseup",k.onmouseup)):(k.bind(k.rail,"mousedown",(function(t){t.preventDefault()})),k.railh&&k.bind(k.railh,"mousedown",(function(t){t.preventDefault()})))):(k.bind(L.hasmousecapture?k.win:a,"mouseup",k.onmouseup),k.bind(a,"mousemove",k.onmousemove),k.onclick&&k.bind(a,"click",k.onclick),k.bind(k.cursor,"mousedown",k.onmousedown),k.bind(k.cursor,"mouseup",k.onmouseup),k.railh&&(k.bind(k.cursorh,"mousedown",(function(t){k.onmousedown(t,!0)})),k.bind(k.cursorh,"mouseup",k.onmouseup)),!k.ispage&&z.enablescrollonselection&&(k.bind(k.win[0],"mousedown",k.onselectionstart),k.bind(a,"mouseup",k.onselectionend),k.bind(k.cursor,"mouseup",k.onselectionend),k.cursorh&&k.bind(k.cursorh,"mouseup",k.onselectionend),k.bind(a,"mousemove",k.onselectiondrag)),k.zoom&&(k.jqbind(k.zoom,"mouseenter",(function(){k.canshowonmouseevent&&k.showCursor(),k.rail.active=!0})),k.jqbind(k.zoom,"mouseleave",(function(){k.rail.active=!1,k.rail.drag||k.hideCursor()})))),z.enablemousewheel&&(k.isiframe||k.mousewheel(L.isie&&k.ispage?a:k.win,k.onmousewheel),k.mousewheel(k.rail,k.onmousewheel),k.railh&&k.mousewheel(k.railh,k.onmousewheelhr)),k.ispage||L.cantouch||/HTML|^BODY/.test(k.win[0].nodeName)||(k.win.attr("tabindex")||k.win.attr({tabindex:++o}),k.bind(k.win,"focus",(function(t){e=k.getTarget(t).id||k.getTarget(t)||!1,k.hasfocus=!0,k.canshowonmouseevent&&k.noticeCursor()})),k.bind(k.win,"blur",(function(t){e=!1,k.hasfocus=!1})),k.bind(k.win,"mouseenter",(function(t){i=k.getTarget(t).id||k.getTarget(t)||!1,k.hasmousefocus=!0,k.canshowonmouseevent&&k.noticeCursor()})),k.bind(k.win,"mouseleave",(function(t){i=!1,k.hasmousefocus=!1,k.rail.drag||k.hideCursor()}))),k.onkeypress=function(t){if(k.railslocked&&0===k.page.maxh)return!0;t=t||l.event;var o=k.getTarget(t);if(o&&/INPUT|TEXTAREA|SELECT|OPTION/.test(o.nodeName)&&(!o.getAttribute("type")&&!o.type||!/submit|button|cancel/i.tp))return!0;if(s(o).attr("contenteditable"))return!0;if(k.hasfocus||k.hasmousefocus&&!e||k.ispage&&!e&&!i){var n=t.keyCode;if(k.railslocked&&27!=n)return k.cancelEvent(t);var r=t.ctrlKey||!1,a=t.shiftKey||!1,c=!1;switch(n){case 38:case 63233:k.doScrollBy(72),c=!0;break;case 40:case 63235:k.doScrollBy(-72),c=!0;break;case 37:case 63232:k.railh&&(r?k.doScrollLeft(0):k.doScrollLeftBy(72),c=!0);break;case 39:case 63234:k.railh&&(r?k.doScrollLeft(k.page.maxw):k.doScrollLeftBy(-72),c=!0);break;case 33:case 63276:k.doScrollBy(k.view.h),c=!0;break;case 34:case 63277:k.doScrollBy(-k.view.h),c=!0;break;case 36:case 63273:k.railh&&r?k.doScrollPos(0,0):k.doScrollTo(0),c=!0;break;case 35:case 63275:k.railh&&r?k.doScrollPos(k.page.maxw,k.page.maxh):k.doScrollTo(k.page.maxh),c=!0;break;case 32:z.spacebarenabled&&(a?k.doScrollBy(k.view.h):k.doScrollBy(-k.view.h),c=!0);break;case 27:k.zoomactive&&(k.doZoom(),c=!0)}if(c)return k.cancelEvent(t)}},z.enablekeyboard&&k.bind(a,L.isopera&&!L.isopera12?"keypress":"keydown",k.onkeypress),k.bind(a,"keydown",(function(t){t.ctrlKey&&(k.wheelprevented=!0)})),k.bind(a,"keyup",(function(t){t.ctrlKey||(k.wheelprevented=!1)})),k.bind(l,"blur",(function(t){k.wheelprevented=!1})),k.bind(l,"resize",k.onscreenresize),k.bind(l,"orientationchange",k.onscreenresize),k.bind(l,"load",k.lazyResize),L.ischrome&&!k.ispage&&!k.haswrapper){var I=k.win.attr("style"),_=parseFloat(k.win.css("width"))+1;k.win.css("width",_),k.synched("chromefix",(function(){k.win.attr("style",I)}))}if(k.onAttributeChange=function(t){k.lazyResize(k.isieold?250:30)},z.enableobserver&&(k.isie11||!1===f||(k.observerbody=new f((function(t){if(t.forEach((function(t){if("attributes"==t.type)return C.hasClass("modal-open")&&C.hasClass("modal-dialog")&&!s.contains(s(".modal-dialog")[0],k.doc[0])?k.hide():k.show()})),k.me.clientWidth!=k.page.width||k.me.clientHeight!=k.page.height)return k.lazyResize(30)})),k.observerbody.observe(a.body,{childList:!0,subtree:!0,characterData:!1,attributes:!0,attributeFilter:["class"]})),!k.ispage&&!k.haswrapper)){var O=k.win[0];!1!==f?(k.observer=new f((function(t){t.forEach(k.onAttributeChange)})),k.observer.observe(O,{childList:!0,characterData:!1,attributes:!0,subtree:!1}),k.observerremover=new f((function(t){t.forEach((function(t){if(t.removedNodes.length>0)for(var e in t.removedNodes)if(k&&t.removedNodes[e]===O)return k.remove()}))})),k.observerremover.observe(O.parentNode,{childList:!0,characterData:!1,attributes:!1,subtree:!1})):(k.bind(O,L.isie&&!L.isie9?"propertychange":"DOMAttrModified",k.onAttributeChange),L.isie9&&O.attachEvent("onpropertychange",k.onAttributeChange),k.bind(O,"DOMNodeRemoved",(function(t){t.target===O&&k.remove()})))}!k.ispage&&z.boxzoom&&k.bind(l,"resize",k.resizeZoom),k.istextarea&&(k.bind(k.win,"keydown",k.lazyResize),k.bind(k.win,"mouseup",k.lazyResize)),k.lazyResize(30)}if("IFRAME"==this.doc[0].nodeName){var M=function(){var e;k.iframexd=!1;try{(e="contentDocument"in this?this.contentDocument:this.contentWindow._doc).domain}catch(t){k.iframexd=!0,e=!1}if(k.iframexd)return"console"in l&&console.log("NiceScroll error: policy restriced iframe"),!0;if(k.forcescreen=!0,k.isiframe&&(k.iframe={doc:s(e),html:k.doc.contents().find("html")[0],body:k.doc.contents().find("body")[0]},k.getContentSize=function(){return{w:Math.max(k.iframe.html.scrollWidth,k.iframe.body.scrollWidth),h:Math.max(k.iframe.html.scrollHeight,k.iframe.body.scrollHeight)}},k.docscroll=s(k.iframe.body)),!L.isios&&z.iframeautoresize&&!k.isiframe){k.win.scrollTop(0),k.doc.height("");var i=Math.max(e.getElementsByTagName("html")[0].scrollHeight,e.body.scrollHeight);k.doc.height(i)}k.lazyResize(30),k.css(s(k.iframe.body),t),L.isios&&k.haswrapper&&k.css(s(e.body),{"-webkit-transform":"translate3d(0,0,0)"}),"contentWindow"in this?k.bind(this.contentWindow,"scroll",k.onscroll):k.bind(e,"scroll",k.onscroll),z.enablemousewheel&&k.mousewheel(e,k.onmousewheel),z.enablekeyboard&&k.bind(e,L.isopera?"keypress":"keydown",k.onkeypress),L.cantouch?(k.bind(e,"touchstart",k.ontouchstart),k.bind(e,"touchmove",k.ontouchmove)):z.emulatetouch&&(k.bind(e,"mousedown",k.ontouchstart),k.bind(e,"mousemove",(function(t){return k.ontouchmove(t,!0)})),z.grabcursorenabled&&L.cursorgrabvalue&&k.css(s(e.body),{cursor:L.cursorgrabvalue})),k.bind(e,"mouseup",k.ontouchend),k.zoom&&(z.dblclickzoom&&k.bind(e,"dblclick",k.doZoom),k.ongesturezoom&&k.bind(e,"gestureend",k.ongesturezoom))};this.doc[0].readyState&&"complete"===this.doc[0].readyState&&setTimeout((function(){M.call(k.doc[0],!1)}),500),k.bind(this.doc,"load",M)}},this.showCursor=function(t,e){if(k.cursortimeout&&(clearTimeout(k.cursortimeout),k.cursortimeout=0),k.rail){if(k.autohidedom&&(k.autohidedom.stop().css({opacity:z.cursoropacitymax}),k.cursoractive=!0),k.rail.drag&&1==k.rail.drag.pt||(void 0!==t&&!1!==t&&(k.scroll.y=t/k.scrollratio.y|0),void 0!==e&&(k.scroll.x=e/k.scrollratio.x|0)),k.cursor.css({height:k.cursorheight,top:k.scroll.y}),k.cursorh){var i=k.hasreversehr?k.scrollvaluemaxw-k.scroll.x:k.scroll.x;k.cursorh.css({width:k.cursorwidth,left:!k.rail.align&&k.rail.visibility?i+k.rail.width:i}),k.cursoractive=!0}k.zoom&&k.zoom.stop().css({opacity:z.cursoropacitymax})}},this.hideCursor=function(t){k.cursortimeout||k.rail&&k.autohidedom&&(k.hasmousefocus&&"leave"===z.autohidemode||(k.cursortimeout=setTimeout((function(){k.rail.active&&k.showonmouseevent||(k.autohidedom.stop().animate({opacity:z.cursoropacitymin}),k.zoom&&k.zoom.stop().animate({opacity:z.cursoropacitymin}),k.cursoractive=!1),k.cursortimeout=0}),t||z.hidecursordelay)))},this.noticeCursor=function(t,e,i){k.showCursor(e,i),k.rail.active||k.hideCursor(t)},this.getContentSize=k.ispage?function(){return{w:Math.max(a.body.scrollWidth,a.documentElement.scrollWidth),h:Math.max(a.body.scrollHeight,a.documentElement.scrollHeight)}}:k.haswrapper?function(){return{w:k.doc[0].offsetWidth,h:k.doc[0].offsetHeight}}:function(){return{w:k.docscroll[0].scrollWidth,h:k.docscroll[0].scrollHeight}},this.onResize=function(t,e){if(!k||!k.win)return!1;var i=k.page.maxh,o=k.page.maxw,n=k.view.h,r=k.view.w;if(k.view={w:k.ispage?k.win.width():k.win[0].clientWidth,h:k.ispage?k.win.height():k.win[0].clientHeight},k.page=e||k.getContentSize(),k.page.maxh=Math.max(0,k.page.h-k.view.h),k.page.maxw=Math.max(0,k.page.w-k.view.w),k.page.maxh==i&&k.page.maxw==o&&k.view.w==r&&k.view.h==n){if(k.ispage)return k;var s=k.win.offset();if(k.lastposition){var a=k.lastposition;if(a.top==s.top&&a.left==s.left)return k}k.lastposition=s}return 0===k.page.maxh?(k.hideRail(),k.scrollvaluemax=0,k.scroll.y=0,k.scrollratio.y=0,k.cursorheight=0,k.setScrollTop(0),k.rail&&(k.rail.scrollable=!1)):(k.page.maxh-=z.railpadding.top+z.railpadding.bottom,k.rail.scrollable=!0),0===k.page.maxw?(k.hideRailHr(),k.scrollvaluemaxw=0,k.scroll.x=0,k.scrollratio.x=0,k.cursorwidth=0,k.setScrollLeft(0),k.railh&&(k.railh.scrollable=!1)):(k.page.maxw-=z.railpadding.left+z.railpadding.right,k.railh&&(k.railh.scrollable=z.horizrailenabled)),k.railslocked=k.locked||0===k.page.maxh&&0===k.page.maxw,k.railslocked?(k.ispage||k.updateScrollBar(k.view),!1):(k.hidden||(k.rail.visibility||k.showRail(),k.railh&&!k.railh.visibility&&k.showRailHr()),k.istextarea&&k.win.css("resize")&&"none"!=k.win.css("resize")&&(k.view.h-=20),k.cursorheight=Math.min(k.view.h,Math.round(k.view.h*(k.view.h/k.page.h))),k.cursorheight=z.cursorfixedheight?z.cursorfixedheight:Math.max(z.cursorminheight,k.cursorheight),k.cursorwidth=Math.min(k.view.w,Math.round(k.view.w*(k.view.w/k.page.w))),k.cursorwidth=z.cursorfixedheight?z.cursorfixedheight:Math.max(z.cursorminheight,k.cursorwidth),k.scrollvaluemax=k.view.h-k.cursorheight-(z.railpadding.top+z.railpadding.bottom),k.hasborderbox||(k.scrollvaluemax-=k.cursor[0].offsetHeight-k.cursor[0].clientHeight),k.railh&&(k.railh.width=k.page.maxh>0?k.view.w-k.rail.width:k.view.w,k.scrollvaluemaxw=k.railh.width-k.cursorwidth-(z.railpadding.left+z.railpadding.right)),k.ispage||k.updateScrollBar(k.view),k.scrollratio={x:k.page.maxw/k.scrollvaluemaxw,y:k.page.maxh/k.scrollvaluemax},k.getScrollTop()>k.page.maxh?k.doScrollTop(k.page.maxh):(k.scroll.y=k.getScrollTop()/k.scrollratio.y|0,k.scroll.x=k.getScrollLeft()/k.scrollratio.x|0,k.cursoractive&&k.noticeCursor()),k.scroll.y&&0===k.getScrollTop()&&k.doScrollTo(k.scroll.y*k.scrollratio.y|0),k)},this.resize=k.onResize;var $=0;this.onscreenresize=function(t){clearTimeout($);var e=!k.ispage&&!k.haswrapper;e&&k.hideRails(),$=setTimeout((function(){k&&(e&&k.showRails(),k.resize()),$=0}),120)},this.lazyResize=function(t){return clearTimeout($),t=isNaN(t)?240:t,$=setTimeout((function(){k&&k.resize(),$=0}),t),k},this.jqbind=function(t,e,i){k.events.push({e:t,n:e,f:i,q:!0}),s(t).on(e,i)},this.mousewheel=function(t,e,i){var o="jquery"in t?t[0]:t;if("onwheel"in a.createElement("div"))k._bind(o,"wheel",e,i||!1);else{var n=void 0!==a.onmousewheel?"mousewheel":"DOMMouseScroll";S(o,n,e,i||!1),"DOMMouseScroll"==n&&S(o,"MozMousePixelScroll",e,i||!1)}};var A=!1;if(L.haseventlistener){try{var H=Object.defineProperty({},"passive",{get:function(){A=!0}});l.addEventListener("test",null,H)}catch(t){}this.stopPropagation=function(t){return!!t&&((t=t.original?t.original:t).stopPropagation(),!1)},this.cancelEvent=function(t){return t.cancelable&&t.preventDefault(),t.stopImmediatePropagation(),t.preventManipulation&&t.preventManipulation(),!1}}else Event.prototype.preventDefault=function(){this.returnValue=!1},Event.prototype.stopPropagation=function(){this.cancelBubble=!0},l.constructor.prototype.addEventListener=a.constructor.prototype.addEventListener=Element.prototype.addEventListener=function(t,e,i){this.attachEvent("on"+t,e)},l.constructor.prototype.removeEventListener=a.constructor.prototype.removeEventListener=Element.prototype.removeEventListener=function(t,e,i){this.detachEvent("on"+t,e)},this.cancelEvent=function(t){return(t=t||l.event)&&(t.cancelBubble=!0,t.cancel=!0,t.returnValue=!1),!1},this.stopPropagation=function(t){return(t=t||l.event)&&(t.cancelBubble=!0),!1};this.delegate=function(t,e,i,o,n){var r=d[e]||!1;r||(r={a:[],l:[],f:function(t){for(var e=r.l,i=!1,o=e.length-1;o>=0;o--)if(!1===(i=e[o].call(t.target,t)))return!1;return i}},k.bind(t,e,r.f,o,n),d[e]=r),k.ispage?(r.a=[k.id].concat(r.a),r.l=[i].concat(r.l)):(r.a.push(k.id),r.l.push(i))},this.undelegate=function(t,e,i,o,n){var r=d[e]||!1;if(r&&r.l)for(var s=0,a=r.l.length;s<a;s++)r.a[s]===k.id&&(r.a.splice(s),r.l.splice(s),0===r.a.length&&(k._unbind(t,e,r.l.f),d[e]=null))},this.bind=function(t,e,i,o,n){var r="jquery"in t?t[0]:t;k._bind(r,e,i,o||!1,n||!1)},this._bind=function(t,e,i,o,n){k.events.push({e:t,n:e,f:i,b:o,q:!1}),A&&n?t.addEventListener(e,i,{passive:!1,capture:o}):t.addEventListener(e,i,o||!1)},this._unbind=function(t,e,i,o){d[e]?k.undelegate(t,e,i,o):t.removeEventListener(e,i,o)},this.unbindAll=function(){for(var t=0;t<k.events.length;t++){var e=k.events[t];e.q?e.e.unbind(e.n,e.f):k._unbind(e.e,e.n,e.f,e.b)}},this.showRails=function(){return k.showRail().showRailHr()},this.showRail=function(){return 0===k.page.maxh||!k.ispage&&"none"==k.win.css("display")||(k.rail.visibility=!0,k.rail.css("display","block")),k},this.showRailHr=function(){return k.railh&&(0===k.page.maxw||!k.ispage&&"none"==k.win.css("display")||(k.railh.visibility=!0,k.railh.css("display","block"))),k},this.hideRails=function(){return k.hideRail().hideRailHr()},this.hideRail=function(){return k.rail.visibility=!1,k.rail.css("display","none"),k},this.hideRailHr=function(){return k.railh&&(k.railh.visibility=!1,k.railh.css("display","none")),k},this.show=function(){return k.hidden=!1,k.railslocked=!1,k.showRails()},this.hide=function(){return k.hidden=!0,k.railslocked=!0,k.hideRails()},this.toggle=function(){return k.hidden?k.show():k.hide()},this.remove=function(){for(var t in k.stop(),k.cursortimeout&&clearTimeout(k.cursortimeout),k.delaylist)k.delaylist[t]&&p(k.delaylist[t].h);k.doZoomOut(),k.unbindAll(),L.isie9&&k.win[0].detachEvent("onpropertychange",k.onAttributeChange),!1!==k.observer&&k.observer.disconnect(),!1!==k.observerremover&&k.observerremover.disconnect(),!1!==k.observerbody&&k.observerbody.disconnect(),k.events=null,k.cursor&&k.cursor.remove(),k.cursorh&&k.cursorh.remove(),k.rail&&k.rail.remove(),k.railh&&k.railh.remove(),k.zoom&&k.zoom.remove();for(var e=0;e<k.saved.css.length;e++){var i=k.saved.css[e];i[0].css(i[1],void 0===i[2]?"":i[2])}k.saved=!1,k.me.data("__nicescroll","");var o=s.nicescroll;for(var n in o.each((function(t){if(this&&this.id===k.id){delete o[t];for(var e=++t;e<o.length;e++,t++)o[t]=o[e];--o.length&&delete o[o.length]}})),k)k[n]=null,delete k[n];k=null},this.scrollstart=function(t){return this.onscrollstart=t,k},this.scrollend=function(t){return this.onscrollend=t,k},this.scrollcancel=function(t){return this.onscrollcancel=t,k},this.zoomin=function(t){return this.onzoomin=t,k},this.zoomout=function(t){return this.onzoomout=t,k},this.isScrollable=function(t){var e=t.target?t.target:t;if("OPTION"==e.nodeName)return!0;for(;e&&1==e.nodeType&&e!==this.me[0]&&!/^BODY|HTML/.test(e.nodeName);){var i=s(e),o=i.css("overflowY")||i.css("overflowX")||i.css("overflow")||"";if(/scroll|auto/.test(o))return e.clientHeight!=e.scrollHeight;e=!!e.parentNode&&e.parentNode}return!1},this.getViewport=function(t){for(var e=!(!t||!t.parentNode)&&t.parentNode;e&&1==e.nodeType&&!/^BODY|HTML/.test(e.nodeName);){var i=s(e);if(/fixed|absolute/.test(i.css("position")))return i;var o=i.css("overflowY")||i.css("overflowX")||i.css("overflow")||"";if(/scroll|auto/.test(o)&&e.clientHeight!=e.scrollHeight)return i;if(i.getNiceScroll().length>0)return i;e=!!e.parentNode&&e.parentNode}return!1},this.triggerScrollStart=function(t,e,i,o,n){if(k.onscrollstart){var r={type:"scrollstart",current:{x:t,y:e},request:{x:i,y:o},end:{x:k.newscrollx,y:k.newscrolly},speed:n};k.onscrollstart.call(k,r)}},this.triggerScrollEnd=function(){if(k.onscrollend){var t=k.getScrollLeft(),e=k.getScrollTop(),i={type:"scrollend",current:{x:t,y:e},end:{x:t,y:e}};k.onscrollend.call(k,i)}};var W=0,j=0,R=0,D=1,Y=!1;if(this.onmousewheel=function(t){if(k.wheelprevented||k.locked)return!1;if(k.railslocked)return k.debounced("checkunlock",k.resize,250),!1;if(k.rail.drag)return k.cancelEvent(t);if("auto"===z.oneaxismousemode&&0!==t.deltaX&&(z.oneaxismousemode=!1),z.oneaxismousemode&&0===t.deltaX&&!k.rail.scrollable)return!k.railh||!k.railh.scrollable||k.onmousewheelhr(t);var e=m(),i=!1;if(z.preservenativescrolling&&k.checkarea+600<e&&(k.nativescrollingarea=k.isScrollable(t),i=!0),k.checkarea=e,k.nativescrollingarea)return!0;var o=T(t,!1,i);return o&&(k.checkarea=0),o},this.onmousewheelhr=function(t){if(!k.wheelprevented){if(k.railslocked||!k.railh.scrollable)return!0;if(k.rail.drag)return k.cancelEvent(t);var e=m(),i=!1;return z.preservenativescrolling&&k.checkarea+600<e&&(k.nativescrollingarea=k.isScrollable(t),i=!0),k.checkarea=e,!!k.nativescrollingarea||(k.railslocked?k.cancelEvent(t):T(t,!0,i))}},this.stop=function(){return k.cancelScroll(),k.scrollmon&&k.scrollmon.stop(),k.cursorfreezed=!1,k.scroll.y=Math.round(k.getScrollTop()*(1/k.scrollratio.y)),k.noticeCursor(),k},this.getTransitionSpeed=function(t){return 80+t/72*z.scrollspeed|0},z.smoothscroll)if(k.ishwscroll&&L.hastransition&&z.usetransition&&z.smoothscroll){var B="";this.resetTransition=function(){B="",k.doc.css(L.prefixstyle+"transition-duration","0ms")},this.prepareTransition=function(t,e){var i=e?t:k.getTransitionSpeed(t),o=i+"ms";return B!==o&&(B=o,k.doc.css(L.prefixstyle+"transition-duration",o)),i},this.doScrollLeft=function(t,e){var i=k.scrollrunning?k.newscrolly:k.getScrollTop();k.doScrollPos(t,i,e)},this.doScrollTop=function(t,e){var i=k.scrollrunning?k.newscrollx:k.getScrollLeft();k.doScrollPos(i,t,e)},this.cursorupdate={running:!1,start:function(){var t=this;if(!t.running){t.running=!0;var e=function(){t.running&&u(e),k.showCursor(k.getScrollTop(),k.getScrollLeft()),k.notifyScrollEvent(k.win[0])};u(e)}},stop:function(){this.running=!1}},this.doScrollPos=function(t,e,i){var o=k.getScrollTop(),n=k.getScrollLeft();if(((k.newscrolly-o)*(e-o)<0||(k.newscrollx-n)*(t-n)<0)&&k.cancelScroll(),z.bouncescroll?(e<0?e=e/2|0:e>k.page.maxh&&(e=k.page.maxh+(e-k.page.maxh)/2|0),t<0?t=t/2|0:t>k.page.maxw&&(t=k.page.maxw+(t-k.page.maxw)/2|0)):(e<0?e=0:e>k.page.maxh&&(e=k.page.maxh),t<0?t=0:t>k.page.maxw&&(t=k.page.maxw)),k.scrollrunning&&t==k.newscrollx&&e==k.newscrolly)return!1;k.newscrolly=e,k.newscrollx=t;var r=k.getScrollTop(),s=k.getScrollLeft(),a={};a.x=t-s,a.y=e-r;var l=0|Math.sqrt(a.x*a.x+a.y*a.y),c=k.prepareTransition(l);k.scrollrunning||(k.scrollrunning=!0,k.triggerScrollStart(s,r,t,e,c),k.cursorupdate.start()),k.scrollendtrapped=!0,L.transitionend||(k.scrollendtrapped&&clearTimeout(k.scrollendtrapped),k.scrollendtrapped=setTimeout(k.onScrollTransitionEnd,c)),k.setScrollTop(k.newscrolly),k.setScrollLeft(k.newscrollx)},this.cancelScroll=function(){if(!k.scrollendtrapped)return!0;var t=k.getScrollTop(),e=k.getScrollLeft();return k.scrollrunning=!1,L.transitionend||clearTimeout(L.transitionend),k.scrollendtrapped=!1,k.resetTransition(),k.setScrollTop(t),k.railh&&k.setScrollLeft(e),k.timerscroll&&k.timerscroll.tm&&clearInterval(k.timerscroll.tm),k.timerscroll=!1,k.cursorfreezed=!1,k.cursorupdate.stop(),k.showCursor(t,e),k},this.onScrollTransitionEnd=function(){if(k.scrollendtrapped){var t=k.getScrollTop(),e=k.getScrollLeft();if(t<0?t=0:t>k.page.maxh&&(t=k.page.maxh),e<0?e=0:e>k.page.maxw&&(e=k.page.maxw),t!=k.newscrolly||e!=k.newscrollx)return k.doScrollPos(e,t,z.snapbackspeed);k.scrollrunning&&k.triggerScrollEnd(),k.scrollrunning=!1,k.scrollendtrapped=!1,k.resetTransition(),k.timerscroll=!1,k.setScrollTop(t),k.railh&&k.setScrollLeft(e),k.cursorupdate.stop(),k.noticeCursor(!1,t,e),k.cursorfreezed=!1}}}else this.doScrollLeft=function(t,e){var i=k.scrollrunning?k.newscrolly:k.getScrollTop();k.doScrollPos(t,i,e)},this.doScrollTop=function(t,e){var i=k.scrollrunning?k.newscrollx:k.getScrollLeft();k.doScrollPos(i,t,e)},this.doScrollPos=function(t,e,i){var o=k.getScrollTop(),n=k.getScrollLeft();((k.newscrolly-o)*(e-o)<0||(k.newscrollx-n)*(t-n)<0)&&k.cancelScroll();var r=!1;if(k.bouncescroll&&k.rail.visibility||(e<0?(e=0,r=!0):e>k.page.maxh&&(e=k.page.maxh,r=!0)),k.bouncescroll&&k.railh.visibility||(t<0?(t=0,r=!0):t>k.page.maxw&&(t=k.page.maxw,r=!0)),k.scrollrunning&&k.newscrolly===e&&k.newscrollx===t)return!0;k.newscrolly=e,k.newscrollx=t,k.dst={},k.dst.x=t-n,k.dst.y=e-o,k.dst.px=n,k.dst.py=o;var s=0|Math.sqrt(k.dst.x*k.dst.x+k.dst.y*k.dst.y),a=k.getTransitionSpeed(s);k.bzscroll={};var l=r?1:.58;k.bzscroll.x=new O(n,k.newscrollx,a,0,0,l,1),k.bzscroll.y=new O(o,k.newscrolly,a,0,0,l,1),m();var c=function(){if(k.scrollrunning){var t=k.bzscroll.y.getPos();k.setScrollLeft(k.bzscroll.x.getNow()),k.setScrollTop(k.bzscroll.y.getNow()),t<=1?k.timer=u(c):(k.scrollrunning=!1,k.timer=0,k.triggerScrollEnd())}};k.scrollrunning||(k.triggerScrollStart(n,o,t,e,a),k.scrollrunning=!0,k.timer=u(c))},this.cancelScroll=function(){return k.timer&&p(k.timer),k.timer=0,k.bzscroll=!1,k.scrollrunning=!1,k};else this.doScrollLeft=function(t,e){var i=k.getScrollTop();k.doScrollPos(t,i,e)},this.doScrollTop=function(t,e){var i=k.getScrollLeft();k.doScrollPos(i,t,e)},this.doScrollPos=function(t,e,i){var o=t>k.page.maxw?k.page.maxw:t;o<0&&(o=0);var n=e>k.page.maxh?k.page.maxh:e;n<0&&(n=0),k.synched("scroll",(function(){k.setScrollTop(n),k.setScrollLeft(o)}))},this.cancelScroll=function(){};this.doScrollBy=function(t,e){x(0,t)},this.doScrollLeftBy=function(t,e){x(t,0)},this.doScrollTo=function(t,e){var i=e?Math.round(t*k.scrollratio.y):t;i<0?i=0:i>k.page.maxh&&(i=k.page.maxh),k.cursorfreezed=!1,k.doScrollTop(t)},this.checkContentSize=function(){var t=k.getContentSize();t.h==k.page.h&&t.w==k.page.w||k.resize(!1,t)},k.onscroll=function(t){k.rail.drag||k.cursorfreezed||k.synched("scroll",(function(){k.scroll.y=Math.round(k.getScrollTop()/k.scrollratio.y),k.railh&&(k.scroll.x=Math.round(k.getScrollLeft()/k.scrollratio.x)),k.noticeCursor()}))},k.bind(k.docscroll,"scroll",k.onscroll),this.doZoomIn=function(t){if(!k.zoomactive){k.zoomactive=!0,k.zoomrestore={style:{}};var e=["position","top","left","zIndex","backgroundColor","marginTop","marginBottom","marginLeft","marginRight"],i=k.win[0].style;for(var o in e){var n=e[o];k.zoomrestore.style[n]=void 0!==i[n]?i[n]:""}k.zoomrestore.style.width=k.win.css("width"),k.zoomrestore.style.height=k.win.css("height"),k.zoomrestore.padding={w:k.win.outerWidth()-k.win.width(),h:k.win.outerHeight()-k.win.height()},L.isios4&&(k.zoomrestore.scrollTop=c.scrollTop(),c.scrollTop(0)),k.win.css({position:L.isios4?"absolute":"fixed",top:0,left:0,zIndex:r+100,margin:0});var s=k.win.css("backgroundColor");return(""===s||/transparent|rgba\(0, 0, 0, 0\)|rgba\(0,0,0,0\)/.test(s))&&k.win.css("backgroundColor","#fff"),k.rail.css({zIndex:r+101}),k.zoom.css({zIndex:r+102}),k.zoom.css("backgroundPosition","0 -18px"),k.resizeZoom(),k.onzoomin&&k.onzoomin.call(k),k.cancelEvent(t)}},this.doZoomOut=function(t){if(k.zoomactive)return k.zoomactive=!1,k.win.css("margin",""),k.win.css(k.zoomrestore.style),L.isios4&&c.scrollTop(k.zoomrestore.scrollTop),k.rail.css({"z-index":k.zindex}),k.zoom.css({"z-index":k.zindex}),k.zoomrestore=!1,k.zoom.css("backgroundPosition","0 0"),k.onResize(),k.onzoomout&&k.onzoomout.call(k),k.cancelEvent(t)},this.doZoom=function(t){return k.zoomactive?k.doZoomOut(t):k.doZoomIn(t)},this.resizeZoom=function(){if(k.zoomactive){var t=k.getScrollTop();k.win.css({width:c.width()-k.zoomrestore.padding.w+"px",height:c.height()-k.zoomrestore.padding.h+"px"}),k.onResize(),k.setScrollTop(Math.min(k.page.maxh,t))}},this.init(),s.nicescroll.push(this)},b=function(t){var e=this;this.nc=t,this.lastx=0,this.lasty=0,this.speedx=0,this.speedy=0,this.lasttime=0,this.steptime=0,this.snapx=!1,this.snapy=!1,this.demulx=0,this.demuly=0,this.lastscrollx=-1,this.lastscrolly=-1,this.chkx=0,this.chky=0,this.timer=0,this.reset=function(t,i){e.stop(),e.steptime=0,e.lasttime=m(),e.speedx=0,e.speedy=0,e.lastx=t,e.lasty=i,e.lastscrollx=-1,e.lastscrolly=-1},this.update=function(t,i){var o=m();e.steptime=o-e.lasttime,e.lasttime=o;var n=i-e.lasty,r=t-e.lastx,s=e.nc.getScrollTop()+n,a=e.nc.getScrollLeft()+r;e.snapx=a<0||a>e.nc.page.maxw,e.snapy=s<0||s>e.nc.page.maxh,e.speedx=r,e.speedy=n,e.lastx=t,e.lasty=i},this.stop=function(){e.nc.unsynched("domomentum2d"),e.timer&&clearTimeout(e.timer),e.timer=0,e.lastscrollx=-1,e.lastscrolly=-1},this.doSnapy=function(t,i){var o=!1;i<0?(i=0,o=!0):i>e.nc.page.maxh&&(i=e.nc.page.maxh,o=!0),t<0?(t=0,o=!0):t>e.nc.page.maxw&&(t=e.nc.page.maxw,o=!0),o?e.nc.doScrollPos(t,i,e.nc.opt.snapbackspeed):e.nc.triggerScrollEnd()},this.doMomentum=function(t){var i=m(),o=t?i+t:e.lasttime,n=e.nc.getScrollLeft(),r=e.nc.getScrollTop(),s=e.nc.page.maxh,a=e.nc.page.maxw;e.speedx=a>0?Math.min(60,e.speedx):0,e.speedy=s>0?Math.min(60,e.speedy):0;var l=o&&i-o<=60;(r<0||r>s||n<0||n>a)&&(l=!1);var c=!(!e.speedy||!l)&&e.speedy,d=!(!e.speedx||!l)&&e.speedx;if(c||d){var u=Math.max(16,e.steptime);if(u>50){var p=u/50;e.speedx*=p,e.speedy*=p,u=50}e.demulxy=0,e.lastscrollx=e.nc.getScrollLeft(),e.chkx=e.lastscrollx,e.lastscrolly=e.nc.getScrollTop(),e.chky=e.lastscrolly;var h=e.lastscrollx,f=e.lastscrolly,g=function(){var t=m()-i>600?.04:.02;e.speedx&&(h=Math.floor(e.lastscrollx-e.speedx*(1-e.demulxy)),e.lastscrollx=h,(h<0||h>a)&&(t=.1)),e.speedy&&(f=Math.floor(e.lastscrolly-e.speedy*(1-e.demulxy)),e.lastscrolly=f,(f<0||f>s)&&(t=.1)),e.demulxy=Math.min(1,e.demulxy+t),e.nc.synched("domomentum2d",(function(){e.speedx&&(e.nc.getScrollLeft(),e.chkx=h,e.nc.setScrollLeft(h)),e.speedy&&(e.nc.getScrollTop(),e.chky=f,e.nc.setScrollTop(f)),e.timer||(e.nc.hideCursor(),e.doSnapy(h,f))})),e.demulxy<1?e.timer=setTimeout(g,u):(e.stop(),e.nc.hideCursor(),e.doSnapy(h,f))};g()}else e.doSnapy(e.nc.getScrollLeft(),e.nc.getScrollTop())}},S=t.fn.scrollTop;t.cssHooks.pageYOffset={get:function(t,e,i){var o=s.data(t,"__nicescroll")||!1;return o&&o.ishwscroll?o.getScrollTop():S.call(t)},set:function(t,e){var i=s.data(t,"__nicescroll")||!1;return i&&i.ishwscroll?i.setScrollTop(parseInt(e)):S.call(t,e),this}},t.fn.scrollTop=function(t){if(void 0===t){var e=!!this[0]&&(s.data(this[0],"__nicescroll")||!1);return e&&e.ishwscroll?e.getScrollTop():S.call(this)}return this.each((function(){var e=s.data(this,"__nicescroll")||!1;e&&e.ishwscroll?e.setScrollTop(parseInt(t)):S.call(s(this),t)}))};var x=t.fn.scrollLeft;s.cssHooks.pageXOffset={get:function(t,e,i){var o=s.data(t,"__nicescroll")||!1;return o&&o.ishwscroll?o.getScrollLeft():x.call(t)},set:function(t,e){var i=s.data(t,"__nicescroll")||!1;return i&&i.ishwscroll?i.setScrollLeft(parseInt(e)):x.call(t,e),this}},t.fn.scrollLeft=function(t){if(void 0===t){var e=!!this[0]&&(s.data(this[0],"__nicescroll")||!1);return e&&e.ishwscroll?e.getScrollLeft():x.call(this)}return this.each((function(){var e=s.data(this,"__nicescroll")||!1;e&&e.ishwscroll?e.setScrollLeft(parseInt(t)):x.call(s(this),t)}))};var T=function(t){var e=this;if(this.length=0,this.name="nicescrollarray",this.each=function(t){return s.each(e,t),e},this.push=function(t){e[e.length]=t,e.length++},this.eq=function(t){return e[t]},t)for(var i=0;i<t.length;i++){var o=s.data(t[i],"__nicescroll")||!1;o&&(this[this.length]=o,this.length++)}return this};!function(t,e,i){for(var o=0,n=e.length;o<n;o++)i(t,e[o])}(T.prototype,["show","hide","toggle","onResize","resize","remove","stop","doScrollPos"],(function(t,e){t[e]=function(){var t=arguments;return this.each((function(){this[e].apply(this,t)}))}})),t.fn.getNiceScroll=function(t){return void 0===t?new T(this):this[t]&&s.data(this[t],"__nicescroll")||!1},(t.expr.pseudos||t.expr[":"]).nicescroll=function(t){return void 0!==s.data(t,"__nicescroll")},s.fn.niceScroll=function(t,e){void 0!==e||"object"!=typeof t||"jquery"in t||(e=t,t=!1);var i=new T;return this.each((function(){var o=s(this),n=s.extend({},e);if(t){var r=s(t);n.doc=r.length>1?s(t,o):r,n.win=o}!("doc"in n)||"win"in n||(n.win=o);var a=o.data("__nicescroll")||!1;a||(n.doc=n.doc||o,a=new w(n,o),o.data("__nicescroll",a)),i.push(a)})),1===i.length?i[0]:i},l.NiceScroll={getjQuery:function(){return t}},s.nicescroll||(s.nicescroll=new T,s.nicescroll.options=g)})),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof exports?module.exports=t(require("jquery")):t(jQuery)}((function(t){"use strict";var e=window.Slick||{};(e=function(){var e=0;return function(i,o){var n,r=this;r.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:t(i),appendDots:t(i),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,i){return t('<button type="button" />').text(i+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},r.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},t.extend(r,r.initials),r.activeBreakpoint=null,r.animType=null,r.animProp=null,r.breakpoints=[],r.breakpointSettings=[],r.cssTransitions=!1,r.focussed=!1,r.interrupted=!1,r.hidden="hidden",r.paused=!0,r.positionProp=null,r.respondTo=null,r.rowCount=1,r.shouldClick=!0,r.$slider=t(i),r.$slidesCache=null,r.transformType=null,r.transitionType=null,r.visibilityChange="visibilitychange",r.windowWidth=0,r.windowTimer=null,n=t(i).data("slick")||{},r.options=t.extend({},r.defaults,o,n),r.currentSlide=r.options.initialSlide,r.originalSettings=r.options,void 0!==document.mozHidden?(r.hidden="mozHidden",r.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(r.hidden="webkitHidden",r.visibilityChange="webkitvisibilitychange"),r.autoPlay=t.proxy(r.autoPlay,r),r.autoPlayClear=t.proxy(r.autoPlayClear,r),r.autoPlayIterator=t.proxy(r.autoPlayIterator,r),r.changeSlide=t.proxy(r.changeSlide,r),r.clickHandler=t.proxy(r.clickHandler,r),r.selectHandler=t.proxy(r.selectHandler,r),r.setPosition=t.proxy(r.setPosition,r),r.swipeHandler=t.proxy(r.swipeHandler,r),r.dragHandler=t.proxy(r.dragHandler,r),r.keyHandler=t.proxy(r.keyHandler,r),r.instanceUid=e++,r.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,r.registerBreakpoints(),r.init(!0)}}()).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},e.prototype.addSlide=e.prototype.slickAdd=function(e,i,o){var n=this;if("boolean"==typeof i)o=i,i=null;else if(i<0||i>=n.slideCount)return!1;n.unload(),"number"==typeof i?0===i&&0===n.$slides.length?t(e).appendTo(n.$slideTrack):o?t(e).insertBefore(n.$slides.eq(i)):t(e).insertAfter(n.$slides.eq(i)):!0===o?t(e).prependTo(n.$slideTrack):t(e).appendTo(n.$slideTrack),n.$slides=n.$slideTrack.children(this.options.slide),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.append(n.$slides),n.$slides.each((function(e,i){t(i).attr("data-slick-index",e)})),n.$slidesCache=n.$slides,n.reinit()},e.prototype.animateHeight=function(){var t=this;if(1===t.options.slidesToShow&&!0===t.options.adaptiveHeight&&!1===t.options.vertical){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.animate({height:e},t.options.speed)}},e.prototype.animateSlide=function(e,i){var o={},n=this;n.animateHeight(),!0===n.options.rtl&&!1===n.options.vertical&&(e=-e),!1===n.transformsEnabled?!1===n.options.vertical?n.$slideTrack.animate({left:e},n.options.speed,n.options.easing,i):n.$slideTrack.animate({top:e},n.options.speed,n.options.easing,i):!1===n.cssTransitions?(!0===n.options.rtl&&(n.currentLeft=-n.currentLeft),t({animStart:n.currentLeft}).animate({animStart:e},{duration:n.options.speed,easing:n.options.easing,step:function(t){t=Math.ceil(t),!1===n.options.vertical?(o[n.animType]="translate("+t+"px, 0px)",n.$slideTrack.css(o)):(o[n.animType]="translate(0px,"+t+"px)",n.$slideTrack.css(o))},complete:function(){i&&i.call()}})):(n.applyTransition(),e=Math.ceil(e),!1===n.options.vertical?o[n.animType]="translate3d("+e+"px, 0px, 0px)":o[n.animType]="translate3d(0px,"+e+"px, 0px)",n.$slideTrack.css(o),i&&setTimeout((function(){n.disableTransition(),i.call()}),n.options.speed))},e.prototype.getNavTarget=function(){var e=this.options.asNavFor;return e&&null!==e&&(e=t(e).not(this.$slider)),e},e.prototype.asNavFor=function(e){var i=this.getNavTarget();null!==i&&"object"==typeof i&&i.each((function(){var i=t(this).slick("getSlick");i.unslicked||i.slideHandler(e,!0)}))},e.prototype.applyTransition=function(t){var e=this,i={};!1===e.options.fade?i[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:i[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,!1===e.options.fade?e.$slideTrack.css(i):e.$slides.eq(t).css(i)},e.prototype.autoPlay=function(){var t=this;t.autoPlayClear(),t.slideCount>t.options.slidesToShow&&(t.autoPlayTimer=setInterval(t.autoPlayIterator,t.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var t=this,e=t.currentSlide+t.options.slidesToScroll;t.paused||t.interrupted||t.focussed||(!1===t.options.infinite&&(1===t.direction&&t.currentSlide+1===t.slideCount-1?t.direction=0:0===t.direction&&(e=t.currentSlide-t.options.slidesToScroll,t.currentSlide-1==0&&(t.direction=1))),t.slideHandler(e))},e.prototype.buildArrows=function(){var e=this;!0===e.options.arrows&&(e.$prevArrow=t(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=t(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),!0!==e.options.infinite&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},e.prototype.buildDots=function(){var e,i,o=this;if(!0===o.options.dots&&o.slideCount>o.options.slidesToShow){for(o.$slider.addClass("slick-dotted"),i=t("<ul />").addClass(o.options.dotsClass),e=0;e<=o.getDotCount();e+=1)i.append(t("<li />").append(o.options.customPaging.call(this,o,e)));o.$dots=i.appendTo(o.options.appendDots),o.$dots.find("li").first().addClass("slick-active")}},e.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each((function(e,i){t(i).attr("data-slick-index",e).data("originalStyling",t(i).attr("style")||"")})),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?t('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),!0!==e.options.centerMode&&!0!==e.options.swipeToSlide||(e.options.slidesToScroll=1),t("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),!0===e.options.draggable&&e.$list.addClass("draggable")},e.prototype.buildRows=function(){var t,e,i,o,n,r,s,a=this;if(o=document.createDocumentFragment(),r=a.$slider.children(),a.options.rows>0){for(s=a.options.slidesPerRow*a.options.rows,n=Math.ceil(r.length/s),t=0;t<n;t++){var l=document.createElement("div");for(e=0;e<a.options.rows;e++){var c=document.createElement("div");for(i=0;i<a.options.slidesPerRow;i++){var d=t*s+(e*a.options.slidesPerRow+i);r.get(d)&&c.appendChild(r.get(d))}l.appendChild(c)}o.appendChild(l)}a.$slider.empty().append(o),a.$slider.children().children().children().css({width:100/a.options.slidesPerRow+"%",display:"inline-block"})}},e.prototype.checkResponsive=function(e,i){var o,n,r,s=this,a=!1,l=s.$slider.width(),c=window.innerWidth||t(window).width();if("window"===s.respondTo?r=c:"slider"===s.respondTo?r=l:"min"===s.respondTo&&(r=Math.min(c,l)),s.options.responsive&&s.options.responsive.length&&null!==s.options.responsive){for(o in n=null,s.breakpoints)s.breakpoints.hasOwnProperty(o)&&(!1===s.originalSettings.mobileFirst?r<s.breakpoints[o]&&(n=s.breakpoints[o]):r>s.breakpoints[o]&&(n=s.breakpoints[o]));null!==n?null!==s.activeBreakpoint?(n!==s.activeBreakpoint||i)&&(s.activeBreakpoint=n,"unslick"===s.breakpointSettings[n]?s.unslick(n):(s.options=t.extend({},s.originalSettings,s.breakpointSettings[n]),!0===e&&(s.currentSlide=s.options.initialSlide),s.refresh(e)),a=n):(s.activeBreakpoint=n,"unslick"===s.breakpointSettings[n]?s.unslick(n):(s.options=t.extend({},s.originalSettings,s.breakpointSettings[n]),!0===e&&(s.currentSlide=s.options.initialSlide),s.refresh(e)),a=n):null!==s.activeBreakpoint&&(s.activeBreakpoint=null,s.options=s.originalSettings,!0===e&&(s.currentSlide=s.options.initialSlide),s.refresh(e),a=n),e||!1===a||s.$slider.trigger("breakpoint",[s,a])}},e.prototype.changeSlide=function(e,i){var o,n,r=this,s=t(e.currentTarget);switch(s.is("a")&&e.preventDefault(),s.is("li")||(s=s.closest("li")),o=r.slideCount%r.options.slidesToScroll!=0?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll,e.data.message){case"previous":n=0===o?r.options.slidesToScroll:r.options.slidesToShow-o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-n,!1,i);break;case"next":n=0===o?r.options.slidesToScroll:o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+n,!1,i);break;case"index":var a=0===e.data.index?0:e.data.index||s.index()*r.options.slidesToScroll;r.slideHandler(r.checkNavigable(a),!1,i),s.children().trigger("focus");break;default:return}},e.prototype.checkNavigable=function(t){var e,i;if(i=0,t>(e=this.getNavigableIndexes())[e.length-1])t=e[e.length-1];else for(var o in e){if(t<e[o]){t=i;break}i=e[o]}return t},e.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&(t("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",t.proxy(e.interrupt,e,!0)).off("mouseleave.slick",t.proxy(e.interrupt,e,!1)),!0===e.options.accessibility&&e.$dots.off("keydown.slick",e.keyHandler)),e.$slider.off("focus.slick blur.slick"),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide),!0===e.options.accessibility&&(e.$prevArrow&&e.$prevArrow.off("keydown.slick",e.keyHandler),e.$nextArrow&&e.$nextArrow.off("keydown.slick",e.keyHandler))),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),t(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),!0===e.options.accessibility&&e.$list.off("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&t(e.$slideTrack).children().off("click.slick",e.selectHandler),t(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),t(window).off("resize.slick.slick-"+e.instanceUid,e.resize),t("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),t(window).off("load.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",t.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",t.proxy(e.interrupt,e,!1))},e.prototype.cleanUpRows=function(){var t,e=this;e.options.rows>0&&((t=e.$slides.children().children()).removeAttr("style"),e.$slider.empty().append(t))},e.prototype.clickHandler=function(t){!1===this.shouldClick&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault())},e.prototype.destroy=function(e){var i=this;i.autoPlayClear(),i.touchObject={},i.cleanUpEvents(),t(".slick-cloned",i.$slider).detach(),i.$dots&&i.$dots.remove(),i.$prevArrow&&i.$prevArrow.length&&(i.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.prevArrow)&&i.$prevArrow.remove()),i.$nextArrow&&i.$nextArrow.length&&(i.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.nextArrow)&&i.$nextArrow.remove()),i.$slides&&(i.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each((function(){t(this).attr("style",t(this).data("originalStyling"))})),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.detach(),i.$list.detach(),i.$slider.append(i.$slides)),i.cleanUpRows(),i.$slider.removeClass("slick-slider"),i.$slider.removeClass("slick-initialized"),i.$slider.removeClass("slick-dotted"),i.unslicked=!0,e||i.$slider.trigger("destroy",[i])},e.prototype.disableTransition=function(t){var e=this,i={};i[e.transitionType]="",!1===e.options.fade?e.$slideTrack.css(i):e.$slides.eq(t).css(i)},e.prototype.fadeSlide=function(t,e){var i=this;!1===i.cssTransitions?(i.$slides.eq(t).css({zIndex:i.options.zIndex}),i.$slides.eq(t).animate({opacity:1},i.options.speed,i.options.easing,e)):(i.applyTransition(t),i.$slides.eq(t).css({opacity:1,zIndex:i.options.zIndex}),e&&setTimeout((function(){i.disableTransition(t),e.call()}),i.options.speed))},e.prototype.fadeSlideOut=function(t){var e=this;!1===e.cssTransitions?e.$slides.eq(t).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(t),e.$slides.eq(t).css({opacity:0,zIndex:e.options.zIndex-2}))},e.prototype.filterSlides=e.prototype.slickFilter=function(t){var e=this;null!==t&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(t).appendTo(e.$slideTrack),e.reinit())},e.prototype.focusHandler=function(){var e=this;e.$slider.off("focus.slick blur.slick").on("focus.slick","*",(function(i){var o=t(this);setTimeout((function(){e.options.pauseOnFocus&&o.is(":focus")&&(e.focussed=!0,e.autoPlay())}),0)})).on("blur.slick","*",(function(i){t(this),e.options.pauseOnFocus&&(e.focussed=!1,e.autoPlay())}))},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){return this.currentSlide},e.prototype.getDotCount=function(){var t=this,e=0,i=0,o=0;if(!0===t.options.infinite)if(t.slideCount<=t.options.slidesToShow)++o;else for(;e<t.slideCount;)++o,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else if(!0===t.options.centerMode)o=t.slideCount;else if(t.options.asNavFor)for(;e<t.slideCount;)++o,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else o=1+Math.ceil((t.slideCount-t.options.slidesToShow)/t.options.slidesToScroll);return o-1},e.prototype.getLeft=function(t){var e,i,o,n,r=this,s=0;return r.slideOffset=0,i=r.$slides.first().outerHeight(!0),!0===r.options.infinite?(r.slideCount>r.options.slidesToShow&&(r.slideOffset=r.slideWidth*r.options.slidesToShow*-1,n=-1,!0===r.options.vertical&&!0===r.options.centerMode&&(2===r.options.slidesToShow?n=-1.5:1===r.options.slidesToShow&&(n=-2)),s=i*r.options.slidesToShow*n),r.slideCount%r.options.slidesToScroll!=0&&t+r.options.slidesToScroll>r.slideCount&&r.slideCount>r.options.slidesToShow&&(t>r.slideCount?(r.slideOffset=(r.options.slidesToShow-(t-r.slideCount))*r.slideWidth*-1,s=(r.options.slidesToShow-(t-r.slideCount))*i*-1):(r.slideOffset=r.slideCount%r.options.slidesToScroll*r.slideWidth*-1,s=r.slideCount%r.options.slidesToScroll*i*-1))):t+r.options.slidesToShow>r.slideCount&&(r.slideOffset=(t+r.options.slidesToShow-r.slideCount)*r.slideWidth,s=(t+r.options.slidesToShow-r.slideCount)*i),r.slideCount<=r.options.slidesToShow&&(r.slideOffset=0,s=0),!0===r.options.centerMode&&r.slideCount<=r.options.slidesToShow?r.slideOffset=r.slideWidth*Math.floor(r.options.slidesToShow)/2-r.slideWidth*r.slideCount/2:!0===r.options.centerMode&&!0===r.options.infinite?r.slideOffset+=r.slideWidth*Math.floor(r.options.slidesToShow/2)-r.slideWidth:!0===r.options.centerMode&&(r.slideOffset=0,r.slideOffset+=r.slideWidth*Math.floor(r.options.slidesToShow/2)),e=!1===r.options.vertical?t*r.slideWidth*-1+r.slideOffset:t*i*-1+s,!0===r.options.variableWidth&&(o=r.slideCount<=r.options.slidesToShow||!1===r.options.infinite?r.$slideTrack.children(".slick-slide").eq(t):r.$slideTrack.children(".slick-slide").eq(t+r.options.slidesToShow),e=!0===r.options.rtl?o[0]?-1*(r.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,!0===r.options.centerMode&&(o=r.slideCount<=r.options.slidesToShow||!1===r.options.infinite?r.$slideTrack.children(".slick-slide").eq(t):r.$slideTrack.children(".slick-slide").eq(t+r.options.slidesToShow+1),e=!0===r.options.rtl?o[0]?-1*(r.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,e+=(r.$list.width()-o.outerWidth())/2)),e},e.prototype.getOption=e.prototype.slickGetOption=function(t){return this.options[t]},e.prototype.getNavigableIndexes=function(){var t,e=this,i=0,o=0,n=[];for(!1===e.options.infinite?t=e.slideCount:(i=-1*e.options.slidesToScroll,o=-1*e.options.slidesToScroll,t=2*e.slideCount);i<t;)n.push(i),i=o+e.options.slidesToScroll,o+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return n},e.prototype.getSlick=function(){return this},e.prototype.getSlideCount=function(){var e,i,o,n=this;return o=!0===n.options.centerMode?Math.floor(n.$list.width()/2):0,i=-1*n.swipeLeft+o,!0===n.options.swipeToSlide?(n.$slideTrack.find(".slick-slide").each((function(o,r){var s,a;if(s=t(r).outerWidth(),a=r.offsetLeft,!0!==n.options.centerMode&&(a+=s/2),i<a+s)return e=r,!1})),Math.abs(t(e).attr("data-slick-index")-n.currentSlide)||1):n.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(t,e){this.changeSlide({data:{message:"index",index:parseInt(t)}},e)},e.prototype.init=function(e){var i=this;t(i.$slider).hasClass("slick-initialized")||(t(i.$slider).addClass("slick-initialized"),i.buildRows(),i.buildOut(),i.setProps(),i.startLoad(),i.loadSlider(),i.initializeEvents(),i.updateArrows(),i.updateDots(),i.checkResponsive(!0),i.focusHandler()),e&&i.$slider.trigger("init",[i]),!0===i.options.accessibility&&i.initADA(),i.options.autoplay&&(i.paused=!1,i.autoPlay())},e.prototype.initADA=function(){var e=this,i=Math.ceil(e.slideCount/e.options.slidesToShow),o=e.getNavigableIndexes().filter((function(t){return t>=0&&t<e.slideCount}));e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==e.$dots&&(e.$slides.not(e.$slideTrack.find(".slick-cloned")).each((function(i){var n=o.indexOf(i);if(t(this).attr({role:"tabpanel",id:"slick-slide"+e.instanceUid+i,tabindex:-1}),-1!==n){var r="slick-slide-control"+e.instanceUid+n;t("#"+r).length&&t(this).attr({"aria-describedby":r})}})),e.$dots.attr("role","tablist").find("li").each((function(n){var r=o[n];t(this).attr({role:"presentation"}),t(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+e.instanceUid+n,"aria-controls":"slick-slide"+e.instanceUid+r,"aria-label":n+1+" of "+i,"aria-selected":null,tabindex:"-1"})})).eq(e.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var n=e.currentSlide,r=n+e.options.slidesToShow;n<r;n++)e.options.focusOnChange?e.$slides.eq(n).attr({tabindex:"0"}):e.$slides.eq(n).removeAttr("tabindex");e.activateADA()},e.prototype.initArrowEvents=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},t.changeSlide),t.$nextArrow.off("click.slick").on("click.slick",{message:"next"},t.changeSlide),!0===t.options.accessibility&&(t.$prevArrow.on("keydown.slick",t.keyHandler),t.$nextArrow.on("keydown.slick",t.keyHandler)))},e.prototype.initDotEvents=function(){var e=this;!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&(t("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),!0===e.options.accessibility&&e.$dots.on("keydown.slick",e.keyHandler)),!0===e.options.dots&&!0===e.options.pauseOnDotsHover&&e.slideCount>e.options.slidesToShow&&t("li",e.$dots).on("mouseenter.slick",t.proxy(e.interrupt,e,!0)).on("mouseleave.slick",t.proxy(e.interrupt,e,!1))},e.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",t.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",t.proxy(e.interrupt,e,!1)))},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"},e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),t(document).on(e.visibilityChange,t.proxy(e.visibility,e)),!0===e.options.accessibility&&e.$list.on("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&t(e.$slideTrack).children().on("click.slick",e.selectHandler),t(window).on("orientationchange.slick.slick-"+e.instanceUid,t.proxy(e.orientationChange,e)),t(window).on("resize.slick.slick-"+e.instanceUid,t.proxy(e.resize,e)),t("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),t(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),t(e.setPosition)},e.prototype.initUI=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.show(),t.$nextArrow.show()),!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&t.$dots.show()},e.prototype.keyHandler=function(t){var e=this;t.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===t.keyCode&&!0===e.options.accessibility?e.changeSlide({data:{message:!0===e.options.rtl?"next":"previous"}}):39===t.keyCode&&!0===e.options.accessibility&&e.changeSlide({data:{message:!0===e.options.rtl?"previous":"next"}}))},e.prototype.lazyLoad=function(){var e,i,o,n=this;function r(e){t("img[data-lazy]",e).each((function(){var e=t(this),i=t(this).attr("data-lazy"),o=t(this).attr("data-srcset"),r=t(this).attr("data-sizes")||n.$slider.attr("data-sizes"),s=document.createElement("img");s.onload=function(){e.animate({opacity:0},100,(function(){o&&(e.attr("srcset",o),r&&e.attr("sizes",r)),e.attr("src",i).animate({opacity:1},200,(function(){e.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")})),n.$slider.trigger("lazyLoaded",[n,e,i])}))},s.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),n.$slider.trigger("lazyLoadError",[n,e,i])},s.src=i}))}if(!0===n.options.centerMode?!0===n.options.infinite?o=(i=n.currentSlide+(n.options.slidesToShow/2+1))+n.options.slidesToShow+2:(i=Math.max(0,n.currentSlide-(n.options.slidesToShow/2+1)),o=n.options.slidesToShow/2+1+2+n.currentSlide):(i=n.options.infinite?n.options.slidesToShow+n.currentSlide:n.currentSlide,o=Math.ceil(i+n.options.slidesToShow),!0===n.options.fade&&(i>0&&i--,o<=n.slideCount&&o++)),e=n.$slider.find(".slick-slide").slice(i,o),"anticipated"===n.options.lazyLoad)for(var s=i-1,a=o,l=n.$slider.find(".slick-slide"),c=0;c<n.options.slidesToScroll;c++)s<0&&(s=n.slideCount-1),e=(e=e.add(l.eq(s))).add(l.eq(a)),s--,a++;r(e),n.slideCount<=n.options.slidesToShow?r(n.$slider.find(".slick-slide")):n.currentSlide>=n.slideCount-n.options.slidesToShow?r(n.$slider.find(".slick-cloned").slice(0,n.options.slidesToShow)):0===n.currentSlide&&r(n.$slider.find(".slick-cloned").slice(-1*n.options.slidesToShow))},e.prototype.loadSlider=function(){var t=this;t.setPosition(),t.$slideTrack.css({opacity:1}),t.$slider.removeClass("slick-loading"),t.initUI(),"progressive"===t.options.lazyLoad&&t.progressiveLazyLoad()},e.prototype.next=e.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},e.prototype.orientationChange=function(){this.checkResponsive(),this.setPosition()},e.prototype.pause=e.prototype.slickPause=function(){this.autoPlayClear(),this.paused=!0},e.prototype.play=e.prototype.slickPlay=function(){var t=this;t.autoPlay(),t.options.autoplay=!0,t.paused=!1,t.focussed=!1,t.interrupted=!1},e.prototype.postSlide=function(e){var i=this;i.unslicked||(i.$slider.trigger("afterChange",[i,e]),i.animating=!1,i.slideCount>i.options.slidesToShow&&i.setPosition(),i.swipeLeft=null,i.options.autoplay&&i.autoPlay(),!0===i.options.accessibility&&(i.initADA(),i.options.focusOnChange&&t(i.$slides.get(i.currentSlide)).attr("tabindex",0).focus()))},e.prototype.prev=e.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},e.prototype.preventDefault=function(t){t.preventDefault()},e.prototype.progressiveLazyLoad=function(e){e=e||1;var i,o,n,r,s,a=this,l=t("img[data-lazy]",a.$slider);l.length?(i=l.first(),o=i.attr("data-lazy"),n=i.attr("data-srcset"),r=i.attr("data-sizes")||a.$slider.attr("data-sizes"),(s=document.createElement("img")).onload=function(){n&&(i.attr("srcset",n),r&&i.attr("sizes",r)),i.attr("src",o).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===a.options.adaptiveHeight&&a.setPosition(),a.$slider.trigger("lazyLoaded",[a,i,o]),a.progressiveLazyLoad()},s.onerror=function(){e<3?setTimeout((function(){a.progressiveLazyLoad(e+1)}),500):(i.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),a.$slider.trigger("lazyLoadError",[a,i,o]),a.progressiveLazyLoad())},s.src=o):a.$slider.trigger("allImagesLoaded",[a])},e.prototype.refresh=function(e){var i,o,n=this;o=n.slideCount-n.options.slidesToShow,!n.options.infinite&&n.currentSlide>o&&(n.currentSlide=o),n.slideCount<=n.options.slidesToShow&&(n.currentSlide=0),i=n.currentSlide,n.destroy(!0),t.extend(n,n.initials,{currentSlide:i}),n.init(),e||n.changeSlide({data:{message:"index",index:i}},!1)},e.prototype.registerBreakpoints=function(){var t,e,i,o=this,n=o.options.responsive||null;if("array"==typeof n&&n.length){for(t in o.respondTo=o.options.respondTo||"window",n)if(i=o.breakpoints.length-1,n.hasOwnProperty(t)){for(e=n[t].breakpoint;i>=0;)o.breakpoints[i]&&o.breakpoints[i]===e&&o.breakpoints.splice(i,1),i--;o.breakpoints.push(e),o.breakpointSettings[e]=n[t].settings}o.breakpoints.sort((function(t,e){return o.options.mobileFirst?t-e:e-t}))}},e.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),!0===e.options.focusOnSelect&&t(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},e.prototype.resize=function(){var e=this;t(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout((function(){e.windowWidth=t(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()}),50))},e.prototype.removeSlide=e.prototype.slickRemove=function(t,e,i){var o=this;if(t="boolean"==typeof t?!0===(e=t)?0:o.slideCount-1:!0===e?--t:t,o.slideCount<1||t<0||t>o.slideCount-1)return!1;o.unload(),!0===i?o.$slideTrack.children().remove():o.$slideTrack.children(this.options.slide).eq(t).remove(),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slidesCache=o.$slides,o.reinit()},e.prototype.setCSS=function(t){var e,i,o=this,n={};!0===o.options.rtl&&(t=-t),e="left"==o.positionProp?Math.ceil(t)+"px":"0px",i="top"==o.positionProp?Math.ceil(t)+"px":"0px",n[o.positionProp]=t,!1===o.transformsEnabled?o.$slideTrack.css(n):(n={},!1===o.cssTransitions?(n[o.animType]="translate("+e+", "+i+")",o.$slideTrack.css(n)):(n[o.animType]="translate3d("+e+", "+i+", 0px)",o.$slideTrack.css(n)))},e.prototype.setDimensions=function(){var t=this;!1===t.options.vertical?!0===t.options.centerMode&&t.$list.css({padding:"0px "+t.options.centerPadding}):(t.$list.height(t.$slides.first().outerHeight(!0)*t.options.slidesToShow),!0===t.options.centerMode&&t.$list.css({padding:t.options.centerPadding+" 0px"})),t.listWidth=t.$list.width(),t.listHeight=t.$list.height(),!1===t.options.vertical&&!1===t.options.variableWidth?(t.slideWidth=Math.ceil(t.listWidth/t.options.slidesToShow),t.$slideTrack.width(Math.ceil(t.slideWidth*t.$slideTrack.children(".slick-slide").length))):!0===t.options.variableWidth?t.$slideTrack.width(5e3*t.slideCount):(t.slideWidth=Math.ceil(t.listWidth),t.$slideTrack.height(Math.ceil(t.$slides.first().outerHeight(!0)*t.$slideTrack.children(".slick-slide").length)));var e=t.$slides.first().outerWidth(!0)-t.$slides.first().width();!1===t.options.variableWidth&&t.$slideTrack.children(".slick-slide").width(t.slideWidth-e)},e.prototype.setFade=function(){var e,i=this;i.$slides.each((function(o,n){e=i.slideWidth*o*-1,!0===i.options.rtl?t(n).css({position:"relative",right:e,top:0,zIndex:i.options.zIndex-2,opacity:0}):t(n).css({position:"relative",left:e,top:0,zIndex:i.options.zIndex-2,opacity:0})})),i.$slides.eq(i.currentSlide).css({zIndex:i.options.zIndex-1,opacity:1})},e.prototype.setHeight=function(){var t=this;if(1===t.options.slidesToShow&&!0===t.options.adaptiveHeight&&!1===t.options.vertical){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.css("height",e)}},e.prototype.setOption=e.prototype.slickSetOption=function(){var e,i,o,n,r,s=this,a=!1;if("object"==typeof arguments[0]?(o=arguments[0],a=arguments[1],r="multiple"):"string"==typeof arguments[0]&&(o=arguments[0],n=arguments[1],a=arguments[2],"responsive"===arguments[0]&&"array"==typeof arguments[1]?r="responsive":void 0!==arguments[1]&&(r="single")),"single"===r)s.options[o]=n;else if("multiple"===r)t.each(o,(function(t,e){s.options[t]=e}));else if("responsive"===r)for(i in n)if("array"!=typeof s.options.responsive)s.options.responsive=[n[i]];else{for(e=s.options.responsive.length-1;e>=0;)s.options.responsive[e].breakpoint===n[i].breakpoint&&s.options.responsive.splice(e,1),e--;s.options.responsive.push(n[i])}a&&(s.unload(),s.reinit())},e.prototype.setPosition=function(){var t=this;t.setDimensions(),t.setHeight(),!1===t.options.fade?t.setCSS(t.getLeft(t.currentSlide)):t.setFade(),t.$slider.trigger("setPosition",[t])},e.prototype.setProps=function(){var t=this,e=document.body.style;t.positionProp=!0===t.options.vertical?"top":"left","top"===t.positionProp?t.$slider.addClass("slick-vertical"):t.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||!0===t.options.useCSS&&(t.cssTransitions=!0),t.options.fade&&("number"==typeof t.options.zIndex?t.options.zIndex<3&&(t.options.zIndex=3):t.options.zIndex=t.defaults.zIndex),void 0!==e.OTransform&&(t.animType="OTransform",t.transformType="-o-transform",t.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.MozTransform&&(t.animType="MozTransform",t.transformType="-moz-transform",t.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(t.animType=!1)),void 0!==e.webkitTransform&&(t.animType="webkitTransform",t.transformType="-webkit-transform",t.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.msTransform&&(t.animType="msTransform",t.transformType="-ms-transform",t.transitionType="msTransition",void 0===e.msTransform&&(t.animType=!1)),void 0!==e.transform&&!1!==t.animType&&(t.animType="transform",t.transformType="transform",t.transitionType="transition"),t.transformsEnabled=t.options.useTransform&&null!==t.animType&&!1!==t.animType},e.prototype.setSlideClasses=function(t){var e,i,o,n,r=this;if(i=r.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),r.$slides.eq(t).addClass("slick-current"),!0===r.options.centerMode){var s=r.options.slidesToShow%2==0?1:0;e=Math.floor(r.options.slidesToShow/2),!0===r.options.infinite&&(t>=e&&t<=r.slideCount-1-e?r.$slides.slice(t-e+s,t+e+1).addClass("slick-active").attr("aria-hidden","false"):(o=r.options.slidesToShow+t,i.slice(o-e+1+s,o+e+2).addClass("slick-active").attr("aria-hidden","false")),0===t?i.eq(r.options.slidesToShow+r.slideCount+1).addClass("slick-center"):t===r.slideCount-1&&i.eq(r.options.slidesToShow).addClass("slick-center")),r.$slides.eq(t).addClass("slick-center")}else t>=0&&t<=r.slideCount-r.options.slidesToShow?r.$slides.slice(t,t+r.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):i.length<=r.options.slidesToShow?i.addClass("slick-active").attr("aria-hidden","false"):(n=r.slideCount%r.options.slidesToShow,o=!0===r.options.infinite?r.options.slidesToShow+t:t,r.options.slidesToShow==r.options.slidesToScroll&&r.slideCount-t<r.options.slidesToShow?i.slice(o-(r.options.slidesToShow-n),o+n).addClass("slick-active").attr("aria-hidden","false"):i.slice(o,o+r.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==r.options.lazyLoad&&"anticipated"!==r.options.lazyLoad||r.lazyLoad()},e.prototype.setupInfinite=function(){var e,i,o,n=this;if(!0===n.options.fade&&(n.options.centerMode=!1),!0===n.options.infinite&&!1===n.options.fade&&(i=null,n.slideCount>n.options.slidesToShow)){for(o=!0===n.options.centerMode?n.options.slidesToShow+1:n.options.slidesToShow,e=n.slideCount;e>n.slideCount-o;e-=1)i=e-1,t(n.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i-n.slideCount).prependTo(n.$slideTrack).addClass("slick-cloned");for(e=0;e<o+n.slideCount;e+=1)i=e,t(n.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i+n.slideCount).appendTo(n.$slideTrack).addClass("slick-cloned");n.$slideTrack.find(".slick-cloned").find("[id]").each((function(){t(this).attr("id","")}))}},e.prototype.interrupt=function(t){t||this.autoPlay(),this.interrupted=t},e.prototype.selectHandler=function(e){var i=this,o=t(e.target).is(".slick-slide")?t(e.target):t(e.target).parents(".slick-slide"),n=parseInt(o.attr("data-slick-index"));n||(n=0),i.slideCount<=i.options.slidesToShow?i.slideHandler(n,!1,!0):i.slideHandler(n)},e.prototype.slideHandler=function(t,e,i){var o,n,r,s,a,l,c=this;if(e=e||!1,!(!0===c.animating&&!0===c.options.waitForAnimate||!0===c.options.fade&&c.currentSlide===t))if(!1===e&&c.asNavFor(t),o=t,a=c.getLeft(o),s=c.getLeft(c.currentSlide),c.currentLeft=null===c.swipeLeft?s:c.swipeLeft,!1===c.options.infinite&&!1===c.options.centerMode&&(t<0||t>c.getDotCount()*c.options.slidesToScroll))!1===c.options.fade&&(o=c.currentSlide,!0!==i&&c.slideCount>c.options.slidesToShow?c.animateSlide(s,(function(){c.postSlide(o)})):c.postSlide(o));else if(!1===c.options.infinite&&!0===c.options.centerMode&&(t<0||t>c.slideCount-c.options.slidesToScroll))!1===c.options.fade&&(o=c.currentSlide,!0!==i&&c.slideCount>c.options.slidesToShow?c.animateSlide(s,(function(){c.postSlide(o)})):c.postSlide(o));else{if(c.options.autoplay&&clearInterval(c.autoPlayTimer),n=o<0?c.slideCount%c.options.slidesToScroll!=0?c.slideCount-c.slideCount%c.options.slidesToScroll:c.slideCount+o:o>=c.slideCount?c.slideCount%c.options.slidesToScroll!=0?0:o-c.slideCount:o,c.animating=!0,c.$slider.trigger("beforeChange",[c,c.currentSlide,n]),r=c.currentSlide,c.currentSlide=n,c.setSlideClasses(c.currentSlide),c.options.asNavFor&&(l=(l=c.getNavTarget()).slick("getSlick")).slideCount<=l.options.slidesToShow&&l.setSlideClasses(c.currentSlide),c.updateDots(),c.updateArrows(),!0===c.options.fade)return!0!==i?(c.fadeSlideOut(r),c.fadeSlide(n,(function(){c.postSlide(n)}))):c.postSlide(n),void c.animateHeight();!0!==i&&c.slideCount>c.options.slidesToShow?c.animateSlide(a,(function(){c.postSlide(n)})):c.postSlide(n)}},e.prototype.startLoad=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.hide(),t.$nextArrow.hide()),!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&t.$dots.hide(),t.$slider.addClass("slick-loading")},e.prototype.swipeDirection=function(){var t,e,i,o,n=this;return t=n.touchObject.startX-n.touchObject.curX,e=n.touchObject.startY-n.touchObject.curY,i=Math.atan2(e,t),(o=Math.round(180*i/Math.PI))<0&&(o=360-Math.abs(o)),o<=45&&o>=0||o<=360&&o>=315?!1===n.options.rtl?"left":"right":o>=135&&o<=225?!1===n.options.rtl?"right":"left":!0===n.options.verticalSwiping?o>=35&&o<=135?"down":"up":"vertical"},e.prototype.swipeEnd=function(t){var e,i,o=this;if(o.dragging=!1,o.swiping=!1,o.scrolling)return o.scrolling=!1,!1;if(o.interrupted=!1,o.shouldClick=!(o.touchObject.swipeLength>10),void 0===o.touchObject.curX)return!1;if(!0===o.touchObject.edgeHit&&o.$slider.trigger("edge",[o,o.swipeDirection()]),o.touchObject.swipeLength>=o.touchObject.minSwipe){switch(i=o.swipeDirection()){case"left":case"down":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide+o.getSlideCount()):o.currentSlide+o.getSlideCount(),o.currentDirection=0;break;case"right":case"up":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide-o.getSlideCount()):o.currentSlide-o.getSlideCount(),o.currentDirection=1}"vertical"!=i&&(o.slideHandler(e),o.touchObject={},o.$slider.trigger("swipe",[o,i]))}else o.touchObject.startX!==o.touchObject.curX&&(o.slideHandler(o.currentSlide),o.touchObject={})},e.prototype.swipeHandler=function(t){var e=this;if(!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==t.type.indexOf("mouse")))switch(e.touchObject.fingerCount=t.originalEvent&&void 0!==t.originalEvent.touches?t.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),t.data.action){case"start":e.swipeStart(t);break;case"move":e.swipeMove(t);break;case"end":e.swipeEnd(t)}},e.prototype.swipeMove=function(t){var e,i,o,n,r,s,a=this;return r=void 0!==t.originalEvent?t.originalEvent.touches:null,!(!a.dragging||a.scrolling||r&&1!==r.length)&&(e=a.getLeft(a.currentSlide),a.touchObject.curX=void 0!==r?r[0].pageX:t.clientX,a.touchObject.curY=void 0!==r?r[0].pageY:t.clientY,a.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(a.touchObject.curX-a.touchObject.startX,2))),s=Math.round(Math.sqrt(Math.pow(a.touchObject.curY-a.touchObject.startY,2))),!a.options.verticalSwiping&&!a.swiping&&s>4?(a.scrolling=!0,!1):(!0===a.options.verticalSwiping&&(a.touchObject.swipeLength=s),i=a.swipeDirection(),void 0!==t.originalEvent&&a.touchObject.swipeLength>4&&(a.swiping=!0,t.preventDefault()),n=(!1===a.options.rtl?1:-1)*(a.touchObject.curX>a.touchObject.startX?1:-1),!0===a.options.verticalSwiping&&(n=a.touchObject.curY>a.touchObject.startY?1:-1),o=a.touchObject.swipeLength,a.touchObject.edgeHit=!1,!1===a.options.infinite&&(0===a.currentSlide&&"right"===i||a.currentSlide>=a.getDotCount()&&"left"===i)&&(o=a.touchObject.swipeLength*a.options.edgeFriction,a.touchObject.edgeHit=!0),!1===a.options.vertical?a.swipeLeft=e+o*n:a.swipeLeft=e+o*(a.$list.height()/a.listWidth)*n,!0===a.options.verticalSwiping&&(a.swipeLeft=e+o*n),!0!==a.options.fade&&!1!==a.options.touchMove&&(!0===a.animating?(a.swipeLeft=null,!1):void a.setCSS(a.swipeLeft))))},e.prototype.swipeStart=function(t){var e,i=this;if(i.interrupted=!0,1!==i.touchObject.fingerCount||i.slideCount<=i.options.slidesToShow)return i.touchObject={},!1;void 0!==t.originalEvent&&void 0!==t.originalEvent.touches&&(e=t.originalEvent.touches[0]),i.touchObject.startX=i.touchObject.curX=void 0!==e?e.pageX:t.clientX,i.touchObject.startY=i.touchObject.curY=void 0!==e?e.pageY:t.clientY,i.dragging=!0},e.prototype.unfilterSlides=e.prototype.slickUnfilter=function(){var t=this;null!==t.$slidesCache&&(t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.appendTo(t.$slideTrack),t.reinit())},e.prototype.unload=function(){var e=this;t(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},e.prototype.unslick=function(t){var e=this;e.$slider.trigger("unslick",[e,t]),e.destroy()},e.prototype.updateArrows=function(){var t=this;Math.floor(t.options.slidesToShow/2),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&!t.options.infinite&&(t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===t.currentSlide?(t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):(t.currentSlide>=t.slideCount-t.options.slidesToShow&&!1===t.options.centerMode||t.currentSlide>=t.slideCount-1&&!0===t.options.centerMode)&&(t.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},e.prototype.updateDots=function(){var t=this;null!==t.$dots&&(t.$dots.find("li").removeClass("slick-active").end(),t.$dots.find("li").eq(Math.floor(t.currentSlide/t.options.slidesToScroll)).addClass("slick-active"))},e.prototype.visibility=function(){var t=this;t.options.autoplay&&(document[t.hidden]?t.interrupted=!0:t.interrupted=!1)},t.fn.slick=function(){var t,i,o=this,n=arguments[0],r=Array.prototype.slice.call(arguments,1),s=o.length;for(t=0;t<s;t++)if("object"==typeof n||void 0===n?o[t].slick=new e(o[t],n):i=o[t].slick[n].apply(o[t].slick,r),void 0!==i)return i;return o}})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.StickySidebar=e()}(this,(function(){"use strict";function t(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function e(t,e){return t(e={exports:{}},e.exports),e.exports}"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var i=e((function(t,e){!function(t){Object.defineProperty(t,"__esModule",{value:!0});var e,i,o=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}(),n=(e=".stickySidebar",i={topSpacing:0,bottomSpacing:0,containerSelector:!1,innerWrapperSelector:".inner-wrapper-sticky",stickyClass:"is-affixed",resizeSensor:!0,minWidth:!1},function(){function t(e){var o=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=t.extend(i,n),this.sidebar="string"==typeof e?document.querySelector(e):e,void 0===this.sidebar)throw new Error("There is no specific sidebar element.");this.sidebarInner=!1,this.container=this.sidebar.parentElement,this.affixedType="STATIC",this.direction="down",this.support={transform:!1,transform3d:!1},this._initialized=!1,this._reStyle=!1,this._breakpoint=!1,this.dimensions={translateY:0,maxTranslateY:0,topSpacing:0,lastTopSpacing:0,bottomSpacing:0,lastBottomSpacing:0,sidebarHeight:0,sidebarWidth:0,containerTop:0,containerHeight:0,viewportHeight:0,viewportTop:0,lastViewportTop:0},["handleEvent"].forEach((function(t){o[t]=o[t].bind(o)})),this.initialize()}return o(t,[{key:"initialize",value:function(){var t=this;if(this._setSupportFeatures(),this.options.innerWrapperSelector&&(this.sidebarInner=this.sidebar.querySelector(this.options.innerWrapperSelector),null===this.sidebarInner&&(this.sidebarInner=!1)),!this.sidebarInner){var e=document.createElement("div");for(e.setAttribute("class","inner-wrapper-sticky"),this.sidebar.appendChild(e);this.sidebar.firstChild!=e;)e.appendChild(this.sidebar.firstChild);this.sidebarInner=this.sidebar.querySelector(".inner-wrapper-sticky")}if(this.options.containerSelector){var i=document.querySelectorAll(this.options.containerSelector);if((i=Array.prototype.slice.call(i)).forEach((function(e,i){e.contains(t.sidebar)&&(t.container=e)})),!i.length)throw new Error("The container does not contains on the sidebar.")}"function"!=typeof this.options.topSpacing&&(this.options.topSpacing=parseInt(this.options.topSpacing)||0),"function"!=typeof this.options.bottomSpacing&&(this.options.bottomSpacing=parseInt(this.options.bottomSpacing)||0),this._widthBreakpoint(),this.calcDimensions(),this.stickyPosition(),this.bindEvents(),this._initialized=!0}},{key:"bindEvents",value:function(){window.addEventListener("resize",this,{passive:!0,capture:!1}),window.addEventListener("scroll",this,{passive:!0,capture:!1}),this.sidebar.addEventListener("update"+e,this),this.options.resizeSensor&&"undefined"!=typeof ResizeSensor&&(new ResizeSensor(this.sidebarInner,this.handleEvent),new ResizeSensor(this.container,this.handleEvent))}},{key:"handleEvent",value:function(t){this.updateSticky(t)}},{key:"calcDimensions",value:function(){if(!this._breakpoint){var e=this.dimensions;e.containerTop=t.offsetRelative(this.container).top,e.containerHeight=this.container.clientHeight,e.containerBottom=e.containerTop+e.containerHeight,e.sidebarHeight=this.sidebarInner.offsetHeight,e.sidebarWidth=this.sidebarInner.offsetWidth,e.viewportHeight=window.innerHeight,e.maxTranslateY=e.containerHeight-e.sidebarHeight,this._calcDimensionsWithScroll()}}},{key:"_calcDimensionsWithScroll",value:function(){var e=this.dimensions;e.sidebarLeft=t.offsetRelative(this.sidebar).left,e.viewportTop=document.documentElement.scrollTop||document.body.scrollTop,e.viewportBottom=e.viewportTop+e.viewportHeight,e.viewportLeft=document.documentElement.scrollLeft||document.body.scrollLeft,e.topSpacing=this.options.topSpacing,e.bottomSpacing=this.options.bottomSpacing,"function"==typeof e.topSpacing&&(e.topSpacing=parseInt(e.topSpacing(this.sidebar))||0),"function"==typeof e.bottomSpacing&&(e.bottomSpacing=parseInt(e.bottomSpacing(this.sidebar))||0),"VIEWPORT-TOP"===this.affixedType?e.topSpacing<e.lastTopSpacing&&(e.translateY+=e.lastTopSpacing-e.topSpacing,this._reStyle=!0):"VIEWPORT-BOTTOM"===this.affixedType&&e.bottomSpacing<e.lastBottomSpacing&&(e.translateY+=e.lastBottomSpacing-e.bottomSpacing,this._reStyle=!0),e.lastTopSpacing=e.topSpacing,e.lastBottomSpacing=e.bottomSpacing}},{key:"isSidebarFitsViewport",value:function(){var t=this.dimensions,e="down"===this.scrollDirection?t.lastBottomSpacing:t.lastTopSpacing;return this.dimensions.sidebarHeight+e<this.dimensions.viewportHeight}},{key:"observeScrollDir",value:function(){var t=this.dimensions;if(t.lastViewportTop!==t.viewportTop){var e="down"===this.direction?Math.min:Math.max;t.viewportTop===e(t.viewportTop,t.lastViewportTop)&&(this.direction="down"===this.direction?"up":"down")}}},{key:"getAffixType",value:function(){this._calcDimensionsWithScroll();var t=this.dimensions,e=t.viewportTop+t.topSpacing,i=this.affixedType;return e<=t.containerTop||t.containerHeight<=t.sidebarHeight?(t.translateY=0,i="STATIC"):i="up"===this.direction?this._getAffixTypeScrollingUp():this._getAffixTypeScrollingDown(),t.translateY=Math.max(0,t.translateY),t.translateY=Math.min(t.containerHeight,t.translateY),t.translateY=Math.round(t.translateY),t.lastViewportTop=t.viewportTop,i}},{key:"_getAffixTypeScrollingDown",value:function(){var t=this.dimensions,e=t.sidebarHeight+t.containerTop,i=t.viewportTop+t.topSpacing,o=t.viewportBottom-t.bottomSpacing,n=this.affixedType;return this.isSidebarFitsViewport()?t.sidebarHeight+i>=t.containerBottom?(t.translateY=t.containerBottom-e,n="CONTAINER-BOTTOM"):i>=t.containerTop&&(t.translateY=i-t.containerTop,n="VIEWPORT-TOP"):t.containerBottom<=o?(t.translateY=t.containerBottom-e,n="CONTAINER-BOTTOM"):e+t.translateY<=o?(t.translateY=o-e,n="VIEWPORT-BOTTOM"):t.containerTop+t.translateY<=i&&0!==t.translateY&&t.maxTranslateY!==t.translateY&&(n="VIEWPORT-UNBOTTOM"),n}},{key:"_getAffixTypeScrollingUp",value:function(){var t=this.dimensions,e=t.sidebarHeight+t.containerTop,i=t.viewportTop+t.topSpacing,o=t.viewportBottom-t.bottomSpacing,n=this.affixedType;return i<=t.translateY+t.containerTop?(t.translateY=i-t.containerTop,n="VIEWPORT-TOP"):t.containerBottom<=o?(t.translateY=t.containerBottom-e,n="CONTAINER-BOTTOM"):this.isSidebarFitsViewport()||t.containerTop<=i&&0!==t.translateY&&t.maxTranslateY!==t.translateY&&(n="VIEWPORT-UNBOTTOM"),n}},{key:"_getStyle",value:function(e){if(void 0!==e){var i={inner:{},outer:{}},o=this.dimensions;switch(e){case"VIEWPORT-TOP":i.inner={position:"fixed",top:o.topSpacing,left:o.sidebarLeft-o.viewportLeft,width:o.sidebarWidth};break;case"VIEWPORT-BOTTOM":i.inner={position:"fixed",top:"auto",left:o.sidebarLeft,bottom:o.bottomSpacing,width:o.sidebarWidth};break;case"CONTAINER-BOTTOM":case"VIEWPORT-UNBOTTOM":var n=this._getTranslate(0,o.translateY+"px");i.inner=n?{transform:n}:{position:"absolute",top:o.translateY,width:o.sidebarWidth}}switch(e){case"VIEWPORT-TOP":case"VIEWPORT-BOTTOM":case"VIEWPORT-UNBOTTOM":case"CONTAINER-BOTTOM":i.outer={height:o.sidebarHeight,position:"relative"}}return i.outer=t.extend({height:"",position:""},i.outer),i.inner=t.extend({position:"relative",top:"",left:"",bottom:"",width:"",transform:""},i.inner),i}}},{key:"stickyPosition",value:function(i){if(!this._breakpoint){i=this._reStyle||i||!1,this.options.topSpacing,this.options.bottomSpacing;var o=this.getAffixType(),n=this._getStyle(o);if((this.affixedType!=o||i)&&o){var r="affix."+o.toLowerCase().replace("viewport-","")+e;for(var s in t.eventTrigger(this.sidebar,r),"STATIC"===o?t.removeClass(this.sidebar,this.options.stickyClass):t.addClass(this.sidebar,this.options.stickyClass),n.outer){var a="number"==typeof n.outer[s]?"px":"";this.sidebar.style[s]=n.outer[s]+a}for(var l in n.inner){var c="number"==typeof n.inner[l]?"px":"";this.sidebarInner.style[l]=n.inner[l]+c}var d="affixed."+o.toLowerCase().replace("viewport-","")+e;t.eventTrigger(this.sidebar,d)}else this._initialized&&(this.sidebarInner.style.left=n.inner.left);this.affixedType=o}}},{key:"_widthBreakpoint",value:function(){window.innerWidth<=this.options.minWidth?(this._breakpoint=!0,this.affixedType="STATIC",this.sidebar.removeAttribute("style"),t.removeClass(this.sidebar,this.options.stickyClass),this.sidebarInner.removeAttribute("style")):this._breakpoint=!1}},{key:"updateSticky",value:function(){var t,e=this,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this._running||(this._running=!0,t=i.type,requestAnimationFrame((function(){switch(t){case"scroll":e._calcDimensionsWithScroll(),e.observeScrollDir(),e.stickyPosition();break;case"resize":default:e._widthBreakpoint(),e.calcDimensions(),e.stickyPosition(!0)}e._running=!1})))}},{key:"_setSupportFeatures",value:function(){var e=this.support;e.transform=t.supportTransform(),e.transform3d=t.supportTransform(!0)}},{key:"_getTranslate",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0;return this.support.transform3d?"translate3d("+t+", "+e+", "+i+")":!!this.support.translate&&"translate("+t+", "+e+")"}},{key:"destroy",value:function(){window.removeEventListener("resize",this,{capture:!1}),window.removeEventListener("scroll",this,{capture:!1}),this.sidebar.classList.remove(this.options.stickyClass),this.sidebar.style.minHeight="",this.sidebar.removeEventListener("update"+e,this);var t={inner:{},outer:{}};for(var i in t.inner={position:"",top:"",left:"",bottom:"",width:"",transform:""},t.outer={height:"",position:""},t.outer)this.sidebar.style[i]=t.outer[i];for(var o in t.inner)this.sidebarInner.style[o]=t.inner[o];this.options.resizeSensor&&"undefined"!=typeof ResizeSensor&&(ResizeSensor.detach(this.sidebarInner,this.handleEvent),ResizeSensor.detach(this.container,this.handleEvent))}}],[{key:"supportTransform",value:function(t){var e=!1,i=t?"perspective":"transform",o=i.charAt(0).toUpperCase()+i.slice(1),n=document.createElement("support").style;return(i+" "+["Webkit","Moz","O","ms"].join(o+" ")+o).split(" ").forEach((function(t,i){if(void 0!==n[t])return e=t,!1})),e}},{key:"eventTrigger",value:function(t,e,i){try{var o=new CustomEvent(e,{detail:i})}catch(t){(o=document.createEvent("CustomEvent")).initCustomEvent(e,!0,!0,i)}t.dispatchEvent(o)}},{key:"extend",value:function(t,e){var i={};for(var o in t)void 0!==e[o]?i[o]=e[o]:i[o]=t[o];return i}},{key:"offsetRelative",value:function(t){var e={left:0,top:0};do{var i=t.offsetTop,o=t.offsetLeft;isNaN(i)||(e.top+=i),isNaN(o)||(e.left+=o),t="BODY"===t.tagName?t.parentElement:t.offsetParent}while(t);return e}},{key:"addClass",value:function(e,i){t.hasClass(e,i)||(e.classList?e.classList.add(i):e.className+=" "+i)}},{key:"removeClass",value:function(e,i){t.hasClass(e,i)&&(e.classList?e.classList.remove(i):e.className=e.className.replace(new RegExp("(^|\\b)"+i.split(" ").join("|")+"(\\b|$)","gi")," "))}},{key:"hasClass",value:function(t,e){return t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className)}},{key:"defaults",get:function(){return i}}]),t}());t.default=n,window.StickySidebar=n}(e)}));return t(i),t(e((function(t,e){!function(t){var e,i=(e=t)&&e.__esModule?e:{default:e};!function(){if("undefined"!=typeof window){var t=window.$||window.jQuery||window.Zepto,e="stickySidebar";if(t){t.fn.stickySidebar=function(o){return this.each((function(){var n=t(this),r=t(this).data(e);if(r||(r=new i.default(this,"object"==typeof o&&o),n.data(e,r)),"string"==typeof o){if(void 0===r[o]&&-1===["destroy","updateSticky"].indexOf(o))throw new Error('No method named "'+o+'"');r[o]()}}))},t.fn.stickySidebar.Constructor=i.default;var o=t.fn.stickySidebar;t.fn.stickySidebar.noConflict=function(){return t.fn.stickySidebar=o,this}}}}()}(i)})))})),function(t){t.fn.visible=function(e,i,o){var n=t(this).eq(0),r=n.get(0),s=t(window),a=s.scrollTop(),l=a+s.height(),c=s.scrollLeft(),d=c+s.width(),u=n.offset().top,p=u+n.height(),h=n.offset().left,f=h+n.width(),m=!0===e?p:u,g=!0===e?u:p,v=!0===e?f:h,y=!0===e?h:f,w=!0!==i||r.offsetWidth*r.offsetHeight;return"both"===(o=o||"both")?!!w&&g<=l&&m>=a&&y<=d&&v>=c:"vertical"===o?!!w&&g<=l&&m>=a:"horizontal"===o?!!w&&y<=d&&v>=c:void 0}}(jQuery),function(){"use strict";function t(o){if(!o)throw new Error("No options passed to Waypoint constructor");if(!o.element)throw new Error("No element option passed to Waypoint constructor");if(!o.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+e,this.options=t.Adapter.extend({},t.defaults,o),this.element=this.options.element,this.adapter=new t.Adapter(this.element),this.callback=o.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=t.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=t.Context.findOrCreateByElement(this.options.context),t.offsetAliases[this.options.offset]&&(this.options.offset=t.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),i[this.key]=this,e+=1}var e=0,i={};t.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},t.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},t.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete i[this.key]},t.prototype.disable=function(){return this.enabled=!1,this},t.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},t.prototype.next=function(){return this.group.next(this)},t.prototype.previous=function(){return this.group.previous(this)},t.invokeAll=function(t){var e=[];for(var o in i)e.push(i[o]);for(var n=0,r=e.length;r>n;n++)e[n][t]()},t.destroyAll=function(){t.invokeAll("destroy")},t.disableAll=function(){t.invokeAll("disable")},t.enableAll=function(){for(var e in t.Context.refreshAll(),i)i[e].enabled=!0;return this},t.refreshAll=function(){t.Context.refreshAll()},t.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},t.viewportWidth=function(){return document.documentElement.clientWidth},t.adapters=[],t.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},t.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=t}(),function(){"use strict";function t(t){window.setTimeout(t,1e3/60)}function e(t){this.element=t,this.Adapter=n.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+i,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,o[t.waypointContextKey]=this,i+=1,n.windowContext||(n.windowContext=!0,n.windowContext=new e(window)),this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}var i=0,o={},n=window.Waypoint,r=window.onload;e.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},e.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical),i=this.element==this.element.window;t&&e&&!i&&(this.adapter.off(".waypoints"),delete o[this.key])},e.prototype.createThrottledResizeHandler=function(){function t(){e.handleResize(),e.didResize=!1}var e=this;this.adapter.on("resize.waypoints",(function(){e.didResize||(e.didResize=!0,n.requestAnimationFrame(t))}))},e.prototype.createThrottledScrollHandler=function(){function t(){e.handleScroll(),e.didScroll=!1}var e=this;this.adapter.on("scroll.waypoints",(function(){(!e.didScroll||n.isTouch)&&(e.didScroll=!0,n.requestAnimationFrame(t))}))},e.prototype.handleResize=function(){n.Context.refreshAll()},e.prototype.handleScroll=function(){var t={},e={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var i in e){var o=e[i],n=o.newScroll>o.oldScroll?o.forward:o.backward;for(var r in this.waypoints[i]){var s=this.waypoints[i][r];if(null!==s.triggerPoint){var a=o.oldScroll<s.triggerPoint,l=o.newScroll>=s.triggerPoint;(a&&l||!a&&!l)&&(s.queueTrigger(n),t[s.group.id]=s.group)}}}for(var c in t)t[c].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},e.prototype.innerHeight=function(){return this.element==this.element.window?n.viewportHeight():this.adapter.innerHeight()},e.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},e.prototype.innerWidth=function(){return this.element==this.element.window?n.viewportWidth():this.adapter.innerWidth()},e.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var i in this.waypoints[e])t.push(this.waypoints[e][i]);for(var o=0,n=t.length;n>o;o++)t[o].destroy()},e.prototype.refresh=function(){var t,e=this.element==this.element.window,i=e?void 0:this.adapter.offset(),o={};for(var r in this.handleScroll(),t={horizontal:{contextOffset:e?0:i.left,contextScroll:e?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:e?0:i.top,contextScroll:e?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}}){var s=t[r];for(var a in this.waypoints[r]){var l,c,d,u,p=this.waypoints[r][a],h=p.options.offset,f=p.triggerPoint,m=0,g=null==f;p.element!==p.element.window&&(m=p.adapter.offset()[s.offsetProp]),"function"==typeof h?h=h.apply(p):"string"==typeof h&&(h=parseFloat(h),p.options.offset.indexOf("%")>-1&&(h=Math.ceil(s.contextDimension*h/100))),l=s.contextScroll-s.contextOffset,p.triggerPoint=Math.floor(m+l-h),c=f<s.oldScroll,d=p.triggerPoint>=s.oldScroll,u=!c&&!d,!g&&(c&&d)?(p.queueTrigger(s.backward),o[p.group.id]=p.group):(!g&&u||g&&s.oldScroll>=p.triggerPoint)&&(p.queueTrigger(s.forward),o[p.group.id]=p.group)}}return n.requestAnimationFrame((function(){for(var t in o)o[t].flushTriggers()})),this},e.findOrCreateByElement=function(t){return e.findByElement(t)||new e(t)},e.refreshAll=function(){for(var t in o)o[t].refresh()},e.findByElement=function(t){return o[t.waypointContextKey]},window.onload=function(){r&&r(),e.refreshAll()},n.requestAnimationFrame=function(e){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t).call(window,e)},n.Context=e}(),function(){"use strict";function t(t,e){return t.triggerPoint-e.triggerPoint}function e(t,e){return e.triggerPoint-t.triggerPoint}function i(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),o[this.axis][this.name]=this}var o={vertical:{},horizontal:{}},n=window.Waypoint;i.prototype.add=function(t){this.waypoints.push(t)},i.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},i.prototype.flushTriggers=function(){for(var i in this.triggerQueues){var o=this.triggerQueues[i],n="up"===i||"left"===i;o.sort(n?e:t);for(var r=0,s=o.length;s>r;r+=1){var a=o[r];(a.options.continuous||r===o.length-1)&&a.trigger([i])}}this.clearTriggerQueues()},i.prototype.next=function(e){this.waypoints.sort(t);var i=n.Adapter.inArray(e,this.waypoints);return i===this.waypoints.length-1?null:this.waypoints[i+1]},i.prototype.previous=function(e){this.waypoints.sort(t);var i=n.Adapter.inArray(e,this.waypoints);return i?this.waypoints[i-1]:null},i.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},i.prototype.remove=function(t){var e=n.Adapter.inArray(t,this.waypoints);e>-1&&this.waypoints.splice(e,1)},i.prototype.first=function(){return this.waypoints[0]},i.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},i.findOrCreate=function(t){return o[t.axis][t.name]||new i(t)},n.Group=i}(),function(){"use strict";function t(t){this.$element=e(t)}var e=window.jQuery,i=window.Waypoint;e.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],(function(e,i){t.prototype[i]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[i].apply(this.$element,t)}})),e.each(["extend","inArray","isEmptyObject"],(function(i,o){t[o]=e[o]})),i.adapters.push({name:"jquery",Adapter:t}),i.Adapter=t}(),function(){"use strict";function t(t){return function(){var i=[],o=arguments[0];return t.isFunction(arguments[0])&&((o=t.extend({},arguments[1])).handler=arguments[0]),this.each((function(){var n=t.extend({},o,{element:this});"string"==typeof n.context&&(n.context=t(this).closest(n.context)[0]),i.push(new e(n))})),i}}var e=window.Waypoint;window.jQuery&&(window.jQuery.fn.waypoint=t(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=t(window.Zepto))}();

Zerion Mini Shell 1.0