!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="./",n(n.s=128)}({10:function(e,t,n){"use strict";e.exports=n(52)},100:function(e,t,n){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.r(t);var o=n(10),i=n(5),s=n.n(i),a=s.a.shape({trySubscribe:s.a.func.isRequired,tryUnsubscribe:s.a.func.isRequired,notifyNestedSubs:s.a.func.isRequired,isSubscribed:s.a.func.isRequired}),c=s.a.shape({subscribe:s.a.func.isRequired,dispatch:s.a.func.isRequired,getState:s.a.func.isRequired});function u(e){var t;void 0===e&&(e="store");var n=e+"Subscription",i=function(t){r(s,t);var i=s.prototype;function s(n,r){var o;return(o=t.call(this,n,r)||this)[e]=n.store,o}return i.getChildContext=function(){var t;return(t={})[e]=this[e],t[n]=null,t},i.render=function(){return o.Children.only(this.props.children)},s}(o.Component);return i.propTypes={store:c.isRequired,children:s.a.element.isRequired},i.childContextTypes=((t={})[e]=c.isRequired,t[n]=a,t),i}var l=u();function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(){return(p=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}var h=n(58),v=n.n(h),g=n(25),y=n.n(g),m=n(36),b=null,w={notify:function(){}};var S=function(){function e(e,t,n){this.store=e,this.parentSub=t,this.onStateChange=n,this.unsubscribe=null,this.listeners=w}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){var e,t;this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=(e=[],t=[],{clear:function(){t=b,e=b},notify:function(){for(var n=e=t,r=0;r, or explicitly pass "'+T+'" as a prop to "'+i+'".'),r.initSelector(),r.initSubscription(),r}r(a,n);var c=a.prototype;return c.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return(e={})[I]=t||this.context[I],e},c.componentDidMount=function(){x&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},c.componentWillReceiveProps=function(e){this.selector.run(e)},c.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},c.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=P,this.store=null,this.selector.run=P,this.selector.shouldComponentUpdate=!1},c.getWrappedInstance=function(){return y()(N,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+g+"() call."),this.wrappedInstance},c.setWrappedInstance=function(e){this.wrappedInstance=e},c.initSelector=function(){var t=e(this.store.dispatch,s);this.selector=function(e,t){var n={run:function(r){try{var o=e(t.getState(),r);(o!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=o,n.error=null)}catch(e){n.shouldComponentUpdate=!0,n.error=e}}};return n}(t,this.store),this.selector.run(this.props)},c.initSubscription=function(){if(x){var e=(this.propsMode?this.props:this.context)[I];this.subscription=new S(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},c.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(E)):this.notifyNestedSubs()},c.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},c.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},c.addExtraProps=function(e){if(!(N||w||this.propsMode&&this.subscription))return e;var t=p({},e);return N&&(t.ref=this.setWrappedInstance),w&&(t[w]=this.renderCount++),this.propsMode&&this.subscription&&(t[I]=this.subscription),t},c.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return Object(o.createElement)(t,this.addExtraProps(e.props))},a}(o.Component);return a.WrappedComponent=t,a.displayName=i,a.childContextTypes=M,a.contextTypes=A,a.propTypes=A,v()(a,t)}}var x=Object.prototype.hasOwnProperty;function C(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function T(e,t){if(C(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function L(e,t){return e===t}var q,B,W,G,H,V,Y,K,X,J,Q,Z,ee=(W=(B=void 0===q?{}:q).connectHOC,G=void 0===W?R:W,H=B.mapStateToPropsFactories,V=void 0===H?A:H,Y=B.mapDispatchToPropsFactories,K=void 0===Y?F:Y,X=B.mergePropsFactories,J=void 0===X?k:X,Q=B.selectorFactory,Z=void 0===Q?z:Q,function(e,t,n,r){void 0===r&&(r={});var o=r,i=o.pure,s=void 0===i||i,a=o.areStatesEqual,c=void 0===a?L:a,u=o.areOwnPropsEqual,l=void 0===u?T:u,f=o.areStatePropsEqual,h=void 0===f?T:f,v=o.areMergedPropsEqual,g=void 0===v?T:v,y=d(o,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),m=$(e,V,"mapStateToProps"),b=$(t,K,"mapDispatchToProps"),w=$(n,J,"mergeProps");return G(Z,p({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:m,initMapDispatchToProps:b,initMergeProps:w,pure:s,areStatesEqual:c,areOwnPropsEqual:l,areStatePropsEqual:h,areMergedPropsEqual:g},y))});n.d(t,"Provider",function(){return l}),n.d(t,"createProvider",function(){return u}),n.d(t,"connectAdvanced",function(){return R}),n.d(t,"connect",function(){return ee})},128:function(e,t,n){window.Redux=n(37),window.ReactRedux=n(100),window.ScrollMagic=n(74)},25:function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,i,s,a){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,s,a],l=0;(c=new Error(t.replace(/%s/g,function(){return u[l++]}))).name="Invariant Violation"}throw c.framesToPop=1,c}}},36:function(e,t,n){"use strict";e.exports=n(73)},37:function(e,t,n){"use strict";n.r(t);var r=n(57),o="object"==typeof self&&self&&self.Object===Object&&self,i=(r.a||o||Function("return this")()).Symbol,s=Object.prototype,a=s.hasOwnProperty,c=s.toString,u=i?i.toStringTag:void 0;var l=function(e){var t=a.call(e,u),n=e[u];try{e[u]=void 0;var r=!0}catch(e){}var o=c.call(e);return r&&(t?e[u]=n:delete e[u]),o},f=Object.prototype.toString;var p=function(e){return f.call(e)},d="[object Null]",h="[object Undefined]",v=i?i.toStringTag:void 0;var g=function(e){return null==e?void 0===e?h:d:v&&v in Object(e)?l(e):p(e)};var y=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object);var m=function(e){return null!=e&&"object"==typeof e},b="[object Object]",w=Function.prototype,S=Object.prototype,O=w.toString,E=S.hasOwnProperty,P=O.call(Object);var R=function(e){if(!m(e)||g(e)!=b)return!1;var t=y(e);if(null===t)return!0;var n=E.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&O.call(n)==P},x=n(38),C={INIT:"@@redux/INIT"};function T(e,t,n){var r;if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(T)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var o=e,i=t,s=[],a=s,c=!1;function u(){a===s&&(a=s.slice())}function l(){return i}function f(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return u(),a.push(e),function(){if(t){t=!1,u();var n=a.indexOf(e);a.splice(n,1)}}}function p(e){if(!R(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(c)throw new Error("Reducers may not dispatch actions.");try{c=!0,i=o(i,e)}finally{c=!1}for(var t=s=a,n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(s)throw s;for(var r=!1,o={},a=0;aN.length&&N.push(e)}function F(e,t,n,r){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var i=!1;if(null===e)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case c:case u:i=!0}}if(i)return n(r,e,""===t?"."+A(e,0):t),1;if(i=0,t=""===t?".":t+":",Array.isArray(e))for(var s=0;s As of ScrollMagic 2.0.0 you need to use 'new ScrollMagic.Controller()' to create a new controller instance. Use 'new ScrollMagic.Scene()' to instance a scene.")};e.version="2.0.6",window.addEventListener("mousewheel",function(){}),e.Controller=function(n){var o,i,s="ScrollMagic.Controller",a=t.defaults,c=this,u=r.extend({},a,n),l=[],f=!1,p=0,d="PAUSED",h=!0,v=0,g=!0,y=function(){u.refreshInterval>0&&(i=window.setTimeout(P,u.refreshInterval))},m=function(){return u.vertical?r.get.scrollTop(u.container):r.get.scrollLeft(u.container)},b=function(){return u.vertical?r.get.height(u.container):r.get.width(u.container)},w=this._setScrollPos=function(e){u.vertical?h?window.scrollTo(r.get.scrollLeft(),e):u.container.scrollTop=e:h?window.scrollTo(e,r.get.scrollTop()):u.container.scrollLeft=e},S=function(){if(g&&f){var e=r.type.Array(f)?f:l.slice(0);f=!1;var t=p,n=(p=c.scrollPos())-t;0!==n&&(d=n>0?"FORWARD":"REVERSE"),"REVERSE"===d&&e.reverse(),e.forEach(function(t,n){R(3,"updating Scene "+(n+1)+"/"+e.length+" ("+l.length+" total)"),t.update(!0)}),0===e.length&&u.loglevel>=3&&R(3,"updating 0 Scenes (nothing added to controller)")}},O=function(){o=r.rAF(S)},E=function(e){R(3,"event fired causing an update:",e.type),"resize"==e.type&&(v=b(),d="PAUSED"),!0!==f&&(f=!0,O())},P=function(){if(!h&&v!=b()){var e;try{e=new Event("resize",{bubbles:!1,cancelable:!1})}catch(t){(e=document.createEvent("Event")).initEvent("resize",!1,!1)}u.container.dispatchEvent(e)}l.forEach(function(e,t){e.refresh()}),y()},R=this._log=function(e,t){u.loglevel>=e&&(Array.prototype.splice.call(arguments,1,0,"("+s+") ->"),r.log.apply(window,arguments))};this._options=u;var x=function(e){if(e.length<=1)return e;var t=e.slice(0);return t.sort(function(e,t){return e.scrollOffset()>t.scrollOffset()?1:-1}),t};return this.addScene=function(t){if(r.type.Array(t))t.forEach(function(e,t){c.addScene(e)});else if(t instanceof e.Scene){if(t.controller()!==c)t.addTo(c);else if(l.indexOf(t)<0){for(var n in l.push(t),l=x(l),t.on("shift.controller_sort",function(){l=x(l)}),u.globalSceneOptions)t[n]&&t[n].call(t,u.globalSceneOptions[n]);R(3,"adding Scene (now "+l.length+" total)")}}else R(1,"ERROR: invalid argument supplied for '.addScene()'");return c},this.removeScene=function(e){if(r.type.Array(e))e.forEach(function(e,t){c.removeScene(e)});else{var t=l.indexOf(e);t>-1&&(e.off("shift.controller_sort"),l.splice(t,1),R(3,"removing Scene (now "+l.length+" left)"),e.remove())}return c},this.updateScene=function(t,n){return r.type.Array(t)?t.forEach(function(e,t){c.updateScene(e,n)}):n?t.update(!0):!0!==f&&t instanceof e.Scene&&(-1==(f=f||[]).indexOf(t)&&f.push(t),f=x(f),O()),c},this.update=function(e){return E({type:"resize"}),e&&S(),c},this.scrollTo=function(t,n){if(r.type.Number(t))w.call(u.container,t,n);else if(t instanceof e.Scene)t.controller()===c?c.scrollTo(t.scrollOffset(),n):R(2,"scrollTo(): The supplied scene does not belong to this controller. Scroll cancelled.",t);else if(r.type.Function(t))w=t;else{var o=r.get.elements(t)[0];if(o){for(;o.parentNode.hasAttribute("data-scrollmagic-pin-spacer");)o=o.parentNode;var i=u.vertical?"top":"left",s=r.get.offset(u.container),a=r.get.offset(o);h||(s[i]-=c.scrollPos()),c.scrollTo(a[i]-s[i],n)}else R(2,"scrollTo(): The supplied argument is invalid. Scroll cancelled.",t)}return c},this.scrollPos=function(e){return arguments.length?(r.type.Function(e)?m=e:R(2,"Provided value for method 'scrollPos' is not a function. To change the current scroll position use 'scrollTo()'."),c):m.call(c)},this.info=function(e){var t={size:v,vertical:u.vertical,scrollPos:p,scrollDirection:d,container:u.container,isDocument:h};return arguments.length?void 0!==t[e]?t[e]:void R(1,'ERROR: option "'+e+'" is not available'):t},this.loglevel=function(e){return arguments.length?(u.loglevel!=e&&(u.loglevel=e),c):u.loglevel},this.enabled=function(e){return arguments.length?(g!=e&&(g=!!e,c.updateScene(l,!0)),c):g},this.destroy=function(e){window.clearTimeout(i);for(var t=l.length;t--;)l[t].destroy(e);return u.container.removeEventListener("resize",E),u.container.removeEventListener("scroll",E),r.cAF(o),R(3,"destroyed "+s+" (reset: "+(e?"true":"false")+")"),null},function(){for(var t in u)a.hasOwnProperty(t)||(R(2,'WARNING: Unknown option "'+t+'"'),delete u[t]);if(u.container=r.get.elements(u.container)[0],!u.container)throw R(1,"ERROR creating object "+s+": No valid scroll container supplied"),s+" init failed.";(h=u.container===window||u.container===document.body||!document.body.contains(u.container))&&(u.container=window),v=b(),u.container.addEventListener("resize",E),u.container.addEventListener("scroll",E);var n=parseInt(u.refreshInterval,10);u.refreshInterval=r.type.Number(n)?n:a.refreshInterval,y(),R(3,"added new "+s+" controller (v"+e.version+")")}(),c};var t={defaults:{container:window,vertical:!0,globalSceneOptions:{},loglevel:2,refreshInterval:100}};e.Controller.addOption=function(e,n){t.defaults[e]=n},e.Controller.extend=function(t){var n=this;e.Controller=function(){return n.apply(this,arguments),this.$super=r.extend({},this),t.apply(this,arguments)||this},r.extend(e.Controller,n),e.Controller.prototype=n.prototype,e.Controller.prototype.constructor=e.Controller},e.Scene=function(t){var o,i,s="ScrollMagic.Scene",a=n.defaults,c=this,u=r.extend({},a,t),l="BEFORE",f=0,p={start:0,end:0},d=0,h=!0,v={};this.on=function(e,t){return r.type.Function(t)?(e=e.trim().split(" ")).forEach(function(e){var n=e.split("."),r=n[0],o=n[1];"*"!=r&&(v[r]||(v[r]=[]),v[r].push({namespace:o||"",callback:t}))}):g(1,"ERROR when calling '.on()': Supplied callback for '"+e+"' is not a valid function!"),c},this.off=function(e,t){return e?((e=e.trim().split(" ")).forEach(function(e,n){var r=e.split("."),o=r[0],i=r[1]||"",s="*"===o?Object.keys(v):[o];s.forEach(function(e){for(var n=v[e]||[],r=n.length;r--;){var o=n[r];!o||i!==o.namespace&&"*"!==i||t&&t!=o.callback||n.splice(r,1)}n.length||delete v[e]})}),c):(g(1,"ERROR: Invalid event name supplied."),c)},this.trigger=function(t,n){if(t){var r=t.trim().split("."),o=r[0],i=r[1],s=v[o];g(3,"event fired:",o,n?"->":"",n||""),s&&s.forEach(function(t,r){i&&i!==t.namespace||t.callback.call(c,new e.Event(o,t.namespace,c,n))})}else g(1,"ERROR: Invalid event name supplied.");return c},c.on("change.internal",function(e){"loglevel"!==e.what&&"tweenChanges"!==e.what&&("triggerElement"===e.what?S():"reverse"===e.what&&c.update())}).on("shift.internal",function(e){b(),c.update()});var g=this._log=function(e,t){u.loglevel>=e&&(Array.prototype.splice.call(arguments,1,0,"("+s+") ->"),r.log.apply(window,arguments))};this.addTo=function(t){return t instanceof e.Controller?i!=t&&(i&&i.removeScene(c),i=t,P(),w(!0),S(!0),b(),i.info("container").addEventListener("resize",O),t.addScene(c),c.trigger("add",{controller:i}),g(3,"added "+s+" to controller"),c.update()):g(1,"ERROR: supplied argument of 'addTo()' is not a valid ScrollMagic Controller"),c},this.enabled=function(e){return arguments.length?(h!=e&&(h=!!e,c.update(!0)),c):h},this.remove=function(){if(i){i.info("container").removeEventListener("resize",O);var e=i;i=void 0,e.removeScene(c),c.trigger("remove"),g(3,"removed "+s+" from controller")}return c},this.destroy=function(e){return c.trigger("destroy",{reset:e}),c.remove(),c.off("*.*"),g(3,"destroyed "+s+" (reset: "+(e?"true":"false")+")"),null},this.update=function(e){if(i)if(e)if(i.enabled()&&h){var t,n=i.info("scrollPos");t=u.duration>0?(n-p.start)/(p.end-p.start):n>=p.start?1:0,c.trigger("update",{startPos:p.start,endPos:p.end,scrollPos:n}),c.progress(t)}else y&&"DURING"===l&&C(!0);else i.updateScene(c,!1);return c},this.refresh=function(){return w(),S(),c},this.progress=function(e){if(arguments.length){var t=!1,n=l,r=i?i.info("scrollDirection"):"PAUSED",o=u.reverse||e>=f;if(0===u.duration?(t=f!=e,l=0==(f=e<1&&o?0:1)?"BEFORE":"DURING"):e<0&&"BEFORE"!==l&&o?(f=0,l="BEFORE",t=!0):e>=0&&e<1&&o?(f=e,l="DURING",t=!0):e>=1&&"AFTER"!==l?(f=1,l="AFTER",t=!0):"DURING"!==l||o||C(),t){var s={progress:f,state:l,scrollDirection:r},a=l!=n,p=function(e){c.trigger(e,s)};a&&"DURING"!==n&&(p("enter"),p("BEFORE"===n?"start":"end")),p("progress"),a&&"DURING"!==l&&(p("BEFORE"===l?"start":"end"),p("leave"))}return c}return f};var y,m,b=function(){p={start:d+u.offset},i&&u.triggerElement&&(p.start-=i.info("size")*u.triggerHook),p.end=p.start+u.duration},w=function(e){o&&R("duration",o.call(c))&&!e&&(c.trigger("change",{what:"duration",newval:u.duration}),c.trigger("shift",{reason:"duration"}))},S=function(e){var t=0,n=u.triggerElement;if(i&&(n||d>0)){if(n)if(n.parentNode){for(var o=i.info(),s=r.get.offset(o.container),a=o.vertical?"top":"left";n.parentNode.hasAttribute("data-scrollmagic-pin-spacer");)n=n.parentNode;var l=r.get.offset(n);o.isDocument||(s[a]-=i.scrollPos()),t=l[a]-s[a]}else g(2,"WARNING: triggerElement was removed from DOM and will be reset to",void 0),c.triggerElement(void 0);var f=t!=d;d=t,f&&!e&&c.trigger("shift",{reason:"triggerElementPosition"})}},O=function(e){u.triggerHook>0&&c.trigger("shift",{reason:"containerResize"})},E=r.extend(n.validate,{duration:function(e){if(r.type.String(e)&&e.match(/^(\.|\d)*\d+%$/)){var t=parseFloat(e)/100;e=function(){return i?i.info("size")*t:0}}if(r.type.Function(e)){o=e;try{e=parseFloat(o())}catch(t){e=-1}}if(e=parseFloat(e),!r.type.Number(e)||e<0)throw o?(o=void 0,['Invalid return value of supplied function for option "duration":',e]):['Invalid value for option "duration":',e];return e}}),P=function(e){(e=arguments.length?[e]:Object.keys(E)).forEach(function(e,t){var n;if(E[e])try{n=E[e](u[e])}catch(t){n=a[e];var o=r.type.String(t)?[t]:t;r.type.Array(o)?(o[0]="ERROR: "+o[0],o.unshift(1),g.apply(this,o)):g(1,"ERROR: Problem executing validation callback for option '"+e+"':",t.message)}finally{u[e]=n}})},R=function(e,t){var n=!1,r=u[e];return u[e]!=t&&(u[e]=t,P(e),n=r!=u[e]),n},x=function(e){c[e]||(c[e]=function(t){return arguments.length?("duration"===e&&(o=void 0),R(e,t)&&(c.trigger("change",{what:e,newval:u[e]}),n.shifts.indexOf(e)>-1&&c.trigger("shift",{reason:e})),c):u[e]})};this.controller=function(){return i},this.state=function(){return l},this.scrollOffset=function(){return p.start},this.triggerPosition=function(){var e=u.offset;return i&&(u.triggerElement?e+=d:e+=i.info("size")*c.triggerHook()),e},c.on("shift.internal",function(e){var t="duration"===e.reason;("AFTER"===l&&t||"DURING"===l&&0===u.duration)&&C(),t&&T()}).on("progress.internal",function(e){C()}).on("add.internal",function(e){T()}).on("destroy.internal",function(e){c.removePin(e.reset)});var C=function(e){if(y&&i){var t=i.info(),n=m.spacer.firstChild;if(e||"DURING"!==l){var o={position:m.inFlow?"relative":"absolute",top:0,left:0},s=r.css(n,"position")!=o.position;m.pushFollowers?u.duration>0&&("AFTER"===l&&0===parseFloat(r.css(m.spacer,"padding-top"))?s=!0:"BEFORE"===l&&0===parseFloat(r.css(m.spacer,"padding-bottom"))&&(s=!0)):o[t.vertical?"top":"left"]=u.duration*f,r.css(n,o),s&&T()}else{"fixed"!=r.css(n,"position")&&(r.css(n,{position:"fixed"}),T());var a=r.get.offset(m.spacer,!0),c=u.reverse||0===u.duration?t.scrollPos-p.start:Math.round(f*u.duration*10)/10;a[t.vertical?"top":"left"]+=c,r.css(m.spacer.firstChild,{top:a.top,left:a.left})}}},T=function(){if(y&&i&&m.inFlow){var e="DURING"===l,t=i.info("vertical"),n=m.spacer.firstChild,o=r.isMarginCollapseType(r.css(m.spacer,"display")),s={};m.relSize.width||m.relSize.autoFullWidth?e?r.css(y,{width:r.get.width(m.spacer)}):r.css(y,{width:"100%"}):(s["min-width"]=r.get.width(t?y:n,!0,!0),s.width=e?s["min-width"]:"auto"),m.relSize.height?e?r.css(y,{height:r.get.height(m.spacer)-(m.pushFollowers?u.duration:0)}):r.css(y,{height:"100%"}):(s["min-height"]=r.get.height(t?n:y,!0,!o),s.height=e?s["min-height"]:"auto"),m.pushFollowers&&(s["padding"+(t?"Top":"Left")]=u.duration*f,s["padding"+(t?"Bottom":"Right")]=u.duration*(1-f)),r.css(m.spacer,s)}},j=function(){i&&y&&"DURING"===l&&!i.info("isDocument")&&C()},N=function(){i&&y&&"DURING"===l&&((m.relSize.width||m.relSize.autoFullWidth)&&r.get.width(window)!=r.get.width(m.spacer.parentNode)||m.relSize.height&&r.get.height(window)!=r.get.height(m.spacer.parentNode))&&T()},_=function(e){i&&y&&"DURING"===l&&!i.info("isDocument")&&(e.preventDefault(),i._setScrollPos(i.info("scrollPos")-((e.wheelDelta||e[i.info("vertical")?"wheelDeltaY":"wheelDeltaX"])/3||30*-e.detail)))};this.setPin=function(e,t){if(t=r.extend({},{pushFollowers:!0,spacerClass:"scrollmagic-pin-spacer"},t),!(e=r.get.elements(e)[0]))return g(1,"ERROR calling method 'setPin()': Invalid pin element supplied."),c;if("fixed"===r.css(e,"position"))return g(1,"ERROR calling method 'setPin()': Pin does not work with elements that are positioned 'fixed'."),c;if(y){if(y===e)return c;c.removePin()}var n=(y=e).parentNode.style.display,o=["top","left","bottom","right","margin","marginLeft","marginRight","marginTop","marginBottom"];y.parentNode.style.display="none";var i="absolute"!=r.css(y,"position"),s=r.css(y,o.concat(["display"])),a=r.css(y,["width","height"]);y.parentNode.style.display=n,!i&&t.pushFollowers&&(g(2,"WARNING: If the pinned element is positioned absolutely pushFollowers will be disabled."),t.pushFollowers=!1),window.setTimeout(function(){y&&0===u.duration&&t.pushFollowers&&g(2,"WARNING: pushFollowers =",!0,"has no effect, when scene duration is 0.")},0);var l=y.parentNode.insertBefore(document.createElement("div"),y),f=r.extend(s,{position:i?"relative":"absolute",boxSizing:"content-box",mozBoxSizing:"content-box",webkitBoxSizing:"content-box"});if(i||r.extend(f,r.css(y,["width","height"])),r.css(l,f),l.setAttribute("data-scrollmagic-pin-spacer",""),r.addClass(l,t.spacerClass),m={spacer:l,relSize:{width:"%"===a.width.slice(-1),height:"%"===a.height.slice(-1),autoFullWidth:"auto"===a.width&&i&&r.isMarginCollapseType(s.display)},pushFollowers:t.pushFollowers,inFlow:i},!y.___origStyle){y.___origStyle={};var p=y.style,d=o.concat(["width","height","position","boxSizing","mozBoxSizing","webkitBoxSizing"]);d.forEach(function(e){y.___origStyle[e]=p[e]||""})}return m.relSize.width&&r.css(l,{width:a.width}),m.relSize.height&&r.css(l,{height:a.height}),l.appendChild(y),r.css(y,{position:i?"relative":"absolute",margin:"auto",top:"auto",left:"auto",bottom:"auto",right:"auto"}),(m.relSize.width||m.relSize.autoFullWidth)&&r.css(y,{boxSizing:"border-box",mozBoxSizing:"border-box",webkitBoxSizing:"border-box"}),window.addEventListener("scroll",j),window.addEventListener("resize",j),window.addEventListener("resize",N),y.addEventListener("mousewheel",_),y.addEventListener("DOMMouseScroll",_),g(3,"added pin"),C(),c},this.removePin=function(e){if(y){if("DURING"===l&&C(!0),e||!i){var t=m.spacer.firstChild;if(t.hasAttribute("data-scrollmagic-pin-spacer")){var n=m.spacer.style,o={};["margin","marginLeft","marginRight","marginTop","marginBottom"].forEach(function(e){o[e]=n[e]||""}),r.css(t,o)}m.spacer.parentNode.insertBefore(t,m.spacer),m.spacer.parentNode.removeChild(m.spacer),y.parentNode.hasAttribute("data-scrollmagic-pin-spacer")||(r.css(y,y.___origStyle),delete y.___origStyle)}window.removeEventListener("scroll",j),window.removeEventListener("resize",j),window.removeEventListener("resize",N),y.removeEventListener("mousewheel",_),y.removeEventListener("DOMMouseScroll",_),y=void 0,g(3,"removed pin (reset: "+(e?"true":"false")+")")}return c};var I,F=[];return c.on("destroy.internal",function(e){c.removeClassToggle(e.reset)}),this.setClassToggle=function(e,t){var n=r.get.elements(e);return 0!==n.length&&r.type.String(t)?(F.length>0&&c.removeClassToggle(),I=t,F=n,c.on("enter.internal_class leave.internal_class",function(e){var t="enter"===e.type?r.addClass:r.removeClass;F.forEach(function(e,n){t(e,I)})}),c):(g(1,"ERROR calling method 'setClassToggle()': Invalid "+(0===n.length?"element":"classes")+" supplied."),c)},this.removeClassToggle=function(e){return e&&F.forEach(function(e,t){r.removeClass(e,I)}),c.off("start.internal_class end.internal_class"),I=void 0,F=[],c},function(){for(var e in u)a.hasOwnProperty(e)||(g(2,'WARNING: Unknown option "'+e+'"'),delete u[e]);for(var t in a)x(t);P()}(),c};var n={defaults:{duration:0,offset:0,triggerElement:void 0,triggerHook:.5,reverse:!0,loglevel:2},validate:{offset:function(e){if(e=parseFloat(e),!r.type.Number(e))throw['Invalid value for option "offset":',e];return e},triggerElement:function(e){if(e=e||void 0){var t=r.get.elements(e)[0];if(!t||!t.parentNode)throw['Element defined in option "triggerElement" was not found:',e];e=t}return e},triggerHook:function(e){var t={onCenter:.5,onEnter:1,onLeave:0};if(r.type.Number(e))e=Math.max(0,Math.min(parseFloat(e),1));else{if(!(e in t))throw['Invalid value for option "triggerHook": ',e];e=t[e]}return e},reverse:function(e){return!!e},loglevel:function(e){if(e=parseInt(e),!r.type.Number(e)||e<0||e>3)throw['Invalid value for option "loglevel":',e];return e}},shifts:["duration","offset","triggerHook"]};e.Scene.addOption=function(t,r,o,i){t in n.defaults?e._util.log(1,"[static] ScrollMagic.Scene -> Cannot add Scene option '"+t+"', because it already exists."):(n.defaults[t]=r,n.validate[t]=o,i&&n.shifts.push(t))},e.Scene.extend=function(t){var n=this;e.Scene=function(){return n.apply(this,arguments),this.$super=r.extend({},this),t.apply(this,arguments)||this},r.extend(e.Scene,n),e.Scene.prototype=n.prototype,e.Scene.prototype.constructor=e.Scene},e.Event=function(e,t,n,r){for(var o in r=r||{})this[o]=r[o];return this.type=e,this.target=this.currentTarget=n,this.namespace=t||"",this.timeStamp=this.timestamp=Date.now(),this};var r=e._util=function(e){var t,n={},r=function(e){return parseFloat(e)||0},o=function(t){return t.currentStyle?t.currentStyle:e.getComputedStyle(t)},i=function(t,n,i,s){if((n=n===document?e:n)===e)s=!1;else if(!h.DomElement(n))return 0;t=t.charAt(0).toUpperCase()+t.substr(1).toLowerCase();var a=(i?n["offset"+t]||n["outer"+t]:n["client"+t]||n["inner"+t])||0;if(i&&s){var c=o(n);a+="Height"===t?r(c.marginTop)+r(c.marginBottom):r(c.marginLeft)+r(c.marginRight)}return a},s=function(e){return e.replace(/^[^a-z]+([a-z])/g,"$1").replace(/-([a-z])/g,function(e){return e[1].toUpperCase()})};n.extend=function(e){for(e=e||{},t=1;t-1};var a=0,c=["ms","moz","webkit","o"],u=e.requestAnimationFrame,l=e.cancelAnimationFrame;for(t=0;!u&&tf.length||e<=0)&&(e=f.length);var t=new Date,n=("0"+t.getHours()).slice(-2)+":"+("0"+t.getMinutes()).slice(-2)+":"+("0"+t.getSeconds()).slice(-2)+":"+("00"+t.getMilliseconds()).slice(-3),r=f[e-1],o=Array.prototype.splice.call(arguments,1),i=Function.prototype.bind.call(p[r],p);o.unshift(n),i.apply(p,o)};var h=n.type=function(e){return Object.prototype.toString.call(e).replace(/^\[object (.+)\]$/,"$1").toLowerCase()};h.String=function(e){return"string"===h(e)},h.Function=function(e){return"function"===h(e)},h.Array=function(e){return Array.isArray(e)},h.Number=function(e){return!h.Array(e)&&e-parseFloat(e)+1>=0},h.DomElement=function(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName};var v=n.get={};return v.elements=function(t){var n=[];if(h.String(t))try{t=document.querySelectorAll(t)}catch(e){return n}if("nodelist"===h(t)||h.Array(t))for(var r=0,o=n.length=t.length;r ERROR calling addIndicators() due to missing Plugin 'debug.addIndicators'. Please make sure to include plugins/debug.addIndicators.js"),this},e.Scene.prototype.removeIndicators=function(){return e._util.log(1,"(ScrollMagic.Scene) -> ERROR calling removeIndicators() due to missing Plugin 'debug.addIndicators'. Please make sure to include plugins/debug.addIndicators.js"),this},e.Scene.prototype.setTween=function(){return e._util.log(1,"(ScrollMagic.Scene) -> ERROR calling setTween() due to missing Plugin 'animation.gsap'. Please make sure to include plugins/animation.gsap.js"),this},e.Scene.prototype.removeTween=function(){return e._util.log(1,"(ScrollMagic.Scene) -> ERROR calling removeTween() due to missing Plugin 'animation.gsap'. Please make sure to include plugins/animation.gsap.js"),this},e.Scene.prototype.setVelocity=function(){return e._util.log(1,"(ScrollMagic.Scene) -> ERROR calling setVelocity() due to missing Plugin 'animation.velocity'. Please make sure to include plugins/animation.velocity.js"),this},e.Scene.prototype.removeVelocity=function(){return e._util.log(1,"(ScrollMagic.Scene) -> ERROR calling removeVelocity() due to missing Plugin 'animation.velocity'. Please make sure to include plugins/animation.velocity.js"),this},e})?r.call(t,n,t,e):r)||(e.exports=o)}});