/*! * fullPage 3.0.5 - Extensions 0.1.8 * https://github.com/alvarotrigo/fullPage.js * @license http://alvarotrigo.com/fullPage/extensions/#license * * Copyright (C) 2018 alvarotrigo.com - A project by Alvaro Trigo */ !function(e,t,n,o,r){"function"==typeof define&&define.amd?define(function(){return e.fullpage=o(t,n),e.fullpage}):"object"==typeof exports?module.exports=o(t,n):t.fullpage=o(t,n)}(this,window,document,function(Ut,_t){"use strict";var Qt="fullpage-wrapper",Jt="."+Qt,Kt="fp-responsive",$t="fp-notransition",qt="fp-destroyed",en="fp-enabled",tn="fp-viewing",nn="active",on="."+nn,rn="fp-completely",ln="fp-section",an="."+ln,sn=an+on,cn="fp-tableCell",un="."+cn,dn="fp-auto-height",fn="fp-normal-scroll",vn="fp-nav",pn="#"+vn,hn="fp-tooltip",gn="fp-slide",mn="."+gn,Sn=mn+on,bn="fp-slides",yn="."+bn,wn="fp-slidesContainer",En="."+wn,xn="fp-table",An="fp-slidesNav",Ln="."+An,Mn=Ln+" a",e="fp-controlArrow",Tn="."+e,On="fp-prev",kn=Tn+".fp-prev",Cn=Tn+".fp-next";function Hn(e,t){Ut.console&&Ut.console[e]&&Ut.console[e]("fullPage: "+t)}function Rn(e,t){return(t=1'+ye(r,"Section")+"";var l=g.navigationTooltips[r];void 0!==l&&""!==l&&(o+='
'+l+"
"),o+=""}Rn("ul",n)[0].innerHTML=o,Nn(Rn(pn),{"margin-top":"-"+Rn(pn)[0].offsetHeight/2+"px"}),Gn(Rn("a",Rn("li",Rn(pn)[0])[Xn(Rn(sn)[0],an)]),nn)}(),Rn('iframe[src*="youtube.com/embed/"]',y).forEach(function(e){var t,n,o;n="enablejsapi=1",o=(t=e).getAttribute("src"),t.setAttribute("src",o+(/\?/.test(o)?"&":"?")+n)}),g.fadingEffect&&S.fadingEffect&&S.fadingEffect.apply(),Nt("cards")&&S.cards.init(),g.scrollOverflow&&(f=g.scrollOverflowHandler.init(g))}(),ne(!0),oe(!0),K(g.autoScrolling,"internal"),vt(),Ot(),"complete"===_t.readyState&&$e(),Ut.addEventListener("load",$e),g.scrollOverflow||we(),Ut.addEventListener("scroll",Ee),Ut.addEventListener("hashchange",qe),Ut.addEventListener("blur",lt),Ut.addEventListener("resize",ft),_t.addEventListener("keydown",tt),_t.addEventListener("keyup",nt),["click","touchstart"].forEach(function(e){_t.addEventListener(e,ve)}),g.normalScrollElements&&(["mouseenter","touchstart"].forEach(function(e){pe(e,!1)}),["mouseleave","touchend"].forEach(function(e){pe(e,!0)})),Nt("dragAndMove")&&S.dragAndMove.turnOffTouch());var W,Y,D,X=!1,V=0,Z=0,G=0,F=0,U=(new Date).getTime(),_=0,Q=0,J=w;return S}function K(e,t){e||Rt(0),Yt("autoScrolling",e,t);var n=Rn(sn)[0];if(g.autoScrolling&&!g.scrollBar)Nn(r,{overflow:"hidden",height:"100%"}),$(B.recordHistory,"internal"),Nn(y,{"-ms-touch-action":"none","touch-action":"none"}),null!=n&&Rt(n.offsetTop);else if(Nn(r,{overflow:"visible",height:"initial"}),$(!!g.autoScrolling&&B.recordHistory,"internal"),Nn(y,{"-ms-touch-action":"","touch-action":""}),Bt(y),null!=n){var o=Pe(n.offsetTop);o.element.scrollTo(0,o.options)}ro(y,"setAutoScrolling",e)}function $(e,t){Yt("recordHistory",e,t)}function q(e,t){"internal"!==t&&Nt("fadingEffect")&&S.fadingEffect.update(e),Nt("cards")&&S.cards.update(e),Yt("scrollingSpeed",e,t)}function ee(e,t){Yt("fitToSection",e,t)}function te(e){e?(function(){var e,t="";Ut.addEventListener?e="addEventListener":(e="attachEvent",t="on");var n="onwheel"in _t.createElement("div")?"wheel":void 0!==_t.onmousewheel?"mousewheel":"DOMMouseScroll",o=!!R&&{passive:!1};"DOMMouseScroll"==n?_t[e](t+"MozMousePixelScroll",Ce,o):_t[e](t+n,Ce,o)}(),y.addEventListener("mousedown",ot),y.addEventListener("mouseup",rt)):(_t.addEventListener?(_t.removeEventListener("mousewheel",Ce,!1),_t.removeEventListener("wheel",Ce,!1),_t.removeEventListener("MozMousePixelScroll",Ce,!1)):_t.detachEvent("onmousewheel",Ce),y.removeEventListener("mousedown",ot),y.removeEventListener("mouseup",rt))}function ne(t,e){void 0!==e?(e=e.replace(/ /g,"").split(",")).forEach(function(e){zt(t,e,"m")}):zt(t,"all","m"),ro(y,"setAllowScrolling",{value:t,directions:e})}function oe(e){e?(te(!0),function(){if(o||i){g.autoScrolling&&(m.removeEventListener(k.touchmove,Le,{passive:!1}),m.addEventListener(k.touchmove,Le,{passive:!1}));var e=g.touchWrapper;e.removeEventListener(k.touchstart,Oe),e.removeEventListener(k.touchmove,Me,{passive:!1}),e.addEventListener(k.touchstart,Oe),e.addEventListener(k.touchmove,Me,{passive:!1})}}()):(te(!1),function(){if(o||i){g.autoScrolling&&(m.removeEventListener(k.touchmove,Me,{passive:!1}),m.removeEventListener(k.touchmove,Le,{passive:!1}));var e=g.touchWrapper;e.removeEventListener(k.touchstart,Oe),e.removeEventListener(k.touchmove,Me,{passive:!1})}}())}function re(t,e){void 0!==e?(e=e.replace(/ /g,"").split(",")).forEach(function(e){zt(t,e,"k")}):(zt(t,"all","k"),g.keyboardScrolling=t)}function ie(){var e=jn(Rn(sn)[0],an);e||!g.loopTop&&!g.continuousVertical||(e=Dn(Rn(an))),null!=e&&ze(e,null,!0)}function le(){var e=Pn(Rn(sn)[0],an);e||!g.loopBottom&&!g.continuousVertical||(e=Rn(an)[0]),null!=e&&ze(e,null,!1)}function ae(e,t){q(0,"internal"),se(e,t),q(B.scrollingSpeed,"internal")}function se(e,t){var n=Et(e);void 0!==t?xt(e,t):null!=n&&ze(n)}function ce(e){He("right",e)}function ue(e){He("left",e)}function de(e){if(!zn(y,qt)){E=!0,w=Bn();for(var t=Rn(an),n=0;n'),ao('
')],$n(Rn(yn,l)[0],a),"#fff"!==g.controlArrowColor&&(Nn(Rn(Cn,l),{"border-color":"transparent transparent transparent "+g.controlArrowColor}),Nn(Rn(kn,l),{"border-color":"transparent "+g.controlArrowColor+" transparent transparent"})),g.loopHorizontal||Vn(Rn(kn,l))),g.slidesNavigation&&function(e,t){Un(ao('
    '),e);var n=Rn(Ln,e)[0];Gn(n,"fp-"+g.slidesNavPosition);for(var o=0;o'+ye(o,"Slide")+""),Rn("ul",n)[0]);Nn(n,{"margin-left":"-"+n.innerWidth/2+"px"}),Gn(Rn("a",Rn("li",n)[0]),nn)}(e,n)),t.forEach(function(e){Nn(e,{width:r+"%"}),g.verticalCentered&&bt(e)});var c=Rn(Sn,e)[0];null!=c&&(0!==Xn(Rn(sn),an)||0===Xn(Rn(sn),an)&&0!==Xn(c))?(Ht(c,"internal"),Gn(c,"fp-initial")):Gn(t[0],nn)}function Se(e){return g.offsetSections&&S.offsetSections?Math.round(S.offsetSections.getWindowHeight(e)):Bn()}function be(e,t){t||null!=Rn(sn)[0]||Gn(e,nn),n=Rn(sn)[0],Nn(e,{height:Se(e)+"px"}),g.paddingTop&&Nn(e,{"padding-top":g.paddingTop}),g.paddingBottom&&Nn(e,{"padding-bottom":g.paddingBottom}),void 0!==g.sectionsColor[t]&&Nn(e,{"background-color":g.sectionsColor[t]}),void 0!==g.anchors[t]&&e.setAttribute("data-anchor",g.anchors[t])}function ye(e,t){return g.navigationTooltips[e]||g.anchors[e]||t+" "+(e+1)}function we(){var e,t=Rn(sn)[0];Gn(t,rn),De(t),Xe(t),g.scrollOverflow&&g.scrollOverflowHandler.afterLoad(),(!(e=Et(et().section))||void 0!==e&&Xn(e)===Xn(n))&&oo(g.afterLoad)&&Be("afterLoad",{activeSection:null,element:t,direction:null,anchorLink:t.getAttribute("data-anchor"),sectionIndex:Xn(t,an)}),oo(g.afterRender)&&Be("afterRender"),ro(y,"afterRender")}function Ee(){var e;if(ro(y,"onScroll"),(!g.autoScrolling||g.scrollBar||Nt("dragAndMove"))&&!Wt()){var t=Nt("dragAndMove")?Math.abs(S.dragAndMove.getCurrentScroll()):eo(),n=0,o=t+Bn()/2,r=(Nt("dragAndMove")?S.dragAndMove.getDocumentHeight():m.offsetHeight-Bn())===t,i=Rn(an);if(r)n=i.length-1;else if(t)for(var l=0;lMath.abs(V-G)?!a&&Math.abs(Z-F)>Ut.innerWidth/100*g.touchSensitivity&&(FUt.innerHeight/100*g.touchSensitivity&&(G>4,n=(15&r)<<4|(i=c.indexOf(e.charAt(s++)))>>2,o=(3&i)<<6|(l=c.indexOf(e.charAt(s++))),a+=String.fromCharCode(t),64!=i&&(a+=String.fromCharCode(n)),64!=l&&(a+=String.fromCharCode(o));return a=function(e){for(var t,n="",o=0,r=0,i=0;oQ&&d.m.down&&le()),Q=e.pageY}function st(e,t,n){var o=Kn(e,an),r={slides:e,destiny:t,direction:n,destinyPos:{left:t.offsetLeft},slideIndex:Xn(t),section:o,sectionIndex:Xn(o,an),anchorLink:o.getAttribute("data-anchor"),slidesNav:Rn(Ln,o)[0],slideAnchor:Tt(t),prevSlide:Rn(Sn,o)[0],prevSlideIndex:Xn(Rn(Sn,o)[0]),localIsResizing:E};r.xMovement=St(r.prevSlideIndex,r.slideIndex),r.direction=r.direction?r.direction:r.xMovement,r.localIsResizing||(x=!1),jt("parallax","applyHorizontal",r),jt("cards","apply",r),g.onSlideLeave&&!r.localIsResizing&&"none"!==r.xMovement&&oo(g.onSlideLeave)&&!1===Be("onSlideLeave",r)?a=!1:(Gn(t,nn),Fn(to(t),nn),r.localIsResizing||(Ze(r.prevSlide),De(t)),ct(r),zn(o,nn)&&!r.localIsResizing&&Lt(r.slideIndex,r.slideAnchor,r.anchorLink,r.sectionIndex),S.continuousHorizontal&&S.continuousHorizontal.apply(r),Wt()?ut(r):dt(e,r,!0),g.interlockedSlides&&S.interlockedSlides&&(Nt("continuousHorizontal")&&void 0!==n&&n!==r.xMovement||S.interlockedSlides.apply(r)))}function ct(e){!g.loopHorizontal&&g.controlArrows&&(lo(Rn(kn,e.section),0!==e.slideIndex),lo(Rn(Cn,e.section),null!=Yn(e.destiny)))}function ut(e){var t,n;S.continuousHorizontal&&S.continuousHorizontal.afterSlideLoads(e),t=e.slidesNav,n=e.slideIndex,g.slidesNavigation&&null!=t&&(Fn(Rn(on,t),nn),Gn(Rn("a",Rn("li",t)[n]),nn)),e.localIsResizing||(jt("parallax","afterSlideLoads"),jt("scrollOverflowReset","setPrevious",e.prevSlide),jt("scrollOverflowReset","reset"),oo(g.afterSlideLoad)&&Be("afterSlideLoad",e),x=!0,Xe(e.destiny)),a=!1,Nt("interlockedSlides")&&S.interlockedSlides.apply(e)}function dt(e,t,n){var o=t.destinyPos;if(g.css3){var r="translate3d(-"+Math.round(o.left)+"px, 0px, 0px)";S.test.translate3dH[t.sectionIndex]=r,Nn(pt(Rn(En,e)),It(r)),h=setTimeout(function(){n&&ut(t)},g.scrollingSpeed)}else S.test.left[t.sectionIndex]=Math.round(o.left),Xt(e,Math.round(o.left),g.scrollingSpeed,function(){n&&ut(t)})}function ft(){if(ro(y,"onResize"),vt(),o){var e=_t.activeElement;if(!io(e,"textarea")&&!io(e,"input")&&!io(e,"select")){var t=Bn();Math.abs(t-J)>20*Math.max(J,t)/100&&(v=setTimeout(function(){de(!0),J=t},navigator.userAgent.match("CriOS")?50:0))}}else clearTimeout(v),v=setTimeout(function(){de(!0)},350)}function vt(){var e=g.responsive||g.responsiveWidth,t=g.responsiveHeight,n=e&&Ut.innerWidth