artproject/js/vendor.js

2 lines
32 KiB
JavaScript

require=function e(t,n,i){function o(s,a){if(!n[s]){if(!t[s]){var l="function"==typeof require&&require;if(!a&&l)return l(s,!0);if(r)return r(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[s]={exports:{}};t[s][0].call(u.exports,function(e){var n=t[s][1][e];return o(n||e)},u,u.exports,e,t,n,i)}return n[s].exports}for(var r="function"==typeof require&&require,s=0;s<i.length;s++)o(i[s]);return o}({gumshoe:[function(e,t,n){(function(e){!function(e,i){"function"==typeof define&&define.amd?define([],i(e)):"object"==typeof n?t.exports=i(e):e.gumshoe=i(e)}(void 0!==e?e:this.window||this.global,function(e){"use strict";var t,n,i,o,r,s,a,l={},c="querySelector"in document&&"addEventListener"in e&&"classList"in document.createElement("_"),u=[],f={selector:"[data-gumshoe] a",selectorHeader:"[data-gumshoe-header]",container:e,offset:0,activeClass:"active",scrollDelay:!1,callback:function(){}},d=function(e,t,n){if("[object Object]"===Object.prototype.toString.call(e))for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(n,e[i],i,e);else for(var o=0,r=e.length;o<r;o++)t.call(n,e[o],o,e)},h=function(){var e={},t=!1,n=0,i=arguments.length;"[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(t=arguments[0],n++);for(;n<i;n++){var o=arguments[n];!function(n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t&&"[object Object]"===Object.prototype.toString.call(n[i])?e[i]=h(!0,e[i],n[i]):e[i]=n[i])}(o)}return e},p=function(e){return Math.max(e.scrollHeight,e.offsetHeight,e.clientHeight)},m=function(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)},g=function(e){var n=0;if(e.offsetParent)do{n+=e.offsetTop,e=e.offsetParent}while(e);else n=e.offsetTop;return n=n-r-t.offset,n>=0?n:0},v=function(t){var n=t.getBoundingClientRect();return n.top>=0&&n.left>=0&&n.bottom<=(e.innerHeight||document.documentElement.clientHeight)&&n.right<=(e.innerWidth||document.documentElement.clientWidth)},y=function(){u.sort(function(e,t){return e.distance>t.distance?-1:e.distance<t.distance?1:0})};l.setDistances=function(){i=m(),r=o?p(o)+g(o):0,d(u,function(e){e.distance=g(e.target)}),y()};var w=function(){var e=document.querySelectorAll(t.selector);d(e,function(e){if(e.hash){var t=document.querySelector(e.hash);t&&u.push({nav:e,target:t,parent:"li"===e.parentNode.tagName.toLowerCase()?e.parentNode:null,distance:0})}})},b=function(){s&&(s.nav.classList.remove(t.activeClass),s.parent&&s.parent.classList.remove(t.activeClass))},x=function(e){b(),e.nav.classList.add(t.activeClass),e.parent&&e.parent.classList.add(t.activeClass),t.callback(e),s={nav:e.nav,parent:e.parent}};l.getCurrentNav=function(){var n=e.pageYOffset;if(e.innerHeight+n>=i&&v(u[0].target))return x(u[0]),u[0];for(var o=0,r=u.length;o<r;o++){var s=u[o];if(s.distance<=n)return x(s),s}b(),t.callback()};var E=function(){d(u,function(e){e.nav.classList.contains(t.activeClass)&&(s={nav:e.nav,parent:e.parent})})};l.destroy=function(){t&&(t.container.removeEventListener("resize",T,!1),t.container.removeEventListener("scroll",T,!1),u=[],t=null,n=null,i=null,o=null,r=null,s=null,a=null)};var O=function(e){window.clearTimeout(n),n=setTimeout(function(){l.setDistances(),l.getCurrentNav()},66)},T=function(e){n||(n=setTimeout(function(){n=null,"scroll"===e.type&&l.getCurrentNav(),"resize"===e.type&&(l.setDistances(),l.getCurrentNav())},66))};return l.init=function(e){c&&(l.destroy(),t=h(f,e||{}),o=document.querySelector(t.selectorHeader),w(),0!==u.length&&(E(),l.setDistances(),l.getCurrentNav(),t.container.addEventListener("resize",T,!1),t.scrollDelay?t.container.addEventListener("scroll",O,!1):t.container.addEventListener("scroll",T,!1)))},l})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],"in-view":[function(e,t,n){!function(e,i){"object"==typeof n&&"object"==typeof t?t.exports=i():"function"==typeof define&&define.amd?define([],i):"object"==typeof n?n.inView=i():e.inView=i()}(this,function(){return function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={exports:{},id:i,loaded:!1};return e[i].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";var i=n(2),o=function(e){return e&&e.__esModule?e:{default:e}}(i);e.exports=o.default},function(e,t){function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=n},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(9),r=i(o),s=n(3),a=i(s),l=n(4);t.default=function(){if("undefined"!=typeof window){var e=["scroll","resize","load"],t={history:[]},n={offset:{},threshold:0,test:l.inViewport},i=(0,r.default)(function(){t.history.forEach(function(e){t[e].check()})},100);e.forEach(function(e){return addEventListener(e,i)}),window.MutationObserver&&addEventListener("DOMContentLoaded",function(){new MutationObserver(i).observe(document.body,{attributes:!0,childList:!0,subtree:!0})});var o=function(e){if("string"==typeof e){var i=[].slice.call(document.querySelectorAll(e));return t.history.indexOf(e)>-1?t[e].elements=i:(t[e]=(0,a.default)(i,n),t.history.push(e)),t[e]}};return o.offset=function(e){if(void 0===e)return n.offset;var t=function(e){return"number"==typeof e};return["top","right","bottom","left"].forEach(t(e)?function(t){return n.offset[t]=e}:function(i){return t(e[i])?n.offset[i]=e[i]:null}),n.offset},o.threshold=function(e){return"number"==typeof e&&e>=0&&e<=1?n.threshold=e:n.threshold},o.test=function(e){return"function"==typeof e?n.test=e:n.test},o.is=function(e){return n.test(e,n)},o.offset(0),o}}()},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function(){function e(t,i){n(this,e),this.options=i,this.elements=t,this.current=[],this.handlers={enter:[],exit:[]},this.singles={enter:[],exit:[]}}return i(e,[{key:"check",value:function(){var e=this;return this.elements.forEach(function(t){var n=e.options.test(t,e.options),i=e.current.indexOf(t),o=i>-1,r=n&&!o,s=!n&&o;r&&(e.current.push(t),e.emit("enter",t)),s&&(e.current.splice(i,1),e.emit("exit",t))}),this}},{key:"on",value:function(e,t){return this.handlers[e].push(t),this}},{key:"once",value:function(e,t){return this.singles[e].unshift(t),this}},{key:"emit",value:function(e,t){for(;this.singles[e].length;)this.singles[e].pop()(t);for(var n=this.handlers[e].length;--n>-1;)this.handlers[e][n](t);return this}}]),e}();t.default=function(e,t){return new o(e,t)}},function(e,t){"use strict";function n(e,t){var n=e.getBoundingClientRect(),i=n.top,o=n.right,r=n.bottom,s=n.left,a=n.width,l=n.height,c={t:r,r:window.innerWidth-s,b:window.innerHeight-i,l:o},u={x:t.threshold*a,y:t.threshold*l};return c.t>t.offset.top+u.y&&c.r>t.offset.right+u.x&&c.b>t.offset.bottom+u.y&&c.l>t.offset.left+u.x}Object.defineProperty(t,"__esModule",{value:!0}),t.inViewport=n},function(e,t){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(t,function(){return this}())},function(e,t,n){var i=n(5),o="object"==typeof self&&self&&self.Object===Object&&self,r=i||o||Function("return this")();e.exports=r},function(e,t,n){function i(e,t,n){function i(t){var n=y,i=w;return y=w=void 0,T=t,x=e.apply(i,n)}function u(e){return T=e,E=setTimeout(h,t),L?i(e):x}function f(e){var n=e-O,i=e-T,o=t-n;return M?c(o,b-i):o}function d(e){var n=e-O,i=e-T;return void 0===O||n>=t||n<0||M&&i>=b}function h(){var e=r();return d(e)?p(e):void(E=setTimeout(h,f(e)))}function p(e){return E=void 0,j&&y?i(e):(y=w=void 0,x)}function m(){void 0!==E&&clearTimeout(E),T=0,y=O=w=E=void 0}function g(){return void 0===E?x:p(r())}function v(){var e=r(),n=d(e);if(y=arguments,w=this,O=e,n){if(void 0===E)return u(O);if(M)return E=setTimeout(h,t),i(O)}return void 0===E&&(E=setTimeout(h,t)),x}var y,w,b,x,E,O,T=0,L=!1,M=!1,j=!0;if("function"!=typeof e)throw new TypeError(a);return t=s(t)||0,o(n)&&(L=!!n.leading,M="maxWait"in n,b=M?l(s(n.maxWait)||0,t):b,j="trailing"in n?!!n.trailing:j),v.cancel=m,v.flush=g,v}var o=n(1),r=n(8),s=n(10),a="Expected a function",l=Math.max,c=Math.min;e.exports=i},function(e,t,n){var i=n(6),o=function(){return i.Date.now()};e.exports=o},function(e,t,n){function i(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError(s);return r(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),o(e,t,{leading:i,maxWait:t,trailing:a})}var o=n(7),r=n(1),s="Expected a function";e.exports=i},function(e,t){function n(e){return e}e.exports=n}])})},{}],rellax:[function(e,t,n){!function(e,n){"function"==typeof define&&define.amd?define([],n):"object"==typeof t&&t.exports?t.exports=n():e.Rellax=n()}(this,function(){var e=function(t,n){"use strict";var i=Object.create(e.prototype),o=0,r=0,s=0,a=0,l=[],c=!1,u=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame||function(e){setTimeout(e,1e3/60)},f=window.transformProp||function(){var e=document.createElement("div");if(null==e.style.transform){var t=["Webkit","Moz","ms"];for(var n in t)if(void 0!==e.style[t[n]+"Transform"])return t[n]+"Transform"}return"transform"}(),d=function(e,t,n){return e<=t?t:e>=n?n:e};i.options={speed:-2,center:!1,round:!0,vertical:!0,horizontal:!1,callback:function(){}},n&&Object.keys(n).forEach(function(e){i.options[e]=n[e]}),i.options.speed=d(i.options.speed,-10,10),t||(t=".rellax");var h=document.querySelectorAll(t);if(!(h.length>0))throw new Error("The elements you're trying to select don't exist.");i.elems=h;var p=function(e){var t=e.getAttribute("data-rellax-percentage"),n=e.getAttribute("data-rellax-speed"),o=e.getAttribute("data-rellax-zindex")||0,s=i.options.vertical&&(t||i.options.center)?window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop:0,l=i.options.horizontal&&(t||i.options.center)?window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft:0,c=s+e.getBoundingClientRect().top,u=e.clientHeight||e.offsetHeight||e.scrollHeight,f=l+e.getBoundingClientRect().left,h=e.clientWidth||e.offsetWidth||e.scrollWidth,p=t||(s-c+r)/(u+r),m=t||(l-f+a)/(h+a);i.options.center&&(m=.5,p=.5);var v=n?d(n,-10,10):i.options.speed;(t||i.options.center)&&(v=d(n||i.options.speed,-5,5));var y=g(m,p,v),w=e.style.cssText,b="";if(w.indexOf("transform")>=0){var x=w.indexOf("transform"),E=w.slice(x),O=E.indexOf(";");b=O?" "+E.slice(11,O).replace(/\s/g,""):" "+E.slice(11).replace(/\s/g,"")}return{baseX:y.x,baseY:y.y,top:c,left:f,height:u,width:h,speed:v,style:w,transform:b,zindex:o}},m=function(){var e=o,t=s;return o=void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop,s=void 0!==window.pageXOffset?window.pageXOffset:(document.documentElement||document.body.parentNode||document.body).scrollLeft,!(e==o||!i.options.vertical)||!(t==s||!i.options.horizontal)},g=function(e,t,n){var o={},r=n*(100*(1-e)),s=n*(100*(1-t));return o.x=i.options.round?Math.round(r):Math.round(100*r)/100,o.y=i.options.round?Math.round(s):Math.round(100*s)/100,o},v=function(){m()&&!1===c&&y(),u(v)},y=function(){for(var e=0;e<i.elems.length;e++){var t=(o-l[e].top+r)/(l[e].height+r),n=(s-l[e].left+a)/(l[e].width+a),c=g(n,t,l[e].speed),u=c.y-l[e].baseY,d=c.x-l[e].baseX,h=l[e].zindex,p="translate3d("+(i.options.horizontal?d:"0")+"px,"+(i.options.vertical?u:"0")+"px,"+h+"px) "+l[e].transform;i.elems[e].style[f]=p}i.options.callback(c)};return i.destroy=function(){for(var e=0;e<i.elems.length;e++)i.elems[e].style.cssText=l[e].style;c=!0},function(){r=window.innerHeight,a=window.innerWidth,m();for(var e=0;e<i.elems.length;e++){var t=p(i.elems[e]);l.push(t)}window.addEventListener("resize",function(){y()}),v(),y()}(),i};return e})},{}],scrollreveal:[function(e,t,n){!function(){"use strict";function e(t){return void 0===this||Object.getPrototypeOf(this)!==e.prototype?new e(t):(L=this,L.version="3.3.6",L.tools=new T,L.isSupported()?(L.tools.extend(L.defaults,t||{}),L.defaults.container=n(L.defaults),L.store={elements:{},containers:[]},L.sequences={},L.history=[],L.uid=0,L.initialized=!1):"undefined"!=typeof console&&null!==console&&console.log("ScrollReveal is not supported in this browser."),L)}function n(e){if(e&&e.container){if("string"==typeof e.container)return window.document.documentElement.querySelector(e.container);if(L.tools.isNode(e.container))return e.container;console.log('ScrollReveal: invalid container "'+e.container+'" provided.'),console.log("ScrollReveal: falling back to default container.")}return L.defaults.container}function i(e,t){return"string"==typeof e?Array.prototype.slice.call(t.querySelectorAll(e)):L.tools.isNode(e)?[e]:L.tools.isNodeList(e)?Array.prototype.slice.call(e):[]}function o(){return++L.uid}function r(e,t,n){t.container&&(t.container=n),e.config?e.config=L.tools.extendClone(e.config,t):e.config=L.tools.extendClone(L.defaults,t),"top"===e.config.origin||"bottom"===e.config.origin?e.config.axis="Y":e.config.axis="X"}function s(e){var t=window.getComputedStyle(e.domEl);e.styles||(e.styles={transition:{},transform:{},computed:{}},e.styles.inline=e.domEl.getAttribute("style")||"",e.styles.inline+="; visibility: visible; ",e.styles.computed.opacity=t.opacity,t.transition&&"all 0s ease 0s"!==t.transition?e.styles.computed.transition=t.transition+", ":e.styles.computed.transition=""),e.styles.transition.instant=a(e,0),e.styles.transition.delayed=a(e,e.config.delay),e.styles.transform.initial=" -webkit-transform:",e.styles.transform.target=" -webkit-transform:",l(e),e.styles.transform.initial+="transform:",e.styles.transform.target+="transform:",l(e)}function a(e,t){var n=e.config;return"-webkit-transition: "+e.styles.computed.transition+"-webkit-transform "+n.duration/1e3+"s "+n.easing+" "+t/1e3+"s, opacity "+n.duration/1e3+"s "+n.easing+" "+t/1e3+"s; transition: "+e.styles.computed.transition+"transform "+n.duration/1e3+"s "+n.easing+" "+t/1e3+"s, opacity "+n.duration/1e3+"s "+n.easing+" "+t/1e3+"s; "}function l(e){var t,n=e.config,i=e.styles.transform;t="top"===n.origin||"left"===n.origin?/^-/.test(n.distance)?n.distance.substr(1):"-"+n.distance:n.distance,parseInt(n.distance)&&(i.initial+=" translate"+n.axis+"("+t+")",i.target+=" translate"+n.axis+"(0)"),n.scale&&(i.initial+=" scale("+n.scale+")",i.target+=" scale(1)"),n.rotate.x&&(i.initial+=" rotateX("+n.rotate.x+"deg)",i.target+=" rotateX(0)"),n.rotate.y&&(i.initial+=" rotateY("+n.rotate.y+"deg)",i.target+=" rotateY(0)"),n.rotate.z&&(i.initial+=" rotateZ("+n.rotate.z+"deg)",i.target+=" rotateZ(0)"),i.initial+="; opacity: "+n.opacity+";",i.target+="; opacity: "+e.styles.computed.opacity+";"}function c(e){var t=e.config.container;t&&-1===L.store.containers.indexOf(t)&&L.store.containers.push(e.config.container),L.store.elements[e.id]=e}function u(e,t,n){var i={target:e,config:t,interval:n};L.history.push(i)}function f(){if(L.isSupported()){p();for(var e=0;e<L.store.containers.length;e++)L.store.containers[e].addEventListener("scroll",d),L.store.containers[e].addEventListener("resize",d);L.initialized||(window.addEventListener("scroll",d),window.addEventListener("resize",d),L.initialized=!0)}return L}function d(){M(p)}function h(){var e,t,n,i;L.tools.forOwn(L.sequences,function(o){i=L.sequences[o],e=!1;for(var r=0;r<i.elemIds.length;r++)n=i.elemIds[r],t=L.store.elements[n],O(t)&&!e&&(e=!0);i.active=e})}function p(){var e,t;h(),L.tools.forOwn(L.store.elements,function(n){t=L.store.elements[n],e=y(t),v(t)?(t.config.beforeReveal(t.domEl),e?t.domEl.setAttribute("style",t.styles.inline+t.styles.transform.target+t.styles.transition.delayed):t.domEl.setAttribute("style",t.styles.inline+t.styles.transform.target+t.styles.transition.instant),g("reveal",t,e),t.revealing=!0,t.seen=!0,t.sequence&&m(t,e)):w(t)&&(t.config.beforeReset(t.domEl),t.domEl.setAttribute("style",t.styles.inline+t.styles.transform.initial+t.styles.transition.instant),g("reset",t),t.revealing=!1)})}function m(e,t){var n=0,i=0,o=L.sequences[e.sequence.id];o.blocked=!0,t&&"onload"===e.config.useDelay&&(i=e.config.delay),e.sequence.timer&&(n=Math.abs(e.sequence.timer.started-new Date),window.clearTimeout(e.sequence.timer)),e.sequence.timer={started:new Date},e.sequence.timer.clock=window.setTimeout(function(){o.blocked=!1,e.sequence.timer=null,d()},Math.abs(o.interval)+i-n)}function g(e,t,n){var i=0,o=0,r="after";switch(e){case"reveal":o=t.config.duration,n&&(o+=t.config.delay),r+="Reveal";break;case"reset":o=t.config.duration,r+="Reset"}t.timer&&(i=Math.abs(t.timer.started-new Date),window.clearTimeout(t.timer.clock)),t.timer={started:new Date},t.timer.clock=window.setTimeout(function(){t.config[r](t.domEl),t.timer=null},o-i)}function v(e){if(e.sequence){var t=L.sequences[e.sequence.id];return t.active&&!t.blocked&&!e.revealing&&!e.disabled}return O(e)&&!e.revealing&&!e.disabled}function y(e){var t=e.config.useDelay;return"always"===t||"onload"===t&&!L.initialized||"once"===t&&!e.seen}function w(e){if(e.sequence){return!L.sequences[e.sequence.id].active&&e.config.reset&&e.revealing&&!e.disabled}return!O(e)&&e.config.reset&&e.revealing&&!e.disabled}function b(e){return{width:e.clientWidth,height:e.clientHeight}}function x(e){if(e&&e!==window.document.documentElement){var t=E(e);return{x:e.scrollLeft+t.left,y:e.scrollTop+t.top}}return{x:window.pageXOffset,y:window.pageYOffset}}function E(e){var t=0,n=0,i=e.offsetHeight,o=e.offsetWidth;do{isNaN(e.offsetTop)||(t+=e.offsetTop),isNaN(e.offsetLeft)||(n+=e.offsetLeft),e=e.offsetParent}while(e);return{top:t,left:n,height:i,width:o}}function O(e){var t=E(e.domEl),n=b(e.config.container),i=x(e.config.container),o=e.config.viewFactor,r=t.height,s=t.width,a=t.top,l=t.left,c=a+r,u=l+s;return function(){var t=a+r*o,f=l+s*o,d=c-r*o,h=u-s*o,p=i.y+e.config.viewOffset.top,m=i.x+e.config.viewOffset.left,g=i.y-e.config.viewOffset.bottom+n.height,v=i.x-e.config.viewOffset.right+n.width;return t<g&&d>p&&f<v&&h>m}()||function(){return"fixed"===window.getComputedStyle(e.domEl).position}()}function T(){}var L,M;e.prototype.defaults={origin:"bottom",distance:"20px",duration:500,delay:0,rotate:{x:0,y:0,z:0},opacity:0,scale:.9,easing:"cubic-bezier(0.6, 0.2, 0.1, 1)",container:window.document.documentElement,mobile:!0,reset:!1,useDelay:"always",viewFactor:.2,viewOffset:{top:0,right:0,bottom:0,left:0},beforeReveal:function(e){},beforeReset:function(e){},afterReveal:function(e){},afterReset:function(e){}},e.prototype.isSupported=function(){var e=document.documentElement.style;return"WebkitTransition"in e&&"WebkitTransform"in e||"transition"in e&&"transform"in e},e.prototype.reveal=function(e,t,a,l){var d,h,p,m,g,v;if(void 0!==t&&"number"==typeof t?(a=t,t={}):void 0!==t&&null!==t||(t={}),d=n(t),h=i(e,d),!h.length)return console.log('ScrollReveal: reveal on "'+e+'" failed, no elements found.'),L;a&&"number"==typeof a&&(v=o(),g=L.sequences[v]={id:v,interval:a,elemIds:[],active:!1});for(var y=0;y<h.length;y++)m=h[y].getAttribute("data-sr-id"),m?p=L.store.elements[m]:(p={id:o(),domEl:h[y],seen:!1,revealing:!1},p.domEl.setAttribute("data-sr-id",p.id)),g&&(p.sequence={id:g.id,index:g.elemIds.length},g.elemIds.push(p.id)),r(p,t,d),s(p),c(p),L.tools.isMobile()&&!p.config.mobile||!L.isSupported()?(p.domEl.setAttribute("style",p.styles.inline),p.disabled=!0):p.revealing||p.domEl.setAttribute("style",p.styles.inline+p.styles.transform.initial);return!l&&L.isSupported()&&(u(e,t,a),L.initTimeout&&window.clearTimeout(L.initTimeout),L.initTimeout=window.setTimeout(f,0)),L},e.prototype.sync=function(){if(L.history.length&&L.isSupported()){for(var e=0;e<L.history.length;e++){var t=L.history[e];L.reveal(t.target,t.config,t.interval,!0)}f()}else console.log("ScrollReveal: sync failed, no reveals found.");return L},T.prototype.isObject=function(e){return null!==e&&"object"==typeof e&&e.constructor===Object},T.prototype.isNode=function(e){return"object"==typeof window.Node?e instanceof window.Node:e&&"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},T.prototype.isNodeList=function(e){var t=Object.prototype.toString.call(e),n=/^\[object (HTMLCollection|NodeList|Object)\]$/;return"object"==typeof window.NodeList?e instanceof window.NodeList:e&&"object"==typeof e&&n.test(t)&&"number"==typeof e.length&&(0===e.length||this.isNode(e[0]))},T.prototype.forOwn=function(e,t){if(!this.isObject(e))throw new TypeError('Expected "object", but received "'+typeof e+'".');for(var n in e)e.hasOwnProperty(n)&&t(n)},T.prototype.extend=function(e,t){return this.forOwn(t,function(n){this.isObject(t[n])?(e[n]&&this.isObject(e[n])||(e[n]={}),this.extend(e[n],t[n])):e[n]=t[n]}.bind(this)),e},T.prototype.extendClone=function(e,t){return this.extend(this.extend({},e),t)},T.prototype.isMobile=function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},M=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)},"function"==typeof define&&"object"==typeof define.amd&&define.amd?define(function(){return e}):void 0!==t&&t.exports?t.exports=e:window.ScrollReveal=e}()},{}],"smooth-scroll":[function(e,t,n){(function(e){!function(e,i){"function"==typeof define&&define.amd?define([],function(){return i(e)}):"object"==typeof n?t.exports=i(e):e.SmoothScroll=i(e)}(void 0!==e?e:"undefined"!=typeof window?window:this,function(e){"use strict";var t="querySelector"in document&&"addEventListener"in e&&"requestAnimationFrame"in e&&"closest"in e.Element.prototype,n={ignore:"[data-scroll-ignore]",header:null,speed:500,offset:0,easing:"easeInOutCubic",customEasing:null,before:function(){},after:function(){}},i=function(){for(var e={},t=0,n=arguments.length;t<n;t++){var i=arguments[t];!function(t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}(i)}return e},o=function(t){return parseInt(e.getComputedStyle(t).height,10)},r=function(e){"#"===e.charAt(0)&&(e=e.substr(1));for(var t,n=String(e),i=n.length,o=-1,r="",s=n.charCodeAt(0);++o<i;){if(0===(t=n.charCodeAt(o)))throw new InvalidCharacterError("Invalid character: the input contains U+0000.");r+=t>=1&&t<=31||127==t||0===o&&t>=48&&t<=57||1===o&&t>=48&&t<=57&&45===s?"\\"+t.toString(16)+" ":t>=128||45===t||95===t||t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122?n.charAt(o):"\\"+n.charAt(o)}return"#"+r},s=function(e,t){var n;return"easeInQuad"===e.easing&&(n=t*t),"easeOutQuad"===e.easing&&(n=t*(2-t)),"easeInOutQuad"===e.easing&&(n=t<.5?2*t*t:(4-2*t)*t-1),"easeInCubic"===e.easing&&(n=t*t*t),"easeOutCubic"===e.easing&&(n=--t*t*t+1),"easeInOutCubic"===e.easing&&(n=t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1),"easeInQuart"===e.easing&&(n=t*t*t*t),"easeOutQuart"===e.easing&&(n=1- --t*t*t*t),"easeInOutQuart"===e.easing&&(n=t<.5?8*t*t*t*t:1-8*--t*t*t*t),"easeInQuint"===e.easing&&(n=t*t*t*t*t),"easeOutQuint"===e.easing&&(n=1+--t*t*t*t*t),"easeInOutQuint"===e.easing&&(n=t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t),e.customEasing&&(n=e.customEasing(t)),n||t},a=function(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)},l=function(e,t,n){var i=0;if(e.offsetParent)do{i+=e.offsetTop,e=e.offsetParent}while(e);return i=Math.max(i-t-n,0)},c=function(e){return e?o(e)+e.offsetTop:0},u=function(t,n,i){i||(t.focus(),document.activeElement.id!==t.id&&(t.setAttribute("tabindex","-1"),t.focus(),t.style.outline="none"),e.scrollTo(0,n))},f=function(t){return!!("matchMedia"in e&&e.matchMedia("(prefers-reduced-motion)").matches)};return function(o,d){var h,p,m,g,v,y,w,b={};b.cancelScroll=function(){cancelAnimationFrame(w)},b.animateScroll=function(t,o,r){var f=i(h||n,r||{}),d="[object Number]"===Object.prototype.toString.call(t),p=d||!t.tagName?null:t;if(d||p){var m=e.pageYOffset;f.header&&!g&&(g=document.querySelector(f.header)),v||(v=c(g));var y,w,x,E=d?t:l(p,v,parseInt("function"==typeof f.offset?f.offset():f.offset,10)),O=E-m,T=a(),L=0,M=function(n,i){var r=e.pageYOffset;if(n==i||r==i||(m<i&&e.innerHeight+r)>=T)return b.cancelScroll(),u(t,i,d),f.after(t,o),y=null,!0},j=function(t){y||(y=t),L+=t-y,w=L/parseInt(f.speed,10),w=w>1?1:w,x=m+O*s(f,w),e.scrollTo(0,Math.floor(x)),M(x,E)||(e.requestAnimationFrame(j),y=t)};0===e.pageYOffset&&e.scrollTo(0,0),f.before(t,o),b.cancelScroll(),e.requestAnimationFrame(j)}};var x=function(e){p&&(p.id=p.getAttribute("data-scroll-id"),b.animateScroll(p,m),p=null,m=null)},E=function(t){if(!f()&&0===t.button&&!t.metaKey&&!t.ctrlKey&&(m=t.target.closest(o))&&"a"===m.tagName.toLowerCase()&&!t.target.closest(h.ignore)&&m.hostname===e.location.hostname&&m.pathname===e.location.pathname&&/#/.test(m.href)){var n;try{n=r(decodeURIComponent(m.hash))}catch(e){n=r(m.hash)}if("#"===n){t.preventDefault(),p=document.body;var i=p.id?p.id:"smooth-scroll-top";return p.setAttribute("data-scroll-id",i),p.id="",void(e.location.hash.substring(1)===i?x():e.location.hash=i)}(p=document.querySelector(n))&&(p.setAttribute("data-scroll-id",p.id),p.id="",m.hash===e.location.hash&&(t.preventDefault(),x()))}},O=function(e){y||(y=setTimeout(function(){y=null,v=c(g)},66))};return b.destroy=function(){h&&(document.removeEventListener("click",E,!1),e.removeEventListener("resize",O,!1),b.cancelScroll(),h=null,p=null,m=null,g=null,v=null,y=null,w=null)},b.init=function(o){t&&(b.destroy(),h=i(n,o||{}),g=h.header?document.querySelector(h.header):null,v=c(g),document.addEventListener("click",E,!1),e.addEventListener("hashchange",x,!1),g&&e.addEventListener("resize",O,!1))},b.init(d),b}})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],"vanilla-tilt":[function(e,t,n){"use strict";var i=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},o=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(i(this,e),!(t instanceof Node))throw"Can't initialize VanillaTilt because "+t+" is not a Node.";this.width=null,this.height=null,this.left=null,this.top=null,this.transitionTimeout=null,this.updateCall=null,this.updateBind=this.update.bind(this),this.resetBind=this.reset.bind(this),this.element=t,this.settings=this.extendSettings(n),this.reverse=this.settings.reverse?-1:1,this.glare=this.isSettingTrue(this.settings.glare),this.glarePrerender=this.isSettingTrue(this.settings["glare-prerender"]),this.glare&&this.prepareGlare(),this.addEventListeners()}return e.prototype.isSettingTrue=function(e){return""===e||!0===e||1===e},e.prototype.addEventListeners=function(){this.onMouseEnterBind=this.onMouseEnter.bind(this),this.onMouseMoveBind=this.onMouseMove.bind(this),this.onMouseLeaveBind=this.onMouseLeave.bind(this),this.onWindowResizeBind=this.onWindowResizeBind.bind(this),this.element.addEventListener("mouseenter",this.onMouseEnterBind),this.element.addEventListener("mousemove",this.onMouseMoveBind),this.element.addEventListener("mouseleave",this.onMouseLeaveBind),this.glare&&window.addEventListener("resize",this.onWindowResizeBind)},e.prototype.removeEventListeners=function(){this.element.removeEventListener("mouseenter",this.onMouseEnterBind),this.element.removeEventListener("mousemove",this.onMouseMoveBind),this.element.removeEventListener("mouseleave",this.onMouseLeaveBind),this.glare&&window.removeEventListener("resize",this.onWindowResizeBind)},e.prototype.destroy=function(){clearTimeout(this.transitionTimeout),null!==this.updateCall&&cancelAnimationFrame(this.updateCall),this.reset(),this.removeEventListeners(),this.element.vanillaTilt=null,delete this.element.vanillaTilt,this.element=null},e.prototype.onMouseEnter=function(e){this.updateElementPosition(),this.element.style.willChange="transform",this.setTransition()},e.prototype.onMouseMove=function(e){null!==this.updateCall&&cancelAnimationFrame(this.updateCall),this.event=e,this.updateCall=requestAnimationFrame(this.updateBind)},e.prototype.onMouseLeave=function(e){this.setTransition(),this.settings.reset&&requestAnimationFrame(this.resetBind)},e.prototype.reset=function(){this.event={pageX:this.left+this.width/2,pageY:this.top+this.height/2},this.element.style.transform="perspective("+this.settings.perspective+"px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)",this.glare&&(this.glareElement.style.transform="rotate(180deg) translate(-50%, -50%)",this.glareElement.style.opacity="0")},e.prototype.getValues=function(){var e=(this.event.clientX-this.left)/this.width,t=(this.event.clientY-this.top)/this.height;return e=Math.min(Math.max(e,0),1),t=Math.min(Math.max(t,0),1),{tiltX:(this.reverse*(this.settings.max/2-e*this.settings.max)).toFixed(2),tiltY:(this.reverse*(t*this.settings.max-this.settings.max/2)).toFixed(2),percentageX:100*e,percentageY:100*t,angle:Math.atan2(this.event.clientX-(this.left+this.width/2),-(this.event.clientY-(this.top+this.height/2)))*(180/Math.PI)}},e.prototype.updateElementPosition=function(){var e=this.element.getBoundingClientRect();this.width=this.element.offsetWidth,this.height=this.element.offsetHeight,this.left=e.left,this.top=e.top},e.prototype.update=function(){var e=this.getValues();this.element.style.transform="perspective("+this.settings.perspective+"px) rotateX("+("x"===this.settings.axis?0:e.tiltY)+"deg) rotateY("+("y"===this.settings.axis?0:e.tiltX)+"deg) scale3d("+this.settings.scale+", "+this.settings.scale+", "+this.settings.scale+")",this.glare&&(this.glareElement.style.transform="rotate("+e.angle+"deg) translate(-50%, -50%)",this.glareElement.style.opacity=""+e.percentageY*this.settings["max-glare"]/100),this.element.dispatchEvent(new CustomEvent("tiltChange",{detail:e})),this.updateCall=null},e.prototype.prepareGlare=function(){if(!this.glarePrerender){var e=document.createElement("div");e.classList.add("js-tilt-glare");var t=document.createElement("div");t.classList.add("js-tilt-glare-inner"),e.appendChild(t),this.element.appendChild(e)}this.glareElementWrapper=this.element.querySelector(".js-tilt-glare"),this.glareElement=this.element.querySelector(".js-tilt-glare-inner"),this.glarePrerender||(Object.assign(this.glareElementWrapper.style,{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",overflow:"hidden"}),Object.assign(this.glareElement.style,{position:"absolute",top:"50%",left:"50%","pointer-events":"none","background-image":"linear-gradient(0deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%)",width:2*this.element.offsetWidth+"px",height:2*this.element.offsetWidth+"px",transform:"rotate(180deg) translate(-50%, -50%)","transform-origin":"0% 0%",opacity:"0"}))},e.prototype.updateGlareSize=function(){Object.assign(this.glareElement.style,{width:""+2*this.element.offsetWidth,height:""+2*this.element.offsetWidth})},e.prototype.onWindowResizeBind=function(){this.updateGlareSize()},e.prototype.setTransition=function(){var e=this;clearTimeout(this.transitionTimeout),this.element.style.transition=this.settings.speed+"ms "+this.settings.easing,this.glare&&(this.glareElement.style.transition="opacity "+this.settings.speed+"ms "+this.settings.easing),this.transitionTimeout=setTimeout(function(){e.element.style.transition="",e.glare&&(e.glareElement.style.transition="")},this.settings.speed)},e.prototype.extendSettings=function(e){var t={reverse:!1,max:35,perspective:1e3,easing:"cubic-bezier(.03,.98,.52,.99)",scale:"1",speed:"300",transition:!0,axis:null,glare:!1,
"max-glare":1,"glare-prerender":!1,reset:!0},n={};for(var i in t)if(i in e)n[i]=e[i];else if(this.element.hasAttribute("data-tilt-"+i)){var o=this.element.getAttribute("data-tilt-"+i);try{n[i]=JSON.parse(o)}catch(e){n[i]=o}}else n[i]=t[i];return n},e.init=function(t,n){t instanceof Node&&(t=[t]),t instanceof NodeList&&(t=[].slice.call(t)),t instanceof Array&&t.forEach(function(t){"vanillaTilt"in t||(t.vanillaTilt=new e(t,n))})},e}();"undefined"!=typeof document&&(window.VanillaTilt=o,o.init(document.querySelectorAll("[data-tilt]"))),t.exports=o},{}]},{},[]);