!function(t){var e={};function i(r){if(e[r])return e[r].exports;var n=e[r]={i:r,l:!1,exports:{}};return t[r].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=t,i.c=e,i.d=function(t,e,r){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)i.d(r,n,function(e){return t[e]}.bind(null,n));return r},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=9)}([function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){function i(t,e){for(var i=0;i-1&&-1===navigator.userAgent.indexOf("Chrome"),isChrome:navigator.userAgent.indexOf("Chrome")>-1,isFirefox:navigator.userAgent.indexOf("Firefox")>-1,windowHeight:"",windowWidth:"",namespace:"",transitionFinished:!1,pencilMarquee:!1,queryParams:{},referrer:"",reducedMotion:window.matchMedia("(prefers-reduced-motion: reduce)").matches,headerShowing:!0,marqueeData:[],prefetchedUrls:[]}),u={header:document.getElementById("header"),topNav:document.getElementById("top-nav"),bottomNav:document.getElementById("bottom-nav"),mainEl:document.getElementById("main"),containerEl:document.getElementById("container"),eventMask:document.getElementById("event-mask"),globalBorder:document.getElementById("global-border"),globalBackdrop:document.getElementById("global-backdrop"),menuGlobe:document.getElementById("menu-globe"),countEl:document.getElementById("count"),openMobileMenu:function(){},closeMobileMenu:function(){},resetMobileMenu:function(){}};function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e} /*! * GSAP 3.8.0 * https://greensock.com * * @license Copyright 2008-2021, GreenSock. All rights reserved. * Subject to the terms at https://greensock.com/standard-license or for * Club GreenSock members, the agreement issued with that membership. * @author: Jack Doyle, jack@greensock.com */u.menuGlobePaths=u.menuGlobe.querySelectorAll(".whole-path"),u.globalBorder.addEventListener("scroll",function(t){t.stopPropagation(),t.preventDefault()}),u.globalBorder.addEventListener("wheel",function(t){t.stopPropagation(),t.preventDefault()});var c,d,p,f,D,m,g,v,y,_,w,C,E,x,b,F,k,T,A,S,B,O,M,I,P={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},L={duration:.5,overwrite:!1,delay:0},q=1e-8,R=2*Math.PI,z=R/4,N=0,Y=Math.sqrt,W=Math.cos,H=Math.sin,V=function(t){return"string"==typeof t},j=function(t){return"function"==typeof t},U=function(t){return"number"==typeof t},G=function(t){return void 0===t},X=function(t){return"object"==typeof t},K=function(t){return!1!==t},J=function(){return"undefined"!=typeof window},Q=function(t){return j(t)||V(t)},Z="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},$=Array.isArray,tt=/(?:-?\.?\d|\.)+/gi,et=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,it=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,rt=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,nt=/[+-]=-?[.\d]+/,at=/[^,'"\[\]\s]+/gi,st=/[\d.+\-=]+(?:e[-+]\d*)*/i,ot={},ut={},lt=function(t){return(ut=Pt(t,ot))&&gi},ht=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},ct=function(t,e){return!e&&console.warn(t)},dt=function(t,e){return t&&(ot[t]=e)&&ut&&(ut[t]=e)||ot},pt=function(){return 0},ft={},Dt=[],mt={},gt={},vt={},yt=30,_t=[],wt="",Ct=function(t){var e,i,r=t[0];if(X(r)||j(r)||(t=[t]),!(e=(r._gsap||{}).harness)){for(i=_t.length;i--&&!_t[i].targetTest(r););e=_t[i]}for(i=t.length;i--;)t[i]&&(t[i]._gsap||(t[i]._gsap=new He(t[i],e)))||t.splice(i,1);return t},Et=function(t){return t._gsap||Ct(he(t))[0]._gsap},xt=function(t,e,i){return(i=t[e])&&j(i)?t[e]():G(i)&&t.getAttribute&&t.getAttribute(e)||i},bt=function(t,e){return(t=t.split(",")).forEach(e)||t},Ft=function(t){return Math.round(1e5*t)/1e5||0},kt=function(t){return Math.round(1e7*t)/1e7||0},Tt=function(t,e){for(var i=e.length,r=0;t.indexOf(e[r])<0&&++rt._dur||e._start<0))for(var i=t;i;)i._dirty=1,i=i.parent;return t},Wt=function t(e){return!e||e._ts&&t(e.parent)},Ht=function(t){return t._repeat?Vt(t._tTime,t=t.duration()+t._rDelay)*t:0},Vt=function(t,e){var i=Math.floor(t/=e);return t&&i===t?i-1:i},jt=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Ut=function(t){return t._end=kt(t._start+(t._tDur/Math.abs(t._ts||t._rts||q)||0))},Gt=function(t,e){var i=t._dp;return i&&i.smoothChildTiming&&t._ts&&(t._start=kt(i._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Ut(t),i._dirty||Yt(i,t)),t},Xt=function(t,e){var i;if((e._time||e._initted&&!e._dur)&&(i=jt(t.rawTime(),e),(!e._dur||ae(0,e.totalDuration(),i)-e._tTime>q)&&e.render(i,!0)),Yt(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur=0&&i.totalTime(i._tTime),i=i._dp;t._zTime=-q}},Kt=function(t,e,i,r){return e.parent&&Nt(e),e._start=kt((U(i)?i:i||t!==d?ie(t,i,e):t._time)+e._delay),e._end=kt(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),function(t,e,i,r,n){void 0===i&&(i="_first"),void 0===r&&(r="_last");var a,s=t[r];if(n)for(a=e[n];s&&s[n]>a;)s=s._prev;s?(e._next=s._next,s._next=e):(e._next=t[i],t[i]=e),e._next?e._next._prev=e:t[r]=e,e._prev=s,e.parent=e._dp=t}(t,e,"_first","_last",t._sort?"_start":0),Zt(e)||(t._recent=e),r||Xt(t,e),t},Jt=function(t,e){return(ot.ScrollTrigger||ht("scrollTrigger",e))&&ot.ScrollTrigger.create(e,t)},Qt=function(t,e,i,r){return Ke(t,e),t._initted?!i&&t._pt&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&g!==Se.frame?(Dt.push(t),t._lazy=[e,r],1):void 0:1},Zt=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},$t=function(t,e,i,r){var n=t._repeat,a=kt(e)||0,s=t._tTime/t._tDur;return s&&!r&&(t._time*=a/t._dur),t._dur=a,t._tDur=n?n<0?1e10:kt(a*(n+1)+t._rDelay*n):a,s&&!r?Gt(t,t._tTime=t._tDur*s):t.parent&&Ut(t),i||Yt(t.parent,t),t},te=function(t){return t instanceof je?Yt(t):$t(t,t._dur)},ee={_start:0,endTime:pt,totalDuration:pt},ie=function t(e,i,r){var n,a,s,o=e.labels,u=e._recent||ee,l=e.duration()>=1e8?u.endTime(!1):e._dur;return V(i)&&(isNaN(i)||i in o)?(a=i.charAt(0),s="%"===i.substr(-1),n=i.indexOf("="),"<"===a||">"===a?(n>=0&&(i=i.replace(/=/,"")),("<"===a?u._start:u.endTime(u._repeat>=0))+(parseFloat(i.substr(1))||0)*(s?(n<0?u:r).totalDuration()/100:1)):n<0?(i in o||(o[i]=l),o[i]):(a=parseFloat(i.charAt(n-1)+i.substr(n+1)),s&&r&&(a=a/100*($(r)?r[0]:r).totalDuration()),n>1?t(e,i.substr(0,n-1),r)+a:l+a)):null==i?l:+i},re=function(t,e,i){var r,n,a=U(e[1]),s=(a?2:1)+(t<2?0:1),o=e[s];if(a&&(o.duration=e[1]),o.parent=i,t){for(r=o,n=i;n&&!("immediateRender"in r);)r=n.vars.defaults||{},n=K(n.vars.inherit)&&n.parent;o.immediateRender=K(r.immediateRender),t<2?o.runBackwards=1:o.startAt=e[s-1]}return new $e(e[0],o,e[s+1])},ne=function(t,e){return t||0===t?e(t):e},ae=function(t,e,i){return ie?e:i},se=function(t){if("string"!=typeof t)return"";var e=st.exec(t);return e?t.substr(e.index+e[0].length):""},oe=[].slice,ue=function(t,e){return t&&X(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&X(t[0]))&&!t.nodeType&&t!==p},le=function(t,e,i){return void 0===i&&(i=[]),t.forEach(function(t){var r;return V(t)&&!e||ue(t,1)?(r=i).push.apply(r,he(t)):i.push(t)})||i},he=function(t,e,i){return!V(t)||i||!f&&Be()?$(t)?le(t,i):ue(t)?oe.call(t,0):t?[t]:[]:oe.call((e||D).querySelectorAll(t),0)},ce=function(t){return t.sort(function(){return.5-Math.random()})},de=function(t){if(j(t))return t;var e=X(t)?t:{each:t},i=Re(e.ease),r=e.from||0,n=parseFloat(e.base)||0,a={},s=r>0&&r<1,o=isNaN(r)||s,u=e.axis,l=r,h=r;return V(r)?l=h={center:.5,edges:.5,end:1}[r]||0:!s&&o&&(l=r[0],h=r[1]),function(t,s,c){var d,p,f,D,m,g,v,y,_,w=(c||e).length,C=a[w];if(!C){if(!(_="auto"===e.grid?0:(e.grid||[1,1e8])[1])){for(v=-1e8;v<(v=c[_++].getBoundingClientRect().left)&&_v&&(v=m),mw?w-1:u?"y"===u?w/_:_:Math.max(_,w/_))||0)*("edges"===r?-1:1),C.b=w<0?n-w:n,C.u=se(e.amount||e.each)||0,i=i&&w<0?Le(i):i}return w=(C[t]-C.min)/C.max||0,kt(C.b+(i?i(w):w)*C.v)+C.u}},pe=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(i){var r=Math.round(parseFloat(i)/t)*t*e;return(r-r%1)/e+(U(i)?0:se(i))}},fe=function(t,e){var i,r,n=$(t);return!n&&X(t)&&(i=n=t.radius||1e8,t.values?(t=he(t.values),(r=!U(t[0]))&&(i*=i)):t=pe(t.increment)),ne(e,n?j(t)?function(e){return r=t(e),Math.abs(r-e)<=i?r:e}:function(e){for(var n,a,s=parseFloat(r?e.x:e),o=parseFloat(r?e.y:0),u=1e8,l=0,h=t.length;h--;)(n=r?(n=t[h].x-s)*n+(a=t[h].y-o)*a:Math.abs(t[h]-s))(n=Math.abs(n))&&(a=r,o=n);return a},_e=function(t,e,i){var r,n,a=t.vars,s=a[e];if(s)return r=a[e+"Params"],n=a.callbackScope||t,i&&Dt.length&&At(),r?s.apply(n,r):s.call(n)},we=function(t){return Nt(t),t.scrollTrigger&&t.scrollTrigger.kill(!1),t.progress()<1&&_e(t,"onInterrupt"),t},Ce={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},Ee=function(t,e,i){return 255*(6*(t=t<0?t+1:t>1?t-1:t)<1?e+(i-e)*t*6:t<.5?i:3*t<2?e+(i-e)*(2/3-t)*6:e)+.5|0},xe=function(t,e,i){var r,n,a,s,o,u,l,h,c,d,p=t?U(t)?[t>>16,t>>8&255,255&t]:0:Ce.black;if(!p){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),Ce[t])p=Ce[t];else if("#"===t.charAt(0)){if(t.length<6&&(t="#"+(r=t.charAt(1))+r+(n=t.charAt(2))+n+(a=t.charAt(3))+a+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(p=parseInt(t.substr(1,6),16))>>16,p>>8&255,255&p,parseInt(t.substr(7),16)/255];p=[(t=parseInt(t.substr(1),16))>>16,t>>8&255,255&t]}else if("hsl"===t.substr(0,3))if(p=d=t.match(tt),e){if(~t.indexOf("="))return p=t.match(et),i&&p.length<4&&(p[3]=1),p}else s=+p[0]%360/360,o=+p[1]/100,r=2*(u=+p[2]/100)-(n=u<=.5?u*(o+1):u+o-u*o),p.length>3&&(p[3]*=1),p[0]=Ee(s+1/3,r,n),p[1]=Ee(s,r,n),p[2]=Ee(s-1/3,r,n);else p=t.match(tt)||Ce.transparent;p=p.map(Number)}return e&&!d&&(r=p[0]/255,n=p[1]/255,a=p[2]/255,u=((l=Math.max(r,n,a))+(h=Math.min(r,n,a)))/2,l===h?s=o=0:(c=l-h,o=u>.5?c/(2-l-h):c/(l+h),s=l===r?(n-a)/c+(nk&&(A+=s-T),((i=(n=(S+=s)-A)-O)>0||o)&&(a=++E.frame,x=n-1e3*E.time,E.time=n/=1e3,O+=i+(i>=B?4:B-i),r=1),o||(_=w(t)),r)for(b=0;b=e&&b--},_listeners:M=[]}),Be=function(){return!y&&Se.wake()},Oe={},Me=/^[\d.\-M][\d.\-,\s]/,Ie=/["']/g,Pe=function(t){var e,i,r,n,a=(t+"").split("("),s=Oe[a[0]];return s&&a.length>1&&s.config?s.config.apply(null,~t.indexOf("{")?[function(t){for(var e,i,r,n={},a=t.substr(1,t.length-3).split(":"),s=a[0],o=1,u=a.length;o=1?i:1,a=(r||(e?.3:.45))/(i<1?i:1),s=a/R*(Math.asin(1/n)||0),o=function(t){return 1===t?1:n*Math.pow(2,-10*t)*H((t-s)*a)+1},u="out"===e?o:"in"===e?function(t){return 1-o(1-t)}:Ne(o);return a=R/a,u.config=function(i,r){return t(e,i,r)},u},We=function t(e,i){void 0===i&&(i=1.70158);var r=function(t){return t?--t*t*((i+1)*t+i)+1:0},n="out"===e?r:"in"===e?function(t){return 1-r(1-t)}:Ne(r);return n.config=function(i){return t(e,i)},n};bt("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var i=e<5?e+1:e;ze(t+",Power"+(i-1),e?function(t){return Math.pow(t,i)}:function(t){return t},function(t){return 1-Math.pow(1-t,i)},function(t){return t<.5?Math.pow(2*t,i)/2:1-Math.pow(2*(1-t),i)/2})}),Oe.Linear.easeNone=Oe.none=Oe.Linear.easeIn,ze("Elastic",Ye("in"),Ye("out"),Ye()),function(t,e){var i=1/e,r=function(r){return r0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,$t(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(Be(),!arguments.length)return this._tTime;var i=this._dp;if(i&&i.smoothChildTiming&&this._ts){for(Gt(this,t),!i._dp||i.parent||Xt(i,this);i&&i.parent;)i.parent._time!==i._start+(i._ts>=0?i._tTime/i._ts:(i.totalDuration()-i._tTime)/-i._ts)&&i.totalTime(i._tTime,!0),i=i.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&t0||!this._tDur&&!t)&&Kt(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===q||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),St(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+Ht(this))%(this._dur+this._rDelay)||(t?this._dur:0),e):this._time},e.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},e.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+Ht(this),e):this.duration()?Math.min(1,this._time/this._dur):this.ratio},e.iteration=function(t,e){var i=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*i,e):this._repeat?Vt(this._tTime,i)+1:1},e.timeScale=function(t){if(!arguments.length)return this._rts===-q?0:this._rts;if(this._rts===t)return this;var e=this.parent&&this._ts?jt(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||t===-q?0:this._rts,function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent}(this.totalTime(ae(-this._delay,this._tDur,e),!0)),Ut(this),this},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Be(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==q&&(this._tTime-=q)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&Kt(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(K(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?jt(e.rawTime(t),this):this._tTime:this._tTime},e.globalTime=function(t){for(var e=this,i=arguments.length?t:e.rawTime();e;)i=e._start+i/(e._ts||1),e=e._dp;return i},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,te(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,te(this),e?this.time(e):this}return this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,e){return this.totalTime(ie(this,t),K(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,K(e))},e.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},e.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},e.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-q:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-q,this},e.isActive=function(){var t,e=this.parent||this._dp,i=this._start;return!(e&&!(this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=i&&t1?(e?(r[t]=e,i&&(r[t+"Params"]=i),"onUpdate"===t&&(this._onUpdate=e)):delete r[t],this):r[t]},e.then=function(t){var e=this;return new Promise(function(i){var r=j(t)?t:Ot,n=function(){var t=e.then;e.then=null,j(r)&&(r=r(e))&&(r.then||r===e)&&(e.then=t),i(r),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?n():e._prom=n})},e.kill=function(){we(this)},t}();Mt(Ve.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-q,_prom:0,_ps:!1,_rts:1});var je=function(t){function e(e,i){var r;return void 0===e&&(e={}),(r=t.call(this,e)||this).labels={},r.smoothChildTiming=!!e.smoothChildTiming,r.autoRemoveChildren=!!e.autoRemoveChildren,r._sort=K(e.sortChildren),d&&Kt(e.parent||d,l(r),i),e.reversed&&r.reverse(),e.paused&&r.paused(!0),e.scrollTrigger&&Jt(l(r),e.scrollTrigger),r}h(e,t);var i=e.prototype;return i.to=function(t,e,i){return re(0,arguments,this),this},i.from=function(t,e,i){return re(1,arguments,this),this},i.fromTo=function(t,e,i,r){return re(2,arguments,this),this},i.set=function(t,e,i){return e.duration=0,e.parent=this,Rt(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new $e(t,e,ie(this,i),1),this},i.call=function(t,e,i){return Kt(this,$e.delayedCall(0,t,e),i)},i.staggerTo=function(t,e,i,r,n,a,s){return i.duration=e,i.stagger=i.stagger||r,i.onComplete=a,i.onCompleteParams=s,i.parent=this,new $e(t,i,ie(this,n)),this},i.staggerFrom=function(t,e,i,r,n,a,s){return i.runBackwards=1,Rt(i).immediateRender=K(i.immediateRender),this.staggerTo(t,e,i,r,n,a,s)},i.staggerFromTo=function(t,e,i,r,n,a,s,o){return r.startAt=i,Rt(r).immediateRender=K(r.immediateRender),this.staggerTo(t,e,r,n,a,s,o)},i.render=function(t,e,i){var r,n,a,s,o,u,l,h,c,p,f,D,m=this._time,g=this._dirty?this.totalDuration():this._tDur,v=this._dur,y=t<=0?0:kt(t),_=this._zTime<0!=t<0&&(this._initted||!v);if(this!==d&&y>g&&t>=0&&(y=g),y!==this._tTime||i||_){if(m!==this._time&&v&&(y+=this._time-m,t+=this._time-m),r=y,c=this._start,u=!(h=this._ts),_&&(v||(m=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(f=this._yoyo,o=v+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*o+t,e,i);if(r=kt(y%o),y===g?(s=this._repeat,r=v):((s=~~(y/o))&&s===y/o&&(r=v,s--),r>v&&(r=v)),p=Vt(this._tTime,o),!m&&this._tTime&&p!==s&&(p=s),f&&1&s&&(r=v-r,D=1),s!==p&&!this._lock){var w=f&&1&p,C=w===(f&&1&s);if(se)for(r=t._first;r&&r._start<=i;){if(!r._dur&&"isPause"===r.data&&r._start>e)return r;r=r._next}else for(r=t._last;r&&r._start>=i;){if(!r._dur&&"isPause"===r.data&&r._start=m&&t>=0)for(n=this._first;n;){if(a=n._next,(n._act||r>=n._start)&&n._ts&&l!==n){if(n.parent!==this)return this.render(t,e,i);if(n.render(n._ts>0?(r-n._start)*n._ts:(n._dirty?n.totalDuration():n._tDur)+(r-n._start)*n._ts,e,i),r!==this._time||!this._ts&&!u){l=0,a&&(y+=this._zTime=-q);break}}n=a}else{n=this._last;for(var E=t<0?t:r;n;){if(a=n._prev,(n._act||E<=n._end)&&n._ts&&l!==n){if(n.parent!==this)return this.render(t,e,i);if(n.render(n._ts>0?(E-n._start)*n._ts:(n._dirty?n.totalDuration():n._tDur)+(E-n._start)*n._ts,e,i),r!==this._time||!this._ts&&!u){l=0,a&&(y+=this._zTime=E?-q:q);break}}n=a}}if(l&&!e&&(this.pause(),l.render(r>=m?0:-q)._zTime=r>=m?1:-1,this._ts))return this._start=c,Ut(this),this.render(t,e,i);this._onUpdate&&!e&&_e(this,"onUpdate",!0),(y===g&&g>=this.totalDuration()||!y&&m)&&(c!==this._start&&Math.abs(h)===Math.abs(this._ts)||this._lock||((t||!v)&&(y===g&&this._ts>0||!y&&this._ts<0)&&Nt(this,1),e||t<0&&!m||!y&&!m&&g||(_e(this,y===g&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(y0)&&this._prom())))}return this},i.add=function(t,e){var i=this;if(U(e)||(e=ie(this,e,t)),!(t instanceof Ve)){if($(t))return t.forEach(function(t){return i.add(t,e)}),this;if(V(t))return this.addLabel(t,e);if(!j(t))return this;t=$e.delayedCall(0,t)}return this!==t?Kt(this,t,e):this},i.getChildren=function(t,e,i,r){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===i&&(i=!0),void 0===r&&(r=-1e8);for(var n=[],a=this._first;a;)a._start>=r&&(a instanceof $e?e&&n.push(a):(i&&n.push(a),t&&n.push.apply(n,a.getChildren(!0,e,i)))),a=a._next;return n},i.getById=function(t){for(var e=this.getChildren(1,1,1),i=e.length;i--;)if(e[i].vars.id===t)return e[i]},i.remove=function(t){return V(t)?this.removeLabel(t):j(t)?this.killTweensOf(t):(zt(this,t),t===this._recent&&(this._recent=this._last),Yt(this))},i.totalTime=function(e,i){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=kt(Se.time-(this._ts>0?e/this._ts:(this.totalDuration()-e)/-this._ts))),t.prototype.totalTime.call(this,e,i),this._forcing=0,this):this._tTime},i.addLabel=function(t,e){return this.labels[t]=ie(this,e),this},i.removeLabel=function(t){return delete this.labels[t],this},i.addPause=function(t,e,i){var r=$e.delayedCall(0,e||pt,i);return r.data="isPause",this._hasPause=1,Kt(this,r,ie(this,t))},i.removePause=function(t){var e=this._first;for(t=ie(this,t);e;)e._start===t&&"isPause"===e.data&&Nt(e),e=e._next},i.killTweensOf=function(t,e,i){for(var r=this.getTweensOf(t,i),n=r.length;n--;)Ue!==r[n]&&r[n].kill(t,e);return this},i.getTweensOf=function(t,e){for(var i,r=[],n=he(t),a=this._first,s=U(e);a;)a instanceof $e?Tt(a._targets,n)&&(s?(!Ue||a._initted&&a._ts)&&a.globalTime(0)<=e&&a.globalTime(a.totalDuration())>e:!e||a.isActive())&&r.push(a):(i=a.getTweensOf(n,e)).length&&r.push.apply(r,i),a=a._next;return r},i.tweenTo=function(t,e){e=e||{};var i,r=this,n=ie(r,t),a=e,s=a.startAt,o=a.onStart,u=a.onStartParams,l=a.immediateRender,h=$e.to(r,Mt({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:n,overwrite:"auto",duration:e.duration||Math.abs((n-(s&&"time"in s?s.time:r._time))/r.timeScale())||q,onStart:function(){if(r.pause(),!i){var t=e.duration||Math.abs((n-(s&&"time"in s?s.time:r._time))/r.timeScale());h._dur!==t&&$t(h,t,0,1).render(h._time,!0,!0),i=1}o&&o.apply(h,u||[])}},e));return l?h.render(0):h},i.tweenFromTo=function(t,e,i){return this.tweenTo(e,Mt({startAt:{time:ie(this,t)}},i))},i.recent=function(){return this._recent},i.nextLabel=function(t){return void 0===t&&(t=this._time),ye(this,ie(this,t))},i.previousLabel=function(t){return void 0===t&&(t=this._time),ye(this,ie(this,t),1)},i.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+q)},i.shiftChildren=function(t,e,i){void 0===i&&(i=0);for(var r,n=this._first,a=this.labels;n;)n._start>=i&&(n._start+=t,n._end+=t),n=n._next;if(e)for(r in a)a[r]>=i&&(a[r]+=t);return Yt(this)},i.invalidate=function(){var e=this._first;for(this._lock=0;e;)e.invalidate(),e=e._next;return t.prototype.invalidate.call(this)},i.clear=function(t){void 0===t&&(t=!0);for(var e,i=this._first;i;)e=i._next,this.remove(i),i=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),Yt(this)},i.totalDuration=function(t){var e,i,r,n=0,a=this._last,s=1e8;if(arguments.length)return this.timeScale((this._repeat<0?this.duration():this.totalDuration())/(this.reversed()?-t:t));if(this._dirty){for(r=this.parent;a;)e=a._prev,a._dirty&&a.totalDuration(),(i=a._start)>s&&this._sort&&a._ts&&!this._lock?(this._lock=1,Kt(this,a,i-a._delay,1)._lock=0):s=i,i<0&&a._ts&&(n-=i,(!r&&!this._dp||r&&r.smoothChildTiming)&&(this._start+=i/this._ts,this._time-=i,this._tTime-=i),this.shiftChildren(-i,!1,-Infinity),s=0),a._end>n&&a._ts&&(n=a._end),a=e;$t(this,this===d&&this._time>n?this._time:n,1,1),this._dirty=0}return this._tDur},e.updateRoot=function(t){if(d._ts&&(St(d,jt(t,d)),g=Se.frame),Se.frame>=yt){yt+=P.autoSleep||120;var e=d._first;if((!e||!e._ts)&&P.autoSleep&&Se._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Se.sleep()}}},e}(Ve);Mt(je.prototype,{_lock:0,_hasPause:0,_forcing:0});var Ue,Ge=function(t,e,i,r,n,a,s,o,u){j(r)&&(r=r(n||0,t,a));var l,h=t[e],c="get"!==i?i:j(h)?u?t[e.indexOf("set")||!j(t["get"+e.substr(3)])?e:"get"+e.substr(3)](u):t[e]():h,d=j(h)?u?ii:ei:ti;if(V(r)&&(~r.indexOf("random(")&&(r=ge(r)),"="===r.charAt(1)&&((l=parseFloat(c)+parseFloat(r.substr(2))*("-"===r.charAt(0)?-1:1)+(se(c)||0))||0===l)&&(r=l)),c!==r)return isNaN(c*r)||""===r?(!h&&!(e in t)&&ht(e,r),function(t,e,i,r,n,a,s){var o,u,l,h,c,d,p,f,D=new pi(this._pt,t,e,0,1,oi,null,n),m=0,g=0;for(D.b=i,D.e=r,i+="",(p=~(r+="").indexOf("random("))&&(r=ge(r)),a&&(a(f=[i,r],t,e),i=f[0],r=f[1]),u=i.match(rt)||[];o=rt.exec(r);)h=o[0],c=r.substring(m,o.index),l?l=(l+1)%5:"rgba("===c.substr(-5)&&(l=1),h!==u[g++]&&(d=parseFloat(u[g-1])||0,D._pt={_next:D._pt,p:c||1===g?c:",",s:d,c:"="===h.charAt(1)?parseFloat(h.substr(2))*("-"===h.charAt(0)?-1:1):parseFloat(h)-d,m:l&&l<4?Math.round:0},m=rt.lastIndex);return D.c=m0&&!A&&(e._startAt=0),S&&i<=0)return void(i&&(e._zTime=i))}else!1===A&&(e._startAt=0);else if(F&&S)if(B)!A&&(e._startAt=0);else if(i&&(w=!1),a=Mt({overwrite:!1,data:"isFromStart",lazy:w&&K(C),immediateRender:w,stagger:0,parent:M},r),m&&(a[h.prop]=m),Nt(e._startAt=$e.set(O,a)),i<0&&e._startAt.render(-1,!0),w){if(!i)return}else t(e._startAt,q);for(e._pt=0,C=S&&K(C)||C&&!S,n=0;n":e*w)})}):E.forEach(function(t){return s.to(T,t,">")});else{if(h=T.length,D=w?de(w):pt,X(w))for(p in w)~Qe.indexOf(p)&&(m||(m={}),m[p]=w[p]);for(o=0;op-q&&t>=0?p:tf&&(r=f)),(u=this._yoyo&&1&a)&&(c=this._yEase,r=f-r),o=Vt(this._tTime,s),r===d&&!i&&this._initted)return this;a!==o&&(h&&this._yEase&&qe(h,u),!this.vars.repeatRefresh||u||this._lock||(this._lock=i=1,this.render(kt(s*a),!0).invalidate()._lock=0))}if(!this._initted){if(Qt(this,t<0?t:r,i,e))return this._tTime=0,this;if(f!==this._dur)return this.render(t,e,i)}if(this._tTime=D,this._time=r,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=l=(c||this._ease)(r/f),this._from&&(this.ratio=l=1-l),r&&!d&&!e&&(_e(this,"onStart"),this._tTime!==D))return this;for(n=this._pt;n;)n.r(l,n.d),n=n._next;h&&h.render(t<0?t:!r&&u?-q:h._dur*l,e,i)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(t<0&&this._startAt&&this._startAt.render(t,!0,i),_e(this,"onUpdate")),this._repeat&&a!==o&&this.vars.onRepeat&&!e&&this.parent&&_e(this,"onRepeat"),D!==this._tDur&&D||this._tTime!==D||(t<0&&this._startAt&&!this._onUpdate&&this._startAt.render(t,!0,!0),(t||!f)&&(D===this._tDur&&this._ts>0||!D&&this._ts<0)&&Nt(this,1),e||t<0&&!d||!D&&!d||(_e(this,D===p?"onComplete":"onReverseComplete",!0),this._prom&&!(D0)&&this._prom()))}}else!function(t,e,i,r){var n,a,s,o=t.ratio,u=e<0||!e&&(!t._start&&function t(e){var i=e.parent;return i&&i._ts&&i._initted&&!i._lock&&(i.rawTime()<0||t(i))}(t)&&(t._initted||!Zt(t))||(t._ts<0||t._dp._ts<0)&&!Zt(t))?0:1,l=t._rDelay,h=0;if(l&&t._repeat&&(h=ae(0,t._tDur,e),a=Vt(h,l),s=Vt(t._tTime,l),t._yoyo&&1&a&&(u=1-u),a!==s&&(o=1-u,t.vars.repeatRefresh&&t._initted&&t.invalidate())),u!==o||r||t._zTime===q||!e&&t._zTime){if(!t._initted&&Qt(t,e,r,i))return;for(s=t._zTime,t._zTime=e||(i?q:0),i||(i=e&&!s),t.ratio=u,t._from&&(u=1-u),t._time=0,t._tTime=h,n=t._pt;n;)n.r(u,n.d),n=n._next;t._startAt&&e<0&&t._startAt.render(e,!0,!0),t._onUpdate&&!i&&_e(t,"onUpdate"),h&&t._repeat&&!i&&t.parent&&_e(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===u&&(u&&Nt(t,1),i||(_e(t,u?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,i);return this},i.targets=function(){return this._targets},i.invalidate=function(){return this._pt=this._op=this._startAt=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(),t.prototype.invalidate.call(this)},i.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?we(this):this;if(this.timeline){var i=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,Ue&&!0!==Ue.vars.overwrite)._first||we(this),this.parent&&i!==this.timeline.totalDuration()&&$t(this,this._dur*this.timeline._tDur/i,0,1),this}var r,n,a,s,o,u,l,h=this._targets,c=t?he(t):h,d=this._ptLookup,p=this._pt;if((!e||"all"===e)&&function(t,e){for(var i=t.length,r=i===e.length;r&&i--&&t[i]===e[i];);return i<0}(h,c))return"all"===e&&(this._pt=0),we(this);for(r=this._op=this._op||[],"all"!==e&&(V(e)&&(o={},bt(e,function(t){return o[t]=1}),e=o),e=function(t,e){var i,r,n,a,s=t[0]?Et(t[0]).harness:0,o=s&&s.aliases;if(!o)return e;for(r in i=Pt({},e),o)if(r in i)for(n=(a=o[r].split(",")).length;n--;)i[a[n]]=i[r];return i}(h,e)),l=h.length;l--;)if(~c.indexOf(h[l]))for(o in n=d[l],"all"===e?(r[l]=e,s=n,a={}):(a=r[l]=r[l]||{},s=e),s)(u=n&&n[o])&&("kill"in u.d&&!0!==u.d.kill(o)||zt(this,u,"_pt"),delete n[o]),"all"!==a&&(a[o]=1);return this._initted&&!this._pt&&p&&we(this),this},e.to=function(t,i){return new e(t,i,arguments[2])},e.from=function(t,e){return re(1,arguments)},e.delayedCall=function(t,i,r,n){return new e(i,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:i,onReverseComplete:i,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:n})},e.fromTo=function(t,e,i){return re(2,arguments)},e.set=function(t,i){return i.duration=0,i.repeatDelay||(i.repeat=0),new e(t,i)},e.killTweensOf=function(t,e,i){return d.killTweensOf(t,e,i)},e}(Ve);Mt($e.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),bt("staggerTo,staggerFrom,staggerFromTo",function(t){$e[t]=function(){var e=new je,i=oe.call(arguments,0);return i.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,i)}});var ti=function(t,e,i){return t[e]=i},ei=function(t,e,i){return t[e](i)},ii=function(t,e,i,r){return t[e](r.fp,i)},ri=function(t,e,i){return t.setAttribute(e,i)},ni=function(t,e){return j(t[e])?ei:G(t[e])&&t.setAttribute?ri:ti},ai=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},si=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},oi=function(t,e){var i=e._pt,r="";if(!t&&e.b)r=e.b;else if(1===t&&e.e)r=e.e;else{for(;i;)r=i.p+(i.m?i.m(i.s+i.c*t):Math.round(1e4*(i.s+i.c*t))/1e4)+r,i=i._next;r+=e.c}e.set(e.t,e.p,r,e)},ui=function(t,e){for(var i=e._pt;i;)i.r(t,i.d),i=i._next},li=function(t,e,i,r){for(var n,a=this._pt;a;)n=a._next,a.p===r&&a.modifier(t,e,i),a=n},hi=function(t){for(var e,i,r=this._pt;r;)i=r._next,r.p===t&&!r.op||r.op===t?zt(this,r,"_pt"):r.dep||(e=1),r=i;return!e},ci=function(t,e,i,r){r.mSet(t,e,r.m.call(r.tween,i,r.mt),r)},di=function(t){for(var e,i,r,n,a=t._pt;a;){for(e=a._next,i=r;i&&i.pr>a.pr;)i=i._next;(a._prev=i?i._prev:n)?a._prev._next=a:r=a,(a._next=i)?i._prev=a:n=a,a=e}t._pt=r},pi=function(){function t(t,e,i,r,n,a,s,o,u){this.t=e,this.s=r,this.c=n,this.p=i,this.r=a||ai,this.d=s||this,this.set=o||ti,this.pr=u||0,this._next=t,t&&(t._prev=this)}return t.prototype.modifier=function(t,e,i){this.mSet=this.mSet||this.set,this.set=ci,this.m=t,this.mt=i,this.tween=e},t}();bt(wt+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(t){return ft[t]=1}),ot.TweenMax=ot.TweenLite=$e,ot.TimelineLite=ot.TimelineMax=je,d=new je({sortChildren:!1,defaults:L,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),P.stringFilter=Ae;var fi={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),i=0;i1){var r=t.map(function(t){return gi.quickSetter(t,e,i)}),n=r.length;return function(t){for(var e=n;e--;)r[e](t)}}t=t[0]||{};var a=gt[e],s=Et(t),o=s.harness&&(s.harness.aliases||{})[e]||e,u=a?function(e){var r=new a;v._pt=0,r.init(t,i?e+i:e,v,0,[t]),r.render(1,r),v._pt&&ui(1,v)}:s.set(t,o);return a?u:function(e){return u(t,o,i?e+i:e,s,1)}},isTweening:function(t){return d.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Re(t.ease,L.ease)),Lt(L,t||{})},config:function(t){return Lt(P,t||{})},registerEffect:function(t){var e=t.name,i=t.effect,r=t.plugins,n=t.defaults,a=t.extendTimeline;(r||"").split(",").forEach(function(t){return t&&!gt[t]&&!ot[t]&&ct(e+" effect requires "+t+" plugin.")}),vt[e]=function(t,e,r){return i(he(t),Mt(e||{},n),r)},a&&(je.prototype[e]=function(t,i,r){return this.add(vt[e](t,X(i)?i:(r=i)&&{},this),r)})},registerEase:function(t,e){Oe[t]=Re(e)},parseEase:function(t,e){return arguments.length?Re(t,e):Oe},getById:function(t){return d.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var i,r,n=new je(t);for(n.smoothChildTiming=K(t.smoothChildTiming),d.remove(n),n._dp=0,n._time=n._tTime=d._time,i=d._first;i;)r=i._next,!e&&!i._dur&&i instanceof $e&&i.vars.onComplete===i._targets[0]||Kt(n,i,i._start-i._delay),i=r;return Kt(d,n,0),n},utils:{wrap:function t(e,i,r){var n=i-e;return $(e)?me(e,t(0,e.length),i):ne(r,function(t){return(n+(t-e)%n)%n+e})},wrapYoyo:function t(e,i,r){var n=i-e,a=2*n;return $(e)?me(e,t(0,e.length-1),i):ne(r,function(t){return e+((t=(a+(t-e)%a)%a||0)>n?a-t:t)})},distribute:de,random:De,snap:fe,normalize:function(t,e,i){return ve(t,e,0,1,i)},getUnit:se,clamp:function(t,e,i){return ne(i,function(i){return ae(t,e,i)})},splitColor:xe,toArray:he,selector:function(t){return t=he(t)[0]||ct("Invalid scope")||{},function(e){var i=t.current||t.nativeElement||t;return he(e,i.querySelectorAll?i:i===t?ct("Invalid scope")||D.createElement("div"):t)}},mapRange:ve,pipe:function(){for(var t=arguments.length,e=new Array(t),i=0;i=0?Ki[n]:"")+t},Qi=function(){"undefined"!=typeof window&&window.document&&(vi=window,yi=vi.document,_i=yi.documentElement,Ci=Gi("div")||{style:{}},Gi("div"),ji=Ji(ji),Ui=ji+"Origin",Ci.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",xi=!!Ji("perspective"),wi=1)},Zi=function t(e){var i,r=Gi("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),n=this.parentNode,a=this.nextSibling,s=this.style.cssText;if(_i.appendChild(r),r.appendChild(this),this.style.display="block",e)try{i=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch(t){}else this._gsapBBox&&(i=this._gsapBBox());return n&&(a?n.insertBefore(this,a):n.appendChild(this)),_i.removeChild(r),this.style.cssText=s,i},$i=function(t,e){for(var i=e.length;i--;)if(t.hasAttribute(e[i]))return t.getAttribute(e[i])},tr=function(t){var e;try{e=t.getBBox()}catch(i){e=Zi.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===Zi||(e=Zi.call(t,!0)),!e||e.width||e.x||e.y?e:{x:+$i(t,["x","cx","x1"])||0,y:+$i(t,["y","cy","y1"])||0,width:0,height:0}},er=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!tr(t))},ir=function(t,e){if(e){var i=t.style;e in bi&&e!==Ui&&(e=ji),i.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),i.removeProperty(e.replace(Ai,"-$1").toLowerCase())):i.removeAttribute(e)}},rr=function(t,e,i,r,n,a){var s=new pi(t._pt,e,i,0,1,a?Ri:qi);return t._pt=s,s.b=r,s.e=n,t._props.push(i),s},nr={deg:1,rad:1,turn:1},ar=function t(e,i,r,n){var a,s,o,u,l=parseFloat(r)||0,h=(r+"").trim().substr((l+"").length)||"px",c=Ci.style,d=Si.test(i),p="svg"===e.tagName.toLowerCase(),f=(p?"client":"offset")+(d?"Width":"Height"),D="px"===n,m="%"===n;return n===h||!l||nr[n]||nr[h]?l:("px"!==h&&!D&&(l=t(e,i,r,"px")),u=e.getCTM&&er(e),!m&&"%"!==h||!bi[i]&&!~i.indexOf("adius")?(c[d?"width":"height"]=100+(D?h:n),s=~i.indexOf("adius")||"em"===n&&e.appendChild&&!p?e:e.parentNode,u&&(s=(e.ownerSVGElement||{}).parentNode),s&&s!==yi&&s.appendChild||(s=yi.body),(o=s._gsap)&&m&&o.width&&d&&o.time===Se.time?Ft(l/o.width*100):((m||"%"===h)&&(c.position=Xi(e,"position")),s===e&&(c.position="static"),s.appendChild(Ci),a=Ci[f],s.removeChild(Ci),c.position="absolute",d&&m&&((o=Et(s)).time=Se.time,o.width=s[f]),Ft(D?a*l/100:a&&l?100/a*l:0))):(a=u?e.getBBox()[d?"width":"height"]:e[f],Ft(m?l/a*100:l/100*a)))},sr=function(t,e,i,r){var n;return wi||Qi(),e in Oi&&"transform"!==e&&~(e=Oi[e]).indexOf(",")&&(e=e.split(",")[0]),bi[e]&&"transform"!==e?(n=gr(t,r),n="transformOrigin"!==e?n[e]:n.svg?n.origin:vr(Xi(t,Ui))+" "+n.zOrigin+"px"):(!(n=t.style[e])||"auto"===n||r||~(n+"").indexOf("calc("))&&(n=hr[e]&&hr[e](t,e,i)||Xi(t,e)||xt(t,e)||("opacity"===e?1:0)),i&&!~(n+"").trim().indexOf(" ")?ar(t,e,n,i)+i:n},or=function(t,e,i,r){if(!i||"none"===i){var n=Ji(e,t,1),a=n&&Xi(t,n,1);a&&a!==i?(e=n,i=a):"borderColor"===e&&(i=Xi(t,"borderTopColor"))}var s,o,u,l,h,c,d,p,f,D,m,g,v=new pi(this._pt,t.style,e,0,1,oi),y=0,_=0;if(v.b=i,v.e=r,i+="","auto"===(r+="")&&(t.style[e]=r,r=Xi(t,e)||r,t.style[e]=i),Ae(s=[i,r]),r=s[1],u=(i=s[0]).match(it)||[],(r.match(it)||[]).length){for(;o=it.exec(r);)d=o[0],f=r.substring(y,o.index),h?h=(h+1)%5:"rgba("!==f.substr(-5)&&"hsla("!==f.substr(-5)||(h=1),d!==(c=u[_++]||"")&&(l=parseFloat(c)||0,m=c.substr((l+"").length),(g="="===d.charAt(1)?+(d.charAt(0)+"1"):0)&&(d=d.substr(2)),p=parseFloat(d),D=d.substr((p+"").length),y=it.lastIndex-D.length,D||(D=D||P.units[e]||m,y===r.length&&(r+=D,v.e+=D)),m!==D&&(l=ar(t,e,c,D)||0),v._pt={_next:v._pt,p:f||1===_?f:",",s:l,c:g?g*p:p-l,m:h&&h<4||"zIndex"===e?Math.round:0});v.c=y-1;)i=o[n],bi[i]&&(r=1,i="transformOrigin"===i?Ui:ji),ir(a,i);r&&(ir(a,ji),u&&(u.svg&&a.removeAttribute("transform"),gr(a,1),u.uncache=1))}},hr={clearProps:function(t,e,i,r,n){if("isFromStart"!==n.data){var a=t._pt=new pi(t._pt,e,i,0,0,lr);return a.u=r,a.pr=-10,a.tween=n,t._props.push(i),1}}},cr=[1,0,0,1,0,0],dr={},pr=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},fr=function(t){var e=Xi(t,ji);return pr(e)?cr:e.substr(7).match(et).map(Ft)},Dr=function(t,e){var i,r,n,a,s=t._gsap||Et(t),o=t.style,u=fr(t);return s.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(u=[(n=t.transform.baseVal.consolidate().matrix).a,n.b,n.c,n.d,n.e,n.f]).join(",")?cr:u:(u!==cr||t.offsetParent||t===_i||s.svg||(n=o.display,o.display="block",(i=t.parentNode)&&t.offsetParent||(a=1,r=t.nextSibling,_i.appendChild(t)),u=fr(t),n?o.display=n:ir(t,"display"),a&&(r?i.insertBefore(t,r):i?i.appendChild(t):_i.removeChild(t))),e&&u.length>6?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)},mr=function(t,e,i,r,n,a){var s,o,u,l=t._gsap,h=n||Dr(t,!0),c=l.xOrigin||0,d=l.yOrigin||0,p=l.xOffset||0,f=l.yOffset||0,D=h[0],m=h[1],g=h[2],v=h[3],y=h[4],_=h[5],w=e.split(" "),C=parseFloat(w[0])||0,E=parseFloat(w[1])||0;i?h!==cr&&(o=D*v-m*g)&&(u=C*(-m/o)+E*(D/o)-(D*_-m*y)/o,C=C*(v/o)+E*(-g/o)+(g*_-v*y)/o,E=u):(C=(s=tr(t)).x+(~w[0].indexOf("%")?C/100*s.width:C),E=s.y+(~(w[1]||w[0]).indexOf("%")?E/100*s.height:E)),r||!1!==r&&l.smooth?(y=C-c,_=E-d,l.xOffset=p+(y*D+_*g)-y,l.yOffset=f+(y*m+_*v)-_):l.xOffset=l.yOffset=0,l.xOrigin=C,l.yOrigin=E,l.smooth=!!r,l.origin=e,l.originIsAbsolute=!!i,t.style[Ui]="0px 0px",a&&(rr(a,l,"xOrigin",c,C),rr(a,l,"yOrigin",d,E),rr(a,l,"xOffset",p,l.xOffset),rr(a,l,"yOffset",f,l.yOffset)),t.setAttribute("data-svg-origin",C+" "+E)},gr=function(t,e){var i=t._gsap||new He(t);if("x"in i&&!e&&!i.uncache)return i;var r,n,a,s,o,u,l,h,c,d,p,f,D,m,g,v,y,_,w,C,E,x,b,F,k,T,A,S,B,O,M,I,L=t.style,q=i.scaleX<0,R=Xi(t,Ui)||"0";return r=n=a=u=l=h=c=d=p=0,s=o=1,i.svg=!(!t.getCTM||!er(t)),m=Dr(t,i.svg),i.svg&&(F=(!i.uncache||"0px 0px"===R)&&!e&&t.getAttribute("data-svg-origin"),mr(t,F||R,!!F||i.originIsAbsolute,!1!==i.smooth,m)),f=i.xOrigin||0,D=i.yOrigin||0,m!==cr&&(_=m[0],w=m[1],C=m[2],E=m[3],r=x=m[4],n=b=m[5],6===m.length?(s=Math.sqrt(_*_+w*w),o=Math.sqrt(E*E+C*C),u=_||w?Ti(w,_)*Fi:0,(c=C||E?Ti(C,E)*Fi+u:0)&&(o*=Math.abs(Math.cos(c*ki))),i.svg&&(r-=f-(f*_+D*C),n-=D-(f*w+D*E))):(I=m[6],O=m[7],A=m[8],S=m[9],B=m[10],M=m[11],r=m[12],n=m[13],a=m[14],l=(g=Ti(I,B))*Fi,g&&(F=x*(v=Math.cos(-g))+A*(y=Math.sin(-g)),k=b*v+S*y,T=I*v+B*y,A=x*-y+A*v,S=b*-y+S*v,B=I*-y+B*v,M=O*-y+M*v,x=F,b=k,I=T),h=(g=Ti(-C,B))*Fi,g&&(v=Math.cos(-g),M=E*(y=Math.sin(-g))+M*v,_=F=_*v-A*y,w=k=w*v-S*y,C=T=C*v-B*y),u=(g=Ti(w,_))*Fi,g&&(F=_*(v=Math.cos(g))+w*(y=Math.sin(g)),k=x*v+b*y,w=w*v-_*y,b=b*v-x*y,_=F,x=k),l&&Math.abs(l)+Math.abs(u)>359.9&&(l=u=0,h=180-h),s=Ft(Math.sqrt(_*_+w*w+C*C)),o=Ft(Math.sqrt(b*b+I*I)),g=Ti(x,b),c=Math.abs(g)>2e-4?g*Fi:0,p=M?1/(M<0?-M:M):0),i.svg&&(F=t.getAttribute("transform"),i.forceCSS=t.setAttribute("transform","")||!pr(Xi(t,ji)),F&&t.setAttribute("transform",F))),Math.abs(c)>90&&Math.abs(c)<270&&(q?(s*=-1,c+=u<=0?180:-180,u+=u<=0?180:-180):(o*=-1,c+=c<=0?180:-180)),i.x=r-((i.xPercent=r&&(i.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-r)?-50:0)))?t.offsetWidth*i.xPercent/100:0)+"px",i.y=n-((i.yPercent=n&&(i.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-n)?-50:0)))?t.offsetHeight*i.yPercent/100:0)+"px",i.z=a+"px",i.scaleX=Ft(s),i.scaleY=Ft(o),i.rotation=Ft(u)+"deg",i.rotationX=Ft(l)+"deg",i.rotationY=Ft(h)+"deg",i.skewX=c+"deg",i.skewY=d+"deg",i.transformPerspective=p+"px",(i.zOrigin=parseFloat(R.split(" ")[2])||0)&&(L[Ui]=vr(R)),i.xOffset=i.yOffset=0,i.force3D=P.force3D,i.renderTransform=i.svg?Cr:xi?wr:_r,i.uncache=0,i},vr=function(t){return(t=t.split(" "))[0]+" "+t[1]},yr=function(t,e,i){var r=se(e);return Ft(parseFloat(e)+parseFloat(ar(t,"x",i+"px",r)))+r},_r=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,wr(t,e)},wr=function(t,e){var i=e||this,r=i.xPercent,n=i.yPercent,a=i.x,s=i.y,o=i.z,u=i.rotation,l=i.rotationY,h=i.rotationX,c=i.skewX,d=i.skewY,p=i.scaleX,f=i.scaleY,D=i.transformPerspective,m=i.force3D,g=i.target,v=i.zOrigin,y="",_="auto"===m&&t&&1!==t||!0===m;if(v&&("0deg"!==h||"0deg"!==l)){var w,C=parseFloat(l)*ki,E=Math.sin(C),x=Math.cos(C);C=parseFloat(h)*ki,w=Math.cos(C),a=yr(g,a,E*w*-v),s=yr(g,s,-Math.sin(C)*-v),o=yr(g,o,x*w*-v+v)}"0px"!==D&&(y+="perspective("+D+") "),(r||n)&&(y+="translate("+r+"%, "+n+"%) "),(_||"0px"!==a||"0px"!==s||"0px"!==o)&&(y+="0px"!==o||_?"translate3d("+a+", "+s+", "+o+") ":"translate("+a+", "+s+") "),"0deg"!==u&&(y+="rotate("+u+") "),"0deg"!==l&&(y+="rotateY("+l+") "),"0deg"!==h&&(y+="rotateX("+h+") "),"0deg"===c&&"0deg"===d||(y+="skew("+c+", "+d+") "),1===p&&1===f||(y+="scale("+p+", "+f+") "),g.style[ji]=y||"translate(0, 0)"},Cr=function(t,e){var i,r,n,a,s,o=e||this,u=o.xPercent,l=o.yPercent,h=o.x,c=o.y,d=o.rotation,p=o.skewX,f=o.skewY,D=o.scaleX,m=o.scaleY,g=o.target,v=o.xOrigin,y=o.yOrigin,_=o.xOffset,w=o.yOffset,C=o.forceCSS,E=parseFloat(h),x=parseFloat(c);d=parseFloat(d),p=parseFloat(p),(f=parseFloat(f))&&(p+=f=parseFloat(f),d+=f),d||p?(d*=ki,p*=ki,i=Math.cos(d)*D,r=Math.sin(d)*D,n=Math.sin(d-p)*-m,a=Math.cos(d-p)*m,p&&(f*=ki,s=Math.tan(p-f),n*=s=Math.sqrt(1+s*s),a*=s,f&&(s=Math.tan(f),i*=s=Math.sqrt(1+s*s),r*=s)),i=Ft(i),r=Ft(r),n=Ft(n),a=Ft(a)):(i=D,a=m,r=n=0),(E&&!~(h+"").indexOf("px")||x&&!~(c+"").indexOf("px"))&&(E=ar(g,"x",h,"px"),x=ar(g,"y",c,"px")),(v||y||_||w)&&(E=Ft(E+v-(v*i+y*n)+_),x=Ft(x+y-(v*r+y*a)+w)),(u||l)&&(s=g.getBBox(),E=Ft(E+u/100*s.width),x=Ft(x+l/100*s.height)),s="matrix("+i+","+r+","+n+","+a+","+E+","+x+")",g.setAttribute("transform",s),C&&(g.style[ji]=s)},Er=function(t,e,i,r,n,a){var s,o,u=V(n),l=parseFloat(n)*(u&&~n.indexOf("rad")?Fi:1),h=a?l*a:l-r,c=r+h+"deg";return u&&("short"===(s=n.split("_")[1])&&(h%=360)!==h%180&&(h+=h<0?360:-360),"cw"===s&&h<0?h=(h+36e9)%360-360*~~(h/360):"ccw"===s&&h>0&&(h=(h-36e9)%360-360*~~(h/360))),t._pt=o=new pi(t._pt,e,i,r,h,Ii),o.e=c,o.u="deg",t._props.push(i),o},xr=function(t,e){for(var i in e)t[i]=e[i];return t},br=function(t,e,i){var r,n,a,s,o,u,l,h=xr({},i._gsap),c=i.style;for(n in h.svg?(a=i.getAttribute("transform"),i.setAttribute("transform",""),c[ji]=e,r=gr(i,1),ir(i,ji),i.setAttribute("transform",a)):(a=getComputedStyle(i)[ji],c[ji]=e,r=gr(i,1),c[ji]=a),bi)(a=h[n])!==(s=r[n])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(n)<0&&(o=se(a)!==(l=se(s))?ar(i,n,a,l):parseFloat(a),u=parseFloat(s),t._pt=new pi(t._pt,r,n,o,u-o,Mi),t._pt.u=l||0,t._props.push(n));xr(r,h)};bt("padding,margin,Width,Radius",function(t,e){var i="Top",r="Right",n="Bottom",a="Left",s=(e<3?[i,r,n,a]:[i+a,i+r,n+r,n+a]).map(function(i){return e<2?t+i:"border"+i+t});hr[e>1?"border"+t:t]=function(t,e,i,r,n){var a,o;if(arguments.length<4)return a=s.map(function(e){return sr(t,e,i)}),5===(o=a.join(" ")).split(a[0]).length?a[0]:o;a=(r+"").split(" "),o={},s.forEach(function(t,e){return o[t]=a[e]=a[e]||a[(e-1)/2|0]}),t.init(e,o,n)}});var Fr,kr,Tr={name:"css",register:Qi,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,i,r,n){var a,s,o,u,l,h,c,d,p,f,D,m,g,v,y,_,w,C,E,x=this._props,b=t.style,F=i.vars.startAt;for(c in wi||Qi(),e)if("autoRound"!==c&&(s=e[c],!gt[c]||!Xe(c,e,i,r,t,n)))if(l=typeof s,h=hr[c],"function"===l&&(l=typeof(s=s.call(i,r,t,n))),"string"===l&&~s.indexOf("random(")&&(s=ge(s)),h)h(this,t,c,s,i)&&(y=1);else if("--"===c.substr(0,2))a=(getComputedStyle(t).getPropertyValue(c)+"").trim(),s+="",ke.lastIndex=0,ke.test(a)||(d=se(a),p=se(s)),p?d!==p&&(a=ar(t,c,a,p)+p):d&&(s+=d),this.add(b,"setProperty",a,s,r,n,0,0,c),x.push(c);else if("undefined"!==l){if(F&&c in F?(a="function"==typeof F[c]?F[c].call(i,r,t,n):F[c],c in P.units&&!se(a)&&(a+=P.units[c]),V(a)&&~a.indexOf("random(")&&(a=ge(a)),"="===(a+"").charAt(1)&&(a=sr(t,c))):a=sr(t,c),u=parseFloat(a),(f="string"===l&&"="===s.charAt(1)?+(s.charAt(0)+"1"):0)&&(s=s.substr(2)),o=parseFloat(s),c in Oi&&("autoAlpha"===c&&(1===u&&"hidden"===sr(t,"visibility")&&o&&(u=0),rr(this,b,"visibility",u?"inherit":"hidden",o?"inherit":"hidden",!o)),"scale"!==c&&"transform"!==c&&~(c=Oi[c]).indexOf(",")&&(c=c.split(",")[0])),D=c in bi)if(m||((g=t._gsap).renderTransform&&!e.parseTransform||gr(t,e.parseTransform),v=!1!==e.smoothOrigin&&g.smooth,(m=this._pt=new pi(this._pt,b,ji,0,1,g.renderTransform,g,0,-1)).dep=1),"scale"===c)this._pt=new pi(this._pt,g,"scaleY",g.scaleY,(f?f*o:o-g.scaleY)||0),x.push("scaleY",c),c+="X";else{if("transformOrigin"===c){w=void 0,C=void 0,E=void 0,w=(_=s).split(" "),C=w[0],E=w[1]||"50%","top"!==C&&"bottom"!==C&&"left"!==E&&"right"!==E||(_=C,C=E,E=_),w[0]=ur[C]||C,w[1]=ur[E]||E,s=w.join(" "),g.svg?mr(t,s,0,v,0,this):((p=parseFloat(s.split(" ")[2])||0)!==g.zOrigin&&rr(this,g,"zOrigin",g.zOrigin,p),rr(this,b,c,vr(a),vr(s)));continue}if("svgOrigin"===c){mr(t,s,1,v,0,this);continue}if(c in dr){Er(this,g,c,u,s,f);continue}if("smoothOrigin"===c){rr(this,g,"smooth",g.smooth,s);continue}if("force3D"===c){g[c]=s;continue}if("transform"===c){br(this,s,t);continue}}else c in b||(c=Ji(c)||c);if(D||(o||0===o)&&(u||0===u)&&!Bi.test(s)&&c in b)d=(a+"").substr((u+"").length),o||(o=0),d!==(p=se(s)||(c in P.units?P.units[c]:d))&&(u=ar(t,c,a,p)),this._pt=new pi(this._pt,D?g:b,c,u,f?f*o:o-u,D||"px"!==p&&"zIndex"!==c||!1===e.autoRound?Mi:Li),this._pt.u=p||0,d!==p&&"%"!==p&&(this._pt.b=a,this._pt.r=Pi);else if(c in b)or.call(this,t,c,a,s);else{if(!(c in t)){ht(c,s);continue}this.add(t,c,a||t[c],s,r,n)}x.push(c)}y&&di(this)},get:sr,aliases:Oi,getSetter:function(t,e,i){var r=Oi[e];return r&&r.indexOf(",")<0&&(e=r),e in bi&&e!==Ui&&(t._gsap.x||sr(t,"x"))?i&&Ei===i?"scale"===e?Wi:Yi:(Ei=i||{})&&("scale"===e?Hi:Vi):t.style&&!G(t.style[e])?zi:~e.indexOf("-")?Ni:ni(t,e)},core:{_removeProperty:ir,_getMatrix:Dr}};gi.utils.checkPrefix=Ji,kr=bt("x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+(Fr="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(t){bi[t]=1}),bt(Fr,function(t){P.units[t]="deg",dr[t]=1}),Oi[kr[13]]="x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+Fr,bt("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(t){var e=t.split(":");Oi[e[1]]=kr[e[0]]}),bt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){P.units[t]="px"}),gi.registerPlugin(Tr);var Ar=gi.registerPlugin(Tr)||gi,Sr=(Ar.core.Tween,function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n()(this,t),this.worker=new Worker("/assets/code/image-load.js"),this.array=[],this.domElements=!1,this.loadingImages=!1,this.count=0,this.sent=0,this.total=0,this.break=!1,this.callbackCap=void 0===i.callbackCap?1e6:parseInt(i.callbackCap),this.dataAttr=void 0===i.dataAttr?"preload":i.dataAttr,this.forceNoWorker=void 0!==i.forceNoWorker&&i.forceNoWorker,this.size=void 0===i.size?"mobile":i.size,this.tagExclusions=void 0===i.tagExclusions?["audio","iframe","video"]:i.tagExclusions,this.workerCap=void 0===i.workerCap?1e6:parseInt(i.workerCap),this.delay=void 0!==i.delay&&parseInt(i.delay),this.bindEvents()}return s()(t,[{key:"bindEvents",value:function(){var t=this;this.worker.addEventListener("message",function(e){var i=e.data,r=URL.createObjectURL(i.blob);if(t.array[i.url]=r,t.domElements){i.url.indexOf("localhost")&&(i.url=i.url.replace(o.domain,""));for(var n=document.querySelectorAll("[data-".concat(t.dataAttr,"-").concat(t.size,'="').concat(i.url,'"]')),a=0;a0&&void 0!==arguments[0]?arguments[0]:[],i=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.count=this.loadingImages?this.count:0,this.total=this.loadingImages?this.total+e.length:e.length,this.loadingImages=!0,"string"===i&&(e=document.querySelectorAll(e),this.domElements=!0),"nodeList"===i&&(this.domElements=!0),"array"===i&&(this.domElements=!1,this.returnedUrls=[]);window.location.protocol;for(var n=0;n=0||this.sent>=this.workerCap)||a.indexOf("gif")>0?this.preload(e[n],a):(this.array[a]="",this.sent++,this.message(a)):(this.domElements?this.preload(e[n],this.array[a]):this.returnedUrls.push(this.array[a]),this.total--))):this.total--}setTimeout(function(){});var u=setInterval(function(){(t.count>=t.total||t.count>=t.callbackCap)&&(clearInterval(u),t.loadingImages=!1,t.domElements?r(t.count+" elements loaded, "+(t.count-t.total)+" duplicate elements"):r(t.returnedUrls))},10);this.delay&&!1!==this.delay&&setTimeout(function(){clearInterval(u),t.loadingImages=!1,r(t.count+" elements loaded, forced after "+t.delay+" milleseconds")},this.delay)}},{key:"preload",value:function(t,e){switch(t.tagName.toLowerCase()){case"audio":case"video":this.loadSource(t,e);break;case"image":this.loadSVGImage(t,e);break;case"iframe":case"img":this.loadSrc(t,e);break;default:this.loadBackgroundImage(t,e)}this.clearElement(t)}},{key:"loadSource",value:function(t,e){var i=this,r=document.createElement("source");r.setAttribute("src",e),t.appendChild(r),t.load();var n=setInterval(function(){t.readyState>3&&(i.count++,clearInterval(n))},10)}},{key:"loadSrc",value:function(t,e){var i=this;t.onload=function(){i.count++},t.onerror=function(){i.count++},t.setAttribute("src",e)}},{key:"loadSVGImage",value:function(t,e){var i=this;t.onload=function(){i.count++},t.onerror=function(){i.count++},t.setAttribute("href",e)}},{key:"loadBackgroundImage",value:function(t,e){var i=this,r=new Image;r.onload=function(){t.style.backgroundImage="url("+e+")",i.count++},r.onerror=function(){i.count++},r.src=e}},{key:"clearElement",value:function(t){t&&(t.classList.remove("preload"),t.classList.remove("preload-critical"),t.classList.remove("preload-hover"),t.classList.remove("global-preload"),t.removeAttribute("data-preload-desktop"),t.removeAttribute("data-preload-mobile"))}},{key:"clearBlob",value:function(t){this.array[t]&&(URL.revokeObjectURL(this.array[t]),this.remove(this.array,t))}},{key:"clearAllBlobs",value:function(){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:{};n()(this,t),this.bindMethods(),this.el=document.documentElement,this.currentView=this.el.querySelector("[data-router-view]:last-child"),this.thisPagesTLs=[],this.scrollBasedElems=[],this.offsetVal=0,this.body=document.body,this.direction="untouched",this.transitioning=!1,this.animatingInfinite=!1,this.headerScrolled=!1;var r=i.dataFromElems,a=void 0===r?this.currentView.querySelectorAll("[data-from]"):r,s=i.dataHeroFromElems,u=void 0===s?this.currentView.querySelectorAll("[data-h-from]"):s,l=i.heroMeasureEl,h=void 0===l?this.currentView.querySelector(".hero-measure-el"):l,c=i.scrollBasedElems,d=void 0===c?document.querySelectorAll("[data-entrance]"):c,p=i.threshold,f=void 0===p?.01:p;this.dom={el:this.el,dataFromElems:a,dataHeroFromElems:u,scrollBasedElems:d,heroMeasureEl:h},this.dataFromElems=null,this.dataHeroFromElems=null,this.raf=null,this.state={resizing:!1};var D=this.el.scrollTop;this.data={threshold:f,current:D,target:0,last:D,ease:.12,height:0,max:0,scrollY:D,window2x:2*o.windowHeight},this.heroGlobe=document.getElementById("home-globe"),this.heroGlobe2=document.getElementById("home-globe-2");for(var m=this.dom.scrollBasedElems.length,g=function(t){var i=e.dom.scrollBasedElems[t],r=i.dataset.entrance,n=new Ar.timeline({paused:!0}),a=void 0;switch(r){case"select-clients":var s=i.querySelector("h3");a=i.querySelectorAll(".s-el");for(var u=o.windowWidth>959?[[],[],[]]:[[],[]],l=0,h=0;h959&&n.fromTo(u[2],{y:20},{duration:.35,stagger:.055,y:0,ease:"sine.out",force3D:!0},.5).fromTo(u[2],{opacity:0},{duration:.33,stagger:.055,opacity:1,ease:"sine.out",force3D:!0},.52),Ar.set(a,{clearProps:"transform",delay:.1}),e.thisPagesTLs.push(n);break;case"stagger-fade":a=i.querySelectorAll(".s-el"),n.fromTo(a,{y:20},{duration:.35,stagger:.055,y:0,ease:"sine.out",force3D:!0},0).fromTo(a,{opacity:0},{duration:.33,stagger:.055,clearProps:"transform",opacity:1,ease:"sine.out",force3D:!0},.02),e.thisPagesTLs.push(n);break;case"bottom-lockup":var c=i.querySelectorAll(".heading p"),d=i.querySelectorAll(".ballet-word"),p=i.querySelectorAll(".emdash"),f=i.querySelectorAll(".date-text"),D=document.querySelectorAll("#footer a");n.fromTo(c,{opacity:0},{duration:.6,stagger:.11,opacity:1,ease:"sine.out",force3D:!0},0).fromTo(d,{opacity:0},{duration:1.4,opacity:1,ease:"elastic.inOut(1, 0.3)"},.2).fromTo(p,{scaleX:0},{duration:1.3,transformOrigin:"0 50%",scaleX:1,ease:"expo.out"},.8).fromTo(f,{opacity:0},{duration:.5,opacity:1,ease:"sine.out"},1.1),D.length>0&&n.fromTo(D,{opacity:0},{duration:.35,stagger:.075,opacity:1,ease:"sine.inOut",force3D:!0},1.5),e.thisPagesTLs.push(n);break;case"basic-fade":n.fromTo(i,{y:26},{duration:.5,y:0,ease:"sine.inOut",force3D:!0}).fromTo(i,{opacity:0},{duration:.48,opacity:1,clearProps:"transform",ease:"sine.inOut",force3D:!0},.02),e.thisPagesTLs.push(n);break;case"scrambled-text":Ar.set(i,{height:i.getBoundingClientRect().height});var m=Sn(i);n.add(function(){i.classList.add("played"),m()}),e.thisPagesTLs.push(n)}},v=0;vthis.shuffleBoundsData.top?this.shuffleBoundsData.playing||(this.shuffleBoundsData.playing=!0,ia.startShuffle()):this.shuffleBoundsData.playing&&(this.shuffleBoundsData.playing=!1,ia.stopShuffle()))}},{key:"getDirection",value:function(){if(this.data.last-this.data.scrollY<0){if("down"===this.direction||this.data.scrollY<=0)return;this.direction="down"}else if(this.data.last-this.data.scrollY>0){if("up"===this.direction)return;this.direction="up"}}},{key:"hideShowHeader",value:function(){"untouched"!==this.direction&&("down"===this.direction&&!this.headerScrolled&&this.data.scrollY>=0?(this.headerScrolled=!0,Ar.to(u.header,{scale:1.2,ease:"expo.inOut",duration:.9,force3D:!0}),Ar.to(u.header,{opacity:0,ease:"sine.inOut",duration:.65,force3D:!0}),o.marqueeData[0]&&o.marqueeData[0].playing&&(o.marqueeData[0].playing=!1,o.marqueeData[0].tween.pause())):"up"===this.direction&&this.headerScrolled&&(this.headerScrolled=!1,Ar.to(u.header,{scale:1,ease:"expo.out",duration:.9,force3D:!0}),Ar.to(u.header,{opacity:1,ease:"sine.inOut",duration:.65,force3D:!0}),o.marqueeData[0]&&!o.marqueeData[0].playing&&Cn.isPlaying&&(o.marqueeData[0].playing=!0,o.marqueeData[0].tween.play())))}},{key:"getScrolledMedia",value:function(){if(this.data.scrolledMediaCount=0,this.data.scrolledMediaFired=0,this.dom.scrolledMedia=document.querySelectorAll(".mw"),this.dom.scrolledMedia){this.scrolledMediaData=[];for(var t=0;t0&&void 0!==arguments[0]&&arguments[0];if(("untouched"!==this.direction||t)&&this.scrolledMediaData&&this.data.scrolledMediaFired!==this.data.scrolledMediaCount)for(var e=0;ei.top&&(i.el.classList.remove("mw"),vn.loadImages(i.mediaEls,"nodeList",function(){}),this.data.scrolledMediaFired++,i.loaded=!0)}}},{key:"playPauseVideos",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(("untouched"!==this.direction||t)&&0!==this.videosDataLength)for(var e=0;e=1&&(n=1),t.timeline.progress(n)}else t.reset||(t.reset=!0,"down"===this.direction?t.timeline.progress(1):t.timeline.progress(0))}}},{key:"getInfiniteData",value:function(){var t=document.getElementById("infinite-measure-el");if(t){var e=t.getBoundingClientRect(),i=new Ar.timeline({paused:!0});Ar.set(this.heroGlobe2,{clearProps:"opacity"}),i.fromTo(this.heroGlobe2,{opacity:0},{opacity:.5,ease:"none"}),this.infiniteScrollData={top:e.top+this.data.scrollY,bottom:e.bottom+this.data.scrollY,height:e.bottom-e.top,timeline:i,reset:!0,duration:(this.data.height/(e.bottom-e.top)).toFixed(2)}}}},{key:"animateInfiniteScroll",value:function(){var t=this;if("untouched"!==this.direction&&this.infiniteScrollData&&!this.animatingInfinite){this.data.scrollY>=this.data.max&&"down"===this.direction?(this.animatingInfinite=!0,this.horizontalScrollData.timeline.progress(0),this.data.last=0,this.data.current=0,this.data.scrollY=0,this.heroMeasureData.tl.progress(0),this.infiniteScrollData.timeline.progress(0),this.el.scrollTop=0,Ar.delayedCall(.05,function(){t.animatingInfinite=!1})):0===this.data.scrollY&&"up"===this.direction&&(this.animatingInfinite=!0,this.horizontalScrollData.timeline.progress(1),this.data.last=this.data.max,this.data.scrollY=this.data.max,this.data.current=this.data.max,this.heroMeasureData.tl.progress(1),this.infiniteScrollData.timeline.progress(1),this.el.scrollTop=this.data.max,Ar.delayedCall(.05,function(){t.animatingInfinite=!1}));var e=this.infiniteScrollData,i=this.isVisible(e,.01),r=i.isVisible,n=i.start;if(r){var a=-1*((n.toFixed(2)/this.data.height).toFixed(3)-1)*e.duration;a<=0?a=0:a>=1&&(a=1),e.timeline.progress(a)}}}},{key:"getDataFromElems",value:function(){if(this.dom.dataFromElems){this.dataFromElems=[];for(var t=o.windowWidth<768,e=this.dom.dataFromElems.length,i=0;i=1&&(t=1),this.heroMeasureData.tl.progress(t)}else!this.heroMeasureData.reset&&"down"===this.direction&&sn&&(sn.revert(),on.revert(),this.heroMeasureData.reset=!0)}},{key:"animateDataFromElems",value:function(){if("untouched"!==this.direction&&this.dataFromElems)for(var t=this.dataFromElems.length,e=0;e0&&void 0!==arguments[0]&&arguments[0];if(("untouched"!==this.direction||!1!==t)&&this.scrollBasedElems&&this.thisPagesTLs.length!==this.offsetVal)for(var e=this.scrollBasedElems.length,i=0;ir.top&&(this.thisPagesTLs[i].play(),this.offsetVal++,r.played=!0)}}},{key:"intersectRatio",value:function(t,e,i){var r=e-this.data.height;if(!(r>0)){var n=(this.data.height+i+t.height)*t.duration;t.progress.current=Math.abs(r/n),t.progress.current=Math.max(0,Math.min(1,t.progress.current))}}},{key:"isVisible",value:function(t,e){var i=e||this.data.threshold,r=t.top-this.data.current,n=t.bottom-this.data.current,a=t.top-this.data.current,s=t.bottom-this.data.current,o=a-i;return{isVisible:o,start:r,end:n}}},{key:"requestAnimationFrame",value:function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(){this.raf=requestAnimationFrame(this.run)})},{key:"cancelAnimationFrame",value:function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(){cancelAnimationFrame(this.raf)})},{key:"getCache",value:function(){this.getVideos(),this.getScrollBasedSections(),this.getDataFromElems(),this.getScrolledMedia(),this.getHeroMeasureEl(),this.getHorizontalWorkData(),o.isMobile||this.getInfiniteData(),o.isMobile&&document.getElementById("shuffle-images")&&this.getShuffleBounds(),this.checkScrolledMedia(!0)}},{key:"getBounding",value:function(){this.data.height=o.windowHeight,this.data.max=Math.floor(this.dom.el.getBoundingClientRect().height-this.data.height)}},{key:"resize",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.state.resizing||(this.state.resizing=!0,this.getBounding(),this.getHorizontalWorkData(),this.getHeroMeasureEl(),o.isMobile||this.getInfiniteData(),o.isMobile&&document.getElementById("shuffle-images")&&this.getShuffleBounds(),this.getVideos(),this.getScrollBasedSections(),this.checkScrolledMedia(),this.state.resizing=!1)}},{key:"scrollTo",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"expo.inOut",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.state.scrollingTo=!0,Ar.set(u.eventMask,{pointerEvents:"all"}),Ar.to(this.el,i,{scrollTop:t,ease:r,onComplete:function(){e.state.scrollingTo=!1,Ar.set(u.eventMask,{pointerEvents:"none"}),n&&n()}})}},{key:"destroy",value:function(){this.transitioning=!0,this.state.rafCancelled=!0,this.cancelAnimationFrame(),this.resize=null,this.dom.el.removeEventListener("wheel",this.event,!0),clearTimeout(this.scrollTimeout),this.dom=null,this.data=null,this.raf=null}}]),t}(),Or=i(5),Mr=i.n(Or),Ir=/([\uD800-\uDBFF][\uDC00-\uDFFF](?:[\u200D\uFE0F][\uD800-\uDBFF][\uDC00-\uDFFF]){2,}|\uD83D\uDC69(?:\u200D(?:(?:\uD83D\uDC69\u200D)?\uD83D\uDC67|(?:\uD83D\uDC69\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D(?:\uD83D\uDC69\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]\uFE0F|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC6F\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3C-\uDD3E\uDDD6-\uDDDF])\u200D[\u2640\u2642]\uFE0F|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F\u200D[\u2640\u2642]|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642])\uFE0F|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\uD83D\uDC69\u200D[\u2695\u2696\u2708]|\uD83D\uDC68(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708]))\uFE0F|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83D\uDC69\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|\uD83D\uDC68(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66\u200D\uD83D\uDC66|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92])|(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]))|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDD1-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\u200D(?:(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC67|(?:(?:\uD83D[\uDC68\uDC69])\u200D)?\uD83D\uDC66)|\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC69\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDDD1-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])?|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDEEB\uDEEC\uDEF4-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267B\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEF8]|\uD83E[\uDD10-\uDD3A\uDD3C-\uDD3E\uDD40-\uDD45\uDD47-\uDD4C\uDD50-\uDD6B\uDD80-\uDD97\uDDC0\uDDD0-\uDDE6])\uFE0F)/; /*! * SplitText: 3.2.6 * https://greensock.com * * @license Copyright 2008-2020, GreenSock. All rights reserved. * Subject to the terms at https://greensock.com/standard-license or for * Club GreenSock members, the agreement issued with that membership. * @author: Jack Doyle, jack@greensock.com */ var Pr,Lr,qr,Rr=/(?:\r|\n|\t\t)/g,zr=/(?:\s\s+)/g,Nr=function(){Pr=document,Lr=window,qr=1},Yr=1,Wr=function(t){return Lr.getComputedStyle(t)},Hr=Array.isArray,Vr=[].slice,jr=function(t,e){var i;return Hr(t)?t:"string"===(i=Mr()(t))&&!e&&t?Vr.call(Pr.querySelectorAll(t),0):t&&"object"===i&&"length"in t?Vr.call(t,0):t?[t]:[]},Ur=function(t){return"absolute"===t.position||!0===t.absolute},Gr=function(t,e){for(var i,r=e.length;--r>-1;)if(i=e[r],t.substr(0,i.length)===i)return i.length},Xr=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0,i=~t.indexOf("++"),r=1;return i&&(t=t.split("++").join("")),function(){return"<"+e+" style='position:relative;display:inline-block;'"+(t?" class='"+t+(i?r++:"")+"'>":">")}},Kr=function t(e,i,r){var n=e.nodeType;if(1===n||9===n||11===n)for(e=e.firstChild;e;e=e.nextSibling)t(e,i,r);else 3!==n&&4!==n||(e.nodeValue=e.nodeValue.split(i).join(r))},Jr=function(t,e){for(var i=e.length;--i>-1;)t.push(e[i])},Qr=function(t,e,i){for(var r;t&&t!==e;){if(r=t._next||t.nextSibling)return r.textContent.charAt(0)===i;t=t.parentNode||t._parent}},Zr=function t(e){var i,r,n=jr(e.childNodes),a=n.length;for(i=0;iF&&("BR"!==h.nodeName||0===o)&&(p=[],I.push(p),w=v),q&&(h._x=h.offsetLeft,h._y=v,h._w=h.offsetWidth,h._h=h.offsetHeight),I&&((h._isSplit&&d||!L&&d||P&&d||!P&&h.parentNode.parentNode===t&&!h.parentNode._isSplit)&&(p.push(h),h._x-=_,Qr(h,t,B)&&(h._wordEnd=!0)),"BR"===h.nodeName&&(h.nextSibling&&"BR"===h.nextSibling.nodeName||0===o)&&I.push([])));for(o=0;o-1;)N[o].parentNode.removeChild(N[o]);if(I){for(q&&(m=Pr.createElement(O),t.appendChild(m),g=m.offsetWidth+"px",v=m.offsetParent===t?0:t.offsetLeft,t.removeChild(m)),D=t.style.cssText,t.style.cssText="display:none;";t.firstChild;)t.removeChild(t.firstChild);for(f=" "===B&&(!q||!P&&!L),o=0;ot.clientHeight&&(t.style.height=s-x+"px",t.clientHeightt.clientWidth&&(t.style.width=a-b+"px",t.clientWidth",v=1,y=e.specialChars?"function"==typeof e.specialChars?e.specialChars:Gr:null,_=Pr.createElement("div"),w=t.parentNode;for(w.insertBefore(_,t),_.textContent=t.nodeValue,w.removeChild(t),h=-1!==(n=function t(e){var i=e.nodeType,r="";if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)r+=t(e)}else if(3===i||4===i)return e.nodeValue;return r}(t=_)).indexOf("<"),!1!==e.reduceWhiteSpace&&(n=n.replace(zr," ").replace(Rr,"")),h&&(n=n.split("<").join("{{LT}}")),u=n.length,a=(" "===n.charAt(0)?m:"")+i(),s=0;s":l,s+=c-1;else if(l===D&&n.charAt(s-1)!==D&&s){for(a+=v?g:"",v=0;n.charAt(s+1)===D;)a+=m,s++;s===u-1?a+=m:")"!==n.charAt(s+1)&&(a+=m+i(),v=1)}else"{"===l&&"{{LT}}"===n.substr(s,6)?(a+=p?r()+"{{LT}}":"{{LT}}",s+=5):l.charCodeAt(0)>=55296&&l.charCodeAt(0)<=56319||n.charCodeAt(s+1)>=65024&&n.charCodeAt(s+1)<=65039?(o=((n.substr(s,12).split(Ir)||[])[1]||"").length||2,a+=p&&" "!==l?r()+n.substr(s,o)+"":n.substr(s,o),s+=o-1):a+=p&&" "!==l?r()+l+"":l;t.outerHTML=a+(v?g:""),h&&Kr(w,"{{LT}}","<")},rn=function t(e,i,r,n){var a,s,o=jr(e.childNodes),u=o.length,l=Ur(i);if(3!==e.nodeType||u>1){for(i.absolute=!1,a=0;a-1;)r=this.elements[n],this._originals[n]=r.innerHTML,e=r.clientHeight,i=r.clientWidth,rn(r,t,s,o),tn(r,t,this.chars,this.words,this.lines,i,e);return this.chars.reverse(),this.words.reverse(),this.lines.reverse(),this.isSplit=!0,this}},{key:"revert",value:function(){var t=this._originals;if(!t)throw"revert() call wasn't scoped properly.";return this.elements.forEach(function(e,i){return e.innerHTML=t[i]}),this.chars=[],this.words=[],this.lines=[],this.isSplit=!1,this}}],[{key:"create",value:function(e,i){return new t(e,i)}}]),t}();nn.version="3.2.6";Ar.registerPlugin(nn);var an,sn,on,un,ln=function(){function t(){n()(this,t),this.trigger=document.getElementById("nav-trigger"),this.navDrawer=document.getElementById("nav-drawer"),this.links=document.querySelectorAll(".link"),this.chars=new nn(this.links,{type:"chars"}).chars,this.isOpen=!1,this.rotate=0,this.timeline=new Ar.timeline,Ar.set(this.chars,{autoAlpha:0,y:-32}),Ar.set(this.navDrawer,{autoAlpha:1}),this.bindListeners()}return s()(t,[{key:"bindListeners",value:function(){var t=this;this.trigger.addEventListener("click",function(){t.isOpen?t.close():t.open(),Cn.isOpen&&Cn.close()}),document.addEventListener("keyup",function(e){var i=e.key;"Escape"!==i&&"Esc"!==i||t.close()});for(var e=function(e){t.links[e].addEventListener("click",function(){window.location.href===t.links[e].href&&xn.isOpen&&xn.close()})},i=0;i0&&void 0!==arguments[0]&&arguments[0];this.isPlaying?(this.isPlaying=!1,this.stopSpinning(t),this.tracksData[this.trackIdx].el.pause(),this.navOnOff.textContent="OFF",this.onOff.textContent="OFF",o.marqueeData[1].playing&&(o.marqueeData[1].playing=!1,o.marqueeData[1].tween.pause())):(this.isPlaying=!0,this.startSpinning(t),this.tracksData[this.trackIdx].el.play(),this.navOnOff.textContent="ON",this.onOff.textContent="ON",o.marqueeData[1].playing||(o.marqueeData[1].playing=!0,o.marqueeData[1].tween.play()))}},{key:"startSpinning",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.startStopTween&&(this.startStopTween.kill(),this.startStopTween=null),this.spinningTween.play(),e?(this.startStopTimescale.int=1,this.spinningTween.timeScale(this.startStopTimescale.int)):this.startStopTween=Ar.to(this.startStopTimescale,{int:1,ease:"sine.in",duration:.8,onUpdate:function(){t.spinningTween.timeScale(t.startStopTimescale.int)}})}},{key:"stopSpinning",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.startStopTween&&(this.startStopTween.kill(),this.startStopTween=null),e?this.spinningTween.pause():this.startStopTween=Ar.to(this.startStopTimescale,{int:0,ease:"sine.out",duration:1,onUpdate:function(){t.spinningTween.timeScale(t.startStopTimescale.int)},onComplete:function(){t.spinningTween.pause()}})}},{key:"open",value:function(){this.isOpen=!0,this.timeline.clear(),this.timeline.progress(0),xn.isOpen||(Ar.set(u.globalBorder,{pointerEvents:"all"}),this.timeline.add(aa())),this.isPlaying&&this.startSpinning(!0),Ar.set(this.walkmanDrawer,{pointerEvents:"all"}),this.timeline.to(this.walkman,{x:0,y:0,scale:1,z:0,rotation:0,duration:1.3,force3D:!0,ease:"expo.out"},.1).to(this.trigger,{autoAlpha:0,duration:.3,force3D:!0,ease:"sine.out"},0).to(this.fadeEls,{autoAlpha:1,duration:.3,force3D:!0,ease:"sine.out"},.1).to(this.navPlayPauseTrigger,{autoAlpha:0,duration:.3,force3D:!0,ease:"sine.out"},0),!o.marqueeData[1].playing&&this.isPlaying&&(o.marqueeData[1].playing=!0,o.marqueeData[1].tween.play()),o.marqueeData[0].playing&&(o.marqueeData[0].playing=!1,o.marqueeData[0].tween.pause())}},{key:"close",value:function(){var t=this;this.isOpen=!1,this.timeline.clear(),this.timeline.progress(0),this.stopSpinning(),xn.isOpen||(Ar.set(u.globalBorder,{pointerEvents:"none"}),o.transitionFinished&&this.timeline.add(function(){oa()},0),o.marqueeData[1].playing&&(o.marqueeData[1].playing=!1,o.marqueeData[1].tween.pause()),!o.marqueeData[0].playing&&this.isPlaying&&(o.marqueeData[0].playing=!0,o.marqueeData[0].tween.play(),console.log("plating close walkman"))),Ar.set(this.walkmanDrawer,{pointerEvents:"none"}),this.timeline.to(this.walkman,{x:-500,y:-this.offsetY,z:200,scale:.8,rotation:-100,duration:1.3,force3D:!0,ease:"expo.out",onComplete:function(){t.destroyed&&(t.destroyed=!1,Ar.set(t.playerTop,{y:0,x:0,z:0,rotationY:0,rotationX:0}))}},0).to(this.fadeEls,{autoAlpha:0,duration:.3,force3D:!0,ease:"sine.out"},0).to(this.trigger,{autoAlpha:1,duration:.3,force3D:!0,ease:"sine.inOut"},.1).to(this.navPlayPauseTrigger,{autoAlpha:1,duration:.3,force3D:!0,ease:"sine.inOut"},.1)}},{key:"next",value:function(){this.tracksData[this.trackIdx].el.paused?(this.isPlaying=!0,this.navOnOff.textContent="ON",this.onOff.textContent="ON"):(this.stopSpinning(!0),this.tracksData[this.trackIdx].el.pause()),Ar.set(this.cds[this.trackIdx],{autoAlpha:0});var t=Number(this.cds[this.trackIdx]._gsap.rotation.replace("deg",""))/360;this.trackIdx++,this.trackIdx===this.tracksData.length&&(this.trackIdx=0),this.spinningTween=Ar.fromTo(this.cds[this.trackIdx],{rotation:0},{rotation:360,repeat:-1,duration:.3,ease:"none"}),this.spinningTween.progress(t),Ar.set(this.cds[this.trackIdx],{autoAlpha:1}),this.startSpinning();for(var e=document.querySelectorAll(".duplicate"),i=0;i1&&void 0!==arguments[1]?arguments[1]:{};n()(this,t),this.worker=new Worker("/assets/code/image-load.js"),this.array=[],this.loadingImages=!1,this.count=0,this.sent=0,this.total=0,this.break=!1,this.callbackCap=void 0===i.callbackCap?1e6:parseInt(i.callbackCap),this.dataAttr=void 0===i.dataAttr?"preload":i.dataAttr,this.forceNoWorker=void 0!==i.forceNoWorker&&i.forceNoWorker,this.size=void 0===i.size?"mobile":i.size,this.workerCap=void 0===i.workerCap?1e6:parseInt(i.workerCap),this.bindEvents()}return s()(t,[{key:"bindEvents",value:function(){var t=this;this.worker.addEventListener("message",function(e){var i=e.data,r=URL.createObjectURL(i.blob);t.array[i.url]=r,t.returnedUrls.push(r),t.count++})}},{key:"remove",value:function(t,e){return t.filter(function(t){return t!==e})}},{key:"loadImage",value:function(t){var e=t.getAttribute("data-".concat(this.dataAttr,"-").concat(this.size));void 0!==this.array[e]&&""!==this.array[e]&&this.preload(t,this.array[e])}},{key:"loadImages",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.count=this.loadingImages?this.count:0,this.total=this.loadingImages?this.total+e.length:e.length,this.loadingImages=!0,"array"===i&&(this.returnedUrls=[]);for(var n=0;n=t.total||t.count>=t.callbackCap)&&(clearInterval(s),t.loadingImages=!1,r(t.returnedUrls))},10)}},{key:"clearBlob",value:function(t){this.array[t]&&(URL.revokeObjectURL(this.array[t]),this.remove(this.array,t))}},{key:"clearAllBlobs",value:function(){for(var t=0;t\n\t\t\t\t\t \n\t\t\t\t \n\t\t\t '):r+='\n\t\t\t\t
\n\t\t\t\t\t \n\t\t\t\t
\n\t\t\t ')}var s=[];o.prefetchedUrls.includes(e)||(o.prefetchedUrls.push(e),s.push(e)),"requestIdleCallback"in window?window.requestIdleCallback(function(){new ua(s)},{timeout:1e3}):new ua(s),this.tiles.innerHTML=r;this.tiles.querySelectorAll("video")}},{key:"open",value:function(){this.isOpen=!0,this.timeline.clear(),this.timeline.progress(0),Ar.set(this.drawerWrapper,{pointerEvents:"all"}),this.timeline.to(this.workDrawer,{xPercent:0,duration:1.2,force3D:!0,ease:"expo.out"},.05).to(this.backDrop,{autoAlpha:1,duration:.35,force3D:!0,ease:"sine.out"},0)}},{key:"close",value:function(){var t=this;this.isOpen=!1,this.timeline.clear(),this.timeline.progress(0),Ar.to(this.workDrawer,{scrollTop:0,ease:"sine.inOut",duration:.4}),Ar.set(this.drawerWrapper,{pointerEvents:"none"}),this.timeline.to(this.backDrop,{duration:.35,autoAlpha:0,force3D:!0,ease:"sine.out"},.05).to(this.workDrawer,{duration:.9,xPercent:100,force3D:!0,ease:"expo.out",onComplete:function(){t.tiles.innerHTML=""}},0)}}]),t}(),mn=function(){function t(){n()(this,t),this.screenSaver=document.getElementById("screen-saver"),this.timeout="unset",this.isActive=!1,this.justFocused=!1,this.isFocused=!0,this.timeoutDur=Number(this.screenSaver.dataset.timeout),this.timeline=new Ar.timeline,this.bindListeners()}return s()(t,[{key:"bindListeners",value:function(){var t=this;this.startTimeout(),document.addEventListener("mousemove",function(){t.isFocused&&(t.justFocused?t.justFocused=!1:t.closeAndReset(!0))}),document.addEventListener("click",function(){t.closeAndReset()}),window.addEventListener("focus",function(){t.justFocused=!0,t.isFocused=!0}),window.addEventListener("scroll",function(){t.closeAndReset()}),window.addEventListener("blur",function(){clearTimeout(t.timeout),t.isFocused=!1,t.open()})}},{key:"closeAndReset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];clearTimeout(this.timeout),this.isActive&&this.close(t),this.startTimeout()}},{key:"startTimeout",value:function(){var t=this;this.timeout=setTimeout(function(){t.open()},1e3*this.timeoutDur)}},{key:"open",value:function(){this.isActive=!0,this.timeline.clear(),this.timeline.progress(0),this.timeline.to(this.screenSaver,{autoAlpha:1,duration:.3,force3D:!0,ease:"sine.inOut"})}},{key:"close",value:function(t){this.isActive=!1,this.timeline.clear(),this.timeline.progress(0),this.timeline.to(this.screenSaver,{autoAlpha:0,duration:.3,force3D:!0,ease:"sine.inOut"},t?.4:0)}}]),t}(),gn={dataAttr:"preload"},vn=new Sr(o.assetPath+"image-load.js",gn),yn=new Sr(o.assetPath+"image-load.js",gn),_n=new cn(o.assetPath+"image-load.js",gn),wn=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(o.namespace=t,"home"===o.namespace){var e=document.querySelector(".sticky-work .sticky-element");sa(e)}if(o.isMobile&&o.isGreaterThan767)for(var i=document.querySelectorAll(".work-tile"),r=0;r0&&void 0!==arguments[0]?arguments[0]:null,e=new Ar.timeline({paused:!0});switch(o.firstLoad&&(Ar.to(u.header,{scale:1,ease:"expo.out",duration:.9,force3D:!0,onComplete:function(){un=new Tn}}),Ar.to(u.header,{opacity:1,ease:"sine.inOut",duration:.65,force3D:!0}),e.to(u.countEl,{opacity:0,duration:.25,ease:"sine.out"},0).add(function(){"home"===o.namespace?Ar.set([u.menuGlobe,u.globalBackdrop],{autoAlpha:0}):Ar.to([u.menuGlobe,u.globalBackdrop],{autoAlpha:0,ease:"sine.out",duration:.23,force3D:!0})})),e.set(u.eventMask,{pointerEvents:"none"},.4),t){case"home":var i=document.querySelector(".home-hero"),r=i.querySelector(".emdash"),n=i.querySelector(".ballet-word");sn=new nn(i.querySelector(".heading p"),{type:"chars"}),on=new nn(i.querySelector(".bottom-text"),{type:"chars"});var a=sn.chars,s=on.chars;ea(a),ea(s),e.fromTo(r,{scaleX:0},{duration:1.3,transformOrigin:"0 50%",scaleX:1,ease:"expo.out"},.4).fromTo(a,{y:-32},{duration:1.4,stagger:.065,y:0,ease:"elastic.out(1, 0.3)"},.25).fromTo(a,{autoAlpha:0},{duration:.35,stagger:.065,autoAlpha:1,ease:"sine.inOut"},.27).fromTo(s,{y:-32},{duration:1.4,stagger:.065,y:0,ease:"elastic.out(1, 0.3)"},.25).fromTo(s,{autoAlpha:0},{duration:.35,stagger:.065,autoAlpha:1,ease:"sine.inOut"},.27).fromTo(n,{autoAlpha:0},{duration:1.4,autoAlpha:1,ease:"elastic.inOut(1, 0.3)"},.75);break;default:var l=document.querySelector(".enter-split");if(o.isGreaterThan767)sn=new nn(l,{type:"chars"});else{var h=new nn(l,{type:"words"}).words;sn=new nn(h,{type:"chars"})}var c=sn.chars;ea(c);var d=document.getElementById("enter-fade");e.fromTo(c,{y:-32},{duration:1.4,stagger:.08,y:0,ease:"elastic.out(1, 0.3)"},0).fromTo(c,{autoAlpha:0},{duration:.35,stagger:.08,autoAlpha:1,ease:"sine.inOut"},.05).fromTo(d,{y:25},{duration:.4,y:0,ease:"sine.out",force3D:!0},.2).fromTo(d,{opacity:0},{duration:.38,opacity:1,ease:"sine.out",force3D:!0},.22)}o.firstLoad?o.firstLoad=!1:Ar.to([u.menuGlobe,u.globalBackdrop],{autoAlpha:0,ease:"sine.out",duration:.23,force3D:!0}),e.play()},kn=function(){if(!0===o.firstLoad){var t=new Ar.timeline({paused:!0}),e=u.menuGlobePaths,i={val:0,endVal:100};Ar.set([e[0],e[1]],{rotationX:-720}),Ar.set([e[2]],{rotationY:-1080}),Ar.set([e],{opacity:.5}),t.to(e,{opacity:.5,stagger:.1,duration:.4,ease:"sine.inOut"}).to([e[0],e[1],e[2]],{rotationY:0,rotationX:0,stagger:.09,duration:2.55,ease:"expo.inOut"},.7).to(i,{val:i.endVal,duration:3,ease:"expo.inOut",onComplete:function(){o.transitionFinished=!0},onUpdate:function(){u.countEl.textContent=Math.round(i.val)}},.55),t.play()}},Tn=function(){function t(){n()(this,t),this.marquees=document.querySelectorAll(".marquee:not(.prepped)"),this.init()}return s()(t,[{key:"init",value:function(){this.getCache()}},{key:"getCache",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];for(var t=0;te?a=1:(a=Math.ceil(e/n),s=Math.ceil(e/n));var u=this.prepMarkup(this.marquees[t],i,a,r,s);o.marqueeData.push({el:this.marquees[t],tween:u,playing:!1})}}},{key:"prepMarkup",value:function(t,e,i,r,n){for(var a=1;a767?10:9,repeat:-1,x:-u,ease:"none",force3D:!0}).pause();return t.classList.add("prepped"),l}},{key:"resetMarquees",value:function(){o.marqueeData[0].tween.kill(),o.marqueeData[0].tween=null,Ar.set(o.marqueeData[0].el.querySelector(".marquee-inner"),{clearProps:"transform"}),o.marqueeData[1].tween.kill(),o.marqueeData[1].tween=null,Ar.set(o.marqueeData[1].el.querySelector(".marquee-inner"),{clearProps:"transform"}),o.marqueeData=[],this.getCache()}}]),t}(),An="Ÿ©-¢|”".length,Sn=function(t){var e=t.dataset.origText,i=e.length>50?1:.5,r=(e.length,4),n=e.length>50?10:12,a=0,s=0;return t.innerText="",function(){var o=setInterval(function(){t.innerText=e.split("").map(function(t,i){return i=e.length&&clearInterval(o),a+=i},n)}};function Bn(){}Bn.prototype={on:function(t,e,i){var r=this.e||(this.e={});return(r[t]||(r[t]=[])).push({fn:e,ctx:i}),this},once:function(t,e,i){var r=this;function n(){r.off(t,n),e.apply(i,arguments)}return n._=e,this.on(t,n,i)},emit:function(t){for(var e=[].slice.call(arguments,1),i=((this.e||(this.e={}))[t]||[]).slice(),r=0,n=i.length;r=200&&e.status<300)return e.text();window.location.href=t.location.href})}catch(t){return Promise.reject(t)}},e.prototype.beforeFetch=function(){try{var t=this;function e(){t.afterFetch()}t.pushState(),t.running=!0,t.emit("NAVIGATE_OUT",{from:{page:t.From.properties.page,view:t.From.properties.view},trigger:t.trigger,location:t.location});var i={trigger:t.trigger,contextual:t.Contextual},r=t.cache.has(t.location.href)?Promise.resolve(t.From.hide(i)).then(function(){t.properties=t.cache.get(t.location.href)}):Promise.resolve(Promise.all([t.fetch(),t.From.hide(i)])).then(function(e){t.properties=t.Helpers.getProperties(e[0]),t.cache.set(t.location.href,t.properties)});return Promise.resolve(r&&r.then?r.then(e):e())}catch(t){return Promise.reject(t)}},e.prototype.afterFetch=function(){try{var t=this;return Promise.resolve(t.properties.renderer).then(function(e){return t.To=new e(t.properties),t.To.add(),t.emit("NAVIGATE_IN",{to:{page:t.To.properties.page,view:t.To.wrap.lastElementChild},trigger:t.trigger,location:t.location}),Promise.resolve(t.To.show({trigger:t.trigger,contextual:t.Contextual})).then(function(){t.popping=!1,t.running=!1,t.detach(t.links),t.links=document.querySelectorAll("a:not([target]):not([data-router-disabled])"),t.attach(t.links),t.emit("NAVIGATE_END",{to:{page:t.To.properties.page,view:t.To.wrap.lastElementChild},from:{page:t.From.properties.page,view:t.From.properties.view},trigger:t.trigger,location:t.location}),t.From=t.To,t.trigger=null})})}catch(t){return Promise.reject(t)}},e}(On),qn=function(t,e){this.wrap=t,this.name=e};qn.prototype.show=function(t){var e=this,i=t.trigger,r=t.contextual,n=this.wrap.lastElementChild,a=this.wrap.firstElementChild;return new Promise(function(t){r?(n.setAttribute("data-transition-in",r.name),n.removeAttribute("data-transition-out",r.name),r.in&&r.in({to:n,from:a,trigger:i,done:t})):(n.setAttribute("data-transition-in",e.name),n.removeAttribute("data-transition-out",e.name),e.in&&e.in({to:n,from:a,trigger:i,done:t}))})},qn.prototype.hide=function(t){var e=this,i=t.trigger,r=t.contextual,n=this.wrap.firstElementChild;return new Promise(function(t){r?(n.setAttribute("data-transition-out",r.name),n.removeAttribute("data-transition-in",r.name),r.out&&r.out({from:n,trigger:i,done:t})):(n.setAttribute("data-transition-out",e.name),n.removeAttribute("data-transition-in",e.name),e.out&&e.out({from:n,trigger:i,done:t}))})};var Rn={Core:Ln,Helpers:Pn,Renderer:Mn,Transition:qn},zn=i(3),Nn=i.n(zn),Yn=i(4),Wn=i.n(Yn),Hn=i(2),Vn=i.n(Hn);function jn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var i,r=Vn()(t);if(e){var n=Vn()(this).constructor;i=Reflect.construct(r,arguments,n)}else i=r.apply(this,arguments);return Wn()(this,i)}}var Un=function(t){Nn()(i,t);var e=jn(i);function i(){return n()(this,i),e.apply(this,arguments)}return s()(i,[{key:"onEnter",value:function(){}},{key:"onEnterCompleted",value:function(){}},{key:"onLeave",value:function(){}},{key:"onLeaveCompleted",value:function(){}}]),i}(Rn.Renderer);function Gn(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var i,r=Vn()(t);if(e){var n=Vn()(this).constructor;i=Reflect.construct(r,arguments,n)}else i=r.apply(this,arguments);return Wn()(this,i)}}var Xn=function(t){Nn()(i,t);var e=Gn(i);function i(){return n()(this,i),e.apply(this,arguments)}return s()(i,[{key:"out",value:function(t){t.from,t.trigger;var e=t.done;Ar.to(u.topNav,{yPercent:0,ease:"expo.out",duration:.9,force3D:!0}),Ar.to(u.bottomNav,{yPercent:0,ease:"expo.out",duration:.9,force3D:!0}),En.isOpen&&Ar.delayedCall(.1,function(){En.close()}),Ar.to(u.header,{scale:1,ease:"expo.out",duration:.9,force3D:!0,delay:.1}),Ar.to(u.header,{opacity:1,ease:"sine.inOut",duration:.65,force3D:!0,delay:.1}),Cn.isOpen||xn.isOpen?e():Ar.to(u.globalBackdrop,{autoAlpha:1,duration:.23,ease:"sine.out",force3D:!0,onComplete:function(){e()}}),Cn.isOpen&&Cn.close(),xn.isOpen&&xn.close()}},{key:"in",value:function(t){var e=t.from,i=t.to,r=(t.trigger,t.done);o.namespace=i.dataset.routerView,window.scrollTo(0,0),e.remove(),o.transitionFinished=!0,r()}}]),i}(Rn.Transition),Kn=new Rn.Core({renderers:{home:Un},transitions:{default:Xn}});Kn.on("NAVIGATE_OUT",function(t){t.from,t.trigger,t.location;Ar.set(u.eventMask,{pointerEvents:"all"}),an.destroy(),an=!1,o.transitionFinished=!1}),Kn.on("NAVIGATE_IN",function(t){var e=t.to;t.trigger,t.location;!function(t,e,i){wn(t.view.dataset.routerView)}(e)}),Kn.on("NAVIGATE_END",function(t){t.from,t.to,t.trigger,t.location});var Jn=function(){function t(){n()(this,t),this.shuffleParentEl=document.getElementById("shuffle-images"),this.shuffleImages=this.shuffleParentEl.querySelectorAll("img"),this.zIndex=5,this.imageIdx=0,this.timeoutDuration=500,this.reduceBy=50,this.bindListeners()}return s()(t,[{key:"bindListeners",value:function(){var t=this;o.isMobile||(this.shuffleParentEl.addEventListener("mouseenter",function(){t.startShuffle()}),this.shuffleParentEl.addEventListener("mouseleave",function(){t.stopShuffle()})),this.shuffleParentEl.addEventListener("click",function(){t.goToProject(t.shuffleImages[t.imageIdx])})}},{key:"goToProject",value:function(t){var e=t.dataset.uid;this.stopShuffle(),Ar.set(u.eventMask,{pointerEvents:"all"}),Ar.delayedCall(.6,function(){Kn.redirect(window.location.origin+"/work/"+e)})}},{key:"startShuffle",value:function(){this.imageIdx++,this.imageIdx===this.shuffleImages.length&&(this.imageIdx=0),this.zIndex++,Ar.set(this.shuffleImages[this.imageIdx],{zIndex:this.zIndex}),this.nextImage()}},{key:"stopShuffle",value:function(){clearTimeout(this.timeout),this.timeoutDuration=500,this.reduceBy=50}},{key:"nextImage",value:function(){var t=this;this.timeout=setTimeout(function(){t.zIndex++,t.imageIdx++,t.imageIdx===t.shuffleImages.length&&(t.imageIdx=0),t.reduceBy-=3,t.reduceBy<=3&&(t.reduceBy=3),Ar.set(t.shuffleImages[t.imageIdx],{zIndex:t.zIndex,force3D:!0}),t.timeoutDuration-=t.reduceBy,t.timeoutDuration<=70&&(t.timeoutDuration=70),t.nextImage()},this.timeoutDuration)}}]),t}(),Qn=function(){var t=window,e="inner";return"innerWidth"in window||(e="client",t=document.documentElement||document.body),{width:t[e+"Width"],height:t[e+"Height"]}},Zn=function(t,e,i){return t*(1-i)+e*i},$n=function(t,e){for(var i=e.length,r=0;r0;e--){var i=Math.floor(Math.random()*(e+1)),r=t[e];t[e]=t[i],t[i]=r}},ia=!1,ra=function(){o.firstLoad||En.getCache(),document.getElementById("shuffle-images")&&(ia=new Jn)},na=function(){var t=document.querySelectorAll(".preload-global");yn.loadImages(t,"nodeList",function(t){})},aa=function(){var t=new Ar.timeline;return t.to(u.globalBackdrop,{autoAlpha:1,duration:.3,ease:"sine.out",force3D:!0},0).to(u.menuGlobe,{autoAlpha:.5,duration:.3,ease:"sine.out",force3D:!0},0),t},sa=function(t){var e=(o.windowHeight-t.getBoundingClientRect().height)/2;t.parentElement.style.setProperty("--centeredTop",e.toString()+"px")},oa=function(){var t=new Ar.timeline;return t.to([u.globalBackdrop,u.menuGlobe],{autoAlpha:0,duration:.23,ease:"sine.inOut",force3D:!0},0),t},ua=function(){function t(e){n()(this,t),this.fetch(e)}return s()(t,[{key:"fetch",value:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(t){for(var e=function(e){fetch(t[e],{mode:"same-origin",method:"GET",credentials:"same-origin"}).then(function(t){return t.text()}).then(function(i){var r=Kn.Helpers.getProperties(i);Kn.cache.set(t[e],r)})},i=0;ida.height&&Ar.set(fa,{top:pa,paddingBottom:pa});var Da=i(12);o.isMobile=Da.any||(/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!window.MSStream,o.isMobile&&document.getElementsByTagName("html")[0].classList.add("touch"),o.reducedMotion&&window.matchMedia("(prefers-reduced-motion: reduce)").addEventListener("change",function(){o.reducedMotion=window.matchMedia("(prefers-reduced-motion: reduce)").matches}),document.addEventListener("DOMContentLoaded",function(){!function(){var t=document.querySelector("[data-router-view]").dataset.routerView;o.windowHeight=Qn().height,o.windowWidth=Qn().width;var e=o.windowHeight;o.windowHeight=Qn().height,o.windowWidth=Qn().width,e=.01*o.windowHeight,document.body.style.setProperty("--vh","".concat(e,"px")),document.body.style.setProperty("--vhu","".concat(e,"px")),o.isGreaterThan767=o.windowWidth>767&&!document.body.classList.contains("force-mobile"),new mn;var i="mobile";o.isGreaterThan767&&(i="desktop"),vn.size=i,En=new Dn,wn(t),new pn,na(),new fn,Cn=new hn,xn=new ln,document.getElementById("header-logo").addEventListener("click",function(){"/"===window.location.pathname&&(Cn.isOpen&&Cn.close(),xn.isOpen&&xn.close())});var r=["font-size: 24px !important","padding: 12px 0px !important","font-family: Arial !important"].join(";"),n=["padding: 7px 5px 10px !important","font-size: 17px !important","font-family: Arial !important"].join(";"),a=String.fromCodePoint(128075);console.log("%cAll code by Josh Kirk "+a,r),console.log("%c👉 https://twitter.com/joshgkirk",n),console.log("%c👉 https://dribbble.com/joshgkirk",n)}()},!1),window.onload=function(){};var ma=setTimeout(function(){},0);o.isMobile?visualViewport.addEventListener("resize",function(){clearTimeout(ma),ma=setTimeout(function(){bn()},250)}):window.onresize=function(){clearTimeout(ma),ma=setTimeout(function(){bn()},250)},(navigator.userAgent||navigator.vendor||window.opera).indexOf("Instagram")>-1&&(document.body.className+=" instagram-browser force-mobile")}]);