(()=>{var t={406:()=>{!function(){"use strict";function t(r){if(!r)throw new Error("No options passed to Waypoint constructor");if(!r.element)throw new Error("No element option passed to Waypoint constructor");if(!r.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+e,this.options=t.Adapter.extend({},t.defaults,r),this.element=this.options.element,this.adapter=new t.Adapter(this.element),this.callback=r.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),n[this.key]=this,e+=1}var e=0,n={};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 n[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 r in n)e.push(n[r]);for(var i=0,o=e.length;o>i;i++)e[i][t]()},t.destroyAll=function(){t.invokeAll("destroy")},t.disableAll=function(){t.invokeAll("disable")},t.enableAll=function(){for(var e in t.Context.refreshAll(),n)n[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=i.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+n,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,r[t.waypointContextKey]=this,n+=1,i.windowContext||(i.windowContext=!0,i.windowContext=new e(window)),this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}var n=0,r={},i=window.Waypoint,o=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),n=this.element==this.element.window;t&&e&&!n&&(this.adapter.off(".waypoints"),delete r[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,i.requestAnimationFrame(t))}))},e.prototype.createThrottledScrollHandler=function(){function t(){e.handleScroll(),e.didScroll=!1}var e=this;this.adapter.on("scroll.waypoints",(function(){(!e.didScroll||i.isTouch)&&(e.didScroll=!0,i.requestAnimationFrame(t))}))},e.prototype.handleResize=function(){i.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 n in e){var r=e[n],i=r.newScroll>r.oldScroll?r.forward:r.backward;for(var o in this.waypoints[n]){var a=this.waypoints[n][o];if(null!==a.triggerPoint){var s=r.oldScroll=a.triggerPoint;(s&&u||!s&&!u)&&(a.queueTrigger(i),t[a.group.id]=a.group)}}}for(var l in t)t[l].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},e.prototype.innerHeight=function(){return this.element==this.element.window?i.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?i.viewportWidth():this.adapter.innerWidth()},e.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var n in this.waypoints[e])t.push(this.waypoints[e][n]);for(var r=0,i=t.length;i>r;r++)t[r].destroy()},e.prototype.refresh=function(){var t,e=this.element==this.element.window,n=e?void 0:this.adapter.offset(),r={};for(var o in this.handleScroll(),t={horizontal:{contextOffset:e?0:n.left,contextScroll:e?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:e?0:n.top,contextScroll:e?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}}){var a=t[o];for(var s in this.waypoints[o]){var u,l,c,d,f=this.waypoints[o][s],p=f.options.offset,h=f.triggerPoint,g=0,y=null==h;f.element!==f.element.window&&(g=f.adapter.offset()[a.offsetProp]),"function"==typeof p?p=p.apply(f):"string"==typeof p&&(p=parseFloat(p),f.options.offset.indexOf("%")>-1&&(p=Math.ceil(a.contextDimension*p/100))),u=a.contextScroll-a.contextOffset,f.triggerPoint=Math.floor(g+u-p),l=h=a.oldScroll,d=!l&&!c,!y&&(l&&c)?(f.queueTrigger(a.backward),r[f.group.id]=f.group):(!y&&d||y&&a.oldScroll>=f.triggerPoint)&&(f.queueTrigger(a.forward),r[f.group.id]=f.group)}}return i.requestAnimationFrame((function(){for(var t in r)r[t].flushTriggers()})),this},e.findOrCreateByElement=function(t){return e.findByElement(t)||new e(t)},e.refreshAll=function(){for(var t in r)r[t].refresh()},e.findByElement=function(t){return r[t.waypointContextKey]},window.onload=function(){o&&o(),e.refreshAll()},i.requestAnimationFrame=function(e){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t).call(window,e)},i.Context=e}(),function(){"use strict";function t(t,e){return t.triggerPoint-e.triggerPoint}function e(t,e){return e.triggerPoint-t.triggerPoint}function n(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),r[this.axis][this.name]=this}var r={vertical:{},horizontal:{}},i=window.Waypoint;n.prototype.add=function(t){this.waypoints.push(t)},n.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},n.prototype.flushTriggers=function(){for(var n in this.triggerQueues){var r=this.triggerQueues[n],i="up"===n||"left"===n;r.sort(i?e:t);for(var o=0,a=r.length;a>o;o+=1){var s=r[o];(s.options.continuous||o===r.length-1)&&s.trigger([n])}}this.clearTriggerQueues()},n.prototype.next=function(e){this.waypoints.sort(t);var n=i.Adapter.inArray(e,this.waypoints);return n===this.waypoints.length-1?null:this.waypoints[n+1]},n.prototype.previous=function(e){this.waypoints.sort(t);var n=i.Adapter.inArray(e,this.waypoints);return n?this.waypoints[n-1]:null},n.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},n.prototype.remove=function(t){var e=i.Adapter.inArray(t,this.waypoints);e>-1&&this.waypoints.splice(e,1)},n.prototype.first=function(){return this.waypoints[0]},n.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},n.findOrCreate=function(t){return r[t.axis][t.name]||new n(t)},i.Group=n}(),function(){"use strict";function t(t){return t===t.window}function e(e){return t(e)?e:e.defaultView}function n(t){this.element=t,this.handlers={}}var r=window.Waypoint;n.prototype.innerHeight=function(){return t(this.element)?this.element.innerHeight:this.element.clientHeight},n.prototype.innerWidth=function(){return t(this.element)?this.element.innerWidth:this.element.clientWidth},n.prototype.off=function(t,e){function n(t,e,n){for(var r=0,i=e.length-1;i>r;r++){var o=e[r];n&&n!==o||t.removeEventListener(o)}}var r=t.split("."),i=r[0],o=r[1],a=this.element;if(o&&this.handlers[o]&&i)n(a,this.handlers[o][i],e),this.handlers[o][i]=[];else if(i)for(var s in this.handlers)n(a,this.handlers[s][i]||[],e),this.handlers[s][i]=[];else if(o&&this.handlers[o]){for(var u in this.handlers[o])n(a,this.handlers[o][u],e);this.handlers[o]={}}},n.prototype.offset=function(){if(!this.element.ownerDocument)return null;var t=this.element.ownerDocument.documentElement,n=e(this.element.ownerDocument),r={top:0,left:0};return this.element.getBoundingClientRect&&(r=this.element.getBoundingClientRect()),{top:r.top+n.pageYOffset-t.clientTop,left:r.left+n.pageXOffset-t.clientLeft}},n.prototype.on=function(t,e){var n=t.split("."),r=n[0],i=n[1]||"__default",o=this.handlers[i]=this.handlers[i]||{};(o[r]=o[r]||[]).push(e),this.element.addEventListener(r,e)},n.prototype.outerHeight=function(e){var n,r=this.innerHeight();return e&&!t(this.element)&&(n=window.getComputedStyle(this.element),r+=parseInt(n.marginTop,10),r+=parseInt(n.marginBottom,10)),r},n.prototype.outerWidth=function(e){var n,r=this.innerWidth();return e&&!t(this.element)&&(n=window.getComputedStyle(this.element),r+=parseInt(n.marginLeft,10),r+=parseInt(n.marginRight,10)),r},n.prototype.scrollLeft=function(){var t=e(this.element);return t?t.pageXOffset:this.element.scrollLeft},n.prototype.scrollTop=function(){var t=e(this.element);return t?t.pageYOffset:this.element.scrollTop},n.extend=function(){function t(t,e){if("object"==typeof t&&"object"==typeof e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}for(var e=Array.prototype.slice.call(arguments),n=1,r=e.length;r>n;n++)t(e[0],e[n]);return e[0]},n.inArray=function(t,e,n){return null==e?-1:e.indexOf(t,n)},n.isEmptyObject=function(t){for(var e in t)return!1;return!0},r.adapters.push({name:"noframework",Adapter:n}),r.Adapter=n}()}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}(()=>{"use strict";var t={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},e={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},r=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],i={CSS:{},springs:{}};function o(t,e,n){return Math.min(Math.max(t,e),n)}function a(t,e){return t.indexOf(e)>-1}function s(t,e){return t.apply(null,e)}var u={arr:function(t){return Array.isArray(t)},obj:function(t){return a(Object.prototype.toString.call(t),"Object")},pth:function(t){return u.obj(t)&&t.hasOwnProperty("totalLength")},svg:function(t){return t instanceof SVGElement},inp:function(t){return t instanceof HTMLInputElement},dom:function(t){return t.nodeType||u.svg(t)},str:function(t){return"string"==typeof t},fnc:function(t){return"function"==typeof t},und:function(t){return void 0===t},nil:function(t){return u.und(t)||null===t},hex:function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)},rgb:function(t){return/^rgb/.test(t)},hsl:function(t){return/^hsl/.test(t)},col:function(t){return u.hex(t)||u.rgb(t)||u.hsl(t)},key:function(n){return!t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&"targets"!==n&&"keyframes"!==n}};function l(t){var e=/\(([^)]+)\)/.exec(t);return e?e[1].split(",").map((function(t){return parseFloat(t)})):[]}function c(t,e){var n=l(t),r=o(u.und(n[0])?1:n[0],.1,100),a=o(u.und(n[1])?100:n[1],.1,100),s=o(u.und(n[2])?10:n[2],.1,100),c=o(u.und(n[3])?0:n[3],.1,100),d=Math.sqrt(a/r),f=s/(2*Math.sqrt(a*r)),p=f<1?d*Math.sqrt(1-f*f):0,h=f<1?(f*d-c)/p:-c+d;function g(t){var n=e?e*t/1e3:t;return n=f<1?Math.exp(-n*f*d)*(1*Math.cos(p*n)+h*Math.sin(p*n)):(1+h*n)*Math.exp(-n*d),0===t||1===t?t:1-n}return e?g:function(){var e=i.springs[t];if(e)return e;for(var n=1/6,r=0,o=0;;)if(1===g(r+=n)){if(++o>=16)break}else o=0;var a=r*n*1e3;return i.springs[t]=a,a}}function d(t){return void 0===t&&(t=10),function(e){return Math.ceil(o(e,1e-6,1)*t)*(1/t)}}var f,p,h=function(){var t=.1;function e(t,e){return 1-3*e+3*t}function n(t,e){return 3*e-6*t}function r(t){return 3*t}function i(t,i,o){return((e(i,o)*t+n(i,o))*t+r(i))*t}function o(t,i,o){return 3*e(i,o)*t*t+2*n(i,o)*t+r(i)}return function(e,n,r,a){if(0<=e&&e<=1&&0<=r&&r<=1){var s=new Float32Array(11);if(e!==n||r!==a)for(var u=0;u<11;++u)s[u]=i(u*t,e,r);return function(t){return e===n&&r===a||0===t||1===t?t:i(l(t),n,a)}}function l(n){for(var a=0,u=1;10!==u&&s[u]<=n;++u)a+=t;--u;var l=a+(n-s[u])/(s[u+1]-s[u])*t,c=o(l,e,r);return c>=.001?function(t,e,n,r){for(var a=0;a<4;++a){var s=o(e,n,r);if(0===s)return e;e-=(i(e,n,r)-t)/s}return e}(n,l,e,r):0===c?l:function(t,e,n,r,o){var a,s,u=0;do{(a=i(s=e+(n-e)/2,r,o)-t)>0?n=s:e=s}while(Math.abs(a)>1e-7&&++u<10);return s}(n,a,a+t,e,r)}}}(),g=(f={linear:function(){return function(t){return t}}},p={Sine:function(){return function(t){return 1-Math.cos(t*Math.PI/2)}},Circ:function(){return function(t){return 1-Math.sqrt(1-t*t)}},Back:function(){return function(t){return t*t*(3*t-2)}},Bounce:function(){return function(t){for(var e,n=4;t<((e=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*e-2)/22-t,2)}},Elastic:function(t,e){void 0===t&&(t=1),void 0===e&&(e=.5);var n=o(t,1,10),r=o(e,.1,2);return function(t){return 0===t||1===t?t:-n*Math.pow(2,10*(t-1))*Math.sin((t-1-r/(2*Math.PI)*Math.asin(1/n))*(2*Math.PI)/r)}}},["Quad","Cubic","Quart","Quint","Expo"].forEach((function(t,e){p[t]=function(){return function(t){return Math.pow(t,e+2)}}})),Object.keys(p).forEach((function(t){var e=p[t];f["easeIn"+t]=e,f["easeOut"+t]=function(t,n){return function(r){return 1-e(t,n)(1-r)}},f["easeInOut"+t]=function(t,n){return function(r){return r<.5?e(t,n)(2*r)/2:1-e(t,n)(-2*r+2)/2}},f["easeOutIn"+t]=function(t,n){return function(r){return r<.5?(1-e(t,n)(1-2*r))/2:(e(t,n)(2*r-1)+1)/2}}})),f);function y(t,e){if(u.fnc(t))return t;var n=t.split("(")[0],r=g[n],i=l(t);switch(n){case"spring":return c(t,e);case"cubicBezier":return s(h,i);case"steps":return s(d,i);default:return s(r,i)}}function m(t){try{return document.querySelectorAll(t)}catch(t){return}}function v(t,e){for(var n=t.length,r=arguments.length>=2?arguments[1]:void 0,i=[],o=0;o1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}if(0==a)e=n=r=s;else{var c=s<.5?s*(1+a):s+a-s*a,d=2*s-c;e=l(d,c,o+1/3),n=l(d,c,o),r=l(d,c,o-1/3)}return"rgba("+255*e+","+255*n+","+255*r+","+u+")"}(t):void 0;var e,n}function M(t){var e=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(t);if(e)return e[1]}function E(t,e){return u.fnc(t)?t(e.target,e.id,e.total):t}function T(t,e){return t.getAttribute(e)}function C(t,e,n){if(b([n,"deg","rad","turn"],M(e)))return e;var r=i.CSS[e+n];if(!u.und(r))return r;var o=document.createElement(t.tagName),a=t.parentNode&&t.parentNode!==document?t.parentNode:document.body;a.appendChild(o),o.style.position="absolute",o.style.width=100+n;var s=100/o.offsetWidth;a.removeChild(o);var l=s*parseFloat(e);return i.CSS[e+n]=l,l}function P(t,e,n){if(e in t.style){var r=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),i=t.style[e]||getComputedStyle(t).getPropertyValue(r)||"0";return n?C(t,i,n):i}}function I(t,e){return u.dom(t)&&!u.inp(t)&&(!u.nil(T(t,e))||u.svg(t)&&t[e])?"attribute":u.dom(t)&&b(r,e)?"transform":u.dom(t)&&"transform"!==e&&P(t,e)?"css":null!=t[e]?"object":void 0}function B(t){if(u.dom(t)){for(var e,n=t.style.transform||"",r=/(\w+)\(([^)]*)\)/g,i=new Map;e=r.exec(n);)i.set(e[1],e[2]);return i}}function W(t,e,n,r){var i=a(e,"scale")?1:0+function(t){return a(t,"translate")||"perspective"===t?"px":a(t,"rotate")||a(t,"skew")?"deg":void 0}(e),o=B(t).get(e)||i;return n&&(n.transforms.list.set(e,o),n.transforms.last=e),r?C(t,o,r):o}function D(t,e,n,r){switch(I(t,e)){case"transform":return W(t,e,r,n);case"css":return P(t,e,n);case"attribute":return T(t,e);default:return t[e]||0}}function H(t,e){var n=/^(\*=|\+=|-=)/.exec(t);if(!n)return t;var r=M(t)||0,i=parseFloat(e),o=parseFloat(t.replace(n[0],""));switch(n[0][0]){case"+":return i+o+r;case"-":return i-o+r;case"*":return i*o+r}}function q(t,e){if(u.col(t))return O(t);if(/\s/g.test(t))return t;var n=M(t),r=n?t.substr(0,t.length-n.length):t;return e?r+e:r}function z(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function F(t){for(var e,n=t.points,r=0,i=0;i0&&(r+=z(e,o)),e=o}return r}function L(t){if(t.getTotalLength)return t.getTotalLength();switch(t.tagName.toLowerCase()){case"circle":return function(t){return 2*Math.PI*T(t,"r")}(t);case"rect":return function(t){return 2*T(t,"width")+2*T(t,"height")}(t);case"line":return function(t){return z({x:T(t,"x1"),y:T(t,"y1")},{x:T(t,"x2"),y:T(t,"y2")})}(t);case"polyline":return F(t);case"polygon":return function(t){var e=t.points;return F(t)+z(e.getItem(e.numberOfItems-1),e.getItem(0))}(t)}}function N(t,e){var n=e||{},r=n.el||function(t){for(var e=t.parentNode;u.svg(e)&&u.svg(e.parentNode);)e=e.parentNode;return e}(t),i=r.getBoundingClientRect(),o=T(r,"viewBox"),a=i.width,s=i.height,l=n.viewBox||(o?o.split(" "):[0,0,a,s]);return{el:r,viewBox:l,x:l[0]/1,y:l[1]/1,w:a,h:s,vW:l[2],vH:l[3]}}function j(t,e,n){function r(n){void 0===n&&(n=0);var r=e+n>=1?e+n:0;return t.el.getPointAtLength(r)}var i=N(t.el,t.svg),o=r(),a=r(-1),s=r(1),u=n?1:i.w/i.vW,l=n?1:i.h/i.vH;switch(t.property){case"x":return(o.x-i.x)*u;case"y":return(o.y-i.y)*l;case"angle":return 180*Math.atan2(s.y-a.y,s.x-a.x)/Math.PI}}function R(t,e){var n=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,r=q(u.pth(t)?t.totalLength:t,e)+"";return{original:r,numbers:r.match(n)?r.match(n).map(Number):[0],strings:u.str(t)||e?r.split(n):[]}}function Y(t){return v(t?w(u.arr(t)?t.map(x):x(t)):[],(function(t,e,n){return n.indexOf(t)===e}))}function X(t){var e=Y(t);return e.map((function(t,n){return{target:t,id:n,total:e.length,transforms:{list:B(t)}}}))}function Q(t,e){var n=k(e);if(/^spring/.test(n.easing)&&(n.duration=c(n.easing)),u.arr(t)){var r=t.length;2===r&&!u.obj(t[0])?t={value:t}:u.fnc(e.duration)||(n.duration=e.duration/r)}var i=u.arr(t)?t:[t];return i.map((function(t,n){var r=u.obj(t)&&!u.pth(t)?t:{value:t};return u.und(r.delay)&&(r.delay=n?0:e.delay),u.und(r.endDelay)&&(r.endDelay=n===i.length-1?e.endDelay:0),r})).map((function(t){return S(t,n)}))}function $(t,e){var n=[],r=e.keyframes;for(var i in r&&(e=S(function(t){for(var e=v(w(t.map((function(t){return Object.keys(t)}))),(function(t){return u.key(t)})).reduce((function(t,e){return t.indexOf(e)<0&&t.push(e),t}),[]),n={},r=function(r){var i=e[r];n[i]=t.map((function(t){var e={};for(var n in t)u.key(n)?n==i&&(e.value=t[n]):e[n]=t[n];return e}))},i=0;i0?requestAnimationFrame(e):void 0}return"undefined"!=typeof document&&document.addEventListener("visibilitychange",(function(){nt.suspendWhenDocumentHidden&&(et()?t=cancelAnimationFrame(t):(U.forEach((function(t){return t._onDocumentVisibility()})),tt()))})),function(){t||et()&&nt.suspendWhenDocumentHidden||!(U.length>0)||(t=requestAnimationFrame(e))}}();function et(){return!!document&&document.hidden}function nt(n){void 0===n&&(n={});var r,i=0,a=0,s=0,u=0,l=null;function c(t){var e=window.Promise&&new Promise((function(t){return l=t}));return t.finished=e,e}var d=function(n){var r=A(t,n),i=A(e,n),o=$(i,n),a=X(n.targets),s=_(a,o),u=K(s,i),l=J;return J++,S(r,{id:l,children:[],animatables:a,animations:s,duration:u.duration,delay:u.delay,endDelay:u.endDelay})}(n);c(d);function f(){var t=d.direction;"alternate"!==t&&(d.direction="normal"!==t?"normal":"reverse"),d.reversed=!d.reversed,r.forEach((function(t){return t.reversed=d.reversed}))}function p(t){return d.reversed?d.duration-t:t}function h(){i=0,a=p(d.currentTime)*(1/nt.speed)}function g(t,e){e&&e.seek(t-e.timelineOffset)}function y(t){for(var e=0,n=d.animations,r=n.length;e2||(x=Math.round(x*h)/h)),g.push(x)}var A=p.length;if(A){m=p[0];for(var S=0;S0&&(d.began=!0,m("begin")),!d.loopBegan&&d.currentTime>0&&(d.loopBegan=!0,m("loopBegin")),v<=n&&0!==d.currentTime&&y(0),(v>=h&&d.currentTime!==e||!e)&&y(e),v>n&&v=e&&(a=0,d.remaining&&!0!==d.remaining&&d.remaining--,d.remaining?(i=s,m("loopComplete"),d.loopBegan=!1,"alternate"===d.direction&&f()):(d.paused=!0,d.completed||(d.completed=!0,m("loopComplete"),m("complete"),!d.passThrough&&"Promise"in window&&(l(),c(d)))))}return d.reset=function(){var t=d.direction;d.passThrough=!1,d.currentTime=0,d.progress=0,d.paused=!0,d.began=!1,d.loopBegan=!1,d.changeBegan=!1,d.completed=!1,d.changeCompleted=!1,d.reversePlayback=!1,d.reversed="reverse"===t,d.remaining=d.loop,r=d.children;for(var e=u=r.length;e--;)d.children[e].reset();(d.reversed&&!0!==d.loop||"alternate"===t&&1===d.loop)&&d.remaining++,y(d.reversed?d.duration:0)},d._onDocumentVisibility=h,d.set=function(t,e){return G(t,e),d},d.tick=function(t){s=t,i||(i=s),w((s+(a-i))*nt.speed)},d.seek=function(t){w(p(t))},d.pause=function(){d.paused=!0,h()},d.play=function(){d.paused&&(d.completed&&d.reset(),d.paused=!1,U.push(d),h(),tt())},d.reverse=function(){f(),d.completed=!d.reversed,h()},d.restart=function(){d.reset(),d.play()},d.remove=function(t){it(Y(t),d)},d.reset(),d.autoplay&&d.play(),d}function rt(t,e){for(var n=e.length;n--;)b(t,e[n].animatable.target)&&e.splice(n,1)}function it(t,e){var n=e.animations,r=e.children;rt(t,n);for(var i=r.length;i--;){var o=r[i],a=o.animations;rt(t,a),a.length||o.children.length||r.splice(i,1)}n.length||r.length||e.pause()}nt.version="3.2.1",nt.speed=1,nt.suspendWhenDocumentHidden=!0,nt.running=U,nt.remove=function(t){for(var e=Y(t),n=U.length;n--;){it(e,U[n])}},nt.get=D,nt.set=G,nt.convertPx=C,nt.path=function(t,e){var n=u.str(t)?m(t)[0]:t,r=e||100;return function(t){return{property:t,el:n,svg:N(n),totalLength:L(n)*(r/100)}}},nt.setDashoffset=function(t){var e=L(t);return t.setAttribute("stroke-dasharray",e),e},nt.stagger=function(t,e){void 0===e&&(e={});var n=e.direction||"normal",r=e.easing?y(e.easing):null,i=e.grid,o=e.axis,a=e.from||0,s="first"===a,l="center"===a,c="last"===a,d=u.arr(t),f=d?parseFloat(t[0]):parseFloat(t),p=d?parseFloat(t[1]):0,h=M(d?t[1]:t)||0,g=e.start||0+(d?f:0),m=[],v=0;return function(t,e,u){if(s&&(a=0),l&&(a=(u-1)/2),c&&(a=u-1),!m.length){for(var y=0;y-1&&U.splice(o,1);for(var l=0;l$&")}(i);const o=`#${t} .superb-animated-heading-letter`,a=`#${t}.superbaddons-animated-heading-block`,s=function(t){return t<0?4:t>100?.1:(100-t)/25+.1}(n);let u=null;switch(e){case"effect1c":const t=document.querySelector(a).offsetWidth;u=ot.timeline({targets:o,delay:ot.stagger(50*s),loop:r,autoplay:!1}).add({translateX:[t,0],opacity:[0,1]}),r&&u.add({translateX:t,opacity:[1,0]});break;case"effect2c":u=ot.timeline({targets:o,delay:ot.stagger(50*s),loop:r,autoplay:!1}).add({translateY:"-0.25em"}).add({translateY:0});break;case"effect3c":u=ot.timeline({targets:o,delay:ot.stagger(50*s),loop:r,autoplay:!1}).add({translateX:[1,0],opacity:[0,1]}),r&&u.add({translateX:[0,1],opacity:[1,0]});break;case"effect2":u=ot.timeline({loop:r,autoplay:!1}).add({targets:o,scale:[4,1],opacity:[0,1],translateZ:0,easing:"easeOutExpo",duration:950*s,delay:(t,e)=>70*e*s}),r&&u.add({targets:a,opacity:0,duration:1e3*s,easing:"easeOutExpo",delay:1e3*s});break;case"effect3":u=ot.timeline({loop:r,autoplay:!1}).add({targets:o,opacity:[0,1],easing:"easeInOutQuad",duration:2250*s,delay:(t,e)=>150*(e+1)*s}),r&&u.add({targets:a,opacity:0,duration:1e3*s,easing:"easeOutExpo",delay:1e3*s});break;case"effect6":u=ot.timeline({loop:r,autoplay:!1}).add({targets:o,translateY:[100,0],translateZ:0,duration:750*s,delay:(t,e)=>50*e*s}),r&&u.add({targets:a,opacity:0,duration:1e3*s,easing:"easeOutExpo",delay:1e3*s});break;case"effect7":u=ot.timeline({loop:r,autoplay:!1}).add({targets:o,translateY:[100,0],translateX:["0.55em",0],translateZ:0,rotateZ:[180,0],duration:750*s,easing:"easeOutExpo",delay:(t,e)=>50*e*s}),r&&u.add({targets:a,opacity:0,duration:1e3*s,easing:"easeOutExpo",delay:1e3*s});break;case"effect9":u=ot.timeline({loop:r,autoplay:!1}).add({targets:o,scale:[0,1],duration:1500*s,elasticity:600,delay:(t,e)=>45*(e+1)*s}),r&&u.add({targets:a,opacity:0,duration:1e3*s,easing:"easeOutExpo",delay:1e3*s});break;case"effect10":u=ot.timeline({loop:r,autoplay:!1}).add({targets:o,rotateY:[-90,0],duration:1300*s,delay:(t,e)=>45*e*s}),r&&u.add({targets:a,opacity:0,duration:1e3*s,easing:"easeOutExpo",delay:1e3*s});break;case"effect12":u=ot.timeline({loop:r,autoplay:!1}).add({targets:o,translateX:[40,0],translateZ:0,opacity:[0,1],easing:"easeOutExpo",duration:1200*s,delay:(t,e)=>500+30*e*s}),r&&u.add({targets:o,translateX:[0,-30],opacity:[1,0],easing:"easeInExpo",duration:1100*s,delay:(t,e)=>100+30*e*s});break;case"effect13":u=ot.timeline({loop:r,autoplay:!1}).add({targets:o,translateY:[100,0],translateZ:0,opacity:[0,1],easing:"easeOutExpo",duration:1400*s,delay:(t,e)=>300+30*e*s}),r&&u.add({targets:o,translateY:[0,-100],opacity:[1,0],easing:"easeInExpo",duration:1200*s,delay:(t,e)=>100+30*e*s});break;case"effect16":u=ot.timeline({loop:r,autoplay:!1}).add({targets:o,translateY:[-100,0],opacity:[0,1],easing:"easeOutExpo",duration:1400*s,delay:(t,e)=>30*e*s}),r&&u.add({targets:a,opacity:0,duration:1e3*s,easing:"easeOutExpo",delay:1e3*s})}return u};return e}();t.init()}()})()})();