Nathanwoodburn.github.io/assets/js/gsap.min.js

9 lines
62 KiB
JavaScript
Raw Normal View History

2023-05-12 15:22:11 +10:00
/*!
* GSAP 3.10.4
* https://greensock.com
*
* @license Copyright 2022, 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
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,(function(t){"use strict";function e(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i(t){return"string"==typeof t}function n(t){return"function"==typeof t}function s(t){return"number"==typeof t}function a(t){return void 0===t}function o(t){return"object"==typeof t}function u(t){return!1!==t}function h(){return"undefined"!=typeof window}function f(t){return n(t)||i(t)}function l(t){return(Tt=de(t,ae))&&gr}function p(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")}function _(t,e){return!e&&console.warn(t)}function c(t,e){return t&&(ae[t]=e)&&Tt&&(Tt[t]=e)||ae}function d(){return 0}function m(t){var e,r,i=t[0];if(o(i)||n(i)||(t=[t]),!(e=(i._gsap||{}).harness)){for(r=_e.length;r--&&!_e[r].targetTest(i););e=_e[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new Ye(t[r],e)))||t.splice(r,1);return t}function g(t){return t._gsap||m(we(t))[0]._gsap}function v(t,e,r){return(r=t[e])&&n(r)?t[e]():a(r)&&t.getAttribute&&t.getAttribute(e)||r}function y(t,e){return(t=t.split(",")).forEach(e)||t}function T(t){return Math.round(1e5*t)/1e5||0}function x(t){return Math.round(1e7*t)/1e7||0}function w(t,e){var r=e.charAt(0),i=parseFloat(e.substr(2));return t=parseFloat(t),"+"===r?t+i:"-"===r?t-i:"*"===r?t*i:t/i}function b(t,e){for(var r=e.length,i=0;t.indexOf(e[i])<0&&++i<r;);return i<r}function M(){var t,e,r=ue.length,i=ue.slice(0);for(he={},t=ue.length=0;t<r;t++)(e=i[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)}function O(t,e,r,i){ue.length&&M(),t.render(e,r,i),ue.length&&M()}function k(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(ne).length<2?e:i(t)?t.trim():t}function A(t){return t}function C(t,e){for(var r in e)r in t||(t[r]=e[r]);return t}function D(t,e){for(var r in e)"__proto__"!==r&&"constructor"!==r&&"prototype"!==r&&(t[r]=o(e[r])?D(t[r]||(t[r]={}),e[r]):e[r]);return t}function P(t,e){var r,i={};for(r in t)r in e||(i[r]=t[r]);return i}function S(t){var e=t.parent||mt,r=t.keyframes?function(t){return function(e,r){for(var i in r)i in e||"duration"===i&&t||"ease"===i||(e[i]=r[i])}}(Jt(t.keyframes)):C;if(u(t.inherit))for(;e;)r(t,e.vars.defaults),e=e.parent||e._dp;return t}function z(t,e,r,i,n){void 0===r&&(r="_first"),void 0===i&&(i="_last");var s,a=t[i];if(n)for(s=e[n];a&&a[n]>s;)a=a._prev;return a?(e._next=a._next,a._next=e):(e._next=t[r],t[r]=e),e._next?e._next._prev=e:t[i]=e,e._prev=a,e.parent=e._dp=t,e}function R(t,e,r,i){void 0===r&&(r="_first"),void 0===i&&(i="_last");var n=e._prev,s=e._next;n?n._next=s:t[r]===e&&(t[r]=s),s?s._prev=n:t[i]===e&&(t[i]=n),e._next=e._prev=e.parent=null}function E(t,e){!t.parent||e&&!t.parent.autoRemoveChildren||t.parent.remove(t),t._act=0}function F(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var r=t;r;)r._dirty=1,r=r.parent;return t}function B(t){return t._repeat?me(t._tTime,t=t.duration()+t._rDelay)*t:0}function I(t,e){return(t-e._start)*e._ts+(0<=e._ts?0:e._dirty?e.totalDuration():e._tDur)}function L(t){return t._end=x(t._start+(t._tDur/Math.abs(t._ts||t._rts||Vt)||0))}function Y(t,e){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=x(r._time-(0<t._ts?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),L(t),r._dirty||F(r,t)),t}function U(t,e){var r;if((e._time||e._initted&&!e._dur)&&(r=I(t.rawTime(),e),(!e._dur||Te(0,e.totalDuration(),r)-e._tTime>Vt)&&e.render(r,!0)),F(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(r=t;r._dp;)0<=r.rawTime()&&r.totalTime(r._tTime),r=r._dp;t._zTime=-Vt}}function X(t,e,r,i){return e.parent&&E(e),e._start=x((s(r)?r:r||t!==mt?ye(t,r,e):t._time)+e._delay),e._end=x(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),z(t,e,"_first","_last",t._sort?"_start":0),ge(e)||(t._recent=e),i||U(t,e),t}function